From 9b207bdec3337ec37b16c765602575934a13ebff Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:16 -0700 Subject: [PATCH 01/23] chore: regenerate compute client --- .../alpha/2.0.0/README.md | 4 +- .../AutoscalingPolicyCpuUtilization.java | 54 + .../services/compute/model/Commitment.java | 24 +- .../services/compute/model/RouterNatRule.java | 24 +- .../alpha/2.0.0/pom.xml | 4 +- .../alpha/README.md | 4 +- .../beta/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 217 + .../services/compute/model/Commitment.java | 24 +- .../model/InterconnectsSetNameRequest.java | 96 + .../services/compute/model/RouterNatRule.java | 24 +- .../beta/2.0.0/pom.xml | 4 +- .../beta/README.md | 4 +- .../preview/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 274956 +++++++++++++++ .../api/services/compute/ComputeRequest.java | 284 + .../compute/ComputeRequestInitializer.java | 119 + .../api/services/compute/ComputeScopes.java | 62 + .../compute/model/AWSV4Signature.java | 161 + .../compute/model/AcceleratorConfig.java | 99 + .../model/AcceleratorInterconnect.java | 363 + ...rconnectAcceleratorInterconnectStatus.java | 114 + ...usAcceleratorInterconnectStateDetails.java | 377 + ...AcceleratorInterconnectMemberInstance.java | 90 + ...terconnectMemberInstancesListResponse.java | 96 + .../model/AcceleratorInterconnectParams.java | 66 + ...AcceleratorInterconnectsInsertRequest.java | 66 + .../model/AcceleratorInterconnectsList.java | 105 + .../model/AcceleratorTopologiesInfo.java | 66 + ...TopologiesInfoAcceleratorTopologyInfo.java | 90 + ...ratorTopologyInfoInfoPerTopologyState.java | 90 + .../compute/model/AcceleratorType.java | 301 + .../model/AcceleratorTypeAggregatedList.java | 404 + .../compute/model/AcceleratorTypeList.java | 386 + .../model/AcceleratorTypesScopedList.java | 278 + .../services/compute/model/AccessConfig.java | 358 + .../api/services/compute/model/Address.java | 777 + .../compute/model/AddressAggregatedList.java | 404 + .../services/compute/model/AddressList.java | 383 + .../compute/model/AddressesScopedList.java | 281 + .../model/AdvancedMachineFeatures.java | 210 + .../services/compute/model/AliasIpRange.java | 102 + .../model/AllocationAggregateReservation.java | 140 + ...regateReservationReservedResourceInfo.java | 66 + ...vationReservedResourceInfoAccelerator.java | 93 + .../AllocationReservationSharingPolicy.java | 66 + .../model/AllocationResourceStatus.java | 165 + .../AllocationResourceStatusHealthInfo.java | 114 + ...onResourceStatusSpecificSKUAllocation.java | 90 + ...locatedInstancePropertiesReservedDisk.java | 93 + ...UAllocationReservedInstanceProperties.java | 183 + .../AllocationSpecificSKUReservation.java | 183 + .../services/compute/model/AttachedDisk.java | 630 + .../model/AttachedDiskInitializeParams.java | 749 + .../services/compute/model/AuditConfig.java | 118 + .../compute/model/AuditLogConfig.java | 100 + .../services/compute/model/Autoscaler.java | 462 + .../model/AutoscalerAggregatedList.java | 407 + .../compute/model/AutoscalerList.java | 386 + .../model/AutoscalerStatusDetails.java | 180 + .../compute/model/AutoscalersScopedList.java | 282 + .../compute/model/AutoscalingPolicy.java | 360 + .../AutoscalingPolicyCpuUtilization.java | 186 + ...oscalingPolicyCustomMetricUtilization.java | 288 + ...scalingPolicyLoadBalancingUtilization.java | 69 + .../AutoscalingPolicyScaleInControl.java | 100 + .../AutoscalingPolicyScalingSchedule.java | 221 + .../api/services/compute/model/Backend.java | 678 + .../BackendBackendOrchestrationInfo.java | 66 + .../services/compute/model/BackendBucket.java | 468 + .../model/BackendBucketAggregatedList.java | 377 + .../compute/model/BackendBucketCdnPolicy.java | 498 + ...etCdnPolicyBypassCacheOnRequestHeader.java | 68 + .../BackendBucketCdnPolicyCacheKeyPolicy.java | 93 + ...dBucketCdnPolicyNegativeCachingPolicy.java | 102 + .../compute/model/BackendBucketList.java | 383 + .../model/BackendBucketListUsable.java | 386 + .../compute/model/BackendBucketParams.java | 84 + .../compute/model/BackendBucketUsedBy.java | 66 + .../model/BackendBucketsScopedList.java | 278 + .../compute/model/BackendCustomMetric.java | 138 + .../compute/model/BackendService.java | 2082 + .../model/BackendServiceAggregatedList.java | 401 + .../model/BackendServiceCdnPolicy.java | 498 + ...ceCdnPolicyBypassCacheOnRequestHeader.java | 68 + ...ServiceCdnPolicyNegativeCachingPolicy.java | 102 + ...ackendServiceConnectionTrackingPolicy.java | 249 + .../model/BackendServiceCustomMetric.java | 108 + .../model/BackendServiceFailoverPolicy.java | 164 + .../model/BackendServiceGroupHealth.java | 120 + .../compute/model/BackendServiceHAPolicy.java | 255 + .../model/BackendServiceHAPolicyLeader.java | 114 + ...dServiceHAPolicyLeaderNetworkEndpoint.java | 78 + .../model/BackendServiceHttpCookie.java | 114 + .../compute/model/BackendServiceIAP.java | 150 + .../compute/model/BackendServiceList.java | 386 + .../model/BackendServiceListUsable.java | 386 + ...viceLocalityLoadBalancingPolicyConfig.java | 85 + ...LoadBalancingPolicyConfigCustomPolicy.java | 120 + ...calityLoadBalancingPolicyConfigPolicy.java | 81 + 100 files changed, 296506 insertions(+), 50 deletions(-) create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/Compute.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequestInitializer.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeScopes.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AWSV4Signature.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnect.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstance.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstancesListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsInsertRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorType.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AccessConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Address.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AdvancedMachineFeatures.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AliasIpRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationReservationSharingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusHealthInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusSpecificSKUAllocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditLogConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Autoscaler.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerStatusDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalersScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCustomMetricUtilization.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyLoadBalancingUtilization.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScaleInControl.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScalingSchedule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Backend.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucket.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyCacheKeyPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyNegativeCachingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendCustomMetric.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendService.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyNegativeCachingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceConnectionTrackingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCustomMetric.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeader.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHttpCookie.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java 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 7008a900fc6..2a254da1496 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-rev20260910-2.0.0 + alpha-rev20260922-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260922-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java index 00b1501e593..3deb7a2433f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java @@ -62,6 +62,22 @@ public final class AutoscalingPolicyCpuUtilization extends com.google.api.client @com.google.api.client.util.Key private AutoscalingPolicyTimeAggregation timeAggregation; + /** + * The upper bound of the utilization range. Must be a float value in the range + * ('utilization_min', 1]. A value of 0.0 is equivalent to leaving the field unset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationMax; + + /** + * The lower bound of the utilization range. Must be a float value in the range (0, + * 'utilization_max']. A value of 0.0 is equivalent to leaving the field unset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationMin; + /** * Defines a target range for CPU utilization. The values of `min_utilization` and * `max_utilization` must be in the range (0.0, 1.0]. @@ -174,6 +190,44 @@ public AutoscalingPolicyCpuUtilization setTimeAggregation(AutoscalingPolicyTimeA return this; } + /** + * The upper bound of the utilization range. Must be a float value in the range + * ('utilization_min', 1]. A value of 0.0 is equivalent to leaving the field unset. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationMax() { + return utilizationMax; + } + + /** + * The upper bound of the utilization range. Must be a float value in the range + * ('utilization_min', 1]. A value of 0.0 is equivalent to leaving the field unset. + * @param utilizationMax utilizationMax or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization setUtilizationMax(java.lang.Double utilizationMax) { + this.utilizationMax = utilizationMax; + return this; + } + + /** + * The lower bound of the utilization range. Must be a float value in the range (0, + * 'utilization_max']. A value of 0.0 is equivalent to leaving the field unset. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationMin() { + return utilizationMin; + } + + /** + * The lower bound of the utilization range. Must be a float value in the range (0, + * 'utilization_max']. A value of 0.0 is equivalent to leaving the field unset. + * @param utilizationMin utilizationMin or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization setUtilizationMin(java.lang.Double utilizationMin) { + this.utilizationMin = utilizationMin; + return this; + } + /** * Defines a target range for CPU utilization. The values of `min_utilization` and * `max_utilization` must be in the range (0.0, 1.0]. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java index fb6ad752496..9b577f3c60f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -255,10 +255,10 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -769,10 +769,10 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -791,10 +791,10 @@ public java.lang.String getType() { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @param type type or {@code null} for none */ public Commitment setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNatRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNatRule.java index b7d2abe99d6..7475fb9fb60 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNatRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNatRule.java @@ -53,10 +53,14 @@ public final class RouterNatRule extends com.google.api.client.json.GenericJson * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,10 +125,14 @@ public RouterNatRule setDescription(java.lang.String description) { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @return value or {@code null} for none */ public java.lang.String getMatch() { @@ -141,10 +149,14 @@ public java.lang.String getMatch() { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @param match match or {@code null} for none */ public RouterNatRule setMatch(java.lang.String match) { 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 aca6be31376..3914ae61678 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-rev20260910-2.0.0 - Compute Engine API alpha-rev20260910-2.0.0 + alpha-rev20260922-2.0.0 + Compute Engine API alpha-rev20260922-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 7008a900fc6..2a254da1496 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-rev20260910-2.0.0 + alpha-rev20260922-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260922-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 f98a2ca6f62..7b0a86d3d4e 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-rev20260910-2.0.0 + beta-rev20260922-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260922-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 9e2d1d652d8..63bdabf4be5 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 @@ -100097,6 +100097,223 @@ public SetLabels set(String parameterName, Object value) { return (SetLabels) super.set(parameterName, value); } } + /** + * Sets name of an interconnect. + * + * Create a request for the method "interconnects.setName". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetName#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.InterconnectsSetNameRequest} + * @return the request + */ + public SetName setName(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.InterconnectsSetNameRequest content) throws java.io.IOException { + SetName result = new SetName(project, interconnect, content); + initialize(result); + return result; + } + + public class SetName extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/setName"; + + 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 INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets name of an interconnect. + * + * Create a request for the method "interconnects.setName". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetName#execute()} method to invoke the remote operation.

+ * {@link + * SetName#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 interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.InterconnectsSetNameRequest} + * @since 1.13 + */ + protected SetName(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.InterconnectsSetNameRequest 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetName set$Xgafv(java.lang.String $Xgafv) { + return (SetName) super.set$Xgafv($Xgafv); + } + + @Override + public SetName setAccessToken(java.lang.String accessToken) { + return (SetName) super.setAccessToken(accessToken); + } + + @Override + public SetName setAlt(java.lang.String alt) { + return (SetName) super.setAlt(alt); + } + + @Override + public SetName setCallback(java.lang.String callback) { + return (SetName) super.setCallback(callback); + } + + @Override + public SetName setFields(java.lang.String fields) { + return (SetName) super.setFields(fields); + } + + @Override + public SetName setKey(java.lang.String key) { + return (SetName) super.setKey(key); + } + + @Override + public SetName setOauthToken(java.lang.String oauthToken) { + return (SetName) super.setOauthToken(oauthToken); + } + + @Override + public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetName) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetName setQuotaUser(java.lang.String quotaUser) { + return (SetName) super.setQuotaUser(quotaUser); + } + + @Override + public SetName setUploadType(java.lang.String uploadType) { + return (SetName) super.setUploadType(uploadType); + } + + @Override + public SetName setUploadProtocol(java.lang.String uploadProtocol) { + return (SetName) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetName setUserIp(java.lang.String userIp) { + return (SetName) 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 SetName 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 interconnect to update. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to update. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to update. */ + public SetName setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + 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 SetName setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetName set(String parameterName, Object value) { + return (SetName) super.set(parameterName, value); + } + } /** * Returns permissions that a caller has on the specified resource. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java index 083dc68b719..7bb5ae5152b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -248,10 +248,10 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -745,10 +745,10 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -767,10 +767,10 @@ public java.lang.String getType() { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @param type type or {@code null} for none */ public Commitment setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java new file mode 100644 index 00000000000..8d5a4ff0620 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java @@ -0,0 +1,96 @@ +/* + * 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; + +/** + * Request to rename an interconnect. + * + *

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 InterconnectsSetNameRequest extends com.google.api.client.json.GenericJson { + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentName; + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentName() { + return currentName; + } + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param currentName currentName or {@code null} for none + */ + public InterconnectsSetNameRequest setCurrentName(java.lang.String currentName) { + this.currentName = currentName; + return this; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param name name or {@code null} for none + */ + public InterconnectsSetNameRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public InterconnectsSetNameRequest set(String fieldName, Object value) { + return (InterconnectsSetNameRequest) super.set(fieldName, value); + } + + @Override + public InterconnectsSetNameRequest clone() { + return (InterconnectsSetNameRequest) super.clone(); + } + +} 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 b7d2abe99d6..7475fb9fb60 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 @@ -53,10 +53,14 @@ public final class RouterNatRule extends com.google.api.client.json.GenericJson * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,10 +125,14 @@ public RouterNatRule setDescription(java.lang.String description) { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @return value or {@code null} for none */ public java.lang.String getMatch() { @@ -141,10 +149,14 @@ public java.lang.String getMatch() { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @param match match or {@code null} for none */ public RouterNatRule setMatch(java.lang.String match) { 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 708d033e425..049398038c5 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-rev20260910-2.0.0 - Compute Engine API beta-rev20260910-2.0.0 + beta-rev20260922-2.0.0 + Compute Engine API beta-rev20260922-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 f98a2ca6f62..7b0a86d3d4e 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-rev20260910-2.0.0 + beta-rev20260922-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260922-2.0.0' } ``` diff --git a/clients/google-api-services-compute/preview/2.0.0/README.md b/clients/google-api-services-compute/preview/2.0.0/README.md index 7facc336d7d..da1424483a0 100644 --- a/clients/google-api-services-compute/preview/2.0.0/README.md +++ b/clients/google-api-services-compute/preview/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 - preview-rev20260910-2.0.0 + preview-rev20260922-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:preview-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:preview-rev20260922-2.0.0' } ``` diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/Compute.java new file mode 100644 index 00000000000..5351c0d1975 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/Compute.java @@ -0,0 +1,274956 @@ +/* + * 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; + +/** + * Service definition for Compute (preview). + * + *

+ * Creates and runs virtual machines on Google Cloud Platform. + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link ComputeRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class Compute extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Compute Engine API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://compute.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://compute.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = "compute/v1/"; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch/compute/v1"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

+ * Use {@link Builder} if you need to specify any of the optional parameters. + *

+ * + * @param transport HTTP transport, which should normally be: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Compute(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + Compute(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the AcceleratorInterconnectMemberInstances collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.AcceleratorInterconnectMemberInstances.List request = compute.acceleratorInterconnectMemberInstances().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public AcceleratorInterconnectMemberInstances acceleratorInterconnectMemberInstances() { + return new AcceleratorInterconnectMemberInstances(); + } + + /** + * The "acceleratorInterconnectMemberInstances" collection of methods. + */ + public class AcceleratorInterconnectMemberInstances { + + /** + * Lists member instances of the AcceleratorInterconnect. + * + * Create a request for the method "acceleratorInterconnectMemberInstances.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 the request. + * @param zone Zone where the AcceleratorInterconnect is located. Zone name should conform + to RFC1035. + * @param acceleratorInterconnect Name of the parent AcceleratorInterconnect. The name should conform to + RFC1035 or be a resource ID. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) throws java.io.IOException { + List result = new List(project, zone, acceleratorInterconnect); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorInterconnects/{acceleratorInterconnect}/memberInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists member instances of the AcceleratorInterconnect. + * + * Create a request for the method "acceleratorInterconnectMemberInstances.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 the request. + * @param zone Zone where the AcceleratorInterconnect is located. Zone name should conform + to RFC1035. + * @param acceleratorInterconnect Name of the parent AcceleratorInterconnect. The name should conform to + RFC1035 or be a resource ID. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorInterconnectMemberInstancesListResponse.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."); + this.acceleratorInterconnect = com.google.api.client.util.Preconditions.checkNotNull(acceleratorInterconnect, "Required parameter acceleratorInterconnect must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 the request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for the request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for the 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; + } + + /** + * Zone where the AcceleratorInterconnect is located. Zone name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Zone where the AcceleratorInterconnect is located. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Zone where the AcceleratorInterconnect is located. Zone name should conform to RFC1035. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * Name of the parent AcceleratorInterconnect. The name should conform to RFC1035 or be a + * resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** Name of the parent AcceleratorInterconnect. The name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** + * Name of the parent AcceleratorInterconnect. The name should conform to RFC1035 or be a + * resource ID. + */ + public List setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the AcceleratorInterconnects collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.AcceleratorInterconnects.List request = compute.acceleratorInterconnects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public AcceleratorInterconnects acceleratorInterconnects() { + return new AcceleratorInterconnects(); + } + + /** + * The "acceleratorInterconnects" collection of methods. + */ + public class AcceleratorInterconnects { + + /** + * Deletes the specified accelerator interconnect. + * + * Create a request for the method "acceleratorInterconnects.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect to delete. Name should conform to + RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) throws java.io.IOException { + Delete result = new Delete(project, zone, acceleratorInterconnect); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorInterconnects/{acceleratorInterconnect}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified accelerator interconnect. + * + * Create a request for the method "acceleratorInterconnects.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect to delete. Name should conform to + RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) { + super(Compute.this, "DELETE", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.acceleratorInterconnect = com.google.api.client.util.Preconditions.checkNotNull(acceleratorInterconnect, "Required parameter acceleratorInterconnect must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the accelerator interconnect is located. Zone name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the accelerator interconnect to delete. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** The name of the accelerator interconnect to delete. Name should conform to RFC1035. + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** + * The name of the accelerator interconnect to delete. Name should conform to RFC1035. + */ + public Delete setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified accelerator interconnect. + * + * Create a request for the method "acceleratorInterconnects.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 zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect. Name should conform to RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) throws java.io.IOException { + Get result = new Get(project, zone, acceleratorInterconnect); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorInterconnects/{acceleratorInterconnect}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns all of the details about the specified accelerator interconnect. + * + * Create a request for the method "acceleratorInterconnects.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 zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect. Name should conform to RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorInterconnect.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."); + this.acceleratorInterconnect = com.google.api.client.util.Preconditions.checkNotNull(acceleratorInterconnect, "Required parameter acceleratorInterconnect must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the accelerator interconnect is located. Zone name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the accelerator interconnect. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** The name of the accelerator interconnect. Name should conform to RFC1035. + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** The name of the accelerator interconnect. Name should conform to RFC1035. */ + public Get setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an accelerator interconnect using the information that you specify in the request. + * + * Create a request for the method "acceleratorInterconnects.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where you want to create the accelerator interconnect. Zone name should + conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorInterconnects"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates an accelerator interconnect using the information that you specify in the request. + * + * Create a request for the method "acceleratorInterconnects.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 + where you want to create the accelerator interconnect. Zone name should + conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 where you want to create the accelerator interconnect. Zone name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the accelerator interconnect. Zone name should + conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the accelerator interconnect. Zone name + * should conform to RFC1035. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of accelerator interconnects that are contained within the specified project and + * zone. + * + * Create a request for the method "acceleratorInterconnects.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 thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @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}/acceleratorInterconnects"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of accelerator interconnects that are contained within the specified project + * and zone. + * + * Create a request for the method "acceleratorInterconnects.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 thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @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.AcceleratorInterconnectsList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the accelerator interconnect is located. Zone name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + public List setZone(java.lang.String zone) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Queries hierarchical formability over dense reservations. + * + * Create a request for the method "acceleratorInterconnects.queryFormability". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link QueryFormability#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the + request is located. Zone name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.QueryFormabilityRequest} + * @return the request + */ + public QueryFormability queryFormability(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.QueryFormabilityRequest content) throws java.io.IOException { + QueryFormability result = new QueryFormability(project, zone, content); + initialize(result); + return result; + } + + public class QueryFormability extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorInterconnects:queryFormability"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Queries hierarchical formability over dense reservations. + * + * Create a request for the method "acceleratorInterconnects.queryFormability". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link QueryFormability#execute()} method to invoke the remote operation. + *

{@link QueryFormability#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 zone The name of thezone where the + request is located. Zone name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.QueryFormabilityRequest} + * @since 1.13 + */ + protected QueryFormability(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.QueryFormabilityRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.QueryFormabilityResponse.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public QueryFormability set$Xgafv(java.lang.String $Xgafv) { + return (QueryFormability) super.set$Xgafv($Xgafv); + } + + @Override + public QueryFormability setAccessToken(java.lang.String accessToken) { + return (QueryFormability) super.setAccessToken(accessToken); + } + + @Override + public QueryFormability setAlt(java.lang.String alt) { + return (QueryFormability) super.setAlt(alt); + } + + @Override + public QueryFormability setCallback(java.lang.String callback) { + return (QueryFormability) super.setCallback(callback); + } + + @Override + public QueryFormability setFields(java.lang.String fields) { + return (QueryFormability) super.setFields(fields); + } + + @Override + public QueryFormability setKey(java.lang.String key) { + return (QueryFormability) super.setKey(key); + } + + @Override + public QueryFormability setOauthToken(java.lang.String oauthToken) { + return (QueryFormability) super.setOauthToken(oauthToken); + } + + @Override + public QueryFormability setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryFormability) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryFormability setQuotaUser(java.lang.String quotaUser) { + return (QueryFormability) super.setQuotaUser(quotaUser); + } + + @Override + public QueryFormability setUploadType(java.lang.String uploadType) { + return (QueryFormability) super.setUploadType(uploadType); + } + + @Override + public QueryFormability setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryFormability) super.setUploadProtocol(uploadProtocol); + } + + @Override + public QueryFormability setUserIp(java.lang.String userIp) { + return (QueryFormability) 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 QueryFormability 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 thezone where the request is located. Zone name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the request is located. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the request is located. Zone name should conform to RFC1035. + */ + public QueryFormability setZone(java.lang.String zone) { + 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 QueryFormability 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 QueryFormability 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 QueryFormability 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 QueryFormability setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public QueryFormability set(String parameterName, Object value) { + return (QueryFormability) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the AcceleratorTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.AcceleratorTypes.List request = compute.acceleratorTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public AcceleratorTypes acceleratorTypes() { + return new AcceleratorTypes(); + } + + /** + * The "acceleratorTypes" collection of methods. + */ + public class AcceleratorTypes { + + /** + * Retrieves an aggregated list of accelerator types. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "acceleratorTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/acceleratorTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of accelerator types. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "acceleratorTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorTypeAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified accelerator type. + * + * Create a request for the method "acceleratorTypes.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 zone The name of the zone for this request. + * @param acceleratorType Name of the accelerator type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorType) throws java.io.IOException { + Get result = new Get(project, zone, acceleratorType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern ACCELERATOR_TYPE_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 accelerator type. + * + * Create a request for the method "acceleratorTypes.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 zone The name of the zone for this request. + * @param acceleratorType Name of the accelerator type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorType.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])?"); + } + this.acceleratorType = com.google.api.client.util.Preconditions.checkNotNull(acceleratorType, "Required parameter acceleratorType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ACCELERATOR_TYPE_PATTERN.matcher(acceleratorType).matches(), + "Parameter acceleratorType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 accelerator type to return. */ + @com.google.api.client.util.Key + private java.lang.String acceleratorType; + + /** Name of the accelerator type to return. + */ + public java.lang.String getAcceleratorType() { + return acceleratorType; + } + + /** Name of the accelerator type to return. */ + public Get setAcceleratorType(java.lang.String acceleratorType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ACCELERATOR_TYPE_PATTERN.matcher(acceleratorType).matches(), + "Parameter acceleratorType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.acceleratorType = acceleratorType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of accelerator types that are available to the specified project. + * + * Create a request for the method "acceleratorTypes.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}/acceleratorTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 accelerator types that are available to the specified project. + * + * Create a request for the method "acceleratorTypes.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.AcceleratorTypeList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Addresses collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Addresses.List request = compute.addresses().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Addresses addresses() { + return new Addresses(); + } + + /** + * The "addresses" collection of methods. + */ + public class Addresses { + + /** + * Retrieves an aggregated list of addresses. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "addresses.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/addresses"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of addresses. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "addresses.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AddressAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified address resource. + * + * Create a request for the method "addresses.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param address Name of the address resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String address) throws java.io.IOException { + Delete result = new Delete(project, region, address); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{address}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ADDRESS_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified address resource. + * + * Create a request for the method "addresses.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param address Name of the address resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String address) { + super(Compute.this, "DELETE", REST_PATH, null, 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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 address resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** Name of the address resource to delete. + */ + public java.lang.String getAddress() { + return address; + } + + /** Name of the address resource to delete. */ + public Delete setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified address resource. + * + * Create a request for the method "addresses.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 region Name of the region for this request. + * @param address Name of the address resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String address) throws java.io.IOException { + Get result = new Get(project, region, address); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{address}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ADDRESS_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 address resource. + * + * Create a request for the method "addresses.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 region Name of the region for this request. + * @param address Name of the address resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String address) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Address.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 address resource to return. */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** Name of the address resource to return. + */ + public java.lang.String getAddress() { + return address; + } + + /** Name of the address resource to return. */ + public Get setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an address resource in the specified project by using the data included in the request. + * + * Create a request for the method "addresses.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Address} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Address content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/addresses"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates an address resource in the specified project by using the data included in the request. + * + * Create a request for the method "addresses.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Address} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Address 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of addresses contained within the specified region. + * + * Create a request for the method "addresses.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 region 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}/addresses"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of addresses contained within the specified region. + * + * Create a request for the method "addresses.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 region 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.AddressList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Moves the specified address resource. + * + * Create a request for the method "addresses.move". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation. + * + * @param project Source project ID which the Address is moved from. + * @param region Name of the region for this request. + * @param address Name of the address resource to move. + * @param content the {@link com.google.api.services.compute.model.RegionAddressesMoveRequest} + * @return the request + */ + public Move move(java.lang.String project, java.lang.String region, java.lang.String address, com.google.api.services.compute.model.RegionAddressesMoveRequest content) throws java.io.IOException { + Move result = new Move(project, region, address, content); + initialize(result); + return result; + } + + public class Move extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{address}/move"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ADDRESS_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Moves the specified address resource. + * + * Create a request for the method "addresses.move". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

+ * + * @param project Source project ID which the Address is moved from. + * @param region Name of the region for this request. + * @param address Name of the address resource to move. + * @param content the {@link com.google.api.services.compute.model.RegionAddressesMoveRequest} + * @since 1.13 + */ + protected Move(java.lang.String project, java.lang.String region, java.lang.String address, com.google.api.services.compute.model.RegionAddressesMoveRequest 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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); + } + + @Override + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); + } + + @Override + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); + } + + @Override + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); + } + + @Override + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); + } + + @Override + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); + } + + @Override + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); + } + + @Override + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); + } + + @Override + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); + } + + @Override + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); + } + + @Override + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); + } + + /** Source project ID which the Address is moved from. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Source project ID which the Address is moved from. + */ + public java.lang.String getProject() { + return project; + } + + /** Source project ID which the Address is moved from. */ + public Move 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Move 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 address resource to move. */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** Name of the address resource to move. + */ + public java.lang.String getAddress() { + return address; + } + + /** Name of the address resource to move. */ + public Move setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; + 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 Move setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); + } + } + /** + * Sets the labels on an Address. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "addresses.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on an Address. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "addresses.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Advice collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Advice.List request = compute.advice().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Advice advice() { + return new Advice(); + } + + /** + * The "advice" collection of methods. + */ + public class Advice { + + /** + * Advise how, where and when to create the requested amount of instances with specified + * accelerators, within the specified time and location limits. The method recommends creating + * future reservations for the requested resources. + * + * Create a request for the method "advice.calendarMode". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CalendarMode#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CalendarModeAdviceRequest} + * @return the request + */ + public CalendarMode calendarMode(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CalendarModeAdviceRequest content) throws java.io.IOException { + CalendarMode result = new CalendarMode(project, region, content); + initialize(result); + return result; + } + + public class CalendarMode extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/advice/calendarMode"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Advise how, where and when to create the requested amount of instances with specified + * accelerators, within the specified time and location limits. The method recommends creating + * future reservations for the requested resources. + * + * Create a request for the method "advice.calendarMode". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CalendarMode#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CalendarModeAdviceRequest} + * @since 1.13 + */ + protected CalendarMode(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CalendarModeAdviceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.CalendarModeAdviceResponse.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CalendarMode set$Xgafv(java.lang.String $Xgafv) { + return (CalendarMode) super.set$Xgafv($Xgafv); + } + + @Override + public CalendarMode setAccessToken(java.lang.String accessToken) { + return (CalendarMode) super.setAccessToken(accessToken); + } + + @Override + public CalendarMode setAlt(java.lang.String alt) { + return (CalendarMode) super.setAlt(alt); + } + + @Override + public CalendarMode setCallback(java.lang.String callback) { + return (CalendarMode) super.setCallback(callback); + } + + @Override + public CalendarMode setFields(java.lang.String fields) { + return (CalendarMode) super.setFields(fields); + } + + @Override + public CalendarMode setKey(java.lang.String key) { + return (CalendarMode) super.setKey(key); + } + + @Override + public CalendarMode setOauthToken(java.lang.String oauthToken) { + return (CalendarMode) super.setOauthToken(oauthToken); + } + + @Override + public CalendarMode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CalendarMode) super.setPrettyPrint(prettyPrint); + } + + @Override + public CalendarMode setQuotaUser(java.lang.String quotaUser) { + return (CalendarMode) super.setQuotaUser(quotaUser); + } + + @Override + public CalendarMode setUploadType(java.lang.String uploadType) { + return (CalendarMode) super.setUploadType(uploadType); + } + + @Override + public CalendarMode setUploadProtocol(java.lang.String uploadProtocol) { + return (CalendarMode) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CalendarMode setUserIp(java.lang.String userIp) { + return (CalendarMode) 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 CalendarMode 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public CalendarMode 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; + } + + @Override + public CalendarMode set(String parameterName, Object value) { + return (CalendarMode) super.set(parameterName, value); + } + } + /** + * Advice on making real-time decisions (such as choosing zone or machine types) during deployment + * to maximize your chances of obtaining capacity. + * + * Create a request for the method "advice.capacity". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Capacity#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CapacityAdviceRequest} + * @return the request + */ + public Capacity capacity(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CapacityAdviceRequest content) throws java.io.IOException { + Capacity result = new Capacity(project, region, content); + initialize(result); + return result; + } + + public class Capacity extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/advice/capacity"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Advice on making real-time decisions (such as choosing zone or machine types) during deployment + * to maximize your chances of obtaining capacity. + * + * Create a request for the method "advice.capacity". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Capacity#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CapacityAdviceRequest} + * @since 1.13 + */ + protected Capacity(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CapacityAdviceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.CapacityAdviceResponse.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Capacity set$Xgafv(java.lang.String $Xgafv) { + return (Capacity) super.set$Xgafv($Xgafv); + } + + @Override + public Capacity setAccessToken(java.lang.String accessToken) { + return (Capacity) super.setAccessToken(accessToken); + } + + @Override + public Capacity setAlt(java.lang.String alt) { + return (Capacity) super.setAlt(alt); + } + + @Override + public Capacity setCallback(java.lang.String callback) { + return (Capacity) super.setCallback(callback); + } + + @Override + public Capacity setFields(java.lang.String fields) { + return (Capacity) super.setFields(fields); + } + + @Override + public Capacity setKey(java.lang.String key) { + return (Capacity) super.setKey(key); + } + + @Override + public Capacity setOauthToken(java.lang.String oauthToken) { + return (Capacity) super.setOauthToken(oauthToken); + } + + @Override + public Capacity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Capacity) super.setPrettyPrint(prettyPrint); + } + + @Override + public Capacity setQuotaUser(java.lang.String quotaUser) { + return (Capacity) super.setQuotaUser(quotaUser); + } + + @Override + public Capacity setUploadType(java.lang.String uploadType) { + return (Capacity) super.setUploadType(uploadType); + } + + @Override + public Capacity setUploadProtocol(java.lang.String uploadProtocol) { + return (Capacity) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Capacity setUserIp(java.lang.String userIp) { + return (Capacity) 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 Capacity 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Capacity 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; + } + + @Override + public Capacity set(String parameterName, Object value) { + return (Capacity) super.set(parameterName, value); + } + } + /** + * Gets the capacity history. + * + * Create a request for the method "advice.capacityHistory". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CapacityHistory#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CapacityHistoryRequest} + * @return the request + */ + public CapacityHistory capacityHistory(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CapacityHistoryRequest content) throws java.io.IOException { + CapacityHistory result = new CapacityHistory(project, region, content); + initialize(result); + return result; + } + + public class CapacityHistory extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/advice/capacityHistory"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Gets the capacity history. + * + * Create a request for the method "advice.capacityHistory". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CapacityHistory#execute()} method to invoke the remote operation. + *

{@link CapacityHistory#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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 for this request. + * @param content the {@link com.google.api.services.compute.model.CapacityHistoryRequest} + * @since 1.13 + */ + protected CapacityHistory(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CapacityHistoryRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.CapacityHistoryResponse.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CapacityHistory set$Xgafv(java.lang.String $Xgafv) { + return (CapacityHistory) super.set$Xgafv($Xgafv); + } + + @Override + public CapacityHistory setAccessToken(java.lang.String accessToken) { + return (CapacityHistory) super.setAccessToken(accessToken); + } + + @Override + public CapacityHistory setAlt(java.lang.String alt) { + return (CapacityHistory) super.setAlt(alt); + } + + @Override + public CapacityHistory setCallback(java.lang.String callback) { + return (CapacityHistory) super.setCallback(callback); + } + + @Override + public CapacityHistory setFields(java.lang.String fields) { + return (CapacityHistory) super.setFields(fields); + } + + @Override + public CapacityHistory setKey(java.lang.String key) { + return (CapacityHistory) super.setKey(key); + } + + @Override + public CapacityHistory setOauthToken(java.lang.String oauthToken) { + return (CapacityHistory) super.setOauthToken(oauthToken); + } + + @Override + public CapacityHistory setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CapacityHistory) super.setPrettyPrint(prettyPrint); + } + + @Override + public CapacityHistory setQuotaUser(java.lang.String quotaUser) { + return (CapacityHistory) super.setQuotaUser(quotaUser); + } + + @Override + public CapacityHistory setUploadType(java.lang.String uploadType) { + return (CapacityHistory) super.setUploadType(uploadType); + } + + @Override + public CapacityHistory setUploadProtocol(java.lang.String uploadProtocol) { + return (CapacityHistory) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CapacityHistory setUserIp(java.lang.String userIp) { + return (CapacityHistory) 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 CapacityHistory 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public CapacityHistory 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; + } + + @Override + public CapacityHistory set(String parameterName, Object value) { + return (CapacityHistory) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Autoscalers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Autoscalers.List request = compute.autoscalers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Autoscalers autoscalers() { + return new Autoscalers(); + } + + /** + * The "autoscalers" collection of methods. + */ + public class Autoscalers { + + /** + * Retrieves an aggregated list of autoscalers. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "autoscalers.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of autoscalers. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "autoscalers.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AutoscalerAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified autoscaler. + * + * Create a request for the method "autoscalers.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param autoscaler Name of the autoscaler to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) throws java.io.IOException { + Delete result = new Delete(project, zone, autoscaler); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{autoscaler}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern AUTOSCALER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified autoscaler. + * + * Create a request for the method "autoscalers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 Name of the zone for this request. + * @param autoscaler Name of the autoscaler to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Delete 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 autoscaler to delete. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to delete. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to delete. */ + public Delete setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified autoscaler resource. + * + * Create a request for the method "autoscalers.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 zone Name of the zone for this request. + * @param autoscaler Name of the autoscaler to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) throws java.io.IOException { + Get result = new Get(project, zone, autoscaler); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{autoscaler}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern AUTOSCALER_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 autoscaler resource. + * + * Create a request for the method "autoscalers.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 zone Name of the zone for this request. + * @param autoscaler Name of the autoscaler to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Autoscaler.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])?"); + } + this.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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 autoscaler to return. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to return. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to return. */ + public Get setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an autoscaler in the specified project using the data included in the request. + * + * Create a request for the method "autoscalers.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates an autoscaler in the specified project using the data included in the request. + * + * Create a request for the method "autoscalers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Autoscaler 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of autoscalers contained within the specified zone. + * + * Create a request for the method "autoscalers.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 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}/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 autoscalers contained within the specified zone. + * + * Create a request for the method "autoscalers.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 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.AutoscalerList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an autoscaler in the specified project using the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "autoscalers.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 Project ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { + Patch result = new Patch(project, zone, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern AUTOSCALER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates an autoscaler in the specified project using the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "autoscalers.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 Project ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Autoscaler content) { + super(Compute.this, "PATCH", 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Patch 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 autoscaler to patch. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to patch. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to patch. */ + public Patch setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "autoscalers.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "autoscalers.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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 Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Autoscaler content) { + super(Compute.this, "PUT", 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Update 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 autoscaler to update. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to update. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to update. */ + public Update setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the BackendBuckets collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.BackendBuckets.List request = compute.backendBuckets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public BackendBuckets backendBuckets() { + return new BackendBuckets(); + } + + /** + * The "backendBuckets" collection of methods. + */ + public class BackendBuckets { + + /** + * Adds a key for validating requests with signed URLs for this backend bucket. + * + * Create a request for the method "backendBuckets.addSignedUrlKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SignedUrlKey} + * @return the request + */ + public AddSignedUrlKey addSignedUrlKey(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.SignedUrlKey content) throws java.io.IOException { + AddSignedUrlKey result = new AddSignedUrlKey(project, backendBucket, content); + initialize(result); + return result; + } + + public class AddSignedUrlKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Adds a key for validating requests with signed URLs for this backend bucket. + * + * Create a request for the method "backendBuckets.addSignedUrlKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SignedUrlKey} + * @since 1.13 + */ + protected AddSignedUrlKey(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.SignedUrlKey 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { + return (AddSignedUrlKey) super.set$Xgafv($Xgafv); + } + + @Override + public AddSignedUrlKey setAccessToken(java.lang.String accessToken) { + return (AddSignedUrlKey) super.setAccessToken(accessToken); + } + + @Override + public AddSignedUrlKey setAlt(java.lang.String alt) { + return (AddSignedUrlKey) super.setAlt(alt); + } + + @Override + public AddSignedUrlKey setCallback(java.lang.String callback) { + return (AddSignedUrlKey) super.setCallback(callback); + } + + @Override + public AddSignedUrlKey setFields(java.lang.String fields) { + return (AddSignedUrlKey) super.setFields(fields); + } + + @Override + public AddSignedUrlKey setKey(java.lang.String key) { + return (AddSignedUrlKey) super.setKey(key); + } + + @Override + public AddSignedUrlKey setOauthToken(java.lang.String oauthToken) { + return (AddSignedUrlKey) super.setOauthToken(oauthToken); + } + + @Override + public AddSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddSignedUrlKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddSignedUrlKey setQuotaUser(java.lang.String quotaUser) { + return (AddSignedUrlKey) super.setQuotaUser(quotaUser); + } + + @Override + public AddSignedUrlKey setUploadType(java.lang.String uploadType) { + return (AddSignedUrlKey) super.setUploadType(uploadType); + } + + @Override + public AddSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { + return (AddSignedUrlKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddSignedUrlKey setUserIp(java.lang.String userIp) { + return (AddSignedUrlKey) 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 AddSignedUrlKey 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 BackendBucket resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to which the Signed URL Key should be added. The name should + conform to RFC1035. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** + * Name of the BackendBucket resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + public AddSignedUrlKey setBackendBucket(java.lang.String backendBucket) { + this.backendBucket = backendBucket; + 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 AddSignedUrlKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddSignedUrlKey set(String parameterName, Object value) { + return (AddSignedUrlKey) super.set(parameterName, value); + } + } + /** + * Retrieves the list of all BackendBucket resources, regional and global, available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "backendBuckets.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/backendBuckets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all BackendBucket resources, regional and global, available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "backendBuckets.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucketAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified BackendBucket resource. + * + * Create a request for the method "backendBuckets.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String backendBucket) throws java.io.IOException { + Delete result = new Delete(project, backendBucket); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified BackendBucket resource. + * + * Create a request for the method "backendBuckets.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 backendBucket Name of the BackendBucket resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String backendBucket) { + super(Compute.this, "DELETE", REST_PATH, null, 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 BackendBucket resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to delete. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to delete. */ + public Delete setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes a key for validating requests with signed URLs for this backend bucket. + * + * Create a request for the method "backendBuckets.deleteSignedUrlKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param keyName The name of the Signed URL Key to delete. + * @return the request + */ + public DeleteSignedUrlKey deleteSignedUrlKey(java.lang.String project, java.lang.String backendBucket, java.lang.String keyName) throws java.io.IOException { + DeleteSignedUrlKey result = new DeleteSignedUrlKey(project, backendBucket, keyName); + initialize(result); + return result; + } + + public class DeleteSignedUrlKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes a key for validating requests with signed URLs for this backend bucket. + * + * Create a request for the method "backendBuckets.deleteSignedUrlKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param keyName The name of the Signed URL Key to delete. + * @since 1.13 + */ + protected DeleteSignedUrlKey(java.lang.String project, java.lang.String backendBucket, java.lang.String keyName) { + super(Compute.this, "POST", REST_PATH, null, 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + this.keyName = com.google.api.client.util.Preconditions.checkNotNull(keyName, "Required parameter keyName must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { + return (DeleteSignedUrlKey) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteSignedUrlKey setAccessToken(java.lang.String accessToken) { + return (DeleteSignedUrlKey) super.setAccessToken(accessToken); + } + + @Override + public DeleteSignedUrlKey setAlt(java.lang.String alt) { + return (DeleteSignedUrlKey) super.setAlt(alt); + } + + @Override + public DeleteSignedUrlKey setCallback(java.lang.String callback) { + return (DeleteSignedUrlKey) super.setCallback(callback); + } + + @Override + public DeleteSignedUrlKey setFields(java.lang.String fields) { + return (DeleteSignedUrlKey) super.setFields(fields); + } + + @Override + public DeleteSignedUrlKey setKey(java.lang.String key) { + return (DeleteSignedUrlKey) super.setKey(key); + } + + @Override + public DeleteSignedUrlKey setOauthToken(java.lang.String oauthToken) { + return (DeleteSignedUrlKey) super.setOauthToken(oauthToken); + } + + @Override + public DeleteSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteSignedUrlKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteSignedUrlKey setQuotaUser(java.lang.String quotaUser) { + return (DeleteSignedUrlKey) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteSignedUrlKey setUploadType(java.lang.String uploadType) { + return (DeleteSignedUrlKey) super.setUploadType(uploadType); + } + + @Override + public DeleteSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteSignedUrlKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteSignedUrlKey setUserIp(java.lang.String userIp) { + return (DeleteSignedUrlKey) 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 DeleteSignedUrlKey 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 BackendBucket resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to which the Signed URL Key should be added. The name should + conform to RFC1035. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** + * Name of the BackendBucket resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + public DeleteSignedUrlKey setBackendBucket(java.lang.String backendBucket) { + this.backendBucket = backendBucket; + return this; + } + + /** The name of the Signed URL Key to delete. */ + @com.google.api.client.util.Key + private java.lang.String keyName; + + /** The name of the Signed URL Key to delete. + */ + public java.lang.String getKeyName() { + return keyName; + } + + /** The name of the Signed URL Key to delete. */ + public DeleteSignedUrlKey setKeyName(java.lang.String keyName) { + this.keyName = keyName; + 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 DeleteSignedUrlKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteSignedUrlKey set(String parameterName, Object value) { + return (DeleteSignedUrlKey) super.set(parameterName, value); + } + } + /** + * Returns the specified BackendBucket resource. + * + * Create a request for the method "backendBuckets.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 backendBucket Name of the BackendBucket resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String backendBucket) throws java.io.IOException { + Get result = new Get(project, backendBucket); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_BUCKET_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 BackendBucket resource. + * + * Create a request for the method "backendBuckets.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 backendBucket Name of the BackendBucket resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String backendBucket) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucket.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 BackendBucket resource to return. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to return. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to return. */ + public Get setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "backendBuckets.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "backendBuckets.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.BackendBucket 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of BackendBucket resources available to the specified project. + * + * Create a request for the method "backendBuckets.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of BackendBucket resources available to the specified project. + * + * Create a request for the method "backendBuckets.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucketList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of all usable backend buckets in the specified project. + * + * Create a request for the method "backendBuckets.listUsable". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public ListUsable listUsable(java.lang.String project) throws java.io.IOException { + ListUsable result = new ListUsable(project); + initialize(result); + return result; + } + + public class ListUsable extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/listUsable"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of all usable backend buckets in the specified project. + * + * Create a request for the method "backendBuckets.listUsable". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

+ * {@link + * ListUsable#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. + * @since 1.13 + */ + protected ListUsable(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucketListUsable.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); + } + + @Override + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); + } + + @Override + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); + } + + @Override + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); + } + + @Override + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); + } + + @Override + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); + } + + @Override + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); + } + + @Override + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); + } + + @Override + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); + } + + @Override + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) 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 ListUsable 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; + } + + /** + * 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); + } + } + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "backendBuckets.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 Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) throws java.io.IOException { + Patch result = new Patch(project, backendBucket, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "backendBuckets.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 Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) { + super(Compute.this, "PATCH", 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 BackendBucket resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to patch. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to patch. */ + public Patch setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the edge security policy for the specified backend bucket. + * + * Create a request for the method "backendBuckets.setEdgeSecurityPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to which the security policy should be + set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @return the request + */ + public SetEdgeSecurityPolicy setEdgeSecurityPolicy(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { + SetEdgeSecurityPolicy result = new SetEdgeSecurityPolicy(project, backendBucket, content); + initialize(result); + return result; + } + + public class SetEdgeSecurityPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the edge security policy for the specified backend bucket. + * + * Create a request for the method "backendBuckets.setEdgeSecurityPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param backendBucket Name of the BackendBucket resource to which the security policy should be + set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @since 1.13 + */ + protected SetEdgeSecurityPolicy(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.SecurityPolicyReference 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetEdgeSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetEdgeSecurityPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetEdgeSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetEdgeSecurityPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetEdgeSecurityPolicy setAlt(java.lang.String alt) { + return (SetEdgeSecurityPolicy) super.setAlt(alt); + } + + @Override + public SetEdgeSecurityPolicy setCallback(java.lang.String callback) { + return (SetEdgeSecurityPolicy) super.setCallback(callback); + } + + @Override + public SetEdgeSecurityPolicy setFields(java.lang.String fields) { + return (SetEdgeSecurityPolicy) super.setFields(fields); + } + + @Override + public SetEdgeSecurityPolicy setKey(java.lang.String key) { + return (SetEdgeSecurityPolicy) super.setKey(key); + } + + @Override + public SetEdgeSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetEdgeSecurityPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetEdgeSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetEdgeSecurityPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetEdgeSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetEdgeSecurityPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetEdgeSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetEdgeSecurityPolicy) super.setUploadType(uploadType); + } + + @Override + public SetEdgeSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetEdgeSecurityPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetEdgeSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetEdgeSecurityPolicy) 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 SetEdgeSecurityPolicy 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 BackendBucket resource to which the security policy should be set. The name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to which the security policy should be set. The name should + conform to RFC1035. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** + * Name of the BackendBucket resource to which the security policy should be set. The name + * should conform to RFC1035. + */ + public SetEdgeSecurityPolicy setBackendBucket(java.lang.String backendBucket) { + this.backendBucket = backendBucket; + 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 SetEdgeSecurityPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetEdgeSecurityPolicy set(String parameterName, Object value) { + return (SetEdgeSecurityPolicy) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "backendBuckets.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendBuckets/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "backendBuckets.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

{@link + * Update#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 backendBucket Name of the BackendBucket resource to update. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) { + super(Compute.this, "PUT", 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 BackendBucket resource to update. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to update. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to update. */ + public Update setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the BackendServices collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.BackendServices.List request = compute.backendServices().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public BackendServices backendServices() { + return new BackendServices(); + } + + /** + * The "backendServices" collection of methods. + */ + public class BackendServices { + + /** + * Adds a key for validating requests with signed URLs for this backend service. + * + * Create a request for the method "backendServices.addSignedUrlKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SignedUrlKey} + * @return the request + */ + public AddSignedUrlKey addSignedUrlKey(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.SignedUrlKey content) throws java.io.IOException { + AddSignedUrlKey result = new AddSignedUrlKey(project, backendService, content); + initialize(result); + return result; + } + + public class AddSignedUrlKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/addSignedUrlKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Adds a key for validating requests with signed URLs for this backend service. + * + * Create a request for the method "backendServices.addSignedUrlKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SignedUrlKey} + * @since 1.13 + */ + protected AddSignedUrlKey(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.SignedUrlKey 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { + return (AddSignedUrlKey) super.set$Xgafv($Xgafv); + } + + @Override + public AddSignedUrlKey setAccessToken(java.lang.String accessToken) { + return (AddSignedUrlKey) super.setAccessToken(accessToken); + } + + @Override + public AddSignedUrlKey setAlt(java.lang.String alt) { + return (AddSignedUrlKey) super.setAlt(alt); + } + + @Override + public AddSignedUrlKey setCallback(java.lang.String callback) { + return (AddSignedUrlKey) super.setCallback(callback); + } + + @Override + public AddSignedUrlKey setFields(java.lang.String fields) { + return (AddSignedUrlKey) super.setFields(fields); + } + + @Override + public AddSignedUrlKey setKey(java.lang.String key) { + return (AddSignedUrlKey) super.setKey(key); + } + + @Override + public AddSignedUrlKey setOauthToken(java.lang.String oauthToken) { + return (AddSignedUrlKey) super.setOauthToken(oauthToken); + } + + @Override + public AddSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddSignedUrlKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddSignedUrlKey setQuotaUser(java.lang.String quotaUser) { + return (AddSignedUrlKey) super.setQuotaUser(quotaUser); + } + + @Override + public AddSignedUrlKey setUploadType(java.lang.String uploadType) { + return (AddSignedUrlKey) super.setUploadType(uploadType); + } + + @Override + public AddSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { + return (AddSignedUrlKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddSignedUrlKey setUserIp(java.lang.String userIp) { + return (AddSignedUrlKey) 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 AddSignedUrlKey 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 BackendService resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to which the Signed URL Key should be added. The name should + conform to RFC1035. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * Name of the BackendService resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + public AddSignedUrlKey setBackendService(java.lang.String backendService) { + this.backendService = backendService; + 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 AddSignedUrlKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddSignedUrlKey set(String parameterName, Object value) { + return (AddSignedUrlKey) super.set(parameterName, value); + } + } + /** + * Retrieves the list of all BackendService resources, regional and global, available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "backendServices.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/backendServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all BackendService resources, regional and global, available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "backendServices.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendServiceAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified BackendService resource. + * + * Create a request for the method "backendServices.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String backendService) throws java.io.IOException { + Delete result = new Delete(project, backendService); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified BackendService resource. + * + * Create a request for the method "backendServices.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 backendService Name of the BackendService resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String backendService) { + super(Compute.this, "DELETE", REST_PATH, null, 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 BackendService resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to delete. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to delete. */ + public Delete setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes a key for validating requests with signed URLs for this backend service. + * + * Create a request for the method "backendServices.deleteSignedUrlKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param keyName The name of the Signed URL Key to delete. + * @return the request + */ + public DeleteSignedUrlKey deleteSignedUrlKey(java.lang.String project, java.lang.String backendService, java.lang.String keyName) throws java.io.IOException { + DeleteSignedUrlKey result = new DeleteSignedUrlKey(project, backendService, keyName); + initialize(result); + return result; + } + + public class DeleteSignedUrlKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes a key for validating requests with signed URLs for this backend service. + * + * Create a request for the method "backendServices.deleteSignedUrlKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to which the Signed URL Key should be + added. The name should + * conform to RFC1035. + * @param keyName The name of the Signed URL Key to delete. + * @since 1.13 + */ + protected DeleteSignedUrlKey(java.lang.String project, java.lang.String backendService, java.lang.String keyName) { + super(Compute.this, "POST", REST_PATH, null, 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + this.keyName = com.google.api.client.util.Preconditions.checkNotNull(keyName, "Required parameter keyName must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { + return (DeleteSignedUrlKey) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteSignedUrlKey setAccessToken(java.lang.String accessToken) { + return (DeleteSignedUrlKey) super.setAccessToken(accessToken); + } + + @Override + public DeleteSignedUrlKey setAlt(java.lang.String alt) { + return (DeleteSignedUrlKey) super.setAlt(alt); + } + + @Override + public DeleteSignedUrlKey setCallback(java.lang.String callback) { + return (DeleteSignedUrlKey) super.setCallback(callback); + } + + @Override + public DeleteSignedUrlKey setFields(java.lang.String fields) { + return (DeleteSignedUrlKey) super.setFields(fields); + } + + @Override + public DeleteSignedUrlKey setKey(java.lang.String key) { + return (DeleteSignedUrlKey) super.setKey(key); + } + + @Override + public DeleteSignedUrlKey setOauthToken(java.lang.String oauthToken) { + return (DeleteSignedUrlKey) super.setOauthToken(oauthToken); + } + + @Override + public DeleteSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteSignedUrlKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteSignedUrlKey setQuotaUser(java.lang.String quotaUser) { + return (DeleteSignedUrlKey) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteSignedUrlKey setUploadType(java.lang.String uploadType) { + return (DeleteSignedUrlKey) super.setUploadType(uploadType); + } + + @Override + public DeleteSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteSignedUrlKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteSignedUrlKey setUserIp(java.lang.String userIp) { + return (DeleteSignedUrlKey) 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 DeleteSignedUrlKey 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 BackendService resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to which the Signed URL Key should be added. The name should + conform to RFC1035. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * Name of the BackendService resource to which the Signed URL Key should be added. The name + * should conform to RFC1035. + */ + public DeleteSignedUrlKey setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + + /** The name of the Signed URL Key to delete. */ + @com.google.api.client.util.Key + private java.lang.String keyName; + + /** The name of the Signed URL Key to delete. + */ + public java.lang.String getKeyName() { + return keyName; + } + + /** The name of the Signed URL Key to delete. */ + public DeleteSignedUrlKey setKeyName(java.lang.String keyName) { + this.keyName = keyName; + 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 DeleteSignedUrlKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteSignedUrlKey set(String parameterName, Object value) { + return (DeleteSignedUrlKey) super.set(parameterName, value); + } + } + /** + * Returns the specified BackendService resource. + * + * Create a request for the method "backendServices.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 backendService Name of the BackendService resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String backendService) throws java.io.IOException { + Get result = new Get(project, backendService); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_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 BackendService resource. + * + * Create a request for the method "backendServices.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 backendService Name of the BackendService resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String backendService) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendService.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 BackendService resource to return. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to return. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to return. */ + public Get setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns effective security policies applied to this backend service. + * + * Create a request for the method "backendServices.getEffectiveSecurityPolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveSecurityPolicies#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param backendService Name of the Backend Service for this request. + * @return the request + */ + public GetEffectiveSecurityPolicies getEffectiveSecurityPolicies(java.lang.String project, java.lang.String backendService) throws java.io.IOException { + GetEffectiveSecurityPolicies result = new GetEffectiveSecurityPolicies(project, backendService); + initialize(result); + return result; + } + + public class GetEffectiveSecurityPolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Returns effective security policies applied to this backend service. + * + * Create a request for the method "backendServices.getEffectiveSecurityPolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveSecurityPolicies#execute()} method to invoke the remote + * operation.

{@link GetEffectiveSecurityPolicies#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 backendService Name of the Backend Service for this request. + * @since 1.13 + */ + protected GetEffectiveSecurityPolicies(java.lang.String project, java.lang.String backendService) { + super(Compute.this, "GET", REST_PATH, null, Void.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetEffectiveSecurityPolicies set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveSecurityPolicies) super.set$Xgafv($Xgafv); + } + + @Override + public GetEffectiveSecurityPolicies setAccessToken(java.lang.String accessToken) { + return (GetEffectiveSecurityPolicies) super.setAccessToken(accessToken); + } + + @Override + public GetEffectiveSecurityPolicies setAlt(java.lang.String alt) { + return (GetEffectiveSecurityPolicies) super.setAlt(alt); + } + + @Override + public GetEffectiveSecurityPolicies setCallback(java.lang.String callback) { + return (GetEffectiveSecurityPolicies) super.setCallback(callback); + } + + @Override + public GetEffectiveSecurityPolicies setFields(java.lang.String fields) { + return (GetEffectiveSecurityPolicies) super.setFields(fields); + } + + @Override + public GetEffectiveSecurityPolicies setKey(java.lang.String key) { + return (GetEffectiveSecurityPolicies) super.setKey(key); + } + + @Override + public GetEffectiveSecurityPolicies setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveSecurityPolicies) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveSecurityPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveSecurityPolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveSecurityPolicies setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveSecurityPolicies) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveSecurityPolicies setUploadType(java.lang.String uploadType) { + return (GetEffectiveSecurityPolicies) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveSecurityPolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveSecurityPolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveSecurityPolicies setUserIp(java.lang.String userIp) { + return (GetEffectiveSecurityPolicies) 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 GetEffectiveSecurityPolicies 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 Backend Service for this request. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the Backend Service for this request. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the Backend Service for this request. */ + public GetEffectiveSecurityPolicies setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.backendService = backendService; + return this; + } + + @Override + public GetEffectiveSecurityPolicies set(String parameterName, Object value) { + return (GetEffectiveSecurityPolicies) super.set(parameterName, value); + } + } + /** + * Gets the most recent health check results for this BackendService. + * + * Example request body: + * + * { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } + * + * Create a request for the method "backendServices.getHealth". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. + * + * @param project + * @param backendService Name of the BackendService resource to which the queried instance belongs. + * @param content the {@link com.google.api.services.compute.model.ResourceGroupReference} + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.ResourceGroupReference content) throws java.io.IOException { + GetHealth result = new GetHealth(project, backendService, content); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/getHealth"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the most recent health check results for this BackendService. + * + * Example request body: + * + * { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } + * + * Create a request for the method "backendServices.getHealth". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

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

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

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

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.BackendService} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.BackendService 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of BackendService resources available to the specified project. + * + * Create a request for the method "backendServices.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/backendServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of BackendService resources available to the specified project. + * + * Create a request for the method "backendServices.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendServiceList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of all usable backend services for Application Load Balancers and Proxy Network + * Load Balancers in the specified project. Backend services for external and internal passthrough + * Network Load Balancers are not included in the response. + * + * Create a request for the method "backendServices.listUsable". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public ListUsable listUsable(java.lang.String project) throws java.io.IOException { + ListUsable result = new ListUsable(project); + initialize(result); + return result; + } + + public class ListUsable extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/listUsable"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of all usable backend services for Application Load Balancers and Proxy + * Network Load Balancers in the specified project. Backend services for external and internal + * passthrough Network Load Balancers are not included in the response. + * + * Create a request for the method "backendServices.listUsable". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

+ * {@link + * ListUsable#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. + * @since 1.13 + */ + protected ListUsable(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendServiceListUsable.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); + } + + @Override + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); + } + + @Override + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); + } + + @Override + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); + } + + @Override + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); + } + + @Override + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); + } + + @Override + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); + } + + @Override + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); + } + + @Override + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); + } + + @Override + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) 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 ListUsable 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; + } + + /** + * 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); + } + } + /** + * Patches the specified BackendService resource with the data included in the request. For more + * information, see Backend services overview. This method supports PATCH semantics and uses the + * JSON merge patch format and processing rules. + * + * Create a request for the method "backendServices.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 Project ID for this request. + * @param backendService Name of the BackendService resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.BackendService content) throws java.io.IOException { + Patch result = new Patch(project, backendService, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified BackendService resource with the data included in the request. For more + * information, see Backend services overview. This method supports PATCH semantics and uses the + * JSON merge patch format and processing rules. + * + * Create a request for the method "backendServices.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 Project ID for this request. + * @param backendService Name of the BackendService resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.BackendService content) { + super(Compute.this, "PATCH", 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 BackendService resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to patch. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to patch. */ + public Patch setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the edge security policy for the specified backend service. + * + * Create a request for the method "backendServices.setEdgeSecurityPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to which the edge security policy + should be set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @return the request + */ + public SetEdgeSecurityPolicy setEdgeSecurityPolicy(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { + SetEdgeSecurityPolicy result = new SetEdgeSecurityPolicy(project, backendService, content); + initialize(result); + return result; + } + + public class SetEdgeSecurityPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the edge security policy for the specified backend service. + * + * Create a request for the method "backendServices.setEdgeSecurityPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param backendService Name of the BackendService resource to which the edge security policy + should be set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @since 1.13 + */ + protected SetEdgeSecurityPolicy(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.SecurityPolicyReference 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetEdgeSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetEdgeSecurityPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetEdgeSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetEdgeSecurityPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetEdgeSecurityPolicy setAlt(java.lang.String alt) { + return (SetEdgeSecurityPolicy) super.setAlt(alt); + } + + @Override + public SetEdgeSecurityPolicy setCallback(java.lang.String callback) { + return (SetEdgeSecurityPolicy) super.setCallback(callback); + } + + @Override + public SetEdgeSecurityPolicy setFields(java.lang.String fields) { + return (SetEdgeSecurityPolicy) super.setFields(fields); + } + + @Override + public SetEdgeSecurityPolicy setKey(java.lang.String key) { + return (SetEdgeSecurityPolicy) super.setKey(key); + } + + @Override + public SetEdgeSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetEdgeSecurityPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetEdgeSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetEdgeSecurityPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetEdgeSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetEdgeSecurityPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetEdgeSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetEdgeSecurityPolicy) super.setUploadType(uploadType); + } + + @Override + public SetEdgeSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetEdgeSecurityPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetEdgeSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetEdgeSecurityPolicy) 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 SetEdgeSecurityPolicy 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 BackendService resource to which the edge security policy should be set. The + * name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to which the edge security policy should be set. The name + should conform to RFC1035. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * Name of the BackendService resource to which the edge security policy should be set. The + * name should conform to RFC1035. + */ + public SetEdgeSecurityPolicy setBackendService(java.lang.String backendService) { + this.backendService = backendService; + 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 SetEdgeSecurityPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetEdgeSecurityPolicy set(String parameterName, Object value) { + return (SetEdgeSecurityPolicy) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "backendServices.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/backendServices/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "backendServices.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

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

{@link + * Update#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 backendService Name of the BackendService resource to update. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.model.BackendService content) { + super(Compute.this, "PUT", 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 BackendService resource to update. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to update. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to update. */ + public Update setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the CrossSiteNetworks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.CrossSiteNetworks.List request = compute.crossSiteNetworks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public CrossSiteNetworks crossSiteNetworks() { + return new CrossSiteNetworks(); + } + + /** + * The "crossSiteNetworks" collection of methods. + */ + public class CrossSiteNetworks { + + /** + * Deletes the specified cross-site network in the given scope. + * + * Create a request for the method "crossSiteNetworks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param crossSiteNetwork Name of the cross-site network to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { + Delete result = new Delete(project, crossSiteNetwork); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 CROSS_SITE_NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified cross-site network in the given scope. + * + * Create a request for the method "crossSiteNetworks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 crossSiteNetwork Name of the cross-site network to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String crossSiteNetwork) { + super(Compute.this, "DELETE", REST_PATH, null, 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), + "Parameter crossSiteNetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 cross-site network to delete. */ + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** Name of the cross-site network to delete. + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + /** Name of the cross-site network to delete. */ + public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), + "Parameter crossSiteNetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.crossSiteNetwork = crossSiteNetwork; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified cross-site network in the given scope. + * + * Create a request for the method "crossSiteNetworks.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 crossSiteNetwork Name of the cross-site network to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { + Get result = new Get(project, crossSiteNetwork); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 CROSS_SITE_NETWORK_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 cross-site network in the given scope. + * + * Create a request for the method "crossSiteNetworks.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 crossSiteNetwork Name of the cross-site network to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String crossSiteNetwork) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CrossSiteNetwork.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), + "Parameter crossSiteNetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 cross-site network to return. */ + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** Name of the cross-site network to return. + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + /** Name of the cross-site network to return. */ + public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), + "Parameter crossSiteNetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.crossSiteNetwork = crossSiteNetwork; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a cross-site network in the specified project in the given scope using the parameters + * that are included in the request. + * + * Create a request for the method "crossSiteNetworks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.CrossSiteNetwork} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.CrossSiteNetwork content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a cross-site network in the specified project in the given scope using the parameters + * that are included in the request. + * + * Create a request for the method "crossSiteNetworks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.CrossSiteNetwork} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.CrossSiteNetwork 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** [Input Only] Validate the new configuration, but don't create it. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /**[ Input Only] Validate the new configuration, but don't create it. + [ + + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** [Input Only] Validate the new configuration, but don't create it. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the cross-site networks for a project in the given scope. + * + * Create a request for the method "crossSiteNetworks.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the cross-site networks for a project in the given scope. + * + * Create a request for the method "crossSiteNetworks.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CrossSiteNetworkList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified cross-site network with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "crossSiteNetworks.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 Project ID for this request. + * @param crossSiteNetwork Name of the cross-site network to update. + * @param content the {@link com.google.api.services.compute.model.CrossSiteNetwork} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.CrossSiteNetwork content) throws java.io.IOException { + Patch result = new Patch(project, crossSiteNetwork, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 CROSS_SITE_NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified cross-site network with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "crossSiteNetworks.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 Project ID for this request. + * @param crossSiteNetwork Name of the cross-site network to update. + * @param content the {@link com.google.api.services.compute.model.CrossSiteNetwork} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.CrossSiteNetwork content) { + super(Compute.this, "PATCH", 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), + "Parameter crossSiteNetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 cross-site network to update. */ + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** Name of the cross-site network to update. + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + /** Name of the cross-site network to update. */ + public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), + "Parameter crossSiteNetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.crossSiteNetwork = crossSiteNetwork; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** [Input Only] Validate the new configuration, but don't update it. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /**[ Input Only] Validate the new configuration, but don't update it. + [ + + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** [Input Only] Validate the new configuration, but don't update it. */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the DiskTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.DiskTypes.List request = compute.diskTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public DiskTypes diskTypes() { + return new DiskTypes(); + } + + /** + * The "diskTypes" collection of methods. + */ + public class DiskTypes { + + /** + * Retrieves an aggregated list of disk types. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "diskTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/diskTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of disk types. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "diskTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskTypeAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified disk type. + * + * Create a request for the method "diskTypes.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 zone The name of the zone for this request. + * @param diskType Name of the disk type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String diskType) throws java.io.IOException { + Get result = new Get(project, zone, diskType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/diskTypes/{diskType}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_TYPE_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 disk type. + * + * Create a request for the method "diskTypes.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 zone The name of the zone for this request. + * @param diskType Name of the disk type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String diskType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskType.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])?"); + } + this.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), + "Parameter diskType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 disk type to return. */ + @com.google.api.client.util.Key + private java.lang.String diskType; + + /** Name of the disk type to return. + */ + public java.lang.String getDiskType() { + return diskType; + } + + /** Name of the disk type to return. */ + public Get setDiskType(java.lang.String diskType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), + "Parameter diskType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.diskType = diskType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of disk types available to the specified project. + * + * Create a request for the method "diskTypes.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}/diskTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 disk types available to the specified project. + * + * Create a request for the method "diskTypes.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.DiskTypeList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Disks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Disks.List request = compute.disks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Disks disks() { + return new Disks(); + } + + /** + * The "disks" collection of methods. + */ + public class Disks { + + /** + * Adds existing resource policies to a disk. You can only add one policy which will be applied to + * this disk for scheduling snapshot creation. + * + * Create a request for the method "disks.addResourcePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.DisksAddResourcePoliciesRequest} + * @return the request + */ + public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksAddResourcePoliciesRequest content) throws java.io.IOException { + AddResourcePolicies result = new AddResourcePolicies(project, zone, disk, content); + initialize(result); + return result; + } + + public class AddResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds existing resource policies to a disk. You can only add one policy which will be applied to + * this disk for scheduling snapshot creation. + * + * Create a request for the method "disks.addResourcePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote + * operation.

{@link AddResourcePolicies#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. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.DisksAddResourcePoliciesRequest} + * @since 1.13 + */ + protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksAddResourcePoliciesRequest 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); + } + + @Override + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); + } + + @Override + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); + } + + @Override + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); + } + + @Override + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); + } + + @Override + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); + } + + @Override + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); + } + + @Override + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) 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 AddResourcePolicies 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 AddResourcePolicies 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; + } + + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public AddResourcePolicies setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 AddResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); + } + } + /** + * Retrieves an aggregated list of persistent disks. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "disks.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/disks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of persistent disks. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "disks.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Bulk create a set of disks. + * + * Create a request for the method "disks.bulkInsert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @return the request + */ + public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertDiskResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, zone, content); + initialize(result); + return result; + } + + public class BulkInsert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkInsert"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Bulk create a set of disks. + * + * Create a request for the method "disks.bulkInsert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

+ * {@link + * BulkInsert#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. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @since 1.13 + */ + protected BulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertDiskResource 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); + } + + @Override + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); + } + + @Override + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); + } + + @Override + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); + } + + @Override + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); + } + + @Override + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); + } + + @Override + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); + } + + @Override + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); + } + + @Override + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); + } + + @Override + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) 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 BulkInsert 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 BulkInsert 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; + } + + /** + * 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 BulkInsert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); + } + } + /** + * Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "disks.bulkSetLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link BulkSetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} + * @return the request + */ + public BulkSetLabels bulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest content) throws java.io.IOException { + BulkSetLabels result = new BulkSetLabels(project, zone, content); + initialize(result); + return result; + } + + public class BulkSetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkSetLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "disks.bulkSetLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link BulkSetLabels#execute()} method to invoke the remote operation.

+ * {@link BulkSetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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. + * @param content the {@link com.google.api.services.compute.model.BulkZoneSetLabelsRequest} + * @since 1.13 + */ + protected BulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkZoneSetLabelsRequest 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public BulkSetLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkSetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public BulkSetLabels setAccessToken(java.lang.String accessToken) { + return (BulkSetLabels) super.setAccessToken(accessToken); + } + + @Override + public BulkSetLabels setAlt(java.lang.String alt) { + return (BulkSetLabels) super.setAlt(alt); + } + + @Override + public BulkSetLabels setCallback(java.lang.String callback) { + return (BulkSetLabels) super.setCallback(callback); + } + + @Override + public BulkSetLabels setFields(java.lang.String fields) { + return (BulkSetLabels) super.setFields(fields); + } + + @Override + public BulkSetLabels setKey(java.lang.String key) { + return (BulkSetLabels) super.setKey(key); + } + + @Override + public BulkSetLabels setOauthToken(java.lang.String oauthToken) { + return (BulkSetLabels) super.setOauthToken(oauthToken); + } + + @Override + public BulkSetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkSetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkSetLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkSetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public BulkSetLabels setUploadType(java.lang.String uploadType) { + return (BulkSetLabels) super.setUploadType(uploadType); + } + + @Override + public BulkSetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkSetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public BulkSetLabels setUserIp(java.lang.String userIp) { + return (BulkSetLabels) 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 BulkSetLabels 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 BulkSetLabels 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; + } + + /** + * 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 BulkSetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public BulkSetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public BulkSetLabels set(String parameterName, Object value) { + return (BulkSetLabels) super.set(parameterName, value); + } + } + /** + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using + * snapshots.insert instead, as that method supports more features, such as creating snapshots in a + * project different from the source disk project. + * + * Create a request for the method "disks.createSnapshot". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk Name of the persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @return the request + */ + public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { + CreateSnapshot result = new CreateSnapshot(project, zone, disk, content); + initialize(result); + return result; + } + + public class CreateSnapshot extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/createSnapshot"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider + * using snapshots.insert instead, as that method supports more features, such as creating + * snapshots in a project different from the source disk project. + * + * Create a request for the method "disks.createSnapshot". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. + *

{@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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. + * @param disk Name of the persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @since 1.13 + */ + protected CreateSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.Snapshot 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { + return (CreateSnapshot) super.set$Xgafv($Xgafv); + } + + @Override + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); + } + + @Override + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); + } + + @Override + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); + } + + @Override + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); + } + + @Override + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); + } + + @Override + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); + } + + @Override + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); + } + + @Override + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); + } + + @Override + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) 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 CreateSnapshot 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 CreateSnapshot 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 persistent disk to snapshot. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the persistent disk to snapshot. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the persistent disk to snapshot. */ + public CreateSnapshot setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + */ + @com.google.api.client.util.Key + private java.lang.Boolean guestFlush; + + /**[ Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare + [ for the snapshot process. + [ + + */ + public java.lang.Boolean getGuestFlush() { + return guestFlush; + } + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + */ + public CreateSnapshot setGuestFlush(java.lang.Boolean guestFlush) { + this.guestFlush = guestFlush; + 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 CreateSnapshot setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public CreateSnapshot set(String parameterName, Object value) { + return (CreateSnapshot) super.set(parameterName, value); + } + } + /** + * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is + * irreversible. However, deleting a disk does not delete any snapshots previously made from the + * disk. You must separatelydelete snapshots. + * + * Create a request for the method "disks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk Name of the persistent disk to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { + Delete result = new Delete(project, zone, disk); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("\\S{1,66}"); + + /** + * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is + * irreversible. However, deleting a disk does not delete any snapshots previously made from the + * disk. You must separatelydelete snapshots. + * + * Create a request for the method "disks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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. + * @param disk Name of the persistent disk to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String disk) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 persistent disk to delete. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the persistent disk to delete. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the persistent disk to delete. */ + public Delete setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); + } + this.disk = disk; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified persistent disk. + * + * Create a request for the method "disks.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 zone The name of the zone for this request. + * @param disk Name of the persistent disk to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { + Get result = new Get(project, zone, disk); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_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 persistent disk. + * + * Create a request for the method "disks.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 zone The name of the zone for this request. + * @param disk Name of the persistent disk to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String disk) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Disk.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 persistent disk to return. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the persistent disk to return. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the persistent disk to return. */ + public Get setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "disks.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "disks.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 GetIamPolicy 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a persistent disk in the specified project using the data in the request. You can create + * a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data + * disk by omitting all properties. You can also create a disk that is larger than the default size + * by specifying the sizeGb property. + * + * Create a request for the method "disks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Disk content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a persistent disk in the specified project using the data in the request. You can + * create a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 + * GB data disk by omitting all properties. You can also create a disk that is larger than the + * default size by specifying the sizeGb property. + * + * Create a request for the method "disks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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. + * @param content the {@link com.google.api.services.compute.model.Disk} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Disk 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Source image to restore onto a disk. This field is optional. */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; + + /** Source image to restore onto a disk. This field is optional. + */ + public java.lang.String getSourceImage() { + return sourceImage; + } + + /** Source image to restore onto a disk. This field is optional. */ + public Insert setSourceImage(java.lang.String sourceImage) { + this.sourceImage = sourceImage; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of persistent disks contained within the specified zone. + * + * Create a request for the method "disks.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}/disks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 persistent disks contained within the specified zone. + * + * Create a request for the method "disks.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.DiskList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Removes resource policies from a disk. + * + * Create a request for the method "disks.removeResourcePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.DisksRemoveResourcePoliciesRequest} + * @return the request + */ + public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksRemoveResourcePoliciesRequest content) throws java.io.IOException { + RemoveResourcePolicies result = new RemoveResourcePolicies(project, zone, disk, content); + initialize(result); + return result; + } + + public class RemoveResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes resource policies from a disk. + * + * Create a request for the method "disks.removeResourcePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation.

{@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic + * es.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. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.DisksRemoveResourcePoliciesRequest} + * @since 1.13 + */ + protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksRemoveResourcePoliciesRequest 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); + } + + @Override + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); + } + + @Override + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); + } + + @Override + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); + } + + @Override + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); + } + + @Override + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + } + + @Override + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); + } + + @Override + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) 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 RemoveResourcePolicies 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 RemoveResourcePolicies 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; + } + + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public RemoveResourcePolicies setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); + } + } + /** + * Resizes the specified persistent disk. You can only increase the size of the disk. + * + * Create a request for the method "disks.resize". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.DisksResizeRequest} + * @return the request + */ + public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksResizeRequest content) throws java.io.IOException { + Resize result = new Resize(project, zone, disk, content); + initialize(result); + return result; + } + + public class Resize extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/resize"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Resizes the specified persistent disk. You can only increase the size of the disk. + * + * Create a request for the method "disks.resize". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link + * Resize#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. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.DisksResizeRequest} + * @since 1.13 + */ + protected Resize(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksResizeRequest 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); + } + + @Override + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); + } + + @Override + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); + } + + @Override + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); + } + + @Override + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); + } + + @Override + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); + } + + @Override + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); + } + + @Override + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); + } + + @Override + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); + } + + @Override + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resize setUserIp(java.lang.String userIp) { + return (Resize) 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 Resize 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 Resize 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; + } + + /** The name of the persistent disk. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The name of the persistent disk. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The name of the persistent disk. */ + public Resize setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 Resize setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "disks.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "disks.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

+ * {@link + * SetLabels#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. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetLabelsRequest 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.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 SetLabels 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Starts asynchronous replication. Must be invoked on the primary disk. + * + * Create a request for the method "disks.startAsyncReplication". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StartAsyncReplication#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.DisksStartAsyncReplicationRequest} + * @return the request + */ + public StartAsyncReplication startAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksStartAsyncReplicationRequest content) throws java.io.IOException { + StartAsyncReplication result = new StartAsyncReplication(project, zone, disk, content); + initialize(result); + return result; + } + + public class StartAsyncReplication extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Starts asynchronous replication. Must be invoked on the primary disk. + * + * Create a request for the method "disks.startAsyncReplication". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StartAsyncReplication#execute()} method to invoke the remote + * operation.

{@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service + * s.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. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.DisksStartAsyncReplicationRequest} + * @since 1.13 + */ + protected StartAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksStartAsyncReplicationRequest 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StartAsyncReplication) super.set$Xgafv($Xgafv); + } + + @Override + public StartAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StartAsyncReplication) super.setAccessToken(accessToken); + } + + @Override + public StartAsyncReplication setAlt(java.lang.String alt) { + return (StartAsyncReplication) super.setAlt(alt); + } + + @Override + public StartAsyncReplication setCallback(java.lang.String callback) { + return (StartAsyncReplication) super.setCallback(callback); + } + + @Override + public StartAsyncReplication setFields(java.lang.String fields) { + return (StartAsyncReplication) super.setFields(fields); + } + + @Override + public StartAsyncReplication setKey(java.lang.String key) { + return (StartAsyncReplication) super.setKey(key); + } + + @Override + public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StartAsyncReplication) super.setOauthToken(oauthToken); + } + + @Override + public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); + } + + @Override + public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StartAsyncReplication) super.setQuotaUser(quotaUser); + } + + @Override + public StartAsyncReplication setUploadType(java.lang.String uploadType) { + return (StartAsyncReplication) super.setUploadType(uploadType); + } + + @Override + public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StartAsyncReplication setUserIp(java.lang.String userIp) { + return (StartAsyncReplication) 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 StartAsyncReplication 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 StartAsyncReplication 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; + } + + /** The name of the persistent disk. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The name of the persistent disk. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The name of the persistent disk. */ + public StartAsyncReplication setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 StartAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StartAsyncReplication set(String parameterName, Object value) { + return (StartAsyncReplication) super.set(parameterName, value); + } + } + /** + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * + * Create a request for the method "disks.stopAsyncReplication". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk The name of the persistent disk. + * @return the request + */ + public StopAsyncReplication stopAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { + StopAsyncReplication result = new StopAsyncReplication(project, zone, disk); + initialize(result); + return result; + } + + public class StopAsyncReplication extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * + * Create a request for the method "disks.stopAsyncReplication". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote + * operation.

{@link StopAsyncReplication#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. + * @param disk The name of the persistent disk. + * @since 1.13 + */ + protected StopAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopAsyncReplication) super.set$Xgafv($Xgafv); + } + + @Override + public StopAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopAsyncReplication) super.setAccessToken(accessToken); + } + + @Override + public StopAsyncReplication setAlt(java.lang.String alt) { + return (StopAsyncReplication) super.setAlt(alt); + } + + @Override + public StopAsyncReplication setCallback(java.lang.String callback) { + return (StopAsyncReplication) super.setCallback(callback); + } + + @Override + public StopAsyncReplication setFields(java.lang.String fields) { + return (StopAsyncReplication) super.setFields(fields); + } + + @Override + public StopAsyncReplication setKey(java.lang.String key) { + return (StopAsyncReplication) super.setKey(key); + } + + @Override + public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopAsyncReplication) super.setOauthToken(oauthToken); + } + + @Override + public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); + } + + @Override + public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopAsyncReplication) super.setQuotaUser(quotaUser); + } + + @Override + public StopAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopAsyncReplication) super.setUploadType(uploadType); + } + + @Override + public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StopAsyncReplication setUserIp(java.lang.String userIp) { + return (StopAsyncReplication) 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 StopAsyncReplication 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 StopAsyncReplication 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; + } + + /** The name of the persistent disk. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The name of the persistent disk. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The name of the persistent disk. */ + public StopAsyncReplication setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 StopAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StopAsyncReplication set(String parameterName, Object value) { + return (StopAsyncReplication) super.set(parameterName, value); + } + } + /** + * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the + * primary or secondary scope. + * + * Create a request for the method "disks.stopGroupAsyncReplication". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. This must be the zone of the primary + or secondary disks in + * the consistency group. + * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource} + * @return the request + */ + public StopGroupAsyncReplication stopGroupAsyncReplication(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) throws java.io.IOException { + StopGroupAsyncReplication result = new StopGroupAsyncReplication(project, zone, content); + initialize(result); + return result; + } + + public class StopGroupAsyncReplication extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the + * primary or secondary scope. + * + * Create a request for the method "disks.stopGroupAsyncReplication". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote + * operation.

{@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser + * vices.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. This must be the zone of the primary + or secondary disks in + * the consistency group. + * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource} + * @since 1.13 + */ + protected StopGroupAsyncReplication(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); + } + + @Override + public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopGroupAsyncReplication) super.setAccessToken(accessToken); + } + + @Override + public StopGroupAsyncReplication setAlt(java.lang.String alt) { + return (StopGroupAsyncReplication) super.setAlt(alt); + } + + @Override + public StopGroupAsyncReplication setCallback(java.lang.String callback) { + return (StopGroupAsyncReplication) super.setCallback(callback); + } + + @Override + public StopGroupAsyncReplication setFields(java.lang.String fields) { + return (StopGroupAsyncReplication) super.setFields(fields); + } + + @Override + public StopGroupAsyncReplication setKey(java.lang.String key) { + return (StopGroupAsyncReplication) super.setKey(key); + } + + @Override + public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); + } + + @Override + public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); + } + + @Override + public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); + } + + @Override + public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopGroupAsyncReplication) super.setUploadType(uploadType); + } + + @Override + public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { + return (StopGroupAsyncReplication) 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 StopGroupAsyncReplication 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. This must be the zone of the primary or secondary + * disks in the consistency group. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. This must be the zone of the primary or secondary disks in + the consistency group. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone for this request. This must be the zone of the primary or secondary + * disks in the consistency group. + */ + public StopGroupAsyncReplication 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; + } + + /** + * 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 StopGroupAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StopGroupAsyncReplication set(String parameterName, Object value) { + return (StopGroupAsyncReplication) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "disks.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "disks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.Disk content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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; + } + + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public Update setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Update setPaths(java.util.List paths) { + this.paths = paths; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + * Create a request for the method "disks.updateKmsKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param disk Name of the Disk resource, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.DiskUpdateKmsKeyRequest} + * @return the request + */ + public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DiskUpdateKmsKeyRequest content) throws java.io.IOException { + UpdateKmsKey result = new UpdateKmsKey(project, zone, disk, content); + initialize(result); + return result; + } + + public class UpdateKmsKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + * Create a request for the method "disks.updateKmsKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation.

+ * {@link + * UpdateKmsKey#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. + * @param disk Name of the Disk resource, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.DiskUpdateKmsKeyRequest} + * @since 1.13 + */ + protected UpdateKmsKey(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DiskUpdateKmsKeyRequest 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.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])?"); + } + this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { + return (UpdateKmsKey) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateKmsKey setAccessToken(java.lang.String accessToken) { + return (UpdateKmsKey) super.setAccessToken(accessToken); + } + + @Override + public UpdateKmsKey setAlt(java.lang.String alt) { + return (UpdateKmsKey) super.setAlt(alt); + } + + @Override + public UpdateKmsKey setCallback(java.lang.String callback) { + return (UpdateKmsKey) super.setCallback(callback); + } + + @Override + public UpdateKmsKey setFields(java.lang.String fields) { + return (UpdateKmsKey) super.setFields(fields); + } + + @Override + public UpdateKmsKey setKey(java.lang.String key) { + return (UpdateKmsKey) super.setKey(key); + } + + @Override + public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { + return (UpdateKmsKey) super.setOauthToken(oauthToken); + } + + @Override + public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { + return (UpdateKmsKey) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateKmsKey setUploadType(java.lang.String uploadType) { + return (UpdateKmsKey) super.setUploadType(uploadType); + } + + @Override + public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateKmsKey setUserIp(java.lang.String userIp) { + return (UpdateKmsKey) 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 UpdateKmsKey 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 UpdateKmsKey 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 Disk resource, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the Disk resource, should conform to RFC1035. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the Disk resource, should conform to RFC1035. */ + public UpdateKmsKey setDisk(java.lang.String disk) { + this.disk = disk; + 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 UpdateKmsKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateKmsKey set(String parameterName, Object value) { + return (UpdateKmsKey) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ExternalVpnGateways collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ExternalVpnGateways.List request = compute.externalVpnGateways().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ExternalVpnGateways externalVpnGateways() { + return new ExternalVpnGateways(); + } + + /** + * The "externalVpnGateways" collection of methods. + */ + public class ExternalVpnGateways { + + /** + * Deletes the specified externalVpnGateway. + * + * Create a request for the method "externalVpnGateways.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param externalVpnGateway Name of the externalVpnGateways to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String externalVpnGateway) throws java.io.IOException { + Delete result = new Delete(project, externalVpnGateway); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/externalVpnGateways/{externalVpnGateway}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 EXTERNAL_VPN_GATEWAY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Deletes the specified externalVpnGateway. + * + * Create a request for the method "externalVpnGateways.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 externalVpnGateway Name of the externalVpnGateways to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String externalVpnGateway) { + super(Compute.this, "DELETE", REST_PATH, null, 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.externalVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(externalVpnGateway, "Required parameter externalVpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), + "Parameter externalVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 externalVpnGateways to delete. */ + @com.google.api.client.util.Key + private java.lang.String externalVpnGateway; + + /** Name of the externalVpnGateways to delete. + */ + public java.lang.String getExternalVpnGateway() { + return externalVpnGateway; + } + + /** Name of the externalVpnGateways to delete. */ + public Delete setExternalVpnGateway(java.lang.String externalVpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), + "Parameter externalVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.externalVpnGateway = externalVpnGateway; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a + * list() request. + * + * Create a request for the method "externalVpnGateways.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 externalVpnGateway Name of the externalVpnGateway to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String externalVpnGateway) throws java.io.IOException { + Get result = new Get(project, externalVpnGateway); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/externalVpnGateways/{externalVpnGateway}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 EXTERNAL_VPN_GATEWAY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making + * a list() request. + * + * Create a request for the method "externalVpnGateways.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 externalVpnGateway Name of the externalVpnGateway to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String externalVpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExternalVpnGateway.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.externalVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(externalVpnGateway, "Required parameter externalVpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), + "Parameter externalVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 externalVpnGateway to return. */ + @com.google.api.client.util.Key + private java.lang.String externalVpnGateway; + + /** Name of the externalVpnGateway to return. + */ + public java.lang.String getExternalVpnGateway() { + return externalVpnGateway; + } + + /** Name of the externalVpnGateway to return. */ + public Get setExternalVpnGateway(java.lang.String externalVpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), + "Parameter externalVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.externalVpnGateway = externalVpnGateway; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a ExternalVpnGateway in the specified project using the data included in the request. + * + * Create a request for the method "externalVpnGateways.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ExternalVpnGateway} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.ExternalVpnGateway content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/externalVpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a ExternalVpnGateway in the specified project using the data included in the request. + * + * Create a request for the method "externalVpnGateways.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.ExternalVpnGateway} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.ExternalVpnGateway 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of ExternalVpnGateway available to the specified project. + * + * Create a request for the method "externalVpnGateways.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/externalVpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of ExternalVpnGateway available to the specified project. + * + * Create a request for the method "externalVpnGateways.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExternalVpnGatewayList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "externalVpnGateways.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/externalVpnGateways/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "externalVpnGateways.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the FirewallPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.FirewallPolicies.List request = compute.firewallPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FirewallPolicies firewallPolicies() { + return new FirewallPolicies(); + } + + /** + * The "firewallPolicies" collection of methods. + */ + public class FirewallPolicies { + + /** + * Inserts an association for the specified firewall policy. + * + * Create a request for the method "firewallPolicies.addAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @return the request + */ + public AddAssociation addAssociation(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(firewallPolicy, content); + initialize(result); + return result; + } + + public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/addAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Inserts an association for the specified firewall policy. + * + * Create a request for the method "firewallPolicies.addAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @since 1.13 + */ + protected AddAssociation(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.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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); + } + + @Override + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); + } + + @Override + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); + } + + @Override + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); + } + + @Override + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); + } + + @Override + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); + } + + @Override + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); + } + + @Override + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); + } + + /** 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 AddAssociation 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; + + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; + 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 AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a firewall policy. + * + * Create a request for the method "firewallPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(firewallPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/addRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Inserts a rule into a firewall policy. + * + * Create a request for the method "firewallPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); + } + + /** 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 AddRule 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + 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 AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Copies rules to the specified firewall policy. + * + * Create a request for the method "firewallPolicies.cloneRules". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public CloneRules cloneRules(java.lang.String firewallPolicy) throws java.io.IOException { + CloneRules result = new CloneRules(firewallPolicy); + initialize(result); + return result; + } + + public class CloneRules extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/cloneRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Copies rules to the specified firewall policy. + * + * Create a request for the method "firewallPolicies.cloneRules". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected CloneRules(java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); + } + + @Override + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); + } + + @Override + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); + } + + @Override + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); + } + + @Override + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); + } + + @Override + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); + } + + @Override + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); + } + + @Override + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); + } + + @Override + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); + } + + @Override + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); + } + + @Override + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); + } + + /** 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 CloneRules 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + 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 CloneRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The firewall policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceFirewallPolicy; + + /** The firewall policy from which to copy rules. + */ + public java.lang.String getSourceFirewallPolicy() { + return sourceFirewallPolicy; + } + + /** The firewall policy from which to copy rules. */ + public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { + this.sourceFirewallPolicy = sourceFirewallPolicy; + return this; + } + + @Override + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. + * + * Create a request for the method "firewallPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to delete. + * @return the request + */ + public Delete delete(java.lang.String firewallPolicy) throws java.io.IOException { + Delete result = new Delete(firewallPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Deletes the specified policy. + * + * Create a request for the method "firewallPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String firewallPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Name of the firewall policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to delete. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to delete. */ + public Delete 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified firewall policy. + * + * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to get. + * @return the request + */ + public Get get(java.lang.String firewallPolicy) throws java.io.IOException { + Get result = new Get(firewallPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Returns the specified firewall policy. + * + * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to get. + * @since 1.13 + */ + protected Get(java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** Name of the firewall policy to get. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to get. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to get. */ + public Get 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets an association with the specified name. + * + * Create a request for the method "firewallPolicies.getAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String firewallPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(firewallPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/getAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Gets an association with the specified name. + * + * Create a request for the method "firewallPolicies.getAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetAssociation(java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } + + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } + + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } + + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } + + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } + + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } + + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); + } + + /** Name of the firewall policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried rule belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried rule belongs. */ + public GetAssociation 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The name of the association to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the firewall policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the firewall policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "firewallPolicies.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "firewallPolicies.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Gets a rule of the specified priority. + * + * Create a request for the method "firewallPolicies.getRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @return the request + */ + public GetRule getRule(java.lang.String firewallPolicy) throws java.io.IOException { + GetRule result = new GetRule(firewallPolicy); + initialize(result); + return result; + } + + public class GetRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/getRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Gets a rule of the specified priority. + * + * Create a request for the method "firewallPolicies.getRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); + } + + /** Name of the firewall policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried rule belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried rule belongs. */ + public GetRule 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the firewall policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "firewallPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @return the request + */ + public Insert insert(com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Insert result = new Insert(content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "firewallPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @since 1.13 + */ + protected Insert(com.google.api.services.compute.model.FirewallPolicy content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder + or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public Insert setParentId(java.lang.String parentId) { + this.parentId = parentId; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all the policies that have been configured for the specified folder or organization. + * + * Create a request for the method "firewallPolicies.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. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Lists all the policies that have been configured for the specified folder or organization. + * + * Create a request for the method "firewallPolicies.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.

+ * + * @since 1.13 + */ + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyList.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** + * 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; + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder + or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public List setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists associations of a specified target, i.e., organization or folder. + * + * Create a request for the method "firewallPolicies.listAssociations". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + * + * @return the request + */ + public ListAssociations listAssociations() throws java.io.IOException { + ListAssociations result = new ListAssociations(); + initialize(result); + return result; + } + + public class ListAssociations extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/listAssociations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Lists associations of a specified target, i.e., organization or folder. + * + * Create a request for the method "firewallPolicies.listAssociations". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + *

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

+ * + * @since 1.13 + */ + protected ListAssociations() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPoliciesListAssociationsResponse.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListAssociations set$Xgafv(java.lang.String $Xgafv) { + return (ListAssociations) super.set$Xgafv($Xgafv); + } + + @Override + public ListAssociations setAccessToken(java.lang.String accessToken) { + return (ListAssociations) super.setAccessToken(accessToken); + } + + @Override + public ListAssociations setAlt(java.lang.String alt) { + return (ListAssociations) super.setAlt(alt); + } + + @Override + public ListAssociations setCallback(java.lang.String callback) { + return (ListAssociations) super.setCallback(callback); + } + + @Override + public ListAssociations setFields(java.lang.String fields) { + return (ListAssociations) super.setFields(fields); + } + + @Override + public ListAssociations setKey(java.lang.String key) { + return (ListAssociations) super.setKey(key); + } + + @Override + public ListAssociations setOauthToken(java.lang.String oauthToken) { + return (ListAssociations) super.setOauthToken(oauthToken); + } + + @Override + public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAssociations) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAssociations setQuotaUser(java.lang.String quotaUser) { + return (ListAssociations) super.setQuotaUser(quotaUser); + } + + @Override + public ListAssociations setUploadType(java.lang.String uploadType) { + return (ListAssociations) super.setUploadType(uploadType); + } + + @Override + public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAssociations) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListAssociations setUserIp(java.lang.String userIp) { + return (ListAssociations) super.setUserIp(userIp); + } + + /** + * If set to "true", the response will contain a list of all associations for the containing + * folders and the containing organization of the target. The parameter has no effect if the + * target is an organization. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeInheritedPolicies; + + /** If set to "true", the response will contain a list of all associations for the containing folders + and the containing organization of the target. The parameter has no effect if the target is an + organization. + */ + public java.lang.Boolean getIncludeInheritedPolicies() { + return includeInheritedPolicies; + } + + /** + * If set to "true", the response will contain a list of all associations for the containing + * folders and the containing organization of the target. The parameter has no effect if the + * target is an organization. + */ + public ListAssociations setIncludeInheritedPolicies(java.lang.Boolean includeInheritedPolicies) { + this.includeInheritedPolicies = includeInheritedPolicies; + return this; + } + + /** + * The target resource to list associations. It is an organization, or a folder. + */ + @com.google.api.client.util.Key + private java.lang.String targetResource; + + /** The target resource to list associations. It is an organization, or a folder. + */ + public java.lang.String getTargetResource() { + return targetResource; + } + + /** + * The target resource to list associations. It is an organization, or a folder. + */ + public ListAssociations setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; + return this; + } + + @Override + public ListAssociations set(String parameterName, Object value) { + return (ListAssociations) super.set(parameterName, value); + } + } + /** + * Moves the specified firewall policy. + * + * Create a request for the method "firewallPolicies.move". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public Move move(java.lang.String firewallPolicy) throws java.io.IOException { + Move result = new Move(firewallPolicy); + initialize(result); + return result; + } + + public class Move extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/move"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Moves the specified firewall policy. + * + * Create a request for the method "firewallPolicies.move". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected Move(java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); + } + + @Override + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); + } + + @Override + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); + } + + @Override + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); + } + + @Override + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); + } + + @Override + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); + } + + @Override + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); + } + + @Override + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); + } + + @Override + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); + } + + @Override + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); + } + + @Override + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); + } + + /** 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 Move 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** + * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the + * parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent + is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** + * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the + * parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public Move setParentId(java.lang.String parentId) { + this.parentId = parentId; + 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 Move setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); + } + } + /** + * Patches the specified policy with the data included in the request. + * + * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @return the request + */ + public Patch patch(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Patch result = new Patch(firewallPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Patches the specified policy with the data included in the request. + * + * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Patches a rule of the specified priority. + * + * Create a request for the method "firewallPolicies.patchRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @return the request + */ + public PatchRule patchRule(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(firewallPolicy, content); + initialize(result); + return result; + } + + public class PatchRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/patchRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Patches a rule of the specified priority. + * + * Create a request for the method "firewallPolicies.patchRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @since 1.13 + */ + protected PatchRule(java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); + } + + @Override + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); + } + + @Override + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); + } + + @Override + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); + } + + @Override + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); + } + + @Override + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); + } + + @Override + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); + } + + /** 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 PatchRule 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 PatchRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Removes an association for the specified firewall policy. + * + * Create a request for the method "firewallPolicies.removeAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public RemoveAssociation removeAssociation(java.lang.String firewallPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(firewallPolicy); + initialize(result); + return result; + } + + public class RemoveAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/removeAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Removes an association for the specified firewall policy. + * + * Create a request for the method "firewallPolicies.removeAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected RemoveAssociation(java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); + } + + @Override + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); + } + + @Override + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); + } + + @Override + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); + } + + @Override + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); + } + + @Override + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); + } + + @Override + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); + } + + @Override + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); + } + + /** 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 RemoveAssociation 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** Name for the attachment that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the attachment that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; + 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 RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); + } + } + /** + * Deletes a rule of the specified priority. + * + * Create a request for the method "firewallPolicies.removeRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public RemoveRule removeRule(java.lang.String firewallPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(firewallPolicy); + initialize(result); + return result; + } + + public class RemoveRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/removeRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Deletes a rule of the specified priority. + * + * Create a request for the method "firewallPolicies.removeRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

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

+ * + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected RemoveRule(java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); + } + + @Override + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); + } + + @Override + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); + } + + @Override + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); + } + + @Override + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); + } + + @Override + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); + } + + @Override + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); + } + + @Override + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); + } + + /** 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 RemoveRule 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 " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "firewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalOrganizationSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.compute.model.GlobalOrganizationSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "locations/global/firewallPolicies/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "firewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "(firewallPolicies/)?[0-9]{0,20}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Firewalls collection. + * + *

The typical use is:

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

{@link + * Delete#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 firewall Name of the firewall rule to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String firewall) { + super(Compute.this, "DELETE", REST_PATH, null, 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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 firewall rule to delete. */ + @com.google.api.client.util.Key + private java.lang.String firewall; + + /** Name of the firewall rule to delete. + */ + public java.lang.String getFirewall() { + return firewall; + } + + /** Name of the firewall rule to delete. */ + public Delete setFirewall(java.lang.String firewall) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewall = firewall; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified firewall. + * + * Create a request for the method "firewalls.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 firewall Name of the firewall rule to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String firewall) throws java.io.IOException { + Get result = new Get(project, firewall); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewalls/{firewall}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_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 firewall. + * + * Create a request for the method "firewalls.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 firewall Name of the firewall rule to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String firewall) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Firewall.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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 firewall rule to return. */ + @com.google.api.client.util.Key + private java.lang.String firewall; + + /** Name of the firewall rule to return. + */ + public java.lang.String getFirewall() { + return firewall; + } + + /** Name of the firewall rule to return. */ + public Get setFirewall(java.lang.String firewall) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewall = firewall; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a firewall rule in the specified project using the data included in the request. + * + * Create a request for the method "firewalls.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Firewall} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Firewall content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewalls"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a firewall rule in the specified project using the data included in the request. + * + * Create a request for the method "firewalls.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Firewall} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Firewall 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of firewall rules available to the specified project. + * + * Create a request for the method "firewalls.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/firewalls"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of firewall rules available to the specified project. + * + * Create a request for the method "firewalls.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified firewall rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "firewalls.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 Project ID for this request. + * @param firewall Name of the firewall rule to patch. + * @param content the {@link com.google.api.services.compute.model.Firewall} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String firewall, com.google.api.services.compute.model.Firewall content) throws java.io.IOException { + Patch result = new Patch(project, firewall, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewalls/{firewall}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified firewall rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "firewalls.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 Project ID for this request. + * @param firewall Name of the firewall rule to patch. + * @param content the {@link com.google.api.services.compute.model.Firewall} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String firewall, com.google.api.services.compute.model.Firewall content) { + super(Compute.this, "PATCH", 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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 firewall rule to patch. */ + @com.google.api.client.util.Key + private java.lang.String firewall; + + /** Name of the firewall rule to patch. + */ + public java.lang.String getFirewall() { + return firewall; + } + + /** Name of the firewall rule to patch. */ + public Patch setFirewall(java.lang.String firewall) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewall = firewall; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "firewalls.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewalls/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "firewalls.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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 firewall Name of the firewall rule to update. + * @param content the {@link com.google.api.services.compute.model.Firewall} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String firewall, com.google.api.services.compute.model.Firewall content) { + super(Compute.this, "PUT", 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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 firewall rule to update. */ + @com.google.api.client.util.Key + private java.lang.String firewall; + + /** Name of the firewall rule to update. + */ + public java.lang.String getFirewall() { + return firewall; + } + + /** Name of the firewall rule to update. */ + public Update setFirewall(java.lang.String firewall) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), + "Parameter firewall must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewall = firewall; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ForwardingRules collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ForwardingRules.List request = compute.forwardingRules().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ForwardingRules forwardingRules() { + return new ForwardingRules(); + } + + /** + * The "forwardingRules" collection of methods. + */ + public class ForwardingRules { + + /** + * Retrieves an aggregated list of forwarding rules. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "forwardingRules.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/forwardingRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of forwarding rules. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "forwardingRules.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified ForwardingRule resource. + * + * Create a request for the method "forwardingRules.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { + Delete result = new Delete(project, region, forwardingRule); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified ForwardingRule resource. + * + * Create a request for the method "forwardingRules.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { + super(Compute.this, "DELETE", REST_PATH, null, 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 ForwardingRule resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource to delete. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource to delete. */ + public Delete setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified ForwardingRule resource. + * + * Create a request for the method "forwardingRules.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 region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { + Get result = new Get(project, region, forwardingRule); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_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 ForwardingRule resource. + * + * Create a request for the method "forwardingRules.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 region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRule.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 ForwardingRule resource to return. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource to return. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource to return. */ + public Get setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String view; + + /** + + */ + public java.lang.String getView() { + return view; + } + + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a ForwardingRule resource in the specified project and region using the data included in + * the request. + * + * Create a request for the method "forwardingRules.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a ForwardingRule resource in the specified project and region using the data included + * in the request. + * + * Create a request for the method "forwardingRules.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ForwardingRule 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of ForwardingRule resources available to the specified project and region. + * + * Create a request for the method "forwardingRules.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 region Name of the region scoping 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}/forwardingRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of ForwardingRule resources available to the specified project and region. + * + * Create a request for the method "forwardingRules.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 region Name of the region scoping 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.ForwardingRuleList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you + * can only patch the network_tier field. + * + * Create a request for the method "forwardingRules.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { + Patch result = new Patch(project, region, forwardingRule, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, + * you can only patch the network_tier field. + * + * Create a request for the method "forwardingRules.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) { + super(Compute.this, "PATCH", 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 ForwardingRule resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource to patch. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource to patch. */ + public Patch setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "forwardingRules.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "forwardingRules.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Changes target URL for forwarding rule. The new target should be of the same type as the old + * target. + * + * Create a request for the method "forwardingRules.setTarget". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @return the request + */ + public SetTarget setTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { + SetTarget result = new SetTarget(project, region, forwardingRule, content); + initialize(result); + return result; + } + + public class SetTarget extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes target URL for forwarding rule. The new target should be of the same type as the old + * target. + * + * Create a request for the method "forwardingRules.setTarget". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @since 1.13 + */ + protected SetTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetTarget set$Xgafv(java.lang.String $Xgafv) { + return (SetTarget) super.set$Xgafv($Xgafv); + } + + @Override + public SetTarget setAccessToken(java.lang.String accessToken) { + return (SetTarget) super.setAccessToken(accessToken); + } + + @Override + public SetTarget setAlt(java.lang.String alt) { + return (SetTarget) super.setAlt(alt); + } + + @Override + public SetTarget setCallback(java.lang.String callback) { + return (SetTarget) super.setCallback(callback); + } + + @Override + public SetTarget setFields(java.lang.String fields) { + return (SetTarget) super.setFields(fields); + } + + @Override + public SetTarget setKey(java.lang.String key) { + return (SetTarget) super.setKey(key); + } + + @Override + public SetTarget setOauthToken(java.lang.String oauthToken) { + return (SetTarget) super.setOauthToken(oauthToken); + } + + @Override + public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTarget) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetTarget setQuotaUser(java.lang.String quotaUser) { + return (SetTarget) super.setQuotaUser(quotaUser); + } + + @Override + public SetTarget setUploadType(java.lang.String uploadType) { + return (SetTarget) super.setUploadType(uploadType); + } + + @Override + public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTarget) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetTarget setUserIp(java.lang.String userIp) { + return (SetTarget) 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 SetTarget 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 SetTarget 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 ForwardingRule resource in which target is to be set. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource in which target is to be set. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource in which target is to be set. */ + public SetTarget setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + 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 SetTarget setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetTarget set(String parameterName, Object value) { + return (SetTarget) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the FutureReservations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.FutureReservations.List request = compute.futureReservations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FutureReservations futureReservations() { + return new FutureReservations(); + } + + /** + * The "futureReservations" collection of methods. + */ + public class FutureReservations { + + /** + * Retrieves an aggregated list of future reservations. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "futureReservations.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/futureReservations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of future reservations. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "futureReservations.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservationsAggregatedListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Cancel the specified future reservation. + * + * Create a request for the method "futureReservations.cancel". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @return the request + */ + public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { + Cancel result = new Cancel(project, zone, futureReservation); + initialize(result); + return result; + } + + public class Cancel extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Cancel the specified future reservation. + * + * Create a request for the method "futureReservations.cancel". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link + * Cancel#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 Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @since 1.13 + */ + protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { + super(Compute.this, "POST", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) 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 Cancel 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 zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Cancel setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Cancel setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + 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 Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes the specified future reservation. + * + * Create a request for the method "futureReservations.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { + Delete result = new Delete(project, zone, futureReservation); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified future reservation. + * + * Create a request for the method "futureReservations.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { + super(Compute.this, "DELETE", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Delete setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves information about the specified future reservation. + * + * Create a request for the method "futureReservations.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 zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { + Get result = new Get(project, zone, futureReservation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves information about the specified future reservation. + * + * Create a request for the method "futureReservations.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 zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservation.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."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Get setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new Future Reservation. + * + * Create a request for the method "futureReservations.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new Future Reservation. + * + * Create a request for the method "futureReservations.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 Name of the zone for this request. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.FutureReservation 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * A list of all the future reservations that have been configured for the specified project in + * specified zone. + * + * Create a request for the method "futureReservations.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 Name of the zone for this request. Name should conform to RFC1035. + * @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}/futureReservations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * A list of all the future reservations that have been configured for the specified project in + * specified zone. + * + * Create a request for the method "futureReservations.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 Name of the zone for this request. Name should conform to RFC1035. + * @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.FutureReservationsListResponse.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public List setZone(java.lang.String zone) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified future reservation. + * + * Create a request for the method "futureReservations.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { + Update result = new Update(project, zone, futureReservation, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Updates the specified future reservation. + * + * Create a request for the method "futureReservations.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#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 Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.model.FutureReservation content) { + super(Compute.this, "PATCH", 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Update setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** Name of the reservation to update. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the reservation to update. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the reservation to update. Name should conform to RFC1035. */ + public Update setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GlobalAddresses collection. + * + *

The typical use is:

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

{@link + * Delete#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 address Name of the address resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String address) { + super(Compute.this, "DELETE", REST_PATH, null, 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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 address resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** Name of the address resource to delete. + */ + public java.lang.String getAddress() { + return address; + } + + /** Name of the address resource to delete. */ + public Delete setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified address resource. + * + * Create a request for the method "globalAddresses.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 address Name of the address resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String address) throws java.io.IOException { + Get result = new Get(project, address); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ADDRESS_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 address resource. + * + * Create a request for the method "globalAddresses.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 address Name of the address resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String address) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Address.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 address resource to return. */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** Name of the address resource to return. + */ + public java.lang.String getAddress() { + return address; + } + + /** Name of the address resource to return. */ + public Get setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an address resource in the specified project by using the data included in the request. + * + * Create a request for the method "globalAddresses.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Address} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Address content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/addresses"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates an address resource in the specified project by using the data included in the request. + * + * Create a request for the method "globalAddresses.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Address} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Address 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of global addresses. + * + * Create a request for the method "globalAddresses.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/addresses"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of global addresses. + * + * Create a request for the method "globalAddresses.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AddressList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Moves the specified address resource from one project to another project. + * + * Create a request for the method "globalAddresses.move". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation. + * + * @param project Source project ID which the Address is moved from. + * @param address Name of the address resource to move. + * @param content the {@link com.google.api.services.compute.model.GlobalAddressesMoveRequest} + * @return the request + */ + public Move move(java.lang.String project, java.lang.String address, com.google.api.services.compute.model.GlobalAddressesMoveRequest content) throws java.io.IOException { + Move result = new Move(project, address, content); + initialize(result); + return result; + } + + public class Move extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/addresses/{address}/move"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ADDRESS_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Moves the specified address resource from one project to another project. + * + * Create a request for the method "globalAddresses.move". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

+ * + * @param project Source project ID which the Address is moved from. + * @param address Name of the address resource to move. + * @param content the {@link com.google.api.services.compute.model.GlobalAddressesMoveRequest} + * @since 1.13 + */ + protected Move(java.lang.String project, java.lang.String address, com.google.api.services.compute.model.GlobalAddressesMoveRequest 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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); + } + + @Override + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); + } + + @Override + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); + } + + @Override + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); + } + + @Override + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); + } + + @Override + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); + } + + @Override + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); + } + + @Override + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); + } + + @Override + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); + } + + @Override + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); + } + + @Override + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); + } + + /** Source project ID which the Address is moved from. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Source project ID which the Address is moved from. + */ + public java.lang.String getProject() { + return project; + } + + /** Source project ID which the Address is moved from. */ + public Move 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 address resource to move. */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** Name of the address resource to move. + */ + public java.lang.String getAddress() { + return address; + } + + /** Name of the address resource to move. */ + public Move setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; + 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 Move setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); + } + } + /** + * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "globalAddresses.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/addresses/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "globalAddresses.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GlobalForwardingRules collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalForwardingRules.List request = compute.globalForwardingRules().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalForwardingRules globalForwardingRules() { + return new GlobalForwardingRules(); + } + + /** + * The "globalForwardingRules" collection of methods. + */ + public class GlobalForwardingRules { + + /** + * Deletes the specified GlobalForwardingRule resource. + * + * Create a request for the method "globalForwardingRules.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param forwardingRule Name of the ForwardingRule resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { + Delete result = new Delete(project, forwardingRule); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified GlobalForwardingRule resource. + * + * Create a request for the method "globalForwardingRules.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 forwardingRule Name of the ForwardingRule resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String forwardingRule) { + super(Compute.this, "DELETE", REST_PATH, null, 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 ForwardingRule resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource to delete. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource to delete. */ + public Delete setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by + * making a list() request. + * + * Create a request for the method "globalForwardingRules.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 forwardingRule Name of the ForwardingRule resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { + Get result = new Get(project, forwardingRule); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_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 GlobalForwardingRule resource. Gets a list of available forwarding rules + * by making a list() request. + * + * Create a request for the method "globalForwardingRules.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 forwardingRule Name of the ForwardingRule resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String forwardingRule) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRule.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 ForwardingRule resource to return. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource to return. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource to return. */ + public Get setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String view; + + /** + + */ + public java.lang.String getView() { + return view; + } + + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. + * + * Create a request for the method "globalForwardingRules.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. + * + * Create a request for the method "globalForwardingRules.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.ForwardingRule} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.ForwardingRule 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * + * Create a request for the method "globalForwardingRules.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * + * Create a request for the method "globalForwardingRules.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you + * can only patch the network_tier field. + * + * Create a request for the method "globalForwardingRules.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 Project ID for this request. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { + Patch result = new Patch(project, forwardingRule, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, + * you can only patch the network_tier field. + * + * Create a request for the method "globalForwardingRules.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 Project ID for this request. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) { + super(Compute.this, "PATCH", 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 ForwardingRule resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource to patch. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource to patch. */ + public Patch setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * resources documentation. + * + * Create a request for the method "globalForwardingRules.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * resources documentation. + * + * Create a request for the method "globalForwardingRules.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same + * type as the old target. + * + * Create a request for the method "globalForwardingRules.setTarget". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @return the request + */ + public SetTarget setTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { + SetTarget result = new SetTarget(project, forwardingRule, content); + initialize(result); + return result; + } + + public class SetTarget extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}/setTarget"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same + * type as the old target. + * + * Create a request for the method "globalForwardingRules.setTarget". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation.

+ * {@link + * SetTarget#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 forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @since 1.13 + */ + protected SetTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetTarget set$Xgafv(java.lang.String $Xgafv) { + return (SetTarget) super.set$Xgafv($Xgafv); + } + + @Override + public SetTarget setAccessToken(java.lang.String accessToken) { + return (SetTarget) super.setAccessToken(accessToken); + } + + @Override + public SetTarget setAlt(java.lang.String alt) { + return (SetTarget) super.setAlt(alt); + } + + @Override + public SetTarget setCallback(java.lang.String callback) { + return (SetTarget) super.setCallback(callback); + } + + @Override + public SetTarget setFields(java.lang.String fields) { + return (SetTarget) super.setFields(fields); + } + + @Override + public SetTarget setKey(java.lang.String key) { + return (SetTarget) super.setKey(key); + } + + @Override + public SetTarget setOauthToken(java.lang.String oauthToken) { + return (SetTarget) super.setOauthToken(oauthToken); + } + + @Override + public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTarget) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetTarget setQuotaUser(java.lang.String quotaUser) { + return (SetTarget) super.setQuotaUser(quotaUser); + } + + @Override + public SetTarget setUploadType(java.lang.String uploadType) { + return (SetTarget) super.setUploadType(uploadType); + } + + @Override + public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTarget) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetTarget setUserIp(java.lang.String userIp) { + return (SetTarget) 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 SetTarget 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 ForwardingRule resource in which target is to be set. */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** Name of the ForwardingRule resource in which target is to be set. + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** Name of the ForwardingRule resource in which target is to be set. */ + public SetTarget setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + 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 SetTarget setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetTarget set(String parameterName, Object value) { + return (SetTarget) super.set(parameterName, 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"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * 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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * 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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalNetworkEndpointGroups.List request = compute.globalNetworkEndpointGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalNetworkEndpointGroups globalNetworkEndpointGroups() { + return new GlobalNetworkEndpointGroups(); + } + + /** + * The "globalNetworkEndpointGroups" collection of methods. + */ + public class GlobalNetworkEndpointGroups { + + /** + * Attach a network endpoint to the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} + * @return the request + */ + public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { + AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class AttachNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Attach a network endpoint to the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} + * @since 1.13 + */ + protected AttachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); + } + + @Override + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); + } + + @Override + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); + } + + @Override + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); + } + + @Override + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) 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 AttachNetworkEndpoints 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 network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are + * backend services referencing it. + * + * Create a request for the method "globalNetworkEndpointGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { + Delete result = new Delete(project, networkEndpointGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are + * backend services referencing it. + * + * Create a request for the method "globalNetworkEndpointGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String networkEndpointGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 network endpoint group to delete. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Detach the network endpoint from the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} + * @return the request + */ + public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { + DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class DetachNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Detach the network endpoint from the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} + * @since 1.13 + */ + protected DetachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); + } + + @Override + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); + } + + @Override + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); + } + + @Override + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); + } + + @Override + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) 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 DetachNetworkEndpoints 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 network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are removing network endpoints. It should comply + with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. + */ + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Returns the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { + Get result = new Get(project, networkEndpointGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String networkEndpointGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the network endpoint group. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * + * Create a request for the method "globalNetworkEndpointGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs + * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To + * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private + * Service Connect NEGs): regional API - To manage NEGs with global scope (such as + * global internet NEGs):global API + * + * Create a request for the method "globalNetworkEndpointGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of network endpoint groups that are located in the specified project. + * + * Create a request for the method "globalNetworkEndpointGroups.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of network endpoint groups that are located in the specified project. + * + * Create a request for the method "globalNetworkEndpointGroups.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the network endpoints in the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @return the request + */ + public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { + ListNetworkEndpoints result = new ListNetworkEndpoints(project, networkEndpointGroup); + initialize(result); + return result; + } + + public class ListNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the network endpoints in the specified network endpoint group. + * + * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link ListNetworkEndpoints#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 networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @since 1.13 + */ + protected ListNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); + } + + @Override + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); + } + + @Override + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); + } + + @Override + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); + } + + @Override + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) 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 ListNetworkEndpoints 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 network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group from which you want to generate a list of included network + endpoints. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GlobalOperations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalOperations.List request = compute.globalOperations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalOperations globalOperations() { + return new GlobalOperations(); + } + + /** + * The "globalOperations" collection of methods. + */ + public class GlobalOperations { + + /** + * Retrieves an aggregated list of all operations. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "globalOperations.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/operations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of all operations. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "globalOperations.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified Operations resource. + * + * Create a request for the method "globalOperations.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(project, operation); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified Operations resource. + * + * Create a request for the method "globalOperations.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Operations resource to delete, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to delete, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + public Delete setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves the specified Operations resource. + * + * Create a request for the method "globalOperations.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 operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String operation) throws java.io.IOException { + Get result = new Get(project, operation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves the specified Operations resource. + * + * Create a request for the method "globalOperations.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 operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 Operations resource to return, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Operation resources contained within the specified project. + * + * Create a request for the method "globalOperations.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/operations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of Operation resources contained within the specified project. + * + * Create a request for the method "globalOperations.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits for the specified Operation resource to return as `DONE` or for the request to approach the + * 2 minute deadline, and retrieves the specified Operation resource. This method differs from the + * `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns + * the current state of the operation, which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: - In uncommon cases, when + * the server is overloaded, the request might return before the default deadline is reached, or + * might return after zero seconds. - If the default deadline is reached, there is no + * guarantee that the operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. + * + * Create a request for the method "globalOperations.wait". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Wait wait(java.lang.String project, java.lang.String operation) throws java.io.IOException { + Wait result = new Wait(project, operation); + initialize(result); + return result; + } + + public class Wait extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/operations/{operation}/wait"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Waits for the specified Operation resource to return as `DONE` or for the request to approach + * the 2 minute deadline, and retrieves the specified Operation resource. This method differs from + * the `GET` method in that it waits for no more than the default deadline (2 minutes) and then + * returns the current state of the operation, which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: - In uncommon cases, + * when the server is overloaded, the request might return before the default deadline is + * reached, or might return after zero seconds. - If the default deadline is reached, there + * is no guarantee that the operation is actually done when the method returns. Be prepared to + * retry if the operation is not `DONE`. + * + * Create a request for the method "globalOperations.wait". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

{@link + * Wait#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 operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 + */ + protected Wait(java.lang.String project, java.lang.String operation) { + super(Compute.this, "POST", REST_PATH, null, 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Wait setUserIp(java.lang.String userIp) { + return (Wait) 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 Wait 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 Operations resource to return, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + public Wait setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GlobalOrganizationOperations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalOrganizationOperations.List request = compute.globalOrganizationOperations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalOrganizationOperations globalOrganizationOperations() { + return new GlobalOrganizationOperations(); + } + + /** + * The "globalOrganizationOperations" collection of methods. + */ + public class GlobalOrganizationOperations { + + /** + * Deletes the specified Operations resource. + * + * Create a request for the method "globalOrganizationOperations.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @return the request + */ + public Delete delete(java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(operation); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "locations/global/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified Operations resource. + * + * Create a request for the method "globalOrganizationOperations.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @since 1.13 + */ + protected Delete(java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.class); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to delete, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + public Delete setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public Delete setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` + * request. + * + * Create a request for the method "globalOrganizationOperations.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 operation Name of the Operations resource to return. Parent is derived from this + field. + * @return the request + */ + public Get get(java.lang.String operation) throws java.io.IOException { + Get result = new Get(operation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "locations/global/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` + * request. + * + * Create a request for the method "globalOrganizationOperations.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 operation Name of the Operations resource to return. Parent is derived from this + field. + * @since 1.13 + */ + protected Get(java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** + * Name of the Operations resource to return. Parent is derived from this field. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return. Parent is derived from this field. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return. Parent is derived from this field. + */ + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. Not used. Parent is derived from resource_id. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ + public Get setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Operation resources contained within the specified organization. + * + * Create a request for the method "globalOrganizationOperations.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. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "locations/global/operations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Retrieves a list of Operation resources contained within the specified organization. + * + * Create a request for the method "globalOrganizationOperations.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.

+ * + * @since 1.13 + */ + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** + * 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; + } + + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public List setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GlobalPublicDelegatedPrefixes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalPublicDelegatedPrefixes.List request = compute.globalPublicDelegatedPrefixes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalPublicDelegatedPrefixes globalPublicDelegatedPrefixes() { + return new GlobalPublicDelegatedPrefixes(); + } + + /** + * The "globalPublicDelegatedPrefixes" collection of methods. + */ + public class GlobalPublicDelegatedPrefixes { + + /** + * Deletes the specified global PublicDelegatedPrefix. + * + * Create a request for the method "globalPublicDelegatedPrefixes.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Delete result = new Delete(project, publicDelegatedPrefix); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified global PublicDelegatedPrefix. + * + * Create a request for the method "globalPublicDelegatedPrefixes.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "DELETE", REST_PATH, null, 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 PublicDelegatedPrefix resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to delete. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to delete. */ + public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified global PublicDelegatedPrefix resource. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Get result = new Get(project, publicDelegatedPrefix); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_DELEGATED_PREFIX_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 PublicDelegatedPrefix resource. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 PublicDelegatedPrefix resource to return. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to return. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to return. */ + public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are + * included in the request. + * + * Create a request for the method "globalPublicDelegatedPrefixes.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are + * included in the request. + * + * Create a request for the method "globalPublicDelegatedPrefixes.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.PublicDelegatedPrefix 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the global PublicDelegatedPrefixes for a project. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the global PublicDelegatedPrefixes for a project. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefixList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified global PublicDelegatedPrefix resource with the data included in the + * request. This method supportsPATCH semantics and usesJSON merge patch format and processing + * rules. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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 Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Patch result = new Patch(project, publicDelegatedPrefix, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified global PublicDelegatedPrefix resource with the data included in the + * request. This method supportsPATCH semantics and usesJSON merge patch format and processing + * rules. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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 Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) { + super(Compute.this, "PATCH", 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 PublicDelegatedPrefix resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to patch. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to patch. */ + public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the GlobalVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalVmExtensionPolicies.List request = compute.globalVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalVmExtensionPolicies globalVmExtensionPolicies() { + return new GlobalVmExtensionPolicies(); + } + + /** + * The "globalVmExtensionPolicies" collection of methods. + */ + public class GlobalVmExtensionPolicies { + + /** + * Retrieves the list of all VM Extension Policy resources available to the specified project. + * + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "globalVmExtensionPolicies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/vmExtensionPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all VM Extension Policy resources available to the specified project. + * + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "globalVmExtensionPolicies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicyAggregatedListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the + * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM + * extension policy deletion. The deletion of the global VM extension policy happens after the purge + * rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the + * backend. + * + * Create a request for the method "globalVmExtensionPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { + Delete result = new Delete(project, globalVmExtensionPolicy, content); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the + * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM + * extension policy deletion. The deletion of the global VM extension policy happens after the + * purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers + * in the backend. + * + * Create a request for the method "globalVmExtensionPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput 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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 global VM extension policy to purge scoped resources for. */ + @com.google.api.client.util.Key + private java.lang.String globalVmExtensionPolicy; + + /** Name of the global VM extension policy to purge scoped resources for. + */ + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; + } + + /** Name of the global VM extension policy to purge scoped resources for. */ + public Delete setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + this.globalVmExtensionPolicy = globalVmExtensionPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a global VM extension policy. + * + * Create a request for the method "globalVmExtensionPolicies.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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String globalVmExtensionPolicy) throws java.io.IOException { + Get result = new Get(project, globalVmExtensionPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 GLOBAL_VM_EXTENSION_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a global VM extension policy. + * + * Create a request for the method "globalVmExtensionPolicies.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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String globalVmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicy.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), + "Parameter globalVmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 GlobalVmExtensionPolicy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String globalVmExtensionPolicy; + + /** Name of the GlobalVmExtensionPolicy resource to return. + */ + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; + } + + /** Name of the GlobalVmExtensionPolicy resource to return. */ + public Get setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), + "Parameter globalVmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.globalVmExtensionPolicy = globalVmExtensionPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new project level GlobalVmExtensionPolicy. + * + * Create a request for the method "globalVmExtensionPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new project level GlobalVmExtensionPolicy. + * + * Create a request for the method "globalVmExtensionPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.GlobalVmExtensionPolicy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists global VM extension policies. + * + * Create a request for the method "globalVmExtensionPolicies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists global VM extension policies. + * + * Create a request for the method "globalVmExtensionPolicies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a global VM extension policy. + * + * Create a request for the method "globalVmExtensionPolicies.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param globalVmExtensionPolicy Name of the global VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(project, globalVmExtensionPolicy, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Updates a global VM extension policy. + * + * Create a request for the method "globalVmExtensionPolicies.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#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 globalVmExtensionPolicy Name of the global VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) { + super(Compute.this, "PATCH", 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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 global VM extension policy to update. */ + @com.google.api.client.util.Key + private java.lang.String globalVmExtensionPolicy; + + /** Name of the global VM extension policy to update. + */ + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; + } + + /** Name of the global VM extension policy to update. */ + public Update setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + this.globalVmExtensionPolicy = globalVmExtensionPolicy; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the HaControllers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.HaControllers.List request = compute.haControllers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public HaControllers haControllers() { + return new HaControllers(); + } + + /** + * The "haControllers" collection of methods. + */ + public class HaControllers { + + /** + * Retrieves an aggregated list of all of the HaControllers in the specified project across all + * regions. + * + * Create a request for the method "haControllers.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/haControllers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of all of the HaControllers in the specified project across all + * regions. + * + * Create a request for the method "haControllers.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaControllersAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes an HaController in the specified project. + * + * Create a request for the method "haControllers.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param haController Name of the HaController resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { + Delete result = new Delete(project, region, haController); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Deletes an HaController in the specified project. + * + * Create a request for the method "haControllers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param haController Name of the HaController resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String haController) { + super(Compute.this, "DELETE", REST_PATH, null, 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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 HaController resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** Name of the HaController resource to delete. + */ + public java.lang.String getHaController() { + return haController; + } + + /** Name of the HaController resource to delete. */ + public Delete setHaController(java.lang.String haController) { + this.haController = haController; + return this; + } + + /** + * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the + * moment will also be deleted. Can only be used against the HA Controller resource that is + * already being deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the moment + will also be deleted. Can only be used against the HA Controller resource that is already being + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the + * moment will also be deleted. Can only be used against the HA Controller resource that is + * already being deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + 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. + */ + @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. + */ + 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. + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Fails over a VM targeted by the specified HaController to the selected zone. + * + * Create a request for the method "haControllers.failover". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Failover#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaControllersFailoverRequest} + * @return the request + */ + public Failover failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaControllersFailoverRequest content) throws java.io.IOException { + Failover result = new Failover(project, region, haController, content); + initialize(result); + return result; + } + + public class Failover extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}/failover"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HA_CONTROLLER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Fails over a VM targeted by the specified HaController to the selected zone. + * + * Create a request for the method "haControllers.failover". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Failover#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaControllersFailoverRequest} + * @since 1.13 + */ + protected Failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaControllersFailoverRequest 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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Failover set$Xgafv(java.lang.String $Xgafv) { + return (Failover) super.set$Xgafv($Xgafv); + } + + @Override + public Failover setAccessToken(java.lang.String accessToken) { + return (Failover) super.setAccessToken(accessToken); + } + + @Override + public Failover setAlt(java.lang.String alt) { + return (Failover) super.setAlt(alt); + } + + @Override + public Failover setCallback(java.lang.String callback) { + return (Failover) super.setCallback(callback); + } + + @Override + public Failover setFields(java.lang.String fields) { + return (Failover) super.setFields(fields); + } + + @Override + public Failover setKey(java.lang.String key) { + return (Failover) super.setKey(key); + } + + @Override + public Failover setOauthToken(java.lang.String oauthToken) { + return (Failover) super.setOauthToken(oauthToken); + } + + @Override + public Failover setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Failover) super.setPrettyPrint(prettyPrint); + } + + @Override + public Failover setQuotaUser(java.lang.String quotaUser) { + return (Failover) super.setQuotaUser(quotaUser); + } + + @Override + public Failover setUploadType(java.lang.String uploadType) { + return (Failover) super.setUploadType(uploadType); + } + + @Override + public Failover setUploadProtocol(java.lang.String uploadProtocol) { + return (Failover) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Failover setUserIp(java.lang.String userIp) { + return (Failover) 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 Failover 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Failover 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; + } + + /** ID of the HaController resource to update. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** ID of the HaController resource to update. + */ + public java.lang.String getHaController() { + return haController; + } + + /** ID of the HaController resource to update. */ + public Failover setHaController(java.lang.String haController) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.haController = haController; + 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. + */ + @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. + */ + 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. + */ + public Failover setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Failover set(String parameterName, Object value) { + return (Failover) super.set(parameterName, value); + } + } + /** + * Returns all the details of a specific HaController. + * + * Create a request for the method "haControllers.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 region Name of the region for this request. + * @param haController Name of the HaController resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { + Get result = new Get(project, region, haController); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HA_CONTROLLER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns all the details of a specific HaController. + * + * Create a request for the method "haControllers.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 region Name of the region for this request. + * @param haController Name of the HaController resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String haController) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaController.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 HaController resource to return. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** Name of the HaController resource to return. + */ + public java.lang.String getHaController() { + return haController; + } + + /** Name of the HaController resource to return. */ + public Get setHaController(java.lang.String haController) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.haController = haController; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates HaController in the specified project. + * + * Create a request for the method "haControllers.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.HaController} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HaController content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates HaController in the specified project. + * + * Create a request for the method "haControllers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.HaController} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HaController 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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. + */ + @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. + */ + 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. + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all HaControllers in the specified project in the specified region. + * + * Create a request for the method "haControllers.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 region 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}/haControllers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all HaControllers in the specified project in the specified region. + * + * Create a request for the method "haControllers.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 region 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.HaControllersList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates HaController in the specified project. + * + * Create a request for the method "haControllers.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 Project ID for this request. + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaController} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaController content) throws java.io.IOException { + Patch result = new Patch(project, region, haController, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HA_CONTROLLER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates HaController in the specified project. + * + * Create a request for the method "haControllers.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 Project ID for this request. + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaController} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaController content) { + super(Compute.this, "PATCH", 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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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; + } + + /** ID of the HaController resource to update. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** ID of the HaController resource to update. + */ + public java.lang.String getHaController() { + return haController; + } + + /** ID of the HaController resource to update. */ + public Patch setHaController(java.lang.String haController) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.haController = haController; + 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. + */ + @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. + */ + 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. + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + 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 HealthChecks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.HealthChecks.List request = compute.healthChecks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public HealthChecks healthChecks() { + return new HealthChecks(); + } + + /** + * The "healthChecks" collection of methods. + */ + public class HealthChecks { + + /** + * Retrieves the list of all HealthCheck resources, regional and global, available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "healthChecks.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/healthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all HealthCheck resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "healthChecks.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthChecksAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified HealthCheck resource. + * + * Create a request for the method "healthChecks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param healthCheck Name of the HealthCheck resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { + Delete result = new Delete(project, healthCheck); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HealthCheck resource. + * + * Create a request for the method "healthChecks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 healthCheck Name of the HealthCheck resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String healthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 HealthCheck resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to delete. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to delete. */ + public Delete setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HealthCheck resource. + * + * Create a request for the method "healthChecks.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 healthCheck Name of the HealthCheck resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { + Get result = new Get(project, healthCheck); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_CHECK_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 HealthCheck resource. + * + * Create a request for the method "healthChecks.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 healthCheck Name of the HealthCheck resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String healthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheck.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 HealthCheck resource to return. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to return. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to return. */ + public Get setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "healthChecks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/healthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "healthChecks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.HealthCheck 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of HealthCheck resources available to the specified project. + * + * Create a request for the method "healthChecks.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/healthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of HealthCheck resources available to the specified project. + * + * Create a request for the method "healthChecks.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "healthChecks.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 Project ID for this request. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, healthCheck, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "healthChecks.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 Project ID for this request. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "PATCH", 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 HealthCheck resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to patch. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to patch. */ + public Patch setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "healthChecks.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/healthChecks/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "healthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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 healthCheck Name of the HealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "PUT", 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 HealthCheck resource to update. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to update. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to update. */ + public Update setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Hosts collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Hosts.List request = compute.hosts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Hosts hosts() { + return new Hosts(); + } + + /** + * The "hosts" collection of methods. + */ + public class Hosts { + + /** + * Retrieves information about the specified host. + * + * Create a request for the method "hosts.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) throws java.io.IOException { + Get result = new Get(project, zone, association, host); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Retrieves information about the specified host. + * + * Create a request for the method "hosts.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Host.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + @com.google.api.client.util.Key + private java.lang.String association; + + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, + reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ + name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + */ + public java.lang.String getAssociation() { + return association; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + public Get setAssociation(java.lang.String association) { + this.association = association; + return this; + } + + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** The name of the host, formatted as RFC1035 or a resource ID number. + */ + public java.lang.String getHost() { + return host; + } + + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + public Get setHost(java.lang.String host) { + this.host = host; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Allows customers to get SBOM versions of a host. + * + * Create a request for the method "hosts.getVersion". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. + * @param content the {@link com.google.api.services.compute.model.HostsGetVersionRequest} + * @return the request + */ + public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.model.HostsGetVersionRequest content) throws java.io.IOException { + GetVersion result = new GetVersion(project, zone, association, host, content); + initialize(result); + return result; + } + + public class GetVersion extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}/getVersion"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Allows customers to get SBOM versions of a host. + * + * Create a request for the method "hosts.getVersion". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

+ * {@link + * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. + * @param content the {@link com.google.api.services.compute.model.HostsGetVersionRequest} + * @since 1.13 + */ + protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.model.HostsGetVersionRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); + } + + @Override + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); + } + + @Override + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); + } + + @Override + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); + } + + @Override + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); + } + + @Override + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); + } + + @Override + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); + } + + @Override + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); + } + + @Override + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); + } + + @Override + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) 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 GetVersion setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetVersion setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. + */ + @com.google.api.client.util.Key + private java.lang.String association; + + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. + */ + public java.lang.String getAssociation() { + return association; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. + */ + public GetVersion setAssociation(java.lang.String association) { + this.association = association; + return this; + } + + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** The name of the host, formatted as RFC1035 or a resource ID number. + */ + public java.lang.String getHost() { + return host; + } + + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + public GetVersion setHost(java.lang.String host) { + this.host = host; + 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. + */ + @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. + */ + 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. + */ + public GetVersion setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); + } + } + /** + * Retrieves a list of hosts. + * + * Create a request for the method "hosts.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String association) throws java.io.IOException { + List result = new List(project, zone, association); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Retrieves a list of hosts. + * + * Create a request for the method "hosts.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String association) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HostsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public List setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + @com.google.api.client.util.Key + private java.lang.String association; + + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, + reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ + name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + */ + public java.lang.String getAssociation() { + return association; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + public List setAssociation(java.lang.String association) { + this.association = association; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the HttpHealthChecks collection. + * + *

The typical use is:

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

{@link + * Delete#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 httpHealthCheck Name of the HttpHealthCheck resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String httpHealthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 HttpHealthCheck resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String httpHealthCheck; + + /** Name of the HttpHealthCheck resource to delete. + */ + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; + } + + /** Name of the HttpHealthCheck resource to delete. */ + public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpHealthCheck = httpHealthCheck; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HttpHealthCheck resource. + * + * Create a request for the method "httpHealthChecks.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 httpHealthCheck Name of the HttpHealthCheck resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { + Get result = new Get(project, httpHealthCheck); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HTTP_HEALTH_CHECK_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 HttpHealthCheck resource. + * + * Create a request for the method "httpHealthChecks.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 httpHealthCheck Name of the HttpHealthCheck resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String httpHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpHealthCheck.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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 HttpHealthCheck resource to return. */ + @com.google.api.client.util.Key + private java.lang.String httpHealthCheck; + + /** Name of the HttpHealthCheck resource to return. + */ + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; + } + + /** Name of the HttpHealthCheck resource to return. */ + public Get setHttpHealthCheck(java.lang.String httpHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpHealthCheck = httpHealthCheck; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a HttpHealthCheck resource in the specified project using the data included in the + * request. + * + * Create a request for the method "httpHealthChecks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a HttpHealthCheck resource in the specified project using the data included in the + * request. + * + * Create a request for the method "httpHealthChecks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.HttpHealthCheck 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of HttpHealthCheck resources available to the specified project. + * + * Create a request for the method "httpHealthChecks.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of HttpHealthCheck resources available to the specified project. + * + * Create a request for the method "httpHealthChecks.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpHealthCheckList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "httpHealthChecks.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 Project ID for this request. + * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, httpHealthCheck, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HTTP_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "httpHealthChecks.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 Project ID for this request. + * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) { + super(Compute.this, "PATCH", 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 HttpHealthCheck resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String httpHealthCheck; + + /** Name of the HttpHealthCheck resource to patch. + */ + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; + } + + /** Name of the HttpHealthCheck resource to patch. */ + public Patch setHttpHealthCheck(java.lang.String httpHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpHealthCheck = httpHealthCheck; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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 httpHealthCheck Name of the HttpHealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) { + super(Compute.this, "PUT", 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 HttpHealthCheck resource to update. */ + @com.google.api.client.util.Key + private java.lang.String httpHealthCheck; + + /** Name of the HttpHealthCheck resource to update. + */ + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; + } + + /** Name of the HttpHealthCheck resource to update. */ + public Update setHttpHealthCheck(java.lang.String httpHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpHealthCheck = httpHealthCheck; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the HttpsHealthChecks collection. + * + *

The typical use is:

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

{@link + * Delete#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 httpsHealthCheck Name of the HttpsHealthCheck resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String httpsHealthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, 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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 HttpsHealthCheck resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String httpsHealthCheck; + + /** Name of the HttpsHealthCheck resource to delete. + */ + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; + } + + /** Name of the HttpsHealthCheck resource to delete. */ + public Delete setHttpsHealthCheck(java.lang.String httpsHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpsHealthCheck = httpsHealthCheck; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HttpsHealthCheck resource. + * + * Create a request for the method "httpsHealthChecks.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 httpsHealthCheck Name of the HttpsHealthCheck resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { + Get result = new Get(project, httpsHealthCheck); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HTTPS_HEALTH_CHECK_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 HttpsHealthCheck resource. + * + * Create a request for the method "httpsHealthChecks.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 httpsHealthCheck Name of the HttpsHealthCheck resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String httpsHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpsHealthCheck.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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 HttpsHealthCheck resource to return. */ + @com.google.api.client.util.Key + private java.lang.String httpsHealthCheck; + + /** Name of the HttpsHealthCheck resource to return. + */ + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; + } + + /** Name of the HttpsHealthCheck resource to return. */ + public Get setHttpsHealthCheck(java.lang.String httpsHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpsHealthCheck = httpsHealthCheck; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a HttpsHealthCheck resource in the specified project using the data included in the + * request. + * + * Create a request for the method "httpsHealthChecks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a HttpsHealthCheck resource in the specified project using the data included in the + * request. + * + * Create a request for the method "httpsHealthChecks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.HttpsHealthCheck 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of HttpsHealthCheck resources available to the specified project. + * + * Create a request for the method "httpsHealthChecks.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of HttpsHealthCheck resources available to the specified project. + * + * Create a request for the method "httpsHealthChecks.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpsHealthCheckList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "httpsHealthChecks.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 Project ID for this request. + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, httpsHealthCheck, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HTTPS_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "httpsHealthChecks.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 Project ID for this request. + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) { + super(Compute.this, "PATCH", 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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 HttpsHealthCheck resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String httpsHealthCheck; + + /** Name of the HttpsHealthCheck resource to patch. + */ + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; + } + + /** Name of the HttpsHealthCheck resource to patch. */ + public Patch setHttpsHealthCheck(java.lang.String httpsHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpsHealthCheck = httpsHealthCheck; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpsHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpsHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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 httpsHealthCheck Name of the HttpsHealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) { + super(Compute.this, "PUT", 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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 HttpsHealthCheck resource to update. */ + @com.google.api.client.util.Key + private java.lang.String httpsHealthCheck; + + /** Name of the HttpsHealthCheck resource to update. + */ + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; + } + + /** Name of the HttpsHealthCheck resource to update. */ + public Update setHttpsHealthCheck(java.lang.String httpsHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.httpsHealthCheck = httpsHealthCheck; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ImageFamilyViews collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ImageFamilyViews.List request = compute.imageFamilyViews().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ImageFamilyViews imageFamilyViews() { + return new ImageFamilyViews(); + } + + /** + * The "imageFamilyViews" collection of methods. + */ + public class ImageFamilyViews { + + /** + * Returns the latest image that is part of an image family, is not deprecated and is rolled out in + * the specified zone. + * + * Create a request for the method "imageFamilyViews.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 zone The name of the zone for this request. + * @param family Name of the image family to search for. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String family) throws java.io.IOException { + Get result = new Get(project, zone, family); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/imageFamilyViews/{family}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern FAMILY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the latest image that is part of an image family, is not deprecated and is rolled out + * in the specified zone. + * + * Create a request for the method "imageFamilyViews.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 zone The name of the zone for this request. + * @param family Name of the image family to search for. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String family) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageFamilyView.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])?"); + } + this.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 image family to search for. */ + @com.google.api.client.util.Key + private java.lang.String family; + + /** Name of the image family to search for. + */ + public java.lang.String getFamily() { + return family; + } + + /** Name of the image family to search for. */ + public Get setFamily(java.lang.String family) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.family = family; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, 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 static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Images collection. + * + *

The typical use is:

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

{@link + * Delete#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 image Name of the image resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String image) { + super(Compute.this, "DELETE", REST_PATH, null, 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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 image resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String image; + + /** Name of the image resource to delete. + */ + public java.lang.String getImage() { + return image; + } + + /** Name of the image resource to delete. */ + public Delete setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Sets the deprecation status of an image. + * + * If an empty request body is given, clears the deprecation status instead. + * + * Create a request for the method "images.deprecate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param image Image name. + * @param content the {@link com.google.api.services.compute.model.DeprecationStatus} + * @return the request + */ + public Deprecate deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.DeprecationStatus content) throws java.io.IOException { + Deprecate result = new Deprecate(project, image, content); + initialize(result); + return result; + } + + public class Deprecate extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{image}/deprecate"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the deprecation status of an image. + * + * If an empty request body is given, clears the deprecation status instead. + * + * Create a request for the method "images.deprecate". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation.

+ * {@link + * Deprecate#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 image Image name. + * @param content the {@link com.google.api.services.compute.model.DeprecationStatus} + * @since 1.13 + */ + protected Deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.DeprecationStatus 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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Deprecate set$Xgafv(java.lang.String $Xgafv) { + return (Deprecate) super.set$Xgafv($Xgafv); + } + + @Override + public Deprecate setAccessToken(java.lang.String accessToken) { + return (Deprecate) super.setAccessToken(accessToken); + } + + @Override + public Deprecate setAlt(java.lang.String alt) { + return (Deprecate) super.setAlt(alt); + } + + @Override + public Deprecate setCallback(java.lang.String callback) { + return (Deprecate) super.setCallback(callback); + } + + @Override + public Deprecate setFields(java.lang.String fields) { + return (Deprecate) super.setFields(fields); + } + + @Override + public Deprecate setKey(java.lang.String key) { + return (Deprecate) super.setKey(key); + } + + @Override + public Deprecate setOauthToken(java.lang.String oauthToken) { + return (Deprecate) super.setOauthToken(oauthToken); + } + + @Override + public Deprecate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deprecate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Deprecate setQuotaUser(java.lang.String quotaUser) { + return (Deprecate) super.setQuotaUser(quotaUser); + } + + @Override + public Deprecate setUploadType(java.lang.String uploadType) { + return (Deprecate) super.setUploadType(uploadType); + } + + @Override + public Deprecate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deprecate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Deprecate setUserIp(java.lang.String userIp) { + return (Deprecate) 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 Deprecate 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; + } + + /** Image name. */ + @com.google.api.client.util.Key + private java.lang.String image; + + /** Image name. + */ + public java.lang.String getImage() { + return image; + } + + /** Image name. */ + public Deprecate setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; + 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 Deprecate setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Deprecate set(String parameterName, Object value) { + return (Deprecate) super.set(parameterName, value); + } + } + /** + * Returns the specified image. + * + * Create a request for the method "images.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 image Name of the image resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String image) throws java.io.IOException { + Get result = new Get(project, image); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{image}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 IMAGE_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 image. + * + * Create a request for the method "images.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 image Name of the image resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String image) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Image.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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 image resource to return. */ + @com.google.api.client.util.Key + private java.lang.String image; + + /** Name of the image resource to return. + */ + public java.lang.String getImage() { + return image; + } + + /** Name of the image resource to return. */ + public Get setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the latest image that is part of an image family and is not deprecated. For more + * information on image families, seePublic image families documentation. + * + * Create a request for the method "images.getFromFamily". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation. + * + * @param project The image project that the image belongs to. For example, to get a CentOS + image, specify centos- + * cloud as the image project. + * @param family Name of the image family to search for. + * @return the request + */ + public GetFromFamily getFromFamily(java.lang.String project, java.lang.String family) throws java.io.IOException { + GetFromFamily result = new GetFromFamily(project, family); + initialize(result); + return result; + } + + public class GetFromFamily extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/family/{family}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FAMILY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the latest image that is part of an image family and is not deprecated. For more + * information on image families, seePublic image families documentation. + * + * Create a request for the method "images.getFromFamily". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation.

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

+ * + * @param project The image project that the image belongs to. For example, to get a CentOS + image, specify centos- + * cloud as the image project. + * @param family Name of the image family to search for. + * @since 1.13 + */ + protected GetFromFamily(java.lang.String project, java.lang.String family) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Image.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.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetFromFamily set$Xgafv(java.lang.String $Xgafv) { + return (GetFromFamily) super.set$Xgafv($Xgafv); + } + + @Override + public GetFromFamily setAccessToken(java.lang.String accessToken) { + return (GetFromFamily) super.setAccessToken(accessToken); + } + + @Override + public GetFromFamily setAlt(java.lang.String alt) { + return (GetFromFamily) super.setAlt(alt); + } + + @Override + public GetFromFamily setCallback(java.lang.String callback) { + return (GetFromFamily) super.setCallback(callback); + } + + @Override + public GetFromFamily setFields(java.lang.String fields) { + return (GetFromFamily) super.setFields(fields); + } + + @Override + public GetFromFamily setKey(java.lang.String key) { + return (GetFromFamily) super.setKey(key); + } + + @Override + public GetFromFamily setOauthToken(java.lang.String oauthToken) { + return (GetFromFamily) super.setOauthToken(oauthToken); + } + + @Override + public GetFromFamily setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetFromFamily) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetFromFamily setQuotaUser(java.lang.String quotaUser) { + return (GetFromFamily) super.setQuotaUser(quotaUser); + } + + @Override + public GetFromFamily setUploadType(java.lang.String uploadType) { + return (GetFromFamily) super.setUploadType(uploadType); + } + + @Override + public GetFromFamily setUploadProtocol(java.lang.String uploadProtocol) { + return (GetFromFamily) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetFromFamily setUserIp(java.lang.String userIp) { + return (GetFromFamily) super.setUserIp(userIp); + } + + /** + * The image project that the image belongs to. For example, to get a CentOS image, specify + * centos-cloud as the image project. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The image project that the image belongs to. For example, to get a CentOS image, specify centos- + cloud as the image project. + */ + public java.lang.String getProject() { + return project; + } + + /** + * The image project that the image belongs to. For example, to get a CentOS image, specify + * centos-cloud as the image project. + */ + public GetFromFamily 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 image family to search for. */ + @com.google.api.client.util.Key + private java.lang.String family; + + /** Name of the image family to search for. + */ + public java.lang.String getFamily() { + return family; + } + + /** Name of the image family to search for. */ + public GetFromFamily setFamily(java.lang.String family) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.family = family; + return this; + } + + @Override + public GetFromFamily set(String parameterName, Object value) { + return (GetFromFamily) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "images.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "images.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Image} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Image 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** Force image creation if true. */ + @com.google.api.client.util.Key + private java.lang.Boolean forceCreate; + + /** Force image creation if true. + */ + public java.lang.Boolean getForceCreate() { + return forceCreate; + } + + /** Force image creation if true. */ + public Insert setForceCreate(java.lang.Boolean forceCreate) { + this.forceCreate = forceCreate; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of custom images available to the specified project. Custom images are images + * you create that belong to your project. This method does not get any images that belong to other + * projects, including publicly-available images, like Debian 8. If you want to get a list of + * publicly-available images, use this method to make a request to the respective image project, + * such as debian-cloud or windows-cloud. + * + * Create a request for the method "images.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/images"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of custom images available to the specified project. Custom images are + * images you create that belong to your project. This method does not get any images that belong + * to other projects, including publicly-available images, like Debian 8. If you want to get a + * list of publicly-available images, use this method to make a request to the respective image + * project, such as debian-cloud or windows-cloud. + * + * Create a request for the method "images.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified image with the data included in the request. Only the following fields can + * be modified: family, description, deprecation status. + * + * Create a request for the method "images.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 Project ID for this request. + * @param image Name of the image resource to patch. + * @param content the {@link com.google.api.services.compute.model.Image} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.Image content) throws java.io.IOException { + Patch result = new Patch(project, image, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{image}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified image with the data included in the request. Only the following fields + * can be modified: family, description, deprecation status. + * + * Create a request for the method "images.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 Project ID for this request. + * @param image Name of the image resource to patch. + * @param content the {@link com.google.api.services.compute.model.Image} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.Image content) { + super(Compute.this, "PATCH", 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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 image resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String image; + + /** Name of the image resource to patch. + */ + public java.lang.String getImage() { + return image; + } + + /** Name of the image resource to patch. */ + public Patch setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "images.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "images.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InstanceGroupManagerResizeRequests collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceGroupManagerResizeRequests.List request = compute.instanceGroupManagerResizeRequests().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceGroupManagerResizeRequests instanceGroupManagerResizeRequests() { + return new InstanceGroupManagerResizeRequests(); + } + + /** + * The "instanceGroupManagerResizeRequests" collection of methods. + */ + public class InstanceGroupManagerResizeRequests { + + /** + * Cancels the specified resize request and removes it from the queue. Cancelled resize request does + * no longer wait for the resources to be provisioned. Cancel is only possible for requests that are + * accepted in the queue. + * + * Create a request for the method "instanceGroupManagerResizeRequests.cancel". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. + The name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Cancel result = new Cancel(project, zone, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Cancel extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Cancels the specified resize request and removes it from the queue. Cancelled resize request + * does no longer wait for the resources to be provisioned. Cancel is only possible for requests + * that are accepted in the queue. + * + * Create a request for the method "instanceGroupManagerResizeRequests.cancel". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link + * Cancel#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 thezone where the managed + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. + The name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "POST", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) 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 Cancel 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 thezone where the managed instance group is located. The name should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. The name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. + */ + public Cancel setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ + public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request to cancel. The name should conform to RFC1035 or be a + * resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request to cancel. The name should conform to RFC1035 or be a + * resource ID. + */ + public Cancel setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + 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 Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. + * Deleting request does not delete instances that were provisioned previously. + * + * Create a request for the method "instanceGroupManagerResizeRequests.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. + The name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Delete result = new Delete(project, zone, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + * Create a request for the method "instanceGroupManagerResizeRequests.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 thezone where the managed + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. + The name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "DELETE", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 thezone where the managed instance group is located. The name should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. The name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request to delete. The name should conform to RFC1035 or be a + * resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request to delete. The name should conform to RFC1035 or be a + * resource ID. + */ + public Delete setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified resize request. + * + * Create a request for the method "instanceGroupManagerResizeRequests.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 zone Name of the href="/compute/docs/regions-zones/#available">zone + scoping this request. Name should + * conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Get result = new Get(project, zone, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns all of the details about the specified resize request. + * + * Create a request for the method "instanceGroupManagerResizeRequests.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 zone Name of the href="/compute/docs/regions-zones/#available">zone + scoping this request. Name should + * conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 href="/compute/docs/regions-zones/#available">zone scoping this request. Name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should + conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name + * should conform to RFC1035. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public Get setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. + * + * Create a request for the method "instanceGroupManagerResizeRequests.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located and where the resize request will be + * created. + Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group to which the resize request will + be added. + Name should + * conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { + Insert result = new Insert(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. + * + * Create a request for the method "instanceGroupManagerResizeRequests.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 thezone where the managed + instance group is located and where the resize request will be + * created. + Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group to which the resize request will + be added. + Name should + * conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 thezone where the managed instance group is located and where the resize + * request will be created. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located and where the resize request will + be created. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located and where the resize + * request will be created. Name should conform to RFC1035. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group to which the resize request will be added. Name + * should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group to which the resize request will be added. Name should + conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group to which the resize request will be added. Name + * should conform to RFC1035 or be a resource ID. + */ + public Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of resize requests that are contained in the managed instance group. + * + * Create a request for the method "instanceGroupManagerResizeRequests.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 thezone where the managed + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + List result = new List(project, zone, instanceGroupManager); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of resize requests that are contained in the managed instance group. + * + * Create a request for the method "instanceGroupManagerResizeRequests.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 thezone where the managed + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequestsListResponse.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 thezone where the managed instance group is located. The name should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. The name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. The name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. The name should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. The name should conform to RFC1035. */ + public List setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InstanceGroupManagers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceGroupManagers.List request = compute.instanceGroupManagers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceGroupManagers instanceGroupManagers() { + return new InstanceGroupManagers(); + } + + /** + * The "instanceGroupManagers" collection of methods. + */ + public class InstanceGroupManagers { + + /** + * Flags the specified instances to be removed from the managed instance group. Abandoning an + * instance does not delete the instance, but it does remove the instance from any target pools that + * are applied by the managed instance group. This method reduces thetargetSize of the managed + * instance group by the number of instances that you abandon. This operation is marked asDONE when + * the action is scheduled even if the instances have not yet been removed from the group. You must + * separately verify the status of the abandoning action with thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.abandonInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest} + * @return the request + */ + public AbandonInstances abandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException { + AbandonInstances result = new AbandonInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class AbandonInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances to be removed from the managed instance group. Abandoning an + * instance does not delete the instance, but it does remove the instance from any target pools + * that are applied by the managed instance group. This method reduces thetargetSize of the + * managed instance group by the number of instances that you abandon. This operation is marked + * asDONE when the action is scheduled even if the instances have not yet been removed from the + * group. You must separately verify the status of the abandoning action with + * thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.abandonInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. + *

{@link AbandonInstances#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 zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest} + * @since 1.13 + */ + protected AbandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { + return (AbandonInstances) super.set$Xgafv($Xgafv); + } + + @Override + public AbandonInstances setAccessToken(java.lang.String accessToken) { + return (AbandonInstances) super.setAccessToken(accessToken); + } + + @Override + public AbandonInstances setAlt(java.lang.String alt) { + return (AbandonInstances) super.setAlt(alt); + } + + @Override + public AbandonInstances setCallback(java.lang.String callback) { + return (AbandonInstances) super.setCallback(callback); + } + + @Override + public AbandonInstances setFields(java.lang.String fields) { + return (AbandonInstances) super.setFields(fields); + } + + @Override + public AbandonInstances setKey(java.lang.String key) { + return (AbandonInstances) super.setKey(key); + } + + @Override + public AbandonInstances setOauthToken(java.lang.String oauthToken) { + return (AbandonInstances) super.setOauthToken(oauthToken); + } + + @Override + public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AbandonInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public AbandonInstances setQuotaUser(java.lang.String quotaUser) { + return (AbandonInstances) super.setQuotaUser(quotaUser); + } + + @Override + public AbandonInstances setUploadType(java.lang.String uploadType) { + return (AbandonInstances) super.setUploadType(uploadType); + } + + @Override + public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AbandonInstances setUserIp(java.lang.String userIp) { + return (AbandonInstances) 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 AbandonInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public AbandonInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 AbandonInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AbandonInstances set(String parameterName, Object value) { + return (AbandonInstances) super.set(parameterName, value); + } + } + /** + * Retrieves the list of managed instance groups and groups them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceGroupManagers.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/instanceGroupManagers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of managed instance groups and groups them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceGroupManagers.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Applies changes to selected instances on the managed instance group. This method can be used to + * apply new overrides and/or new versions. + * + * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. Should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest} + * @return the request + */ + public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { + ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class ApplyUpdatesToInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Applies changes to selected instances on the managed instance group. This method can be used to + * apply new overrides and/or new versions. + * + * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote + * operation.

{@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi + * ces.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 thezone + where the managed instance group is located. Should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest} + * @since 1.13 + */ + protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { + return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { + return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + } + + @Override + public ApplyUpdatesToInstances setAlt(java.lang.String alt) { + return (ApplyUpdatesToInstances) super.setAlt(alt); + } + + @Override + public ApplyUpdatesToInstances setCallback(java.lang.String callback) { + return (ApplyUpdatesToInstances) super.setCallback(callback); + } + + @Override + public ApplyUpdatesToInstances setFields(java.lang.String fields) { + return (ApplyUpdatesToInstances) super.setFields(fields); + } + + @Override + public ApplyUpdatesToInstances setKey(java.lang.String key) { + return (ApplyUpdatesToInstances) super.setKey(key); + } + + @Override + public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { + return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + } + + @Override + public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { + return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { + return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + } + + @Override + public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { + return (ApplyUpdatesToInstances) 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 ApplyUpdatesToInstances 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 thezone where the managed instance group is located. Should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. Should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. Should conform to RFC1035. + */ + public ApplyUpdatesToInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group, should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group, should conform to RFC1035. */ + public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public ApplyUpdatesToInstances set(String parameterName, Object value) { + return (ApplyUpdatesToInstances) super.set(parameterName, value); + } + } + /** + * Creates instances with per-instance configurations in this managed instance group. Instances are + * created using the current instance template. Thecreate instances operation is marked DONE if + * thecreateInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of thecreating or actions with the listmanagedinstances method. + * + * Create a request for the method "instanceGroupManagers.createInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} + * @return the request + */ + public CreateInstances createInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { + CreateInstances result = new CreateInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class CreateInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates instances with per-instance configurations in this managed instance group. Instances + * are created using the current instance template. Thecreate instances operation is marked DONE + * if thecreateInstances request is successful. The underlying actions take additional time. You + * must separately verify the status of thecreating or actions with the listmanagedinstances + * method. + * + * Create a request for the method "instanceGroupManagers.createInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} + * @since 1.13 + */ + protected CreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); + } + + @Override + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); + } + + @Override + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); + } + + @Override + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); + } + + @Override + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); + } + + @Override + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); + } + + @Override + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); + } + + @Override + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); + } + + @Override + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); + } + + @Override + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) 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 CreateInstances 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 thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public CreateInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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. + * + * 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. + + 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. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public CreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) super.set(parameterName, value); + } + } + /** + * Deletes the specified managed instance group and all of the instances in that group. Note that + * the instance group must not belong to a backend service. Read Deleting an instance group for more + * information. + * + * Create a request for the method "instanceGroupManagers.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + Delete result = new Delete(project, zone, instanceGroupManager); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified managed instance group and all of the instances in that group. Note that + * the instance group must not belong to a backend service. Read Deleting an instance group for + * more information. + * + * Create a request for the method "instanceGroupManagers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "DELETE", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group to delete. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group for immediate deletion. The instances + * are also removed from any target pools of which they were a member. This method reduces + * thetargetSize of the managed instance group by the number of instances that you delete. This + * operation is marked as DONE when the action is scheduled even if the instances are still being + * deleted. You must separately verify the status of the deleting action with + * thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.deleteInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + * @return the request + */ + public DeleteInstances deleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException { + DeleteInstances result = new DeleteInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class DeleteInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group for immediate deletion. The + * instances are also removed from any target pools of which they were a member. This method + * reduces thetargetSize of the managed instance group by the number of instances that you delete. + * This operation is marked as DONE when the action is scheduled even if the instances are still + * being deleted. You must separately verify the status of the deleting action with + * thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.deleteInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + * @since 1.13 + */ + protected DeleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); + } + + @Override + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); + } + + @Override + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); + } + + @Override + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); + } + + @Override + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); + } + + @Override + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); + } + + @Override + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); + } + + @Override + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) 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 DeleteInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public DeleteInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + public DeleteInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 DeleteInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteInstances set(String parameterName, Object value) { + return (DeleteInstances) super.set(parameterName, value); + } + } + /** + * Deletes selected per-instance configurations for the managed instance group. + * + * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance + group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq} + * @return the request + */ + public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq content) throws java.io.IOException { + DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class DeletePerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes selected per-instance configurations for the managed instance group. + * + * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv + * ices.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 thezone + where the managed instance + group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq} + * @since 1.13 + */ + protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public DeletePerInstanceConfigs setAlt(java.lang.String alt) { + return (DeletePerInstanceConfigs) super.setAlt(alt); + } + + @Override + public DeletePerInstanceConfigs setCallback(java.lang.String callback) { + return (DeletePerInstanceConfigs) super.setCallback(callback); + } + + @Override + public DeletePerInstanceConfigs setFields(java.lang.String fields) { + return (DeletePerInstanceConfigs) super.setFields(fields); + } + + @Override + public DeletePerInstanceConfigs setKey(java.lang.String key) { + return (DeletePerInstanceConfigs) super.setKey(key); + } + + @Override + public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (DeletePerInstanceConfigs) 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 DeletePerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public DeletePerInstanceConfigs setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public DeletePerInstanceConfigs set(String parameterName, Object value) { + return (DeletePerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified managed instance group. + * + * Create a request for the method "instanceGroupManagers.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 zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + Get result = new Get(project, zone, instanceGroupManager); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns all of the details about the specified managed instance group. + * + * Create a request for the method "instanceGroupManagers.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 zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManager.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * The name of thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a managed instance group using the information that you specify in the request. After the + * group is created, instances in the group are created using the specified instance template. This + * operation is marked as DONE when the group is created even if the instances in the group have not + * yet been created. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. + * + * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support + * if you need an increase in this limit. + * + * Create a request for the method "instanceGroupManagers.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where you want to create the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a managed instance group using the information that you specify in the request. After + * the group is created, instances in the group are created using the specified instance template. + * This operation is marked as DONE when the group is created even if the instances in the group + * have not yet been created. You must separately verify the status of the individual instances + * with thelistmanagedinstances method. + * + * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud + * Support if you need an increase in this limit. + * + * Create a request for the method "instanceGroupManagers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 + where you want to create the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroupManager 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 where you want to create the managed instance group. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the managed instance group. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the managed instance group. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of managed instance groups that are contained within the specified project and + * zone. + * + * Create a request for the method "instanceGroupManagers.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 thezone where the managed + instance group is located. + * @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}/instanceGroupManagers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of managed instance groups that are contained within the specified project and + * zone. + * + * Create a request for the method "instanceGroupManagers.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 thezone where the managed + instance group is located. + * @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.InstanceGroupManagerList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public List setZone(java.lang.String zone) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists all errors thrown by actions on instances for a given managed instance group. The filter + * and orderBy query parameters are not supported. + * + * Create a request for the method "instanceGroupManagers.listErrors". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @return the request + */ + public ListErrors listErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + ListErrors result = new ListErrors(project, zone, instanceGroupManager); + initialize(result); + return result; + } + + public class ListErrors extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all errors thrown by actions on instances for a given managed instance group. The filter + * and orderBy query parameters are not supported. + * + * Create a request for the method "instanceGroupManagers.listErrors". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

+ * {@link + * ListErrors#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 thezone where the managed + instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @since 1.13 + */ + protected ListErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListErrorsResponse.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListErrors set$Xgafv(java.lang.String $Xgafv) { + return (ListErrors) super.set$Xgafv($Xgafv); + } + + @Override + public ListErrors setAccessToken(java.lang.String accessToken) { + return (ListErrors) super.setAccessToken(accessToken); + } + + @Override + public ListErrors setAlt(java.lang.String alt) { + return (ListErrors) super.setAlt(alt); + } + + @Override + public ListErrors setCallback(java.lang.String callback) { + return (ListErrors) super.setCallback(callback); + } + + @Override + public ListErrors setFields(java.lang.String fields) { + return (ListErrors) super.setFields(fields); + } + + @Override + public ListErrors setKey(java.lang.String key) { + return (ListErrors) super.setKey(key); + } + + @Override + public ListErrors setOauthToken(java.lang.String oauthToken) { + return (ListErrors) super.setOauthToken(oauthToken); + } + + @Override + public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListErrors) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListErrors setQuotaUser(java.lang.String quotaUser) { + return (ListErrors) super.setQuotaUser(quotaUser); + } + + @Override + public ListErrors setUploadType(java.lang.String uploadType) { + return (ListErrors) super.setUploadType(uploadType); + } + + @Override + public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { + return (ListErrors) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListErrors setUserIp(java.lang.String userIp) { + return (ListErrors) 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 ListErrors 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 thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public ListErrors setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035, or an unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035, + or an unsigned long integer: must match regexp pattern: + (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035, or an unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + public ListErrors setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ListErrors 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 ListErrors 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 ListErrors 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 ListErrors setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListErrors set(String parameterName, Object value) { + return (ListErrors) super.set(parameterName, value); + } + } + /** + * Lists all of the instances in the managed instance group. Each instance in the list has a + * currentAction, which indicates the action that the managed instance group is performing on the + * instance. For example, if the group is still creating an instance, the currentAction is CREATING. + * If a previous action failed, the list displays the errors for that failed action. The orderBy + * query parameter is not supported. The `pageToken` query parameter is supported only if the + * group's `listManagedInstancesResults` field is set to `PAGINATED`. + * + * Create a request for the method "instanceGroupManagers.listManagedInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @return the request + */ + public ListManagedInstances listManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + ListManagedInstances result = new ListManagedInstances(project, zone, instanceGroupManager); + initialize(result); + return result; + } + + public class ListManagedInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all of the instances in the managed instance group. Each instance in the list has a + * currentAction, which indicates the action that the managed instance group is performing on the + * instance. For example, if the group is still creating an instance, the currentAction is + * CREATING. If a previous action failed, the list displays the errors for that failed action. The + * orderBy query parameter is not supported. The `pageToken` query parameter is supported only if + * the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * + * Create a request for the method "instanceGroupManagers.listManagedInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote + * operation.

{@link ListManagedInstances#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 thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @since 1.13 + */ + protected ListManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListManagedInstancesResponse.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListManagedInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ListManagedInstances setAccessToken(java.lang.String accessToken) { + return (ListManagedInstances) super.setAccessToken(accessToken); + } + + @Override + public ListManagedInstances setAlt(java.lang.String alt) { + return (ListManagedInstances) super.setAlt(alt); + } + + @Override + public ListManagedInstances setCallback(java.lang.String callback) { + return (ListManagedInstances) super.setCallback(callback); + } + + @Override + public ListManagedInstances setFields(java.lang.String fields) { + return (ListManagedInstances) super.setFields(fields); + } + + @Override + public ListManagedInstances setKey(java.lang.String key) { + return (ListManagedInstances) super.setKey(key); + } + + @Override + public ListManagedInstances setOauthToken(java.lang.String oauthToken) { + return (ListManagedInstances) super.setOauthToken(oauthToken); + } + + @Override + public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListManagedInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { + return (ListManagedInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ListManagedInstances setUploadType(java.lang.String uploadType) { + return (ListManagedInstances) super.setUploadType(uploadType); + } + + @Override + public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListManagedInstances setUserIp(java.lang.String userIp) { + return (ListManagedInstances) 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 ListManagedInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public ListManagedInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListManagedInstances set(String parameterName, Object value) { + return (ListManagedInstances) super.set(parameterName, value); + } + } + /** + * Lists all of the per-instance configurations defined for the managed instance group. The orderBy + * query parameter is not supported. + * + * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @return the request + */ + public ListPerInstanceConfigs listPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + ListPerInstanceConfigs result = new ListPerInstanceConfigs(project, zone, instanceGroupManager); + initialize(result); + return result; + } + + public class ListPerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all of the per-instance configurations defined for the managed instance group. The + * orderBy query parameter is not supported. + * + * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link ListPerInstanceConfigs#initialize(com.google.api.client.googleapis.servic + * es.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 thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @since 1.13 + */ + protected ListPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListPerInstanceConfigsResp.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (ListPerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public ListPerInstanceConfigs setAlt(java.lang.String alt) { + return (ListPerInstanceConfigs) super.setAlt(alt); + } + + @Override + public ListPerInstanceConfigs setCallback(java.lang.String callback) { + return (ListPerInstanceConfigs) super.setCallback(callback); + } + + @Override + public ListPerInstanceConfigs setFields(java.lang.String fields) { + return (ListPerInstanceConfigs) super.setFields(fields); + } + + @Override + public ListPerInstanceConfigs setKey(java.lang.String key) { + return (ListPerInstanceConfigs) super.setKey(key); + } + + @Override + public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (ListPerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (ListPerInstanceConfigs) 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 ListPerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public ListPerInstanceConfigs setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListPerInstanceConfigs set(String parameterName, Object value) { + return (ListPerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. + * + * If you update your group to specify a new template or instance configuration, it's possible that + * your intended specification for each VM in the group is different from the current state of that + * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. + * + * Create a request for the method "instanceGroupManagers.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 Project ID for this request. + * @param zone The name of the zone where + you want to create the managed instance group. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Patch result = new Patch(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. + * + * If you update your group to specify a new template or instance configuration, it's possible + * that your intended specification for each VM in the group is different from the current state + * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating + * instances in a MIG. + * + * Create a request for the method "instanceGroupManagers.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 Project ID for this request. + * @param zone The name of the zone where + you want to create the managed instance group. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { + super(Compute.this, "PATCH", 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 where you want to create the managed instance group. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the managed instance group. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the managed instance group. + */ + public Patch setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group manager. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the instance group manager. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the instance group manager. */ + public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Inserts or patches per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq} + * @return the request + */ + public PatchPerInstanceConfigs patchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq content) throws java.io.IOException { + PatchPerInstanceConfigs result = new PatchPerInstanceConfigs(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class PatchPerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Inserts or patches per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link PatchPerInstanceConfigs#initialize(com.google.api.client.googleapis.servi + * ces.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 thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq} + * @since 1.13 + */ + protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public PatchPerInstanceConfigs setAlt(java.lang.String alt) { + return (PatchPerInstanceConfigs) super.setAlt(alt); + } + + @Override + public PatchPerInstanceConfigs setCallback(java.lang.String callback) { + return (PatchPerInstanceConfigs) super.setCallback(callback); + } + + @Override + public PatchPerInstanceConfigs setFields(java.lang.String fields) { + return (PatchPerInstanceConfigs) super.setFields(fields); + } + + @Override + public PatchPerInstanceConfigs setKey(java.lang.String key) { + return (PatchPerInstanceConfigs) super.setKey(key); + } + + @Override + public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (PatchPerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (PatchPerInstanceConfigs) 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 PatchPerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public PatchPerInstanceConfigs setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 PatchPerInstanceConfigs setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchPerInstanceConfigs set(String parameterName, Object value) { + return (PatchPerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Flags the specified VM instances in the managed instance group to be immediately recreated. Each + * instance is recreated using the group's current configuration. This operation is marked as DONE + * when the flag is set even if the instances have not yet been recreated. You must separately + * verify the status of each instance by checking itscurrentAction field; for more information, see + * Checking the status of managed instances. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.recreateInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest} + * @return the request + */ + public RecreateInstances recreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest content) throws java.io.IOException { + RecreateInstances result = new RecreateInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class RecreateInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified VM instances in the managed instance group to be immediately recreated. + * Each instance is recreated using the group's current configuration. This operation is marked as + * DONE when the flag is set even if the instances have not yet been recreated. You must + * separately verify the status of each instance by checking itscurrentAction field; for more + * information, see Checking the status of managed instances. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.recreateInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest} + * @since 1.13 + */ + protected RecreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (RecreateInstances) super.set$Xgafv($Xgafv); + } + + @Override + public RecreateInstances setAccessToken(java.lang.String accessToken) { + return (RecreateInstances) super.setAccessToken(accessToken); + } + + @Override + public RecreateInstances setAlt(java.lang.String alt) { + return (RecreateInstances) super.setAlt(alt); + } + + @Override + public RecreateInstances setCallback(java.lang.String callback) { + return (RecreateInstances) super.setCallback(callback); + } + + @Override + public RecreateInstances setFields(java.lang.String fields) { + return (RecreateInstances) super.setFields(fields); + } + + @Override + public RecreateInstances setKey(java.lang.String key) { + return (RecreateInstances) super.setKey(key); + } + + @Override + public RecreateInstances setOauthToken(java.lang.String oauthToken) { + return (RecreateInstances) super.setOauthToken(oauthToken); + } + + @Override + public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RecreateInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public RecreateInstances setQuotaUser(java.lang.String quotaUser) { + return (RecreateInstances) super.setQuotaUser(quotaUser); + } + + @Override + public RecreateInstances setUploadType(java.lang.String uploadType) { + return (RecreateInstances) super.setUploadType(uploadType); + } + + @Override + public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RecreateInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RecreateInstances setUserIp(java.lang.String userIp) { + return (RecreateInstances) 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 RecreateInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public RecreateInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance recreation even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance recreation even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance recreation even if it's configured for + * the instances. + */ + public RecreateInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance recreation even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 RecreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RecreateInstances set(String parameterName, Object value) { + return (RecreateInstances) super.set(parameterName, value); + } + } + /** + * Resizes the managed instance group. If you increase the size, the group creates new instances + * using the current instance template. If you decrease the size, the group deletes instances. The + * resize operation is markedDONE when the resize actions are scheduled even if the group has not + * yet added or deleted any instances. You must separately verify the status of the creating or + * deleting actions with thelistmanagedinstances method. + * + * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. + * The group takes into account some VM attributes when making the selection including: + * + * + The status of the VM instance. + The health of the VM instance. + The instance template version + * the VM is based on. + For regional managed instance groups, the location of the VM instance. + * + * This list is subject to change. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * Create a request for the method "instanceGroupManagers.resize". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param size The number of running instances that the managed instance group should + maintain at any given time. + * The group automatically adds or removes + instances to maintain the number of instances + * specified by this parameter. + * @return the request + */ + public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) throws java.io.IOException { + Resize result = new Resize(project, zone, instanceGroupManager, size); + initialize(result); + return result; + } + + public class Resize extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Resizes the managed instance group. If you increase the size, the group creates new instances + * using the current instance template. If you decrease the size, the group deletes instances. The + * resize operation is markedDONE when the resize actions are scheduled even if the group has not + * yet added or deleted any instances. You must separately verify the status of the creating or + * deleting actions with thelistmanagedinstances method. + * + * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. + * The group takes into account some VM attributes when making the selection including: + * + * + The status of the VM instance. + The health of the VM instance. + The instance template + * version the VM is based on. + For regional managed instance groups, the location of the VM + * instance. + * + * This list is subject to change. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * Create a request for the method "instanceGroupManagers.resize". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link + * Resize#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 thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param size The number of running instances that the managed instance group should + maintain at any given time. + * The group automatically adds or removes + instances to maintain the number of instances + * specified by this parameter. + * @since 1.13 + */ + protected Resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) { + super(Compute.this, "POST", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); + } + + @Override + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); + } + + @Override + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); + } + + @Override + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); + } + + @Override + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); + } + + @Override + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); + } + + @Override + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); + } + + @Override + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); + } + + @Override + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); + } + + @Override + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resize setUserIp(java.lang.String userIp) { + return (Resize) 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 Resize 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public Resize setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The number of running instances that the managed instance group should maintain at any + * given time. The group automatically adds or removes instances to maintain the number of + * instances specified by this parameter. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** The number of running instances that the managed instance group should maintain at any given time. + The group automatically adds or removes instances to maintain the number of instances specified by + this parameter. + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * The number of running instances that the managed instance group should maintain at any + * given time. The group automatically adds or removes instances to maintain the number of + * instances specified by this parameter. + */ + public Resize setSize(java.lang.Integer size) { + this.size = size; + 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 Resize setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be resumed. This method increases + * thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number + * of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances + * request is successful. The underlying actions take additional time. You must separately verify + * the status of theRESUMING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.resumeInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest} + * @return the request + */ + public ResumeInstances resumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest content) throws java.io.IOException { + ResumeInstances result = new ResumeInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class ResumeInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of theRESUMING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.resumeInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest} + * @since 1.13 + */ + protected ResumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { + return (ResumeInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ResumeInstances setAccessToken(java.lang.String accessToken) { + return (ResumeInstances) super.setAccessToken(accessToken); + } + + @Override + public ResumeInstances setAlt(java.lang.String alt) { + return (ResumeInstances) super.setAlt(alt); + } + + @Override + public ResumeInstances setCallback(java.lang.String callback) { + return (ResumeInstances) super.setCallback(callback); + } + + @Override + public ResumeInstances setFields(java.lang.String fields) { + return (ResumeInstances) super.setFields(fields); + } + + @Override + public ResumeInstances setKey(java.lang.String key) { + return (ResumeInstances) super.setKey(key); + } + + @Override + public ResumeInstances setOauthToken(java.lang.String oauthToken) { + return (ResumeInstances) super.setOauthToken(oauthToken); + } + + @Override + public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResumeInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ResumeInstances setQuotaUser(java.lang.String quotaUser) { + return (ResumeInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ResumeInstances setUploadType(java.lang.String uploadType) { + return (ResumeInstances) super.setUploadType(uploadType); + } + + @Override + public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ResumeInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ResumeInstances setUserIp(java.lang.String userIp) { + return (ResumeInstances) 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 ResumeInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public ResumeInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ResumeInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ResumeInstances set(String parameterName, Object value) { + return (ResumeInstances) super.set(parameterName, value); + } + } + /** + * Specifies the instance template to use when creating new instances in this group. The templates + * for existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * + * Create a request for the method "instanceGroupManagers.setInstanceTemplate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest} + * @return the request + */ + public SetInstanceTemplate setInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest content) throws java.io.IOException { + SetInstanceTemplate result = new SetInstanceTemplate(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class SetInstanceTemplate extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Specifies the instance template to use when creating new instances in this group. The templates + * for existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * + * Create a request for the method "instanceGroupManagers.setInstanceTemplate". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote + * operation.

{@link SetInstanceTemplate#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 thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest} + * @since 1.13 + */ + protected SetInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetInstanceTemplate) super.set$Xgafv($Xgafv); + } + + @Override + public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { + return (SetInstanceTemplate) super.setAccessToken(accessToken); + } + + @Override + public SetInstanceTemplate setAlt(java.lang.String alt) { + return (SetInstanceTemplate) super.setAlt(alt); + } + + @Override + public SetInstanceTemplate setCallback(java.lang.String callback) { + return (SetInstanceTemplate) super.setCallback(callback); + } + + @Override + public SetInstanceTemplate setFields(java.lang.String fields) { + return (SetInstanceTemplate) super.setFields(fields); + } + + @Override + public SetInstanceTemplate setKey(java.lang.String key) { + return (SetInstanceTemplate) super.setKey(key); + } + + @Override + public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { + return (SetInstanceTemplate) super.setOauthToken(oauthToken); + } + + @Override + public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetInstanceTemplate) super.setQuotaUser(quotaUser); + } + + @Override + public SetInstanceTemplate setUploadType(java.lang.String uploadType) { + return (SetInstanceTemplate) super.setUploadType(uploadType); + } + + @Override + public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetInstanceTemplate setUserIp(java.lang.String userIp) { + return (SetInstanceTemplate) 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 SetInstanceTemplate 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public SetInstanceTemplate setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 SetInstanceTemplate setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetInstanceTemplate set(String parameterName, Object value) { + return (SetInstanceTemplate) super.set(parameterName, value); + } + } + /** + * Modifies the target pools to which all instances in this managed instance group are assigned. The + * target pools automatically apply to all of the instances in the managed instance group. This + * operation is markedDONE when you make the request even if the instances have not yet been added + * to their target pools. The change might take some time to apply to all of the instances in the + * group depending on the size of the group. + * + * Create a request for the method "instanceGroupManagers.setTargetPools". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest} + * @return the request + */ + public SetTargetPools setTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest content) throws java.io.IOException { + SetTargetPools result = new SetTargetPools(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class SetTargetPools extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Modifies the target pools to which all instances in this managed instance group are assigned. + * The target pools automatically apply to all of the instances in the managed instance group. + * This operation is markedDONE when you make the request even if the instances have not yet been + * added to their target pools. The change might take some time to apply to all of the instances + * in the group depending on the size of the group. + * + * Create a request for the method "instanceGroupManagers.setTargetPools". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest} + * @since 1.13 + */ + protected SetTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { + return (SetTargetPools) super.set$Xgafv($Xgafv); + } + + @Override + public SetTargetPools setAccessToken(java.lang.String accessToken) { + return (SetTargetPools) super.setAccessToken(accessToken); + } + + @Override + public SetTargetPools setAlt(java.lang.String alt) { + return (SetTargetPools) super.setAlt(alt); + } + + @Override + public SetTargetPools setCallback(java.lang.String callback) { + return (SetTargetPools) super.setCallback(callback); + } + + @Override + public SetTargetPools setFields(java.lang.String fields) { + return (SetTargetPools) super.setFields(fields); + } + + @Override + public SetTargetPools setKey(java.lang.String key) { + return (SetTargetPools) super.setKey(key); + } + + @Override + public SetTargetPools setOauthToken(java.lang.String oauthToken) { + return (SetTargetPools) super.setOauthToken(oauthToken); + } + + @Override + public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTargetPools) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetTargetPools setQuotaUser(java.lang.String quotaUser) { + return (SetTargetPools) super.setQuotaUser(quotaUser); + } + + @Override + public SetTargetPools setUploadType(java.lang.String uploadType) { + return (SetTargetPools) super.setUploadType(uploadType); + } + + @Override + public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTargetPools) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetTargetPools setUserIp(java.lang.String userIp) { + return (SetTargetPools) 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 SetTargetPools 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public SetTargetPools setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public SetTargetPools setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 SetTargetPools setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetTargetPools set(String parameterName, Object value) { + return (SetTargetPools) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be started. This method increases + * thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of + * instances that you start. The startInstances operation is marked DONE if the startInstances + * request is successful. The underlying actions take additional time. You must separately verify + * the status of theSTARTING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.startInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest} + * @return the request + */ + public StartInstances startInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest content) throws java.io.IOException { + StartInstances result = new StartInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class StartInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases thetargetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of theSTARTING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are stopped. For example, if an instance + * was previously stopped using the stopInstances method, it can be started using the + * startInstances method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.startInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest} + * @since 1.13 + */ + protected StartInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StartInstances set$Xgafv(java.lang.String $Xgafv) { + return (StartInstances) super.set$Xgafv($Xgafv); + } + + @Override + public StartInstances setAccessToken(java.lang.String accessToken) { + return (StartInstances) super.setAccessToken(accessToken); + } + + @Override + public StartInstances setAlt(java.lang.String alt) { + return (StartInstances) super.setAlt(alt); + } + + @Override + public StartInstances setCallback(java.lang.String callback) { + return (StartInstances) super.setCallback(callback); + } + + @Override + public StartInstances setFields(java.lang.String fields) { + return (StartInstances) super.setFields(fields); + } + + @Override + public StartInstances setKey(java.lang.String key) { + return (StartInstances) super.setKey(key); + } + + @Override + public StartInstances setOauthToken(java.lang.String oauthToken) { + return (StartInstances) super.setOauthToken(oauthToken); + } + + @Override + public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public StartInstances setQuotaUser(java.lang.String quotaUser) { + return (StartInstances) super.setQuotaUser(quotaUser); + } + + @Override + public StartInstances setUploadType(java.lang.String uploadType) { + return (StartInstances) super.setUploadType(uploadType); + } + + @Override + public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StartInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StartInstances setUserIp(java.lang.String userIp) { + return (StartInstances) 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 StartInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public StartInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 StartInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StartInstances set(String parameterName, Object value) { + return (StartInstances) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that you + * stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The + * underlying actions take additional time. You must separately verify the status of theSTOPPING + * action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the instance. + * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method + * is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. + * + * Stopped instances can be started using the startInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.stopInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest} + * @return the request + */ + public StopInstances stopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest content) throws java.io.IOException { + StopInstances result = new StopInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class StopInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of theSTOPPING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance + * was created). This delay gives your application time to set itself up and initialize on the + * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when + * this method is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * stopped. + * + * Stopped instances can be started using the startInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.stopInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest} + * @since 1.13 + */ + protected StopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StopInstances set$Xgafv(java.lang.String $Xgafv) { + return (StopInstances) super.set$Xgafv($Xgafv); + } + + @Override + public StopInstances setAccessToken(java.lang.String accessToken) { + return (StopInstances) super.setAccessToken(accessToken); + } + + @Override + public StopInstances setAlt(java.lang.String alt) { + return (StopInstances) super.setAlt(alt); + } + + @Override + public StopInstances setCallback(java.lang.String callback) { + return (StopInstances) super.setCallback(callback); + } + + @Override + public StopInstances setFields(java.lang.String fields) { + return (StopInstances) super.setFields(fields); + } + + @Override + public StopInstances setKey(java.lang.String key) { + return (StopInstances) super.setKey(key); + } + + @Override + public StopInstances setOauthToken(java.lang.String oauthToken) { + return (StopInstances) super.setOauthToken(oauthToken); + } + + @Override + public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public StopInstances setQuotaUser(java.lang.String quotaUser) { + return (StopInstances) super.setQuotaUser(quotaUser); + } + + @Override + public StopInstances setUploadType(java.lang.String uploadType) { + return (StopInstances) super.setUploadType(uploadType); + } + + @Override + public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StopInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StopInstances setUserIp(java.lang.String userIp) { + return (StopInstances) 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 StopInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public StopInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public StopInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance stopping even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance stopping even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance stopping even if it's configured for + * the instances. + */ + public StopInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance stopping even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 StopInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StopInstances set(String parameterName, Object value) { + return (StopInstances) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetSuspendedSize of the managed instance group by the number of instances that + * you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is + * successful. The underlying actions take additional time. You must separately verify the status of + * theSUSPENDING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the instance. + * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method + * is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is + * suspended. + * + * Suspended instances can be resumed using the resumeInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.suspendInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest} + * @return the request + */ + public SuspendInstances suspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest content) throws java.io.IOException { + SuspendInstances result = new SuspendInstances(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class SuspendInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces thetargetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of theSUSPENDING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance + * was created). This delay gives your application time to set itself up and initialize on the + * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when + * this method is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * suspended. + * + * Suspended instances can be resumed using the resumeInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.suspendInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. + *

{@link SuspendInstances#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 zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest} + * @since 1.13 + */ + protected SuspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { + return (SuspendInstances) super.set$Xgafv($Xgafv); + } + + @Override + public SuspendInstances setAccessToken(java.lang.String accessToken) { + return (SuspendInstances) super.setAccessToken(accessToken); + } + + @Override + public SuspendInstances setAlt(java.lang.String alt) { + return (SuspendInstances) super.setAlt(alt); + } + + @Override + public SuspendInstances setCallback(java.lang.String callback) { + return (SuspendInstances) super.setCallback(callback); + } + + @Override + public SuspendInstances setFields(java.lang.String fields) { + return (SuspendInstances) super.setFields(fields); + } + + @Override + public SuspendInstances setKey(java.lang.String key) { + return (SuspendInstances) super.setKey(key); + } + + @Override + public SuspendInstances setOauthToken(java.lang.String oauthToken) { + return (SuspendInstances) super.setOauthToken(oauthToken); + } + + @Override + public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SuspendInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public SuspendInstances setQuotaUser(java.lang.String quotaUser) { + return (SuspendInstances) super.setQuotaUser(quotaUser); + } + + @Override + public SuspendInstances setUploadType(java.lang.String uploadType) { + return (SuspendInstances) super.setUploadType(uploadType); + } + + @Override + public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (SuspendInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SuspendInstances setUserIp(java.lang.String userIp) { + return (SuspendInstances) 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 SuspendInstances 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 thezone where the managed instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. + */ + public SuspendInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 SuspendInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SuspendInstances set(String parameterName, Object value) { + return (SuspendInstances) super.set(parameterName, value); + } + } + /** + * Inserts or updates per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} + * @return the request + */ + public UpdatePerInstanceConfigs updatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq content) throws java.io.IOException { + UpdatePerInstanceConfigs result = new UpdatePerInstanceConfigs(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class UpdatePerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Inserts or updates per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link UpdatePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv + * ices.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 thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} + * @since 1.13 + */ + protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { + return (UpdatePerInstanceConfigs) super.setAlt(alt); + } + + @Override + public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { + return (UpdatePerInstanceConfigs) super.setCallback(callback); + } + + @Override + public UpdatePerInstanceConfigs setFields(java.lang.String fields) { + return (UpdatePerInstanceConfigs) super.setFields(fields); + } + + @Override + public UpdatePerInstanceConfigs setKey(java.lang.String key) { + return (UpdatePerInstanceConfigs) super.setKey(key); + } + + @Override + public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (UpdatePerInstanceConfigs) 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 UpdatePerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public UpdatePerInstanceConfigs setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdatePerInstanceConfigs set(String parameterName, Object value) { + return (UpdatePerInstanceConfigs) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InstanceGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceGroups.List request = compute.instanceGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceGroups instanceGroups() { + return new InstanceGroups(); + } + + /** + * The "instanceGroups" collection of methods. + */ + public class InstanceGroups { + + /** + * Adds a list of instances to the specified instance group. All of the instances in the instance + * group must be in the same network/subnetwork. Read Adding instances for more information. + * + * Create a request for the method "instanceGroups.addInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where you are adding instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest} + * @return the request + */ + public AddInstances addInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest content) throws java.io.IOException { + AddInstances result = new AddInstances(project, zone, instanceGroup, content); + initialize(result); + return result; + } + + public class AddInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Adds a list of instances to the specified instance group. All of the instances in the instance + * group must be in the same network/subnetwork. Read Adding instances for more information. + * + * Create a request for the method "instanceGroups.addInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation.

+ * {@link + * AddInstances#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 + where the instance group is located. + * @param instanceGroup The name of the instance group where you are adding instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest} + * @since 1.13 + */ + protected AddInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddInstances set$Xgafv(java.lang.String $Xgafv) { + return (AddInstances) super.set$Xgafv($Xgafv); + } + + @Override + public AddInstances setAccessToken(java.lang.String accessToken) { + return (AddInstances) super.setAccessToken(accessToken); + } + + @Override + public AddInstances setAlt(java.lang.String alt) { + return (AddInstances) super.setAlt(alt); + } + + @Override + public AddInstances setCallback(java.lang.String callback) { + return (AddInstances) super.setCallback(callback); + } + + @Override + public AddInstances setFields(java.lang.String fields) { + return (AddInstances) super.setFields(fields); + } + + @Override + public AddInstances setKey(java.lang.String key) { + return (AddInstances) super.setKey(key); + } + + @Override + public AddInstances setOauthToken(java.lang.String oauthToken) { + return (AddInstances) super.setOauthToken(oauthToken); + } + + @Override + public AddInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddInstances setQuotaUser(java.lang.String quotaUser) { + return (AddInstances) super.setQuotaUser(quotaUser); + } + + @Override + public AddInstances setUploadType(java.lang.String uploadType) { + return (AddInstances) super.setUploadType(uploadType); + } + + @Override + public AddInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AddInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddInstances setUserIp(java.lang.String userIp) { + return (AddInstances) 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 AddInstances 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 where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public AddInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group where you are adding instances. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group where you are adding instances. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the instance group where you are adding instances. */ + public AddInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 AddInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddInstances set(String parameterName, Object value) { + return (AddInstances) super.set(parameterName, value); + } + } + /** + * Retrieves the list of instance groups and sorts them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceGroups.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/instanceGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of instance groups and sorts them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceGroups.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified instance group. The instances in the group are not deleted. Note that + * instance group must not belong to a backend service. Read Deleting an instance group for more + * information. + * + * Create a request for the method "instanceGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, instanceGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified instance group. The instances in the group are not deleted. Note that + * instance group must not belong to a backend service. Read Deleting an instance group for more + * information. + * + * Create a request for the method "instanceGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 + where the instance group is located. + * @param instanceGroup The name of the instance group to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group to delete. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the instance group to delete. */ + public Delete setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified zonal instance group. Get a list of available zonal instance groups by + * making a list() request. + * + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods + * instead. + * + * Create a request for the method "instanceGroups.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 zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { + Get result = new Get(project, zone, instanceGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified zonal instance group. Get a list of available zonal instance groups by + * making a list() request. + * + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers + * methods instead. + * + * Create a request for the method "instanceGroups.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 zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroup.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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * The name of the zone where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the instance group. */ + public Get setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an instance group in the specified project using the parameters that are included in the + * request. + * + * Create a request for the method "instanceGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where you want to create the instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroup} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates an instance group in the specified project using the parameters that are included in + * the request. + * + * Create a request for the method "instanceGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 + where you want to create the instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroup 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 where you want to create the instance group. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the instance group. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the instance group. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of zonal instance group resources contained within the specified zone. + * + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods + * instead. + * + * Create a request for the method "instanceGroups.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 thezone + where the instance group is located. + * @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}/instanceGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of zonal instance group resources contained within the specified zone. + * + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers + * methods instead. + * + * Create a request for the method "instanceGroups.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 thezone + where the instance group is located. + * @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.InstanceGroupList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 thezone where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the instance group is located. + */ + public List setZone(java.lang.String zone) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the instances in the specified instance group. The orderBy query parameter is not + * supported. The filter query parameter is supported, but only for expressions that use `eq` + * (equal) or `ne` (not equal) operators. + * + * Create a request for the method "instanceGroups.listInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group from which you want to generate a list + of included instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsListInstancesRequest} + * @return the request + */ + public ListInstances listInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsListInstancesRequest content) throws java.io.IOException { + ListInstances result = new ListInstances(project, zone, instanceGroup, content); + initialize(result); + return result; + } + + public class ListInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the instances in the specified instance group. The orderBy query parameter is not + * supported. The filter query parameter is supported, but only for expressions that use `eq` + * (equal) or `ne` (not equal) operators. + * + * Create a request for the method "instanceGroups.listInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation.

+ * {@link ListInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 + where the instance group is located. + * @param instanceGroup The name of the instance group from which you want to generate a list + of included instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsListInstancesRequest} + * @since 1.13 + */ + protected ListInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsListInstancesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.InstanceGroupsListInstances.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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ListInstances setAccessToken(java.lang.String accessToken) { + return (ListInstances) super.setAccessToken(accessToken); + } + + @Override + public ListInstances setAlt(java.lang.String alt) { + return (ListInstances) super.setAlt(alt); + } + + @Override + public ListInstances setCallback(java.lang.String callback) { + return (ListInstances) super.setCallback(callback); + } + + @Override + public ListInstances setFields(java.lang.String fields) { + return (ListInstances) super.setFields(fields); + } + + @Override + public ListInstances setKey(java.lang.String key) { + return (ListInstances) super.setKey(key); + } + + @Override + public ListInstances setOauthToken(java.lang.String oauthToken) { + return (ListInstances) super.setOauthToken(oauthToken); + } + + @Override + public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListInstances setQuotaUser(java.lang.String quotaUser) { + return (ListInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ListInstances setUploadType(java.lang.String uploadType) { + return (ListInstances) super.setUploadType(uploadType); + } + + @Override + public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListInstances setUserIp(java.lang.String userIp) { + return (ListInstances) 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 ListInstances 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 where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public ListInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the instance group from which you want to generate a list of included + * instances. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group from which you want to generate a list of included instances. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** + * The name of the instance group from which you want to generate a list of included + * instances. + */ + public ListInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 ListInstances 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 ListInstances 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 ListInstances 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 ListInstances setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListInstances set(String parameterName, Object value) { + return (ListInstances) super.set(parameterName, value); + } + } + /** + * Removes one or more instances from the specified instance group, but does not delete those + * instances. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration before the VM instance is removed or deleted. + * + * Create a request for the method "instanceGroups.removeInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where the specified instances will be + removed. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest} + * @return the request + */ + public RemoveInstances removeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest content) throws java.io.IOException { + RemoveInstances result = new RemoveInstances(project, zone, instanceGroup, content); + initialize(result); + return result; + } + + public class RemoveInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Removes one or more instances from the specified instance group, but does not delete those + * instances. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration before the VM instance is removed or + * deleted. + * + * Create a request for the method "instanceGroups.removeInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. + *

{@link RemoveInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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 + where the instance group is located. + * @param instanceGroup The name of the instance group where the specified instances will be + removed. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest} + * @since 1.13 + */ + protected RemoveInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveInstances set$Xgafv(java.lang.String $Xgafv) { + return (RemoveInstances) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveInstances setAccessToken(java.lang.String accessToken) { + return (RemoveInstances) super.setAccessToken(accessToken); + } + + @Override + public RemoveInstances setAlt(java.lang.String alt) { + return (RemoveInstances) super.setAlt(alt); + } + + @Override + public RemoveInstances setCallback(java.lang.String callback) { + return (RemoveInstances) super.setCallback(callback); + } + + @Override + public RemoveInstances setFields(java.lang.String fields) { + return (RemoveInstances) super.setFields(fields); + } + + @Override + public RemoveInstances setKey(java.lang.String key) { + return (RemoveInstances) super.setKey(key); + } + + @Override + public RemoveInstances setOauthToken(java.lang.String oauthToken) { + return (RemoveInstances) super.setOauthToken(oauthToken); + } + + @Override + public RemoveInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveInstances setQuotaUser(java.lang.String quotaUser) { + return (RemoveInstances) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveInstances setUploadType(java.lang.String uploadType) { + return (RemoveInstances) super.setUploadType(uploadType); + } + + @Override + public RemoveInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveInstances setUserIp(java.lang.String userIp) { + return (RemoveInstances) 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 RemoveInstances 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 where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public RemoveInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the instance group where the specified instances will be removed. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group where the specified instances will be removed. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** + * The name of the instance group where the specified instances will be removed. + */ + public RemoveInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 RemoveInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveInstances set(String parameterName, Object value) { + return (RemoveInstances) super.set(parameterName, value); + } + } + /** + * Sets the named ports for the specified instance group. + * + * Create a request for the method "instanceGroups.setNamedPorts". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where the named ports are updated. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest} + * @return the request + */ + public SetNamedPorts setNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest content) throws java.io.IOException { + SetNamedPorts result = new SetNamedPorts(project, zone, instanceGroup, content); + initialize(result); + return result; + } + + public class SetNamedPorts extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the named ports for the specified instance group. + * + * Create a request for the method "instanceGroups.setNamedPorts". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation.

+ * {@link SetNamedPorts#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 + where the instance group is located. + * @param instanceGroup The name of the instance group where the named ports are updated. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest} + * @since 1.13 + */ + protected SetNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { + return (SetNamedPorts) super.set$Xgafv($Xgafv); + } + + @Override + public SetNamedPorts setAccessToken(java.lang.String accessToken) { + return (SetNamedPorts) super.setAccessToken(accessToken); + } + + @Override + public SetNamedPorts setAlt(java.lang.String alt) { + return (SetNamedPorts) super.setAlt(alt); + } + + @Override + public SetNamedPorts setCallback(java.lang.String callback) { + return (SetNamedPorts) super.setCallback(callback); + } + + @Override + public SetNamedPorts setFields(java.lang.String fields) { + return (SetNamedPorts) super.setFields(fields); + } + + @Override + public SetNamedPorts setKey(java.lang.String key) { + return (SetNamedPorts) super.setKey(key); + } + + @Override + public SetNamedPorts setOauthToken(java.lang.String oauthToken) { + return (SetNamedPorts) super.setOauthToken(oauthToken); + } + + @Override + public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNamedPorts) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { + return (SetNamedPorts) super.setQuotaUser(quotaUser); + } + + @Override + public SetNamedPorts setUploadType(java.lang.String uploadType) { + return (SetNamedPorts) super.setUploadType(uploadType); + } + + @Override + public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetNamedPorts setUserIp(java.lang.String userIp) { + return (SetNamedPorts) 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 SetNamedPorts 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 where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public SetNamedPorts setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group where the named ports are updated. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group where the named ports are updated. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the instance group where the named ports are updated. */ + public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 SetNamedPorts setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetNamedPorts set(String parameterName, Object value) { + return (SetNamedPorts) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "instanceGroups.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "instanceGroups.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InstanceSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceSettings.List request = compute.instanceSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceSettings instanceSettings() { + return new InstanceSettings(); + } + + /** + * The "instanceSettings" collection of methods. + */ + public class InstanceSettings { + + /** + * Get Instance settings. + * + * Create a request for the method "instanceSettings.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 zone Name of the zone for this request. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone) throws java.io.IOException { + Get result = new Get(project, zone); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Get Instance settings. + * + * Create a request for the method "instanceSettings.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 zone Name of the zone for this request. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceSettings.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patch Instance settings + * + * Create a request for the method "instanceSettings.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 Project ID for this request. + * @param zone The zone scoping this request. It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceSettings} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceSettings content) throws java.io.IOException { + Patch result = new Patch(project, zone, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Patch Instance settings + * + * Create a request for the method "instanceSettings.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 Project ID for this request. + * @param zone The zone scoping this request. It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceSettings} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceSettings content) { + super(Compute.this, "PATCH", 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 zone scoping this request. It should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The zone scoping this request. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The zone scoping this request. It should conform to RFC1035. */ + public Patch setZone(java.lang.String zone) { + this.zone = zone; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + 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 InstanceTemplates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceTemplates.List request = compute.instanceTemplates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceTemplates instanceTemplates() { + return new InstanceTemplates(); + } + + /** + * The "instanceTemplates" collection of methods. + */ + public class InstanceTemplates { + + /** + * Retrieves the list of all InstanceTemplates resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceTemplates.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/instanceTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all InstanceTemplates resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceTemplates.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified instance template. Deleting an instance template is permanent and cannot be + * undone. It is not possible to delete templates that are already in use by a managed instance + * group. + * + * Create a request for the method "instanceTemplates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param instanceTemplate The name of the instance template to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { + Delete result = new Delete(project, instanceTemplate); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANCE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified instance template. Deleting an instance template is permanent and cannot + * be undone. It is not possible to delete templates that are already in use by a managed instance + * group. + * + * Create a request for the method "instanceTemplates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 instanceTemplate The name of the instance template to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String instanceTemplate) { + super(Compute.this, "DELETE", REST_PATH, null, 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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 instance template to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** The name of the instance template to delete. + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** The name of the instance template to delete. */ + public Delete setInstanceTemplate(java.lang.String instanceTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instanceTemplate = instanceTemplate; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified instance template. + * + * Create a request for the method "instanceTemplates.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 instanceTemplate The name of the instance template. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { + Get result = new Get(project, instanceTemplate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANCE_TEMPLATE_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 instance template. + * + * Create a request for the method "instanceTemplates.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 instanceTemplate The name of the instance template. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String instanceTemplate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplate.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** The name of the instance template. + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** The name of the instance template. */ + public Get setInstanceTemplate(java.lang.String instanceTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instanceTemplate = instanceTemplate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "instanceTemplates.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "instanceTemplates.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates an instance template in the specified project using the data that is included in the + * request. If you are creating a new template to update an existing instance group, your new + * instance template must use the same network or, if applicable, the same subnetwork as the + * original template. + * + * Create a request for the method "instanceTemplates.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InstanceTemplate content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates an instance template in the specified project using the data that is included in the + * request. If you are creating a new template to update an existing instance group, your new + * instance template must use the same network or, if applicable, the same subnetwork as the + * original template. + * + * Create a request for the method "instanceTemplates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.InstanceTemplate 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of instance templates that are contained within the specified project. + * + * Create a request for the method "instanceTemplates.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of instance templates that are contained within the specified project. + * + * Create a request for the method "instanceTemplates.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instanceTemplates.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instanceTemplates.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Instances collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Instances.List request = compute.instances().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Instances instances() { + return new Instances(); + } + + /** + * The "instances" collection of methods. + */ + public class Instances { + + /** + * Adds an access config to an instance's network interface. + * + * Create a request for the method "instances.addAccessConfig". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAccessConfig#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to add to this instance. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @return the request + */ + public AddAccessConfig addAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) throws java.io.IOException { + AddAccessConfig result = new AddAccessConfig(project, zone, instance, networkInterface, content); + initialize(result); + return result; + } + + public class AddAccessConfig extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds an access config to an instance's network interface. + * + * Create a request for the method "instances.addAccessConfig". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAccessConfig#execute()} method to invoke the remote operation. + *

{@link AddAccessConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to add to this instance. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @since 1.13 + */ + protected AddAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddAccessConfig set$Xgafv(java.lang.String $Xgafv) { + return (AddAccessConfig) super.set$Xgafv($Xgafv); + } + + @Override + public AddAccessConfig setAccessToken(java.lang.String accessToken) { + return (AddAccessConfig) super.setAccessToken(accessToken); + } + + @Override + public AddAccessConfig setAlt(java.lang.String alt) { + return (AddAccessConfig) super.setAlt(alt); + } + + @Override + public AddAccessConfig setCallback(java.lang.String callback) { + return (AddAccessConfig) super.setCallback(callback); + } + + @Override + public AddAccessConfig setFields(java.lang.String fields) { + return (AddAccessConfig) super.setFields(fields); + } + + @Override + public AddAccessConfig setKey(java.lang.String key) { + return (AddAccessConfig) super.setKey(key); + } + + @Override + public AddAccessConfig setOauthToken(java.lang.String oauthToken) { + return (AddAccessConfig) super.setOauthToken(oauthToken); + } + + @Override + public AddAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAccessConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAccessConfig setQuotaUser(java.lang.String quotaUser) { + return (AddAccessConfig) super.setQuotaUser(quotaUser); + } + + @Override + public AddAccessConfig setUploadType(java.lang.String uploadType) { + return (AddAccessConfig) super.setUploadType(uploadType); + } + + @Override + public AddAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAccessConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAccessConfig setUserIp(java.lang.String userIp) { + return (AddAccessConfig) 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 AddAccessConfig 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 AddAccessConfig 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public AddAccessConfig setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** The name of the network interface to add to this instance. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface to add to this instance. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface to add to this instance. */ + public AddAccessConfig setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + 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 AddAccessConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAccessConfig set(String parameterName, Object value) { + return (AddAccessConfig) super.set(parameterName, value); + } + } + /** + * Adds one dynamic network interface to an active instance. + * + * Create a request for the method "instances.addNetworkInterface". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @return the request + */ + public AddNetworkInterface addNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.NetworkInterface content) throws java.io.IOException { + AddNetworkInterface result = new AddNetworkInterface(project, zone, instance, content); + initialize(result); + return result; + } + + public class AddNetworkInterface extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Adds one dynamic network interface to an active instance. + * + * Create a request for the method "instances.addNetworkInterface". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote + * operation.

{@link AddNetworkInterface#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. + * @param instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @since 1.13 + */ + protected AddNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.NetworkInterface 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddNetworkInterface set$Xgafv(java.lang.String $Xgafv) { + return (AddNetworkInterface) super.set$Xgafv($Xgafv); + } + + @Override + public AddNetworkInterface setAccessToken(java.lang.String accessToken) { + return (AddNetworkInterface) super.setAccessToken(accessToken); + } + + @Override + public AddNetworkInterface setAlt(java.lang.String alt) { + return (AddNetworkInterface) super.setAlt(alt); + } + + @Override + public AddNetworkInterface setCallback(java.lang.String callback) { + return (AddNetworkInterface) super.setCallback(callback); + } + + @Override + public AddNetworkInterface setFields(java.lang.String fields) { + return (AddNetworkInterface) super.setFields(fields); + } + + @Override + public AddNetworkInterface setKey(java.lang.String key) { + return (AddNetworkInterface) super.setKey(key); + } + + @Override + public AddNetworkInterface setOauthToken(java.lang.String oauthToken) { + return (AddNetworkInterface) super.setOauthToken(oauthToken); + } + + @Override + public AddNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNetworkInterface) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddNetworkInterface setQuotaUser(java.lang.String quotaUser) { + return (AddNetworkInterface) super.setQuotaUser(quotaUser); + } + + @Override + public AddNetworkInterface setUploadType(java.lang.String uploadType) { + return (AddNetworkInterface) super.setUploadType(uploadType); + } + + @Override + public AddNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNetworkInterface) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddNetworkInterface setUserIp(java.lang.String userIp) { + return (AddNetworkInterface) 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 AddNetworkInterface 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 AddNetworkInterface 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; + } + + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an + unsigned long integer. + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ + public AddNetworkInterface setInstance(java.lang.String instance) { + this.instance = instance; + 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 AddNetworkInterface setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddNetworkInterface set(String parameterName, Object value) { + return (AddNetworkInterface) super.set(parameterName, value); + } + } + /** + * Adds existing resource policies to an instance. You can only add one policy right now which will + * be applied to this instance for scheduling live migrations. + * + * Create a request for the method "instances.addResourcePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest} + * @return the request + */ + public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest content) throws java.io.IOException { + AddResourcePolicies result = new AddResourcePolicies(project, zone, instance, content); + initialize(result); + return result; + } + + public class AddResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds existing resource policies to an instance. You can only add one policy right now which + * will be applied to this instance for scheduling live migrations. + * + * Create a request for the method "instances.addResourcePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote + * operation.

{@link AddResourcePolicies#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. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest} + * @since 1.13 + */ + protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); + } + + @Override + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); + } + + @Override + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); + } + + @Override + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); + } + + @Override + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); + } + + @Override + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); + } + + @Override + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); + } + + @Override + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) 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 AddResourcePolicies 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 AddResourcePolicies 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public AddResourcePolicies setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 AddResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); + } + } + /** + * Retrieves an aggregated list of all of the instances in your project across all regions and + * zones. + * + * The performance of this method degrades when a filter is specified on a project that has a very + * large number of instances. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instances.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/instances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of all of the instances in your project across all regions and + * zones. + * + * The performance of this method degrades when a filter is specified on a project that has a very + * large number of instances. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instances.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Attaches an existing Disk resource to an instance. You must first create the disk before you can + * attach it. It is not possible to create and attach a disk at the same time. For more information, + * readAdding a persistent disk to your instance. + * + * Create a request for the method "instances.attachDisk". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AttachDisk#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.AttachedDisk} + * @return the request + */ + public AttachDisk attachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.AttachedDisk content) throws java.io.IOException { + AttachDisk result = new AttachDisk(project, zone, instance, content); + initialize(result); + return result; + } + + public class AttachDisk extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/attachDisk"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Attaches an existing Disk resource to an instance. You must first create the disk before you + * can attach it. It is not possible to create and attach a disk at the same time. For more + * information, readAdding a persistent disk to your instance. + * + * Create a request for the method "instances.attachDisk". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AttachDisk#execute()} method to invoke the remote operation.

+ * {@link + * AttachDisk#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. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.AttachedDisk} + * @since 1.13 + */ + protected AttachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.AttachedDisk 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AttachDisk set$Xgafv(java.lang.String $Xgafv) { + return (AttachDisk) super.set$Xgafv($Xgafv); + } + + @Override + public AttachDisk setAccessToken(java.lang.String accessToken) { + return (AttachDisk) super.setAccessToken(accessToken); + } + + @Override + public AttachDisk setAlt(java.lang.String alt) { + return (AttachDisk) super.setAlt(alt); + } + + @Override + public AttachDisk setCallback(java.lang.String callback) { + return (AttachDisk) super.setCallback(callback); + } + + @Override + public AttachDisk setFields(java.lang.String fields) { + return (AttachDisk) super.setFields(fields); + } + + @Override + public AttachDisk setKey(java.lang.String key) { + return (AttachDisk) super.setKey(key); + } + + @Override + public AttachDisk setOauthToken(java.lang.String oauthToken) { + return (AttachDisk) super.setOauthToken(oauthToken); + } + + @Override + public AttachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachDisk) super.setPrettyPrint(prettyPrint); + } + + @Override + public AttachDisk setQuotaUser(java.lang.String quotaUser) { + return (AttachDisk) super.setQuotaUser(quotaUser); + } + + @Override + public AttachDisk setUploadType(java.lang.String uploadType) { + return (AttachDisk) super.setUploadType(uploadType); + } + + @Override + public AttachDisk setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachDisk) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AttachDisk setUserIp(java.lang.String userIp) { + return (AttachDisk) 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 AttachDisk 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 AttachDisk 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public AttachDisk setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * Whether to force attach the regional disk even if it's currently attached to another + * instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceAttach; + + /** Whether to force attach the regional disk even if it's currently attached to another instance. If + you try to force attach a zonal disk to an instance, you will receive an error. + */ + public java.lang.Boolean getForceAttach() { + return forceAttach; + } + + /** + * Whether to force attach the regional disk even if it's currently attached to another + * instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + */ + public AttachDisk setForceAttach(java.lang.Boolean forceAttach) { + this.forceAttach = forceAttach; + 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 AttachDisk setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AttachDisk set(String parameterName, Object value) { + return (AttachDisk) super.set(parameterName, value); + } + } + /** + * Creates multiple instances. Count specifies the number of instances to create. For more + * information, seeAbout bulk creation of VMs. + * + * Create a request for the method "instances.bulkInsert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @return the request + */ + public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertInstanceResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, zone, content); + initialize(result); + return result; + } + + public class BulkInsert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/bulkInsert"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates multiple instances. Count specifies the number of instances to create. For more + * information, seeAbout bulk creation of VMs. + * + * Create a request for the method "instances.bulkInsert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

+ * {@link + * BulkInsert#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. + * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @since 1.13 + */ + protected BulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertInstanceResource 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); + } + + @Override + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); + } + + @Override + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); + } + + @Override + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); + } + + @Override + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); + } + + @Override + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); + } + + @Override + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); + } + + @Override + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); + } + + @Override + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); + } + + @Override + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) 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 BulkInsert 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 BulkInsert 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; + } + + /** + * 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 BulkInsert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); + } + } + /** + * Deletes the specified Instance resource. For more information, seeDeleting an instance. + * + * Create a request for the method "instances.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Delete result = new Delete(project, zone, instance); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified Instance resource. For more information, seeDeleting an instance. + * + * Create a request for the method "instances.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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. + * @param instance Name of the instance resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 instance resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to delete. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to delete. */ + public Delete setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** If set to true, Graceful Shutdown is skipped. */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** If set to true, Graceful Shutdown is skipped. + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** If set to true, Graceful Shutdown is skipped. */ + public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes an access config from an instance's network interface. + * + * Create a request for the method "instances.deleteAccessConfig". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteAccessConfig#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param accessConfig The name of the access config to delete. + * @param networkInterface The name of the network interface. + * @return the request + */ + public DeleteAccessConfig deleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) throws java.io.IOException { + DeleteAccessConfig result = new DeleteAccessConfig(project, zone, instance, accessConfig, networkInterface); + initialize(result); + return result; + } + + public class DeleteAccessConfig extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes an access config from an instance's network interface. + * + * Create a request for the method "instances.deleteAccessConfig". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteAccessConfig#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param accessConfig The name of the access config to delete. + * @param networkInterface The name of the network interface. + * @since 1.13 + */ + protected DeleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.accessConfig = com.google.api.client.util.Preconditions.checkNotNull(accessConfig, "Required parameter accessConfig must be specified."); + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteAccessConfig set$Xgafv(java.lang.String $Xgafv) { + return (DeleteAccessConfig) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteAccessConfig setAccessToken(java.lang.String accessToken) { + return (DeleteAccessConfig) super.setAccessToken(accessToken); + } + + @Override + public DeleteAccessConfig setAlt(java.lang.String alt) { + return (DeleteAccessConfig) super.setAlt(alt); + } + + @Override + public DeleteAccessConfig setCallback(java.lang.String callback) { + return (DeleteAccessConfig) super.setCallback(callback); + } + + @Override + public DeleteAccessConfig setFields(java.lang.String fields) { + return (DeleteAccessConfig) super.setFields(fields); + } + + @Override + public DeleteAccessConfig setKey(java.lang.String key) { + return (DeleteAccessConfig) super.setKey(key); + } + + @Override + public DeleteAccessConfig setOauthToken(java.lang.String oauthToken) { + return (DeleteAccessConfig) super.setOauthToken(oauthToken); + } + + @Override + public DeleteAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteAccessConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteAccessConfig setQuotaUser(java.lang.String quotaUser) { + return (DeleteAccessConfig) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteAccessConfig setUploadType(java.lang.String uploadType) { + return (DeleteAccessConfig) super.setUploadType(uploadType); + } + + @Override + public DeleteAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteAccessConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteAccessConfig setUserIp(java.lang.String userIp) { + return (DeleteAccessConfig) 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 DeleteAccessConfig 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 DeleteAccessConfig 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public DeleteAccessConfig setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** The name of the access config to delete. */ + @com.google.api.client.util.Key + private java.lang.String accessConfig; + + /** The name of the access config to delete. + */ + public java.lang.String getAccessConfig() { + return accessConfig; + } + + /** The name of the access config to delete. */ + public DeleteAccessConfig setAccessConfig(java.lang.String accessConfig) { + this.accessConfig = accessConfig; + return this; + } + + /** The name of the network interface. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface. */ + public DeleteAccessConfig setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + 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 DeleteAccessConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteAccessConfig set(String parameterName, Object value) { + return (DeleteAccessConfig) super.set(parameterName, value); + } + } + /** + * Deletes one dynamic network interface from an active instance. + * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using + * project+zone+resource_id fields; - dynamic network interface to be deleted, using + * network_interface_name field; + * + * Create a request for the method "instances.deleteNetworkInterface". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteNetworkInterface#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. + * @return the request + */ + public DeleteNetworkInterface deleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) throws java.io.IOException { + DeleteNetworkInterface result = new DeleteNetworkInterface(project, zone, instance, networkInterfaceName); + initialize(result); + return result; + } + + public class DeleteNetworkInterface extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Deletes one dynamic network interface from an active instance. + * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using + * project+zone+resource_id fields; - dynamic network interface to be deleted, using + * network_interface_name field; + * + * Create a request for the method "instances.deleteNetworkInterface". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteNetworkInterface#execute()} method to invoke the remote + * operation.

{@link DeleteNetworkInterface#initialize(com.google.api.client.googleapis.servic + * es.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. + * @param instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. + * @since 1.13 + */ + protected DeleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + this.networkInterfaceName = com.google.api.client.util.Preconditions.checkNotNull(networkInterfaceName, "Required parameter networkInterfaceName must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteNetworkInterface set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNetworkInterface) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteNetworkInterface setAccessToken(java.lang.String accessToken) { + return (DeleteNetworkInterface) super.setAccessToken(accessToken); + } + + @Override + public DeleteNetworkInterface setAlt(java.lang.String alt) { + return (DeleteNetworkInterface) super.setAlt(alt); + } + + @Override + public DeleteNetworkInterface setCallback(java.lang.String callback) { + return (DeleteNetworkInterface) super.setCallback(callback); + } + + @Override + public DeleteNetworkInterface setFields(java.lang.String fields) { + return (DeleteNetworkInterface) super.setFields(fields); + } + + @Override + public DeleteNetworkInterface setKey(java.lang.String key) { + return (DeleteNetworkInterface) super.setKey(key); + } + + @Override + public DeleteNetworkInterface setOauthToken(java.lang.String oauthToken) { + return (DeleteNetworkInterface) super.setOauthToken(oauthToken); + } + + @Override + public DeleteNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNetworkInterface) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteNetworkInterface setQuotaUser(java.lang.String quotaUser) { + return (DeleteNetworkInterface) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteNetworkInterface setUploadType(java.lang.String uploadType) { + return (DeleteNetworkInterface) super.setUploadType(uploadType); + } + + @Override + public DeleteNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNetworkInterface) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteNetworkInterface setUserIp(java.lang.String userIp) { + return (DeleteNetworkInterface) 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 DeleteNetworkInterface 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 DeleteNetworkInterface 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; + } + + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an + unsigned long integer. + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ + public DeleteNetworkInterface setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** The name of the dynamic network interface to be deleted from the instance. */ + @com.google.api.client.util.Key + private java.lang.String networkInterfaceName; + + /** The name of the dynamic network interface to be deleted from the instance. + */ + public java.lang.String getNetworkInterfaceName() { + return networkInterfaceName; + } + + /** The name of the dynamic network interface to be deleted from the instance. */ + public DeleteNetworkInterface setNetworkInterfaceName(java.lang.String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + 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 DeleteNetworkInterface setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteNetworkInterface set(String parameterName, Object value) { + return (DeleteNetworkInterface) super.set(parameterName, value); + } + } + /** + * Detaches a disk from an instance. + * + * Create a request for the method "instances.detachDisk". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DetachDisk#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Instance name for this request. + * @param deviceName The device name of the disk to detach. Make a get() request on + the instance to view currently + * attached disks and device names. + * @return the request + */ + public DetachDisk detachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) throws java.io.IOException { + DetachDisk result = new DetachDisk(project, zone, instance, deviceName); + initialize(result); + return result; + } + + public class DetachDisk extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/detachDisk"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Detaches a disk from an instance. + * + * Create a request for the method "instances.detachDisk". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DetachDisk#execute()} method to invoke the remote operation.

+ * {@link + * DetachDisk#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. + * @param instance Instance name for this request. + * @param deviceName The device name of the disk to detach. Make a get() request on + the instance to view currently + * attached disks and device names. + * @since 1.13 + */ + protected DetachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DetachDisk set$Xgafv(java.lang.String $Xgafv) { + return (DetachDisk) super.set$Xgafv($Xgafv); + } + + @Override + public DetachDisk setAccessToken(java.lang.String accessToken) { + return (DetachDisk) super.setAccessToken(accessToken); + } + + @Override + public DetachDisk setAlt(java.lang.String alt) { + return (DetachDisk) super.setAlt(alt); + } + + @Override + public DetachDisk setCallback(java.lang.String callback) { + return (DetachDisk) super.setCallback(callback); + } + + @Override + public DetachDisk setFields(java.lang.String fields) { + return (DetachDisk) super.setFields(fields); + } + + @Override + public DetachDisk setKey(java.lang.String key) { + return (DetachDisk) super.setKey(key); + } + + @Override + public DetachDisk setOauthToken(java.lang.String oauthToken) { + return (DetachDisk) super.setOauthToken(oauthToken); + } + + @Override + public DetachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachDisk) super.setPrettyPrint(prettyPrint); + } + + @Override + public DetachDisk setQuotaUser(java.lang.String quotaUser) { + return (DetachDisk) super.setQuotaUser(quotaUser); + } + + @Override + public DetachDisk setUploadType(java.lang.String uploadType) { + return (DetachDisk) super.setUploadType(uploadType); + } + + @Override + public DetachDisk setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachDisk) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DetachDisk setUserIp(java.lang.String userIp) { + return (DetachDisk) 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 DetachDisk 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 DetachDisk 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; + } + + /** Instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Instance name for this request. */ + public DetachDisk setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * The device name of the disk to detach. Make a get() request on the instance to view + * currently attached disks and device names. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** The device name of the disk to detach. Make a get() request on the instance to view currently + attached disks and device names. + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * The device name of the disk to detach. Make a get() request on the instance to view + * currently attached disks and device names. + */ + public DetachDisk setDeviceName(java.lang.String deviceName) { + this.deviceName = deviceName; + 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 DetachDisk setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DetachDisk set(String parameterName, Object value) { + return (DetachDisk) super.set(parameterName, value); + } + } + /** + * Returns the specified Instance resource. + * + * Create a request for the method "instances.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 zone The name of the zone for this request. + * @param instance Name of the instance resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Get result = new Get(project, zone, instance); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_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 Instance resource. + * + * Create a request for the method "instances.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 zone The name of the zone for this request. + * @param instance Name of the instance resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Instance.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 instance resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to return. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to return. */ + public Get setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns effective firewalls applied to an interface of the instance. + * + * Create a request for the method "instances.getEffectiveFirewalls". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param networkInterface The name of the network interface to get the effective firewalls. + * @return the request + */ + public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) throws java.io.IOException { + GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, zone, instance, networkInterface); + initialize(result); + return result; + } + + public class GetEffectiveFirewalls extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Returns effective firewalls applied to an interface of the instance. + * + * Create a request for the method "instances.getEffectiveFirewalls". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service + * s.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. + * @param instance Name of the instance scoping this request. + * @param networkInterface The name of the network interface to get the effective firewalls. + * @since 1.13 + */ + protected GetEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstancesGetEffectiveFirewallsResponse.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + } + + @Override + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + } + + @Override + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); + } + + @Override + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); + } + + @Override + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); + } + + @Override + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); + } + + @Override + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) 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 GetEffectiveFirewalls 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 GetEffectiveFirewalls 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public GetEffectiveFirewalls setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.instance = instance; + return this; + } + + /** The name of the network interface to get the effective firewalls. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface to get the effective firewalls. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface to get the effective firewalls. */ + public GetEffectiveFirewalls setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + return this; + } + + @Override + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); + } + } + /** + * Returns the specified guest attributes entry. + * + * Create a request for the method "instances.getGuestAttributes". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetGuestAttributes#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @return the request + */ + public GetGuestAttributes getGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetGuestAttributes result = new GetGuestAttributes(project, zone, instance); + initialize(result); + return result; + } + + public class GetGuestAttributes extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_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 guest attributes entry. + * + * Create a request for the method "instances.getGuestAttributes". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetGuestAttributes#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected GetGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GuestAttributes.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetGuestAttributes set$Xgafv(java.lang.String $Xgafv) { + return (GetGuestAttributes) super.set$Xgafv($Xgafv); + } + + @Override + public GetGuestAttributes setAccessToken(java.lang.String accessToken) { + return (GetGuestAttributes) super.setAccessToken(accessToken); + } + + @Override + public GetGuestAttributes setAlt(java.lang.String alt) { + return (GetGuestAttributes) super.setAlt(alt); + } + + @Override + public GetGuestAttributes setCallback(java.lang.String callback) { + return (GetGuestAttributes) super.setCallback(callback); + } + + @Override + public GetGuestAttributes setFields(java.lang.String fields) { + return (GetGuestAttributes) super.setFields(fields); + } + + @Override + public GetGuestAttributes setKey(java.lang.String key) { + return (GetGuestAttributes) super.setKey(key); + } + + @Override + public GetGuestAttributes setOauthToken(java.lang.String oauthToken) { + return (GetGuestAttributes) super.setOauthToken(oauthToken); + } + + @Override + public GetGuestAttributes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetGuestAttributes) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetGuestAttributes setQuotaUser(java.lang.String quotaUser) { + return (GetGuestAttributes) super.setQuotaUser(quotaUser); + } + + @Override + public GetGuestAttributes setUploadType(java.lang.String uploadType) { + return (GetGuestAttributes) super.setUploadType(uploadType); + } + + @Override + public GetGuestAttributes setUploadProtocol(java.lang.String uploadProtocol) { + return (GetGuestAttributes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetGuestAttributes setUserIp(java.lang.String userIp) { + return (GetGuestAttributes) 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 GetGuestAttributes 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 GetGuestAttributes 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public GetGuestAttributes setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** Specifies the guest attributes path to be queried. */ + @com.google.api.client.util.Key + private java.lang.String queryPath; + + /** Specifies the guest attributes path to be queried. + */ + public java.lang.String getQueryPath() { + return queryPath; + } + + /** Specifies the guest attributes path to be queried. */ + public GetGuestAttributes setQueryPath(java.lang.String queryPath) { + this.queryPath = queryPath; + return this; + } + + /** Specifies the key for the guest attributes entry. */ + @com.google.api.client.util.Key + private java.lang.String variableKey; + + /** Specifies the key for the guest attributes entry. + */ + public java.lang.String getVariableKey() { + return variableKey; + } + + /** Specifies the key for the guest attributes entry. */ + public GetGuestAttributes setVariableKey(java.lang.String variableKey) { + this.variableKey = variableKey; + return this; + } + + @Override + public GetGuestAttributes set(String parameterName, Object value) { + return (GetGuestAttributes) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "instances.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "instances.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

+ * {@link GetScreenshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected GetScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Screenshot.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetScreenshot set$Xgafv(java.lang.String $Xgafv) { + return (GetScreenshot) super.set$Xgafv($Xgafv); + } + + @Override + public GetScreenshot setAccessToken(java.lang.String accessToken) { + return (GetScreenshot) super.setAccessToken(accessToken); + } + + @Override + public GetScreenshot setAlt(java.lang.String alt) { + return (GetScreenshot) super.setAlt(alt); + } + + @Override + public GetScreenshot setCallback(java.lang.String callback) { + return (GetScreenshot) super.setCallback(callback); + } + + @Override + public GetScreenshot setFields(java.lang.String fields) { + return (GetScreenshot) super.setFields(fields); + } + + @Override + public GetScreenshot setKey(java.lang.String key) { + return (GetScreenshot) super.setKey(key); + } + + @Override + public GetScreenshot setOauthToken(java.lang.String oauthToken) { + return (GetScreenshot) super.setOauthToken(oauthToken); + } + + @Override + public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetScreenshot) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetScreenshot setQuotaUser(java.lang.String quotaUser) { + return (GetScreenshot) super.setQuotaUser(quotaUser); + } + + @Override + public GetScreenshot setUploadType(java.lang.String uploadType) { + return (GetScreenshot) super.setUploadType(uploadType); + } + + @Override + public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { + return (GetScreenshot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetScreenshot setUserIp(java.lang.String userIp) { + return (GetScreenshot) 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 GetScreenshot 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 GetScreenshot 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public GetScreenshot setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + @Override + public GetScreenshot set(String parameterName, Object value) { + return (GetScreenshot) super.set(parameterName, value); + } + } + /** + * Returns the last 1 MB of serial port output from the specified instance. + * + * Create a request for the method "instances.getSerialPortOutput". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance for this request. + * @return the request + */ + public GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetSerialPortOutput result = new GetSerialPortOutput(project, zone, instance); + initialize(result); + return result; + } + + public class GetSerialPortOutput extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the last 1 MB of serial port output from the specified instance. + * + * Create a request for the method "instances.getSerialPortOutput". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote + * operation.

{@link GetSerialPortOutput#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. + * @param instance Name of the instance for this request. + * @since 1.13 + */ + protected GetSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SerialPortOutput.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetSerialPortOutput set$Xgafv(java.lang.String $Xgafv) { + return (GetSerialPortOutput) super.set$Xgafv($Xgafv); + } + + @Override + public GetSerialPortOutput setAccessToken(java.lang.String accessToken) { + return (GetSerialPortOutput) super.setAccessToken(accessToken); + } + + @Override + public GetSerialPortOutput setAlt(java.lang.String alt) { + return (GetSerialPortOutput) super.setAlt(alt); + } + + @Override + public GetSerialPortOutput setCallback(java.lang.String callback) { + return (GetSerialPortOutput) super.setCallback(callback); + } + + @Override + public GetSerialPortOutput setFields(java.lang.String fields) { + return (GetSerialPortOutput) super.setFields(fields); + } + + @Override + public GetSerialPortOutput setKey(java.lang.String key) { + return (GetSerialPortOutput) super.setKey(key); + } + + @Override + public GetSerialPortOutput setOauthToken(java.lang.String oauthToken) { + return (GetSerialPortOutput) super.setOauthToken(oauthToken); + } + + @Override + public GetSerialPortOutput setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetSerialPortOutput) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetSerialPortOutput setQuotaUser(java.lang.String quotaUser) { + return (GetSerialPortOutput) super.setQuotaUser(quotaUser); + } + + @Override + public GetSerialPortOutput setUploadType(java.lang.String uploadType) { + return (GetSerialPortOutput) super.setUploadType(uploadType); + } + + @Override + public GetSerialPortOutput setUploadProtocol(java.lang.String uploadProtocol) { + return (GetSerialPortOutput) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetSerialPortOutput setUserIp(java.lang.String userIp) { + return (GetSerialPortOutput) 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 GetSerialPortOutput 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 GetSerialPortOutput 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 instance for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance for this request. */ + public GetSerialPortOutput setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** Specifies which COM or serial port to retrieve data from. */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** Specifies which COM or serial port to retrieve data from. [default: 1] [minimum: 1] [maximum: 4] + */ + public java.lang.Integer getPort() { + return port; + } + + /** Specifies which COM or serial port to retrieve data from. */ + public GetSerialPortOutput setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Specifies the starting byte position of the output to return. To start with the first byte + * of output to the specified port, omit this field or set it to `0`. + * + * If the output for that byte position is available, this field matches the `start` parameter + * sent with the request. If the amount of serial console output exceeds the size of the + * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested + * start position refers to discarded output, the start position is adjusted to the oldest + * output still available, and the adjusted start position is returned as the `start` property + * value. + * + * You can also provide a negative start position, which translates to the most recent number + * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 + * bytes written to the serial console. Note that the negative start is bounded by the + * retained buffer size, and the returned serial console output will not exceed the max buffer + * size. + */ + @com.google.api.client.util.Key + private java.lang.Long start; + + /** Specifies the starting byte position of the output to return. To start with the first byte of + output to the specified port, omit this field or set it to `0`. + + If the output for that byte position is available, this field matches the `start` parameter sent + with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the + oldest output is discarded and is no longer available. If the requested start position refers to + discarded output, the start position is adjusted to the oldest output still available, and the + adjusted start position is returned as the `start` property value. + + You can also provide a negative start position, which translates to the most recent number of bytes + written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to + the serial console. Note that the negative start is bounded by the retained buffer size, and the + returned serial console output will not exceed the max buffer size. + */ + public java.lang.Long getStart() { + return start; + } + + /** + * Specifies the starting byte position of the output to return. To start with the first byte + * of output to the specified port, omit this field or set it to `0`. + * + * If the output for that byte position is available, this field matches the `start` parameter + * sent with the request. If the amount of serial console output exceeds the size of the + * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested + * start position refers to discarded output, the start position is adjusted to the oldest + * output still available, and the adjusted start position is returned as the `start` property + * value. + * + * You can also provide a negative start position, which translates to the most recent number + * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 + * bytes written to the serial console. Note that the negative start is bounded by the + * retained buffer size, and the returned serial console output will not exceed the max buffer + * size. + */ + public GetSerialPortOutput setStart(java.lang.Long start) { + this.start = start; + return this; + } + + @Override + public GetSerialPortOutput set(String parameterName, Object value) { + return (GetSerialPortOutput) super.set(parameterName, value); + } + } + /** + * Returns the Shielded Instance Identity of an instance + * + * Create a request for the method "instances.getShieldedInstanceIdentity". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetShieldedInstanceIdentity#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name or id of the instance scoping this request. + * @return the request + */ + public GetShieldedInstanceIdentity getShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetShieldedInstanceIdentity result = new GetShieldedInstanceIdentity(project, zone, instance); + initialize(result); + return result; + } + + public class GetShieldedInstanceIdentity extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the Shielded Instance Identity of an instance + * + * Create a request for the method "instances.getShieldedInstanceIdentity". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetShieldedInstanceIdentity#execute()} method to invoke the remote + * operation.

{@link GetShieldedInstanceIdentity#initialize(com.google.api.client.googleapis.s + * ervices.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. + * @param instance Name or id of the instance scoping this request. + * @since 1.13 + */ + protected GetShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ShieldedInstanceIdentity.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetShieldedInstanceIdentity set$Xgafv(java.lang.String $Xgafv) { + return (GetShieldedInstanceIdentity) super.set$Xgafv($Xgafv); + } + + @Override + public GetShieldedInstanceIdentity setAccessToken(java.lang.String accessToken) { + return (GetShieldedInstanceIdentity) super.setAccessToken(accessToken); + } + + @Override + public GetShieldedInstanceIdentity setAlt(java.lang.String alt) { + return (GetShieldedInstanceIdentity) super.setAlt(alt); + } + + @Override + public GetShieldedInstanceIdentity setCallback(java.lang.String callback) { + return (GetShieldedInstanceIdentity) super.setCallback(callback); + } + + @Override + public GetShieldedInstanceIdentity setFields(java.lang.String fields) { + return (GetShieldedInstanceIdentity) super.setFields(fields); + } + + @Override + public GetShieldedInstanceIdentity setKey(java.lang.String key) { + return (GetShieldedInstanceIdentity) super.setKey(key); + } + + @Override + public GetShieldedInstanceIdentity setOauthToken(java.lang.String oauthToken) { + return (GetShieldedInstanceIdentity) super.setOauthToken(oauthToken); + } + + @Override + public GetShieldedInstanceIdentity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetShieldedInstanceIdentity) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetShieldedInstanceIdentity setQuotaUser(java.lang.String quotaUser) { + return (GetShieldedInstanceIdentity) super.setQuotaUser(quotaUser); + } + + @Override + public GetShieldedInstanceIdentity setUploadType(java.lang.String uploadType) { + return (GetShieldedInstanceIdentity) super.setUploadType(uploadType); + } + + @Override + public GetShieldedInstanceIdentity setUploadProtocol(java.lang.String uploadProtocol) { + return (GetShieldedInstanceIdentity) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetShieldedInstanceIdentity setUserIp(java.lang.String userIp) { + return (GetShieldedInstanceIdentity) 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 GetShieldedInstanceIdentity 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 GetShieldedInstanceIdentity 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 or id of the instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name or id of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name or id of the instance scoping this request. */ + public GetShieldedInstanceIdentity setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + @Override + public GetShieldedInstanceIdentity set(String parameterName, Object value) { + return (GetShieldedInstanceIdentity) super.set(parameterName, value); + } + } + /** + * Creates an instance resource in the specified project using the data included in the request. + * + * Create a request for the method "instances.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Instance} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Instance content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates an instance resource in the specified project using the data included in the request. + * + * Create a request for the method "instances.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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. + * @param content the {@link com.google.api.services.compute.model.Instance} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Instance 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Specifies instance template to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT + * emplate - projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplate; + + /** Specifies instance template to create the instance. + + This field is optional. It can be a full or partial URL. For example, the following are all valid + URLs to an instance template: + + - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + - projects/project/global/instanceTemplates/instanceTemplate - + global/instanceTemplates/instanceTemplate + */ + public java.lang.String getSourceInstanceTemplate() { + return sourceInstanceTemplate; + } + + /** + * Specifies instance template to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT + * emplate - projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate + */ + public Insert setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { + this.sourceInstanceTemplate = sourceInstanceTemplate; + return this; + } + + /** + * Specifies the machine image to use to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to a machine image: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin + * eImage - projects/project/global/global/machineImages/machineImage - + * global/machineImages/machineImage + */ + @com.google.api.client.util.Key + private java.lang.String sourceMachineImage; + + /** Specifies the machine image to use to create the instance. + + This field is optional. It can be a full or partial URL. For example, the following are all valid + URLs to a machine image: + + - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage - + projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage + */ + public java.lang.String getSourceMachineImage() { + return sourceMachineImage; + } + + /** + * Specifies the machine image to use to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to a machine image: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin + * eImage - projects/project/global/global/machineImages/machineImage - + * global/machineImages/machineImage + */ + public Insert setSourceMachineImage(java.lang.String sourceMachineImage) { + this.sourceMachineImage = sourceMachineImage; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of instances contained within the specified zone. + * + * Create a request for the method "instances.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}/instances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 the list of instances contained within the specified zone. + * + * Create a request for the method "instances.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.InstanceList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of resources that refer to the VM instance specified in the request. For + * example, if the VM instance is part of a managed or unmanaged instance group, the referrers list + * includes the instance group. For more information, readViewing referrers to VM instances. + * + * Create a request for the method "instances.listReferrers". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListReferrers#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the target instance scoping this request, or '-' if the + request should span over all + * instances in the container. + * @return the request + */ + public ListReferrers listReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + ListReferrers result = new ListReferrers(project, zone, instance); + initialize(result); + return result; + } + + public class ListReferrers extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/referrers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves a list of resources that refer to the VM instance specified in the request. For + * example, if the VM instance is part of a managed or unmanaged instance group, the referrers + * list includes the instance group. For more information, readViewing referrers to VM instances. + * + * Create a request for the method "instances.listReferrers". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListReferrers#execute()} method to invoke the remote operation.

+ * {@link ListReferrers#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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. + * @param instance Name of the target instance scoping this request, or '-' if the + request should span over all + * instances in the container. + * @since 1.13 + */ + protected ListReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceListReferrers.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListReferrers set$Xgafv(java.lang.String $Xgafv) { + return (ListReferrers) super.set$Xgafv($Xgafv); + } + + @Override + public ListReferrers setAccessToken(java.lang.String accessToken) { + return (ListReferrers) super.setAccessToken(accessToken); + } + + @Override + public ListReferrers setAlt(java.lang.String alt) { + return (ListReferrers) super.setAlt(alt); + } + + @Override + public ListReferrers setCallback(java.lang.String callback) { + return (ListReferrers) super.setCallback(callback); + } + + @Override + public ListReferrers setFields(java.lang.String fields) { + return (ListReferrers) super.setFields(fields); + } + + @Override + public ListReferrers setKey(java.lang.String key) { + return (ListReferrers) super.setKey(key); + } + + @Override + public ListReferrers setOauthToken(java.lang.String oauthToken) { + return (ListReferrers) super.setOauthToken(oauthToken); + } + + @Override + public ListReferrers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListReferrers) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListReferrers setQuotaUser(java.lang.String quotaUser) { + return (ListReferrers) super.setQuotaUser(quotaUser); + } + + @Override + public ListReferrers setUploadType(java.lang.String uploadType) { + return (ListReferrers) super.setUploadType(uploadType); + } + + @Override + public ListReferrers setUploadProtocol(java.lang.String uploadProtocol) { + return (ListReferrers) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListReferrers setUserIp(java.lang.String userIp) { + return (ListReferrers) 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 ListReferrers 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 ListReferrers 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 target instance scoping this request, or '-' if the request should span over + * all instances in the container. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the target instance scoping this request, or '-' if the request should span over all + instances in the container. + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Name of the target instance scoping this request, or '-' if the request should span over + * all instances in the container. + */ + public ListReferrers setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 ListReferrers 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 ListReferrers 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 ListReferrers 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 ListReferrers setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListReferrers set(String parameterName, Object value) { + return (ListReferrers) super.set(parameterName, value); + } + } + /** + * Perform a manual maintenance on the instance. + * + * Create a request for the method "instances.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, instance); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Perform a manual maintenance on the instance. + * + * Create a request for the method "instances.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) 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 PerformMaintenance 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 PerformMaintenance 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public PerformMaintenance setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } + /** + * Removes resource policies from an instance. + * + * Create a request for the method "instances.removeResourcePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} + * @return the request + */ + public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest content) throws java.io.IOException { + RemoveResourcePolicies result = new RemoveResourcePolicies(project, zone, instance, content); + initialize(result); + return result; + } + + public class RemoveResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes resource policies from an instance. + * + * Create a request for the method "instances.removeResourcePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation.

{@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic + * es.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. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} + * @since 1.13 + */ + protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); + } + + @Override + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); + } + + @Override + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); + } + + @Override + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); + } + + @Override + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); + } + + @Override + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + } + + @Override + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); + } + + @Override + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) 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 RemoveResourcePolicies 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 RemoveResourcePolicies 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public RemoveResourcePolicies setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); + } + } + /** + * Mark the host as faulty and try to restart the instance on a new host. + * + * Create a request for the method "instances.reportHostAsFaulty". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ReportHostAsFaulty#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest} + * @return the request + */ + public ReportHostAsFaulty reportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest content) throws java.io.IOException { + ReportHostAsFaulty result = new ReportHostAsFaulty(project, zone, instance, content); + initialize(result); + return result; + } + + public class ReportHostAsFaulty extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Mark the host as faulty and try to restart the instance on a new host. + * + * Create a request for the method "instances.reportHostAsFaulty". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ReportHostAsFaulty#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest} + * @since 1.13 + */ + protected ReportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ReportHostAsFaulty set$Xgafv(java.lang.String $Xgafv) { + return (ReportHostAsFaulty) super.set$Xgafv($Xgafv); + } + + @Override + public ReportHostAsFaulty setAccessToken(java.lang.String accessToken) { + return (ReportHostAsFaulty) super.setAccessToken(accessToken); + } + + @Override + public ReportHostAsFaulty setAlt(java.lang.String alt) { + return (ReportHostAsFaulty) super.setAlt(alt); + } + + @Override + public ReportHostAsFaulty setCallback(java.lang.String callback) { + return (ReportHostAsFaulty) super.setCallback(callback); + } + + @Override + public ReportHostAsFaulty setFields(java.lang.String fields) { + return (ReportHostAsFaulty) super.setFields(fields); + } + + @Override + public ReportHostAsFaulty setKey(java.lang.String key) { + return (ReportHostAsFaulty) super.setKey(key); + } + + @Override + public ReportHostAsFaulty setOauthToken(java.lang.String oauthToken) { + return (ReportHostAsFaulty) super.setOauthToken(oauthToken); + } + + @Override + public ReportHostAsFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReportHostAsFaulty) super.setPrettyPrint(prettyPrint); + } + + @Override + public ReportHostAsFaulty setQuotaUser(java.lang.String quotaUser) { + return (ReportHostAsFaulty) super.setQuotaUser(quotaUser); + } + + @Override + public ReportHostAsFaulty setUploadType(java.lang.String uploadType) { + return (ReportHostAsFaulty) super.setUploadType(uploadType); + } + + @Override + public ReportHostAsFaulty setUploadProtocol(java.lang.String uploadProtocol) { + return (ReportHostAsFaulty) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ReportHostAsFaulty setUserIp(java.lang.String userIp) { + return (ReportHostAsFaulty) 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 ReportHostAsFaulty 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 ReportHostAsFaulty 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public ReportHostAsFaulty setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 ReportHostAsFaulty setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ReportHostAsFaulty set(String parameterName, Object value) { + return (ReportHostAsFaulty) super.set(parameterName, value); + } + } + /** + * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. + * For more information, seeResetting an instance. + * + * Create a request for the method "instances.reset". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Reset#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @return the request + */ + public Reset reset(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Reset result = new Reset(project, zone, instance); + initialize(result); + return result; + } + + public class Reset extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reset"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. + * For more information, seeResetting an instance. + * + * Create a request for the method "instances.reset". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Reset#execute()} method to invoke the remote operation.

{@link + * Reset#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. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected Reset(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Reset set$Xgafv(java.lang.String $Xgafv) { + return (Reset) super.set$Xgafv($Xgafv); + } + + @Override + public Reset setAccessToken(java.lang.String accessToken) { + return (Reset) super.setAccessToken(accessToken); + } + + @Override + public Reset setAlt(java.lang.String alt) { + return (Reset) super.setAlt(alt); + } + + @Override + public Reset setCallback(java.lang.String callback) { + return (Reset) super.setCallback(callback); + } + + @Override + public Reset setFields(java.lang.String fields) { + return (Reset) super.setFields(fields); + } + + @Override + public Reset setKey(java.lang.String key) { + return (Reset) super.setKey(key); + } + + @Override + public Reset setOauthToken(java.lang.String oauthToken) { + return (Reset) super.setOauthToken(oauthToken); + } + + @Override + public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Reset) super.setPrettyPrint(prettyPrint); + } + + @Override + public Reset setQuotaUser(java.lang.String quotaUser) { + return (Reset) super.setQuotaUser(quotaUser); + } + + @Override + public Reset setUploadType(java.lang.String uploadType) { + return (Reset) super.setUploadType(uploadType); + } + + @Override + public Reset setUploadProtocol(java.lang.String uploadProtocol) { + return (Reset) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Reset setUserIp(java.lang.String userIp) { + return (Reset) 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 Reset 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 Reset 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public Reset setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 Reset setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Mode of reset operation. Defaults to HARD_RESET if not provided. */ + @com.google.api.client.util.Key + private java.lang.String resetMode; + + /** Mode of reset operation. Defaults to HARD_RESET if not provided. + */ + public java.lang.String getResetMode() { + return resetMode; + } + + /** Mode of reset operation. Defaults to HARD_RESET if not provided. */ + public Reset setResetMode(java.lang.String resetMode) { + this.resetMode = resetMode; + return this; + } + + @Override + public Reset set(String parameterName, Object value) { + return (Reset) super.set(parameterName, value); + } + } + /** + * Resumes an instance that was suspended using theinstances().suspend method. + * + * Create a request for the method "instances.resume". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to resume. + * @return the request + */ + public Resume resume(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Resume result = new Resume(project, zone, instance); + initialize(result); + return result; + } + + public class Resume extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/resume"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Resumes an instance that was suspended using theinstances().suspend method. + * + * Create a request for the method "instances.resume". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

{@link + * Resume#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. + * @param instance Name of the instance resource to resume. + * @since 1.13 + */ + protected Resume(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } + + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } + + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } + + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } + + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } + + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } + + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } + + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } + + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); + } + + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resume setUserIp(java.lang.String userIp) { + return (Resume) 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 Resume 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 Resume 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 instance resource to resume. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to resume. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to resume. */ + public Resume setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 Resume setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } + /** + * Sends diagnostic interrupt to the instance. + * + * Create a request for the method "instances.sendDiagnosticInterrupt". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SendDiagnosticInterrupt#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @return the request + */ + public SendDiagnosticInterrupt sendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + SendDiagnosticInterrupt result = new SendDiagnosticInterrupt(project, zone, instance); + initialize(result); + return result; + } + + public class SendDiagnosticInterrupt extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sends diagnostic interrupt to the instance. + * + * Create a request for the method "instances.sendDiagnosticInterrupt". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SendDiagnosticInterrupt#execute()} method to invoke the remote + * operation.

{@link SendDiagnosticInterrupt#initialize(com.google.api.client.googleapis.servi + * ces.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. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected SendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, Void.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SendDiagnosticInterrupt set$Xgafv(java.lang.String $Xgafv) { + return (SendDiagnosticInterrupt) super.set$Xgafv($Xgafv); + } + + @Override + public SendDiagnosticInterrupt setAccessToken(java.lang.String accessToken) { + return (SendDiagnosticInterrupt) super.setAccessToken(accessToken); + } + + @Override + public SendDiagnosticInterrupt setAlt(java.lang.String alt) { + return (SendDiagnosticInterrupt) super.setAlt(alt); + } + + @Override + public SendDiagnosticInterrupt setCallback(java.lang.String callback) { + return (SendDiagnosticInterrupt) super.setCallback(callback); + } + + @Override + public SendDiagnosticInterrupt setFields(java.lang.String fields) { + return (SendDiagnosticInterrupt) super.setFields(fields); + } + + @Override + public SendDiagnosticInterrupt setKey(java.lang.String key) { + return (SendDiagnosticInterrupt) super.setKey(key); + } + + @Override + public SendDiagnosticInterrupt setOauthToken(java.lang.String oauthToken) { + return (SendDiagnosticInterrupt) super.setOauthToken(oauthToken); + } + + @Override + public SendDiagnosticInterrupt setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SendDiagnosticInterrupt) super.setPrettyPrint(prettyPrint); + } + + @Override + public SendDiagnosticInterrupt setQuotaUser(java.lang.String quotaUser) { + return (SendDiagnosticInterrupt) super.setQuotaUser(quotaUser); + } + + @Override + public SendDiagnosticInterrupt setUploadType(java.lang.String uploadType) { + return (SendDiagnosticInterrupt) super.setUploadType(uploadType); + } + + @Override + public SendDiagnosticInterrupt setUploadProtocol(java.lang.String uploadProtocol) { + return (SendDiagnosticInterrupt) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SendDiagnosticInterrupt setUserIp(java.lang.String userIp) { + return (SendDiagnosticInterrupt) 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 SendDiagnosticInterrupt 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 SendDiagnosticInterrupt 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SendDiagnosticInterrupt setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + @Override + public SendDiagnosticInterrupt set(String parameterName, Object value) { + return (SendDiagnosticInterrupt) super.set(parameterName, value); + } + } + /** + * Sets deletion protection on the instance. + * + * Create a request for the method "instances.setDeletionProtection". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetDeletionProtection#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public SetDeletionProtection setDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + SetDeletionProtection result = new SetDeletionProtection(project, zone, resource); + initialize(result); + return result; + } + + public class SetDeletionProtection extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets deletion protection on the instance. + * + * Create a request for the method "instances.setDeletionProtection". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetDeletionProtection#execute()} method to invoke the remote + * operation.

{@link SetDeletionProtection#initialize(com.google.api.client.googleapis.service + * s.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. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected SetDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetDeletionProtection set$Xgafv(java.lang.String $Xgafv) { + return (SetDeletionProtection) super.set$Xgafv($Xgafv); + } + + @Override + public SetDeletionProtection setAccessToken(java.lang.String accessToken) { + return (SetDeletionProtection) super.setAccessToken(accessToken); + } + + @Override + public SetDeletionProtection setAlt(java.lang.String alt) { + return (SetDeletionProtection) super.setAlt(alt); + } + + @Override + public SetDeletionProtection setCallback(java.lang.String callback) { + return (SetDeletionProtection) super.setCallback(callback); + } + + @Override + public SetDeletionProtection setFields(java.lang.String fields) { + return (SetDeletionProtection) super.setFields(fields); + } + + @Override + public SetDeletionProtection setKey(java.lang.String key) { + return (SetDeletionProtection) super.setKey(key); + } + + @Override + public SetDeletionProtection setOauthToken(java.lang.String oauthToken) { + return (SetDeletionProtection) super.setOauthToken(oauthToken); + } + + @Override + public SetDeletionProtection setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDeletionProtection) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetDeletionProtection setQuotaUser(java.lang.String quotaUser) { + return (SetDeletionProtection) super.setQuotaUser(quotaUser); + } + + @Override + public SetDeletionProtection setUploadType(java.lang.String uploadType) { + return (SetDeletionProtection) super.setUploadType(uploadType); + } + + @Override + public SetDeletionProtection setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDeletionProtection) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetDeletionProtection setUserIp(java.lang.String userIp) { + return (SetDeletionProtection) 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 SetDeletionProtection 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 SetDeletionProtection 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetDeletionProtection setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Whether the resource should be protected against deletion. */ + @com.google.api.client.util.Key + private java.lang.Boolean deletionProtection; + + /** Whether the resource should be protected against deletion. [default: true] + */ + public java.lang.Boolean getDeletionProtection() { + return deletionProtection; + } + + /** Whether the resource should be protected against deletion. */ + public SetDeletionProtection setDeletionProtection(java.lang.Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * Whether the resource should be protected against deletion. + *

+ */ + public boolean isDeletionProtection() { + if (deletionProtection == null || deletionProtection == com.google.api.client.util.Data.NULL_BOOLEAN) { + return true; + } + return deletionProtection; + } + + /** + * 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 SetDeletionProtection setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetDeletionProtection set(String parameterName, Object value) { + return (SetDeletionProtection) super.set(parameterName, value); + } + } + /** + * Sets the auto-delete flag for a disk attached to an instance. + * + * Create a request for the method "instances.setDiskAutoDelete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetDiskAutoDelete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param autoDelete Whether to auto-delete the disk when the instance is deleted. + * @param deviceName The device name of the disk to modify. Make a get() request + on the instance to view currently + * attached disks and device names. + * @return the request + */ + public SetDiskAutoDelete setDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) throws java.io.IOException { + SetDiskAutoDelete result = new SetDiskAutoDelete(project, zone, instance, autoDelete, deviceName); + initialize(result); + return result; + } + + public class SetDiskAutoDelete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + private final java.util.regex.Pattern DEVICE_NAME_PATTERN = + java.util.regex.Pattern.compile("\\w[\\w.-]{0,254}"); + + /** + * Sets the auto-delete flag for a disk attached to an instance. + * + * Create a request for the method "instances.setDiskAutoDelete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetDiskAutoDelete#execute()} method to invoke the remote operation. + *

{@link SetDiskAutoDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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. + * @param instance The instance name for this request. + * @param autoDelete Whether to auto-delete the disk when the instance is deleted. + * @param deviceName The device name of the disk to modify. Make a get() request + on the instance to view currently + * attached disks and device names. + * @since 1.13 + */ + protected SetDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoDelete = com.google.api.client.util.Preconditions.checkNotNull(autoDelete, "Required parameter autoDelete must be specified."); + this.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), + "Parameter deviceName must conform to the pattern " + + "\\w[\\w.-]{0,254}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetDiskAutoDelete set$Xgafv(java.lang.String $Xgafv) { + return (SetDiskAutoDelete) super.set$Xgafv($Xgafv); + } + + @Override + public SetDiskAutoDelete setAccessToken(java.lang.String accessToken) { + return (SetDiskAutoDelete) super.setAccessToken(accessToken); + } + + @Override + public SetDiskAutoDelete setAlt(java.lang.String alt) { + return (SetDiskAutoDelete) super.setAlt(alt); + } + + @Override + public SetDiskAutoDelete setCallback(java.lang.String callback) { + return (SetDiskAutoDelete) super.setCallback(callback); + } + + @Override + public SetDiskAutoDelete setFields(java.lang.String fields) { + return (SetDiskAutoDelete) super.setFields(fields); + } + + @Override + public SetDiskAutoDelete setKey(java.lang.String key) { + return (SetDiskAutoDelete) super.setKey(key); + } + + @Override + public SetDiskAutoDelete setOauthToken(java.lang.String oauthToken) { + return (SetDiskAutoDelete) super.setOauthToken(oauthToken); + } + + @Override + public SetDiskAutoDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDiskAutoDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetDiskAutoDelete setQuotaUser(java.lang.String quotaUser) { + return (SetDiskAutoDelete) super.setQuotaUser(quotaUser); + } + + @Override + public SetDiskAutoDelete setUploadType(java.lang.String uploadType) { + return (SetDiskAutoDelete) super.setUploadType(uploadType); + } + + @Override + public SetDiskAutoDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDiskAutoDelete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetDiskAutoDelete setUserIp(java.lang.String userIp) { + return (SetDiskAutoDelete) 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 SetDiskAutoDelete 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 SetDiskAutoDelete 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public SetDiskAutoDelete setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** Whether to auto-delete the disk when the instance is deleted. */ + @com.google.api.client.util.Key + private java.lang.Boolean autoDelete; + + /** Whether to auto-delete the disk when the instance is deleted. + */ + public java.lang.Boolean getAutoDelete() { + return autoDelete; + } + + /** Whether to auto-delete the disk when the instance is deleted. */ + public SetDiskAutoDelete setAutoDelete(java.lang.Boolean autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * The device name of the disk to modify. Make a get() request on the instance to view + * currently attached disks and device names. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** The device name of the disk to modify. Make a get() request on the instance to view currently + attached disks and device names. + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * The device name of the disk to modify. Make a get() request on the instance to view + * currently attached disks and device names. + */ + public SetDiskAutoDelete setDeviceName(java.lang.String deviceName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), + "Parameter deviceName must conform to the pattern " + + "\\w[\\w.-]{0,254}"); + } + this.deviceName = deviceName; + 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 SetDiskAutoDelete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetDiskAutoDelete set(String parameterName, Object value) { + return (SetDiskAutoDelete) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instances.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instances.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

+ * {@link + * SetLabels#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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetLabelsRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 SetLabels 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SetLabels setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Changes the number and/or type of accelerator for a stopped instance to the values specified in + * the request. + * + * Create a request for the method "instances.setMachineResources". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetMachineResources#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineResourcesRequest} + * @return the request + */ + public SetMachineResources setMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineResourcesRequest content) throws java.io.IOException { + SetMachineResources result = new SetMachineResources(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetMachineResources extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineResources"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the number and/or type of accelerator for a stopped instance to the values specified in + * the request. + * + * Create a request for the method "instances.setMachineResources". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetMachineResources#execute()} method to invoke the remote + * operation.

{@link SetMachineResources#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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineResourcesRequest} + * @since 1.13 + */ + protected SetMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineResourcesRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetMachineResources set$Xgafv(java.lang.String $Xgafv) { + return (SetMachineResources) super.set$Xgafv($Xgafv); + } + + @Override + public SetMachineResources setAccessToken(java.lang.String accessToken) { + return (SetMachineResources) super.setAccessToken(accessToken); + } + + @Override + public SetMachineResources setAlt(java.lang.String alt) { + return (SetMachineResources) super.setAlt(alt); + } + + @Override + public SetMachineResources setCallback(java.lang.String callback) { + return (SetMachineResources) super.setCallback(callback); + } + + @Override + public SetMachineResources setFields(java.lang.String fields) { + return (SetMachineResources) super.setFields(fields); + } + + @Override + public SetMachineResources setKey(java.lang.String key) { + return (SetMachineResources) super.setKey(key); + } + + @Override + public SetMachineResources setOauthToken(java.lang.String oauthToken) { + return (SetMachineResources) super.setOauthToken(oauthToken); + } + + @Override + public SetMachineResources setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMachineResources) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetMachineResources setQuotaUser(java.lang.String quotaUser) { + return (SetMachineResources) super.setQuotaUser(quotaUser); + } + + @Override + public SetMachineResources setUploadType(java.lang.String uploadType) { + return (SetMachineResources) super.setUploadType(uploadType); + } + + @Override + public SetMachineResources setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMachineResources) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetMachineResources setUserIp(java.lang.String userIp) { + return (SetMachineResources) 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 SetMachineResources 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 SetMachineResources 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SetMachineResources setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetMachineResources setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetMachineResources set(String parameterName, Object value) { + return (SetMachineResources) super.set(parameterName, value); + } + } + /** + * Changes the machine type for a stopped instance to the machine type specified in the request. + * + * Create a request for the method "instances.setMachineType". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetMachineType#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineTypeRequest} + * @return the request + */ + public SetMachineType setMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineTypeRequest content) throws java.io.IOException { + SetMachineType result = new SetMachineType(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetMachineType extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineType"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the machine type for a stopped instance to the machine type specified in the request. + * + * Create a request for the method "instances.setMachineType". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetMachineType#execute()} method to invoke the remote operation. + *

{@link SetMachineType#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineTypeRequest} + * @since 1.13 + */ + protected SetMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineTypeRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetMachineType set$Xgafv(java.lang.String $Xgafv) { + return (SetMachineType) super.set$Xgafv($Xgafv); + } + + @Override + public SetMachineType setAccessToken(java.lang.String accessToken) { + return (SetMachineType) super.setAccessToken(accessToken); + } + + @Override + public SetMachineType setAlt(java.lang.String alt) { + return (SetMachineType) super.setAlt(alt); + } + + @Override + public SetMachineType setCallback(java.lang.String callback) { + return (SetMachineType) super.setCallback(callback); + } + + @Override + public SetMachineType setFields(java.lang.String fields) { + return (SetMachineType) super.setFields(fields); + } + + @Override + public SetMachineType setKey(java.lang.String key) { + return (SetMachineType) super.setKey(key); + } + + @Override + public SetMachineType setOauthToken(java.lang.String oauthToken) { + return (SetMachineType) super.setOauthToken(oauthToken); + } + + @Override + public SetMachineType setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMachineType) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetMachineType setQuotaUser(java.lang.String quotaUser) { + return (SetMachineType) super.setQuotaUser(quotaUser); + } + + @Override + public SetMachineType setUploadType(java.lang.String uploadType) { + return (SetMachineType) super.setUploadType(uploadType); + } + + @Override + public SetMachineType setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMachineType) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetMachineType setUserIp(java.lang.String userIp) { + return (SetMachineType) 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 SetMachineType 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 SetMachineType 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SetMachineType setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetMachineType setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetMachineType set(String parameterName, Object value) { + return (SetMachineType) super.set(parameterName, value); + } + } + /** + * Sets metadata for the specified instance to the data included in the request. + * + * Create a request for the method "instances.setMetadata". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetMetadata#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} + * @return the request + */ + public SetMetadata setMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Metadata content) throws java.io.IOException { + SetMetadata result = new SetMetadata(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetMetadata extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMetadata"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets metadata for the specified instance to the data included in the request. + * + * Create a request for the method "instances.setMetadata". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetMetadata#execute()} method to invoke the remote operation.

+ * {@link + * SetMetadata#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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} + * @since 1.13 + */ + protected SetMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Metadata 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetMetadata set$Xgafv(java.lang.String $Xgafv) { + return (SetMetadata) super.set$Xgafv($Xgafv); + } + + @Override + public SetMetadata setAccessToken(java.lang.String accessToken) { + return (SetMetadata) super.setAccessToken(accessToken); + } + + @Override + public SetMetadata setAlt(java.lang.String alt) { + return (SetMetadata) super.setAlt(alt); + } + + @Override + public SetMetadata setCallback(java.lang.String callback) { + return (SetMetadata) super.setCallback(callback); + } + + @Override + public SetMetadata setFields(java.lang.String fields) { + return (SetMetadata) super.setFields(fields); + } + + @Override + public SetMetadata setKey(java.lang.String key) { + return (SetMetadata) super.setKey(key); + } + + @Override + public SetMetadata setOauthToken(java.lang.String oauthToken) { + return (SetMetadata) super.setOauthToken(oauthToken); + } + + @Override + public SetMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMetadata) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetMetadata setQuotaUser(java.lang.String quotaUser) { + return (SetMetadata) super.setQuotaUser(quotaUser); + } + + @Override + public SetMetadata setUploadType(java.lang.String uploadType) { + return (SetMetadata) super.setUploadType(uploadType); + } + + @Override + public SetMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMetadata) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetMetadata setUserIp(java.lang.String userIp) { + return (SetMetadata) 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 SetMetadata 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 SetMetadata 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SetMetadata setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetMetadata setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetMetadata set(String parameterName, Object value) { + return (SetMetadata) super.set(parameterName, value); + } + } + /** + * Changes the minimum CPU platform that this instance should use. This method can only be called on + * a stopped instance. For more information, readSpecifying a Minimum CPU Platform. + * + * Create a request for the method "instances.setMinCpuPlatform". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetMinCpuPlatform#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest} + * @return the request + */ + public SetMinCpuPlatform setMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest content) throws java.io.IOException { + SetMinCpuPlatform result = new SetMinCpuPlatform(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetMinCpuPlatform extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the minimum CPU platform that this instance should use. This method can only be called + * on a stopped instance. For more information, readSpecifying a Minimum CPU Platform. + * + * Create a request for the method "instances.setMinCpuPlatform". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetMinCpuPlatform#execute()} method to invoke the remote operation. + *

{@link SetMinCpuPlatform#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest} + * @since 1.13 + */ + protected SetMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetMinCpuPlatform set$Xgafv(java.lang.String $Xgafv) { + return (SetMinCpuPlatform) super.set$Xgafv($Xgafv); + } + + @Override + public SetMinCpuPlatform setAccessToken(java.lang.String accessToken) { + return (SetMinCpuPlatform) super.setAccessToken(accessToken); + } + + @Override + public SetMinCpuPlatform setAlt(java.lang.String alt) { + return (SetMinCpuPlatform) super.setAlt(alt); + } + + @Override + public SetMinCpuPlatform setCallback(java.lang.String callback) { + return (SetMinCpuPlatform) super.setCallback(callback); + } + + @Override + public SetMinCpuPlatform setFields(java.lang.String fields) { + return (SetMinCpuPlatform) super.setFields(fields); + } + + @Override + public SetMinCpuPlatform setKey(java.lang.String key) { + return (SetMinCpuPlatform) super.setKey(key); + } + + @Override + public SetMinCpuPlatform setOauthToken(java.lang.String oauthToken) { + return (SetMinCpuPlatform) super.setOauthToken(oauthToken); + } + + @Override + public SetMinCpuPlatform setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMinCpuPlatform) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetMinCpuPlatform setQuotaUser(java.lang.String quotaUser) { + return (SetMinCpuPlatform) super.setQuotaUser(quotaUser); + } + + @Override + public SetMinCpuPlatform setUploadType(java.lang.String uploadType) { + return (SetMinCpuPlatform) super.setUploadType(uploadType); + } + + @Override + public SetMinCpuPlatform setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMinCpuPlatform) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetMinCpuPlatform setUserIp(java.lang.String userIp) { + return (SetMinCpuPlatform) 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 SetMinCpuPlatform 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 SetMinCpuPlatform 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SetMinCpuPlatform setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetMinCpuPlatform setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetMinCpuPlatform set(String parameterName, Object value) { + return (SetMinCpuPlatform) super.set(parameterName, value); + } + } + /** + * Sets name of an instance. + * + * Create a request for the method "instances.setName". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetName#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetNameRequest} + * @return the request + */ + public SetName setName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetNameRequest content) throws java.io.IOException { + SetName result = new SetName(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetName extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setName"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets name of an instance. + * + * Create a request for the method "instances.setName". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetName#execute()} method to invoke the remote operation.

+ * {@link + * SetName#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. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetNameRequest} + * @since 1.13 + */ + protected SetName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetNameRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetName set$Xgafv(java.lang.String $Xgafv) { + return (SetName) super.set$Xgafv($Xgafv); + } + + @Override + public SetName setAccessToken(java.lang.String accessToken) { + return (SetName) super.setAccessToken(accessToken); + } + + @Override + public SetName setAlt(java.lang.String alt) { + return (SetName) super.setAlt(alt); + } + + @Override + public SetName setCallback(java.lang.String callback) { + return (SetName) super.setCallback(callback); + } + + @Override + public SetName setFields(java.lang.String fields) { + return (SetName) super.setFields(fields); + } + + @Override + public SetName setKey(java.lang.String key) { + return (SetName) super.setKey(key); + } + + @Override + public SetName setOauthToken(java.lang.String oauthToken) { + return (SetName) super.setOauthToken(oauthToken); + } + + @Override + public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetName) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetName setQuotaUser(java.lang.String quotaUser) { + return (SetName) super.setQuotaUser(quotaUser); + } + + @Override + public SetName setUploadType(java.lang.String uploadType) { + return (SetName) super.setUploadType(uploadType); + } + + @Override + public SetName setUploadProtocol(java.lang.String uploadProtocol) { + return (SetName) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetName setUserIp(java.lang.String userIp) { + return (SetName) 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 SetName 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 SetName 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public SetName setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetName setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetName set(String parameterName, Object value) { + return (SetName) super.set(parameterName, value); + } + } + /** + * Sets an instance's scheduling options. You can only call this method on astopped instance, that + * is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on + * the possible instance states. For more information about setting scheduling options for a VM, + * seeSet VM host maintenance policy. + * + * Create a request for the method "instances.setScheduling". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetScheduling#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Instance name for this request. + * @param content the {@link com.google.api.services.compute.model.Scheduling} + * @return the request + */ + public SetScheduling setScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Scheduling content) throws java.io.IOException { + SetScheduling result = new SetScheduling(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetScheduling extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setScheduling"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets an instance's scheduling options. You can only call this method on astopped instance, that + * is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information + * on the possible instance states. For more information about setting scheduling options for a + * VM, seeSet VM host maintenance policy. + * + * Create a request for the method "instances.setScheduling". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetScheduling#execute()} method to invoke the remote operation.

+ * {@link SetScheduling#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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. + * @param instance Instance name for this request. + * @param content the {@link com.google.api.services.compute.model.Scheduling} + * @since 1.13 + */ + protected SetScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Scheduling 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetScheduling set$Xgafv(java.lang.String $Xgafv) { + return (SetScheduling) super.set$Xgafv($Xgafv); + } + + @Override + public SetScheduling setAccessToken(java.lang.String accessToken) { + return (SetScheduling) super.setAccessToken(accessToken); + } + + @Override + public SetScheduling setAlt(java.lang.String alt) { + return (SetScheduling) super.setAlt(alt); + } + + @Override + public SetScheduling setCallback(java.lang.String callback) { + return (SetScheduling) super.setCallback(callback); + } + + @Override + public SetScheduling setFields(java.lang.String fields) { + return (SetScheduling) super.setFields(fields); + } + + @Override + public SetScheduling setKey(java.lang.String key) { + return (SetScheduling) super.setKey(key); + } + + @Override + public SetScheduling setOauthToken(java.lang.String oauthToken) { + return (SetScheduling) super.setOauthToken(oauthToken); + } + + @Override + public SetScheduling setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetScheduling) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetScheduling setQuotaUser(java.lang.String quotaUser) { + return (SetScheduling) super.setQuotaUser(quotaUser); + } + + @Override + public SetScheduling setUploadType(java.lang.String uploadType) { + return (SetScheduling) super.setUploadType(uploadType); + } + + @Override + public SetScheduling setUploadProtocol(java.lang.String uploadProtocol) { + return (SetScheduling) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetScheduling setUserIp(java.lang.String userIp) { + return (SetScheduling) 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 SetScheduling 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 SetScheduling 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; + } + + /** Instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Instance name for this request. */ + public SetScheduling setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetScheduling setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetScheduling set(String parameterName, Object value) { + return (SetScheduling) super.set(parameterName, value); + } + } + /** + * Sets the Google Cloud Armor security policy for the specified instance. For more information, + * seeGoogle Cloud Armor Overview + * + * Create a request for the method "instances.setSecurityPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. + * @param instance Name of the Instance resource to which the security policy should be + set. The name should conform to + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest} + * @return the request + */ + public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest content) throws java.io.IOException { + SetSecurityPolicy result = new SetSecurityPolicy(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetSecurityPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Sets the Google Cloud Armor security policy for the specified instance. For more information, + * seeGoogle Cloud Armor Overview + * + * Create a request for the method "instances.setSecurityPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. + * @param instance Name of the Instance resource to which the security policy should be + set. The name should conform to + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest} + * @since 1.13 + */ + protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); + } + + @Override + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); + } + + @Override + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); + } + + @Override + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); + } + + @Override + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); + } + + @Override + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) 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 SetSecurityPolicy 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 zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping this request. */ + public SetSecurityPolicy 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 Instance resource to which the security policy should be set. The name should + * conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the Instance resource to which the security policy should be set. The name should conform + to RFC1035. + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Name of the Instance resource to which the security policy should be set. The name should + * conform to RFC1035. + */ + public SetSecurityPolicy setInstance(java.lang.String instance) { + this.instance = instance; + 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); + } + } + /** + * Sets the service account on the instance. For more information, readChanging the service account + * and access scopes for an instance. + * + * Create a request for the method "instances.setServiceAccount". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetServiceAccount#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesSetServiceAccountRequest} + * @return the request + */ + public SetServiceAccount setServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetServiceAccountRequest content) throws java.io.IOException { + SetServiceAccount result = new SetServiceAccount(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetServiceAccount extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the service account on the instance. For more information, readChanging the service + * account and access scopes for an instance. + * + * Create a request for the method "instances.setServiceAccount". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetServiceAccount#execute()} method to invoke the remote operation. + *

{@link SetServiceAccount#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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. + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesSetServiceAccountRequest} + * @since 1.13 + */ + protected SetServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetServiceAccountRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetServiceAccount set$Xgafv(java.lang.String $Xgafv) { + return (SetServiceAccount) super.set$Xgafv($Xgafv); + } + + @Override + public SetServiceAccount setAccessToken(java.lang.String accessToken) { + return (SetServiceAccount) super.setAccessToken(accessToken); + } + + @Override + public SetServiceAccount setAlt(java.lang.String alt) { + return (SetServiceAccount) super.setAlt(alt); + } + + @Override + public SetServiceAccount setCallback(java.lang.String callback) { + return (SetServiceAccount) super.setCallback(callback); + } + + @Override + public SetServiceAccount setFields(java.lang.String fields) { + return (SetServiceAccount) super.setFields(fields); + } + + @Override + public SetServiceAccount setKey(java.lang.String key) { + return (SetServiceAccount) super.setKey(key); + } + + @Override + public SetServiceAccount setOauthToken(java.lang.String oauthToken) { + return (SetServiceAccount) super.setOauthToken(oauthToken); + } + + @Override + public SetServiceAccount setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetServiceAccount) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetServiceAccount setQuotaUser(java.lang.String quotaUser) { + return (SetServiceAccount) super.setQuotaUser(quotaUser); + } + + @Override + public SetServiceAccount setUploadType(java.lang.String uploadType) { + return (SetServiceAccount) super.setUploadType(uploadType); + } + + @Override + public SetServiceAccount setUploadProtocol(java.lang.String uploadProtocol) { + return (SetServiceAccount) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetServiceAccount setUserIp(java.lang.String userIp) { + return (SetServiceAccount) 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 SetServiceAccount 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 SetServiceAccount 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 instance resource to start. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to start. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to start. */ + public SetServiceAccount setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetServiceAccount setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetServiceAccount set(String parameterName, Object value) { + return (SetServiceAccount) super.set(parameterName, value); + } + } + /** + * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a + * running instance. This method supports PATCH semantics and uses the JSON merge patch format and + * processing rules. + * + * Create a request for the method "instances.setShieldedInstanceIntegrityPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetShieldedInstanceIntegrityPolicy#execute()} method to invoke the + * remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy} + * @return the request + */ + public SetShieldedInstanceIntegrityPolicy setShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy content) throws java.io.IOException { + SetShieldedInstanceIntegrityPolicy result = new SetShieldedInstanceIntegrityPolicy(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetShieldedInstanceIntegrityPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a + * running instance. This method supports PATCH semantics and uses the JSON merge patch format and + * processing rules. + * + * Create a request for the method "instances.setShieldedInstanceIntegrityPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetShieldedInstanceIntegrityPolicy#execute()} method to invoke the + * remote operation.

{@link SetShieldedInstanceIntegrityPolicy#initialize(com.google.api.clien + * t.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. + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy} + * @since 1.13 + */ + protected SetShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetShieldedInstanceIntegrityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetShieldedInstanceIntegrityPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setAccessToken(java.lang.String accessToken) { + return (SetShieldedInstanceIntegrityPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setAlt(java.lang.String alt) { + return (SetShieldedInstanceIntegrityPolicy) super.setAlt(alt); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setCallback(java.lang.String callback) { + return (SetShieldedInstanceIntegrityPolicy) super.setCallback(callback); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setFields(java.lang.String fields) { + return (SetShieldedInstanceIntegrityPolicy) super.setFields(fields); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setKey(java.lang.String key) { + return (SetShieldedInstanceIntegrityPolicy) super.setKey(key); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetShieldedInstanceIntegrityPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetShieldedInstanceIntegrityPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetShieldedInstanceIntegrityPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setUploadType(java.lang.String uploadType) { + return (SetShieldedInstanceIntegrityPolicy) super.setUploadType(uploadType); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetShieldedInstanceIntegrityPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetShieldedInstanceIntegrityPolicy setUserIp(java.lang.String userIp) { + return (SetShieldedInstanceIntegrityPolicy) 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 SetShieldedInstanceIntegrityPolicy 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 SetShieldedInstanceIntegrityPolicy 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 or id of the instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name or id of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name or id of the instance scoping this request. */ + public SetShieldedInstanceIntegrityPolicy setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetShieldedInstanceIntegrityPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetShieldedInstanceIntegrityPolicy set(String parameterName, Object value) { + return (SetShieldedInstanceIntegrityPolicy) super.set(parameterName, value); + } + } + /** + * Sets network tags for the specified instance to the data included in the request. + * + * Create a request for the method "instances.setTags". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetTags#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Tags} + * @return the request + */ + public SetTags setTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Tags content) throws java.io.IOException { + SetTags result = new SetTags(project, zone, instance, content); + initialize(result); + return result; + } + + public class SetTags extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setTags"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets network tags for the specified instance to the data included in the request. + * + * Create a request for the method "instances.setTags". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetTags#execute()} method to invoke the remote operation.

+ * {@link + * SetTags#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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Tags} + * @since 1.13 + */ + protected SetTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Tags 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetTags set$Xgafv(java.lang.String $Xgafv) { + return (SetTags) super.set$Xgafv($Xgafv); + } + + @Override + public SetTags setAccessToken(java.lang.String accessToken) { + return (SetTags) super.setAccessToken(accessToken); + } + + @Override + public SetTags setAlt(java.lang.String alt) { + return (SetTags) super.setAlt(alt); + } + + @Override + public SetTags setCallback(java.lang.String callback) { + return (SetTags) super.setCallback(callback); + } + + @Override + public SetTags setFields(java.lang.String fields) { + return (SetTags) super.setFields(fields); + } + + @Override + public SetTags setKey(java.lang.String key) { + return (SetTags) super.setKey(key); + } + + @Override + public SetTags setOauthToken(java.lang.String oauthToken) { + return (SetTags) super.setOauthToken(oauthToken); + } + + @Override + public SetTags setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTags) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetTags setQuotaUser(java.lang.String quotaUser) { + return (SetTags) super.setQuotaUser(quotaUser); + } + + @Override + public SetTags setUploadType(java.lang.String uploadType) { + return (SetTags) super.setUploadType(uploadType); + } + + @Override + public SetTags setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTags) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetTags setUserIp(java.lang.String userIp) { + return (SetTags) 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 SetTags 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 SetTags 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SetTags setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SetTags setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetTags set(String parameterName, Object value) { + return (SetTags) super.set(parameterName, value); + } + } + /** + * Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance + * event. + * + * Create a request for the method "instances.simulateMaintenanceEvent". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @return the request + */ + public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, instance); + initialize(result); + return result; + } + + public class SimulateMaintenanceEvent extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Simulates a host maintenance event on a VM. For more information, see Simulate a host + * maintenance event. + * + * Create a request for the method "instances.simulateMaintenanceEvent". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation.

{@link SimulateMaintenanceEvent#initialize(com.google.api.client.googleapis.serv + * ices.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. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { + return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); + } + + @Override + public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { + return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); + } + + @Override + public SimulateMaintenanceEvent setAlt(java.lang.String alt) { + return (SimulateMaintenanceEvent) super.setAlt(alt); + } + + @Override + public SimulateMaintenanceEvent setCallback(java.lang.String callback) { + return (SimulateMaintenanceEvent) super.setCallback(callback); + } + + @Override + public SimulateMaintenanceEvent setFields(java.lang.String fields) { + return (SimulateMaintenanceEvent) super.setFields(fields); + } + + @Override + public SimulateMaintenanceEvent setKey(java.lang.String key) { + return (SimulateMaintenanceEvent) super.setKey(key); + } + + @Override + public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { + return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); + } + + @Override + public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); + } + + @Override + public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { + return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); + } + + @Override + public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { + return (SimulateMaintenanceEvent) super.setUploadType(uploadType); + } + + @Override + public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { + return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { + return (SimulateMaintenanceEvent) 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 SimulateMaintenanceEvent 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 SimulateMaintenanceEvent 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public SimulateMaintenanceEvent setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Determines whether the customers receive notifications before migration. Only applicable to + * SF vms. + */ + @com.google.api.client.util.Key + private java.lang.Boolean withExtendedNotifications; + + /** Determines whether the customers receive notifications before migration. Only applicable to SF vms. + */ + public java.lang.Boolean getWithExtendedNotifications() { + return withExtendedNotifications; + } + + /** + * Determines whether the customers receive notifications before migration. Only applicable to + * SF vms. + */ + public SimulateMaintenanceEvent setWithExtendedNotifications(java.lang.Boolean withExtendedNotifications) { + this.withExtendedNotifications = withExtendedNotifications; + return this; + } + + @Override + public SimulateMaintenanceEvent set(String parameterName, Object value) { + return (SimulateMaintenanceEvent) super.set(parameterName, value); + } + } + /** + * Starts an instance that was stopped using theinstances().stop method. For more information, + * seeRestart an instance. + * + * Create a request for the method "instances.start". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to start. + * @return the request + */ + public Start start(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Start result = new Start(project, zone, instance); + initialize(result); + return result; + } + + public class Start extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/start"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Starts an instance that was stopped using theinstances().stop method. For more information, + * seeRestart an instance. + * + * Create a request for the method "instances.start". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation.

{@link + * Start#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. + * @param instance Name of the instance resource to start. + * @since 1.13 + */ + protected Start(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Start set$Xgafv(java.lang.String $Xgafv) { + return (Start) super.set$Xgafv($Xgafv); + } + + @Override + public Start setAccessToken(java.lang.String accessToken) { + return (Start) super.setAccessToken(accessToken); + } + + @Override + public Start setAlt(java.lang.String alt) { + return (Start) super.setAlt(alt); + } + + @Override + public Start setCallback(java.lang.String callback) { + return (Start) super.setCallback(callback); + } + + @Override + public Start setFields(java.lang.String fields) { + return (Start) super.setFields(fields); + } + + @Override + public Start setKey(java.lang.String key) { + return (Start) super.setKey(key); + } + + @Override + public Start setOauthToken(java.lang.String oauthToken) { + return (Start) super.setOauthToken(oauthToken); + } + + @Override + public Start setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Start) super.setPrettyPrint(prettyPrint); + } + + @Override + public Start setQuotaUser(java.lang.String quotaUser) { + return (Start) super.setQuotaUser(quotaUser); + } + + @Override + public Start setUploadType(java.lang.String uploadType) { + return (Start) super.setUploadType(uploadType); + } + + @Override + public Start setUploadProtocol(java.lang.String uploadProtocol) { + return (Start) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Start setUserIp(java.lang.String userIp) { + return (Start) 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 Start 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 Start 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 instance resource to start. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to start. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to start. */ + public Start setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 Start setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Start set(String parameterName, Object value) { + return (Start) super.set(parameterName, value); + } + } + /** + * Starts an instance that was stopped using theinstances().stop method. For more information, + * seeRestart an instance. + * + * Create a request for the method "instances.startWithEncryptionKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StartWithEncryptionKey#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest} + * @return the request + */ + public StartWithEncryptionKey startWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest content) throws java.io.IOException { + StartWithEncryptionKey result = new StartWithEncryptionKey(project, zone, instance, content); + initialize(result); + return result; + } + + public class StartWithEncryptionKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Starts an instance that was stopped using theinstances().stop method. For more information, + * seeRestart an instance. + * + * Create a request for the method "instances.startWithEncryptionKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StartWithEncryptionKey#execute()} method to invoke the remote + * operation.

{@link StartWithEncryptionKey#initialize(com.google.api.client.googleapis.servic + * es.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. + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest} + * @since 1.13 + */ + protected StartWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StartWithEncryptionKey set$Xgafv(java.lang.String $Xgafv) { + return (StartWithEncryptionKey) super.set$Xgafv($Xgafv); + } + + @Override + public StartWithEncryptionKey setAccessToken(java.lang.String accessToken) { + return (StartWithEncryptionKey) super.setAccessToken(accessToken); + } + + @Override + public StartWithEncryptionKey setAlt(java.lang.String alt) { + return (StartWithEncryptionKey) super.setAlt(alt); + } + + @Override + public StartWithEncryptionKey setCallback(java.lang.String callback) { + return (StartWithEncryptionKey) super.setCallback(callback); + } + + @Override + public StartWithEncryptionKey setFields(java.lang.String fields) { + return (StartWithEncryptionKey) super.setFields(fields); + } + + @Override + public StartWithEncryptionKey setKey(java.lang.String key) { + return (StartWithEncryptionKey) super.setKey(key); + } + + @Override + public StartWithEncryptionKey setOauthToken(java.lang.String oauthToken) { + return (StartWithEncryptionKey) super.setOauthToken(oauthToken); + } + + @Override + public StartWithEncryptionKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartWithEncryptionKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public StartWithEncryptionKey setQuotaUser(java.lang.String quotaUser) { + return (StartWithEncryptionKey) super.setQuotaUser(quotaUser); + } + + @Override + public StartWithEncryptionKey setUploadType(java.lang.String uploadType) { + return (StartWithEncryptionKey) super.setUploadType(uploadType); + } + + @Override + public StartWithEncryptionKey setUploadProtocol(java.lang.String uploadProtocol) { + return (StartWithEncryptionKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StartWithEncryptionKey setUserIp(java.lang.String userIp) { + return (StartWithEncryptionKey) 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 StartWithEncryptionKey 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 StartWithEncryptionKey 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 instance resource to start. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to start. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to start. */ + public StartWithEncryptionKey setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 StartWithEncryptionKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StartWithEncryptionKey set(String parameterName, Object value) { + return (StartWithEncryptionKey) super.set(parameterName, value); + } + } + /** + * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a + * later time. Stopped instances do not incur VM usage charges while they are stopped. However, + * resources that the VM is using, such as persistent disks and static IP addresses, will continue + * to be charged until they are deleted. For more information, seeStopping an instance. + * + * Create a request for the method "instances.stop". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to stop. + * @return the request + */ + public Stop stop(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Stop result = new Stop(project, zone, instance); + initialize(result); + return result; + } + + public class Stop extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/stop"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a + * later time. Stopped instances do not incur VM usage charges while they are stopped. However, + * resources that the VM is using, such as persistent disks and static IP addresses, will continue + * to be charged until they are deleted. For more information, seeStopping an instance. + * + * Create a request for the method "instances.stop". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation.

{@link + * Stop#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. + * @param instance Name of the instance resource to stop. + * @since 1.13 + */ + protected Stop(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Stop set$Xgafv(java.lang.String $Xgafv) { + return (Stop) super.set$Xgafv($Xgafv); + } + + @Override + public Stop setAccessToken(java.lang.String accessToken) { + return (Stop) super.setAccessToken(accessToken); + } + + @Override + public Stop setAlt(java.lang.String alt) { + return (Stop) super.setAlt(alt); + } + + @Override + public Stop setCallback(java.lang.String callback) { + return (Stop) super.setCallback(callback); + } + + @Override + public Stop setFields(java.lang.String fields) { + return (Stop) super.setFields(fields); + } + + @Override + public Stop setKey(java.lang.String key) { + return (Stop) super.setKey(key); + } + + @Override + public Stop setOauthToken(java.lang.String oauthToken) { + return (Stop) super.setOauthToken(oauthToken); + } + + @Override + public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stop) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stop setQuotaUser(java.lang.String quotaUser) { + return (Stop) super.setQuotaUser(quotaUser); + } + + @Override + public Stop setUploadType(java.lang.String uploadType) { + return (Stop) super.setUploadType(uploadType); + } + + @Override + public Stop setUploadProtocol(java.lang.String uploadProtocol) { + return (Stop) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Stop setUserIp(java.lang.String userIp) { + return (Stop) 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 Stop 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 Stop 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 instance resource to stop. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to stop. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to stop. */ + public Stop setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD + data will be preserved when the instance is suspended. If true, the contents of any attached Local + SSD disks will be discarded. + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + public Stop setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + return this; + } + + /** If set to true, Graceful Shutdown is skipped. */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** If set to true, Graceful Shutdown is skipped. + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** If set to true, Graceful Shutdown is skipped. */ + public Stop setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + 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 Stop setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Stop set(String parameterName, Object value) { + return (Stop) super.set(parameterName, value); + } + } + /** + * This method suspends a running instance, saving its state to persistent storage, and allows you + * to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), + * and incur only storage charges for the saved VM memory and localSSD data. Any charged resources + * the virtual machine was using, such as persistent disks and static IP addresses, will continue to + * be charged while the instance is suspended. For more information, see Suspending and resuming an + * instance. + * + * Create a request for the method "instances.suspend". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Suspend#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to suspend. + * @return the request + */ + public Suspend suspend(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Suspend result = new Suspend(project, zone, instance); + initialize(result); + return result; + } + + public class Suspend extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/suspend"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * This method suspends a running instance, saving its state to persistent storage, and allows you + * to resume the instance at a later time. Suspended instances have no compute costs (cores or + * RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged + * resources the virtual machine was using, such as persistent disks and static IP addresses, will + * continue to be charged while the instance is suspended. For more information, see Suspending + * and resuming an instance. + * + * Create a request for the method "instances.suspend". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Suspend#execute()} method to invoke the remote operation.

+ * {@link + * Suspend#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. + * @param instance Name of the instance resource to suspend. + * @since 1.13 + */ + protected Suspend(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Suspend set$Xgafv(java.lang.String $Xgafv) { + return (Suspend) super.set$Xgafv($Xgafv); + } + + @Override + public Suspend setAccessToken(java.lang.String accessToken) { + return (Suspend) super.setAccessToken(accessToken); + } + + @Override + public Suspend setAlt(java.lang.String alt) { + return (Suspend) super.setAlt(alt); + } + + @Override + public Suspend setCallback(java.lang.String callback) { + return (Suspend) super.setCallback(callback); + } + + @Override + public Suspend setFields(java.lang.String fields) { + return (Suspend) super.setFields(fields); + } + + @Override + public Suspend setKey(java.lang.String key) { + return (Suspend) super.setKey(key); + } + + @Override + public Suspend setOauthToken(java.lang.String oauthToken) { + return (Suspend) super.setOauthToken(oauthToken); + } + + @Override + public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Suspend) super.setPrettyPrint(prettyPrint); + } + + @Override + public Suspend setQuotaUser(java.lang.String quotaUser) { + return (Suspend) super.setQuotaUser(quotaUser); + } + + @Override + public Suspend setUploadType(java.lang.String uploadType) { + return (Suspend) super.setUploadType(uploadType); + } + + @Override + public Suspend setUploadProtocol(java.lang.String uploadProtocol) { + return (Suspend) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Suspend setUserIp(java.lang.String userIp) { + return (Suspend) 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 Suspend 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 Suspend 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 instance resource to suspend. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to suspend. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to suspend. */ + public Suspend setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD + data will be preserved when the instance is suspended. If true, the contents of any attached Local + SSD disks will be discarded. + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + public Suspend setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + 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 Suspend setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Suspend set(String parameterName, Object value) { + return (Suspend) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "instances.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "instances.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

+ * {@link + * Troubleshoot#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. + * @param instance Name of the instance scoping this request. + * @since 1.13 + */ + protected Troubleshoot(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Troubleshoot set$Xgafv(java.lang.String $Xgafv) { + return (Troubleshoot) super.set$Xgafv($Xgafv); + } + + @Override + public Troubleshoot setAccessToken(java.lang.String accessToken) { + return (Troubleshoot) super.setAccessToken(accessToken); + } + + @Override + public Troubleshoot setAlt(java.lang.String alt) { + return (Troubleshoot) super.setAlt(alt); + } + + @Override + public Troubleshoot setCallback(java.lang.String callback) { + return (Troubleshoot) super.setCallback(callback); + } + + @Override + public Troubleshoot setFields(java.lang.String fields) { + return (Troubleshoot) super.setFields(fields); + } + + @Override + public Troubleshoot setKey(java.lang.String key) { + return (Troubleshoot) super.setKey(key); + } + + @Override + public Troubleshoot setOauthToken(java.lang.String oauthToken) { + return (Troubleshoot) super.setOauthToken(oauthToken); + } + + @Override + public Troubleshoot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Troubleshoot) super.setPrettyPrint(prettyPrint); + } + + @Override + public Troubleshoot setQuotaUser(java.lang.String quotaUser) { + return (Troubleshoot) super.setQuotaUser(quotaUser); + } + + @Override + public Troubleshoot setUploadType(java.lang.String uploadType) { + return (Troubleshoot) super.setUploadType(uploadType); + } + + @Override + public Troubleshoot setUploadProtocol(java.lang.String uploadProtocol) { + return (Troubleshoot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Troubleshoot setUserIp(java.lang.String userIp) { + return (Troubleshoot) 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 Troubleshoot 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 Troubleshoot 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public Troubleshoot setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * Input only. Timestamp representing the end of the troubleshooting window in RFC3339 text + * format. If omitted, defaults to 'now'. + */ + @com.google.api.client.util.Key("params.endTime") + private java.lang.String paramsEndTime; + + /** Input only. Timestamp representing the end of the troubleshooting window in RFC3339 text format. If + omitted, defaults to 'now'. + */ + public java.lang.String getParamsEndTime() { + return paramsEndTime; + } + + /** + * Input only. Timestamp representing the end of the troubleshooting window in RFC3339 text + * format. If omitted, defaults to 'now'. + */ + public Troubleshoot setParamsEndTime(java.lang.String paramsEndTime) { + this.paramsEndTime = paramsEndTime; + return this; + } + + /** + * Input only. Timestamp representing the beginning of the troubleshooting window in RFC3339 + * text format. If omitted, defaults to the last 12 hours. + */ + @com.google.api.client.util.Key("params.startTime") + private java.lang.String paramsStartTime; + + /** Input only. Timestamp representing the beginning of the troubleshooting window in RFC3339 text + format. If omitted, defaults to the last 12 hours. + */ + public java.lang.String getParamsStartTime() { + return paramsStartTime; + } + + /** + * Input only. Timestamp representing the beginning of the troubleshooting window in RFC3339 + * text format. If omitted, defaults to the last 12 hours. + */ + public Troubleshoot setParamsStartTime(java.lang.String paramsStartTime) { + this.paramsStartTime = paramsStartTime; + 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 Troubleshoot setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Troubleshoot set(String parameterName, Object value) { + return (Troubleshoot) super.set(parameterName, value); + } + } + /** + * Updates an instance only if the necessary resources are available. This method can update only a + * specific set of instance properties. See Updating a running instance for a list of updatable + * instance properties. + * + * Create a request for the method "instances.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to update. + * @param content the {@link com.google.api.services.compute.model.Instance} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Instance content) throws java.io.IOException { + Update result = new Update(project, zone, instance, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates an instance only if the necessary resources are available. This method can update only + * a specific set of instance properties. See Updating a running instance for a list of updatable + * instance properties. + * + * Create a request for the method "instances.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#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. + * @param instance Name of the instance resource to update. + * @param content the {@link com.google.api.services.compute.model.Instance} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Instance content) { + super(Compute.this, "PUT", 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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 instance resource to update. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to update. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to update. */ + public Update setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** + * Whether to discard local SSDs from the instance during restart default value is false. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** Whether to discard local SSDs from the instance during restart default value is false. + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * Whether to discard local SSDs from the instance during restart default value is false. + */ + public Update setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + return this; + } + + /** + * Specifies the action to take when updating an instance even if the updated properties do + * not require it. If not specified, then Compute Engine acts based on the minimum action that + * the updated properties require. + */ + @com.google.api.client.util.Key + private java.lang.String minimalAction; + + /** Specifies the action to take when updating an instance even if the updated properties do not + require it. If not specified, then Compute Engine acts based on the minimum action that the updated + properties require. + */ + public java.lang.String getMinimalAction() { + return minimalAction; + } + + /** + * Specifies the action to take when updating an instance even if the updated properties do + * not require it. If not specified, then Compute Engine acts based on the minimum action that + * the updated properties require. + */ + public Update setMinimalAction(java.lang.String minimalAction) { + this.minimalAction = minimalAction; + return this; + } + + /** + * Specifies the most disruptive action that can be taken on the instance as part of the + * update. Compute Engine returns an error if the instance properties require a more + * disruptive action as part of the instance update. Valid options from lowest to highest are + * NO_EFFECT, REFRESH, and RESTART. + */ + @com.google.api.client.util.Key + private java.lang.String mostDisruptiveAllowedAction; + + /** Specifies the most disruptive action that can be taken on the instance as part of the update. + Compute Engine returns an error if the instance properties require a more disruptive action as part + of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. + */ + public java.lang.String getMostDisruptiveAllowedAction() { + return mostDisruptiveAllowedAction; + } + + /** + * Specifies the most disruptive action that can be taken on the instance as part of the + * update. Compute Engine returns an error if the instance properties require a more + * disruptive action as part of the instance update. Valid options from lowest to highest are + * NO_EFFECT, REFRESH, and RESTART. + */ + public Update setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { + this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Updates the specified access config from an instance's network interface with the data included + * in the request. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. + * + * Create a request for the method "instances.updateAccessConfig". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface where the access config is attached. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @return the request + */ + public UpdateAccessConfig updateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) throws java.io.IOException { + UpdateAccessConfig result = new UpdateAccessConfig(project, zone, instance, networkInterface, content); + initialize(result); + return result; + } + + public class UpdateAccessConfig extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified access config from an instance's network interface with the data included + * in the request. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. + * + * Create a request for the method "instances.updateAccessConfig". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface where the access config is attached. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @since 1.13 + */ + protected UpdateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateAccessConfig set$Xgafv(java.lang.String $Xgafv) { + return (UpdateAccessConfig) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateAccessConfig setAccessToken(java.lang.String accessToken) { + return (UpdateAccessConfig) super.setAccessToken(accessToken); + } + + @Override + public UpdateAccessConfig setAlt(java.lang.String alt) { + return (UpdateAccessConfig) super.setAlt(alt); + } + + @Override + public UpdateAccessConfig setCallback(java.lang.String callback) { + return (UpdateAccessConfig) super.setCallback(callback); + } + + @Override + public UpdateAccessConfig setFields(java.lang.String fields) { + return (UpdateAccessConfig) super.setFields(fields); + } + + @Override + public UpdateAccessConfig setKey(java.lang.String key) { + return (UpdateAccessConfig) super.setKey(key); + } + + @Override + public UpdateAccessConfig setOauthToken(java.lang.String oauthToken) { + return (UpdateAccessConfig) super.setOauthToken(oauthToken); + } + + @Override + public UpdateAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateAccessConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateAccessConfig setQuotaUser(java.lang.String quotaUser) { + return (UpdateAccessConfig) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateAccessConfig setUploadType(java.lang.String uploadType) { + return (UpdateAccessConfig) super.setUploadType(uploadType); + } + + @Override + public UpdateAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateAccessConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateAccessConfig setUserIp(java.lang.String userIp) { + return (UpdateAccessConfig) 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 UpdateAccessConfig 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 UpdateAccessConfig 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public UpdateAccessConfig setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** The name of the network interface where the access config is attached. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface where the access config is attached. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface where the access config is attached. */ + public UpdateAccessConfig setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + 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 UpdateAccessConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateAccessConfig set(String parameterName, Object value) { + return (UpdateAccessConfig) super.set(parameterName, value); + } + } + /** + * Updates the Display config for a VM instance. You can only use this method on a stopped VM + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "instances.updateDisplayDevice". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateDisplayDevice#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.DisplayDevice} + * @return the request + */ + public UpdateDisplayDevice updateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.DisplayDevice content) throws java.io.IOException { + UpdateDisplayDevice result = new UpdateDisplayDevice(project, zone, instance, content); + initialize(result); + return result; + } + + public class UpdateDisplayDevice extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Updates the Display config for a VM instance. You can only use this method on a stopped VM + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. + * + * Create a request for the method "instances.updateDisplayDevice". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateDisplayDevice#execute()} method to invoke the remote + * operation.

{@link UpdateDisplayDevice#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. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.DisplayDevice} + * @since 1.13 + */ + protected UpdateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.DisplayDevice content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateDisplayDevice set$Xgafv(java.lang.String $Xgafv) { + return (UpdateDisplayDevice) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateDisplayDevice setAccessToken(java.lang.String accessToken) { + return (UpdateDisplayDevice) super.setAccessToken(accessToken); + } + + @Override + public UpdateDisplayDevice setAlt(java.lang.String alt) { + return (UpdateDisplayDevice) super.setAlt(alt); + } + + @Override + public UpdateDisplayDevice setCallback(java.lang.String callback) { + return (UpdateDisplayDevice) super.setCallback(callback); + } + + @Override + public UpdateDisplayDevice setFields(java.lang.String fields) { + return (UpdateDisplayDevice) super.setFields(fields); + } + + @Override + public UpdateDisplayDevice setKey(java.lang.String key) { + return (UpdateDisplayDevice) super.setKey(key); + } + + @Override + public UpdateDisplayDevice setOauthToken(java.lang.String oauthToken) { + return (UpdateDisplayDevice) super.setOauthToken(oauthToken); + } + + @Override + public UpdateDisplayDevice setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateDisplayDevice) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateDisplayDevice setQuotaUser(java.lang.String quotaUser) { + return (UpdateDisplayDevice) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateDisplayDevice setUploadType(java.lang.String uploadType) { + return (UpdateDisplayDevice) super.setUploadType(uploadType); + } + + @Override + public UpdateDisplayDevice setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateDisplayDevice) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateDisplayDevice setUserIp(java.lang.String userIp) { + return (UpdateDisplayDevice) 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 UpdateDisplayDevice 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 UpdateDisplayDevice 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 instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance scoping this request. */ + public UpdateDisplayDevice setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.instance = instance; + 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 UpdateDisplayDevice setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateDisplayDevice set(String parameterName, Object value) { + return (UpdateDisplayDevice) super.set(parameterName, value); + } + } + /** + * Updates an instance's network interface. This method can only update an interface's alias IP + * range and attached network. See Modifying alias IP ranges for an existing instance for + * instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on + * migrating an interface. This method follows PATCH semantics. + * + * Create a request for the method "instances.updateNetworkInterface". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateNetworkInterface#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to update. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @return the request + */ + public UpdateNetworkInterface updateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.NetworkInterface content) throws java.io.IOException { + UpdateNetworkInterface result = new UpdateNetworkInterface(project, zone, instance, networkInterface, content); + initialize(result); + return result; + } + + public class UpdateNetworkInterface extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates an instance's network interface. This method can only update an interface's alias IP + * range and attached network. See Modifying alias IP ranges for an existing instance for + * instructions on changing alias IP ranges. See Migrating a VM between networks for instructions + * on migrating an interface. This method follows PATCH semantics. + * + * Create a request for the method "instances.updateNetworkInterface". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateNetworkInterface#execute()} method to invoke the remote + * operation.

{@link UpdateNetworkInterface#initialize(com.google.api.client.googleapis.servic + * es.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. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to update. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @since 1.13 + */ + protected UpdateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.NetworkInterface content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateNetworkInterface set$Xgafv(java.lang.String $Xgafv) { + return (UpdateNetworkInterface) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateNetworkInterface setAccessToken(java.lang.String accessToken) { + return (UpdateNetworkInterface) super.setAccessToken(accessToken); + } + + @Override + public UpdateNetworkInterface setAlt(java.lang.String alt) { + return (UpdateNetworkInterface) super.setAlt(alt); + } + + @Override + public UpdateNetworkInterface setCallback(java.lang.String callback) { + return (UpdateNetworkInterface) super.setCallback(callback); + } + + @Override + public UpdateNetworkInterface setFields(java.lang.String fields) { + return (UpdateNetworkInterface) super.setFields(fields); + } + + @Override + public UpdateNetworkInterface setKey(java.lang.String key) { + return (UpdateNetworkInterface) super.setKey(key); + } + + @Override + public UpdateNetworkInterface setOauthToken(java.lang.String oauthToken) { + return (UpdateNetworkInterface) super.setOauthToken(oauthToken); + } + + @Override + public UpdateNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateNetworkInterface) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateNetworkInterface setQuotaUser(java.lang.String quotaUser) { + return (UpdateNetworkInterface) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateNetworkInterface setUploadType(java.lang.String uploadType) { + return (UpdateNetworkInterface) super.setUploadType(uploadType); + } + + @Override + public UpdateNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateNetworkInterface) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateNetworkInterface setUserIp(java.lang.String userIp) { + return (UpdateNetworkInterface) 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 UpdateNetworkInterface 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 UpdateNetworkInterface 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; + } + + /** The instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** The instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** The instance name for this request. */ + public UpdateNetworkInterface setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** The name of the network interface to update. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface to update. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface to update. */ + public UpdateNetworkInterface setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + 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 UpdateNetworkInterface setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateNetworkInterface set(String parameterName, Object value) { + return (UpdateNetworkInterface) super.set(parameterName, value); + } + } + /** + * Updates the Shielded Instance config for an instance. You can only use this method on a stopped + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "instances.updateShieldedInstanceConfig". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateShieldedInstanceConfig#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceConfig} + * @return the request + */ + public UpdateShieldedInstanceConfig updateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceConfig content) throws java.io.IOException { + UpdateShieldedInstanceConfig result = new UpdateShieldedInstanceConfig(project, zone, instance, content); + initialize(result); + return result; + } + + public class UpdateShieldedInstanceConfig extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the Shielded Instance config for an instance. You can only use this method on a stopped + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. + * + * Create a request for the method "instances.updateShieldedInstanceConfig". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateShieldedInstanceConfig#execute()} method to invoke the remote + * operation.

{@link UpdateShieldedInstanceConfig#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. + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceConfig} + * @since 1.13 + */ + protected UpdateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceConfig content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateShieldedInstanceConfig set$Xgafv(java.lang.String $Xgafv) { + return (UpdateShieldedInstanceConfig) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateShieldedInstanceConfig setAccessToken(java.lang.String accessToken) { + return (UpdateShieldedInstanceConfig) super.setAccessToken(accessToken); + } + + @Override + public UpdateShieldedInstanceConfig setAlt(java.lang.String alt) { + return (UpdateShieldedInstanceConfig) super.setAlt(alt); + } + + @Override + public UpdateShieldedInstanceConfig setCallback(java.lang.String callback) { + return (UpdateShieldedInstanceConfig) super.setCallback(callback); + } + + @Override + public UpdateShieldedInstanceConfig setFields(java.lang.String fields) { + return (UpdateShieldedInstanceConfig) super.setFields(fields); + } + + @Override + public UpdateShieldedInstanceConfig setKey(java.lang.String key) { + return (UpdateShieldedInstanceConfig) super.setKey(key); + } + + @Override + public UpdateShieldedInstanceConfig setOauthToken(java.lang.String oauthToken) { + return (UpdateShieldedInstanceConfig) super.setOauthToken(oauthToken); + } + + @Override + public UpdateShieldedInstanceConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateShieldedInstanceConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateShieldedInstanceConfig setQuotaUser(java.lang.String quotaUser) { + return (UpdateShieldedInstanceConfig) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateShieldedInstanceConfig setUploadType(java.lang.String uploadType) { + return (UpdateShieldedInstanceConfig) super.setUploadType(uploadType); + } + + @Override + public UpdateShieldedInstanceConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateShieldedInstanceConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateShieldedInstanceConfig setUserIp(java.lang.String userIp) { + return (UpdateShieldedInstanceConfig) 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 UpdateShieldedInstanceConfig 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 UpdateShieldedInstanceConfig 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 or id of the instance scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name or id of the instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name or id of the instance scoping this request. */ + public UpdateShieldedInstanceConfig setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + 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 UpdateShieldedInstanceConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateShieldedInstanceConfig set(String parameterName, Object value) { + return (UpdateShieldedInstanceConfig) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InstantSnapshotGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstantSnapshotGroups.List request = compute.instantSnapshotGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstantSnapshotGroups instantSnapshotGroups() { + return new InstantSnapshotGroups(); + } + + /** + * The "instantSnapshotGroups" collection of methods. + */ + public class InstantSnapshotGroups { + + /** + * deletes a Zonal InstantSnapshotGroup resource + * + * Create a request for the method "instantSnapshotGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, instantSnapshotGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANT_SNAPSHOT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * deletes a Zonal InstantSnapshotGroup resource + * + * Create a request for the method "instantSnapshotGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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. + * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 InstantSnapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroup; + + /** Name of the InstantSnapshot resource to delete. + */ + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; + } + + /** Name of the InstantSnapshot resource to delete. */ + public Delete setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshotGroup = instantSnapshotGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * returns the specified InstantSnapshotGroup resource in the specified zone. + * + * Create a request for the method "instantSnapshotGroups.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 zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { + Get result = new Get(project, zone, instantSnapshotGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANT_SNAPSHOT_GROUP_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 InstantSnapshotGroup resource in the specified zone. + * + * Create a request for the method "instantSnapshotGroups.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 zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotGroup.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])?"); + } + this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 InstantSnapshotGroup resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroup; + + /** Name of the InstantSnapshotGroup resource to return. + */ + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; + } + + /** Name of the InstantSnapshotGroup resource to return. */ + public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshotGroup = instantSnapshotGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "instantSnapshotGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "instantSnapshotGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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 Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshotGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshotGroup 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** begin_interface: MixerMutationRequestBuilder */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroup; + + /** begin_interface: MixerMutationRequestBuilder + */ + public java.lang.String getSourceConsistencyGroup() { + return sourceConsistencyGroup; + } + + /** begin_interface: MixerMutationRequestBuilder */ + public Insert setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { + this.sourceConsistencyGroup = sourceConsistencyGroup; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. + * + * Create a request for the method "instantSnapshotGroups.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}/instantSnapshotGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 the list of InstantSnapshotGroup resources contained within the specified zone. + * + * Create a request for the method "instantSnapshotGroups.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.ListInstantSnapshotGroups.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instantSnapshotGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instantSnapshotGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InstantSnapshots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstantSnapshots.List request = compute.instantSnapshots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstantSnapshots instantSnapshots() { + return new InstantSnapshots(); + } + + /** + * The "instantSnapshots" collection of methods. + */ + public class InstantSnapshots { + + /** + * Retrieves an aggregated list of instantSnapshots. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instantSnapshots.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/instantSnapshots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of instantSnapshots. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instantSnapshots.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single + * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on + * the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the + * data will be moved to the next corresponding instantSnapshot. + * + * For more information, seeDeleting instantSnapshots. + * + * Create a request for the method "instantSnapshots.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { + Delete result = new Delete(project, zone, instantSnapshot); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANT_SNAPSHOT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single + * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data + * on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, + * the data will be moved to the next corresponding instantSnapshot. + * + * For more information, seeDeleting instantSnapshots. + * + * Create a request for the method "instantSnapshots.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 InstantSnapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshot; + + /** Name of the InstantSnapshot resource to delete. + */ + public java.lang.String getInstantSnapshot() { + return instantSnapshot; + } + + /** Name of the InstantSnapshot resource to delete. */ + public Delete setInstantSnapshot(java.lang.String instantSnapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshot = instantSnapshot; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified InstantSnapshot resource in the specified zone. + * + * Create a request for the method "instantSnapshots.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 zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { + Get result = new Get(project, zone, instantSnapshot); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern INSTANT_SNAPSHOT_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 InstantSnapshot resource in the specified zone. + * + * Create a request for the method "instantSnapshots.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 zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshot.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])?"); + } + this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 InstantSnapshot resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshot; + + /** Name of the InstantSnapshot resource to return. + */ + public java.lang.String getInstantSnapshot() { + return instantSnapshot; + } + + /** Name of the InstantSnapshot resource to return. */ + public Get setInstantSnapshot(java.lang.String instantSnapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshot = instantSnapshot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "instantSnapshots.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "instantSnapshots.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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 Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshot 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of InstantSnapshot resources contained within the specified zone. + * + * Create a request for the method "instantSnapshots.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}/instantSnapshots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 the list of InstantSnapshot resources contained within the specified zone. + * + * Create a request for the method "instantSnapshots.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.InstantSnapshotList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instantSnapshots.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "instantSnapshots.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectAttachmentGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectAttachmentGroups interconnectAttachmentGroups() { + return new InterconnectAttachmentGroups(); + } + + /** + * The "interconnectAttachmentGroups" collection of methods. + */ + public class InterconnectAttachmentGroups { + + /** + * Deletes the specified InterconnectAttachmentGroup in the given scope + * + * Create a request for the method "interconnectAttachmentGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectAttachmentGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified InterconnectAttachmentGroup in the given scope + * + * Create a request for the method "interconnectAttachmentGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 InterconnectAttachmentGroup resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the InterconnectAttachmentGroup resource to delete. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the InterconnectAttachmentGroup resource to delete. */ + public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Get result = new Get(project, interconnectAttachmentGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_ATTACHMENT_GROUP_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 InterconnectAttachmentGroup resource in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroup.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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 InterconnectAttachmentGroup resource to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the InterconnectAttachmentGroup resource to return. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the InterconnectAttachmentGroup resource to return. */ + public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link GetOperationalStatus#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 interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @since 1.13 + */ + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsGetOperationalStatusResponse.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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); + } + + @Override + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); + } + + @Override + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); + } + + @Override + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); + } + + @Override + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); + } + + @Override + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); + } + + @Override + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); + } + + @Override + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) 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 GetOperationalStatus 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 interconnectAttachmentGroup resource to query. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the interconnectAttachmentGroup resource to query. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the interconnectAttachmentGroup resource to query. */ + public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + return this; + } + + @Override + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); + } + } + /** + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. + * + * Create a request for the method "interconnectAttachmentGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. + * + * Create a request for the method "interconnectAttachmentGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the InterconnectAttachmentGroups for a project in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the InterconnectAttachmentGroups for a project in the given scope. + * + * Create a request for the method "interconnectAttachmentGroups.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. + * This method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "interconnectAttachmentGroups.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 Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectAttachmentGroup, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified InterconnectAttachmentGroup resource with the data included in the + * request. This method supports PATCH semantics and usesJSON merge patch format and processing + * rules. + * + * Create a request for the method "interconnectAttachmentGroups.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 Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { + super(Compute.this, "PATCH", 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 InterconnectAttachmentGroup resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the InterconnectAttachmentGroup resource to patch. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the InterconnectAttachmentGroup resource to patch. */ + public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectAttachments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectAttachments interconnectAttachments() { + return new InterconnectAttachments(); + } + + /** + * The "interconnectAttachments" collection of methods. + */ + public class InterconnectAttachments { + + /** + * Retrieves an aggregated list of interconnect attachments. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "interconnectAttachments.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of interconnect attachments. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "interconnectAttachments.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, interconnectAttachment); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, 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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 interconnect attachment to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to delete. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to delete. */ + public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified interconnect attachment. + * + * Create a request for the method "interconnectAttachments.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 region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Get result = new Get(project, region, interconnectAttachment); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_ATTACHMENT_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 interconnect attachment. + * + * Create a request for the method "interconnectAttachments.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 region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 interconnect attachment to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to return. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to return. */ + public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. + * + * Create a request for the method "interconnectAttachments.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. + * + * Create a request for the method "interconnectAttachments.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of interconnect attachments contained within the specified region. + * + * Create a request for the method "interconnectAttachments.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 region 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}/interconnectAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of interconnect attachments contained within the specified region. + * + * Create a request for the method "interconnectAttachments.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 region 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.InterconnectAttachmentList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified interconnect attachment with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "interconnectAttachments.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, interconnectAttachment, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified interconnect attachment with the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "interconnectAttachments.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + super(Compute.this, "PATCH", 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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 interconnect attachment to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to patch. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to patch. */ + public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "interconnectAttachments.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. + * + * Create a request for the method "interconnectAttachments.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectGroups interconnectGroups() { + return new InterconnectGroups(); + } + + /** + * The "interconnectGroups" collection of methods. + */ + public class InterconnectGroups { + + /** + * Create Interconnects with redundancy by creating them in a specified interconnect group. + * + * Create a request for the method "interconnectGroups.createMembers". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @return the request + */ + public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) throws java.io.IOException { + CreateMembers result = new CreateMembers(project, interconnectGroup, content); + initialize(result); + return result; + } + + public class CreateMembers extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Create Interconnects with redundancy by creating them in a specified interconnect group. + * + * Create a request for the method "interconnectGroups.createMembers". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @since 1.13 + */ + protected CreateMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); + } + + @Override + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); + } + + @Override + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); + } + + @Override + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); + } + + @Override + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); + } + + @Override + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); + } + + @Override + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); + } + + @Override + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); + } + + @Override + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); + } + + @Override + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) 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 CreateMembers 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 group resource to create members for. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the group resource to create members for. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the group resource to create members for. */ + public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + return this; + } + + @Override + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); + } + } + /** + * Deletes the specified InterconnectGroup in the given scope + * + * Create a request for the method "interconnectGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified InterconnectGroup in the given scope + * + * Create a request for the method "interconnectGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 interconnectGroup Name of the InterconnectGroup resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 InterconnectGroup resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the InterconnectGroup resource to delete. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the InterconnectGroup resource to delete. */ + public Delete setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified InterconnectGroup resource in the given scope. + * + * Create a request for the method "interconnectGroups.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 interconnectGroup Name of the InterconnectGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Get result = new Get(project, interconnectGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_GROUP_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 InterconnectGroup resource in the given scope. + * + * Create a request for the method "interconnectGroups.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 interconnectGroup Name of the InterconnectGroup resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroup.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 InterconnectGroup resource to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the InterconnectGroup resource to return. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the InterconnectGroup resource to return. */ + public Get setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "interconnectGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "interconnectGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link GetOperationalStatus#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 interconnectGroup Name of the interconnectGroup resource to query. + * @since 1.13 + */ + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsGetOperationalStatusResponse.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); + } + + @Override + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); + } + + @Override + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); + } + + @Override + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); + } + + @Override + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); + } + + @Override + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); + } + + @Override + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); + } + + @Override + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) 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 GetOperationalStatus 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 interconnectGroup resource to query. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the interconnectGroup resource to query. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the interconnectGroup resource to query. */ + public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + return this; + } + + @Override + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); + } + } + /** + * Creates a InterconnectGroup in the specified project in the given scope using the parameters that + * are included in the request. + * + * Create a request for the method "interconnectGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a InterconnectGroup in the specified project in the given scope using the parameters + * that are included in the request. + * + * Create a request for the method "interconnectGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the InterconnectGroups for a project in the given scope. + * + * Create a request for the method "interconnectGroups.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the InterconnectGroups for a project in the given scope. + * + * Create a request for the method "interconnectGroups.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "interconnectGroups.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 Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectGroup, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "interconnectGroups.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 Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) { + super(Compute.this, "PATCH", 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 InterconnectGroup resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** Name of the InterconnectGroup resource to patch. + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** Name of the InterconnectGroup resource to patch. */ + public Patch setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectLocations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectLocations interconnectLocations() { + return new InterconnectLocations(); + } + + /** + * The "interconnectLocations" collection of methods. + */ + public class InterconnectLocations { + + /** + * Returns the details for the specified interconnect location. Gets a list of available + * interconnect locations by making a list() request. + * + * Create a request for the method "interconnectLocations.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 interconnectLocation Name of the interconnect location to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { + Get result = new Get(project, interconnectLocation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_LOCATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the details for the specified interconnect location. Gets a list of available + * interconnect locations by making a list() request. + * + * Create a request for the method "interconnectLocations.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 interconnectLocation Name of the interconnect location to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectLocation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocation.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.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), + "Parameter interconnectLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 interconnect location to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectLocation; + + /** Name of the interconnect location to return. + */ + public java.lang.String getInterconnectLocation() { + return interconnectLocation; + } + + /** Name of the interconnect location to return. */ + public Get setInterconnectLocation(java.lang.String interconnectLocation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), + "Parameter interconnectLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectLocation = interconnectLocation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of interconnect locations available to the specified project. + * + * Create a request for the method "interconnectLocations.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of interconnect locations available to the specified project. + * + * Create a request for the method "interconnectLocations.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocationList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the InterconnectRemoteLocations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectRemoteLocations.List request = compute.interconnectRemoteLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectRemoteLocations interconnectRemoteLocations() { + return new InterconnectRemoteLocations(); + } + + /** + * The "interconnectRemoteLocations" collection of methods. + */ + public class InterconnectRemoteLocations { + + /** + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making alist() request. + * + * Create a request for the method "interconnectRemoteLocations.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 interconnectRemoteLocation Name of the interconnect remote location to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { + Get result = new Get(project, interconnectRemoteLocation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_REMOTE_LOCATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making alist() request. + * + * Create a request for the method "interconnectRemoteLocations.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 interconnectRemoteLocation Name of the interconnect remote location to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnectRemoteLocation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocation.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.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), + "Parameter interconnectRemoteLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 interconnect remote location to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectRemoteLocation; + + /** Name of the interconnect remote location to return. + */ + public java.lang.String getInterconnectRemoteLocation() { + return interconnectRemoteLocation; + } + + /** Name of the interconnect remote location to return. */ + public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), + "Parameter interconnectRemoteLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectRemoteLocation = interconnectRemoteLocation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of interconnect remote locations available to the specified project. + * + * Create a request for the method "interconnectRemoteLocations.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of interconnect remote locations available to the specified project. + * + * Create a request for the method "interconnectRemoteLocations.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocationList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Interconnects collection. + * + *

The typical use is:

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

{@link + * Delete#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 interconnect Name of the interconnect to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "DELETE", REST_PATH, null, 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 interconnect to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to delete. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to delete. */ + public Delete setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. + * + * Create a request for the method "interconnects.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 interconnect Name of the interconnect to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + Get result = new Get(project, interconnect); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_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 Interconnect. Get a list of available Interconnects by making a list() + * request. + * + * Create a request for the method "interconnects.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 interconnect Name of the interconnect to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Interconnect.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 interconnect to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to return. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to return. */ + public Get setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the interconnectDiagnostics for the specified Interconnect. + * + * In the event of a global outage, do not use this API to make decisions about where to redirect + * your network traffic. + * + * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global + * resource. A global outage can prevent this API from functioning properly. + * + * Create a request for the method "interconnects.getDiagnostics". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect resource to query. + * @return the request + */ + public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + GetDiagnostics result = new GetDiagnostics(project, interconnect); + initialize(result); + return result; + } + + public class GetDiagnostics extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the interconnectDiagnostics for the specified Interconnect. + * + * In the event of a global outage, do not use this API to make decisions about where to redirect + * your network traffic. + * + * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global + * resource. A global outage can prevent this API from functioning properly. + * + * Create a request for the method "interconnects.getDiagnostics". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect resource to query. + * @since 1.13 + */ + protected GetDiagnostics(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetDiagnosticsResponse.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { + return (GetDiagnostics) super.set$Xgafv($Xgafv); + } + + @Override + public GetDiagnostics setAccessToken(java.lang.String accessToken) { + return (GetDiagnostics) super.setAccessToken(accessToken); + } + + @Override + public GetDiagnostics setAlt(java.lang.String alt) { + return (GetDiagnostics) super.setAlt(alt); + } + + @Override + public GetDiagnostics setCallback(java.lang.String callback) { + return (GetDiagnostics) super.setCallback(callback); + } + + @Override + public GetDiagnostics setFields(java.lang.String fields) { + return (GetDiagnostics) super.setFields(fields); + } + + @Override + public GetDiagnostics setKey(java.lang.String key) { + return (GetDiagnostics) super.setKey(key); + } + + @Override + public GetDiagnostics setOauthToken(java.lang.String oauthToken) { + return (GetDiagnostics) super.setOauthToken(oauthToken); + } + + @Override + public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetDiagnostics) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { + return (GetDiagnostics) super.setQuotaUser(quotaUser); + } + + @Override + public GetDiagnostics setUploadType(java.lang.String uploadType) { + return (GetDiagnostics) super.setUploadType(uploadType); + } + + @Override + public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { + return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetDiagnostics setUserIp(java.lang.String userIp) { + return (GetDiagnostics) 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 GetDiagnostics 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 interconnect resource to query. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect resource to query. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect resource to query. */ + public GetDiagnostics setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + return this; + } + + @Override + public GetDiagnostics set(String parameterName, Object value) { + return (GetDiagnostics) super.set(parameterName, value); + } + } + /** + * Returns the interconnectMacsecConfig for the specified Interconnect. + * + * Create a request for the method "interconnects.getMacsecConfig". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect resource to query. + * @return the request + */ + public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + GetMacsecConfig result = new GetMacsecConfig(project, interconnect); + initialize(result); + return result; + } + + public class GetMacsecConfig extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the interconnectMacsecConfig for the specified Interconnect. + * + * Create a request for the method "interconnects.getMacsecConfig". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect resource to query. + * @since 1.13 + */ + protected GetMacsecConfig(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetMacsecConfigResponse.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { + return (GetMacsecConfig) super.set$Xgafv($Xgafv); + } + + @Override + public GetMacsecConfig setAccessToken(java.lang.String accessToken) { + return (GetMacsecConfig) super.setAccessToken(accessToken); + } + + @Override + public GetMacsecConfig setAlt(java.lang.String alt) { + return (GetMacsecConfig) super.setAlt(alt); + } + + @Override + public GetMacsecConfig setCallback(java.lang.String callback) { + return (GetMacsecConfig) super.setCallback(callback); + } + + @Override + public GetMacsecConfig setFields(java.lang.String fields) { + return (GetMacsecConfig) super.setFields(fields); + } + + @Override + public GetMacsecConfig setKey(java.lang.String key) { + return (GetMacsecConfig) super.setKey(key); + } + + @Override + public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { + return (GetMacsecConfig) super.setOauthToken(oauthToken); + } + + @Override + public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { + return (GetMacsecConfig) super.setQuotaUser(quotaUser); + } + + @Override + public GetMacsecConfig setUploadType(java.lang.String uploadType) { + return (GetMacsecConfig) super.setUploadType(uploadType); + } + + @Override + public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetMacsecConfig setUserIp(java.lang.String userIp) { + return (GetMacsecConfig) 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 GetMacsecConfig 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 interconnect resource to query. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect resource to query. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect resource to query. */ + public GetMacsecConfig setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + return this; + } + + @Override + public GetMacsecConfig set(String parameterName, Object value) { + return (GetMacsecConfig) super.set(parameterName, value); + } + } + /** + * Creates an Interconnect in the specified project using the data included in the request. + * + * Create a request for the method "interconnects.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates an Interconnect in the specified project using the data included in the request. + * + * Create a request for the method "interconnects.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Interconnect} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Interconnect 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of Interconnects available to the specified project. + * + * Create a request for the method "interconnects.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/interconnects"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of Interconnects available to the specified project. + * + * Create a request for the method "interconnects.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified Interconnect with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "interconnects.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 Project ID for this request. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { + Patch result = new Patch(project, interconnect, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified Interconnect with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "interconnects.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 Project ID for this request. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) { + super(Compute.this, "PATCH", 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 interconnect to update. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to update. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to update. */ + public Patch setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "interconnects.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "interconnects.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

+ * {@link + * SetName#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 interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.InterconnectsSetNameRequest} + * @since 1.13 + */ + protected SetName(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.InterconnectsSetNameRequest 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetName set$Xgafv(java.lang.String $Xgafv) { + return (SetName) super.set$Xgafv($Xgafv); + } + + @Override + public SetName setAccessToken(java.lang.String accessToken) { + return (SetName) super.setAccessToken(accessToken); + } + + @Override + public SetName setAlt(java.lang.String alt) { + return (SetName) super.setAlt(alt); + } + + @Override + public SetName setCallback(java.lang.String callback) { + return (SetName) super.setCallback(callback); + } + + @Override + public SetName setFields(java.lang.String fields) { + return (SetName) super.setFields(fields); + } + + @Override + public SetName setKey(java.lang.String key) { + return (SetName) super.setKey(key); + } + + @Override + public SetName setOauthToken(java.lang.String oauthToken) { + return (SetName) super.setOauthToken(oauthToken); + } + + @Override + public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetName) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetName setQuotaUser(java.lang.String quotaUser) { + return (SetName) super.setQuotaUser(quotaUser); + } + + @Override + public SetName setUploadType(java.lang.String uploadType) { + return (SetName) super.setUploadType(uploadType); + } + + @Override + public SetName setUploadProtocol(java.lang.String uploadProtocol) { + return (SetName) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetName setUserIp(java.lang.String userIp) { + return (SetName) 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 SetName 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 interconnect to update. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to update. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to update. */ + public SetName setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + 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 SetName setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetName set(String parameterName, Object value) { + return (SetName) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the LicenseCodes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.LicenseCodes.List request = compute.licenseCodes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public LicenseCodes licenseCodes() { + return new LicenseCodes(); + } + + /** + * The "licenseCodes" collection of methods. + */ + public class LicenseCodes { + + /** + * Return a specified license code. License codes are mirrored across all projects that have + * permissions to read the License Code. Caution* This resource is intended for use only by third- + * party partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenseCodes.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 licenseCode Number corresponding to the License code resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { + Get result = new Get(project, licenseCode); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 LICENSE_CODE_PATTERN = + java.util.regex.Pattern.compile("[0-9]{0,61}?"); + + /** + * Return a specified license code. License codes are mirrored across all projects that have + * permissions to read the License Code. *Caution* This resource is intended for use only by + * third-party partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenseCodes.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 licenseCode Number corresponding to the License code resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String licenseCode) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicenseCode.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.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Number corresponding to the License code resource to return. */ + @com.google.api.client.util.Key + private java.lang.String licenseCode; + + /** Number corresponding to the License code resource to return. + */ + public java.lang.String getLicenseCode() { + return licenseCode; + } + + /** Number corresponding to the License code resource to return. */ + public Get setLicenseCode(java.lang.String licenseCode) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); + } + this.licenseCode = licenseCode; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. + * + * Create a request for the method "licenseCodes.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. *Caution* This resource is intended for use only by third-party partners who are + * creatingCloud Marketplace images. + * + * Create a request for the method "licenseCodes.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Licenses collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Licenses licenses() { + return new Licenses(); + } + + /** + * The "licenses" collection of methods. + */ + public class Licenses { + + /** + * Deletes the specified license. Caution* This resource is intended for use only by third-party + * partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenses.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param license Name of the license resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String license) throws java.io.IOException { + Delete result = new Delete(project, license); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 LICENSE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified license. *Caution* This resource is intended for use only by third-party + * partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenses.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 license Name of the license resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String license) { + super(Compute.this, "DELETE", REST_PATH, null, 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 license resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** Name of the license resource to delete. + */ + public java.lang.String getLicense() { + return license; + } + + /** Name of the license resource to delete. */ + public Delete setLicense(java.lang.String license) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.license = license; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified License resource. Caution* This resource is intended for use only by third- + * party partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenses.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 license Name of the License resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { + Get result = new Get(project, license); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 LICENSE_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 License resource. *Caution* This resource is intended for use only by + * third-party partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenses.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 license Name of the License resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String license) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.License.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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 License resource to return. */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** Name of the License resource to return. + */ + public java.lang.String getLicense() { + return license; + } + + /** Name of the License resource to return. */ + public Get setLicense(java.lang.String license) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.license = license; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. + * + * Create a request for the method "licenses.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. *Caution* This resource is intended for use only by third-party partners who are + * creatingCloud Marketplace images. + * + * Create a request for the method "licenses.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.License} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.License 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of licenses available in the specified project. This method does not get any + * licenses that belong to other projects, including licenses attached to publicly-available images, + * like Debian 9. If you want to get a list of publicly-available licenses, use this method to make + * a request to the respective image project, such as debian-cloud orwindows-cloud. Caution* This + * resource is intended for use only by third-party partners who are creatingCloud Marketplace + * images. + * + * Create a request for the method "licenses.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/licenses"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of licenses available in the specified project. This method does not get any + * licenses that belong to other projects, including licenses attached to publicly-available + * images, like Debian 9. If you want to get a list of publicly-available licenses, use this + * method to make a request to the respective image project, such as debian-cloud orwindows-cloud. + * *Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. + * + * Create a request for the method "licenses.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicensesListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Caution* + * This resource is intended for use only by third-party partners who are creatingCloud Marketplace + * images. + * + * Create a request for the method "licenses.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * *Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. + * + * Create a request for the method "licenses.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

{@link + * Update#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 license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) { + super(Compute.this, "PATCH", 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 license name for this request. */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** The license name for this request. + */ + public java.lang.String getLicense() { + return license; + } + + /** The license name for this request. */ + public Update setLicense(java.lang.String license) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.license = license; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the MachineImages collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public MachineImages machineImages() { + return new MachineImages(); + } + + /** + * The "machineImages" collection of methods. + */ + public class MachineImages { + + /** + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * + * Create a request for the method "machineImages.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param machineImage The name of the machine image to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { + Delete result = new Delete(project, machineImage); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 MACHINE_IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be + * undone. + * + * Create a request for the method "machineImages.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 machineImage The name of the machine image to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String machineImage) { + super(Compute.this, "DELETE", REST_PATH, null, 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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 machine image to delete. */ + @com.google.api.client.util.Key + private java.lang.String machineImage; + + /** The name of the machine image to delete. + */ + public java.lang.String getMachineImage() { + return machineImage; + } + + /** The name of the machine image to delete. */ + public Delete setMachineImage(java.lang.String machineImage) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.machineImage = machineImage; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified machine image. + * + * Create a request for the method "machineImages.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 machineImage The name of the machine image. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { + Get result = new Get(project, machineImage); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 MACHINE_IMAGE_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 machine image. + * + * Create a request for the method "machineImages.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 machineImage The name of the machine image. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String machineImage) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImage.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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the machine image. */ + @com.google.api.client.util.Key + private java.lang.String machineImage; + + /** The name of the machine image. + */ + public java.lang.String getMachineImage() { + return machineImage; + } + + /** The name of the machine image. */ + public Get setMachineImage(java.lang.String machineImage) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.machineImage = machineImage; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "machineImages.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "machineImages.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a machine image in the specified project using the data that is included in the request. + * If you are creating a new machine image to update an existing instance, your new machine image + * should use the same network or, if applicable, the same subnetwork as the original instance. + * + * Create a request for the method "machineImages.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.MachineImage} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a machine image in the specified project using the data that is included in the + * request. If you are creating a new machine image to update an existing instance, your new + * machine image should use the same network or, if applicable, the same subnetwork as the + * original instance. + * + * Create a request for the method "machineImages.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.MachineImage} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.MachineImage 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Required. Source instance that is used to create the machine image from. */ + @com.google.api.client.util.Key + private java.lang.String sourceInstance; + + /** Required. Source instance that is used to create the machine image from. + */ + public java.lang.String getSourceInstance() { + return sourceInstance; + } + + /** Required. Source instance that is used to create the machine image from. */ + public Insert setSourceInstance(java.lang.String sourceInstance) { + this.sourceInstance = sourceInstance; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of machine images that are contained within the specified project. + * + * Create a request for the method "machineImages.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/machineImages"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of machine images that are contained within the specified project. + * + * Create a request for the method "machineImages.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImageList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "machineImages.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "machineImages.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the MachineTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public MachineTypes machineTypes() { + return new MachineTypes(); + } + + /** + * The "machineTypes" collection of methods. + */ + public class MachineTypes { + + /** + * Retrieves an aggregated list of machine types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "machineTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of machine types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "machineTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified machine type. + * + * Create a request for the method "machineTypes.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 zone The name of the zone for this request. + * @param machineType Name of the machine type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String machineType) throws java.io.IOException { + Get result = new Get(project, zone, machineType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern MACHINE_TYPE_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 machine type. + * + * Create a request for the method "machineTypes.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 zone The name of the zone for this request. + * @param machineType Name of the machine type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String machineType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineType.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])?"); + } + this.machineType = com.google.api.client.util.Preconditions.checkNotNull(machineType, "Required parameter machineType must be specified."); + 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @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 static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 managedRuleset; + + /** Name of the managed ruleset to return. + */ + public java.lang.String getManagedRuleset() { + return managedRuleset; + } + + /** Name of the managed ruleset to return. */ + public Get setManagedRuleset(java.lang.String managedRuleset) { + 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}"); + } + this.managedRuleset = managedRuleset; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of all the managed rulesets available. + * + * 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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/managedRulesets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all the managed rulesets available. + * + * 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 + * 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. + * @since 1.13 + */ + 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NetworkAttachments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkAttachments networkAttachments() { + return new NetworkAttachments(); + } + + /** + * The "networkAttachments" collection of methods. + */ + public class NetworkAttachments { + + /** + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkAttachments.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkAttachments.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified NetworkAttachment in the given scope + * + * Create a request for the method "networkAttachments.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, networkAttachment); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified NetworkAttachment in the given scope + * + * Create a request for the method "networkAttachments.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, 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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Delete 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 NetworkAttachment resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** Name of the NetworkAttachment resource to delete. + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** Name of the NetworkAttachment resource to delete. */ + public Delete setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified NetworkAttachment resource in the given scope. + * + * Create a request for the method "networkAttachments.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 region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { + Get result = new Get(project, region, networkAttachment); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_ATTACHMENT_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 NetworkAttachment resource in the given scope. + * + * Create a request for the method "networkAttachments.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 region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachment.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 NetworkAttachment resource to return. */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** Name of the NetworkAttachment resource to return. + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** Name of the NetworkAttachment resource to return. */ + public Get setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "networkAttachments.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "networkAttachments.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Insert 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; + } + + /** + * 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the NetworkAttachments for a project in the given scope. + * + * Create a request for the method "networkAttachments.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 region Name of the region of 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}/networkAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the NetworkAttachments for a project in the given scope. + * + * Create a request for the method "networkAttachments.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 region Name of the region of 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.NetworkAttachmentList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified NetworkAttachment resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "networkAttachments.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 Project ID for this request. + * @param region Name of the region for this request. + * @param networkAttachment Name of the NetworkAttachment resource to patch. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, networkAttachment, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified NetworkAttachment resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "networkAttachments.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 Project ID for this request. + * @param region Name of the region for this request. + * @param networkAttachment Name of the NetworkAttachment resource to patch. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) { + super(Compute.this, "PATCH", 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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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 NetworkAttachment resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** Name of the NetworkAttachment resource to patch. + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** Name of the NetworkAttachment resource to patch. */ + public Patch setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkAttachments.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkAttachments.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NetworkEdgeSecurityServices collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkEdgeSecurityServices networkEdgeSecurityServices() { + return new NetworkEdgeSecurityServices(); + } + + /** + * The "networkEdgeSecurityServices" collection of methods. + */ + public class NetworkEdgeSecurityServices { + + /** + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityServiceAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified service. + * + * Create a request for the method "networkEdgeSecurityServices.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { + Delete result = new Delete(project, region, networkEdgeSecurityService); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified service. + * + * Create a request for the method "networkEdgeSecurityServices.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { + super(Compute.this, "DELETE", REST_PATH, null, 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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 network edge security service to delete. */ + @com.google.api.client.util.Key + private java.lang.String networkEdgeSecurityService; + + /** Name of the network edge security service to delete. + */ + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; + } + + /** Name of the network edge security service to delete. */ + public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a specified NetworkEdgeSecurityService. + * + * Create a request for the method "networkEdgeSecurityServices.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 region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { + Get result = new Get(project, region, networkEdgeSecurityService); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets a specified NetworkEdgeSecurityService. + * + * Create a request for the method "networkEdgeSecurityServices.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 region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityService.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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 network edge security service to get. */ + @com.google.api.client.util.Key + private java.lang.String networkEdgeSecurityService; + + /** Name of the network edge security service to get. + */ + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; + } + + /** Name of the network edge security service to get. */ + public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new service in the specified project using the data included in the request. + * + * Create a request for the method "networkEdgeSecurityServices.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a new service in the specified project using the data included in the request. + * + * Create a request for the method "networkEdgeSecurityServices.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Patches the specified policy with the data included in the request. + * + * Create a request for the method "networkEdgeSecurityServices.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to update. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { + Patch result = new Patch(project, region, networkEdgeSecurityService, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified policy with the data included in the request. + * + * Create a request for the method "networkEdgeSecurityServices.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to update. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { + super(Compute.this, "PATCH", 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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 network edge security service to update. */ + @com.google.api.client.util.Key + private java.lang.String networkEdgeSecurityService; + + /** Name of the network edge security service to update. + */ + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; + } + + /** Name of the network edge security service to update. */ + public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Patch setPaths(java.util.List paths) { + this.paths = paths; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be updated as part of this request. */ + 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 NetworkEndpointGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkEndpointGroups networkEndpointGroups() { + return new NetworkEndpointGroups(); + } + + /** + * The "networkEndpointGroups" collection of methods. + */ + public class NetworkEndpointGroups { + + /** + * Retrieves the list of network endpoint groups and sorts them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkEndpointGroups.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of network endpoint groups and sorts them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkEndpointGroups.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Attach a list of network endpoints to the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @return the request + */ + public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { + AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, zone, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class AttachNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Attach a list of network endpoints to the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic + * es.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 where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @since 1.13 + */ + protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); + } + + @Override + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); + } + + @Override + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); + } + + @Override + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); + } + + @Override + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) 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 AttachNetworkEndpoints 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 where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public AttachNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM + * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be + * deleted if there are backend services referencing it. + * + * Create a request for the method "networkEndpointGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, networkEndpointGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM + * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot + * be deleted if there are backend services referencing it. + * + * Create a request for the method "networkEndpointGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Detach a list of network endpoints from the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} + * @return the request + */ + public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { + DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, zone, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class DetachNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Detach a list of network endpoints from the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic + * es.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 where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} + * @since 1.13 + */ + protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); + } + + @Override + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); + } + + @Override + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); + } + + @Override + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); + } + + @Override + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) 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 DetachNetworkEndpoints 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 where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public DetachNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are removing network endpoints. It should comply + with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. + */ + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Returns the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.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 zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { + Get result = new Get(project, zone, networkEndpointGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.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 zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the network endpoint group. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * + * Create a request for the method "networkEndpointGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs + * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To + * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private + * Service Connect NEGs): regional API - To manage NEGs with global scope (such as + * global internet NEGs):global API + * + * Create a request for the method "networkEndpointGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 where you want to create the network endpoint group. It should comply + * with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the network endpoint group. It should comply with + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the network endpoint group. It should comply + * with RFC1035. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of network endpoint groups that are located in the specified project and zone. + * + * Create a request for the method "networkEndpointGroups.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 thezone + where the network endpoint group is located. It should comply with RFC1035. + * @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}/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of network endpoint groups that are located in the specified project and + * zone. + * + * Create a request for the method "networkEndpointGroups.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 thezone + where the network endpoint group is located. It should comply with RFC1035. + * @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.NetworkEndpointGroupList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 thezone where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public List setZone(java.lang.String zone) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the network endpoints in the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} + * @return the request + */ + public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) throws java.io.IOException { + ListNetworkEndpoints result = new ListNetworkEndpoints(project, zone, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class ListNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the network endpoints in the specified network endpoint group. + * + * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link ListNetworkEndpoints#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 where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} + * @since 1.13 + */ + protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); + } + + @Override + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); + } + + @Override + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); + } + + @Override + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); + } + + @Override + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) 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 ListNetworkEndpoints 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 where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public ListNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group from which you want to generate a list of included network + endpoints. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "networkEndpointGroups.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "networkEndpointGroups.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NetworkFirewallPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkFirewallPolicies.List request = compute.networkFirewallPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkFirewallPolicies networkFirewallPolicies() { + return new NetworkFirewallPolicies(); + } + + /** + * The "networkFirewallPolicies" collection of methods. + */ + public class NetworkFirewallPolicies { + + /** + * Inserts an association for the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.addAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @return the request + */ + public AddAssociation addAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(project, firewallPolicy, content); + initialize(result); + return result; + } + + public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Inserts an association for the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.addAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for 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 AddAssociation(java.lang.String project, 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); + } + + @Override + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); + } + + @Override + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); + } + + @Override + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); + } + + @Override + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); + } + + @Override + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); + } + + @Override + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); + } + + @Override + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) 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 AddAssociation 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 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 AddAssociation 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; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; + + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; + 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 AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a packet mirroring rule into a firewall policy. + * + * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @return the request + */ + public AddPacketMirroringRule addPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddPacketMirroringRule result = new AddPacketMirroringRule(project, firewallPolicy, content); + initialize(result); + return result; + } + + public class AddPacketMirroringRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Inserts a packet mirroring rule into a firewall policy. + * + * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @since 1.13 + */ + protected AddPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (AddPacketMirroringRule) super.setAccessToken(accessToken); + } + + @Override + public AddPacketMirroringRule setAlt(java.lang.String alt) { + return (AddPacketMirroringRule) super.setAlt(alt); + } + + @Override + public AddPacketMirroringRule setCallback(java.lang.String callback) { + return (AddPacketMirroringRule) super.setCallback(callback); + } + + @Override + public AddPacketMirroringRule setFields(java.lang.String fields) { + return (AddPacketMirroringRule) super.setFields(fields); + } + + @Override + public AddPacketMirroringRule setKey(java.lang.String key) { + return (AddPacketMirroringRule) super.setKey(key); + } + + @Override + public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (AddPacketMirroringRule) super.setOauthToken(oauthToken); + } + + @Override + public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (AddPacketMirroringRule) super.setUploadType(uploadType); + } + + @Override + public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddPacketMirroringRule setUserIp(java.lang.String userIp) { + return (AddPacketMirroringRule) 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 AddPacketMirroringRule 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 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 AddPacketMirroringRule 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; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMaxPriority() { + return maxPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; + return this; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMinPriority() { + return minPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; + 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 AddPacketMirroringRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddPacketMirroringRule set(String parameterName, Object value) { + return (AddPacketMirroringRule) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a firewall policy. + * + * Create a request for the method "networkFirewallPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(project, firewallPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Inserts a rule into a firewall policy. + * + * Create a request for the method "networkFirewallPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

+ * {@link + * AddRule#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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) 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 AddRule 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 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 AddRule 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; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMaxPriority() { + return maxPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; + return this; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMinPriority() { + return minPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; + 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 AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Retrieves an aggregated list of network firewall policies, listing network firewall policies from + * all applicable scopes (global and regional) and grouping the results per scope. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkFirewallPolicies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkFirewallPolicies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Copies rules to the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.cloneRules". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + CloneRules result = new CloneRules(project, firewallPolicy); + initialize(result); + return result; + } + + public class CloneRules extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Copies rules to the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.cloneRules". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

+ * {@link + * CloneRules#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 firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); + } + + @Override + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); + } + + @Override + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); + } + + @Override + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); + } + + @Override + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); + } + + @Override + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); + } + + @Override + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); + } + + @Override + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); + } + + @Override + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); + } + + @Override + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); + } + + @Override + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) 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 CloneRules 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 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 CloneRules 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 CloneRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The firewall policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceFirewallPolicy; + + /** The firewall policy from which to copy rules. + */ + public java.lang.String getSourceFirewallPolicy() { + return sourceFirewallPolicy; + } + + /** The firewall policy from which to copy rules. */ + public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { + this.sourceFirewallPolicy = sourceFirewallPolicy; + return this; + } + + @Override + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. + * + * Create a request for the method "networkFirewallPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + Delete result = new Delete(project, firewallPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified policy. + * + * Create a request for the method "networkFirewallPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 firewallPolicy Name of the firewall policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 firewall policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to delete. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to delete. */ + public Delete 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified network firewall policy. + * + * Create a request for the method "networkFirewallPolicies.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 firewallPolicy Name of the firewall policy to get. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + Get result = new Get(project, firewallPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_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 network firewall policy. + * + * Create a request for the method "networkFirewallPolicies.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 firewallPolicy Name of the firewall policy to get. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 firewall policy to get. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to get. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to get. */ + public Get 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets an association with the specified name. + * + * Create a request for the method "networkFirewallPolicies.getAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(project, firewallPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets an association with the specified name. + * + * Create a request for the method "networkFirewallPolicies.getAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @since 1.13 + */ + protected GetAssociation(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } + + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } + + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } + + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } + + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } + + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } + + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) 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 GetAssociation 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 firewall policy to which the queried association belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried association belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried association belongs. */ + public GetAssociation 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; + } + + /** The name of the association to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the firewall policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the firewall policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "networkFirewallPolicies.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "networkFirewallPolicies.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (GetPacketMirroringRule) super.setAccessToken(accessToken); + } + + @Override + public GetPacketMirroringRule setAlt(java.lang.String alt) { + return (GetPacketMirroringRule) super.setAlt(alt); + } + + @Override + public GetPacketMirroringRule setCallback(java.lang.String callback) { + return (GetPacketMirroringRule) super.setCallback(callback); + } + + @Override + public GetPacketMirroringRule setFields(java.lang.String fields) { + return (GetPacketMirroringRule) super.setFields(fields); + } + + @Override + public GetPacketMirroringRule setKey(java.lang.String key) { + return (GetPacketMirroringRule) super.setKey(key); + } + + @Override + public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (GetPacketMirroringRule) super.setOauthToken(oauthToken); + } + + @Override + public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (GetPacketMirroringRule) super.setUploadType(uploadType); + } + + @Override + public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetPacketMirroringRule setUserIp(java.lang.String userIp) { + return (GetPacketMirroringRule) 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 GetPacketMirroringRule 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 firewall policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried rule belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried rule belongs. */ + public GetPacketMirroringRule 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; + } + + /** The priority of the rule to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the firewall policy. */ + public GetPacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetPacketMirroringRule set(String parameterName, Object value) { + return (GetPacketMirroringRule) super.set(parameterName, value); + } + } + /** + * Gets a rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.getRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @return the request + */ + public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetRule result = new GetRule(project, firewallPolicy); + initialize(result); + return result; + } + + public class GetRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets a rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.getRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

+ * {@link + * GetRule#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 firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) 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 GetRule 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 firewall policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried rule belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried rule belongs. */ + public GetRule 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; + } + + /** The priority of the rule to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the firewall policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "networkFirewallPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "networkFirewallPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all the policies that have been configured for the specified project. + * + * Create a request for the method "networkFirewallPolicies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all the policies that have been configured for the specified project. + * + * Create a request for the method "networkFirewallPolicies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified policy with the data included in the request. + * + * Create a request for the method "networkFirewallPolicies.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 Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Patch result = new Patch(project, firewallPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified policy with the data included in the request. + * + * Create a request for the method "networkFirewallPolicies.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 Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) { + super(Compute.this, "PATCH", 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 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 Patch 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Patches a packet mirroring rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @return the request + */ + public PatchPacketMirroringRule patchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchPacketMirroringRule result = new PatchPacketMirroringRule(project, firewallPolicy, content); + initialize(result); + return result; + } + + public class PatchPacketMirroringRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches a packet mirroring rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @since 1.13 + */ + protected PatchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (PatchPacketMirroringRule) super.setAccessToken(accessToken); + } + + @Override + public PatchPacketMirroringRule setAlt(java.lang.String alt) { + return (PatchPacketMirroringRule) super.setAlt(alt); + } + + @Override + public PatchPacketMirroringRule setCallback(java.lang.String callback) { + return (PatchPacketMirroringRule) super.setCallback(callback); + } + + @Override + public PatchPacketMirroringRule setFields(java.lang.String fields) { + return (PatchPacketMirroringRule) super.setFields(fields); + } + + @Override + public PatchPacketMirroringRule setKey(java.lang.String key) { + return (PatchPacketMirroringRule) super.setKey(key); + } + + @Override + public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (PatchPacketMirroringRule) super.setUploadType(uploadType); + } + + @Override + public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { + return (PatchPacketMirroringRule) 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 PatchPacketMirroringRule 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 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 PatchPacketMirroringRule 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; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchPacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 PatchPacketMirroringRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchPacketMirroringRule set(String parameterName, Object value) { + return (PatchPacketMirroringRule) super.set(parameterName, value); + } + } + /** + * Patches a rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.patchRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @return the request + */ + public PatchRule patchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(project, firewallPolicy, content); + initialize(result); + return result; + } + + public class PatchRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches a rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.patchRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

+ * {@link + * PatchRule#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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @since 1.13 + */ + protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); + } + + @Override + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); + } + + @Override + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); + } + + @Override + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); + } + + @Override + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); + } + + @Override + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); + } + + @Override + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) 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 PatchRule 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 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 PatchRule 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; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 PatchRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Removes an association for the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.removeAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); + initialize(result); + return result; + } + + public class RemoveAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes an association for the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.removeAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected RemoveAssociation(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); + } + + @Override + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); + } + + @Override + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); + } + + @Override + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); + } + + @Override + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); + } + + @Override + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); + } + + @Override + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); + } + + @Override + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) 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 RemoveAssociation 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 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 RemoveAssociation 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; + } + + /** Name for the attachment that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the attachment that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; + 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 RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); + } + } + /** + * Deletes a packet mirroring rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); + initialize(result); + return result; + } + + public class RemovePacketMirroringRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a packet mirroring rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected RemovePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (RemovePacketMirroringRule) super.setAccessToken(accessToken); + } + + @Override + public RemovePacketMirroringRule setAlt(java.lang.String alt) { + return (RemovePacketMirroringRule) super.setAlt(alt); + } + + @Override + public RemovePacketMirroringRule setCallback(java.lang.String callback) { + return (RemovePacketMirroringRule) super.setCallback(callback); + } + + @Override + public RemovePacketMirroringRule setFields(java.lang.String fields) { + return (RemovePacketMirroringRule) super.setFields(fields); + } + + @Override + public RemovePacketMirroringRule setKey(java.lang.String key) { + return (RemovePacketMirroringRule) super.setKey(key); + } + + @Override + public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); + } + + @Override + public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { + return (RemovePacketMirroringRule) super.setUploadType(uploadType); + } + + @Override + public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { + return (RemovePacketMirroringRule) 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 RemovePacketMirroringRule 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 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 RemovePacketMirroringRule 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; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemovePacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 RemovePacketMirroringRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemovePacketMirroringRule set(String parameterName, Object value) { + return (RemovePacketMirroringRule) super.set(parameterName, value); + } + } + /** + * Deletes a rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.removeRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. + * @return the request + */ + public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(project, firewallPolicy); + initialize(result); + return result; + } + + public class RemoveRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a rule of the specified priority. + * + * Create a request for the method "networkFirewallPolicies.removeRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

+ * {@link + * RemoveRule#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 firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); + } + + @Override + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); + } + + @Override + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); + } + + @Override + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); + } + + @Override + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); + } + + @Override + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); + } + + @Override + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); + } + + @Override + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) 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 RemoveRule 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 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 RemoveRule 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; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NetworkProfiles collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkProfiles.List request = compute.networkProfiles().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkProfiles networkProfiles() { + return new NetworkProfiles(); + } + + /** + * The "networkProfiles" collection of methods. + */ + public class NetworkProfiles { + + /** + * Returns the specified network profile. + * + * Create a request for the method "networkProfiles.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 networkProfile Name of the network profile to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { + Get result = new Get(project, networkProfile); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PROFILE_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 network profile. + * + * Create a request for the method "networkProfiles.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 networkProfile Name of the network profile to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String networkProfile) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfile.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.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), + "Parameter networkProfile must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 network profile to return. */ + @com.google.api.client.util.Key + private java.lang.String networkProfile; + + /** Name of the network profile to return. + */ + public java.lang.String getNetworkProfile() { + return networkProfile; + } + + /** Name of the network profile to return. */ + public Get setNetworkProfile(java.lang.String networkProfile) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), + "Parameter networkProfile must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkProfile = networkProfile; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of network profiles available to the specified project. + * + * Create a request for the method "networkProfiles.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/networkProfiles"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of network profiles available to the specified project. + * + * Create a request for the method "networkProfiles.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfilesListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Networks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Networks.List request = compute.networks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Networks networks() { + return new Networks(); + } + + /** + * The "networks" collection of methods. + */ + public class Networks { + + /** + * Adds a peering to the specified network. + * + * Create a request for the method "networks.addPeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource to add peering to. + * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @return the request + */ + public AddPeering addPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) throws java.io.IOException { + AddPeering result = new AddPeering(project, network, content); + initialize(result); + return result; + } + + public class AddPeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds a peering to the specified network. + * + * Create a request for the method "networks.addPeering". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation.

+ * {@link + * AddPeering#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 network Name of the network resource to add peering to. + * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @since 1.13 + */ + protected AddPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddPeering set$Xgafv(java.lang.String $Xgafv) { + return (AddPeering) super.set$Xgafv($Xgafv); + } + + @Override + public AddPeering setAccessToken(java.lang.String accessToken) { + return (AddPeering) super.setAccessToken(accessToken); + } + + @Override + public AddPeering setAlt(java.lang.String alt) { + return (AddPeering) super.setAlt(alt); + } + + @Override + public AddPeering setCallback(java.lang.String callback) { + return (AddPeering) super.setCallback(callback); + } + + @Override + public AddPeering setFields(java.lang.String fields) { + return (AddPeering) super.setFields(fields); + } + + @Override + public AddPeering setKey(java.lang.String key) { + return (AddPeering) super.setKey(key); + } + + @Override + public AddPeering setOauthToken(java.lang.String oauthToken) { + return (AddPeering) super.setOauthToken(oauthToken); + } + + @Override + public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPeering) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddPeering setQuotaUser(java.lang.String quotaUser) { + return (AddPeering) super.setQuotaUser(quotaUser); + } + + @Override + public AddPeering setUploadType(java.lang.String uploadType) { + return (AddPeering) super.setUploadType(uploadType); + } + + @Override + public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPeering) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddPeering setUserIp(java.lang.String userIp) { + return (AddPeering) 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 AddPeering 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 network resource to add peering to. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource to add peering to. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource to add peering to. */ + public AddPeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 AddPeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddPeering set(String parameterName, Object value) { + return (AddPeering) super.set(parameterName, value); + } + } + /** + * Cancel requests to remove a peering from the specified network. Applicable only for + * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the + * specified network. + * + * Create a request for the method "networks.cancelRequestRemovePeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} + * @return the request + */ + public CancelRequestRemovePeering cancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) throws java.io.IOException { + CancelRequestRemovePeering result = new CancelRequestRemovePeering(project, network, content); + initialize(result); + return result; + } + + public class CancelRequestRemovePeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Cancel requests to remove a peering from the specified network. Applicable only for + * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from + * the specified network. + * + * Create a request for the method "networks.cancelRequestRemovePeering". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} + * @since 1.13 + */ + protected CancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CancelRequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (CancelRequestRemovePeering) super.set$Xgafv($Xgafv); + } + + @Override + public CancelRequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (CancelRequestRemovePeering) super.setAccessToken(accessToken); + } + + @Override + public CancelRequestRemovePeering setAlt(java.lang.String alt) { + return (CancelRequestRemovePeering) super.setAlt(alt); + } + + @Override + public CancelRequestRemovePeering setCallback(java.lang.String callback) { + return (CancelRequestRemovePeering) super.setCallback(callback); + } + + @Override + public CancelRequestRemovePeering setFields(java.lang.String fields) { + return (CancelRequestRemovePeering) super.setFields(fields); + } + + @Override + public CancelRequestRemovePeering setKey(java.lang.String key) { + return (CancelRequestRemovePeering) super.setKey(key); + } + + @Override + public CancelRequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (CancelRequestRemovePeering) super.setOauthToken(oauthToken); + } + + @Override + public CancelRequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CancelRequestRemovePeering) super.setPrettyPrint(prettyPrint); + } + + @Override + public CancelRequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (CancelRequestRemovePeering) super.setQuotaUser(quotaUser); + } + + @Override + public CancelRequestRemovePeering setUploadType(java.lang.String uploadType) { + return (CancelRequestRemovePeering) super.setUploadType(uploadType); + } + + @Override + public CancelRequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (CancelRequestRemovePeering) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CancelRequestRemovePeering setUserIp(java.lang.String userIp) { + return (CancelRequestRemovePeering) 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 CancelRequestRemovePeering 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 network resource to remove peering from. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource to remove peering from. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource to remove peering from. */ + public CancelRequestRemovePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 CancelRequestRemovePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public CancelRequestRemovePeering set(String parameterName, Object value) { + return (CancelRequestRemovePeering) super.set(parameterName, value); + } + } + /** + * Deletes the specified network. + * + * Create a request for the method "networks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { + Delete result = new Delete(project, network); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified network. + * + * Create a request for the method "networks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 network Name of the network to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String network) { + super(Compute.this, "DELETE", REST_PATH, null, 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 network to delete. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network to delete. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network to delete. */ + public Delete setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified network. + * + * Create a request for the method "networks.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 network Name of the network to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { + Get result = new Get(project, network); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_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 network. + * + * Create a request for the method "networks.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 network Name of the network to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Network.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 network to return. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network to return. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network to return. */ + public Get setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the effective firewalls on a given network. + * + * Create a request for the method "networks.getEffectiveFirewalls". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param network Name of the network for this request. + * @return the request + */ + public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { + GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); + initialize(result); + return result; + } + + public class GetEffectiveFirewalls extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Returns the effective firewalls on a given network. + * + * Create a request for the method "networks.getEffectiveFirewalls". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param network Name of the network for this request. + * @since 1.13 + */ + protected GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworksGetEffectiveFirewallsResponse.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + } + + @Override + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + } + + @Override + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); + } + + @Override + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); + } + + @Override + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); + } + + @Override + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); + } + + @Override + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) 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 GetEffectiveFirewalls 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 network for this request. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network for this request. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network for this request. */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.network = network; + return this; + } + + @Override + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); + } + } + /** + * Creates a network in the specified project using the data included in the request. + * + * Create a request for the method "networks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Network} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Network content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a network in the specified project using the data included in the request. + * + * Create a request for the method "networks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Network} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Network 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of networks available to the specified project. + * + * Create a request for the method "networks.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/networks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of networks available to the specified project. + * + * Create a request for the method "networks.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the peering routes exchanged over peering connection. + * + * Create a request for the method "networks.listPeeringRoutes". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network for this request. + * @return the request + */ + public ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { + ListPeeringRoutes result = new ListPeeringRoutes(project, network); + initialize(result); + return result; + } + + public class ListPeeringRoutes extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Lists the peering routes exchanged over peering connection. + * + * Create a request for the method "networks.listPeeringRoutes". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param network Name of the network for this request. + * @since 1.13 + */ + protected ListPeeringRoutes(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExchangedPeeringRoutesList.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListPeeringRoutes) super.set$Xgafv($Xgafv); + } + + @Override + public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { + return (ListPeeringRoutes) super.setAccessToken(accessToken); + } + + @Override + public ListPeeringRoutes setAlt(java.lang.String alt) { + return (ListPeeringRoutes) super.setAlt(alt); + } + + @Override + public ListPeeringRoutes setCallback(java.lang.String callback) { + return (ListPeeringRoutes) super.setCallback(callback); + } + + @Override + public ListPeeringRoutes setFields(java.lang.String fields) { + return (ListPeeringRoutes) super.setFields(fields); + } + + @Override + public ListPeeringRoutes setKey(java.lang.String key) { + return (ListPeeringRoutes) super.setKey(key); + } + + @Override + public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { + return (ListPeeringRoutes) super.setOauthToken(oauthToken); + } + + @Override + public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListPeeringRoutes) super.setQuotaUser(quotaUser); + } + + @Override + public ListPeeringRoutes setUploadType(java.lang.String uploadType) { + return (ListPeeringRoutes) super.setUploadType(uploadType); + } + + @Override + public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPeeringRoutes setUserIp(java.lang.String userIp) { + return (ListPeeringRoutes) 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 ListPeeringRoutes 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 network for this request. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network for this request. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network for this request. */ + public ListPeeringRoutes setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.network = network; + return this; + } + + /** The direction of the exchanged routes. */ + @com.google.api.client.util.Key + private java.lang.String direction; + + /** The direction of the exchanged routes. + */ + public java.lang.String getDirection() { + return direction; + } + + /** The direction of the exchanged routes. */ + public ListPeeringRoutes setDirection(java.lang.String direction) { + this.direction = direction; + 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 ListPeeringRoutes 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 ListPeeringRoutes 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 ListPeeringRoutes 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 ListPeeringRoutes setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The response will show routes exchanged over the given peering connection. */ + @com.google.api.client.util.Key + private java.lang.String peeringName; + + /** The response will show routes exchanged over the given peering connection. + */ + public java.lang.String getPeeringName() { + return peeringName; + } + + /** The response will show routes exchanged over the given peering connection. */ + public ListPeeringRoutes setPeeringName(java.lang.String peeringName) { + this.peeringName = peeringName; + return this; + } + + /** + * The region of the request. The response will include all subnet routes, static routes and + * dynamic routes in the region. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region of the request. The response will include all subnet routes, static routes and dynamic + routes in the region. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The region of the request. The response will include all subnet routes, static routes and + * dynamic routes in the region. + */ + public ListPeeringRoutes setRegion(java.lang.String region) { + this.region = region; + return this; + } + + @Override + public ListPeeringRoutes set(String parameterName, Object value) { + return (ListPeeringRoutes) super.set(parameterName, value); + } + } + /** + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. + * + * Create a request for the method "networks.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 Project ID for this request. + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) throws java.io.IOException { + Patch result = new Patch(project, network, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. + * + * Create a request for the method "networks.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 Project ID for this request. + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) { + super(Compute.this, "PATCH", 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 network to update. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network to update. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network to update. */ + public Patch setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Removes a peering from the specified network. + * + * Create a request for the method "networks.removePeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @return the request + */ + public RemovePeering removePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) throws java.io.IOException { + RemovePeering result = new RemovePeering(project, network, content); + initialize(result); + return result; + } + + public class RemovePeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes a peering from the specified network. + * + * Create a request for the method "networks.removePeering". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @since 1.13 + */ + protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RemovePeering) super.set$Xgafv($Xgafv); + } + + @Override + public RemovePeering setAccessToken(java.lang.String accessToken) { + return (RemovePeering) super.setAccessToken(accessToken); + } + + @Override + public RemovePeering setAlt(java.lang.String alt) { + return (RemovePeering) super.setAlt(alt); + } + + @Override + public RemovePeering setCallback(java.lang.String callback) { + return (RemovePeering) super.setCallback(callback); + } + + @Override + public RemovePeering setFields(java.lang.String fields) { + return (RemovePeering) super.setFields(fields); + } + + @Override + public RemovePeering setKey(java.lang.String key) { + return (RemovePeering) super.setKey(key); + } + + @Override + public RemovePeering setOauthToken(java.lang.String oauthToken) { + return (RemovePeering) super.setOauthToken(oauthToken); + } + + @Override + public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePeering) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RemovePeering) super.setQuotaUser(quotaUser); + } + + @Override + public RemovePeering setUploadType(java.lang.String uploadType) { + return (RemovePeering) super.setUploadType(uploadType); + } + + @Override + public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePeering) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemovePeering setUserIp(java.lang.String userIp) { + return (RemovePeering) 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 RemovePeering 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 network resource to remove peering from. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource to remove peering from. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource to remove peering from. */ + public RemovePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 RemovePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemovePeering set(String parameterName, Object value) { + return (RemovePeering) super.set(parameterName, value); + } + } + /** + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. + * + * Create a request for the method "networks.requestRemovePeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @return the request + */ + public RequestRemovePeering requestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) throws java.io.IOException { + RequestRemovePeering result = new RequestRemovePeering(project, network, content); + initialize(result); + return result; + } + + public class RequestRemovePeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. + * + * Create a request for the method "networks.requestRemovePeering". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote + * operation.

{@link RequestRemovePeering#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 network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @since 1.13 + */ + protected RequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RequestRemovePeering) super.set$Xgafv($Xgafv); + } + + @Override + public RequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (RequestRemovePeering) super.setAccessToken(accessToken); + } + + @Override + public RequestRemovePeering setAlt(java.lang.String alt) { + return (RequestRemovePeering) super.setAlt(alt); + } + + @Override + public RequestRemovePeering setCallback(java.lang.String callback) { + return (RequestRemovePeering) super.setCallback(callback); + } + + @Override + public RequestRemovePeering setFields(java.lang.String fields) { + return (RequestRemovePeering) super.setFields(fields); + } + + @Override + public RequestRemovePeering setKey(java.lang.String key) { + return (RequestRemovePeering) super.setKey(key); + } + + @Override + public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (RequestRemovePeering) super.setOauthToken(oauthToken); + } + + @Override + public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); + } + + @Override + public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RequestRemovePeering) super.setQuotaUser(quotaUser); + } + + @Override + public RequestRemovePeering setUploadType(java.lang.String uploadType) { + return (RequestRemovePeering) super.setUploadType(uploadType); + } + + @Override + public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RequestRemovePeering setUserIp(java.lang.String userIp) { + return (RequestRemovePeering) 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 RequestRemovePeering 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 network resource to remove peering from. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource to remove peering from. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource to remove peering from. */ + public RequestRemovePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 RequestRemovePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RequestRemovePeering set(String parameterName, Object value) { + return (RequestRemovePeering) super.set(parameterName, value); + } + } + /** + * Switches the network mode from auto subnet mode to custom subnet mode. + * + * Create a request for the method "networks.switchToCustomMode". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network to be updated. + * @return the request + */ + public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { + SwitchToCustomMode result = new SwitchToCustomMode(project, network); + initialize(result); + return result; + } + + public class SwitchToCustomMode extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Switches the network mode from auto subnet mode to custom subnet mode. + * + * Create a request for the method "networks.switchToCustomMode". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param network Name of the network to be updated. + * @since 1.13 + */ + protected SwitchToCustomMode(java.lang.String project, java.lang.String network) { + super(Compute.this, "POST", REST_PATH, null, 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { + return (SwitchToCustomMode) super.set$Xgafv($Xgafv); + } + + @Override + public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { + return (SwitchToCustomMode) super.setAccessToken(accessToken); + } + + @Override + public SwitchToCustomMode setAlt(java.lang.String alt) { + return (SwitchToCustomMode) super.setAlt(alt); + } + + @Override + public SwitchToCustomMode setCallback(java.lang.String callback) { + return (SwitchToCustomMode) super.setCallback(callback); + } + + @Override + public SwitchToCustomMode setFields(java.lang.String fields) { + return (SwitchToCustomMode) super.setFields(fields); + } + + @Override + public SwitchToCustomMode setKey(java.lang.String key) { + return (SwitchToCustomMode) super.setKey(key); + } + + @Override + public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { + return (SwitchToCustomMode) super.setOauthToken(oauthToken); + } + + @Override + public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); + } + + @Override + public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { + return (SwitchToCustomMode) super.setQuotaUser(quotaUser); + } + + @Override + public SwitchToCustomMode setUploadType(java.lang.String uploadType) { + return (SwitchToCustomMode) super.setUploadType(uploadType); + } + + @Override + public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { + return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SwitchToCustomMode setUserIp(java.lang.String userIp) { + return (SwitchToCustomMode) 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 SwitchToCustomMode 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 network to be updated. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network to be updated. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network to be updated. */ + public SwitchToCustomMode setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 SwitchToCustomMode setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SwitchToCustomMode set(String parameterName, Object value) { + return (SwitchToCustomMode) super.set(parameterName, value); + } + } + /** + * Updates the specified network peering with the data included in the request. You can only modify + * the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + * + * Create a request for the method "networks.updatePeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource which the updated peering is belonging to. + * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @return the request + */ + public UpdatePeering updatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) throws java.io.IOException { + UpdatePeering result = new UpdatePeering(project, network, content); + initialize(result); + return result; + } + + public class UpdatePeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/updatePeering"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified network peering with the data included in the request. You can only + * modify the NetworkPeering.export_custom_routes field and the + * NetworkPeering.import_custom_routes field. + * + * Create a request for the method "networks.updatePeering". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param network Name of the network resource which the updated peering is belonging to. + * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @since 1.13 + */ + protected UpdatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) { + super(Compute.this, "PATCH", 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePeering) super.set$Xgafv($Xgafv); + } + + @Override + public UpdatePeering setAccessToken(java.lang.String accessToken) { + return (UpdatePeering) super.setAccessToken(accessToken); + } + + @Override + public UpdatePeering setAlt(java.lang.String alt) { + return (UpdatePeering) super.setAlt(alt); + } + + @Override + public UpdatePeering setCallback(java.lang.String callback) { + return (UpdatePeering) super.setCallback(callback); + } + + @Override + public UpdatePeering setFields(java.lang.String fields) { + return (UpdatePeering) super.setFields(fields); + } + + @Override + public UpdatePeering setKey(java.lang.String key) { + return (UpdatePeering) super.setKey(key); + } + + @Override + public UpdatePeering setOauthToken(java.lang.String oauthToken) { + return (UpdatePeering) super.setOauthToken(oauthToken); + } + + @Override + public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePeering) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdatePeering setQuotaUser(java.lang.String quotaUser) { + return (UpdatePeering) super.setQuotaUser(quotaUser); + } + + @Override + public UpdatePeering setUploadType(java.lang.String uploadType) { + return (UpdatePeering) super.setUploadType(uploadType); + } + + @Override + public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePeering) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdatePeering setUserIp(java.lang.String userIp) { + return (UpdatePeering) 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 UpdatePeering 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 network resource which the updated peering is belonging to. */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Name of the network resource which the updated peering is belonging to. + */ + public java.lang.String getNetwork() { + return network; + } + + /** Name of the network resource which the updated peering is belonging to. */ + public UpdatePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; + 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 UpdatePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdatePeering set(String parameterName, Object value) { + return (UpdatePeering) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NodeGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeGroups.List request = compute.nodeGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeGroups nodeGroups() { + return new NodeGroups(); + } + + /** + * The "nodeGroups" collection of methods. + */ + public class NodeGroups { + + /** + * Adds specified number of nodes to the node group. + * + * Create a request for the method "nodeGroups.addNodes". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @return the request + */ + public AddNodes addNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) throws java.io.IOException { + AddNodes result = new AddNodes(project, zone, nodeGroup, content); + initialize(result); + return result; + } + + public class AddNodes extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds specified number of nodes to the node group. + * + * Create a request for the method "nodeGroups.addNodes". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation.

+ * {@link + * AddNodes#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. + * @param nodeGroup Name of the NodeGroup resource. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @since 1.13 + */ + protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest 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.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddNodes set$Xgafv(java.lang.String $Xgafv) { + return (AddNodes) super.set$Xgafv($Xgafv); + } + + @Override + public AddNodes setAccessToken(java.lang.String accessToken) { + return (AddNodes) super.setAccessToken(accessToken); + } + + @Override + public AddNodes setAlt(java.lang.String alt) { + return (AddNodes) super.setAlt(alt); + } + + @Override + public AddNodes setCallback(java.lang.String callback) { + return (AddNodes) super.setCallback(callback); + } + + @Override + public AddNodes setFields(java.lang.String fields) { + return (AddNodes) super.setFields(fields); + } + + @Override + public AddNodes setKey(java.lang.String key) { + return (AddNodes) super.setKey(key); + } + + @Override + public AddNodes setOauthToken(java.lang.String oauthToken) { + return (AddNodes) super.setOauthToken(oauthToken); + } + + @Override + public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNodes) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddNodes setQuotaUser(java.lang.String quotaUser) { + return (AddNodes) super.setQuotaUser(quotaUser); + } + + @Override + public AddNodes setUploadType(java.lang.String uploadType) { + return (AddNodes) super.setUploadType(uploadType); + } + + @Override + public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNodes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddNodes setUserIp(java.lang.String userIp) { + return (AddNodes) 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 AddNodes 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 AddNodes 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 NodeGroup resource. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource. */ + public AddNodes setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 AddNodes setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddNodes set(String parameterName, Object value) { + return (AddNodes) super.set(parameterName, value); + } + } + /** + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeGroups.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeGroups.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified NodeGroup resource. + * + * Create a request for the method "nodeGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, nodeGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified NodeGroup resource. + * + * Create a request for the method "nodeGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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. + * @param nodeGroup Name of the NodeGroup resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 NodeGroup resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource to delete. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource to delete. */ + public Delete setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes specified nodes from the node group. + * + * Create a request for the method "nodeGroups.deleteNodes". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} + * @return the request + */ + public DeleteNodes deleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) throws java.io.IOException { + DeleteNodes result = new DeleteNodes(project, zone, nodeGroup, content); + initialize(result); + return result; + } + + public class DeleteNodes extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes specified nodes from the node group. + * + * Create a request for the method "nodeGroups.deleteNodes". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation.

+ * {@link + * DeleteNodes#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. + * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} + * @since 1.13 + */ + protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest 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.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNodes) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteNodes setAccessToken(java.lang.String accessToken) { + return (DeleteNodes) super.setAccessToken(accessToken); + } + + @Override + public DeleteNodes setAlt(java.lang.String alt) { + return (DeleteNodes) super.setAlt(alt); + } + + @Override + public DeleteNodes setCallback(java.lang.String callback) { + return (DeleteNodes) super.setCallback(callback); + } + + @Override + public DeleteNodes setFields(java.lang.String fields) { + return (DeleteNodes) super.setFields(fields); + } + + @Override + public DeleteNodes setKey(java.lang.String key) { + return (DeleteNodes) super.setKey(key); + } + + @Override + public DeleteNodes setOauthToken(java.lang.String oauthToken) { + return (DeleteNodes) super.setOauthToken(oauthToken); + } + + @Override + public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNodes) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteNodes setQuotaUser(java.lang.String quotaUser) { + return (DeleteNodes) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteNodes setUploadType(java.lang.String uploadType) { + return (DeleteNodes) super.setUploadType(uploadType); + } + + @Override + public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNodes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteNodes setUserIp(java.lang.String userIp) { + return (DeleteNodes) 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 DeleteNodes 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 DeleteNodes 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 NodeGroup resource whose nodes will be deleted. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource whose nodes will be deleted. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource whose nodes will be deleted. */ + public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 DeleteNodes setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteNodes set(String parameterName, Object value) { + return (DeleteNodes) super.set(parameterName, value); + } + } + /** + * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. + * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * + * Create a request for the method "nodeGroups.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 zone The name of the zone for this request. + * @param nodeGroup Name of the node group to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + Get result = new Get(project, zone, nodeGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_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 NodeGroup. Get a list of available NodeGroups by making a list() request. + * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * + * Create a request for the method "nodeGroups.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 zone The name of the zone for this request. + * @param nodeGroup Name of the node group to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroup.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 node group to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the node group to return. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the node group to return. */ + public Get setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "nodeGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "nodeGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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. + * @param initialNodeCount Initial count of nodes in the node group. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup 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.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])?"); + } + this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** Initial count of nodes in the node group. */ + @com.google.api.client.util.Key + private java.lang.Integer initialNodeCount; + + /** Initial count of nodes in the node group. + */ + public java.lang.Integer getInitialNodeCount() { + return initialNodeCount; + } + + /** Initial count of nodes in the node group. */ + public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { + this.initialNodeCount = initialNodeCount; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. + * + * Create a request for the method "nodeGroups.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}/nodeGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. + * + * Create a request for the method "nodeGroups.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.NodeGroupList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists nodes in the node group. + * + * Create a request for the method "nodeGroups.listNodes". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @return the request + */ + public ListNodes listNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + ListNodes result = new ListNodes(project, zone, nodeGroup); + initialize(result); + return result; + } + + public class ListNodes extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Lists nodes in the node group. + * + * Create a request for the method "nodeGroups.listNodes". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation.

+ * {@link + * ListNodes#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. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @since 1.13 + */ + protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NodeGroupsListNodes.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListNodes set$Xgafv(java.lang.String $Xgafv) { + return (ListNodes) super.set$Xgafv($Xgafv); + } + + @Override + public ListNodes setAccessToken(java.lang.String accessToken) { + return (ListNodes) super.setAccessToken(accessToken); + } + + @Override + public ListNodes setAlt(java.lang.String alt) { + return (ListNodes) super.setAlt(alt); + } + + @Override + public ListNodes setCallback(java.lang.String callback) { + return (ListNodes) super.setCallback(callback); + } + + @Override + public ListNodes setFields(java.lang.String fields) { + return (ListNodes) super.setFields(fields); + } + + @Override + public ListNodes setKey(java.lang.String key) { + return (ListNodes) super.setKey(key); + } + + @Override + public ListNodes setOauthToken(java.lang.String oauthToken) { + return (ListNodes) super.setOauthToken(oauthToken); + } + + @Override + public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNodes) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListNodes setQuotaUser(java.lang.String quotaUser) { + return (ListNodes) super.setQuotaUser(quotaUser); + } + + @Override + public ListNodes setUploadType(java.lang.String uploadType) { + return (ListNodes) super.setUploadType(uploadType); + } + + @Override + public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNodes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListNodes setUserIp(java.lang.String userIp) { + return (ListNodes) 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 ListNodes 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 ListNodes 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 NodeGroup resource whose nodes you want to list. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource whose nodes you want to list. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource whose nodes you want to list. */ + public ListNodes setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 ListNodes 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 ListNodes 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 ListNodes 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 ListNodes setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListNodes set(String parameterName, Object value) { + return (ListNodes) super.set(parameterName, value); + } + } + /** + * Updates the specified node group. + * + * Create a request for the method "nodeGroups.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 Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { + Patch result = new Patch(project, zone, nodeGroup, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified node group. + * + * Create a request for the method "nodeGroups.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 Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 NodeGroup resource to update. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource to update. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource to update. */ + public Patch setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Perform maintenance on a subset of nodes in the node group. + * + * Create a request for the method "nodeGroups.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, nodeGroup, content); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Perform maintenance on a subset of nodes in the node group. + * + * Create a request for the method "nodeGroups.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest 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.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) 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 PerformMaintenance 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 PerformMaintenance 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 node group scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the node group scoping this request. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the node group scoping this request. */ + public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link SetNodeTemplate#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @since 1.13 + */ + protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest 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.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])?"); + } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetNodeTemplate) super.set$Xgafv($Xgafv); + } + + @Override + public SetNodeTemplate setAccessToken(java.lang.String accessToken) { + return (SetNodeTemplate) super.setAccessToken(accessToken); + } + + @Override + public SetNodeTemplate setAlt(java.lang.String alt) { + return (SetNodeTemplate) super.setAlt(alt); + } + + @Override + public SetNodeTemplate setCallback(java.lang.String callback) { + return (SetNodeTemplate) super.setCallback(callback); + } + + @Override + public SetNodeTemplate setFields(java.lang.String fields) { + return (SetNodeTemplate) super.setFields(fields); + } + + @Override + public SetNodeTemplate setKey(java.lang.String key) { + return (SetNodeTemplate) super.setKey(key); + } + + @Override + public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { + return (SetNodeTemplate) super.setOauthToken(oauthToken); + } + + @Override + public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetNodeTemplate) super.setQuotaUser(quotaUser); + } + + @Override + public SetNodeTemplate setUploadType(java.lang.String uploadType) { + return (SetNodeTemplate) super.setUploadType(uploadType); + } + + @Override + public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetNodeTemplate setUserIp(java.lang.String userIp) { + return (SetNodeTemplate) 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 SetNodeTemplate 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 SetNodeTemplate 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 NodeGroup resource to update. */ + @com.google.api.client.util.Key + private java.lang.String nodeGroup; + + /** Name of the NodeGroup resource to update. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } + + /** Name of the NodeGroup resource to update. */ + public SetNodeTemplate setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; + 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 SetNodeTemplate setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetNodeTemplate set(String parameterName, Object value) { + return (SetNodeTemplate) super.set(parameterName, value); + } + } + /** + * Simulates maintenance event on specified nodes from the node group. + * + * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance + simulation. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} + * @return the request + */ + public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) throws java.io.IOException { + SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, nodeGroup, content); + initialize(result); + return result; + } + + public class SimulateMaintenanceEvent extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Simulates maintenance event on specified nodes from the node group. + * + * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation.

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NodeTemplates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeTemplates nodeTemplates() { + return new NodeTemplates(); + } + + /** + * The "nodeTemplates" collection of methods. + */ + public class NodeTemplates { + + /** + * Retrieves an aggregated list of node templates. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTemplates.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of node templates. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTemplates.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified NodeTemplate resource. + * + * Create a request for the method "nodeTemplates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { + Delete result = new Delete(project, region, nodeTemplate); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NODE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified NodeTemplate resource. + * + * Create a request for the method "nodeTemplates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + super(Compute.this, "DELETE", REST_PATH, null, 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.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Delete 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 NodeTemplate resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** Name of the NodeTemplate resource to delete. + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** Name of the NodeTemplate resource to delete. */ + public Delete setNodeTemplate(java.lang.String nodeTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeTemplate = nodeTemplate; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified node template. + * + * Create a request for the method "nodeTemplates.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 region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { + Get result = new Get(project, region, nodeTemplate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NODE_TEMPLATE_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 node template. + * + * Create a request for the method "nodeTemplates.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 region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplate.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.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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 node template to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** Name of the node template to return. + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** Name of the node template to return. */ + public Get setNodeTemplate(java.lang.String nodeTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeTemplate = nodeTemplate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "nodeTemplates.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "nodeTemplates.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node templates available to the specified project. + * + * Create a request for the method "nodeTemplates.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 region The 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}/nodeTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of node templates available to the specified project. + * + * Create a request for the method "nodeTemplates.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 region The 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.NodeTemplateList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeTemplates.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeTemplates.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NodeTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeTypes nodeTypes() { + return new NodeTypes(); + } + + /** + * The "nodeTypes" collection of methods. + */ + public class NodeTypes { + + /** + * Retrieves an aggregated list of node types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of node types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified node type. + * + * Create a request for the method "nodeTypes.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 zone The name of the zone for this request. + * @param nodeType Name of the node type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) throws java.io.IOException { + Get result = new Get(project, zone, nodeType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern NODE_TYPE_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 node type. + * + * Create a request for the method "nodeTypes.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 zone The name of the zone for this request. + * @param nodeType Name of the node type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeType.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])?"); + } + this.nodeType = com.google.api.client.util.Preconditions.checkNotNull(nodeType, "Required parameter nodeType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), + "Parameter nodeType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 node type to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeType; + + /** Name of the node type to return. + */ + public java.lang.String getNodeType() { + return nodeType; + } + + /** Name of the node type to return. */ + public Get setNodeType(java.lang.String nodeType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), + "Parameter nodeType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeType = nodeType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node types available to the specified project. + * + * Create a request for the method "nodeTypes.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}/nodeTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 node types available to the specified project. + * + * Create a request for the method "nodeTypes.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.NodeTypeList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationSecurityPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationSecurityPolicies.List request = compute.organizationSecurityPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationSecurityPolicies organizationSecurityPolicies() { + return new OrganizationSecurityPolicies(); + } + + /** + * The "organizationSecurityPolicies" collection of methods. + */ + public class OrganizationSecurityPolicies { + + /** + * Inserts an association for the specified security policy. + * + * This has billing implications. Projects in the hierarchy with effective hierarchical security + * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.addAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @return the request + */ + public AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(securityPolicy, content); + initialize(result); + return result; + } + + public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Inserts an association for the specified security policy. + * + * This has billing implications. Projects in the hierarchy with effective hierarchical security + * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.addAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @since 1.13 + */ + protected AddAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); + } + + @Override + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); + } + + @Override + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); + } + + @Override + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); + } + + @Override + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); + } + + @Override + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); + } + + @Override + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); + } + + @Override + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; + + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; + 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 AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addRule instead. + * + * Create a request for the method "organizationSecurityPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(securityPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Inserts a rule into a security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addRule instead. + * + * Create a request for the method "organizationSecurityPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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 AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Copies rules to the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.cloneRules instead. + * + * Create a request for the method "organizationSecurityPolicies.copyRules". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { + CopyRules result = new CopyRules(securityPolicy); + initialize(result); + return result; + } + + public class CopyRules extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Copies rules to the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.cloneRules instead. + * + * Create a request for the method "organizationSecurityPolicies.copyRules". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected CopyRules(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CopyRules set$Xgafv(java.lang.String $Xgafv) { + return (CopyRules) super.set$Xgafv($Xgafv); + } + + @Override + public CopyRules setAccessToken(java.lang.String accessToken) { + return (CopyRules) super.setAccessToken(accessToken); + } + + @Override + public CopyRules setAlt(java.lang.String alt) { + return (CopyRules) super.setAlt(alt); + } + + @Override + public CopyRules setCallback(java.lang.String callback) { + return (CopyRules) super.setCallback(callback); + } + + @Override + public CopyRules setFields(java.lang.String fields) { + return (CopyRules) super.setFields(fields); + } + + @Override + public CopyRules setKey(java.lang.String key) { + return (CopyRules) super.setKey(key); + } + + @Override + public CopyRules setOauthToken(java.lang.String oauthToken) { + return (CopyRules) super.setOauthToken(oauthToken); + } + + @Override + public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CopyRules) super.setPrettyPrint(prettyPrint); + } + + @Override + public CopyRules setQuotaUser(java.lang.String quotaUser) { + return (CopyRules) super.setQuotaUser(quotaUser); + } + + @Override + public CopyRules setUploadType(java.lang.String uploadType) { + return (CopyRules) super.setUploadType(uploadType); + } + + @Override + public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CopyRules) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CopyRules setUserIp(java.lang.String userIp) { + return (CopyRules) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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 CopyRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The security policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceSecurityPolicy; + + /** The security policy from which to copy rules. + */ + public java.lang.String getSourceSecurityPolicy() { + return sourceSecurityPolicy; + } + + /** The security policy from which to copy rules. */ + public CopyRules setSourceSecurityPolicy(java.lang.String sourceSecurityPolicy) { + this.sourceSecurityPolicy = sourceSecurityPolicy; + return this; + } + + @Override + public CopyRules set(String parameterName, Object value) { + return (CopyRules) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. + * + * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to remove firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.delete instead. + * + * Create a request for the method "organizationSecurityPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to delete. + * @return the request + */ + public Delete delete(java.lang.String securityPolicy) throws java.io.IOException { + Delete result = new Delete(securityPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Deletes the specified policy. + * + * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to remove firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.delete instead. + * + * Create a request for the method "organizationSecurityPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String securityPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Name of the security policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to delete. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * List all of the ordered rules present in a single specified policy. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.get instead. + * + * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to get. + * @return the request + */ + public Get get(java.lang.String securityPolicy) throws java.io.IOException { + Get result = new Get(securityPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * List all of the ordered rules present in a single specified policy. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.get instead. + * + * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to get. + * @since 1.13 + */ + protected Get(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** Name of the security policy to get. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to get. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets an association with the specified name. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.getAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String securityPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(securityPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Gets an association with the specified name. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.getAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetAssociation(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyAssociation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } + + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } + + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } + + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } + + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } + + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } + + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The name of the association to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the security policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the security policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); + } + } + /** + * Gets a rule at the specified priority. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getRule instead. + * + * Create a request for the method "organizationSecurityPolicies.getRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetRule getRule(java.lang.String securityPolicy) throws java.io.IOException { + GetRule result = new GetRule(securityPolicy); + initialize(result); + return result; + } + + public class GetRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Gets a rule at the specified priority. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getRule instead. + * + * Create a request for the method "organizationSecurityPolicies.getRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); + } + + /** Name of the security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the security policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified organization using the data included in the request. + * + * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to add firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.insert instead. + * + * Create a request for the method "organizationSecurityPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Insert insert(com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Insert result = new Insert(content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Creates a new policy in the specified organization using the data included in the request. + * + * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to add firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.insert instead. + * + * Create a request for the method "organizationSecurityPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Insert(com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder + or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public Insert setParentId(java.lang.String parentId) { + this.parentId = parentId; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * List all the policies that have been configured for the specified organization. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.list instead. + * + * Create a request for the method "organizationSecurityPolicies.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. + * + * @return the request + */ + public List list() throws java.io.IOException { + List result = new List(); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * List all the policies that have been configured for the specified organization. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.list instead. + * + * Create a request for the method "organizationSecurityPolicies.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.

+ * + * @since 1.13 + */ + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** + * 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; + } + + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public List setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists associations of a specified target, i.e., organization or folder. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.listAssociations instead. + * + * Create a request for the method "organizationSecurityPolicies.listAssociations". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + * + * @return the request + */ + public ListAssociations listAssociations() throws java.io.IOException { + ListAssociations result = new ListAssociations(); + initialize(result); + return result; + } + + public class ListAssociations extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Lists associations of a specified target, i.e., organization or folder. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.listAssociations instead. + * + * Create a request for the method "organizationSecurityPolicies.listAssociations". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + *

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

+ * + * @since 1.13 + */ + protected ListAssociations() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListAssociations set$Xgafv(java.lang.String $Xgafv) { + return (ListAssociations) super.set$Xgafv($Xgafv); + } + + @Override + public ListAssociations setAccessToken(java.lang.String accessToken) { + return (ListAssociations) super.setAccessToken(accessToken); + } + + @Override + public ListAssociations setAlt(java.lang.String alt) { + return (ListAssociations) super.setAlt(alt); + } + + @Override + public ListAssociations setCallback(java.lang.String callback) { + return (ListAssociations) super.setCallback(callback); + } + + @Override + public ListAssociations setFields(java.lang.String fields) { + return (ListAssociations) super.setFields(fields); + } + + @Override + public ListAssociations setKey(java.lang.String key) { + return (ListAssociations) super.setKey(key); + } + + @Override + public ListAssociations setOauthToken(java.lang.String oauthToken) { + return (ListAssociations) super.setOauthToken(oauthToken); + } + + @Override + public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAssociations) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAssociations setQuotaUser(java.lang.String quotaUser) { + return (ListAssociations) super.setQuotaUser(quotaUser); + } + + @Override + public ListAssociations setUploadType(java.lang.String uploadType) { + return (ListAssociations) super.setUploadType(uploadType); + } + + @Override + public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAssociations) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListAssociations setUserIp(java.lang.String userIp) { + return (ListAssociations) super.setUserIp(userIp); + } + + /** + * The target resource to list associations. It is an organization, or a folder. + */ + @com.google.api.client.util.Key + private java.lang.String targetResource; + + /** The target resource to list associations. It is an organization, or a folder. + */ + public java.lang.String getTargetResource() { + return targetResource; + } + + /** + * The target resource to list associations. It is an organization, or a folder. + */ + public ListAssociations setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; + return this; + } + + @Override + public ListAssociations set(String parameterName, Object value) { + return (ListAssociations) super.set(parameterName, value); + } + } + /** + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * + * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation. + * + * @return the request + */ + public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { + ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); + initialize(result); + return result; + } + + public class ListPreconfiguredExpressionSets extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * + * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation.

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

+ * + * @since 1.13 + */ + protected ListPreconfiguredExpressionSets() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { + return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + } + + @Override + public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { + return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + } + + @Override + public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { + return (ListPreconfiguredExpressionSets) super.setAlt(alt); + } + + @Override + public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { + return (ListPreconfiguredExpressionSets) super.setCallback(callback); + } + + @Override + public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { + return (ListPreconfiguredExpressionSets) super.setFields(fields); + } + + @Override + public ListPreconfiguredExpressionSets setKey(java.lang.String key) { + return (ListPreconfiguredExpressionSets) super.setKey(key); + } + + @Override + public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { + return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + } + + @Override + public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { + return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + } + + @Override + public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { + return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + } + + @Override + public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { + return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); + } + + /** + * 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public ListPreconfiguredExpressionSets setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + + @Override + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) super.set(parameterName, value); + } + } + /** + * Moves the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.move instead. + * + * Create a request for the method "organizationSecurityPolicies.move". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public Move move(java.lang.String securityPolicy) throws java.io.IOException { + Move result = new Move(securityPolicy); + initialize(result); + return result; + } + + public class Move extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Moves the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.move instead. + * + * Create a request for the method "organizationSecurityPolicies.move". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected Move(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); + } + + @Override + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); + } + + @Override + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); + } + + @Override + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); + } + + @Override + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); + } + + @Override + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); + } + + @Override + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); + } + + @Override + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); + } + + @Override + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); + } + + @Override + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); + } + + @Override + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public Move setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The new parent of the security policy. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** The new parent of the security policy. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** The new parent of the security policy. */ + public Move setParentId(java.lang.String parentId) { + this.parentId = parentId; + 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 Move setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); + } + } + /** + * Patches the specified policy with the data included in the request. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patch instead. + * + * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Patch patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Patch result = new Patch(securityPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Patches the specified policy with the data included in the request. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patch instead. + * + * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Patches a rule at the specified priority. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patchRule instead. + * + * Create a request for the method "organizationSecurityPolicies.patchRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(securityPolicy, content); + initialize(result); + return result; + } + + public class PatchRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Patches a rule at the specified priority. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patchRule instead. + * + * Create a request for the method "organizationSecurityPolicies.patchRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected PatchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); + } + + @Override + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); + } + + @Override + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); + } + + @Override + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); + } + + @Override + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); + } + + @Override + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); + } + + @Override + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 PatchRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Removes an association for the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(securityPolicy); + initialize(result); + return result; + } + + public class RemoveAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Removes an association for the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected RemoveAssociation(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); + } + + @Override + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); + } + + @Override + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); + } + + @Override + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); + } + + @Override + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); + } + + @Override + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); + } + + @Override + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); + } + + @Override + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** Name for the attachment that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the attachment that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; + 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 RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); + } + } + /** + * Deletes a rule at the specified priority. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeRule instead. + * + * Create a request for the method "organizationSecurityPolicies.removeRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(securityPolicy); + initialize(result); + return result; + } + + public class RemoveRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Deletes a rule at the specified priority. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeRule instead. + * + * Create a request for the method "organizationSecurityPolicies.removeRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected RemoveRule(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); + } + + @Override + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); + } + + @Override + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); + } + + @Override + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); + } + + @Override + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); + } + + @Override + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); + } + + @Override + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); + } + + @Override + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to remove from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the security policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the PacketMirrorings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PacketMirrorings.List request = compute.packetMirrorings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PacketMirrorings packetMirrorings() { + return new PacketMirrorings(); + } + + /** + * The "packetMirrorings" collection of methods. + */ + public class PacketMirrorings { + + /** + * Retrieves an aggregated list of packetMirrorings. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "packetMirrorings.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of packetMirrorings. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "packetMirrorings.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroringAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified PacketMirroring resource. + * + * Create a request for the method "packetMirrorings.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { + Delete result = new Delete(project, region, packetMirroring); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PACKET_MIRRORING_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified PacketMirroring resource. + * + * Create a request for the method "packetMirrorings.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { + super(Compute.this, "DELETE", REST_PATH, null, 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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 PacketMirroring resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String packetMirroring; + + /** Name of the PacketMirroring resource to delete. + */ + public java.lang.String getPacketMirroring() { + return packetMirroring; + } + + /** Name of the PacketMirroring resource to delete. */ + public Delete setPacketMirroring(java.lang.String packetMirroring) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.packetMirroring = packetMirroring; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified PacketMirroring resource. + * + * Create a request for the method "packetMirrorings.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 region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { + Get result = new Get(project, region, packetMirroring); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PACKET_MIRRORING_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 PacketMirroring resource. + * + * Create a request for the method "packetMirrorings.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 region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroring.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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 PacketMirroring resource to return. */ + @com.google.api.client.util.Key + private java.lang.String packetMirroring; + + /** Name of the PacketMirroring resource to return. + */ + public java.lang.String getPacketMirroring() { + return packetMirroring; + } + + /** Name of the PacketMirroring resource to return. */ + public Get setPacketMirroring(java.lang.String packetMirroring) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.packetMirroring = packetMirroring; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a PacketMirroring resource in the specified project and region using the data included in + * the request. + * + * Create a request for the method "packetMirrorings.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a PacketMirroring resource in the specified project and region using the data included + * in the request. + * + * Create a request for the method "packetMirrorings.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PacketMirroring 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of PacketMirroring resources available to the specified project and region. + * + * Create a request for the method "packetMirrorings.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 region 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}/packetMirrorings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of PacketMirroring resources available to the specified project and region. + * + * Create a request for the method "packetMirrorings.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 region 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.PacketMirroringList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified PacketMirroring resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "packetMirrorings.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 Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to patch. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { + Patch result = new Patch(project, region, packetMirroring, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PACKET_MIRRORING_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified PacketMirroring resource with the data included in the request. This + * method supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "packetMirrorings.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 Project ID for this request. + * @param region Name of the region for this request. + * @param packetMirroring Name of the PacketMirroring resource to patch. + * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) { + super(Compute.this, "PATCH", 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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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 PacketMirroring resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String packetMirroring; + + /** Name of the PacketMirroring resource to patch. + */ + public java.lang.String getPacketMirroring() { + return packetMirroring; + } + + /** Name of the PacketMirroring resource to patch. */ + public Patch setPacketMirroring(java.lang.String packetMirroring) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), + "Parameter packetMirroring must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.packetMirroring = packetMirroring; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "packetMirrorings.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "packetMirrorings.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the PreviewFeatures collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PreviewFeatures.List request = compute.previewFeatures().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PreviewFeatures previewFeatures() { + return new PreviewFeatures(); + } + + /** + * The "previewFeatures" collection of methods. + */ + public class PreviewFeatures { + + /** + * Returns the details of the given PreviewFeature. + * + * Create a request for the method "previewFeatures.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 previewFeature Name of the PreviewFeature for this request. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String previewFeature) throws java.io.IOException { + Get result = new Get(project, previewFeature); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PREVIEW_FEATURE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the details of the given PreviewFeature. + * + * Create a request for the method "previewFeatures.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 previewFeature Name of the PreviewFeature for this request. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String previewFeature) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PreviewFeature.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.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 PreviewFeature for this request. */ + @com.google.api.client.util.Key + private java.lang.String previewFeature; + + /** Name of the PreviewFeature for this request. + */ + public java.lang.String getPreviewFeature() { + return previewFeature; + } + + /** Name of the PreviewFeature for this request. */ + public Get setPreviewFeature(java.lang.String previewFeature) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.previewFeature = previewFeature; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the details of the given PreviewFeature. + * + * Create a request for the method "previewFeatures.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/previewFeatures"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the details of the given PreviewFeature. + * + * Create a request for the method "previewFeatures.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PreviewFeatureList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. + * + * Create a request for the method "previewFeatures.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param previewFeature Name of the PreviewFeature for this request. + * @param content the {@link com.google.api.services.compute.model.PreviewFeature} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.model.PreviewFeature content) throws java.io.IOException { + Update result = new Update(project, previewFeature, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PREVIEW_FEATURE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. + * + * Create a request for the method "previewFeatures.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#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 previewFeature Name of the PreviewFeature for this request. + * @param content the {@link com.google.api.services.compute.model.PreviewFeature} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.model.PreviewFeature content) { + super(Compute.this, "PATCH", 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.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 PreviewFeature for this request. */ + @com.google.api.client.util.Key + private java.lang.String previewFeature; + + /** Name of the PreviewFeature for this request. + */ + public java.lang.String getPreviewFeature() { + return previewFeature; + } + + /** Name of the PreviewFeature for this request. */ + public Update setPreviewFeature(java.lang.String previewFeature) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), + "Parameter previewFeature must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.previewFeature = previewFeature; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ProjectViews collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ProjectViews.List request = compute.projectViews().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ProjectViews projectViews() { + return new ProjectViews(); + } + + /** + * The "projectViews" collection of methods. + */ + public class ProjectViews { + + /** + * Returns the specified global ProjectViews resource, with a regional context. This regional API + * endpoint reads resource metadata from regional read-only replicas. Because changes are copied to + * these regional replicas asynchronously, for real-time resource reads or any write operations + * (creating, updating, or deleting resources), use the global + * [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) endpoint. + * + * Create a request for the method "projectViews.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. This is part of the URL path. + * @param region Required. Name of the region for this request. This is part of the URL path. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { + Get result = new Get(project, region); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/projectViews"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 the specified global ProjectViews resource, with a regional context. This regional API + * endpoint reads resource metadata from regional read-only replicas. Because changes are copied + * to these regional replicas asynchronously, for real-time resource reads or any write operations + * (creating, updating, or deleting resources), use the global + * [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) endpoint. + * + * Create a request for the method "projectViews.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. This is part of the URL path. + * @param region Required. Name of the region for this request. This is part of the URL path. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ProjectView.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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. This is part of the URL path. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. This is part of the URL path. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. This is part of the URL path. */ + 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. This is part of the URL path. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Required. Name of the region for this request. This is part of the URL path. + */ + public java.lang.String getRegion() { + return region; + } + + /** Required. Name of the region for this request. This is part of the URL path. */ + 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Projects.List request = compute.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * Disable this project as a shared VPC host project. + * + * Create a request for the method "projects.disableXpnHost". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DisableXpnHost#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public DisableXpnHost disableXpnHost(java.lang.String project) throws java.io.IOException { + DisableXpnHost result = new DisableXpnHost(project); + initialize(result); + return result; + } + + public class DisableXpnHost extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/disableXpnHost"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Disable this project as a shared VPC host project. + * + * Create a request for the method "projects.disableXpnHost". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DisableXpnHost#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected DisableXpnHost(java.lang.String project) { + super(Compute.this, "POST", REST_PATH, null, 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DisableXpnHost set$Xgafv(java.lang.String $Xgafv) { + return (DisableXpnHost) super.set$Xgafv($Xgafv); + } + + @Override + public DisableXpnHost setAccessToken(java.lang.String accessToken) { + return (DisableXpnHost) super.setAccessToken(accessToken); + } + + @Override + public DisableXpnHost setAlt(java.lang.String alt) { + return (DisableXpnHost) super.setAlt(alt); + } + + @Override + public DisableXpnHost setCallback(java.lang.String callback) { + return (DisableXpnHost) super.setCallback(callback); + } + + @Override + public DisableXpnHost setFields(java.lang.String fields) { + return (DisableXpnHost) super.setFields(fields); + } + + @Override + public DisableXpnHost setKey(java.lang.String key) { + return (DisableXpnHost) super.setKey(key); + } + + @Override + public DisableXpnHost setOauthToken(java.lang.String oauthToken) { + return (DisableXpnHost) super.setOauthToken(oauthToken); + } + + @Override + public DisableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DisableXpnHost) super.setPrettyPrint(prettyPrint); + } + + @Override + public DisableXpnHost setQuotaUser(java.lang.String quotaUser) { + return (DisableXpnHost) super.setQuotaUser(quotaUser); + } + + @Override + public DisableXpnHost setUploadType(java.lang.String uploadType) { + return (DisableXpnHost) super.setUploadType(uploadType); + } + + @Override + public DisableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { + return (DisableXpnHost) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DisableXpnHost setUserIp(java.lang.String userIp) { + return (DisableXpnHost) 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 DisableXpnHost 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; + } + + /** + * 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 DisableXpnHost setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DisableXpnHost set(String parameterName, Object value) { + return (DisableXpnHost) super.set(parameterName, value); + } + } + /** + * Disable a service resource (also known as service project) associated with this host project. + * + * Create a request for the method "projects.disableXpnResource". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DisableXpnResource#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest} + * @return the request + */ + public DisableXpnResource disableXpnResource(java.lang.String project, com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest content) throws java.io.IOException { + DisableXpnResource result = new DisableXpnResource(project, content); + initialize(result); + return result; + } + + public class DisableXpnResource extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/disableXpnResource"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Disable a service resource (also known as service project) associated with this host project. + * + * Create a request for the method "projects.disableXpnResource". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DisableXpnResource#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest} + * @since 1.13 + */ + protected DisableXpnResource(java.lang.String project, com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DisableXpnResource set$Xgafv(java.lang.String $Xgafv) { + return (DisableXpnResource) super.set$Xgafv($Xgafv); + } + + @Override + public DisableXpnResource setAccessToken(java.lang.String accessToken) { + return (DisableXpnResource) super.setAccessToken(accessToken); + } + + @Override + public DisableXpnResource setAlt(java.lang.String alt) { + return (DisableXpnResource) super.setAlt(alt); + } + + @Override + public DisableXpnResource setCallback(java.lang.String callback) { + return (DisableXpnResource) super.setCallback(callback); + } + + @Override + public DisableXpnResource setFields(java.lang.String fields) { + return (DisableXpnResource) super.setFields(fields); + } + + @Override + public DisableXpnResource setKey(java.lang.String key) { + return (DisableXpnResource) super.setKey(key); + } + + @Override + public DisableXpnResource setOauthToken(java.lang.String oauthToken) { + return (DisableXpnResource) super.setOauthToken(oauthToken); + } + + @Override + public DisableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DisableXpnResource) super.setPrettyPrint(prettyPrint); + } + + @Override + public DisableXpnResource setQuotaUser(java.lang.String quotaUser) { + return (DisableXpnResource) super.setQuotaUser(quotaUser); + } + + @Override + public DisableXpnResource setUploadType(java.lang.String uploadType) { + return (DisableXpnResource) super.setUploadType(uploadType); + } + + @Override + public DisableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { + return (DisableXpnResource) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DisableXpnResource setUserIp(java.lang.String userIp) { + return (DisableXpnResource) 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 DisableXpnResource 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; + } + + /** + * 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 DisableXpnResource setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DisableXpnResource set(String parameterName, Object value) { + return (DisableXpnResource) super.set(parameterName, value); + } + } + /** + * Enable this project as a shared VPC host project. + * + * Create a request for the method "projects.enableXpnHost". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link EnableXpnHost#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public EnableXpnHost enableXpnHost(java.lang.String project) throws java.io.IOException { + EnableXpnHost result = new EnableXpnHost(project); + initialize(result); + return result; + } + + public class EnableXpnHost extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/enableXpnHost"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Enable this project as a shared VPC host project. + * + * Create a request for the method "projects.enableXpnHost". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link EnableXpnHost#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected EnableXpnHost(java.lang.String project) { + super(Compute.this, "POST", REST_PATH, null, 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public EnableXpnHost set$Xgafv(java.lang.String $Xgafv) { + return (EnableXpnHost) super.set$Xgafv($Xgafv); + } + + @Override + public EnableXpnHost setAccessToken(java.lang.String accessToken) { + return (EnableXpnHost) super.setAccessToken(accessToken); + } + + @Override + public EnableXpnHost setAlt(java.lang.String alt) { + return (EnableXpnHost) super.setAlt(alt); + } + + @Override + public EnableXpnHost setCallback(java.lang.String callback) { + return (EnableXpnHost) super.setCallback(callback); + } + + @Override + public EnableXpnHost setFields(java.lang.String fields) { + return (EnableXpnHost) super.setFields(fields); + } + + @Override + public EnableXpnHost setKey(java.lang.String key) { + return (EnableXpnHost) super.setKey(key); + } + + @Override + public EnableXpnHost setOauthToken(java.lang.String oauthToken) { + return (EnableXpnHost) super.setOauthToken(oauthToken); + } + + @Override + public EnableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableXpnHost) super.setPrettyPrint(prettyPrint); + } + + @Override + public EnableXpnHost setQuotaUser(java.lang.String quotaUser) { + return (EnableXpnHost) super.setQuotaUser(quotaUser); + } + + @Override + public EnableXpnHost setUploadType(java.lang.String uploadType) { + return (EnableXpnHost) super.setUploadType(uploadType); + } + + @Override + public EnableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableXpnHost) super.setUploadProtocol(uploadProtocol); + } + + @Override + public EnableXpnHost setUserIp(java.lang.String userIp) { + return (EnableXpnHost) 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 EnableXpnHost 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; + } + + /** + * 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 EnableXpnHost setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public EnableXpnHost set(String parameterName, Object value) { + return (EnableXpnHost) super.set(parameterName, value); + } + } + /** + * Enable service resource (a.k.a service project) for a host project, so that subnets in the host + * project can be used by instances in the service project. + * + * Create a request for the method "projects.enableXpnResource". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link EnableXpnResource#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest} + * @return the request + */ + public EnableXpnResource enableXpnResource(java.lang.String project, com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest content) throws java.io.IOException { + EnableXpnResource result = new EnableXpnResource(project, content); + initialize(result); + return result; + } + + public class EnableXpnResource extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/enableXpnResource"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Enable service resource (a.k.a service project) for a host project, so that subnets in the host + * project can be used by instances in the service project. + * + * Create a request for the method "projects.enableXpnResource". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link EnableXpnResource#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest} + * @since 1.13 + */ + protected EnableXpnResource(java.lang.String project, com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public EnableXpnResource set$Xgafv(java.lang.String $Xgafv) { + return (EnableXpnResource) super.set$Xgafv($Xgafv); + } + + @Override + public EnableXpnResource setAccessToken(java.lang.String accessToken) { + return (EnableXpnResource) super.setAccessToken(accessToken); + } + + @Override + public EnableXpnResource setAlt(java.lang.String alt) { + return (EnableXpnResource) super.setAlt(alt); + } + + @Override + public EnableXpnResource setCallback(java.lang.String callback) { + return (EnableXpnResource) super.setCallback(callback); + } + + @Override + public EnableXpnResource setFields(java.lang.String fields) { + return (EnableXpnResource) super.setFields(fields); + } + + @Override + public EnableXpnResource setKey(java.lang.String key) { + return (EnableXpnResource) super.setKey(key); + } + + @Override + public EnableXpnResource setOauthToken(java.lang.String oauthToken) { + return (EnableXpnResource) super.setOauthToken(oauthToken); + } + + @Override + public EnableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableXpnResource) super.setPrettyPrint(prettyPrint); + } + + @Override + public EnableXpnResource setQuotaUser(java.lang.String quotaUser) { + return (EnableXpnResource) super.setQuotaUser(quotaUser); + } + + @Override + public EnableXpnResource setUploadType(java.lang.String uploadType) { + return (EnableXpnResource) super.setUploadType(uploadType); + } + + @Override + public EnableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableXpnResource) super.setUploadProtocol(uploadProtocol); + } + + @Override + public EnableXpnResource setUserIp(java.lang.String userIp) { + return (EnableXpnResource) 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 EnableXpnResource 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; + } + + /** + * 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 EnableXpnResource setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public EnableXpnResource set(String parameterName, Object value) { + return (EnableXpnResource) super.set(parameterName, value); + } + } + /** + * Returns the specified Project resource. + * + * To decrease latency for this method, you can optionally omit any unneeded information from the + * response by using a field mask. This practice is especially recommended for unused quota + * information (the `quotas` field). To exclude one or more fields, set your request's `fields` + * query parameter to only include the fields you need. For example, to only include the `id` and + * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * + * Create a request for the method "projects.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. + * @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}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified Project resource. + * + * To decrease latency for this method, you can optionally omit any unneeded information from the + * response by using a field mask. This practice is especially recommended for unused quota + * information (the `quotas` field). To exclude one or more fields, set your request's `fields` + * query parameter to only include the fields you need. For example, to only include the `id` and + * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * + * Create a request for the method "projects.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. + * @since 1.13 + */ + protected Get(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Project.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the shared VPC host project that this project links to. May be empty if no link exists. + * + * Create a request for the method "projects.getXpnHost". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetXpnHost#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public GetXpnHost getXpnHost(java.lang.String project) throws java.io.IOException { + GetXpnHost result = new GetXpnHost(project); + initialize(result); + return result; + } + + public class GetXpnHost extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/getXpnHost"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Gets the shared VPC host project that this project links to. May be empty if no link exists. + * + * Create a request for the method "projects.getXpnHost". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetXpnHost#execute()} method to invoke the remote operation.

+ * {@link + * GetXpnHost#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. + * @since 1.13 + */ + protected GetXpnHost(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Project.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetXpnHost set$Xgafv(java.lang.String $Xgafv) { + return (GetXpnHost) super.set$Xgafv($Xgafv); + } + + @Override + public GetXpnHost setAccessToken(java.lang.String accessToken) { + return (GetXpnHost) super.setAccessToken(accessToken); + } + + @Override + public GetXpnHost setAlt(java.lang.String alt) { + return (GetXpnHost) super.setAlt(alt); + } + + @Override + public GetXpnHost setCallback(java.lang.String callback) { + return (GetXpnHost) super.setCallback(callback); + } + + @Override + public GetXpnHost setFields(java.lang.String fields) { + return (GetXpnHost) super.setFields(fields); + } + + @Override + public GetXpnHost setKey(java.lang.String key) { + return (GetXpnHost) super.setKey(key); + } + + @Override + public GetXpnHost setOauthToken(java.lang.String oauthToken) { + return (GetXpnHost) super.setOauthToken(oauthToken); + } + + @Override + public GetXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetXpnHost) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetXpnHost setQuotaUser(java.lang.String quotaUser) { + return (GetXpnHost) super.setQuotaUser(quotaUser); + } + + @Override + public GetXpnHost setUploadType(java.lang.String uploadType) { + return (GetXpnHost) super.setUploadType(uploadType); + } + + @Override + public GetXpnHost setUploadProtocol(java.lang.String uploadProtocol) { + return (GetXpnHost) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetXpnHost setUserIp(java.lang.String userIp) { + return (GetXpnHost) 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 GetXpnHost 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; + } + + @Override + public GetXpnHost set(String parameterName, Object value) { + return (GetXpnHost) super.set(parameterName, value); + } + } + /** + * Gets service resources (a.k.a service project) associated with this host project. + * + * Create a request for the method "projects.getXpnResources". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetXpnResources#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public GetXpnResources getXpnResources(java.lang.String project) throws java.io.IOException { + GetXpnResources result = new GetXpnResources(project); + initialize(result); + return result; + } + + public class GetXpnResources extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/getXpnResources"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Gets service resources (a.k.a service project) associated with this host project. + * + * Create a request for the method "projects.getXpnResources". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetXpnResources#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected GetXpnResources(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ProjectsGetXpnResources.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetXpnResources set$Xgafv(java.lang.String $Xgafv) { + return (GetXpnResources) super.set$Xgafv($Xgafv); + } + + @Override + public GetXpnResources setAccessToken(java.lang.String accessToken) { + return (GetXpnResources) super.setAccessToken(accessToken); + } + + @Override + public GetXpnResources setAlt(java.lang.String alt) { + return (GetXpnResources) super.setAlt(alt); + } + + @Override + public GetXpnResources setCallback(java.lang.String callback) { + return (GetXpnResources) super.setCallback(callback); + } + + @Override + public GetXpnResources setFields(java.lang.String fields) { + return (GetXpnResources) super.setFields(fields); + } + + @Override + public GetXpnResources setKey(java.lang.String key) { + return (GetXpnResources) super.setKey(key); + } + + @Override + public GetXpnResources setOauthToken(java.lang.String oauthToken) { + return (GetXpnResources) super.setOauthToken(oauthToken); + } + + @Override + public GetXpnResources setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetXpnResources) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetXpnResources setQuotaUser(java.lang.String quotaUser) { + return (GetXpnResources) super.setQuotaUser(quotaUser); + } + + @Override + public GetXpnResources setUploadType(java.lang.String uploadType) { + return (GetXpnResources) super.setUploadType(uploadType); + } + + @Override + public GetXpnResources setUploadProtocol(java.lang.String uploadProtocol) { + return (GetXpnResources) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetXpnResources setUserIp(java.lang.String userIp) { + return (GetXpnResources) 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 GetXpnResources 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; + } + + /** + * 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 GetXpnResources 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 GetXpnResources 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 GetXpnResources 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 GetXpnResources setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public GetXpnResources set(String parameterName, Object value) { + return (GetXpnResources) super.set(parameterName, value); + } + } + /** + * Lists all shared VPC host projects visible to the user in an organization. + * + * Create a request for the method "projects.listXpnHosts". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListXpnHosts#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsListXpnHostsRequest} + * @return the request + */ + public ListXpnHosts listXpnHosts(java.lang.String project, com.google.api.services.compute.model.ProjectsListXpnHostsRequest content) throws java.io.IOException { + ListXpnHosts result = new ListXpnHosts(project, content); + initialize(result); + return result; + } + + public class ListXpnHosts extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/listXpnHosts"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all shared VPC host projects visible to the user in an organization. + * + * Create a request for the method "projects.listXpnHosts". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListXpnHosts#execute()} method to invoke the remote operation.

+ * {@link + * ListXpnHosts#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 content the {@link com.google.api.services.compute.model.ProjectsListXpnHostsRequest} + * @since 1.13 + */ + protected ListXpnHosts(java.lang.String project, com.google.api.services.compute.model.ProjectsListXpnHostsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.XpnHostList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListXpnHosts set$Xgafv(java.lang.String $Xgafv) { + return (ListXpnHosts) super.set$Xgafv($Xgafv); + } + + @Override + public ListXpnHosts setAccessToken(java.lang.String accessToken) { + return (ListXpnHosts) super.setAccessToken(accessToken); + } + + @Override + public ListXpnHosts setAlt(java.lang.String alt) { + return (ListXpnHosts) super.setAlt(alt); + } + + @Override + public ListXpnHosts setCallback(java.lang.String callback) { + return (ListXpnHosts) super.setCallback(callback); + } + + @Override + public ListXpnHosts setFields(java.lang.String fields) { + return (ListXpnHosts) super.setFields(fields); + } + + @Override + public ListXpnHosts setKey(java.lang.String key) { + return (ListXpnHosts) super.setKey(key); + } + + @Override + public ListXpnHosts setOauthToken(java.lang.String oauthToken) { + return (ListXpnHosts) super.setOauthToken(oauthToken); + } + + @Override + public ListXpnHosts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListXpnHosts) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListXpnHosts setQuotaUser(java.lang.String quotaUser) { + return (ListXpnHosts) super.setQuotaUser(quotaUser); + } + + @Override + public ListXpnHosts setUploadType(java.lang.String uploadType) { + return (ListXpnHosts) super.setUploadType(uploadType); + } + + @Override + public ListXpnHosts setUploadProtocol(java.lang.String uploadProtocol) { + return (ListXpnHosts) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListXpnHosts setUserIp(java.lang.String userIp) { + return (ListXpnHosts) 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 ListXpnHosts 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; + } + + /** + * 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 ListXpnHosts 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 ListXpnHosts 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 ListXpnHosts 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 ListXpnHosts setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListXpnHosts set(String parameterName, Object value) { + return (ListXpnHosts) super.set(parameterName, value); + } + } + /** + * Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated on + * September 29, 2026. + * + * Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a + * different region or zone, follow the steps in [Change the location of a + * disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). + * + * Projects that already use the moveDisk API can continue usage until September 29, 2026. + * + * Starting November 1, 2025, API responses will include a warning message in the response body + * about the upcoming deprecation. You can skip the message to continue using the service without + * interruption. + * + * Create a request for the method "projects.moveDisk". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link MoveDisk#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.DiskMoveRequest} + * @return the request + */ + public MoveDisk moveDisk(java.lang.String project, com.google.api.services.compute.model.DiskMoveRequest content) throws java.io.IOException { + MoveDisk result = new MoveDisk(project, content); + initialize(result); + return result; + } + + public class MoveDisk extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/moveDisk"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated + * on September 29, 2026. + * + * Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to + * a different region or zone, follow the steps in [Change the location of a + * disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). + * + * Projects that already use the moveDisk API can continue usage until September 29, 2026. + * + * Starting November 1, 2025, API responses will include a warning message in the response body + * about the upcoming deprecation. You can skip the message to continue using the service without + * interruption. + * + * Create a request for the method "projects.moveDisk". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link MoveDisk#execute()} method to invoke the remote operation.

+ * {@link + * MoveDisk#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 content the {@link com.google.api.services.compute.model.DiskMoveRequest} + * @since 1.13 + */ + protected MoveDisk(java.lang.String project, com.google.api.services.compute.model.DiskMoveRequest 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public MoveDisk set$Xgafv(java.lang.String $Xgafv) { + return (MoveDisk) super.set$Xgafv($Xgafv); + } + + @Override + public MoveDisk setAccessToken(java.lang.String accessToken) { + return (MoveDisk) super.setAccessToken(accessToken); + } + + @Override + public MoveDisk setAlt(java.lang.String alt) { + return (MoveDisk) super.setAlt(alt); + } + + @Override + public MoveDisk setCallback(java.lang.String callback) { + return (MoveDisk) super.setCallback(callback); + } + + @Override + public MoveDisk setFields(java.lang.String fields) { + return (MoveDisk) super.setFields(fields); + } + + @Override + public MoveDisk setKey(java.lang.String key) { + return (MoveDisk) super.setKey(key); + } + + @Override + public MoveDisk setOauthToken(java.lang.String oauthToken) { + return (MoveDisk) super.setOauthToken(oauthToken); + } + + @Override + public MoveDisk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MoveDisk) super.setPrettyPrint(prettyPrint); + } + + @Override + public MoveDisk setQuotaUser(java.lang.String quotaUser) { + return (MoveDisk) super.setQuotaUser(quotaUser); + } + + @Override + public MoveDisk setUploadType(java.lang.String uploadType) { + return (MoveDisk) super.setUploadType(uploadType); + } + + @Override + public MoveDisk setUploadProtocol(java.lang.String uploadProtocol) { + return (MoveDisk) super.setUploadProtocol(uploadProtocol); + } + + @Override + public MoveDisk setUserIp(java.lang.String userIp) { + return (MoveDisk) 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 MoveDisk 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; + } + + /** + * 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 MoveDisk setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public MoveDisk set(String parameterName, Object value) { + return (MoveDisk) super.set(parameterName, value); + } + } + /** + * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs + * or disks by using this method might cause unexpected behavior. For more information, see the + * [known issue](/compute/docs/troubleshooting/known- + * issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). + * [Deprecated] This method is deprecated. See [moving instance across + * zones](/compute/docs/instances/moving-instance-across-zones) instead. + * + * Create a request for the method "projects.moveInstance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link MoveInstance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InstanceMoveRequest} + * @return the request + */ + public MoveInstance moveInstance(java.lang.String project, com.google.api.services.compute.model.InstanceMoveRequest content) throws java.io.IOException { + MoveInstance result = new MoveInstance(project, content); + initialize(result); + return result; + } + + public class MoveInstance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/moveInstance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving + * VMs or disks by using this method might cause unexpected behavior. For more information, see + * the [known issue](/compute/docs/troubleshooting/known- + * issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). + * [Deprecated] This method is deprecated. See [moving instance across + * zones](/compute/docs/instances/moving-instance-across-zones) instead. + * + * Create a request for the method "projects.moveInstance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link MoveInstance#execute()} method to invoke the remote operation.

+ * {@link + * MoveInstance#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 content the {@link com.google.api.services.compute.model.InstanceMoveRequest} + * @since 1.13 + */ + protected MoveInstance(java.lang.String project, com.google.api.services.compute.model.InstanceMoveRequest 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public MoveInstance set$Xgafv(java.lang.String $Xgafv) { + return (MoveInstance) super.set$Xgafv($Xgafv); + } + + @Override + public MoveInstance setAccessToken(java.lang.String accessToken) { + return (MoveInstance) super.setAccessToken(accessToken); + } + + @Override + public MoveInstance setAlt(java.lang.String alt) { + return (MoveInstance) super.setAlt(alt); + } + + @Override + public MoveInstance setCallback(java.lang.String callback) { + return (MoveInstance) super.setCallback(callback); + } + + @Override + public MoveInstance setFields(java.lang.String fields) { + return (MoveInstance) super.setFields(fields); + } + + @Override + public MoveInstance setKey(java.lang.String key) { + return (MoveInstance) super.setKey(key); + } + + @Override + public MoveInstance setOauthToken(java.lang.String oauthToken) { + return (MoveInstance) super.setOauthToken(oauthToken); + } + + @Override + public MoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MoveInstance) super.setPrettyPrint(prettyPrint); + } + + @Override + public MoveInstance setQuotaUser(java.lang.String quotaUser) { + return (MoveInstance) super.setQuotaUser(quotaUser); + } + + @Override + public MoveInstance setUploadType(java.lang.String uploadType) { + return (MoveInstance) super.setUploadType(uploadType); + } + + @Override + public MoveInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (MoveInstance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public MoveInstance setUserIp(java.lang.String userIp) { + return (MoveInstance) 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 MoveInstance 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; + } + + /** + * 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 MoveInstance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public MoveInstance set(String parameterName, Object value) { + return (MoveInstance) super.set(parameterName, value); + } + } + /** + * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the + * project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise + * for more information. + * + * Create a request for the method "projects.setCloudArmorTier". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetCloudArmorTier#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest} + * @return the request + */ + public SetCloudArmorTier setCloudArmorTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest content) throws java.io.IOException { + SetCloudArmorTier result = new SetCloudArmorTier(project, content); + initialize(result); + return result; + } + + public class SetCloudArmorTier extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setCloudArmorTier"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the + * project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise + * for more information. + * + * Create a request for the method "projects.setCloudArmorTier". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetCloudArmorTier#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest} + * @since 1.13 + */ + protected SetCloudArmorTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetCloudArmorTier set$Xgafv(java.lang.String $Xgafv) { + return (SetCloudArmorTier) super.set$Xgafv($Xgafv); + } + + @Override + public SetCloudArmorTier setAccessToken(java.lang.String accessToken) { + return (SetCloudArmorTier) super.setAccessToken(accessToken); + } + + @Override + public SetCloudArmorTier setAlt(java.lang.String alt) { + return (SetCloudArmorTier) super.setAlt(alt); + } + + @Override + public SetCloudArmorTier setCallback(java.lang.String callback) { + return (SetCloudArmorTier) super.setCallback(callback); + } + + @Override + public SetCloudArmorTier setFields(java.lang.String fields) { + return (SetCloudArmorTier) super.setFields(fields); + } + + @Override + public SetCloudArmorTier setKey(java.lang.String key) { + return (SetCloudArmorTier) super.setKey(key); + } + + @Override + public SetCloudArmorTier setOauthToken(java.lang.String oauthToken) { + return (SetCloudArmorTier) super.setOauthToken(oauthToken); + } + + @Override + public SetCloudArmorTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCloudArmorTier) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetCloudArmorTier setQuotaUser(java.lang.String quotaUser) { + return (SetCloudArmorTier) super.setQuotaUser(quotaUser); + } + + @Override + public SetCloudArmorTier setUploadType(java.lang.String uploadType) { + return (SetCloudArmorTier) super.setUploadType(uploadType); + } + + @Override + public SetCloudArmorTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCloudArmorTier) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetCloudArmorTier setUserIp(java.lang.String userIp) { + return (SetCloudArmorTier) 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 SetCloudArmorTier 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; + } + + /** + * 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 SetCloudArmorTier setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetCloudArmorTier set(String parameterName, Object value) { + return (SetCloudArmorTier) super.set(parameterName, value); + } + } + /** + * Sets metadata common to all instances within the specified project using the data included in the + * request. + * + * Create a request for the method "projects.setCommonInstanceMetadata". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetCommonInstanceMetadata#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} + * @return the request + */ + public SetCommonInstanceMetadata setCommonInstanceMetadata(java.lang.String project, com.google.api.services.compute.model.Metadata content) throws java.io.IOException { + SetCommonInstanceMetadata result = new SetCommonInstanceMetadata(project, content); + initialize(result); + return result; + } + + public class SetCommonInstanceMetadata extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setCommonInstanceMetadata"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets metadata common to all instances within the specified project using the data included in + * the request. + * + * Create a request for the method "projects.setCommonInstanceMetadata". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetCommonInstanceMetadata#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} + * @since 1.13 + */ + protected SetCommonInstanceMetadata(java.lang.String project, com.google.api.services.compute.model.Metadata 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetCommonInstanceMetadata set$Xgafv(java.lang.String $Xgafv) { + return (SetCommonInstanceMetadata) super.set$Xgafv($Xgafv); + } + + @Override + public SetCommonInstanceMetadata setAccessToken(java.lang.String accessToken) { + return (SetCommonInstanceMetadata) super.setAccessToken(accessToken); + } + + @Override + public SetCommonInstanceMetadata setAlt(java.lang.String alt) { + return (SetCommonInstanceMetadata) super.setAlt(alt); + } + + @Override + public SetCommonInstanceMetadata setCallback(java.lang.String callback) { + return (SetCommonInstanceMetadata) super.setCallback(callback); + } + + @Override + public SetCommonInstanceMetadata setFields(java.lang.String fields) { + return (SetCommonInstanceMetadata) super.setFields(fields); + } + + @Override + public SetCommonInstanceMetadata setKey(java.lang.String key) { + return (SetCommonInstanceMetadata) super.setKey(key); + } + + @Override + public SetCommonInstanceMetadata setOauthToken(java.lang.String oauthToken) { + return (SetCommonInstanceMetadata) super.setOauthToken(oauthToken); + } + + @Override + public SetCommonInstanceMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCommonInstanceMetadata) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetCommonInstanceMetadata setQuotaUser(java.lang.String quotaUser) { + return (SetCommonInstanceMetadata) super.setQuotaUser(quotaUser); + } + + @Override + public SetCommonInstanceMetadata setUploadType(java.lang.String uploadType) { + return (SetCommonInstanceMetadata) super.setUploadType(uploadType); + } + + @Override + public SetCommonInstanceMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCommonInstanceMetadata) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetCommonInstanceMetadata setUserIp(java.lang.String userIp) { + return (SetCommonInstanceMetadata) 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 SetCommonInstanceMetadata 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; + } + + /** + * 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 SetCommonInstanceMetadata setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetCommonInstanceMetadata set(String parameterName, Object value) { + return (SetCommonInstanceMetadata) super.set(parameterName, value); + } + } + /** + * Sets the default network tier of the project. The default network tier is used when an + * address/forwardingRule/instance is created without specifying the network tier field. + * + * Create a request for the method "projects.setDefaultNetworkTier". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} + * @return the request + */ + public SetDefaultNetworkTier setDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest content) throws java.io.IOException { + SetDefaultNetworkTier result = new SetDefaultNetworkTier(project, content); + initialize(result); + return result; + } + + public class SetDefaultNetworkTier extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setDefaultNetworkTier"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the default network tier of the project. The default network tier is used when an + * address/forwardingRule/instance is created without specifying the network tier field. + * + * Create a request for the method "projects.setDefaultNetworkTier". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} + * @since 1.13 + */ + protected SetDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { + return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); + } + + @Override + public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { + return (SetDefaultNetworkTier) super.setAccessToken(accessToken); + } + + @Override + public SetDefaultNetworkTier setAlt(java.lang.String alt) { + return (SetDefaultNetworkTier) super.setAlt(alt); + } + + @Override + public SetDefaultNetworkTier setCallback(java.lang.String callback) { + return (SetDefaultNetworkTier) super.setCallback(callback); + } + + @Override + public SetDefaultNetworkTier setFields(java.lang.String fields) { + return (SetDefaultNetworkTier) super.setFields(fields); + } + + @Override + public SetDefaultNetworkTier setKey(java.lang.String key) { + return (SetDefaultNetworkTier) super.setKey(key); + } + + @Override + public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { + return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); + } + + @Override + public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { + return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); + } + + @Override + public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { + return (SetDefaultNetworkTier) super.setUploadType(uploadType); + } + + @Override + public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { + return (SetDefaultNetworkTier) 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 SetDefaultNetworkTier 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; + } + + /** + * 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 SetDefaultNetworkTier setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetDefaultNetworkTier set(String parameterName, Object value) { + return (SetDefaultNetworkTier) super.set(parameterName, value); + } + } + /** + * Enables the usage export feature and sets theusage export bucket where reports are stored. If you + * provide an empty request body using this method, the usage export feature will be disabled. + * + * Create a request for the method "projects.setUsageExportBucket". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @return the request + */ + public SetUsageExportBucket setUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation content) throws java.io.IOException { + SetUsageExportBucket result = new SetUsageExportBucket(project, content); + initialize(result); + return result; + } + + public class SetUsageExportBucket extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setUsageExportBucket"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Enables the usage export feature and sets theusage export bucket where reports are stored. If + * you provide an empty request body using this method, the usage export feature will be disabled. + * + * Create a request for the method "projects.setUsageExportBucket". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote + * operation.

{@link SetUsageExportBucket#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 content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @since 1.13 + */ + protected SetUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { + return (SetUsageExportBucket) super.set$Xgafv($Xgafv); + } + + @Override + public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { + return (SetUsageExportBucket) super.setAccessToken(accessToken); + } + + @Override + public SetUsageExportBucket setAlt(java.lang.String alt) { + return (SetUsageExportBucket) super.setAlt(alt); + } + + @Override + public SetUsageExportBucket setCallback(java.lang.String callback) { + return (SetUsageExportBucket) super.setCallback(callback); + } + + @Override + public SetUsageExportBucket setFields(java.lang.String fields) { + return (SetUsageExportBucket) super.setFields(fields); + } + + @Override + public SetUsageExportBucket setKey(java.lang.String key) { + return (SetUsageExportBucket) super.setKey(key); + } + + @Override + public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { + return (SetUsageExportBucket) super.setOauthToken(oauthToken); + } + + @Override + public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { + return (SetUsageExportBucket) super.setQuotaUser(quotaUser); + } + + @Override + public SetUsageExportBucket setUploadType(java.lang.String uploadType) { + return (SetUsageExportBucket) super.setUploadType(uploadType); + } + + @Override + public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetUsageExportBucket setUserIp(java.lang.String userIp) { + return (SetUsageExportBucket) 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 SetUsageExportBucket 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; + } + + /** + * 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 SetUsageExportBucket setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetUsageExportBucket set(String parameterName, Object value) { + return (SetUsageExportBucket) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the PublicAdvertisedPrefixes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PublicAdvertisedPrefixes.List request = compute.publicAdvertisedPrefixes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PublicAdvertisedPrefixes publicAdvertisedPrefixes() { + return new PublicAdvertisedPrefixes(); + } + + /** + * The "publicAdvertisedPrefixes" collection of methods. + */ + public class PublicAdvertisedPrefixes { + + /** + * Announces the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.announce". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Announce#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @return the request + */ + public Announce announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Announce result = new Announce(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Announce extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Announces the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.announce". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

+ * {@link + * Announce#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 publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @since 1.13 + */ + protected Announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + super(Compute.this, "POST", REST_PATH, null, 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Announce set$Xgafv(java.lang.String $Xgafv) { + return (Announce) super.set$Xgafv($Xgafv); + } + + @Override + public Announce setAccessToken(java.lang.String accessToken) { + return (Announce) super.setAccessToken(accessToken); + } + + @Override + public Announce setAlt(java.lang.String alt) { + return (Announce) super.setAlt(alt); + } + + @Override + public Announce setCallback(java.lang.String callback) { + return (Announce) super.setCallback(callback); + } + + @Override + public Announce setFields(java.lang.String fields) { + return (Announce) super.setFields(fields); + } + + @Override + public Announce setKey(java.lang.String key) { + return (Announce) super.setKey(key); + } + + @Override + public Announce setOauthToken(java.lang.String oauthToken) { + return (Announce) super.setOauthToken(oauthToken); + } + + @Override + public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Announce) super.setPrettyPrint(prettyPrint); + } + + @Override + public Announce setQuotaUser(java.lang.String quotaUser) { + return (Announce) super.setQuotaUser(quotaUser); + } + + @Override + public Announce setUploadType(java.lang.String uploadType) { + return (Announce) super.setUploadType(uploadType); + } + + @Override + public Announce setUploadProtocol(java.lang.String uploadProtocol) { + return (Announce) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Announce setUserIp(java.lang.String userIp) { + return (Announce) 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 Announce 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 public advertised prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** The name of the public advertised prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** The name of the public advertised prefix. It should comply with RFC1035. */ + public Announce setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 Announce setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Announce set(String parameterName, Object value) { + return (Announce) super.set(parameterName, value); + } + } + /** + * Deletes the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Delete result = new Delete(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_ADVERTISED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + super(Compute.this, "DELETE", REST_PATH, null, 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 PublicAdvertisedPrefix resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** Name of the PublicAdvertisedPrefix resource to delete. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** Name of the PublicAdvertisedPrefix resource to delete. */ + public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified PublicAdvertisedPrefix resource. + * + * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Get result = new Get(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_ADVERTISED_PREFIX_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 PublicAdvertisedPrefix resource. + * + * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefix.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 PublicAdvertisedPrefix resource to return. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** Name of the PublicAdvertisedPrefix resource to return. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** Name of the PublicAdvertisedPrefix resource to return. */ + public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included + * in the request. + * + * Create a request for the method "publicAdvertisedPrefixes.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.PublicAdvertisedPrefix content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are + * included in the request. + * + * Create a request for the method "publicAdvertisedPrefixes.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.PublicAdvertisedPrefix 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the PublicAdvertisedPrefixes for a project. + * + * Create a request for the method "publicAdvertisedPrefixes.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the PublicAdvertisedPrefixes for a project. + * + * Create a request for the method "publicAdvertisedPrefixes.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefixList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified Router resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "publicAdvertisedPrefixes.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 Project ID for this request. + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.model.PublicAdvertisedPrefix content) throws java.io.IOException { + Patch result = new Patch(project, publicAdvertisedPrefix, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_ADVERTISED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified Router resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "publicAdvertisedPrefixes.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 Project ID for this request. + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.model.PublicAdvertisedPrefix content) { + super(Compute.this, "PATCH", 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 PublicAdvertisedPrefix resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** Name of the PublicAdvertisedPrefix resource to patch. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** Name of the PublicAdvertisedPrefix resource to patch. */ + public Patch setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), + "Parameter publicAdvertisedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Withdraws the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.withdraw". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @return the request + */ + public Withdraw withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { + Withdraw result = new Withdraw(project, publicAdvertisedPrefix); + initialize(result); + return result; + } + + public class Withdraw extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Withdraws the specified PublicAdvertisedPrefix + * + * Create a request for the method "publicAdvertisedPrefixes.withdraw". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.

+ * {@link + * Withdraw#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 publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @since 1.13 + */ + protected Withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + super(Compute.this, "POST", REST_PATH, null, 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Withdraw set$Xgafv(java.lang.String $Xgafv) { + return (Withdraw) super.set$Xgafv($Xgafv); + } + + @Override + public Withdraw setAccessToken(java.lang.String accessToken) { + return (Withdraw) super.setAccessToken(accessToken); + } + + @Override + public Withdraw setAlt(java.lang.String alt) { + return (Withdraw) super.setAlt(alt); + } + + @Override + public Withdraw setCallback(java.lang.String callback) { + return (Withdraw) super.setCallback(callback); + } + + @Override + public Withdraw setFields(java.lang.String fields) { + return (Withdraw) super.setFields(fields); + } + + @Override + public Withdraw setKey(java.lang.String key) { + return (Withdraw) super.setKey(key); + } + + @Override + public Withdraw setOauthToken(java.lang.String oauthToken) { + return (Withdraw) super.setOauthToken(oauthToken); + } + + @Override + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); + } + + @Override + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); + } + + @Override + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); + } + + @Override + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) 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 Withdraw 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 public advertised prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicAdvertisedPrefix; + + /** The name of the public advertised prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; + } + + /** The name of the public advertised prefix. It should comply with RFC1035. */ + public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 Withdraw setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Withdraw set(String parameterName, Object value) { + return (Withdraw) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the PublicDelegatedPrefixes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.PublicDelegatedPrefixes.List request = compute.publicDelegatedPrefixes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PublicDelegatedPrefixes publicDelegatedPrefixes() { + return new PublicDelegatedPrefixes(); + } + + /** + * The "publicDelegatedPrefixes" collection of methods. + */ + public class PublicDelegatedPrefixes { + + /** + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "publicDelegatedPrefixes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "publicDelegatedPrefixes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefixAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Announces the specified PublicDelegatedPrefix in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.announce". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Announce#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. + * @return the request + */ + public Announce announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Announce result = new Announce(project, region, publicDelegatedPrefix); + initialize(result); + return result; + } + + public class Announce extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Announces the specified PublicDelegatedPrefix in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.announce". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. + * @since 1.13 + */ + protected Announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "POST", REST_PATH, null, 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."); + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Announce set$Xgafv(java.lang.String $Xgafv) { + return (Announce) super.set$Xgafv($Xgafv); + } + + @Override + public Announce setAccessToken(java.lang.String accessToken) { + return (Announce) super.setAccessToken(accessToken); + } + + @Override + public Announce setAlt(java.lang.String alt) { + return (Announce) super.setAlt(alt); + } + + @Override + public Announce setCallback(java.lang.String callback) { + return (Announce) super.setCallback(callback); + } + + @Override + public Announce setFields(java.lang.String fields) { + return (Announce) super.setFields(fields); + } + + @Override + public Announce setKey(java.lang.String key) { + return (Announce) super.setKey(key); + } + + @Override + public Announce setOauthToken(java.lang.String oauthToken) { + return (Announce) super.setOauthToken(oauthToken); + } + + @Override + public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Announce) super.setPrettyPrint(prettyPrint); + } + + @Override + public Announce setQuotaUser(java.lang.String quotaUser) { + return (Announce) super.setQuotaUser(quotaUser); + } + + @Override + public Announce setUploadType(java.lang.String uploadType) { + return (Announce) super.setUploadType(uploadType); + } + + @Override + public Announce setUploadProtocol(java.lang.String uploadProtocol) { + return (Announce) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Announce setUserIp(java.lang.String userIp) { + return (Announce) 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 Announce 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 theregion where the public delegated prefix is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. + */ + public Announce setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the public delegated prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** The name of the public delegated prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** The name of the public delegated prefix. It should comply with RFC1035. */ + public Announce setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + this.publicDelegatedPrefix = publicDelegatedPrefix; + 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 Announce setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Announce set(String parameterName, Object value) { + return (Announce) super.set(parameterName, value); + } + } + /** + * Deletes the specified PublicDelegatedPrefix in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Delete result = new Delete(project, region, publicDelegatedPrefix); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified PublicDelegatedPrefix in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "DELETE", REST_PATH, null, 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Delete 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 PublicDelegatedPrefix resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to delete. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to delete. */ + public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified PublicDelegatedPrefix resource in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Get result = new Get(project, region, publicDelegatedPrefix); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_DELEGATED_PREFIX_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 PublicDelegatedPrefix resource in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 PublicDelegatedPrefix resource to return. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to return. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to return. */ + public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters + * that are included in the request. + * + * Create a request for the method "publicDelegatedPrefixes.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a PublicDelegatedPrefix in the specified project in the given region using the + * parameters that are included in the request. + * + * Create a request for the method "publicDelegatedPrefixes.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.PublicDelegatedPrefix 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the PublicDelegatedPrefixes for a project in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of 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}/publicDelegatedPrefixes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the PublicDelegatedPrefixes for a project in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of 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.PublicDelegatedPrefixList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified PublicDelegatedPrefix resource with the data included in the request. This + * method supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "publicDelegatedPrefixes.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 Project ID for this request. + * @param region Name of the region for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Patch result = new Patch(project, region, publicDelegatedPrefix, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified PublicDelegatedPrefix resource with the data included in the request. + * This method supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "publicDelegatedPrefixes.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 Project ID for this request. + * @param region Name of the region for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) { + super(Compute.this, "PATCH", 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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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 PublicDelegatedPrefix resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to patch. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to patch. */ + public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Withdraws the specified PublicDelegatedPrefix in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.withdraw". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. + * @return the request + */ + public Withdraw withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Withdraw result = new Withdraw(project, region, publicDelegatedPrefix); + initialize(result); + return result; + } + + public class Withdraw extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Withdraws the specified PublicDelegatedPrefix in the given region. + * + * Create a request for the method "publicDelegatedPrefixes.withdraw". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of theregion where + the public delegated prefix is located. It should comply with RFC1035. + * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. + * @since 1.13 + */ + protected Withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "POST", REST_PATH, null, 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."); + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Withdraw set$Xgafv(java.lang.String $Xgafv) { + return (Withdraw) super.set$Xgafv($Xgafv); + } + + @Override + public Withdraw setAccessToken(java.lang.String accessToken) { + return (Withdraw) super.setAccessToken(accessToken); + } + + @Override + public Withdraw setAlt(java.lang.String alt) { + return (Withdraw) super.setAlt(alt); + } + + @Override + public Withdraw setCallback(java.lang.String callback) { + return (Withdraw) super.setCallback(callback); + } + + @Override + public Withdraw setFields(java.lang.String fields) { + return (Withdraw) super.setFields(fields); + } + + @Override + public Withdraw setKey(java.lang.String key) { + return (Withdraw) super.setKey(key); + } + + @Override + public Withdraw setOauthToken(java.lang.String oauthToken) { + return (Withdraw) super.setOauthToken(oauthToken); + } + + @Override + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); + } + + @Override + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); + } + + @Override + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); + } + + @Override + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) 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 Withdraw 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 theregion where the public delegated prefix is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. + */ + public Withdraw setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the public delegated prefix. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** The name of the public delegated prefix. It should comply with RFC1035. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** The name of the public delegated prefix. It should comply with RFC1035. */ + public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + this.publicDelegatedPrefix = publicDelegatedPrefix; + 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 Withdraw setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Withdraw set(String parameterName, Object value) { + return (Withdraw) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionAutoscalers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionAutoscalers.List request = compute.regionAutoscalers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionAutoscalers regionAutoscalers() { + return new RegionAutoscalers(); + } + + /** + * The "regionAutoscalers" collection of methods. + */ + public class RegionAutoscalers { + + /** + * Deletes the specified autoscaler. + * + * Create a request for the method "regionAutoscalers.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param autoscaler Name of the autoscaler to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String autoscaler) throws java.io.IOException { + Delete result = new Delete(project, region, autoscaler); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 AUTOSCALER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified autoscaler. + * + * Create a request for the method "regionAutoscalers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param autoscaler Name of the autoscaler to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String autoscaler) { + super(Compute.this, "DELETE", REST_PATH, null, 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.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 autoscaler to delete. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to delete. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to delete. */ + public Delete setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified autoscaler. + * + * Create a request for the method "regionAutoscalers.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 region Name of the region scoping this request. + * @param autoscaler Name of the autoscaler to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String autoscaler) throws java.io.IOException { + Get result = new Get(project, region, autoscaler); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 AUTOSCALER_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 autoscaler. + * + * Create a request for the method "regionAutoscalers.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 region Name of the region scoping this request. + * @param autoscaler Name of the autoscaler to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String autoscaler) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Autoscaler.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.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 autoscaler to return. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to return. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to return. */ + public Get setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an autoscaler in the specified project using the data included in the request. + * + * Create a request for the method "regionAutoscalers.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates an autoscaler in the specified project using the data included in the request. + * + * Create a request for the method "regionAutoscalers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of autoscalers contained within the specified region. + * + * Create a request for the method "regionAutoscalers.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 region Name of the region scoping 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}/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of autoscalers contained within the specified region. + * + * Create a request for the method "regionAutoscalers.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 region Name of the region scoping 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.RegionAutoscalerList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an autoscaler in the specified project using the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionAutoscalers.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { + Patch result = new Patch(project, region, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 AUTOSCALER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates an autoscaler in the specified project using the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionAutoscalers.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) { + super(Compute.this, "PATCH", 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 autoscaler to patch. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to patch. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to patch. */ + public Patch setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionAutoscalers.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionAutoscalers.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Autoscaler content) { + super(Compute.this, "PUT", 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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 autoscaler to update. */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** Name of the autoscaler to update. + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** Name of the autoscaler to update. */ + public Update setAutoscaler(java.lang.String autoscaler) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), + "Parameter autoscaler must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.autoscaler = autoscaler; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionBackendBuckets collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionBackendBuckets.List request = compute.regionBackendBuckets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionBackendBuckets regionBackendBuckets() { + return new RegionBackendBuckets(); + } + + /** + * The "regionBackendBuckets" collection of methods. + */ + public class RegionBackendBuckets { + + /** + * Deletes the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendBucket) throws java.io.IOException { + Delete result = new Delete(project, region, backendBucket); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendBucket) { + super(Compute.this, "DELETE", REST_PATH, null, 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 BackendBucket resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to delete. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to delete. */ + public Delete setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.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 region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String backendBucket) throws java.io.IOException { + Get result = new Get(project, region, backendBucket); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_BUCKET_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 regional BackendBucket resource. + * + * Create a request for the method "regionBackendBuckets.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 region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String backendBucket) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucket.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 BackendBucket resource to return. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to return. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to return. */ + public Get setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionBackendBuckets.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionBackendBuckets.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BackendBucket 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. + * + * Create a request for the method "regionBackendBuckets.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 region Name of the region of 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}/backendBuckets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. + * + * Create a request for the method "regionBackendBuckets.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 region Name of the region of 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.BackendBucketList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of all usable backend buckets in the specified project in the given region. + * + * Create a request for the method "regionBackendBuckets.listUsable". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. + * @return the request + */ + public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { + ListUsable result = new ListUsable(project, region); + initialize(result); + return result; + } + + public class ListUsable extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/listUsable"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of all usable backend buckets in the specified project in the given region. + * + * Create a request for the method "regionBackendBuckets.listUsable". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. + * @since 1.13 + */ + protected ListUsable(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendBucketListUsable.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); + } + + @Override + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); + } + + @Override + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); + } + + @Override + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); + } + + @Override + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); + } + + @Override + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); + } + + @Override + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); + } + + @Override + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); + } + + @Override + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); + } + + @Override + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) 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 ListUsable 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. It must be a string that meets the requirements in + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. It must be a string that meets the requirements in + RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. + */ + public ListUsable 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); + } + } + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionBackendBuckets.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) throws java.io.IOException { + Patch result = new Patch(project, region, backendBucket, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_BUCKET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified BackendBucket resource with the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionBackendBuckets.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String backendBucket, com.google.api.services.compute.model.BackendBucket content) { + super(Compute.this, "PATCH", 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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 BackendBucket resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String backendBucket; + + /** Name of the BackendBucket resource to patch. + */ + public java.lang.String getBackendBucket() { + return backendBucket; + } + + /** Name of the BackendBucket resource to patch. */ + public Patch setBackendBucket(java.lang.String backendBucket) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), + "Parameter backendBucket must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendBucket = backendBucket; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionBackendBuckets.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionBackendBuckets.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionBackendServices collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionBackendServices.List request = compute.regionBackendServices().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionBackendServices regionBackendServices() { + return new RegionBackendServices(); + } + + /** + * The "regionBackendServices" collection of methods. + */ + public class RegionBackendServices { + + /** + * Deletes the specified regional BackendService resource. + * + * Create a request for the method "regionBackendServices.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendService) throws java.io.IOException { + Delete result = new Delete(project, region, backendService); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified regional BackendService resource. + * + * Create a request for the method "regionBackendServices.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendService) { + super(Compute.this, "DELETE", REST_PATH, null, 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 BackendService resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to delete. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to delete. */ + public Delete setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified regional BackendService resource. + * + * Create a request for the method "regionBackendServices.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 region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String backendService) throws java.io.IOException { + Get result = new Get(project, region, backendService); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_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 regional BackendService resource. + * + * Create a request for the method "regionBackendServices.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 region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String backendService) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendService.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 BackendService resource to return. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to return. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to return. */ + public Get setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the most recent health check results for this regional BackendService. + * + * Create a request for the method "regionBackendServices.getHealth". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. + * + * @param project + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource for which to get health. + * @param content the {@link com.google.api.services.compute.model.ResourceGroupReference} + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.model.ResourceGroupReference content) throws java.io.IOException { + GetHealth result = new GetHealth(project, region, backendService, content); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/getHealth"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the most recent health check results for this regional BackendService. + * + * Create a request for the method "regionBackendServices.getHealth". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BackendService 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of regional BackendService resources available to the specified project in the + * given region. + * + * Create a request for the method "regionBackendServices.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 region Name of the region scoping 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}/backendServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of regional BackendService resources available to the specified project in + * the given region. + * + * Create a request for the method "regionBackendServices.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 region Name of the region scoping 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.BackendServiceList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of all usable backend services for Application Load Balancers and Proxy Network + * Load Balancers in the specified project in the given region. Backend services for external and + * internal passthrough Network Load Balancers are not included in the response. + * + * Create a request for the method "regionBackendServices.listUsable". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. + * @return the request + */ + public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { + ListUsable result = new ListUsable(project, region); + initialize(result); + return result; + } + + public class ListUsable extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/listUsable"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of all usable backend services for Application Load Balancers and Proxy + * Network Load Balancers in the specified project in the given region. Backend services for + * external and internal passthrough Network Load Balancers are not included in the response. + * + * Create a request for the method "regionBackendServices.listUsable". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. + * @since 1.13 + */ + protected ListUsable(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.BackendServiceListUsable.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); + } + + @Override + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); + } + + @Override + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); + } + + @Override + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); + } + + @Override + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); + } + + @Override + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); + } + + @Override + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); + } + + @Override + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); + } + + @Override + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); + } + + @Override + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) 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 ListUsable 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. It must be a string that meets the requirements in + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. It must be a string that meets the requirements in + RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. + */ + public ListUsable setRegion(java.lang.String region) { + 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); + } + } + /** + * Updates the specified regional BackendService resource with the data included in the request. For + * more information, see Understanding backend services This method supports PATCH semantics and + * uses the JSON merge patch format and processing rules. + * + * Create a request for the method "regionBackendServices.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.model.BackendService content) throws java.io.IOException { + Patch result = new Patch(project, region, backendService, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 BACKEND_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified regional BackendService resource with the data included in the request. + * For more information, see Understanding backend services This method supports PATCH semantics + * and uses the JSON merge patch format and processing rules. + * + * Create a request for the method "regionBackendServices.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to patch. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.model.BackendService content) { + super(Compute.this, "PATCH", 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 BackendService resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to patch. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to patch. */ + public Patch setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionBackendServices.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionBackendServices.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to update. + * @param content the {@link com.google.api.services.compute.model.BackendService} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.model.BackendService content) { + super(Compute.this, "PUT", 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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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 BackendService resource to update. */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** Name of the BackendService resource to update. + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** Name of the BackendService resource to update. */ + public Update setBackendService(java.lang.String backendService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), + "Parameter backendService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.backendService = backendService; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionCommitments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionCommitments.List request = compute.regionCommitments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionCommitments regionCommitments() { + return new RegionCommitments(); + } + + /** + * The "regionCommitments" collection of methods. + */ + public class RegionCommitments { + + /** + * Retrieves an aggregated list of commitments by region. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionCommitments.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/commitments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of commitments by region. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionCommitments.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CommitmentAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified commitment resource. + * + * Create a request for the method "regionCommitments.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 region Name of the region for this request. + * @param commitment Name of the commitment to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String commitment) throws java.io.IOException { + Get result = new Get(project, region, commitment); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 COMMITMENT_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 commitment resource. + * + * Create a request for the method "regionCommitments.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 region Name of the region for this request. + * @param commitment Name of the commitment to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String commitment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Commitment.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.commitment = com.google.api.client.util.Preconditions.checkNotNull(commitment, "Required parameter commitment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), + "Parameter commitment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 commitment to return. */ + @com.google.api.client.util.Key + private java.lang.String commitment; + + /** Name of the commitment to return. + */ + public java.lang.String getCommitment() { + return commitment; + } + + /** Name of the commitment to return. */ + public Get setCommitment(java.lang.String commitment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), + "Parameter commitment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.commitment = commitment; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a commitment in the specified project using the data included in the request. + * + * Create a request for the method "regionCommitments.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Commitment} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Commitment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a commitment in the specified project using the data included in the request. + * + * Create a request for the method "regionCommitments.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Commitment} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Commitment 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of commitments contained within the specified region. + * + * Create a request for the method "regionCommitments.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 region 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}/commitments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of commitments contained within the specified region. + * + * Create a request for the method "regionCommitments.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 region 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.CommitmentList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified commitment with the data included in the request. Update is performed only + * on selected fields included as part of update-mask. Only the following fields can be updated: + * auto_renew and plan. + * + * Create a request for the method "regionCommitments.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param commitment Name of the commitment that you want to update. + * @param content the {@link com.google.api.services.compute.model.Commitment} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.Commitment content) throws java.io.IOException { + Update result = new Update(project, region, commitment, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 COMMITMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified commitment with the data included in the request. Update is performed + * only on selected fields included as part of update-mask. Only the following fields can be + * updated: auto_renew and plan. + * + * Create a request for the method "regionCommitments.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param commitment Name of the commitment that you want to update. + * @param content the {@link com.google.api.services.compute.model.Commitment} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.Commitment content) { + super(Compute.this, "PATCH", 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.commitment = com.google.api.client.util.Preconditions.checkNotNull(commitment, "Required parameter commitment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), + "Parameter commitment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Update 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 commitment that you want to update. */ + @com.google.api.client.util.Key + private java.lang.String commitment; + + /** Name of the commitment that you want to update. + */ + public java.lang.String getCommitment() { + return commitment; + } + + /** Name of the commitment that you want to update. */ + public Update setCommitment(java.lang.String commitment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), + "Parameter commitment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.commitment = commitment; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Update setPaths(java.util.List paths) { + this.paths = paths; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionCompositeHealthChecks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionCompositeHealthChecks.List request = compute.regionCompositeHealthChecks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionCompositeHealthChecks regionCompositeHealthChecks() { + return new RegionCompositeHealthChecks(); + } + + /** + * The "regionCompositeHealthChecks" collection of methods. + */ + public class RegionCompositeHealthChecks { + + /** + * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionCompositeHealthChecks.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/compositeHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionCompositeHealthChecks.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CompositeHealthCheckAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified CompositeHealthCheck in the given region + * + * Create a request for the method "regionCompositeHealthChecks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { + Delete result = new Delete(project, region, compositeHealthCheck); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 COMPOSITE_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified CompositeHealthCheck in the given region + * + * Create a request for the method "regionCompositeHealthChecks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, 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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 CompositeHealthCheck resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String compositeHealthCheck; + + /** Name of the CompositeHealthCheck resource to delete. + */ + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; + } + + /** Name of the CompositeHealthCheck resource to delete. */ + public Delete setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.compositeHealthCheck = compositeHealthCheck; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified CompositeHealthCheck resource in the given region. + * + * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { + Get result = new Get(project, region, compositeHealthCheck); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 COMPOSITE_HEALTH_CHECK_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 CompositeHealthCheck resource in the given region. + * + * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CompositeHealthCheck.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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 CompositeHealthCheck resource to return. */ + @com.google.api.client.util.Key + private java.lang.String compositeHealthCheck; + + /** Name of the CompositeHealthCheck resource to return. + */ + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; + } + + /** Name of the CompositeHealthCheck resource to return. */ + public Get setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.compositeHealthCheck = compositeHealthCheck; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the most recent health check results for this regional CompositeHealthCheck. + * + * Create a request for the method "regionCompositeHealthChecks.getHealth". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to get health for. + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { + GetHealth result = new GetHealth(project, region, compositeHealthCheck); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}/getHealth"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 COMPOSITE_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the most recent health check results for this regional CompositeHealthCheck. + * + * Create a request for the method "regionCompositeHealthChecks.getHealth". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

+ * + * @param project Name of the project scoping this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to get health for. + * @since 1.13 + */ + protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CompositeHealthCheckHealth.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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); + } + + @Override + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); + } + + @Override + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); + } + + @Override + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); + } + + @Override + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); + } + + @Override + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); + } + + @Override + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); + } + + @Override + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); + } + + @Override + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); + } + + @Override + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public GetHealth 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 GetHealth 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 CompositeHealthCheck resource to get health for. */ + @com.google.api.client.util.Key + private java.lang.String compositeHealthCheck; + + /** Name of the CompositeHealthCheck resource to get health for. + */ + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; + } + + /** Name of the CompositeHealthCheck resource to get health for. */ + public GetHealth setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), + "Parameter compositeHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.compositeHealthCheck = compositeHealthCheck; + return this; + } + + @Override + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); + } + } + /** + * Create a CompositeHealthCheck in the specified project in the given region using the parameters + * that are included in the request. + * + * Create a request for the method "regionCompositeHealthChecks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CompositeHealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Create a CompositeHealthCheck in the specified project in the given region using the parameters + * that are included in the request. + * + * Create a request for the method "regionCompositeHealthChecks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CompositeHealthCheck 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the CompositeHealthChecks for a project in the given region. + * + * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping 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}/compositeHealthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the CompositeHealthChecks for a project in the given region. + * + * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping 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.CompositeHealthCheckList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified regional CompositeHealthCheck resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "regionCompositeHealthChecks.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck, com.google.api.services.compute.model.CompositeHealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, region, compositeHealthCheck, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Updates the specified regional CompositeHealthCheck resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. + * + * Create a request for the method "regionCompositeHealthChecks.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck, com.google.api.services.compute.model.CompositeHealthCheck content) { + super(Compute.this, "PATCH", 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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 CompositeHealthCheck to update. The name must be 1-63 characters long, and + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String compositeHealthCheck; + + /** Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and comply with + RFC1035. + */ + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; + } + + /** + * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and + * comply with RFC1035. + */ + public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + this.compositeHealthCheck = compositeHealthCheck; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionCompositeHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionCompositeHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionDiskTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionDiskTypes.List request = compute.regionDiskTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionDiskTypes regionDiskTypes() { + return new RegionDiskTypes(); + } + + /** + * The "regionDiskTypes" collection of methods. + */ + public class RegionDiskTypes { + + /** + * Returns the specified regional disk type. + * + * Create a request for the method "regionDiskTypes.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 region The name of the region for this request. + * @param diskType Name of the disk type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String diskType) throws java.io.IOException { + Get result = new Get(project, region, diskType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_TYPE_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 regional disk type. + * + * Create a request for the method "regionDiskTypes.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 region The name of the region for this request. + * @param diskType Name of the disk type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String diskType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskType.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.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), + "Parameter diskType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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 disk type to return. */ + @com.google.api.client.util.Key + private java.lang.String diskType; + + /** Name of the disk type to return. + */ + public java.lang.String getDiskType() { + return diskType; + } + + /** Name of the disk type to return. */ + public Get setDiskType(java.lang.String diskType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), + "Parameter diskType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.diskType = diskType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of regional disk types available to the specified project. + * + * Create a request for the method "regionDiskTypes.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 region The 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}/diskTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of regional disk types available to the specified project. + * + * Create a request for the method "regionDiskTypes.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 region The 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.RegionDiskTypeList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionDisks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionDisks.List request = compute.regionDisks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionDisks regionDisks() { + return new RegionDisks(); + } + + /** + * The "regionDisks" collection of methods. + */ + public class RegionDisks { + + /** + * Adds existing resource policies to a regional disk. You can only add one policy which will be + * applied to this disk for scheduling snapshot creation. + * + * Create a request for the method "regionDisks.addResourcePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @return the request + */ + public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest content) throws java.io.IOException { + AddResourcePolicies result = new AddResourcePolicies(project, region, disk, content); + initialize(result); + return result; + } + + public class AddResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds existing resource policies to a regional disk. You can only add one policy which will be + * applied to this disk for scheduling snapshot creation. + * + * Create a request for the method "regionDisks.addResourcePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @since 1.13 + */ + protected AddResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); + } + + @Override + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); + } + + @Override + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); + } + + @Override + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); + } + + @Override + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); + } + + @Override + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); + } + + @Override + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); + } + + @Override + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) 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 AddResourcePolicies setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public AddResourcePolicies 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; + } + + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public AddResourcePolicies setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 AddResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); + } + } + /** + * Bulk create a set of disks. + * + * Create a request for the method "regionDisks.bulkInsert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @return the request + */ + public BulkInsert bulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertDiskResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, region, content); + initialize(result); + return result; + } + + public class BulkInsert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Bulk create a set of disks. + * + * Create a request for the method "regionDisks.bulkInsert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @since 1.13 + */ + protected BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertDiskResource 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); + } + + @Override + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); + } + + @Override + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); + } + + @Override + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); + } + + @Override + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); + } + + @Override + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); + } + + @Override + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); + } + + @Override + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); + } + + @Override + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); + } + + @Override + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) 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 BulkInsert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public BulkInsert 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; + } + + /** + * 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 BulkInsert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); + } + } + /** + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using + * snapshots.insert instead, as that method supports more features, such as creating snapshots in a + * project different from the source disk project. + * + * Create a request for the method "regionDisks.createSnapshot". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @return the request + */ + public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { + CreateSnapshot result = new CreateSnapshot(project, region, disk, content); + initialize(result); + return result; + } + + public class CreateSnapshot extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider + * using snapshots.insert instead, as that method supports more features, such as creating + * snapshots in a project different from the source disk project. + * + * Create a request for the method "regionDisks.createSnapshot". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. + *

{@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 for this request. + * @param disk Name of the regional persistent disk to snapshot. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @since 1.13 + */ + protected CreateSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Snapshot 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { + return (CreateSnapshot) super.set$Xgafv($Xgafv); + } + + @Override + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); + } + + @Override + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); + } + + @Override + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); + } + + @Override + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); + } + + @Override + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); + } + + @Override + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); + } + + @Override + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); + } + + @Override + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); + } + + @Override + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) 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 CreateSnapshot 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public CreateSnapshot 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 regional persistent disk to snapshot. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the regional persistent disk to snapshot. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the regional persistent disk to snapshot. */ + public CreateSnapshot setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 CreateSnapshot setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public CreateSnapshot set(String parameterName, Object value) { + return (CreateSnapshot) super.set(parameterName, value); + } + } + /** + * Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas + * of its data permanently and is irreversible. However, deleting a disk does not delete + * anysnapshots previously made from the disk. You must separatelydelete snapshots. + * + * Create a request for the method "regionDisks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { + Delete result = new Delete(project, region, disk); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("\\S{1,66}"); + + /** + * Deletes the specified regional persistent disk. Deleting a regional disk removes all the + * replicas of its data permanently and is irreversible. However, deleting a disk does not delete + * anysnapshots previously made from the disk. You must separatelydelete snapshots. + * + * Create a request for the method "regionDisks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String disk) { + super(Compute.this, "DELETE", REST_PATH, null, 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 regional persistent disk to delete. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the regional persistent disk to delete. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the regional persistent disk to delete. */ + public Delete setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); + } + this.disk = disk; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns a specified regional persistent disk. + * + * Create a request for the method "regionDisks.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 region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { + Get result = new Get(project, region, disk); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns a specified regional persistent disk. + * + * Create a request for the method "regionDisks.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 region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String disk) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Disk.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 regional persistent disk to return. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the regional persistent disk to return. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the regional persistent disk to return. */ + public Get setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionDisks.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionDisks.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Disk 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Source image to restore onto a disk. This field is optional. */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; + + /** Source image to restore onto a disk. This field is optional. + */ + public java.lang.String getSourceImage() { + return sourceImage; + } + + /** Source image to restore onto a disk. This field is optional. */ + public Insert setSourceImage(java.lang.String sourceImage) { + this.sourceImage = sourceImage; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of persistent disks contained within the specified region. + * + * Create a request for the method "regionDisks.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 region 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}/disks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of persistent disks contained within the specified region. + * + * Create a request for the method "regionDisks.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 region 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.DiskList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Removes resource policies from a regional disk. + * + * Create a request for the method "regionDisks.removeResourcePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} + * @return the request + */ + public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest content) throws java.io.IOException { + RemoveResourcePolicies result = new RemoveResourcePolicies(project, region, disk, content); + initialize(result); + return result; + } + + public class RemoveResourcePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes resource policies from a regional disk. + * + * Create a request for the method "regionDisks.removeResourcePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} + * @since 1.13 + */ + protected RemoveResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); + } + + @Override + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); + } + + @Override + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); + } + + @Override + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); + } + + @Override + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); + } + + @Override + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + } + + @Override + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); + } + + @Override + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) 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 RemoveResourcePolicies setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public RemoveResourcePolicies 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; + } + + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public RemoveResourcePolicies setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); + } + } + /** + * Resizes the specified regional persistent disk. + * + * Create a request for the method "regionDisks.resize". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * + * @param project The project ID for this request. + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk. + * @param content the {@link com.google.api.services.compute.model.RegionDisksResizeRequest} + * @return the request + */ + public Resize resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) throws java.io.IOException { + Resize result = new Resize(project, region, disk, content); + initialize(result); + return result; + } + + public class Resize extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Resizes the specified regional persistent disk. + * + * Create a request for the method "regionDisks.resize". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

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

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

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. + * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @since 1.13 + */ + protected StartAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StartAsyncReplication) super.set$Xgafv($Xgafv); + } + + @Override + public StartAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StartAsyncReplication) super.setAccessToken(accessToken); + } + + @Override + public StartAsyncReplication setAlt(java.lang.String alt) { + return (StartAsyncReplication) super.setAlt(alt); + } + + @Override + public StartAsyncReplication setCallback(java.lang.String callback) { + return (StartAsyncReplication) super.setCallback(callback); + } + + @Override + public StartAsyncReplication setFields(java.lang.String fields) { + return (StartAsyncReplication) super.setFields(fields); + } + + @Override + public StartAsyncReplication setKey(java.lang.String key) { + return (StartAsyncReplication) super.setKey(key); + } + + @Override + public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StartAsyncReplication) super.setOauthToken(oauthToken); + } + + @Override + public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); + } + + @Override + public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StartAsyncReplication) super.setQuotaUser(quotaUser); + } + + @Override + public StartAsyncReplication setUploadType(java.lang.String uploadType) { + return (StartAsyncReplication) super.setUploadType(uploadType); + } + + @Override + public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StartAsyncReplication setUserIp(java.lang.String userIp) { + return (StartAsyncReplication) 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 StartAsyncReplication setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public StartAsyncReplication 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; + } + + /** The name of the persistent disk. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The name of the persistent disk. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The name of the persistent disk. */ + public StartAsyncReplication setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 StartAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StartAsyncReplication set(String parameterName, Object value) { + return (StartAsyncReplication) super.set(parameterName, value); + } + } + /** + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * + * Create a request for the method "regionDisks.stopAsyncReplication". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. + * @return the request + */ + public StopAsyncReplication stopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { + StopAsyncReplication result = new StopAsyncReplication(project, region, disk); + initialize(result); + return result; + } + + public class StopAsyncReplication extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 DISK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * + * Create a request for the method "regionDisks.stopAsyncReplication". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. + * @since 1.13 + */ + protected StopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) { + super(Compute.this, "POST", REST_PATH, null, 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopAsyncReplication) super.set$Xgafv($Xgafv); + } + + @Override + public StopAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopAsyncReplication) super.setAccessToken(accessToken); + } + + @Override + public StopAsyncReplication setAlt(java.lang.String alt) { + return (StopAsyncReplication) super.setAlt(alt); + } + + @Override + public StopAsyncReplication setCallback(java.lang.String callback) { + return (StopAsyncReplication) super.setCallback(callback); + } + + @Override + public StopAsyncReplication setFields(java.lang.String fields) { + return (StopAsyncReplication) super.setFields(fields); + } + + @Override + public StopAsyncReplication setKey(java.lang.String key) { + return (StopAsyncReplication) super.setKey(key); + } + + @Override + public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopAsyncReplication) super.setOauthToken(oauthToken); + } + + @Override + public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); + } + + @Override + public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopAsyncReplication) super.setQuotaUser(quotaUser); + } + + @Override + public StopAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopAsyncReplication) super.setUploadType(uploadType); + } + + @Override + public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StopAsyncReplication setUserIp(java.lang.String userIp) { + return (StopAsyncReplication) 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 StopAsyncReplication setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public StopAsyncReplication 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; + } + + /** The name of the persistent disk. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The name of the persistent disk. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The name of the persistent disk. */ + public StopAsyncReplication setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + 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 StopAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StopAsyncReplication set(String parameterName, Object value) { + return (StopAsyncReplication) super.set(parameterName, value); + } + } + /** + * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the + * primary or secondary scope. + * + * Create a request for the method "regionDisks.stopGroupAsyncReplication". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. This must be the region of the + primary or secondary disks + * in the consistency group. + * @param content the {@link com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource} + * @return the request + */ + public StopGroupAsyncReplication stopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) throws java.io.IOException { + StopGroupAsyncReplication result = new StopGroupAsyncReplication(project, region, content); + initialize(result); + return result; + } + + public class StopGroupAsyncReplication extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the + * primary or secondary scope. + * + * Create a request for the method "regionDisks.stopGroupAsyncReplication". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote + * operation.

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.Disk content) { + super(Compute.this, "PATCH", 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Update 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; + } + + /** The disk name for this request. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** The disk name for this request. + */ + public java.lang.String getDisk() { + return disk; + } + + /** The disk name for this request. */ + public Update setDisk(java.lang.String disk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.disk = disk; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Update setPaths(java.util.List paths) { + this.paths = paths; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + * Create a request for the method "regionDisks.updateKmsKey". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk Name of the Disk resource, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionDiskUpdateKmsKeyRequest} + * @return the request + */ + public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDiskUpdateKmsKeyRequest content) throws java.io.IOException { + UpdateKmsKey result = new UpdateKmsKey(project, region, disk, content); + initialize(result); + return result; + } + + public class UpdateKmsKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/updateKmsKey"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Rotates the customer-managed encryption key to the latest version for the specified persistent + * disk. + * + * Create a request for the method "regionDisks.updateKmsKey". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param disk Name of the Disk resource, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionDiskUpdateKmsKeyRequest} + * @since 1.13 + */ + protected UpdateKmsKey(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDiskUpdateKmsKeyRequest 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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { + return (UpdateKmsKey) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateKmsKey setAccessToken(java.lang.String accessToken) { + return (UpdateKmsKey) super.setAccessToken(accessToken); + } + + @Override + public UpdateKmsKey setAlt(java.lang.String alt) { + return (UpdateKmsKey) super.setAlt(alt); + } + + @Override + public UpdateKmsKey setCallback(java.lang.String callback) { + return (UpdateKmsKey) super.setCallback(callback); + } + + @Override + public UpdateKmsKey setFields(java.lang.String fields) { + return (UpdateKmsKey) super.setFields(fields); + } + + @Override + public UpdateKmsKey setKey(java.lang.String key) { + return (UpdateKmsKey) super.setKey(key); + } + + @Override + public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { + return (UpdateKmsKey) super.setOauthToken(oauthToken); + } + + @Override + public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { + return (UpdateKmsKey) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateKmsKey setUploadType(java.lang.String uploadType) { + return (UpdateKmsKey) super.setUploadType(uploadType); + } + + @Override + public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateKmsKey setUserIp(java.lang.String userIp) { + return (UpdateKmsKey) 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 UpdateKmsKey setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public UpdateKmsKey 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 Disk resource, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** Name of the Disk resource, should conform to RFC1035. + */ + public java.lang.String getDisk() { + return disk; + } + + /** Name of the Disk resource, should conform to RFC1035. */ + public UpdateKmsKey setDisk(java.lang.String disk) { + this.disk = disk; + 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 UpdateKmsKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateKmsKey set(String parameterName, Object value) { + return (UpdateKmsKey) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionHealthAggregationPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionHealthAggregationPolicies.List request = compute.regionHealthAggregationPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionHealthAggregationPolicies regionHealthAggregationPolicies() { + return new RegionHealthAggregationPolicies(); + } + + /** + * The "regionHealthAggregationPolicies" collection of methods. + */ + public class RegionHealthAggregationPolicies { + + /** + * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to + * the specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionHealthAggregationPolicies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/healthAggregationPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to + * the specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionHealthAggregationPolicies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicyAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified HealthAggregationPolicy in the given region. + * + * Create a request for the method "regionHealthAggregationPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, healthAggregationPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_AGGREGATION_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HealthAggregationPolicy in the given region. + * + * Create a request for the method "regionHealthAggregationPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 HealthAggregationPolicy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String healthAggregationPolicy; + + /** Name of the HealthAggregationPolicy resource to delete. + */ + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; + } + + /** Name of the HealthAggregationPolicy resource to delete. */ + public Delete setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthAggregationPolicy = healthAggregationPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HealthAggregationPolicy resource in the given region. + * + * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) throws java.io.IOException { + Get result = new Get(project, region, healthAggregationPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_AGGREGATION_POLICY_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 HealthAggregationPolicy resource in the given region. + * + * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicy.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.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 HealthAggregationPolicy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String healthAggregationPolicy; + + /** Name of the HealthAggregationPolicy resource to return. + */ + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; + } + + /** Name of the HealthAggregationPolicy resource to return. */ + public Get setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), + "Parameter healthAggregationPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthAggregationPolicy = healthAggregationPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Create a HealthAggregationPolicy in the specified project in the given region using the + * parameters that are included in the request. + * + * Create a request for the method "regionHealthAggregationPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthAggregationPolicy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Create a HealthAggregationPolicy in the specified project in the given region using the + * parameters that are included in the request. + * + * Create a request for the method "regionHealthAggregationPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthAggregationPolicy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the HealthAggregationPolicies for a project in the given region. + * + * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping 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}/healthAggregationPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the HealthAggregationPolicies for a project in the given region. + * + * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping 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.HealthAggregationPolicyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified regional HealthAggregationPolicy resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "regionHealthAggregationPolicies.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy to update. The name + must be 1-63 characters long, and comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy, com.google.api.services.compute.model.HealthAggregationPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, healthAggregationPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Updates the specified regional HealthAggregationPolicy resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. + * + * Create a request for the method "regionHealthAggregationPolicies.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthAggregationPolicy Name of the HealthAggregationPolicy to update. The name + must be 1-63 characters long, and comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy, com.google.api.services.compute.model.HealthAggregationPolicy content) { + super(Compute.this, "PATCH", 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.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 HealthAggregationPolicy to update. The name must be 1-63 characters long, and + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthAggregationPolicy; + + /** Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply + with RFC1035. + */ + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; + } + + /** + * Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and + * comply with RFC1035. + */ + public Patch setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + this.healthAggregationPolicy = healthAggregationPolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthAggregationPolicies.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthAggregationPolicies.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionHealthCheckServices collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionHealthCheckServices.List request = compute.regionHealthCheckServices().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionHealthCheckServices regionHealthCheckServices() { + return new RegionHealthCheckServices(); + } + + /** + * The "regionHealthCheckServices" collection of methods. + */ + public class RegionHealthCheckServices { + + /** + * Retrieves the list of all HealthCheckService resources, regional and global, available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionHealthCheckServices.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/healthCheckServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all HealthCheckService resources, regional and global, available to the + * specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionHealthCheckServices.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckServiceAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified regional HealthCheckService. + * + * Create a request for the method "regionHealthCheckServices.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to delete. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { + Delete result = new Delete(project, region, healthCheckService); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Deletes the specified regional HealthCheckService. + * + * Create a request for the method "regionHealthCheckServices.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to delete. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { + super(Compute.this, "DELETE", REST_PATH, null, 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.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 HealthCheckService to delete. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheckService; + + /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with + RFC1035. + */ + public java.lang.String getHealthCheckService() { + return healthCheckService; + } + + /** + * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + public Delete setHealthCheckService(java.lang.String healthCheckService) { + this.healthCheckService = healthCheckService; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified regional HealthCheckService resource. + * + * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { + Get result = new Get(project, region, healthCheckService); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 the specified regional HealthCheckService resource. + * + * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckService.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.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 HealthCheckService to update. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheckService; + + /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with + RFC1035. + */ + public java.lang.String getHealthCheckService() { + return healthCheckService; + } + + /** + * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + public Get setHealthCheckService(java.lang.String healthCheckService) { + this.healthCheckService = healthCheckService; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a regional HealthCheckService resource in the specified project and region using the data + * included in the request. + * + * Create a request for the method "regionHealthCheckServices.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheckService content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a regional HealthCheckService resource in the specified project and region using the + * data included in the request. + * + * Create a request for the method "regionHealthCheckServices.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheckService 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all the HealthCheckService resources that have been configured for the specified project in + * the given region. + * + * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping 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}/healthCheckServices"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all the HealthCheckService resources that have been configured for the specified project + * in the given region. + * + * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping 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.HealthCheckServicesList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified regional HealthCheckService resource with the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionHealthCheckServices.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthCheckService, com.google.api.services.compute.model.HealthCheckService content) throws java.io.IOException { + Patch result = new Patch(project, region, healthCheckService, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Updates the specified regional HealthCheckService resource with the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. + * + * Create a request for the method "regionHealthCheckServices.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheckService Name of the HealthCheckService to update. The name + must be 1-63 characters long, and comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthCheckService, com.google.api.services.compute.model.HealthCheckService content) { + super(Compute.this, "PATCH", 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.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 HealthCheckService to update. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheckService; + + /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with + RFC1035. + */ + public java.lang.String getHealthCheckService() { + return healthCheckService; + } + + /** + * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply + * with RFC1035. + */ + public Patch setHealthCheckService(java.lang.String healthCheckService) { + this.healthCheckService = healthCheckService; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionHealthChecks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionHealthChecks.List request = compute.regionHealthChecks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionHealthChecks regionHealthChecks() { + return new RegionHealthChecks(); + } + + /** + * The "regionHealthChecks" collection of methods. + */ + public class RegionHealthChecks { + + /** + * Deletes the specified HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException { + Delete result = new Delete(project, region, healthCheck); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 HealthCheck resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to delete. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to delete. */ + public Delete setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.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 region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException { + Get result = new Get(project, region, healthCheck); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_CHECK_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 HealthCheck resource. + * + * Create a request for the method "regionHealthChecks.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 region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String healthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheck.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 HealthCheck resource to return. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to return. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to return. */ + public Get setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "regionHealthChecks.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "regionHealthChecks.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheck 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of HealthCheck resources available to the specified project. + * + * Create a request for the method "regionHealthChecks.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 region Name of the region scoping 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}/healthChecks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of HealthCheck resources available to the specified project. + * + * Create a request for the method "regionHealthChecks.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 region Name of the region scoping 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.HealthCheckList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionHealthChecks.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, region, healthCheck, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionHealthChecks.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "PATCH", 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 HealthCheck resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to patch. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to patch. */ + public Patch setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "PUT", 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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 HealthCheck resource to update. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to update. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to update. */ + public Update setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionHealthSources collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionHealthSources.List request = compute.regionHealthSources().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionHealthSources regionHealthSources() { + return new RegionHealthSources(); + } + + /** + * The "regionHealthSources" collection of methods. + */ + public class RegionHealthSources { + + /** + * Retrieves the list of all HealthSource resources (all regional) available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionHealthSources.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all HealthSource resources (all regional) available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionHealthSources.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSourceAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified HealthSource in the given region + * + * Create a request for the method "regionHealthSources.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { + Delete result = new Delete(project, region, healthSource); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_SOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified HealthSource in the given region + * + * Create a request for the method "regionHealthSources.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthSource) { + super(Compute.this, "DELETE", REST_PATH, null, 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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 HealthSource resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource resource to delete. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** Name of the HealthSource resource to delete. */ + public Delete setHealthSource(java.lang.String healthSource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthSource = healthSource; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified HealthSource resource in the given region. + * + * Create a request for the method "regionHealthSources.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 region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { + Get result = new Get(project, region, healthSource); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_SOURCE_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 HealthSource resource in the given region. + * + * Create a request for the method "regionHealthSources.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 region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String healthSource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSource.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 HealthSource resource to return. */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource resource to return. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** Name of the HealthSource resource to return. */ + public Get setHealthSource(java.lang.String healthSource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthSource = healthSource; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the most recent health check results for this regional HealthSource. + * + * Create a request for the method "regionHealthSources.getHealth". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to get health for. + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { + GetHealth result = new GetHealth(project, region, healthSource); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}/getHealth"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 HEALTH_SOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the most recent health check results for this regional HealthSource. + * + * Create a request for the method "regionHealthSources.getHealth". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

+ * + * @param project Name of the project scoping this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to get health for. + * @since 1.13 + */ + protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String healthSource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSourceHealth.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); + } + + @Override + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); + } + + @Override + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); + } + + @Override + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); + } + + @Override + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); + } + + @Override + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); + } + + @Override + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); + } + + @Override + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); + } + + @Override + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); + } + + @Override + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public GetHealth 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 GetHealth 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 HealthSource resource to get health for. */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource resource to get health for. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** Name of the HealthSource resource to get health for. */ + public GetHealth setHealthSource(java.lang.String healthSource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), + "Parameter healthSource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthSource = healthSource; + return this; + } + + @Override + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); + } + } + /** + * Create a HealthSource in the specified project in the given region using the parameters that are + * included in the request. + * + * Create a request for the method "regionHealthSources.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthSource content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Create a HealthSource in the specified project in the given region using the parameters that + * are included in the request. + * + * Create a request for the method "regionHealthSources.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthSource 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the HealthSources for a project in the given region. + * + * Create a request for the method "regionHealthSources.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 region Name of the region scoping 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}/healthSources"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the HealthSources for a project in the given region. + * + * Create a request for the method "regionHealthSources.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 region Name of the region scoping 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.HealthSourceList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified regional HealthSource resource with the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionHealthSources.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource to update. The name + must be 1-63 characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthSource, com.google.api.services.compute.model.HealthSource content) throws java.io.IOException { + Patch result = new Patch(project, region, healthSource, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Updates the specified regional HealthSource resource with the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "regionHealthSources.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource to update. The name + must be 1-63 characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthSource, com.google.api.services.compute.model.HealthSource content) { + super(Compute.this, "PATCH", 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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 HealthSource to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String healthSource; + + /** Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getHealthSource() { + return healthSource; + } + + /** + * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Patch setHealthSource(java.lang.String healthSource) { + this.healthSource = healthSource; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthSources.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionHealthSources.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstanceGroupManagerResizeRequests collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstanceGroupManagerResizeRequests.List request = compute.regionInstanceGroupManagerResizeRequests().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstanceGroupManagerResizeRequests regionInstanceGroupManagerResizeRequests() { + return new RegionInstanceGroupManagerResizeRequests(); + } + + /** + * The "regionInstanceGroupManagerResizeRequests" collection of methods. + */ + public class RegionInstanceGroupManagerResizeRequests { + + /** + * Cancels the specified resize request. Cancelled resize request no longer waits for the resources + * to be provisioned. Cancel is only possible for requests that are in accepted state. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Cancel cancel(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Cancel result = new Cancel(project, region, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Cancel extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Cancels the specified resize request. Cancelled resize request no longer waits for the + * resources to be provisioned. Cancel is only possible for requests that are in accepted state. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Cancel(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "POST", REST_PATH, null, 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) 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 Cancel setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + public Cancel setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource + * ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource + * ID. + */ + public Cancel setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + 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 Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. + * Deleting request does not delete instances that were provisioned previously. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Delete result = new Delete(project, region, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "DELETE", REST_PATH, null, 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + public Delete setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request to delete. Name should conform to RFC1035 or be a resource + * ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request to delete. Name should conform to RFC1035 or be a resource + * ID. + */ + public Delete setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified resize request. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region The name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Get result = new Get(project, region, instanceGroupManager, resizeRequest); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns all of the details about the specified resize request. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region The name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ + public Get setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public Get setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group to which the resize request is scoped. + Name should conform to + * RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { + Insert result = new Insert(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group to which the resize request is scoped. + Name should conform to + * RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. Name should conform to RFC1035. + */ + public Insert setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Name of the managed instance group to which the resize request is scoped. Name should + * conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group to which the resize request is scoped. Name should conform to + RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * Name of the managed instance group to which the resize request is scoped. Name should + * conform to RFC1035 or be a resource ID. + */ + public Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + List result = new List(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves a list of Resize Requests that are contained in the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region Name of the region + scoping this request. Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagerResizeRequestsListResponse.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * Name of the region scoping this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. Name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. Name should conform to RFC1035. + */ + public List setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. The name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. The name should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. The name should conform to RFC1035. */ + public List setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstanceGroupManagers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstanceGroupManagers.List request = compute.regionInstanceGroupManagers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstanceGroupManagers regionInstanceGroupManagers() { + return new RegionInstanceGroupManagers(); + } + + /** + * The "regionInstanceGroupManagers" collection of methods. + */ + public class RegionInstanceGroupManagers { + + /** + * Flags the specified instances to be immediately removed from the managed instance group. + * Abandoning an instance does not delete the instance, but it does remove the instance from any + * target pools that are applied by the managed instance group. This method reduces thetargetSize of + * the managed instance group by the number of instances that you abandon. This operation is marked + * asDONE when the action is scheduled even if the instances have not yet been removed from the + * group. You must separately verify the status of the abandoning action with + * thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.abandonInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @return the request + */ + public AbandonInstances abandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException { + AbandonInstances result = new AbandonInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class AbandonInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances to be immediately removed from the managed instance group. + * Abandoning an instance does not delete the instance, but it does remove the instance from any + * target pools that are applied by the managed instance group. This method reduces thetargetSize + * of the managed instance group by the number of instances that you abandon. This operation is + * marked asDONE when the action is scheduled even if the instances have not yet been removed from + * the group. You must separately verify the status of the abandoning action with + * thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.abandonInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. + *

{@link AbandonInstances#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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @since 1.13 + */ + protected AbandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { + return (AbandonInstances) super.set$Xgafv($Xgafv); + } + + @Override + public AbandonInstances setAccessToken(java.lang.String accessToken) { + return (AbandonInstances) super.setAccessToken(accessToken); + } + + @Override + public AbandonInstances setAlt(java.lang.String alt) { + return (AbandonInstances) super.setAlt(alt); + } + + @Override + public AbandonInstances setCallback(java.lang.String callback) { + return (AbandonInstances) super.setCallback(callback); + } + + @Override + public AbandonInstances setFields(java.lang.String fields) { + return (AbandonInstances) super.setFields(fields); + } + + @Override + public AbandonInstances setKey(java.lang.String key) { + return (AbandonInstances) super.setKey(key); + } + + @Override + public AbandonInstances setOauthToken(java.lang.String oauthToken) { + return (AbandonInstances) super.setOauthToken(oauthToken); + } + + @Override + public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AbandonInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public AbandonInstances setQuotaUser(java.lang.String quotaUser) { + return (AbandonInstances) super.setQuotaUser(quotaUser); + } + + @Override + public AbandonInstances setUploadType(java.lang.String uploadType) { + return (AbandonInstances) super.setUploadType(uploadType); + } + + @Override + public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AbandonInstances setUserIp(java.lang.String userIp) { + return (AbandonInstances) 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 AbandonInstances 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 AbandonInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 AbandonInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AbandonInstances set(String parameterName, Object value) { + return (AbandonInstances) super.set(parameterName, value); + } + } + /** + * Apply updates to selected instances the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest} + * @return the request + */ + public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { + ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class ApplyUpdatesToInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Apply updates to selected instances the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote + * operation.

{@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi + * ces.AbstractGoogleClientRequest)} 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, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest} + * @since 1.13 + */ + protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersApplyUpdatesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { + return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { + return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + } + + @Override + public ApplyUpdatesToInstances setAlt(java.lang.String alt) { + return (ApplyUpdatesToInstances) super.setAlt(alt); + } + + @Override + public ApplyUpdatesToInstances setCallback(java.lang.String callback) { + return (ApplyUpdatesToInstances) super.setCallback(callback); + } + + @Override + public ApplyUpdatesToInstances setFields(java.lang.String fields) { + return (ApplyUpdatesToInstances) super.setFields(fields); + } + + @Override + public ApplyUpdatesToInstances setKey(java.lang.String key) { + return (ApplyUpdatesToInstances) super.setKey(key); + } + + @Override + public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { + return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + } + + @Override + public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { + return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { + return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + } + + @Override + public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { + return (ApplyUpdatesToInstances) 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 ApplyUpdatesToInstances 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request, should conform to RFC1035. */ + public ApplyUpdatesToInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group, should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group, should conform to RFC1035. */ + public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public ApplyUpdatesToInstances set(String parameterName, Object value) { + return (ApplyUpdatesToInstances) super.set(parameterName, value); + } + } + /** + * Creates instances with per-instance configurations in this regional managed instance group. + * Instances are created using the current instance template. The create instances operation is + * marked DONE if the createInstances request is successful. The underlying actions take additional + * time. You must separately verify the status of thecreating or actions with the + * listmanagedinstances method. + * + * Create a request for the method "regionInstanceGroupManagers.createInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of theregion + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest} + * @return the request + */ + public CreateInstances createInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { + CreateInstances result = new CreateInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class CreateInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates instances with per-instance configurations in this regional managed instance group. + * Instances are created using the current instance template. The create instances operation is + * marked DONE if the createInstances request is successful. The underlying actions take + * additional time. You must separately verify the status of thecreating or actions with the + * listmanagedinstances method. + * + * Create a request for the method "regionInstanceGroupManagers.createInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param region The name of theregion + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest} + * @since 1.13 + */ + protected CreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersCreateInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); + } + + @Override + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); + } + + @Override + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); + } + + @Override + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); + } + + @Override + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); + } + + @Override + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); + } + + @Override + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); + } + + @Override + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); + } + + @Override + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); + } + + @Override + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) 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 CreateInstances 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 theregion where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of theregion where the managed instance group is located. It should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of theregion where the managed instance group is located. It should conform to + * RFC1035. + */ + public CreateInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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. + * + * 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. + + 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. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public CreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) super.set(parameterName, value); + } + } + /** + * Deletes the specified managed instance group and all of the instances in that group. + * + * Create a request for the method "regionInstanceGroupManagers.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + Delete result = new Delete(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified managed instance group and all of the instances in that group. + * + * Create a request for the method "regionInstanceGroupManagers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "DELETE", REST_PATH, null, 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group to delete. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be immediately deleted. The + * instances are also removed from any target pools of which they were a member. This method reduces + * thetargetSize of the managed instance group by the number of instances that you delete. The + * deleteInstances operation is marked DONE if the deleteInstances request is successful. The + * underlying actions take additional time. You must separately verify the status of thedeleting + * action with thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} + * @return the request + */ + public DeleteInstances deleteInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException { + DeleteInstances result = new DeleteInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class DeleteInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be immediately deleted. The + * instances are also removed from any target pools of which they were a member. This method + * reduces thetargetSize of the managed instance group by the number of instances that you delete. + * The deleteInstances operation is marked DONE if the deleteInstances request is successful. The + * underlying actions take additional time. You must separately verify the status of thedeleting + * action with thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. + *

{@link DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} + * @since 1.13 + */ + protected DeleteInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); + } + + @Override + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); + } + + @Override + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); + } + + @Override + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); + } + + @Override + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); + } + + @Override + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); + } + + @Override + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); + } + + @Override + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) 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 DeleteInstances 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 DeleteInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + public DeleteInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 DeleteInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteInstances set(String parameterName, Object value) { + return (DeleteInstances) super.set(parameterName, value); + } + } + /** + * Deletes selected per-instance configurations for the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq} + * @return the request + */ + public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq content) throws java.io.IOException { + DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class DeletePerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes selected per-instance configurations for the managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv + * ices.AbstractGoogleClientRequest)} 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, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq} + * @since 1.13 + */ + protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerDeleteInstanceConfigReq 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public DeletePerInstanceConfigs setAlt(java.lang.String alt) { + return (DeletePerInstanceConfigs) super.setAlt(alt); + } + + @Override + public DeletePerInstanceConfigs setCallback(java.lang.String callback) { + return (DeletePerInstanceConfigs) super.setCallback(callback); + } + + @Override + public DeletePerInstanceConfigs setFields(java.lang.String fields) { + return (DeletePerInstanceConfigs) super.setFields(fields); + } + + @Override + public DeletePerInstanceConfigs setKey(java.lang.String key) { + return (DeletePerInstanceConfigs) super.setKey(key); + } + + @Override + public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (DeletePerInstanceConfigs) 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 DeletePerInstanceConfigs 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request, should conform to RFC1035. */ + public DeletePerInstanceConfigs setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public DeletePerInstanceConfigs set(String parameterName, Object value) { + return (DeletePerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + Get result = new Get(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns all of the details about the specified managed instance group. + * + * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManager.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 Get setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group to return. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group to return. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group to return. */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a managed instance group using the information that you specify in the request. After the + * group is created, instances in the group are created using the specified instance template. This + * operation is marked as DONE when the group is created even if the instances in the group have not + * yet been created. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. + * + * A regional managed instance group can contain up to 2000 instances. + * + * Create a request for the method "regionInstanceGroupManagers.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a managed instance group using the information that you specify in the request. After + * the group is created, instances in the group are created using the specified instance template. + * This operation is marked as DONE when the group is created even if the instances in the group + * have not yet been created. You must separately verify the status of the individual instances + * with thelistmanagedinstances method. + * + * A regional managed instance group can contain up to 2000 instances. + * + * Create a request for the method "regionInstanceGroupManagers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceGroupManager 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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert setRegion(java.lang.String region) { + this.region = region; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of managed instance groups that are contained within the specified region. + * + * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping 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}/instanceGroupManagers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of managed instance groups that are contained within the specified region. + * + * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping 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.RegionInstanceGroupManagerList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 List setRegion(java.lang.String region) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists all errors thrown by actions on instances for a given regional managed instance group. The + * filter andorderBy query parameters are not supported. + * + * Create a request for the method "regionInstanceGroupManagers.listErrors". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + This should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @return the request + */ + public ListErrors listErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + ListErrors result = new ListErrors(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class ListErrors extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all errors thrown by actions on instances for a given regional managed instance group. + * The filter andorderBy query parameters are not supported. + * + * Create a request for the method "regionInstanceGroupManagers.listErrors". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + This should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @since 1.13 + */ + protected ListErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagersListErrorsResponse.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListErrors set$Xgafv(java.lang.String $Xgafv) { + return (ListErrors) super.set$Xgafv($Xgafv); + } + + @Override + public ListErrors setAccessToken(java.lang.String accessToken) { + return (ListErrors) super.setAccessToken(accessToken); + } + + @Override + public ListErrors setAlt(java.lang.String alt) { + return (ListErrors) super.setAlt(alt); + } + + @Override + public ListErrors setCallback(java.lang.String callback) { + return (ListErrors) super.setCallback(callback); + } + + @Override + public ListErrors setFields(java.lang.String fields) { + return (ListErrors) super.setFields(fields); + } + + @Override + public ListErrors setKey(java.lang.String key) { + return (ListErrors) super.setKey(key); + } + + @Override + public ListErrors setOauthToken(java.lang.String oauthToken) { + return (ListErrors) super.setOauthToken(oauthToken); + } + + @Override + public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListErrors) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListErrors setQuotaUser(java.lang.String quotaUser) { + return (ListErrors) super.setQuotaUser(quotaUser); + } + + @Override + public ListErrors setUploadType(java.lang.String uploadType) { + return (ListErrors) super.setUploadType(uploadType); + } + + @Override + public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { + return (ListErrors) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListErrors setUserIp(java.lang.String userIp) { + return (ListErrors) 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 ListErrors 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. This should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. This should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Name of the region scoping this request. This should conform to RFC1035. + */ + public ListErrors setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035, or an unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035, + or an unsigned long integer: must match regexp pattern: + (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035, or an unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + public ListErrors setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ListErrors 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 ListErrors 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 ListErrors 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 ListErrors setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListErrors set(String parameterName, Object value) { + return (ListErrors) super.set(parameterName, value); + } + } + /** + * Lists the instances in the managed instance group and instances that are scheduled to be created. + * The list includes any current actions that the group has scheduled for its instances. The orderBy + * query parameter is not supported. The `pageToken` query parameter is supported only if the + * group's `listManagedInstancesResults` field is set to `PAGINATED`. + * + * Create a request for the method "regionInstanceGroupManagers.listManagedInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. + * @return the request + */ + public ListManagedInstances listManagedInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + ListManagedInstances result = new ListManagedInstances(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class ListManagedInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the instances in the managed instance group and instances that are scheduled to be + * created. The list includes any current actions that the group has scheduled for its instances. + * The orderBy query parameter is not supported. The `pageToken` query parameter is supported + * only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * + * Create a request for the method "regionInstanceGroupManagers.listManagedInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. + * @since 1.13 + */ + protected ListManagedInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagersListInstancesResponse.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListManagedInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ListManagedInstances setAccessToken(java.lang.String accessToken) { + return (ListManagedInstances) super.setAccessToken(accessToken); + } + + @Override + public ListManagedInstances setAlt(java.lang.String alt) { + return (ListManagedInstances) super.setAlt(alt); + } + + @Override + public ListManagedInstances setCallback(java.lang.String callback) { + return (ListManagedInstances) super.setCallback(callback); + } + + @Override + public ListManagedInstances setFields(java.lang.String fields) { + return (ListManagedInstances) super.setFields(fields); + } + + @Override + public ListManagedInstances setKey(java.lang.String key) { + return (ListManagedInstances) super.setKey(key); + } + + @Override + public ListManagedInstances setOauthToken(java.lang.String oauthToken) { + return (ListManagedInstances) super.setOauthToken(oauthToken); + } + + @Override + public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListManagedInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { + return (ListManagedInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ListManagedInstances setUploadType(java.lang.String uploadType) { + return (ListManagedInstances) super.setUploadType(uploadType); + } + + @Override + public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListManagedInstances setUserIp(java.lang.String userIp) { + return (ListManagedInstances) 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 ListManagedInstances 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 ListManagedInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListManagedInstances set(String parameterName, Object value) { + return (ListManagedInstances) super.set(parameterName, value); + } + } + /** + * Lists all of the per-instance configurations defined for the managed instance group. The orderBy + * query parameter is not supported. + * + * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @return the request + */ + public ListPerInstanceConfigs listPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { + ListPerInstanceConfigs result = new ListPerInstanceConfigs(project, region, instanceGroupManager); + initialize(result); + return result; + } + + public class ListPerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all of the per-instance configurations defined for the managed instance group. The + * orderBy query parameter is not supported. + * + * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link ListPerInstanceConfigs#initialize(com.google.api.client.googleapis.servic + * es.AbstractGoogleClientRequest)} 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, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @since 1.13 + */ + protected ListPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagersListInstanceConfigsResp.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (ListPerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public ListPerInstanceConfigs setAlt(java.lang.String alt) { + return (ListPerInstanceConfigs) super.setAlt(alt); + } + + @Override + public ListPerInstanceConfigs setCallback(java.lang.String callback) { + return (ListPerInstanceConfigs) super.setCallback(callback); + } + + @Override + public ListPerInstanceConfigs setFields(java.lang.String fields) { + return (ListPerInstanceConfigs) super.setFields(fields); + } + + @Override + public ListPerInstanceConfigs setKey(java.lang.String key) { + return (ListPerInstanceConfigs) super.setKey(key); + } + + @Override + public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (ListPerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (ListPerInstanceConfigs) 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 ListPerInstanceConfigs 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request, should conform to RFC1035. */ + public ListPerInstanceConfigs setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. It should conform to RFC1035. */ + public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListPerInstanceConfigs set(String parameterName, Object value) { + return (ListPerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with the listmanagedinstances method. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. + * + * If you update your group to specify a new template or instance configuration, it's possible that + * your intended specification for each VM in the group is different from the current state of that + * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. + * + * Create a request for the method "regionInstanceGroupManagers.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Patch result = new Patch(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with the listmanagedinstances method. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. + * + * If you update your group to specify a new template or instance configuration, it's possible + * that your intended specification for each VM in the group is different from the current state + * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating + * instances in a MIG. + * + * Create a request for the method "regionInstanceGroupManagers.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { + super(Compute.this, "PATCH", 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the instance group manager. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the instance group manager. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the instance group manager. */ + public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Inserts or patches per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerPatchInstanceConfigReq} + * @return the request + */ + public PatchPerInstanceConfigs patchPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerPatchInstanceConfigReq content) throws java.io.IOException { + PatchPerInstanceConfigs result = new PatchPerInstanceConfigs(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class PatchPerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Inserts or patches per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link PatchPerInstanceConfigs#initialize(com.google.api.client.googleapis.servi + * ces.AbstractGoogleClientRequest)} 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, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerPatchInstanceConfigReq} + * @since 1.13 + */ + protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerPatchInstanceConfigReq 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public PatchPerInstanceConfigs setAlt(java.lang.String alt) { + return (PatchPerInstanceConfigs) super.setAlt(alt); + } + + @Override + public PatchPerInstanceConfigs setCallback(java.lang.String callback) { + return (PatchPerInstanceConfigs) super.setCallback(callback); + } + + @Override + public PatchPerInstanceConfigs setFields(java.lang.String fields) { + return (PatchPerInstanceConfigs) super.setFields(fields); + } + + @Override + public PatchPerInstanceConfigs setKey(java.lang.String key) { + return (PatchPerInstanceConfigs) super.setKey(key); + } + + @Override + public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (PatchPerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (PatchPerInstanceConfigs) 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 PatchPerInstanceConfigs 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request, should conform to RFC1035. */ + public PatchPerInstanceConfigs setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 PatchPerInstanceConfigs setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchPerInstanceConfigs set(String parameterName, Object value) { + return (PatchPerInstanceConfigs) super.set(parameterName, value); + } + } + /** + * Flags the specified VM instances in the managed instance group to be immediately recreated. Each + * instance is recreated using the group's current configuration. This operation is marked as DONE + * when the flag is set even if the instances have not yet been recreated. You must separately + * verify the status of each instance by checking itscurrentAction field; for more information, see + * Checking the status of managed instances. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.recreateInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} + * @return the request + */ + public RecreateInstances recreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest content) throws java.io.IOException { + RecreateInstances result = new RecreateInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class RecreateInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified VM instances in the managed instance group to be immediately recreated. + * Each instance is recreated using the group's current configuration. This operation is marked as + * DONE when the flag is set even if the instances have not yet been recreated. You must + * separately verify the status of each instance by checking itscurrentAction field; for more + * information, see Checking the status of managed instances. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.recreateInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. + *

{@link RecreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} + * @since 1.13 + */ + protected RecreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (RecreateInstances) super.set$Xgafv($Xgafv); + } + + @Override + public RecreateInstances setAccessToken(java.lang.String accessToken) { + return (RecreateInstances) super.setAccessToken(accessToken); + } + + @Override + public RecreateInstances setAlt(java.lang.String alt) { + return (RecreateInstances) super.setAlt(alt); + } + + @Override + public RecreateInstances setCallback(java.lang.String callback) { + return (RecreateInstances) super.setCallback(callback); + } + + @Override + public RecreateInstances setFields(java.lang.String fields) { + return (RecreateInstances) super.setFields(fields); + } + + @Override + public RecreateInstances setKey(java.lang.String key) { + return (RecreateInstances) super.setKey(key); + } + + @Override + public RecreateInstances setOauthToken(java.lang.String oauthToken) { + return (RecreateInstances) super.setOauthToken(oauthToken); + } + + @Override + public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RecreateInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public RecreateInstances setQuotaUser(java.lang.String quotaUser) { + return (RecreateInstances) super.setQuotaUser(quotaUser); + } + + @Override + public RecreateInstances setUploadType(java.lang.String uploadType) { + return (RecreateInstances) super.setUploadType(uploadType); + } + + @Override + public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RecreateInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RecreateInstances setUserIp(java.lang.String userIp) { + return (RecreateInstances) 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 RecreateInstances 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 RecreateInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance recreation even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance recreation even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance recreation even if it's configured for + * the instances. + */ + public RecreateInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance recreation even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 RecreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RecreateInstances set(String parameterName, Object value) { + return (RecreateInstances) super.set(parameterName, value); + } + } + /** + * Changes the intended size of the managed instance group. If you increase the size, the group + * creates new instances using the current instance template. If you decrease the size, the group + * deletes one or more instances. + * + * The resize operation is marked DONE if theresize request is successful. The underlying actions + * take additional time. You must separately verify the status of thecreating or deleting actions + * with thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * Create a request for the method "regionInstanceGroupManagers.resize". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param size Number of instances that should exist in this instance group + manager. + [minimum: 0] + * @return the request + */ + public Resize resize(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.Integer size) throws java.io.IOException { + Resize result = new Resize(project, region, instanceGroupManager, size); + initialize(result); + return result; + } + + public class Resize extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Changes the intended size of the managed instance group. If you increase the size, the group + * creates new instances using the current instance template. If you decrease the size, the group + * deletes one or more instances. + * + * The resize operation is marked DONE if theresize request is successful. The underlying actions + * take additional time. You must separately verify the status of thecreating or deleting actions + * with thelistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * Create a request for the method "regionInstanceGroupManagers.resize". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param size Number of instances that should exist in this instance group + manager. + [minimum: 0] + * @since 1.13 + */ + protected Resize(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.Integer size) { + super(Compute.this, "POST", REST_PATH, null, 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); + } + + @Override + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); + } + + @Override + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); + } + + @Override + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); + } + + @Override + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); + } + + @Override + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); + } + + @Override + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); + } + + @Override + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); + } + + @Override + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); + } + + @Override + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resize setUserIp(java.lang.String userIp) { + return (Resize) 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 Resize 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 Resize setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * Number of instances that should exist in this instance group manager. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** Number of instances that should exist in this instance group manager. + + [minimum: 0] + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * Number of instances that should exist in this instance group manager. + */ + public Resize setSize(java.lang.Integer size) { + this.size = size; + 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 Resize setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be resumed. This method increases + * thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number + * of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances + * request is successful. The underlying actions take additional time. You must separately verify + * the status of theRESUMING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.resumeInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResumeInstancesRequest} + * @return the request + */ + public ResumeInstances resumeInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResumeInstancesRequest content) throws java.io.IOException { + ResumeInstances result = new ResumeInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class ResumeInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be resumed. This method + * increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of theRESUMING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.resumeInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. + *

{@link ResumeInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResumeInstancesRequest} + * @since 1.13 + */ + protected ResumeInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResumeInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { + return (ResumeInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ResumeInstances setAccessToken(java.lang.String accessToken) { + return (ResumeInstances) super.setAccessToken(accessToken); + } + + @Override + public ResumeInstances setAlt(java.lang.String alt) { + return (ResumeInstances) super.setAlt(alt); + } + + @Override + public ResumeInstances setCallback(java.lang.String callback) { + return (ResumeInstances) super.setCallback(callback); + } + + @Override + public ResumeInstances setFields(java.lang.String fields) { + return (ResumeInstances) super.setFields(fields); + } + + @Override + public ResumeInstances setKey(java.lang.String key) { + return (ResumeInstances) super.setKey(key); + } + + @Override + public ResumeInstances setOauthToken(java.lang.String oauthToken) { + return (ResumeInstances) super.setOauthToken(oauthToken); + } + + @Override + public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResumeInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ResumeInstances setQuotaUser(java.lang.String quotaUser) { + return (ResumeInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ResumeInstances setUploadType(java.lang.String uploadType) { + return (ResumeInstances) super.setUploadType(uploadType); + } + + @Override + public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ResumeInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ResumeInstances setUserIp(java.lang.String userIp) { + return (ResumeInstances) 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 ResumeInstances 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 ResumeInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 ResumeInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ResumeInstances set(String parameterName, Object value) { + return (ResumeInstances) super.set(parameterName, value); + } + } + /** + * Sets the instance template to use when creating new instances or recreating instances in this + * group. Existing instances are not affected. + * + * Create a request for the method "regionInstanceGroupManagers.setInstanceTemplate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest} + * @return the request + */ + public SetInstanceTemplate setInstanceTemplate(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest content) throws java.io.IOException { + SetInstanceTemplate result = new SetInstanceTemplate(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class SetInstanceTemplate extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the instance template to use when creating new instances or recreating instances in this + * group. Existing instances are not affected. + * + * Create a request for the method "regionInstanceGroupManagers.setInstanceTemplate". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest} + * @since 1.13 + */ + protected SetInstanceTemplate(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetInstanceTemplate) super.set$Xgafv($Xgafv); + } + + @Override + public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { + return (SetInstanceTemplate) super.setAccessToken(accessToken); + } + + @Override + public SetInstanceTemplate setAlt(java.lang.String alt) { + return (SetInstanceTemplate) super.setAlt(alt); + } + + @Override + public SetInstanceTemplate setCallback(java.lang.String callback) { + return (SetInstanceTemplate) super.setCallback(callback); + } + + @Override + public SetInstanceTemplate setFields(java.lang.String fields) { + return (SetInstanceTemplate) super.setFields(fields); + } + + @Override + public SetInstanceTemplate setKey(java.lang.String key) { + return (SetInstanceTemplate) super.setKey(key); + } + + @Override + public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { + return (SetInstanceTemplate) super.setOauthToken(oauthToken); + } + + @Override + public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetInstanceTemplate) super.setQuotaUser(quotaUser); + } + + @Override + public SetInstanceTemplate setUploadType(java.lang.String uploadType) { + return (SetInstanceTemplate) super.setUploadType(uploadType); + } + + @Override + public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetInstanceTemplate setUserIp(java.lang.String userIp) { + return (SetInstanceTemplate) 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 SetInstanceTemplate 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 SetInstanceTemplate setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 SetInstanceTemplate setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetInstanceTemplate set(String parameterName, Object value) { + return (SetInstanceTemplate) super.set(parameterName, value); + } + } + /** + * Modifies the target pools to which all new instances in this group are assigned. Existing + * instances in the group are not affected. + * + * Create a request for the method "regionInstanceGroupManagers.setTargetPools". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest} + * @return the request + */ + public SetTargetPools setTargetPools(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest content) throws java.io.IOException { + SetTargetPools result = new SetTargetPools(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class SetTargetPools extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Modifies the target pools to which all new instances in this group are assigned. Existing + * instances in the group are not affected. + * + * Create a request for the method "regionInstanceGroupManagers.setTargetPools". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. + *

{@link SetTargetPools#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest} + * @since 1.13 + */ + protected SetTargetPools(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { + return (SetTargetPools) super.set$Xgafv($Xgafv); + } + + @Override + public SetTargetPools setAccessToken(java.lang.String accessToken) { + return (SetTargetPools) super.setAccessToken(accessToken); + } + + @Override + public SetTargetPools setAlt(java.lang.String alt) { + return (SetTargetPools) super.setAlt(alt); + } + + @Override + public SetTargetPools setCallback(java.lang.String callback) { + return (SetTargetPools) super.setCallback(callback); + } + + @Override + public SetTargetPools setFields(java.lang.String fields) { + return (SetTargetPools) super.setFields(fields); + } + + @Override + public SetTargetPools setKey(java.lang.String key) { + return (SetTargetPools) super.setKey(key); + } + + @Override + public SetTargetPools setOauthToken(java.lang.String oauthToken) { + return (SetTargetPools) super.setOauthToken(oauthToken); + } + + @Override + public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTargetPools) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetTargetPools setQuotaUser(java.lang.String quotaUser) { + return (SetTargetPools) super.setQuotaUser(quotaUser); + } + + @Override + public SetTargetPools setUploadType(java.lang.String uploadType) { + return (SetTargetPools) super.setUploadType(uploadType); + } + + @Override + public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTargetPools) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetTargetPools setUserIp(java.lang.String userIp) { + return (SetTargetPools) 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 SetTargetPools 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 SetTargetPools setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public SetTargetPools setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 SetTargetPools setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetTargetPools set(String parameterName, Object value) { + return (SetTargetPools) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be started. This method increases + * thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of + * instances that you start. The startInstances operation is marked DONE if the startInstances + * request is successful. The underlying actions take additional time. You must separately verify + * the status of theSTARTING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.startInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest} + * @return the request + */ + public StartInstances startInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest content) throws java.io.IOException { + StartInstances result = new StartInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class StartInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be started. This method + * increases thetargetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of theSTARTING action with thelistmanagedinstances method. + * + * In this request, you can only specify instances that are stopped. For example, if an instance + * was previously stopped using the stopInstances method, it can be started using the + * startInstances method. + * + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.startInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. + *

{@link StartInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest} + * @since 1.13 + */ + protected StartInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StartInstances set$Xgafv(java.lang.String $Xgafv) { + return (StartInstances) super.set$Xgafv($Xgafv); + } + + @Override + public StartInstances setAccessToken(java.lang.String accessToken) { + return (StartInstances) super.setAccessToken(accessToken); + } + + @Override + public StartInstances setAlt(java.lang.String alt) { + return (StartInstances) super.setAlt(alt); + } + + @Override + public StartInstances setCallback(java.lang.String callback) { + return (StartInstances) super.setCallback(callback); + } + + @Override + public StartInstances setFields(java.lang.String fields) { + return (StartInstances) super.setFields(fields); + } + + @Override + public StartInstances setKey(java.lang.String key) { + return (StartInstances) super.setKey(key); + } + + @Override + public StartInstances setOauthToken(java.lang.String oauthToken) { + return (StartInstances) super.setOauthToken(oauthToken); + } + + @Override + public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public StartInstances setQuotaUser(java.lang.String quotaUser) { + return (StartInstances) super.setQuotaUser(quotaUser); + } + + @Override + public StartInstances setUploadType(java.lang.String uploadType) { + return (StartInstances) super.setUploadType(uploadType); + } + + @Override + public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StartInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StartInstances setUserIp(java.lang.String userIp) { + return (StartInstances) 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 StartInstances 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 StartInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 StartInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StartInstances set(String parameterName, Object value) { + return (StartInstances) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that you + * stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The + * underlying actions take additional time. You must separately verify the status of theSTOPPING + * action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the instance. + * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method + * is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. + * + * Stopped instances can be started using the startInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.stopInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStopInstancesRequest} + * @return the request + */ + public StopInstances stopInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersStopInstancesRequest content) throws java.io.IOException { + StopInstances result = new StopInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class StopInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of theSTOPPING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance + * was created). This delay gives your application time to set itself up and initialize on the + * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when + * this method is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * stopped. + * + * Stopped instances can be started using the startInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.stopInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation.

+ * {@link StopInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStopInstancesRequest} + * @since 1.13 + */ + protected StopInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersStopInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public StopInstances set$Xgafv(java.lang.String $Xgafv) { + return (StopInstances) super.set$Xgafv($Xgafv); + } + + @Override + public StopInstances setAccessToken(java.lang.String accessToken) { + return (StopInstances) super.setAccessToken(accessToken); + } + + @Override + public StopInstances setAlt(java.lang.String alt) { + return (StopInstances) super.setAlt(alt); + } + + @Override + public StopInstances setCallback(java.lang.String callback) { + return (StopInstances) super.setCallback(callback); + } + + @Override + public StopInstances setFields(java.lang.String fields) { + return (StopInstances) super.setFields(fields); + } + + @Override + public StopInstances setKey(java.lang.String key) { + return (StopInstances) super.setKey(key); + } + + @Override + public StopInstances setOauthToken(java.lang.String oauthToken) { + return (StopInstances) super.setOauthToken(oauthToken); + } + + @Override + public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public StopInstances setQuotaUser(java.lang.String quotaUser) { + return (StopInstances) super.setQuotaUser(quotaUser); + } + + @Override + public StopInstances setUploadType(java.lang.String uploadType) { + return (StopInstances) super.setUploadType(uploadType); + } + + @Override + public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StopInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public StopInstances setUserIp(java.lang.String userIp) { + return (StopInstances) 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 StopInstances 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 StopInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public StopInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * When set, graceful shutdown is skipped for instance stopping even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance stopping even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance stopping even if it's configured for + * the instances. + */ + public StopInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance stopping even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + + /** + * 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 StopInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public StopInstances set(String parameterName, Object value) { + return (StopInstances) super.set(parameterName, value); + } + } + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetSuspendedSize of the managed instance group by the number of instances that + * you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is + * successful. The underlying actions take additional time. You must separately verify the status of + * theSUSPENDING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the instance. + * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method + * is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is + * suspended. + * + * Suspended instances can be resumed using the resumeInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.suspendInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest} + * @return the request + */ + public SuspendInstances suspendInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest content) throws java.io.IOException { + SuspendInstances result = new SuspendInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class SuspendInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces thetargetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of theSUSPENDING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance + * was created). This delay gives your application time to set itself up and initialize on the + * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when + * this method is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * suspended. + * + * Suspended instances can be resumed using the resumeInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "regionInstanceGroupManagers.suspendInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. + *

{@link SuspendInstances#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 instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest} + * @since 1.13 + */ + protected SuspendInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { + return (SuspendInstances) super.set$Xgafv($Xgafv); + } + + @Override + public SuspendInstances setAccessToken(java.lang.String accessToken) { + return (SuspendInstances) super.setAccessToken(accessToken); + } + + @Override + public SuspendInstances setAlt(java.lang.String alt) { + return (SuspendInstances) super.setAlt(alt); + } + + @Override + public SuspendInstances setCallback(java.lang.String callback) { + return (SuspendInstances) super.setCallback(callback); + } + + @Override + public SuspendInstances setFields(java.lang.String fields) { + return (SuspendInstances) super.setFields(fields); + } + + @Override + public SuspendInstances setKey(java.lang.String key) { + return (SuspendInstances) super.setKey(key); + } + + @Override + public SuspendInstances setOauthToken(java.lang.String oauthToken) { + return (SuspendInstances) super.setOauthToken(oauthToken); + } + + @Override + public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SuspendInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public SuspendInstances setQuotaUser(java.lang.String quotaUser) { + return (SuspendInstances) super.setQuotaUser(quotaUser); + } + + @Override + public SuspendInstances setUploadType(java.lang.String uploadType) { + return (SuspendInstances) super.setUploadType(uploadType); + } + + @Override + public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (SuspendInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SuspendInstances setUserIp(java.lang.String userIp) { + return (SuspendInstances) 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 SuspendInstances 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 SuspendInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** Name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** Name of the managed instance group. */ + public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 SuspendInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SuspendInstances set(String parameterName, Object value) { + return (SuspendInstances) super.set(parameterName, value); + } + } + /** + * Inserts or updates per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerUpdateInstanceConfigReq} + * @return the request + */ + public UpdatePerInstanceConfigs updatePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerUpdateInstanceConfigReq content) throws java.io.IOException { + UpdatePerInstanceConfigs result = new UpdatePerInstanceConfigs(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class UpdatePerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Inserts or updates per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote + * operation.

{@link UpdatePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv + * ices.AbstractGoogleClientRequest)} 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, should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagerUpdateInstanceConfigReq} + * @since 1.13 + */ + protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagerUpdateInstanceConfigReq 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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); + } + + @Override + public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); + } + + @Override + public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { + return (UpdatePerInstanceConfigs) super.setAlt(alt); + } + + @Override + public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { + return (UpdatePerInstanceConfigs) super.setCallback(callback); + } + + @Override + public UpdatePerInstanceConfigs setFields(java.lang.String fields) { + return (UpdatePerInstanceConfigs) super.setFields(fields); + } + + @Override + public UpdatePerInstanceConfigs setKey(java.lang.String key) { + return (UpdatePerInstanceConfigs) super.setKey(key); + } + + @Override + public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); + } + + @Override + public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); + } + + @Override + public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); + } + + @Override + public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (UpdatePerInstanceConfigs) 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 UpdatePerInstanceConfigs 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, should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request, should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request, should conform to RFC1035. */ + public UpdatePerInstanceConfigs setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + 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 UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdatePerInstanceConfigs set(String parameterName, Object value) { + return (UpdatePerInstanceConfigs) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstanceGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstanceGroups.List request = compute.regionInstanceGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstanceGroups regionInstanceGroups() { + return new RegionInstanceGroups(); + } + + /** + * The "regionInstanceGroups" collection of methods. + */ + public class RegionInstanceGroups { + + /** + * Returns the specified instance group resource. + * + * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping this request. + * @param instanceGroup Name of the instance group resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroup) throws java.io.IOException { + Get result = new Get(project, region, instanceGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified instance group resource. + * + * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping this request. + * @param instanceGroup Name of the instance group resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroup.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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 Get setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** Name of the instance group resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** Name of the instance group resource to return. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** Name of the instance group resource to return. */ + public Get setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of instance group resources contained within the specified region. + * + * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping 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}/instanceGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of instance group resources contained within the specified region. + * + * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping 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.RegionInstanceGroupList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 List setRegion(java.lang.String region) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the instances in the specified instance group and displays information about the named + * ports. Depending on the specified options, this method can list all instances or only the + * instances that are running. The orderBy query parameter is not supported. + * + * Create a request for the method "regionInstanceGroups.listInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroup Name of the regional instance group for which we want to list the + instances. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupsListInstancesRequest} + * @return the request + */ + public ListInstances listInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.model.RegionInstanceGroupsListInstancesRequest content) throws java.io.IOException { + ListInstances result = new ListInstances(project, region, instanceGroup, content); + initialize(result); + return result; + } + + public class ListInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the instances in the specified instance group and displays information about the named + * ports. Depending on the specified options, this method can list all instances or only the + * instances that are running. The orderBy query parameter is not supported. + * + * Create a request for the method "regionInstanceGroups.listInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation.

+ * {@link ListInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 instanceGroup Name of the regional instance group for which we want to list the + instances. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupsListInstancesRequest} + * @since 1.13 + */ + protected ListInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.model.RegionInstanceGroupsListInstancesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.RegionInstanceGroupsListInstances.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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListInstances) super.set$Xgafv($Xgafv); + } + + @Override + public ListInstances setAccessToken(java.lang.String accessToken) { + return (ListInstances) super.setAccessToken(accessToken); + } + + @Override + public ListInstances setAlt(java.lang.String alt) { + return (ListInstances) super.setAlt(alt); + } + + @Override + public ListInstances setCallback(java.lang.String callback) { + return (ListInstances) super.setCallback(callback); + } + + @Override + public ListInstances setFields(java.lang.String fields) { + return (ListInstances) super.setFields(fields); + } + + @Override + public ListInstances setKey(java.lang.String key) { + return (ListInstances) super.setKey(key); + } + + @Override + public ListInstances setOauthToken(java.lang.String oauthToken) { + return (ListInstances) super.setOauthToken(oauthToken); + } + + @Override + public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListInstances setQuotaUser(java.lang.String quotaUser) { + return (ListInstances) super.setQuotaUser(quotaUser); + } + + @Override + public ListInstances setUploadType(java.lang.String uploadType) { + return (ListInstances) super.setUploadType(uploadType); + } + + @Override + public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListInstances setUserIp(java.lang.String userIp) { + return (ListInstances) 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 ListInstances 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 ListInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Name of the regional instance group for which we want to list the instances. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** Name of the regional instance group for which we want to list the instances. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** + * Name of the regional instance group for which we want to list the instances. + */ + public ListInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 ListInstances 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 ListInstances 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 ListInstances 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 ListInstances setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListInstances set(String parameterName, Object value) { + return (ListInstances) super.set(parameterName, value); + } + } + /** + * Sets the named ports for the specified regional instance group. + * + * Create a request for the method "regionInstanceGroups.setNamedPorts". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param instanceGroup The name of the regional instance group where the named ports are updated. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupsSetNamedPortsRequest} + * @return the request + */ + public SetNamedPorts setNamedPorts(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.model.RegionInstanceGroupsSetNamedPortsRequest content) throws java.io.IOException { + SetNamedPorts result = new SetNamedPorts(project, region, instanceGroup, content); + initialize(result); + return result; + } + + public class SetNamedPorts extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the named ports for the specified regional instance group. + * + * Create a request for the method "regionInstanceGroups.setNamedPorts". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation.

+ * {@link SetNamedPorts#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 instanceGroup The name of the regional instance group where the named ports are updated. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupsSetNamedPortsRequest} + * @since 1.13 + */ + protected SetNamedPorts(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.model.RegionInstanceGroupsSetNamedPortsRequest 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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { + return (SetNamedPorts) super.set$Xgafv($Xgafv); + } + + @Override + public SetNamedPorts setAccessToken(java.lang.String accessToken) { + return (SetNamedPorts) super.setAccessToken(accessToken); + } + + @Override + public SetNamedPorts setAlt(java.lang.String alt) { + return (SetNamedPorts) super.setAlt(alt); + } + + @Override + public SetNamedPorts setCallback(java.lang.String callback) { + return (SetNamedPorts) super.setCallback(callback); + } + + @Override + public SetNamedPorts setFields(java.lang.String fields) { + return (SetNamedPorts) super.setFields(fields); + } + + @Override + public SetNamedPorts setKey(java.lang.String key) { + return (SetNamedPorts) super.setKey(key); + } + + @Override + public SetNamedPorts setOauthToken(java.lang.String oauthToken) { + return (SetNamedPorts) super.setOauthToken(oauthToken); + } + + @Override + public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNamedPorts) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { + return (SetNamedPorts) super.setQuotaUser(quotaUser); + } + + @Override + public SetNamedPorts setUploadType(java.lang.String uploadType) { + return (SetNamedPorts) super.setUploadType(uploadType); + } + + @Override + public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetNamedPorts setUserIp(java.lang.String userIp) { + return (SetNamedPorts) 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 SetNamedPorts 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 SetNamedPorts setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the regional instance group where the named ports are updated. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the regional instance group where the named ports are updated. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the regional instance group where the named ports are updated. */ + public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 SetNamedPorts setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetNamedPorts set(String parameterName, Object value) { + return (SetNamedPorts) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionInstanceGroups.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionInstanceGroups.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstanceTemplates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstanceTemplates.List request = compute.regionInstanceTemplates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstanceTemplates regionInstanceTemplates() { + return new RegionInstanceTemplates(); + } + + /** + * The "regionInstanceTemplates" collection of methods. + */ + public class RegionInstanceTemplates { + + /** + * Deletes the specified instance template. Deleting an instance template is permanent and cannot be + * undone. + * + * Create a request for the method "regionInstanceTemplates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instanceTemplate The name of the instance template to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) throws java.io.IOException { + Delete result = new Delete(project, region, instanceTemplate); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANCE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified instance template. Deleting an instance template is permanent and cannot + * be undone. + * + * Create a request for the method "regionInstanceTemplates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instanceTemplate The name of the instance template to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) { + super(Compute.this, "DELETE", REST_PATH, null, 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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Delete 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; + } + + /** The name of the instance template to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** The name of the instance template to delete. + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** The name of the instance template to delete. */ + public Delete setInstanceTemplate(java.lang.String instanceTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instanceTemplate = instanceTemplate; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified instance template. + * + * Create a request for the method "regionInstanceTemplates.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 region The name of the region for this request. + * @param instanceTemplate The name of the instance template. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) throws java.io.IOException { + Get result = new Get(project, region, instanceTemplate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANCE_TEMPLATE_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 instance template. + * + * Create a request for the method "regionInstanceTemplates.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 region The name of the region for this request. + * @param instanceTemplate The name of the instance template. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplate.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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; + } + + /** The name of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** The name of the instance template. + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** The name of the instance template. */ + public Get setInstanceTemplate(java.lang.String instanceTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instanceTemplate = instanceTemplate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an instance template in the specified project and region using the global instance + * template whose URL is included in the request. + * + * Create a request for the method "regionInstanceTemplates.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceTemplate content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates an instance template in the specified project and region using the global instance + * template whose URL is included in the request. + * + * Create a request for the method "regionInstanceTemplates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceTemplate 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of instance templates that are contained within the specified project and + * region. + * + * Create a request for the method "regionInstanceTemplates.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 region The name of the regions 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}/instanceTemplates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of instance templates that are contained within the specified project and + * region. + * + * Create a request for the method "regionInstanceTemplates.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 region The name of the regions 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.InstanceTemplateList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 regions for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the regions for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the regions 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstances collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstances.List request = compute.regionInstances().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstances regionInstances() { + return new RegionInstances(); + } + + /** + * The "regionInstances" collection of methods. + */ + public class RegionInstances { + + /** + * Creates multiple instances in a given region. Count specifies the number of instances to create. + * + * Create a request for the method "regionInstances.bulkInsert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @return the request + */ + public BulkInsert bulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertInstanceResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, region, content); + initialize(result); + return result; + } + + public class BulkInsert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instances/bulkInsert"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates multiple instances in a given region. Count specifies the number of instances to + * create. + * + * Create a request for the method "regionInstances.bulkInsert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @since 1.13 + */ + protected BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertInstanceResource 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); + } + + @Override + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); + } + + @Override + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); + } + + @Override + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); + } + + @Override + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); + } + + @Override + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); + } + + @Override + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); + } + + @Override + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); + } + + @Override + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); + } + + @Override + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) 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 BulkInsert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public BulkInsert 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; + } + + /** + * 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 BulkInsert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstantSnapshotGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstantSnapshotGroups.List request = compute.regionInstantSnapshotGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstantSnapshotGroups regionInstantSnapshotGroups() { + return new RegionInstantSnapshotGroups(); + } + + /** + * The "regionInstantSnapshotGroups" collection of methods. + */ + public class RegionInstantSnapshotGroups { + + /** + * deletes a Regional InstantSnapshotGroup resource + * + * Create a request for the method "regionInstantSnapshotGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) throws java.io.IOException { + Delete result = new Delete(project, region, instantSnapshotGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANT_SNAPSHOT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * deletes a Regional InstantSnapshotGroup resource + * + * Create a request for the method "regionInstantSnapshotGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Delete 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 InstantSnapshotGroup resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroup; + + /** Name of the InstantSnapshotGroup resource to delete. + */ + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; + } + + /** Name of the InstantSnapshotGroup resource to delete. */ + public Delete setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshotGroup = instantSnapshotGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * returns the specified InstantSnapshotGroup resource in the specified region. + * + * Create a request for the method "regionInstantSnapshotGroups.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 region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) throws java.io.IOException { + Get result = new Get(project, region, instantSnapshotGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANT_SNAPSHOT_GROUP_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 InstantSnapshotGroup resource in the specified region. + * + * Create a request for the method "regionInstantSnapshotGroups.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 region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotGroup.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.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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 InstantSnapshotGroup resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroup; + + /** Name of the InstantSnapshotGroup resource to return. + */ + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; + } + + /** Name of the InstantSnapshotGroup resource to return. */ + public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshotGroup = instantSnapshotGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionInstantSnapshotGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionInstantSnapshotGroups.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshotGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstantSnapshotGroup 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** begin_interface: MixerMutationRequestBuilder */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroup; + + /** begin_interface: MixerMutationRequestBuilder + */ + public java.lang.String getSourceConsistencyGroup() { + return sourceConsistencyGroup; + } + + /** begin_interface: MixerMutationRequestBuilder */ + public Insert setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { + this.sourceConsistencyGroup = sourceConsistencyGroup; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified region. + * + * Create a request for the method "regionInstantSnapshotGroups.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 region The 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}/instantSnapshotGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * retrieves the list of InstantSnapshotGroup resources contained within the specified region. + * + * Create a request for the method "regionInstantSnapshotGroups.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 region The 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.ListInstantSnapshotGroups.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionInstantSnapshotGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionInstantSnapshotGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionInstantSnapshots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionInstantSnapshots.List request = compute.regionInstantSnapshots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionInstantSnapshots regionInstantSnapshots() { + return new RegionInstantSnapshots(); + } + + /** + * The "regionInstantSnapshots" collection of methods. + */ + public class RegionInstantSnapshots { + + /** + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single + * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on + * the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the + * data will be moved to the next corresponding instantSnapshot. + * + * For more information, seeDeleting instantSnapshots. + * + * Create a request for the method "regionInstantSnapshots.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) throws java.io.IOException { + Delete result = new Delete(project, region, instantSnapshot); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANT_SNAPSHOT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single + * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data + * on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, + * the data will be moved to the next corresponding instantSnapshot. + * + * For more information, seeDeleting instantSnapshots. + * + * Create a request for the method "regionInstantSnapshots.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) { + super(Compute.this, "DELETE", REST_PATH, null, 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.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Delete 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 InstantSnapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshot; + + /** Name of the InstantSnapshot resource to delete. + */ + public java.lang.String getInstantSnapshot() { + return instantSnapshot; + } + + /** Name of the InstantSnapshot resource to delete. */ + public Delete setInstantSnapshot(java.lang.String instantSnapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshot = instantSnapshot; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified InstantSnapshot resource in the specified region. + * + * Create a request for the method "regionInstantSnapshots.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 region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) throws java.io.IOException { + Get result = new Get(project, region, instantSnapshot); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 INSTANT_SNAPSHOT_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 InstantSnapshot resource in the specified region. + * + * Create a request for the method "regionInstantSnapshots.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 region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshot.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.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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 InstantSnapshot resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshot; + + /** Name of the InstantSnapshot resource to return. + */ + public java.lang.String getInstantSnapshot() { + return instantSnapshot; + } + + /** Name of the InstantSnapshot resource to return. */ + public Get setInstantSnapshot(java.lang.String instantSnapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshot = instantSnapshot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionInstantSnapshots.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionInstantSnapshots.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstantSnapshot 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of InstantSnapshot resources contained within the specified region. + * + * Create a request for the method "regionInstantSnapshots.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 region The 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}/instantSnapshots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of InstantSnapshot resources contained within the specified region. + * + * Create a request for the method "regionInstantSnapshots.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 region The 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.InstantSnapshotList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionInstantSnapshots.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionInstantSnapshots.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionNetworkEndpointGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionNetworkEndpointGroups.List request = compute.regionNetworkEndpointGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionNetworkEndpointGroups regionNetworkEndpointGroups() { + return new RegionNetworkEndpointGroups(); + } + + /** + * The "regionNetworkEndpointGroups" collection of methods. + */ + public class RegionNetworkEndpointGroups { + + /** + * Attach a list of network endpoints to the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region The name of the region where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionNetworkEndpointGroupsAttachEndpointsRequest} + * @return the request + */ + public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.RegionNetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { + AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, region, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class AttachNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Attach a list of network endpoints to the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionNetworkEndpointGroupsAttachEndpointsRequest} + * @since 1.13 + */ + protected AttachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.RegionNetworkEndpointGroupsAttachEndpointsRequest 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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); + } + + @Override + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); + } + + @Override + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); + } + + @Override + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); + } + + @Override + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) 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 AttachNetworkEndpoints setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the region where you want to create the network endpoint group. It should + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region where you want to create the network endpoint group. It should comply with + RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region where you want to create the network endpoint group. It should + * comply with RFC1035. + */ + public AttachNetworkEndpoints setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is + * configured as a backend of a backend service. + * + * Create a request for the method "regionNetworkEndpointGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) throws java.io.IOException { + Delete result = new Delete(project, region, networkEndpointGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is + * configured as a backend of a backend service. + * + * Create a request for the method "regionNetworkEndpointGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Delete setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Detach the network endpoint from the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region The name of the region where + the network endpoint group is located. It should comply with + RFC1035. + * @param networkEndpointGroup The name of the network endpoint group you are detaching network + endpoints from. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionNetworkEndpointGroupsDetachEndpointsRequest} + * @return the request + */ + public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.RegionNetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { + DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, region, networkEndpointGroup, content); + initialize(result); + return result; + } + + public class DetachNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Detach the network endpoint from the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region where + the network endpoint group is located. It should comply with + RFC1035. + * @param networkEndpointGroup The name of the network endpoint group you are detaching network + endpoints from. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionNetworkEndpointGroupsDetachEndpointsRequest} + * @since 1.13 + */ + protected DetachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.RegionNetworkEndpointGroupsDetachEndpointsRequest 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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); + } + + @Override + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); + } + + @Override + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); + } + + @Override + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); + } + + @Override + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) 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 DetachNetworkEndpoints setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ + public DetachNetworkEndpoints setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the network endpoint group you are detaching network endpoints from. It should + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group you are detaching network endpoints from. It should comply + with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group you are detaching network endpoints from. It should + * comply with RFC1035. + */ + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Returns the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.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 region The name of the region where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) throws java.io.IOException { + Get result = new Get(project, region, networkEndpointGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.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 region The name of the region where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Get setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** The name of the network endpoint group. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * + * Create a request for the method "regionNetworkEndpointGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs + * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To + * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private + * Service Connect NEGs): regional API - To manage NEGs with global scope (such as + * global internet NEGs):global API + * + * Create a request for the method "regionNetworkEndpointGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEndpointGroup 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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the region where you want to create the network endpoint group. It should + * comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region where you want to create the network endpoint group. It should comply with + RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of the region where you want to create the network endpoint group. It should + * comply with RFC1035. + */ + public Insert setRegion(java.lang.String region) { + this.region = region; + 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of regional network endpoint groups available to the specified project in the + * given region. + * + * Create a request for the method "regionNetworkEndpointGroups.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 region The name of theregion + where the network endpoint group is located. It should comply with RFC1035. + * @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}/networkEndpointGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of regional network endpoint groups available to the specified project in + * the given region. + * + * Create a request for the method "regionNetworkEndpointGroups.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 region The name of theregion + where the network endpoint group is located. It should comply with RFC1035. + * @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.NetworkEndpointGroupList.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."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 theregion where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of theregion where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of theregion where the network endpoint group is located. It should comply with + * RFC1035. + */ + public List setRegion(java.lang.String region) { + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the network endpoints in the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region The name of theregion + where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @return the request + */ + public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) throws java.io.IOException { + ListNetworkEndpoints result = new ListNetworkEndpoints(project, region, networkEndpointGroup); + initialize(result); + return result; + } + + public class ListNetworkEndpoints extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the network endpoints in the specified network endpoint group. + * + * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of theregion + where the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @since 1.13 + */ + protected ListNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + } + + @Override + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); + } + + @Override + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); + } + + @Override + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); + } + + @Override + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); + } + + @Override + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); + } + + @Override + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + } + + @Override + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + } + + @Override + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); + } + + @Override + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) 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 ListNetworkEndpoints 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 theregion where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of theregion where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The name of theregion where the network endpoint group is located. It should comply with + * RFC1035. + */ + public ListNetworkEndpoints setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group from which you want to generate a list of included network + endpoints. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionNetworkFirewallPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionNetworkFirewallPolicies.List request = compute.regionNetworkFirewallPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionNetworkFirewallPolicies regionNetworkFirewallPolicies() { + return new RegionNetworkFirewallPolicies(); + } + + /** + * The "regionNetworkFirewallPolicies" collection of methods. + */ + public class RegionNetworkFirewallPolicies { + + /** + * Inserts an association for the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.addAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * + * @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} + * @return the request + */ + public AddAssociation addAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(project, region, firewallPolicy, content); + initialize(result); + return result; + } + + public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + private final java.util.regex.Pattern ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Inserts an association for the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.addAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 AddAssociation(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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); + } + + @Override + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); + } + + @Override + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); + } + + @Override + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); + } + + @Override + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); + } + + @Override + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); + } + + @Override + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); + } + + @Override + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) 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 AddAssociation 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 AddAssociation 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 AddAssociation 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; + } + + /** + * Name of the firewall policy associated with the target network to swap association with. + * This field is mutually exclusive with 'replace_existing_association'. + */ + @com.google.api.client.util.Key + private java.lang.String associatedPolicyToBeReplaced; + + /** Name of the firewall policy associated with the target network to swap association with. This field + is mutually exclusive with 'replace_existing_association'. + */ + public java.lang.String getAssociatedPolicyToBeReplaced() { + return associatedPolicyToBeReplaced; + } + + /** + * Name of the firewall policy associated with the target network to swap association with. + * This field is mutually exclusive with 'replace_existing_association'. + */ + public AddAssociation setAssociatedPolicyToBeReplaced(java.lang.String associatedPolicyToBeReplaced) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN.matcher(associatedPolicyToBeReplaced).matches(), + "Parameter associatedPolicyToBeReplaced must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.associatedPolicyToBeReplaced = associatedPolicyToBeReplaced; + return this; + } + + /** + * Indicates whether or not to replace it if an association already exists. This is false by + * default, in which case an error will be returned if an association already exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; + + /** Indicates whether or not to replace it if an association already exists. This is false by default, + in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } + + /** + * Indicates whether or not to replace it if an association already exists. This is false by + * default, in which case an error will be returned if an association already exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; + 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 AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @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.FirewallPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(project, region, firewallPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Inserts a rule into a network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region 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.FirewallPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) 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 AddRule 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 AddRule 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 AddRule 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; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMaxPriority() { + return maxPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; + return this; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMinPriority() { + return minPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; + 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 AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Copies rules to the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.cloneRules". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. + * + * @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. + * @return the request + */ + public CloneRules cloneRules(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { + CloneRules result = new CloneRules(project, region, firewallPolicy); + initialize(result); + return result; + } + + public class CloneRules extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Copies rules to the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.cloneRules". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected CloneRules(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); + } + + @Override + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); + } + + @Override + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); + } + + @Override + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); + } + + @Override + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); + } + + @Override + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); + } + + @Override + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); + } + + @Override + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); + } + + @Override + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); + } + + @Override + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); + } + + @Override + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) 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 CloneRules 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 CloneRules 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 CloneRules 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 CloneRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The firewall policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceFirewallPolicy; + + /** The firewall policy from which to copy rules. + */ + public java.lang.String getSourceFirewallPolicy() { + return sourceFirewallPolicy; + } + + /** The firewall policy from which to copy rules. */ + public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { + this.sourceFirewallPolicy = sourceFirewallPolicy; + return this; + } + + @Override + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); + } + } + /** + * Deletes the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, firewallPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Deletes the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 delete. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to delete. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to delete. */ + public Delete 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to get. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { + Get result = new Get(project, region, firewallPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Returns the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to get. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 firewall policy to get. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to get. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to get. */ + public Get 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets an association with the specified name. + * + * Create a request for the method "regionNetworkFirewallPolicies.getAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(project, region, firewallPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Gets an association with the specified name. + * + * Create a request for the method "regionNetworkFirewallPolicies.getAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 which the queried association belongs. + * @since 1.13 + */ + protected GetAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } + + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } + + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } + + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } + + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } + + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } + + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) 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 GetAssociation 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 GetAssociation 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 which the queried association belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried association belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried association belongs. */ + public GetAssociation 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; + } + + /** The name of the association to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the firewall policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the firewall policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); + } + } + /** + * Returns the effective firewalls on a given network. + * + * Create a request for the method "regionNetworkFirewallPolicies.getEffectiveFirewalls". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param network Network reference + * @return the request + */ + public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String region, java.lang.String network) throws java.io.IOException { + GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, region, network); + initialize(result); + return result; + } + + public class GetEffectiveFirewalls extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 the effective firewalls on a given network. + * + * Create a request for the method "regionNetworkFirewallPolicies.getEffectiveFirewalls". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} 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 network Network reference + * @since 1.13 + */ + protected GetEffectiveFirewalls(java.lang.String project, java.lang.String region, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + } + + @Override + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + } + + @Override + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); + } + + @Override + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); + } + + @Override + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); + } + + @Override + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); + } + + @Override + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) 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 GetEffectiveFirewalls 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 GetEffectiveFirewalls 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; + } + + /** Network reference */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Network reference + */ + public java.lang.String getNetwork() { + return network; + } + + /** Network reference */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + @Override + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionNetworkFirewallPolicies.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionNetworkFirewallPolicies.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) 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 GetRule 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 GetRule 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 which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to which the queried rule belongs. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to which the queried rule belongs. */ + public GetRule 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; + } + + /** The priority of the rule to get from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the firewall policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new network firewall policy in the specified project and region. + * + * Create a request for the method "regionNetworkFirewallPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a new network firewall policy in the specified project and region. + * + * Create a request for the method "regionNetworkFirewallPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.FirewallPolicy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all the network firewall policies that have been configured for the specified project in + * the given region. + * + * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping 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}/firewallPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all the network firewall policies that have been configured for the specified project in + * the given region. + * + * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping 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.FirewallPolicyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.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 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.FirewallPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, firewallPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Patches the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.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 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.FirewallPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) { + super(Compute.this, "PATCH", 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 Patch 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * 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 compute server. After setting any optional + * parameters, call the {@link PatchAssociation#execute()} method to invoke the remote operation. + * + * @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} + * @return the request + */ + public PatchAssociation patchAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + PatchAssociation result = new PatchAssociation(project, region, firewallPolicy, content); + initialize(result); + return result; + } + + public class PatchAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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. + * + * Create a request for the method "regionNetworkFirewallPolicies.patchRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * + * @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.FirewallPolicyRule} + * @return the request + */ + public PatchRule patchRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(project, region, firewallPolicy, content); + initialize(result); + return result; + } + + public class PatchRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Patches a rule of the specified priority. + * + * Create a request for the method "regionNetworkFirewallPolicies.patchRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region 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.FirewallPolicyRule} + * @since 1.13 + */ + protected PatchRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); + } + + @Override + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); + } + + @Override + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); + } + + @Override + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); + } + + @Override + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); + } + + @Override + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); + } + + @Override + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) 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 PatchRule 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 PatchRule 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 PatchRule 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; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 PatchRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Removes an association for the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.removeAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * + * @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. + * @return the request + */ + public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(project, region, firewallPolicy); + initialize(result); + return result; + } + + public class RemoveAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Removes an association for the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.removeAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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. + * @since 1.13 + */ + protected RemoveAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); + } + + @Override + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); + } + + @Override + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); + } + + @Override + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); + } + + @Override + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); + } + + @Override + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); + } + + @Override + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); + } + + @Override + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) 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 RemoveAssociation 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 RemoveAssociation 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 RemoveAssociation 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; + } + + /** Name for the association that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the association that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the association that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; + 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 RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); + } + } + /** + * Deletes a rule of the specified priority. + * + * Create a request for the method "regionNetworkFirewallPolicies.removeRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * + * @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. + * @return the request + */ + public RemoveRule removeRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(project, region, firewallPolicy); + initialize(result); + return result; + } + + public class RemoveRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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}"); + + /** + * Deletes a rule of the specified priority. + * + * Create a request for the method "regionNetworkFirewallPolicies.removeRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. + * @since 1.13 + */ + protected RemoveRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); + } + + @Override + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); + } + + @Override + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); + } + + @Override + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); + } + + @Override + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); + } + + @Override + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); + } + + @Override + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); + } + + @Override + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) 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 RemoveRule 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 RemoveRule 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 RemoveRule 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; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionNotificationEndpoints collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionNotificationEndpoints.List request = compute.regionNotificationEndpoints().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionNotificationEndpoints regionNotificationEndpoints() { + return new RegionNotificationEndpoints(); + } + + /** + * The "regionNotificationEndpoints" collection of methods. + */ + public class RegionNotificationEndpoints { + + /** + * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the + * specified project. + * + * Create a request for the method "regionNotificationEndpoints.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/notificationEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the + * specified project. + * + * Create a request for the method "regionNotificationEndpoints.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NotificationEndpointAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified NotificationEndpoint in the given region + * + * Create a request for the method "regionNotificationEndpoints.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) throws java.io.IOException { + Delete result = new Delete(project, region, notificationEndpoint); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NOTIFICATION_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified NotificationEndpoint in the given region + * + * Create a request for the method "regionNotificationEndpoints.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) { + super(Compute.this, "DELETE", REST_PATH, null, 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.notificationEndpoint = com.google.api.client.util.Preconditions.checkNotNull(notificationEndpoint, "Required parameter notificationEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), + "Parameter notificationEndpoint must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 NotificationEndpoint resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String notificationEndpoint; + + /** Name of the NotificationEndpoint resource to delete. + */ + public java.lang.String getNotificationEndpoint() { + return notificationEndpoint; + } + + /** Name of the NotificationEndpoint resource to delete. */ + public Delete setNotificationEndpoint(java.lang.String notificationEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), + "Parameter notificationEndpoint must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.notificationEndpoint = notificationEndpoint; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified NotificationEndpoint resource in the given region. + * + * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping this request. + * @param notificationEndpoint Name of the NotificationEndpoint resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) throws java.io.IOException { + Get result = new Get(project, region, notificationEndpoint); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 NOTIFICATION_ENDPOINT_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 NotificationEndpoint resource in the given region. + * + * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping this request. + * @param notificationEndpoint Name of the NotificationEndpoint resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NotificationEndpoint.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.notificationEndpoint = com.google.api.client.util.Preconditions.checkNotNull(notificationEndpoint, "Required parameter notificationEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), + "Parameter notificationEndpoint must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 NotificationEndpoint resource to return. */ + @com.google.api.client.util.Key + private java.lang.String notificationEndpoint; + + /** Name of the NotificationEndpoint resource to return. + */ + public java.lang.String getNotificationEndpoint() { + return notificationEndpoint; + } + + /** Name of the NotificationEndpoint resource to return. */ + public Get setNotificationEndpoint(java.lang.String notificationEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), + "Parameter notificationEndpoint must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.notificationEndpoint = notificationEndpoint; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Create a NotificationEndpoint in the specified project in the given region using the parameters + * that are included in the request. + * + * Create a request for the method "regionNotificationEndpoints.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NotificationEndpoint} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NotificationEndpoint content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Create a NotificationEndpoint in the specified project in the given region using the parameters + * that are included in the request. + * + * Create a request for the method "regionNotificationEndpoints.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NotificationEndpoint} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NotificationEndpoint 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the NotificationEndpoints for a project in the given region. + * + * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping 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}/notificationEndpoints"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the NotificationEndpoints for a project in the given region. + * + * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping 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.NotificationEndpointList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionNotificationEndpoints.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionNotificationEndpoints.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionOperations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionOperations regionOperations() { + return new RegionOperations(); + } + + /** + * The "regionOperations" collection of methods. + */ + public class RegionOperations { + + /** + * Deletes the specified region-specific Operations resource. + * + * Create a request for the method "regionOperations.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(project, region, operation); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified region-specific Operations resource. + * + * Create a request for the method "regionOperations.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 Operations resource to delete, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to delete, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + public Delete setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves the specified region-specific Operations resource. + * + * Create a request for the method "regionOperations.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 region Name of the region for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String operation) throws java.io.IOException { + Get result = new Get(project, region, operation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves the specified region-specific Operations resource. + * + * Create a request for the method "regionOperations.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 region Name of the region for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 Operations resource to return, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Operation resources contained within the specified region. + * + * Create a request for the method "regionOperations.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 region 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}/operations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of Operation resources contained within the specified region. + * + * Create a request for the method "regionOperations.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 region 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.OperationList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits for the specified Operation resource to return as `DONE` or for the request to approach the + * 2 minute deadline, and retrieves the specified Operation resource. This method differs from the + * `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns + * the current state of the operation, which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: - In uncommon cases, when + * the server is overloaded, the request might return before the default deadline is reached, or + * might return after zero seconds. - If the default deadline is reached, there is no + * guarantee that the operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. + * + * Create a request for the method "regionOperations.wait". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Wait wait(java.lang.String project, java.lang.String region, java.lang.String operation) throws java.io.IOException { + Wait result = new Wait(project, region, operation); + initialize(result); + return result; + } + + public class Wait extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}/wait"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Waits for the specified Operation resource to return as `DONE` or for the request to approach + * the 2 minute deadline, and retrieves the specified Operation resource. This method differs from + * the `GET` method in that it waits for no more than the default deadline (2 minutes) and then + * returns the current state of the operation, which might be `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: - In uncommon cases, + * when the server is overloaded, the request might return before the default deadline is + * reached, or might return after zero seconds. - If the default deadline is reached, there + * is no guarantee that the operation is actually done when the method returns. Be prepared to + * retry if the operation is not `DONE`. + * + * Create a request for the method "regionOperations.wait". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 + */ + protected Wait(java.lang.String project, java.lang.String region, java.lang.String operation) { + super(Compute.this, "POST", REST_PATH, null, 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Wait setUserIp(java.lang.String userIp) { + return (Wait) 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 Wait 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Wait 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 Operations resource to return, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + public Wait setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionSecurityPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionSecurityPolicies.List request = compute.regionSecurityPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionSecurityPolicies regionSecurityPolicies() { + return new RegionSecurityPolicies(); + } + + /** + * The "regionSecurityPolicies" collection of methods. + */ + public class RegionSecurityPolicies { + + /** + * Inserts a rule into a security policy. + * + * Create a request for the method "regionSecurityPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(project, region, securityPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Inserts a rule into a security policy. + * + * Create a request for the method "regionSecurityPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) 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 AddRule 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 AddRule 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public AddRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. + * + * Create a request for the method "regionSecurityPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, securityPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified policy. + * + * Create a request for the method "regionSecurityPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 security policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to delete. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * List all of the ordered rules present in a single specified policy. + * + * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to get. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { + Get result = new Get(project, region, securityPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * List all of the ordered rules present in a single specified policy. + * + * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to get. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 security policy to get. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to get. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets a rule at the specified priority. + * + * Create a request for the method "regionSecurityPolicies.getRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetRule getRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { + GetRule result = new GetRule(project, region, securityPolicy); + initialize(result); + return result; + } + + public class GetRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets a rule at the specified priority. + * + * Create a request for the method "regionSecurityPolicies.getRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) 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 GetRule 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 GetRule 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 security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the security policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "regionSecurityPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "regionSecurityPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SecurityPolicy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * List all the policies that have been configured for the specified project and region. + * + * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping 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}/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * List all the policies that have been configured for the specified project and region. + * + * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping 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.SecurityPolicyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified policy with the data included in the request. To clear fields in the + * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be + * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and + * removeRule instead. + * + * Create a request for the method "regionSecurityPolicies.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, securityPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified policy with the data included in the request. To clear fields in the + * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be + * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and + * removeRule instead. + * + * Create a request for the method "regionSecurityPolicies.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "PATCH", 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and + * specify them in the updateMask. + * + * Create a request for the method "regionSecurityPolicies.patchRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public PatchRule patchRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(project, region, securityPolicy, content); + initialize(result); + return result; + } + + public class PatchRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty + * and specify them in the updateMask. + * + * Create a request for the method "regionSecurityPolicies.patchRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected PatchRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); + } + + @Override + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); + } + + @Override + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); + } + + @Override + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); + } + + @Override + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); + } + + @Override + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); + } + + @Override + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) 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 PatchRule 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 PatchRule 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Deletes a rule at the specified priority. + * + * Create a request for the method "regionSecurityPolicies.removeRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public RemoveRule removeRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(project, region, securityPolicy); + initialize(result); + return result; + } + + public class RemoveRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a rule at the specified priority. + * + * Create a request for the method "regionSecurityPolicies.removeRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected RemoveRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); + } + + @Override + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); + } + + @Override + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); + } + + @Override + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); + } + + @Override + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); + } + + @Override + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); + } + + @Override + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); + } + + @Override + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) 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 RemoveRule 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 RemoveRule 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to remove from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the security policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "regionSecurityPolicies.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "regionSecurityPolicies.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionSnapshotSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionSnapshotSettings.List request = compute.regionSnapshotSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionSnapshotSettings regionSnapshotSettings() { + return new RegionSnapshotSettings(); + } + + /** + * The "regionSnapshotSettings" collection of methods. + */ + public class RegionSnapshotSettings { + + /** + * Get region snapshot settings. + * + * Create a request for the method "regionSnapshotSettings.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 region Name of the region for this request. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { + Get result = new Get(project, region); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Get region snapshot settings. + * + * Create a request for the method "regionSnapshotSettings.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 region Name of the region for this request. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotSettings.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patch region snapshot settings. + * + * Create a request for the method "regionSnapshotSettings.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 Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SnapshotSettings content) throws java.io.IOException { + Patch result = new Patch(project, region, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Patch region snapshot settings. + * + * Create a request for the method "regionSnapshotSettings.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 Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SnapshotSettings content) { + super(Compute.this, "PATCH", 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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; + } + + /** + * 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + 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 RegionSnapshots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionSnapshots.List request = compute.regionSnapshots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionSnapshots regionSnapshots() { + return new RegionSnapshots(); + } + + /** + * The "regionSnapshots" collection of methods. + */ + public class RegionSnapshots { + + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for + * deletion is needed for subsequent snapshots, the data will be moved to the next corresponding + * snapshot. + * + * For more information, seeDeleting snapshots. + * + * Create a request for the method "regionSnapshots.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param snapshot Name of the snapshot resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String snapshot) throws java.io.IOException { + Delete result = new Delete(project, region, snapshot); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SNAPSHOT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + * For more information, seeDeleting snapshots. + * + * Create a request for the method "regionSnapshots.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param snapshot Name of the snapshot resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String snapshot) { + super(Compute.this, "DELETE", REST_PATH, null, 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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Delete 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 snapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the snapshot resource to delete. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the snapshot resource to delete. */ + public Delete setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified Snapshot resource. + * + * Create a request for the method "regionSnapshots.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 region Name of the region for this request. + * @param snapshot Name of the Snapshot resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String snapshot) throws java.io.IOException { + Get result = new Get(project, region, snapshot); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SNAPSHOT_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 Snapshot resource. + * + * Create a request for the method "regionSnapshots.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 region Name of the region for this request. + * @param snapshot Name of the Snapshot resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String snapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Snapshot.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 Snapshot resource to return. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the Snapshot resource to return. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the Snapshot resource to return. */ + public Get setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "regionSnapshots.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionSnapshots.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Snapshot 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of Snapshot resources contained within the specified region. + * + * Create a request for the method "regionSnapshots.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 region 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}/snapshots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of Snapshot resources contained within the specified region. + * + * Create a request for the method "regionSnapshots.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 region 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.SnapshotList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionSnapshots.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionSnapshots.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param snapshot Name of the snapshot resource to update. Should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionSnapshotUpdateKmsKeyRequest} + * @since 1.13 + */ + protected UpdateKmsKey(java.lang.String project, java.lang.String region, java.lang.String snapshot, com.google.api.services.compute.model.RegionSnapshotUpdateKmsKeyRequest 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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { + return (UpdateKmsKey) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateKmsKey setAccessToken(java.lang.String accessToken) { + return (UpdateKmsKey) super.setAccessToken(accessToken); + } + + @Override + public UpdateKmsKey setAlt(java.lang.String alt) { + return (UpdateKmsKey) super.setAlt(alt); + } + + @Override + public UpdateKmsKey setCallback(java.lang.String callback) { + return (UpdateKmsKey) super.setCallback(callback); + } + + @Override + public UpdateKmsKey setFields(java.lang.String fields) { + return (UpdateKmsKey) super.setFields(fields); + } + + @Override + public UpdateKmsKey setKey(java.lang.String key) { + return (UpdateKmsKey) super.setKey(key); + } + + @Override + public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { + return (UpdateKmsKey) super.setOauthToken(oauthToken); + } + + @Override + public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { + return (UpdateKmsKey) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateKmsKey setUploadType(java.lang.String uploadType) { + return (UpdateKmsKey) super.setUploadType(uploadType); + } + + @Override + public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateKmsKey setUserIp(java.lang.String userIp) { + return (UpdateKmsKey) 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 UpdateKmsKey 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public UpdateKmsKey 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 snapshot resource to update. Should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the snapshot resource to update. Should conform to RFC1035. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the snapshot resource to update. Should conform to RFC1035. */ + public UpdateKmsKey setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + 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 UpdateKmsKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateKmsKey set(String parameterName, Object value) { + return (UpdateKmsKey) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionSslCertificates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionSslCertificates.List request = compute.regionSslCertificates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionSslCertificates regionSslCertificates() { + return new RegionSslCertificates(); + } + + /** + * The "regionSslCertificates" collection of methods. + */ + public class RegionSslCertificates { + + /** + * Deletes the specified SslCertificate resource in the region. + * + * Create a request for the method "regionSslCertificates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslCertificate Name of the SslCertificate resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) throws java.io.IOException { + Delete result = new Delete(project, region, sslCertificate); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SSL_CERTIFICATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified SslCertificate resource in the region. + * + * Create a request for the method "regionSslCertificates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslCertificate Name of the SslCertificate resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) { + super(Compute.this, "DELETE", REST_PATH, null, 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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 SslCertificate resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String sslCertificate; + + /** Name of the SslCertificate resource to delete. + */ + public java.lang.String getSslCertificate() { + return sslCertificate; + } + + /** Name of the SslCertificate resource to delete. */ + public Delete setSslCertificate(java.lang.String sslCertificate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.sslCertificate = sslCertificate; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified SslCertificate resource in the specified region. Get a list of available + * SSL certificates by making a list() request. + * + * Create a request for the method "regionSslCertificates.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 region Name of the region scoping this request. + * @param sslCertificate Name of the SslCertificate resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) throws java.io.IOException { + Get result = new Get(project, region, sslCertificate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SSL_CERTIFICATE_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 SslCertificate resource in the specified region. Get a list of available + * SSL certificates by making a list() request. + * + * Create a request for the method "regionSslCertificates.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 region Name of the region scoping this request. + * @param sslCertificate Name of the SslCertificate resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificate.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 SslCertificate resource to return. */ + @com.google.api.client.util.Key + private java.lang.String sslCertificate; + + /** Name of the SslCertificate resource to return. + */ + public java.lang.String getSslCertificate() { + return sslCertificate; + } + + /** Name of the SslCertificate resource to return. */ + public Get setSslCertificate(java.lang.String sslCertificate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.sslCertificate = sslCertificate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a SslCertificate resource in the specified project and region using the data included in + * the request + * + * Create a request for the method "regionSslCertificates.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SslCertificate content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a SslCertificate resource in the specified project and region using the data included + * in the request + * + * Create a request for the method "regionSslCertificates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SslCertificate 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of SslCertificate resources available to the specified project in the + * specified region. + * + * Create a request for the method "regionSslCertificates.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 region Name of the region scoping 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}/sslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of SslCertificate resources available to the specified project in the + * specified region. + * + * Create a request for the method "regionSslCertificates.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 region Name of the region scoping 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.SslCertificateList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionSslPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionSslPolicies.List request = compute.regionSslPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionSslPolicies regionSslPolicies() { + return new RegionSslPolicies(); + } + + /** + * The "regionSslPolicies" collection of methods. + */ + public class RegionSslPolicies { + + /** + * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use + * by any TargetHttpsProxy or TargetSslProxy resources. + * + * Create a request for the method "regionSslPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, + and comply with RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, sslPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in + * use by any TargetHttpsProxy or TargetSslProxy resources. + * + * Create a request for the method "regionSslPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, + and comply with RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 SSL policy to delete. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Delete setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Lists all of the ordered rules present in a single specified policy. + * + * Create a request for the method "regionSslPolicies.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 region Name of the region scoping this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) throws java.io.IOException { + Get result = new Get(project, region, sslPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all of the ordered rules present in a single specified policy. + * + * Create a request for the method "regionSslPolicies.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 region Name of the region scoping this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPolicy.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Get setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified project and region using the data included in the request. + * + * Create a request for the method "regionSslPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a new policy in the specified project and region using the data included in the + * request. + * + * Create a request for the method "regionSslPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SslPolicy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all the SSL policies that have been configured for the specified project and region. + * + * Create a request for the method "regionSslPolicies.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 region Name of the region scoping 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}/sslPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all the SSL policies that have been configured for the specified project and region. + * + * Create a request for the method "regionSslPolicies.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 region Name of the region scoping 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.SslPoliciesList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists all features that can be specified in the SSL policy when using custom profile. + * + * Create a request for the method "regionSslPolicies.listAvailableFeatures". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @return the request + */ + public ListAvailableFeatures listAvailableFeatures(java.lang.String project, java.lang.String region) throws java.io.IOException { + ListAvailableFeatures result = new ListAvailableFeatures(project, region); + initialize(result); + return result; + } + + public class ListAvailableFeatures extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all features that can be specified in the SSL policy when using custom profile. + * + * Create a request for the method "regionSslPolicies.listAvailableFeatures". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote + * operation.

{@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} 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. + * @since 1.13 + */ + protected ListAvailableFeatures(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesListAvailableFeaturesResponse.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { + return (ListAvailableFeatures) super.set$Xgafv($Xgafv); + } + + @Override + public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { + return (ListAvailableFeatures) super.setAccessToken(accessToken); + } + + @Override + public ListAvailableFeatures setAlt(java.lang.String alt) { + return (ListAvailableFeatures) super.setAlt(alt); + } + + @Override + public ListAvailableFeatures setCallback(java.lang.String callback) { + return (ListAvailableFeatures) super.setCallback(callback); + } + + @Override + public ListAvailableFeatures setFields(java.lang.String fields) { + return (ListAvailableFeatures) super.setFields(fields); + } + + @Override + public ListAvailableFeatures setKey(java.lang.String key) { + return (ListAvailableFeatures) super.setKey(key); + } + + @Override + public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { + return (ListAvailableFeatures) super.setOauthToken(oauthToken); + } + + @Override + public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { + return (ListAvailableFeatures) super.setQuotaUser(quotaUser); + } + + @Override + public ListAvailableFeatures setUploadType(java.lang.String uploadType) { + return (ListAvailableFeatures) super.setUploadType(uploadType); + } + + @Override + public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListAvailableFeatures setUserIp(java.lang.String userIp) { + return (ListAvailableFeatures) 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListAvailableFeatures set(String parameterName, Object value) { + return (ListAvailableFeatures) super.set(parameterName, value); + } + } + /** + * Patches the specified SSL policy with the data included in the request. + * + * Create a request for the method "regionSslPolicies.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, sslPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Patches the specified SSL policy with the data included in the request. + * + * Create a request for the method "regionSslPolicies.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy content) { + super(Compute.this, "PATCH", 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Patch setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionTargetHttpProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionTargetHttpProxies.List request = compute.regionTargetHttpProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionTargetHttpProxies regionTargetHttpProxies() { + return new RegionTargetHttpProxies(); + } + + /** + * The "regionTargetHttpProxies" collection of methods. + */ + public class RegionTargetHttpProxies { + + /** + * Deletes the specified TargetHttpProxy resource. + * + * Create a request for the method "regionTargetHttpProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) throws java.io.IOException { + Delete result = new Delete(project, region, targetHttpProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetHttpProxy resource. + * + * Create a request for the method "regionTargetHttpProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 TargetHttpProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy resource to delete. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to delete. */ + public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetHttpProxy resource in the specified region. + * + * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) throws java.io.IOException { + Get result = new Get(project, region, targetHttpProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_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 TargetHttpProxy resource in the specified region. + * + * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxy.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 TargetHttpProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy resource to return. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to return. */ + public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetHttpProxy resource in the specified project and region using the data included in + * the request. + * + * Create a request for the method "regionTargetHttpProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a TargetHttpProxy resource in the specified project and region using the data included + * in the request. + * + * Create a request for the method "regionTargetHttpProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetHttpProxy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetHttpProxy resources available to the specified project in the + * specified region. + * + * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping 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}/targetHttpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of TargetHttpProxy resources available to the specified project in the + * specified region. + * + * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping 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.TargetHttpProxyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Changes the URL map for TargetHttpProxy. + * + * Create a request for the method "regionTargetHttpProxies.setUrlMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @return the request + */ + public SetUrlMap setUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { + SetUrlMap result = new SetUrlMap(project, region, targetHttpProxy, content); + initialize(result); + return result; + } + + public class SetUrlMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the URL map for TargetHttpProxy. + * + * Create a request for the method "regionTargetHttpProxies.setUrlMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @since 1.13 + */ + protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference 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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); + } + + @Override + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); + } + + @Override + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); + } + + @Override + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); + } + + @Override + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); + } + + @Override + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); + } + + @Override + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); + } + + @Override + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); + } + + @Override + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); + } + + @Override + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) 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 SetUrlMap 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 SetUrlMap 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 TargetHttpProxy to set a URL map for. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy to set a URL map for. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy to set a URL map for. */ + public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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 SetUrlMap setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionTargetHttpsProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionTargetHttpsProxies.List request = compute.regionTargetHttpsProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionTargetHttpsProxies regionTargetHttpsProxies() { + return new RegionTargetHttpsProxies(); + } + + /** + * The "regionTargetHttpsProxies" collection of methods. + */ + public class RegionTargetHttpsProxies { + + /** + * Deletes the specified TargetHttpsProxy resource. + * + * Create a request for the method "regionTargetHttpsProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) throws java.io.IOException { + Delete result = new Delete(project, region, targetHttpsProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetHttpsProxy resource. + * + * Create a request for the method "regionTargetHttpsProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 TargetHttpsProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to delete. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy resource to delete. */ + public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetHttpsProxy resource in the specified region. + * + * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) throws java.io.IOException { + Get result = new Get(project, region, targetHttpsProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_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 TargetHttpsProxy resource in the specified region. + * + * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 TargetHttpsProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to return. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy resource to return. */ + public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetHttpsProxy resource in the specified project and region using the data included + * in the request. + * + * Create a request for the method "regionTargetHttpsProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a TargetHttpsProxy resource in the specified project and region using the data included + * in the request. + * + * Create a request for the method "regionTargetHttpsProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetHttpsProxy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetHttpsProxy resources available to the specified project in the + * specified region. + * + * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping 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}/targetHttpsProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of TargetHttpsProxy resources available to the specified project in the + * specified region. + * + * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping 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.TargetHttpsProxyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified regional TargetHttpsProxy resource with the data included in the request. + * This method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "regionTargetHttpsProxies.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 Project ID for this request. + * @param region Name of the region for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { + Patch result = new Patch(project, region, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified regional TargetHttpsProxy resource with the data included in the request. + * This method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "regionTargetHttpsProxies.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 Project ID for this request. + * @param region Name of the region for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy content) { + super(Compute.this, "PATCH", 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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 TargetHttpsProxy resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to patch. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy resource to patch. */ + public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Replaces SslCertificates for TargetHttpsProxy. + * + * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an + SslCertificates resource for. + * @param content the {@link com.google.api.services.compute.model.RegionTargetHttpsProxiesSetSslCertificatesRequest} + * @return the request + */ + public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.RegionTargetHttpsProxiesSetSslCertificatesRequest content) throws java.io.IOException { + SetSslCertificates result = new SetSslCertificates(project, region, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetSslCertificates extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Replaces SslCertificates for TargetHttpsProxy. + * + * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an + SslCertificates resource for. + * @param content the {@link com.google.api.services.compute.model.RegionTargetHttpsProxiesSetSslCertificatesRequest} + * @since 1.13 + */ + protected SetSslCertificates(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.RegionTargetHttpsProxiesSetSslCertificatesRequest 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); + } + + @Override + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); + } + + @Override + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); + } + + @Override + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); + } + + @Override + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); + } + + @Override + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); + } + + @Override + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); + } + + @Override + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); + } + + @Override + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); + } + + @Override + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) 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 SetSslCertificates 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 SetSslCertificates 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 TargetHttpsProxy resource to set an SslCertificates resource for. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + */ + public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 SetSslCertificates setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); + } + } + /** + * Changes the URL map for TargetHttpsProxy. + * + * Create a request for the method "regionTargetHttpsProxies.setUrlMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @return the request + */ + public SetUrlMap setUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { + SetUrlMap result = new SetUrlMap(project, region, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetUrlMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the URL map for TargetHttpsProxy. + * + * Create a request for the method "regionTargetHttpsProxies.setUrlMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @since 1.13 + */ + protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); + } + + @Override + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); + } + + @Override + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); + } + + @Override + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); + } + + @Override + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); + } + + @Override + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); + } + + @Override + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); + } + + @Override + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); + } + + @Override + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); + } + + @Override + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) 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 SetUrlMap 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 SetUrlMap 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 TargetHttpsProxy to set a URL map for. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy to set a URL map for. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy to set a URL map for. */ + public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 SetUrlMap setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionTargetTcpProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionTargetTcpProxies.List request = compute.regionTargetTcpProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionTargetTcpProxies regionTargetTcpProxies() { + return new RegionTargetTcpProxies(); + } + + /** + * The "regionTargetTcpProxies" collection of methods. + */ + public class RegionTargetTcpProxies { + + /** + * Deletes the specified TargetTcpProxy resource. + * + * Create a request for the method "regionTargetTcpProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) throws java.io.IOException { + Delete result = new Delete(project, region, targetTcpProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_TCP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetTcpProxy resource. + * + * Create a request for the method "regionTargetTcpProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 TargetTcpProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetTcpProxy; + + /** Name of the TargetTcpProxy resource to delete. + */ + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; + } + + /** Name of the TargetTcpProxy resource to delete. */ + public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetTcpProxy = targetTcpProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetTcpProxy resource. + * + * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) throws java.io.IOException { + Get result = new Get(project, region, targetTcpProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_TCP_PROXY_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 TargetTcpProxy resource. + * + * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxy.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 TargetTcpProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetTcpProxy; + + /** Name of the TargetTcpProxy resource to return. + */ + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; + } + + /** Name of the TargetTcpProxy resource to return. */ + public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetTcpProxy = targetTcpProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetTcpProxy resource in the specified project and region using the data included in + * the request. + * + * Create a request for the method "regionTargetTcpProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetTcpProxy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a TargetTcpProxy resource in the specified project and region using the data included + * in the request. + * + * Create a request for the method "regionTargetTcpProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetTcpProxy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of TargetTcpProxy resources available to the specified project in a given + * region. + * + * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping 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}/targetTcpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of TargetTcpProxy resources available to the specified project in a given + * region. + * + * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping 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.TargetTcpProxyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionUrlMaps collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionUrlMaps.List request = compute.regionUrlMaps().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionUrlMaps regionUrlMaps() { + return new RegionUrlMaps(); + } + + /** + * The "regionUrlMaps" collection of methods. + */ + public class RegionUrlMaps { + + /** + * Deletes the specified UrlMap resource. + * + * Create a request for the method "regionUrlMaps.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String urlMap) throws java.io.IOException { + Delete result = new Delete(project, region, urlMap); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified UrlMap resource. + * + * Create a request for the method "regionUrlMaps.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String urlMap) { + super(Compute.this, "DELETE", REST_PATH, null, 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 UrlMap resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to delete. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to delete. */ + public Delete setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified UrlMap resource. + * + * Create a request for the method "regionUrlMaps.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 region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String urlMap) throws java.io.IOException { + Get result = new Get(project, region, urlMap); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_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 UrlMap resource. + * + * Create a request for the method "regionUrlMaps.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 region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String urlMap) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMap.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 UrlMap resource to return. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to return. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to return. */ + public Get setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + * Create a request for the method "regionUrlMaps.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + * Create a request for the method "regionUrlMaps.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.UrlMap 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of UrlMap resources available to the specified project in the specified + * region. + * + * Create a request for the method "regionUrlMaps.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 region Name of the region scoping 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}/urlMaps"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of UrlMap resources available to the specified project in the specified + * region. + * + * Create a request for the method "regionUrlMaps.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 region Name of the region scoping 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.UrlMapList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified UrlMap resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "regionUrlMaps.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Patch result = new Patch(project, region, urlMap, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified UrlMap resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "regionUrlMaps.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) { + super(Compute.this, "PATCH", 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 UrlMap resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to patch. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to patch. */ + public Patch setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Updates the specified UrlMap resource with the data included in the request. + * + * Create a request for the method "regionUrlMaps.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Update result = new Update(project, region, urlMap, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified UrlMap resource with the data included in the request. + * + * Create a request for the method "regionUrlMaps.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) { + super(Compute.this, "PUT", 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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 UrlMap resource to update. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to update. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to update. */ + public Update setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be + * run. Calling this method does NOT create the UrlMap. + * + * Create a request for the method "regionUrlMaps.validate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Validate#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to be validated as. + * @param content the {@link com.google.api.services.compute.model.RegionUrlMapsValidateRequest} + * @return the request + */ + public Validate validate(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.RegionUrlMapsValidateRequest content) throws java.io.IOException { + Validate result = new Validate(project, region, urlMap, content); + initialize(result); + return result; + } + + public class Validate extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/validate"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be + * run. Calling this method does NOT create the UrlMap. + * + * Create a request for the method "regionUrlMaps.validate". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Validate#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to be validated as. + * @param content the {@link com.google.api.services.compute.model.RegionUrlMapsValidateRequest} + * @since 1.13 + */ + protected Validate(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.RegionUrlMapsValidateRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.UrlMapsValidateResponse.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); + } + + @Override + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); + } + + @Override + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); + } + + @Override + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); + } + + @Override + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); + } + + @Override + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); + } + + @Override + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); + } + + @Override + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); + } + + @Override + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); + } + + @Override + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Validate setUserIp(java.lang.String userIp) { + return (Validate) 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 Validate 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 Validate 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 UrlMap resource to be validated as. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to be validated as. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to be validated as. */ + public Validate setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + @Override + public Validate set(String parameterName, Object value) { + return (Validate) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionZones collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RegionZones.List request = compute.regionZones().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RegionZones regionZones() { + return new RegionZones(); + } + + /** + * The "regionZones" collection of methods. + */ + public class RegionZones { + + /** + * Retrieves the list of Zone resources under the specific region available to the specified + * project. + * + * Create a request for the method "regionZones.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 region 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}/zones"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves the list of Zone resources under the specific region available to the specified + * project. + * + * Create a request for the method "regionZones.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 region 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.ZoneList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Regions collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Regions.List request = compute.regions().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Regions regions() { + return new Regions(); + } + + /** + * The "regions" collection of methods. + */ + public class Regions { + + /** + * Returns the specified Region resource. + * + * To decrease latency for this method, you can optionally omit any unneeded information from the + * response by using a field mask. This practice is especially recommended for unused quota + * information (the `quotas` field). To exclude one or more fields, set your request's `fields` + * query parameter to only include the fields you need. For example, to only include the `id` and + * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * + * This method fails if the quota information is unavailable for the region and if the organization + * policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when + * enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is + * unavailable for the region. It is recommended to use the default setting for the constraint + * unless your application requires the fail-closed behaviour for this method. + * + * Create a request for the method "regions.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 region Name of the region resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { + Get result = new Get(project, region); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified Region resource. + * + * To decrease latency for this method, you can optionally omit any unneeded information from the + * response by using a field mask. This practice is especially recommended for unused quota + * information (the `quotas` field). To exclude one or more fields, set your request's `fields` + * query parameter to only include the fields you need. For example, to only include the `id` and + * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * + * This method fails if the quota information is unavailable for the region and if the + * organization policy constraint compute.requireBasicQuotaInResponse is enforced. This + * constraint, when enforced, disables the fail-open behaviour when quota information (the + * `items.quotas` field) is unavailable for the region. It is recommended to use the default + * setting for the constraint unless your application requires the fail-closed behaviour for this + * method. + * + * Create a request for the method "regions.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 region Name of the region resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Region.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])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region resource to return. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region resource to return. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region resource to return. */ + 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])?|[1-9][0-9]{0,19}"); + } + this.region = region; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of region resources available to the specified project. + * + * To decrease latency for this method, you can optionally omit any unneeded information from the + * response by using a field mask. This practice is especially recommended for unused quota + * information (the `items.quotas` field). To exclude one or more fields, set your request's + * `fields` query parameter to only include the fields you need. For example, to only include the + * `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * + * This method fails if the quota information is unavailable for the region and if the organization + * policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when + * enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is + * unavailable for the region. It is recommended to use the default setting for the constraint + * unless your application requires the fail-closed behaviour for this method. + * + * Create a request for the method "regions.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/regions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of region resources available to the specified project. + * + * To decrease latency for this method, you can optionally omit any unneeded information from the + * response by using a field mask. This practice is especially recommended for unused quota + * information (the `items.quotas` field). To exclude one or more fields, set your request's + * `fields` query parameter to only include the fields you need. For example, to only include the + * `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. + * + * This method fails if the quota information is unavailable for the region and if the + * organization policy constraint compute.requireBasicQuotaInResponse is enforced. This + * constraint, when enforced, disables the fail-open behaviour when quota information (the + * `items.quotas` field) is unavailable for the region. It is recommended to use the default + * setting for the constraint unless your application requires the fail-closed behaviour for this + * method. + * + * Create a request for the method "regions.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ReliabilityRisks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ReliabilityRisks.List request = compute.reliabilityRisks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ReliabilityRisks reliabilityRisks() { + return new ReliabilityRisks(); + } + + /** + * The "reliabilityRisks" collection of methods. + */ + public class ReliabilityRisks { + + /** + * Returns the specified ReliabilityRisk resource. + * + * Create a request for the method "reliabilityRisks.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 reliabilityRisk Name of the ReliabilityRisk resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String reliabilityRisk) throws java.io.IOException { + Get result = new Get(project, reliabilityRisk); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/reliabilityRisks/{reliabilityRisk}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 RELIABILITY_RISK_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 ReliabilityRisk resource. + * + * Create a request for the method "reliabilityRisks.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 reliabilityRisk Name of the ReliabilityRisk resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String reliabilityRisk) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReliabilityRisk.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.reliabilityRisk = com.google.api.client.util.Preconditions.checkNotNull(reliabilityRisk, "Required parameter reliabilityRisk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RELIABILITY_RISK_PATTERN.matcher(reliabilityRisk).matches(), + "Parameter reliabilityRisk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 ReliabilityRisk resource to return. */ + @com.google.api.client.util.Key + private java.lang.String reliabilityRisk; + + /** Name of the ReliabilityRisk resource to return. + */ + public java.lang.String getReliabilityRisk() { + return reliabilityRisk; + } + + /** Name of the ReliabilityRisk resource to return. */ + public Get setReliabilityRisk(java.lang.String reliabilityRisk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RELIABILITY_RISK_PATTERN.matcher(reliabilityRisk).matches(), + "Parameter reliabilityRisk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.reliabilityRisk = reliabilityRisk; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of reliabilityRisks available in the specified project. + * + * Create a request for the method "reliabilityRisks.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/reliabilityRisks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of reliabilityRisks available in the specified project. + * + * Create a request for the method "reliabilityRisks.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReliabilityRisksListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ReservationBlocks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ReservationBlocks.List request = compute.reservationBlocks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ReservationBlocks reservationBlocks() { + return new ReservationBlocks(); + } + + /** + * The "reservationBlocks" collection of methods. + */ + public class ReservationBlocks { + + /** + * Retrieves information about the specified reservation block. + * + * Create a request for the method "reservationBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @param reservationBlock The name of the reservation block. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock) throws java.io.IOException { + Get result = new Get(project, zone, reservation, reservationBlock); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Retrieves information about the specified reservation block. + * + * Create a request for the method "reservationBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @param reservationBlock The name of the reservation block. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationBlocksGetResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + this.reservationBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationBlock, "Required parameter reservationBlock must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public Get setReservation(java.lang.String reservation) { + this.reservation = reservation; + return this; + } + + /** + * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationBlock; + + /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationBlock() { + return reservationBlock; + } + + /** + * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + */ + public Get setReservationBlock(java.lang.String reservationBlock) { + this.reservationBlock = reservationBlock; + return this; + } + + /** View of the Block. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the Block. + */ + public java.lang.String getView() { + return view; + } + + /** View of the Block. */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "reservationBlocks.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, parentResource, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "reservationBlocks.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 GetIamPolicy 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 or id of parent resource of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentResource; + + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } + + /** Name or id of parent resource of the resource for this request. */ + public GetIamPolicy setParentResource(java.lang.String parentResource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.parentResource = parentResource; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Retrieves a list of reservation blocks under a single reservation. + * + * Create a request for the method "reservationBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String reservation) throws java.io.IOException { + List result = new List(project, zone, reservation); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Retrieves a list of reservation blocks under a single reservation. + * + * Create a request for the method "reservationBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String reservation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationBlocksListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public List setReservation(java.lang.String reservation) { + this.reservation = reservation; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Allows customers to perform maintenance on a reservation block + * + * Create a request for the method "reservationBlocks.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @param reservationBlock The name of the reservation block. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationsBlocksPerformMaintenanceRequest} + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock, com.google.api.services.compute.model.ReservationsBlocksPerformMaintenanceRequest content) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, reservation, reservationBlock, content); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + /** + * Allows customers to perform maintenance on a reservation block + * + * Create a request for the method "reservationBlocks.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @param reservationBlock The name of the reservation block. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationsBlocksPerformMaintenanceRequest} + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock, com.google.api.services.compute.model.ReservationsBlocksPerformMaintenanceRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + this.reservationBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationBlock, "Required parameter reservationBlock must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) 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 PerformMaintenance setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public PerformMaintenance setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public PerformMaintenance setReservation(java.lang.String reservation) { + this.reservation = reservation; + return this; + } + + /** + * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationBlock; + + /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationBlock() { + return reservationBlock; + } + + /** + * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + */ + public PerformMaintenance setReservationBlock(java.lang.String reservationBlock) { + this.reservationBlock = reservationBlock; + 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 PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "reservationBlocks.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetNestedPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.model.ZoneSetNestedPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, parentResource, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "reservationBlocks.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of parent resource of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentResource; + + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } + + /** Name or id of parent resource of the resource for this request. */ + public TestIamPermissions setParentResource(java.lang.String parentResource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.parentResource = parentResource; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ReservationSlots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ReservationSlots reservationSlots() { + return new ReservationSlots(); + } + + /** + * The "reservationSlots" collection of methods. + */ + public class ReservationSlots { + + /** + * Retrieves information about the specified reservation slot. + * + * Create a request for the method "reservationSlots.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param parentName The name of the parent reservation and parent block, formatted as + reservations/{reservation_name}/re + * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param reservationSlot The name of the reservation slot, formatted as RFC1035 or a resource ID + number. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { + Get result = new Get(project, zone, parentName, reservationSlot); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Retrieves information about the specified reservation slot. + * + * Create a request for the method "reservationSlots.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param parentName The name of the parent reservation and parent block, formatted as + reservations/{reservation_name}/re + * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param reservationSlot The name of the reservation slot, formatted as RFC1035 or a resource ID + number. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsGetResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r + eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + public Get setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation slot, formatted as RFC1035 or a resource ID number. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the reservation slot, formatted as RFC1035 or a resource ID number. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** + * The name of the reservation slot, formatted as RFC1035 or a resource ID number. + */ + public Get setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Get health info on a reservation slot. + * + * Create a request for the method "reservationSlots.getHealth". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation, parent block and parent sub-block. In + the format of + reservations + * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser + * vation_sub_block_name} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { + GetHealth result = new GetHealth(project, zone, parentName, reservationSlot); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getHealth"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Get health info on a reservation slot. + * + * Create a request for the method "reservationSlots.getHealth". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

+ * {@link + * GetHealth#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation, parent block and parent sub-block. In + the format of + reservations + * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser + * vation_sub_block_name} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected GetHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); + } + + @Override + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); + } + + @Override + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); + } + + @Override + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); + } + + @Override + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); + } + + @Override + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); + } + + @Override + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); + } + + @Override + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); + } + + @Override + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); + } + + @Override + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) 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 GetHealth setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetHealth setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation, parent block and parent sub-block. In the format of res + * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock + * s/{reservation_sub_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation, parent block and parent sub-block. In the format of reservation + s/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_s + ub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation, parent block and parent sub-block. In the format of res + * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock + * s/{reservation_sub_block_name} + */ + public GetHealth setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + public GetHealth setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + 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 GetHealth setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); + } + } + /** + * Allows customers to get SBOM versions of a reservation slot. + * + * Create a request for the method "reservationSlots.getVersion". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + reservations/{reservation_name + * }/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_n + * ame} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSlotsGetVersionRequest} + * @return the request + */ + public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlotsGetVersionRequest content) throws java.io.IOException { + GetVersion result = new GetVersion(project, zone, parentName, reservationSlot, content); + initialize(result); + return result; + } + + public class GetVersion extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getVersion"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Allows customers to get SBOM versions of a reservation slot. + * + * Create a request for the method "reservationSlots.getVersion". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

+ * {@link + * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + reservations/{reservation_name + * }/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_n + * ame} + * @param reservationSlot The name of the reservation slot. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSlotsGetVersionRequest} + * @since 1.13 + */ + protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlotsGetVersionRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); + } + + @Override + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); + } + + @Override + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); + } + + @Override + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); + } + + @Override + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); + } + + @Override + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); + } + + @Override + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); + } + + @Override + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); + } + + @Override + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); + } + + @Override + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) 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 GetVersion setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetVersion setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of reservations/{reserva + * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub + * _block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of reservations/{reservation_nam + e}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of reservations/{reserva + * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub + * _block_name} + */ + public GetVersion setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + */ + public GetVersion setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + 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 GetVersion setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); + } + } + /** + * Retrieves a list of reservation slots under a single reservation. + * + * Create a request for the method "reservationSlots.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param parentName The name of the parent reservation and parent block, formatted as + reservations/{reservation_name}/re + * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String parentName) throws java.io.IOException { + List result = new List(project, zone, parentName); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Retrieves a list of reservation slots under a single reservation. + * + * Create a request for the method "reservationSlots.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 The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param parentName The name of the parent reservation and parent block, formatted as + reservations/{reservation_name}/re + * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String parentName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public List setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r + eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block, formatted as reservations/{reservation + * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo + * ck_name} + */ + public List setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update a reservation slot in the specified sub-block. + * + * Create a request for the method "reservationSlots.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param parentName The name of the sub-block resource. + * @param reservationSlot The name of the slot resource. + * @param content the {@link com.google.api.services.compute.model.ReservationSlot} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlot content) throws java.io.IOException { + Update result = new Update(project, zone, parentName, reservationSlot, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + + /** + * Update a reservation slot in the specified sub-block. + * + * Create a request for the method "reservationSlots.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param parentName The name of the sub-block resource. + * @param reservationSlot The name of the slot resource. + * @param content the {@link com.google.api.services.compute.model.ReservationSlot} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.model.ReservationSlot 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public Update setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Update setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the sub-block resource. */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the sub-block resource. + */ + public java.lang.String getParentName() { + return parentName; + } + + /** The name of the sub-block resource. */ + public Update setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); + } + this.parentName = parentName; + return this; + } + + /** The name of the slot resource. */ + @com.google.api.client.util.Key + private java.lang.String reservationSlot; + + /** The name of the slot resource. + */ + public java.lang.String getReservationSlot() { + return reservationSlot; + } + + /** The name of the slot resource. */ + public Update setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; + return this; + } + + /** The fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ReservationSubBlocks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ReservationSubBlocks.List request = compute.reservationSubBlocks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ReservationSubBlocks reservationSubBlocks() { + return new ReservationSubBlocks(); + } + + /** + * The "reservationSubBlocks" collection of methods. + */ + public class ReservationSubBlocks { + + /** + * Retrieves information about the specified reservation subBlock. + * + * Create a request for the method "reservationSubBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException { + Get result = new Get(project, zone, parentName, reservationSubBlock); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + + /** + * Retrieves information about the specified reservation subBlock. + * + * Create a request for the method "reservationSubBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSubBlocksGetResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public Get setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public Get setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + return this; + } + + /** View of the subBlock. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the subBlock. + */ + public java.lang.String getView() { + return view; + } + + /** View of the subBlock. */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "reservationSubBlocks.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, parentResource, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "reservationSubBlocks.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 GetIamPolicy 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 or id of parent resource of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentResource; + + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } + + /** Name or id of parent resource of the resource for this request. */ + public GetIamPolicy setParentResource(java.lang.String parentResource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.parentResource = parentResource; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Allows customers to get SBOM versions of a reservation subBlock. + * + * Create a request for the method "reservationSubBlocks.getVersion". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest} + * @return the request + */ + public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest content) throws java.io.IOException { + GetVersion result = new GetVersion(project, zone, parentName, reservationSubBlock, content); + initialize(result); + return result; + } + + public class GetVersion extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + + /** + * Allows customers to get SBOM versions of a reservation subBlock. + * + * Create a request for the method "reservationSubBlocks.getVersion". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

+ * {@link + * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest} + * @since 1.13 + */ + protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlocksGetVersionRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); + } + + @Override + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); + } + + @Override + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); + } + + @Override + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); + } + + @Override + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); + } + + @Override + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); + } + + @Override + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); + } + + @Override + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); + } + + @Override + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); + } + + @Override + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) 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 GetVersion setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetVersion setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public GetVersion setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public GetVersion setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + 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 GetVersion setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); + } + } + /** + * Retrieves a list of reservation subBlocks under a single reservation. + * + * Create a request for the method "reservationSubBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String parentName) throws java.io.IOException { + List result = new List(project, zone, parentName); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + + /** + * Retrieves a list of reservation subBlocks under a single reservation. + * + * Create a request for the method "reservationSubBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String parentName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSubBlocksListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public List setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Allows customers to perform maintenance on a reservation subBlock + * + * Create a request for the method "reservationSubBlocks.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, parentName, reservationSubBlock); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + + /** + * Allows customers to perform maintenance on a reservation subBlock + * + * Create a request for the method "reservationSubBlocks.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) 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 PerformMaintenance setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public PerformMaintenance setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public PerformMaintenance setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public PerformMaintenance setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + 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 PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } + /** + * Allows customers to report a faulty subBlock. + * + * Create a request for the method "reservationSubBlocks.reportFaulty". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ReportFaulty#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksReportFaultyRequest} + * @return the request + */ + public ReportFaulty reportFaulty(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlocksReportFaultyRequest content) throws java.io.IOException { + ReportFaulty result = new ReportFaulty(project, zone, parentName, reservationSubBlock, content); + initialize(result); + return result; + } + + public class ReportFaulty extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + + /** + * Allows customers to report a faulty subBlock. + * + * Create a request for the method "reservationSubBlocks.reportFaulty". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ReportFaulty#execute()} method to invoke the remote operation.

+ * {@link + * ReportFaulty#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 Name of the zone for this request. Zone name should conform to RFC1035. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksReportFaultyRequest} + * @since 1.13 + */ + protected ReportFaulty(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlocksReportFaultyRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ReportFaulty set$Xgafv(java.lang.String $Xgafv) { + return (ReportFaulty) super.set$Xgafv($Xgafv); + } + + @Override + public ReportFaulty setAccessToken(java.lang.String accessToken) { + return (ReportFaulty) super.setAccessToken(accessToken); + } + + @Override + public ReportFaulty setAlt(java.lang.String alt) { + return (ReportFaulty) super.setAlt(alt); + } + + @Override + public ReportFaulty setCallback(java.lang.String callback) { + return (ReportFaulty) super.setCallback(callback); + } + + @Override + public ReportFaulty setFields(java.lang.String fields) { + return (ReportFaulty) super.setFields(fields); + } + + @Override + public ReportFaulty setKey(java.lang.String key) { + return (ReportFaulty) super.setKey(key); + } + + @Override + public ReportFaulty setOauthToken(java.lang.String oauthToken) { + return (ReportFaulty) super.setOauthToken(oauthToken); + } + + @Override + public ReportFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReportFaulty) super.setPrettyPrint(prettyPrint); + } + + @Override + public ReportFaulty setQuotaUser(java.lang.String quotaUser) { + return (ReportFaulty) super.setQuotaUser(quotaUser); + } + + @Override + public ReportFaulty setUploadType(java.lang.String uploadType) { + return (ReportFaulty) super.setUploadType(uploadType); + } + + @Override + public ReportFaulty setUploadProtocol(java.lang.String uploadProtocol) { + return (ReportFaulty) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ReportFaulty setUserIp(java.lang.String userIp) { + return (ReportFaulty) 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 ReportFaulty setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public ReportFaulty setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public ReportFaulty setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + return this; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + */ + public ReportFaulty setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + 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 ReportFaulty setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ReportFaulty set(String parameterName, Object value) { + return (ReportFaulty) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "reservationSubBlocks.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetNestedPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.model.ZoneSetNestedPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, parentResource, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "reservationSubBlocks.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param parentResource Name or id of parent resource of the resource for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of parent resource of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentResource; + + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } + + /** Name or id of parent resource of the resource for this request. */ + public TestIamPermissions setParentResource(java.lang.String parentResource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), + "Parameter parentResource must conform to the pattern " + + "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); + } + this.parentResource = parentResource; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Reservations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Reservations.List request = compute.reservations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Reservations reservations() { + return new Reservations(); + } + + /** + * The "reservations" collection of methods. + */ + public class Reservations { + + /** + * Retrieves an aggregated list of reservations. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "reservations.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/reservations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of reservations. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "reservations.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified reservation. + * + * Create a request for the method "reservations.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String reservation) throws java.io.IOException { + Delete result = new Delete(project, zone, reservation); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESERVATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified reservation. + * + * Create a request for the method "reservations.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 Name of the zone for this request. + * @param reservation Name of the reservation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String reservation) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Delete 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 reservation to delete. */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** Name of the reservation to delete. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** Name of the reservation to delete. */ + public Delete setReservation(java.lang.String reservation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.reservation = reservation; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves information about the specified reservation. + * + * Create a request for the method "reservations.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 zone Name of the zone for this request. + * @param reservation Name of the reservation to retrieve. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String reservation) throws java.io.IOException { + Get result = new Get(project, zone, reservation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESERVATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves information about the specified reservation. + * + * Create a request for the method "reservations.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 zone Name of the zone for this request. + * @param reservation Name of the reservation to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String reservation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Reservation.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])?"); + } + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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 reservation to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** Name of the reservation to retrieve. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** Name of the reservation to retrieve. */ + public Get setReservation(java.lang.String reservation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.reservation = reservation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "reservations.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "reservations.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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 Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Reservation} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Reservation 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * A list of all the reservations that have been configured for the specified project in specified + * zone. + * + * Create a request for the method "reservations.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 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}/reservations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * A list of all the reservations that have been configured for the specified project in specified + * zone. + * + * Create a request for the method "reservations.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 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.ReservationList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Perform maintenance on an extended reservation + * + * Create a request for the method "reservations.performMaintenance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationsPerformMaintenanceRequest} + * @return the request + */ + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.model.ReservationsPerformMaintenanceRequest content) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, reservation, content); + initialize(result); + return result; + } + + public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern RESERVATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Perform maintenance on an extended reservation + * + * Create a request for the method "reservations.performMaintenance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param reservation The name of the reservation. + Name should conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.ReservationsPerformMaintenanceRequest} + * @since 1.13 + */ + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.model.ReservationsPerformMaintenanceRequest 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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); + } + + @Override + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); + } + + @Override + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); + } + + @Override + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); + } + + @Override + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); + } + + @Override + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); + } + + @Override + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); + } + + @Override + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + } + + @Override + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); + } + + @Override + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); + } + + @Override + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) 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 PerformMaintenance setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public PerformMaintenance setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. + */ + public PerformMaintenance setReservation(java.lang.String reservation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.reservation = reservation; + 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 PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } + /** + * Resizes the reservation (applicable to standalone reservations only). For more information, + * readModifying reservations. + * + * Create a request for the method "reservations.resize". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to update. + * @param content the {@link com.google.api.services.compute.model.ReservationsResizeRequest} + * @return the request + */ + public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.model.ReservationsResizeRequest content) throws java.io.IOException { + Resize result = new Resize(project, zone, reservation, content); + initialize(result); + return result; + } + + public class Resize extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/resize"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESERVATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Resizes the reservation (applicable to standalone reservations only). For more information, + * readModifying reservations. + * + * Create a request for the method "reservations.resize". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link + * Resize#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 Name of the zone for this request. + * @param reservation Name of the reservation to update. + * @param content the {@link com.google.api.services.compute.model.ReservationsResizeRequest} + * @since 1.13 + */ + protected Resize(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.model.ReservationsResizeRequest 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.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])?"); + } + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); + } + + @Override + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); + } + + @Override + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); + } + + @Override + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); + } + + @Override + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); + } + + @Override + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); + } + + @Override + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); + } + + @Override + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); + } + + @Override + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); + } + + @Override + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resize setUserIp(java.lang.String userIp) { + return (Resize) 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 Resize 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Resize 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 reservation to update. */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** Name of the reservation to update. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** Name of the reservation to update. */ + public Resize setReservation(java.lang.String reservation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.reservation = reservation; + 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 Resize setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "reservations.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "reservations.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

{@link + * Update#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 Name of the zone for this request. + * @param reservation Name of the reservation to update. + * @param content the {@link com.google.api.services.compute.model.Reservation} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.model.Reservation content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Update 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 reservation to update. */ + @com.google.api.client.util.Key + private java.lang.String reservation; + + /** Name of the reservation to update. + */ + public java.lang.String getReservation() { + return reservation; + } + + /** Name of the reservation to update. */ + public Update setReservation(java.lang.String reservation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), + "Parameter reservation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.reservation = reservation; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Update setPaths(java.util.List paths) { + this.paths = paths; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ResourcePolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ResourcePolicies.List request = compute.resourcePolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ResourcePolicies resourcePolicies() { + return new ResourcePolicies(); + } + + /** + * The "resourcePolicies" collection of methods. + */ + public class ResourcePolicies { + + /** + * Retrieves an aggregated list of resource policies. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "resourcePolicies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/resourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of resource policies. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "resourcePolicies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ResourcePolicyAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified resource policy. + * + * Create a request for the method "resourcePolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) throws java.io.IOException { + Delete result = new Delete(project, region, resourcePolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified resource policy. + * + * Create a request for the method "resourcePolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.resourcePolicy = com.google.api.client.util.Preconditions.checkNotNull(resourcePolicy, "Required parameter resourcePolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), + "Parameter resourcePolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 resource policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String resourcePolicy; + + /** Name of the resource policy to delete. + */ + public java.lang.String getResourcePolicy() { + return resourcePolicy; + } + + /** Name of the resource policy to delete. */ + public Delete setResourcePolicy(java.lang.String resourcePolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), + "Parameter resourcePolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resourcePolicy = resourcePolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves all information of the specified resource policy. + * + * Create a request for the method "resourcePolicies.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 region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to retrieve. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) throws java.io.IOException { + Get result = new Get(project, region, resourcePolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves all information of the specified resource policy. + * + * Create a request for the method "resourcePolicies.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 region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ResourcePolicy.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.resourcePolicy = com.google.api.client.util.Preconditions.checkNotNull(resourcePolicy, "Required parameter resourcePolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), + "Parameter resourcePolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 resource policy to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String resourcePolicy; + + /** Name of the resource policy to retrieve. + */ + public java.lang.String getResourcePolicy() { + return resourcePolicy; + } + + /** Name of the resource policy to retrieve. */ + public Get setResourcePolicy(java.lang.String resourcePolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), + "Parameter resourcePolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resourcePolicy = resourcePolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "resourcePolicies.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "resourcePolicies.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ResourcePolicy 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * A list all the resource policies that have been configured for the specified project in specified + * region. + * + * Create a request for the method "resourcePolicies.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 region 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}/resourcePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * A list all the resource policies that have been configured for the specified project in + * specified region. + * + * Create a request for the method "resourcePolicies.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 region 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.ResourcePolicyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Modify the specified resource policy. + * + * Create a request for the method "resourcePolicies.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 Project ID for this request. + * @param region Name of the region for this request. + * @param resourcePolicy Id of the resource policy to patch. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy, com.google.api.services.compute.model.ResourcePolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, resourcePolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Modify the specified resource policy. + * + * Create a request for the method "resourcePolicies.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 Project ID for this request. + * @param region Name of the region for this request. + * @param resourcePolicy Id of the resource policy to patch. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy, com.google.api.services.compute.model.ResourcePolicy content) { + super(Compute.this, "PATCH", 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.resourcePolicy = com.google.api.client.util.Preconditions.checkNotNull(resourcePolicy, "Required parameter resourcePolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), + "Parameter resourcePolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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; + } + + /** Id of the resource policy to patch. */ + @com.google.api.client.util.Key + private java.lang.String resourcePolicy; + + /** Id of the resource policy to patch. + */ + public java.lang.String getResourcePolicy() { + return resourcePolicy; + } + + /** Id of the resource policy to patch. */ + public Patch setResourcePolicy(java.lang.String resourcePolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), + "Parameter resourcePolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resourcePolicy = resourcePolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "resourcePolicies.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "resourcePolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RolloutPlans collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.RolloutPlans.List request = compute.rolloutPlans().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public RolloutPlans rolloutPlans() { + return new RolloutPlans(); + } + + /** + * The "rolloutPlans" collection of methods. + */ + public class RolloutPlans { + + /** + * Deletes a RolloutPlan. + * + * Create a request for the method "rolloutPlans.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param rolloutPlan Name of the RolloutPlan resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { + Delete result = new Delete(project, rolloutPlan); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PLAN_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a RolloutPlan. + * + * Create a request for the method "rolloutPlans.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 rolloutPlan Name of the RolloutPlan resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String rolloutPlan) { + super(Compute.this, "DELETE", REST_PATH, null, 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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 RolloutPlan resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** Name of the RolloutPlan resource to delete. + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** Name of the RolloutPlan resource to delete. */ + public Delete setRolloutPlan(java.lang.String rolloutPlan) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rolloutPlan = rolloutPlan; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single project-scoped RolloutPlan. + * + * Create a request for the method "rolloutPlans.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 rolloutPlan Name of the persistent rollout plan to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { + Get result = new Get(project, rolloutPlan); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PLAN_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a single project-scoped RolloutPlan. + * + * Create a request for the method "rolloutPlans.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 rolloutPlan Name of the persistent rollout plan to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String rolloutPlan) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlan.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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 persistent rollout plan to return. */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** Name of the persistent rollout plan to return. + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** Name of the persistent rollout plan to return. */ + public Get setRolloutPlan(java.lang.String rolloutPlan) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rolloutPlan = rolloutPlan; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new RolloutPlan in a given project and location. + * + * Create a request for the method "rolloutPlans.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.RolloutPlan content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new RolloutPlan in a given project and location. + * + * Create a request for the method "rolloutPlans.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.RolloutPlan} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.RolloutPlan 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists RolloutPlans in a given project and location. + * + * Create a request for the method "rolloutPlans.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists RolloutPlans in a given project and location. + * + * Create a request for the method "rolloutPlans.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlansListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Rollouts collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Rollouts.List request = compute.rollouts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Rollouts rollouts() { + return new Rollouts(); + } + + /** + * The "rollouts" collection of methods. + */ + public class Rollouts { + + /** + * Advances a Rollout to the next wave, or completes it if no waves remain. + * + * Create a request for the method "rollouts.advance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Advance#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param rollout Required. Name of the Rollout resource to advance. + * @return the request + */ + public Advance advance(java.lang.String project, java.lang.String rollout) throws java.io.IOException { + Advance result = new Advance(project, rollout); + initialize(result); + return result; + } + + public class Advance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}/advance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Advances a Rollout to the next wave, or completes it if no waves remain. + * + * Create a request for the method "rollouts.advance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Advance#execute()} method to invoke the remote operation.

+ * {@link + * Advance#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 rollout Required. Name of the Rollout resource to advance. + * @since 1.13 + */ + protected Advance(java.lang.String project, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Advance set$Xgafv(java.lang.String $Xgafv) { + return (Advance) super.set$Xgafv($Xgafv); + } + + @Override + public Advance setAccessToken(java.lang.String accessToken) { + return (Advance) super.setAccessToken(accessToken); + } + + @Override + public Advance setAlt(java.lang.String alt) { + return (Advance) super.setAlt(alt); + } + + @Override + public Advance setCallback(java.lang.String callback) { + return (Advance) super.setCallback(callback); + } + + @Override + public Advance setFields(java.lang.String fields) { + return (Advance) super.setFields(fields); + } + + @Override + public Advance setKey(java.lang.String key) { + return (Advance) super.setKey(key); + } + + @Override + public Advance setOauthToken(java.lang.String oauthToken) { + return (Advance) super.setOauthToken(oauthToken); + } + + @Override + public Advance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Advance) super.setPrettyPrint(prettyPrint); + } + + @Override + public Advance setQuotaUser(java.lang.String quotaUser) { + return (Advance) super.setQuotaUser(quotaUser); + } + + @Override + public Advance setUploadType(java.lang.String uploadType) { + return (Advance) super.setUploadType(uploadType); + } + + @Override + public Advance setUploadProtocol(java.lang.String uploadProtocol) { + return (Advance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Advance setUserIp(java.lang.String userIp) { + return (Advance) 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 Advance 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 Rollout resource to advance. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to advance. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to advance. */ + public Advance setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** Required. Wave number of the current wave. */ + @com.google.api.client.util.Key + private java.lang.Long currentWaveNumber; + + /** Required. Wave number of the current wave. + */ + public java.lang.Long getCurrentWaveNumber() { + return currentWaveNumber; + } + + /** Required. Wave number of the current wave. */ + public Advance setCurrentWaveNumber(java.lang.Long currentWaveNumber) { + this.currentWaveNumber = currentWaveNumber; + 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 Advance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Advance set(String parameterName, Object value) { + return (Advance) super.set(parameterName, value); + } + } + /** + * Cancels a Rollout. + * + * Create a request for the method "rollouts.cancel". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param rollout Name of the Rollout resource to cancel. + * @return the request + */ + public Cancel cancel(java.lang.String project, java.lang.String rollout) throws java.io.IOException { + Cancel result = new Cancel(project, rollout); + initialize(result); + return result; + } + + public class Cancel extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Cancels a Rollout. + * + * Create a request for the method "rollouts.cancel". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link + * Cancel#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 rollout Name of the Rollout resource to cancel. + * @since 1.13 + */ + protected Cancel(java.lang.String project, java.lang.String rollout) { + super(Compute.this, "PATCH", REST_PATH, null, 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) 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 Cancel 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 Rollout resource to cancel. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the Rollout resource to cancel. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the Rollout resource to cancel. */ + public Cancel setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + 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 Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the + * rollout without taking any further actions. Note that products must support at least one of + * these options, however, it does not need to support both. + */ + @com.google.api.client.util.Key + private java.lang.Boolean rollback; + + /** Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the rollout + without taking any further actions. Note that products must support at least one of these options, + however, it does not need to support both. + */ + public java.lang.Boolean getRollback() { + return rollback; + } + + /** + * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the + * rollout without taking any further actions. Note that products must support at least one of + * these options, however, it does not need to support both. + */ + public Cancel setRollback(java.lang.Boolean rollback) { + this.rollback = rollback; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a Rollout. + * + * Create a request for the method "rollouts.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param rollout Name of the Rollout resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String rollout) throws java.io.IOException { + Delete result = new Delete(project, rollout); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a Rollout. + * + * Create a request for the method "rollouts.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 rollout Name of the Rollout resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String rollout) { + super(Compute.this, "DELETE", REST_PATH, null, 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Rollout resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the Rollout resource to delete. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the Rollout resource to delete. */ + public Delete setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single project-scoped Rollout. + * + * Create a request for the method "rollouts.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 rollout Name of the persistent rollout to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String rollout) throws java.io.IOException { + Get result = new Get(project, rollout); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a single project-scoped Rollout. + * + * Create a request for the method "rollouts.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 rollout Name of the persistent rollout to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String rollout) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Rollout.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 persistent rollout to return. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the persistent rollout to return. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the persistent rollout to return. */ + public Get setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Rollouts in a given project and location. + * + * Create a request for the method "rollouts.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/rollouts"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists Rollouts in a given project and location. + * + * Create a request for the method "rollouts.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutsListResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Pauses a Rollout. + * + * Create a request for the method "rollouts.pause". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param rollout Required. Name of the Rollout resource to pause. + * @return the request + */ + public Pause pause(java.lang.String project, java.lang.String rollout) throws java.io.IOException { + Pause result = new Pause(project, rollout); + initialize(result); + return result; + } + + public class Pause extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}/pause"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Pauses a Rollout. + * + * Create a request for the method "rollouts.pause". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation.

{@link + * Pause#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 rollout Required. Name of the Rollout resource to pause. + * @since 1.13 + */ + protected Pause(java.lang.String project, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Pause set$Xgafv(java.lang.String $Xgafv) { + return (Pause) super.set$Xgafv($Xgafv); + } + + @Override + public Pause setAccessToken(java.lang.String accessToken) { + return (Pause) super.setAccessToken(accessToken); + } + + @Override + public Pause setAlt(java.lang.String alt) { + return (Pause) super.setAlt(alt); + } + + @Override + public Pause setCallback(java.lang.String callback) { + return (Pause) super.setCallback(callback); + } + + @Override + public Pause setFields(java.lang.String fields) { + return (Pause) super.setFields(fields); + } + + @Override + public Pause setKey(java.lang.String key) { + return (Pause) super.setKey(key); + } + + @Override + public Pause setOauthToken(java.lang.String oauthToken) { + return (Pause) super.setOauthToken(oauthToken); + } + + @Override + public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pause) super.setPrettyPrint(prettyPrint); + } + + @Override + public Pause setQuotaUser(java.lang.String quotaUser) { + return (Pause) super.setQuotaUser(quotaUser); + } + + @Override + public Pause setUploadType(java.lang.String uploadType) { + return (Pause) super.setUploadType(uploadType); + } + + @Override + public Pause setUploadProtocol(java.lang.String uploadProtocol) { + return (Pause) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Pause setUserIp(java.lang.String userIp) { + return (Pause) 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 Pause 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 Rollout resource to pause. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to pause. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to pause. */ + public Pause setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the + current etag of the Rollout. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + public Pause 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 + * 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 Pause setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Pause set(String parameterName, Object value) { + return (Pause) super.set(parameterName, value); + } + } + /** + * Resumes a Rollout. + * + * Create a request for the method "rollouts.resume". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param rollout Required. Name of the Rollout resource to resume. + * @return the request + */ + public Resume resume(java.lang.String project, java.lang.String rollout) throws java.io.IOException { + Resume result = new Resume(project, rollout); + initialize(result); + return result; + } + + public class Resume extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}/resume"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Resumes a Rollout. + * + * Create a request for the method "rollouts.resume". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

{@link + * Resume#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 rollout Required. Name of the Rollout resource to resume. + * @since 1.13 + */ + protected Resume(java.lang.String project, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } + + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } + + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } + + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } + + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } + + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } + + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } + + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } + + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); + } + + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resume setUserIp(java.lang.String userIp) { + return (Resume) 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 Resume 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 Rollout resource to resume. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to resume. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to resume. */ + public Resume setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the + current etag of the Rollout. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + public Resume 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 + * 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 Resume setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Routers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Routers.List request = compute.routers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Routers routers() { + return new Routers(); + } + + /** + * The "routers" collection of methods. + */ + public class Routers { + + /** + * Retrieves an aggregated list of routers. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "routers.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/routers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of routers. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "routers.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouterAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified Router resource. + * + * Create a request for the method "routers.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + Delete result = new Delete(project, region, router); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified Router resource. + * + * Create a request for the method "routers.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "DELETE", REST_PATH, null, 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 Router resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to delete. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource to delete. */ + public Delete setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes Named Set + * + * Create a request for the method "routers.deleteNamedSet". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteNamedSet#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource where Named Set is defined. + * @return the request + */ + public DeleteNamedSet deleteNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + DeleteNamedSet result = new DeleteNamedSet(project, region, router); + initialize(result); + return result; + } + + public class DeleteNamedSet extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteNamedSet"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes Named Set + * + * Create a request for the method "routers.deleteNamedSet". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteNamedSet#execute()} method to invoke the remote operation. + *

{@link DeleteNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 for this request. + * @param router Name of the Router resource where Named Set is defined. + * @since 1.13 + */ + protected DeleteNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "POST", REST_PATH, null, 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNamedSet) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteNamedSet setAccessToken(java.lang.String accessToken) { + return (DeleteNamedSet) super.setAccessToken(accessToken); + } + + @Override + public DeleteNamedSet setAlt(java.lang.String alt) { + return (DeleteNamedSet) super.setAlt(alt); + } + + @Override + public DeleteNamedSet setCallback(java.lang.String callback) { + return (DeleteNamedSet) super.setCallback(callback); + } + + @Override + public DeleteNamedSet setFields(java.lang.String fields) { + return (DeleteNamedSet) super.setFields(fields); + } + + @Override + public DeleteNamedSet setKey(java.lang.String key) { + return (DeleteNamedSet) super.setKey(key); + } + + @Override + public DeleteNamedSet setOauthToken(java.lang.String oauthToken) { + return (DeleteNamedSet) super.setOauthToken(oauthToken); + } + + @Override + public DeleteNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNamedSet) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteNamedSet setQuotaUser(java.lang.String quotaUser) { + return (DeleteNamedSet) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteNamedSet setUploadType(java.lang.String uploadType) { + return (DeleteNamedSet) super.setUploadType(uploadType); + } + + @Override + public DeleteNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNamedSet) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteNamedSet setUserIp(java.lang.String userIp) { + return (DeleteNamedSet) 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 DeleteNamedSet 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public DeleteNamedSet 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 Router resource where Named Set is defined. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource where Named Set is defined. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource where Named Set is defined. */ + public DeleteNamedSet setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + return this; + } + + /** The Named Set name for this request. Name must conform to RFC1035 */ + @com.google.api.client.util.Key + private java.lang.String namedSet; + + /** The Named Set name for this request. Name must conform to RFC1035 + */ + public java.lang.String getNamedSet() { + return namedSet; + } + + /** The Named Set name for this request. Name must conform to RFC1035 */ + public DeleteNamedSet setNamedSet(java.lang.String namedSet) { + this.namedSet = namedSet; + 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 DeleteNamedSet setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteNamedSet set(String parameterName, Object value) { + return (DeleteNamedSet) super.set(parameterName, value); + } + } + /** + * Deletes Route Policy + * + * Create a request for the method "routers.deleteRoutePolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link DeleteRoutePolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource where Route Policy is defined. + * @return the request + */ + public DeleteRoutePolicy deleteRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + DeleteRoutePolicy result = new DeleteRoutePolicy(project, region, router); + initialize(result); + return result; + } + + public class DeleteRoutePolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes Route Policy + * + * Create a request for the method "routers.deleteRoutePolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link DeleteRoutePolicy#execute()} method to invoke the remote operation. + *

{@link DeleteRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 for this request. + * @param router Name of the Router resource where Route Policy is defined. + * @since 1.13 + */ + protected DeleteRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "POST", REST_PATH, null, 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public DeleteRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (DeleteRoutePolicy) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteRoutePolicy setAccessToken(java.lang.String accessToken) { + return (DeleteRoutePolicy) super.setAccessToken(accessToken); + } + + @Override + public DeleteRoutePolicy setAlt(java.lang.String alt) { + return (DeleteRoutePolicy) super.setAlt(alt); + } + + @Override + public DeleteRoutePolicy setCallback(java.lang.String callback) { + return (DeleteRoutePolicy) super.setCallback(callback); + } + + @Override + public DeleteRoutePolicy setFields(java.lang.String fields) { + return (DeleteRoutePolicy) super.setFields(fields); + } + + @Override + public DeleteRoutePolicy setKey(java.lang.String key) { + return (DeleteRoutePolicy) super.setKey(key); + } + + @Override + public DeleteRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (DeleteRoutePolicy) super.setOauthToken(oauthToken); + } + + @Override + public DeleteRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteRoutePolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (DeleteRoutePolicy) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteRoutePolicy setUploadType(java.lang.String uploadType) { + return (DeleteRoutePolicy) super.setUploadType(uploadType); + } + + @Override + public DeleteRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteRoutePolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public DeleteRoutePolicy setUserIp(java.lang.String userIp) { + return (DeleteRoutePolicy) 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 DeleteRoutePolicy 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public DeleteRoutePolicy 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 Router resource where Route Policy is defined. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource where Route Policy is defined. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource where Route Policy is defined. */ + public DeleteRoutePolicy setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + return this; + } + + /** The Policy name for this request. Name must conform to RFC1035 */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** The Policy name for this request. Name must conform to RFC1035 + */ + public java.lang.String getPolicy() { + return policy; + } + + /** The Policy name for this request. Name must conform to RFC1035 */ + public DeleteRoutePolicy setPolicy(java.lang.String policy) { + this.policy = policy; + 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 DeleteRoutePolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DeleteRoutePolicy set(String parameterName, Object value) { + return (DeleteRoutePolicy) super.set(parameterName, value); + } + } + /** + * Returns the specified Router resource. + * + * Create a request for the method "routers.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 region Name of the region for this request. + * @param router Name of the Router resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + Get result = new Get(project, region, router); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_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 Router resource. + * + * Create a request for the method "routers.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 region Name of the region for this request. + * @param router Name of the Router resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Router.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 Router resource to return. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to return. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource to return. */ + public Get setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns specified Named Set + * + * Create a request for the method "routers.getNamedSet". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetNamedSet#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query for the named set. The name should + conform to RFC1035. + * @return the request + */ + public GetNamedSet getNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + GetNamedSet result = new GetNamedSet(project, region, router); + initialize(result); + return result; + } + + public class GetNamedSet extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNamedSet"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 specified Named Set + * + * Create a request for the method "routers.getNamedSet". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetNamedSet#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query for the named set. The name should + conform to RFC1035. + * @since 1.13 + */ + protected GetNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RoutersGetNamedSetResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (GetNamedSet) super.set$Xgafv($Xgafv); + } + + @Override + public GetNamedSet setAccessToken(java.lang.String accessToken) { + return (GetNamedSet) super.setAccessToken(accessToken); + } + + @Override + public GetNamedSet setAlt(java.lang.String alt) { + return (GetNamedSet) super.setAlt(alt); + } + + @Override + public GetNamedSet setCallback(java.lang.String callback) { + return (GetNamedSet) super.setCallback(callback); + } + + @Override + public GetNamedSet setFields(java.lang.String fields) { + return (GetNamedSet) super.setFields(fields); + } + + @Override + public GetNamedSet setKey(java.lang.String key) { + return (GetNamedSet) super.setKey(key); + } + + @Override + public GetNamedSet setOauthToken(java.lang.String oauthToken) { + return (GetNamedSet) super.setOauthToken(oauthToken); + } + + @Override + public GetNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNamedSet) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetNamedSet setQuotaUser(java.lang.String quotaUser) { + return (GetNamedSet) super.setQuotaUser(quotaUser); + } + + @Override + public GetNamedSet setUploadType(java.lang.String uploadType) { + return (GetNamedSet) super.setUploadType(uploadType); + } + + @Override + public GetNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (GetNamedSet) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetNamedSet setUserIp(java.lang.String userIp) { + return (GetNamedSet) 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 GetNamedSet 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public GetNamedSet 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 Router resource to query for the named set. The name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to query for the named set. The name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name of the Router resource to query for the named set. The name should conform to RFC1035. + */ + public GetNamedSet setRouter(java.lang.String router) { + this.router = router; + return this; + } + + /** The Named Set name for this request. Name must conform to RFC1035 */ + @com.google.api.client.util.Key + private java.lang.String namedSet; + + /** The Named Set name for this request. Name must conform to RFC1035 + */ + public java.lang.String getNamedSet() { + return namedSet; + } + + /** The Named Set name for this request. Name must conform to RFC1035 */ + public GetNamedSet setNamedSet(java.lang.String namedSet) { + this.namedSet = namedSet; + return this; + } + + @Override + public GetNamedSet set(String parameterName, Object value) { + return (GetNamedSet) super.set(parameterName, value); + } + } + /** + * Retrieves runtime NAT IP information. + * + * Create a request for the method "routers.getNatIpInfo". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetNatIpInfo#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query for Nat IP information. The name + should conform to RFC1035. + * @return the request + */ + public GetNatIpInfo getNatIpInfo(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + GetNatIpInfo result = new GetNatIpInfo(project, region, router); + initialize(result); + return result; + } + + public class GetNatIpInfo extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves runtime NAT IP information. + * + * Create a request for the method "routers.getNatIpInfo". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetNatIpInfo#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query for Nat IP information. The name + should conform to RFC1035. + * @since 1.13 + */ + protected GetNatIpInfo(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NatIpInfoResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetNatIpInfo set$Xgafv(java.lang.String $Xgafv) { + return (GetNatIpInfo) super.set$Xgafv($Xgafv); + } + + @Override + public GetNatIpInfo setAccessToken(java.lang.String accessToken) { + return (GetNatIpInfo) super.setAccessToken(accessToken); + } + + @Override + public GetNatIpInfo setAlt(java.lang.String alt) { + return (GetNatIpInfo) super.setAlt(alt); + } + + @Override + public GetNatIpInfo setCallback(java.lang.String callback) { + return (GetNatIpInfo) super.setCallback(callback); + } + + @Override + public GetNatIpInfo setFields(java.lang.String fields) { + return (GetNatIpInfo) super.setFields(fields); + } + + @Override + public GetNatIpInfo setKey(java.lang.String key) { + return (GetNatIpInfo) super.setKey(key); + } + + @Override + public GetNatIpInfo setOauthToken(java.lang.String oauthToken) { + return (GetNatIpInfo) super.setOauthToken(oauthToken); + } + + @Override + public GetNatIpInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNatIpInfo) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetNatIpInfo setQuotaUser(java.lang.String quotaUser) { + return (GetNatIpInfo) super.setQuotaUser(quotaUser); + } + + @Override + public GetNatIpInfo setUploadType(java.lang.String uploadType) { + return (GetNatIpInfo) super.setUploadType(uploadType); + } + + @Override + public GetNatIpInfo setUploadProtocol(java.lang.String uploadProtocol) { + return (GetNatIpInfo) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetNatIpInfo setUserIp(java.lang.String userIp) { + return (GetNatIpInfo) 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 GetNatIpInfo 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public GetNatIpInfo 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 Router resource to query for Nat IP information. The name should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name of the Router resource to query for Nat IP information. The name should conform to + * RFC1035. + */ + public GetNatIpInfo setRouter(java.lang.String router) { + this.router = router; + return this; + } + + /** + * Name of the nat service to filter the NAT IP information. If it is omitted, all nats for + * this router will be returned. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String natName; + + /** Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this + router will be returned. Name should conform to RFC1035. + */ + public java.lang.String getNatName() { + return natName; + } + + /** + * Name of the nat service to filter the NAT IP information. If it is omitted, all nats for + * this router will be returned. Name should conform to RFC1035. + */ + public GetNatIpInfo setNatName(java.lang.String natName) { + this.natName = natName; + return this; + } + + @Override + public GetNatIpInfo set(String parameterName, Object value) { + return (GetNatIpInfo) super.set(parameterName, value); + } + } + /** + * Retrieves runtime Nat mapping information of VM endpoints. + * + * Create a request for the method "routers.getNatMappingInfo". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetNatMappingInfo#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query for Nat Mapping information of + VM endpoints. + * @return the request + */ + public GetNatMappingInfo getNatMappingInfo(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + GetNatMappingInfo result = new GetNatMappingInfo(project, region, router); + initialize(result); + return result; + } + + public class GetNatMappingInfo extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves runtime Nat mapping information of VM endpoints. + * + * Create a request for the method "routers.getNatMappingInfo". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetNatMappingInfo#execute()} method to invoke the remote operation. + *

{@link GetNatMappingInfo#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 for this request. + * @param router Name of the Router resource to query for Nat Mapping information of + VM endpoints. + * @since 1.13 + */ + protected GetNatMappingInfo(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmEndpointNatMappingsList.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetNatMappingInfo set$Xgafv(java.lang.String $Xgafv) { + return (GetNatMappingInfo) super.set$Xgafv($Xgafv); + } + + @Override + public GetNatMappingInfo setAccessToken(java.lang.String accessToken) { + return (GetNatMappingInfo) super.setAccessToken(accessToken); + } + + @Override + public GetNatMappingInfo setAlt(java.lang.String alt) { + return (GetNatMappingInfo) super.setAlt(alt); + } + + @Override + public GetNatMappingInfo setCallback(java.lang.String callback) { + return (GetNatMappingInfo) super.setCallback(callback); + } + + @Override + public GetNatMappingInfo setFields(java.lang.String fields) { + return (GetNatMappingInfo) super.setFields(fields); + } + + @Override + public GetNatMappingInfo setKey(java.lang.String key) { + return (GetNatMappingInfo) super.setKey(key); + } + + @Override + public GetNatMappingInfo setOauthToken(java.lang.String oauthToken) { + return (GetNatMappingInfo) super.setOauthToken(oauthToken); + } + + @Override + public GetNatMappingInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNatMappingInfo) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetNatMappingInfo setQuotaUser(java.lang.String quotaUser) { + return (GetNatMappingInfo) super.setQuotaUser(quotaUser); + } + + @Override + public GetNatMappingInfo setUploadType(java.lang.String uploadType) { + return (GetNatMappingInfo) super.setUploadType(uploadType); + } + + @Override + public GetNatMappingInfo setUploadProtocol(java.lang.String uploadProtocol) { + return (GetNatMappingInfo) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetNatMappingInfo setUserIp(java.lang.String userIp) { + return (GetNatMappingInfo) 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 GetNatMappingInfo 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public GetNatMappingInfo 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 Router resource to query for Nat Mapping information of VM endpoints. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to query for Nat Mapping information of VM endpoints. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name of the Router resource to query for Nat Mapping information of VM endpoints. + */ + public GetNatMappingInfo setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 GetNatMappingInfo 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 GetNatMappingInfo setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats + * for this router will be returned. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String natName; + + /** Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this + router will be returned. Name should conform to RFC1035. + */ + public java.lang.String getNatName() { + return natName; + } + + /** + * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats + * for this router will be returned. Name should conform to RFC1035. + */ + public GetNatMappingInfo setNatName(java.lang.String natName) { + this.natName = natName; + 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 GetNatMappingInfo 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 GetNatMappingInfo setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public GetNatMappingInfo set(String parameterName, Object value) { + return (GetNatMappingInfo) super.set(parameterName, value); + } + } + /** + * Returns specified Route Policy + * + * Create a request for the method "routers.getRoutePolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRoutePolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query for the route policy. The name should + conform to RFC1035. + * @return the request + */ + public GetRoutePolicy getRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + GetRoutePolicy result = new GetRoutePolicy(project, region, router); + initialize(result); + return result; + } + + public class GetRoutePolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 specified Route Policy + * + * Create a request for the method "routers.getRoutePolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRoutePolicy#execute()} method to invoke the remote operation. + *

{@link GetRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 for this request. + * @param router Name of the Router resource to query for the route policy. The name should + conform to RFC1035. + * @since 1.13 + */ + protected GetRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RoutersGetRoutePolicyResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetRoutePolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetRoutePolicy setAccessToken(java.lang.String accessToken) { + return (GetRoutePolicy) super.setAccessToken(accessToken); + } + + @Override + public GetRoutePolicy setAlt(java.lang.String alt) { + return (GetRoutePolicy) super.setAlt(alt); + } + + @Override + public GetRoutePolicy setCallback(java.lang.String callback) { + return (GetRoutePolicy) super.setCallback(callback); + } + + @Override + public GetRoutePolicy setFields(java.lang.String fields) { + return (GetRoutePolicy) super.setFields(fields); + } + + @Override + public GetRoutePolicy setKey(java.lang.String key) { + return (GetRoutePolicy) super.setKey(key); + } + + @Override + public GetRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (GetRoutePolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRoutePolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (GetRoutePolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetRoutePolicy setUploadType(java.lang.String uploadType) { + return (GetRoutePolicy) super.setUploadType(uploadType); + } + + @Override + public GetRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRoutePolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRoutePolicy setUserIp(java.lang.String userIp) { + return (GetRoutePolicy) 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 GetRoutePolicy 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public GetRoutePolicy 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 Router resource to query for the route policy. The name should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to query for the route policy. The name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name of the Router resource to query for the route policy. The name should conform to + * RFC1035. + */ + public GetRoutePolicy setRouter(java.lang.String router) { + this.router = router; + return this; + } + + /** The Policy name for this request. Name must conform to RFC1035 */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** The Policy name for this request. Name must conform to RFC1035 + */ + public java.lang.String getPolicy() { + return policy; + } + + /** The Policy name for this request. Name must conform to RFC1035 */ + public GetRoutePolicy setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public GetRoutePolicy set(String parameterName, Object value) { + return (GetRoutePolicy) super.set(parameterName, value); + } + } + /** + * Retrieves runtime information of the specified router. + * + * Create a request for the method "routers.getRouterStatus". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRouterStatus#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query. + * @return the request + */ + public GetRouterStatus getRouterStatus(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + GetRouterStatus result = new GetRouterStatus(project, region, router); + initialize(result); + return result; + } + + public class GetRouterStatus extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRouterStatus"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves runtime information of the specified router. + * + * Create a request for the method "routers.getRouterStatus". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRouterStatus#execute()} method to invoke the remote operation. + *

{@link GetRouterStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * lientRequest)} 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 for this request. + * @param router Name of the Router resource to query. + * @since 1.13 + */ + protected GetRouterStatus(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouterStatusResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRouterStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetRouterStatus) super.set$Xgafv($Xgafv); + } + + @Override + public GetRouterStatus setAccessToken(java.lang.String accessToken) { + return (GetRouterStatus) super.setAccessToken(accessToken); + } + + @Override + public GetRouterStatus setAlt(java.lang.String alt) { + return (GetRouterStatus) super.setAlt(alt); + } + + @Override + public GetRouterStatus setCallback(java.lang.String callback) { + return (GetRouterStatus) super.setCallback(callback); + } + + @Override + public GetRouterStatus setFields(java.lang.String fields) { + return (GetRouterStatus) super.setFields(fields); + } + + @Override + public GetRouterStatus setKey(java.lang.String key) { + return (GetRouterStatus) super.setKey(key); + } + + @Override + public GetRouterStatus setOauthToken(java.lang.String oauthToken) { + return (GetRouterStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetRouterStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRouterStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRouterStatus setQuotaUser(java.lang.String quotaUser) { + return (GetRouterStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetRouterStatus setUploadType(java.lang.String uploadType) { + return (GetRouterStatus) super.setUploadType(uploadType); + } + + @Override + public GetRouterStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRouterStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRouterStatus setUserIp(java.lang.String userIp) { + return (GetRouterStatus) 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 GetRouterStatus 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public GetRouterStatus 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 Router resource to query. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to query. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource to query. */ + public GetRouterStatus setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + return this; + } + + @Override + public GetRouterStatus set(String parameterName, Object value) { + return (GetRouterStatus) super.set(parameterName, value); + } + } + /** + * Creates a Router resource in the specified project and region using the data included in the + * request. + * + * Create a request for the method "routers.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Router} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Router content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a Router resource in the specified project and region using the data included in the + * request. + * + * Create a request for the method "routers.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Router} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Router 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Router resources available to the specified project. + * + * Create a request for the method "routers.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 region 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}/routers"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of Router resources available to the specified project. + * + * Create a request for the method "routers.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 region 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.RouterList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves a list of router bgp routes available to the specified project. + * + * Create a request for the method "routers.listBgpRoutes". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListBgpRoutes#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name or id of the resource for this request. + Name should conform to RFC1035. + * @return the request + */ + public ListBgpRoutes listBgpRoutes(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + ListBgpRoutes result = new ListBgpRoutes(project, region, router); + initialize(result); + return result; + } + + public class ListBgpRoutes extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves a list of router bgp routes available to the specified project. + * + * Create a request for the method "routers.listBgpRoutes". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListBgpRoutes#execute()} method to invoke the remote operation.

+ * {@link ListBgpRoutes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 for this request. + * @param router Name or id of the resource for this request. + Name should conform to RFC1035. + * @since 1.13 + */ + protected ListBgpRoutes(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RoutersListBgpRoutes.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListBgpRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListBgpRoutes) super.set$Xgafv($Xgafv); + } + + @Override + public ListBgpRoutes setAccessToken(java.lang.String accessToken) { + return (ListBgpRoutes) super.setAccessToken(accessToken); + } + + @Override + public ListBgpRoutes setAlt(java.lang.String alt) { + return (ListBgpRoutes) super.setAlt(alt); + } + + @Override + public ListBgpRoutes setCallback(java.lang.String callback) { + return (ListBgpRoutes) super.setCallback(callback); + } + + @Override + public ListBgpRoutes setFields(java.lang.String fields) { + return (ListBgpRoutes) super.setFields(fields); + } + + @Override + public ListBgpRoutes setKey(java.lang.String key) { + return (ListBgpRoutes) super.setKey(key); + } + + @Override + public ListBgpRoutes setOauthToken(java.lang.String oauthToken) { + return (ListBgpRoutes) super.setOauthToken(oauthToken); + } + + @Override + public ListBgpRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListBgpRoutes) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListBgpRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListBgpRoutes) super.setQuotaUser(quotaUser); + } + + @Override + public ListBgpRoutes setUploadType(java.lang.String uploadType) { + return (ListBgpRoutes) super.setUploadType(uploadType); + } + + @Override + public ListBgpRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListBgpRoutes) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListBgpRoutes setUserIp(java.lang.String userIp) { + return (ListBgpRoutes) 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 ListBgpRoutes 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public ListBgpRoutes setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name or id of the resource for this request. Name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ + public ListBgpRoutes setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + return this; + } + + /** (Required) limit results to this address family (either IPv4 or IPv6) */ + @com.google.api.client.util.Key + private java.lang.String addressFamily; + + /**( Required) limit results to this address family (either IPv4 or IPv6) [default: + ( UNSPECIFIED_IP_VERSION] + ( + + */ + public java.lang.String getAddressFamily() { + return addressFamily; + } + + /** (Required) limit results to this address family (either IPv4 or IPv6) */ + public ListBgpRoutes setAddressFamily(java.lang.String addressFamily) { + this.addressFamily = addressFamily; + return this; + } + + /** Limit results to destinations that are subnets of this CIDR range */ + @com.google.api.client.util.Key + private java.lang.String destinationPrefix; + + /** Limit results to destinations that are subnets of this CIDR range + */ + public java.lang.String getDestinationPrefix() { + return destinationPrefix; + } + + /** Limit results to destinations that are subnets of this CIDR range */ + public ListBgpRoutes setDestinationPrefix(java.lang.String destinationPrefix) { + this.destinationPrefix = destinationPrefix; + 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 ListBgpRoutes 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 ListBgpRoutes 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 ListBgpRoutes 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 ListBgpRoutes setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * (Required) limit results to the BGP peer with the given name. Name should conform to + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String peer; + + /**( Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + ( + + */ + public java.lang.String getPeer() { + return peer; + } + + /** + * (Required) limit results to the BGP peer with the given name. Name should conform to + * RFC1035. + */ + public ListBgpRoutes setPeer(java.lang.String peer) { + this.peer = peer; + return this; + } + + /** + * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + */ + @com.google.api.client.util.Key + private java.lang.Boolean policyApplied; + + /** When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + [default: true] + */ + public java.lang.Boolean getPolicyApplied() { + return policyApplied; + } + + /** + * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + */ + public ListBgpRoutes setPolicyApplied(java.lang.Boolean policyApplied) { + this.policyApplied = policyApplied; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + *

+ */ + public boolean isPolicyApplied() { + if (policyApplied == null || policyApplied == com.google.api.client.util.Data.NULL_BOOLEAN) { + return true; + } + return policyApplied; + } + + /** + * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + */ + @com.google.api.client.util.Key + private java.lang.String routeType; + + /**( Required) limit results to this type of route (either LEARNED or ADVERTISED) [default: + ( UNSPECIFIED_ROUTE_TYPE] + ( + + */ + public java.lang.String getRouteType() { + return routeType; + } + + /** + * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + */ + public ListBgpRoutes setRouteType(java.lang.String routeType) { + this.routeType = routeType; + return this; + } + + @Override + public ListBgpRoutes set(String parameterName, Object value) { + return (ListBgpRoutes) super.set(parameterName, value); + } + } + /** + * Retrieves a list of router named set subresources available to the specified project. + * + * Create a request for the method "routers.listNamedSets". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListNamedSets#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name or id of the resource for this request. + Name should conform to RFC1035. + * @return the request + */ + public ListNamedSets listNamedSets(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + ListNamedSets result = new ListNamedSets(project, region, router); + initialize(result); + return result; + } + + public class ListNamedSets extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listNamedSets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves a list of router named set subresources available to the specified project. + * + * Create a request for the method "routers.listNamedSets". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListNamedSets#execute()} method to invoke the remote operation.

+ * {@link ListNamedSets#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 for this request. + * @param router Name or id of the resource for this request. + Name should conform to RFC1035. + * @since 1.13 + */ + protected ListNamedSets(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RoutersListNamedSets.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListNamedSets set$Xgafv(java.lang.String $Xgafv) { + return (ListNamedSets) super.set$Xgafv($Xgafv); + } + + @Override + public ListNamedSets setAccessToken(java.lang.String accessToken) { + return (ListNamedSets) super.setAccessToken(accessToken); + } + + @Override + public ListNamedSets setAlt(java.lang.String alt) { + return (ListNamedSets) super.setAlt(alt); + } + + @Override + public ListNamedSets setCallback(java.lang.String callback) { + return (ListNamedSets) super.setCallback(callback); + } + + @Override + public ListNamedSets setFields(java.lang.String fields) { + return (ListNamedSets) super.setFields(fields); + } + + @Override + public ListNamedSets setKey(java.lang.String key) { + return (ListNamedSets) super.setKey(key); + } + + @Override + public ListNamedSets setOauthToken(java.lang.String oauthToken) { + return (ListNamedSets) super.setOauthToken(oauthToken); + } + + @Override + public ListNamedSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNamedSets) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListNamedSets setQuotaUser(java.lang.String quotaUser) { + return (ListNamedSets) super.setQuotaUser(quotaUser); + } + + @Override + public ListNamedSets setUploadType(java.lang.String uploadType) { + return (ListNamedSets) super.setUploadType(uploadType); + } + + @Override + public ListNamedSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNamedSets) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListNamedSets setUserIp(java.lang.String userIp) { + return (ListNamedSets) 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 ListNamedSets 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public ListNamedSets setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name or id of the resource for this request. Name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ + public ListNamedSets setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 ListNamedSets 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 ListNamedSets 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 ListNamedSets 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 ListNamedSets setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListNamedSets set(String parameterName, Object value) { + return (ListNamedSets) super.set(parameterName, value); + } + } + /** + * Retrieves a list of router route policy subresources available to the specified project. + * + * Create a request for the method "routers.listRoutePolicies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListRoutePolicies#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name or id of the resource for this request. + Name should conform to RFC1035. + * @return the request + */ + public ListRoutePolicies listRoutePolicies(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { + ListRoutePolicies result = new ListRoutePolicies(project, region, router); + initialize(result); + return result; + } + + public class ListRoutePolicies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves a list of router route policy subresources available to the specified project. + * + * Create a request for the method "routers.listRoutePolicies". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListRoutePolicies#execute()} method to invoke the remote operation. + *

{@link ListRoutePolicies#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 for this request. + * @param router Name or id of the resource for this request. + Name should conform to RFC1035. + * @since 1.13 + */ + protected ListRoutePolicies(java.lang.String project, java.lang.String region, java.lang.String router) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RoutersListRoutePolicies.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListRoutePolicies set$Xgafv(java.lang.String $Xgafv) { + return (ListRoutePolicies) super.set$Xgafv($Xgafv); + } + + @Override + public ListRoutePolicies setAccessToken(java.lang.String accessToken) { + return (ListRoutePolicies) super.setAccessToken(accessToken); + } + + @Override + public ListRoutePolicies setAlt(java.lang.String alt) { + return (ListRoutePolicies) super.setAlt(alt); + } + + @Override + public ListRoutePolicies setCallback(java.lang.String callback) { + return (ListRoutePolicies) super.setCallback(callback); + } + + @Override + public ListRoutePolicies setFields(java.lang.String fields) { + return (ListRoutePolicies) super.setFields(fields); + } + + @Override + public ListRoutePolicies setKey(java.lang.String key) { + return (ListRoutePolicies) super.setKey(key); + } + + @Override + public ListRoutePolicies setOauthToken(java.lang.String oauthToken) { + return (ListRoutePolicies) super.setOauthToken(oauthToken); + } + + @Override + public ListRoutePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListRoutePolicies) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListRoutePolicies setQuotaUser(java.lang.String quotaUser) { + return (ListRoutePolicies) super.setQuotaUser(quotaUser); + } + + @Override + public ListRoutePolicies setUploadType(java.lang.String uploadType) { + return (ListRoutePolicies) super.setUploadType(uploadType); + } + + @Override + public ListRoutePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (ListRoutePolicies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListRoutePolicies setUserIp(java.lang.String userIp) { + return (ListRoutePolicies) 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 ListRoutePolicies 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public ListRoutePolicies setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name or id of the resource for this request. Name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } + + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ + public ListRoutePolicies setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 ListRoutePolicies 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 ListRoutePolicies 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 ListRoutePolicies 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 ListRoutePolicies setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListRoutePolicies set(String parameterName, Object value) { + return (ListRoutePolicies) super.set(parameterName, value); + } + } + /** + * Patches the specified Router resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "routers.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 Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to patch. + * @param content the {@link com.google.api.services.compute.model.Router} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.Router content) throws java.io.IOException { + Patch result = new Patch(project, region, router, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified Router resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "routers.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 Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to patch. + * @param content the {@link com.google.api.services.compute.model.Router} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.Router content) { + super(Compute.this, "PATCH", 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Patch 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 Router resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to patch. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource to patch. */ + public Patch setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Patches Named Set + * + * Create a request for the method "routers.patchNamedSet". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchNamedSet#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource where Named Set is defined. + * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @return the request + */ + public PatchNamedSet patchNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.NamedSet content) throws java.io.IOException { + PatchNamedSet result = new PatchNamedSet(project, region, router, content); + initialize(result); + return result; + } + + public class PatchNamedSet extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchNamedSet"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches Named Set + * + * Create a request for the method "routers.patchNamedSet". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchNamedSet#execute()} method to invoke the remote operation.

+ * {@link PatchNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR + * equest)} 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 for this request. + * @param router Name of the Router resource where Named Set is defined. + * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @since 1.13 + */ + protected PatchNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.NamedSet 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (PatchNamedSet) super.set$Xgafv($Xgafv); + } + + @Override + public PatchNamedSet setAccessToken(java.lang.String accessToken) { + return (PatchNamedSet) super.setAccessToken(accessToken); + } + + @Override + public PatchNamedSet setAlt(java.lang.String alt) { + return (PatchNamedSet) super.setAlt(alt); + } + + @Override + public PatchNamedSet setCallback(java.lang.String callback) { + return (PatchNamedSet) super.setCallback(callback); + } + + @Override + public PatchNamedSet setFields(java.lang.String fields) { + return (PatchNamedSet) super.setFields(fields); + } + + @Override + public PatchNamedSet setKey(java.lang.String key) { + return (PatchNamedSet) super.setKey(key); + } + + @Override + public PatchNamedSet setOauthToken(java.lang.String oauthToken) { + return (PatchNamedSet) super.setOauthToken(oauthToken); + } + + @Override + public PatchNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchNamedSet) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchNamedSet setQuotaUser(java.lang.String quotaUser) { + return (PatchNamedSet) super.setQuotaUser(quotaUser); + } + + @Override + public PatchNamedSet setUploadType(java.lang.String uploadType) { + return (PatchNamedSet) super.setUploadType(uploadType); + } + + @Override + public PatchNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchNamedSet) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchNamedSet setUserIp(java.lang.String userIp) { + return (PatchNamedSet) 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 PatchNamedSet 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public PatchNamedSet 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 Router resource where Named Set is defined. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource where Named Set is defined. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource where Named Set is defined. */ + public PatchNamedSet setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 PatchNamedSet setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchNamedSet set(String parameterName, Object value) { + return (PatchNamedSet) super.set(parameterName, value); + } + } + /** + * Patches Route Policy + * + * Create a request for the method "routers.patchRoutePolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRoutePolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource where Route Policy is defined. + * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @return the request + */ + public PatchRoutePolicy patchRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.RoutePolicy content) throws java.io.IOException { + PatchRoutePolicy result = new PatchRoutePolicy(project, region, router, content); + initialize(result); + return result; + } + + public class PatchRoutePolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches Route Policy + * + * Create a request for the method "routers.patchRoutePolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRoutePolicy#execute()} method to invoke the remote operation. + *

{@link PatchRoutePolicy#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 for this request. + * @param router Name of the Router resource where Route Policy is defined. + * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @since 1.13 + */ + protected PatchRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.RoutePolicy 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (PatchRoutePolicy) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRoutePolicy setAccessToken(java.lang.String accessToken) { + return (PatchRoutePolicy) super.setAccessToken(accessToken); + } + + @Override + public PatchRoutePolicy setAlt(java.lang.String alt) { + return (PatchRoutePolicy) super.setAlt(alt); + } + + @Override + public PatchRoutePolicy setCallback(java.lang.String callback) { + return (PatchRoutePolicy) super.setCallback(callback); + } + + @Override + public PatchRoutePolicy setFields(java.lang.String fields) { + return (PatchRoutePolicy) super.setFields(fields); + } + + @Override + public PatchRoutePolicy setKey(java.lang.String key) { + return (PatchRoutePolicy) super.setKey(key); + } + + @Override + public PatchRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (PatchRoutePolicy) super.setOauthToken(oauthToken); + } + + @Override + public PatchRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRoutePolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (PatchRoutePolicy) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRoutePolicy setUploadType(java.lang.String uploadType) { + return (PatchRoutePolicy) super.setUploadType(uploadType); + } + + @Override + public PatchRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRoutePolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRoutePolicy setUserIp(java.lang.String userIp) { + return (PatchRoutePolicy) 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 PatchRoutePolicy 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public PatchRoutePolicy 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 Router resource where Route Policy is defined. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource where Route Policy is defined. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource where Route Policy is defined. */ + public PatchRoutePolicy setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 PatchRoutePolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchRoutePolicy set(String parameterName, Object value) { + return (PatchRoutePolicy) super.set(parameterName, value); + } + } + /** + * Preview fields auto-generated during router create andupdate operations. Calling this method does + * NOT create or update the router. + * + * Create a request for the method "routers.preview". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Preview#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query. + * @param content the {@link com.google.api.services.compute.model.Router} + * @return the request + */ + public Preview preview(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.Router content) throws java.io.IOException { + Preview result = new Preview(project, region, router, content); + initialize(result); + return result; + } + + public class Preview extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/preview"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Preview fields auto-generated during router create andupdate operations. Calling this method + * does NOT create or update the router. + * + * Create a request for the method "routers.preview". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Preview#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to query. + * @param content the {@link com.google.api.services.compute.model.Router} + * @since 1.13 + */ + protected Preview(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.Router content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.RoutersPreviewResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); + } + + @Override + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); + } + + @Override + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); + } + + @Override + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); + } + + @Override + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); + } + + @Override + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); + } + + @Override + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); + } + + @Override + public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); + } + + @Override + public Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); + } + + @Override + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); + } + + @Override + public Preview setUploadProtocol(java.lang.String uploadProtocol) { + return (Preview) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Preview setUserIp(java.lang.String userIp) { + return (Preview) 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 Preview 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Preview 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 Router resource to query. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to query. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource to query. */ + public Preview setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + return this; + } + + @Override + public Preview set(String parameterName, Object value) { + return (Preview) super.set(parameterName, value); + } + } + /** + * Updates the specified Router resource with the data included in the request. This method + * conforms toPUT semantics, which requests that the state of the target resource be created or + * replaced with the state defined by the representation enclosed in the request message payload. + * + * Create a request for the method "routers.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to update. + * @param content the {@link com.google.api.services.compute.model.Router} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.Router content) throws java.io.IOException { + Update result = new Update(project, region, router, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified Router resource with the data included in the request. This method + * conforms toPUT semantics, which requests that the state of the target resource be created or + * replaced with the state defined by the representation enclosed in the request message payload. + * + * Create a request for the method "routers.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource to update. + * @param content the {@link com.google.api.services.compute.model.Router} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.Router content) { + super(Compute.this, "PUT", 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Update 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 Router resource to update. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource to update. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource to update. */ + public Update setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Updates or creates new Named Set + * + * Create a request for the method "routers.updateNamedSet". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateNamedSet#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource where Named Set is defined. + * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @return the request + */ + public UpdateNamedSet updateNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.NamedSet content) throws java.io.IOException { + UpdateNamedSet result = new UpdateNamedSet(project, region, router, content); + initialize(result); + return result; + } + + public class UpdateNamedSet extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateNamedSet"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates or creates new Named Set + * + * Create a request for the method "routers.updateNamedSet". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateNamedSet#execute()} method to invoke the remote operation. + *

{@link UpdateNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 for this request. + * @param router Name of the Router resource where Named Set is defined. + * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @since 1.13 + */ + protected UpdateNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.NamedSet 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (UpdateNamedSet) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateNamedSet setAccessToken(java.lang.String accessToken) { + return (UpdateNamedSet) super.setAccessToken(accessToken); + } + + @Override + public UpdateNamedSet setAlt(java.lang.String alt) { + return (UpdateNamedSet) super.setAlt(alt); + } + + @Override + public UpdateNamedSet setCallback(java.lang.String callback) { + return (UpdateNamedSet) super.setCallback(callback); + } + + @Override + public UpdateNamedSet setFields(java.lang.String fields) { + return (UpdateNamedSet) super.setFields(fields); + } + + @Override + public UpdateNamedSet setKey(java.lang.String key) { + return (UpdateNamedSet) super.setKey(key); + } + + @Override + public UpdateNamedSet setOauthToken(java.lang.String oauthToken) { + return (UpdateNamedSet) super.setOauthToken(oauthToken); + } + + @Override + public UpdateNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateNamedSet) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateNamedSet setQuotaUser(java.lang.String quotaUser) { + return (UpdateNamedSet) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateNamedSet setUploadType(java.lang.String uploadType) { + return (UpdateNamedSet) super.setUploadType(uploadType); + } + + @Override + public UpdateNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateNamedSet) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateNamedSet setUserIp(java.lang.String userIp) { + return (UpdateNamedSet) 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 UpdateNamedSet 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public UpdateNamedSet 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 Router resource where Named Set is defined. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource where Named Set is defined. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource where Named Set is defined. */ + public UpdateNamedSet setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 UpdateNamedSet setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateNamedSet set(String parameterName, Object value) { + return (UpdateNamedSet) super.set(parameterName, value); + } + } + /** + * Updates or creates new Route Policy + * + * Create a request for the method "routers.updateRoutePolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateRoutePolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param router Name of the Router resource where Route Policy is defined. + * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @return the request + */ + public UpdateRoutePolicy updateRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.RoutePolicy content) throws java.io.IOException { + UpdateRoutePolicy result = new UpdateRoutePolicy(project, region, router, content); + initialize(result); + return result; + } + + public class UpdateRoutePolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates or creates new Route Policy + * + * Create a request for the method "routers.updateRoutePolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateRoutePolicy#execute()} method to invoke the remote operation. + *

{@link UpdateRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 for this request. + * @param router Name of the Router resource where Route Policy is defined. + * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @since 1.13 + */ + protected UpdateRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.model.RoutePolicy 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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (UpdateRoutePolicy) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateRoutePolicy setAccessToken(java.lang.String accessToken) { + return (UpdateRoutePolicy) super.setAccessToken(accessToken); + } + + @Override + public UpdateRoutePolicy setAlt(java.lang.String alt) { + return (UpdateRoutePolicy) super.setAlt(alt); + } + + @Override + public UpdateRoutePolicy setCallback(java.lang.String callback) { + return (UpdateRoutePolicy) super.setCallback(callback); + } + + @Override + public UpdateRoutePolicy setFields(java.lang.String fields) { + return (UpdateRoutePolicy) super.setFields(fields); + } + + @Override + public UpdateRoutePolicy setKey(java.lang.String key) { + return (UpdateRoutePolicy) super.setKey(key); + } + + @Override + public UpdateRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (UpdateRoutePolicy) super.setOauthToken(oauthToken); + } + + @Override + public UpdateRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateRoutePolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (UpdateRoutePolicy) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateRoutePolicy setUploadType(java.lang.String uploadType) { + return (UpdateRoutePolicy) super.setUploadType(uploadType); + } + + @Override + public UpdateRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateRoutePolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateRoutePolicy setUserIp(java.lang.String userIp) { + return (UpdateRoutePolicy) 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 UpdateRoutePolicy 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public UpdateRoutePolicy 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 Router resource where Route Policy is defined. */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** Name of the Router resource where Route Policy is defined. + */ + public java.lang.String getRouter() { + return router; + } + + /** Name of the Router resource where Route Policy is defined. */ + public UpdateRoutePolicy setRouter(java.lang.String router) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), + "Parameter router must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.router = router; + 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 UpdateRoutePolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateRoutePolicy set(String parameterName, Object value) { + return (UpdateRoutePolicy) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Routes collection. + * + *

The typical use is:

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

{@link + * Delete#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 route Name of the Route resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String route) { + super(Compute.this, "DELETE", REST_PATH, null, 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.route = com.google.api.client.util.Preconditions.checkNotNull(route, "Required parameter route must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), + "Parameter route must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Route resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String route; + + /** Name of the Route resource to delete. + */ + public java.lang.String getRoute() { + return route; + } + + /** Name of the Route resource to delete. */ + public Delete setRoute(java.lang.String route) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), + "Parameter route must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.route = route; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified Route resource. + * + * Create a request for the method "routes.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 route Name of the Route resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String route) throws java.io.IOException { + Get result = new Get(project, route); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/routes/{route}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 ROUTE_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 Route resource. + * + * Create a request for the method "routes.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 route Name of the Route resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String route) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Route.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.route = com.google.api.client.util.Preconditions.checkNotNull(route, "Required parameter route must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), + "Parameter route must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 Route resource to return. */ + @com.google.api.client.util.Key + private java.lang.String route; + + /** Name of the Route resource to return. + */ + public java.lang.String getRoute() { + return route; + } + + /** Name of the Route resource to return. */ + public Get setRoute(java.lang.String route) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), + "Parameter route must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.route = route; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a Route resource in the specified project using the data included in the request. + * + * Create a request for the method "routes.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Route} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Route content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/routes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a Route resource in the specified project using the data included in the request. + * + * Create a request for the method "routes.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Route} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Route 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of Route resources available to the specified project. + * + * Create a request for the method "routes.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/routes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of Route resources available to the specified project. + * + * Create a request for the method "routes.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouteList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "routes.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "routes.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the SecurityPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.SecurityPolicies.List request = compute.securityPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public SecurityPolicies securityPolicies() { + return new SecurityPolicies(); + } + + /** + * The "securityPolicies" collection of methods. + */ + public class SecurityPolicies { + + /** + * Inserts a rule into a security policy. + * + * Create a request for the method "securityPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(project, securityPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/addRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Inserts a rule into a security policy. + * + * Create a request for the method "securityPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

+ * {@link + * AddRule#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 securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) 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 AddRule 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public AddRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Retrieves the list of all SecurityPolicy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "securityPolicies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all SecurityPolicy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "securityPolicies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. + * + * Create a request for the method "securityPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param securityPolicy Name of the security policy to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { + Delete result = new Delete(project, securityPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified policy. + * + * Create a request for the method "securityPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 securityPolicy Name of the security policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String securityPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 security policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to delete. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * List all of the ordered rules present in a single specified policy. + * + * Create a request for the method "securityPolicies.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 securityPolicy Name of the security policy to get. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { + Get result = new Get(project, securityPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * List all of the ordered rules present in a single specified policy. + * + * Create a request for the method "securityPolicies.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 securityPolicy Name of the security policy to get. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 security policy to get. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to get. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets a rule at the specified priority. + * + * Create a request for the method "securityPolicies.getRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetRule getRule(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { + GetRule result = new GetRule(project, securityPolicy); + initialize(result); + return result; + } + + public class GetRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/getRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets a rule at the specified priority. + * + * Create a request for the method "securityPolicies.getRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

+ * {@link + * GetRule#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 securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetRule(java.lang.String project, java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); + } + + @Override + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); + } + + @Override + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); + } + + @Override + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); + } + + @Override + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); + } + + @Override + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); + } + + @Override + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) 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 GetRule 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 security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to get from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to get from the security policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); + } + } + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "securityPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a new policy in the specified project using the data included in the request. + * + * Create a request for the method "securityPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.SecurityPolicy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * List all the policies that have been configured for the specified project. + * + * Create a request for the method "securityPolicies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * List all the policies that have been configured for the specified project. + * + * Create a request for the method "securityPolicies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * + * Create a request for the method "securityPolicies.listPreconfiguredExpressionSets". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets(java.lang.String project) throws java.io.IOException { + ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(project); + initialize(result); + return result; + } + + public class ListPreconfiguredExpressionSets extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * + * Create a request for the method "securityPolicies.listPreconfiguredExpressionSets". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected ListPreconfiguredExpressionSets(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { + return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + } + + @Override + public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { + return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + } + + @Override + public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { + return (ListPreconfiguredExpressionSets) super.setAlt(alt); + } + + @Override + public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { + return (ListPreconfiguredExpressionSets) super.setCallback(callback); + } + + @Override + public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { + return (ListPreconfiguredExpressionSets) super.setFields(fields); + } + + @Override + public ListPreconfiguredExpressionSets setKey(java.lang.String key) { + return (ListPreconfiguredExpressionSets) super.setKey(key); + } + + @Override + public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { + return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + } + + @Override + public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { + return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + } + + @Override + public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { + return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + } + + @Override + public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { + return (ListPreconfiguredExpressionSets) 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 ListPreconfiguredExpressionSets 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; + } + + /** + * 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) super.set(parameterName, value); + } + } + /** + * Patches the specified policy with the data included in the request. To clear fields in the + * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be + * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and + * removeRule instead. + * + * Create a request for the method "securityPolicies.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 Project ID for this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Patch result = new Patch(project, securityPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified policy with the data included in the request. To clear fields in the + * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be + * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and + * removeRule instead. + * + * Create a request for the method "securityPolicies.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 Project ID for this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "PATCH", 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and + * specify them in the updateMask. + * + * Create a request for the method "securityPolicies.patchRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public PatchRule patchRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(project, securityPolicy, content); + initialize(result); + return result; + } + + public class PatchRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty + * and specify them in the updateMask. + * + * Create a request for the method "securityPolicies.patchRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

+ * {@link + * PatchRule#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 securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected PatchRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); + } + + @Override + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); + } + + @Override + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); + } + + @Override + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); + } + + @Override + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); + } + + @Override + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); + } + + @Override + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); + } + + @Override + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); + } + + @Override + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); + } + + @Override + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) 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 PatchRule 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Deletes a rule at the specified priority. + * + * Create a request for the method "securityPolicies.removeRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public RemoveRule removeRule(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(project, securityPolicy); + initialize(result); + return result; + } + + public class RemoveRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/removeRule"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a rule at the specified priority. + * + * Create a request for the method "securityPolicies.removeRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

+ * {@link + * RemoveRule#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 securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected RemoveRule(java.lang.String project, java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); + } + + @Override + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); + } + + @Override + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); + } + + @Override + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); + } + + @Override + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); + } + + @Override + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); + } + + @Override + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); + } + + @Override + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) 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 RemoveRule 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 security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The priority of the rule to remove from the security policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the security policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the security policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "securityPolicies.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. + * + * Create a request for the method "securityPolicies.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ServiceAttachments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ServiceAttachments.List request = compute.serviceAttachments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ServiceAttachments serviceAttachments() { + return new ServiceAttachments(); + } + + /** + * The "serviceAttachments" collection of methods. + */ + public class ServiceAttachments { + + /** + * Retrieves the list of all ServiceAttachment resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "serviceAttachments.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/serviceAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all ServiceAttachment resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "serviceAttachments.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ServiceAttachmentAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified ServiceAttachment in the given scope + * + * Create a request for the method "serviceAttachments.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param serviceAttachment Name of the ServiceAttachment resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, serviceAttachment); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SERVICE_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified ServiceAttachment in the given scope + * + * Create a request for the method "serviceAttachments.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param serviceAttachment Name of the ServiceAttachment resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, 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.serviceAttachment = com.google.api.client.util.Preconditions.checkNotNull(serviceAttachment, "Required parameter serviceAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), + "Parameter serviceAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Delete 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 ServiceAttachment resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String serviceAttachment; + + /** Name of the ServiceAttachment resource to delete. + */ + public java.lang.String getServiceAttachment() { + return serviceAttachment; + } + + /** Name of the ServiceAttachment resource to delete. */ + public Delete setServiceAttachment(java.lang.String serviceAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), + "Parameter serviceAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.serviceAttachment = serviceAttachment; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified ServiceAttachment resource in the given scope. + * + * Create a request for the method "serviceAttachments.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 region Name of the region of this request. + * @param serviceAttachment Name of the ServiceAttachment resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) throws java.io.IOException { + Get result = new Get(project, region, serviceAttachment); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SERVICE_ATTACHMENT_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 ServiceAttachment resource in the given scope. + * + * Create a request for the method "serviceAttachments.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 region Name of the region of this request. + * @param serviceAttachment Name of the ServiceAttachment resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ServiceAttachment.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.serviceAttachment = com.google.api.client.util.Preconditions.checkNotNull(serviceAttachment, "Required parameter serviceAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), + "Parameter serviceAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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 ServiceAttachment resource to return. */ + @com.google.api.client.util.Key + private java.lang.String serviceAttachment; + + /** Name of the ServiceAttachment resource to return. + */ + public java.lang.String getServiceAttachment() { + return serviceAttachment; + } + + /** Name of the ServiceAttachment resource to return. */ + public Get setServiceAttachment(java.lang.String serviceAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), + "Parameter serviceAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.serviceAttachment = serviceAttachment; + return this; + } + + /** Indicates whether NAT IPs should be included in the response. */ + @com.google.api.client.util.Key + private java.lang.Boolean showNatIps; + + /** Indicates whether NAT IPs should be included in the response. + */ + public java.lang.Boolean getShowNatIps() { + return showNatIps; + } + + /** Indicates whether NAT IPs should be included in the response. */ + public Get setShowNatIps(java.lang.Boolean showNatIps) { + this.showNatIps = showNatIps; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "serviceAttachments.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "serviceAttachments.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.ServiceAttachment} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ServiceAttachment 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the ServiceAttachments for a project in the given scope. + * + * Create a request for the method "serviceAttachments.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 region Name of the region of 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}/serviceAttachments"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists the ServiceAttachments for a project in the given scope. + * + * Create a request for the method "serviceAttachments.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 region Name of the region of 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.ServiceAttachmentList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region of 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified ServiceAttachment resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "serviceAttachments.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 Project ID for this request. + * @param region The region scoping this request and should conform to RFC1035. + * @param serviceAttachment The resource id of the ServiceAttachment to patch. It should conform to + RFC1035 resource name or be + * a string form on an unsigned long number. + * @param content the {@link com.google.api.services.compute.model.ServiceAttachment} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment, com.google.api.services.compute.model.ServiceAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, serviceAttachment, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Patches the specified ServiceAttachment resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "serviceAttachments.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 Project ID for this request. + * @param region The region scoping this request and should conform to RFC1035. + * @param serviceAttachment The resource id of the ServiceAttachment to patch. It should conform to + RFC1035 resource name or be + * a string form on an unsigned long number. + * @param content the {@link com.google.api.services.compute.model.ServiceAttachment} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment, com.google.api.services.compute.model.ServiceAttachment content) { + super(Compute.this, "PATCH", 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."); + this.serviceAttachment = com.google.api.client.util.Preconditions.checkNotNull(serviceAttachment, "Required parameter serviceAttachment must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 region scoping this request and should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region scoping this request and should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region scoping this request and should conform to RFC1035. */ + public Patch setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource + * name or be a string form on an unsigned long number. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAttachment; + + /** The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be + a string form on an unsigned long number. + */ + public java.lang.String getServiceAttachment() { + return serviceAttachment; + } + + /** + * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource + * name or be a string form on an unsigned long number. + */ + public Patch setServiceAttachment(java.lang.String serviceAttachment) { + this.serviceAttachment = serviceAttachment; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "serviceAttachments.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "serviceAttachments.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the SnapshotSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.SnapshotSettings.List request = compute.snapshotSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public SnapshotSettings snapshotSettings() { + return new SnapshotSettings(); + } + + /** + * The "snapshotSettings" collection of methods. + */ + public class SnapshotSettings { + + /** + * Get snapshot settings. + * + * Create a request for the method "snapshotSettings.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. + * @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/snapshotSettings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Get snapshot settings. + * + * Create a request for the method "snapshotSettings.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. + * @since 1.13 + */ + protected Get(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotSettings.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patch snapshot settings. + * + * Create a request for the method "snapshotSettings.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 Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} + * @return the request + */ + public Patch patch(java.lang.String project, com.google.api.services.compute.model.SnapshotSettings 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/snapshotSettings"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Patch snapshot settings. + * + * Create a request for the method "snapshotSettings.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 Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} + * @since 1.13 + */ + protected Patch(java.lang.String project, com.google.api.services.compute.model.SnapshotSettings content) { + super(Compute.this, "PATCH", 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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; + } + + /** + * 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + 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 Snapshots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Snapshots.List request = compute.snapshots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Snapshots snapshots() { + return new Snapshots(); + } + + /** + * The "snapshots" collection of methods. + */ + public class Snapshots { + + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for + * deletion is needed for subsequent snapshots, the data will be moved to the next corresponding + * snapshot. + * + * For more information, seeDeleting snapshots. + * + * Create a request for the method "snapshots.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param snapshot Name of the Snapshot resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { + Delete result = new Delete(project, snapshot); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SNAPSHOT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + * For more information, seeDeleting snapshots. + * + * Create a request for the method "snapshots.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 snapshot Name of the Snapshot resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String snapshot) { + super(Compute.this, "DELETE", REST_PATH, null, 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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Snapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the Snapshot resource to delete. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the Snapshot resource to delete. */ + public Delete setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified Snapshot resource. + * + * Create a request for the method "snapshots.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 snapshot Name of the Snapshot resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { + Get result = new Get(project, snapshot); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SNAPSHOT_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 Snapshot resource. + * + * Create a request for the method "snapshots.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 snapshot Name of the Snapshot resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String snapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Snapshot.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 Snapshot resource to return. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the Snapshot resource to return. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the Snapshot resource to return. */ + public Get setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "snapshots.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "snapshots.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a snapshot in the specified project using the data included in the request. For regular + * snapshot creation, consider using this method instead of disks.createSnapshot, as this method + * supports more features, such as creating snapshots in a project different from the source disk + * project. + * + * Create a request for the method "snapshots.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a snapshot in the specified project using the data included in the request. For regular + * snapshot creation, consider using this method instead of disks.createSnapshot, as this method + * supports more features, such as creating snapshots in a project different from the source disk + * project. + * + * Create a request for the method "snapshots.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.Snapshot} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Snapshot 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of Snapshot resources contained within the specified project. + * + * Create a request for the method "snapshots.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/snapshots"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of Snapshot resources contained within the specified project. + * + * Create a request for the method "snapshots.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "snapshots.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "snapshots.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

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

+ * {@link + * UpdateKmsKey#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 snapshot Name of the snapshot resource to update. Should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SnapshotUpdateKmsKeyRequest} + * @since 1.13 + */ + protected UpdateKmsKey(java.lang.String project, java.lang.String snapshot, com.google.api.services.compute.model.SnapshotUpdateKmsKeyRequest 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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { + return (UpdateKmsKey) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateKmsKey setAccessToken(java.lang.String accessToken) { + return (UpdateKmsKey) super.setAccessToken(accessToken); + } + + @Override + public UpdateKmsKey setAlt(java.lang.String alt) { + return (UpdateKmsKey) super.setAlt(alt); + } + + @Override + public UpdateKmsKey setCallback(java.lang.String callback) { + return (UpdateKmsKey) super.setCallback(callback); + } + + @Override + public UpdateKmsKey setFields(java.lang.String fields) { + return (UpdateKmsKey) super.setFields(fields); + } + + @Override + public UpdateKmsKey setKey(java.lang.String key) { + return (UpdateKmsKey) super.setKey(key); + } + + @Override + public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { + return (UpdateKmsKey) super.setOauthToken(oauthToken); + } + + @Override + public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { + return (UpdateKmsKey) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateKmsKey setUploadType(java.lang.String uploadType) { + return (UpdateKmsKey) super.setUploadType(uploadType); + } + + @Override + public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateKmsKey setUserIp(java.lang.String userIp) { + return (UpdateKmsKey) 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 UpdateKmsKey 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 snapshot resource to update. Should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the snapshot resource to update. Should conform to RFC1035. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the snapshot resource to update. Should conform to RFC1035. */ + public UpdateKmsKey setSnapshot(java.lang.String snapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), + "Parameter snapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.snapshot = snapshot; + 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 UpdateKmsKey setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateKmsKey set(String parameterName, Object value) { + return (UpdateKmsKey) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the SslCertificates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.SslCertificates.List request = compute.sslCertificates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public SslCertificates sslCertificates() { + return new SslCertificates(); + } + + /** + * The "sslCertificates" collection of methods. + */ + public class SslCertificates { + + /** + * Retrieves the list of all SslCertificate resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "sslCertificates.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/sslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all SslCertificate resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "sslCertificates.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificateAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified SslCertificate resource. + * + * Create a request for the method "sslCertificates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param sslCertificate Name of the SslCertificate resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String sslCertificate) throws java.io.IOException { + Delete result = new Delete(project, sslCertificate); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SSL_CERTIFICATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified SslCertificate resource. + * + * Create a request for the method "sslCertificates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 sslCertificate Name of the SslCertificate resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String sslCertificate) { + super(Compute.this, "DELETE", REST_PATH, null, 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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 SslCertificate resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String sslCertificate; + + /** Name of the SslCertificate resource to delete. + */ + public java.lang.String getSslCertificate() { + return sslCertificate; + } + + /** Name of the SslCertificate resource to delete. */ + public Delete setSslCertificate(java.lang.String sslCertificate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.sslCertificate = sslCertificate; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified SslCertificate resource. + * + * Create a request for the method "sslCertificates.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 sslCertificate Name of the SslCertificate resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String sslCertificate) throws java.io.IOException { + Get result = new Get(project, sslCertificate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SSL_CERTIFICATE_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 SslCertificate resource. + * + * Create a request for the method "sslCertificates.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 sslCertificate Name of the SslCertificate resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String sslCertificate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificate.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 SslCertificate resource to return. */ + @com.google.api.client.util.Key + private java.lang.String sslCertificate; + + /** Name of the SslCertificate resource to return. + */ + public java.lang.String getSslCertificate() { + return sslCertificate; + } + + /** Name of the SslCertificate resource to return. */ + public Get setSslCertificate(java.lang.String sslCertificate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), + "Parameter sslCertificate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.sslCertificate = sslCertificate; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a SslCertificate resource in the specified project using the data included in the + * request. + * + * Create a request for the method "sslCertificates.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.SslCertificate content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a SslCertificate resource in the specified project using the data included in the + * request. + * + * Create a request for the method "sslCertificates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.SslCertificate} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.SslCertificate 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of SslCertificate resources available to the specified project. + * + * Create a request for the method "sslCertificates.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of SslCertificate resources available to the specified project. + * + * Create a request for the method "sslCertificates.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificateList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the SslPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.SslPolicies.List request = compute.sslPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public SslPolicies sslPolicies() { + return new SslPolicies(); + } + + /** + * The "sslPolicies" collection of methods. + */ + public class SslPolicies { + + /** + * Retrieves the list of all SslPolicy resources, regional and global, available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "sslPolicies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/sslPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all SslPolicy resources, regional and global, available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "sslPolicies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use + * by any TargetHttpsProxy or TargetSslProxy resources. + * + * Create a request for the method "sslPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, + and comply with RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { + Delete result = new Delete(project, sslPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in + * use by any TargetHttpsProxy or TargetSslProxy resources. + * + * Create a request for the method "sslPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, + and comply with RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String sslPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 SSL policy to delete. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Delete setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Lists all of the ordered rules present in a single specified policy. + * + * Create a request for the method "sslPolicies.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 sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { + Get result = new Get(project, sslPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all of the ordered rules present in a single specified policy. + * + * Create a request for the method "sslPolicies.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 sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String sslPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPolicy.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Get setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the specified SSL policy resource. + * + * Create a request for the method "sslPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Returns the specified SSL policy resource. + * + * Create a request for the method "sslPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.SslPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.SslPolicy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all the SSL policies that have been configured for the specified project. + * + * Create a request for the method "sslPolicies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all the SSL policies that have been configured for the specified project. + * + * Create a request for the method "sslPolicies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists all features that can be specified in the SSL policy when using custom profile. + * + * Create a request for the method "sslPolicies.listAvailableFeatures". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @return the request + */ + public ListAvailableFeatures listAvailableFeatures(java.lang.String project) throws java.io.IOException { + ListAvailableFeatures result = new ListAvailableFeatures(project); + initialize(result); + return result; + } + + public class ListAvailableFeatures extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/listAvailableFeatures"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists all features that can be specified in the SSL policy when using custom profile. + * + * Create a request for the method "sslPolicies.listAvailableFeatures". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected ListAvailableFeatures(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesListAvailableFeaturesResponse.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { + return (ListAvailableFeatures) super.set$Xgafv($Xgafv); + } + + @Override + public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { + return (ListAvailableFeatures) super.setAccessToken(accessToken); + } + + @Override + public ListAvailableFeatures setAlt(java.lang.String alt) { + return (ListAvailableFeatures) super.setAlt(alt); + } + + @Override + public ListAvailableFeatures setCallback(java.lang.String callback) { + return (ListAvailableFeatures) super.setCallback(callback); + } + + @Override + public ListAvailableFeatures setFields(java.lang.String fields) { + return (ListAvailableFeatures) super.setFields(fields); + } + + @Override + public ListAvailableFeatures setKey(java.lang.String key) { + return (ListAvailableFeatures) super.setKey(key); + } + + @Override + public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { + return (ListAvailableFeatures) super.setOauthToken(oauthToken); + } + + @Override + public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { + return (ListAvailableFeatures) super.setQuotaUser(quotaUser); + } + + @Override + public ListAvailableFeatures setUploadType(java.lang.String uploadType) { + return (ListAvailableFeatures) super.setUploadType(uploadType); + } + + @Override + public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListAvailableFeatures setUserIp(java.lang.String userIp) { + return (ListAvailableFeatures) 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 ListAvailableFeatures 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; + } + + /** + * 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListAvailableFeatures set(String parameterName, Object value) { + return (ListAvailableFeatures) super.set(parameterName, value); + } + } + /** + * Patches the specified SSL policy with the data included in the request. + * + * Create a request for the method "sslPolicies.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 Project ID for this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { + Patch result = new Patch(project, sslPolicy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Patches the specified SSL policy with the data included in the request. + * + * Create a request for the method "sslPolicies.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 Project ID for this request. + * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, + and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.model.SslPolicy content) { + super(Compute.this, "PATCH", 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with + * RFC1035. + */ + public Patch setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the StoragePoolTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.StoragePoolTypes.List request = compute.storagePoolTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public StoragePoolTypes storagePoolTypes() { + return new StoragePoolTypes(); + } + + /** + * The "storagePoolTypes" collection of methods. + */ + public class StoragePoolTypes { + + /** + * Retrieves an aggregated list of storage pool types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "storagePoolTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/storagePoolTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of storage pool types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "storagePoolTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolTypeAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Returns the specified storage pool type. + * + * Create a request for the method "storagePoolTypes.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 zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) throws java.io.IOException { + Get result = new Get(project, zone, storagePoolType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern STORAGE_POOL_TYPE_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 storage pool type. + * + * Create a request for the method "storagePoolTypes.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 zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolType.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])?"); + } + this.storagePoolType = com.google.api.client.util.Preconditions.checkNotNull(storagePoolType, "Required parameter storagePoolType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), + "Parameter storagePoolType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 storage pool type to return. */ + @com.google.api.client.util.Key + private java.lang.String storagePoolType; + + /** Name of the storage pool type to return. + */ + public java.lang.String getStoragePoolType() { + return storagePoolType; + } + + /** Name of the storage pool type to return. */ + public Get setStoragePoolType(java.lang.String storagePoolType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), + "Parameter storagePoolType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePoolType = storagePoolType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of storage pool types available to the specified project. + * + * Create a request for the method "storagePoolTypes.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}/storagePoolTypes"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 storage pool types available to the specified project. + * + * Create a request for the method "storagePoolTypes.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.StoragePoolTypeList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the StoragePools collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.StoragePools.List request = compute.storagePools().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public StoragePools storagePools() { + return new StoragePools(); + } + + /** + * The "storagePools" collection of methods. + */ + public class StoragePools { + + /** + * Retrieves an aggregated list of storage pools. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "storagePools.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/storagePools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of storage pools. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "storagePools.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is + * irreversible. However, deleting a storagePool does not delete any snapshots previously made from + * the storagePool. You must separately delete snapshots. + * + * Create a request for the method "storagePools.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param storagePool Name of the storage pool to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { + Delete result = new Delete(project, zone, storagePool); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is + * irreversible. However, deleting a storagePool does not delete any snapshots previously made + * from the storagePool. You must separately delete snapshots. + * + * Create a request for the method "storagePools.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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. + * @param storagePool Name of the storage pool to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 storage pool to delete. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** Name of the storage pool to delete. + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** Name of the storage pool to delete. */ + public Delete setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns a specified storage pool. Gets a list of available storage pools by making a list() + * request. + * + * Create a request for the method "storagePools.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 zone The name of the zone for this request. + * @param storagePool Name of the storage pool to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { + Get result = new Get(project, zone, storagePool); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns a specified storage pool. Gets a list of available storage pools by making a list() + * request. + * + * Create a request for the method "storagePools.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 zone The name of the zone for this request. + * @param storagePool Name of the storage pool to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePool.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])?"); + } + this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 storage pool to return. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** Name of the storage pool to return. + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** Name of the storage pool to return. */ + public Get setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "storagePools.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "storagePools.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link + * Insert#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. + * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.StoragePool 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of storage pools contained within the specified zone. + * + * Create a request for the method "storagePools.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}/storagePools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 storage pools contained within the specified zone. + * + * Create a request for the method "storagePools.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.StoragePoolList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists the disks in a specified storage pool. + * + * Create a request for the method "storagePools.listDisks". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param storagePool Name of the storage pool to list disks of. + * @return the request + */ + public ListDisks listDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { + ListDisks result = new ListDisks(project, zone, storagePool); + initialize(result); + return result; + } + + public class ListDisks extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Lists the disks in a specified storage pool. + * + * Create a request for the method "storagePools.listDisks". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation.

+ * {@link + * ListDisks#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. + * @param storagePool Name of the storage pool to list disks of. + * @since 1.13 + */ + protected ListDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolListDisks.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])?"); + } + this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListDisks set$Xgafv(java.lang.String $Xgafv) { + return (ListDisks) super.set$Xgafv($Xgafv); + } + + @Override + public ListDisks setAccessToken(java.lang.String accessToken) { + return (ListDisks) super.setAccessToken(accessToken); + } + + @Override + public ListDisks setAlt(java.lang.String alt) { + return (ListDisks) super.setAlt(alt); + } + + @Override + public ListDisks setCallback(java.lang.String callback) { + return (ListDisks) super.setCallback(callback); + } + + @Override + public ListDisks setFields(java.lang.String fields) { + return (ListDisks) super.setFields(fields); + } + + @Override + public ListDisks setKey(java.lang.String key) { + return (ListDisks) super.setKey(key); + } + + @Override + public ListDisks setOauthToken(java.lang.String oauthToken) { + return (ListDisks) super.setOauthToken(oauthToken); + } + + @Override + public ListDisks setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListDisks) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListDisks setQuotaUser(java.lang.String quotaUser) { + return (ListDisks) super.setQuotaUser(quotaUser); + } + + @Override + public ListDisks setUploadType(java.lang.String uploadType) { + return (ListDisks) super.setUploadType(uploadType); + } + + @Override + public ListDisks setUploadProtocol(java.lang.String uploadProtocol) { + return (ListDisks) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListDisks setUserIp(java.lang.String userIp) { + return (ListDisks) 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 ListDisks 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 ListDisks 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 storage pool to list disks of. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** Name of the storage pool to list disks of. + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** Name of the storage pool to list disks of. */ + public ListDisks setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + 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 ListDisks 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 ListDisks 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 ListDisks 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 ListDisks setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public ListDisks set(String parameterName, Object value) { + return (ListDisks) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "storagePools.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "storagePools.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates the specified storagePool with the data included in the request. The update is performed + * only on selected fields included as part of update-mask. Only the following fields can be + * modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. + * + * Create a request for the method "storagePools.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param storagePool The storagePool name for this request. + * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.model.StoragePool content) throws java.io.IOException { + Update result = new Update(project, zone, storagePool, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern STORAGE_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates the specified storagePool with the data included in the request. The update is + * performed only on selected fields included as part of update-mask. Only the following fields + * can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and + * pool_provisioned_throughput. + * + * Create a request for the method "storagePools.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#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. + * @param storagePool The storagePool name for this request. + * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.model.StoragePool content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 Update 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; + } + + /** The storagePool name for this request. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** The storagePool name for this request. + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** The storagePool name for this request. */ + public Update setStoragePool(java.lang.String storagePool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), + "Parameter storagePool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.storagePool = storagePool; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Subnetworks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Subnetworks.List request = compute.subnetworks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Subnetworks subnetworks() { + return new Subnetworks(); + } + + /** + * The "subnetworks" collection of methods. + */ + public class Subnetworks { + + /** + * Retrieves an aggregated list of subnetworks. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "subnetworks.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/subnetworks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of subnetworks. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "subnetworks.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SubnetworkAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + @com.google.api.client.util.Key + private java.util.List views; + + /** Defines the extra views returned back in the subnetwork resource. Supported values: + + - WITH_UTILIZATION: Utilization data is included in the response. + */ + public java.util.List getViews() { + return views; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + public AggregatedList setViews(java.util.List views) { + this.views = views; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified subnetwork. + * + * Create a request for the method "subnetworks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { + Delete result = new Delete(project, region, subnetwork); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SUBNETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified subnetwork. + * + * Create a request for the method "subnetworks.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { + super(Compute.this, "DELETE", REST_PATH, null, 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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 Subnetwork resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** Name of the Subnetwork resource to delete. + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** Name of the Subnetwork resource to delete. */ + public Delete setSubnetwork(java.lang.String subnetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.subnetwork = subnetwork; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Expands the IP CIDR range of the subnetwork to a specified value. + * + * Create a request for the method "subnetworks.expandIpCidrRange". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ExpandIpCidrRange#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to update. + * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @return the request + */ + public ExpandIpCidrRange expandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest content) throws java.io.IOException { + ExpandIpCidrRange result = new ExpandIpCidrRange(project, region, subnetwork, content); + initialize(result); + return result; + } + + public class ExpandIpCidrRange extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SUBNETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Expands the IP CIDR range of the subnetwork to a specified value. + * + * Create a request for the method "subnetworks.expandIpCidrRange". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ExpandIpCidrRange#execute()} method to invoke the remote operation. + *

{@link ExpandIpCidrRange#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 subnetwork Name of the Subnetwork resource to update. + * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @since 1.13 + */ + protected ExpandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest 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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public ExpandIpCidrRange set$Xgafv(java.lang.String $Xgafv) { + return (ExpandIpCidrRange) super.set$Xgafv($Xgafv); + } + + @Override + public ExpandIpCidrRange setAccessToken(java.lang.String accessToken) { + return (ExpandIpCidrRange) super.setAccessToken(accessToken); + } + + @Override + public ExpandIpCidrRange setAlt(java.lang.String alt) { + return (ExpandIpCidrRange) super.setAlt(alt); + } + + @Override + public ExpandIpCidrRange setCallback(java.lang.String callback) { + return (ExpandIpCidrRange) super.setCallback(callback); + } + + @Override + public ExpandIpCidrRange setFields(java.lang.String fields) { + return (ExpandIpCidrRange) super.setFields(fields); + } + + @Override + public ExpandIpCidrRange setKey(java.lang.String key) { + return (ExpandIpCidrRange) super.setKey(key); + } + + @Override + public ExpandIpCidrRange setOauthToken(java.lang.String oauthToken) { + return (ExpandIpCidrRange) super.setOauthToken(oauthToken); + } + + @Override + public ExpandIpCidrRange setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExpandIpCidrRange) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExpandIpCidrRange setQuotaUser(java.lang.String quotaUser) { + return (ExpandIpCidrRange) super.setQuotaUser(quotaUser); + } + + @Override + public ExpandIpCidrRange setUploadType(java.lang.String uploadType) { + return (ExpandIpCidrRange) super.setUploadType(uploadType); + } + + @Override + public ExpandIpCidrRange setUploadProtocol(java.lang.String uploadProtocol) { + return (ExpandIpCidrRange) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ExpandIpCidrRange setUserIp(java.lang.String userIp) { + return (ExpandIpCidrRange) 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 ExpandIpCidrRange 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 ExpandIpCidrRange 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 Subnetwork resource to update. */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** Name of the Subnetwork resource to update. + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** Name of the Subnetwork resource to update. */ + public ExpandIpCidrRange setSubnetwork(java.lang.String subnetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.subnetwork = subnetwork; + 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 ExpandIpCidrRange setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public ExpandIpCidrRange set(String parameterName, Object value) { + return (ExpandIpCidrRange) super.set(parameterName, value); + } + } + /** + * Returns the specified subnetwork. + * + * Create a request for the method "subnetworks.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 region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { + Get result = new Get(project, region, subnetwork); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SUBNETWORK_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 subnetwork. + * + * Create a request for the method "subnetworks.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 region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Subnetwork.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 Subnetwork resource to return. */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** Name of the Subnetwork resource to return. + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** Name of the Subnetwork resource to return. */ + public Get setSubnetwork(java.lang.String subnetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.subnetwork = subnetwork; + return this; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + @com.google.api.client.util.Key + private java.util.List views; + + /** Defines the extra views returned back in the subnetwork resource. Supported values: + + - WITH_UTILIZATION: Utilization data is included in the response. + */ + public java.util.List getViews() { + return views; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + public Get setViews(java.util.List views) { + this.views = views; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * Create a request for the method "subnetworks.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "subnetworks.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Subnetwork 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of subnetworks available to the specified project. + * + * Create a request for the method "subnetworks.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 region Name of the region scoping 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}/subnetworks"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of subnetworks available to the specified project. + * + * Create a request for the method "subnetworks.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 region Name of the region scoping 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.SubnetworkList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + @com.google.api.client.util.Key + private java.util.List views; + + /** Defines the extra views returned back in the subnetwork resource. Supported values: + + - WITH_UTILIZATION: Utilization data is included in the response. + */ + public java.util.List getViews() { + return views; + } + + /** + * Defines the extra views returned back in the subnetwork resource. Supported values: + * + * - WITH_UTILIZATION: Utilization data is included in the response. + */ + public List setViews(java.util.List views) { + this.views = views; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Retrieves an aggregated list of all usable subnetworks in the project. + * + * Create a request for the method "subnetworks.listUsable". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public ListUsable listUsable(java.lang.String project) throws java.io.IOException { + ListUsable result = new ListUsable(project); + initialize(result); + return result; + } + + public class ListUsable extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/subnetworks/listUsable"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of all usable subnetworks in the project. + * + * Create a request for the method "subnetworks.listUsable". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

+ * {@link + * ListUsable#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. + * @since 1.13 + */ + protected ListUsable(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UsableSubnetworksAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); + } + + @Override + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); + } + + @Override + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); + } + + @Override + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); + } + + @Override + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); + } + + @Override + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); + } + + @Override + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); + } + + @Override + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); + } + + @Override + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); + } + + @Override + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) 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 ListUsable 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; + } + + /** + * 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The project id or project number in which the subnetwork is intended to be used. Only + * applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + */ + @com.google.api.client.util.Key + private java.lang.String serviceProject; + + /** The project id or project number in which the subnetwork is intended to be used. Only applied for + Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + */ + public java.lang.String getServiceProject() { + return serviceProject; + } + + /** + * The project id or project number in which the subnetwork is intended to be used. Only + * applied for Shared VPC. See [Shared VPC + * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + */ + public ListUsable setServiceProject(java.lang.String serviceProject) { + this.serviceProject = serviceProject; + return this; + } + + @Override + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); + } + } + /** + * Patches the specified subnetwork with the data included in the request. Only certain fields can + * be updated with a patch request as indicated in the field descriptions. You must specify the + * current fingerprint of the subnetwork resource being patched. + * + * Create a request for the method "subnetworks.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to patch. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.Subnetwork content) throws java.io.IOException { + Patch result = new Patch(project, region, subnetwork, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 SUBNETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified subnetwork with the data included in the request. Only certain fields can + * be updated with a patch request as indicated in the field descriptions. You must specify the + * current fingerprint of the subnetwork resource being patched. + * + * Create a request for the method "subnetworks.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 Project ID for this request. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to patch. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.model.Subnetwork content) { + super(Compute.this, "PATCH", 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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 Patch 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 Subnetwork resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** Name of the Subnetwork resource to patch. + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** Name of the Subnetwork resource to patch. */ + public Patch setSubnetwork(java.lang.String subnetwork) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), + "Parameter subnetwork must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.subnetwork = subnetwork; + return this; + } + + /** + * The drain timeout specifies the upper bound in seconds on the amount of time allowed to + * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The + * drain timeout is only applicable when the following conditions are true: - the subnetwork + * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has + * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch + * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + */ + @com.google.api.client.util.Key + private java.lang.Integer drainTimeoutSeconds; + + /** The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain + connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout + is only applicable when the following conditions are true: - the subnetwork being patched has + purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch + request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE + and BACKUP subnetworks will be swapped. + */ + public java.lang.Integer getDrainTimeoutSeconds() { + return drainTimeoutSeconds; + } + + /** + * The drain timeout specifies the upper bound in seconds on the amount of time allowed to + * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The + * drain timeout is only applicable when the following conditions are true: - the subnetwork + * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has + * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch + * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. + */ + public Patch setDrainTimeoutSeconds(java.lang.Integer drainTimeoutSeconds) { + this.drainTimeoutSeconds = drainTimeoutSeconds; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "subnetworks.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "subnetworks.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetGrpcProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetGrpcProxies.List request = compute.targetGrpcProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetGrpcProxies targetGrpcProxies() { + return new TargetGrpcProxies(); + } + + /** + * The "targetGrpcProxies" collection of methods. + */ + public class TargetGrpcProxies { + + /** + * Deletes the specified TargetGrpcProxy in the given scope + * + * Create a request for the method "targetGrpcProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { + Delete result = new Delete(project, targetGrpcProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_GRPC_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetGrpcProxy in the given scope + * + * Create a request for the method "targetGrpcProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 targetGrpcProxy Name of the TargetGrpcProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String targetGrpcProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 TargetGrpcProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetGrpcProxy; + + /** Name of the TargetGrpcProxy resource to delete. + */ + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; + } + + /** Name of the TargetGrpcProxy resource to delete. */ + public Delete setTargetGrpcProxy(java.lang.String targetGrpcProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetGrpcProxy = targetGrpcProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetGrpcProxy resource in the given scope. + * + * Create a request for the method "targetGrpcProxies.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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { + Get result = new Get(project, targetGrpcProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_GRPC_PROXY_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 TargetGrpcProxy resource in the given scope. + * + * Create a request for the method "targetGrpcProxies.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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetGrpcProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetGrpcProxy.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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 TargetGrpcProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetGrpcProxy; + + /** Name of the TargetGrpcProxy resource to return. + */ + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; + } + + /** Name of the TargetGrpcProxy resource to return. */ + public Get setTargetGrpcProxy(java.lang.String targetGrpcProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetGrpcProxy = targetGrpcProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that + * are included in the request. + * + * Create a request for the method "targetGrpcProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that + * are included in the request. + * + * Create a request for the method "targetGrpcProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the TargetGrpcProxies for a project in the given scope. + * + * Create a request for the method "targetGrpcProxies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the TargetGrpcProxies for a project in the given scope. + * + * Create a request for the method "targetGrpcProxies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetGrpcProxyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified TargetGrpcProxy resource with the data included in the request. This method + * supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetGrpcProxies.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 Project ID for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { + Patch result = new Patch(project, targetGrpcProxy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_GRPC_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified TargetGrpcProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetGrpcProxies.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 Project ID for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.model.TargetGrpcProxy content) { + super(Compute.this, "PATCH", 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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 TargetGrpcProxy resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String targetGrpcProxy; + + /** Name of the TargetGrpcProxy resource to patch. + */ + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; + } + + /** Name of the TargetGrpcProxy resource to patch. */ + public Patch setTargetGrpcProxy(java.lang.String targetGrpcProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), + "Parameter targetGrpcProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetGrpcProxy = targetGrpcProxy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetHttpProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetHttpProxies.List request = compute.targetHttpProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetHttpProxies targetHttpProxies() { + return new TargetHttpProxies(); + } + + /** + * The "targetHttpProxies" collection of methods. + */ + public class TargetHttpProxies { + + /** + * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetHttpProxies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/targetHttpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetHttpProxies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified TargetHttpProxy resource. + * + * Create a request for the method "targetHttpProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { + Delete result = new Delete(project, targetHttpProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetHttpProxy resource. + * + * Create a request for the method "targetHttpProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String targetHttpProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 TargetHttpProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy resource to delete. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to delete. */ + public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetHttpProxy resource. + * + * Create a request for the method "targetHttpProxies.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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { + Get result = new Get(project, targetHttpProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_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 TargetHttpProxy resource. + * + * Create a request for the method "targetHttpProxies.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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetHttpProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxy.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 TargetHttpProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy resource to return. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to return. */ + public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetHttpProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetHttpProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetHttpProxy resources available to the specified project. + * + * Create a request for the method "targetHttpProxies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of TargetHttpProxy resources available to the specified project. + * + * Create a request for the method "targetHttpProxies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified TargetHttpProxy resource with the data included in the request. This method + * supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetHttpProxies.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 Project ID for this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { + Patch result = new Patch(project, targetHttpProxy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified TargetHttpProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetHttpProxies.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 Project ID for this request. + * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.TargetHttpProxy content) { + super(Compute.this, "PATCH", 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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 TargetHttpProxy resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy resource to patch. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy resource to patch. */ + public Patch setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Changes the URL map for TargetHttpProxy. + * + * Create a request for the method "targetHttpProxies.setUrlMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @return the request + */ + public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { + SetUrlMap result = new SetUrlMap(project, targetHttpProxy, content); + initialize(result); + return result; + } + + public class SetUrlMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the URL map for TargetHttpProxy. + * + * Create a request for the method "targetHttpProxies.setUrlMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

+ * {@link + * SetUrlMap#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 targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @since 1.13 + */ + protected SetUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.model.UrlMapReference 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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); + } + + @Override + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); + } + + @Override + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); + } + + @Override + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); + } + + @Override + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); + } + + @Override + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); + } + + @Override + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); + } + + @Override + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); + } + + @Override + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); + } + + @Override + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) 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 SetUrlMap 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 TargetHttpProxy to set a URL map for. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpProxy; + + /** Name of the TargetHttpProxy to set a URL map for. + */ + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; + } + + /** Name of the TargetHttpProxy to set a URL map for. */ + public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), + "Parameter targetHttpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpProxy = targetHttpProxy; + 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 SetUrlMap setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetHttpsProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetHttpsProxies.List request = compute.targetHttpsProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetHttpsProxies targetHttpsProxies() { + return new TargetHttpsProxies(); + } + + /** + * The "targetHttpsProxies" collection of methods. + */ + public class TargetHttpsProxies { + + /** + * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetHttpsProxies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/targetHttpsProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetHttpsProxies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified TargetHttpsProxy resource. + * + * Create a request for the method "targetHttpsProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { + Delete result = new Delete(project, targetHttpsProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetHttpsProxy resource. + * + * Create a request for the method "targetHttpsProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String targetHttpsProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 TargetHttpsProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to delete. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy resource to delete. */ + public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetHttpsProxy resource. + * + * Create a request for the method "targetHttpsProxies.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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { + Get result = new Get(project, targetHttpsProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_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 TargetHttpsProxy resource. + * + * Create a request for the method "targetHttpsProxies.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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetHttpsProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 TargetHttpsProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to return. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy resource to return. */ + public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetHttpsProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetHttpsProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpsProxy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * + * Create a request for the method "targetHttpsProxies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * + * Create a request for the method "targetHttpsProxies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified TargetHttpsProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetHttpsProxies.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 Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { + Patch result = new Patch(project, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified TargetHttpsProxy resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "targetHttpsProxies.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 Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxy content) { + super(Compute.this, "PATCH", 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 TargetHttpsProxy resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to patch. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** Name of the TargetHttpsProxy resource to patch. */ + public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Changes the Certificate Map for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setCertificateMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap is + to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest} + * @return the request + */ + public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest content) throws java.io.IOException { + SetCertificateMap result = new SetCertificateMap(project, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetCertificateMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Changes the Certificate Map for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setCertificateMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap is + to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest} + * @since 1.13 + */ + protected SetCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { + return (SetCertificateMap) super.set$Xgafv($Xgafv); + } + + @Override + public SetCertificateMap setAccessToken(java.lang.String accessToken) { + return (SetCertificateMap) super.setAccessToken(accessToken); + } + + @Override + public SetCertificateMap setAlt(java.lang.String alt) { + return (SetCertificateMap) super.setAlt(alt); + } + + @Override + public SetCertificateMap setCallback(java.lang.String callback) { + return (SetCertificateMap) super.setCallback(callback); + } + + @Override + public SetCertificateMap setFields(java.lang.String fields) { + return (SetCertificateMap) super.setFields(fields); + } + + @Override + public SetCertificateMap setKey(java.lang.String key) { + return (SetCertificateMap) super.setKey(key); + } + + @Override + public SetCertificateMap setOauthToken(java.lang.String oauthToken) { + return (SetCertificateMap) super.setOauthToken(oauthToken); + } + + @Override + public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCertificateMap) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { + return (SetCertificateMap) super.setQuotaUser(quotaUser); + } + + @Override + public SetCertificateMap setUploadType(java.lang.String uploadType) { + return (SetCertificateMap) super.setUploadType(uploadType); + } + + @Override + public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetCertificateMap setUserIp(java.lang.String userIp) { + return (SetCertificateMap) 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 SetCertificateMap 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 TargetHttpsProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 + characters long, and comply with RFC1035. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ + public SetCertificateMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + this.targetHttpsProxy = targetHttpsProxy; + 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 SetCertificateMap setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetCertificateMap set(String parameterName, Object value) { + return (SetCertificateMap) super.set(parameterName, value); + } + } + /** + * Sets the QUIC override policy for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setQuicOverride". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. + The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest} + * @return the request + */ + public SetQuicOverride setQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest content) throws java.io.IOException { + SetQuicOverride result = new SetQuicOverride(project, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetQuicOverride extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the QUIC override policy for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setQuicOverride". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. + The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest} + * @since 1.13 + */ + protected SetQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetQuicOverrideRequest 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetQuicOverride set$Xgafv(java.lang.String $Xgafv) { + return (SetQuicOverride) super.set$Xgafv($Xgafv); + } + + @Override + public SetQuicOverride setAccessToken(java.lang.String accessToken) { + return (SetQuicOverride) super.setAccessToken(accessToken); + } + + @Override + public SetQuicOverride setAlt(java.lang.String alt) { + return (SetQuicOverride) super.setAlt(alt); + } + + @Override + public SetQuicOverride setCallback(java.lang.String callback) { + return (SetQuicOverride) super.setCallback(callback); + } + + @Override + public SetQuicOverride setFields(java.lang.String fields) { + return (SetQuicOverride) super.setFields(fields); + } + + @Override + public SetQuicOverride setKey(java.lang.String key) { + return (SetQuicOverride) super.setKey(key); + } + + @Override + public SetQuicOverride setOauthToken(java.lang.String oauthToken) { + return (SetQuicOverride) super.setOauthToken(oauthToken); + } + + @Override + public SetQuicOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetQuicOverride) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetQuicOverride setQuotaUser(java.lang.String quotaUser) { + return (SetQuicOverride) super.setQuotaUser(quotaUser); + } + + @Override + public SetQuicOverride setUploadType(java.lang.String uploadType) { + return (SetQuicOverride) super.setUploadType(uploadType); + } + + @Override + public SetQuicOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (SetQuicOverride) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetQuicOverride setUserIp(java.lang.String userIp) { + return (SetQuicOverride) 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 SetQuicOverride 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 TargetHttpsProxy resource to set the QUIC override policy for. The name should + * conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform + to RFC1035. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should + * conform to RFC1035. + */ + public SetQuicOverride setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + this.targetHttpsProxy = targetHttpsProxy; + 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 SetQuicOverride setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetQuicOverride set(String parameterName, Object value) { + return (SetQuicOverride) super.set(parameterName, value); + } + } + /** + * Replaces SslCertificates for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setSslCertificates". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an + SslCertificates resource for. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} + * @return the request + */ + public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest content) throws java.io.IOException { + SetSslCertificates result = new SetSslCertificates(project, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetSslCertificates extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Replaces SslCertificates for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setSslCertificates". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an + SslCertificates resource for. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} + * @since 1.13 + */ + protected SetSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); + } + + @Override + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); + } + + @Override + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); + } + + @Override + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); + } + + @Override + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); + } + + @Override + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); + } + + @Override + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); + } + + @Override + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); + } + + @Override + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); + } + + @Override + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) 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 SetSslCertificates 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 TargetHttpsProxy resource to set an SslCertificates resource for. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + */ + public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 SetSslCertificates setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); + } + } + /** + * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for + * SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do + * not affect the connection between the load balancer and the backends. + * + * Create a request for the method "targetHttpsProxies.setSslPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is + to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicyReference} + * @return the request + */ + public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.SslPolicyReference content) throws java.io.IOException { + SetSslPolicy result = new SetSslPolicy(project, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetSslPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for + * SSL features. This affects connections between clients and the HTTPS proxy load balancer. They + * do not affect the connection between the load balancer and the backends. + * + * Create a request for the method "targetHttpsProxies.setSslPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetSslPolicy#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 targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is + to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicyReference} + * @since 1.13 + */ + protected SetSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.SslPolicyReference 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSslPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetSslPolicy setAccessToken(java.lang.String accessToken) { + return (SetSslPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetSslPolicy setAlt(java.lang.String alt) { + return (SetSslPolicy) super.setAlt(alt); + } + + @Override + public SetSslPolicy setCallback(java.lang.String callback) { + return (SetSslPolicy) super.setCallback(callback); + } + + @Override + public SetSslPolicy setFields(java.lang.String fields) { + return (SetSslPolicy) super.setFields(fields); + } + + @Override + public SetSslPolicy setKey(java.lang.String key) { + return (SetSslPolicy) super.setKey(key); + } + + @Override + public SetSslPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSslPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSslPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetSslPolicy setUploadType(java.lang.String uploadType) { + return (SetSslPolicy) super.setUploadType(uploadType); + } + + @Override + public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSslPolicy setUserIp(java.lang.String userIp) { + return (SetSslPolicy) 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 SetSslPolicy 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 TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 + characters long, and comply with RFC1035. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + */ + public SetSslPolicy setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + this.targetHttpsProxy = targetHttpsProxy; + 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 SetSslPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSslPolicy set(String parameterName, Object value) { + return (SetSslPolicy) super.set(parameterName, value); + } + } + /** + * Changes the URL map for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setUrlMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is + to be set. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @return the request + */ + public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { + SetUrlMap result = new SetUrlMap(project, targetHttpsProxy, content); + initialize(result); + return result; + } + + public class SetUrlMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_HTTPS_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the URL map for TargetHttpsProxy. + * + * Create a request for the method "targetHttpsProxies.setUrlMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

+ * {@link + * SetUrlMap#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 targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is + to be set. + * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @since 1.13 + */ + protected SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); + } + + @Override + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); + } + + @Override + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); + } + + @Override + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); + } + + @Override + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); + } + + @Override + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); + } + + @Override + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); + } + + @Override + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); + } + + @Override + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); + } + + @Override + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) 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 SetUrlMap 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 TargetHttpsProxy resource whose URL map is to be set. + */ + @com.google.api.client.util.Key + private java.lang.String targetHttpsProxy; + + /** Name of the TargetHttpsProxy resource whose URL map is to be set. + */ + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; + } + + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ + public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), + "Parameter targetHttpsProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetHttpsProxy = targetHttpsProxy; + 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 SetUrlMap setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetInstances collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetInstances.List request = compute.targetInstances().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetInstances targetInstances() { + return new TargetInstances(); + } + + /** + * The "targetInstances" collection of methods. + */ + public class TargetInstances { + + /** + * Retrieves an aggregated list of target instances. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetInstances.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/targetInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of target instances. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetInstances.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstanceAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified TargetInstance resource. + * + * Create a request for the method "targetInstances.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { + Delete result = new Delete(project, zone, targetInstance); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern TARGET_INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetInstance resource. + * + * Create a request for the method "targetInstances.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping this request. */ + public Delete 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 TargetInstance resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetInstance; + + /** Name of the TargetInstance resource to delete. + */ + public java.lang.String getTargetInstance() { + return targetInstance; + } + + /** Name of the TargetInstance resource to delete. */ + public Delete setTargetInstance(java.lang.String targetInstance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetInstance = targetInstance; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetInstance resource. + * + * Create a request for the method "targetInstances.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 zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { + Get result = new Get(project, zone, targetInstance); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern TARGET_INSTANCE_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 TargetInstance resource. + * + * Create a request for the method "targetInstances.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 zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstance.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])?"); + } + this.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping 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 TargetInstance resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetInstance; + + /** Name of the TargetInstance resource to return. + */ + public java.lang.String getTargetInstance() { + return targetInstance; + } + + /** Name of the TargetInstance resource to return. */ + public Get setTargetInstance(java.lang.String targetInstance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), + "Parameter targetInstance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetInstance = targetInstance; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. + * + * Create a request for the method "targetInstances.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetInstance} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.TargetInstance content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. + * + * Create a request for the method "targetInstances.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 Name of the zone scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetInstance} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.TargetInstance 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of TargetInstance resources available to the specified project and zone. + * + * Create a request for the method "targetInstances.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 Name of the zone scoping 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}/targetInstances"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TargetInstance resources available to the specified project and zone. + * + * Create a request for the method "targetInstances.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 Name of the zone scoping 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.TargetInstanceList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the Google Cloud Armor security policy for the specified target instance. For more + * information, seeGoogle Cloud Armor Overview + * + * Create a request for the method "targetInstances.setSecurityPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to which the security policy should be + set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @return the request + */ + public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { + SetSecurityPolicy result = new SetSecurityPolicy(project, zone, targetInstance, content); + initialize(result); + return result; + } + + public class SetSecurityPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Sets the Google Cloud Armor security policy for the specified target instance. For more + * information, seeGoogle Cloud Armor Overview + * + * Create a request for the method "targetInstances.setSecurityPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone scoping this request. + * @param targetInstance Name of the TargetInstance resource to which the security policy should be + set. The name should + * conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @since 1.13 + */ + protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.model.SecurityPolicyReference 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.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])?"); + } + this.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); + } + + @Override + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); + } + + @Override + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); + } + + @Override + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); + } + + @Override + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); + } + + @Override + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) 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 SetSecurityPolicy 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 zone scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone scoping this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone scoping this request. */ + public SetSecurityPolicy 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 TargetInstance resource to which the security policy should be set. The name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetInstance; + + /** Name of the TargetInstance resource to which the security policy should be set. The name should + conform to RFC1035. + */ + public java.lang.String getTargetInstance() { + return targetInstance; + } + + /** + * Name of the TargetInstance resource to which the security policy should be set. The name + * should conform to RFC1035. + */ + public SetSecurityPolicy setTargetInstance(java.lang.String targetInstance) { + this.targetInstance = targetInstance; + 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "targetInstances.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "targetInstances.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.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])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetPools collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetPools.List request = compute.targetPools().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetPools targetPools() { + return new TargetPools(); + } + + /** + * The "targetPools" collection of methods. + */ + public class TargetPools { + + /** + * Adds health check URLs to a target pool. + * + * Create a request for the method "targetPools.addHealthCheck". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the target pool to add a health check to. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest} + * @return the request + */ + public AddHealthCheck addHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest content) throws java.io.IOException { + AddHealthCheck result = new AddHealthCheck(project, region, targetPool, content); + initialize(result); + return result; + } + + public class AddHealthCheck extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds health check URLs to a target pool. + * + * Create a request for the method "targetPools.addHealthCheck". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation. + *

{@link AddHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 targetPool Name of the target pool to add a health check to. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest} + * @since 1.13 + */ + protected AddHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddHealthCheck set$Xgafv(java.lang.String $Xgafv) { + return (AddHealthCheck) super.set$Xgafv($Xgafv); + } + + @Override + public AddHealthCheck setAccessToken(java.lang.String accessToken) { + return (AddHealthCheck) super.setAccessToken(accessToken); + } + + @Override + public AddHealthCheck setAlt(java.lang.String alt) { + return (AddHealthCheck) super.setAlt(alt); + } + + @Override + public AddHealthCheck setCallback(java.lang.String callback) { + return (AddHealthCheck) super.setCallback(callback); + } + + @Override + public AddHealthCheck setFields(java.lang.String fields) { + return (AddHealthCheck) super.setFields(fields); + } + + @Override + public AddHealthCheck setKey(java.lang.String key) { + return (AddHealthCheck) super.setKey(key); + } + + @Override + public AddHealthCheck setOauthToken(java.lang.String oauthToken) { + return (AddHealthCheck) super.setOauthToken(oauthToken); + } + + @Override + public AddHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddHealthCheck) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddHealthCheck setQuotaUser(java.lang.String quotaUser) { + return (AddHealthCheck) super.setQuotaUser(quotaUser); + } + + @Override + public AddHealthCheck setUploadType(java.lang.String uploadType) { + return (AddHealthCheck) super.setUploadType(uploadType); + } + + @Override + public AddHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { + return (AddHealthCheck) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddHealthCheck setUserIp(java.lang.String userIp) { + return (AddHealthCheck) 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 AddHealthCheck 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 AddHealthCheck 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 target pool to add a health check to. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the target pool to add a health check to. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the target pool to add a health check to. */ + public AddHealthCheck setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + 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 AddHealthCheck setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddHealthCheck set(String parameterName, Object value) { + return (AddHealthCheck) super.set(parameterName, value); + } + } + /** + * Adds an instance to a target pool. + * + * Create a request for the method "targetPools.addInstance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to add instances to. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} + * @return the request + */ + public AddInstance addInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest content) throws java.io.IOException { + AddInstance result = new AddInstance(project, region, targetPool, content); + initialize(result); + return result; + } + + public class AddInstance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Adds an instance to a target pool. + * + * Create a request for the method "targetPools.addInstance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to add instances to. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} + * @since 1.13 + */ + protected AddInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public AddInstance set$Xgafv(java.lang.String $Xgafv) { + return (AddInstance) super.set$Xgafv($Xgafv); + } + + @Override + public AddInstance setAccessToken(java.lang.String accessToken) { + return (AddInstance) super.setAccessToken(accessToken); + } + + @Override + public AddInstance setAlt(java.lang.String alt) { + return (AddInstance) super.setAlt(alt); + } + + @Override + public AddInstance setCallback(java.lang.String callback) { + return (AddInstance) super.setCallback(callback); + } + + @Override + public AddInstance setFields(java.lang.String fields) { + return (AddInstance) super.setFields(fields); + } + + @Override + public AddInstance setKey(java.lang.String key) { + return (AddInstance) super.setKey(key); + } + + @Override + public AddInstance setOauthToken(java.lang.String oauthToken) { + return (AddInstance) super.setOauthToken(oauthToken); + } + + @Override + public AddInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddInstance) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddInstance setQuotaUser(java.lang.String quotaUser) { + return (AddInstance) super.setQuotaUser(quotaUser); + } + + @Override + public AddInstance setUploadType(java.lang.String uploadType) { + return (AddInstance) super.setUploadType(uploadType); + } + + @Override + public AddInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (AddInstance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddInstance setUserIp(java.lang.String userIp) { + return (AddInstance) 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 AddInstance 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 AddInstance 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 TargetPool resource to add instances to. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to add instances to. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to add instances to. */ + public AddInstance setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + 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 AddInstance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddInstance set(String parameterName, Object value) { + return (AddInstance) super.set(parameterName, value); + } + } + /** + * Retrieves an aggregated list of target pools. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetPools.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/targetPools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of target pools. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetPools.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetPoolAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified target pool. + * + * Create a request for the method "targetPools.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) throws java.io.IOException { + Delete result = new Delete(project, region, targetPool); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified target pool. + * + * Create a request for the method "targetPools.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 Delete 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 TargetPool resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to delete. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to delete. */ + public Delete setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified target pool. + * + * Create a request for the method "targetPools.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 region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetPool) throws java.io.IOException { + Get result = new Get(project, region, targetPool); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_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 target pool. + * + * Create a request for the method "targetPools.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 region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetPool) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetPool.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 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 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 TargetPool resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to return. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to return. */ + public Get setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the most recent health check results for each IP for the instance that is referenced by the + * given target pool. + * + * Create a request for the method "targetPools.getHealth". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to which the queried instance belongs. + * @param content the {@link com.google.api.services.compute.model.InstanceReference} + * @return the request + */ + public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.InstanceReference content) throws java.io.IOException { + GetHealth result = new GetHealth(project, region, targetPool, content); + initialize(result); + return result; + } + + public class GetHealth extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the most recent health check results for each IP for the instance that is referenced by + * the given target pool. + * + * Create a request for the method "targetPools.getHealth". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to which the queried instance belongs. + * @param content the {@link com.google.api.services.compute.model.InstanceReference} + * @since 1.13 + */ + protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.InstanceReference content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TargetPoolInstanceHealth.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); + } + + @Override + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); + } + + @Override + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); + } + + @Override + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); + } + + @Override + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); + } + + @Override + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); + } + + @Override + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); + } + + @Override + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); + } + + @Override + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); + } + + @Override + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) 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 GetHealth 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 GetHealth 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 TargetPool resource to which the queried instance belongs. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to which the queried instance belongs. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to which the queried instance belongs. */ + public GetHealth setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + return this; + } + + @Override + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); + } + } + /** + * Creates a target pool in the specified project and region using the data included in the request. + * + * Create a request for the method "targetPools.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetPool} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a target pool in the specified project and region using the data included in the + * request. + * + * Create a request for the method "targetPools.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetPool} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of target pools available to the specified project and region. + * + * Create a request for the method "targetPools.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 region Name of the region scoping 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}/targetPools"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of target pools available to the specified project and region. + * + * Create a request for the method "targetPools.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 region Name of the region scoping 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.TargetPoolList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** 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 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Removes health check URL from a target pool. + * + * Create a request for the method "targetPools.removeHealthCheck". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param targetPool Name of the target pool to remove health checks from. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest} + * @return the request + */ + public RemoveHealthCheck removeHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest content) throws java.io.IOException { + RemoveHealthCheck result = new RemoveHealthCheck(project, region, targetPool, content); + initialize(result); + return result; + } + + public class RemoveHealthCheck extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes health check URL from a target pool. + * + * Create a request for the method "targetPools.removeHealthCheck". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. + *

{@link RemoveHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} 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 for this request. + * @param targetPool Name of the target pool to remove health checks from. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest} + * @since 1.13 + */ + protected RemoveHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveHealthCheck set$Xgafv(java.lang.String $Xgafv) { + return (RemoveHealthCheck) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveHealthCheck setAccessToken(java.lang.String accessToken) { + return (RemoveHealthCheck) super.setAccessToken(accessToken); + } + + @Override + public RemoveHealthCheck setAlt(java.lang.String alt) { + return (RemoveHealthCheck) super.setAlt(alt); + } + + @Override + public RemoveHealthCheck setCallback(java.lang.String callback) { + return (RemoveHealthCheck) super.setCallback(callback); + } + + @Override + public RemoveHealthCheck setFields(java.lang.String fields) { + return (RemoveHealthCheck) super.setFields(fields); + } + + @Override + public RemoveHealthCheck setKey(java.lang.String key) { + return (RemoveHealthCheck) super.setKey(key); + } + + @Override + public RemoveHealthCheck setOauthToken(java.lang.String oauthToken) { + return (RemoveHealthCheck) super.setOauthToken(oauthToken); + } + + @Override + public RemoveHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveHealthCheck) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveHealthCheck setQuotaUser(java.lang.String quotaUser) { + return (RemoveHealthCheck) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveHealthCheck setUploadType(java.lang.String uploadType) { + return (RemoveHealthCheck) super.setUploadType(uploadType); + } + + @Override + public RemoveHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveHealthCheck) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveHealthCheck setUserIp(java.lang.String userIp) { + return (RemoveHealthCheck) 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 RemoveHealthCheck 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public RemoveHealthCheck 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 target pool to remove health checks from. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the target pool to remove health checks from. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the target pool to remove health checks from. */ + public RemoveHealthCheck setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + 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 RemoveHealthCheck setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveHealthCheck set(String parameterName, Object value) { + return (RemoveHealthCheck) super.set(parameterName, value); + } + } + /** + * Removes instance URL from a target pool. + * + * Create a request for the method "targetPools.removeInstance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to remove instances from. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest} + * @return the request + */ + public RemoveInstance removeInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest content) throws java.io.IOException { + RemoveInstance result = new RemoveInstance(project, region, targetPool, content); + initialize(result); + return result; + } + + public class RemoveInstance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Removes instance URL from a target pool. + * + * Create a request for the method "targetPools.removeInstance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. + *

{@link RemoveInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} 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 targetPool Name of the TargetPool resource to remove instances from. + * @param content the {@link com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest} + * @since 1.13 + */ + protected RemoveInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public RemoveInstance set$Xgafv(java.lang.String $Xgafv) { + return (RemoveInstance) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveInstance setAccessToken(java.lang.String accessToken) { + return (RemoveInstance) super.setAccessToken(accessToken); + } + + @Override + public RemoveInstance setAlt(java.lang.String alt) { + return (RemoveInstance) super.setAlt(alt); + } + + @Override + public RemoveInstance setCallback(java.lang.String callback) { + return (RemoveInstance) super.setCallback(callback); + } + + @Override + public RemoveInstance setFields(java.lang.String fields) { + return (RemoveInstance) super.setFields(fields); + } + + @Override + public RemoveInstance setKey(java.lang.String key) { + return (RemoveInstance) super.setKey(key); + } + + @Override + public RemoveInstance setOauthToken(java.lang.String oauthToken) { + return (RemoveInstance) super.setOauthToken(oauthToken); + } + + @Override + public RemoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveInstance) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveInstance setQuotaUser(java.lang.String quotaUser) { + return (RemoveInstance) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveInstance setUploadType(java.lang.String uploadType) { + return (RemoveInstance) super.setUploadType(uploadType); + } + + @Override + public RemoveInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveInstance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public RemoveInstance setUserIp(java.lang.String userIp) { + return (RemoveInstance) 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 RemoveInstance 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 RemoveInstance 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 TargetPool resource to remove instances from. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to remove instances from. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to remove instances from. */ + public RemoveInstance setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + 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 RemoveInstance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public RemoveInstance set(String parameterName, Object value) { + return (RemoveInstance) super.set(parameterName, value); + } + } + /** + * Changes a backup target pool's configurations. + * + * Create a request for the method "targetPools.setBackup". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to set a backup pool for. + * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @return the request + */ + public SetBackup setBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { + SetBackup result = new SetBackup(project, region, targetPool, content); + initialize(result); + return result; + } + + public class SetBackup extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_POOL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes a backup target pool's configurations. + * + * Create a request for the method "targetPools.setBackup". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to set a backup pool for. + * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @since 1.13 + */ + protected SetBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetBackup set$Xgafv(java.lang.String $Xgafv) { + return (SetBackup) super.set$Xgafv($Xgafv); + } + + @Override + public SetBackup setAccessToken(java.lang.String accessToken) { + return (SetBackup) super.setAccessToken(accessToken); + } + + @Override + public SetBackup setAlt(java.lang.String alt) { + return (SetBackup) super.setAlt(alt); + } + + @Override + public SetBackup setCallback(java.lang.String callback) { + return (SetBackup) super.setCallback(callback); + } + + @Override + public SetBackup setFields(java.lang.String fields) { + return (SetBackup) super.setFields(fields); + } + + @Override + public SetBackup setKey(java.lang.String key) { + return (SetBackup) super.setKey(key); + } + + @Override + public SetBackup setOauthToken(java.lang.String oauthToken) { + return (SetBackup) super.setOauthToken(oauthToken); + } + + @Override + public SetBackup setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetBackup) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetBackup setQuotaUser(java.lang.String quotaUser) { + return (SetBackup) super.setQuotaUser(quotaUser); + } + + @Override + public SetBackup setUploadType(java.lang.String uploadType) { + return (SetBackup) super.setUploadType(uploadType); + } + + @Override + public SetBackup setUploadProtocol(java.lang.String uploadProtocol) { + return (SetBackup) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetBackup setUserIp(java.lang.String userIp) { + return (SetBackup) 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 SetBackup 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 SetBackup 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 TargetPool resource to set a backup pool for. */ + @com.google.api.client.util.Key + private java.lang.String targetPool; + + /** Name of the TargetPool resource to set a backup pool for. + */ + public java.lang.String getTargetPool() { + return targetPool; + } + + /** Name of the TargetPool resource to set a backup pool for. */ + public SetBackup setTargetPool(java.lang.String targetPool) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), + "Parameter targetPool must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetPool = targetPool; + return this; + } + + /** New failoverRatio value for the target pool. */ + @com.google.api.client.util.Key + private java.lang.Float failoverRatio; + + /** New failoverRatio value for the target pool. + */ + public java.lang.Float getFailoverRatio() { + return failoverRatio; + } + + /** New failoverRatio value for the target pool. */ + public SetBackup setFailoverRatio(java.lang.Float failoverRatio) { + this.failoverRatio = failoverRatio; + 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 SetBackup setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetBackup set(String parameterName, Object value) { + return (SetBackup) super.set(parameterName, value); + } + } + /** + * Sets the Google Cloud Armor security policy for the specified target pool. For more information, + * seeGoogle Cloud Armor Overview + * + * Create a request for the method "targetPools.setSecurityPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param targetPool Name of the TargetPool resource to which the security policy should be + set. The name should conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyReference} + * @return the request + */ + public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.SecurityPolicyReference content) throws java.io.IOException { + SetSecurityPolicy result = new SetSecurityPolicy(project, region, targetPool, content); + initialize(result); + return result; + } + + public class SetSecurityPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Sets the Google Cloud Armor security policy for the specified target pool. For more + * information, seeGoogle Cloud Armor Overview + * + * Create a request for the method "targetPools.setSecurityPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + *

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetSslProxies collection. + * + *

The typical use is:

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

{@link + * Delete#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 targetSslProxy Name of the TargetSslProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String targetSslProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 TargetSslProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource to delete. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** Name of the TargetSslProxy resource to delete. */ + public Delete setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetSslProxy = targetSslProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetSslProxy resource. + * + * Create a request for the method "targetSslProxies.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 targetSslProxy Name of the TargetSslProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException { + Get result = new Get(project, targetSslProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_SSL_PROXY_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 TargetSslProxy resource. + * + * Create a request for the method "targetSslProxies.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 targetSslProxy Name of the TargetSslProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetSslProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetSslProxy.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 TargetSslProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource to return. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** Name of the TargetSslProxy resource to return. */ + public Get setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetSslProxy = targetSslProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetSslProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetSslProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetSslProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a TargetSslProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetSslProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.TargetSslProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetSslProxy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetSslProxy resources available to the specified project. + * + * Create a request for the method "targetSslProxies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of TargetSslProxy resources available to the specified project. + * + * Create a request for the method "targetSslProxies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetSslProxyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Changes the BackendService for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setBackendService". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest} + * @return the request + */ + public SetBackendService setBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest content) throws java.io.IOException { + SetBackendService result = new SetBackendService(project, targetSslProxy, content); + initialize(result); + return result; + } + + public class SetBackendService extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_SSL_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the BackendService for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setBackendService". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest} + * @since 1.13 + */ + protected SetBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetBackendService set$Xgafv(java.lang.String $Xgafv) { + return (SetBackendService) super.set$Xgafv($Xgafv); + } + + @Override + public SetBackendService setAccessToken(java.lang.String accessToken) { + return (SetBackendService) super.setAccessToken(accessToken); + } + + @Override + public SetBackendService setAlt(java.lang.String alt) { + return (SetBackendService) super.setAlt(alt); + } + + @Override + public SetBackendService setCallback(java.lang.String callback) { + return (SetBackendService) super.setCallback(callback); + } + + @Override + public SetBackendService setFields(java.lang.String fields) { + return (SetBackendService) super.setFields(fields); + } + + @Override + public SetBackendService setKey(java.lang.String key) { + return (SetBackendService) super.setKey(key); + } + + @Override + public SetBackendService setOauthToken(java.lang.String oauthToken) { + return (SetBackendService) super.setOauthToken(oauthToken); + } + + @Override + public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetBackendService) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetBackendService setQuotaUser(java.lang.String quotaUser) { + return (SetBackendService) super.setQuotaUser(quotaUser); + } + + @Override + public SetBackendService setUploadType(java.lang.String uploadType) { + return (SetBackendService) super.setUploadType(uploadType); + } + + @Override + public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { + return (SetBackendService) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetBackendService setUserIp(java.lang.String userIp) { + return (SetBackendService) 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 SetBackendService 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 TargetSslProxy resource whose BackendService resource is to be set. + */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource whose BackendService resource is to be set. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** + * Name of the TargetSslProxy resource whose BackendService resource is to be set. + */ + public SetBackendService setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetSslProxy = targetSslProxy; + 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 SetBackendService setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetBackendService set(String parameterName, Object value) { + return (SetBackendService) super.set(parameterName, value); + } + } + /** + * Changes the Certificate Map for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setCertificateMap". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap is + to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest} + * @return the request + */ + public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest content) throws java.io.IOException { + SetCertificateMap result = new SetCertificateMap(project, targetSslProxy, content); + initialize(result); + return result; + } + + public class SetCertificateMap extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Changes the Certificate Map for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setCertificateMap". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap is + to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest} + * @since 1.13 + */ + protected SetCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetCertificateMapRequest 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { + return (SetCertificateMap) super.set$Xgafv($Xgafv); + } + + @Override + public SetCertificateMap setAccessToken(java.lang.String accessToken) { + return (SetCertificateMap) super.setAccessToken(accessToken); + } + + @Override + public SetCertificateMap setAlt(java.lang.String alt) { + return (SetCertificateMap) super.setAlt(alt); + } + + @Override + public SetCertificateMap setCallback(java.lang.String callback) { + return (SetCertificateMap) super.setCallback(callback); + } + + @Override + public SetCertificateMap setFields(java.lang.String fields) { + return (SetCertificateMap) super.setFields(fields); + } + + @Override + public SetCertificateMap setKey(java.lang.String key) { + return (SetCertificateMap) super.setKey(key); + } + + @Override + public SetCertificateMap setOauthToken(java.lang.String oauthToken) { + return (SetCertificateMap) super.setOauthToken(oauthToken); + } + + @Override + public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCertificateMap) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { + return (SetCertificateMap) super.setQuotaUser(quotaUser); + } + + @Override + public SetCertificateMap setUploadType(java.lang.String uploadType) { + return (SetCertificateMap) super.setUploadType(uploadType); + } + + @Override + public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetCertificateMap setUserIp(java.lang.String userIp) { + return (SetCertificateMap) 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 SetCertificateMap 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 TargetSslProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 + characters long, and comply with RFC1035. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** + * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be + * 1-63 characters long, and comply with RFC1035. + */ + public SetCertificateMap setTargetSslProxy(java.lang.String targetSslProxy) { + this.targetSslProxy = targetSslProxy; + 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 SetCertificateMap setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetCertificateMap set(String parameterName, Object value) { + return (SetCertificateMap) super.set(parameterName, value); + } + } + /** + * Changes the ProxyHeaderType for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setProxyHeader". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} + * @return the request + */ + public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest content) throws java.io.IOException { + SetProxyHeader result = new SetProxyHeader(project, targetSslProxy, content); + initialize(result); + return result; + } + + public class SetProxyHeader extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_SSL_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the ProxyHeaderType for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setProxyHeader". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} + * @since 1.13 + */ + protected SetProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetProxyHeader set$Xgafv(java.lang.String $Xgafv) { + return (SetProxyHeader) super.set$Xgafv($Xgafv); + } + + @Override + public SetProxyHeader setAccessToken(java.lang.String accessToken) { + return (SetProxyHeader) super.setAccessToken(accessToken); + } + + @Override + public SetProxyHeader setAlt(java.lang.String alt) { + return (SetProxyHeader) super.setAlt(alt); + } + + @Override + public SetProxyHeader setCallback(java.lang.String callback) { + return (SetProxyHeader) super.setCallback(callback); + } + + @Override + public SetProxyHeader setFields(java.lang.String fields) { + return (SetProxyHeader) super.setFields(fields); + } + + @Override + public SetProxyHeader setKey(java.lang.String key) { + return (SetProxyHeader) super.setKey(key); + } + + @Override + public SetProxyHeader setOauthToken(java.lang.String oauthToken) { + return (SetProxyHeader) super.setOauthToken(oauthToken); + } + + @Override + public SetProxyHeader setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetProxyHeader) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetProxyHeader setQuotaUser(java.lang.String quotaUser) { + return (SetProxyHeader) super.setQuotaUser(quotaUser); + } + + @Override + public SetProxyHeader setUploadType(java.lang.String uploadType) { + return (SetProxyHeader) super.setUploadType(uploadType); + } + + @Override + public SetProxyHeader setUploadProtocol(java.lang.String uploadProtocol) { + return (SetProxyHeader) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetProxyHeader setUserIp(java.lang.String userIp) { + return (SetProxyHeader) 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 SetProxyHeader 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 TargetSslProxy resource whose ProxyHeader is to be set. */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ + public SetProxyHeader setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetSslProxy = targetSslProxy; + 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 SetProxyHeader setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetProxyHeader set(String parameterName, Object value) { + return (SetProxyHeader) super.set(parameterName, value); + } + } + /** + * Changes SslCertificates for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setSslCertificates". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest} + * @return the request + */ + public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest content) throws java.io.IOException { + SetSslCertificates result = new SetSslCertificates(project, targetSslProxy, content); + initialize(result); + return result; + } + + public class SetSslCertificates extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_SSL_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes SslCertificates for TargetSslProxy. + * + * Create a request for the method "targetSslProxies.setSslCertificates". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest} + * @since 1.13 + */ + protected SetSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetSslCertificatesRequest 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); + } + + @Override + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); + } + + @Override + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); + } + + @Override + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); + } + + @Override + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); + } + + @Override + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); + } + + @Override + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); + } + + @Override + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); + } + + @Override + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); + } + + @Override + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) 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 SetSslCertificates 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 TargetSslProxy resource whose SslCertificate resource is to be set. + */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + */ + public SetSslCertificates setTargetSslProxy(java.lang.String targetSslProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), + "Parameter targetSslProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetSslProxy = targetSslProxy; + 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 SetSslCertificates setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); + } + } + /** + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL + * features. This affects connections between clients and the load balancer. They do not affect the + * connection between the load balancer and the backends. + * + * Create a request for the method "targetSslProxies.setSslPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetSslProxy Name of the TargetSslProxy resource whose SSL policy is + to be set. The name must be 1-63 characters + * long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicyReference} + * @return the request + */ + public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.SslPolicyReference content) throws java.io.IOException { + SetSslPolicy result = new SetSslPolicy(project, targetSslProxy, content); + initialize(result); + return result; + } + + public class SetSslPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for + * SSL features. This affects connections between clients and the load balancer. They do not + * affect the connection between the load balancer and the backends. + * + * Create a request for the method "targetSslProxies.setSslPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetSslPolicy#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 targetSslProxy Name of the TargetSslProxy resource whose SSL policy is + to be set. The name must be 1-63 characters + * long, and comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.SslPolicyReference} + * @since 1.13 + */ + protected SetSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.SslPolicyReference 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSslPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetSslPolicy setAccessToken(java.lang.String accessToken) { + return (SetSslPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetSslPolicy setAlt(java.lang.String alt) { + return (SetSslPolicy) super.setAlt(alt); + } + + @Override + public SetSslPolicy setCallback(java.lang.String callback) { + return (SetSslPolicy) super.setCallback(callback); + } + + @Override + public SetSslPolicy setFields(java.lang.String fields) { + return (SetSslPolicy) super.setFields(fields); + } + + @Override + public SetSslPolicy setKey(java.lang.String key) { + return (SetSslPolicy) super.setKey(key); + } + + @Override + public SetSslPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSslPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSslPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetSslPolicy setUploadType(java.lang.String uploadType) { + return (SetSslPolicy) super.setUploadType(uploadType); + } + + @Override + public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetSslPolicy setUserIp(java.lang.String userIp) { + return (SetSslPolicy) 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 SetSslPolicy 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 TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String targetSslProxy; + + /** Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters + long, and comply with RFC1035. + */ + public java.lang.String getTargetSslProxy() { + return targetSslProxy; + } + + /** + * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 + * characters long, and comply with RFC1035. + */ + public SetSslPolicy setTargetSslProxy(java.lang.String targetSslProxy) { + this.targetSslProxy = targetSslProxy; + 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 SetSslPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetSslPolicy set(String parameterName, Object value) { + return (SetSslPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "targetSslProxies.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "targetSslProxies.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetTcpProxies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetTcpProxies.List request = compute.targetTcpProxies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetTcpProxies targetTcpProxies() { + return new TargetTcpProxies(); + } + + /** + * The "targetTcpProxies" collection of methods. + */ + public class TargetTcpProxies { + + /** + * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetTcpProxies.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/targetTcpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the + * specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetTcpProxies.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified TargetTcpProxy resource. + * + * Create a request for the method "targetTcpProxies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { + Delete result = new Delete(project, targetTcpProxy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_TCP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified TargetTcpProxy resource. + * + * Create a request for the method "targetTcpProxies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String targetTcpProxy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 TargetTcpProxy resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetTcpProxy; + + /** Name of the TargetTcpProxy resource to delete. + */ + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; + } + + /** Name of the TargetTcpProxy resource to delete. */ + public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetTcpProxy = targetTcpProxy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified TargetTcpProxy resource. + * + * Create a request for the method "targetTcpProxies.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 targetTcpProxy Name of the TargetTcpProxy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { + Get result = new Get(project, targetTcpProxy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_TCP_PROXY_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 TargetTcpProxy resource. + * + * Create a request for the method "targetTcpProxies.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 targetTcpProxy Name of the TargetTcpProxy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String targetTcpProxy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxy.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 TargetTcpProxy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String targetTcpProxy; + + /** Name of the TargetTcpProxy resource to return. + */ + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; + } + + /** Name of the TargetTcpProxy resource to return. */ + public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetTcpProxy = targetTcpProxy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a TargetTcpProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetTcpProxies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetTcpProxy content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a TargetTcpProxy resource in the specified project using the data included in the + * request. + * + * Create a request for the method "targetTcpProxies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.TargetTcpProxy 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of TargetTcpProxy resources available to the specified project. + * + * Create a request for the method "targetTcpProxies.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of TargetTcpProxy resources available to the specified project. + * + * Create a request for the method "targetTcpProxies.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Changes the BackendService for TargetTcpProxy. + * + * Create a request for the method "targetTcpProxies.setBackendService". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} + * @return the request + */ + public SetBackendService setBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest content) throws java.io.IOException { + SetBackendService result = new SetBackendService(project, targetTcpProxy, content); + initialize(result); + return result; + } + + public class SetBackendService extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_TCP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the BackendService for TargetTcpProxy. + * + * Create a request for the method "targetTcpProxies.setBackendService". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource + is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} + * @since 1.13 + */ + protected SetBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest 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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetBackendService set$Xgafv(java.lang.String $Xgafv) { + return (SetBackendService) super.set$Xgafv($Xgafv); + } + + @Override + public SetBackendService setAccessToken(java.lang.String accessToken) { + return (SetBackendService) super.setAccessToken(accessToken); + } + + @Override + public SetBackendService setAlt(java.lang.String alt) { + return (SetBackendService) super.setAlt(alt); + } + + @Override + public SetBackendService setCallback(java.lang.String callback) { + return (SetBackendService) super.setCallback(callback); + } + + @Override + public SetBackendService setFields(java.lang.String fields) { + return (SetBackendService) super.setFields(fields); + } + + @Override + public SetBackendService setKey(java.lang.String key) { + return (SetBackendService) super.setKey(key); + } + + @Override + public SetBackendService setOauthToken(java.lang.String oauthToken) { + return (SetBackendService) super.setOauthToken(oauthToken); + } + + @Override + public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetBackendService) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetBackendService setQuotaUser(java.lang.String quotaUser) { + return (SetBackendService) super.setQuotaUser(quotaUser); + } + + @Override + public SetBackendService setUploadType(java.lang.String uploadType) { + return (SetBackendService) super.setUploadType(uploadType); + } + + @Override + public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { + return (SetBackendService) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetBackendService setUserIp(java.lang.String userIp) { + return (SetBackendService) 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 SetBackendService 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 TargetTcpProxy resource whose BackendService resource is to be set. + */ + @com.google.api.client.util.Key + private java.lang.String targetTcpProxy; + + /** Name of the TargetTcpProxy resource whose BackendService resource is to be set. + */ + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; + } + + /** + * Name of the TargetTcpProxy resource whose BackendService resource is to be set. + */ + public SetBackendService setTargetTcpProxy(java.lang.String targetTcpProxy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), + "Parameter targetTcpProxy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetTcpProxy = targetTcpProxy; + 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 SetBackendService setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetBackendService set(String parameterName, Object value) { + return (SetBackendService) super.set(parameterName, value); + } + } + /** + * Changes the ProxyHeaderType for TargetTcpProxy. + * + * Create a request for the method "targetTcpProxies.setProxyHeader". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest} + * @return the request + */ + public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetProxyHeaderRequest content) throws java.io.IOException { + SetProxyHeader result = new SetProxyHeader(project, targetTcpProxy, content); + initialize(result); + return result; + } + + public class SetProxyHeader extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_TCP_PROXY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Changes the ProxyHeaderType for TargetTcpProxy. + * + * Create a request for the method "targetTcpProxies.setProxyHeader". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. + *

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

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

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the TargetVpnGateways collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public TargetVpnGateways targetVpnGateways() { + return new TargetVpnGateways(); + } + + /** + * The "targetVpnGateways" collection of methods. + */ + public class TargetVpnGateways { + + /** + * Retrieves an aggregated list of target VPN gateways. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetVpnGateways.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/targetVpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of target VPN gateways. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "targetVpnGateways.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGatewayAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified target VPN gateway. + * + * Create a request for the method "targetVpnGateways.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { + Delete result = new Delete(project, region, targetVpnGateway); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_VPN_GATEWAY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified target VPN gateway. + * + * Create a request for the method "targetVpnGateways.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { + super(Compute.this, "DELETE", REST_PATH, null, 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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 target VPN gateway to delete. */ + @com.google.api.client.util.Key + private java.lang.String targetVpnGateway; + + /** Name of the target VPN gateway to delete. + */ + public java.lang.String getTargetVpnGateway() { + return targetVpnGateway; + } + + /** Name of the target VPN gateway to delete. */ + public Delete setTargetVpnGateway(java.lang.String targetVpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetVpnGateway = targetVpnGateway; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified target VPN gateway. + * + * Create a request for the method "targetVpnGateways.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 region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { + Get result = new Get(project, region, targetVpnGateway); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 TARGET_VPN_GATEWAY_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 target VPN gateway. + * + * Create a request for the method "targetVpnGateways.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 region Name of the region for this request. + * @param targetVpnGateway Name of the target VPN gateway to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGateway.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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 target VPN gateway to return. */ + @com.google.api.client.util.Key + private java.lang.String targetVpnGateway; + + /** Name of the target VPN gateway to return. + */ + public java.lang.String getTargetVpnGateway() { + return targetVpnGateway; + } + + /** Name of the target VPN gateway to return. */ + public Get setTargetVpnGateway(java.lang.String targetVpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), + "Parameter targetVpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.targetVpnGateway = targetVpnGateway; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a target VPN gateway in the specified project and region using the data included in the + * request. + * + * Create a request for the method "targetVpnGateways.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.TargetVpnGateway} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a target VPN gateway in the specified project and region using the data included in the + * request. + * + * Create a request for the method "targetVpnGateways.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.TargetVpnGateway} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of target VPN gateways available to the specified project and region. + * + * Create a request for the method "targetVpnGateways.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 region 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}/targetVpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of target VPN gateways available to the specified project and region. + * + * Create a request for the method "targetVpnGateways.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 region 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.TargetVpnGatewayList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "targetVpnGateways.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "targetVpnGateways.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the UrlMaps collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public UrlMaps urlMaps() { + return new UrlMaps(); + } + + /** + * The "urlMaps" collection of methods. + */ + public class UrlMaps { + + /** + * Retrieves the list of all UrlMap resources, regional and global, available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "urlMaps.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Name of the project scoping this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/urlMaps"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of all UrlMap resources, regional and global, available to the specified + * project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "urlMaps.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Name of the project scoping this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapsAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } + + /** Name of the project scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Name of the project scoping this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Name of the project scoping this request. */ + public AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified UrlMap resource. + * + * Create a request for the method "urlMaps.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { + Delete result = new Delete(project, urlMap); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified UrlMap resource. + * + * Create a request for the method "urlMaps.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 urlMap Name of the UrlMap resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String urlMap) { + super(Compute.this, "DELETE", REST_PATH, null, 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 UrlMap resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to delete. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to delete. */ + public Delete setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified UrlMap resource. + * + * Create a request for the method "urlMaps.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 urlMap Name of the UrlMap resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { + Get result = new Get(project, urlMap); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_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 UrlMap resource. + * + * Create a request for the method "urlMaps.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 urlMap Name of the UrlMap resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String urlMap) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMap.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 UrlMap resource to return. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to return. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to return. */ + public Get setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + * Create a request for the method "urlMaps.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + * Create a request for the method "urlMaps.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.UrlMap 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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. + * + * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * + * Create a request for the method "urlMaps.invalidateCache". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @return the request + */ + public InvalidateCache invalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) throws java.io.IOException { + InvalidateCache result = new InvalidateCache(project, urlMap, content); + initialize(result); + return result; + } + + public class InvalidateCache extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. + * + * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). + * + * Create a request for the method "urlMaps.invalidateCache". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @since 1.13 + */ + protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { + return (InvalidateCache) super.set$Xgafv($Xgafv); + } + + @Override + public InvalidateCache setAccessToken(java.lang.String accessToken) { + return (InvalidateCache) super.setAccessToken(accessToken); + } + + @Override + public InvalidateCache setAlt(java.lang.String alt) { + return (InvalidateCache) super.setAlt(alt); + } + + @Override + public InvalidateCache setCallback(java.lang.String callback) { + return (InvalidateCache) super.setCallback(callback); + } + + @Override + public InvalidateCache setFields(java.lang.String fields) { + return (InvalidateCache) super.setFields(fields); + } + + @Override + public InvalidateCache setKey(java.lang.String key) { + return (InvalidateCache) super.setKey(key); + } + + @Override + public InvalidateCache setOauthToken(java.lang.String oauthToken) { + return (InvalidateCache) super.setOauthToken(oauthToken); + } + + @Override + public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvalidateCache) super.setPrettyPrint(prettyPrint); + } + + @Override + public InvalidateCache setQuotaUser(java.lang.String quotaUser) { + return (InvalidateCache) super.setQuotaUser(quotaUser); + } + + @Override + public InvalidateCache setUploadType(java.lang.String uploadType) { + return (InvalidateCache) super.setUploadType(uploadType); + } + + @Override + public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { + return (InvalidateCache) super.setUploadProtocol(uploadProtocol); + } + + @Override + public InvalidateCache setUserIp(java.lang.String userIp) { + return (InvalidateCache) 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 InvalidateCache 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 UrlMap scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap scoping this request. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap scoping this request. */ + public InvalidateCache setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + 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 InvalidateCache setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public InvalidateCache set(String parameterName, Object value) { + return (InvalidateCache) super.set(parameterName, value); + } + } + /** + * Retrieves the list of UrlMap resources available to the specified project. + * + * Create a request for the method "urlMaps.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/global/urlMaps"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of UrlMap resources available to the specified project. + * + * Create a request for the method "urlMaps.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Patches the specified UrlMap resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "urlMaps.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 Project ID for this request. + * @param urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { + Patch result = new Patch(project, urlMap, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Patches the specified UrlMap resource with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * + * Create a request for the method "urlMaps.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 Project ID for this request. + * @param urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) { + super(Compute.this, "PATCH", 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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 UrlMap resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to patch. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to patch. */ + public Patch setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + 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 Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "urlMaps.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "urlMaps.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

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

{@link + * Update#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 urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMap content) { + super(Compute.this, "PUT", 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 UrlMap resource to update. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to update. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to update. */ + public Update setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be + * run. Calling this method does NOT create the UrlMap. + * + * Create a request for the method "urlMaps.validate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Validate#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param urlMap Name of the UrlMap resource to be validated as. + * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @return the request + */ + public Validate validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMapsValidateRequest content) throws java.io.IOException { + Validate result = new Validate(project, urlMap, content); + initialize(result); + return result; + } + + public class Validate extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/validate"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 URL_MAP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be + * run. Calling this method does NOT create the UrlMap. + * + * Create a request for the method "urlMaps.validate". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Validate#execute()} method to invoke the remote operation.

+ * {@link + * Validate#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 urlMap Name of the UrlMap resource to be validated as. + * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @since 1.13 + */ + protected Validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.UrlMapsValidateRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.UrlMapsValidateResponse.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); + } + + @Override + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); + } + + @Override + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); + } + + @Override + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); + } + + @Override + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); + } + + @Override + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); + } + + @Override + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); + } + + @Override + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); + } + + @Override + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); + } + + @Override + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Validate setUserIp(java.lang.String userIp) { + return (Validate) 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 Validate 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 UrlMap resource to be validated as. */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** Name of the UrlMap resource to be validated as. + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** Name of the UrlMap resource to be validated as. */ + public Validate setUrlMap(java.lang.String urlMap) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), + "Parameter urlMap must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.urlMap = urlMap; + return this; + } + + @Override + public Validate set(String parameterName, Object value) { + return (Validate) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the VpnGateways collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.VpnGateways.List request = compute.vpnGateways().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public VpnGateways vpnGateways() { + return new VpnGateways(); + } + + /** + * The "vpnGateways" collection of methods. + */ + public class VpnGateways { + + /** + * Retrieves an aggregated list of VPN gateways. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "vpnGateways.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/vpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of VPN gateways. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "vpnGateways.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGatewayAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified VPN gateway. + * + * Create a request for the method "vpnGateways.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { + Delete result = new Delete(project, region, vpnGateway); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 VPN_GATEWAY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified VPN gateway. + * + * Create a request for the method "vpnGateways.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { + super(Compute.this, "DELETE", REST_PATH, null, 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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 VPN gateway to delete. */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** Name of the VPN gateway to delete. + */ + public java.lang.String getVpnGateway() { + return vpnGateway; + } + + /** Name of the VPN gateway to delete. */ + public Delete setVpnGateway(java.lang.String vpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vpnGateway = vpnGateway; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified VPN gateway. + * + * Create a request for the method "vpnGateways.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 region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { + Get result = new Get(project, region, vpnGateway); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 VPN_GATEWAY_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 VPN gateway. + * + * Create a request for the method "vpnGateways.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 region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGateway.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 VPN gateway to return. */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** Name of the VPN gateway to return. + */ + public java.lang.String getVpnGateway() { + return vpnGateway; + } + + /** Name of the VPN gateway to return. */ + public Get setVpnGateway(java.lang.String vpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vpnGateway = vpnGateway; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns the status for the specified VPN gateway. + * + * Create a request for the method "vpnGateways.getStatus". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetStatus#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. + * @return the request + */ + public GetStatus getStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { + GetStatus result = new GetStatus(project, region, vpnGateway); + initialize(result); + return result; + } + + public class GetStatus extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 VPN_GATEWAY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the status for the specified VPN gateway. + * + * Create a request for the method "vpnGateways.getStatus". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetStatus#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. + * @since 1.13 + */ + protected GetStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnGatewaysGetStatusResponse.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetStatus) super.set$Xgafv($Xgafv); + } + + @Override + public GetStatus setAccessToken(java.lang.String accessToken) { + return (GetStatus) super.setAccessToken(accessToken); + } + + @Override + public GetStatus setAlt(java.lang.String alt) { + return (GetStatus) super.setAlt(alt); + } + + @Override + public GetStatus setCallback(java.lang.String callback) { + return (GetStatus) super.setCallback(callback); + } + + @Override + public GetStatus setFields(java.lang.String fields) { + return (GetStatus) super.setFields(fields); + } + + @Override + public GetStatus setKey(java.lang.String key) { + return (GetStatus) super.setKey(key); + } + + @Override + public GetStatus setOauthToken(java.lang.String oauthToken) { + return (GetStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetStatus setQuotaUser(java.lang.String quotaUser) { + return (GetStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetStatus setUploadType(java.lang.String uploadType) { + return (GetStatus) super.setUploadType(uploadType); + } + + @Override + public GetStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetStatus setUserIp(java.lang.String userIp) { + return (GetStatus) 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 GetStatus 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public GetStatus 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 VPN gateway to return. */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** Name of the VPN gateway to return. + */ + public java.lang.String getVpnGateway() { + return vpnGateway; + } + + /** Name of the VPN gateway to return. */ + public GetStatus setVpnGateway(java.lang.String vpnGateway) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), + "Parameter vpnGateway must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vpnGateway = vpnGateway; + return this; + } + + @Override + public GetStatus set(String parameterName, Object value) { + return (GetStatus) super.set(parameterName, value); + } + } + /** + * Creates a VPN gateway in the specified project and region using the data included in the request. + * + * Create a request for the method "vpnGateways.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnGateway} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnGateway content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a VPN gateway in the specified project and region using the data included in the + * request. + * + * Create a request for the method "vpnGateways.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnGateway} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnGateway 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of VPN gateways available to the specified project and region. + * + * Create a request for the method "vpnGateways.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 region 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}/vpnGateways"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of VPN gateways available to the specified project and region. + * + * Create a request for the method "vpnGateways.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 region 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.VpnGatewayList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "vpnGateways.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "vpnGateways.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the VpnTunnels collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.VpnTunnels.List request = compute.vpnTunnels().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public VpnTunnels vpnTunnels() { + return new VpnTunnels(); + } + + /** + * The "vpnTunnels" collection of methods. + */ + public class VpnTunnels { + + /** + * Retrieves an aggregated list of VPN tunnels. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "vpnTunnels.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/vpnTunnels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves an aggregated list of VPN tunnels. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "vpnTunnels.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnTunnelAggregatedList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); + } + + @Override + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); + } + + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); + } + + @Override + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } + + @Override + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); + } + + @Override + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); + } + + @Override + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); + } + + @Override + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); + } + + @Override + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); + } + + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) 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 AggregatedList 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; + } + + /** + * 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified VpnTunnel resource. + * + * Create a request for the method "vpnTunnels.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param vpnTunnel Name of the VpnTunnel resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) throws java.io.IOException { + Delete result = new Delete(project, region, vpnTunnel); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 VPN_TUNNEL_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified VpnTunnel resource. + * + * Create a request for the method "vpnTunnels.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param vpnTunnel Name of the VpnTunnel resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { + super(Compute.this, "DELETE", REST_PATH, null, 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.vpnTunnel = com.google.api.client.util.Preconditions.checkNotNull(vpnTunnel, "Required parameter vpnTunnel must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), + "Parameter vpnTunnel must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Delete 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 VpnTunnel resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String vpnTunnel; + + /** Name of the VpnTunnel resource to delete. + */ + public java.lang.String getVpnTunnel() { + return vpnTunnel; + } + + /** Name of the VpnTunnel resource to delete. */ + public Delete setVpnTunnel(java.lang.String vpnTunnel) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), + "Parameter vpnTunnel must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vpnTunnel = vpnTunnel; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified VpnTunnel resource. + * + * Create a request for the method "vpnTunnels.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 region Name of the region for this request. + * @param vpnTunnel Name of the VpnTunnel resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) throws java.io.IOException { + Get result = new Get(project, region, vpnTunnel); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 VPN_TUNNEL_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 VpnTunnel resource. + * + * Create a request for the method "vpnTunnels.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 region Name of the region for this request. + * @param vpnTunnel Name of the VpnTunnel resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VpnTunnel.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.vpnTunnel = com.google.api.client.util.Preconditions.checkNotNull(vpnTunnel, "Required parameter vpnTunnel must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), + "Parameter vpnTunnel must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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 VpnTunnel resource to return. */ + @com.google.api.client.util.Key + private java.lang.String vpnTunnel; + + /** Name of the VpnTunnel resource to return. + */ + public java.lang.String getVpnTunnel() { + return vpnTunnel; + } + + /** Name of the VpnTunnel resource to return. */ + public Get setVpnTunnel(java.lang.String vpnTunnel) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), + "Parameter vpnTunnel must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vpnTunnel = vpnTunnel; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a VpnTunnel resource in the specified project and region using the data included in the + * request. + * + * Create a request for the method "vpnTunnels.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnTunnel} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnTunnel content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a VpnTunnel resource in the specified project and region using the data included in the + * request. + * + * Create a request for the method "vpnTunnels.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnTunnel} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.VpnTunnel 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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of VpnTunnel resources contained in the specified project and region. + * + * Create a request for the method "vpnTunnels.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 region 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}/vpnTunnels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Retrieves a list of VpnTunnel resources contained in the specified project and region. + * + * Create a request for the method "vpnTunnels.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 region 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.VpnTunnelList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "vpnTunnels.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); + initialize(result); + return result; + } + + public class SetLabels extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels"; + + private static final String API_VERSION = "2026-10-01-preview"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "vpnTunnels.setLabels". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @since 1.13 + */ + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); + } + + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the WireGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.WireGroups.List request = compute.wireGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public WireGroups wireGroups() { + return new WireGroups(); + } + + /** + * The "wireGroups" collection of methods. + */ + public class WireGroups { + + /** + * Deletes the specified wire group in the given scope. + * + * Create a request for the method "wireGroups.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { + Delete result = new Delete(project, crossSiteNetwork, wireGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Deletes the specified wire group in the given scope. + * + * Create a request for the method "wireGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 crossSiteNetwork + * @param wireGroup Name of the wire group resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { + super(Compute.this, "DELETE", REST_PATH, null, 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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; + } + + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** + + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; + return this; + } + + /** Name of the wire group resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String wireGroup; + + /** Name of the wire group resource to delete. + */ + public java.lang.String getWireGroup() { + return wireGroup; + } + + /** Name of the wire group resource to delete. */ + public Delete setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the specified wire group resource in the given scope. + * + * Create a request for the method "wireGroups.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 crossSiteNetwork + * @param wireGroup Name of the wire group resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { + Get result = new Get(project, crossSiteNetwork, wireGroup); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Gets the specified wire group resource in the given scope. + * + * Create a request for the method "wireGroups.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 crossSiteNetwork + * @param wireGroup Name of the wire group resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroup.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** + + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; + return this; + } + + /** Name of the wire group resource to return. */ + @com.google.api.client.util.Key + private java.lang.String wireGroup; + + /** Name of the wire group resource to return. + */ + public java.lang.String getWireGroup() { + return wireGroup; + } + + /** Name of the wire group resource to return. */ + public Get setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a wire group in the specified project in the given scope using the parameters that are + * included in the request. + * + * Create a request for the method "wireGroups.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param crossSiteNetwork + * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.WireGroup content) throws java.io.IOException { + Insert result = new Insert(project, crossSiteNetwork, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Creates a wire group in the specified project in the given scope using the parameters that are + * included in the request. + * + * Create a request for the method "wireGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 crossSiteNetwork + * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.model.WireGroup 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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; + } + + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** + + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + public Insert setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** [Input Only] Validate the new configuration, but don't create it. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /**[ Input Only] Validate the new configuration, but don't create it. + [ + + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** [Input Only] Validate the new configuration, but don't create it. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists the wire groups for a project in the given scope. + * + * Create a request for the method "wireGroups.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 crossSiteNetwork + * @return the request + */ + public List list(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { + List result = new List(project, crossSiteNetwork); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Lists the wire groups for a project in the given scope. + * + * Create a request for the method "wireGroups.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 crossSiteNetwork + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String crossSiteNetwork) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroupList.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** + + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + public List setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; + 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the specified wire group resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "wireGroups.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 Project ID for this request. + * @param crossSiteNetwork + * @param wireGroup Name of the WireGroups resource to patch. + * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.model.WireGroup content) throws java.io.IOException { + Patch result = new Patch(project, crossSiteNetwork, wireGroup, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Updates the specified wire group resource with the data included in the request. This method + * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * + * Create a request for the method "wireGroups.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 Project ID for this request. + * @param crossSiteNetwork + * @param wireGroup Name of the WireGroups resource to patch. + * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.model.WireGroup content) { + super(Compute.this, "PATCH", 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public 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); + } + + /** 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 Patch 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; + } + + @com.google.api.client.util.Key + private java.lang.String crossSiteNetwork; + + /** + + */ + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; + } + + public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; + return this; + } + + /** Name of the WireGroups resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String wireGroup; + + /** Name of the WireGroups resource to patch. + */ + public java.lang.String getWireGroup() { + return wireGroup; + } + + /** Name of the WireGroups resource to patch. */ + public Patch setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; + 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). end_interface: MixerMutationRequestBuilder + */ + @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). end_interface: MixerMutationRequestBuilder + */ + 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). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** [Input Only] Validate the new configuration, but don't update it. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /**[ Input Only] Validate the new configuration, but don't update it. + [ + + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** [Input Only] Validate the new configuration, but don't update it. */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ZoneOperations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ZoneOperations zoneOperations() { + return new ZoneOperations(); + } + + /** + * The "zoneOperations" collection of methods. + */ + public class ZoneOperations { + + /** + * Deletes the specified zone-specific Operations resource. + * + * Create a request for the method "zoneOperations.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(project, zone, operation); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified zone-specific Operations resource. + * + * Create a request for the method "zoneOperations.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 Name of the zone for this request. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.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])?"); + } + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Delete 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 Operations resource to delete, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to delete, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + public Delete setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves the specified zone-specific Operations resource. + * + * Create a request for the method "zoneOperations.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 zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { + Get result = new Get(project, zone, operation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves the specified zone-specific Operations resource. + * + * Create a request for the method "zoneOperations.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 zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, 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.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])?"); + } + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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 Operations resource to return, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Operation resources contained within the specified zone. + * + * Create a request for the method "zoneOperations.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 Name of the zone for 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}/operations"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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 Operation resources contained within the specified zone. + * + * Create a request for the method "zoneOperations.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 Name of the zone for 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.OperationList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the zone for request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Waits for the specified Operation resource to return as `DONE` or for the request to approach the + * 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more + * than the 2 minutes and then returns the current state of the operation, which might be `DONE` or + * still in progress. + * + * This method is called on a best-effort basis. Specifically: - In uncommon cases, when + * the server is overloaded, the request might return before the default deadline is reached, or + * might return after zero seconds. - If the default deadline is reached, there is no + * guarantee that the operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. + * + * Create a request for the method "zoneOperations.wait". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Wait wait(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { + Wait result = new Wait(project, zone, operation); + initialize(result); + return result; + } + + public class Wait extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}/wait"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Waits for the specified Operation resource to return as `DONE` or for the request to approach + * the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no + * more than the 2 minutes and then returns the current state of the operation, which might be + * `DONE` or still in progress. + * + * This method is called on a best-effort basis. Specifically: - In uncommon cases, + * when the server is overloaded, the request might return before the default deadline is + * reached, or might return after zero seconds. - If the default deadline is reached, there + * is no guarantee that the operation is actually done when the method returns. Be prepared to + * retry if the operation is not `DONE`. + * + * Create a request for the method "zoneOperations.wait". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

{@link + * Wait#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 Name of the zone for this request. + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 + */ + protected Wait(java.lang.String project, java.lang.String zone, java.lang.String operation) { + super(Compute.this, "POST", REST_PATH, null, 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.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])?"); + } + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Wait setUserIp(java.lang.String userIp) { + return (Wait) 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 Wait 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Wait 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 Operations resource to return, or its unique numeric identifier. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + public Wait setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; + return this; + } + + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ZoneVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ZoneVmExtensionPolicies.List request = compute.zoneVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ZoneVmExtensionPolicies zoneVmExtensionPolicies() { + return new ZoneVmExtensionPolicies(); + } + + /** + * The "zoneVmExtensionPolicies" collection of methods. + */ + public class ZoneVmExtensionPolicies { + + /** + * Deletes a specified zone VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Delete result = new Delete(project, zone, vmExtensionPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Deletes a specified zone VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#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 Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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.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])?"); + } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) 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 Delete 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Delete 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 zone VM extension policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the zone VM extension policy to delete. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the zone VM extension policy to delete. */ + public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves details of a specific zone VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Get result = new Get(project, zone, vmExtensionPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Pattern VM_EXTENSION_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves details of a specific zone VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicy.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])?"); + } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), + "Parameter vmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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 VM extension policy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the VM extension policy resource to return. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the VM extension policy resource to return. */ + public Get setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), + "Parameter vmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vmExtensionPolicy = vmExtensionPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new zone-level VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Creates a new zone-level VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#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 Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy 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.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) 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 Insert 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Insert 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; + } + + /** + * 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 Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Lists all VM extension policies within a specific zone for a project. + * + * Create a request for the method "zoneVmExtensionPolicies.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 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}/vmExtensionPolicies"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Lists all VM extension policies within a specific zone for a project. + * + * Create a request for the method "zoneVmExtensionPolicies.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 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.VmExtensionPolicyList.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])?"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** Name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Modifies an existing zone VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(project, zone, vmExtensionPolicy, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?"); + + /** + * Modifies an existing zone VM extension policy within a project. + * + * Create a request for the method "zoneVmExtensionPolicies.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#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 Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) { + super(Compute.this, "PATCH", 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.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])?"); + } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. */ + public Update 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 zone VM extension policy to update. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the zone VM extension policy to update. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the zone VM extension policy to update. */ + public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Zones collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Zones.List request = compute.zones().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Zones zones() { + return new Zones(); + } + + /** + * The "zones" collection of methods. + */ + public class Zones { + + /** + * Returns the specified Zone resource. + * + * Create a request for the method "zones.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 zone Name of the zone resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone) throws java.io.IOException { + Get result = new Get(project, zone); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified Zone resource. + * + * Create a request for the method "zones.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 zone Name of the zone resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Zone.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])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 zone resource to return. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone resource to return. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone resource to return. */ + 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])?|[1-9][0-9]{0,19}"); + } + this.zone = zone; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of Zone resources available to the specified project. + * + * Create a request for the method "zones.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. + * @return the request + */ + 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 { + + private static final String REST_PATH = "projects/{project}/zones"; + + private static final String API_VERSION = "2026-10-01-preview"; + + 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])?))"); + + /** + * Retrieves the list of Zone resources available to the specified project. + * + * Create a request for the method "zones.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. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ZoneList.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])?))"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * Builder for {@link Compute}. + * + *

+ * Implementation is not thread-safe. + *

+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link Compute}. */ + @Override + public Compute build() { + return new Compute(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link ComputeRequestInitializer}. + * + * @since 1.12 + */ + public Builder setComputeRequestInitializer( + ComputeRequestInitializer computeRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(computeRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequest.java new file mode 100644 index 00000000000..e7220414368 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequest.java @@ -0,0 +1,284 @@ +/* + * 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; + +/** + * Compute request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class ComputeRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public ComputeRequest( + Compute client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public ComputeRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public ComputeRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public ComputeRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public ComputeRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public ComputeRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public ComputeRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public ComputeRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public ComputeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public ComputeRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public ComputeRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public ComputeRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + /** Legacy name for parameter that has been superseded by `quotaUser`. */ + @com.google.api.client.util.Key + private java.lang.String userIp; + + /** + * Legacy name for parameter that has been superseded by `quotaUser`. + */ + public java.lang.String getUserIp() { + return userIp; + } + + /** Legacy name for parameter that has been superseded by `quotaUser`. */ + public ComputeRequest setUserIp(java.lang.String userIp) { + this.userIp = userIp; + return this; + } + + @Override + public final Compute getAbstractGoogleClient() { + return (Compute) super.getAbstractGoogleClient(); + } + + @Override + public ComputeRequest setDisableGZipContent(boolean disableGZipContent) { + return (ComputeRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public ComputeRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (ComputeRequest) super.setRequestHeaders(headers); + } + + @Override + public ComputeRequest set(String parameterName, Object value) { + return (ComputeRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequestInitializer.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequestInitializer.java new file mode 100644 index 00000000000..e748feb17cc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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; + +/** + * Compute request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new ComputeRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new ComputeRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends ComputeRequestInitializer {
+
+    {@literal @}Override
+    public void initializeComputeRequest(ComputeRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends ComputeRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeComputeRequest(ComputeRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class ComputeRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public ComputeRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public ComputeRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public ComputeRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeComputeRequest((ComputeRequest) request); + } + + /** + * Initializes Compute request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeComputeRequest(ComputeRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeScopes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeScopes.java new file mode 100644 index 00000000000..55d918ba162 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/ComputeScopes.java @@ -0,0 +1,62 @@ +/* + * 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; + +/** + * Available OAuth 2.0 scopes for use with the Compute Engine API. + * + * @since 1.4 + */ +public class ComputeScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** View and manage your Google Compute Engine resources. */ + public static final String COMPUTE = "https://www.googleapis.com/auth/compute"; + + /** View your Google Compute Engine resources. */ + public static final String COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; + + /** Manage your data and permissions in Cloud Storage and see the email address for your Google Account. */ + public static final String DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; + + /** View your data in Google Cloud Storage. */ + public static final String DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; + + /** Manage your data in Cloud Storage and see the email address of your Google Account. */ + public static final String DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + set.add(COMPUTE); + set.add(COMPUTE_READONLY); + set.add(DEVSTORAGE_FULL_CONTROL); + set.add(DEVSTORAGE_READ_ONLY); + set.add(DEVSTORAGE_READ_WRITE); + return java.util.Collections.unmodifiableSet(set); + } + + private ComputeScopes() { + } +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AWSV4Signature.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AWSV4Signature.java new file mode 100644 index 00000000000..a106fb1b589 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AWSV4Signature.java @@ -0,0 +1,161 @@ +/* + * 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; + +/** + * Contains the configurations necessary to generate a signature for access to private storage + * buckets that support Signature Version 4 for authentication. The service name for generating the + * authentication header will always default to 's3'. + * + *

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 AWSV4Signature extends com.google.api.client.json.GenericJson { + + /** + * The access key used for s3 bucket authentication. Required for updating or creating a backend + * that uses AWS v4 signature authentication, but will not be returned as part of the + * configuration when queried with a REST API GET request. + * + * @InputOnly + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessKey; + + /** + * The identifier of an access key used for s3 bucket authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessKeyId; + + /** + * The optional version identifier for the access key. You can use this to keep track of different + * iterations of your access key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessKeyVersion; + + /** + * The name of the cloud region of your origin. This is a free-form field with the name of the + * region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" + * for OCI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String originRegion; + + /** + * The access key used for s3 bucket authentication. Required for updating or creating a backend + * that uses AWS v4 signature authentication, but will not be returned as part of the + * configuration when queried with a REST API GET request. + * + * @InputOnly + * @return value or {@code null} for none + */ + public java.lang.String getAccessKey() { + return accessKey; + } + + /** + * The access key used for s3 bucket authentication. Required for updating or creating a backend + * that uses AWS v4 signature authentication, but will not be returned as part of the + * configuration when queried with a REST API GET request. + * + * @InputOnly + * @param accessKey accessKey or {@code null} for none + */ + public AWSV4Signature setAccessKey(java.lang.String accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * The identifier of an access key used for s3 bucket authentication. + * @return value or {@code null} for none + */ + public java.lang.String getAccessKeyId() { + return accessKeyId; + } + + /** + * The identifier of an access key used for s3 bucket authentication. + * @param accessKeyId accessKeyId or {@code null} for none + */ + public AWSV4Signature setAccessKeyId(java.lang.String accessKeyId) { + this.accessKeyId = accessKeyId; + return this; + } + + /** + * The optional version identifier for the access key. You can use this to keep track of different + * iterations of your access key. + * @return value or {@code null} for none + */ + public java.lang.String getAccessKeyVersion() { + return accessKeyVersion; + } + + /** + * The optional version identifier for the access key. You can use this to keep track of different + * iterations of your access key. + * @param accessKeyVersion accessKeyVersion or {@code null} for none + */ + public AWSV4Signature setAccessKeyVersion(java.lang.String accessKeyVersion) { + this.accessKeyVersion = accessKeyVersion; + return this; + } + + /** + * The name of the cloud region of your origin. This is a free-form field with the name of the + * region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" + * for OCI. + * @return value or {@code null} for none + */ + public java.lang.String getOriginRegion() { + return originRegion; + } + + /** + * The name of the cloud region of your origin. This is a free-form field with the name of the + * region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" + * for OCI. + * @param originRegion originRegion or {@code null} for none + */ + public AWSV4Signature setOriginRegion(java.lang.String originRegion) { + this.originRegion = originRegion; + return this; + } + + @Override + public AWSV4Signature set(String fieldName, Object value) { + return (AWSV4Signature) super.set(fieldName, value); + } + + @Override + public AWSV4Signature clone() { + return (AWSV4Signature) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorConfig.java new file mode 100644 index 00000000000..295e57adb46 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorConfig.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A specification of the type and number of accelerator cards attached to the instance. + * + *

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 AcceleratorConfig extends com.google.api.client.json.GenericJson { + + /** + * The number of the guest accelerator cards exposed to this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer acceleratorCount; + + /** + * Full or partial URL of the accelerator type resource to attach to this instance. For + * example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are + * creating an instance template, specify only the accelerator name. See GPUs on Compute Engine + * for a full list of accelerator types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorType; + + /** + * The number of the guest accelerator cards exposed to this instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getAcceleratorCount() { + return acceleratorCount; + } + + /** + * The number of the guest accelerator cards exposed to this instance. + * @param acceleratorCount acceleratorCount or {@code null} for none + */ + public AcceleratorConfig setAcceleratorCount(java.lang.Integer acceleratorCount) { + this.acceleratorCount = acceleratorCount; + return this; + } + + /** + * Full or partial URL of the accelerator type resource to attach to this instance. For + * example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are + * creating an instance template, specify only the accelerator name. See GPUs on Compute Engine + * for a full list of accelerator types. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorType() { + return acceleratorType; + } + + /** + * Full or partial URL of the accelerator type resource to attach to this instance. For + * example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are + * creating an instance template, specify only the accelerator name. See GPUs on Compute Engine + * for a full list of accelerator types. + * @param acceleratorType acceleratorType or {@code null} for none + */ + public AcceleratorConfig setAcceleratorType(java.lang.String acceleratorType) { + this.acceleratorType = acceleratorType; + return this; + } + + @Override + public AcceleratorConfig set(String fieldName, Object value) { + return (AcceleratorConfig) super.set(fieldName, value); + } + + @Override + public AcceleratorConfig clone() { + return (AcceleratorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnect.java new file mode 100644 index 00000000000..98ac614cfa2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnect.java @@ -0,0 +1,363 @@ +/* + * 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 an Accelerator Interconnect 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 AcceleratorInterconnect extends com.google.api.client.json.GenericJson { + + /** + * The target topology shape (e.g. "4x4x8"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + + /** + * The annotations for the accelerator interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * Output only. [Output Only] The creation time of this resource inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * 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] A unique identifier for this resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The labels for the accelerator interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The name of the resource. The name must be 1-63 characters long, and comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Input only. [Input Only] Additional params passed with the creation request, but not persisted + * as part of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AcceleratorInterconnectParams params; + + /** + * The reactivation mode for the accelerator interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reactivationMode; + + /** + * Output only. [Output Only] The fully-qualified URL of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] The fully-qualified URL of this resource containing its unique + * identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] The status of the interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AcceleratorInterconnectAcceleratorInterconnectStatus status; + + /** + * Output only. [Output Only] The URL of azone where the interconnect resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The target topology shape (e.g. "4x4x8"). + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * The target topology shape (e.g. "4x4x8"). + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public AcceleratorInterconnect setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + + /** + * The annotations for the accelerator interconnect. + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * The annotations for the accelerator interconnect. + * @param annotations annotations or {@code null} for none + */ + public AcceleratorInterconnect setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Output only. [Output Only] The creation time of this resource inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation time of this resource inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public AcceleratorInterconnect setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public AcceleratorInterconnect setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. + * @param id id or {@code null} for none + */ + public AcceleratorInterconnect setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * The labels for the accelerator interconnect. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The labels for the accelerator interconnect. + * @param labels labels or {@code null} for none + */ + public AcceleratorInterconnect setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The name of the resource. The name must be 1-63 characters long, and comply withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the resource. The name must be 1-63 characters long, and comply withRFC1035. + * @param name name or {@code null} for none + */ + public AcceleratorInterconnect setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the creation request, but not persisted + * as part of resource payload. + * @return value or {@code null} for none + */ + public AcceleratorInterconnectParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the creation request, but not persisted + * as part of resource payload. + * @param params params or {@code null} for none + */ + public AcceleratorInterconnect setParams(AcceleratorInterconnectParams params) { + this.params = params; + return this; + } + + /** + * The reactivation mode for the accelerator interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getReactivationMode() { + return reactivationMode; + } + + /** + * The reactivation mode for the accelerator interconnect. + * @param reactivationMode reactivationMode or {@code null} for none + */ + public AcceleratorInterconnect setReactivationMode(java.lang.String reactivationMode) { + this.reactivationMode = reactivationMode; + return this; + } + + /** + * Output only. [Output Only] The fully-qualified URL of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] The fully-qualified URL of this resource. + * @param selfLink selfLink or {@code null} for none + */ + public AcceleratorInterconnect setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] The fully-qualified URL of this resource containing its unique + * identifier. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] The fully-qualified URL of this resource containing its unique + * identifier. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public AcceleratorInterconnect setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] The status of the interconnect. + * @return value or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the interconnect. + * @param status status or {@code null} for none + */ + public AcceleratorInterconnect setStatus(AcceleratorInterconnectAcceleratorInterconnectStatus status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] The URL of azone where the interconnect resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The URL of azone where the interconnect resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public AcceleratorInterconnect setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public AcceleratorInterconnect set(String fieldName, Object value) { + return (AcceleratorInterconnect) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnect clone() { + return (AcceleratorInterconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatus.java new file mode 100644 index 00000000000..b88021c96b3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatus.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Detailed status information for the interconnect 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 AcceleratorInterconnectAcceleratorInterconnectStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The accelerator type (e.g., "TPU7X"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorType; + + /** + * Output only. [Output Only] The current state of the interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The result of the latest accelerator topology state check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails stateDetails; + + /** + * Output only. [Output Only] The accelerator type (e.g., "TPU7X"). + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorType() { + return acceleratorType; + } + + /** + * Output only. [Output Only] The accelerator type (e.g., "TPU7X"). + * @param acceleratorType acceleratorType or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatus setAcceleratorType(java.lang.String acceleratorType) { + this.acceleratorType = acceleratorType; + return this; + } + + /** + * Output only. [Output Only] The current state of the interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The current state of the interconnect. + * @param state state or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] The result of the latest accelerator topology state check. + * @return value or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails getStateDetails() { + return stateDetails; + } + + /** + * Output only. [Output Only] The result of the latest accelerator topology state check. + * @param stateDetails stateDetails or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatus setStateDetails(AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails stateDetails) { + this.stateDetails = stateDetails; + return this; + } + + @Override + public AcceleratorInterconnectAcceleratorInterconnectStatus set(String fieldName, Object value) { + return (AcceleratorInterconnectAcceleratorInterconnectStatus) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectAcceleratorInterconnectStatus clone() { + return (AcceleratorInterconnectAcceleratorInterconnectStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails.java new file mode 100644 index 00000000000..b710e506606 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails.java @@ -0,0 +1,377 @@ +/* + * 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; + +/** + * Holds the details of the current accelerator interconnect state. + * + *

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 AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. Timestamp is shown only if there is an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. Encountered errors. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. Encountered errors. + * @param error error or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. Timestamp is shown only if there is an error. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. Timestamp is shown only if there is an error. + * @param timestamp timestamp or {@code null} for none + */ + public AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails set(String fieldName, Object value) { + return (AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails clone() { + return (AcceleratorInterconnectAcceleratorInterconnectStatusAcceleratorInterconnectStateDetails) super.clone(); + } + + /** + * Output only. Encountered errors. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstance.java new file mode 100644 index 00000000000..9594859aa3c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstance.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents an Accelerator Interconnect Member Instance. + * + *

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 AcceleratorInterconnectMemberInstance extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The VM instance resource URL (e.g., https://.../instances/my-vm). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Output only. [Output Only] The unique server-defined ID of the VM instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger instanceId; + + /** + * Output only. [Output Only] The VM instance resource URL (e.g., https://.../instances/my-vm). + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Output only. [Output Only] The VM instance resource URL (e.g., https://.../instances/my-vm). + * @param instance instance or {@code null} for none + */ + public AcceleratorInterconnectMemberInstance setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Output only. [Output Only] The unique server-defined ID of the VM instance. + * @return value or {@code null} for none + */ + public java.math.BigInteger getInstanceId() { + return instanceId; + } + + /** + * Output only. [Output Only] The unique server-defined ID of the VM instance. + * @param instanceId instanceId or {@code null} for none + */ + public AcceleratorInterconnectMemberInstance setInstanceId(java.math.BigInteger instanceId) { + this.instanceId = instanceId; + return this; + } + + @Override + public AcceleratorInterconnectMemberInstance set(String fieldName, Object value) { + return (AcceleratorInterconnectMemberInstance) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectMemberInstance clone() { + return (AcceleratorInterconnectMemberInstance) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstancesListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstancesListResponse.java new file mode 100644 index 00000000000..910a213bfd2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectMemberInstancesListResponse.java @@ -0,0 +1,96 @@ +/* + * 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 AcceleratorInterconnectMemberInstances.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 AcceleratorInterconnectMemberInstancesListResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of AcceleratorInterconnectMemberInstances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider AcceleratorInterconnectMemberInstance 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(AcceleratorInterconnectMemberInstance.class); + } + + /** + * Token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of AcceleratorInterconnectMemberInstances. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * The list of AcceleratorInterconnectMemberInstances. + * @param items items or {@code null} for none + */ + public AcceleratorInterconnectMemberInstancesListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AcceleratorInterconnectMemberInstancesListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public AcceleratorInterconnectMemberInstancesListResponse set(String fieldName, Object value) { + return (AcceleratorInterconnectMemberInstancesListResponse) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectMemberInstancesListResponse clone() { + return (AcceleratorInterconnectMemberInstancesListResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectParams.java new file mode 100644 index 00000000000..f70897b2fa2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectParams.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; + +/** + * Additional accelerator interconnect creation params. + * + *

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 AcceleratorInterconnectParams extends com.google.api.client.json.GenericJson { + + /** + * The capacity pool to use for the accelerator interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityPool capacityPool; + + /** + * The capacity pool to use for the accelerator interconnect. + * @return value or {@code null} for none + */ + public CapacityPool getCapacityPool() { + return capacityPool; + } + + /** + * The capacity pool to use for the accelerator interconnect. + * @param capacityPool capacityPool or {@code null} for none + */ + public AcceleratorInterconnectParams setCapacityPool(CapacityPool capacityPool) { + this.capacityPool = capacityPool; + return this; + } + + @Override + public AcceleratorInterconnectParams set(String fieldName, Object value) { + return (AcceleratorInterconnectParams) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectParams clone() { + return (AcceleratorInterconnectParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsInsertRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsInsertRequest.java new file mode 100644 index 00000000000..47fb4972970 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsInsertRequest.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; + +/** + * Insert an Accelerator Interconnect 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 AcceleratorInterconnectsInsertRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The accelerator interconnect resource to insert. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AcceleratorInterconnect resource; + + /** + * Required. The accelerator interconnect resource to insert. + * @return value or {@code null} for none + */ + public AcceleratorInterconnect getResource() { + return resource; + } + + /** + * Required. The accelerator interconnect resource to insert. + * @param resource resource or {@code null} for none + */ + public AcceleratorInterconnectsInsertRequest setResource(AcceleratorInterconnect resource) { + this.resource = resource; + return this; + } + + @Override + public AcceleratorInterconnectsInsertRequest set(String fieldName, Object value) { + return (AcceleratorInterconnectsInsertRequest) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectsInsertRequest clone() { + return (AcceleratorInterconnectsInsertRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsList.java new file mode 100644 index 00000000000..1f43405674f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorInterconnectsList.java @@ -0,0 +1,105 @@ +/* + * 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 AcceleratorInterconnects.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 AcceleratorInterconnectsList extends com.google.api.client.json.GenericJson { + + /** + * A list of AcceleratorInterconnect 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 AcceleratorInterconnect 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(AcceleratorInterconnect.class); + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of AcceleratorInterconnect resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of AcceleratorInterconnect resources. + * @param items items or {@code null} for none + */ + public AcceleratorInterconnectsList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AcceleratorInterconnectsList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public AcceleratorInterconnectsList set(String fieldName, Object value) { + return (AcceleratorInterconnectsList) super.set(fieldName, value); + } + + @Override + public AcceleratorInterconnectsList clone() { + return (AcceleratorInterconnectsList) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfo.java new file mode 100644 index 00000000000..88bc69ebce3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfo.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; + +/** + * Info for accelerator topologies within a densely packed reservation. + * + *

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 AcceleratorTopologiesInfo extends com.google.api.client.json.GenericJson { + + /** + * Info for each accelerator topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List acceleratorTopologyInfos; + + /** + * Info for each accelerator topology. + * @return value or {@code null} for none + */ + public java.util.List getAcceleratorTopologyInfos() { + return acceleratorTopologyInfos; + } + + /** + * Info for each accelerator topology. + * @param acceleratorTopologyInfos acceleratorTopologyInfos or {@code null} for none + */ + public AcceleratorTopologiesInfo setAcceleratorTopologyInfos(java.util.List acceleratorTopologyInfos) { + this.acceleratorTopologyInfos = acceleratorTopologyInfos; + return this; + } + + @Override + public AcceleratorTopologiesInfo set(String fieldName, Object value) { + return (AcceleratorTopologiesInfo) super.set(fieldName, value); + } + + @Override + public AcceleratorTopologiesInfo clone() { + return (AcceleratorTopologiesInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java new file mode 100644 index 00000000000..313dbed8d27 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Info for a slice of a given topology. + * + *

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 AcceleratorTopologiesInfoAcceleratorTopologyInfo extends com.google.api.client.json.GenericJson { + + /** + * The accelerator topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + + /** + * Info for each topology state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List infoPerTopologyStates; + + /** + * The accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * The accelerator topology. + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public AcceleratorTopologiesInfoAcceleratorTopologyInfo setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + + /** + * Info for each topology state. + * @return value or {@code null} for none + */ + public java.util.List getInfoPerTopologyStates() { + return infoPerTopologyStates; + } + + /** + * Info for each topology state. + * @param infoPerTopologyStates infoPerTopologyStates or {@code null} for none + */ + public AcceleratorTopologiesInfoAcceleratorTopologyInfo setInfoPerTopologyStates(java.util.List infoPerTopologyStates) { + this.infoPerTopologyStates = infoPerTopologyStates; + return this; + } + + @Override + public AcceleratorTopologiesInfoAcceleratorTopologyInfo set(String fieldName, Object value) { + return (AcceleratorTopologiesInfoAcceleratorTopologyInfo) super.set(fieldName, value); + } + + @Override + public AcceleratorTopologiesInfoAcceleratorTopologyInfo clone() { + return (AcceleratorTopologiesInfoAcceleratorTopologyInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java new file mode 100644 index 00000000000..43696ce3767 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Info for each topology state. + * + *

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 AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState extends com.google.api.client.json.GenericJson { + + /** + * The number of accelerator topologies in this state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer count; + + /** + * The state of the accelerator topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * The number of accelerator topologies in this state. + * @return value or {@code null} for none + */ + public java.lang.Integer getCount() { + return count; + } + + /** + * The number of accelerator topologies in this state. + * @param count count or {@code null} for none + */ + public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState setCount(java.lang.Integer count) { + this.count = count; + return this; + } + + /** + * The state of the accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * The state of the accelerator topology. + * @param state state or {@code null} for none + */ + public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState set(String fieldName, Object value) { + return (AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState) super.set(fieldName, value); + } + + @Override + public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState clone() { + return (AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorType.java new file mode 100644 index 00000000000..c477de22884 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -0,0 +1,301 @@ +/* + * 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 an Accelerator Type resource. + * + * Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM + * instances to improve or accelerate performance when working with intensive workloads. For more + * information, readGPUs on Compute Engine. + * + *

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 AcceleratorType extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] The deprecation status associated with this accelerator type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * [Output Only] An optional textual description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [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] The type of the resource. Alwayscompute#acceleratorType for + * accelerator types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Maximum number of accelerator cards allowed per instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maximumCardsPerInstance; + + /** + * [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Contains standard resource metadata for an AcceleratorType resource. It is + * populated for each instance of the AcceleratorType resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceMetadata resourceMetadata; + + /** + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. + * You must specify this field as part of the HTTP request URL. It is not settable as a field in + * the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public AcceleratorType setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] The deprecation status associated with this accelerator type. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * [Output Only] The deprecation status associated with this accelerator type. + * @param deprecated deprecated or {@code null} for none + */ + public AcceleratorType setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * [Output Only] An optional textual description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] An optional textual description of the resource. + * @param description description or {@code null} for none + */ + public AcceleratorType setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public AcceleratorType setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for + * accelerator types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for + * accelerator types. + * @param kind kind or {@code null} for none + */ + public AcceleratorType setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Maximum number of accelerator cards allowed per instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaximumCardsPerInstance() { + return maximumCardsPerInstance; + } + + /** + * [Output Only] Maximum number of accelerator cards allowed per instance. + * @param maximumCardsPerInstance maximumCardsPerInstance or {@code null} for none + */ + public AcceleratorType setMaximumCardsPerInstance(java.lang.Integer maximumCardsPerInstance) { + this.maximumCardsPerInstance = maximumCardsPerInstance; + return this; + } + + /** + * [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public AcceleratorType setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Contains standard resource metadata for an AcceleratorType resource. It is + * populated for each instance of the AcceleratorType resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * @return value or {@code null} for none + */ + public ResourceMetadata getResourceMetadata() { + return resourceMetadata; + } + + /** + * Output only. Contains standard resource metadata for an AcceleratorType resource. It is + * populated for each instance of the AcceleratorType resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * @param resourceMetadata resourceMetadata or {@code null} for none + */ + public AcceleratorType setResourceMetadata(ResourceMetadata resourceMetadata) { + this.resourceMetadata = resourceMetadata; + return this; + } + + /** + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public AcceleratorType setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. + * You must specify this field as part of the HTTP request URL. It is not settable as a field in + * the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. + * You must specify this field as part of the HTTP request URL. It is not settable as a field in + * the request body. + * @param zone zone or {@code null} for none + */ + public AcceleratorType setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public AcceleratorType set(String fieldName, Object value) { + return (AcceleratorType) super.set(fieldName, value); + } + + @Override + public AcceleratorType clone() { + return (AcceleratorType) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java new file mode 100644 index 00000000000..48afb344471 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 AcceleratorTypeAggregatedList. + * + *

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 AcceleratorTypeAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 AcceleratorTypesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for + * aggregated lists of accelerator types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 AcceleratorTypeAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of AcceleratorTypesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of AcceleratorTypesScopedList resources. + * @param items items or {@code null} for none + */ + public AcceleratorTypeAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for + * aggregated lists of accelerator types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for + * aggregated lists of accelerator types. + * @param kind kind or {@code null} for none + */ + public AcceleratorTypeAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AcceleratorTypeAggregatedList 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 AcceleratorTypeAggregatedList 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 AcceleratorTypeAggregatedList 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 AcceleratorTypeAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AcceleratorTypeAggregatedList set(String fieldName, Object value) { + return (AcceleratorTypeAggregatedList) super.set(fieldName, value); + } + + @Override + public AcceleratorTypeAggregatedList clone() { + return (AcceleratorTypeAggregatedList) 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 AcceleratorTypeAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java new file mode 100644 index 00000000000..76092ab1de6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of accelerator types. + * + *

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 AcceleratorTypeList extends com.google.api.client.json.GenericJson { + + /** + * [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 AcceleratorType 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 AcceleratorType 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(AcceleratorType.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of + * accelerator types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 AcceleratorTypeList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of AcceleratorType resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of AcceleratorType resources. + * @param items items or {@code null} for none + */ + public AcceleratorTypeList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of + * accelerator types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of + * accelerator types. + * @param kind kind or {@code null} for none + */ + public AcceleratorTypeList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AcceleratorTypeList 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 AcceleratorTypeList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 AcceleratorTypeList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AcceleratorTypeList set(String fieldName, Object value) { + return (AcceleratorTypeList) super.set(fieldName, value); + } + + @Override + public AcceleratorTypeList clone() { + return (AcceleratorTypeList) 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 AcceleratorTypeListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypesScopedList.java new file mode 100644 index 00000000000..74179f8814b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AcceleratorTypesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 AcceleratorTypesScopedList. + * + *

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 AcceleratorTypesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of accelerator types contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List acceleratorTypes; + + static { + // hack to force ProGuard to consider AcceleratorType 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(AcceleratorType.class); + } + + /** + * [Output Only] An informational warning that appears when the accelerator types list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of accelerator types contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getAcceleratorTypes() { + return acceleratorTypes; + } + + /** + * [Output Only] A list of accelerator types contained in this scope. + * @param acceleratorTypes acceleratorTypes or {@code null} for none + */ + public AcceleratorTypesScopedList setAcceleratorTypes(java.util.List acceleratorTypes) { + this.acceleratorTypes = acceleratorTypes; + return this; + } + + /** + * [Output Only] An informational warning that appears when the accelerator types list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] An informational warning that appears when the accelerator types list is empty. + * @param warning warning or {@code null} for none + */ + public AcceleratorTypesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AcceleratorTypesScopedList set(String fieldName, Object value) { + return (AcceleratorTypesScopedList) super.set(fieldName, value); + } + + @Override + public AcceleratorTypesScopedList clone() { + return (AcceleratorTypesScopedList) super.clone(); + } + + /** + * [Output Only] An informational warning that appears when the accelerator types list is empty. + */ + 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 AcceleratorTypesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AccessConfig.java new file mode 100644 index 00000000000..41d68db5279 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -0,0 +1,358 @@ +/* + * 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; + +/** + * An access configuration attached to an instance's network interface. Only one access config per + * instance is supported. + * + *

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 AccessConfig extends com.google.api.client.json.GenericJson { + + /** + * Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated + * with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To + * use a static external IP address, it must be unused and in the same region as the instance's + * zone. If not specified, Google Cloud will automatically assign an external IPv6 address from + * the instance's subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalIpv6; + + /** + * Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer externalIpv6PrefixLength; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The name of this access configuration. In accessConfigs (IPv4), the default and recommended + * name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork + * Access. In ipv6AccessConfigs, the recommend name is External IPv6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. + * Specify an unused static external IP address available to the project or leave this field + * undefined to use an IP from a shared ephemeral IP address pool. If you specify a static + * external IP address, it must live in the same region as the zone of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String natIP; + + /** + * This signifies the networking tier used for configuring this access configuration and can only + * take the following values: PREMIUM,STANDARD. + * + * If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be + * created with this networkTier. + * + * If an AccessConfig with a valid external IP address is specified, it must match that of the + * networkTier associated with the Address resource owning that IP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkTier; + + /** + * The DNS domain name for the public PTR record. + * + * You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this + * field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in + * associated external IPv6 range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publicPtrDomainName; + + /** + * The resource URL for the security policy associated with this access config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of + * the instance to a DNS domain name. + * + * This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has + * external IPv6 range associated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean setPublicPtr; + + /** + * The type of configuration. In accessConfigs (IPv4), the default and only option is + * ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated + * with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To + * use a static external IP address, it must be unused and in the same region as the instance's + * zone. If not specified, Google Cloud will automatically assign an external IPv6 address from + * the instance's subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getExternalIpv6() { + return externalIpv6; + } + + /** + * Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated + * with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To + * use a static external IP address, it must be unused and in the same region as the instance's + * zone. If not specified, Google Cloud will automatically assign an external IPv6 address from + * the instance's subnetwork. + * @param externalIpv6 externalIpv6 or {@code null} for none + */ + public AccessConfig setExternalIpv6(java.lang.String externalIpv6) { + this.externalIpv6 = externalIpv6; + return this; + } + + /** + * Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. + * @return value or {@code null} for none + */ + public java.lang.Integer getExternalIpv6PrefixLength() { + return externalIpv6PrefixLength; + } + + /** + * Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. + * @param externalIpv6PrefixLength externalIpv6PrefixLength or {@code null} for none + */ + public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6PrefixLength) { + this.externalIpv6PrefixLength = externalIpv6PrefixLength; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * @param kind kind or {@code null} for none + */ + public AccessConfig setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The name of this access configuration. In accessConfigs (IPv4), the default and recommended + * name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork + * Access. In ipv6AccessConfigs, the recommend name is External IPv6. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of this access configuration. In accessConfigs (IPv4), the default and recommended + * name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork + * Access. In ipv6AccessConfigs, the recommend name is External IPv6. + * @param name name or {@code null} for none + */ + public AccessConfig setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. + * Specify an unused static external IP address available to the project or leave this field + * undefined to use an IP from a shared ephemeral IP address pool. If you specify a static + * external IP address, it must live in the same region as the zone of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getNatIP() { + return natIP; + } + + /** + * Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. + * Specify an unused static external IP address available to the project or leave this field + * undefined to use an IP from a shared ephemeral IP address pool. If you specify a static + * external IP address, it must live in the same region as the zone of the instance. + * @param natIP natIP or {@code null} for none + */ + public AccessConfig setNatIP(java.lang.String natIP) { + this.natIP = natIP; + return this; + } + + /** + * This signifies the networking tier used for configuring this access configuration and can only + * take the following values: PREMIUM,STANDARD. + * + * If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be + * created with this networkTier. + * + * If an AccessConfig with a valid external IP address is specified, it must match that of the + * networkTier associated with the Address resource owning that IP. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkTier() { + return networkTier; + } + + /** + * This signifies the networking tier used for configuring this access configuration and can only + * take the following values: PREMIUM,STANDARD. + * + * If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be + * created with this networkTier. + * + * If an AccessConfig with a valid external IP address is specified, it must match that of the + * networkTier associated with the Address resource owning that IP. + * @param networkTier networkTier or {@code null} for none + */ + public AccessConfig setNetworkTier(java.lang.String networkTier) { + this.networkTier = networkTier; + return this; + } + + /** + * The DNS domain name for the public PTR record. + * + * You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this + * field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in + * associated external IPv6 range. + * @return value or {@code null} for none + */ + public java.lang.String getPublicPtrDomainName() { + return publicPtrDomainName; + } + + /** + * The DNS domain name for the public PTR record. + * + * You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this + * field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in + * associated external IPv6 range. + * @param publicPtrDomainName publicPtrDomainName or {@code null} for none + */ + public AccessConfig setPublicPtrDomainName(java.lang.String publicPtrDomainName) { + this.publicPtrDomainName = publicPtrDomainName; + return this; + } + + /** + * The resource URL for the security policy associated with this access config. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * The resource URL for the security policy associated with this access config. + * @param securityPolicy securityPolicy or {@code null} for none + */ + public AccessConfig setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + return this; + } + + /** + * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of + * the instance to a DNS domain name. + * + * This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has + * external IPv6 range associated. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSetPublicPtr() { + return setPublicPtr; + } + + /** + * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of + * the instance to a DNS domain name. + * + * This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has + * external IPv6 range associated. + * @param setPublicPtr setPublicPtr or {@code null} for none + */ + public AccessConfig setSetPublicPtr(java.lang.Boolean setPublicPtr) { + this.setPublicPtr = setPublicPtr; + return this; + } + + /** + * The type of configuration. In accessConfigs (IPv4), the default and only option is + * ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of configuration. In accessConfigs (IPv4), the default and only option is + * ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. + * @param type type or {@code null} for none + */ + public AccessConfig setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public AccessConfig set(String fieldName, Object value) { + return (AccessConfig) super.set(fieldName, value); + } + + @Override + public AccessConfig clone() { + return (AccessConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Address.java new file mode 100644 index 00000000000..cf9b8d886ae --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Address.java @@ -0,0 +1,777 @@ +/* + * 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 an IP Address resource. + * + * Google Compute Engine has two IP Address resources: + * + * * [Global (external and + * internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) * [Regional + * (external and internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + * + * For more information, see Reserving a static external IP address. + * + *

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 Address extends com.google.api.client.json.GenericJson { + + /** + * The static IP address represented by this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** + * The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to + * EXTERNAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String addressType; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this field when you create the 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; + + /** + * Reference to the source of IP addresses. + * + * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP + * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 + * allocations. If an IPv6 PDP is used, the PDP must be in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global + * internal addresses. + * + * Use one of the following formats to specify the resource: + * + * For a Public Delegated Prefix: - Full resource URL:https://www.googleapis.com/comput + * e/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp - Partial URL: - + * projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * + * For an Internal Range: - Full URL:https://networkconnectivity.googleapis.com/v1/projects + * /project/locations/global/internalRanges/internal-range - Partial + * URL:projects/project/locations/global/internalRanges/internal-range + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCollection; + + /** + * The IP version that will be used by this address. Valid options areIPV4 or IPV6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipVersion; + + /** + * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which + * type of endpoint this address can be used after the external IPv6 address reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6EndpointType; + + /** + * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this Address, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The URL of the network in which to reserve the address. This field can only be used with + * INTERNAL type with theVPC_PEERING purpose. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * This signifies the networking tier used for configuring this address and can only take the + * following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global + * external IP addresses are always Premium Tier; regional external IP addresses can be either + * Standard or Premium Tier. + * + * If this field is not specified, it is assumed to be PREMIUM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkTier; + + /** + * The prefix length if the resource represents an IP range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer prefixLength; + + /** + * The purpose of this resource, which can be one of the following values: - + * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, + * and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork + * for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a + * subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for + * private services access allocated ranges. - NAT_AUTO for the regional external IP + * addresses used by Cloud NAT when allocating addresses using + * automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a + * private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud + * Interconnect* configuration. These addresses are regional resources. - + * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal + * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is + * used to configure Private Service Connect. Only global internal addresses can use this + * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can + * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as + * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for + * addresses that can only be assigned to global external Passthrough Network Load Balancer + * forwarding rules, as an Availability Group 1 address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String purpose; + + /** + * Output only. [Output Only] The URL of the region where a regional address resides. For regional + * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field + * is not applicable to global addresses.* + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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 status of the address, which can be one ofRESERVING, RESERVED, + * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A + * RESERVED address is currently reserved and available to use. An IN_USE address is currently + * being used by another resource and is not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it + * must be within the subnetwork's IP range. This field can only be used with INTERNAL type with + * aGCE_ENDPOINT or DNS_RESOLVER purpose. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * [Output Only] The URLs of the resources that are using this address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List users; + + /** + * The static IP address represented by this resource. + * @return value or {@code null} for none + */ + public java.lang.String getAddress() { + return address; + } + + /** + * The static IP address represented by this resource. + * @param address address or {@code null} for none + */ + public Address setAddress(java.lang.String address) { + this.address = address; + return this; + } + + /** + * The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to + * EXTERNAL. + * @return value or {@code null} for none + */ + public java.lang.String getAddressType() { + return addressType; + } + + /** + * The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to + * EXTERNAL. + * @param addressType addressType or {@code null} for none + */ + public Address setAddressType(java.lang.String addressType) { + this.addressType = addressType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Address setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @param description description or {@code null} for none + */ + public Address 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 Address setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Reference to the source of IP addresses. + * + * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP + * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 + * allocations. If an IPv6 PDP is used, the PDP must be in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global + * internal addresses. + * + * Use one of the following formats to specify the resource: + * + * For a Public Delegated Prefix: - Full resource URL:https://www.googleapis.com/comput + * e/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp - Partial URL: - + * projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * + * For an Internal Range: - Full URL:https://networkconnectivity.googleapis.com/v1/projects + * /project/locations/global/internalRanges/internal-range - Partial + * URL:projects/project/locations/global/internalRanges/internal-range + * @return value or {@code null} for none + */ + public java.lang.String getIpCollection() { + return ipCollection; + } + + /** + * Reference to the source of IP addresses. + * + * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP + * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 + * allocations. If an IPv6 PDP is used, the PDP must be in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global + * internal addresses. + * + * Use one of the following formats to specify the resource: + * + * For a Public Delegated Prefix: - Full resource URL:https://www.googleapis.com/comput + * e/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp - Partial URL: - + * projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * + * For an Internal Range: - Full URL:https://networkconnectivity.googleapis.com/v1/projects + * /project/locations/global/internalRanges/internal-range - Partial + * URL:projects/project/locations/global/internalRanges/internal-range + * @param ipCollection ipCollection or {@code null} for none + */ + public Address setIpCollection(java.lang.String ipCollection) { + this.ipCollection = ipCollection; + return this; + } + + /** + * The IP version that will be used by this address. Valid options areIPV4 or IPV6. + * @return value or {@code null} for none + */ + public java.lang.String getIpVersion() { + return ipVersion; + } + + /** + * The IP version that will be used by this address. Valid options areIPV4 or IPV6. + * @param ipVersion ipVersion or {@code null} for none + */ + public Address setIpVersion(java.lang.String ipVersion) { + this.ipVersion = ipVersion; + return this; + } + + /** + * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which + * type of endpoint this address can be used after the external IPv6 address reservation. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6EndpointType() { + return ipv6EndpointType; + } + + /** + * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which + * type of endpoint this address can be used after the external IPv6 address reservation. + * @param ipv6EndpointType ipv6EndpointType or {@code null} for none + */ + public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { + this.ipv6EndpointType = ipv6EndpointType; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * @param kind kind or {@code null} for none + */ + public Address setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this Address, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Address. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this Address, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Address. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this Address, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Address. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public Address setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this Address, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Address. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Address encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public Address setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @param name name or {@code null} for none + */ + public Address setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The URL of the network in which to reserve the address. This field can only be used with + * INTERNAL type with theVPC_PEERING purpose. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * The URL of the network in which to reserve the address. This field can only be used with + * INTERNAL type with theVPC_PEERING purpose. + * @param network network or {@code null} for none + */ + public Address setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * This signifies the networking tier used for configuring this address and can only take the + * following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global + * external IP addresses are always Premium Tier; regional external IP addresses can be either + * Standard or Premium Tier. + * + * If this field is not specified, it is assumed to be PREMIUM. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkTier() { + return networkTier; + } + + /** + * This signifies the networking tier used for configuring this address and can only take the + * following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global + * external IP addresses are always Premium Tier; regional external IP addresses can be either + * Standard or Premium Tier. + * + * If this field is not specified, it is assumed to be PREMIUM. + * @param networkTier networkTier or {@code null} for none + */ + public Address setNetworkTier(java.lang.String networkTier) { + this.networkTier = networkTier; + return this; + } + + /** + * The prefix length if the resource represents an IP range. + * @return value or {@code null} for none + */ + public java.lang.Integer getPrefixLength() { + return prefixLength; + } + + /** + * The prefix length if the resource represents an IP range. + * @param prefixLength prefixLength or {@code null} for none + */ + public Address setPrefixLength(java.lang.Integer prefixLength) { + this.prefixLength = prefixLength; + return this; + } + + /** + * The purpose of this resource, which can be one of the following values: - + * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, + * and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork + * for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a + * subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for + * private services access allocated ranges. - NAT_AUTO for the regional external IP + * addresses used by Cloud NAT when allocating addresses using + * automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a + * private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud + * Interconnect* configuration. These addresses are regional resources. - + * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal + * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is + * used to configure Private Service Connect. Only global internal addresses can use this + * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can + * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as + * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for + * addresses that can only be assigned to global external Passthrough Network Load Balancer + * forwarding rules, as an Availability Group 1 address. + * @return value or {@code null} for none + */ + public java.lang.String getPurpose() { + return purpose; + } + + /** + * The purpose of this resource, which can be one of the following values: - + * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, + * and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork + * for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a + * subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for + * private services access allocated ranges. - NAT_AUTO for the regional external IP + * addresses used by Cloud NAT when allocating addresses using + * automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a + * private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud + * Interconnect* configuration. These addresses are regional resources. - + * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal + * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is + * used to configure Private Service Connect. Only global internal addresses can use this + * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can + * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as + * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for + * addresses that can only be assigned to global external Passthrough Network Load Balancer + * forwarding rules, as an Availability Group 1 address. + * @param purpose purpose or {@code null} for none + */ + public Address setPurpose(java.lang.String purpose) { + this.purpose = purpose; + return this; + } + + /** + * Output only. [Output Only] The URL of the region where a regional address resides. For regional + * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field + * is not applicable to global addresses.* + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The URL of the region where a regional address resides. For regional + * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field + * is not applicable to global addresses.* + * @param region region or {@code null} for none + */ + public Address setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Address setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, + * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A + * RESERVED address is currently reserved and available to use. An IN_USE address is currently + * being used by another resource and is not available. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, + * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A + * RESERVED address is currently reserved and available to use. An IN_USE address is currently + * being used by another resource and is not available. + * @param status status or {@code null} for none + */ + public Address setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it + * must be within the subnetwork's IP range. This field can only be used with INTERNAL type with + * aGCE_ENDPOINT or DNS_RESOLVER purpose. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it + * must be within the subnetwork's IP range. This field can only be used with INTERNAL type with + * aGCE_ENDPOINT or DNS_RESOLVER purpose. + * @param subnetwork subnetwork or {@code null} for none + */ + public Address setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * [Output Only] The URLs of the resources that are using this address. + * @return value or {@code null} for none + */ + public java.util.List getUsers() { + return users; + } + + /** + * [Output Only] The URLs of the resources that are using this address. + * @param users users or {@code null} for none + */ + public Address setUsers(java.util.List users) { + this.users = users; + return this; + } + + @Override + public Address set(String fieldName, Object value) { + return (Address) super.set(fieldName, value); + } + + @Override + public Address clone() { + return (Address) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java new file mode 100644 index 00000000000..03e9a3e9ca0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 AddressAggregatedList. + * + *

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 AddressAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 AddressesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated + * lists of addresses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 AddressAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of AddressesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of AddressesScopedList resources. + * @param items items or {@code null} for none + */ + public AddressAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated + * lists of addresses. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated + * lists of addresses. + * @param kind kind or {@code null} for none + */ + public AddressAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AddressAggregatedList 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 AddressAggregatedList 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 AddressAggregatedList 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 AddressAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AddressAggregatedList set(String fieldName, Object value) { + return (AddressAggregatedList) super.set(fieldName, value); + } + + @Override + public AddressAggregatedList clone() { + return (AddressAggregatedList) 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 AddressAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressList.java new file mode 100644 index 00000000000..53b802f53cc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of addresses. + * + *

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 AddressList extends com.google.api.client.json.GenericJson { + + /** + * [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 Address 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 Address 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(Address.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 AddressList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Address resources. + * @return value or {@code null} for none + */ + public java.util.List
getItems() { + return items; + } + + /** + * A list of Address resources. + * @param items items or {@code null} for none + */ + public AddressList setItems(java.util.List
items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * @param kind kind or {@code null} for none + */ + public AddressList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AddressList 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 AddressList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 AddressList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AddressList set(String fieldName, Object value) { + return (AddressList) super.set(fieldName, value); + } + + @Override + public AddressList clone() { + return (AddressList) 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 AddressListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AddressesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressesScopedList.java new file mode 100644 index 00000000000..aa3dcb28214 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AddressesScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 AddressesScopedList. + * + *

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 AddressesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of addresses contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List
addresses; + + static { + // hack to force ProGuard to consider Address 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(Address.class); + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of addresses contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List
getAddresses() { + return addresses; + } + + /** + * [Output Only] A list of addresses contained in this scope. + * @param addresses addresses or {@code null} for none + */ + public AddressesScopedList setAddresses(java.util.List
addresses) { + this.addresses = addresses; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public AddressesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AddressesScopedList set(String fieldName, Object value) { + return (AddressesScopedList) super.set(fieldName, value); + } + + @Override + public AddressesScopedList clone() { + return (AddressesScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is empty. + */ + 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 AddressesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AdvancedMachineFeatures.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AdvancedMachineFeatures.java new file mode 100644 index 00000000000..a1e538971c7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AdvancedMachineFeatures.java @@ -0,0 +1,210 @@ +/* + * 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; + +/** + * Specifies options for controlling advanced machine features. Options that would traditionally be + * configured in a BIOS belong here. Features that require operating system support may have + * corresponding entries in the GuestOsFeatures of anImage (e.g., whether or not the OS in theImage + * supports nested virtualization being enabled or disabled). + * + *

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 AdvancedMachineFeatures extends com.google.api.client.json.GenericJson { + + /** + * Whether to enable nested virtualization or not (default is false). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableNestedVirtualization; + + /** + * Whether to enable UEFI networking for instance creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableUefiNetworking; + + /** + * Type of Performance Monitoring Unit requested on instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String performanceMonitoringUnit; + + /** + * The number of threads per physical core. To disable simultaneous multithreading (SMT) set this + * to 1. If unset, the maximum number of threads supported per core by the underlying processor is + * assumed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer threadsPerCore; + + /** + * Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX + * + * Using empty string or not setting this field will use the platform-specific default turbo mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String turboMode; + + /** + * The number of physical cores to expose to an instance. Multiply by the number of threads per + * core to compute the total number of virtual CPUs to expose to the instance. If unset, the + * number of cores is inferred from the instance's nominal CPU count and the underlying platform's + * SMT width. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer visibleCoreCount; + + /** + * Whether to enable nested virtualization or not (default is false). + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableNestedVirtualization() { + return enableNestedVirtualization; + } + + /** + * Whether to enable nested virtualization or not (default is false). + * @param enableNestedVirtualization enableNestedVirtualization or {@code null} for none + */ + public AdvancedMachineFeatures setEnableNestedVirtualization(java.lang.Boolean enableNestedVirtualization) { + this.enableNestedVirtualization = enableNestedVirtualization; + return this; + } + + /** + * Whether to enable UEFI networking for instance creation. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableUefiNetworking() { + return enableUefiNetworking; + } + + /** + * Whether to enable UEFI networking for instance creation. + * @param enableUefiNetworking enableUefiNetworking or {@code null} for none + */ + public AdvancedMachineFeatures setEnableUefiNetworking(java.lang.Boolean enableUefiNetworking) { + this.enableUefiNetworking = enableUefiNetworking; + return this; + } + + /** + * Type of Performance Monitoring Unit requested on instance. + * @return value or {@code null} for none + */ + public java.lang.String getPerformanceMonitoringUnit() { + return performanceMonitoringUnit; + } + + /** + * Type of Performance Monitoring Unit requested on instance. + * @param performanceMonitoringUnit performanceMonitoringUnit or {@code null} for none + */ + public AdvancedMachineFeatures setPerformanceMonitoringUnit(java.lang.String performanceMonitoringUnit) { + this.performanceMonitoringUnit = performanceMonitoringUnit; + return this; + } + + /** + * The number of threads per physical core. To disable simultaneous multithreading (SMT) set this + * to 1. If unset, the maximum number of threads supported per core by the underlying processor is + * assumed. + * @return value or {@code null} for none + */ + public java.lang.Integer getThreadsPerCore() { + return threadsPerCore; + } + + /** + * The number of threads per physical core. To disable simultaneous multithreading (SMT) set this + * to 1. If unset, the maximum number of threads supported per core by the underlying processor is + * assumed. + * @param threadsPerCore threadsPerCore or {@code null} for none + */ + public AdvancedMachineFeatures setThreadsPerCore(java.lang.Integer threadsPerCore) { + this.threadsPerCore = threadsPerCore; + return this; + } + + /** + * Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX + * + * Using empty string or not setting this field will use the platform-specific default turbo mode. + * @return value or {@code null} for none + */ + public java.lang.String getTurboMode() { + return turboMode; + } + + /** + * Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX + * + * Using empty string or not setting this field will use the platform-specific default turbo mode. + * @param turboMode turboMode or {@code null} for none + */ + public AdvancedMachineFeatures setTurboMode(java.lang.String turboMode) { + this.turboMode = turboMode; + return this; + } + + /** + * The number of physical cores to expose to an instance. Multiply by the number of threads per + * core to compute the total number of virtual CPUs to expose to the instance. If unset, the + * number of cores is inferred from the instance's nominal CPU count and the underlying platform's + * SMT width. + * @return value or {@code null} for none + */ + public java.lang.Integer getVisibleCoreCount() { + return visibleCoreCount; + } + + /** + * The number of physical cores to expose to an instance. Multiply by the number of threads per + * core to compute the total number of virtual CPUs to expose to the instance. If unset, the + * number of cores is inferred from the instance's nominal CPU count and the underlying platform's + * SMT width. + * @param visibleCoreCount visibleCoreCount or {@code null} for none + */ + public AdvancedMachineFeatures setVisibleCoreCount(java.lang.Integer visibleCoreCount) { + this.visibleCoreCount = visibleCoreCount; + return this; + } + + @Override + public AdvancedMachineFeatures set(String fieldName, Object value) { + return (AdvancedMachineFeatures) super.set(fieldName, value); + } + + @Override + public AdvancedMachineFeatures clone() { + return (AdvancedMachineFeatures) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AliasIpRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AliasIpRange.java new file mode 100644 index 00000000000..459c7d14278 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AliasIpRange.java @@ -0,0 +1,102 @@ +/* + * 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; + +/** + * An alias IP range attached to an instance's network interface. + * + *

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 AliasIpRange extends com.google.api.client.json.GenericJson { + + /** + * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the + * specified subnetwork and cannot contain IP addresses reserved by system or used by other + * network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such + * as/24) or a CIDR-formatted string (such as10.1.2.0/24). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not + * specified, the primary range of the subnetwork is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetworkRangeName; + + /** + * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the + * specified subnetwork and cannot contain IP addresses reserved by system or used by other + * network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such + * as/24) or a CIDR-formatted string (such as10.1.2.0/24). + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the + * specified subnetwork and cannot contain IP addresses reserved by system or used by other + * network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such + * as/24) or a CIDR-formatted string (such as10.1.2.0/24). + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public AliasIpRange setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not + * specified, the primary range of the subnetwork is used. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetworkRangeName() { + return subnetworkRangeName; + } + + /** + * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not + * specified, the primary range of the subnetwork is used. + * @param subnetworkRangeName subnetworkRangeName or {@code null} for none + */ + public AliasIpRange setSubnetworkRangeName(java.lang.String subnetworkRangeName) { + this.subnetworkRangeName = subnetworkRangeName; + return this; + } + + @Override + public AliasIpRange set(String fieldName, Object value) { + return (AliasIpRange) super.set(fieldName, value); + } + + @Override + public AliasIpRange clone() { + return (AliasIpRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java new file mode 100644 index 00000000000..caf9d9f3bae --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -0,0 +1,140 @@ +/* + * 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; + +/** + * This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can + * account for multiple instance SKUs. In other words, one can create instances of varying shapes + * against this reservation. + * + *

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 AllocationAggregateReservation extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] List of resources currently in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inUseResources; + + /** + * List of reserved resources (CPUs, memory, accelerators). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reservedResources; + + /** + * The VM family that all instances scheduled against this reservation must belong to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vmFamily; + + /** + * The workload type of the instances that will target this reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadType; + + /** + * Output only. [Output only] List of resources currently in use. + * @return value or {@code null} for none + */ + public java.util.List getInUseResources() { + return inUseResources; + } + + /** + * Output only. [Output only] List of resources currently in use. + * @param inUseResources inUseResources or {@code null} for none + */ + public AllocationAggregateReservation setInUseResources(java.util.List inUseResources) { + this.inUseResources = inUseResources; + return this; + } + + /** + * List of reserved resources (CPUs, memory, accelerators). + * @return value or {@code null} for none + */ + public java.util.List getReservedResources() { + return reservedResources; + } + + /** + * List of reserved resources (CPUs, memory, accelerators). + * @param reservedResources reservedResources or {@code null} for none + */ + public AllocationAggregateReservation setReservedResources(java.util.List reservedResources) { + this.reservedResources = reservedResources; + return this; + } + + /** + * The VM family that all instances scheduled against this reservation must belong to. + * @return value or {@code null} for none + */ + public java.lang.String getVmFamily() { + return vmFamily; + } + + /** + * The VM family that all instances scheduled against this reservation must belong to. + * @param vmFamily vmFamily or {@code null} for none + */ + public AllocationAggregateReservation setVmFamily(java.lang.String vmFamily) { + this.vmFamily = vmFamily; + return this; + } + + /** + * The workload type of the instances that will target this reservation. + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadType() { + return workloadType; + } + + /** + * The workload type of the instances that will target this reservation. + * @param workloadType workloadType or {@code null} for none + */ + public AllocationAggregateReservation setWorkloadType(java.lang.String workloadType) { + this.workloadType = workloadType; + return this; + } + + @Override + public AllocationAggregateReservation set(String fieldName, Object value) { + return (AllocationAggregateReservation) super.set(fieldName, value); + } + + @Override + public AllocationAggregateReservation clone() { + return (AllocationAggregateReservation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfo.java new file mode 100644 index 00000000000..19d78705282 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfo.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; + +/** + * Model definition for AllocationAggregateReservationReservedResourceInfo. + * + *

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 AllocationAggregateReservationReservedResourceInfo extends com.google.api.client.json.GenericJson { + + /** + * Properties of accelerator resources in this reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationAggregateReservationReservedResourceInfoAccelerator accelerator; + + /** + * Properties of accelerator resources in this reservation. + * @return value or {@code null} for none + */ + public AllocationAggregateReservationReservedResourceInfoAccelerator getAccelerator() { + return accelerator; + } + + /** + * Properties of accelerator resources in this reservation. + * @param accelerator accelerator or {@code null} for none + */ + public AllocationAggregateReservationReservedResourceInfo setAccelerator(AllocationAggregateReservationReservedResourceInfoAccelerator accelerator) { + this.accelerator = accelerator; + return this; + } + + @Override + public AllocationAggregateReservationReservedResourceInfo set(String fieldName, Object value) { + return (AllocationAggregateReservationReservedResourceInfo) super.set(fieldName, value); + } + + @Override + public AllocationAggregateReservationReservedResourceInfo clone() { + return (AllocationAggregateReservationReservedResourceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java new file mode 100644 index 00000000000..bd42a057b45 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java @@ -0,0 +1,93 @@ +/* + * 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 AllocationAggregateReservationReservedResourceInfoAccelerator. + * + *

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 AllocationAggregateReservationReservedResourceInfoAccelerator extends com.google.api.client.json.GenericJson { + + /** + * Number of accelerators of specified type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer acceleratorCount; + + /** + * Full or partial URL to accelerator type. e.g. + * "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorType; + + /** + * Number of accelerators of specified type. + * @return value or {@code null} for none + */ + public java.lang.Integer getAcceleratorCount() { + return acceleratorCount; + } + + /** + * Number of accelerators of specified type. + * @param acceleratorCount acceleratorCount or {@code null} for none + */ + public AllocationAggregateReservationReservedResourceInfoAccelerator setAcceleratorCount(java.lang.Integer acceleratorCount) { + this.acceleratorCount = acceleratorCount; + return this; + } + + /** + * Full or partial URL to accelerator type. e.g. + * "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorType() { + return acceleratorType; + } + + /** + * Full or partial URL to accelerator type. e.g. + * "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" + * @param acceleratorType acceleratorType or {@code null} for none + */ + public AllocationAggregateReservationReservedResourceInfoAccelerator setAcceleratorType(java.lang.String acceleratorType) { + this.acceleratorType = acceleratorType; + return this; + } + + @Override + public AllocationAggregateReservationReservedResourceInfoAccelerator set(String fieldName, Object value) { + return (AllocationAggregateReservationReservedResourceInfoAccelerator) super.set(fieldName, value); + } + + @Override + public AllocationAggregateReservationReservedResourceInfoAccelerator clone() { + return (AllocationAggregateReservationReservedResourceInfoAccelerator) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationReservationSharingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationReservationSharingPolicy.java new file mode 100644 index 00000000000..020a762111b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationReservationSharingPolicy.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; + +/** + * Model definition for AllocationReservationSharingPolicy. + * + *

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 AllocationReservationSharingPolicy extends com.google.api.client.json.GenericJson { + + /** + * Sharing config for all Google Cloud services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceShareType; + + /** + * Sharing config for all Google Cloud services. + * @return value or {@code null} for none + */ + public java.lang.String getServiceShareType() { + return serviceShareType; + } + + /** + * Sharing config for all Google Cloud services. + * @param serviceShareType serviceShareType or {@code null} for none + */ + public AllocationReservationSharingPolicy setServiceShareType(java.lang.String serviceShareType) { + this.serviceShareType = serviceShareType; + return this; + } + + @Override + public AllocationReservationSharingPolicy set(String fieldName, Object value) { + return (AllocationReservationSharingPolicy) super.set(fieldName, value); + } + + @Override + public AllocationReservationSharingPolicy clone() { + return (AllocationReservationSharingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatus.java new file mode 100644 index 00000000000..7706c4a4f48 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatus.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Contains output only fields. + * + *

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 AllocationResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output only] Health information for the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationResourceStatusHealthInfo healthInfo; + + /** + * The number of machines in the reservation. Only populated for families where machine to host + * ratio is not 1:1 such as TPU8i. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer machineCount; + + /** + * The number of reservation blocks associated with this reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer reservationBlockCount; + + /** + * Maintenance information for this reservation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GroupMaintenanceInfo reservationMaintenance; + + /** + * Allocation Properties of this reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationResourceStatusSpecificSKUAllocation specificSkuAllocation; + + /** + * [Output only] Health information for the reservation. + * @return value or {@code null} for none + */ + public AllocationResourceStatusHealthInfo getHealthInfo() { + return healthInfo; + } + + /** + * [Output only] Health information for the reservation. + * @param healthInfo healthInfo or {@code null} for none + */ + public AllocationResourceStatus setHealthInfo(AllocationResourceStatusHealthInfo healthInfo) { + this.healthInfo = healthInfo; + return this; + } + + /** + * The number of machines in the reservation. Only populated for families where machine to host + * ratio is not 1:1 such as TPU8i. + * @return value or {@code null} for none + */ + public java.lang.Integer getMachineCount() { + return machineCount; + } + + /** + * The number of machines in the reservation. Only populated for families where machine to host + * ratio is not 1:1 such as TPU8i. + * @param machineCount machineCount or {@code null} for none + */ + public AllocationResourceStatus setMachineCount(java.lang.Integer machineCount) { + this.machineCount = machineCount; + return this; + } + + /** + * The number of reservation blocks associated with this reservation. + * @return value or {@code null} for none + */ + public java.lang.Integer getReservationBlockCount() { + return reservationBlockCount; + } + + /** + * The number of reservation blocks associated with this reservation. + * @param reservationBlockCount reservationBlockCount or {@code null} for none + */ + public AllocationResourceStatus setReservationBlockCount(java.lang.Integer reservationBlockCount) { + this.reservationBlockCount = reservationBlockCount; + return this; + } + + /** + * Maintenance information for this reservation + * @return value or {@code null} for none + */ + public GroupMaintenanceInfo getReservationMaintenance() { + return reservationMaintenance; + } + + /** + * Maintenance information for this reservation + * @param reservationMaintenance reservationMaintenance or {@code null} for none + */ + public AllocationResourceStatus setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { + this.reservationMaintenance = reservationMaintenance; + return this; + } + + /** + * Allocation Properties of this reservation. + * @return value or {@code null} for none + */ + public AllocationResourceStatusSpecificSKUAllocation getSpecificSkuAllocation() { + return specificSkuAllocation; + } + + /** + * Allocation Properties of this reservation. + * @param specificSkuAllocation specificSkuAllocation or {@code null} for none + */ + public AllocationResourceStatus setSpecificSkuAllocation(AllocationResourceStatusSpecificSKUAllocation specificSkuAllocation) { + this.specificSkuAllocation = specificSkuAllocation; + return this; + } + + @Override + public AllocationResourceStatus set(String fieldName, Object value) { + return (AllocationResourceStatus) super.set(fieldName, value); + } + + @Override + public AllocationResourceStatus clone() { + return (AllocationResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusHealthInfo.java new file mode 100644 index 00000000000..59588f40bf2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusHealthInfo.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Health information for the reservation. + * + *

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 AllocationResourceStatusHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * The number of reservation blocks that are degraded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer degradedBlockCount; + + /** + * The health status of the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * The number of reservation blocks that are healthy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyBlockCount; + + /** + * The number of reservation blocks that are degraded. + * @return value or {@code null} for none + */ + public java.lang.Integer getDegradedBlockCount() { + return degradedBlockCount; + } + + /** + * The number of reservation blocks that are degraded. + * @param degradedBlockCount degradedBlockCount or {@code null} for none + */ + public AllocationResourceStatusHealthInfo setDegradedBlockCount(java.lang.Integer degradedBlockCount) { + this.degradedBlockCount = degradedBlockCount; + return this; + } + + /** + * The health status of the reservation. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * The health status of the reservation. + * @param healthStatus healthStatus or {@code null} for none + */ + public AllocationResourceStatusHealthInfo setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * The number of reservation blocks that are healthy. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyBlockCount() { + return healthyBlockCount; + } + + /** + * The number of reservation blocks that are healthy. + * @param healthyBlockCount healthyBlockCount or {@code null} for none + */ + public AllocationResourceStatusHealthInfo setHealthyBlockCount(java.lang.Integer healthyBlockCount) { + this.healthyBlockCount = healthyBlockCount; + return this; + } + + @Override + public AllocationResourceStatusHealthInfo set(String fieldName, Object value) { + return (AllocationResourceStatusHealthInfo) super.set(fieldName, value); + } + + @Override + public AllocationResourceStatusHealthInfo clone() { + return (AllocationResourceStatusHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusSpecificSKUAllocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusSpecificSKUAllocation.java new file mode 100644 index 00000000000..fb5360cfa68 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusSpecificSKUAllocation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Contains Properties set for the reservation. + * + *

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 AllocationResourceStatusSpecificSKUAllocation extends com.google.api.client.json.GenericJson { + + /** + * ID of the instance template used to populate reservation properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplateId; + + /** + * Per service utilization breakdown. The Key is the Google Cloud managed service name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.Map utilizations; + + /** + * ID of the instance template used to populate reservation properties. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstanceTemplateId() { + return sourceInstanceTemplateId; + } + + /** + * ID of the instance template used to populate reservation properties. + * @param sourceInstanceTemplateId sourceInstanceTemplateId or {@code null} for none + */ + public AllocationResourceStatusSpecificSKUAllocation setSourceInstanceTemplateId(java.lang.String sourceInstanceTemplateId) { + this.sourceInstanceTemplateId = sourceInstanceTemplateId; + return this; + } + + /** + * Per service utilization breakdown. The Key is the Google Cloud managed service name. + * @return value or {@code null} for none + */ + public java.util.Map getUtilizations() { + return utilizations; + } + + /** + * Per service utilization breakdown. The Key is the Google Cloud managed service name. + * @param utilizations utilizations or {@code null} for none + */ + public AllocationResourceStatusSpecificSKUAllocation setUtilizations(java.util.Map utilizations) { + this.utilizations = utilizations; + return this; + } + + @Override + public AllocationResourceStatusSpecificSKUAllocation set(String fieldName, Object value) { + return (AllocationResourceStatusSpecificSKUAllocation) super.set(fieldName, value); + } + + @Override + public AllocationResourceStatusSpecificSKUAllocation clone() { + return (AllocationResourceStatusSpecificSKUAllocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java new file mode 100644 index 00000000000..d3dd129cc14 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java @@ -0,0 +1,93 @@ +/* + * 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 AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk. + * + *

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 AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk extends com.google.api.client.json.GenericJson { + + /** + * Specifies the size of the disk in base-2 GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The + * default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("interface") + private java.lang.String interface__; + + /** + * Specifies the size of the disk in base-2 GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Specifies the size of the disk in base-2 GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The + * default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance. + * @return value or {@code null} for none + */ + public java.lang.String getInterface() { + return interface__; + } + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The + * default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance. + * @param interface__ interface__ or {@code null} for none + */ + public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk setInterface(java.lang.String interface__) { + this.interface__ = interface__; + return this; + } + + @Override + public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk set(String fieldName, Object value) { + return (AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) super.set(fieldName, value); + } + + @Override + public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk clone() { + return (AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java new file mode 100644 index 00000000000..259f3403934 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -0,0 +1,183 @@ +/* + * 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; + +/** + * Properties of the SKU instances being reserved. Next ID: 10 + * + *

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 AllocationSpecificSKUAllocationReservedInstanceProperties extends com.google.api.client.json.GenericJson { + + /** + * Specifies accelerator type and count. + * 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); + } + + /** + * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List localSsds; + + static { + // hack to force ProGuard to consider AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk 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(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.class); + } + + /** + * An opaque location hint used to place the allocation close to other resources. This field is + * for use by internal tools that use the public API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationHint; + + /** + * Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of + * memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS- + * AMOUNT_OF_MEMORY pattern. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * Minimum cpu platform the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + + /** + * Specifies accelerator type and count. + * @return value or {@code null} for none + */ + public java.util.List getGuestAccelerators() { + return guestAccelerators; + } + + /** + * Specifies accelerator type and count. + * @param guestAccelerators guestAccelerators or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + + /** + * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. + * @return value or {@code null} for none + */ + public java.util.List getLocalSsds() { + return localSsds; + } + + /** + * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. + * @param localSsds localSsds or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties setLocalSsds(java.util.List localSsds) { + this.localSsds = localSsds; + return this; + } + + /** + * An opaque location hint used to place the allocation close to other resources. This field is + * for use by internal tools that use the public API. + * @return value or {@code null} for none + */ + public java.lang.String getLocationHint() { + return locationHint; + } + + /** + * An opaque location hint used to place the allocation close to other resources. This field is + * for use by internal tools that use the public API. + * @param locationHint locationHint or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties setLocationHint(java.lang.String locationHint) { + this.locationHint = locationHint; + return this; + } + + /** + * Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of + * memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS- + * AMOUNT_OF_MEMORY pattern. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of + * memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS- + * AMOUNT_OF_MEMORY pattern. + * @param machineType machineType or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * Minimum cpu platform the reservation. + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Minimum cpu platform the reservation. + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + + @Override + public AllocationSpecificSKUAllocationReservedInstanceProperties set(String fieldName, Object value) { + return (AllocationSpecificSKUAllocationReservedInstanceProperties) super.set(fieldName, value); + } + + @Override + public AllocationSpecificSKUAllocationReservedInstanceProperties clone() { + return (AllocationSpecificSKUAllocationReservedInstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java new file mode 100644 index 00000000000..de9079076b2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -0,0 +1,183 @@ +/* + * 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; + +/** + * This reservation type allows to pre allocate specific instance configuration. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Indicates how many instances are actually usable currently. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long assuredCount; + + /** + * Specifies the number of resources that are allocated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long count; + + /** + * Output only. [Output Only] Indicates how many instances are in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long inUseCount; + + /** + * The instance properties for the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties; + + /** + * Specifies the instance template to create the reservation. If you use this field, you must + * exclude the instanceProperties field. + * + * This field is optional, and it can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: - https://www.googleapis.com/compute/v1/proj + * ects/project/global/instanceTemplates/instanceTemplate - + * projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplate; + + /** + * Output only. [Output Only] Indicates how many instances are actually usable currently. + * @return value or {@code null} for none + */ + public java.lang.Long getAssuredCount() { + return assuredCount; + } + + /** + * Output only. [Output Only] Indicates how many instances are actually usable currently. + * @param assuredCount assuredCount or {@code null} for none + */ + public AllocationSpecificSKUReservation setAssuredCount(java.lang.Long assuredCount) { + this.assuredCount = assuredCount; + return this; + } + + /** + * Specifies the number of resources that are allocated. + * @return value or {@code null} for none + */ + public java.lang.Long getCount() { + return count; + } + + /** + * Specifies the number of resources that are allocated. + * @param count count or {@code null} for none + */ + public AllocationSpecificSKUReservation setCount(java.lang.Long count) { + this.count = count; + return this; + } + + /** + * Output only. [Output Only] Indicates how many instances are in use. + * @return value or {@code null} for none + */ + public java.lang.Long getInUseCount() { + return inUseCount; + } + + /** + * Output only. [Output Only] Indicates how many instances are in use. + * @param inUseCount inUseCount or {@code null} for none + */ + public AllocationSpecificSKUReservation setInUseCount(java.lang.Long inUseCount) { + this.inUseCount = inUseCount; + return this; + } + + /** + * The instance properties for the reservation. + * @return value or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * The instance properties for the reservation. + * @param instanceProperties instanceProperties or {@code null} for none + */ + public AllocationSpecificSKUReservation setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + /** + * Specifies the instance template to create the reservation. If you use this field, you must + * exclude the instanceProperties field. + * + * This field is optional, and it can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: - https://www.googleapis.com/compute/v1/proj + * ects/project/global/instanceTemplates/instanceTemplate - + * projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstanceTemplate() { + return sourceInstanceTemplate; + } + + /** + * Specifies the instance template to create the reservation. If you use this field, you must + * exclude the instanceProperties field. + * + * This field is optional, and it can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: - https://www.googleapis.com/compute/v1/proj + * ects/project/global/instanceTemplates/instanceTemplate - + * projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate + * @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none + */ + public AllocationSpecificSKUReservation setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { + this.sourceInstanceTemplate = sourceInstanceTemplate; + return this; + } + + @Override + public AllocationSpecificSKUReservation set(String fieldName, Object value) { + return (AllocationSpecificSKUReservation) super.set(fieldName, value); + } + + @Override + public AllocationSpecificSKUReservation clone() { + return (AllocationSpecificSKUReservation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDisk.java new file mode 100644 index 00000000000..d5949cb674e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -0,0 +1,630 @@ +/* + * 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; + +/** + * An instance-attached disk 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 AttachedDisk extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or + * X86_64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoDelete; + + /** + * Indicates that this is a boot disk. The virtual machine will use the first partition of the + * disk for its root filesystem. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boot; + + /** + * Specifies a unique device name of your choice that is reflected into the/dev/disk/by- + * id/google-* tree of a Linux operating system running within the instance. This name can be used + * to reference the device for mounting, resizing, and so on, from within the instance. + * + * If not specified, the server chooses a default device name to apply to this disk, in the form + * persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only + * applicable for persistent disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** + * Encrypts or decrypts a disk using acustomer-supplied encryption key. + * + * If you are creating a new disk, this field encrypts the new disk using an encryption key that + * you provide. If you are attaching an existing disk that is already encrypted, this field + * decrypts the disk using the customer-supplied encryption key. + * + * If you encrypt a disk using a customer-supplied key, you must provide the same key again when + * you attempt to use this resource at a later time. For example, you must provide the key when + * you create a snapshot or an image from the disk or when you attach the disk to a virtual + * machine instance. + * + * If you do not provide an encryption key, then the disk will be encrypted using an automatically + * generated key and you do not need to provide a key to use the disk later. + * + * Note: + * + * Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own + * keys to encrypt disks in amanaged instance group. + * + * You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey diskEncryptionKey; + + /** + * The size of the disk in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * [Input Only] Whether to force attach the regional disk even if it's currently attached to + * another instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceAttach; + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guestOsFeatures; + + /** + * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot + * disk. If you have many disks attached to an instance, each disk would have a unique index + * number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * [Input Only] Specifies the parameters for a new disk that will be created alongside the new + * instance. Use initialization parameters to create boot disks or local SSDs attached to the new + * instance. + * + * This property is mutually exclusive with the source property; you can only define one or the + * other, but not both. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AttachedDiskInitializeParams initializeParams; + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For + * most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain + * configurations, persistent disks can use NVMe. For more information, seeAbout persistent disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("interface") + private java.lang.String interface__; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Any valid publicly visible licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the + * default is to attach the disk in READ_WRITE mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is + * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer + * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String savedState; + + /** + * Output only. [Output Only] shielded vm initial state stored on disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InitialStateConfig shieldedInstanceInitialState; + + /** + * Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a + * new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or + * disks.source is required. + * + * If desired, you can also attach existing non-root persistent disks using this property. This + * field is only applicable for persistent disks. + * + * Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional + * disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default + * isPERSISTENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or + * X86_64. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or + * X86_64. + * @param architecture architecture or {@code null} for none + */ + public AttachedDisk setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoDelete() { + return autoDelete; + } + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * @param autoDelete autoDelete or {@code null} for none + */ + public AttachedDisk setAutoDelete(java.lang.Boolean autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * Indicates that this is a boot disk. The virtual machine will use the first partition of the + * disk for its root filesystem. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoot() { + return boot; + } + + /** + * Indicates that this is a boot disk. The virtual machine will use the first partition of the + * disk for its root filesystem. + * @param boot boot or {@code null} for none + */ + public AttachedDisk setBoot(java.lang.Boolean boot) { + this.boot = boot; + return this; + } + + /** + * Specifies a unique device name of your choice that is reflected into the/dev/disk/by- + * id/google-* tree of a Linux operating system running within the instance. This name can be used + * to reference the device for mounting, resizing, and so on, from within the instance. + * + * If not specified, the server chooses a default device name to apply to this disk, in the form + * persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only + * applicable for persistent disks. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * Specifies a unique device name of your choice that is reflected into the/dev/disk/by- + * id/google-* tree of a Linux operating system running within the instance. This name can be used + * to reference the device for mounting, resizing, and so on, from within the instance. + * + * If not specified, the server chooses a default device name to apply to this disk, in the form + * persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only + * applicable for persistent disks. + * @param deviceName deviceName or {@code null} for none + */ + public AttachedDisk setDeviceName(java.lang.String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Encrypts or decrypts a disk using acustomer-supplied encryption key. + * + * If you are creating a new disk, this field encrypts the new disk using an encryption key that + * you provide. If you are attaching an existing disk that is already encrypted, this field + * decrypts the disk using the customer-supplied encryption key. + * + * If you encrypt a disk using a customer-supplied key, you must provide the same key again when + * you attempt to use this resource at a later time. For example, you must provide the key when + * you create a snapshot or an image from the disk or when you attach the disk to a virtual + * machine instance. + * + * If you do not provide an encryption key, then the disk will be encrypted using an automatically + * generated key and you do not need to provide a key to use the disk later. + * + * Note: + * + * Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own + * keys to encrypt disks in amanaged instance group. + * + * You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getDiskEncryptionKey() { + return diskEncryptionKey; + } + + /** + * Encrypts or decrypts a disk using acustomer-supplied encryption key. + * + * If you are creating a new disk, this field encrypts the new disk using an encryption key that + * you provide. If you are attaching an existing disk that is already encrypted, this field + * decrypts the disk using the customer-supplied encryption key. + * + * If you encrypt a disk using a customer-supplied key, you must provide the same key again when + * you attempt to use this resource at a later time. For example, you must provide the key when + * you create a snapshot or an image from the disk or when you attach the disk to a virtual + * machine instance. + * + * If you do not provide an encryption key, then the disk will be encrypted using an automatically + * generated key and you do not need to provide a key to use the disk later. + * + * Note: + * + * Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own + * keys to encrypt disks in amanaged instance group. + * + * You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. + * @param diskEncryptionKey diskEncryptionKey or {@code null} for none + */ + public AttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { + this.diskEncryptionKey = diskEncryptionKey; + return this; + } + + /** + * The size of the disk in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * The size of the disk in GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public AttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * [Input Only] Whether to force attach the regional disk even if it's currently attached to + * another instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForceAttach() { + return forceAttach; + } + + /** + * [Input Only] Whether to force attach the regional disk even if it's currently attached to + * another instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + * @param forceAttach forceAttach or {@code null} for none + */ + public AttachedDisk setForceAttach(java.lang.Boolean forceAttach) { + this.forceAttach = forceAttach; + return this; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * @return value or {@code null} for none + */ + public java.util.List getGuestOsFeatures() { + return guestOsFeatures; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * @param guestOsFeatures guestOsFeatures or {@code null} for none + */ + public AttachedDisk setGuestOsFeatures(java.util.List guestOsFeatures) { + this.guestOsFeatures = guestOsFeatures; + return this; + } + + /** + * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot + * disk. If you have many disks attached to an instance, each disk would have a unique index + * number. + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot + * disk. If you have many disks attached to an instance, each disk would have a unique index + * number. + * @param index index or {@code null} for none + */ + public AttachedDisk setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + /** + * [Input Only] Specifies the parameters for a new disk that will be created alongside the new + * instance. Use initialization parameters to create boot disks or local SSDs attached to the new + * instance. + * + * This property is mutually exclusive with the source property; you can only define one or the + * other, but not both. + * @return value or {@code null} for none + */ + public AttachedDiskInitializeParams getInitializeParams() { + return initializeParams; + } + + /** + * [Input Only] Specifies the parameters for a new disk that will be created alongside the new + * instance. Use initialization parameters to create boot disks or local SSDs attached to the new + * instance. + * + * This property is mutually exclusive with the source property; you can only define one or the + * other, but not both. + * @param initializeParams initializeParams or {@code null} for none + */ + public AttachedDisk setInitializeParams(AttachedDiskInitializeParams initializeParams) { + this.initializeParams = initializeParams; + return this; + } + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For + * most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain + * configurations, persistent disks can use NVMe. For more information, seeAbout persistent disks. + * @return value or {@code null} for none + */ + public java.lang.String getInterface() { + return interface__; + } + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For + * most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain + * configurations, persistent disks can use NVMe. For more information, seeAbout persistent disks. + * @param interface__ interface__ or {@code null} for none + */ + public AttachedDisk setInterface(java.lang.String interface__) { + this.interface__ = interface__; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * @param kind kind or {@code null} for none + */ + public AttachedDisk setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Any valid publicly visible licenses. + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * Output only. [Output Only] Any valid publicly visible licenses. + * @param licenses licenses or {@code null} for none + */ + public AttachedDisk setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the + * default is to attach the disk in READ_WRITE mode. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the + * default is to attach the disk in READ_WRITE mode. + * @param mode mode or {@code null} for none + */ + public AttachedDisk setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is + * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer + * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + * @return value or {@code null} for none + */ + public java.lang.String getSavedState() { + return savedState; + } + + /** + * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is + * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer + * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. + * @param savedState savedState or {@code null} for none + */ + public AttachedDisk setSavedState(java.lang.String savedState) { + this.savedState = savedState; + return this; + } + + /** + * Output only. [Output Only] shielded vm initial state stored on disk + * @return value or {@code null} for none + */ + public InitialStateConfig getShieldedInstanceInitialState() { + return shieldedInstanceInitialState; + } + + /** + * Output only. [Output Only] shielded vm initial state stored on disk + * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none + */ + public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { + this.shieldedInstanceInitialState = shieldedInstanceInitialState; + return this; + } + + /** + * Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a + * new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or + * disks.source is required. + * + * If desired, you can also attach existing non-root persistent disks using this property. This + * field is only applicable for persistent disks. + * + * Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional + * disk. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a + * new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or + * disks.source is required. + * + * If desired, you can also attach existing non-root persistent disks using this property. This + * field is only applicable for persistent disks. + * + * Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional + * disk. + * @param source source or {@code null} for none + */ + public AttachedDisk setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default + * isPERSISTENT. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default + * isPERSISTENT. + * @param type type or {@code null} for none + */ + public AttachedDisk setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public AttachedDisk set(String fieldName, Object value) { + return (AttachedDisk) super.set(fieldName, value); + } + + @Override + public AttachedDisk clone() { + return (AttachedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java new file mode 100644 index 00000000000..816b3326f58 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -0,0 +1,749 @@ +/* + * 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; + +/** + * [Input Only] Specifies the parameters for a new disk that will be created alongside the new + * instance. Use initialization parameters to create boot disks or local SSDs attached to the new + * instance. + * + * This field is persisted and returned for instanceTemplate and not returned in the context of + * instance. + * + * This property is mutually exclusive with the source property; you can only define one or the + * other, but not both. + * + *

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 AttachedDiskInitializeParams extends com.google.api.client.json.GenericJson { + + /** + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * An optional description. Provide this property when creating the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Specifies the disk name. If not specified, the default is to use the name of the instance. If a + * disk with the same name already exists in the given region, the existing disk is attached to + * the new instance and the new disk is not created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskName; + + /** + * Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a + * sourceImage, which is required for boot disks, the default size is the size of the sourceImage. + * If you do not specify a sourceImage, the default disk size is 500 GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type + * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. + * + * When creating a single instance, you must provide either the full or partial URL of the disk + * type. For example, the following values are valid: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - + * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType + * + * When creating an instance template, instance flexibility policy, or when creating or updating + * an all-instances configuration, you specify the disk type without a URL, for example, + * hyperdisk-balanced. + * + * If you omit this field for a disk, the default disk type depends on the instance's machine + * series, as follows. - For first- and second-generation machine series like N1, N2, + * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). + * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For + * other third-generation machine series like A3, H3, Z3, all fourth-generation types + * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced + * (hyperdisk-balanced). + * + * The disk type you specify must be compatible with the instance's machine series. For a list of + * machine series that support Persistent Disk, see Machine series support for Persistent Disk. + * + * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskType; + + /** + * Whether this disk is using confidential compute mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableConfidentialCompute; + + /** + * Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This + * field is only applicable for persistent disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * A list of publicly visible licenses. Reserved for Google's use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * Specifies which action to take on instance update with this disk. Default is to use the + * existing disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String onUpdateAction; + + /** + * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per + * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, + * see theExtreme persistent disk documentation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedIops; + + /** + * Indicates how much throughput to provision for the disk. This sets the number of throughput mb + * per second that the disk can handle. Values must greater than or equal to 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedThroughput; + + /** + * Required for each regional disk associated with the instance. Specify the URLs of the zones + * where the disk should be replicated to. You must provide exactly two replica zones, and one + * zone must be the same as the instance zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List replicaZones; + + /** + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Resource policies applied to this disk for automatic snapshot creations. Specified using the + * full or partial URL. For instance template, specify only the resource policy name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * The source image to create this disk. When creating a new instance boot disk, one of + * initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. + * + * To create a disk with one of the public operating system images, specify the image by its + * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + * + * projects/debian-cloud/global/images/family/debian-9 + * + * Alternatively, use a specific version of a public operating system image: + * + * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + * + * To create a disk with a custom image that you created, specify the image name in the following + * format: + * + * global/images/my-custom-image + * + * You can also specify a custom image by its image family, which returns the latest version of + * the image in that family. Replace the image name with family/family-name: + * + * global/images/family/my-image-family + * + * If the source image is deleted later, this field will not be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; + + /** + * Thecustomer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * + * InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied encryption keys, so + * you cannot create disks for instances in a managed instance group if the source images are + * encrypted with your own keys. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceImageEncryptionKey; + + /** + * The source snapshot to create this disk. When creating a new instance boot disk, one of + * initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source is required. + * + * To create a disk with a snapshot that you created, specify the snapshot name in the following + * format: + * + * global/snapshots/my-backup + * + * If the source snapshot is deleted later, this field will not be set. + * + * Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when + * you create VMs using the bulk insert method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshot; + + /** + * Thecustomer-supplied encryption key of the source snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceSnapshotEncryptionKey; + + /** + * The storage pool in which the new disk is created. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + * - projects/project/zones/zone/storagePools/storagePool - + * zones/zone/storagePools/storagePool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * @param architecture architecture or {@code null} for none + */ + public AttachedDiskInitializeParams setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * An optional description. Provide this property when creating the disk. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description. Provide this property when creating the disk. + * @param description description or {@code null} for none + */ + public AttachedDiskInitializeParams setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Specifies the disk name. If not specified, the default is to use the name of the instance. If a + * disk with the same name already exists in the given region, the existing disk is attached to + * the new instance and the new disk is not created. + * @return value or {@code null} for none + */ + public java.lang.String getDiskName() { + return diskName; + } + + /** + * Specifies the disk name. If not specified, the default is to use the name of the instance. If a + * disk with the same name already exists in the given region, the existing disk is attached to + * the new instance and the new disk is not created. + * @param diskName diskName or {@code null} for none + */ + public AttachedDiskInitializeParams setDiskName(java.lang.String diskName) { + this.diskName = diskName; + return this; + } + + /** + * Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a + * sourceImage, which is required for boot disks, the default size is the size of the sourceImage. + * If you do not specify a sourceImage, the default disk size is 500 GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a + * sourceImage, which is required for boot disks, the default size is the size of the sourceImage. + * If you do not specify a sourceImage, the default disk size is 500 GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public AttachedDiskInitializeParams setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type + * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. + * + * When creating a single instance, you must provide either the full or partial URL of the disk + * type. For example, the following values are valid: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - + * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType + * + * When creating an instance template, instance flexibility policy, or when creating or updating + * an all-instances configuration, you specify the disk type without a URL, for example, + * hyperdisk-balanced. + * + * If you omit this field for a disk, the default disk type depends on the instance's machine + * series, as follows. - For first- and second-generation machine series like N1, N2, + * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). + * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For + * other third-generation machine series like A3, H3, Z3, all fourth-generation types + * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced + * (hyperdisk-balanced). + * + * The disk type you specify must be compatible with the instance's machine series. For a list of + * machine series that support Persistent Disk, see Machine series support for Persistent Disk. + * + * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. + * @return value or {@code null} for none + */ + public java.lang.String getDiskType() { + return diskType; + } + + /** + * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type + * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. + * + * When creating a single instance, you must provide either the full or partial URL of the disk + * type. For example, the following values are valid: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - + * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType + * + * When creating an instance template, instance flexibility policy, or when creating or updating + * an all-instances configuration, you specify the disk type without a URL, for example, + * hyperdisk-balanced. + * + * If you omit this field for a disk, the default disk type depends on the instance's machine + * series, as follows. - For first- and second-generation machine series like N1, N2, + * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). + * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For + * other third-generation machine series like A3, H3, Z3, all fourth-generation types + * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced + * (hyperdisk-balanced). + * + * The disk type you specify must be compatible with the instance's machine series. For a list of + * machine series that support Persistent Disk, see Machine series support for Persistent Disk. + * + * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. + * @param diskType diskType or {@code null} for none + */ + public AttachedDiskInitializeParams setDiskType(java.lang.String diskType) { + this.diskType = diskType; + return this; + } + + /** + * Whether this disk is using confidential compute mode. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableConfidentialCompute() { + return enableConfidentialCompute; + } + + /** + * Whether this disk is using confidential compute mode. + * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none + */ + public AttachedDiskInitializeParams setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { + this.enableConfidentialCompute = enableConfidentialCompute; + return this; + } + + /** + * Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This + * field is only applicable for persistent disks. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This + * field is only applicable for persistent disks. + * @param labels labels or {@code null} for none + */ + public AttachedDiskInitializeParams setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * A list of publicly visible licenses. Reserved for Google's use. + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * A list of publicly visible licenses. Reserved for Google's use. + * @param licenses licenses or {@code null} for none + */ + public AttachedDiskInitializeParams setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * Specifies which action to take on instance update with this disk. Default is to use the + * existing disk. + * @return value or {@code null} for none + */ + public java.lang.String getOnUpdateAction() { + return onUpdateAction; + } + + /** + * Specifies which action to take on instance update with this disk. Default is to use the + * existing disk. + * @param onUpdateAction onUpdateAction or {@code null} for none + */ + public AttachedDiskInitializeParams setOnUpdateAction(java.lang.String onUpdateAction) { + this.onUpdateAction = onUpdateAction; + return this; + } + + /** + * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per + * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, + * see theExtreme persistent disk documentation. + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedIops() { + return provisionedIops; + } + + /** + * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per + * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, + * see theExtreme persistent disk documentation. + * @param provisionedIops provisionedIops or {@code null} for none + */ + public AttachedDiskInitializeParams setProvisionedIops(java.lang.Long provisionedIops) { + this.provisionedIops = provisionedIops; + return this; + } + + /** + * Indicates how much throughput to provision for the disk. This sets the number of throughput mb + * per second that the disk can handle. Values must greater than or equal to 1. + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedThroughput() { + return provisionedThroughput; + } + + /** + * Indicates how much throughput to provision for the disk. This sets the number of throughput mb + * per second that the disk can handle. Values must greater than or equal to 1. + * @param provisionedThroughput provisionedThroughput or {@code null} for none + */ + public AttachedDiskInitializeParams setProvisionedThroughput(java.lang.Long provisionedThroughput) { + this.provisionedThroughput = provisionedThroughput; + return this; + } + + /** + * Required for each regional disk associated with the instance. Specify the URLs of the zones + * where the disk should be replicated to. You must provide exactly two replica zones, and one + * zone must be the same as the instance zone. + * @return value or {@code null} for none + */ + public java.util.List getReplicaZones() { + return replicaZones; + } + + /** + * Required for each regional disk associated with the instance. Specify the URLs of the zones + * where the disk should be replicated to. You must provide exactly two replica zones, and one + * zone must be the same as the instance zone. + * @param replicaZones replicaZones or {@code null} for none + */ + public AttachedDiskInitializeParams setReplicaZones(java.util.List replicaZones) { + this.replicaZones = replicaZones; + return this; + } + + /** + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public AttachedDiskInitializeParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + /** + * Resource policies applied to this disk for automatic snapshot creations. Specified using the + * full or partial URL. For instance template, specify only the resource policy name. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies applied to this disk for automatic snapshot creations. Specified using the + * full or partial URL. For instance template, specify only the resource policy name. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public AttachedDiskInitializeParams setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * The source image to create this disk. When creating a new instance boot disk, one of + * initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. + * + * To create a disk with one of the public operating system images, specify the image by its + * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + * + * projects/debian-cloud/global/images/family/debian-9 + * + * Alternatively, use a specific version of a public operating system image: + * + * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + * + * To create a disk with a custom image that you created, specify the image name in the following + * format: + * + * global/images/my-custom-image + * + * You can also specify a custom image by its image family, which returns the latest version of + * the image in that family. Replace the image name with family/family-name: + * + * global/images/family/my-image-family + * + * If the source image is deleted later, this field will not be set. + * @return value or {@code null} for none + */ + public java.lang.String getSourceImage() { + return sourceImage; + } + + /** + * The source image to create this disk. When creating a new instance boot disk, one of + * initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. + * + * To create a disk with one of the public operating system images, specify the image by its + * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + * + * projects/debian-cloud/global/images/family/debian-9 + * + * Alternatively, use a specific version of a public operating system image: + * + * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + * + * To create a disk with a custom image that you created, specify the image name in the following + * format: + * + * global/images/my-custom-image + * + * You can also specify a custom image by its image family, which returns the latest version of + * the image in that family. Replace the image name with family/family-name: + * + * global/images/family/my-image-family + * + * If the source image is deleted later, this field will not be set. + * @param sourceImage sourceImage or {@code null} for none + */ + public AttachedDiskInitializeParams setSourceImage(java.lang.String sourceImage) { + this.sourceImage = sourceImage; + return this; + } + + /** + * Thecustomer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * + * InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied encryption keys, so + * you cannot create disks for instances in a managed instance group if the source images are + * encrypted with your own keys. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceImageEncryptionKey() { + return sourceImageEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * + * InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied encryption keys, so + * you cannot create disks for instances in a managed instance group if the source images are + * encrypted with your own keys. + * @param sourceImageEncryptionKey sourceImageEncryptionKey or {@code null} for none + */ + public AttachedDiskInitializeParams setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey) { + this.sourceImageEncryptionKey = sourceImageEncryptionKey; + return this; + } + + /** + * The source snapshot to create this disk. When creating a new instance boot disk, one of + * initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source is required. + * + * To create a disk with a snapshot that you created, specify the snapshot name in the following + * format: + * + * global/snapshots/my-backup + * + * If the source snapshot is deleted later, this field will not be set. + * + * Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when + * you create VMs using the bulk insert method. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshot() { + return sourceSnapshot; + } + + /** + * The source snapshot to create this disk. When creating a new instance boot disk, one of + * initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source is required. + * + * To create a disk with a snapshot that you created, specify the snapshot name in the following + * format: + * + * global/snapshots/my-backup + * + * If the source snapshot is deleted later, this field will not be set. + * + * Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when + * you create VMs using the bulk insert method. + * @param sourceSnapshot sourceSnapshot or {@code null} for none + */ + public AttachedDiskInitializeParams setSourceSnapshot(java.lang.String sourceSnapshot) { + this.sourceSnapshot = sourceSnapshot; + return this; + } + + /** + * Thecustomer-supplied encryption key of the source snapshot. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceSnapshotEncryptionKey() { + return sourceSnapshotEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source snapshot. + * @param sourceSnapshotEncryptionKey sourceSnapshotEncryptionKey or {@code null} for none + */ + public AttachedDiskInitializeParams setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey) { + this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey; + return this; + } + + /** + * The storage pool in which the new disk is created. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + * - projects/project/zones/zone/storagePools/storagePool - + * zones/zone/storagePools/storagePool + * @return value or {@code null} for none + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** + * The storage pool in which the new disk is created. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + * - projects/project/zones/zone/storagePools/storagePool - + * zones/zone/storagePools/storagePool + * @param storagePool storagePool or {@code null} for none + */ + public AttachedDiskInitializeParams setStoragePool(java.lang.String storagePool) { + this.storagePool = storagePool; + return this; + } + + @Override + public AttachedDiskInitializeParams set(String fieldName, Object value) { + return (AttachedDiskInitializeParams) super.set(fieldName, value); + } + + @Override + public AttachedDiskInitializeParams clone() { + return (AttachedDiskInitializeParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditConfig.java new file mode 100644 index 00000000000..6688c044a76 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditConfig.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * Specifies the audit configuration for a service. The configuration determines which permission + * types are logged, and what identities, if any, are exempted from logging. An AuditConfig must + * have one or more AuditLogConfigs. + * + * If there are AuditConfigs for both `allServices` and a specific service, the union of the two + * AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, + * and the exempted_members in each AuditLogConfig are exempted. + * + * Example Policy with multiple AuditConfigs: + * + * { "audit_configs": [ { "service": "allServices", + * "audit_log_configs": [ { "log_type": "DATA_READ", + * "exempted_members": [ "user:jose@example.com" ] }, + * { "log_type": "DATA_WRITE" }, { "log_type": + * "ADMIN_READ" } ] }, { "service": + * "sampleservice.googleapis.com", "audit_log_configs": [ { + * "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", + * "exempted_members": [ "user:aliya@example.com" ] } + * ] } ] } + * + * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + * exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE + * logging. + * + *

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 AuditConfig extends com.google.api.client.json.GenericJson { + + /** + * The configuration for logging of each type of permission. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditLogConfigs; + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * The configuration for logging of each type of permission. + * @return value or {@code null} for none + */ + public java.util.List getAuditLogConfigs() { + return auditLogConfigs; + } + + /** + * The configuration for logging of each type of permission. + * @param auditLogConfigs auditLogConfigs or {@code null} for none + */ + public AuditConfig setAuditLogConfigs(java.util.List auditLogConfigs) { + this.auditLogConfigs = auditLogConfigs; + return this; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Specifies a service that will be enabled for audit logging. For example, + * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that + * covers all services. + * @param service service or {@code null} for none + */ + public AuditConfig setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public AuditConfig set(String fieldName, Object value) { + return (AuditConfig) super.set(fieldName, value); + } + + @Override + public AuditConfig clone() { + return (AuditConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditLogConfig.java new file mode 100644 index 00000000000..77b81ca0022 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AuditLogConfig.java @@ -0,0 +1,100 @@ +/* + * 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; + +/** + * Provides the configuration for logging a type of permissions. Example: + * + * { "audit_log_configs": [ { "log_type": "DATA_READ", + * "exempted_members": [ "user:jose@example.com" ] }, { + * "log_type": "DATA_WRITE" } ] } + * + * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + * DATA_READ logging. + * + *

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 AuditLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exemptedMembers; + + /** + * The log type that this config enables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logType; + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @return value or {@code null} for none + */ + public java.util.List getExemptedMembers() { + return exemptedMembers; + } + + /** + * Specifies the identities that do not cause logging for this type of permission. Follows the + * same format of Binding.members. + * @param exemptedMembers exemptedMembers or {@code null} for none + */ + public AuditLogConfig setExemptedMembers(java.util.List exemptedMembers) { + this.exemptedMembers = exemptedMembers; + return this; + } + + /** + * The log type that this config enables. + * @return value or {@code null} for none + */ + public java.lang.String getLogType() { + return logType; + } + + /** + * The log type that this config enables. + * @param logType logType or {@code null} for none + */ + public AuditLogConfig setLogType(java.lang.String logType) { + this.logType = logType; + return this; + } + + @Override + public AuditLogConfig set(String fieldName, Object value) { + return (AuditLogConfig) super.set(fieldName, value); + } + + @Override + public AuditLogConfig clone() { + return (AuditLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Autoscaler.java new file mode 100644 index 00000000000..a15b4e5d32a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -0,0 +1,462 @@ +/* + * 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 an Autoscaler resource. + * + * Google Compute Engine has two Autoscaler resources: + * + * * [Zonal](/compute/docs/reference/rest/v1/autoscalers) * + * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) + * + * Use autoscalers to automatically add or delete instances from a managed instance group according + * to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. + * + * For zonal managed instance groups resource, use the autoscaler resource. + * + * For regional managed instance groups, use theregionAutoscalers 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 Autoscaler extends com.google.api.client.json.GenericJson { + + /** + * The configuration parameters for the autoscaling algorithm. You can define one or more signals + * for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. + * + * If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 + * or 60%. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutoscalingPolicy autoscalingPolicy; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the 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; + + /** + * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy + * mode is different from ON. This field is empty when autoscaler is not connected to an existing + * managed instance group or autoscaler did not generate its prediction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer recommendedSize; + + /** + * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers + * living in regional scope). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] Status information of existing scaling schedules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map scalingScheduleStatus; + + /** + * [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] The status of the autoscaler configuration. Current set of possible values: + * - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: + * Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be + * effective. Some warnings might be present in the statusDetails field. - ERROR: + * Configuration has errors. Actionable for users. Details are present in the statusDetails + * field. + * + * New values might be added in the future. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * [Output Only] Human-readable details about the current state of the autoscaler. Read the + * documentation forCommonly returned status messages for examples of status messages you might + * encounter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List statusDetails; + + /** + * URL of the managed instance group that this autoscaler will scale. This field is required when + * creating an autoscaler. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers + * living in zonal scope). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The configuration parameters for the autoscaling algorithm. You can define one or more signals + * for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. + * + * If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 + * or 60%. + * @return value or {@code null} for none + */ + public AutoscalingPolicy getAutoscalingPolicy() { + return autoscalingPolicy; + } + + /** + * The configuration parameters for the autoscaling algorithm. You can define one or more signals + * for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. + * + * If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 + * or 60%. + * @param autoscalingPolicy autoscalingPolicy or {@code null} for none + */ + public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { + this.autoscalingPolicy = autoscalingPolicy; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Autoscaler 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 Autoscaler setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * @param kind kind or {@code null} for none + */ + public Autoscaler setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 Autoscaler setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy + * mode is different from ON. This field is empty when autoscaler is not connected to an existing + * managed instance group or autoscaler did not generate its prediction. + * @return value or {@code null} for none + */ + public java.lang.Integer getRecommendedSize() { + return recommendedSize; + } + + /** + * Output only. [Output Only] Target recommended MIG size (number of instances) computed by + * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy + * mode is different from ON. This field is empty when autoscaler is not connected to an existing + * managed instance group or autoscaler did not generate its prediction. + * @param recommendedSize recommendedSize or {@code null} for none + */ + public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { + this.recommendedSize = recommendedSize; + return this; + } + + /** + * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers + * living in regional scope). + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers + * living in regional scope). + * @param region region or {@code null} for none + */ + public Autoscaler setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] Status information of existing scaling schedules. + * @return value or {@code null} for none + */ + public java.util.Map getScalingScheduleStatus() { + return scalingScheduleStatus; + } + + /** + * Output only. [Output Only] Status information of existing scaling schedules. + * @param scalingScheduleStatus scalingScheduleStatus or {@code null} for none + */ + public Autoscaler setScalingScheduleStatus(java.util.Map scalingScheduleStatus) { + this.scalingScheduleStatus = scalingScheduleStatus; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Autoscaler setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] The status of the autoscaler configuration. Current set of possible values: + * - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: + * Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be + * effective. Some warnings might be present in the statusDetails field. - ERROR: + * Configuration has errors. Actionable for users. Details are present in the statusDetails + * field. + * + * New values might be added in the future. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] The status of the autoscaler configuration. Current set of possible values: + * - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: + * Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be + * effective. Some warnings might be present in the statusDetails field. - ERROR: + * Configuration has errors. Actionable for users. Details are present in the statusDetails + * field. + * + * New values might be added in the future. + * @param status status or {@code null} for none + */ + public Autoscaler setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * [Output Only] Human-readable details about the current state of the autoscaler. Read the + * documentation forCommonly returned status messages for examples of status messages you might + * encounter. + * @return value or {@code null} for none + */ + public java.util.List getStatusDetails() { + return statusDetails; + } + + /** + * [Output Only] Human-readable details about the current state of the autoscaler. Read the + * documentation forCommonly returned status messages for examples of status messages you might + * encounter. + * @param statusDetails statusDetails or {@code null} for none + */ + public Autoscaler setStatusDetails(java.util.List statusDetails) { + this.statusDetails = statusDetails; + return this; + } + + /** + * URL of the managed instance group that this autoscaler will scale. This field is required when + * creating an autoscaler. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * URL of the managed instance group that this autoscaler will scale. This field is required when + * creating an autoscaler. + * @param target target or {@code null} for none + */ + public Autoscaler setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers + * living in zonal scope). + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers + * living in zonal scope). + * @param zone zone or {@code null} for none + */ + public Autoscaler setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Autoscaler set(String fieldName, Object value) { + return (Autoscaler) super.set(fieldName, value); + } + + @Override + public Autoscaler clone() { + return (Autoscaler) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java new file mode 100644 index 00000000000..15268e1c6af --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -0,0 +1,407 @@ +/* + * 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 AutoscalerAggregatedList. + * + *

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 AutoscalerAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 AutoscalersScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for + * aggregated lists of autoscalers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * [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 AutoscalerAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of AutoscalersScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of AutoscalersScopedList resources. + * @param items items or {@code null} for none + */ + public AutoscalerAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for + * aggregated lists of autoscalers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for + * aggregated lists of autoscalers. + * @param kind kind or {@code null} for none + */ + public AutoscalerAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AutoscalerAggregatedList 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 AutoscalerAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public AutoscalerAggregatedList 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 AutoscalerAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AutoscalerAggregatedList set(String fieldName, Object value) { + return (AutoscalerAggregatedList) super.set(fieldName, value); + } + + @Override + public AutoscalerAggregatedList clone() { + return (AutoscalerAggregatedList) 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 AutoscalerAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerList.java new file mode 100644 index 00000000000..624cecb576a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of Autoscaler resources. + * + *

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 AutoscalerList extends com.google.api.client.json.GenericJson { + + /** + * [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 Autoscaler 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 Autoscaler 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(Autoscaler.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of + * autoscalers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 AutoscalerList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Autoscaler resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Autoscaler resources. + * @param items items or {@code null} for none + */ + public AutoscalerList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of + * autoscalers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of + * autoscalers. + * @param kind kind or {@code null} for none + */ + public AutoscalerList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AutoscalerList 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 AutoscalerList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 AutoscalerList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AutoscalerList set(String fieldName, Object value) { + return (AutoscalerList) super.set(fieldName, value); + } + + @Override + public AutoscalerList clone() { + return (AutoscalerList) 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 AutoscalerListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AutoscalerStatusDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerStatusDetails.java new file mode 100644 index 00000000000..381c9057da0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalerStatusDetails.java @@ -0,0 +1,180 @@ +/* + * 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 AutoscalerStatusDetails. + * + *

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 AutoscalerStatusDetails extends com.google.api.client.json.GenericJson { + + /** + * The status message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The type of error, warning, or notice returned. Current set of possible values: - + * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not + * in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend + * service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + * Autoscaler recommends a size greater than maxNumReplicas. - + * CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported + * often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): + * The custom metric that was specified does not exist or does not have the necessary labels. + * - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the + * autoscaler cannot add or remove instances from the instance group. - + * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from + * the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS + * (WARNING): The autoscaler is configured to scale based on a load balancing signal but + * the instance group has not received any requests from the load balancer. - MODE_OFF + * (WARNING): Autoscaling is turned off. The number of instances in the group won't + * change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): + * Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not + * remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be + * autoscaled because it has more than one backend service attached to it. - + * NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary + * resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): + * Shown only for regional autoscalers: there is a resource stockout in the chosen region. + * - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - + * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with + * an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT + * (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For + * regional autoscalers: in at least one of the zones you're using there is a resource + * stockout. + * + * New values might be added in the future. Some of the values might not be available in all API + * versions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The status message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * The status message. + * @param message message or {@code null} for none + */ + public AutoscalerStatusDetails setMessage(java.lang.String message) { + this.message = message; + return this; + } + + /** + * The type of error, warning, or notice returned. Current set of possible values: - + * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not + * in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend + * service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + * Autoscaler recommends a size greater than maxNumReplicas. - + * CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported + * often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): + * The custom metric that was specified does not exist or does not have the necessary labels. + * - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the + * autoscaler cannot add or remove instances from the instance group. - + * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from + * the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS + * (WARNING): The autoscaler is configured to scale based on a load balancing signal but + * the instance group has not received any requests from the load balancer. - MODE_OFF + * (WARNING): Autoscaling is turned off. The number of instances in the group won't + * change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): + * Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not + * remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be + * autoscaled because it has more than one backend service attached to it. - + * NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary + * resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): + * Shown only for regional autoscalers: there is a resource stockout in the chosen region. + * - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - + * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with + * an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT + * (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For + * regional autoscalers: in at least one of the zones you're using there is a resource + * stockout. + * + * New values might be added in the future. Some of the values might not be available in all API + * versions. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of error, warning, or notice returned. Current set of possible values: - + * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not + * in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend + * service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + * Autoscaler recommends a size greater than maxNumReplicas. - + * CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported + * often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): + * The custom metric that was specified does not exist or does not have the necessary labels. + * - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the + * autoscaler cannot add or remove instances from the instance group. - + * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from + * the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS + * (WARNING): The autoscaler is configured to scale based on a load balancing signal but + * the instance group has not received any requests from the load balancer. - MODE_OFF + * (WARNING): Autoscaling is turned off. The number of instances in the group won't + * change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): + * Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not + * remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be + * autoscaled because it has more than one backend service attached to it. - + * NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary + * resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): + * Shown only for regional autoscalers: there is a resource stockout in the chosen region. + * - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - + * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with + * an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT + * (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For + * regional autoscalers: in at least one of the zones you're using there is a resource + * stockout. + * + * New values might be added in the future. Some of the values might not be available in all API + * versions. + * @param type type or {@code null} for none + */ + public AutoscalerStatusDetails setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public AutoscalerStatusDetails set(String fieldName, Object value) { + return (AutoscalerStatusDetails) super.set(fieldName, value); + } + + @Override + public AutoscalerStatusDetails clone() { + return (AutoscalerStatusDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalersScopedList.java new file mode 100644 index 00000000000..957ddb3b031 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalersScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 AutoscalersScopedList. + * + *

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 AutoscalersScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of autoscalers contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List autoscalers; + + static { + // hack to force ProGuard to consider Autoscaler 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(Autoscaler.class); + } + + /** + * [Output Only] Informational warning which replaces the list of autoscalers when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of autoscalers contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getAutoscalers() { + return autoscalers; + } + + /** + * [Output Only] A list of autoscalers contained in this scope. + * @param autoscalers autoscalers or {@code null} for none + */ + public AutoscalersScopedList setAutoscalers(java.util.List autoscalers) { + this.autoscalers = autoscalers; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of autoscalers when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of autoscalers when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public AutoscalersScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public AutoscalersScopedList set(String fieldName, Object value) { + return (AutoscalersScopedList) super.set(fieldName, value); + } + + @Override + public AutoscalersScopedList clone() { + return (AutoscalersScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of autoscalers when the list is + * empty. + */ + 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 AutoscalersScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicy.java new file mode 100644 index 00000000000..9256e356c2c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicy.java @@ -0,0 +1,360 @@ +/* + * 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; + +/** + * Cloud Autoscaler policy. + * + *

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 AutoscalingPolicy extends com.google.api.client.json.GenericJson { + + /** + * The number of seconds that your application takes to initialize on a VM instance. This is + * referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). + * Specifying an accurate initialization period improves autoscaler decisions. For example, when + * scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs + * might not yet represent normal usage of your application. The default initialization period is + * 60 seconds. + * + * Initialization periods might vary because of numerous factors. We recommend that you test how + * long your application takes to initialize. To do this, create a VM and time your application's + * startup process. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer coolDownPeriodSec; + + /** + * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU + * utilization of a managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutoscalingPolicyCpuUtilization cpuUtilization; + + /** + * Configuration parameters of autoscaling based on a custom metric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customMetricUtilizations; + + /** + * Configuration parameters of autoscaling based on load balancer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization; + + /** + * The maximum number of instances that the autoscaler can scale out to. This is required when + * creating or updating an autoscaler. The maximum number of replicas must not be lower than + * minimal number of replicas. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxNumReplicas; + + /** + * The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. + * If not provided, autoscaler chooses a default value depending on maximum number of instances + * allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minNumReplicas; + + /** + * Defines the operating mode for this policy. The following modes are available: - OFF: + * Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the + * autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to + * its policy. + * + * For more information, see "Turning off or restricting an autoscaler" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutoscalingPolicyScaleInControl scaleInControl; + + /** + * Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, + * and they can overlap. During overlapping periods the greatest min_required_replicas of all + * scaling schedules is applied. Up to 128 scaling schedules are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map scalingSchedules; + + /** + * The number of seconds that autoscaler waits for load stabilization before making scale-in + * decisions. This is referred to as the [stabilization + * period](/compute/docs/autoscaler#stabilization_period). This might appear as a delay in scaling + * in but it is an important mechanism for your application to not have fluctuating size due to + * short term load fluctuations. + * + * The default stabilization period is 600 seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stabilizationPeriodSec; + + /** + * The number of seconds that your application takes to initialize on a VM instance. This is + * referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). + * Specifying an accurate initialization period improves autoscaler decisions. For example, when + * scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs + * might not yet represent normal usage of your application. The default initialization period is + * 60 seconds. + * + * Initialization periods might vary because of numerous factors. We recommend that you test how + * long your application takes to initialize. To do this, create a VM and time your application's + * startup process. + * @return value or {@code null} for none + */ + public java.lang.Integer getCoolDownPeriodSec() { + return coolDownPeriodSec; + } + + /** + * The number of seconds that your application takes to initialize on a VM instance. This is + * referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). + * Specifying an accurate initialization period improves autoscaler decisions. For example, when + * scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs + * might not yet represent normal usage of your application. The default initialization period is + * 60 seconds. + * + * Initialization periods might vary because of numerous factors. We recommend that you test how + * long your application takes to initialize. To do this, create a VM and time your application's + * startup process. + * @param coolDownPeriodSec coolDownPeriodSec or {@code null} for none + */ + public AutoscalingPolicy setCoolDownPeriodSec(java.lang.Integer coolDownPeriodSec) { + this.coolDownPeriodSec = coolDownPeriodSec; + return this; + } + + /** + * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU + * utilization of a managed instance group. + * @return value or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization getCpuUtilization() { + return cpuUtilization; + } + + /** + * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU + * utilization of a managed instance group. + * @param cpuUtilization cpuUtilization or {@code null} for none + */ + public AutoscalingPolicy setCpuUtilization(AutoscalingPolicyCpuUtilization cpuUtilization) { + this.cpuUtilization = cpuUtilization; + return this; + } + + /** + * Configuration parameters of autoscaling based on a custom metric. + * @return value or {@code null} for none + */ + public java.util.List getCustomMetricUtilizations() { + return customMetricUtilizations; + } + + /** + * Configuration parameters of autoscaling based on a custom metric. + * @param customMetricUtilizations customMetricUtilizations or {@code null} for none + */ + public AutoscalingPolicy setCustomMetricUtilizations(java.util.List customMetricUtilizations) { + this.customMetricUtilizations = customMetricUtilizations; + return this; + } + + /** + * Configuration parameters of autoscaling based on load balancer. + * @return value or {@code null} for none + */ + public AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization() { + return loadBalancingUtilization; + } + + /** + * Configuration parameters of autoscaling based on load balancer. + * @param loadBalancingUtilization loadBalancingUtilization or {@code null} for none + */ + public AutoscalingPolicy setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization) { + this.loadBalancingUtilization = loadBalancingUtilization; + return this; + } + + /** + * The maximum number of instances that the autoscaler can scale out to. This is required when + * creating or updating an autoscaler. The maximum number of replicas must not be lower than + * minimal number of replicas. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxNumReplicas() { + return maxNumReplicas; + } + + /** + * The maximum number of instances that the autoscaler can scale out to. This is required when + * creating or updating an autoscaler. The maximum number of replicas must not be lower than + * minimal number of replicas. + * @param maxNumReplicas maxNumReplicas or {@code null} for none + */ + public AutoscalingPolicy setMaxNumReplicas(java.lang.Integer maxNumReplicas) { + this.maxNumReplicas = maxNumReplicas; + return this; + } + + /** + * The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. + * If not provided, autoscaler chooses a default value depending on maximum number of instances + * allowed. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinNumReplicas() { + return minNumReplicas; + } + + /** + * The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. + * If not provided, autoscaler chooses a default value depending on maximum number of instances + * allowed. + * @param minNumReplicas minNumReplicas or {@code null} for none + */ + public AutoscalingPolicy setMinNumReplicas(java.lang.Integer minNumReplicas) { + this.minNumReplicas = minNumReplicas; + return this; + } + + /** + * Defines the operating mode for this policy. The following modes are available: - OFF: + * Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the + * autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to + * its policy. + * + * For more information, see "Turning off or restricting an autoscaler" + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * Defines the operating mode for this policy. The following modes are available: - OFF: + * Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the + * autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to + * its policy. + * + * For more information, see "Turning off or restricting an autoscaler" + * @param mode mode or {@code null} for none + */ + public AutoscalingPolicy setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * @return value or {@code null} for none + */ + public AutoscalingPolicyScaleInControl getScaleInControl() { + return scaleInControl; + } + + /** + * @param scaleInControl scaleInControl or {@code null} for none + */ + public AutoscalingPolicy setScaleInControl(AutoscalingPolicyScaleInControl scaleInControl) { + this.scaleInControl = scaleInControl; + return this; + } + + /** + * Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, + * and they can overlap. During overlapping periods the greatest min_required_replicas of all + * scaling schedules is applied. Up to 128 scaling schedules are allowed. + * @return value or {@code null} for none + */ + public java.util.Map getScalingSchedules() { + return scalingSchedules; + } + + /** + * Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, + * and they can overlap. During overlapping periods the greatest min_required_replicas of all + * scaling schedules is applied. Up to 128 scaling schedules are allowed. + * @param scalingSchedules scalingSchedules or {@code null} for none + */ + public AutoscalingPolicy setScalingSchedules(java.util.Map scalingSchedules) { + this.scalingSchedules = scalingSchedules; + return this; + } + + /** + * The number of seconds that autoscaler waits for load stabilization before making scale-in + * decisions. This is referred to as the [stabilization + * period](/compute/docs/autoscaler#stabilization_period). This might appear as a delay in scaling + * in but it is an important mechanism for your application to not have fluctuating size due to + * short term load fluctuations. + * + * The default stabilization period is 600 seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getStabilizationPeriodSec() { + return stabilizationPeriodSec; + } + + /** + * The number of seconds that autoscaler waits for load stabilization before making scale-in + * decisions. This is referred to as the [stabilization + * period](/compute/docs/autoscaler#stabilization_period). This might appear as a delay in scaling + * in but it is an important mechanism for your application to not have fluctuating size due to + * short term load fluctuations. + * + * The default stabilization period is 600 seconds. + * @param stabilizationPeriodSec stabilizationPeriodSec or {@code null} for none + */ + public AutoscalingPolicy setStabilizationPeriodSec(java.lang.Integer stabilizationPeriodSec) { + this.stabilizationPeriodSec = stabilizationPeriodSec; + return this; + } + + @Override + public AutoscalingPolicy set(String fieldName, Object value) { + return (AutoscalingPolicy) super.set(fieldName, value); + } + + @Override + public AutoscalingPolicy clone() { + return (AutoscalingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java new file mode 100644 index 00000000000..3d71f5314a4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCpuUtilization.java @@ -0,0 +1,186 @@ +/* + * 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; + +/** + * CPU utilization policy. + * + *

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 AutoscalingPolicyCpuUtilization extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: + * + * * NONE (default). No predictive method is used. The autoscaler scales the group to meet current + * demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves + * availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated + * demand. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String predictiveMethod; + + /** + * The upper bound of the utilization range. Must be a float value in the range + * ('utilization_min', 1]. A value of 0.0 is equivalent to leaving the field unset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationMax; + + /** + * The lower bound of the utilization range. Must be a float value in the range (0, + * 'utilization_max']. A value of 0.0 is equivalent to leaving the field unset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationMin; + + /** + * The target CPU utilization that the autoscaler maintains. Must be a float value in the range + * (0, 1]. If not specified, the default is0.6. + * + * If the CPU level is below the target utilization, the autoscaler scales in the number of + * instances until it reaches the minimum number of instances you specified or until the average + * CPU of your instances reaches the target utilization. + * + * If the average CPU is above the target utilization, the autoscaler scales out until it reaches + * the maximum number of instances you specified or until the average utilization reaches the + * target utilization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationTarget; + + /** + * Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: + * + * * NONE (default). No predictive method is used. The autoscaler scales the group to meet current + * demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves + * availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated + * demand. + * @return value or {@code null} for none + */ + public java.lang.String getPredictiveMethod() { + return predictiveMethod; + } + + /** + * Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: + * + * * NONE (default). No predictive method is used. The autoscaler scales the group to meet current + * demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves + * availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated + * demand. + * @param predictiveMethod predictiveMethod or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization setPredictiveMethod(java.lang.String predictiveMethod) { + this.predictiveMethod = predictiveMethod; + return this; + } + + /** + * The upper bound of the utilization range. Must be a float value in the range + * ('utilization_min', 1]. A value of 0.0 is equivalent to leaving the field unset. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationMax() { + return utilizationMax; + } + + /** + * The upper bound of the utilization range. Must be a float value in the range + * ('utilization_min', 1]. A value of 0.0 is equivalent to leaving the field unset. + * @param utilizationMax utilizationMax or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization setUtilizationMax(java.lang.Double utilizationMax) { + this.utilizationMax = utilizationMax; + return this; + } + + /** + * The lower bound of the utilization range. Must be a float value in the range (0, + * 'utilization_max']. A value of 0.0 is equivalent to leaving the field unset. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationMin() { + return utilizationMin; + } + + /** + * The lower bound of the utilization range. Must be a float value in the range (0, + * 'utilization_max']. A value of 0.0 is equivalent to leaving the field unset. + * @param utilizationMin utilizationMin or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization setUtilizationMin(java.lang.Double utilizationMin) { + this.utilizationMin = utilizationMin; + return this; + } + + /** + * The target CPU utilization that the autoscaler maintains. Must be a float value in the range + * (0, 1]. If not specified, the default is0.6. + * + * If the CPU level is below the target utilization, the autoscaler scales in the number of + * instances until it reaches the minimum number of instances you specified or until the average + * CPU of your instances reaches the target utilization. + * + * If the average CPU is above the target utilization, the autoscaler scales out until it reaches + * the maximum number of instances you specified or until the average utilization reaches the + * target utilization. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationTarget() { + return utilizationTarget; + } + + /** + * The target CPU utilization that the autoscaler maintains. Must be a float value in the range + * (0, 1]. If not specified, the default is0.6. + * + * If the CPU level is below the target utilization, the autoscaler scales in the number of + * instances until it reaches the minimum number of instances you specified or until the average + * CPU of your instances reaches the target utilization. + * + * If the average CPU is above the target utilization, the autoscaler scales out until it reaches + * the maximum number of instances you specified or until the average utilization reaches the + * target utilization. + * @param utilizationTarget utilizationTarget or {@code null} for none + */ + public AutoscalingPolicyCpuUtilization setUtilizationTarget(java.lang.Double utilizationTarget) { + this.utilizationTarget = utilizationTarget; + return this; + } + + @Override + public AutoscalingPolicyCpuUtilization set(String fieldName, Object value) { + return (AutoscalingPolicyCpuUtilization) super.set(fieldName, value); + } + + @Override + public AutoscalingPolicyCpuUtilization clone() { + return (AutoscalingPolicyCpuUtilization) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCustomMetricUtilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCustomMetricUtilization.java new file mode 100644 index 00000000000..62b864e7d94 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyCustomMetricUtilization.java @@ -0,0 +1,288 @@ +/* + * 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; + +/** + * Custom utilization metric policy. + * + *

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 AutoscalingPolicyCustomMetricUtilization extends com.google.api.client.json.GenericJson { + + /** + * A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API + * call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to + * determine whether the metric is exporting per-instance or per-group data. + * + * For the filter to be valid for autoscaling purposes, the following rules apply: - + * You can only use the AND operator for joining selectors. - You can only use direct + * equality comparison operator (=) without any functions for each selector. - You can + * specify the metric in both the filter string and in the metric field. However, if + * specified in both places, the metric must be identical. - The monitored resource + * type determines what kind of values are expected for the metric. If it is a + * gce_instance, the autoscaler expects the metric to include a separate TimeSeries for + * each instance in a group. In such a case, you cannot filter on resource labels. + * If the resource type is any other value, the autoscaler expects this metric to contain + * values that apply to the entire autoscaled instance group and resource label filtering + * can be performed to point autoscaler at the correct TimeSeries to scale upon. This is + * called a *per-group metric* for the purpose of autoscaling. If not specified, the + * type defaults to gce_instance. + * + * Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled + * group or for each of the instances (if you are using gce_instance resource type). If multiple + * TimeSeries are returned upon the query execution, the autoscaler will sum their respective + * values to obtain its scaling value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative + * values. + * + * The metric must have a value type of INT64 orDOUBLE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metric; + + /** + * If scaling is based on a per-group metric value that represents the total amount of work to be + * done or resource usage, set this value to an amount assigned for a single instance of the + * scaled group. Autoscaler keeps the number of instances proportional to the value of this + * metric. The metric itself does not change value due to group resizing. + * + * A good metric to use with the target is for + * examplepubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting + * the total number of requests coming to your instances. + * + * A bad example would be a metric exporting an average or median latency, since this value can't + * include a chunk assignable to a single instance, it could be better used with + * utilization_target instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double singleInstanceAssignment; + + /** + * The target value of the metric that autoscaler maintains. This must be a positive value. A + * utilization metric scales number of virtual machines handling requests to increase or decrease + * proportionally to the metric. + * + * For example, a good metric to use as a utilization_target + * ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler + * works to keep this value constant for each of the instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationTarget; + + /** + * Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either + * GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String utilizationTargetType; + + /** + * A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API + * call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to + * determine whether the metric is exporting per-instance or per-group data. + * + * For the filter to be valid for autoscaling purposes, the following rules apply: - + * You can only use the AND operator for joining selectors. - You can only use direct + * equality comparison operator (=) without any functions for each selector. - You can + * specify the metric in both the filter string and in the metric field. However, if + * specified in both places, the metric must be identical. - The monitored resource + * type determines what kind of values are expected for the metric. If it is a + * gce_instance, the autoscaler expects the metric to include a separate TimeSeries for + * each instance in a group. In such a case, you cannot filter on resource labels. + * If the resource type is any other value, the autoscaler expects this metric to contain + * values that apply to the entire autoscaled instance group and resource label filtering + * can be performed to point autoscaler at the correct TimeSeries to scale upon. This is + * called a *per-group metric* for the purpose of autoscaling. If not specified, the + * type defaults to gce_instance. + * + * Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled + * group or for each of the instances (if you are using gce_instance resource type). If multiple + * TimeSeries are returned upon the query execution, the autoscaler will sum their respective + * values to obtain its scaling value. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API + * call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to + * determine whether the metric is exporting per-instance or per-group data. + * + * For the filter to be valid for autoscaling purposes, the following rules apply: - + * You can only use the AND operator for joining selectors. - You can only use direct + * equality comparison operator (=) without any functions for each selector. - You can + * specify the metric in both the filter string and in the metric field. However, if + * specified in both places, the metric must be identical. - The monitored resource + * type determines what kind of values are expected for the metric. If it is a + * gce_instance, the autoscaler expects the metric to include a separate TimeSeries for + * each instance in a group. In such a case, you cannot filter on resource labels. + * If the resource type is any other value, the autoscaler expects this metric to contain + * values that apply to the entire autoscaled instance group and resource label filtering + * can be performed to point autoscaler at the correct TimeSeries to scale upon. This is + * called a *per-group metric* for the purpose of autoscaling. If not specified, the + * type defaults to gce_instance. + * + * Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled + * group or for each of the instances (if you are using gce_instance resource type). If multiple + * TimeSeries are returned upon the query execution, the autoscaler will sum their respective + * values to obtain its scaling value. + * @param filter filter or {@code null} for none + */ + public AutoscalingPolicyCustomMetricUtilization setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative + * values. + * + * The metric must have a value type of INT64 orDOUBLE. + * @return value or {@code null} for none + */ + public java.lang.String getMetric() { + return metric; + } + + /** + * The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative + * values. + * + * The metric must have a value type of INT64 orDOUBLE. + * @param metric metric or {@code null} for none + */ + public AutoscalingPolicyCustomMetricUtilization setMetric(java.lang.String metric) { + this.metric = metric; + return this; + } + + /** + * If scaling is based on a per-group metric value that represents the total amount of work to be + * done or resource usage, set this value to an amount assigned for a single instance of the + * scaled group. Autoscaler keeps the number of instances proportional to the value of this + * metric. The metric itself does not change value due to group resizing. + * + * A good metric to use with the target is for + * examplepubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting + * the total number of requests coming to your instances. + * + * A bad example would be a metric exporting an average or median latency, since this value can't + * include a chunk assignable to a single instance, it could be better used with + * utilization_target instead. + * @return value or {@code null} for none + */ + public java.lang.Double getSingleInstanceAssignment() { + return singleInstanceAssignment; + } + + /** + * If scaling is based on a per-group metric value that represents the total amount of work to be + * done or resource usage, set this value to an amount assigned for a single instance of the + * scaled group. Autoscaler keeps the number of instances proportional to the value of this + * metric. The metric itself does not change value due to group resizing. + * + * A good metric to use with the target is for + * examplepubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting + * the total number of requests coming to your instances. + * + * A bad example would be a metric exporting an average or median latency, since this value can't + * include a chunk assignable to a single instance, it could be better used with + * utilization_target instead. + * @param singleInstanceAssignment singleInstanceAssignment or {@code null} for none + */ + public AutoscalingPolicyCustomMetricUtilization setSingleInstanceAssignment(java.lang.Double singleInstanceAssignment) { + this.singleInstanceAssignment = singleInstanceAssignment; + return this; + } + + /** + * The target value of the metric that autoscaler maintains. This must be a positive value. A + * utilization metric scales number of virtual machines handling requests to increase or decrease + * proportionally to the metric. + * + * For example, a good metric to use as a utilization_target + * ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler + * works to keep this value constant for each of the instances. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationTarget() { + return utilizationTarget; + } + + /** + * The target value of the metric that autoscaler maintains. This must be a positive value. A + * utilization metric scales number of virtual machines handling requests to increase or decrease + * proportionally to the metric. + * + * For example, a good metric to use as a utilization_target + * ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler + * works to keep this value constant for each of the instances. + * @param utilizationTarget utilizationTarget or {@code null} for none + */ + public AutoscalingPolicyCustomMetricUtilization setUtilizationTarget(java.lang.Double utilizationTarget) { + this.utilizationTarget = utilizationTarget; + return this; + } + + /** + * Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either + * GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. + * @return value or {@code null} for none + */ + public java.lang.String getUtilizationTargetType() { + return utilizationTargetType; + } + + /** + * Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either + * GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. + * @param utilizationTargetType utilizationTargetType or {@code null} for none + */ + public AutoscalingPolicyCustomMetricUtilization setUtilizationTargetType(java.lang.String utilizationTargetType) { + this.utilizationTargetType = utilizationTargetType; + return this; + } + + @Override + public AutoscalingPolicyCustomMetricUtilization set(String fieldName, Object value) { + return (AutoscalingPolicyCustomMetricUtilization) super.set(fieldName, value); + } + + @Override + public AutoscalingPolicyCustomMetricUtilization clone() { + return (AutoscalingPolicyCustomMetricUtilization) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyLoadBalancingUtilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyLoadBalancingUtilization.java new file mode 100644 index 00000000000..3d618f41d32 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyLoadBalancingUtilization.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; + +/** + * Configuration parameters of autoscaling based on load balancing. + * + *

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 AutoscalingPolicyLoadBalancingUtilization extends com.google.api.client.json.GenericJson { + + /** + * Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the + * autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double utilizationTarget; + + /** + * Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the + * autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. + * @return value or {@code null} for none + */ + public java.lang.Double getUtilizationTarget() { + return utilizationTarget; + } + + /** + * Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the + * autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. + * @param utilizationTarget utilizationTarget or {@code null} for none + */ + public AutoscalingPolicyLoadBalancingUtilization setUtilizationTarget(java.lang.Double utilizationTarget) { + this.utilizationTarget = utilizationTarget; + return this; + } + + @Override + public AutoscalingPolicyLoadBalancingUtilization set(String fieldName, Object value) { + return (AutoscalingPolicyLoadBalancingUtilization) super.set(fieldName, value); + } + + @Override + public AutoscalingPolicyLoadBalancingUtilization clone() { + return (AutoscalingPolicyLoadBalancingUtilization) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScaleInControl.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScaleInControl.java new file mode 100644 index 00000000000..209a93bb707 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScaleInControl.java @@ -0,0 +1,100 @@ +/* + * 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; + +/** + * Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt + * scale in of a MIG, it will be throttled as specified by the parameters below. + * + *

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 AutoscalingPolicyScaleInControl extends com.google.api.client.json.GenericJson { + + /** + * Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during + * the window autoscaler looks at when computing recommendations. Possibly all these VMs can be + * deleted at once so user service needs to be prepared to lose that many VMs in one step. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedOrPercent maxScaledInReplicas; + + /** + * How far back autoscaling looks when computing recommendations to include directives regarding + * slower scale in, as described above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer timeWindowSec; + + /** + * Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during + * the window autoscaler looks at when computing recommendations. Possibly all these VMs can be + * deleted at once so user service needs to be prepared to lose that many VMs in one step. + * @return value or {@code null} for none + */ + public FixedOrPercent getMaxScaledInReplicas() { + return maxScaledInReplicas; + } + + /** + * Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during + * the window autoscaler looks at when computing recommendations. Possibly all these VMs can be + * deleted at once so user service needs to be prepared to lose that many VMs in one step. + * @param maxScaledInReplicas maxScaledInReplicas or {@code null} for none + */ + public AutoscalingPolicyScaleInControl setMaxScaledInReplicas(FixedOrPercent maxScaledInReplicas) { + this.maxScaledInReplicas = maxScaledInReplicas; + return this; + } + + /** + * How far back autoscaling looks when computing recommendations to include directives regarding + * slower scale in, as described above. + * @return value or {@code null} for none + */ + public java.lang.Integer getTimeWindowSec() { + return timeWindowSec; + } + + /** + * How far back autoscaling looks when computing recommendations to include directives regarding + * slower scale in, as described above. + * @param timeWindowSec timeWindowSec or {@code null} for none + */ + public AutoscalingPolicyScaleInControl setTimeWindowSec(java.lang.Integer timeWindowSec) { + this.timeWindowSec = timeWindowSec; + return this; + } + + @Override + public AutoscalingPolicyScaleInControl set(String fieldName, Object value) { + return (AutoscalingPolicyScaleInControl) super.set(fieldName, value); + } + + @Override + public AutoscalingPolicyScaleInControl clone() { + return (AutoscalingPolicyScaleInControl) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScalingSchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScalingSchedule.java new file mode 100644 index 00000000000..0f7d30606d1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/AutoscalingPolicyScalingSchedule.java @@ -0,0 +1,221 @@ +/* + * 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; + +/** + * Scaling based on user-defined schedule. The message describes a single scaling schedule. A + * scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which + * can trigger scaling out. + * + *

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 AutoscalingPolicyScalingSchedule extends com.google.api.client.json.GenericJson { + + /** + * A description of a scaling schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A boolean value that specifies whether a scaling schedule can influence autoscaler + * recommendations. If set to true, then a scaling schedule has no effect. This field is optional, + * and its value is false by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * The duration of time intervals, in seconds, for which this scaling schedule is to run. The + * minimum allowed value is 300. This field is required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer durationSec; + + /** + * The minimum number of VM instances that the autoscaler will recommend in time intervals + * starting according to schedule. This field is required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minRequiredReplicas; + + /** + * The start timestamps of time intervals when this scaling schedule is to provide a scaling + * signal. This field uses the extended cron format (with an optional year field). The expression + * can describe a single timestamp if the optional year is set, in which case the scaling schedule + * runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: + * These timestamps only describe when autoscaler starts providing the scaling signal. The VMs + * need additional time to become serving. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedule; + + /** + * The time zone to use when interpreting the schedule. The value of this field must be a time + * zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is + * assigned a default value of "UTC" if left empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * A description of a scaling schedule. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * A description of a scaling schedule. + * @param description description or {@code null} for none + */ + public AutoscalingPolicyScalingSchedule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A boolean value that specifies whether a scaling schedule can influence autoscaler + * recommendations. If set to true, then a scaling schedule has no effect. This field is optional, + * and its value is false by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * A boolean value that specifies whether a scaling schedule can influence autoscaler + * recommendations. If set to true, then a scaling schedule has no effect. This field is optional, + * and its value is false by default. + * @param disabled disabled or {@code null} for none + */ + public AutoscalingPolicyScalingSchedule setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * The duration of time intervals, in seconds, for which this scaling schedule is to run. The + * minimum allowed value is 300. This field is required. + * @return value or {@code null} for none + */ + public java.lang.Integer getDurationSec() { + return durationSec; + } + + /** + * The duration of time intervals, in seconds, for which this scaling schedule is to run. The + * minimum allowed value is 300. This field is required. + * @param durationSec durationSec or {@code null} for none + */ + public AutoscalingPolicyScalingSchedule setDurationSec(java.lang.Integer durationSec) { + this.durationSec = durationSec; + return this; + } + + /** + * The minimum number of VM instances that the autoscaler will recommend in time intervals + * starting according to schedule. This field is required. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinRequiredReplicas() { + return minRequiredReplicas; + } + + /** + * The minimum number of VM instances that the autoscaler will recommend in time intervals + * starting according to schedule. This field is required. + * @param minRequiredReplicas minRequiredReplicas or {@code null} for none + */ + public AutoscalingPolicyScalingSchedule setMinRequiredReplicas(java.lang.Integer minRequiredReplicas) { + this.minRequiredReplicas = minRequiredReplicas; + return this; + } + + /** + * The start timestamps of time intervals when this scaling schedule is to provide a scaling + * signal. This field uses the extended cron format (with an optional year field). The expression + * can describe a single timestamp if the optional year is set, in which case the scaling schedule + * runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: + * These timestamps only describe when autoscaler starts providing the scaling signal. The VMs + * need additional time to become serving. + * @return value or {@code null} for none + */ + public java.lang.String getSchedule() { + return schedule; + } + + /** + * The start timestamps of time intervals when this scaling schedule is to provide a scaling + * signal. This field uses the extended cron format (with an optional year field). The expression + * can describe a single timestamp if the optional year is set, in which case the scaling schedule + * runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: + * These timestamps only describe when autoscaler starts providing the scaling signal. The VMs + * need additional time to become serving. + * @param schedule schedule or {@code null} for none + */ + public AutoscalingPolicyScalingSchedule setSchedule(java.lang.String schedule) { + this.schedule = schedule; + return this; + } + + /** + * The time zone to use when interpreting the schedule. The value of this field must be a time + * zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is + * assigned a default value of "UTC" if left empty. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * The time zone to use when interpreting the schedule. The value of this field must be a time + * zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is + * assigned a default value of "UTC" if left empty. + * @param timeZone timeZone or {@code null} for none + */ + public AutoscalingPolicyScalingSchedule setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public AutoscalingPolicyScalingSchedule set(String fieldName, Object value) { + return (AutoscalingPolicyScalingSchedule) super.set(fieldName, value); + } + + @Override + public AutoscalingPolicyScalingSchedule clone() { + return (AutoscalingPolicyScalingSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Backend.java new file mode 100644 index 00000000000..b9c066e4c28 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Backend.java @@ -0,0 +1,678 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing information of one individual backend. + * + *

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 Backend extends com.google.api.client.json.GenericJson { + + /** + * Specifies how to determine whether the backend of a load balancer can handle additional traffic + * or is fully loaded. For usage guidelines, see Connection balancing mode. + * + * Backends must use compatible balancing modes. Backends of a backend service may use different + * balancing modes. For more information, see Supported balancing modes and target capacity + * settings and Restrictions and guidance for instance groups. + * + * Note: Currently, if you use the API to configure incompatible balancing modes, the + * configuration might be accepted even though it has no impact and is ignored. Specifically, + * Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this + * incompatible combination will be rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String balancingMode; + + /** + * A multiplier applied to the backend's target capacity of its balancing mode. The default value + * is 1, which means the group serves up to 100% of its configured capacity (depending + * onbalancingMode). A setting of 0 means the group is completely drained, offering 0% of its + * available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting + * larger than 0 and smaller than0.1. You cannot configure a setting of 0 when there is only one + * backend attached to the backend service. + * + * Not available with backends that don't support using abalancingMode. This includes backends + * such as global internet NEGs, regional serverless NEGs, and PSC NEGs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float capacityScaler; + + /** + * List of custom metrics that are used for CUSTOM_METRICS BalancingMode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customMetrics; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * This field designates whether this is a failover backend. More than one failover backend can be + * configured for a given BackendService. + * + * This field can only be used for a regional external Passthrough Network Load Balancer or a + * regional internal Passthrough Network Load Balancer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failover; + + /** + * The fully-qualified URL of aninstance group or network endpoint group (NEG) resource. To + * determine what types of backends a load balancer supports, see the [Backend services + * overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). + * + * You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify + * the instance group or NEG. Partial URLs are not supported. + * + * If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String group; + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. Not available if the + * backend'sbalancingMode is RATE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxConnections; + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isRATE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxConnectionsPerEndpoint; + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isRATE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxConnectionsPerInstance; + + /** + * Defines a maximum number of in-flight requests for the whole NEG or instance group. Not + * available if backend's balancingMode isRATE or CONNECTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxInFlightRequests; + + /** + * Defines a maximum number of in-flight requests for a single endpoint. Not available if + * backend's balancingMode is RATE or CONNECTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxInFlightRequestsPerEndpoint; + + /** + * Defines a maximum number of in-flight requests for a single VM. Not available if backend's + * balancingMode is RATE or CONNECTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxInFlightRequestsPerInstance; + + /** + * Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, seeRate + * balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRate; + + /** + * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing + * mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float maxRatePerEndpoint; + + /** + * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing + * mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float maxRatePerInstance; + + /** + * Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid + * range is[0.0, 1.0]. + * + * For usage guidelines, seeUtilization balancing mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float maxUtilization; + + /** + * Information about the resource or system that manages the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendBackendOrchestrationInfo orchestrationInfo; + + /** + * This field indicates whether this backend should be fully utilized before sending traffic to + * backends with default preference. The possible values are: - PREFERRED: Backends with + * this preference level will be filled up to their capacity limits first, based on RTT. - + * DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be + * used and traffic would be assigned based on the load balancing algorithm you use. This is + * the default + * + * For global external Passthrough Network Load Balancers, the following restrictions apply: + * - At most one backend can be marked as PREFERRED. - PREFERRED and DEFAULT backends cannot + * reside in the same Cloud region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String preference; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trafficDuration; + + /** + * Specifies how to determine whether the backend of a load balancer can handle additional traffic + * or is fully loaded. For usage guidelines, see Connection balancing mode. + * + * Backends must use compatible balancing modes. Backends of a backend service may use different + * balancing modes. For more information, see Supported balancing modes and target capacity + * settings and Restrictions and guidance for instance groups. + * + * Note: Currently, if you use the API to configure incompatible balancing modes, the + * configuration might be accepted even though it has no impact and is ignored. Specifically, + * Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this + * incompatible combination will be rejected. + * @return value or {@code null} for none + */ + public java.lang.String getBalancingMode() { + return balancingMode; + } + + /** + * Specifies how to determine whether the backend of a load balancer can handle additional traffic + * or is fully loaded. For usage guidelines, see Connection balancing mode. + * + * Backends must use compatible balancing modes. Backends of a backend service may use different + * balancing modes. For more information, see Supported balancing modes and target capacity + * settings and Restrictions and guidance for instance groups. + * + * Note: Currently, if you use the API to configure incompatible balancing modes, the + * configuration might be accepted even though it has no impact and is ignored. Specifically, + * Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this + * incompatible combination will be rejected. + * @param balancingMode balancingMode or {@code null} for none + */ + public Backend setBalancingMode(java.lang.String balancingMode) { + this.balancingMode = balancingMode; + return this; + } + + /** + * A multiplier applied to the backend's target capacity of its balancing mode. The default value + * is 1, which means the group serves up to 100% of its configured capacity (depending + * onbalancingMode). A setting of 0 means the group is completely drained, offering 0% of its + * available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting + * larger than 0 and smaller than0.1. You cannot configure a setting of 0 when there is only one + * backend attached to the backend service. + * + * Not available with backends that don't support using abalancingMode. This includes backends + * such as global internet NEGs, regional serverless NEGs, and PSC NEGs. + * @return value or {@code null} for none + */ + public java.lang.Float getCapacityScaler() { + return capacityScaler; + } + + /** + * A multiplier applied to the backend's target capacity of its balancing mode. The default value + * is 1, which means the group serves up to 100% of its configured capacity (depending + * onbalancingMode). A setting of 0 means the group is completely drained, offering 0% of its + * available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting + * larger than 0 and smaller than0.1. You cannot configure a setting of 0 when there is only one + * backend attached to the backend service. + * + * Not available with backends that don't support using abalancingMode. This includes backends + * such as global internet NEGs, regional serverless NEGs, and PSC NEGs. + * @param capacityScaler capacityScaler or {@code null} for none + */ + public Backend setCapacityScaler(java.lang.Float capacityScaler) { + this.capacityScaler = capacityScaler; + return this; + } + + /** + * List of custom metrics that are used for CUSTOM_METRICS BalancingMode. + * @return value or {@code null} for none + */ + public java.util.List getCustomMetrics() { + return customMetrics; + } + + /** + * List of custom metrics that are used for CUSTOM_METRICS BalancingMode. + * @param customMetrics customMetrics or {@code null} for none + */ + public Backend setCustomMetrics(java.util.List customMetrics) { + this.customMetrics = customMetrics; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Backend setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * This field designates whether this is a failover backend. More than one failover backend can be + * configured for a given BackendService. + * + * This field can only be used for a regional external Passthrough Network Load Balancer or a + * regional internal Passthrough Network Load Balancer. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailover() { + return failover; + } + + /** + * This field designates whether this is a failover backend. More than one failover backend can be + * configured for a given BackendService. + * + * This field can only be used for a regional external Passthrough Network Load Balancer or a + * regional internal Passthrough Network Load Balancer. + * @param failover failover or {@code null} for none + */ + public Backend setFailover(java.lang.Boolean failover) { + this.failover = failover; + return this; + } + + /** + * The fully-qualified URL of aninstance group or network endpoint group (NEG) resource. To + * determine what types of backends a load balancer supports, see the [Backend services + * overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). + * + * You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify + * the instance group or NEG. Partial URLs are not supported. + * + * If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. + * @return value or {@code null} for none + */ + public java.lang.String getGroup() { + return group; + } + + /** + * The fully-qualified URL of aninstance group or network endpoint group (NEG) resource. To + * determine what types of backends a load balancer supports, see the [Backend services + * overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). + * + * You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify + * the instance group or NEG. Partial URLs are not supported. + * + * If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. + * @param group group or {@code null} for none + */ + public Backend setGroup(java.lang.String group) { + this.group = group; + return this; + } + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. Not available if the + * backend'sbalancingMode is RATE. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxConnections() { + return maxConnections; + } + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. Not available if the + * backend'sbalancingMode is RATE. + * @param maxConnections maxConnections or {@code null} for none + */ + public Backend setMaxConnections(java.lang.Integer maxConnections) { + this.maxConnections = maxConnections; + return this; + } + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isRATE. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxConnectionsPerEndpoint() { + return maxConnectionsPerEndpoint; + } + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isRATE. + * @param maxConnectionsPerEndpoint maxConnectionsPerEndpoint or {@code null} for none + */ + public Backend setMaxConnectionsPerEndpoint(java.lang.Integer maxConnectionsPerEndpoint) { + this.maxConnectionsPerEndpoint = maxConnectionsPerEndpoint; + return this; + } + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isRATE. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxConnectionsPerInstance() { + return maxConnectionsPerInstance; + } + + /** + * Defines a target maximum number of simultaneous connections. For usage guidelines, + * seeConnection balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isRATE. + * @param maxConnectionsPerInstance maxConnectionsPerInstance or {@code null} for none + */ + public Backend setMaxConnectionsPerInstance(java.lang.Integer maxConnectionsPerInstance) { + this.maxConnectionsPerInstance = maxConnectionsPerInstance; + return this; + } + + /** + * Defines a maximum number of in-flight requests for the whole NEG or instance group. Not + * available if backend's balancingMode isRATE or CONNECTION. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxInFlightRequests() { + return maxInFlightRequests; + } + + /** + * Defines a maximum number of in-flight requests for the whole NEG or instance group. Not + * available if backend's balancingMode isRATE or CONNECTION. + * @param maxInFlightRequests maxInFlightRequests or {@code null} for none + */ + public Backend setMaxInFlightRequests(java.lang.Integer maxInFlightRequests) { + this.maxInFlightRequests = maxInFlightRequests; + return this; + } + + /** + * Defines a maximum number of in-flight requests for a single endpoint. Not available if + * backend's balancingMode is RATE or CONNECTION. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxInFlightRequestsPerEndpoint() { + return maxInFlightRequestsPerEndpoint; + } + + /** + * Defines a maximum number of in-flight requests for a single endpoint. Not available if + * backend's balancingMode is RATE or CONNECTION. + * @param maxInFlightRequestsPerEndpoint maxInFlightRequestsPerEndpoint or {@code null} for none + */ + public Backend setMaxInFlightRequestsPerEndpoint(java.lang.Integer maxInFlightRequestsPerEndpoint) { + this.maxInFlightRequestsPerEndpoint = maxInFlightRequestsPerEndpoint; + return this; + } + + /** + * Defines a maximum number of in-flight requests for a single VM. Not available if backend's + * balancingMode is RATE or CONNECTION. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxInFlightRequestsPerInstance() { + return maxInFlightRequestsPerInstance; + } + + /** + * Defines a maximum number of in-flight requests for a single VM. Not available if backend's + * balancingMode is RATE or CONNECTION. + * @param maxInFlightRequestsPerInstance maxInFlightRequestsPerInstance or {@code null} for none + */ + public Backend setMaxInFlightRequestsPerInstance(java.lang.Integer maxInFlightRequestsPerInstance) { + this.maxInFlightRequestsPerInstance = maxInFlightRequestsPerInstance; + return this; + } + + /** + * Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, seeRate + * balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRate() { + return maxRate; + } + + /** + * Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, seeRate + * balancing mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * @param maxRate maxRate or {@code null} for none + */ + public Backend setMaxRate(java.lang.Integer maxRate) { + this.maxRate = maxRate; + return this; + } + + /** + * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing + * mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * @return value or {@code null} for none + */ + public java.lang.Float getMaxRatePerEndpoint() { + return maxRatePerEndpoint; + } + + /** + * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing + * mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * @param maxRatePerEndpoint maxRatePerEndpoint or {@code null} for none + */ + public Backend setMaxRatePerEndpoint(java.lang.Float maxRatePerEndpoint) { + this.maxRatePerEndpoint = maxRatePerEndpoint; + return this; + } + + /** + * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing + * mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * @return value or {@code null} for none + */ + public java.lang.Float getMaxRatePerInstance() { + return maxRatePerInstance; + } + + /** + * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing + * mode and Utilization balancing mode. + * + * Not available if the backend's balancingMode isCONNECTION. + * @param maxRatePerInstance maxRatePerInstance or {@code null} for none + */ + public Backend setMaxRatePerInstance(java.lang.Float maxRatePerInstance) { + this.maxRatePerInstance = maxRatePerInstance; + return this; + } + + /** + * Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid + * range is[0.0, 1.0]. + * + * For usage guidelines, seeUtilization balancing mode. + * @return value or {@code null} for none + */ + public java.lang.Float getMaxUtilization() { + return maxUtilization; + } + + /** + * Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid + * range is[0.0, 1.0]. + * + * For usage guidelines, seeUtilization balancing mode. + * @param maxUtilization maxUtilization or {@code null} for none + */ + public Backend setMaxUtilization(java.lang.Float maxUtilization) { + this.maxUtilization = maxUtilization; + return this; + } + + /** + * Information about the resource or system that manages the backend. + * @return value or {@code null} for none + */ + public BackendBackendOrchestrationInfo getOrchestrationInfo() { + return orchestrationInfo; + } + + /** + * Information about the resource or system that manages the backend. + * @param orchestrationInfo orchestrationInfo or {@code null} for none + */ + public Backend setOrchestrationInfo(BackendBackendOrchestrationInfo orchestrationInfo) { + this.orchestrationInfo = orchestrationInfo; + return this; + } + + /** + * This field indicates whether this backend should be fully utilized before sending traffic to + * backends with default preference. The possible values are: - PREFERRED: Backends with + * this preference level will be filled up to their capacity limits first, based on RTT. - + * DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be + * used and traffic would be assigned based on the load balancing algorithm you use. This is + * the default + * + * For global external Passthrough Network Load Balancers, the following restrictions apply: + * - At most one backend can be marked as PREFERRED. - PREFERRED and DEFAULT backends cannot + * reside in the same Cloud region. + * @return value or {@code null} for none + */ + public java.lang.String getPreference() { + return preference; + } + + /** + * This field indicates whether this backend should be fully utilized before sending traffic to + * backends with default preference. The possible values are: - PREFERRED: Backends with + * this preference level will be filled up to their capacity limits first, based on RTT. - + * DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be + * used and traffic would be assigned based on the load balancing algorithm you use. This is + * the default + * + * For global external Passthrough Network Load Balancers, the following restrictions apply: + * - At most one backend can be marked as PREFERRED. - PREFERRED and DEFAULT backends cannot + * reside in the same Cloud region. + * @param preference preference or {@code null} for none + */ + public Backend setPreference(java.lang.String preference) { + this.preference = preference; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTrafficDuration() { + return trafficDuration; + } + + /** + * @param trafficDuration trafficDuration or {@code null} for none + */ + public Backend setTrafficDuration(java.lang.String trafficDuration) { + this.trafficDuration = trafficDuration; + return this; + } + + @Override + public Backend set(String fieldName, Object value) { + return (Backend) super.set(fieldName, value); + } + + @Override + public Backend clone() { + return (Backend) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java new file mode 100644 index 00000000000..b296411823a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.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; + +/** + * A message containing information about the resource or system that manages the backend. + * + *

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 BackendBackendOrchestrationInfo extends com.google.api.client.json.GenericJson { + + /** + * The URI of the resource or system that manages the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceUri; + + /** + * The URI of the resource or system that manages the backend. + * @return value or {@code null} for none + */ + public java.lang.String getResourceUri() { + return resourceUri; + } + + /** + * The URI of the resource or system that manages the backend. + * @param resourceUri resourceUri or {@code null} for none + */ + public BackendBackendOrchestrationInfo setResourceUri(java.lang.String resourceUri) { + this.resourceUri = resourceUri; + return this; + } + + @Override + public BackendBackendOrchestrationInfo set(String fieldName, Object value) { + return (BackendBackendOrchestrationInfo) super.set(fieldName, value); + } + + @Override + public BackendBackendOrchestrationInfo clone() { + return (BackendBackendOrchestrationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucket.java new file mode 100644 index 00000000000..75e8b9b836e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -0,0 +1,468 @@ +/* + * 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 Cloud Storage Bucket resource. + * + * This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more + * information, readBackend Buckets. + * + *

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 BackendBucket extends com.google.api.client.json.GenericJson { + + /** + * Cloud Storage bucket name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucketName; + + /** + * Cloud CDN configuration for this BackendBucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendBucketCdnPolicy cdnPolicy; + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String compressionMode; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Headers that the Application Load Balancer should add to proxied responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customResponseHeaders; + + /** + * An optional textual description of the resource; provided by the client when the resource is + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] The resource URL for the edge security policy associated with this backend + * bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String edgeSecurityPolicy; + + /** + * If true, enable Cloud CDN for this BackendBucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableCdn; + + /** + * [Output Only] Unique identifier for the resource; 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. Type of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. + * + * If loadBalancingScheme is not specified, the backend bucket can be used by classic global + * external load balancers, or global application external load balancers, or both. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadBalancingScheme; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendBucketParams params; + + /** + * Output only. [Output Only] URL of the region where the regional backend bucket resides. This + * field is not applicable to global backend buckets. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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] List of resources referencing that backend bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List usedBy; + + /** + * Cloud Storage bucket name. + * @return value or {@code null} for none + */ + public java.lang.String getBucketName() { + return bucketName; + } + + /** + * Cloud Storage bucket name. + * @param bucketName bucketName or {@code null} for none + */ + public BackendBucket setBucketName(java.lang.String bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * Cloud CDN configuration for this BackendBucket. + * @return value or {@code null} for none + */ + public BackendBucketCdnPolicy getCdnPolicy() { + return cdnPolicy; + } + + /** + * Cloud CDN configuration for this BackendBucket. + * @param cdnPolicy cdnPolicy or {@code null} for none + */ + public BackendBucket setCdnPolicy(BackendBucketCdnPolicy cdnPolicy) { + this.cdnPolicy = cdnPolicy; + return this; + } + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * @return value or {@code null} for none + */ + public java.lang.String getCompressionMode() { + return compressionMode; + } + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * @param compressionMode compressionMode or {@code null} for none + */ + public BackendBucket setCompressionMode(java.lang.String compressionMode) { + this.compressionMode = compressionMode; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public BackendBucket setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Headers that the Application Load Balancer should add to proxied responses. + * @return value or {@code null} for none + */ + public java.util.List getCustomResponseHeaders() { + return customResponseHeaders; + } + + /** + * Headers that the Application Load Balancer should add to proxied responses. + * @param customResponseHeaders customResponseHeaders or {@code null} for none + */ + public BackendBucket setCustomResponseHeaders(java.util.List customResponseHeaders) { + this.customResponseHeaders = customResponseHeaders; + return this; + } + + /** + * An optional textual description of the resource; provided by the client when the resource is + * created. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional textual description of the resource; provided by the client when the resource is + * created. + * @param description description or {@code null} for none + */ + public BackendBucket setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] The resource URL for the edge security policy associated with this backend + * bucket. + * @return value or {@code null} for none + */ + public java.lang.String getEdgeSecurityPolicy() { + return edgeSecurityPolicy; + } + + /** + * [Output Only] The resource URL for the edge security policy associated with this backend + * bucket. + * @param edgeSecurityPolicy edgeSecurityPolicy or {@code null} for none + */ + public BackendBucket setEdgeSecurityPolicy(java.lang.String edgeSecurityPolicy) { + this.edgeSecurityPolicy = edgeSecurityPolicy; + return this; + } + + /** + * If true, enable Cloud CDN for this BackendBucket. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableCdn() { + return enableCdn; + } + + /** + * If true, enable Cloud CDN for this BackendBucket. + * @param enableCdn enableCdn or {@code null} for none + */ + public BackendBucket setEnableCdn(java.lang.Boolean enableCdn) { + this.enableCdn = enableCdn; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public BackendBucket setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. Type of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. + * @param kind kind or {@code null} for none + */ + public BackendBucket setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. + * + * If loadBalancingScheme is not specified, the backend bucket can be used by classic global + * external load balancers, or global application external load balancers, or both. + * @return value or {@code null} for none + */ + public java.lang.String getLoadBalancingScheme() { + return loadBalancingScheme; + } + + /** + * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. + * + * If loadBalancingScheme is not specified, the backend bucket can be used by classic global + * external load balancers, or global application external load balancers, or both. + * @param loadBalancingScheme loadBalancingScheme or {@code null} for none + */ + public BackendBucket setLoadBalancingScheme(java.lang.String loadBalancingScheme) { + this.loadBalancingScheme = loadBalancingScheme; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 BackendBucket setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public BackendBucketParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public BackendBucket setParams(BackendBucketParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional backend bucket resides. This + * field is not applicable to global backend buckets. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional backend bucket resides. This + * field is not applicable to global backend buckets. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public BackendBucket setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public BackendBucket setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] List of resources referencing that backend bucket. + * @return value or {@code null} for none + */ + public java.util.List getUsedBy() { + return usedBy; + } + + /** + * Output only. [Output Only] List of resources referencing that backend bucket. + * @param usedBy usedBy or {@code null} for none + */ + public BackendBucket setUsedBy(java.util.List usedBy) { + this.usedBy = usedBy; + return this; + } + + @Override + public BackendBucket set(String fieldName, Object value) { + return (BackendBucket) super.set(fieldName, value); + } + + @Override + public BackendBucket clone() { + return (BackendBucket) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java new file mode 100644 index 00000000000..1cb8afc85db --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java @@ -0,0 +1,377 @@ +/* + * 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 BackendBucketAggregatedList. + * + *

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 BackendBucketAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 BackendBucketsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 BackendBucketAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of BackendBucketsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of BackendBucketsScopedList resources. + * @param items items or {@code null} for none + */ + public BackendBucketAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public BackendBucketAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public BackendBucketAggregatedList 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 BackendBucketAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 BackendBucketAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendBucketAggregatedList set(String fieldName, Object value) { + return (BackendBucketAggregatedList) super.set(fieldName, value); + } + + @Override + public BackendBucketAggregatedList clone() { + return (BackendBucketAggregatedList) 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 BackendBucketAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicy.java new file mode 100644 index 00000000000..355c3055c3e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicy.java @@ -0,0 +1,498 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing Cloud CDN configuration for a backend bucket. + * + *

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 BackendBucketCdnPolicy extends com.google.api.client.json.GenericJson { + + /** + * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization + * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode + * settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bypassCacheOnRequestHeaders; + + /** + * The CacheKeyPolicy for this CdnPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendBucketCdnPolicyCacheKeyPolicy cacheKeyPolicy; + + /** + * Specifies the cache setting for all responses from this backend. The possible values are: + * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses + * without these headers will not be cached at Google's edge, and will require a full trip to the + * origin on every request, potentially impacting performance and increasing load on the origin + * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" + * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching + * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static + * content, including common image formats, media (video and audio), and web assets (JavaScript + * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content + * (including HTML), will not be cached. + * + * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cacheMode; + + /** + * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- + * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and + * default_ttl is used for the response max-age directive, along with a "public" directive. For + * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if + * specified), or else sets the response max-age directive to the lesser of the client_ttl and + * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is + * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s + * (1 year). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer clientTtl; + + /** + * Specifies the default TTL for cached content served by this origin for responses that do not + * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always + * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but + * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the + * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that + * infrequently accessed objects may be evicted from the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer defaultTtl; + + /** + * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives + * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than + * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of + * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a + * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting + * that infrequently accessed objects may be evicted from the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxTtl; + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or + * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that + * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to + * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, + * and override any caching headers. By default, Cloud CDN will apply the following default TTLs + * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 + * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean negativeCaching; + + /** + * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to + * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * negative_caching_policy, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List negativeCachingPolicy; + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestCoalescing; + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer serveWhileStale; + + /** + * Maximum number of seconds the response to a signed URL request will be considered fresh. After + * this time period, the response will be revalidated before being served. Defaults to 1hr + * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as + * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, + * regardless of any existing Cache-Control header. The actual headers served in responses will + * not be altered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long signedUrlCacheMaxAgeSec; + + /** + * [Output Only] Names of the keys for signing request URLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List signedUrlKeyNames; + + /** + * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization + * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode + * settings. + * @return value or {@code null} for none + */ + public java.util.List getBypassCacheOnRequestHeaders() { + return bypassCacheOnRequestHeaders; + } + + /** + * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization + * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode + * settings. + * @param bypassCacheOnRequestHeaders bypassCacheOnRequestHeaders or {@code null} for none + */ + public BackendBucketCdnPolicy setBypassCacheOnRequestHeaders(java.util.List bypassCacheOnRequestHeaders) { + this.bypassCacheOnRequestHeaders = bypassCacheOnRequestHeaders; + return this; + } + + /** + * The CacheKeyPolicy for this CdnPolicy. + * @return value or {@code null} for none + */ + public BackendBucketCdnPolicyCacheKeyPolicy getCacheKeyPolicy() { + return cacheKeyPolicy; + } + + /** + * The CacheKeyPolicy for this CdnPolicy. + * @param cacheKeyPolicy cacheKeyPolicy or {@code null} for none + */ + public BackendBucketCdnPolicy setCacheKeyPolicy(BackendBucketCdnPolicyCacheKeyPolicy cacheKeyPolicy) { + this.cacheKeyPolicy = cacheKeyPolicy; + return this; + } + + /** + * Specifies the cache setting for all responses from this backend. The possible values are: + * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses + * without these headers will not be cached at Google's edge, and will require a full trip to the + * origin on every request, potentially impacting performance and increasing load on the origin + * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" + * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching + * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static + * content, including common image formats, media (video and audio), and web assets (JavaScript + * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content + * (including HTML), will not be cached. + * + * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + * @return value or {@code null} for none + */ + public java.lang.String getCacheMode() { + return cacheMode; + } + + /** + * Specifies the cache setting for all responses from this backend. The possible values are: + * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses + * without these headers will not be cached at Google's edge, and will require a full trip to the + * origin on every request, potentially impacting performance and increasing load on the origin + * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" + * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching + * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static + * content, including common image formats, media (video and audio), and web assets (JavaScript + * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content + * (including HTML), will not be cached. + * + * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + * @param cacheMode cacheMode or {@code null} for none + */ + public BackendBucketCdnPolicy setCacheMode(java.lang.String cacheMode) { + this.cacheMode = cacheMode; + return this; + } + + /** + * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- + * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and + * default_ttl is used for the response max-age directive, along with a "public" directive. For + * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if + * specified), or else sets the response max-age directive to the lesser of the client_ttl and + * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is + * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s + * (1 year). + * @return value or {@code null} for none + */ + public java.lang.Integer getClientTtl() { + return clientTtl; + } + + /** + * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- + * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and + * default_ttl is used for the response max-age directive, along with a "public" directive. For + * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if + * specified), or else sets the response max-age directive to the lesser of the client_ttl and + * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is + * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s + * (1 year). + * @param clientTtl clientTtl or {@code null} for none + */ + public BackendBucketCdnPolicy setClientTtl(java.lang.Integer clientTtl) { + this.clientTtl = clientTtl; + return this; + } + + /** + * Specifies the default TTL for cached content served by this origin for responses that do not + * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always + * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but + * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the + * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that + * infrequently accessed objects may be evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public java.lang.Integer getDefaultTtl() { + return defaultTtl; + } + + /** + * Specifies the default TTL for cached content served by this origin for responses that do not + * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always + * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but + * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the + * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that + * infrequently accessed objects may be evicted from the cache before the defined TTL. + * @param defaultTtl defaultTtl or {@code null} for none + */ + public BackendBucketCdnPolicy setDefaultTtl(java.lang.Integer defaultTtl) { + this.defaultTtl = defaultTtl; + return this; + } + + /** + * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives + * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than + * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of + * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a + * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting + * that infrequently accessed objects may be evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxTtl() { + return maxTtl; + } + + /** + * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives + * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than + * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of + * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a + * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting + * that infrequently accessed objects may be evicted from the cache before the defined TTL. + * @param maxTtl maxTtl or {@code null} for none + */ + public BackendBucketCdnPolicy setMaxTtl(java.lang.Integer maxTtl) { + this.maxTtl = maxTtl; + return this; + } + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or + * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that + * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to + * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, + * and override any caching headers. By default, Cloud CDN will apply the following default TTLs + * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 + * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNegativeCaching() { + return negativeCaching; + } + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or + * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that + * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to + * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, + * and override any caching headers. By default, Cloud CDN will apply the following default TTLs + * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 + * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + * @param negativeCaching negativeCaching or {@code null} for none + */ + public BackendBucketCdnPolicy setNegativeCaching(java.lang.Boolean negativeCaching) { + this.negativeCaching = negativeCaching; + return this; + } + + /** + * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to + * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * negative_caching_policy, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * @return value or {@code null} for none + */ + public java.util.List getNegativeCachingPolicy() { + return negativeCachingPolicy; + } + + /** + * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to + * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * negative_caching_policy, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * @param negativeCachingPolicy negativeCachingPolicy or {@code null} for none + */ + public BackendBucketCdnPolicy setNegativeCachingPolicy(java.util.List negativeCachingPolicy) { + this.negativeCachingPolicy = negativeCachingPolicy; + return this; + } + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestCoalescing() { + return requestCoalescing; + } + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. + * @param requestCoalescing requestCoalescing or {@code null} for none + */ + public BackendBucketCdnPolicy setRequestCoalescing(java.lang.Boolean requestCoalescing) { + this.requestCoalescing = requestCoalescing; + return this; + } + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * @return value or {@code null} for none + */ + public java.lang.Integer getServeWhileStale() { + return serveWhileStale; + } + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * @param serveWhileStale serveWhileStale or {@code null} for none + */ + public BackendBucketCdnPolicy setServeWhileStale(java.lang.Integer serveWhileStale) { + this.serveWhileStale = serveWhileStale; + return this; + } + + /** + * Maximum number of seconds the response to a signed URL request will be considered fresh. After + * this time period, the response will be revalidated before being served. Defaults to 1hr + * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as + * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, + * regardless of any existing Cache-Control header. The actual headers served in responses will + * not be altered. + * @return value or {@code null} for none + */ + public java.lang.Long getSignedUrlCacheMaxAgeSec() { + return signedUrlCacheMaxAgeSec; + } + + /** + * Maximum number of seconds the response to a signed URL request will be considered fresh. After + * this time period, the response will be revalidated before being served. Defaults to 1hr + * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as + * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, + * regardless of any existing Cache-Control header. The actual headers served in responses will + * not be altered. + * @param signedUrlCacheMaxAgeSec signedUrlCacheMaxAgeSec or {@code null} for none + */ + public BackendBucketCdnPolicy setSignedUrlCacheMaxAgeSec(java.lang.Long signedUrlCacheMaxAgeSec) { + this.signedUrlCacheMaxAgeSec = signedUrlCacheMaxAgeSec; + return this; + } + + /** + * [Output Only] Names of the keys for signing request URLs. + * @return value or {@code null} for none + */ + public java.util.List getSignedUrlKeyNames() { + return signedUrlKeyNames; + } + + /** + * [Output Only] Names of the keys for signing request URLs. + * @param signedUrlKeyNames signedUrlKeyNames or {@code null} for none + */ + public BackendBucketCdnPolicy setSignedUrlKeyNames(java.util.List signedUrlKeyNames) { + this.signedUrlKeyNames = signedUrlKeyNames; + return this; + } + + @Override + public BackendBucketCdnPolicy set(String fieldName, Object value) { + return (BackendBucketCdnPolicy) super.set(fieldName, value); + } + + @Override + public BackendBucketCdnPolicy clone() { + return (BackendBucketCdnPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java new file mode 100644 index 00000000000..4a61ca649cd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java @@ -0,0 +1,68 @@ +/* + * 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; + +/** + * Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization + * headers. Values are case insensitive. The presence of such a header overrides the cache_mode + * setting. + * + *

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 BackendBucketCdnPolicyBypassCacheOnRequestHeader extends com.google.api.client.json.GenericJson { + + /** + * The header field name to match on when bypassing cache. Values are case-insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The header field name to match on when bypassing cache. Values are case-insensitive. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The header field name to match on when bypassing cache. Values are case-insensitive. + * @param headerName headerName or {@code null} for none + */ + public BackendBucketCdnPolicyBypassCacheOnRequestHeader setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + @Override + public BackendBucketCdnPolicyBypassCacheOnRequestHeader set(String fieldName, Object value) { + return (BackendBucketCdnPolicyBypassCacheOnRequestHeader) super.set(fieldName, value); + } + + @Override + public BackendBucketCdnPolicyBypassCacheOnRequestHeader clone() { + return (BackendBucketCdnPolicyBypassCacheOnRequestHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyCacheKeyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyCacheKeyPolicy.java new file mode 100644 index 00000000000..39228525dbd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyCacheKeyPolicy.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing what to include in the cache key for a request for Cloud CDN. + * + *

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 BackendBucketCdnPolicyCacheKeyPolicy extends com.google.api.client.json.GenericJson { + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includeHttpHeaders; + + /** + * Names of query string parameters to include in cache keys. Default parameters are always + * included. '&' and '=' will be percent encoded and not treated as delimiters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queryStringWhitelist; + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * @return value or {@code null} for none + */ + public java.util.List getIncludeHttpHeaders() { + return includeHttpHeaders; + } + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * @param includeHttpHeaders includeHttpHeaders or {@code null} for none + */ + public BackendBucketCdnPolicyCacheKeyPolicy setIncludeHttpHeaders(java.util.List includeHttpHeaders) { + this.includeHttpHeaders = includeHttpHeaders; + return this; + } + + /** + * Names of query string parameters to include in cache keys. Default parameters are always + * included. '&' and '=' will be percent encoded and not treated as delimiters. + * @return value or {@code null} for none + */ + public java.util.List getQueryStringWhitelist() { + return queryStringWhitelist; + } + + /** + * Names of query string parameters to include in cache keys. Default parameters are always + * included. '&' and '=' will be percent encoded and not treated as delimiters. + * @param queryStringWhitelist queryStringWhitelist or {@code null} for none + */ + public BackendBucketCdnPolicyCacheKeyPolicy setQueryStringWhitelist(java.util.List queryStringWhitelist) { + this.queryStringWhitelist = queryStringWhitelist; + return this; + } + + @Override + public BackendBucketCdnPolicyCacheKeyPolicy set(String fieldName, Object value) { + return (BackendBucketCdnPolicyCacheKeyPolicy) super.set(fieldName, value); + } + + @Override + public BackendBucketCdnPolicyCacheKeyPolicy clone() { + return (BackendBucketCdnPolicyCacheKeyPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyNegativeCachingPolicy.java new file mode 100644 index 00000000000..45ac45e209e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketCdnPolicyNegativeCachingPolicy.java @@ -0,0 +1,102 @@ +/* + * 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; + +/** + * Specify CDN TTLs for response error codes. + * + *

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 BackendBucketCdnPolicyNegativeCachingPolicy extends com.google.api.client.json.GenericJson { + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be + * evicted from the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ttl; + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * @param code code or {@code null} for none + */ + public BackendBucketCdnPolicyNegativeCachingPolicy setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be + * evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public java.lang.Integer getTtl() { + return ttl; + } + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be + * evicted from the cache before the defined TTL. + * @param ttl ttl or {@code null} for none + */ + public BackendBucketCdnPolicyNegativeCachingPolicy setTtl(java.lang.Integer ttl) { + this.ttl = ttl; + return this; + } + + @Override + public BackendBucketCdnPolicyNegativeCachingPolicy set(String fieldName, Object value) { + return (BackendBucketCdnPolicyNegativeCachingPolicy) super.set(fieldName, value); + } + + @Override + public BackendBucketCdnPolicyNegativeCachingPolicy clone() { + return (BackendBucketCdnPolicyNegativeCachingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketList.java new file mode 100644 index 00000000000..366dd1a829a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of BackendBucket resources. + * + *

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 BackendBucketList extends com.google.api.client.json.GenericJson { + + /** + * [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 BackendBucket 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 BackendBucket 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(BackendBucket.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 BackendBucketList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of BackendBucket resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of BackendBucket resources. + * @param items items or {@code null} for none + */ + public BackendBucketList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public BackendBucketList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public BackendBucketList 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 BackendBucketList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 BackendBucketList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendBucketList set(String fieldName, Object value) { + return (BackendBucketList) super.set(fieldName, value); + } + + @Override + public BackendBucketList clone() { + return (BackendBucketList) 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 BackendBucketListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java new file mode 100644 index 00000000000..763b143e2ec --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java @@ -0,0 +1,386 @@ +/* + * 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 BackendBucketListUsable. + * + *

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 BackendBucketListUsable extends com.google.api.client.json.GenericJson { + + /** + * [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 BackendBucket 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 BackendBucket 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(BackendBucket.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of + * usable backend buckets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 BackendBucketListUsable setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of BackendBucket resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of BackendBucket resources. + * @param items items or {@code null} for none + */ + public BackendBucketListUsable setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of + * usable backend buckets. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of + * usable backend buckets. + * @param kind kind or {@code null} for none + */ + public BackendBucketListUsable setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public BackendBucketListUsable 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 BackendBucketListUsable setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 BackendBucketListUsable setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendBucketListUsable set(String fieldName, Object value) { + return (BackendBucketListUsable) super.set(fieldName, value); + } + + @Override + public BackendBucketListUsable clone() { + return (BackendBucketListUsable) 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 BackendBucketListUsableWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendBucketParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketParams.java new file mode 100644 index 00000000000..e8205e24c4d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional Backend Bucket parameters. + * + *

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 BackendBucketParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public BackendBucketParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public BackendBucketParams set(String fieldName, Object value) { + return (BackendBucketParams) super.set(fieldName, value); + } + + @Override + public BackendBucketParams clone() { + return (BackendBucketParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java new file mode 100644 index 00000000000..e7045e0c2e3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.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; + +/** + * Model definition for BackendBucketUsedBy. + * + *

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 BackendBucketUsedBy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reference; + + /** + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * @return value or {@code null} for none + */ + public java.lang.String getReference() { + return reference; + } + + /** + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * @param reference reference or {@code null} for none + */ + public BackendBucketUsedBy setReference(java.lang.String reference) { + this.reference = reference; + return this; + } + + @Override + public BackendBucketUsedBy set(String fieldName, Object value) { + return (BackendBucketUsedBy) super.set(fieldName, value); + } + + @Override + public BackendBucketUsedBy clone() { + return (BackendBucketUsedBy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketsScopedList.java new file mode 100644 index 00000000000..66ec498d4c3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendBucketsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 BackendBucketsScopedList. + * + *

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 BackendBucketsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of BackendBuckets contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List backendBuckets; + + static { + // hack to force ProGuard to consider BackendBucket 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(BackendBucket.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of BackendBuckets contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getBackendBuckets() { + return backendBuckets; + } + + /** + * A list of BackendBuckets contained in this scope. + * @param backendBuckets backendBuckets or {@code null} for none + */ + public BackendBucketsScopedList setBackendBuckets(java.util.List backendBuckets) { + this.backendBuckets = backendBuckets; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public BackendBucketsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendBucketsScopedList set(String fieldName, Object value) { + return (BackendBucketsScopedList) super.set(fieldName, value); + } + + @Override + public BackendBucketsScopedList clone() { + return (BackendBucketsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 BackendBucketsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendCustomMetric.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendCustomMetric.java new file mode 100644 index 00000000000..00deb73b8f7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendCustomMetric.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Custom Metrics are used for CUSTOM_METRICS balancing_mode. + * + *

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 BackendCustomMetric extends com.google.api.client.json.GenericJson { + + /** + * If true, the metric data is collected and reported to Cloud Monitoring, but is not used for + * load balancing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dryRun; + + /** + * Optional parameter to define a target utilization for the Custom Metrics balancing mode. The + * valid range is [0.0, 1.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float maxUtilization; + + /** + * Name of a custom utilization signal. The name must be 1-64 characters long and match the + * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be + * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase + * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For + * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global + * or regional backend service with the loadBalancingScheme set to + * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * If true, the metric data is collected and reported to Cloud Monitoring, but is not used for + * load balancing. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDryRun() { + return dryRun; + } + + /** + * If true, the metric data is collected and reported to Cloud Monitoring, but is not used for + * load balancing. + * @param dryRun dryRun or {@code null} for none + */ + public BackendCustomMetric setDryRun(java.lang.Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Optional parameter to define a target utilization for the Custom Metrics balancing mode. The + * valid range is [0.0, 1.0]. + * @return value or {@code null} for none + */ + public java.lang.Float getMaxUtilization() { + return maxUtilization; + } + + /** + * Optional parameter to define a target utilization for the Custom Metrics balancing mode. The + * valid range is [0.0, 1.0]. + * @param maxUtilization maxUtilization or {@code null} for none + */ + public BackendCustomMetric setMaxUtilization(java.lang.Float maxUtilization) { + this.maxUtilization = maxUtilization; + return this; + } + + /** + * Name of a custom utilization signal. The name must be 1-64 characters long and match the + * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be + * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase + * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For + * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global + * or regional backend service with the loadBalancingScheme set to + * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of a custom utilization signal. The name must be 1-64 characters long and match the + * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be + * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase + * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For + * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global + * or regional backend service with the loadBalancingScheme set to + * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + * @param name name or {@code null} for none + */ + public BackendCustomMetric setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public BackendCustomMetric set(String fieldName, Object value) { + return (BackendCustomMetric) super.set(fieldName, value); + } + + @Override + public BackendCustomMetric clone() { + return (BackendCustomMetric) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendService.java new file mode 100644 index 00000000000..3c0f3ef9a84 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -0,0 +1,2082 @@ +/* + * 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 Backend Service resource. + * + * A backend service defines how Google Cloud load balancers distribute traffic. The backend service + * configuration contains a set of values, such as the protocol used to connect to backends, various + * distribution and session settings, health checks, and timeouts. These settings provide fine- + * grained control over how your load balancer behaves. Most of the settings have default values + * that allow for easy configuration if you need to get started quickly. + * + * Backend services in Google Compute Engine can be either regionally or globally scoped. + * + * * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) * + * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) + * + * For more information, seeBackend Services. + * + *

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 BackendService extends com.google.api.client.json.GenericJson { + + /** + * Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and + * Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. + * + * If set to 0, the cookie is non-persistent and lasts only until the end of the browser session + * (or equivalent). The maximum allowed value is two weeks (1,209,600). + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer affinityCookieTtlSec; + + /** + * The list of backends that serve this BackendService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List backends; + + static { + // hack to force ProGuard to consider Backend 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(Backend.class); + } + + /** + * Cloud CDN configuration for this BackendService. Only available for specified load balancer + * types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceCdnPolicy cdnPolicy; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CircuitBreakers circuitBreakers; + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String compressionMode; + + /** + * connectionDraining cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConnectionDraining connectionDraining; + + /** + * Connection Tracking configuration for this BackendService. Connection tracking policy settings + * are only available for external passthrough Network Load Balancers and internal passthrough + * Network Load Balancers. + * + * connectionTrackingPolicy cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceConnectionTrackingPolicy connectionTrackingPolicy; + + /** + * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP + * headers, cookies or other properties. This load balancing policy is applicable only for HTTP + * connections. The affinity to a particular destination host will be lost when one or more hosts + * are added/removed from the destination service. This field specifies parameters that control + * consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV + * orRING_HASH. + * + * This field is applicable to either: - A regional backend service with the service + * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConsistentHashLoadBalancerSettings consistentHash; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customMetrics; + + /** + * Headers that the load balancer adds to proxied requests. See [Creating custom + * headers](https://cloud.google.com/load-balancing/docs/custom-headers). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customRequestHeaders; + + /** + * Headers that the load balancer adds to proxied responses. See [Creating custom + * headers](https://cloud.google.com/load-balancing/docs/custom-headers). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customResponseHeaders; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] The resource URL for the edge security policy associated with this backend + * service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String edgeSecurityPolicy; + + /** + * If true, enables Cloud CDN for the backend service of a global external Application Load + * Balancer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableCDN; + + /** + * Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and + * TEST_ALL_TRAFFIC. + * + * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. + * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by + * percentage using externalManagedMigrationTestingPercentage. + * + * Rolling back a migration requires the states to be set in reverse order. So changing the scheme + * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same + * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalManagedMigrationState; + + /** + * Determines the fraction of requests that should be processed by the Global external Application + * Load Balancer. + * + * The value of this field must be in the range [0, 100]. + * + * Session affinity options will slightly affect this routing behavior, for more details, + * see:Session Affinity. + * + * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL + * (when using the classic Application Load Balancer) and the migration state is + * TEST_BY_PERCENTAGE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float externalManagedMigrationTestingPercentage; + + /** + * Requires at least one backend instance group to be defined as a backup (failover) backend. For + * load balancers that have configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with + * haPolicy.failoverPolicy cannot be used by global external Passthrough Network Load Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceFailoverPolicy failoverPolicy; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- + * date fingerprint must be provided in order to update the BackendService, otherwise the request + * will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a BackendService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. + * + * The backends of this regional backend service must only specify zonal network endpoint groups + * (NEGs) of type GCE_VM_IP. + * + * When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend + * service must set the network field. All zonal NEGs must belong to the same network. However, + * individual NEGs can belong to different subnetworks of that network. + * + * When haPolicy is specified, the set of attached network endpoints across all backends comprise + * an High Availability domain from which one endpoint is selected as the active endpoint (the + * leader) that receives all traffic. + * + * haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. + * + * Note that haPolicy is not for load balancing, and therefore cannot be specified with + * sessionAffinity, connectionTrackingPolicy, and failoverPolicy. + * + * haPolicy requires customers to be responsible for tracking backend endpoint health and electing + * a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with + * healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers + * and Internal Passthrough Network Load Balancers.haPolicy cannot be used by global external + * Passthrough Network Load Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceHAPolicy haPolicy; + + /** + * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) + * resource for health checking this backend service. Not all backend services support legacy + * health checks. See Load balancer guide. Currently, at most one health check can be specified + * for each backend service. Backend services with instance group or zonal NEG backends must have + * a health check unless haPolicy is specified. Backend services with internet or serverless NEG + * backends must not have a health check. + * + * healthChecks[] cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthChecks; + + /** + * The configurations for Identity-Aware Proxy on this resource. Not available for internal + * passthrough Network Load Balancers and external passthrough Network Load Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceIAP iap; + + /** + * [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; + + /** + * Specifies a preference for traffic sent from the proxy to the backend (or from the client to + * the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 + * traffic to the backends of the backend service (Instance Group, Managed Instance Group, + * Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 + * health checks are used to check the health of the backends. This is the default setting. + * - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 + * address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic + * to the backends of the backend service (Instance Group, Managed Instance Group, Network + * Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health + * checks are used to check the health of the backends. + * + * This field is applicable to either: - Advanced global external Application Load + * Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load + * Balancer, - Internal proxy Network Load Balancer (load balancing scheme + * INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme + * INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load + * balancing scheme INTERNAL_SELF_MANAGED). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddressSelectionPolicy; + + /** + * Output only. [Output Only] Type of resource. Always compute#backendService for backend + * services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Specifies the load balancer type. A backend service created for one type of load balancer + * cannot be used with another. For more information, refer to Backend services product and scheme + * table. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadBalancingScheme; + + /** + * A list of locality load-balancing policies to be used in order of preference. When you use + * localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy + * or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in + * the localityLbPolicy field. + * + * For an example of how to use this field, seeDefine a list of preferred policies. + * + * Caution: This field and its children are intended for use in a service mesh that includes gRPC + * clients only. Envoy proxies can't use backend services that have this configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List localityLbPolicies; + + /** + * The load balancing algorithm used within the scope of the locality. The possible values are: + * - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round + * robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two + * random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The + * ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has + * the property that the addition/removal of a host from a set of N hosts only affects 1/N of + * the requests. - RANDOM: The load balancer selects a random healthy host. - + * ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, + * i.e., connections are opened to the same address as the destination address of the incoming + * connection before the connection was redirected to the load balancer. - MAGLEV: used as a + * drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash + * but has faster table lookup build times and host selection times. For more information about + * Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - + * WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights + * computed from Backend reported Custom Metrics. If set, the Backend Service responses are + * expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The + * reported metrics to use for computing the weights are specified via thecustomMetrics field. + * - WEIGHTED_MAGLEV: Per-endpoint weighted load balancing via health check reported weights. + * If set, the backend service must configure an HTTP-based Health Check, and health check + * replies are expected to contain the non-standard HTTP response header fieldX-Load-Balancing- + * Endpoint-Weight to specify the per-endpoint weights. If set, load balancing is weighted + * based on the per-endpoint weights reported in the last processed health check replies, as + * long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. + * Otherwise, load balancing remains equal-weight. + * + * This field is applicable to either: - A regional backend service with the service + * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. + * + * If sessionAffinity is not configured—that is, if session affinity remains at the default value + * of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set + * to a value other than NONE, then the default value for localityLbPolicy isMAGLEV. + * + * Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL + * map that is bound to target gRPC proxy that has validateForProxyless field set to true. + * + * localityLbPolicy cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localityLbPolicy; + + /** + * This field denotes the logging options for the load balancer traffic served by this backend + * service. If logging is enabled, logs will be exported to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceLogConfig logConfig; + + /** + * Specifies the default maximum duration (timeout) for streams to this service. Duration is + * computed from the beginning of the stream until the response has been completely processed, + * including all retries. A stream that does not complete in this duration is closed. + * + * If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. + * + * This value can be overridden in the PathMatcher configuration of the UrlMap that references + * this backend service. + * + * This field is only allowed when the loadBalancingScheme of the backend service is + * INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxStreamDuration; + + /** + * Deployment metadata associated with the resource to be set by a GKE hub controller and read by + * the backend RCTH + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadatas; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The URL of the network to which this backend service belongs. + * + * This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is + * enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is + * enabled. + * + * This field can only be specified when the load balancing scheme is set toINTERNAL, or when the + * load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Configures traffic steering properties of internal passthrough Network Load Balancers. + * + * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy; + + /** + * Information about the resource or system that manages the backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceOrchestrationInfo orchestrationInfo; + + /** + * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool + * of each individual proxy instance that processes the traffic for the given backend service. If + * not set, this feature is considered disabled. + * + * Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool + * and returning them back to the pool) are executed independently by each proxy instance of the + * load balancer. In most cases, more than one proxy instance handles the traffic received by a + * backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by + * only some of the proxies, and while this happens, other proxies may continue to send requests + * to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. + * + * Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints + * in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG + * (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud + * Functions Services - Private Service Connect NEGs, that resolve to Google-managed + * regional API endpoints or managed services published using Private Service Connect + * + * Applicable backend service types can be: - A global backend service with the + * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional + * backend service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and + * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for + * Serverless NEGs. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OutlierDetection outlierDetection; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceParams params; + + /** + * Deprecated in favor of portName. The TCP port to connect on the backend. The default value is + * 80. For internal passthrough Network Load Balancers and external passthrough Network Load + * Balancers, omit port. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * A named port on a backend instance group representing the port for communication to the backend + * VMs in that group. The named port must be [defined on each backend instance + * group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This + * parameter has no meaning if the backends are NEGs. For internal passthrough Network Load + * Balancers and external passthrough Network Load Balancers, omit port_name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * The protocol this BackendService uses to communicate with backends. + * + * Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP, GRPC, or UNSPECIFIED, depending on + * the chosen load balancer or Traffic Director configuration. Refer to Load balancing features + * for more information. + * + * Must be set to GRPC when the backend service is referenced by a URL map that is bound to target + * gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String protocol; + + /** + * Output only. [Output Only] URL of the region where the regional backend service resides. This + * field is not applicable to global backend services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [Output Only] The resource URL for the security policy associated with this backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * This field specifies the security settings that apply to this backend service. This field is + * applicable to a global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecuritySettings securitySettings; + + /** + * [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; + + /** + * URLs of networkservices.ServiceBinding resources. + * + * Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends + * and health checks must be both empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceBindings; + + /** + * URL to networkservices.ServiceLbPolicy resource. + * + * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceLbPolicy; + + /** + * Type of session affinity to use. The default is NONE. + * + * Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map + * that is bound to target gRPC proxy that has validateForProxyless field set to true. + * + * For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend- + * service#session_affinity). + * + * sessionAffinity cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionAffinity; + + /** + * Describes the HTTP cookie used for stateful session affinity. This field is applicable and + * required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceHttpCookie strongSessionAffinityCookie; + + /** + * subsetting cannot be specified with haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Subsetting subsetting; + + /** + * The backend service timeout has a different meaning depending on the type of load balancer. For + * more information see, Backend service settings. The default is 30 seconds. The full range of + * timeout values allowed goes from 1 through 2,147,483,647 seconds. + * + * This value can be overridden in the PathMatcher configuration of the UrlMap that references + * this backend service. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer timeoutSec; + + /** + * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend + * protocol is SSL, HTTPS or HTTP2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceTlsSettings tlsSettings; + + /** + * Output only. [Output Only] List of resources referencing given backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List usedBy; + + /** + * Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and + * Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. + * + * If set to 0, the cookie is non-persistent and lasts only until the end of the browser session + * (or equivalent). The maximum allowed value is two weeks (1,209,600). + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.lang.Integer getAffinityCookieTtlSec() { + return affinityCookieTtlSec; + } + + /** + * Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and + * Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. + * + * If set to 0, the cookie is non-persistent and lasts only until the end of the browser session + * (or equivalent). The maximum allowed value is two weeks (1,209,600). + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param affinityCookieTtlSec affinityCookieTtlSec or {@code null} for none + */ + public BackendService setAffinityCookieTtlSec(java.lang.Integer affinityCookieTtlSec) { + this.affinityCookieTtlSec = affinityCookieTtlSec; + return this; + } + + /** + * The list of backends that serve this BackendService. + * @return value or {@code null} for none + */ + public java.util.List getBackends() { + return backends; + } + + /** + * The list of backends that serve this BackendService. + * @param backends backends or {@code null} for none + */ + public BackendService setBackends(java.util.List backends) { + this.backends = backends; + return this; + } + + /** + * Cloud CDN configuration for this BackendService. Only available for specified load balancer + * types. + * @return value or {@code null} for none + */ + public BackendServiceCdnPolicy getCdnPolicy() { + return cdnPolicy; + } + + /** + * Cloud CDN configuration for this BackendService. Only available for specified load balancer + * types. + * @param cdnPolicy cdnPolicy or {@code null} for none + */ + public BackendService setCdnPolicy(BackendServiceCdnPolicy cdnPolicy) { + this.cdnPolicy = cdnPolicy; + return this; + } + + /** + * @return value or {@code null} for none + */ + public CircuitBreakers getCircuitBreakers() { + return circuitBreakers; + } + + /** + * @param circuitBreakers circuitBreakers or {@code null} for none + */ + public BackendService setCircuitBreakers(CircuitBreakers circuitBreakers) { + this.circuitBreakers = circuitBreakers; + return this; + } + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * @return value or {@code null} for none + */ + public java.lang.String getCompressionMode() { + return compressionMode; + } + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * @param compressionMode compressionMode or {@code null} for none + */ + public BackendService setCompressionMode(java.lang.String compressionMode) { + this.compressionMode = compressionMode; + return this; + } + + /** + * connectionDraining cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public ConnectionDraining getConnectionDraining() { + return connectionDraining; + } + + /** + * connectionDraining cannot be specified with haPolicy. + * @param connectionDraining connectionDraining or {@code null} for none + */ + public BackendService setConnectionDraining(ConnectionDraining connectionDraining) { + this.connectionDraining = connectionDraining; + return this; + } + + /** + * Connection Tracking configuration for this BackendService. Connection tracking policy settings + * are only available for external passthrough Network Load Balancers and internal passthrough + * Network Load Balancers. + * + * connectionTrackingPolicy cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public BackendServiceConnectionTrackingPolicy getConnectionTrackingPolicy() { + return connectionTrackingPolicy; + } + + /** + * Connection Tracking configuration for this BackendService. Connection tracking policy settings + * are only available for external passthrough Network Load Balancers and internal passthrough + * Network Load Balancers. + * + * connectionTrackingPolicy cannot be specified with haPolicy. + * @param connectionTrackingPolicy connectionTrackingPolicy or {@code null} for none + */ + public BackendService setConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy connectionTrackingPolicy) { + this.connectionTrackingPolicy = connectionTrackingPolicy; + return this; + } + + /** + * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP + * headers, cookies or other properties. This load balancing policy is applicable only for HTTP + * connections. The affinity to a particular destination host will be lost when one or more hosts + * are added/removed from the destination service. This field specifies parameters that control + * consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV + * orRING_HASH. + * + * This field is applicable to either: - A regional backend service with the service + * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public ConsistentHashLoadBalancerSettings getConsistentHash() { + return consistentHash; + } + + /** + * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP + * headers, cookies or other properties. This load balancing policy is applicable only for HTTP + * connections. The affinity to a particular destination host will be lost when one or more hosts + * are added/removed from the destination service. This field specifies parameters that control + * consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV + * orRING_HASH. + * + * This field is applicable to either: - A regional backend service with the service + * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED. + * @param consistentHash consistentHash or {@code null} for none + */ + public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consistentHash) { + this.consistentHash = consistentHash; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. + * @return value or {@code null} for none + */ + public java.util.List getCustomMetrics() { + return customMetrics; + } + + /** + * List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. + * @param customMetrics customMetrics or {@code null} for none + */ + public BackendService setCustomMetrics(java.util.List customMetrics) { + this.customMetrics = customMetrics; + return this; + } + + /** + * Headers that the load balancer adds to proxied requests. See [Creating custom + * headers](https://cloud.google.com/load-balancing/docs/custom-headers). + * @return value or {@code null} for none + */ + public java.util.List getCustomRequestHeaders() { + return customRequestHeaders; + } + + /** + * Headers that the load balancer adds to proxied requests. See [Creating custom + * headers](https://cloud.google.com/load-balancing/docs/custom-headers). + * @param customRequestHeaders customRequestHeaders or {@code null} for none + */ + public BackendService setCustomRequestHeaders(java.util.List customRequestHeaders) { + this.customRequestHeaders = customRequestHeaders; + return this; + } + + /** + * Headers that the load balancer adds to proxied responses. See [Creating custom + * headers](https://cloud.google.com/load-balancing/docs/custom-headers). + * @return value or {@code null} for none + */ + public java.util.List getCustomResponseHeaders() { + return customResponseHeaders; + } + + /** + * Headers that the load balancer adds to proxied responses. See [Creating custom + * headers](https://cloud.google.com/load-balancing/docs/custom-headers). + * @param customResponseHeaders customResponseHeaders or {@code null} for none + */ + public BackendService setCustomResponseHeaders(java.util.List customResponseHeaders) { + this.customResponseHeaders = customResponseHeaders; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public BackendService setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] The resource URL for the edge security policy associated with this backend + * service. + * @return value or {@code null} for none + */ + public java.lang.String getEdgeSecurityPolicy() { + return edgeSecurityPolicy; + } + + /** + * [Output Only] The resource URL for the edge security policy associated with this backend + * service. + * @param edgeSecurityPolicy edgeSecurityPolicy or {@code null} for none + */ + public BackendService setEdgeSecurityPolicy(java.lang.String edgeSecurityPolicy) { + this.edgeSecurityPolicy = edgeSecurityPolicy; + return this; + } + + /** + * If true, enables Cloud CDN for the backend service of a global external Application Load + * Balancer. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableCDN() { + return enableCDN; + } + + /** + * If true, enables Cloud CDN for the backend service of a global external Application Load + * Balancer. + * @param enableCDN enableCDN or {@code null} for none + */ + public BackendService setEnableCDN(java.lang.Boolean enableCDN) { + this.enableCDN = enableCDN; + return this; + } + + /** + * Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and + * TEST_ALL_TRAFFIC. + * + * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. + * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by + * percentage using externalManagedMigrationTestingPercentage. + * + * Rolling back a migration requires the states to be set in reverse order. So changing the scheme + * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same + * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + * @return value or {@code null} for none + */ + public java.lang.String getExternalManagedMigrationState() { + return externalManagedMigrationState; + } + + /** + * Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and + * TEST_ALL_TRAFFIC. + * + * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. + * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by + * percentage using externalManagedMigrationTestingPercentage. + * + * Rolling back a migration requires the states to be set in reverse order. So changing the scheme + * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same + * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + * @param externalManagedMigrationState externalManagedMigrationState or {@code null} for none + */ + public BackendService setExternalManagedMigrationState(java.lang.String externalManagedMigrationState) { + this.externalManagedMigrationState = externalManagedMigrationState; + return this; + } + + /** + * Determines the fraction of requests that should be processed by the Global external Application + * Load Balancer. + * + * The value of this field must be in the range [0, 100]. + * + * Session affinity options will slightly affect this routing behavior, for more details, + * see:Session Affinity. + * + * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL + * (when using the classic Application Load Balancer) and the migration state is + * TEST_BY_PERCENTAGE. + * @return value or {@code null} for none + */ + public java.lang.Float getExternalManagedMigrationTestingPercentage() { + return externalManagedMigrationTestingPercentage; + } + + /** + * Determines the fraction of requests that should be processed by the Global external Application + * Load Balancer. + * + * The value of this field must be in the range [0, 100]. + * + * Session affinity options will slightly affect this routing behavior, for more details, + * see:Session Affinity. + * + * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL + * (when using the classic Application Load Balancer) and the migration state is + * TEST_BY_PERCENTAGE. + * @param externalManagedMigrationTestingPercentage externalManagedMigrationTestingPercentage or {@code null} for none + */ + public BackendService setExternalManagedMigrationTestingPercentage(java.lang.Float externalManagedMigrationTestingPercentage) { + this.externalManagedMigrationTestingPercentage = externalManagedMigrationTestingPercentage; + return this; + } + + /** + * Requires at least one backend instance group to be defined as a backup (failover) backend. For + * load balancers that have configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with + * haPolicy.failoverPolicy cannot be used by global external Passthrough Network Load Balancers. + * @return value or {@code null} for none + */ + public BackendServiceFailoverPolicy getFailoverPolicy() { + return failoverPolicy; + } + + /** + * Requires at least one backend instance group to be defined as a backup (failover) backend. For + * load balancers that have configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with + * haPolicy.failoverPolicy cannot be used by global external Passthrough Network Load Balancers. + * @param failoverPolicy failoverPolicy or {@code null} for none + */ + public BackendService setFailoverPolicy(BackendServiceFailoverPolicy failoverPolicy) { + this.failoverPolicy = failoverPolicy; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- + * date fingerprint must be provided in order to update the BackendService, otherwise the request + * will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a BackendService. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- + * date fingerprint must be provided in order to update the BackendService, otherwise the request + * will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a BackendService. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- + * date fingerprint must be provided in order to update the BackendService, otherwise the request + * will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a BackendService. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public BackendService setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- + * date fingerprint must be provided in order to update the BackendService, otherwise the request + * will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a BackendService. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public BackendService encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. + * + * The backends of this regional backend service must only specify zonal network endpoint groups + * (NEGs) of type GCE_VM_IP. + * + * When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend + * service must set the network field. All zonal NEGs must belong to the same network. However, + * individual NEGs can belong to different subnetworks of that network. + * + * When haPolicy is specified, the set of attached network endpoints across all backends comprise + * an High Availability domain from which one endpoint is selected as the active endpoint (the + * leader) that receives all traffic. + * + * haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. + * + * Note that haPolicy is not for load balancing, and therefore cannot be specified with + * sessionAffinity, connectionTrackingPolicy, and failoverPolicy. + * + * haPolicy requires customers to be responsible for tracking backend endpoint health and electing + * a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with + * healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers + * and Internal Passthrough Network Load Balancers.haPolicy cannot be used by global external + * Passthrough Network Load Balancers. + * @return value or {@code null} for none + */ + public BackendServiceHAPolicy getHaPolicy() { + return haPolicy; + } + + /** + * Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. + * + * The backends of this regional backend service must only specify zonal network endpoint groups + * (NEGs) of type GCE_VM_IP. + * + * When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend + * service must set the network field. All zonal NEGs must belong to the same network. However, + * individual NEGs can belong to different subnetworks of that network. + * + * When haPolicy is specified, the set of attached network endpoints across all backends comprise + * an High Availability domain from which one endpoint is selected as the active endpoint (the + * leader) that receives all traffic. + * + * haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. + * + * Note that haPolicy is not for load balancing, and therefore cannot be specified with + * sessionAffinity, connectionTrackingPolicy, and failoverPolicy. + * + * haPolicy requires customers to be responsible for tracking backend endpoint health and electing + * a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with + * healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers + * and Internal Passthrough Network Load Balancers.haPolicy cannot be used by global external + * Passthrough Network Load Balancers. + * @param haPolicy haPolicy or {@code null} for none + */ + public BackendService setHaPolicy(BackendServiceHAPolicy haPolicy) { + this.haPolicy = haPolicy; + return this; + } + + /** + * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) + * resource for health checking this backend service. Not all backend services support legacy + * health checks. See Load balancer guide. Currently, at most one health check can be specified + * for each backend service. Backend services with instance group or zonal NEG backends must have + * a health check unless haPolicy is specified. Backend services with internet or serverless NEG + * backends must not have a health check. + * + * healthChecks[] cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public java.util.List getHealthChecks() { + return healthChecks; + } + + /** + * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) + * resource for health checking this backend service. Not all backend services support legacy + * health checks. See Load balancer guide. Currently, at most one health check can be specified + * for each backend service. Backend services with instance group or zonal NEG backends must have + * a health check unless haPolicy is specified. Backend services with internet or serverless NEG + * backends must not have a health check. + * + * healthChecks[] cannot be specified with haPolicy. + * @param healthChecks healthChecks or {@code null} for none + */ + public BackendService setHealthChecks(java.util.List healthChecks) { + this.healthChecks = healthChecks; + return this; + } + + /** + * The configurations for Identity-Aware Proxy on this resource. Not available for internal + * passthrough Network Load Balancers and external passthrough Network Load Balancers. + * @return value or {@code null} for none + */ + public BackendServiceIAP getIap() { + return iap; + } + + /** + * The configurations for Identity-Aware Proxy on this resource. Not available for internal + * passthrough Network Load Balancers and external passthrough Network Load Balancers. + * @param iap iap or {@code null} for none + */ + public BackendService setIap(BackendServiceIAP iap) { + this.iap = iap; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public BackendService setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Specifies a preference for traffic sent from the proxy to the backend (or from the client to + * the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 + * traffic to the backends of the backend service (Instance Group, Managed Instance Group, + * Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 + * health checks are used to check the health of the backends. This is the default setting. + * - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 + * address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic + * to the backends of the backend service (Instance Group, Managed Instance Group, Network + * Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health + * checks are used to check the health of the backends. + * + * This field is applicable to either: - Advanced global external Application Load + * Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load + * Balancer, - Internal proxy Network Load Balancer (load balancing scheme + * INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme + * INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load + * balancing scheme INTERNAL_SELF_MANAGED). + * @return value or {@code null} for none + */ + public java.lang.String getIpAddressSelectionPolicy() { + return ipAddressSelectionPolicy; + } + + /** + * Specifies a preference for traffic sent from the proxy to the backend (or from the client to + * the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 + * traffic to the backends of the backend service (Instance Group, Managed Instance Group, + * Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 + * health checks are used to check the health of the backends. This is the default setting. + * - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 + * address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic + * to the backends of the backend service (Instance Group, Managed Instance Group, Network + * Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health + * checks are used to check the health of the backends. + * + * This field is applicable to either: - Advanced global external Application Load + * Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load + * Balancer, - Internal proxy Network Load Balancer (load balancing scheme + * INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme + * INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load + * balancing scheme INTERNAL_SELF_MANAGED). + * @param ipAddressSelectionPolicy ipAddressSelectionPolicy or {@code null} for none + */ + public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSelectionPolicy) { + this.ipAddressSelectionPolicy = ipAddressSelectionPolicy; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#backendService for backend + * services. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#backendService for backend + * services. + * @param kind kind or {@code null} for none + */ + public BackendService setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Specifies the load balancer type. A backend service created for one type of load balancer + * cannot be used with another. For more information, refer to Backend services product and scheme + * table. + * @return value or {@code null} for none + */ + public java.lang.String getLoadBalancingScheme() { + return loadBalancingScheme; + } + + /** + * Specifies the load balancer type. A backend service created for one type of load balancer + * cannot be used with another. For more information, refer to Backend services product and scheme + * table. + * @param loadBalancingScheme loadBalancingScheme or {@code null} for none + */ + public BackendService setLoadBalancingScheme(java.lang.String loadBalancingScheme) { + this.loadBalancingScheme = loadBalancingScheme; + return this; + } + + /** + * A list of locality load-balancing policies to be used in order of preference. When you use + * localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy + * or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in + * the localityLbPolicy field. + * + * For an example of how to use this field, seeDefine a list of preferred policies. + * + * Caution: This field and its children are intended for use in a service mesh that includes gRPC + * clients only. Envoy proxies can't use backend services that have this configuration. + * @return value or {@code null} for none + */ + public java.util.List getLocalityLbPolicies() { + return localityLbPolicies; + } + + /** + * A list of locality load-balancing policies to be used in order of preference. When you use + * localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy + * or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in + * the localityLbPolicy field. + * + * For an example of how to use this field, seeDefine a list of preferred policies. + * + * Caution: This field and its children are intended for use in a service mesh that includes gRPC + * clients only. Envoy proxies can't use backend services that have this configuration. + * @param localityLbPolicies localityLbPolicies or {@code null} for none + */ + public BackendService setLocalityLbPolicies(java.util.List localityLbPolicies) { + this.localityLbPolicies = localityLbPolicies; + return this; + } + + /** + * The load balancing algorithm used within the scope of the locality. The possible values are: + * - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round + * robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two + * random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The + * ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has + * the property that the addition/removal of a host from a set of N hosts only affects 1/N of + * the requests. - RANDOM: The load balancer selects a random healthy host. - + * ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, + * i.e., connections are opened to the same address as the destination address of the incoming + * connection before the connection was redirected to the load balancer. - MAGLEV: used as a + * drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash + * but has faster table lookup build times and host selection times. For more information about + * Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - + * WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights + * computed from Backend reported Custom Metrics. If set, the Backend Service responses are + * expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The + * reported metrics to use for computing the weights are specified via thecustomMetrics field. + * - WEIGHTED_MAGLEV: Per-endpoint weighted load balancing via health check reported weights. + * If set, the backend service must configure an HTTP-based Health Check, and health check + * replies are expected to contain the non-standard HTTP response header fieldX-Load-Balancing- + * Endpoint-Weight to specify the per-endpoint weights. If set, load balancing is weighted + * based on the per-endpoint weights reported in the last processed health check replies, as + * long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. + * Otherwise, load balancing remains equal-weight. + * + * This field is applicable to either: - A regional backend service with the service + * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. + * + * If sessionAffinity is not configured—that is, if session affinity remains at the default value + * of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set + * to a value other than NONE, then the default value for localityLbPolicy isMAGLEV. + * + * Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL + * map that is bound to target gRPC proxy that has validateForProxyless field set to true. + * + * localityLbPolicy cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getLocalityLbPolicy() { + return localityLbPolicy; + } + + /** + * The load balancing algorithm used within the scope of the locality. The possible values are: + * - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round + * robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two + * random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The + * ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has + * the property that the addition/removal of a host from a set of N hosts only affects 1/N of + * the requests. - RANDOM: The load balancer selects a random healthy host. - + * ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, + * i.e., connections are opened to the same address as the destination address of the incoming + * connection before the connection was redirected to the load balancer. - MAGLEV: used as a + * drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash + * but has faster table lookup build times and host selection times. For more information about + * Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - + * WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights + * computed from Backend reported Custom Metrics. If set, the Backend Service responses are + * expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The + * reported metrics to use for computing the weights are specified via thecustomMetrics field. + * - WEIGHTED_MAGLEV: Per-endpoint weighted load balancing via health check reported weights. + * If set, the backend service must configure an HTTP-based Health Check, and health check + * replies are expected to contain the non-standard HTTP response header fieldX-Load-Balancing- + * Endpoint-Weight to specify the per-endpoint weights. If set, load balancing is weighted + * based on the per-endpoint weights reported in the last processed health check replies, as + * long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. + * Otherwise, load balancing remains equal-weight. + * + * This field is applicable to either: - A regional backend service with the service + * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. + * + * If sessionAffinity is not configured—that is, if session affinity remains at the default value + * of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set + * to a value other than NONE, then the default value for localityLbPolicy isMAGLEV. + * + * Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL + * map that is bound to target gRPC proxy that has validateForProxyless field set to true. + * + * localityLbPolicy cannot be specified with haPolicy. + * @param localityLbPolicy localityLbPolicy or {@code null} for none + */ + public BackendService setLocalityLbPolicy(java.lang.String localityLbPolicy) { + this.localityLbPolicy = localityLbPolicy; + return this; + } + + /** + * This field denotes the logging options for the load balancer traffic served by this backend + * service. If logging is enabled, logs will be exported to Stackdriver. + * @return value or {@code null} for none + */ + public BackendServiceLogConfig getLogConfig() { + return logConfig; + } + + /** + * This field denotes the logging options for the load balancer traffic served by this backend + * service. If logging is enabled, logs will be exported to Stackdriver. + * @param logConfig logConfig or {@code null} for none + */ + public BackendService setLogConfig(BackendServiceLogConfig logConfig) { + this.logConfig = logConfig; + return this; + } + + /** + * Specifies the default maximum duration (timeout) for streams to this service. Duration is + * computed from the beginning of the stream until the response has been completely processed, + * including all retries. A stream that does not complete in this duration is closed. + * + * If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. + * + * This value can be overridden in the PathMatcher configuration of the UrlMap that references + * this backend service. + * + * This field is only allowed when the loadBalancingScheme of the backend service is + * INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public Duration getMaxStreamDuration() { + return maxStreamDuration; + } + + /** + * Specifies the default maximum duration (timeout) for streams to this service. Duration is + * computed from the beginning of the stream until the response has been completely processed, + * including all retries. A stream that does not complete in this duration is closed. + * + * If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. + * + * This value can be overridden in the PathMatcher configuration of the UrlMap that references + * this backend service. + * + * This field is only allowed when the loadBalancingScheme of the backend service is + * INTERNAL_SELF_MANAGED. + * @param maxStreamDuration maxStreamDuration or {@code null} for none + */ + public BackendService setMaxStreamDuration(Duration maxStreamDuration) { + this.maxStreamDuration = maxStreamDuration; + return this; + } + + /** + * Deployment metadata associated with the resource to be set by a GKE hub controller and read by + * the backend RCTH + * @return value or {@code null} for none + */ + public java.util.Map getMetadatas() { + return metadatas; + } + + /** + * Deployment metadata associated with the resource to be set by a GKE hub controller and read by + * the backend RCTH + * @param metadatas metadatas or {@code null} for none + */ + public BackendService setMetadatas(java.util.Map metadatas) { + this.metadatas = metadatas; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 BackendService setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The URL of the network to which this backend service belongs. + * + * This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is + * enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is + * enabled. + * + * This field can only be specified when the load balancing scheme is set toINTERNAL, or when the + * load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * The URL of the network to which this backend service belongs. + * + * This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is + * enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is + * enabled. + * + * This field can only be specified when the load balancing scheme is set toINTERNAL, or when the + * load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. + * @param network network or {@code null} for none + */ + public BackendService setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Configures traffic steering properties of internal passthrough Network Load Balancers. + * + * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicy getNetworkPassThroughLbTrafficPolicy() { + return networkPassThroughLbTrafficPolicy; + } + + /** + * Configures traffic steering properties of internal passthrough Network Load Balancers. + * + * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. + * @param networkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy or {@code null} for none + */ + public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy) { + this.networkPassThroughLbTrafficPolicy = networkPassThroughLbTrafficPolicy; + return this; + } + + /** + * Information about the resource or system that manages the backend service. + * @return value or {@code null} for none + */ + public BackendServiceOrchestrationInfo getOrchestrationInfo() { + return orchestrationInfo; + } + + /** + * Information about the resource or system that manages the backend service. + * @param orchestrationInfo orchestrationInfo or {@code null} for none + */ + public BackendService setOrchestrationInfo(BackendServiceOrchestrationInfo orchestrationInfo) { + this.orchestrationInfo = orchestrationInfo; + return this; + } + + /** + * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool + * of each individual proxy instance that processes the traffic for the given backend service. If + * not set, this feature is considered disabled. + * + * Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool + * and returning them back to the pool) are executed independently by each proxy instance of the + * load balancer. In most cases, more than one proxy instance handles the traffic received by a + * backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by + * only some of the proxies, and while this happens, other proxies may continue to send requests + * to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. + * + * Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints + * in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG + * (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud + * Functions Services - Private Service Connect NEGs, that resolve to Google-managed + * regional API endpoints or managed services published using Private Service Connect + * + * Applicable backend service types can be: - A global backend service with the + * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional + * backend service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and + * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for + * Serverless NEGs. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public OutlierDetection getOutlierDetection() { + return outlierDetection; + } + + /** + * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool + * of each individual proxy instance that processes the traffic for the given backend service. If + * not set, this feature is considered disabled. + * + * Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool + * and returning them back to the pool) are executed independently by each proxy instance of the + * load balancer. In most cases, more than one proxy instance handles the traffic received by a + * backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by + * only some of the proxies, and while this happens, other proxies may continue to send requests + * to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. + * + * Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints + * in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG + * (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud + * Functions Services - Private Service Connect NEGs, that resolve to Google-managed + * regional API endpoints or managed services published using Private Service Connect + * + * Applicable backend service types can be: - A global backend service with the + * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional + * backend service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and + * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for + * Serverless NEGs. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param outlierDetection outlierDetection or {@code null} for none + */ + public BackendService setOutlierDetection(OutlierDetection outlierDetection) { + this.outlierDetection = outlierDetection; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public BackendServiceParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public BackendService setParams(BackendServiceParams params) { + this.params = params; + return this; + } + + /** + * Deprecated in favor of portName. The TCP port to connect on the backend. The default value is + * 80. For internal passthrough Network Load Balancers and external passthrough Network Load + * Balancers, omit port. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * Deprecated in favor of portName. The TCP port to connect on the backend. The default value is + * 80. For internal passthrough Network Load Balancers and external passthrough Network Load + * Balancers, omit port. + * @param port port or {@code null} for none + */ + public BackendService setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * A named port on a backend instance group representing the port for communication to the backend + * VMs in that group. The named port must be [defined on each backend instance + * group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This + * parameter has no meaning if the backends are NEGs. For internal passthrough Network Load + * Balancers and external passthrough Network Load Balancers, omit port_name. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * A named port on a backend instance group representing the port for communication to the backend + * VMs in that group. The named port must be [defined on each backend instance + * group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This + * parameter has no meaning if the backends are NEGs. For internal passthrough Network Load + * Balancers and external passthrough Network Load Balancers, omit port_name. + * @param portName portName or {@code null} for none + */ + public BackendService setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * The protocol this BackendService uses to communicate with backends. + * + * Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP, GRPC, or UNSPECIFIED, depending on + * the chosen load balancer or Traffic Director configuration. Refer to Load balancing features + * for more information. + * + * Must be set to GRPC when the backend service is referenced by a URL map that is bound to target + * gRPC proxy. + * @return value or {@code null} for none + */ + public java.lang.String getProtocol() { + return protocol; + } + + /** + * The protocol this BackendService uses to communicate with backends. + * + * Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP, GRPC, or UNSPECIFIED, depending on + * the chosen load balancer or Traffic Director configuration. Refer to Load balancing features + * for more information. + * + * Must be set to GRPC when the backend service is referenced by a URL map that is bound to target + * gRPC proxy. + * @param protocol protocol or {@code null} for none + */ + public BackendService setProtocol(java.lang.String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional backend service resides. This + * field is not applicable to global backend services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional backend service resides. This + * field is not applicable to global backend services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public BackendService setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] The resource URL for the security policy associated with this backend service. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * [Output Only] The resource URL for the security policy associated with this backend service. + * @param securityPolicy securityPolicy or {@code null} for none + */ + public BackendService setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + return this; + } + + /** + * This field specifies the security settings that apply to this backend service. This field is + * applicable to a global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public SecuritySettings getSecuritySettings() { + return securitySettings; + } + + /** + * This field specifies the security settings that apply to this backend service. This field is + * applicable to a global backend service with the load_balancing_scheme set to + * INTERNAL_SELF_MANAGED. + * @param securitySettings securitySettings or {@code null} for none + */ + public BackendService setSecuritySettings(SecuritySettings securitySettings) { + this.securitySettings = securitySettings; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public BackendService setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * URLs of networkservices.ServiceBinding resources. + * + * Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends + * and health checks must be both empty. + * @return value or {@code null} for none + */ + public java.util.List getServiceBindings() { + return serviceBindings; + } + + /** + * URLs of networkservices.ServiceBinding resources. + * + * Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends + * and health checks must be both empty. + * @param serviceBindings serviceBindings or {@code null} for none + */ + public BackendService setServiceBindings(java.util.List serviceBindings) { + this.serviceBindings = serviceBindings; + return this; + } + + /** + * URL to networkservices.ServiceLbPolicy resource. + * + * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. + * @return value or {@code null} for none + */ + public java.lang.String getServiceLbPolicy() { + return serviceLbPolicy; + } + + /** + * URL to networkservices.ServiceLbPolicy resource. + * + * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. + * @param serviceLbPolicy serviceLbPolicy or {@code null} for none + */ + public BackendService setServiceLbPolicy(java.lang.String serviceLbPolicy) { + this.serviceLbPolicy = serviceLbPolicy; + return this; + } + + /** + * Type of session affinity to use. The default is NONE. + * + * Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map + * that is bound to target gRPC proxy that has validateForProxyless field set to true. + * + * For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend- + * service#session_affinity). + * + * sessionAffinity cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getSessionAffinity() { + return sessionAffinity; + } + + /** + * Type of session affinity to use. The default is NONE. + * + * Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map + * that is bound to target gRPC proxy that has validateForProxyless field set to true. + * + * For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend- + * service#session_affinity). + * + * sessionAffinity cannot be specified with haPolicy. + * @param sessionAffinity sessionAffinity or {@code null} for none + */ + public BackendService setSessionAffinity(java.lang.String sessionAffinity) { + this.sessionAffinity = sessionAffinity; + return this; + } + + /** + * Describes the HTTP cookie used for stateful session affinity. This field is applicable and + * required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. + * @return value or {@code null} for none + */ + public BackendServiceHttpCookie getStrongSessionAffinityCookie() { + return strongSessionAffinityCookie; + } + + /** + * Describes the HTTP cookie used for stateful session affinity. This field is applicable and + * required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. + * @param strongSessionAffinityCookie strongSessionAffinityCookie or {@code null} for none + */ + public BackendService setStrongSessionAffinityCookie(BackendServiceHttpCookie strongSessionAffinityCookie) { + this.strongSessionAffinityCookie = strongSessionAffinityCookie; + return this; + } + + /** + * subsetting cannot be specified with haPolicy. + * @return value or {@code null} for none + */ + public Subsetting getSubsetting() { + return subsetting; + } + + /** + * subsetting cannot be specified with haPolicy. + * @param subsetting subsetting or {@code null} for none + */ + public BackendService setSubsetting(Subsetting subsetting) { + this.subsetting = subsetting; + return this; + } + + /** + * The backend service timeout has a different meaning depending on the type of load balancer. For + * more information see, Backend service settings. The default is 30 seconds. The full range of + * timeout values allowed goes from 1 through 2,147,483,647 seconds. + * + * This value can be overridden in the PathMatcher configuration of the UrlMap that references + * this backend service. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. + * @return value or {@code null} for none + */ + public java.lang.Integer getTimeoutSec() { + return timeoutSec; + } + + /** + * The backend service timeout has a different meaning depending on the type of load balancer. For + * more information see, Backend service settings. The default is 30 seconds. The full range of + * timeout values allowed goes from 1 through 2,147,483,647 seconds. + * + * This value can be overridden in the PathMatcher configuration of the UrlMap that references + * this backend service. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. + * @param timeoutSec timeoutSec or {@code null} for none + */ + public BackendService setTimeoutSec(java.lang.Integer timeoutSec) { + this.timeoutSec = timeoutSec; + return this; + } + + /** + * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend + * protocol is SSL, HTTPS or HTTP2. + * @return value or {@code null} for none + */ + public BackendServiceTlsSettings getTlsSettings() { + return tlsSettings; + } + + /** + * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend + * protocol is SSL, HTTPS or HTTP2. + * @param tlsSettings tlsSettings or {@code null} for none + */ + public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { + this.tlsSettings = tlsSettings; + return this; + } + + /** + * Output only. [Output Only] List of resources referencing given backend service. + * @return value or {@code null} for none + */ + public java.util.List getUsedBy() { + return usedBy; + } + + /** + * Output only. [Output Only] List of resources referencing given backend service. + * @param usedBy usedBy or {@code null} for none + */ + public BackendService setUsedBy(java.util.List usedBy) { + this.usedBy = usedBy; + return this; + } + + @Override + public BackendService set(String fieldName, Object value) { + return (BackendService) super.set(fieldName, value); + } + + @Override + public BackendService clone() { + return (BackendService) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java new file mode 100644 index 00000000000..7ee2ee64f2a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of BackendServicesScopedList. + * + *

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 BackendServiceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 BackendServicesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 BackendServiceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of BackendServicesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of BackendServicesScopedList resources. + * @param items items or {@code null} for none + */ + public BackendServiceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public BackendServiceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public BackendServiceAggregatedList 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 BackendServiceAggregatedList 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 BackendServiceAggregatedList 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 BackendServiceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendServiceAggregatedList set(String fieldName, Object value) { + return (BackendServiceAggregatedList) super.set(fieldName, value); + } + + @Override + public BackendServiceAggregatedList clone() { + return (BackendServiceAggregatedList) 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 BackendServiceAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicy.java new file mode 100644 index 00000000000..85ee336aebc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicy.java @@ -0,0 +1,498 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing Cloud CDN configuration for a backend service. + * + *

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 BackendServiceCdnPolicy extends com.google.api.client.json.GenericJson { + + /** + * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization + * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode + * settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bypassCacheOnRequestHeaders; + + /** + * The CacheKeyPolicy for this CdnPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CacheKeyPolicy cacheKeyPolicy; + + /** + * Specifies the cache setting for all responses from this backend. The possible values are: + * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses + * without these headers will not be cached at Google's edge, and will require a full trip to the + * origin on every request, potentially impacting performance and increasing load on the origin + * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" + * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching + * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static + * content, including common image formats, media (video and audio), and web assets (JavaScript + * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content + * (including HTML), will not be cached. + * + * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cacheMode; + + /** + * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- + * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and + * default_ttl is used for the response max-age directive, along with a "public" directive. For + * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if + * specified), or else sets the response max-age directive to the lesser of the client_ttl and + * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is + * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s + * (1 year). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer clientTtl; + + /** + * Specifies the default TTL for cached content served by this origin for responses that do not + * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always + * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but + * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the + * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that + * infrequently accessed objects may be evicted from the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer defaultTtl; + + /** + * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives + * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than + * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of + * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a + * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting + * that infrequently accessed objects may be evicted from the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxTtl; + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or + * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that + * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to + * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, + * and override any caching headers. By default, Cloud CDN will apply the following default TTLs + * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 + * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean negativeCaching; + + /** + * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to + * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * negative_caching_policy, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List negativeCachingPolicy; + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestCoalescing; + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer serveWhileStale; + + /** + * Maximum number of seconds the response to a signed URL request will be considered fresh. After + * this time period, the response will be revalidated before being served. Defaults to 1hr + * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as + * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, + * regardless of any existing Cache-Control header. The actual headers served in responses will + * not be altered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long signedUrlCacheMaxAgeSec; + + /** + * [Output Only] Names of the keys for signing request URLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List signedUrlKeyNames; + + /** + * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization + * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode + * settings. + * @return value or {@code null} for none + */ + public java.util.List getBypassCacheOnRequestHeaders() { + return bypassCacheOnRequestHeaders; + } + + /** + * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization + * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode + * settings. + * @param bypassCacheOnRequestHeaders bypassCacheOnRequestHeaders or {@code null} for none + */ + public BackendServiceCdnPolicy setBypassCacheOnRequestHeaders(java.util.List bypassCacheOnRequestHeaders) { + this.bypassCacheOnRequestHeaders = bypassCacheOnRequestHeaders; + return this; + } + + /** + * The CacheKeyPolicy for this CdnPolicy. + * @return value or {@code null} for none + */ + public CacheKeyPolicy getCacheKeyPolicy() { + return cacheKeyPolicy; + } + + /** + * The CacheKeyPolicy for this CdnPolicy. + * @param cacheKeyPolicy cacheKeyPolicy or {@code null} for none + */ + public BackendServiceCdnPolicy setCacheKeyPolicy(CacheKeyPolicy cacheKeyPolicy) { + this.cacheKeyPolicy = cacheKeyPolicy; + return this; + } + + /** + * Specifies the cache setting for all responses from this backend. The possible values are: + * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses + * without these headers will not be cached at Google's edge, and will require a full trip to the + * origin on every request, potentially impacting performance and increasing load on the origin + * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" + * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching + * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static + * content, including common image formats, media (video and audio), and web assets (JavaScript + * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content + * (including HTML), will not be cached. + * + * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + * @return value or {@code null} for none + */ + public java.lang.String getCacheMode() { + return cacheMode; + } + + /** + * Specifies the cache setting for all responses from this backend. The possible values are: + * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses + * without these headers will not be cached at Google's edge, and will require a full trip to the + * origin on every request, potentially impacting performance and increasing load on the origin + * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" + * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching + * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static + * content, including common image formats, media (video and audio), and web assets (JavaScript + * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content + * (including HTML), will not be cached. + * + * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + * @param cacheMode cacheMode or {@code null} for none + */ + public BackendServiceCdnPolicy setCacheMode(java.lang.String cacheMode) { + this.cacheMode = cacheMode; + return this; + } + + /** + * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- + * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and + * default_ttl is used for the response max-age directive, along with a "public" directive. For + * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if + * specified), or else sets the response max-age directive to the lesser of the client_ttl and + * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is + * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s + * (1 year). + * @return value or {@code null} for none + */ + public java.lang.Integer getClientTtl() { + return clientTtl; + } + + /** + * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- + * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and + * default_ttl is used for the response max-age directive, along with a "public" directive. For + * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if + * specified), or else sets the response max-age directive to the lesser of the client_ttl and + * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is + * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s + * (1 year). + * @param clientTtl clientTtl or {@code null} for none + */ + public BackendServiceCdnPolicy setClientTtl(java.lang.Integer clientTtl) { + this.clientTtl = clientTtl; + return this; + } + + /** + * Specifies the default TTL for cached content served by this origin for responses that do not + * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always + * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but + * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the + * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that + * infrequently accessed objects may be evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public java.lang.Integer getDefaultTtl() { + return defaultTtl; + } + + /** + * Specifies the default TTL for cached content served by this origin for responses that do not + * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always + * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but + * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the + * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that + * infrequently accessed objects may be evicted from the cache before the defined TTL. + * @param defaultTtl defaultTtl or {@code null} for none + */ + public BackendServiceCdnPolicy setDefaultTtl(java.lang.Integer defaultTtl) { + this.defaultTtl = defaultTtl; + return this; + } + + /** + * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives + * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than + * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of + * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a + * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting + * that infrequently accessed objects may be evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxTtl() { + return maxTtl; + } + + /** + * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives + * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than + * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of + * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a + * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting + * that infrequently accessed objects may be evicted from the cache before the defined TTL. + * @param maxTtl maxTtl or {@code null} for none + */ + public BackendServiceCdnPolicy setMaxTtl(java.lang.Integer maxTtl) { + this.maxTtl = maxTtl; + return this; + } + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or + * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that + * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to + * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, + * and override any caching headers. By default, Cloud CDN will apply the following default TTLs + * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 + * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNegativeCaching() { + return negativeCaching; + } + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or + * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that + * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to + * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, + * and override any caching headers. By default, Cloud CDN will apply the following default TTLs + * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 + * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), + * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. + * @param negativeCaching negativeCaching or {@code null} for none + */ + public BackendServiceCdnPolicy setNegativeCaching(java.lang.Boolean negativeCaching) { + this.negativeCaching = negativeCaching; + return this; + } + + /** + * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to + * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * negative_caching_policy, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * @return value or {@code null} for none + */ + public java.util.List getNegativeCachingPolicy() { + return negativeCachingPolicy; + } + + /** + * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to + * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * negative_caching_policy, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * @param negativeCachingPolicy negativeCachingPolicy or {@code null} for none + */ + public BackendServiceCdnPolicy setNegativeCachingPolicy(java.util.List negativeCachingPolicy) { + this.negativeCachingPolicy = negativeCachingPolicy; + return this; + } + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestCoalescing() { + return requestCoalescing; + } + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. + * @param requestCoalescing requestCoalescing or {@code null} for none + */ + public BackendServiceCdnPolicy setRequestCoalescing(java.lang.Boolean requestCoalescing) { + this.requestCoalescing = requestCoalescing; + return this; + } + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * @return value or {@code null} for none + */ + public java.lang.Integer getServeWhileStale() { + return serveWhileStale; + } + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * @param serveWhileStale serveWhileStale or {@code null} for none + */ + public BackendServiceCdnPolicy setServeWhileStale(java.lang.Integer serveWhileStale) { + this.serveWhileStale = serveWhileStale; + return this; + } + + /** + * Maximum number of seconds the response to a signed URL request will be considered fresh. After + * this time period, the response will be revalidated before being served. Defaults to 1hr + * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as + * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, + * regardless of any existing Cache-Control header. The actual headers served in responses will + * not be altered. + * @return value or {@code null} for none + */ + public java.lang.Long getSignedUrlCacheMaxAgeSec() { + return signedUrlCacheMaxAgeSec; + } + + /** + * Maximum number of seconds the response to a signed URL request will be considered fresh. After + * this time period, the response will be revalidated before being served. Defaults to 1hr + * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as + * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, + * regardless of any existing Cache-Control header. The actual headers served in responses will + * not be altered. + * @param signedUrlCacheMaxAgeSec signedUrlCacheMaxAgeSec or {@code null} for none + */ + public BackendServiceCdnPolicy setSignedUrlCacheMaxAgeSec(java.lang.Long signedUrlCacheMaxAgeSec) { + this.signedUrlCacheMaxAgeSec = signedUrlCacheMaxAgeSec; + return this; + } + + /** + * [Output Only] Names of the keys for signing request URLs. + * @return value or {@code null} for none + */ + public java.util.List getSignedUrlKeyNames() { + return signedUrlKeyNames; + } + + /** + * [Output Only] Names of the keys for signing request URLs. + * @param signedUrlKeyNames signedUrlKeyNames or {@code null} for none + */ + public BackendServiceCdnPolicy setSignedUrlKeyNames(java.util.List signedUrlKeyNames) { + this.signedUrlKeyNames = signedUrlKeyNames; + return this; + } + + @Override + public BackendServiceCdnPolicy set(String fieldName, Object value) { + return (BackendServiceCdnPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceCdnPolicy clone() { + return (BackendServiceCdnPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java new file mode 100644 index 00000000000..60b9edfd01a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java @@ -0,0 +1,68 @@ +/* + * 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; + +/** + * Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization + * headers. Values are case insensitive. The presence of such a header overrides the cache_mode + * setting. + * + *

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 BackendServiceCdnPolicyBypassCacheOnRequestHeader extends com.google.api.client.json.GenericJson { + + /** + * The header field name to match on when bypassing cache. Values are case-insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The header field name to match on when bypassing cache. Values are case-insensitive. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The header field name to match on when bypassing cache. Values are case-insensitive. + * @param headerName headerName or {@code null} for none + */ + public BackendServiceCdnPolicyBypassCacheOnRequestHeader setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + @Override + public BackendServiceCdnPolicyBypassCacheOnRequestHeader set(String fieldName, Object value) { + return (BackendServiceCdnPolicyBypassCacheOnRequestHeader) super.set(fieldName, value); + } + + @Override + public BackendServiceCdnPolicyBypassCacheOnRequestHeader clone() { + return (BackendServiceCdnPolicyBypassCacheOnRequestHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyNegativeCachingPolicy.java new file mode 100644 index 00000000000..c13d18b7d50 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCdnPolicyNegativeCachingPolicy.java @@ -0,0 +1,102 @@ +/* + * 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; + +/** + * Specify CDN TTLs for response error codes. + * + *

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 BackendServiceCdnPolicyNegativeCachingPolicy extends com.google.api.client.json.GenericJson { + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be + * evicted from the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ttl; + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * @param code code or {@code null} for none + */ + public BackendServiceCdnPolicyNegativeCachingPolicy setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be + * evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public java.lang.Integer getTtl() { + return ttl; + } + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be + * evicted from the cache before the defined TTL. + * @param ttl ttl or {@code null} for none + */ + public BackendServiceCdnPolicyNegativeCachingPolicy setTtl(java.lang.Integer ttl) { + this.ttl = ttl; + return this; + } + + @Override + public BackendServiceCdnPolicyNegativeCachingPolicy set(String fieldName, Object value) { + return (BackendServiceCdnPolicyNegativeCachingPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceCdnPolicyNegativeCachingPolicy clone() { + return (BackendServiceCdnPolicyNegativeCachingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceConnectionTrackingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceConnectionTrackingPolicy.java new file mode 100644 index 00000000000..acc1333b1b9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceConnectionTrackingPolicy.java @@ -0,0 +1,249 @@ +/* + * 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; + +/** + * Connection Tracking configuration for this BackendService. + * + *

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 BackendServiceConnectionTrackingPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies connection persistence when backends are unhealthy. The default value is + * DEFAULT_FOR_PROTOCOL. + * + * If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for + * connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION + * (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist + * forUDP. + * + * If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the + * unhealthy backend are never persisted on the unhealthy backend. They are always diverted to + * newly selected healthy backends (unless all backends are unhealthy). + * + * If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless + * of protocol and session affinity. It is generally not recommended to use this mode overriding + * the default. + * + * For more details, see [Connection Persistence for Network Load + * Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend- + * service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load + * Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connectionPersistenceOnUnhealthyBackends; + + /** + * Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is + * not available publicly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableStrongAffinity; + + /** + * Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in + * seconds). + * + * For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes + * and the maximum is 16 hours. - It can be set only if Connection Tracking is less than + * 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and + * Tracking Mode is PER_SESSION). + * + * For external passthrough Network Load Balancers the default is 60 seconds. This option is not + * available publicly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer idleTimeoutSec; + + /** + * Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: + * This is the default mode. The Connection Tracking is performed as per the Connection Key + * (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking + * is performed as per the configured Session Affinity. It matches the configured Session + * Affinity. + * + * For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load- + * balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal + * TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trackingMode; + + /** + * Specifies connection persistence when backends are unhealthy. The default value is + * DEFAULT_FOR_PROTOCOL. + * + * If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for + * connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION + * (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist + * forUDP. + * + * If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the + * unhealthy backend are never persisted on the unhealthy backend. They are always diverted to + * newly selected healthy backends (unless all backends are unhealthy). + * + * If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless + * of protocol and session affinity. It is generally not recommended to use this mode overriding + * the default. + * + * For more details, see [Connection Persistence for Network Load + * Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend- + * service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load + * Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + * @return value or {@code null} for none + */ + public java.lang.String getConnectionPersistenceOnUnhealthyBackends() { + return connectionPersistenceOnUnhealthyBackends; + } + + /** + * Specifies connection persistence when backends are unhealthy. The default value is + * DEFAULT_FOR_PROTOCOL. + * + * If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for + * connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION + * (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist + * forUDP. + * + * If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the + * unhealthy backend are never persisted on the unhealthy backend. They are always diverted to + * newly selected healthy backends (unless all backends are unhealthy). + * + * If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless + * of protocol and session affinity. It is generally not recommended to use this mode overriding + * the default. + * + * For more details, see [Connection Persistence for Network Load + * Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend- + * service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load + * Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + * @param connectionPersistenceOnUnhealthyBackends connectionPersistenceOnUnhealthyBackends or {@code null} for none + */ + public BackendServiceConnectionTrackingPolicy setConnectionPersistenceOnUnhealthyBackends(java.lang.String connectionPersistenceOnUnhealthyBackends) { + this.connectionPersistenceOnUnhealthyBackends = connectionPersistenceOnUnhealthyBackends; + return this; + } + + /** + * Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is + * not available publicly. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableStrongAffinity() { + return enableStrongAffinity; + } + + /** + * Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is + * not available publicly. + * @param enableStrongAffinity enableStrongAffinity or {@code null} for none + */ + public BackendServiceConnectionTrackingPolicy setEnableStrongAffinity(java.lang.Boolean enableStrongAffinity) { + this.enableStrongAffinity = enableStrongAffinity; + return this; + } + + /** + * Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in + * seconds). + * + * For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes + * and the maximum is 16 hours. - It can be set only if Connection Tracking is less than + * 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and + * Tracking Mode is PER_SESSION). + * + * For external passthrough Network Load Balancers the default is 60 seconds. This option is not + * available publicly. + * @return value or {@code null} for none + */ + public java.lang.Integer getIdleTimeoutSec() { + return idleTimeoutSec; + } + + /** + * Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in + * seconds). + * + * For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes + * and the maximum is 16 hours. - It can be set only if Connection Tracking is less than + * 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and + * Tracking Mode is PER_SESSION). + * + * For external passthrough Network Load Balancers the default is 60 seconds. This option is not + * available publicly. + * @param idleTimeoutSec idleTimeoutSec or {@code null} for none + */ + public BackendServiceConnectionTrackingPolicy setIdleTimeoutSec(java.lang.Integer idleTimeoutSec) { + this.idleTimeoutSec = idleTimeoutSec; + return this; + } + + /** + * Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: + * This is the default mode. The Connection Tracking is performed as per the Connection Key + * (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking + * is performed as per the configured Session Affinity. It matches the configured Session + * Affinity. + * + * For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load- + * balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal + * TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). + * @return value or {@code null} for none + */ + public java.lang.String getTrackingMode() { + return trackingMode; + } + + /** + * Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: + * This is the default mode. The Connection Tracking is performed as per the Connection Key + * (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking + * is performed as per the configured Session Affinity. It matches the configured Session + * Affinity. + * + * For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load- + * balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal + * TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). + * @param trackingMode trackingMode or {@code null} for none + */ + public BackendServiceConnectionTrackingPolicy setTrackingMode(java.lang.String trackingMode) { + this.trackingMode = trackingMode; + return this; + } + + @Override + public BackendServiceConnectionTrackingPolicy set(String fieldName, Object value) { + return (BackendServiceConnectionTrackingPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceConnectionTrackingPolicy clone() { + return (BackendServiceConnectionTrackingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCustomMetric.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCustomMetric.java new file mode 100644 index 00000000000..8788a824d1f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceCustomMetric.java @@ -0,0 +1,108 @@ +/* + * 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; + +/** + * Custom Metrics are used for WEIGHTED_ROUND_ROBIN locality_lb_policy. + * + *

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 BackendServiceCustomMetric extends com.google.api.client.json.GenericJson { + + /** + * If true, the metric data is not used for load balancing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dryRun; + + /** + * Name of a custom utilization signal. The name must be 1-64 characters long and match the + * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be + * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase + * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For + * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global + * or regional backend service with the loadBalancingScheme set to + * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * If true, the metric data is not used for load balancing. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDryRun() { + return dryRun; + } + + /** + * If true, the metric data is not used for load balancing. + * @param dryRun dryRun or {@code null} for none + */ + public BackendServiceCustomMetric setDryRun(java.lang.Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Name of a custom utilization signal. The name must be 1-64 characters long and match the + * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be + * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase + * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For + * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global + * or regional backend service with the loadBalancingScheme set to + * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of a custom utilization signal. The name must be 1-64 characters long and match the + * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be + * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase + * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For + * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global + * or regional backend service with the loadBalancingScheme set to + * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + * @param name name or {@code null} for none + */ + public BackendServiceCustomMetric setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public BackendServiceCustomMetric set(String fieldName, Object value) { + return (BackendServiceCustomMetric) super.set(fieldName, value); + } + + @Override + public BackendServiceCustomMetric clone() { + return (BackendServiceCustomMetric) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java new file mode 100644 index 00000000000..6d41f11341d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -0,0 +1,164 @@ +/* + * 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; + +/** + * For load balancers that have configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external + * passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). On failover or failback, this field + * indicates whether connection draining will be honored. Google Cloud has a fixed connection + * draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the + * active pool during failover and failback, immediately draining traffic. A setting of false allows + * existing TCP connections to persist, even on VMs no longer in the active pool, for up to the + * duration of the connection draining timeout (10 minutes). + * + *

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 BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { + + /** + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * + * The default is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableConnectionDrainOnFailover; + + /** + * If set to true, connections to the load balancer are dropped when all primary and all backup + * backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs + * when all primary and all backup backend VMs are unhealthy. For load balancers that have + * configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). The default is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dropTrafficIfUnhealthy; + + /** + * The value of the field must be in the range[0, 1]. If the value is 0, the load balancer + * performs a failover when the number of healthy primary VMs equals zero. For all other values, + * the load balancer performs a failover when the total number of healthy primary VMs is less than + * this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load + * Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external TCP/UDP Load Balancing](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float failoverRatio; + + /** + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * + * The default is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableConnectionDrainOnFailover() { + return disableConnectionDrainOnFailover; + } + + /** + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * + * The default is false. + * @param disableConnectionDrainOnFailover disableConnectionDrainOnFailover or {@code null} for none + */ + public BackendServiceFailoverPolicy setDisableConnectionDrainOnFailover(java.lang.Boolean disableConnectionDrainOnFailover) { + this.disableConnectionDrainOnFailover = disableConnectionDrainOnFailover; + return this; + } + + /** + * If set to true, connections to the load balancer are dropped when all primary and all backup + * backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs + * when all primary and all backup backend VMs are unhealthy. For load balancers that have + * configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). The default is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDropTrafficIfUnhealthy() { + return dropTrafficIfUnhealthy; + } + + /** + * If set to true, connections to the load balancer are dropped when all primary and all backup + * backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs + * when all primary and all backup backend VMs are unhealthy. For load balancers that have + * configurable failover: [Internal passthrough Network Load + * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external passthrough Network Load Balancers](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). The default is false. + * @param dropTrafficIfUnhealthy dropTrafficIfUnhealthy or {@code null} for none + */ + public BackendServiceFailoverPolicy setDropTrafficIfUnhealthy(java.lang.Boolean dropTrafficIfUnhealthy) { + this.dropTrafficIfUnhealthy = dropTrafficIfUnhealthy; + return this; + } + + /** + * The value of the field must be in the range[0, 1]. If the value is 0, the load balancer + * performs a failover when the number of healthy primary VMs equals zero. For all other values, + * the load balancer performs a failover when the total number of healthy primary VMs is less than + * this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load + * Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external TCP/UDP Load Balancing](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). + * @return value or {@code null} for none + */ + public java.lang.Float getFailoverRatio() { + return failoverRatio; + } + + /** + * The value of the field must be in the range[0, 1]. If the value is 0, the load balancer + * performs a failover when the number of healthy primary VMs equals zero. For all other values, + * the load balancer performs a failover when the total number of healthy primary VMs is less than + * this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load + * Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and + * [external TCP/UDP Load Balancing](https://cloud.google.com/load- + * balancing/docs/network/networklb-failover-overview). + * @param failoverRatio failoverRatio or {@code null} for none + */ + public BackendServiceFailoverPolicy setFailoverRatio(java.lang.Float failoverRatio) { + this.failoverRatio = failoverRatio; + return this; + } + + @Override + public BackendServiceFailoverPolicy set(String fieldName, Object value) { + return (BackendServiceFailoverPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceFailoverPolicy clone() { + return (BackendServiceFailoverPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java new file mode 100644 index 00000000000..2df9c4eb5fe --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -0,0 +1,120 @@ +/* + * 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 BackendServiceGroupHealth. + * + *

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 BackendServiceGroupHealth extends com.google.api.client.json.GenericJson { + + /** + * Metadata defined as annotations on the network endpoint group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * Health state of the backend instances or endpoints in requested instance or network endpoint + * group, determined based on configured health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthStatus; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the + * health of backend services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Metadata defined as annotations on the network endpoint group. + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * Metadata defined as annotations on the network endpoint group. + * @param annotations annotations or {@code null} for none + */ + public BackendServiceGroupHealth setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Health state of the backend instances or endpoints in requested instance or network endpoint + * group, determined based on configured health checks. + * @return value or {@code null} for none + */ + public java.util.List getHealthStatus() { + return healthStatus; + } + + /** + * Health state of the backend instances or endpoints in requested instance or network endpoint + * group, determined based on configured health checks. + * @param healthStatus healthStatus or {@code null} for none + */ + public BackendServiceGroupHealth setHealthStatus(java.util.List healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the + * health of backend services. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the + * health of backend services. + * @param kind kind or {@code null} for none + */ + public BackendServiceGroupHealth setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public BackendServiceGroupHealth set(String fieldName, Object value) { + return (BackendServiceGroupHealth) super.set(fieldName, value); + } + + @Override + public BackendServiceGroupHealth clone() { + return (BackendServiceGroupHealth) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicy.java new file mode 100644 index 00000000000..c27d01da2ed --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicy.java @@ -0,0 +1,255 @@ +/* + * 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 BackendServiceHAPolicy. + * + *

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 BackendServiceHAPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. + * + * Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the + * haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly + * define a new network endpoint as the leader. This method is faster than updating the leader + * using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network + * endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet + * (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but + * temporarily associates the forwarding rule IP address with that VM, and both new and in- + * flight packets are quickly delivered to that VM. + * + * Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated + * re-routing stays active for approximately 20 minutes. After triggering fast failover, you + * must also appropriately set the haPolicy.leader. - The new leader instance should + * continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes + * after updating the haPolicy.leader (but stop immediately if it is no longer the leader). + * - After triggering a fast failover, we recommend that you wait at least 3 seconds before + * sending another GARP/RA packet from a different VM instance to avoid race conditions. - + * Don't send GARP/RA packets from different VM instances at the same time. If multiple + * instances continue to send GARP/RA packets, traffic might be routed to different + * destinations in an alternating order. This condition ceases when a single instance issues + * a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using + * the haPolicy.leader API to change the leader to a different instance will have no effect + * until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the + * GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional + * backend service, you need only send a GARP or RA packet for a single forwarding rule + * virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will + * also be moved to the sender of the GARP or RA packet. + * + * The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): + * - Multiple forwarding rules cannot use the same IP address if one of them refers to a + * regional backend service with fastIPMove. - The regional backend service must set the + * network field, and all NEGs must belong to that network. However, individual NEGs can + * belong to different subnetworks of that network. - The maximum number of network endpoints + * across all backends of a backend service with fastIPMove is 32. - The maximum number of + * backend services with fastIPMove that can have the same network endpoint attached to one of + * its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a + * region is 64. - The network endpoints that are attached to a backend of a backend service + * with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader + * by a static route next hop will not be redirected to a new leader by fast failover. Such + * traffic will only be redirected once an haPolicy.leader update has taken effect. Only + * traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast + * failover. + * + * haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be + * updated. + * + * By default, fastIpMove is set to DISABLED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fastIPMove; + + /** + * Selects one of the network endpoints attached to the backend NEGs of this service as the active + * endpoint (the leader) that receives all traffic. + * + * When the leader changes, there is no connection draining to persist existing connections on the + * old leader. + * + * You are responsible for selecting a suitable endpoint as the leader. For example, preferring a + * healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint + * health, and selects the configured leader unconditionally. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceHAPolicyLeader leader; + + /** + * Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. + * + * Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the + * haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly + * define a new network endpoint as the leader. This method is faster than updating the leader + * using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network + * endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet + * (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but + * temporarily associates the forwarding rule IP address with that VM, and both new and in- + * flight packets are quickly delivered to that VM. + * + * Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated + * re-routing stays active for approximately 20 minutes. After triggering fast failover, you + * must also appropriately set the haPolicy.leader. - The new leader instance should + * continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes + * after updating the haPolicy.leader (but stop immediately if it is no longer the leader). + * - After triggering a fast failover, we recommend that you wait at least 3 seconds before + * sending another GARP/RA packet from a different VM instance to avoid race conditions. - + * Don't send GARP/RA packets from different VM instances at the same time. If multiple + * instances continue to send GARP/RA packets, traffic might be routed to different + * destinations in an alternating order. This condition ceases when a single instance issues + * a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using + * the haPolicy.leader API to change the leader to a different instance will have no effect + * until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the + * GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional + * backend service, you need only send a GARP or RA packet for a single forwarding rule + * virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will + * also be moved to the sender of the GARP or RA packet. + * + * The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): + * - Multiple forwarding rules cannot use the same IP address if one of them refers to a + * regional backend service with fastIPMove. - The regional backend service must set the + * network field, and all NEGs must belong to that network. However, individual NEGs can + * belong to different subnetworks of that network. - The maximum number of network endpoints + * across all backends of a backend service with fastIPMove is 32. - The maximum number of + * backend services with fastIPMove that can have the same network endpoint attached to one of + * its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a + * region is 64. - The network endpoints that are attached to a backend of a backend service + * with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader + * by a static route next hop will not be redirected to a new leader by fast failover. Such + * traffic will only be redirected once an haPolicy.leader update has taken effect. Only + * traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast + * failover. + * + * haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be + * updated. + * + * By default, fastIpMove is set to DISABLED. + * @return value or {@code null} for none + */ + public java.lang.String getFastIPMove() { + return fastIPMove; + } + + /** + * Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. + * + * Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the + * haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly + * define a new network endpoint as the leader. This method is faster than updating the leader + * using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network + * endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet + * (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but + * temporarily associates the forwarding rule IP address with that VM, and both new and in- + * flight packets are quickly delivered to that VM. + * + * Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated + * re-routing stays active for approximately 20 minutes. After triggering fast failover, you + * must also appropriately set the haPolicy.leader. - The new leader instance should + * continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes + * after updating the haPolicy.leader (but stop immediately if it is no longer the leader). + * - After triggering a fast failover, we recommend that you wait at least 3 seconds before + * sending another GARP/RA packet from a different VM instance to avoid race conditions. - + * Don't send GARP/RA packets from different VM instances at the same time. If multiple + * instances continue to send GARP/RA packets, traffic might be routed to different + * destinations in an alternating order. This condition ceases when a single instance issues + * a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using + * the haPolicy.leader API to change the leader to a different instance will have no effect + * until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the + * GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional + * backend service, you need only send a GARP or RA packet for a single forwarding rule + * virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will + * also be moved to the sender of the GARP or RA packet. + * + * The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): + * - Multiple forwarding rules cannot use the same IP address if one of them refers to a + * regional backend service with fastIPMove. - The regional backend service must set the + * network field, and all NEGs must belong to that network. However, individual NEGs can + * belong to different subnetworks of that network. - The maximum number of network endpoints + * across all backends of a backend service with fastIPMove is 32. - The maximum number of + * backend services with fastIPMove that can have the same network endpoint attached to one of + * its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a + * region is 64. - The network endpoints that are attached to a backend of a backend service + * with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader + * by a static route next hop will not be redirected to a new leader by fast failover. Such + * traffic will only be redirected once an haPolicy.leader update has taken effect. Only + * traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast + * failover. + * + * haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be + * updated. + * + * By default, fastIpMove is set to DISABLED. + * @param fastIPMove fastIPMove or {@code null} for none + */ + public BackendServiceHAPolicy setFastIPMove(java.lang.String fastIPMove) { + this.fastIPMove = fastIPMove; + return this; + } + + /** + * Selects one of the network endpoints attached to the backend NEGs of this service as the active + * endpoint (the leader) that receives all traffic. + * + * When the leader changes, there is no connection draining to persist existing connections on the + * old leader. + * + * You are responsible for selecting a suitable endpoint as the leader. For example, preferring a + * healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint + * health, and selects the configured leader unconditionally. + * @return value or {@code null} for none + */ + public BackendServiceHAPolicyLeader getLeader() { + return leader; + } + + /** + * Selects one of the network endpoints attached to the backend NEGs of this service as the active + * endpoint (the leader) that receives all traffic. + * + * When the leader changes, there is no connection draining to persist existing connections on the + * old leader. + * + * You are responsible for selecting a suitable endpoint as the leader. For example, preferring a + * healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint + * health, and selects the configured leader unconditionally. + * @param leader leader or {@code null} for none + */ + public BackendServiceHAPolicy setLeader(BackendServiceHAPolicyLeader leader) { + this.leader = leader; + return this; + } + + @Override + public BackendServiceHAPolicy set(String fieldName, Object value) { + return (BackendServiceHAPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicy clone() { + return (BackendServiceHAPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeader.java new file mode 100644 index 00000000000..d6fb2c39be3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeader.java @@ -0,0 +1,114 @@ +/* + * 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 BackendServiceHAPolicyLeader. + * + *

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 BackendServiceHAPolicyLeader extends com.google.api.client.json.GenericJson { + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. + * + * The leader's backendGroup must already be specified as a backend of this backend service. + * Removing a backend that is designated as the leader's backendGroup is not permitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendGroup; + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. + * + * This network endpoint cannot be detached from the NEG specified in the + * haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the + * leader is removed from the haPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint; + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. + * + * The leader's backendGroup must already be specified as a backend of this backend service. + * Removing a backend that is designated as the leader's backendGroup is not permitted. + * @return value or {@code null} for none + */ + public java.lang.String getBackendGroup() { + return backendGroup; + } + + /** + * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint + * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. + * + * The leader's backendGroup must already be specified as a backend of this backend service. + * Removing a backend that is designated as the leader's backendGroup is not permitted. + * @param backendGroup backendGroup or {@code null} for none + */ + public BackendServiceHAPolicyLeader setBackendGroup(java.lang.String backendGroup) { + this.backendGroup = backendGroup; + return this; + } + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. + * + * This network endpoint cannot be detached from the NEG specified in the + * haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the + * leader is removed from the haPolicy. + * @return value or {@code null} for none + */ + public BackendServiceHAPolicyLeaderNetworkEndpoint getNetworkEndpoint() { + return networkEndpoint; + } + + /** + * The network endpoint within the leader.backendGroup that is designated as the leader. + * + * This network endpoint cannot be detached from the NEG specified in the + * haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the + * leader is removed from the haPolicy. + * @param networkEndpoint networkEndpoint or {@code null} for none + */ + public BackendServiceHAPolicyLeader setNetworkEndpoint(BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint) { + this.networkEndpoint = networkEndpoint; + return this; + } + + @Override + public BackendServiceHAPolicyLeader set(String fieldName, Object value) { + return (BackendServiceHAPolicyLeader) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicyLeader clone() { + return (BackendServiceHAPolicyLeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java new file mode 100644 index 00000000000..7120203d0a2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java @@ -0,0 +1,78 @@ +/* + * 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 BackendServiceHAPolicyLeaderNetworkEndpoint. + * + *

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 BackendServiceHAPolicyLeaderNetworkEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. + * + * The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization + * requires the following IAM permission on the specified resource instance: compute.instances.use + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. + * + * The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization + * requires the following IAM permission on the specified resource instance: compute.instances.use + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The name of the VM instance of the leader network endpoint. The instance must already be + * attached to the NEG specified in the haPolicy.leader.backendGroup. + * + * The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization + * requires the following IAM permission on the specified resource instance: compute.instances.use + * @param instance instance or {@code null} for none + */ + public BackendServiceHAPolicyLeaderNetworkEndpoint setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + @Override + public BackendServiceHAPolicyLeaderNetworkEndpoint set(String fieldName, Object value) { + return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.set(fieldName, value); + } + + @Override + public BackendServiceHAPolicyLeaderNetworkEndpoint clone() { + return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHttpCookie.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHttpCookie.java new file mode 100644 index 00000000000..76aa839d69e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceHttpCookie.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The HTTP cookie used for stateful session affinity. + * + *

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 BackendServiceHttpCookie extends com.google.api.client.json.GenericJson { + + /** + * Name of the cookie. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Path to set for the cookie. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Lifetime of the cookie. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration ttl; + + /** + * Name of the cookie. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the cookie. + * @param name name or {@code null} for none + */ + public BackendServiceHttpCookie setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Path to set for the cookie. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Path to set for the cookie. + * @param path path or {@code null} for none + */ + public BackendServiceHttpCookie setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Lifetime of the cookie. + * @return value or {@code null} for none + */ + public Duration getTtl() { + return ttl; + } + + /** + * Lifetime of the cookie. + * @param ttl ttl or {@code null} for none + */ + public BackendServiceHttpCookie setTtl(Duration ttl) { + this.ttl = ttl; + return this; + } + + @Override + public BackendServiceHttpCookie set(String fieldName, Object value) { + return (BackendServiceHttpCookie) super.set(fieldName, value); + } + + @Override + public BackendServiceHttpCookie clone() { + return (BackendServiceHttpCookie) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java new file mode 100644 index 00000000000..dd4899bf142 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -0,0 +1,150 @@ +/* + * 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; + +/** + * Identity-Aware Proxy + * + *

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 BackendServiceIAP extends com.google.api.client.json.GenericJson { + + /** + * Whether the serving infrastructure will authenticate and authorize all incoming requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * OAuth2 client ID to use for the authentication flow. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauth2ClientId; + + /** + * OAuth2 client secret to use for the authentication flow. For security reasons, this value + * cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the + * oauth2ClientSecretSha256 field. + * + * @InputOnly + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauth2ClientSecret; + + /** + * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauth2ClientSecretSha256; + + /** + * Whether the serving infrastructure will authenticate and authorize all incoming requests. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Whether the serving infrastructure will authenticate and authorize all incoming requests. + * @param enabled enabled or {@code null} for none + */ + public BackendServiceIAP setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * OAuth2 client ID to use for the authentication flow. + * @return value or {@code null} for none + */ + public java.lang.String getOauth2ClientId() { + return oauth2ClientId; + } + + /** + * OAuth2 client ID to use for the authentication flow. + * @param oauth2ClientId oauth2ClientId or {@code null} for none + */ + public BackendServiceIAP setOauth2ClientId(java.lang.String oauth2ClientId) { + this.oauth2ClientId = oauth2ClientId; + return this; + } + + /** + * OAuth2 client secret to use for the authentication flow. For security reasons, this value + * cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the + * oauth2ClientSecretSha256 field. + * + * @InputOnly + * @return value or {@code null} for none + */ + public java.lang.String getOauth2ClientSecret() { + return oauth2ClientSecret; + } + + /** + * OAuth2 client secret to use for the authentication flow. For security reasons, this value + * cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the + * oauth2ClientSecretSha256 field. + * + * @InputOnly + * @param oauth2ClientSecret oauth2ClientSecret or {@code null} for none + */ + public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecret) { + this.oauth2ClientSecret = oauth2ClientSecret; + return this; + } + + /** + * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * @return value or {@code null} for none + */ + public java.lang.String getOauth2ClientSecretSha256() { + return oauth2ClientSecretSha256; + } + + /** + * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * @param oauth2ClientSecretSha256 oauth2ClientSecretSha256 or {@code null} for none + */ + public BackendServiceIAP setOauth2ClientSecretSha256(java.lang.String oauth2ClientSecretSha256) { + this.oauth2ClientSecretSha256 = oauth2ClientSecretSha256; + return this; + } + + @Override + public BackendServiceIAP set(String fieldName, Object value) { + return (BackendServiceIAP) super.set(fieldName, value); + } + + @Override + public BackendServiceIAP clone() { + return (BackendServiceIAP) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceList.java new file mode 100644 index 00000000000..e2255fd72fc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of BackendService resources. + * + *

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 BackendServiceList extends com.google.api.client.json.GenericJson { + + /** + * [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 BackendService 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 BackendService 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(BackendService.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of + * backend services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 BackendServiceList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of BackendService resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of BackendService resources. + * @param items items or {@code null} for none + */ + public BackendServiceList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of + * backend services. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of + * backend services. + * @param kind kind or {@code null} for none + */ + public BackendServiceList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public BackendServiceList 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 BackendServiceList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 BackendServiceList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendServiceList set(String fieldName, Object value) { + return (BackendServiceList) super.set(fieldName, value); + } + + @Override + public BackendServiceList clone() { + return (BackendServiceList) 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 BackendServiceListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java new file mode 100644 index 00000000000..9ab6babcf45 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of usable BackendService resources. + * + *

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 BackendServiceListUsable extends com.google.api.client.json.GenericJson { + + /** + * [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 BackendService 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 BackendService 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(BackendService.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists + * of usable backend services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 BackendServiceListUsable setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of BackendService resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of BackendService resources. + * @param items items or {@code null} for none + */ + public BackendServiceListUsable setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists + * of usable backend services. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists + * of usable backend services. + * @param kind kind or {@code null} for none + */ + public BackendServiceListUsable setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public BackendServiceListUsable 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 BackendServiceListUsable setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 BackendServiceListUsable setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendServiceListUsable set(String fieldName, Object value) { + return (BackendServiceListUsable) super.set(fieldName, value); + } + + @Override + public BackendServiceListUsable clone() { + return (BackendServiceListUsable) 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 BackendServiceListUsableWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfig.java new file mode 100644 index 00000000000..2bb91377a06 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfig.java @@ -0,0 +1,85 @@ +/* + * 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; + +/** + * Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented + * by the end user. + * + *

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 BackendServiceLocalityLoadBalancingPolicyConfig extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy customPolicy; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy; + + /** + * @return value or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy() { + return customPolicy; + } + + /** + * @param customPolicy customPolicy or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfig setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy customPolicy) { + this.customPolicy = customPolicy; + return this; + } + + /** + * @return value or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy() { + return policy; + } + + /** + * @param policy policy or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfig setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy) { + this.policy = policy; + return this; + } + + @Override + public BackendServiceLocalityLoadBalancingPolicyConfig set(String fieldName, Object value) { + return (BackendServiceLocalityLoadBalancingPolicyConfig) super.set(fieldName, value); + } + + @Override + public BackendServiceLocalityLoadBalancingPolicyConfig clone() { + return (BackendServiceLocalityLoadBalancingPolicyConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java new file mode 100644 index 00000000000..d3689c5dc0f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java @@ -0,0 +1,120 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for a custom policy implemented by the user and deployed with the client. + * + *

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 BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy extends com.google.api.client.json.GenericJson { + + /** + * An optional, arbitrary JSON object with configuration data, understood by a locally installed + * custom policy implementation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Identifies the custom policy. + * + * The value should match the name of a custom implementation registered on the gRPC clients. It + * should follow protocol buffer message naming conventions and include the full path (for + * example, myorg.CustomLbPolicy). The maximum length is 256 characters. + * + * Do not specify the same custom policy more than once for a backend. If you do, the + * configuration is rejected. + * + * For an example of how to use this field, seeUse a custom policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * An optional, arbitrary JSON object with configuration data, understood by a locally installed + * custom policy implementation. + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * An optional, arbitrary JSON object with configuration data, understood by a locally installed + * custom policy implementation. + * @param data data or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * Identifies the custom policy. + * + * The value should match the name of a custom implementation registered on the gRPC clients. It + * should follow protocol buffer message naming conventions and include the full path (for + * example, myorg.CustomLbPolicy). The maximum length is 256 characters. + * + * Do not specify the same custom policy more than once for a backend. If you do, the + * configuration is rejected. + * + * For an example of how to use this field, seeUse a custom policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifies the custom policy. + * + * The value should match the name of a custom implementation registered on the gRPC clients. It + * should follow protocol buffer message naming conventions and include the full path (for + * example, myorg.CustomLbPolicy). The maximum length is 256 characters. + * + * Do not specify the same custom policy more than once for a backend. If you do, the + * configuration is rejected. + * + * For an example of how to use this field, seeUse a custom policy. + * @param name name or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy set(String fieldName, Object value) { + return (BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy clone() { + return (BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java new file mode 100644 index 00000000000..88e85b141a7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for a built-in load balancing policy. + * + *

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 BackendServiceLocalityLoadBalancingPolicyConfigPolicy extends com.google.api.client.json.GenericJson { + + /** + * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java + * clients, LEAST_REQUEST. For information about these values, see the description of + * localityLbPolicy. + * + * Do not specify the same policy more than once for a backend. If you do, the configuration is + * rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java + * clients, LEAST_REQUEST. For information about these values, see the description of + * localityLbPolicy. + * + * Do not specify the same policy more than once for a backend. If you do, the configuration is + * rejected. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java + * clients, LEAST_REQUEST. For information about these values, see the description of + * localityLbPolicy. + * + * Do not specify the same policy more than once for a backend. If you do, the configuration is + * rejected. + * @param name name or {@code null} for none + */ + public BackendServiceLocalityLoadBalancingPolicyConfigPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public BackendServiceLocalityLoadBalancingPolicyConfigPolicy set(String fieldName, Object value) { + return (BackendServiceLocalityLoadBalancingPolicyConfigPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceLocalityLoadBalancingPolicyConfigPolicy clone() { + return (BackendServiceLocalityLoadBalancingPolicyConfigPolicy) super.clone(); + } + +} From a9d1f409cef9e75b94d4931845b63d7f40c5e630 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:18 -0700 Subject: [PATCH 02/23] chore: regenerate compute client --- .../model/BackendServiceLogConfig.java | 213 +++ ...kendServiceLogConfigLoggingHttpHeader.java | 66 + ...viceNetworkPassThroughLbTrafficPolicy.java | 69 + ...ssThroughLbTrafficPolicyZonalAffinity.java | 135 ++ .../BackendServiceOrchestrationInfo.java | 66 + .../compute/model/BackendServiceParams.java | 84 + .../model/BackendServiceReference.java | 63 + .../model/BackendServiceTlsSettings.java | 246 +++ ...ckendServiceTlsSettingsSubjectAltName.java | 92 + .../compute/model/BackendServiceUsedBy.java | 69 + .../model/BackendServicesScopedList.java | 278 +++ .../api/services/compute/model/BfdPacket.java | 441 +++++ .../api/services/compute/model/BfdStatus.java | 300 +++ .../compute/model/BfdStatusPacketCounts.java | 144 ++ .../api/services/compute/model/BgpRoute.java | 162 ++ .../compute/model/BgpRouteAsPath.java | 120 ++ ...teNetworkLayerReachabilityInformation.java | 90 + .../api/services/compute/model/Binding.java | 375 ++++ .../compute/model/BulkInsertDiskResource.java | 127 ++ .../model/BulkInsertInstanceResource.java | 298 +++ ...InstanceResourcePerInstanceProperties.java | 93 + .../model/BulkInsertOperationStatus.java | 165 ++ .../compute/model/BulkSetLabelsRequest.java | 133 ++ .../model/BulkZoneSetLabelsRequest.java | 69 + .../compute/model/BundledLocalSsds.java | 90 + .../compute/model/CacheInvalidationRule.java | 132 ++ .../compute/model/CacheKeyPolicy.java | 231 +++ .../services/compute/model/CachePolicy.java | 441 +++++ .../model/CachePolicyCacheKeyPolicy.java | 307 +++ .../CachePolicyNegativeCachingPolicy.java | 102 + .../model/CalendarModeAdviceRequest.java | 72 + .../model/CalendarModeAdviceResponse.java | 71 + .../model/CalendarModeRecommendation.java | 70 + .../compute/model/CapacityAdviceRequest.java | 139 ++ ...pacityAdviceRequestDistributionPolicy.java | 93 + ...stDistributionPolicyZoneConfiguration.java | 72 + ...dviceRequestInstanceFlexibilityPolicy.java | 69 + ...nceFlexibilityPolicyInstanceSelection.java | 147 ++ ...tyPolicyInstanceSelectionAttachedDisk.java | 66 + ...pacityAdviceRequestInstanceProperties.java | 66 + ...ceRequestInstancePropertiesScheduling.java | 66 + .../compute/model/CapacityAdviceResponse.java | 69 + .../CapacityAdviceResponseRecommendation.java | 90 + ...ityAdviceResponseRecommendationScores.java | 96 + ...cityAdviceResponseRecommendationShard.java | 139 ++ .../compute/model/CapacityHistoryRequest.java | 114 ++ ...acityHistoryRequestInstanceProperties.java | 144 ++ ...RequestInstancePropertiesAttachedDisk.java | 66 + ...ryRequestInstancePropertiesScheduling.java | 72 + .../CapacityHistoryRequestLocationPolicy.java | 84 + .../model/CapacityHistoryResponse.java | 144 ++ ...pacityHistoryResponsePreemptionRecord.java | 96 + .../CapacityHistoryResponsePriceRecord.java | 90 + .../services/compute/model/CapacityPool.java | 93 + .../compute/model/CircuitBreakers.java | 213 +++ .../services/compute/model/Commitment.java | 764 ++++++++ .../model/CommitmentAggregatedList.java | 404 ++++ .../compute/model/CommitmentList.java | 386 ++++ .../compute/model/CommitmentParams.java | 78 + .../model/CommitmentResourceStatus.java | 72 + .../compute/model/CommitmentsScopedList.java | 282 +++ .../compute/model/CompositeHealthCheck.java | 397 ++++ .../CompositeHealthCheckAggregatedList.java | 401 ++++ .../model/CompositeHealthCheckHealth.java | 117 ++ .../model/CompositeHealthCheckList.java | 386 ++++ ...ksGetHealthResponseHealthSourceHealth.java | 90 + .../CompositeHealthChecksScopedList.java | 281 +++ .../model/ConfidentialInstanceConfig.java | 90 + .../compute/model/ConnectionDraining.java | 69 + .../ConsistentHashLoadBalancerSettings.java | 138 ++ ...entHashLoadBalancerSettingsHttpCookie.java | 115 ++ .../services/compute/model/CorsPolicy.java | 280 +++ .../compute/model/CrossSiteNetwork.java | 207 +++ .../compute/model/CrossSiteNetworkList.java | 434 +++++ .../model/CustomErrorResponsePolicy.java | 151 ++ ...ResponsePolicyCustomErrorResponseRule.java | 166 ++ .../compute/model/CustomerEncryptionKey.java | 249 +++ .../CustomerEncryptionKeyProtectedDisk.java | 99 + .../api/services/compute/model/Date.java | 127 ++ .../api/services/compute/model/DateTime.java | 290 +++ .../compute/model/DeprecationStatus.java | 195 ++ .../api/services/compute/model/Disk.java | 1645 +++++++++++++++++ .../compute/model/DiskAggregatedList.java | 404 ++++ .../compute/model/DiskAsyncReplication.java | 165 ++ .../model/DiskAsyncReplicationList.java | 63 + .../model/DiskInstantiationConfig.java | 172 ++ .../api/services/compute/model/DiskList.java | 383 ++++ .../compute/model/DiskMoveRequest.java | 108 ++ .../services/compute/model/DiskParams.java | 78 + .../compute/model/DiskResourceStatus.java | 87 + ...kResourceStatusAsyncReplicationStatus.java | 63 + .../api/services/compute/model/DiskType.java | 329 ++++ .../compute/model/DiskTypeAggregatedList.java | 401 ++++ .../services/compute/model/DiskTypeList.java | 383 ++++ .../compute/model/DiskTypesScopedList.java | 281 +++ .../model/DiskUpdateKmsKeyRequest.java | 84 + .../DisksAddResourcePoliciesRequest.java | 69 + .../DisksRemoveResourcePoliciesRequest.java | 66 + .../compute/model/DisksResizeRequest.java | 66 + .../compute/model/DisksScopedList.java | 278 +++ 100 files changed, 19035 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettingsSubjectAltName.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServicesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdPacket.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatusPacketCounts.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRoute.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteNetworkLayerReachabilityInformation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Binding.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertOperationStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheKeyPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesScheduling.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestLocationPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePreemptionRecord.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePriceRecord.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityPool.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CircuitBreakers.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Commitment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConnectionDraining.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettingsHttpCookie.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CorsPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicyCustomErrorResponseRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKeyProtectedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Date.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DateTime.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DeprecationStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Disk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplicationList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskInstantiationConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskMoveRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatusAsyncReplicationStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskType.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksAddResourcePoliciesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksRemoveResourcePoliciesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksResizeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksScopedList.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java new file mode 100644 index 00000000000..e5d74348cd0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The available logging options for the load balancer traffic served by this backend service. + * + *

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 BackendServiceLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Denotes whether to enable logging for the load balancer traffic served by this backend service. + * The default value is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enable; + + /** + * The list of request headers that will be logged to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loggingHttpRequestHeaders; + + /** + * The list of response headers that will be logged to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loggingHttpResponseHeaders; + + /** + * This field can only be specified if logging is enabled for this backend service and + * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to + * include in the logs. For example: serverInstance, serverGkeDetails.cluster, + * serverGkeDetails.pod.podNamespace + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List optionalFields; + + /** + * This field can only be specified if logging is enabled for this backend service. Configures + * whether all, none or a subset of optional fields should be added to the reported logs. One of + * [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String optionalMode; + + /** + * This field can only be specified if logging is enabled for this backend service. The value of + * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer + * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. + * The default value is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float sampleRate; + + /** + * Denotes whether to enable logging for the load balancer traffic served by this backend service. + * The default value is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnable() { + return enable; + } + + /** + * Denotes whether to enable logging for the load balancer traffic served by this backend service. + * The default value is false. + * @param enable enable or {@code null} for none + */ + public BackendServiceLogConfig setEnable(java.lang.Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The list of request headers that will be logged to Stackdriver. + * @return value or {@code null} for none + */ + public java.util.List getLoggingHttpRequestHeaders() { + return loggingHttpRequestHeaders; + } + + /** + * The list of request headers that will be logged to Stackdriver. + * @param loggingHttpRequestHeaders loggingHttpRequestHeaders or {@code null} for none + */ + public BackendServiceLogConfig setLoggingHttpRequestHeaders(java.util.List loggingHttpRequestHeaders) { + this.loggingHttpRequestHeaders = loggingHttpRequestHeaders; + return this; + } + + /** + * The list of response headers that will be logged to Stackdriver. + * @return value or {@code null} for none + */ + public java.util.List getLoggingHttpResponseHeaders() { + return loggingHttpResponseHeaders; + } + + /** + * The list of response headers that will be logged to Stackdriver. + * @param loggingHttpResponseHeaders loggingHttpResponseHeaders or {@code null} for none + */ + public BackendServiceLogConfig setLoggingHttpResponseHeaders(java.util.List loggingHttpResponseHeaders) { + this.loggingHttpResponseHeaders = loggingHttpResponseHeaders; + return this; + } + + /** + * This field can only be specified if logging is enabled for this backend service and + * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to + * include in the logs. For example: serverInstance, serverGkeDetails.cluster, + * serverGkeDetails.pod.podNamespace + * @return value or {@code null} for none + */ + public java.util.List getOptionalFields() { + return optionalFields; + } + + /** + * This field can only be specified if logging is enabled for this backend service and + * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to + * include in the logs. For example: serverInstance, serverGkeDetails.cluster, + * serverGkeDetails.pod.podNamespace + * @param optionalFields optionalFields or {@code null} for none + */ + public BackendServiceLogConfig setOptionalFields(java.util.List optionalFields) { + this.optionalFields = optionalFields; + return this; + } + + /** + * This field can only be specified if logging is enabled for this backend service. Configures + * whether all, none or a subset of optional fields should be added to the reported logs. One of + * [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + * @return value or {@code null} for none + */ + public java.lang.String getOptionalMode() { + return optionalMode; + } + + /** + * This field can only be specified if logging is enabled for this backend service. Configures + * whether all, none or a subset of optional fields should be added to the reported logs. One of + * [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. + * @param optionalMode optionalMode or {@code null} for none + */ + public BackendServiceLogConfig setOptionalMode(java.lang.String optionalMode) { + this.optionalMode = optionalMode; + return this; + } + + /** + * This field can only be specified if logging is enabled for this backend service. The value of + * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer + * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. + * The default value is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getSampleRate() { + return sampleRate; + } + + /** + * This field can only be specified if logging is enabled for this backend service. The value of + * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer + * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. + * The default value is 1.0. + * @param sampleRate sampleRate or {@code null} for none + */ + public BackendServiceLogConfig setSampleRate(java.lang.Float sampleRate) { + this.sampleRate = sampleRate; + return this; + } + + @Override + public BackendServiceLogConfig set(String fieldName, Object value) { + return (BackendServiceLogConfig) super.set(fieldName, value); + } + + @Override + public BackendServiceLogConfig clone() { + return (BackendServiceLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java new file mode 100644 index 00000000000..3eef0b3d3e2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.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; + +/** + * Determines which HTTP headers will be logged to Stackdriver. + * + *

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 BackendServiceLogConfigLoggingHttpHeader extends com.google.api.client.json.GenericJson { + + /** + * The name of the header to be logged. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The name of the header to be logged. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The name of the header to be logged. + * @param headerName headerName or {@code null} for none + */ + public BackendServiceLogConfigLoggingHttpHeader setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + @Override + public BackendServiceLogConfigLoggingHttpHeader set(String fieldName, Object value) { + return (BackendServiceLogConfigLoggingHttpHeader) super.set(fieldName, value); + } + + @Override + public BackendServiceLogConfigLoggingHttpHeader clone() { + return (BackendServiceLogConfigLoggingHttpHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java new file mode 100644 index 00000000000..3a229f17954 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.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; + +/** + * Model definition for BackendServiceNetworkPassThroughLbTrafficPolicy. + * + *

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 BackendServiceNetworkPassThroughLbTrafficPolicy extends com.google.api.client.json.GenericJson { + + /** + * When configured, new connections are load balanced across healthy backend endpoints in the + * local zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity; + + /** + * When configured, new connections are load balanced across healthy backend endpoints in the + * local zone. + * @return value or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getZonalAffinity() { + return zonalAffinity; + } + + /** + * When configured, new connections are load balanced across healthy backend endpoints in the + * local zone. + * @param zonalAffinity zonalAffinity or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicy setZonalAffinity(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity) { + this.zonalAffinity = zonalAffinity; + return this; + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicy set(String fieldName, Object value) { + return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.set(fieldName, value); + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicy clone() { + return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java new file mode 100644 index 00000000000..05d91177575 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java @@ -0,0 +1,135 @@ +/* + * 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 BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity. + * + *

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 BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity extends com.google.api.client.json.GenericJson { + + /** + * This field indicates whether zonal affinity is enabled or not. The possible values are: + * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer + * distributes new connections to all healthy backend endpoints across all zones. - + * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes + * new connections to all healthy backend endpoints in the local zone only. If there are no + * healthy backend endpoints in the local zone, the load balancer distributes new + * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: + * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy + * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints + * in the local zone, the load balancer distributes new connections to all healthy backend + * endpoints across all zones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spillover; + + /** + * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend + * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above + * this threshold, the load balancer distributes new connections to all healthy endpoints in the + * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the + * count of backend endpoints in that same zone is below this threshold, the load balancer + * distributes all new connections to all healthy endpoints across all zones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float spilloverRatio; + + /** + * This field indicates whether zonal affinity is enabled or not. The possible values are: + * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer + * distributes new connections to all healthy backend endpoints across all zones. - + * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes + * new connections to all healthy backend endpoints in the local zone only. If there are no + * healthy backend endpoints in the local zone, the load balancer distributes new + * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: + * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy + * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints + * in the local zone, the load balancer distributes new connections to all healthy backend + * endpoints across all zones. + * @return value or {@code null} for none + */ + public java.lang.String getSpillover() { + return spillover; + } + + /** + * This field indicates whether zonal affinity is enabled or not. The possible values are: + * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer + * distributes new connections to all healthy backend endpoints across all zones. - + * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes + * new connections to all healthy backend endpoints in the local zone only. If there are no + * healthy backend endpoints in the local zone, the load balancer distributes new + * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: + * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy + * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints + * in the local zone, the load balancer distributes new connections to all healthy backend + * endpoints across all zones. + * @param spillover spillover or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpillover(java.lang.String spillover) { + this.spillover = spillover; + return this; + } + + /** + * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend + * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above + * this threshold, the load balancer distributes new connections to all healthy endpoints in the + * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the + * count of backend endpoints in that same zone is below this threshold, the load balancer + * distributes all new connections to all healthy endpoints across all zones. + * @return value or {@code null} for none + */ + public java.lang.Float getSpilloverRatio() { + return spilloverRatio; + } + + /** + * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend + * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above + * this threshold, the load balancer distributes new connections to all healthy endpoints in the + * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the + * count of backend endpoints in that same zone is below this threshold, the load balancer + * distributes all new connections to all healthy endpoints across all zones. + * @param spilloverRatio spilloverRatio or {@code null} for none + */ + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpilloverRatio(java.lang.Float spilloverRatio) { + this.spilloverRatio = spilloverRatio; + return this; + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity set(String fieldName, Object value) { + return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.set(fieldName, value); + } + + @Override + public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity clone() { + return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java new file mode 100644 index 00000000000..a3e10b1d879 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.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; + +/** + * A message containing information about the resource or system that manages the backend service. + * + *

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 BackendServiceOrchestrationInfo extends com.google.api.client.json.GenericJson { + + /** + * The resource URI of the resource or system that manages the backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceUri; + + /** + * The resource URI of the resource or system that manages the backend service. + * @return value or {@code null} for none + */ + public java.lang.String getResourceUri() { + return resourceUri; + } + + /** + * The resource URI of the resource or system that manages the backend service. + * @param resourceUri resourceUri or {@code null} for none + */ + public BackendServiceOrchestrationInfo setResourceUri(java.lang.String resourceUri) { + this.resourceUri = resourceUri; + return this; + } + + @Override + public BackendServiceOrchestrationInfo set(String fieldName, Object value) { + return (BackendServiceOrchestrationInfo) super.set(fieldName, value); + } + + @Override + public BackendServiceOrchestrationInfo clone() { + return (BackendServiceOrchestrationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceParams.java new file mode 100644 index 00000000000..6991ca66378 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional Backend Service parameters. + * + *

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 BackendServiceParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public BackendServiceParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public BackendServiceParams set(String fieldName, Object value) { + return (BackendServiceParams) super.set(fieldName, value); + } + + @Override + public BackendServiceParams clone() { + return (BackendServiceParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceReference.java new file mode 100644 index 00000000000..77f617292ab --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceReference.java @@ -0,0 +1,63 @@ +/* + * 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 BackendServiceReference. + * + *

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 BackendServiceReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * @param backendService backendService or {@code null} for none + */ + public BackendServiceReference setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + + @Override + public BackendServiceReference set(String fieldName, Object value) { + return (BackendServiceReference) super.set(fieldName, value); + } + + @Override + public BackendServiceReference clone() { + return (BackendServiceReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettings.java new file mode 100644 index 00000000000..09b54f4831b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettings.java @@ -0,0 +1,246 @@ +/* + * 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 BackendServiceTlsSettings. + * + *

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 BackendServiceTlsSettings extends com.google.api.client.json.GenericJson { + + /** + * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com + * namespace. Can be used in authenticating TLS connections to the backend, as specified by the + * authenticationMode field. Can only be specified if authenticationMode is not NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authenticationConfig; + + /** + * Assigns the Managed Identity for the BackendService Workload. + * + * Use this property to configure the load balancer back-end to use certificates and roots of + * trust provisioned by the Managed Workload Identity system. + * + * The `identity` property is the fully-specified SPIFFE ID to use in the SVID presented by the + * Load Balancer Workload. + * + * The SPIFFE ID must be a resource starting with the `trustDomain` property value, followed by + * the path to the Managed Workload Identity. + * + * Supported SPIFFE ID format: - ns//sa/ + * + * The Trust Domain within the Managed Identity must refer to a valid Workload Identity Pool. The + * TrustConfig and CertificateIssuanceConfig will be inherited from the Workload Identity Pool. + * + * Restrictions: - If you set the `identity` property, you cannot manually set the + * following fields: - tlsSettings.sni - tlsSettings.subjectAltNames - + * tlsSettings.authenticationConfig + * + * When defining a `identity` for a RegionBackendServices, the corresponding Workload Identity + * Pool must have a ca_pool configured in the same region. + * + * The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identity; + + /** + * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string + * as the SNI hostname in the TLS connection to the backend, and requires that this string match a + * Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet + * NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the + * Regional Internet NEG is specified with FQDN or IP address and port. When both sni and + * subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only + * to subjectAltNames[]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sni; + + /** + * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS + * handshake with the backend. When the server presents its X.509 certificate to the Load + * Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least + * one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When + * both sni and subjectAltNames[] are specified, the load balancer matches the backend + * certificate's SAN only to subjectAltNames[]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subjectAltNames; + + /** + * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com + * namespace. Can be used in authenticating TLS connections to the backend, as specified by the + * authenticationMode field. Can only be specified if authenticationMode is not NONE. + * @return value or {@code null} for none + */ + public java.lang.String getAuthenticationConfig() { + return authenticationConfig; + } + + /** + * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com + * namespace. Can be used in authenticating TLS connections to the backend, as specified by the + * authenticationMode field. Can only be specified if authenticationMode is not NONE. + * @param authenticationConfig authenticationConfig or {@code null} for none + */ + public BackendServiceTlsSettings setAuthenticationConfig(java.lang.String authenticationConfig) { + this.authenticationConfig = authenticationConfig; + return this; + } + + /** + * Assigns the Managed Identity for the BackendService Workload. + * + * Use this property to configure the load balancer back-end to use certificates and roots of + * trust provisioned by the Managed Workload Identity system. + * + * The `identity` property is the fully-specified SPIFFE ID to use in the SVID presented by the + * Load Balancer Workload. + * + * The SPIFFE ID must be a resource starting with the `trustDomain` property value, followed by + * the path to the Managed Workload Identity. + * + * Supported SPIFFE ID format: - ns//sa/ + * + * The Trust Domain within the Managed Identity must refer to a valid Workload Identity Pool. The + * TrustConfig and CertificateIssuanceConfig will be inherited from the Workload Identity Pool. + * + * Restrictions: - If you set the `identity` property, you cannot manually set the + * following fields: - tlsSettings.sni - tlsSettings.subjectAltNames - + * tlsSettings.authenticationConfig + * + * When defining a `identity` for a RegionBackendServices, the corresponding Workload Identity + * Pool must have a ca_pool configured in the same region. + * + * The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. + * @return value or {@code null} for none + */ + public java.lang.String getIdentity() { + return identity; + } + + /** + * Assigns the Managed Identity for the BackendService Workload. + * + * Use this property to configure the load balancer back-end to use certificates and roots of + * trust provisioned by the Managed Workload Identity system. + * + * The `identity` property is the fully-specified SPIFFE ID to use in the SVID presented by the + * Load Balancer Workload. + * + * The SPIFFE ID must be a resource starting with the `trustDomain` property value, followed by + * the path to the Managed Workload Identity. + * + * Supported SPIFFE ID format: - ns//sa/ + * + * The Trust Domain within the Managed Identity must refer to a valid Workload Identity Pool. The + * TrustConfig and CertificateIssuanceConfig will be inherited from the Workload Identity Pool. + * + * Restrictions: - If you set the `identity` property, you cannot manually set the + * following fields: - tlsSettings.sni - tlsSettings.subjectAltNames - + * tlsSettings.authenticationConfig + * + * When defining a `identity` for a RegionBackendServices, the corresponding Workload Identity + * Pool must have a ca_pool configured in the same region. + * + * The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. + * @param identity identity or {@code null} for none + */ + public BackendServiceTlsSettings setIdentity(java.lang.String identity) { + this.identity = identity; + return this; + } + + /** + * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string + * as the SNI hostname in the TLS connection to the backend, and requires that this string match a + * Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet + * NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the + * Regional Internet NEG is specified with FQDN or IP address and port. When both sni and + * subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only + * to subjectAltNames[]. + * @return value or {@code null} for none + */ + public java.lang.String getSni() { + return sni; + } + + /** + * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string + * as the SNI hostname in the TLS connection to the backend, and requires that this string match a + * Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet + * NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the + * Regional Internet NEG is specified with FQDN or IP address and port. When both sni and + * subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only + * to subjectAltNames[]. + * @param sni sni or {@code null} for none + */ + public BackendServiceTlsSettings setSni(java.lang.String sni) { + this.sni = sni; + return this; + } + + /** + * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS + * handshake with the backend. When the server presents its X.509 certificate to the Load + * Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least + * one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When + * both sni and subjectAltNames[] are specified, the load balancer matches the backend + * certificate's SAN only to subjectAltNames[]. + * @return value or {@code null} for none + */ + public java.util.List getSubjectAltNames() { + return subjectAltNames; + } + + /** + * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS + * handshake with the backend. When the server presents its X.509 certificate to the Load + * Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least + * one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When + * both sni and subjectAltNames[] are specified, the load balancer matches the backend + * certificate's SAN only to subjectAltNames[]. + * @param subjectAltNames subjectAltNames or {@code null} for none + */ + public BackendServiceTlsSettings setSubjectAltNames(java.util.List subjectAltNames) { + this.subjectAltNames = subjectAltNames; + return this; + } + + @Override + public BackendServiceTlsSettings set(String fieldName, Object value) { + return (BackendServiceTlsSettings) super.set(fieldName, value); + } + + @Override + public BackendServiceTlsSettings clone() { + return (BackendServiceTlsSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettingsSubjectAltName.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettingsSubjectAltName.java new file mode 100644 index 00000000000..58dee1352d7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceTlsSettingsSubjectAltName.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A Subject Alternative Name that the load balancer matches against the SAN field in the TLS + * certificate provided by the backend, specified as either a DNS name or a URI, in accordance with + * RFC 5280 4.2.1.6 + * + *

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 BackendServiceTlsSettingsSubjectAltName extends com.google.api.client.json.GenericJson { + + /** + * The SAN specified as a DNS Name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dnsName; + + /** + * The SAN specified as a URI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uniformResourceIdentifier; + + /** + * The SAN specified as a DNS Name. + * @return value or {@code null} for none + */ + public java.lang.String getDnsName() { + return dnsName; + } + + /** + * The SAN specified as a DNS Name. + * @param dnsName dnsName or {@code null} for none + */ + public BackendServiceTlsSettingsSubjectAltName setDnsName(java.lang.String dnsName) { + this.dnsName = dnsName; + return this; + } + + /** + * The SAN specified as a URI. + * @return value or {@code null} for none + */ + public java.lang.String getUniformResourceIdentifier() { + return uniformResourceIdentifier; + } + + /** + * The SAN specified as a URI. + * @param uniformResourceIdentifier uniformResourceIdentifier or {@code null} for none + */ + public BackendServiceTlsSettingsSubjectAltName setUniformResourceIdentifier(java.lang.String uniformResourceIdentifier) { + this.uniformResourceIdentifier = uniformResourceIdentifier; + return this; + } + + @Override + public BackendServiceTlsSettingsSubjectAltName set(String fieldName, Object value) { + return (BackendServiceTlsSettingsSubjectAltName) super.set(fieldName, value); + } + + @Override + public BackendServiceTlsSettingsSubjectAltName clone() { + return (BackendServiceTlsSettingsSubjectAltName) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java new file mode 100644 index 00000000000..d1f47ab4d6d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.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; + +/** + * Model definition for BackendServiceUsedBy. + * + *

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 BackendServiceUsedBy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Server-defined URL for resources referencing given BackendService + * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reference; + + /** + * Output only. [Output Only] Server-defined URL for resources referencing given BackendService + * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. + * @return value or {@code null} for none + */ + public java.lang.String getReference() { + return reference; + } + + /** + * Output only. [Output Only] Server-defined URL for resources referencing given BackendService + * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. + * @param reference reference or {@code null} for none + */ + public BackendServiceUsedBy setReference(java.lang.String reference) { + this.reference = reference; + return this; + } + + @Override + public BackendServiceUsedBy set(String fieldName, Object value) { + return (BackendServiceUsedBy) super.set(fieldName, value); + } + + @Override + public BackendServiceUsedBy clone() { + return (BackendServiceUsedBy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServicesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServicesScopedList.java new file mode 100644 index 00000000000..feec2fbdea5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BackendServicesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 BackendServicesScopedList. + * + *

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 BackendServicesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of BackendServices contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List backendServices; + + static { + // hack to force ProGuard to consider BackendService 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(BackendService.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of BackendServices contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getBackendServices() { + return backendServices; + } + + /** + * A list of BackendServices contained in this scope. + * @param backendServices backendServices or {@code null} for none + */ + public BackendServicesScopedList setBackendServices(java.util.List backendServices) { + this.backendServices = backendServices; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public BackendServicesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public BackendServicesScopedList set(String fieldName, Object value) { + return (BackendServicesScopedList) super.set(fieldName, value); + } + + @Override + public BackendServicesScopedList clone() { + return (BackendServicesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 BackendServicesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/BfdPacket.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdPacket.java new file mode 100644 index 00000000000..fc57cda477e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdPacket.java @@ -0,0 +1,441 @@ +/* + * 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 BfdPacket. + * + *

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 BfdPacket extends com.google.api.client.json.GenericJson { + + /** + * The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean authenticationPresent; + + /** + * The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean controlPlaneIndependent; + + /** + * The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean demand; + + /** + * The diagnostic code specifies the local system's reason for the last change in session state. + * This allows remote systems to determine the reason that the previous session failed, for + * example. These diagnostic codes are specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diagnostic; + + /** + * The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("final") + private java.lang.Boolean final__; + + /** + * The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long length; + + /** + * The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 + * ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minEchoRxIntervalMs; + + /** + * The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 + * ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minRxIntervalMs; + + /** + * The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minTxIntervalMs; + + /** + * The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long multiplier; + + /** + * The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean multipoint; + + /** + * The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long myDiscriminator; + + /** + * The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean poll; + + /** + * The current BFD session state as seen by the transmitting system. These states are specified in + * section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long version; + + /** + * The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long yourDiscriminator; + + /** + * The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Boolean getAuthenticationPresent() { + return authenticationPresent; + } + + /** + * The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param authenticationPresent authenticationPresent or {@code null} for none + */ + public BfdPacket setAuthenticationPresent(java.lang.Boolean authenticationPresent) { + this.authenticationPresent = authenticationPresent; + return this; + } + + /** + * The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Boolean getControlPlaneIndependent() { + return controlPlaneIndependent; + } + + /** + * The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param controlPlaneIndependent controlPlaneIndependent or {@code null} for none + */ + public BfdPacket setControlPlaneIndependent(java.lang.Boolean controlPlaneIndependent) { + this.controlPlaneIndependent = controlPlaneIndependent; + return this; + } + + /** + * The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Boolean getDemand() { + return demand; + } + + /** + * The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param demand demand or {@code null} for none + */ + public BfdPacket setDemand(java.lang.Boolean demand) { + this.demand = demand; + return this; + } + + /** + * The diagnostic code specifies the local system's reason for the last change in session state. + * This allows remote systems to determine the reason that the previous session failed, for + * example. These diagnostic codes are specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.String getDiagnostic() { + return diagnostic; + } + + /** + * The diagnostic code specifies the local system's reason for the last change in session state. + * This allows remote systems to determine the reason that the previous session failed, for + * example. These diagnostic codes are specified in section 4.1 ofRFC5880 + * @param diagnostic diagnostic or {@code null} for none + */ + public BfdPacket setDiagnostic(java.lang.String diagnostic) { + this.diagnostic = diagnostic; + return this; + } + + /** + * The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Boolean getFinal() { + return final__; + } + + /** + * The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param final__ final__ or {@code null} for none + */ + public BfdPacket setFinal(java.lang.Boolean final__) { + this.final__ = final__; + return this; + } + + /** + * The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getLength() { + return length; + } + + /** + * The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880 + * @param length length or {@code null} for none + */ + public BfdPacket setLength(java.lang.Long length) { + this.length = length; + return this; + } + + /** + * The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 + * ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getMinEchoRxIntervalMs() { + return minEchoRxIntervalMs; + } + + /** + * The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 + * ofRFC5880 + * @param minEchoRxIntervalMs minEchoRxIntervalMs or {@code null} for none + */ + public BfdPacket setMinEchoRxIntervalMs(java.lang.Long minEchoRxIntervalMs) { + this.minEchoRxIntervalMs = minEchoRxIntervalMs; + return this; + } + + /** + * The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 + * ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getMinRxIntervalMs() { + return minRxIntervalMs; + } + + /** + * The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 + * ofRFC5880 + * @param minRxIntervalMs minRxIntervalMs or {@code null} for none + */ + public BfdPacket setMinRxIntervalMs(java.lang.Long minRxIntervalMs) { + this.minRxIntervalMs = minRxIntervalMs; + return this; + } + + /** + * The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getMinTxIntervalMs() { + return minTxIntervalMs; + } + + /** + * The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param minTxIntervalMs minTxIntervalMs or {@code null} for none + */ + public BfdPacket setMinTxIntervalMs(java.lang.Long minTxIntervalMs) { + this.minTxIntervalMs = minTxIntervalMs; + return this; + } + + /** + * The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getMultiplier() { + return multiplier; + } + + /** + * The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param multiplier multiplier or {@code null} for none + */ + public BfdPacket setMultiplier(java.lang.Long multiplier) { + this.multiplier = multiplier; + return this; + } + + /** + * The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Boolean getMultipoint() { + return multipoint; + } + + /** + * The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param multipoint multipoint or {@code null} for none + */ + public BfdPacket setMultipoint(java.lang.Boolean multipoint) { + this.multipoint = multipoint; + return this; + } + + /** + * The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getMyDiscriminator() { + return myDiscriminator; + } + + /** + * The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param myDiscriminator myDiscriminator or {@code null} for none + */ + public BfdPacket setMyDiscriminator(java.lang.Long myDiscriminator) { + this.myDiscriminator = myDiscriminator; + return this; + } + + /** + * The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Boolean getPoll() { + return poll; + } + + /** + * The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param poll poll or {@code null} for none + */ + public BfdPacket setPoll(java.lang.Boolean poll) { + this.poll = poll; + return this; + } + + /** + * The current BFD session state as seen by the transmitting system. These states are specified in + * section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * The current BFD session state as seen by the transmitting system. These states are specified in + * section 4.1 ofRFC5880 + * @param state state or {@code null} for none + */ + public BfdPacket setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. + * @return value or {@code null} for none + */ + public java.lang.Long getVersion() { + return version; + } + + /** + * The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. + * @param version version or {@code null} for none + */ + public BfdPacket setVersion(java.lang.Long version) { + this.version = version; + return this; + } + + /** + * The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.Long getYourDiscriminator() { + return yourDiscriminator; + } + + /** + * The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 + * @param yourDiscriminator yourDiscriminator or {@code null} for none + */ + public BfdPacket setYourDiscriminator(java.lang.Long yourDiscriminator) { + this.yourDiscriminator = yourDiscriminator; + return this; + } + + @Override + public BfdPacket set(String fieldName, Object value) { + return (BfdPacket) super.set(fieldName, value); + } + + @Override + public BfdPacket clone() { + return (BfdPacket) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatus.java new file mode 100644 index 00000000000..83e0dd065d2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatus.java @@ -0,0 +1,300 @@ +/* + * 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; + +/** + * Next free: 15 + * + *

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 BfdStatus extends com.google.api.client.json.GenericJson { + + /** + * The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will + * initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for + * the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is + * disabled for this BGP peer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bfdSessionInitializationMode; + + /** + * Unix timestamp of the most recent config update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long configUpdateTimestampMicros; + + /** + * Control packet counts for the current BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BfdStatusPacketCounts controlPacketCounts; + + /** + * Inter-packet time interval statistics for control packets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List controlPacketIntervals; + + /** + * The diagnostic code specifies the local system's reason for the last change in session state. + * This allows remote systems to determine the reason that the previous session failed, for + * example. These diagnostic codes are specified in section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localDiagnostic; + + /** + * The current BFD session state as seen by the transmitting system. These states are specified in + * section 4.1 ofRFC5880 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localState; + + /** + * Negotiated transmit interval for control packets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long negotiatedLocalControlTxIntervalMs; + + /** + * The most recent Rx control packet for this BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BfdPacket rxPacket; + + /** + * The most recent Tx control packet for this BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BfdPacket txPacket; + + /** + * Session uptime in milliseconds. Value will be 0 if session is not up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long uptimeMs; + + /** + * The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will + * initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for + * the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is + * disabled for this BGP peer. + * @return value or {@code null} for none + */ + public java.lang.String getBfdSessionInitializationMode() { + return bfdSessionInitializationMode; + } + + /** + * The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will + * initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for + * the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is + * disabled for this BGP peer. + * @param bfdSessionInitializationMode bfdSessionInitializationMode or {@code null} for none + */ + public BfdStatus setBfdSessionInitializationMode(java.lang.String bfdSessionInitializationMode) { + this.bfdSessionInitializationMode = bfdSessionInitializationMode; + return this; + } + + /** + * Unix timestamp of the most recent config update. + * @return value or {@code null} for none + */ + public java.lang.Long getConfigUpdateTimestampMicros() { + return configUpdateTimestampMicros; + } + + /** + * Unix timestamp of the most recent config update. + * @param configUpdateTimestampMicros configUpdateTimestampMicros or {@code null} for none + */ + public BfdStatus setConfigUpdateTimestampMicros(java.lang.Long configUpdateTimestampMicros) { + this.configUpdateTimestampMicros = configUpdateTimestampMicros; + return this; + } + + /** + * Control packet counts for the current BFD session. + * @return value or {@code null} for none + */ + public BfdStatusPacketCounts getControlPacketCounts() { + return controlPacketCounts; + } + + /** + * Control packet counts for the current BFD session. + * @param controlPacketCounts controlPacketCounts or {@code null} for none + */ + public BfdStatus setControlPacketCounts(BfdStatusPacketCounts controlPacketCounts) { + this.controlPacketCounts = controlPacketCounts; + return this; + } + + /** + * Inter-packet time interval statistics for control packets. + * @return value or {@code null} for none + */ + public java.util.List getControlPacketIntervals() { + return controlPacketIntervals; + } + + /** + * Inter-packet time interval statistics for control packets. + * @param controlPacketIntervals controlPacketIntervals or {@code null} for none + */ + public BfdStatus setControlPacketIntervals(java.util.List controlPacketIntervals) { + this.controlPacketIntervals = controlPacketIntervals; + return this; + } + + /** + * The diagnostic code specifies the local system's reason for the last change in session state. + * This allows remote systems to determine the reason that the previous session failed, for + * example. These diagnostic codes are specified in section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.String getLocalDiagnostic() { + return localDiagnostic; + } + + /** + * The diagnostic code specifies the local system's reason for the last change in session state. + * This allows remote systems to determine the reason that the previous session failed, for + * example. These diagnostic codes are specified in section 4.1 ofRFC5880 + * @param localDiagnostic localDiagnostic or {@code null} for none + */ + public BfdStatus setLocalDiagnostic(java.lang.String localDiagnostic) { + this.localDiagnostic = localDiagnostic; + return this; + } + + /** + * The current BFD session state as seen by the transmitting system. These states are specified in + * section 4.1 ofRFC5880 + * @return value or {@code null} for none + */ + public java.lang.String getLocalState() { + return localState; + } + + /** + * The current BFD session state as seen by the transmitting system. These states are specified in + * section 4.1 ofRFC5880 + * @param localState localState or {@code null} for none + */ + public BfdStatus setLocalState(java.lang.String localState) { + this.localState = localState; + return this; + } + + /** + * Negotiated transmit interval for control packets. + * @return value or {@code null} for none + */ + public java.lang.Long getNegotiatedLocalControlTxIntervalMs() { + return negotiatedLocalControlTxIntervalMs; + } + + /** + * Negotiated transmit interval for control packets. + * @param negotiatedLocalControlTxIntervalMs negotiatedLocalControlTxIntervalMs or {@code null} for none + */ + public BfdStatus setNegotiatedLocalControlTxIntervalMs(java.lang.Long negotiatedLocalControlTxIntervalMs) { + this.negotiatedLocalControlTxIntervalMs = negotiatedLocalControlTxIntervalMs; + return this; + } + + /** + * The most recent Rx control packet for this BFD session. + * @return value or {@code null} for none + */ + public BfdPacket getRxPacket() { + return rxPacket; + } + + /** + * The most recent Rx control packet for this BFD session. + * @param rxPacket rxPacket or {@code null} for none + */ + public BfdStatus setRxPacket(BfdPacket rxPacket) { + this.rxPacket = rxPacket; + return this; + } + + /** + * The most recent Tx control packet for this BFD session. + * @return value or {@code null} for none + */ + public BfdPacket getTxPacket() { + return txPacket; + } + + /** + * The most recent Tx control packet for this BFD session. + * @param txPacket txPacket or {@code null} for none + */ + public BfdStatus setTxPacket(BfdPacket txPacket) { + this.txPacket = txPacket; + return this; + } + + /** + * Session uptime in milliseconds. Value will be 0 if session is not up. + * @return value or {@code null} for none + */ + public java.lang.Long getUptimeMs() { + return uptimeMs; + } + + /** + * Session uptime in milliseconds. Value will be 0 if session is not up. + * @param uptimeMs uptimeMs or {@code null} for none + */ + public BfdStatus setUptimeMs(java.lang.Long uptimeMs) { + this.uptimeMs = uptimeMs; + return this; + } + + @Override + public BfdStatus set(String fieldName, Object value) { + return (BfdStatus) super.set(fieldName, value); + } + + @Override + public BfdStatus clone() { + return (BfdStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatusPacketCounts.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatusPacketCounts.java new file mode 100644 index 00000000000..274383dce4a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BfdStatusPacketCounts.java @@ -0,0 +1,144 @@ +/* + * 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 BfdStatusPacketCounts. + * + *

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 BfdStatusPacketCounts extends com.google.api.client.json.GenericJson { + + /** + * Number of packets received since the beginning of the current BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long numRx; + + /** + * Number of packets received that were rejected because of errors since the beginning of the + * current BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long numRxRejected; + + /** + * Number of packets received that were successfully processed since the beginning of the current + * BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long numRxSuccessful; + + /** + * Number of packets transmitted since the beginning of the current BFD session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long numTx; + + /** + * Number of packets received since the beginning of the current BFD session. + * @return value or {@code null} for none + */ + public java.lang.Long getNumRx() { + return numRx; + } + + /** + * Number of packets received since the beginning of the current BFD session. + * @param numRx numRx or {@code null} for none + */ + public BfdStatusPacketCounts setNumRx(java.lang.Long numRx) { + this.numRx = numRx; + return this; + } + + /** + * Number of packets received that were rejected because of errors since the beginning of the + * current BFD session. + * @return value or {@code null} for none + */ + public java.lang.Long getNumRxRejected() { + return numRxRejected; + } + + /** + * Number of packets received that were rejected because of errors since the beginning of the + * current BFD session. + * @param numRxRejected numRxRejected or {@code null} for none + */ + public BfdStatusPacketCounts setNumRxRejected(java.lang.Long numRxRejected) { + this.numRxRejected = numRxRejected; + return this; + } + + /** + * Number of packets received that were successfully processed since the beginning of the current + * BFD session. + * @return value or {@code null} for none + */ + public java.lang.Long getNumRxSuccessful() { + return numRxSuccessful; + } + + /** + * Number of packets received that were successfully processed since the beginning of the current + * BFD session. + * @param numRxSuccessful numRxSuccessful or {@code null} for none + */ + public BfdStatusPacketCounts setNumRxSuccessful(java.lang.Long numRxSuccessful) { + this.numRxSuccessful = numRxSuccessful; + return this; + } + + /** + * Number of packets transmitted since the beginning of the current BFD session. + * @return value or {@code null} for none + */ + public java.lang.Long getNumTx() { + return numTx; + } + + /** + * Number of packets transmitted since the beginning of the current BFD session. + * @param numTx numTx or {@code null} for none + */ + public BfdStatusPacketCounts setNumTx(java.lang.Long numTx) { + this.numTx = numTx; + return this; + } + + @Override + public BfdStatusPacketCounts set(String fieldName, Object value) { + return (BfdStatusPacketCounts) super.set(fieldName, value); + } + + @Override + public BfdStatusPacketCounts clone() { + return (BfdStatusPacketCounts) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRoute.java new file mode 100644 index 00000000000..f4e2917b118 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -0,0 +1,162 @@ +/* + * 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 BgpRoute. + * + *

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 BgpRoute extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] AS-PATH for the route + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List asPaths; + + /** + * Output only. [Output only] BGP communities in human-readable A:B format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List communities; + + /** + * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BgpRouteNetworkLayerReachabilityInformation destination; + + /** + * Output only. [Output only] BGP multi-exit discriminator + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long med; + + /** + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String origin; + + /** + * Output only. [Output only] AS-PATH for the route + * @return value or {@code null} for none + */ + public java.util.List getAsPaths() { + return asPaths; + } + + /** + * Output only. [Output only] AS-PATH for the route + * @param asPaths asPaths or {@code null} for none + */ + public BgpRoute setAsPaths(java.util.List asPaths) { + this.asPaths = asPaths; + return this; + } + + /** + * Output only. [Output only] BGP communities in human-readable A:B format. + * @return value or {@code null} for none + */ + public java.util.List getCommunities() { + return communities; + } + + /** + * Output only. [Output only] BGP communities in human-readable A:B format. + * @param communities communities or {@code null} for none + */ + public BgpRoute setCommunities(java.util.List communities) { + this.communities = communities; + return this; + } + + /** + * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * @return value or {@code null} for none + */ + public BgpRouteNetworkLayerReachabilityInformation getDestination() { + return destination; + } + + /** + * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * @param destination destination or {@code null} for none + */ + public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation destination) { + this.destination = destination; + return this; + } + + /** + * Output only. [Output only] BGP multi-exit discriminator + * @return value or {@code null} for none + */ + public java.lang.Long getMed() { + return med; + } + + /** + * Output only. [Output only] BGP multi-exit discriminator + * @param med med or {@code null} for none + */ + public BgpRoute setMed(java.lang.Long med) { + this.med = med; + return this; + } + + /** + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * @return value or {@code null} for none + */ + public java.lang.String getOrigin() { + return origin; + } + + /** + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * @param origin origin or {@code null} for none + */ + public BgpRoute setOrigin(java.lang.String origin) { + this.origin = origin; + return this; + } + + @Override + public BgpRoute set(String fieldName, Object value) { + return (BgpRoute) super.set(fieldName, value); + } + + @Override + public BgpRoute clone() { + return (BgpRoute) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java new file mode 100644 index 00000000000..34de456cbc3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -0,0 +1,120 @@ +/* + * 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 BgpRouteAsPath. + * + *

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 BgpRouteAsPath extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List asns; + + /** + * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit + * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is + * SEQUENCE, these are ordered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List asns32; + + /** + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * @return value or {@code null} for none + */ + public java.util.List getAsns() { + return asns; + } + + /** + * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * @param asns asns or {@code null} for none + */ + public BgpRouteAsPath setAsns(java.util.List asns) { + this.asns = asns; + return this; + } + + /** + * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit + * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is + * SEQUENCE, these are ordered. + * @return value or {@code null} for none + */ + public java.util.List getAsns32() { + return asns32; + } + + /** + * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit + * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is + * SEQUENCE, these are ordered. + * @param asns32 asns32 or {@code null} for none + */ + public BgpRouteAsPath setAsns32(java.util.List asns32) { + this.asns32 = asns32; + return this; + } + + /** + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * @param type type or {@code null} for none + */ + public BgpRouteAsPath setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public BgpRouteAsPath set(String fieldName, Object value) { + return (BgpRouteAsPath) super.set(fieldName, value); + } + + @Override + public BgpRouteAsPath clone() { + return (BgpRouteAsPath) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteNetworkLayerReachabilityInformation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteNetworkLayerReachabilityInformation.java new file mode 100644 index 00000000000..3d1ff95cf77 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BgpRouteNetworkLayerReachabilityInformation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Network Layer Reachability Information (NLRI) for a route. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BgpRouteNetworkLayerReachabilityInformation extends com.google.api.client.json.GenericJson { + + /** + * If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long pathId; + + /** + * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prefix; + + /** + * If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. + * @return value or {@code null} for none + */ + public java.lang.Long getPathId() { + return pathId; + } + + /** + * If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. + * @param pathId pathId or {@code null} for none + */ + public BgpRouteNetworkLayerReachabilityInformation setPathId(java.lang.Long pathId) { + this.pathId = pathId; + return this; + } + + /** + * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. + * @return value or {@code null} for none + */ + public java.lang.String getPrefix() { + return prefix; + } + + /** + * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. + * @param prefix prefix or {@code null} for none + */ + public BgpRouteNetworkLayerReachabilityInformation setPrefix(java.lang.String prefix) { + this.prefix = prefix; + return this; + } + + @Override + public BgpRouteNetworkLayerReachabilityInformation set(String fieldName, Object value) { + return (BgpRouteNetworkLayerReachabilityInformation) super.set(fieldName, value); + } + + @Override + public BgpRouteNetworkLayerReachabilityInformation clone() { + return (BgpRouteNetworkLayerReachabilityInformation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Binding.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Binding.java new file mode 100644 index 00000000000..fce2eccf6e0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Binding.java @@ -0,0 +1,375 @@ +/* + * 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; + +/** + * Associates `members`, or principals, with a `role`. + * + *

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 Binding extends com.google.api.client.json.GenericJson { + + /** + * The condition that is associated with this binding. + * + * If the condition evaluates to `true`, then this binding applies to the current request. + * + * If the condition evaluates to `false`, then this binding does not apply to the current request. + * However, a different role binding might grant the same role to one or more of the principals in + * this binding. + * + * To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr condition; + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: + * + * * `allUsers`: A special identifier that represents anyone who is on the internet; with or + * without a Google account. + * + * * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated + * with a Google account or a service account. Does not include identities that come from + * external identity providers (IdPs) through identity federation. + * + * * `user:{emailid}`: An email address that represents a specific Google account. For example, + * `alice@example.com` . + * + * * `serviceAccount:{emailid}`: An email address that represents a Google service account. For + * example, `my-other-app@appspot.gserviceaccount.com`. + * + * * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how- + * to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my- + * kubernetes-sa]`. + * + * * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. + * + * * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that + * domain. For example, `google.com` or `example.com`. + * + * * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_at + * tribute_value}`: A single identity in a workforce identity pool. + * + * * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. + * + * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attri + * bute_name}/{attribute_value}`: All workforce identities with a specific attribute value. + * + * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All + * identities in a workforce identity pool. + * + * * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPo + * ols/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity + * pool. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}/group/{group_id}`: A workload identity pool group. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload + * identity pool with a certain attribute. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}`: All identities in a workload identity pool. + * + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts + * to `user:{emailid}` and the recovered user retains the role in the binding. + * + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a service account that has been recently deleted. For example, + * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account + * is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service + * account retains the role in the binding. + * + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a Google group that has been recently deleted. For example, + * `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. + * + * * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{su + * bject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List members; + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. + * + * For an overview of the IAM roles and permissions, see the [IAM + * documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available + * pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * The condition that is associated with this binding. + * + * If the condition evaluates to `true`, then this binding applies to the current request. + * + * If the condition evaluates to `false`, then this binding does not apply to the current request. + * However, a different role binding might grant the same role to one or more of the principals in + * this binding. + * + * To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public Expr getCondition() { + return condition; + } + + /** + * The condition that is associated with this binding. + * + * If the condition evaluates to `true`, then this binding applies to the current request. + * + * If the condition evaluates to `false`, then this binding does not apply to the current request. + * However, a different role binding might grant the same role to one or more of the principals in + * this binding. + * + * To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param condition condition or {@code null} for none + */ + public Binding setCondition(Expr condition) { + this.condition = condition; + return this; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: + * + * * `allUsers`: A special identifier that represents anyone who is on the internet; with or + * without a Google account. + * + * * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated + * with a Google account or a service account. Does not include identities that come from + * external identity providers (IdPs) through identity federation. + * + * * `user:{emailid}`: An email address that represents a specific Google account. For example, + * `alice@example.com` . + * + * * `serviceAccount:{emailid}`: An email address that represents a Google service account. For + * example, `my-other-app@appspot.gserviceaccount.com`. + * + * * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how- + * to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my- + * kubernetes-sa]`. + * + * * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. + * + * * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that + * domain. For example, `google.com` or `example.com`. + * + * * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_at + * tribute_value}`: A single identity in a workforce identity pool. + * + * * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. + * + * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attri + * bute_name}/{attribute_value}`: All workforce identities with a specific attribute value. + * + * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All + * identities in a workforce identity pool. + * + * * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPo + * ols/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity + * pool. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}/group/{group_id}`: A workload identity pool group. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload + * identity pool with a certain attribute. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}`: All identities in a workload identity pool. + * + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts + * to `user:{emailid}` and the recovered user retains the role in the binding. + * + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a service account that has been recently deleted. For example, + * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account + * is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service + * account retains the role in the binding. + * + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a Google group that has been recently deleted. For example, + * `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. + * + * * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{su + * bject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @return value or {@code null} for none + */ + public java.util.List getMembers() { + return members; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. `members` can have the + * following values: + * + * * `allUsers`: A special identifier that represents anyone who is on the internet; with or + * without a Google account. + * + * * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated + * with a Google account or a service account. Does not include identities that come from + * external identity providers (IdPs) through identity federation. + * + * * `user:{emailid}`: An email address that represents a specific Google account. For example, + * `alice@example.com` . + * + * * `serviceAccount:{emailid}`: An email address that represents a Google service account. For + * example, `my-other-app@appspot.gserviceaccount.com`. + * + * * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a + * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how- + * to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my- + * kubernetes-sa]`. + * + * * `group:{emailid}`: An email address that represents a Google group. For example, + * `admins@example.com`. + * + * * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that + * domain. For example, `google.com` or `example.com`. + * + * * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_at + * tribute_value}`: A single identity in a workforce identity pool. + * + * * + * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: + * All workforce identities in a group. + * + * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attri + * bute_name}/{attribute_value}`: All workforce identities with a specific attribute value. + * + * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All + * identities in a workforce identity pool. + * + * * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPo + * ols/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity + * pool. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}/group/{group_id}`: A workload identity pool group. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload + * identity pool with a certain attribute. + * + * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit + * yPools/{pool_id}`: All identities in a workload identity pool. + * + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a user that has been recently deleted. For example, + * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts + * to `user:{emailid}` and the recovered user retains the role in the binding. + * + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a service account that has been recently deleted. For example, + * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account + * is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service + * account retains the role in the binding. + * + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) + * representing a Google group that has been recently deleted. For example, + * `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value + * reverts to `group:{emailid}` and the recovered group retains the role in the binding. + * + * * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{su + * bject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, + * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- + * subject-attribute-value`. + * @param members members or {@code null} for none + */ + public Binding setMembers(java.util.List members) { + this.members = members; + return this; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. + * + * For an overview of the IAM roles and permissions, see the [IAM + * documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available + * pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. + * + * For an overview of the IAM roles and permissions, see the [IAM + * documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available + * pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). + * @param role role or {@code null} for none + */ + public Binding setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public Binding set(String fieldName, Object value) { + return (Binding) super.set(fieldName, value); + } + + @Override + public Binding clone() { + return (Binding) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java new file mode 100644 index 00000000000..ba8ce4481e6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is + * only used to process requests and is not persisted. + * + *

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 BulkInsertDiskResource extends com.google.api.client.json.GenericJson { + + /** + * The parameters for the instant snapshot group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstantSnapshotGroupParameters instantSnapshotGroupParameters; + + /** + * The parameters for the snapshot group. The usage of snapshot group feature is restricted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotGroupParameters snapshotGroupParameters; + + /** + * The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full + * or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/ + * project/regions/region/resourcePolicies/resourcePolicy - + * projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroupPolicy; + + /** + * The parameters for the instant snapshot group. + * @return value or {@code null} for none + */ + public InstantSnapshotGroupParameters getInstantSnapshotGroupParameters() { + return instantSnapshotGroupParameters; + } + + /** + * The parameters for the instant snapshot group. + * @param instantSnapshotGroupParameters instantSnapshotGroupParameters or {@code null} for none + */ + public BulkInsertDiskResource setInstantSnapshotGroupParameters(InstantSnapshotGroupParameters instantSnapshotGroupParameters) { + this.instantSnapshotGroupParameters = instantSnapshotGroupParameters; + return this; + } + + /** + * The parameters for the snapshot group. The usage of snapshot group feature is restricted. + * @return value or {@code null} for none + */ + public SnapshotGroupParameters getSnapshotGroupParameters() { + return snapshotGroupParameters; + } + + /** + * The parameters for the snapshot group. The usage of snapshot group feature is restricted. + * @param snapshotGroupParameters snapshotGroupParameters or {@code null} for none + */ + public BulkInsertDiskResource setSnapshotGroupParameters(SnapshotGroupParameters snapshotGroupParameters) { + this.snapshotGroupParameters = snapshotGroupParameters; + return this; + } + + /** + * The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full + * or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/ + * project/regions/region/resourcePolicies/resourcePolicy - + * projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * @return value or {@code null} for none + */ + public java.lang.String getSourceConsistencyGroupPolicy() { + return sourceConsistencyGroupPolicy; + } + + /** + * The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full + * or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/ + * project/regions/region/resourcePolicies/resourcePolicy - + * projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * @param sourceConsistencyGroupPolicy sourceConsistencyGroupPolicy or {@code null} for none + */ + public BulkInsertDiskResource setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGroupPolicy) { + this.sourceConsistencyGroupPolicy = sourceConsistencyGroupPolicy; + return this; + } + + @Override + public BulkInsertDiskResource set(String fieldName, Object value) { + return (BulkInsertDiskResource) super.set(fieldName, value); + } + + @Override + public BulkInsertDiskResource clone() { + return (BulkInsertDiskResource) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java new file mode 100644 index 00000000000..00fb6aa915d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java @@ -0,0 +1,298 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert + * . This resource is not persisted anywhere, it is used only for processing the requests. + * + *

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 BulkInsertInstanceResource extends com.google.api.client.json.GenericJson { + + /** + * The maximum number of instances to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long count; + + /** + * A flexible specification of machine type of instances to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceFlexibilityPolicy instanceFlexibilityPolicy; + + /** + * The instance properties defining the VM instances to be created. Required if + * sourceInstanceTemplate is not provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceProperties instanceProperties; + + /** + * Policy for choosing target zone. For more information, seeCreate VMs in bulk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocationPolicy locationPolicy; + + /** + * The minimum number of instances to create. If no min_count is specified then count is used as + * the default value. Ifmin_count instances cannot be created, then no instances will be created + * and instances already created will be deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minCount; + + /** + * The string pattern used for the names of the VMs. Either name_pattern or + * per_instance_properties must be set. The pattern must contain one continuous sequence of + * placeholder hash characters (#) with each character corresponding to one digit of the generated + * instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 + * and inst-0002. If existing instances in the same project and zone have names that match the + * name pattern then the generated instance numbers start after the biggest existing number. For + * example, if there exists an instance with nameinst-0050, then instance names generated using + * the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to + * 18 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namePattern; + + /** + * Per-instance properties to be set on individual instances. Keys of this map specify requested + * instance names. Can be empty if name_pattern is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map perInstanceProperties; + + /** + * Specifies the instance template from which to create instances. You may combine + * sourceInstanceTemplate withinstanceProperties to override specific values from an existing + * instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. + * + * It can be a full or partial URL. For example, the following are all valid URLs to an instance + * template: - https://www.googleapis.com/compute/v1/projects/project/global/instan + * ceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate + * - global/instanceTemplates/instanceTemplate + * + * This field is optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplate; + + /** + * The maximum number of instances to create. + * @return value or {@code null} for none + */ + public java.lang.Long getCount() { + return count; + } + + /** + * The maximum number of instances to create. + * @param count count or {@code null} for none + */ + public BulkInsertInstanceResource setCount(java.lang.Long count) { + this.count = count; + return this; + } + + /** + * A flexible specification of machine type of instances to create. + * @return value or {@code null} for none + */ + public InstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { + return instanceFlexibilityPolicy; + } + + /** + * A flexible specification of machine type of instances to create. + * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none + */ + public BulkInsertInstanceResource setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy instanceFlexibilityPolicy) { + this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; + return this; + } + + /** + * The instance properties defining the VM instances to be created. Required if + * sourceInstanceTemplate is not provided. + * @return value or {@code null} for none + */ + public InstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * The instance properties defining the VM instances to be created. Required if + * sourceInstanceTemplate is not provided. + * @param instanceProperties instanceProperties or {@code null} for none + */ + public BulkInsertInstanceResource setInstanceProperties(InstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + /** + * Policy for choosing target zone. For more information, seeCreate VMs in bulk. + * @return value or {@code null} for none + */ + public LocationPolicy getLocationPolicy() { + return locationPolicy; + } + + /** + * Policy for choosing target zone. For more information, seeCreate VMs in bulk. + * @param locationPolicy locationPolicy or {@code null} for none + */ + public BulkInsertInstanceResource setLocationPolicy(LocationPolicy locationPolicy) { + this.locationPolicy = locationPolicy; + return this; + } + + /** + * The minimum number of instances to create. If no min_count is specified then count is used as + * the default value. Ifmin_count instances cannot be created, then no instances will be created + * and instances already created will be deleted. + * @return value or {@code null} for none + */ + public java.lang.Long getMinCount() { + return minCount; + } + + /** + * The minimum number of instances to create. If no min_count is specified then count is used as + * the default value. Ifmin_count instances cannot be created, then no instances will be created + * and instances already created will be deleted. + * @param minCount minCount or {@code null} for none + */ + public BulkInsertInstanceResource setMinCount(java.lang.Long minCount) { + this.minCount = minCount; + return this; + } + + /** + * The string pattern used for the names of the VMs. Either name_pattern or + * per_instance_properties must be set. The pattern must contain one continuous sequence of + * placeholder hash characters (#) with each character corresponding to one digit of the generated + * instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 + * and inst-0002. If existing instances in the same project and zone have names that match the + * name pattern then the generated instance numbers start after the biggest existing number. For + * example, if there exists an instance with nameinst-0050, then instance names generated using + * the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to + * 18 characters. + * @return value or {@code null} for none + */ + public java.lang.String getNamePattern() { + return namePattern; + } + + /** + * The string pattern used for the names of the VMs. Either name_pattern or + * per_instance_properties must be set. The pattern must contain one continuous sequence of + * placeholder hash characters (#) with each character corresponding to one digit of the generated + * instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 + * and inst-0002. If existing instances in the same project and zone have names that match the + * name pattern then the generated instance numbers start after the biggest existing number. For + * example, if there exists an instance with nameinst-0050, then instance names generated using + * the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to + * 18 characters. + * @param namePattern namePattern or {@code null} for none + */ + public BulkInsertInstanceResource setNamePattern(java.lang.String namePattern) { + this.namePattern = namePattern; + return this; + } + + /** + * Per-instance properties to be set on individual instances. Keys of this map specify requested + * instance names. Can be empty if name_pattern is used. + * @return value or {@code null} for none + */ + public java.util.Map getPerInstanceProperties() { + return perInstanceProperties; + } + + /** + * Per-instance properties to be set on individual instances. Keys of this map specify requested + * instance names. Can be empty if name_pattern is used. + * @param perInstanceProperties perInstanceProperties or {@code null} for none + */ + public BulkInsertInstanceResource setPerInstanceProperties(java.util.Map perInstanceProperties) { + this.perInstanceProperties = perInstanceProperties; + return this; + } + + /** + * Specifies the instance template from which to create instances. You may combine + * sourceInstanceTemplate withinstanceProperties to override specific values from an existing + * instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. + * + * It can be a full or partial URL. For example, the following are all valid URLs to an instance + * template: - https://www.googleapis.com/compute/v1/projects/project/global/instan + * ceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate + * - global/instanceTemplates/instanceTemplate + * + * This field is optional. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstanceTemplate() { + return sourceInstanceTemplate; + } + + /** + * Specifies the instance template from which to create instances. You may combine + * sourceInstanceTemplate withinstanceProperties to override specific values from an existing + * instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. + * + * It can be a full or partial URL. For example, the following are all valid URLs to an instance + * template: - https://www.googleapis.com/compute/v1/projects/project/global/instan + * ceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate + * - global/instanceTemplates/instanceTemplate + * + * This field is optional. + * @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none + */ + public BulkInsertInstanceResource setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { + this.sourceInstanceTemplate = sourceInstanceTemplate; + return this; + } + + @Override + public BulkInsertInstanceResource set(String fieldName, Object value) { + return (BulkInsertInstanceResource) super.set(fieldName, value); + } + + @Override + public BulkInsertInstanceResource clone() { + return (BulkInsertInstanceResource) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java new file mode 100644 index 00000000000..e8d1e697aa7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Per-instance properties to be set on individual instances. To be extended in the future. + * + *

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 BulkInsertInstanceResourcePerInstanceProperties extends com.google.api.client.json.GenericJson { + + /** + * Specifies the hostname of the instance. More details in: + * https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostname; + + /** + * Output only. This field is only temporary. It will be removed. Do not use it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Specifies the hostname of the instance. More details in: + * https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention + * @return value or {@code null} for none + */ + public java.lang.String getHostname() { + return hostname; + } + + /** + * Specifies the hostname of the instance. More details in: + * https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention + * @param hostname hostname or {@code null} for none + */ + public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.String hostname) { + this.hostname = hostname; + return this; + } + + /** + * Output only. This field is only temporary. It will be removed. Do not use it. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. This field is only temporary. It will be removed. Do not use it. + * @param name name or {@code null} for none + */ + public BulkInsertInstanceResourcePerInstanceProperties setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public BulkInsertInstanceResourcePerInstanceProperties set(String fieldName, Object value) { + return (BulkInsertInstanceResourcePerInstanceProperties) super.set(fieldName, value); + } + + @Override + public BulkInsertInstanceResourcePerInstanceProperties clone() { + return (BulkInsertInstanceResourcePerInstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertOperationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertOperationStatus.java new file mode 100644 index 00000000000..b53d7d00ec2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkInsertOperationStatus.java @@ -0,0 +1,165 @@ +/* + * 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 BulkInsertOperationStatus. + * + *

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 BulkInsertOperationStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Count of VMs successfully created so far. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer createdVmCount; + + /** + * [Output Only] Count of VMs that got deleted during rollback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deletedVmCount; + + /** + * [Output Only] Count of VMs that started creating but encountered an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failedToCreateVmCount; + + /** + * [Output Only] Creation status of BulkInsert operation - information if the flow is rolling + * forward or rolling back. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * [Output Only] Count of VMs originally planned to be created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer targetVmCount; + + /** + * [Output Only] Count of VMs successfully created so far. + * @return value or {@code null} for none + */ + public java.lang.Integer getCreatedVmCount() { + return createdVmCount; + } + + /** + * [Output Only] Count of VMs successfully created so far. + * @param createdVmCount createdVmCount or {@code null} for none + */ + public BulkInsertOperationStatus setCreatedVmCount(java.lang.Integer createdVmCount) { + this.createdVmCount = createdVmCount; + return this; + } + + /** + * [Output Only] Count of VMs that got deleted during rollback. + * @return value or {@code null} for none + */ + public java.lang.Integer getDeletedVmCount() { + return deletedVmCount; + } + + /** + * [Output Only] Count of VMs that got deleted during rollback. + * @param deletedVmCount deletedVmCount or {@code null} for none + */ + public BulkInsertOperationStatus setDeletedVmCount(java.lang.Integer deletedVmCount) { + this.deletedVmCount = deletedVmCount; + return this; + } + + /** + * [Output Only] Count of VMs that started creating but encountered an error. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailedToCreateVmCount() { + return failedToCreateVmCount; + } + + /** + * [Output Only] Count of VMs that started creating but encountered an error. + * @param failedToCreateVmCount failedToCreateVmCount or {@code null} for none + */ + public BulkInsertOperationStatus setFailedToCreateVmCount(java.lang.Integer failedToCreateVmCount) { + this.failedToCreateVmCount = failedToCreateVmCount; + return this; + } + + /** + * [Output Only] Creation status of BulkInsert operation - information if the flow is rolling + * forward or rolling back. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] Creation status of BulkInsert operation - information if the flow is rolling + * forward or rolling back. + * @param status status or {@code null} for none + */ + public BulkInsertOperationStatus setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * [Output Only] Count of VMs originally planned to be created. + * @return value or {@code null} for none + */ + public java.lang.Integer getTargetVmCount() { + return targetVmCount; + } + + /** + * [Output Only] Count of VMs originally planned to be created. + * @param targetVmCount targetVmCount or {@code null} for none + */ + public BulkInsertOperationStatus setTargetVmCount(java.lang.Integer targetVmCount) { + this.targetVmCount = targetVmCount; + return this; + } + + @Override + public BulkInsertOperationStatus set(String fieldName, Object value) { + return (BulkInsertOperationStatus) super.set(fieldName, value); + } + + @Override + public BulkInsertOperationStatus clone() { + return (BulkInsertOperationStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java new file mode 100644 index 00000000000..d18a64fa3b0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkSetLabelsRequest.java @@ -0,0 +1,133 @@ +/* + * 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 BulkSetLabelsRequest. + * + *

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 BulkSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * The labels to set for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public BulkSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update + * or change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public BulkSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * The labels to set for this resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The labels to set for this resource. + * @param labels labels or {@code null} for none + */ + public BulkSetLabelsRequest setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + @Override + public BulkSetLabelsRequest set(String fieldName, Object value) { + return (BulkSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public BulkSetLabelsRequest clone() { + return (BulkSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.java new file mode 100644 index 00000000000..d58b646b2f3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BulkZoneSetLabelsRequest.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; + +/** + * Model definition for BulkZoneSetLabelsRequest. + * + *

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 BulkZoneSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requests; + + static { + // hack to force ProGuard to consider BulkSetLabelsRequest 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(BulkSetLabelsRequest.class); + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getRequests() { + return requests; + } + + /** + * @param requests requests or {@code null} for none + */ + public BulkZoneSetLabelsRequest setRequests(java.util.List requests) { + this.requests = requests; + return this; + } + + @Override + public BulkZoneSetLabelsRequest set(String fieldName, Object value) { + return (BulkZoneSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public BulkZoneSetLabelsRequest clone() { + return (BulkZoneSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java new file mode 100644 index 00000000000..c66fcd01945 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for BundledLocalSsds. + * + *

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 BundledLocalSsds extends com.google.api.client.json.GenericJson { + + /** + * The default disk interface if the interface is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultInterface; + + /** + * The number of partitions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer partitionCount; + + /** + * The default disk interface if the interface is not specified. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultInterface() { + return defaultInterface; + } + + /** + * The default disk interface if the interface is not specified. + * @param defaultInterface defaultInterface or {@code null} for none + */ + public BundledLocalSsds setDefaultInterface(java.lang.String defaultInterface) { + this.defaultInterface = defaultInterface; + return this; + } + + /** + * The number of partitions. + * @return value or {@code null} for none + */ + public java.lang.Integer getPartitionCount() { + return partitionCount; + } + + /** + * The number of partitions. + * @param partitionCount partitionCount or {@code null} for none + */ + public BundledLocalSsds setPartitionCount(java.lang.Integer partitionCount) { + this.partitionCount = partitionCount; + return this; + } + + @Override + public BundledLocalSsds set(String fieldName, Object value) { + return (BundledLocalSsds) super.set(fieldName, value); + } + + @Override + public BundledLocalSsds clone() { + return (BundledLocalSsds) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java new file mode 100644 index 00000000000..25df3e9b811 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java @@ -0,0 +1,132 @@ +/* + * 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 CacheInvalidationRule. + * + *

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 CacheInvalidationRule extends com.google.api.client.json.GenericJson { + + /** + * A list of cache tags used to identify cached objects. + * + * - Cache tags are specified when the response is first cached, by setting the `Cache- + * Tag` response header at the origin. - Multiple cache tags in the same invalidation request + * are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are + * also specified, these are treated as Boolean `AND` with any tags. + * + * Up to 10 tags can be specified in a single invalidation request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cacheTags; + + /** + * If set, this invalidation rule will only apply to requests with a Host header matching host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * A list of cache tags used to identify cached objects. + * + * - Cache tags are specified when the response is first cached, by setting the `Cache- + * Tag` response header at the origin. - Multiple cache tags in the same invalidation request + * are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are + * also specified, these are treated as Boolean `AND` with any tags. + * + * Up to 10 tags can be specified in a single invalidation request. + * @return value or {@code null} for none + */ + public java.util.List getCacheTags() { + return cacheTags; + } + + /** + * A list of cache tags used to identify cached objects. + * + * - Cache tags are specified when the response is first cached, by setting the `Cache- + * Tag` response header at the origin. - Multiple cache tags in the same invalidation request + * are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are + * also specified, these are treated as Boolean `AND` with any tags. + * + * Up to 10 tags can be specified in a single invalidation request. + * @param cacheTags cacheTags or {@code null} for none + */ + public CacheInvalidationRule setCacheTags(java.util.List cacheTags) { + this.cacheTags = cacheTags; + 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 + */ + public java.lang.String getHost() { + return host; + } + + /** + * If set, this invalidation rule will only apply to requests with a Host header matching host. + * @param host host or {@code null} for none + */ + public CacheInvalidationRule setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * @param path path or {@code null} for none + */ + public CacheInvalidationRule setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public CacheInvalidationRule set(String fieldName, Object value) { + return (CacheInvalidationRule) super.set(fieldName, value); + } + + @Override + public CacheInvalidationRule clone() { + return (CacheInvalidationRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheKeyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheKeyPolicy.java new file mode 100644 index 00000000000..6b7db1bf337 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CacheKeyPolicy.java @@ -0,0 +1,231 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing what to include in the cache key for a request for Cloud CDN. + * + *

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 CacheKeyPolicy extends com.google.api.client.json.GenericJson { + + /** + * If true, requests to different hosts will be cached separately. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeHost; + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includeHttpHeaders; + + /** + * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in + * the cache key Cloud CDN generates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includeNamedCookies; + + /** + * If true, http and https requests will be cached separately. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeProtocol; + + /** + * If true, include query string parameters in the cache key according to query_string_whitelist + * and query_string_blacklist. If neither is set, the entire query string will be included. If + * false, the query string will be excluded from the cache key entirely. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeQueryString; + + /** + * Names of query string parameters to exclude in cache keys. All other parameters will be + * included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and + * '=' will be percent encoded and not treated as delimiters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queryStringBlacklist; + + /** + * Names of query string parameters to include in cache keys. All other parameters will be + * excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and + * '=' will be percent encoded and not treated as delimiters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queryStringWhitelist; + + /** + * If true, requests to different hosts will be cached separately. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIncludeHost() { + return includeHost; + } + + /** + * If true, requests to different hosts will be cached separately. + * @param includeHost includeHost or {@code null} for none + */ + public CacheKeyPolicy setIncludeHost(java.lang.Boolean includeHost) { + this.includeHost = includeHost; + return this; + } + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * @return value or {@code null} for none + */ + public java.util.List getIncludeHttpHeaders() { + return includeHttpHeaders; + } + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * @param includeHttpHeaders includeHttpHeaders or {@code null} for none + */ + public CacheKeyPolicy setIncludeHttpHeaders(java.util.List includeHttpHeaders) { + this.includeHttpHeaders = includeHttpHeaders; + return this; + } + + /** + * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in + * the cache key Cloud CDN generates. + * @return value or {@code null} for none + */ + public java.util.List getIncludeNamedCookies() { + return includeNamedCookies; + } + + /** + * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in + * the cache key Cloud CDN generates. + * @param includeNamedCookies includeNamedCookies or {@code null} for none + */ + public CacheKeyPolicy setIncludeNamedCookies(java.util.List includeNamedCookies) { + this.includeNamedCookies = includeNamedCookies; + return this; + } + + /** + * If true, http and https requests will be cached separately. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIncludeProtocol() { + return includeProtocol; + } + + /** + * If true, http and https requests will be cached separately. + * @param includeProtocol includeProtocol or {@code null} for none + */ + public CacheKeyPolicy setIncludeProtocol(java.lang.Boolean includeProtocol) { + this.includeProtocol = includeProtocol; + return this; + } + + /** + * If true, include query string parameters in the cache key according to query_string_whitelist + * and query_string_blacklist. If neither is set, the entire query string will be included. If + * false, the query string will be excluded from the cache key entirely. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIncludeQueryString() { + return includeQueryString; + } + + /** + * If true, include query string parameters in the cache key according to query_string_whitelist + * and query_string_blacklist. If neither is set, the entire query string will be included. If + * false, the query string will be excluded from the cache key entirely. + * @param includeQueryString includeQueryString or {@code null} for none + */ + public CacheKeyPolicy setIncludeQueryString(java.lang.Boolean includeQueryString) { + this.includeQueryString = includeQueryString; + return this; + } + + /** + * Names of query string parameters to exclude in cache keys. All other parameters will be + * included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and + * '=' will be percent encoded and not treated as delimiters. + * @return value or {@code null} for none + */ + public java.util.List getQueryStringBlacklist() { + return queryStringBlacklist; + } + + /** + * Names of query string parameters to exclude in cache keys. All other parameters will be + * included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and + * '=' will be percent encoded and not treated as delimiters. + * @param queryStringBlacklist queryStringBlacklist or {@code null} for none + */ + public CacheKeyPolicy setQueryStringBlacklist(java.util.List queryStringBlacklist) { + this.queryStringBlacklist = queryStringBlacklist; + return this; + } + + /** + * Names of query string parameters to include in cache keys. All other parameters will be + * excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and + * '=' will be percent encoded and not treated as delimiters. + * @return value or {@code null} for none + */ + public java.util.List getQueryStringWhitelist() { + return queryStringWhitelist; + } + + /** + * Names of query string parameters to include in cache keys. All other parameters will be + * excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and + * '=' will be percent encoded and not treated as delimiters. + * @param queryStringWhitelist queryStringWhitelist or {@code null} for none + */ + public CacheKeyPolicy setQueryStringWhitelist(java.util.List queryStringWhitelist) { + this.queryStringWhitelist = queryStringWhitelist; + return this; + } + + @Override + public CacheKeyPolicy set(String fieldName, Object value) { + return (CacheKeyPolicy) super.set(fieldName, value); + } + + @Override + public CacheKeyPolicy clone() { + return (CacheKeyPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicy.java new file mode 100644 index 00000000000..d85822398d1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicy.java @@ -0,0 +1,441 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing CachePolicy configuration for URL Map's Route Action. + * + *

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 CachePolicy extends com.google.api.client.json.GenericJson { + + /** + * Bypass the cache when the specified request headers are matched by name, e.g. Pragma or + * Authorization headers. Values are case-insensitive. Up to 5 header names can be specified. The + * cache is bypassed for all `cacheMode` values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cacheBypassRequestHeaderNames; + + /** + * The cache key configuration. If not specified, the default behavior depends on the backend + * type: for Backend Services, the complete request URI is used; for Backend Buckets, the request + * URI is used without the protocol or host, and only query parameters known to Cloud Storage are + * included. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CachePolicyCacheKeyPolicy cacheKeyPolicy; + + /** + * Specifies the cache setting for all responses from this route. If not specified, Cloud CDN uses + * `CACHE_ALL_STATIC` mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cacheMode; + + /** + * Specifies a separate client (e.g. browser client) maximum TTL for cached content. This is used + * to clamp the max-age (or Expires) value sent to the client. With `FORCE_CACHE_ALL`, the lesser + * of `clientTtl` and `defaultTtl` is used for the response max-age directive, along with a + * "public" directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl` clamps the + * max-age from the origin (if specified), or else sets the response max-age directive to the + * lesser of the `clientTtl` and `defaultTtl`, and also ensures a "public" cache-control directive + * is present. The maximum allowed value is 31,622,400s (1 year). If not specified, Cloud CDN uses + * 3600s (1 hour) for `CACHE_ALL_STATIC` mode. Cannot exceed `maxTtl`. Cannot be specified when + * `cacheMode` is `USE_ORIGIN_HEADERS`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration clientTtl; + + /** + * Specifies the default TTL for cached content for responses that do not have an existing valid + * TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of + * `defaultTtl` cannot be set to a value greater than that of `maxTtl`. When the `cacheMode` is + * set to `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all responses. The + * maximum allowed value is 31,622,400s (1 year). Infrequently accessed objects may be evicted + * from the cache before the defined TTL. If not specified, Cloud CDN uses 3600s (1 hour) for + * `CACHE_ALL_STATIC` and `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is + * `USE_ORIGIN_HEADERS`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration defaultTtl; + + /** + * Specifies the maximum allowed TTL for cached content. Cache directives that attempt to set a + * max-age or s-maxage higher than this, or an Expires header more than `maxTtl` seconds in the + * future will be capped at the value of `maxTtl`, as if it were the value of an s-maxage Cache- + * Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means + * "always revalidate". The maximum allowed value is 31,622,400s (1 year). Infrequently accessed + * objects may be evicted from the cache before the defined TTL. If not specified, Cloud CDN uses + * 86400s (1 day) for `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache + * mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxTtl; + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the `cacheMode` is set to `CACHE_ALL_STATIC` or + * `USE_ORIGIN_HEADERS`, negative caching applies to responses with the specified response code + * that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the `cacheMode` is + * set to `FORCE_CACHE_ALL`, negative caching applies to all responses with the specified response + * code, and overrides any caching headers. By default, Cloud CDN applies the following TTLs to + * these HTTP status codes: + * + * * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m * 404 (Not Found), 410 (Gone), 451 + * (Unavailable For Legal Reasons): 120s * 405 (Method Not Found), 501 (Not Implemented): 60s + * + * These defaults can be overridden in `negativeCachingPolicy`. If not specified, Cloud CDN + * applies negative caching by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean negativeCaching; + + /** + * Sets a cache TTL for the specified HTTP status code. `negativeCaching` must be enabled to + * configure `negativeCachingPolicy`. Omitting the policy and leaving `negativeCaching` enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * `negativeCachingPolicy`, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List negativeCachingPolicy; + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. If not specified, Cloud CDN applies request coalescing by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestCoalescing; + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration serveWhileStale; + + /** + * Bypass the cache when the specified request headers are matched by name, e.g. Pragma or + * Authorization headers. Values are case-insensitive. Up to 5 header names can be specified. The + * cache is bypassed for all `cacheMode` values. + * @return value or {@code null} for none + */ + public java.util.List getCacheBypassRequestHeaderNames() { + return cacheBypassRequestHeaderNames; + } + + /** + * Bypass the cache when the specified request headers are matched by name, e.g. Pragma or + * Authorization headers. Values are case-insensitive. Up to 5 header names can be specified. The + * cache is bypassed for all `cacheMode` values. + * @param cacheBypassRequestHeaderNames cacheBypassRequestHeaderNames or {@code null} for none + */ + public CachePolicy setCacheBypassRequestHeaderNames(java.util.List cacheBypassRequestHeaderNames) { + this.cacheBypassRequestHeaderNames = cacheBypassRequestHeaderNames; + return this; + } + + /** + * The cache key configuration. If not specified, the default behavior depends on the backend + * type: for Backend Services, the complete request URI is used; for Backend Buckets, the request + * URI is used without the protocol or host, and only query parameters known to Cloud Storage are + * included. + * @return value or {@code null} for none + */ + public CachePolicyCacheKeyPolicy getCacheKeyPolicy() { + return cacheKeyPolicy; + } + + /** + * The cache key configuration. If not specified, the default behavior depends on the backend + * type: for Backend Services, the complete request URI is used; for Backend Buckets, the request + * URI is used without the protocol or host, and only query parameters known to Cloud Storage are + * included. + * @param cacheKeyPolicy cacheKeyPolicy or {@code null} for none + */ + public CachePolicy setCacheKeyPolicy(CachePolicyCacheKeyPolicy cacheKeyPolicy) { + this.cacheKeyPolicy = cacheKeyPolicy; + return this; + } + + /** + * Specifies the cache setting for all responses from this route. If not specified, Cloud CDN uses + * `CACHE_ALL_STATIC` mode. + * @return value or {@code null} for none + */ + public java.lang.String getCacheMode() { + return cacheMode; + } + + /** + * Specifies the cache setting for all responses from this route. If not specified, Cloud CDN uses + * `CACHE_ALL_STATIC` mode. + * @param cacheMode cacheMode or {@code null} for none + */ + public CachePolicy setCacheMode(java.lang.String cacheMode) { + this.cacheMode = cacheMode; + return this; + } + + /** + * Specifies a separate client (e.g. browser client) maximum TTL for cached content. This is used + * to clamp the max-age (or Expires) value sent to the client. With `FORCE_CACHE_ALL`, the lesser + * of `clientTtl` and `defaultTtl` is used for the response max-age directive, along with a + * "public" directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl` clamps the + * max-age from the origin (if specified), or else sets the response max-age directive to the + * lesser of the `clientTtl` and `defaultTtl`, and also ensures a "public" cache-control directive + * is present. The maximum allowed value is 31,622,400s (1 year). If not specified, Cloud CDN uses + * 3600s (1 hour) for `CACHE_ALL_STATIC` mode. Cannot exceed `maxTtl`. Cannot be specified when + * `cacheMode` is `USE_ORIGIN_HEADERS`. + * @return value or {@code null} for none + */ + public Duration getClientTtl() { + return clientTtl; + } + + /** + * Specifies a separate client (e.g. browser client) maximum TTL for cached content. This is used + * to clamp the max-age (or Expires) value sent to the client. With `FORCE_CACHE_ALL`, the lesser + * of `clientTtl` and `defaultTtl` is used for the response max-age directive, along with a + * "public" directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl` clamps the + * max-age from the origin (if specified), or else sets the response max-age directive to the + * lesser of the `clientTtl` and `defaultTtl`, and also ensures a "public" cache-control directive + * is present. The maximum allowed value is 31,622,400s (1 year). If not specified, Cloud CDN uses + * 3600s (1 hour) for `CACHE_ALL_STATIC` mode. Cannot exceed `maxTtl`. Cannot be specified when + * `cacheMode` is `USE_ORIGIN_HEADERS`. + * @param clientTtl clientTtl or {@code null} for none + */ + public CachePolicy setClientTtl(Duration clientTtl) { + this.clientTtl = clientTtl; + return this; + } + + /** + * Specifies the default TTL for cached content for responses that do not have an existing valid + * TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of + * `defaultTtl` cannot be set to a value greater than that of `maxTtl`. When the `cacheMode` is + * set to `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all responses. The + * maximum allowed value is 31,622,400s (1 year). Infrequently accessed objects may be evicted + * from the cache before the defined TTL. If not specified, Cloud CDN uses 3600s (1 hour) for + * `CACHE_ALL_STATIC` and `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is + * `USE_ORIGIN_HEADERS`. + * @return value or {@code null} for none + */ + public Duration getDefaultTtl() { + return defaultTtl; + } + + /** + * Specifies the default TTL for cached content for responses that do not have an existing valid + * TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of + * `defaultTtl` cannot be set to a value greater than that of `maxTtl`. When the `cacheMode` is + * set to `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all responses. The + * maximum allowed value is 31,622,400s (1 year). Infrequently accessed objects may be evicted + * from the cache before the defined TTL. If not specified, Cloud CDN uses 3600s (1 hour) for + * `CACHE_ALL_STATIC` and `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is + * `USE_ORIGIN_HEADERS`. + * @param defaultTtl defaultTtl or {@code null} for none + */ + public CachePolicy setDefaultTtl(Duration defaultTtl) { + this.defaultTtl = defaultTtl; + return this; + } + + /** + * Specifies the maximum allowed TTL for cached content. Cache directives that attempt to set a + * max-age or s-maxage higher than this, or an Expires header more than `maxTtl` seconds in the + * future will be capped at the value of `maxTtl`, as if it were the value of an s-maxage Cache- + * Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means + * "always revalidate". The maximum allowed value is 31,622,400s (1 year). Infrequently accessed + * objects may be evicted from the cache before the defined TTL. If not specified, Cloud CDN uses + * 86400s (1 day) for `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache + * mode. + * @return value or {@code null} for none + */ + public Duration getMaxTtl() { + return maxTtl; + } + + /** + * Specifies the maximum allowed TTL for cached content. Cache directives that attempt to set a + * max-age or s-maxage higher than this, or an Expires header more than `maxTtl` seconds in the + * future will be capped at the value of `maxTtl`, as if it were the value of an s-maxage Cache- + * Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means + * "always revalidate". The maximum allowed value is 31,622,400s (1 year). Infrequently accessed + * objects may be evicted from the cache before the defined TTL. If not specified, Cloud CDN uses + * 86400s (1 day) for `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache + * mode. + * @param maxTtl maxTtl or {@code null} for none + */ + public CachePolicy setMaxTtl(Duration maxTtl) { + this.maxTtl = maxTtl; + return this; + } + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the `cacheMode` is set to `CACHE_ALL_STATIC` or + * `USE_ORIGIN_HEADERS`, negative caching applies to responses with the specified response code + * that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the `cacheMode` is + * set to `FORCE_CACHE_ALL`, negative caching applies to all responses with the specified response + * code, and overrides any caching headers. By default, Cloud CDN applies the following TTLs to + * these HTTP status codes: + * + * * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m * 404 (Not Found), 410 (Gone), 451 + * (Unavailable For Legal Reasons): 120s * 405 (Method Not Found), 501 (Not Implemented): 60s + * + * These defaults can be overridden in `negativeCachingPolicy`. If not specified, Cloud CDN + * applies negative caching by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNegativeCaching() { + return negativeCaching; + } + + /** + * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching + * for common errors or redirects. This can reduce the load on your origin and improve end-user + * experience by reducing response latency. When the `cacheMode` is set to `CACHE_ALL_STATIC` or + * `USE_ORIGIN_HEADERS`, negative caching applies to responses with the specified response code + * that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the `cacheMode` is + * set to `FORCE_CACHE_ALL`, negative caching applies to all responses with the specified response + * code, and overrides any caching headers. By default, Cloud CDN applies the following TTLs to + * these HTTP status codes: + * + * * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m * 404 (Not Found), 410 (Gone), 451 + * (Unavailable For Legal Reasons): 120s * 405 (Method Not Found), 501 (Not Implemented): 60s + * + * These defaults can be overridden in `negativeCachingPolicy`. If not specified, Cloud CDN + * applies negative caching by default. + * @param negativeCaching negativeCaching or {@code null} for none + */ + public CachePolicy setNegativeCaching(java.lang.Boolean negativeCaching) { + this.negativeCaching = negativeCaching; + return this; + } + + /** + * Sets a cache TTL for the specified HTTP status code. `negativeCaching` must be enabled to + * configure `negativeCachingPolicy`. Omitting the policy and leaving `negativeCaching` enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * `negativeCachingPolicy`, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * @return value or {@code null} for none + */ + public java.util.List getNegativeCachingPolicy() { + return negativeCachingPolicy; + } + + /** + * Sets a cache TTL for the specified HTTP status code. `negativeCaching` must be enabled to + * configure `negativeCachingPolicy`. Omitting the policy and leaving `negativeCaching` enabled + * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit + * `negativeCachingPolicy`, you should take care to specify a cache TTL for all response codes + * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy + * exists. + * @param negativeCachingPolicy negativeCachingPolicy or {@code null} for none + */ + public CachePolicy setNegativeCachingPolicy(java.util.List negativeCachingPolicy) { + this.negativeCachingPolicy = negativeCachingPolicy; + return this; + } + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. If not specified, Cloud CDN applies request coalescing by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestCoalescing() { + return requestCoalescing; + } + + /** + * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number + * of requests to the origin. If not specified, Cloud CDN applies request coalescing by default. + * @param requestCoalescing requestCoalescing or {@code null} for none + */ + public CachePolicy setRequestCoalescing(java.lang.Boolean requestCoalescing) { + this.requestCoalescing = requestCoalescing; + return this; + } + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * @return value or {@code null} for none + */ + public Duration getServeWhileStale() { + return serveWhileStale; + } + + /** + * Serve existing content from the cache (if available) when revalidating content with the origin, + * or when an error is encountered when refreshing the cache. This setting defines the default + * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale + * responses that exceed the TTL configured here will not be served. The default limit (max-stale) + * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- + * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this + * to zero (0) to disable serve-while-stale. + * @param serveWhileStale serveWhileStale or {@code null} for none + */ + public CachePolicy setServeWhileStale(Duration serveWhileStale) { + this.serveWhileStale = serveWhileStale; + return this; + } + + @Override + public CachePolicy set(String fieldName, Object value) { + return (CachePolicy) super.set(fieldName, value); + } + + @Override + public CachePolicy clone() { + return (CachePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java new file mode 100644 index 00000000000..1be7b3a5ace --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java @@ -0,0 +1,307 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message containing what to include in the cache key for a request for Cache Policy defined on + * Route Action. + * + *

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 CachePolicyCacheKeyPolicy extends com.google.api.client.json.GenericJson { + + /** + * Names of query string parameters to exclude in cache keys. All other parameters will be + * included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' + * and '=' will be percent encoded and not treated as delimiters. + * + * Note: This field applies to routes that use backend services. Attempting to set it on a route + * that points exclusively to Backend Buckets will result in a configuration error. For routes + * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should + * be part of the cache key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedQueryParameters; + + /** + * If true, requests to different hosts will be cached separately. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache + * key. Attempting to set it on a route that points exclusively to Backend Buckets will result in + * a configuration error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeHost; + + /** + * If true, http and https requests will be cached separately. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's + * cache key. Attempting to set on a route that points exclusively to Backend Buckets will result + * in a configuration error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeProtocol; + + /** + * If true, include query string parameters in the cache key according to + * `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query + * string will be included. If false, the query string will be excluded from the cache key + * entirely. + * + * Note: This field applies to routes that use backend services. Attempting to set it on a route + * that points exclusively to Backend Buckets will result in a configuration error. For routes + * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should + * be part of the cache key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeQueryString; + + /** + * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in + * the cache key Cloud CDN generates. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to + * Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedCookieNames; + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedHeaderNames; + + /** + * Names of query string parameters to include in cache keys. All other parameters will be + * excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' + * and '=' will be percent encoded and not treated as delimiters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedQueryParameters; + + /** + * Names of query string parameters to exclude in cache keys. All other parameters will be + * included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' + * and '=' will be percent encoded and not treated as delimiters. + * + * Note: This field applies to routes that use backend services. Attempting to set it on a route + * that points exclusively to Backend Buckets will result in a configuration error. For routes + * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should + * be part of the cache key. + * @return value or {@code null} for none + */ + public java.util.List getExcludedQueryParameters() { + return excludedQueryParameters; + } + + /** + * Names of query string parameters to exclude in cache keys. All other parameters will be + * included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' + * and '=' will be percent encoded and not treated as delimiters. + * + * Note: This field applies to routes that use backend services. Attempting to set it on a route + * that points exclusively to Backend Buckets will result in a configuration error. For routes + * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should + * be part of the cache key. + * @param excludedQueryParameters excludedQueryParameters or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setExcludedQueryParameters(java.util.List excludedQueryParameters) { + this.excludedQueryParameters = excludedQueryParameters; + return this; + } + + /** + * If true, requests to different hosts will be cached separately. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache + * key. Attempting to set it on a route that points exclusively to Backend Buckets will result in + * a configuration error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIncludeHost() { + return includeHost; + } + + /** + * If true, requests to different hosts will be cached separately. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache + * key. Attempting to set it on a route that points exclusively to Backend Buckets will result in + * a configuration error. + * @param includeHost includeHost or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setIncludeHost(java.lang.Boolean includeHost) { + this.includeHost = includeHost; + return this; + } + + /** + * If true, http and https requests will be cached separately. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's + * cache key. Attempting to set on a route that points exclusively to Backend Buckets will result + * in a configuration error. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIncludeProtocol() { + return includeProtocol; + } + + /** + * If true, http and https requests will be cached separately. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's + * cache key. Attempting to set on a route that points exclusively to Backend Buckets will result + * in a configuration error. + * @param includeProtocol includeProtocol or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setIncludeProtocol(java.lang.Boolean includeProtocol) { + this.includeProtocol = includeProtocol; + return this; + } + + /** + * If true, include query string parameters in the cache key according to + * `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query + * string will be included. If false, the query string will be excluded from the cache key + * entirely. + * + * Note: This field applies to routes that use backend services. Attempting to set it on a route + * that points exclusively to Backend Buckets will result in a configuration error. For routes + * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should + * be part of the cache key. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIncludeQueryString() { + return includeQueryString; + } + + /** + * If true, include query string parameters in the cache key according to + * `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query + * string will be included. If false, the query string will be excluded from the cache key + * entirely. + * + * Note: This field applies to routes that use backend services. Attempting to set it on a route + * that points exclusively to Backend Buckets will result in a configuration error. For routes + * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should + * be part of the cache key. + * @param includeQueryString includeQueryString or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setIncludeQueryString(java.lang.Boolean includeQueryString) { + this.includeQueryString = includeQueryString; + return this; + } + + /** + * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in + * the cache key Cloud CDN generates. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to + * Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified. + * @return value or {@code null} for none + */ + public java.util.List getIncludedCookieNames() { + return includedCookieNames; + } + + /** + * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in + * the cache key Cloud CDN generates. + * + * Note: This setting is only applicable to routes that use a Backend Service. It does not affect + * requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to + * Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified. + * @param includedCookieNames includedCookieNames or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setIncludedCookieNames(java.util.List includedCookieNames) { + this.includedCookieNames = includedCookieNames; + return this; + } + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * @return value or {@code null} for none + */ + public java.util.List getIncludedHeaderNames() { + return includedHeaderNames; + } + + /** + * Allows HTTP request headers (by name) to be used in the cache key. + * @param includedHeaderNames includedHeaderNames or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setIncludedHeaderNames(java.util.List includedHeaderNames) { + this.includedHeaderNames = includedHeaderNames; + return this; + } + + /** + * Names of query string parameters to include in cache keys. All other parameters will be + * excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' + * and '=' will be percent encoded and not treated as delimiters. + * @return value or {@code null} for none + */ + public java.util.List getIncludedQueryParameters() { + return includedQueryParameters; + } + + /** + * Names of query string parameters to include in cache keys. All other parameters will be + * excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' + * and '=' will be percent encoded and not treated as delimiters. + * @param includedQueryParameters includedQueryParameters or {@code null} for none + */ + public CachePolicyCacheKeyPolicy setIncludedQueryParameters(java.util.List includedQueryParameters) { + this.includedQueryParameters = includedQueryParameters; + return this; + } + + @Override + public CachePolicyCacheKeyPolicy set(String fieldName, Object value) { + return (CachePolicyCacheKeyPolicy) super.set(fieldName, value); + } + + @Override + public CachePolicyCacheKeyPolicy clone() { + return (CachePolicyCacheKeyPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java new file mode 100644 index 00000000000..99e81ac96dd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java @@ -0,0 +1,102 @@ +/* + * 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; + +/** + * Specify CDN TTLs for response error codes. + * + *

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 CachePolicyNegativeCachingPolicy extends com.google.api.client.json.GenericJson { + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from + * the cache before the defined TTL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration ttl; + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, + * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status + * code more than once. + * @param code code or {@code null} for none + */ + public CachePolicyNegativeCachingPolicy setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from + * the cache before the defined TTL. + * @return value or {@code null} for none + */ + public Duration getTtl() { + return ttl; + } + + /** + * The TTL (in seconds) for which to cache responses with the corresponding status code. The + * maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from + * the cache before the defined TTL. + * @param ttl ttl or {@code null} for none + */ + public CachePolicyNegativeCachingPolicy setTtl(Duration ttl) { + this.ttl = ttl; + return this; + } + + @Override + public CachePolicyNegativeCachingPolicy set(String fieldName, Object value) { + return (CachePolicyNegativeCachingPolicy) super.set(fieldName, value); + } + + @Override + public CachePolicyNegativeCachingPolicy clone() { + return (CachePolicyNegativeCachingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java new file mode 100644 index 00000000000..d9a1ac93f2f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A request to recommend the best way to consume the specified resources in the future. + * + *

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 CalendarModeAdviceRequest extends com.google.api.client.json.GenericJson { + + /** + * Specification of resources to create in the future. The key of the map is an arbitrary string + * specified by the caller. Value of the map is a specification of required resources and their + * constraints. Currently only one value is allowed in this map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map futureResourcesSpecs; + + /** + * Specification of resources to create in the future. The key of the map is an arbitrary string + * specified by the caller. Value of the map is a specification of required resources and their + * constraints. Currently only one value is allowed in this map. + * @return value or {@code null} for none + */ + public java.util.Map getFutureResourcesSpecs() { + return futureResourcesSpecs; + } + + /** + * Specification of resources to create in the future. The key of the map is an arbitrary string + * specified by the caller. Value of the map is a specification of required resources and their + * constraints. Currently only one value is allowed in this map. + * @param futureResourcesSpecs futureResourcesSpecs or {@code null} for none + */ + public CalendarModeAdviceRequest setFutureResourcesSpecs(java.util.Map futureResourcesSpecs) { + this.futureResourcesSpecs = futureResourcesSpecs; + return this; + } + + @Override + public CalendarModeAdviceRequest set(String fieldName, Object value) { + return (CalendarModeAdviceRequest) super.set(fieldName, value); + } + + @Override + public CalendarModeAdviceRequest clone() { + return (CalendarModeAdviceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java new file mode 100644 index 00000000000..b0e9bc7e715 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A response containing the recommended way of creating the specified resources in the future. It + * contains (will contain) multiple recommendations that can be analyzed by the customer and the + * best one can be picked. + * + *

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 CalendarModeAdviceResponse extends com.google.api.client.json.GenericJson { + + /** + * Recommendations where, how and when to create the requested resources in order to maximize + * their obtainability and minimize cost. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recommendations; + + /** + * Recommendations where, how and when to create the requested resources in order to maximize + * their obtainability and minimize cost. + * @return value or {@code null} for none + */ + public java.util.List getRecommendations() { + return recommendations; + } + + /** + * Recommendations where, how and when to create the requested resources in order to maximize + * their obtainability and minimize cost. + * @param recommendations recommendations or {@code null} for none + */ + public CalendarModeAdviceResponse setRecommendations(java.util.List recommendations) { + this.recommendations = recommendations; + return this; + } + + @Override + public CalendarModeAdviceResponse set(String fieldName, Object value) { + return (CalendarModeAdviceResponse) super.set(fieldName, value); + } + + @Override + public CalendarModeAdviceResponse clone() { + return (CalendarModeAdviceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java new file mode 100644 index 00000000000..b72b349be77 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A single recommendation to create requested resources. Contains detailed recommendations for + * every future resources specification specified in CalendarModeAdviceRequest. + * + *

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 CalendarModeRecommendation extends com.google.api.client.json.GenericJson { + + /** + * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. + * Keys of the map correspond to keys specified in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map recommendationsPerSpec; + + /** + * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. + * Keys of the map correspond to keys specified in the request. + * @return value or {@code null} for none + */ + public java.util.Map getRecommendationsPerSpec() { + return recommendationsPerSpec; + } + + /** + * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. + * Keys of the map correspond to keys specified in the request. + * @param recommendationsPerSpec recommendationsPerSpec or {@code null} for none + */ + public CalendarModeRecommendation setRecommendationsPerSpec(java.util.Map recommendationsPerSpec) { + this.recommendationsPerSpec = recommendationsPerSpec; + return this; + } + + @Override + public CalendarModeRecommendation set(String fieldName, Object value) { + return (CalendarModeRecommendation) super.set(fieldName, value); + } + + @Override + public CalendarModeRecommendation clone() { + return (CalendarModeRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequest.java new file mode 100644 index 00000000000..a605169dfb8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequest.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A request to provide Assistant Scores. These scores determine VM obtainability and preemption + * likelihood. + * + *

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 CapacityAdviceRequest extends com.google.api.client.json.GenericJson { + + /** + * Policy specifying the distribution of instances across zones within the requested region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestDistributionPolicy distributionPolicy; + + /** + * Policy for instance selectors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy; + + /** + * Instance properties for this request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestInstanceProperties instanceProperties; + + /** + * The number of VM instances to request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** + * Policy specifying the distribution of instances across zones within the requested region. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicy getDistributionPolicy() { + return distributionPolicy; + } + + /** + * Policy specifying the distribution of instances across zones within the requested region. + * @param distributionPolicy distributionPolicy or {@code null} for none + */ + public CapacityAdviceRequest setDistributionPolicy(CapacityAdviceRequestDistributionPolicy distributionPolicy) { + this.distributionPolicy = distributionPolicy; + return this; + } + + /** + * Policy for instance selectors. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { + return instanceFlexibilityPolicy; + } + + /** + * Policy for instance selectors. + * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none + */ + public CapacityAdviceRequest setInstanceFlexibilityPolicy(CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy) { + this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; + return this; + } + + /** + * Instance properties for this request. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestInstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * Instance properties for this request. + * @param instanceProperties instanceProperties or {@code null} for none + */ + public CapacityAdviceRequest setInstanceProperties(CapacityAdviceRequestInstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + /** + * The number of VM instances to request. + * @return value or {@code null} for none + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * The number of VM instances to request. + * @param size size or {@code null} for none + */ + public CapacityAdviceRequest setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + @Override + public CapacityAdviceRequest set(String fieldName, Object value) { + return (CapacityAdviceRequest) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequest clone() { + return (CapacityAdviceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java new file mode 100644 index 00000000000..4503578d487 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Distribution policy. + * + *

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 CapacityAdviceRequestDistributionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or + * BALANCED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetShape; + + /** + * Zones where Capacity Advisor looks for capacity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or + * BALANCED. + * @return value or {@code null} for none + */ + public java.lang.String getTargetShape() { + return targetShape; + } + + /** + * Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or + * BALANCED. + * @param targetShape targetShape or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicy setTargetShape(java.lang.String targetShape) { + this.targetShape = targetShape; + return this; + } + + /** + * Zones where Capacity Advisor looks for capacity. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * Zones where Capacity Advisor looks for capacity. + * @param zones zones or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicy setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public CapacityAdviceRequestDistributionPolicy set(String fieldName, Object value) { + return (CapacityAdviceRequestDistributionPolicy) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestDistributionPolicy clone() { + return (CapacityAdviceRequestDistributionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java new file mode 100644 index 00000000000..5adcf4c3e91 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * Zone configuration for the distribution policy. + * + *

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 CapacityAdviceRequestDistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The URL of the zone. It can be a partial or full URL. For example, the following are valid + * values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The URL of the zone. It can be a partial or full URL. For example, the following are valid + * values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The URL of the zone. It can be a partial or full URL. For example, the following are valid + * values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * @param zone zone or {@code null} for none + */ + public CapacityAdviceRequestDistributionPolicyZoneConfiguration setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public CapacityAdviceRequestDistributionPolicyZoneConfiguration set(String fieldName, Object value) { + return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestDistributionPolicyZoneConfiguration clone() { + return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java new file mode 100644 index 00000000000..c826793a1ed --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicy.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; + +/** + * Specification of alternative, flexible instance configurations. + * + *

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 CapacityAdviceRequestInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + + /** + * Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 + * string that identifies the instance selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map instanceSelections; + + /** + * Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 + * string that identifies the instance selection. + * @return value or {@code null} for none + */ + public java.util.Map getInstanceSelections() { + return instanceSelections; + } + + /** + * Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 + * string that identifies the instance selection. + * @param instanceSelections instanceSelections or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { + this.instanceSelections = instanceSelections; + return this; + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicy set(String fieldName, Object value) { + return (CapacityAdviceRequestInstanceFlexibilityPolicy) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicy clone() { + return (CapacityAdviceRequestInstanceFlexibilityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..4e28f70cdc7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,147 @@ +/* + * 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; + +/** + * Machine specification. + * + *

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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection 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); + } + + /** + * Full machine-type names, e.g. "n1-standard-16". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List 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 + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Local SSDs. + * @param disks disks or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection 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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + + /** + * Full machine-type names, e.g. "n1-standard-16". + * @return value or {@code null} for none + */ + public java.util.List getMachineTypes() { + return machineTypes; + } + + /** + * Full machine-type names, e.g. "n1-standard-16". + * @param machineTypes machineTypes or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { + this.machineTypes = machineTypes; + 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); + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection clone() { + return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java new file mode 100644 index 00000000000..da998bd63f6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.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; + +/** + * Attached disk configuration. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk 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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk set(String fieldName, Object value) { + return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk clone() { + return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java new file mode 100644 index 00000000000..445415654fb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.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; + +/** + * Instance provisioning properties. + * + *

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 CapacityAdviceRequestInstanceProperties extends com.google.api.client.json.GenericJson { + + /** + * Specifies the scheduling options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceRequestInstancePropertiesScheduling scheduling; + + /** + * Specifies the scheduling options. + * @return value or {@code null} for none + */ + public CapacityAdviceRequestInstancePropertiesScheduling getScheduling() { + return scheduling; + } + + /** + * Specifies the scheduling options. + * @param scheduling scheduling or {@code null} for none + */ + public CapacityAdviceRequestInstanceProperties setScheduling(CapacityAdviceRequestInstancePropertiesScheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + @Override + public CapacityAdviceRequestInstanceProperties set(String fieldName, Object value) { + return (CapacityAdviceRequestInstanceProperties) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstanceProperties clone() { + return (CapacityAdviceRequestInstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java new file mode 100644 index 00000000000..bf9e09e24d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.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; + +/** + * Defines the instance scheduling options. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CapacityAdviceRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { + + /** + * Specifies the provisioning model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningModel; + + /** + * Specifies the provisioning model. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningModel() { + return provisioningModel; + } + + /** + * Specifies the provisioning model. + * @param provisioningModel provisioningModel or {@code null} for none + */ + public CapacityAdviceRequestInstancePropertiesScheduling setProvisioningModel(java.lang.String provisioningModel) { + this.provisioningModel = provisioningModel; + return this; + } + + @Override + public CapacityAdviceRequestInstancePropertiesScheduling set(String fieldName, Object value) { + return (CapacityAdviceRequestInstancePropertiesScheduling) super.set(fieldName, value); + } + + @Override + public CapacityAdviceRequestInstancePropertiesScheduling clone() { + return (CapacityAdviceRequestInstancePropertiesScheduling) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.java new file mode 100644 index 00000000000..5bdc7c460d8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponse.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; + +/** + * A response contains scoring recommendations. + * + *

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 CapacityAdviceResponse extends com.google.api.client.json.GenericJson { + + /** + * Initially the API will provide one recommendation which balances the individual scores + * according to the service provider's preference. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recommendations; + + /** + * Initially the API will provide one recommendation which balances the individual scores + * according to the service provider's preference. + * @return value or {@code null} for none + */ + public java.util.List getRecommendations() { + return recommendations; + } + + /** + * Initially the API will provide one recommendation which balances the individual scores + * according to the service provider's preference. + * @param recommendations recommendations or {@code null} for none + */ + public CapacityAdviceResponse setRecommendations(java.util.List recommendations) { + this.recommendations = recommendations; + return this; + } + + @Override + public CapacityAdviceResponse set(String fieldName, Object value) { + return (CapacityAdviceResponse) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponse clone() { + return (CapacityAdviceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java new file mode 100644 index 00000000000..95c1b8642b0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Recommendation. + * + *

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 CapacityAdviceResponseRecommendation extends com.google.api.client.json.GenericJson { + + /** + * Scores for the recommendation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityAdviceResponseRecommendationScores scores; + + /** + * Shards represent blocks of uniform capacity in recommendations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List shards; + + /** + * Scores for the recommendation. + * @return value or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores getScores() { + return scores; + } + + /** + * Scores for the recommendation. + * @param scores scores or {@code null} for none + */ + public CapacityAdviceResponseRecommendation setScores(CapacityAdviceResponseRecommendationScores scores) { + this.scores = scores; + return this; + } + + /** + * Shards represent blocks of uniform capacity in recommendations. + * @return value or {@code null} for none + */ + public java.util.List getShards() { + return shards; + } + + /** + * Shards represent blocks of uniform capacity in recommendations. + * @param shards shards or {@code null} for none + */ + public CapacityAdviceResponseRecommendation setShards(java.util.List shards) { + this.shards = shards; + return this; + } + + @Override + public CapacityAdviceResponseRecommendation set(String fieldName, Object value) { + return (CapacityAdviceResponseRecommendation) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponseRecommendation clone() { + return (CapacityAdviceResponseRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java new file mode 100644 index 00000000000..600f9fead4a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java @@ -0,0 +1,96 @@ +/* + * 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; + +/** + * Groups information about a shard of capacity. + * + *

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 CapacityAdviceResponseRecommendationScores extends com.google.api.client.json.GenericJson { + + /** + * The estimated run time of the majority of Spot VMs in the request before preemption. The + * estimate is best-effort only. It is based on historical data and current conditions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String estimatedUptime; + + /** + * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the + * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double obtainability; + + /** + * The estimated run time of the majority of Spot VMs in the request before preemption. The + * estimate is best-effort only. It is based on historical data and current conditions. + * @return value or {@code null} for none + */ + public String getEstimatedUptime() { + return estimatedUptime; + } + + /** + * The estimated run time of the majority of Spot VMs in the request before preemption. The + * estimate is best-effort only. It is based on historical data and current conditions. + * @param estimatedUptime estimatedUptime or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores setEstimatedUptime(String estimatedUptime) { + this.estimatedUptime = estimatedUptime; + return this; + } + + /** + * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the + * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. + * @return value or {@code null} for none + */ + public java.lang.Double getObtainability() { + return obtainability; + } + + /** + * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the + * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. + * @param obtainability obtainability or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores setObtainability(java.lang.Double obtainability) { + this.obtainability = obtainability; + return this; + } + + @Override + public CapacityAdviceResponseRecommendationScores set(String fieldName, Object value) { + return (CapacityAdviceResponseRecommendationScores) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponseRecommendationScores clone() { + return (CapacityAdviceResponseRecommendationScores) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java new file mode 100644 index 00000000000..597f6f8a9b3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java @@ -0,0 +1,139 @@ +/* + * 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; + +/** + * Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone + * and a single machine shape. Each shard defines a size expressed as the number of VMs. + * + *

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 CapacityAdviceResponseRecommendationShard extends com.google.api.client.json.GenericJson { + + /** + * The number of instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer instanceCount; + + /** + * The machine type corresponds to the instance selection in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * The provisioning model that you want to view recommendations for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningModel; + + /** + * Output only. The zone name for this shard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The number of instances. + * @return value or {@code null} for none + */ + public java.lang.Integer getInstanceCount() { + return instanceCount; + } + + /** + * The number of instances. + * @param instanceCount instanceCount or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setInstanceCount(java.lang.Integer instanceCount) { + this.instanceCount = instanceCount; + return this; + } + + /** + * The machine type corresponds to the instance selection in the request. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type corresponds to the instance selection in the request. + * @param machineType machineType or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * The provisioning model that you want to view recommendations for. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningModel() { + return provisioningModel; + } + + /** + * The provisioning model that you want to view recommendations for. + * @param provisioningModel provisioningModel or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setProvisioningModel(java.lang.String provisioningModel) { + this.provisioningModel = provisioningModel; + return this; + } + + /** + * Output only. The zone name for this shard. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. The zone name for this shard. + * @param zone zone or {@code null} for none + */ + public CapacityAdviceResponseRecommendationShard setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public CapacityAdviceResponseRecommendationShard set(String fieldName, Object value) { + return (CapacityAdviceResponseRecommendationShard) super.set(fieldName, value); + } + + @Override + public CapacityAdviceResponseRecommendationShard clone() { + return (CapacityAdviceResponseRecommendationShard) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequest.java new file mode 100644 index 00000000000..14118cbb94c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequest.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A request to get the capacity history. + * + *

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 CapacityHistoryRequest extends com.google.api.client.json.GenericJson { + + /** + * Instance properties for this request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityHistoryRequestInstanceProperties instanceProperties; + + /** + * Location policy for this request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CapacityHistoryRequestLocationPolicy locationPolicy; + + /** + * List of history types to get capacity history for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List types; + + /** + * Instance properties for this request. + * @return value or {@code null} for none + */ + public CapacityHistoryRequestInstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * Instance properties for this request. + * @param instanceProperties instanceProperties or {@code null} for none + */ + public CapacityHistoryRequest setInstanceProperties(CapacityHistoryRequestInstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + /** + * Location policy for this request. + * @return value or {@code null} for none + */ + public CapacityHistoryRequestLocationPolicy getLocationPolicy() { + return locationPolicy; + } + + /** + * Location policy for this request. + * @param locationPolicy locationPolicy or {@code null} for none + */ + public CapacityHistoryRequest setLocationPolicy(CapacityHistoryRequestLocationPolicy locationPolicy) { + this.locationPolicy = locationPolicy; + return this; + } + + /** + * List of history types to get capacity history for. + * @return value or {@code null} for none + */ + public java.util.List getTypes() { + return types; + } + + /** + * List of history types to get capacity history for. + * @param types types or {@code null} for none + */ + public CapacityHistoryRequest setTypes(java.util.List types) { + this.types = types; + return this; + } + + @Override + public CapacityHistoryRequest set(String fieldName, Object value) { + return (CapacityHistoryRequest) super.set(fieldName, value); + } + + @Override + public CapacityHistoryRequest clone() { + return (CapacityHistoryRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java new file mode 100644 index 00000000000..e0d988bc989 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java @@ -0,0 +1,144 @@ +/* + * 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; + +/** + * Instance properties for this request. + * + *

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 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}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * Specifies the scheduling options. + * The value may be {@code null}. + */ + @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 + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type for the VM, such as `n2-standard-4`. + * @param machineType machineType or {@code null} for none + */ + public CapacityHistoryRequestInstanceProperties setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * Specifies the scheduling options. + * @return value or {@code null} for none + */ + public CapacityHistoryRequestInstancePropertiesScheduling getScheduling() { + return scheduling; + } + + /** + * Specifies the scheduling options. + * @param scheduling scheduling or {@code null} for none + */ + public CapacityHistoryRequestInstanceProperties setScheduling(CapacityHistoryRequestInstancePropertiesScheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + @Override + public CapacityHistoryRequestInstanceProperties set(String fieldName, Object value) { + return (CapacityHistoryRequestInstanceProperties) super.set(fieldName, value); + } + + @Override + public CapacityHistoryRequestInstanceProperties clone() { + return (CapacityHistoryRequestInstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesScheduling.java new file mode 100644 index 00000000000..5e893b36c14 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesScheduling.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * Scheduling options. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CapacityHistoryRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { + + /** + * The provisioning model to get capacity history for. This field must be set to SPOT. + * + * For more information, see Compute Engine instances provisioning models. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningModel; + + /** + * The provisioning model to get capacity history for. This field must be set to SPOT. + * + * For more information, see Compute Engine instances provisioning models. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningModel() { + return provisioningModel; + } + + /** + * The provisioning model to get capacity history for. This field must be set to SPOT. + * + * For more information, see Compute Engine instances provisioning models. + * @param provisioningModel provisioningModel or {@code null} for none + */ + public CapacityHistoryRequestInstancePropertiesScheduling setProvisioningModel(java.lang.String provisioningModel) { + this.provisioningModel = provisioningModel; + return this; + } + + @Override + public CapacityHistoryRequestInstancePropertiesScheduling set(String fieldName, Object value) { + return (CapacityHistoryRequestInstancePropertiesScheduling) super.set(fieldName, value); + } + + @Override + public CapacityHistoryRequestInstancePropertiesScheduling clone() { + return (CapacityHistoryRequestInstancePropertiesScheduling) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestLocationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestLocationPolicy.java new file mode 100644 index 00000000000..e7dc622afa3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestLocationPolicy.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Location policy for this request. + * + *

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 CapacityHistoryRequestLocationPolicy extends com.google.api.client.json.GenericJson { + + /** + * The region or zone to get capacity history for. + * + * It can be a partial or full URL. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * + * This field is optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * The region or zone to get capacity history for. + * + * It can be a partial or full URL. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * + * This field is optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * The region or zone to get capacity history for. + * + * It can be a partial or full URL. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * + * This field is optional. + * @param location location or {@code null} for none + */ + public CapacityHistoryRequestLocationPolicy setLocation(java.lang.String location) { + this.location = location; + return this; + } + + @Override + public CapacityHistoryRequestLocationPolicy set(String fieldName, Object value) { + return (CapacityHistoryRequestLocationPolicy) super.set(fieldName, value); + } + + @Override + public CapacityHistoryRequestLocationPolicy clone() { + return (CapacityHistoryRequestLocationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponse.java new file mode 100644 index 00000000000..f862ae75f7b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponse.java @@ -0,0 +1,144 @@ +/* + * 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; + +/** + * Contains the capacity history. + * + *

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 CapacityHistoryResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. The location (region or zone) for which the capacity history is returned. It is + * returned as a URL - For + * example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * The machine type for which the capacity history is returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * The preemption history for the requested machine type and location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List preemptionHistory; + + /** + * The price history for the requested machine type and location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List priceHistory; + + /** + * Output only. The location (region or zone) for which the capacity history is returned. It is + * returned as a URL - For + * example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Output only. The location (region or zone) for which the capacity history is returned. It is + * returned as a URL - For + * example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. + * @param location location or {@code null} for none + */ + public CapacityHistoryResponse setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * The machine type for which the capacity history is returned. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type for which the capacity history is returned. + * @param machineType machineType or {@code null} for none + */ + public CapacityHistoryResponse setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * The preemption history for the requested machine type and location. + * @return value or {@code null} for none + */ + public java.util.List getPreemptionHistory() { + return preemptionHistory; + } + + /** + * The preemption history for the requested machine type and location. + * @param preemptionHistory preemptionHistory or {@code null} for none + */ + public CapacityHistoryResponse setPreemptionHistory(java.util.List preemptionHistory) { + this.preemptionHistory = preemptionHistory; + return this; + } + + /** + * The price history for the requested machine type and location. + * @return value or {@code null} for none + */ + public java.util.List getPriceHistory() { + return priceHistory; + } + + /** + * The price history for the requested machine type and location. + * @param priceHistory priceHistory or {@code null} for none + */ + public CapacityHistoryResponse setPriceHistory(java.util.List priceHistory) { + this.priceHistory = priceHistory; + return this; + } + + @Override + public CapacityHistoryResponse set(String fieldName, Object value) { + return (CapacityHistoryResponse) super.set(fieldName, value); + } + + @Override + public CapacityHistoryResponse clone() { + return (CapacityHistoryResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePreemptionRecord.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePreemptionRecord.java new file mode 100644 index 00000000000..80e19ec0720 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePreemptionRecord.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A record of Spot VM preemption history. + * + *

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 CapacityHistoryResponsePreemptionRecord extends com.google.api.client.json.GenericJson { + + /** + * The time interval for this preemption record. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Interval interval; + + /** + * The preemption rate during the interval, representing the fraction of Spot VMs that were + * preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total + * Spots that stopped running). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double preemptionRate; + + /** + * The time interval for this preemption record. + * @return value or {@code null} for none + */ + public Interval getInterval() { + return interval; + } + + /** + * The time interval for this preemption record. + * @param interval interval or {@code null} for none + */ + public CapacityHistoryResponsePreemptionRecord setInterval(Interval interval) { + this.interval = interval; + return this; + } + + /** + * The preemption rate during the interval, representing the fraction of Spot VMs that were + * preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total + * Spots that stopped running). + * @return value or {@code null} for none + */ + public java.lang.Double getPreemptionRate() { + return preemptionRate; + } + + /** + * The preemption rate during the interval, representing the fraction of Spot VMs that were + * preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total + * Spots that stopped running). + * @param preemptionRate preemptionRate or {@code null} for none + */ + public CapacityHistoryResponsePreemptionRecord setPreemptionRate(java.lang.Double preemptionRate) { + this.preemptionRate = preemptionRate; + return this; + } + + @Override + public CapacityHistoryResponsePreemptionRecord set(String fieldName, Object value) { + return (CapacityHistoryResponsePreemptionRecord) super.set(fieldName, value); + } + + @Override + public CapacityHistoryResponsePreemptionRecord clone() { + return (CapacityHistoryResponsePreemptionRecord) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePriceRecord.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePriceRecord.java new file mode 100644 index 00000000000..a5fc2f53793 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityHistoryResponsePriceRecord.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A record of price history. + * + *

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 CapacityHistoryResponsePriceRecord extends com.google.api.client.json.GenericJson { + + /** + * The time interval for this price record. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Interval interval; + + /** + * The Spot VM list price during the interval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Money listPrice; + + /** + * The time interval for this price record. + * @return value or {@code null} for none + */ + public Interval getInterval() { + return interval; + } + + /** + * The time interval for this price record. + * @param interval interval or {@code null} for none + */ + public CapacityHistoryResponsePriceRecord setInterval(Interval interval) { + this.interval = interval; + return this; + } + + /** + * The Spot VM list price during the interval. + * @return value or {@code null} for none + */ + public Money getListPrice() { + return listPrice; + } + + /** + * The Spot VM list price during the interval. + * @param listPrice listPrice or {@code null} for none + */ + public CapacityHistoryResponsePriceRecord setListPrice(Money listPrice) { + this.listPrice = listPrice; + return this; + } + + @Override + public CapacityHistoryResponsePriceRecord set(String fieldName, Object value) { + return (CapacityHistoryResponsePriceRecord) super.set(fieldName, value); + } + + @Override + public CapacityHistoryResponsePriceRecord clone() { + return (CapacityHistoryResponsePriceRecord) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityPool.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityPool.java new file mode 100644 index 00000000000..a2037cdc88a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CapacityPool.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Structured representation of the capacity pool. + * + *

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 CapacityPool extends com.google.api.client.json.GenericJson { + + /** + * The list of physical topology block identifiers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List partitionIds; + + /** + * A list of fully qualified resource names that form the logical bounds. Both full and relative + * URIs are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + /** + * The list of physical topology block identifiers. + * @return value or {@code null} for none + */ + public java.util.List getPartitionIds() { + return partitionIds; + } + + /** + * The list of physical topology block identifiers. + * @param partitionIds partitionIds or {@code null} for none + */ + public CapacityPool setPartitionIds(java.util.List partitionIds) { + this.partitionIds = partitionIds; + return this; + } + + /** + * A list of fully qualified resource names that form the logical bounds. Both full and relative + * URIs are supported. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * A list of fully qualified resource names that form the logical bounds. Both full and relative + * URIs are supported. + * @param resources resources or {@code null} for none + */ + public CapacityPool setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + @Override + public CapacityPool set(String fieldName, Object value) { + return (CapacityPool) super.set(fieldName, value); + } + + @Override + public CapacityPool clone() { + return (CapacityPool) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CircuitBreakers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CircuitBreakers.java new file mode 100644 index 00000000000..54fa3fef53a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CircuitBreakers.java @@ -0,0 +1,213 @@ +/* + * 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; + +/** + * Settings controlling the volume of requests, connections and retries to this backend service. + * + *

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 CircuitBreakers extends com.google.api.client.json.GenericJson { + + /** + * The maximum number of connections to the backend service. If not specified, there is no limit. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxConnections; + + /** + * The maximum number of pending requests allowed to the backend service. If not specified, there + * is no limit. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxPendingRequests; + + /** + * The maximum number of parallel requests that allowed to the backend service. If not specified, + * there is no limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRequests; + + /** + * Maximum requests for a single connection to the backend service. This parameter is respected by + * both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this + * parameter to 1 will effectively disable keep alive. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRequestsPerConnection; + + /** + * The maximum number of parallel retries allowed to the backend cluster. If not specified, the + * default is 1. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRetries; + + /** + * The maximum number of connections to the backend service. If not specified, there is no limit. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxConnections() { + return maxConnections; + } + + /** + * The maximum number of connections to the backend service. If not specified, there is no limit. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param maxConnections maxConnections or {@code null} for none + */ + public CircuitBreakers setMaxConnections(java.lang.Integer maxConnections) { + this.maxConnections = maxConnections; + return this; + } + + /** + * The maximum number of pending requests allowed to the backend service. If not specified, there + * is no limit. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxPendingRequests() { + return maxPendingRequests; + } + + /** + * The maximum number of pending requests allowed to the backend service. If not specified, there + * is no limit. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param maxPendingRequests maxPendingRequests or {@code null} for none + */ + public CircuitBreakers setMaxPendingRequests(java.lang.Integer maxPendingRequests) { + this.maxPendingRequests = maxPendingRequests; + return this; + } + + /** + * The maximum number of parallel requests that allowed to the backend service. If not specified, + * there is no limit. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRequests() { + return maxRequests; + } + + /** + * The maximum number of parallel requests that allowed to the backend service. If not specified, + * there is no limit. + * @param maxRequests maxRequests or {@code null} for none + */ + public CircuitBreakers setMaxRequests(java.lang.Integer maxRequests) { + this.maxRequests = maxRequests; + return this; + } + + /** + * Maximum requests for a single connection to the backend service. This parameter is respected by + * both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this + * parameter to 1 will effectively disable keep alive. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRequestsPerConnection() { + return maxRequestsPerConnection; + } + + /** + * Maximum requests for a single connection to the backend service. This parameter is respected by + * both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this + * parameter to 1 will effectively disable keep alive. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param maxRequestsPerConnection maxRequestsPerConnection or {@code null} for none + */ + public CircuitBreakers setMaxRequestsPerConnection(java.lang.Integer maxRequestsPerConnection) { + this.maxRequestsPerConnection = maxRequestsPerConnection; + return this; + } + + /** + * The maximum number of parallel retries allowed to the backend cluster. If not specified, the + * default is 1. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRetries() { + return maxRetries; + } + + /** + * The maximum number of parallel retries allowed to the backend cluster. If not specified, the + * default is 1. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param maxRetries maxRetries or {@code null} for none + */ + public CircuitBreakers setMaxRetries(java.lang.Integer maxRetries) { + this.maxRetries = maxRetries; + return this; + } + + @Override + public CircuitBreakers set(String fieldName, Object value) { + return (CircuitBreakers) super.set(fieldName, value); + } + + @Override + public CircuitBreakers clone() { + return (CircuitBreakers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Commitment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Commitment.java new file mode 100644 index 00000000000..575e495ee88 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -0,0 +1,764 @@ +/* + * 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 regional resource-based commitment resource. + * + * Creating this commitment resource means that you are purchasing a resource-based committed use + * contract, with an explicit start and end time. You can purchase resource-based commitments for + * both hardware and software resources. For more information, read Resource-based committed use + * discounts + * + *

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 Commitment extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether to automatically renew the commitment at the end of its current term. The + * default value is false. If you set the field to true, each time your commitment reaches the end + * of its term, Compute Engine automatically renews it for another term. You can update this field + * anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM + * UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoRenew; + + /** + * The category of the commitment; specifies whether the commitment is for hardware or software + * resources. Category MACHINE specifies that you are committing to hardware machine resources + * such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing + * to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, + * then you must also specify a type to indicate the machine series of the hardware resource that + * you are committing to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String category; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use + * this option when the desired commitment's end date is later than the start date + term + * duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customEndTimestamp; + + /** + * An optional description of the commitment. You can provide this property when you create the + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Commitment end time inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endTimestamp; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List existingReservations; + + /** + * 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] Type of the resource. Always compute#commitment for commitments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The license specification required as part of a license commitment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LicenseResourceCommitment licenseResource; + + /** + * The list of source commitments that you are merging to create the new merged commitment. For + * more information, see Merging commitments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List mergeSourceCommitments; + + /** + * Name of the commitment. You must specify a name when you purchase the commitment. 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; + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CommitmentParams params; + + /** + * The minimum time duration that you commit to purchasing resources. The plan that you choose + * determines the preset term length of the commitment (which is 1 year or 3 years) and affects + * the discount rate that you receive for your resources. Committing to a longer time duration + * typically gives you a higher discount rate. The supported values for this field are + * TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String plan; + + /** + * Output only. [Output Only] URL of the region where the commitment and committed resources are + * located. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * The list of new reservations that you want to create and attach to this commitment. + * + * You must attach reservations to your commitment if your commitment specifies any GPUs or Local + * SSD disks. For more information, see Attach reservations to resource-based commitments. + * + * Specify this property only if you want to create new reservations to attach. To attach existing + * reservations, specify theexistingReservations property instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reservations; + + /** + * Output only. [Output Only] Status information for Commitment resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CommitmentResourceStatus resourceStatus; + + /** + * The list of all the hardware resources, with their types and amounts, that you want to commit + * to. Specify as a separate entry in the list for each individual resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + /** + * 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; + + /** + * The source commitment from which you are transferring resources to create the new split + * commitment. For more information, see Split commitments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String splitSourceCommitment; + + /** + * Output only. [Output Only] Commitment start time inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTimestamp; + + /** + * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each + * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, + * ACTIVE, orEXPIRED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * The type of commitment; specifies the machine series for which you want to commit to purchasing + * resources. The choice of machine series affects the discount rate and the eligible resource + * types. + * + * The type must be one of the following:ACCELERATOR_OPTIMIZED, + * ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, + * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, + * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, + * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, + * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, + * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Specifies whether to automatically renew the commitment at the end of its current term. The + * default value is false. If you set the field to true, each time your commitment reaches the end + * of its term, Compute Engine automatically renews it for another term. You can update this field + * anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM + * UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoRenew() { + return autoRenew; + } + + /** + * Specifies whether to automatically renew the commitment at the end of its current term. The + * default value is false. If you set the field to true, each time your commitment reaches the end + * of its term, Compute Engine automatically renews it for another term. You can update this field + * anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM + * UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. + * @param autoRenew autoRenew or {@code null} for none + */ + public Commitment setAutoRenew(java.lang.Boolean autoRenew) { + this.autoRenew = autoRenew; + return this; + } + + /** + * The category of the commitment; specifies whether the commitment is for hardware or software + * resources. Category MACHINE specifies that you are committing to hardware machine resources + * such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing + * to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, + * then you must also specify a type to indicate the machine series of the hardware resource that + * you are committing to. + * @return value or {@code null} for none + */ + public java.lang.String getCategory() { + return category; + } + + /** + * The category of the commitment; specifies whether the commitment is for hardware or software + * resources. Category MACHINE specifies that you are committing to hardware machine resources + * such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing + * to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, + * then you must also specify a type to indicate the machine series of the hardware resource that + * you are committing to. + * @param category category or {@code null} for none + */ + public Commitment setCategory(java.lang.String category) { + this.category = category; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use + * this option when the desired commitment's end date is later than the start date + term + * duration. + * @return value or {@code null} for none + */ + public java.lang.String getCustomEndTimestamp() { + return customEndTimestamp; + } + + /** + * [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use + * this option when the desired commitment's end date is later than the start date + term + * duration. + * @param customEndTimestamp customEndTimestamp or {@code null} for none + */ + public Commitment setCustomEndTimestamp(java.lang.String customEndTimestamp) { + this.customEndTimestamp = customEndTimestamp; + return this; + } + + /** + * An optional description of the commitment. You can provide this property when you create the + * resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of the commitment. You can provide this property when you create the + * resource. + * @param description description or {@code null} for none + */ + public Commitment setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Commitment end time inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getEndTimestamp() { + return endTimestamp; + } + + /** + * Output only. [Output Only] Commitment end time inRFC3339 text format. + * @param endTimestamp endTimestamp or {@code null} for none + */ + public Commitment setEndTimestamp(java.lang.String endTimestamp) { + this.endTimestamp = endTimestamp; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getExistingReservations() { + return existingReservations; + } + + /** + * @param existingReservations existingReservations or {@code null} for none + */ + public Commitment setExistingReservations(java.util.List existingReservations) { + this.existingReservations = existingReservations; + 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 Commitment setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. + * @param kind kind or {@code null} for none + */ + public Commitment setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The license specification required as part of a license commitment. + * @return value or {@code null} for none + */ + public LicenseResourceCommitment getLicenseResource() { + return licenseResource; + } + + /** + * The license specification required as part of a license commitment. + * @param licenseResource licenseResource or {@code null} for none + */ + public Commitment setLicenseResource(LicenseResourceCommitment licenseResource) { + this.licenseResource = licenseResource; + return this; + } + + /** + * The list of source commitments that you are merging to create the new merged commitment. For + * more information, see Merging commitments. + * @return value or {@code null} for none + */ + public java.util.List getMergeSourceCommitments() { + return mergeSourceCommitments; + } + + /** + * The list of source commitments that you are merging to create the new merged commitment. For + * more information, see Merging commitments. + * @param mergeSourceCommitments mergeSourceCommitments or {@code null} for none + */ + public Commitment setMergeSourceCommitments(java.util.List mergeSourceCommitments) { + this.mergeSourceCommitments = mergeSourceCommitments; + return this; + } + + /** + * Name of the commitment. You must specify a name when you purchase the commitment. 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 commitment. You must specify a name when you purchase the commitment. 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 Commitment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public CommitmentParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public Commitment setParams(CommitmentParams params) { + this.params = params; + return this; + } + + /** + * The minimum time duration that you commit to purchasing resources. The plan that you choose + * determines the preset term length of the commitment (which is 1 year or 3 years) and affects + * the discount rate that you receive for your resources. Committing to a longer time duration + * typically gives you a higher discount rate. The supported values for this field are + * TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). + * @return value or {@code null} for none + */ + public java.lang.String getPlan() { + return plan; + } + + /** + * The minimum time duration that you commit to purchasing resources. The plan that you choose + * determines the preset term length of the commitment (which is 1 year or 3 years) and affects + * the discount rate that you receive for your resources. Committing to a longer time duration + * typically gives you a higher discount rate. The supported values for this field are + * TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). + * @param plan plan or {@code null} for none + */ + public Commitment setPlan(java.lang.String plan) { + this.plan = plan; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the commitment and committed resources are + * located. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the commitment and committed resources are + * located. + * @param region region or {@code null} for none + */ + public Commitment setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The list of new reservations that you want to create and attach to this commitment. + * + * You must attach reservations to your commitment if your commitment specifies any GPUs or Local + * SSD disks. For more information, see Attach reservations to resource-based commitments. + * + * Specify this property only if you want to create new reservations to attach. To attach existing + * reservations, specify theexistingReservations property instead. + * @return value or {@code null} for none + */ + public java.util.List getReservations() { + return reservations; + } + + /** + * The list of new reservations that you want to create and attach to this commitment. + * + * You must attach reservations to your commitment if your commitment specifies any GPUs or Local + * SSD disks. For more information, see Attach reservations to resource-based commitments. + * + * Specify this property only if you want to create new reservations to attach. To attach existing + * reservations, specify theexistingReservations property instead. + * @param reservations reservations or {@code null} for none + */ + public Commitment setReservations(java.util.List reservations) { + this.reservations = reservations; + return this; + } + + /** + * Output only. [Output Only] Status information for Commitment resource. + * @return value or {@code null} for none + */ + public CommitmentResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] Status information for Commitment resource. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * The list of all the hardware resources, with their types and amounts, that you want to commit + * to. Specify as a separate entry in the list for each individual resource type. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * The list of all the hardware resources, with their types and amounts, that you want to commit + * to. Specify as a separate entry in the list for each individual resource type. + * @param resources resources or {@code null} for none + */ + public Commitment setResources(java.util.List resources) { + this.resources = resources; + 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 Commitment setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The source commitment from which you are transferring resources to create the new split + * commitment. For more information, see Split commitments. + * @return value or {@code null} for none + */ + public java.lang.String getSplitSourceCommitment() { + return splitSourceCommitment; + } + + /** + * The source commitment from which you are transferring resources to create the new split + * commitment. For more information, see Split commitments. + * @param splitSourceCommitment splitSourceCommitment or {@code null} for none + */ + public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitment) { + this.splitSourceCommitment = splitSourceCommitment; + return this; + } + + /** + * Output only. [Output Only] Commitment start time inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getStartTimestamp() { + return startTimestamp; + } + + /** + * Output only. [Output Only] Commitment start time inRFC3339 text format. + * @param startTimestamp startTimestamp or {@code null} for none + */ + public Commitment setStartTimestamp(java.lang.String startTimestamp) { + this.startTimestamp = startTimestamp; + return this; + } + + /** + * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each + * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, + * ACTIVE, orEXPIRED. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each + * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, + * ACTIVE, orEXPIRED. + * @param status status or {@code null} for none + */ + public Commitment setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * @param statusMessage statusMessage or {@code null} for none + */ + public Commitment setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * The type of commitment; specifies the machine series for which you want to commit to purchasing + * resources. The choice of machine series affects the discount rate and the eligible resource + * types. + * + * The type must be one of the following:ACCELERATOR_OPTIMIZED, + * ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, + * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, + * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, + * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, + * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, + * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of commitment; specifies the machine series for which you want to commit to purchasing + * resources. The choice of machine series affects the discount rate and the eligible resource + * types. + * + * The type must be one of the following:ACCELERATOR_OPTIMIZED, + * ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, + * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, + * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, + * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, + * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, + * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. + * @param type type or {@code null} for none + */ + public Commitment setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public Commitment set(String fieldName, Object value) { + return (Commitment) super.set(fieldName, value); + } + + @Override + public Commitment clone() { + return (Commitment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java new file mode 100644 index 00000000000..bc614316feb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 CommitmentAggregatedList. + * + *

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 CommitmentAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 CommitmentsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for + * aggregated lists of commitments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 CommitmentAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of CommitmentsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of CommitmentsScopedList resources. + * @param items items or {@code null} for none + */ + public CommitmentAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for + * aggregated lists of commitments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for + * aggregated lists of commitments. + * @param kind kind or {@code null} for none + */ + public CommitmentAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CommitmentAggregatedList 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 CommitmentAggregatedList 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 CommitmentAggregatedList 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 CommitmentAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CommitmentAggregatedList set(String fieldName, Object value) { + return (CommitmentAggregatedList) super.set(fieldName, value); + } + + @Override + public CommitmentAggregatedList clone() { + return (CommitmentAggregatedList) 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 CommitmentAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentList.java new file mode 100644 index 00000000000..34b22d5234e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of Commitment resources. + * + *

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 CommitmentList extends com.google.api.client.json.GenericJson { + + /** + * [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 Commitment 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 Commitment 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(Commitment.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of + * commitments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 CommitmentList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Commitment resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Commitment resources. + * @param items items or {@code null} for none + */ + public CommitmentList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of + * commitments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of + * commitments. + * @param kind kind or {@code null} for none + */ + public CommitmentList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CommitmentList 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 CommitmentList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 CommitmentList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CommitmentList set(String fieldName, Object value) { + return (CommitmentList) super.set(fieldName, value); + } + + @Override + public CommitmentList clone() { + return (CommitmentList) 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 CommitmentListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/CommitmentParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentParams.java new file mode 100644 index 00000000000..1fd71eaebf2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional commitment params. + * + *

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 CommitmentParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the commitment. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the commitment. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the commitment. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public CommitmentParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public CommitmentParams set(String fieldName, Object value) { + return (CommitmentParams) super.set(fieldName, value); + } + + @Override + public CommitmentParams clone() { + return (CommitmentParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java new file mode 100644 index 00000000000..f2ef349ba88 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Contains output only fields. + * + *

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 CommitmentResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term + * requests in RFC3339 text format. Term extension requests that (not the end time in the request) + * after this time will be rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customTermEligibilityEndTimestamp; + + /** + * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term + * requests in RFC3339 text format. Term extension requests that (not the end time in the request) + * after this time will be rejected. + * @return value or {@code null} for none + */ + public java.lang.String getCustomTermEligibilityEndTimestamp() { + return customTermEligibilityEndTimestamp; + } + + /** + * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term + * requests in RFC3339 text format. Term extension requests that (not the end time in the request) + * after this time will be rejected. + * @param customTermEligibilityEndTimestamp customTermEligibilityEndTimestamp or {@code null} for none + */ + public CommitmentResourceStatus setCustomTermEligibilityEndTimestamp(java.lang.String customTermEligibilityEndTimestamp) { + this.customTermEligibilityEndTimestamp = customTermEligibilityEndTimestamp; + return this; + } + + @Override + public CommitmentResourceStatus set(String fieldName, Object value) { + return (CommitmentResourceStatus) super.set(fieldName, value); + } + + @Override + public CommitmentResourceStatus clone() { + return (CommitmentResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentsScopedList.java new file mode 100644 index 00000000000..3ab66fbb2c0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CommitmentsScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 CommitmentsScopedList. + * + *

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 CommitmentsScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The list of commitments contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List commitments; + + static { + // hack to force ProGuard to consider Commitment 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(Commitment.class); + } + + /** + * [Output Only] Informational warning which replaces the list of commitments when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] The list of commitments contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getCommitments() { + return commitments; + } + + /** + * [Output Only] The list of commitments contained in this scope. + * @param commitments commitments or {@code null} for none + */ + public CommitmentsScopedList setCommitments(java.util.List commitments) { + this.commitments = commitments; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of commitments when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of commitments when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public CommitmentsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CommitmentsScopedList set(String fieldName, Object value) { + return (CommitmentsScopedList) super.set(fieldName, value); + } + + @Override + public CommitmentsScopedList clone() { + return (CommitmentsScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of commitments when the list is + * empty. + */ + 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 CommitmentsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java new file mode 100644 index 00000000000..54846cd5537 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java @@ -0,0 +1,397 @@ +/* + * 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 composite health check. + * + * A composite health check resource specifies the health source resources and the health + * destination resource to which the aggregated health result from the health source resources is + * delivered. + * + *

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 CompositeHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must + * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same + * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not + * supported). Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthDestination; + + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is + * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must + * be regional and in the same region as theCompositeHealthCheck. Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthSources; + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] URL of the region where the composite health check resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public CompositeHealthCheck setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public CompositeHealthCheck setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- + * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the CompositeHealthCheck. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public CompositeHealthCheck encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must + * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same + * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not + * supported). Can be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getHealthDestination() { + return healthDestination; + } + + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must + * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same + * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not + * supported). Can be mutated. + * @param healthDestination healthDestination or {@code null} for none + */ + public CompositeHealthCheck setHealthDestination(java.lang.String healthDestination) { + this.healthDestination = healthDestination; + return this; + } + + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is + * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must + * be regional and in the same region as theCompositeHealthCheck. Can be mutated. + * @return value or {@code null} for none + */ + public java.util.List getHealthSources() { + return healthSources; + } + + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is + * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must + * be regional and in the same region as theCompositeHealthCheck. Can be mutated. + * @param healthSources healthSources or {@code null} for none + */ + public CompositeHealthCheck setHealthSources(java.util.List healthSources) { + this.healthSources = healthSources; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public CompositeHealthCheck setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheck setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 CompositeHealthCheck setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the composite health check resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the composite health check resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public CompositeHealthCheck setRegion(java.lang.String region) { + this.region = region; + 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 CompositeHealthCheck setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public CompositeHealthCheck setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public CompositeHealthCheck set(String fieldName, Object value) { + return (CompositeHealthCheck) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheck clone() { + return (CompositeHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java new file mode 100644 index 00000000000..9111c6be1eb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of CompositeHealthChecksScopedList. + * + *

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 CompositeHealthCheckAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 CompositeHealthChecksScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 CompositeHealthCheckAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of CompositeHealthChecksScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of CompositeHealthChecksScopedList resources. + * @param items items or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheckAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CompositeHealthCheckAggregatedList 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 CompositeHealthCheckAggregatedList 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 CompositeHealthCheckAggregatedList 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 CompositeHealthCheckAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CompositeHealthCheckAggregatedList set(String fieldName, Object value) { + return (CompositeHealthCheckAggregatedList) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheckAggregatedList clone() { + return (CompositeHealthCheckAggregatedList) 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 CompositeHealthCheckAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java new file mode 100644 index 00000000000..3c49117c05d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java @@ -0,0 +1,117 @@ +/* + * 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 RegionCompositeHealthChecks.GetHealth + * + *

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 CompositeHealthCheckHealth extends com.google.api.client.json.GenericJson { + + /** + * Health sources and their corresponding health states. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthSources; + + /** + * Health state of the CompositeHealthCheck. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthState; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the + * health of composite health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Health sources and their corresponding health states. + * @return value or {@code null} for none + */ + public java.util.List getHealthSources() { + return healthSources; + } + + /** + * Health sources and their corresponding health states. + * @param healthSources healthSources or {@code null} for none + */ + public CompositeHealthCheckHealth setHealthSources(java.util.List healthSources) { + this.healthSources = healthSources; + return this; + } + + /** + * Health state of the CompositeHealthCheck. + * @return value or {@code null} for none + */ + public java.lang.String getHealthState() { + return healthState; + } + + /** + * Health state of the CompositeHealthCheck. + * @param healthState healthState or {@code null} for none + */ + public CompositeHealthCheckHealth setHealthState(java.lang.String healthState) { + this.healthState = healthState; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the + * health of composite health checks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the + * health of composite health checks. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheckHealth setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public CompositeHealthCheckHealth set(String fieldName, Object value) { + return (CompositeHealthCheckHealth) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheckHealth clone() { + return (CompositeHealthCheckHealth) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java new file mode 100644 index 00000000000..8c1bf4711b7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java @@ -0,0 +1,386 @@ +/* + * 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 CompositeHealthCheckList. + * + *

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 CompositeHealthCheckList extends com.google.api.client.json.GenericJson { + + /** + * [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 CompositeHealthCheck 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 CompositeHealthCheck 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(CompositeHealthCheck.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 CompositeHealthCheckList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of CompositeHealthCheck resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of CompositeHealthCheck resources. + * @param items items or {@code null} for none + */ + public CompositeHealthCheckList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for + * composite health checks. + * @param kind kind or {@code null} for none + */ + public CompositeHealthCheckList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CompositeHealthCheckList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public CompositeHealthCheckList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 CompositeHealthCheckList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CompositeHealthCheckList set(String fieldName, Object value) { + return (CompositeHealthCheckList) super.set(fieldName, value); + } + + @Override + public CompositeHealthCheckList clone() { + return (CompositeHealthCheckList) 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 CompositeHealthCheckListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java new file mode 100644 index 00000000000..d9dfb0d1a97 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for CompositeHealthChecksGetHealthResponseHealthSourceHealth. + * + *

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 CompositeHealthChecksGetHealthResponseHealthSourceHealth extends com.google.api.client.json.GenericJson { + + /** + * Health state of the associated HealthSource resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthState; + + /** + * Fully qualified URL of the associated HealthSource resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Health state of the associated HealthSource resource. + * @return value or {@code null} for none + */ + public java.lang.String getHealthState() { + return healthState; + } + + /** + * Health state of the associated HealthSource resource. + * @param healthState healthState or {@code null} for none + */ + public CompositeHealthChecksGetHealthResponseHealthSourceHealth setHealthState(java.lang.String healthState) { + this.healthState = healthState; + return this; + } + + /** + * Fully qualified URL of the associated HealthSource resource. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Fully qualified URL of the associated HealthSource resource. + * @param source source or {@code null} for none + */ + public CompositeHealthChecksGetHealthResponseHealthSourceHealth setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public CompositeHealthChecksGetHealthResponseHealthSourceHealth set(String fieldName, Object value) { + return (CompositeHealthChecksGetHealthResponseHealthSourceHealth) super.set(fieldName, value); + } + + @Override + public CompositeHealthChecksGetHealthResponseHealthSourceHealth clone() { + return (CompositeHealthChecksGetHealthResponseHealthSourceHealth) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java new file mode 100644 index 00000000000..20e84468d17 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 CompositeHealthChecksScopedList. + * + *

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 CompositeHealthChecksScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of CompositeHealthChecks contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List compositeHealthChecks; + + static { + // hack to force ProGuard to consider CompositeHealthCheck 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(CompositeHealthCheck.class); + } + + /** + * Informational warning which replaces the list of composite health checks when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of CompositeHealthChecks contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getCompositeHealthChecks() { + return compositeHealthChecks; + } + + /** + * A list of CompositeHealthChecks contained in this scope. + * @param compositeHealthChecks compositeHealthChecks or {@code null} for none + */ + public CompositeHealthChecksScopedList setCompositeHealthChecks(java.util.List compositeHealthChecks) { + this.compositeHealthChecks = compositeHealthChecks; + return this; + } + + /** + * Informational warning which replaces the list of composite health checks when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of composite health checks when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public CompositeHealthChecksScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CompositeHealthChecksScopedList set(String fieldName, Object value) { + return (CompositeHealthChecksScopedList) super.set(fieldName, value); + } + + @Override + public CompositeHealthChecksScopedList clone() { + return (CompositeHealthChecksScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of composite health checks when the list is empty. + */ + 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 CompositeHealthChecksScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java new file mode 100644 index 00000000000..3034c3d9301 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A set of Confidential Instance options. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConfidentialInstanceConfig extends com.google.api.client.json.GenericJson { + + /** + * Defines the type of technology used by the confidential instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String confidentialInstanceType; + + /** + * Defines whether the instance should have confidential compute enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableConfidentialCompute; + + /** + * Defines the type of technology used by the confidential instance. + * @return value or {@code null} for none + */ + public java.lang.String getConfidentialInstanceType() { + return confidentialInstanceType; + } + + /** + * Defines the type of technology used by the confidential instance. + * @param confidentialInstanceType confidentialInstanceType or {@code null} for none + */ + public ConfidentialInstanceConfig setConfidentialInstanceType(java.lang.String confidentialInstanceType) { + this.confidentialInstanceType = confidentialInstanceType; + return this; + } + + /** + * Defines whether the instance should have confidential compute enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableConfidentialCompute() { + return enableConfidentialCompute; + } + + /** + * Defines whether the instance should have confidential compute enabled. + * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none + */ + public ConfidentialInstanceConfig setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { + this.enableConfidentialCompute = enableConfidentialCompute; + return this; + } + + @Override + public ConfidentialInstanceConfig set(String fieldName, Object value) { + return (ConfidentialInstanceConfig) super.set(fieldName, value); + } + + @Override + public ConfidentialInstanceConfig clone() { + return (ConfidentialInstanceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConnectionDraining.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConnectionDraining.java new file mode 100644 index 00000000000..617a679efdf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConnectionDraining.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; + +/** + * Message containing connection draining configuration. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectionDraining extends com.google.api.client.json.GenericJson { + + /** + * Configures a duration timeout for existing requests on a removed backend instance. For + * supported load balancers and protocols, as described inEnabling connection draining. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer drainingTimeoutSec; + + /** + * Configures a duration timeout for existing requests on a removed backend instance. For + * supported load balancers and protocols, as described inEnabling connection draining. + * @return value or {@code null} for none + */ + public java.lang.Integer getDrainingTimeoutSec() { + return drainingTimeoutSec; + } + + /** + * Configures a duration timeout for existing requests on a removed backend instance. For + * supported load balancers and protocols, as described inEnabling connection draining. + * @param drainingTimeoutSec drainingTimeoutSec or {@code null} for none + */ + public ConnectionDraining setDrainingTimeoutSec(java.lang.Integer drainingTimeoutSec) { + this.drainingTimeoutSec = drainingTimeoutSec; + return this; + } + + @Override + public ConnectionDraining set(String fieldName, Object value) { + return (ConnectionDraining) super.set(fieldName, value); + } + + @Override + public ConnectionDraining clone() { + return (ConnectionDraining) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettings.java new file mode 100644 index 00000000000..391358d0929 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettings.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * This message defines settings for a consistent hash style load balancer. + * + *

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 ConsistentHashLoadBalancerSettings extends com.google.api.client.json.GenericJson { + + /** + * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash + * key for the consistent hash load balancer. If the cookie is not present, it will be generated. + * This field is applicable if the sessionAffinity is set to HTTP_COOKIE. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConsistentHashLoadBalancerSettingsHttpCookie httpCookie; + + /** + * The hash based on the value of the specified header field. This field is applicable if the + * sessionAffinity is set toHEADER_FIELD. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String httpHeaderName; + + /** + * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring + * sizes result in more granular load distributions. If the number of hosts in the load balancing + * pool is larger than the ring size, each host will be assigned a single virtual node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minimumRingSize; + + /** + * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash + * key for the consistent hash load balancer. If the cookie is not present, it will be generated. + * This field is applicable if the sessionAffinity is set to HTTP_COOKIE. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public ConsistentHashLoadBalancerSettingsHttpCookie getHttpCookie() { + return httpCookie; + } + + /** + * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash + * key for the consistent hash load balancer. If the cookie is not present, it will be generated. + * This field is applicable if the sessionAffinity is set to HTTP_COOKIE. + * + * Not supported when the backend service is referenced by a URL map that is bound to target gRPC + * proxy that has validateForProxyless field set to true. + * @param httpCookie httpCookie or {@code null} for none + */ + public ConsistentHashLoadBalancerSettings setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie httpCookie) { + this.httpCookie = httpCookie; + return this; + } + + /** + * The hash based on the value of the specified header field. This field is applicable if the + * sessionAffinity is set toHEADER_FIELD. + * @return value or {@code null} for none + */ + public java.lang.String getHttpHeaderName() { + return httpHeaderName; + } + + /** + * The hash based on the value of the specified header field. This field is applicable if the + * sessionAffinity is set toHEADER_FIELD. + * @param httpHeaderName httpHeaderName or {@code null} for none + */ + public ConsistentHashLoadBalancerSettings setHttpHeaderName(java.lang.String httpHeaderName) { + this.httpHeaderName = httpHeaderName; + return this; + } + + /** + * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring + * sizes result in more granular load distributions. If the number of hosts in the load balancing + * pool is larger than the ring size, each host will be assigned a single virtual node. + * @return value or {@code null} for none + */ + public java.lang.Long getMinimumRingSize() { + return minimumRingSize; + } + + /** + * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring + * sizes result in more granular load distributions. If the number of hosts in the load balancing + * pool is larger than the ring size, each host will be assigned a single virtual node. + * @param minimumRingSize minimumRingSize or {@code null} for none + */ + public ConsistentHashLoadBalancerSettings setMinimumRingSize(java.lang.Long minimumRingSize) { + this.minimumRingSize = minimumRingSize; + return this; + } + + @Override + public ConsistentHashLoadBalancerSettings set(String fieldName, Object value) { + return (ConsistentHashLoadBalancerSettings) super.set(fieldName, value); + } + + @Override + public ConsistentHashLoadBalancerSettings clone() { + return (ConsistentHashLoadBalancerSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettingsHttpCookie.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettingsHttpCookie.java new file mode 100644 index 00000000000..2a910836059 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ConsistentHashLoadBalancerSettingsHttpCookie.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The information about the HTTP Cookie on which the hash function is based for load balancing + * policies that use a consistent hash. + * + *

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 ConsistentHashLoadBalancerSettingsHttpCookie extends com.google.api.client.json.GenericJson { + + /** + * Name of the cookie. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Path to set for the cookie. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Lifetime of the cookie. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration ttl; + + /** + * Name of the cookie. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the cookie. + * @param name name or {@code null} for none + */ + public ConsistentHashLoadBalancerSettingsHttpCookie setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Path to set for the cookie. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Path to set for the cookie. + * @param path path or {@code null} for none + */ + public ConsistentHashLoadBalancerSettingsHttpCookie setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Lifetime of the cookie. + * @return value or {@code null} for none + */ + public Duration getTtl() { + return ttl; + } + + /** + * Lifetime of the cookie. + * @param ttl ttl or {@code null} for none + */ + public ConsistentHashLoadBalancerSettingsHttpCookie setTtl(Duration ttl) { + this.ttl = ttl; + return this; + } + + @Override + public ConsistentHashLoadBalancerSettingsHttpCookie set(String fieldName, Object value) { + return (ConsistentHashLoadBalancerSettingsHttpCookie) super.set(fieldName, value); + } + + @Override + public ConsistentHashLoadBalancerSettingsHttpCookie clone() { + return (ConsistentHashLoadBalancerSettingsHttpCookie) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CorsPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CorsPolicy.java new file mode 100644 index 00000000000..98b802f546e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CorsPolicy.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The specification for allowing client-side cross-origin requests. For more information about the + * W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. + * + *

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 CorsPolicy extends com.google.api.client.json.GenericJson { + + /** + * In response to a preflight request, setting this to true indicates that the actual request can + * include user credentials. This field translates to the Access-Control-Allow-Credentials header. + * + * Default is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowCredentials; + + /** + * Specifies the content for the Access-Control-Allow-Headers header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowHeaders; + + /** + * Specifies the content for the Access-Control-Allow-Methods header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowMethods; + + /** + * Specifies a regular expression that matches allowed origins. For more information, see regular + * expression syntax. + * + * An origin is allowed if it matches either an item inallowOrigins or an item + * inallowOriginRegexes. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowOriginRegexes; + + /** + * Specifies the list of origins that is allowed to do CORS requests. + * + * An origin is allowed if it matches either an item inallowOrigins or an item + * inallowOriginRegexes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowOrigins; + + /** + * If true, disables the CORS policy. The default value is false, which indicates that the CORS + * policy is in effect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Specifies the content for the Access-Control-Expose-Headers header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exposeHeaders; + + /** + * Specifies how long results of a preflight request can be cached in seconds. This field + * translates to the Access-Control-Max-Age header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxAge; + + /** + * In response to a preflight request, setting this to true indicates that the actual request can + * include user credentials. This field translates to the Access-Control-Allow-Credentials header. + * + * Default is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowCredentials() { + return allowCredentials; + } + + /** + * In response to a preflight request, setting this to true indicates that the actual request can + * include user credentials. This field translates to the Access-Control-Allow-Credentials header. + * + * Default is false. + * @param allowCredentials allowCredentials or {@code null} for none + */ + public CorsPolicy setAllowCredentials(java.lang.Boolean allowCredentials) { + this.allowCredentials = allowCredentials; + return this; + } + + /** + * Specifies the content for the Access-Control-Allow-Headers header. + * @return value or {@code null} for none + */ + public java.util.List getAllowHeaders() { + return allowHeaders; + } + + /** + * Specifies the content for the Access-Control-Allow-Headers header. + * @param allowHeaders allowHeaders or {@code null} for none + */ + public CorsPolicy setAllowHeaders(java.util.List allowHeaders) { + this.allowHeaders = allowHeaders; + return this; + } + + /** + * Specifies the content for the Access-Control-Allow-Methods header. + * @return value or {@code null} for none + */ + public java.util.List getAllowMethods() { + return allowMethods; + } + + /** + * Specifies the content for the Access-Control-Allow-Methods header. + * @param allowMethods allowMethods or {@code null} for none + */ + public CorsPolicy setAllowMethods(java.util.List allowMethods) { + this.allowMethods = allowMethods; + return this; + } + + /** + * Specifies a regular expression that matches allowed origins. For more information, see regular + * expression syntax. + * + * An origin is allowed if it matches either an item inallowOrigins or an item + * inallowOriginRegexes. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public java.util.List getAllowOriginRegexes() { + return allowOriginRegexes; + } + + /** + * Specifies a regular expression that matches allowed origins. For more information, see regular + * expression syntax. + * + * An origin is allowed if it matches either an item inallowOrigins or an item + * inallowOriginRegexes. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED. + * @param allowOriginRegexes allowOriginRegexes or {@code null} for none + */ + public CorsPolicy setAllowOriginRegexes(java.util.List allowOriginRegexes) { + this.allowOriginRegexes = allowOriginRegexes; + return this; + } + + /** + * Specifies the list of origins that is allowed to do CORS requests. + * + * An origin is allowed if it matches either an item inallowOrigins or an item + * inallowOriginRegexes. + * @return value or {@code null} for none + */ + public java.util.List getAllowOrigins() { + return allowOrigins; + } + + /** + * Specifies the list of origins that is allowed to do CORS requests. + * + * An origin is allowed if it matches either an item inallowOrigins or an item + * inallowOriginRegexes. + * @param allowOrigins allowOrigins or {@code null} for none + */ + public CorsPolicy setAllowOrigins(java.util.List allowOrigins) { + this.allowOrigins = allowOrigins; + return this; + } + + /** + * If true, disables the CORS policy. The default value is false, which indicates that the CORS + * policy is in effect. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * If true, disables the CORS policy. The default value is false, which indicates that the CORS + * policy is in effect. + * @param disabled disabled or {@code null} for none + */ + public CorsPolicy setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Specifies the content for the Access-Control-Expose-Headers header. + * @return value or {@code null} for none + */ + public java.util.List getExposeHeaders() { + return exposeHeaders; + } + + /** + * Specifies the content for the Access-Control-Expose-Headers header. + * @param exposeHeaders exposeHeaders or {@code null} for none + */ + public CorsPolicy setExposeHeaders(java.util.List exposeHeaders) { + this.exposeHeaders = exposeHeaders; + return this; + } + + /** + * Specifies how long results of a preflight request can be cached in seconds. This field + * translates to the Access-Control-Max-Age header. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxAge() { + return maxAge; + } + + /** + * Specifies how long results of a preflight request can be cached in seconds. This field + * translates to the Access-Control-Max-Age header. + * @param maxAge maxAge or {@code null} for none + */ + public CorsPolicy setMaxAge(java.lang.Integer maxAge) { + this.maxAge = maxAge; + return this; + } + + @Override + public CorsPolicy set(String fieldName, Object value) { + return (CorsPolicy) super.set(fieldName, value); + } + + @Override + public CorsPolicy clone() { + return (CorsPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java new file mode 100644 index 00000000000..02b1ed22200 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -0,0 +1,207 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A resource that represents a cross-site network. + * + * You can use cross-site networks to connect your on-premises networks to each other through + * Interconnect connections. + * + *

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 CrossSiteNetwork extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of the cross-site network. + * 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 type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] 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] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of the cross-site network. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of the cross-site network. + * @param description description or {@code null} for none + */ + public CrossSiteNetwork setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public CrossSiteNetwork setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. + * @param kind kind or {@code null} for none + */ + public CrossSiteNetwork setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 CrossSiteNetwork 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 CrossSiteNetwork setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public CrossSiteNetwork set(String fieldName, Object value) { + return (CrossSiteNetwork) super.set(fieldName, value); + } + + @Override + public CrossSiteNetwork clone() { + return (CrossSiteNetwork) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java new file mode 100644 index 00000000000..ed3fb5dc00f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -0,0 +1,434 @@ +/* + * 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 the list request that contains a list of cross-site networks. + * + *

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 CrossSiteNetworkList extends com.google.api.client.json.GenericJson { + + /** + * 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 CrossSiteNetwork 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 CrossSiteNetwork 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(CrossSiteNetwork.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public CrossSiteNetworkList 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 CrossSiteNetworkList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of CrossSiteNetwork resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of CrossSiteNetwork resources. + * @param items items or {@code null} for none + */ + public CrossSiteNetworkList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site + * networks. + * @param kind kind or {@code null} for none + */ + public CrossSiteNetworkList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public CrossSiteNetworkList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public CrossSiteNetworkList 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 CrossSiteNetworkList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public CrossSiteNetworkList set(String fieldName, Object value) { + return (CrossSiteNetworkList) super.set(fieldName, value); + } + + @Override + public CrossSiteNetworkList clone() { + return (CrossSiteNetworkList) 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 CrossSiteNetworkListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicy.java new file mode 100644 index 00000000000..e0ca06ee675 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicy.java @@ -0,0 +1,151 @@ +/* + * 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; + +/** + * Specifies the custom error response policy that must be applied when the backend service or + * backend bucket responds with an error. + * + *

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 CustomErrorResponsePolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies rules for returning error responses. + * + * In a given policy, if you specify rules for both a range of error codes as well as rules for + * specific error codes then rules with specific error codes have a higher priority. For example, + * assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series + * error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. + * However if the backend service returns a 403, the rule for4xx takes effect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorResponseRules; + + /** + * The full or partial URL to the BackendBucket resource that contains the custom error content. + * Examples are: - + * https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket + * - compute/v1/projects/project/global/backendBuckets/myBackendBucket - + * global/backendBuckets/myBackendBucket + * + * If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, an + * errorService specified at a higher level in theUrlMap will be used. + * IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must + * specifyerrorService. + * + * If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, + * with the original response code (oroverrideResponseCode if configured). + * + * errorService is not supported for internal or regionalHTTP/HTTPS load balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorService; + + /** + * Specifies rules for returning error responses. + * + * In a given policy, if you specify rules for both a range of error codes as well as rules for + * specific error codes then rules with specific error codes have a higher priority. For example, + * assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series + * error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. + * However if the backend service returns a 403, the rule for4xx takes effect. + * @return value or {@code null} for none + */ + public java.util.List getErrorResponseRules() { + return errorResponseRules; + } + + /** + * Specifies rules for returning error responses. + * + * In a given policy, if you specify rules for both a range of error codes as well as rules for + * specific error codes then rules with specific error codes have a higher priority. For example, + * assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series + * error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. + * However if the backend service returns a 403, the rule for4xx takes effect. + * @param errorResponseRules errorResponseRules or {@code null} for none + */ + public CustomErrorResponsePolicy setErrorResponseRules(java.util.List errorResponseRules) { + this.errorResponseRules = errorResponseRules; + return this; + } + + /** + * The full or partial URL to the BackendBucket resource that contains the custom error content. + * Examples are: - + * https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket + * - compute/v1/projects/project/global/backendBuckets/myBackendBucket - + * global/backendBuckets/myBackendBucket + * + * If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, an + * errorService specified at a higher level in theUrlMap will be used. + * IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must + * specifyerrorService. + * + * If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, + * with the original response code (oroverrideResponseCode if configured). + * + * errorService is not supported for internal or regionalHTTP/HTTPS load balancers. + * @return value or {@code null} for none + */ + public java.lang.String getErrorService() { + return errorService; + } + + /** + * The full or partial URL to the BackendBucket resource that contains the custom error content. + * Examples are: - + * https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket + * - compute/v1/projects/project/global/backendBuckets/myBackendBucket - + * global/backendBuckets/myBackendBucket + * + * If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, an + * errorService specified at a higher level in theUrlMap will be used. + * IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must + * specifyerrorService. + * + * If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, + * with the original response code (oroverrideResponseCode if configured). + * + * errorService is not supported for internal or regionalHTTP/HTTPS load balancers. + * @param errorService errorService or {@code null} for none + */ + public CustomErrorResponsePolicy setErrorService(java.lang.String errorService) { + this.errorService = errorService; + return this; + } + + @Override + public CustomErrorResponsePolicy set(String fieldName, Object value) { + return (CustomErrorResponsePolicy) super.set(fieldName, value); + } + + @Override + public CustomErrorResponsePolicy clone() { + return (CustomErrorResponsePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicyCustomErrorResponseRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicyCustomErrorResponseRule.java new file mode 100644 index 00000000000..affc1962799 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomErrorResponsePolicyCustomErrorResponseRule.java @@ -0,0 +1,166 @@ +/* + * 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; + +/** + * Specifies the mapping between the response code that will be returned along with the custom error + * content and the response code returned by the backend service. + * + *

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 CustomErrorResponsePolicyCustomErrorResponseRule extends com.google.api.client.json.GenericJson { + + /** + * Valid values include: - A number between 400 and 599: For example 401 or 503, + * in which case the load balancer applies the policy if the error code exactly matches this + * value. - 5xx: Load Balancer will apply the policy if the backend service responds + * with any response code in the range of 500 to 599. - 4xx: Load Balancer will + * apply the policy if the backend service responds with any response code in the range of + * 400 to 499. + * + * Values must be unique within matchResponseCodes and across allerrorResponseRules + * ofCustomErrorResponsePolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List matchResponseCodes; + + /** + * The HTTP status code returned with the response containing the custom error content. If + * overrideResponseCode is not supplied, the same response code returned by the original backend + * bucket or backend service is returned to the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer overrideResponseCode; + + /** + * The full path to a file within backendBucket . For example:/errors/defaultError.html + * + * path must start with a leading slash. path cannot have trailing slashes. + * + * If the file is not available in backendBucket or the load balancer cannot reach the + * BackendBucket, a simpleNot Found Error is returned to the client. + * + * The value must be from 1 to 1024 characters + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Valid values include: - A number between 400 and 599: For example 401 or 503, + * in which case the load balancer applies the policy if the error code exactly matches this + * value. - 5xx: Load Balancer will apply the policy if the backend service responds + * with any response code in the range of 500 to 599. - 4xx: Load Balancer will + * apply the policy if the backend service responds with any response code in the range of + * 400 to 499. + * + * Values must be unique within matchResponseCodes and across allerrorResponseRules + * ofCustomErrorResponsePolicy. + * @return value or {@code null} for none + */ + public java.util.List getMatchResponseCodes() { + return matchResponseCodes; + } + + /** + * Valid values include: - A number between 400 and 599: For example 401 or 503, + * in which case the load balancer applies the policy if the error code exactly matches this + * value. - 5xx: Load Balancer will apply the policy if the backend service responds + * with any response code in the range of 500 to 599. - 4xx: Load Balancer will + * apply the policy if the backend service responds with any response code in the range of + * 400 to 499. + * + * Values must be unique within matchResponseCodes and across allerrorResponseRules + * ofCustomErrorResponsePolicy. + * @param matchResponseCodes matchResponseCodes or {@code null} for none + */ + public CustomErrorResponsePolicyCustomErrorResponseRule setMatchResponseCodes(java.util.List matchResponseCodes) { + this.matchResponseCodes = matchResponseCodes; + return this; + } + + /** + * The HTTP status code returned with the response containing the custom error content. If + * overrideResponseCode is not supplied, the same response code returned by the original backend + * bucket or backend service is returned to the client. + * @return value or {@code null} for none + */ + public java.lang.Integer getOverrideResponseCode() { + return overrideResponseCode; + } + + /** + * The HTTP status code returned with the response containing the custom error content. If + * overrideResponseCode is not supplied, the same response code returned by the original backend + * bucket or backend service is returned to the client. + * @param overrideResponseCode overrideResponseCode or {@code null} for none + */ + public CustomErrorResponsePolicyCustomErrorResponseRule setOverrideResponseCode(java.lang.Integer overrideResponseCode) { + this.overrideResponseCode = overrideResponseCode; + return this; + } + + /** + * The full path to a file within backendBucket . For example:/errors/defaultError.html + * + * path must start with a leading slash. path cannot have trailing slashes. + * + * If the file is not available in backendBucket or the load balancer cannot reach the + * BackendBucket, a simpleNot Found Error is returned to the client. + * + * The value must be from 1 to 1024 characters + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * The full path to a file within backendBucket . For example:/errors/defaultError.html + * + * path must start with a leading slash. path cannot have trailing slashes. + * + * If the file is not available in backendBucket or the load balancer cannot reach the + * BackendBucket, a simpleNot Found Error is returned to the client. + * + * The value must be from 1 to 1024 characters + * @param path path or {@code null} for none + */ + public CustomErrorResponsePolicyCustomErrorResponseRule setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public CustomErrorResponsePolicyCustomErrorResponseRule set(String fieldName, Object value) { + return (CustomErrorResponsePolicyCustomErrorResponseRule) super.set(fieldName, value); + } + + @Override + public CustomErrorResponsePolicyCustomErrorResponseRule clone() { + return (CustomErrorResponsePolicyCustomErrorResponseRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java new file mode 100644 index 00000000000..19062661a73 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java @@ -0,0 +1,249 @@ +/* + * 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 CustomerEncryptionKey. + * + *

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 CustomerEncryptionKey extends com.google.api.client.json.GenericJson { + + /** + * The name of the encryption key that is stored in Google Cloud KMS. For example: + * + * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key + * + * The fully-qualifed key name may be returned for resource GET requests. For example: + * + * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key + * /cryptoKeyVersions/1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKeyName; + + /** + * The service account being used for the encryption request for the given KMS key. If absent, the + * Compute Engine default service account is used. For example: + * + * "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKeyServiceAccount; + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: + * + * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rawKey; + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: + * + * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH + * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD + * D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" + * + * The key must meet the following requirements before you can provide it to Compute Engine: + * 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After + * being wrapped, the key must be encoded in RFC 4648 base64 encoding. + * + * Gets the RSA public key certificate provided by Google at: + * + * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rsaEncryptedKey; + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha256; + + /** + * The name of the encryption key that is stored in Google Cloud KMS. For example: + * + * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key + * + * The fully-qualifed key name may be returned for resource GET requests. For example: + * + * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key + * /cryptoKeyVersions/1 + * @return value or {@code null} for none + */ + public java.lang.String getKmsKeyName() { + return kmsKeyName; + } + + /** + * The name of the encryption key that is stored in Google Cloud KMS. For example: + * + * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key + * + * The fully-qualifed key name may be returned for resource GET requests. For example: + * + * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key + * /cryptoKeyVersions/1 + * @param kmsKeyName kmsKeyName or {@code null} for none + */ + public CustomerEncryptionKey setKmsKeyName(java.lang.String kmsKeyName) { + this.kmsKeyName = kmsKeyName; + return this; + } + + /** + * The service account being used for the encryption request for the given KMS key. If absent, the + * Compute Engine default service account is used. For example: + * + * "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ + * @return value or {@code null} for none + */ + public java.lang.String getKmsKeyServiceAccount() { + return kmsKeyServiceAccount; + } + + /** + * The service account being used for the encryption request for the given KMS key. If absent, the + * Compute Engine default service account is used. For example: + * + * "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ + * @param kmsKeyServiceAccount kmsKeyServiceAccount or {@code null} for none + */ + public CustomerEncryptionKey setKmsKeyServiceAccount(java.lang.String kmsKeyServiceAccount) { + this.kmsKeyServiceAccount = kmsKeyServiceAccount; + return this; + } + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: + * + * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" + * @return value or {@code null} for none + */ + public java.lang.String getRawKey() { + return rawKey; + } + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: + * + * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" + * @param rawKey rawKey or {@code null} for none + */ + public CustomerEncryptionKey setRawKey(java.lang.String rawKey) { + this.rawKey = rawKey; + return this; + } + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: + * + * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH + * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD + * D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" + * + * The key must meet the following requirements before you can provide it to Compute Engine: + * 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After + * being wrapped, the key must be encoded in RFC 4648 base64 encoding. + * + * Gets the RSA public key certificate provided by Google at: + * + * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem + * @return value or {@code null} for none + */ + public java.lang.String getRsaEncryptedKey() { + return rsaEncryptedKey; + } + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: + * + * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH + * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD + * D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" + * + * The key must meet the following requirements before you can provide it to Compute Engine: + * 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After + * being wrapped, the key must be encoded in RFC 4648 base64 encoding. + * + * Gets the RSA public key certificate provided by Google at: + * + * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem + * @param rsaEncryptedKey rsaEncryptedKey or {@code null} for none + */ + public CustomerEncryptionKey setRsaEncryptedKey(java.lang.String rsaEncryptedKey) { + this.rsaEncryptedKey = rsaEncryptedKey; + return this; + } + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSha256() { + return sha256; + } + + /** + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. + * @param sha256 sha256 or {@code null} for none + */ + public CustomerEncryptionKey setSha256(java.lang.String sha256) { + this.sha256 = sha256; + return this; + } + + @Override + public CustomerEncryptionKey set(String fieldName, Object value) { + return (CustomerEncryptionKey) super.set(fieldName, value); + } + + @Override + public CustomerEncryptionKey clone() { + return (CustomerEncryptionKey) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKeyProtectedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKeyProtectedDisk.java new file mode 100644 index 00000000000..f476bfcab0b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKeyProtectedDisk.java @@ -0,0 +1,99 @@ +/* + * 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 CustomerEncryptionKeyProtectedDisk. + * + *

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 CustomerEncryptionKeyProtectedDisk extends com.google.api.client.json.GenericJson { + + /** + * Decrypts data associated with the disk with acustomer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey diskEncryptionKey; + + /** + * Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is + * only applicable for persistent disks. For example: + * + * "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Decrypts data associated with the disk with acustomer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getDiskEncryptionKey() { + return diskEncryptionKey; + } + + /** + * Decrypts data associated with the disk with acustomer-supplied encryption key. + * @param diskEncryptionKey diskEncryptionKey or {@code null} for none + */ + public CustomerEncryptionKeyProtectedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { + this.diskEncryptionKey = diskEncryptionKey; + return this; + } + + /** + * Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is + * only applicable for persistent disks. For example: + * + * "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is + * only applicable for persistent disks. For example: + * + * "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name + * @param source source or {@code null} for none + */ + public CustomerEncryptionKeyProtectedDisk setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public CustomerEncryptionKeyProtectedDisk set(String fieldName, Object value) { + return (CustomerEncryptionKeyProtectedDisk) super.set(fieldName, value); + } + + @Override + public CustomerEncryptionKeyProtectedDisk clone() { + return (CustomerEncryptionKeyProtectedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Date.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Date.java new file mode 100644 index 00000000000..c18536be29c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Date.java @@ -0,0 +1,127 @@ +/* + * 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 whole or partial calendar date, such as a birthday. The time of day and time zone + * are either specified elsewhere or are insignificant. The date is relative to the Gregorian + * Calendar. This can represent one of the following: + * + * * A full date, with non-zero year, month, and day values. * A month and day, with a zero year + * (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year + * and month, with a zero day (for example, a credit card expiration date). + * + * Related types: + * + * * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + * + *

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 Date extends com.google.api.client.json.GenericJson { + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year + * by itself or a year and month where the day isn't significant. + * @param day day or {@code null} for none + */ + public Date setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + * @param month month or {@code null} for none + */ + public Date setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + * @param year year or {@code null} for none + */ + public Date setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public Date set(String fieldName, Object value) { + return (Date) super.set(fieldName, value); + } + + @Override + public Date clone() { + return (Date) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DateTime.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DateTime.java new file mode 100644 index 00000000000..a25410c20e5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DateTime.java @@ -0,0 +1,290 @@ +/* + * 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 civil time (or occasionally physical time). + * + * This type can represent a civil time in one of a few possible ways: + * + * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a + * particular offset from UTC. When time_zone is set and utc_offset is unset: a civil time on a + * calendar day in a particular time zone. When neither time_zone nor utc_offset is set: a civil + * time on a calendar day in local time. + * + * The date is relative to the Proleptic Gregorian Calendar. + * + * If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or + * day respectively. + * + * This type may also be used to represent a physical time if all the date and time fields are set + * and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for + * physical time instead. If your use case also would like to store the user's timezone, that can be + * done in another field. + * + * This type is more flexible than some applications may want. Make sure to document and validate + * your application's limitations. + * + *

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 DateTime extends com.google.api.client.json.GenericJson { + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + * specifying a datetime without a day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An + * API may choose to allow the value "24:00:00" for scenarios like business closing time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer hours; + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minutes; + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API + * may allow the value 60 if it allows leap-seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer seconds; + + /** + * Time zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeZone timeZone; + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset + * of -4:00 would be represented as { seconds: -14400 }. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String utcOffset; + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + * specifying a datetime without a day. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + * specifying a datetime without a day. + * @param day day or {@code null} for none + */ + public DateTime setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An + * API may choose to allow the value "24:00:00" for scenarios like business closing time. + * @return value or {@code null} for none + */ + public java.lang.Integer getHours() { + return hours; + } + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An + * API may choose to allow the value "24:00:00" for scenarios like business closing time. + * @param hours hours or {@code null} for none + */ + public DateTime setHours(java.lang.Integer hours) { + this.hours = hours; + return this; + } + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinutes() { + return minutes; + } + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * @param minutes minutes or {@code null} for none + */ + public DateTime setMinutes(java.lang.Integer minutes) { + this.minutes = minutes; + return this; + } + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * @param month month or {@code null} for none + */ + public DateTime setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * @param nanos nanos or {@code null} for none + */ + public DateTime setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API + * may allow the value 60 if it allows leap-seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getSeconds() { + return seconds; + } + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API + * may allow the value 60 if it allows leap-seconds. + * @param seconds seconds or {@code null} for none + */ + public DateTime setSeconds(java.lang.Integer seconds) { + this.seconds = seconds; + return this; + } + + /** + * Time zone. + * @return value or {@code null} for none + */ + public TimeZone getTimeZone() { + return timeZone; + } + + /** + * Time zone. + * @param timeZone timeZone or {@code null} for none + */ + public DateTime setTimeZone(TimeZone timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset + * of -4:00 would be represented as { seconds: -14400 }. + * @return value or {@code null} for none + */ + public String getUtcOffset() { + return utcOffset; + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset + * of -4:00 would be represented as { seconds: -14400 }. + * @param utcOffset utcOffset or {@code null} for none + */ + public DateTime setUtcOffset(String utcOffset) { + this.utcOffset = utcOffset; + return this; + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * @param year year or {@code null} for none + */ + public DateTime setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public DateTime set(String fieldName, Object value) { + return (DateTime) super.set(fieldName, value); + } + + @Override + public DateTime clone() { + return (DateTime) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DeprecationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DeprecationStatus.java new file mode 100644 index 00000000000..fc91da661b5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DeprecationStatus.java @@ -0,0 +1,195 @@ +/* + * 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; + +/** + * Deprecation status for a public 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 DeprecationStatus extends com.google.api.client.json.GenericJson { + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to DELETED. This is only informational and the status will not change unless the client + * explicitly changes it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deleted; + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to DEPRECATED. This is only informational and the status will not change unless the + * client explicitly changes it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deprecated; + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to OBSOLETE. This is only informational and the status will not change unless the client + * explicitly changes it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String obsolete; + + /** + * The URL of the suggested replacement for a deprecated resource. The suggested replacement + * resource must be the same kind of resource as the deprecated resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String replacement; + + /** + * The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. + * Operations which communicate the end of life date for an image, can useACTIVE. Operations which + * create a new resource using aDEPRECATED resource will return successfully, but with a warning + * indicating the deprecated resource and recommending its replacement. Operations which use + * OBSOLETE orDELETED resources will be rejected and result in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to DELETED. This is only informational and the status will not change unless the client + * explicitly changes it. + * @return value or {@code null} for none + */ + public java.lang.String getDeleted() { + return deleted; + } + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to DELETED. This is only informational and the status will not change unless the client + * explicitly changes it. + * @param deleted deleted or {@code null} for none + */ + public DeprecationStatus setDeleted(java.lang.String deleted) { + this.deleted = deleted; + return this; + } + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to DEPRECATED. This is only informational and the status will not change unless the + * client explicitly changes it. + * @return value or {@code null} for none + */ + public java.lang.String getDeprecated() { + return deprecated; + } + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to DEPRECATED. This is only informational and the status will not change unless the + * client explicitly changes it. + * @param deprecated deprecated or {@code null} for none + */ + public DeprecationStatus setDeprecated(java.lang.String deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to OBSOLETE. This is only informational and the status will not change unless the client + * explicitly changes it. + * @return value or {@code null} for none + */ + public java.lang.String getObsolete() { + return obsolete; + } + + /** + * An optional RFC3339 timestamp on or after which the state of this resource is intended to + * change to OBSOLETE. This is only informational and the status will not change unless the client + * explicitly changes it. + * @param obsolete obsolete or {@code null} for none + */ + public DeprecationStatus setObsolete(java.lang.String obsolete) { + this.obsolete = obsolete; + return this; + } + + /** + * The URL of the suggested replacement for a deprecated resource. The suggested replacement + * resource must be the same kind of resource as the deprecated resource. + * @return value or {@code null} for none + */ + public java.lang.String getReplacement() { + return replacement; + } + + /** + * The URL of the suggested replacement for a deprecated resource. The suggested replacement + * resource must be the same kind of resource as the deprecated resource. + * @param replacement replacement or {@code null} for none + */ + public DeprecationStatus setReplacement(java.lang.String replacement) { + this.replacement = replacement; + return this; + } + + /** + * The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. + * Operations which communicate the end of life date for an image, can useACTIVE. Operations which + * create a new resource using aDEPRECATED resource will return successfully, but with a warning + * indicating the deprecated resource and recommending its replacement. Operations which use + * OBSOLETE orDELETED resources will be rejected and result in an error. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. + * Operations which communicate the end of life date for an image, can useACTIVE. Operations which + * create a new resource using aDEPRECATED resource will return successfully, but with a warning + * indicating the deprecated resource and recommending its replacement. Operations which use + * OBSOLETE orDELETED resources will be rejected and result in an error. + * @param state state or {@code null} for none + */ + public DeprecationStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public DeprecationStatus set(String fieldName, Object value) { + return (DeprecationStatus) super.set(fieldName, value); + } + + @Override + public DeprecationStatus clone() { + return (DeprecationStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Disk.java new file mode 100644 index 00000000000..43ef748e5ec --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Disk.java @@ -0,0 +1,1645 @@ +/* + * 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 Persistent Disk resource. + * + * Google Compute Engine has two Disk resources: + * + * * [Zonal](/compute/docs/reference/rest/v1/disks) * + * [Regional](/compute/docs/reference/rest/v1/regionDisks) + * + * Persistent disks are required for running your VM instances. Create both boot and non-boot (data) + * persistent disks. For more information, read Persistent Disks. For more storage options, read + * Storage options. + * + * The disks resource represents a zonal persistent disk. For more information, readZonal persistent + * disks. + * + * The regionDisks resource represents a regional persistent disk. For more information, read + * Regional resources. + * + *

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 Disk extends com.google.api.client.json.GenericJson { + + /** + * The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means + * the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The + * AccessMode means the disk can be attached to multiple instances in RW mode. - + * READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO + * mode. + * + * The AccessMode is only valid for Hyperdisk disk types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessMode; + + /** + * The architecture of the disk. Valid values are ARM64 or X86_64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * Disk asynchronously replicated into this disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskAsyncReplication asyncPrimaryDisk; + + /** + * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map asyncSecondaryDisks; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption + * key. + * + * Encryption keys do not protect access to metadata of the disk. + * + * After you encrypt a disk with a customer-supplied key, you must provide the same key if you use + * the disk later. For example, to create a disk snapshot, to create a disk image, to create a + * machine image, or to attach the disk to a virtual machine. + * + * After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to + * a key *version* name once the disk is created. The disk is encrypted with this version of the + * key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: + * + * "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ + * key_region/cryptoKeys/key /cryptoKeysVersions/version + * + * If you do not provide an encryption key when creating the disk, then the disk is encrypted + * using an automatically generated key and you don't need to provide a key to use the disk + * later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey diskEncryptionKey; + + /** + * Whether this disk is using confidential compute mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableConfidentialCompute; + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guestOsFeatures; + + /** + * 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] Type of the resource. Always compute#disk for disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this disk, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this disk. These can be later modified by the setLabels method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastAttachTimestamp; + + /** + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastDetachTimestamp; + + /** + * Integer license codes indicating which licenses are attached to this disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List licenseCodes; + + /** + * A list of publicly visible licenses. Reserved for Google's use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * An opaque location hint used to place the disk close to other resources. This field is for use + * by internal tools that use the public API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationHint; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Internal use only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String options; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskParams params; + + /** + * Physical block size of the persistent disk, in bytes. If not present in a request, a default + * value is used. The currently supported size is 4096, other sizes may be added in the future. If + * an unsupported value is requested, the error message will list the supported values for the + * caller's project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long physicalBlockSizeBytes; + + /** + * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per + * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, + * see theExtreme persistent disk documentation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedIops; + + /** + * Indicates how much throughput to provision for the disk. This sets the number of throughput mb + * per second that the disk can handle. Values must be greater than or equal to 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedThroughput; + + /** + * Output only. [Output Only] URL of the region where the disk resides. Only applicable for + * regional resources. You must specify this field as part of the HTTP request URL. It is not + * settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * URLs of the zones where the disk should be replicated to. Only applicable for regional + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List replicaZones; + + /** + * Resource policies applied to this disk for automatic snapshot creations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Output only. [Output Only] Status information for the disk resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskResourceStatus resourceStatus; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk + * using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an + * empty persistent disk. + * + * If you specify this field along with a source, the value ofsizeGb must not be less than the + * size of the source. Acceptable values are greater than 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sizeGb; + + /** + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroupPolicy; + + /** + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroupPolicyId; + + /** + * The source disk used to create this disk. You can provide this as a partial or full URL to the + * resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * Output only. [Output Only] The unique ID of the disk used to create this disk. This value + * identifies the exact disk that was used to create this persistent disk. For example, if you + * created the persistent disk from a disk that was later deleted and recreated under the same + * name, the source disk ID would identify the exact version of the disk that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskId; + + /** + * The source image used to create this disk. If the source image is deleted, this field will not + * be set. + * + * To create a disk with one of the public operating system images, specify the image by its + * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + * + * projects/debian-cloud/global/images/family/debian-9 + * + * Alternatively, use a specific version of a public operating system image: + * + * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + * + * To create a disk with a custom image that you created, specify the image name in the following + * format: + * + * global/images/my-custom-image + * + * You can also specify a custom image by its image family, which returns the latest version of + * the image in that family. Replace the image name with family/family-name: + * + * global/images/family/my-image-family + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; + + /** + * Thecustomer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceImageEncryptionKey; + + /** + * Output only. [Output Only] The ID value of the image used to create this disk. This value + * identifies the exact image that was used to create this persistent disk. For example, if you + * created the persistent disk from an image that was later deleted and recreated under the same + * name, the source image ID would identify the exact version of the image that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceImageId; + + /** + * The source instant snapshot used to create this disk. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - https://www.go + * ogleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - + * projects/project/zones/zone/instantSnapshots/instantSnapshot - + * zones/zone/instantSnapshots/instantSnapshot + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshot; + + /** + * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This + * value identifies the exact instant snapshot that was used to create this persistent disk. For + * example, if you created the persistent disk from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact version + * of the instant snapshot that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotId; + + /** + * The source snapshot used to create this disk. You can provide this as a partial or full URL to + * the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot - + * projects/project/global/snapshots/snapshot - global/snapshots/snapshot + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshot; + + /** + * Thecustomer-supplied encryption key of the source snapshot. Required if the source snapshot is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceSnapshotEncryptionKey; + + /** + * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value + * identifies the exact snapshot that was used to create this persistent disk. For example, if you + * created the persistent disk from a snapshot that was later deleted and recreated under the same + * name, the source snapshot ID would identify the exact version of the snapshot that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshotId; + + /** + * The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip- + * compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. + * Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized + * for creating multiple disks from a source storage object. To create many disks from a source + * storage object, use gcloud compute images import instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceStorageObject; + + /** + * Output only. [Output Only] The status of disk creation. - CREATING: Disk is + * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: + * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The storage pool in which the new disk is created. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + * - projects/project/zones/zone/storagePools/storagePool - + * zones/zone/storagePools/storagePool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storagePool; + + /** + * URL of the disk type resource describing which disk type to use to create the disk. Provide + * this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See + * Persistent disk types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output Only] Links to the users of the disk (attached instances) in + * form:projects/project/zones/zone/instances/instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List users; + + /** + * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means + * the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The + * AccessMode means the disk can be attached to multiple instances in RW mode. - + * READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO + * mode. + * + * The AccessMode is only valid for Hyperdisk disk types. + * @return value or {@code null} for none + */ + public java.lang.String getAccessMode() { + return accessMode; + } + + /** + * The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means + * the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The + * AccessMode means the disk can be attached to multiple instances in RW mode. - + * READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO + * mode. + * + * The AccessMode is only valid for Hyperdisk disk types. + * @param accessMode accessMode or {@code null} for none + */ + public Disk setAccessMode(java.lang.String accessMode) { + this.accessMode = accessMode; + return this; + } + + /** + * The architecture of the disk. Valid values are ARM64 or X86_64. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * The architecture of the disk. Valid values are ARM64 or X86_64. + * @param architecture architecture or {@code null} for none + */ + public Disk setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * Disk asynchronously replicated into this disk. + * @return value or {@code null} for none + */ + public DiskAsyncReplication getAsyncPrimaryDisk() { + return asyncPrimaryDisk; + } + + /** + * Disk asynchronously replicated into this disk. + * @param asyncPrimaryDisk asyncPrimaryDisk or {@code null} for none + */ + public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { + this.asyncPrimaryDisk = asyncPrimaryDisk; + return this; + } + + /** + * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * @return value or {@code null} for none + */ + public java.util.Map getAsyncSecondaryDisks() { + return asyncSecondaryDisks; + } + + /** + * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * @param asyncSecondaryDisks asyncSecondaryDisks or {@code null} for none + */ + public Disk setAsyncSecondaryDisks(java.util.Map asyncSecondaryDisks) { + this.asyncSecondaryDisks = asyncSecondaryDisks; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Disk setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Disk setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption + * key. + * + * Encryption keys do not protect access to metadata of the disk. + * + * After you encrypt a disk with a customer-supplied key, you must provide the same key if you use + * the disk later. For example, to create a disk snapshot, to create a disk image, to create a + * machine image, or to attach the disk to a virtual machine. + * + * After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to + * a key *version* name once the disk is created. The disk is encrypted with this version of the + * key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: + * + * "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ + * key_region/cryptoKeys/key /cryptoKeysVersions/version + * + * If you do not provide an encryption key when creating the disk, then the disk is encrypted + * using an automatically generated key and you don't need to provide a key to use the disk + * later. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getDiskEncryptionKey() { + return diskEncryptionKey; + } + + /** + * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption + * key. + * + * Encryption keys do not protect access to metadata of the disk. + * + * After you encrypt a disk with a customer-supplied key, you must provide the same key if you use + * the disk later. For example, to create a disk snapshot, to create a disk image, to create a + * machine image, or to attach the disk to a virtual machine. + * + * After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to + * a key *version* name once the disk is created. The disk is encrypted with this version of the + * key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: + * + * "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ + * key_region/cryptoKeys/key /cryptoKeysVersions/version + * + * If you do not provide an encryption key when creating the disk, then the disk is encrypted + * using an automatically generated key and you don't need to provide a key to use the disk + * later. + * @param diskEncryptionKey diskEncryptionKey or {@code null} for none + */ + public Disk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { + this.diskEncryptionKey = diskEncryptionKey; + return this; + } + + /** + * Whether this disk is using confidential compute mode. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableConfidentialCompute() { + return enableConfidentialCompute; + } + + /** + * Whether this disk is using confidential compute mode. + * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none + */ + public Disk setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { + this.enableConfidentialCompute = enableConfidentialCompute; + return this; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * @return value or {@code null} for none + */ + public java.util.List getGuestOsFeatures() { + return guestOsFeatures; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * @param guestOsFeatures guestOsFeatures or {@code null} for none + */ + public Disk setGuestOsFeatures(java.util.List guestOsFeatures) { + this.guestOsFeatures = guestOsFeatures; + 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 Disk setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * @param kind kind or {@code null} for none + */ + public Disk setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this disk, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a disk. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this disk, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a disk. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this disk, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a disk. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public Disk setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this disk, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a disk. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Disk encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this disk. These can be later modified by the setLabels method. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this disk. These can be later modified by the setLabels method. + * @param labels labels or {@code null} for none + */ + public Disk setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastAttachTimestamp() { + return lastAttachTimestamp; + } + + /** + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * @param lastAttachTimestamp lastAttachTimestamp or {@code null} for none + */ + public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { + this.lastAttachTimestamp = lastAttachTimestamp; + return this; + } + + /** + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastDetachTimestamp() { + return lastDetachTimestamp; + } + + /** + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * @param lastDetachTimestamp lastDetachTimestamp or {@code null} for none + */ + public Disk setLastDetachTimestamp(java.lang.String lastDetachTimestamp) { + this.lastDetachTimestamp = lastDetachTimestamp; + return this; + } + + /** + * Integer license codes indicating which licenses are attached to this disk. + * @return value or {@code null} for none + */ + public java.util.List getLicenseCodes() { + return licenseCodes; + } + + /** + * Integer license codes indicating which licenses are attached to this disk. + * @param licenseCodes licenseCodes or {@code null} for none + */ + public Disk setLicenseCodes(java.util.List licenseCodes) { + this.licenseCodes = licenseCodes; + return this; + } + + /** + * A list of publicly visible licenses. Reserved for Google's use. + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * A list of publicly visible licenses. Reserved for Google's use. + * @param licenses licenses or {@code null} for none + */ + public Disk setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * An opaque location hint used to place the disk close to other resources. This field is for use + * by internal tools that use the public API. + * @return value or {@code null} for none + */ + public java.lang.String getLocationHint() { + return locationHint; + } + + /** + * An opaque location hint used to place the disk close to other resources. This field is for use + * by internal tools that use the public API. + * @param locationHint locationHint or {@code null} for none + */ + public Disk setLocationHint(java.lang.String locationHint) { + this.locationHint = locationHint; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 Disk setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Internal use only. + * @return value or {@code null} for none + */ + public java.lang.String getOptions() { + return options; + } + + /** + * Internal use only. + * @param options options or {@code null} for none + */ + public Disk setOptions(java.lang.String options) { + this.options = options; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public DiskParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Disk setParams(DiskParams params) { + this.params = params; + return this; + } + + /** + * Physical block size of the persistent disk, in bytes. If not present in a request, a default + * value is used. The currently supported size is 4096, other sizes may be added in the future. If + * an unsupported value is requested, the error message will list the supported values for the + * caller's project. + * @return value or {@code null} for none + */ + public java.lang.Long getPhysicalBlockSizeBytes() { + return physicalBlockSizeBytes; + } + + /** + * Physical block size of the persistent disk, in bytes. If not present in a request, a default + * value is used. The currently supported size is 4096, other sizes may be added in the future. If + * an unsupported value is requested, the error message will list the supported values for the + * caller's project. + * @param physicalBlockSizeBytes physicalBlockSizeBytes or {@code null} for none + */ + public Disk setPhysicalBlockSizeBytes(java.lang.Long physicalBlockSizeBytes) { + this.physicalBlockSizeBytes = physicalBlockSizeBytes; + return this; + } + + /** + * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per + * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, + * see theExtreme persistent disk documentation. + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedIops() { + return provisionedIops; + } + + /** + * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per + * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, + * see theExtreme persistent disk documentation. + * @param provisionedIops provisionedIops or {@code null} for none + */ + public Disk setProvisionedIops(java.lang.Long provisionedIops) { + this.provisionedIops = provisionedIops; + return this; + } + + /** + * Indicates how much throughput to provision for the disk. This sets the number of throughput mb + * per second that the disk can handle. Values must be greater than or equal to 1. + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedThroughput() { + return provisionedThroughput; + } + + /** + * Indicates how much throughput to provision for the disk. This sets the number of throughput mb + * per second that the disk can handle. Values must be greater than or equal to 1. + * @param provisionedThroughput provisionedThroughput or {@code null} for none + */ + public Disk setProvisionedThroughput(java.lang.Long provisionedThroughput) { + this.provisionedThroughput = provisionedThroughput; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the disk resides. Only applicable for + * regional resources. You must specify this field as part of the HTTP request URL. It is not + * settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the disk resides. Only applicable for + * regional resources. You must specify this field as part of the HTTP request URL. It is not + * settable as a field in the request body. + * @param region region or {@code null} for none + */ + public Disk setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * URLs of the zones where the disk should be replicated to. Only applicable for regional + * resources. + * @return value or {@code null} for none + */ + public java.util.List getReplicaZones() { + return replicaZones; + } + + /** + * URLs of the zones where the disk should be replicated to. Only applicable for regional + * resources. + * @param replicaZones replicaZones or {@code null} for none + */ + public Disk setReplicaZones(java.util.List replicaZones) { + this.replicaZones = replicaZones; + return this; + } + + /** + * Resource policies applied to this disk for automatic snapshot creations. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies applied to this disk for automatic snapshot creations. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public Disk setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Output only. [Output Only] Status information for the disk resource. + * @return value or {@code null} for none + */ + public DiskResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] Status information for the disk resource. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public Disk setResourceStatus(DiskResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public Disk setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk + * using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an + * empty persistent disk. + * + * If you specify this field along with a source, the value ofsizeGb must not be less than the + * size of the source. Acceptable values are greater than 0. + * @return value or {@code null} for none + */ + public java.lang.Long getSizeGb() { + return sizeGb; + } + + /** + * Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk + * using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an + * empty persistent disk. + * + * If you specify this field along with a source, the value ofsizeGb must not be less than the + * size of the source. Acceptable values are greater than 0. + * @param sizeGb sizeGb or {@code null} for none + */ + public Disk setSizeGb(java.lang.Long sizeGb) { + this.sizeGb = sizeGb; + return this; + } + + /** + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. + * @return value or {@code null} for none + */ + public java.lang.String getSourceConsistencyGroupPolicy() { + return sourceConsistencyGroupPolicy; + } + + /** + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. + * @param sourceConsistencyGroupPolicy sourceConsistencyGroupPolicy or {@code null} for none + */ + public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGroupPolicy) { + this.sourceConsistencyGroupPolicy = sourceConsistencyGroupPolicy; + return this; + } + + /** + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. + * @return value or {@code null} for none + */ + public java.lang.String getSourceConsistencyGroupPolicyId() { + return sourceConsistencyGroupPolicyId; + } + + /** + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was + * created using a consistency group. + * @param sourceConsistencyGroupPolicyId sourceConsistencyGroupPolicyId or {@code null} for none + */ + public Disk setSourceConsistencyGroupPolicyId(java.lang.String sourceConsistencyGroupPolicyId) { + this.sourceConsistencyGroupPolicyId = sourceConsistencyGroupPolicyId; + return this; + } + + /** + * The source disk used to create this disk. You can provide this as a partial or full URL to the + * resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * The source disk used to create this disk. You can provide this as a partial or full URL to the + * resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @param sourceDisk sourceDisk or {@code null} for none + */ + public Disk setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the disk used to create this disk. This value + * identifies the exact disk that was used to create this persistent disk. For example, if you + * created the persistent disk from a disk that was later deleted and recreated under the same + * name, the source disk ID would identify the exact version of the disk that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskId() { + return sourceDiskId; + } + + /** + * Output only. [Output Only] The unique ID of the disk used to create this disk. This value + * identifies the exact disk that was used to create this persistent disk. For example, if you + * created the persistent disk from a disk that was later deleted and recreated under the same + * name, the source disk ID would identify the exact version of the disk that was used. + * @param sourceDiskId sourceDiskId or {@code null} for none + */ + public Disk setSourceDiskId(java.lang.String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + return this; + } + + /** + * The source image used to create this disk. If the source image is deleted, this field will not + * be set. + * + * To create a disk with one of the public operating system images, specify the image by its + * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + * + * projects/debian-cloud/global/images/family/debian-9 + * + * Alternatively, use a specific version of a public operating system image: + * + * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + * + * To create a disk with a custom image that you created, specify the image name in the following + * format: + * + * global/images/my-custom-image + * + * You can also specify a custom image by its image family, which returns the latest version of + * the image in that family. Replace the image name with family/family-name: + * + * global/images/family/my-image-family + * @return value or {@code null} for none + */ + public java.lang.String getSourceImage() { + return sourceImage; + } + + /** + * The source image used to create this disk. If the source image is deleted, this field will not + * be set. + * + * To create a disk with one of the public operating system images, specify the image by its + * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: + * + * projects/debian-cloud/global/images/family/debian-9 + * + * Alternatively, use a specific version of a public operating system image: + * + * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + * + * To create a disk with a custom image that you created, specify the image name in the following + * format: + * + * global/images/my-custom-image + * + * You can also specify a custom image by its image family, which returns the latest version of + * the image in that family. Replace the image name with family/family-name: + * + * global/images/family/my-image-family + * @param sourceImage sourceImage or {@code null} for none + */ + public Disk setSourceImage(java.lang.String sourceImage) { + this.sourceImage = sourceImage; + return this; + } + + /** + * Thecustomer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceImageEncryptionKey() { + return sourceImageEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * @param sourceImageEncryptionKey sourceImageEncryptionKey or {@code null} for none + */ + public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey) { + this.sourceImageEncryptionKey = sourceImageEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The ID value of the image used to create this disk. This value + * identifies the exact image that was used to create this persistent disk. For example, if you + * created the persistent disk from an image that was later deleted and recreated under the same + * name, the source image ID would identify the exact version of the image that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceImageId() { + return sourceImageId; + } + + /** + * Output only. [Output Only] The ID value of the image used to create this disk. This value + * identifies the exact image that was used to create this persistent disk. For example, if you + * created the persistent disk from an image that was later deleted and recreated under the same + * name, the source image ID would identify the exact version of the image that was used. + * @param sourceImageId sourceImageId or {@code null} for none + */ + public Disk setSourceImageId(java.lang.String sourceImageId) { + this.sourceImageId = sourceImageId; + return this; + } + + /** + * The source instant snapshot used to create this disk. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - https://www.go + * ogleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - + * projects/project/zones/zone/instantSnapshots/instantSnapshot - + * zones/zone/instantSnapshots/instantSnapshot + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshot() { + return sourceInstantSnapshot; + } + + /** + * The source instant snapshot used to create this disk. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - https://www.go + * ogleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - + * projects/project/zones/zone/instantSnapshots/instantSnapshot - + * zones/zone/instantSnapshots/instantSnapshot + * @param sourceInstantSnapshot sourceInstantSnapshot or {@code null} for none + */ + public Disk setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { + this.sourceInstantSnapshot = sourceInstantSnapshot; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This + * value identifies the exact instant snapshot that was used to create this persistent disk. For + * example, if you created the persistent disk from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact version + * of the instant snapshot that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotId() { + return sourceInstantSnapshotId; + } + + /** + * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This + * value identifies the exact instant snapshot that was used to create this persistent disk. For + * example, if you created the persistent disk from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact version + * of the instant snapshot that was used. + * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none + */ + public Disk setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { + this.sourceInstantSnapshotId = sourceInstantSnapshotId; + return this; + } + + /** + * The source snapshot used to create this disk. You can provide this as a partial or full URL to + * the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot - + * projects/project/global/snapshots/snapshot - global/snapshots/snapshot + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshot() { + return sourceSnapshot; + } + + /** + * The source snapshot used to create this disk. You can provide this as a partial or full URL to + * the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot - + * projects/project/global/snapshots/snapshot - global/snapshots/snapshot + * @param sourceSnapshot sourceSnapshot or {@code null} for none + */ + public Disk setSourceSnapshot(java.lang.String sourceSnapshot) { + this.sourceSnapshot = sourceSnapshot; + return this; + } + + /** + * Thecustomer-supplied encryption key of the source snapshot. Required if the source snapshot is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceSnapshotEncryptionKey() { + return sourceSnapshotEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source snapshot. Required if the source snapshot is + * protected by a customer-supplied encryption key. + * @param sourceSnapshotEncryptionKey sourceSnapshotEncryptionKey or {@code null} for none + */ + public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey) { + this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value + * identifies the exact snapshot that was used to create this persistent disk. For example, if you + * created the persistent disk from a snapshot that was later deleted and recreated under the same + * name, the source snapshot ID would identify the exact version of the snapshot that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshotId() { + return sourceSnapshotId; + } + + /** + * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value + * identifies the exact snapshot that was used to create this persistent disk. For example, if you + * created the persistent disk from a snapshot that was later deleted and recreated under the same + * name, the source snapshot ID would identify the exact version of the snapshot that was used. + * @param sourceSnapshotId sourceSnapshotId or {@code null} for none + */ + public Disk setSourceSnapshotId(java.lang.String sourceSnapshotId) { + this.sourceSnapshotId = sourceSnapshotId; + return this; + } + + /** + * The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip- + * compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. + * Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized + * for creating multiple disks from a source storage object. To create many disks from a source + * storage object, use gcloud compute images import instead. + * @return value or {@code null} for none + */ + public java.lang.String getSourceStorageObject() { + return sourceStorageObject; + } + + /** + * The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip- + * compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. + * Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized + * for creating multiple disks from a source storage object. To create many disks from a source + * storage object, use gcloud compute images import instead. + * @param sourceStorageObject sourceStorageObject or {@code null} for none + */ + public Disk setSourceStorageObject(java.lang.String sourceStorageObject) { + this.sourceStorageObject = sourceStorageObject; + return this; + } + + /** + * Output only. [Output Only] The status of disk creation. - CREATING: Disk is + * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: + * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of disk creation. - CREATING: Disk is + * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: + * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. + * @param status status or {@code null} for none + */ + public Disk setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The storage pool in which the new disk is created. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + * - projects/project/zones/zone/storagePools/storagePool - + * zones/zone/storagePools/storagePool + * @return value or {@code null} for none + */ + public java.lang.String getStoragePool() { + return storagePool; + } + + /** + * The storage pool in which the new disk is created. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + * - projects/project/zones/zone/storagePools/storagePool - + * zones/zone/storagePools/storagePool + * @param storagePool storagePool or {@code null} for none + */ + public Disk setStoragePool(java.lang.String storagePool) { + this.storagePool = storagePool; + return this; + } + + /** + * URL of the disk type resource describing which disk type to use to create the disk. Provide + * this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See + * Persistent disk types. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * URL of the disk type resource describing which disk type to use to create the disk. Provide + * this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See + * Persistent disk types. + * @param type type or {@code null} for none + */ + public Disk setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. [Output Only] Links to the users of the disk (attached instances) in + * form:projects/project/zones/zone/instances/instance + * @return value or {@code null} for none + */ + public java.util.List getUsers() { + return users; + } + + /** + * Output only. [Output Only] Links to the users of the disk (attached instances) in + * form:projects/project/zones/zone/instances/instance + * @param users users or {@code null} for none + */ + public Disk setUsers(java.util.List users) { + this.users = users; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public Disk setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Disk set(String fieldName, Object value) { + return (Disk) super.set(fieldName, value); + } + + @Override + public Disk clone() { + return (Disk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java new file mode 100644 index 00000000000..1b48089d93e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 DiskAggregatedList. + * + *

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 DiskAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 DisksScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated + * lists of persistent disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 DiskAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of DisksScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of DisksScopedList resources. + * @param items items or {@code null} for none + */ + public DiskAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated + * lists of persistent disks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated + * lists of persistent disks. + * @param kind kind or {@code null} for none + */ + public DiskAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public DiskAggregatedList 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 DiskAggregatedList 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 DiskAggregatedList 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 DiskAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DiskAggregatedList set(String fieldName, Object value) { + return (DiskAggregatedList) super.set(fieldName, value); + } + + @Override + public DiskAggregatedList clone() { + return (DiskAggregatedList) 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 DiskAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java new file mode 100644 index 00000000000..e31cddc0dd0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -0,0 +1,165 @@ +/* + * 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 DiskAsyncReplication. + * + *

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 DiskAsyncReplication extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consistencyGroupPolicy; + + /** + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consistencyGroupPolicyId; + + /** + * The other disk asynchronously replicated to or from the current disk. You can provide this as a + * partial or full URL to the resource. For example, the following are valid values: + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** + * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from + * the current disk. This value identifies the exact disk that was used to create this + * replication. For example, if you started replicating the persistent disk from a disk that was + * later deleted and recreated under the same name, the disk ID would identify the exact version + * of the disk that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskId; + + /** + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. + * @return value or {@code null} for none + */ + public java.lang.String getConsistencyGroupPolicy() { + return consistencyGroupPolicy; + } + + /** + * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. + * @param consistencyGroupPolicy consistencyGroupPolicy or {@code null} for none + */ + public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consistencyGroupPolicy) { + this.consistencyGroupPolicy = consistencyGroupPolicy; + return this; + } + + /** + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. + * @return value or {@code null} for none + */ + public java.lang.String getConsistencyGroupPolicyId() { + return consistencyGroupPolicyId; + } + + /** + * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on + * the disk as a member of a group. + * @param consistencyGroupPolicyId consistencyGroupPolicyId or {@code null} for none + */ + public DiskAsyncReplication setConsistencyGroupPolicyId(java.lang.String consistencyGroupPolicyId) { + this.consistencyGroupPolicyId = consistencyGroupPolicyId; + return this; + } + + /** + * The other disk asynchronously replicated to or from the current disk. You can provide this as a + * partial or full URL to the resource. For example, the following are valid values: + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getDisk() { + return disk; + } + + /** + * The other disk asynchronously replicated to or from the current disk. You can provide this as a + * partial or full URL to the resource. For example, the following are valid values: + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * @param disk disk or {@code null} for none + */ + public DiskAsyncReplication setDisk(java.lang.String disk) { + this.disk = disk; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from + * the current disk. This value identifies the exact disk that was used to create this + * replication. For example, if you started replicating the persistent disk from a disk that was + * later deleted and recreated under the same name, the disk ID would identify the exact version + * of the disk that was used. + * @return value or {@code null} for none + */ + public java.lang.String getDiskId() { + return diskId; + } + + /** + * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from + * the current disk. This value identifies the exact disk that was used to create this + * replication. For example, if you started replicating the persistent disk from a disk that was + * later deleted and recreated under the same name, the disk ID would identify the exact version + * of the disk that was used. + * @param diskId diskId or {@code null} for none + */ + public DiskAsyncReplication setDiskId(java.lang.String diskId) { + this.diskId = diskId; + return this; + } + + @Override + public DiskAsyncReplication set(String fieldName, Object value) { + return (DiskAsyncReplication) super.set(fieldName, value); + } + + @Override + public DiskAsyncReplication clone() { + return (DiskAsyncReplication) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplicationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplicationList.java new file mode 100644 index 00000000000..bdad13fbbee --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskAsyncReplicationList.java @@ -0,0 +1,63 @@ +/* + * 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 DiskAsyncReplicationList. + * + *

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 DiskAsyncReplicationList extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskAsyncReplication asyncReplicationDisk; + + /** + * @return value or {@code null} for none + */ + public DiskAsyncReplication getAsyncReplicationDisk() { + return asyncReplicationDisk; + } + + /** + * @param asyncReplicationDisk asyncReplicationDisk or {@code null} for none + */ + public DiskAsyncReplicationList setAsyncReplicationDisk(DiskAsyncReplication asyncReplicationDisk) { + this.asyncReplicationDisk = asyncReplicationDisk; + return this; + } + + @Override + public DiskAsyncReplicationList set(String fieldName, Object value) { + return (DiskAsyncReplicationList) super.set(fieldName, value); + } + + @Override + public DiskAsyncReplicationList clone() { + return (DiskAsyncReplicationList) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskInstantiationConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskInstantiationConfig.java new file mode 100644 index 00000000000..d3623d48aab --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskInstantiationConfig.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A specification of the desired way to instantiate a disk in the instance template when its + * created from a source instance. + * + *

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 DiskInstantiationConfig extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoDelete; + + /** + * The custom source image to be used to restore this disk when instantiating this instance + * template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customImage; + + /** + * Specifies the device name of the disk to which the configurations apply to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** + * Specifies whether to include the disk and what image to use. Possible values are: + * - source-image: to use the same image that was used to create the source instance's + * corresponding disk. Applicable to the boot disk and additional read-write disks. - + * source-image-family: to use the same image family that was used to create the source + * instance's corresponding disk. Applicable to the boot disk and additional read-write + * disks. - custom-image: to use a user-provided image url for disk creation. Applicable + * to the boot disk and additional read-write disks. - attach-read-only: to attach a + * read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk + * from the template. Applicable to additional read-write disks, local SSDs, and read-only + * disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instantiateFrom; + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoDelete() { + return autoDelete; + } + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * @param autoDelete autoDelete or {@code null} for none + */ + public DiskInstantiationConfig setAutoDelete(java.lang.Boolean autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * The custom source image to be used to restore this disk when instantiating this instance + * template. + * @return value or {@code null} for none + */ + public java.lang.String getCustomImage() { + return customImage; + } + + /** + * The custom source image to be used to restore this disk when instantiating this instance + * template. + * @param customImage customImage or {@code null} for none + */ + public DiskInstantiationConfig setCustomImage(java.lang.String customImage) { + this.customImage = customImage; + return this; + } + + /** + * Specifies the device name of the disk to which the configurations apply to. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * Specifies the device name of the disk to which the configurations apply to. + * @param deviceName deviceName or {@code null} for none + */ + public DiskInstantiationConfig setDeviceName(java.lang.String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Specifies whether to include the disk and what image to use. Possible values are: + * - source-image: to use the same image that was used to create the source instance's + * corresponding disk. Applicable to the boot disk and additional read-write disks. - + * source-image-family: to use the same image family that was used to create the source + * instance's corresponding disk. Applicable to the boot disk and additional read-write + * disks. - custom-image: to use a user-provided image url for disk creation. Applicable + * to the boot disk and additional read-write disks. - attach-read-only: to attach a + * read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk + * from the template. Applicable to additional read-write disks, local SSDs, and read-only + * disks. + * @return value or {@code null} for none + */ + public java.lang.String getInstantiateFrom() { + return instantiateFrom; + } + + /** + * Specifies whether to include the disk and what image to use. Possible values are: + * - source-image: to use the same image that was used to create the source instance's + * corresponding disk. Applicable to the boot disk and additional read-write disks. - + * source-image-family: to use the same image family that was used to create the source + * instance's corresponding disk. Applicable to the boot disk and additional read-write + * disks. - custom-image: to use a user-provided image url for disk creation. Applicable + * to the boot disk and additional read-write disks. - attach-read-only: to attach a + * read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk + * from the template. Applicable to additional read-write disks, local SSDs, and read-only + * disks. + * @param instantiateFrom instantiateFrom or {@code null} for none + */ + public DiskInstantiationConfig setInstantiateFrom(java.lang.String instantiateFrom) { + this.instantiateFrom = instantiateFrom; + return this; + } + + @Override + public DiskInstantiationConfig set(String fieldName, Object value) { + return (DiskInstantiationConfig) super.set(fieldName, value); + } + + @Override + public DiskInstantiationConfig clone() { + return (DiskInstantiationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskList.java new file mode 100644 index 00000000000..92c9355bc37 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -0,0 +1,383 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of Disk resources. + * + *

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 DiskList extends com.google.api.client.json.GenericJson { + + /** + * [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 Disk 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 Disk 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(Disk.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 DiskList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Disk resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Disk resources. + * @param items items or {@code null} for none + */ + public DiskList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * @param kind kind or {@code null} for none + */ + public DiskList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public DiskList 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 DiskList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 DiskList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DiskList set(String fieldName, Object value) { + return (DiskList) super.set(fieldName, value); + } + + @Override + public DiskList clone() { + return (DiskList) 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 DiskListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/DiskMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskMoveRequest.java new file mode 100644 index 00000000000..94f836cdd4d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskMoveRequest.java @@ -0,0 +1,108 @@ +/* + * 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 DiskMoveRequest. + * + *

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 DiskMoveRequest extends com.google.api.client.json.GenericJson { + + /** + * The URL of the destination zone to move the disk. This can be a full or partial URL. For + * example, the following are all valid URLs to a zone: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationZone; + + /** + * The URL of the target disk to move. This can be a full or partial URL. For example, the + * following are all valid URLs to a disk: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetDisk; + + /** + * The URL of the destination zone to move the disk. This can be a full or partial URL. For + * example, the following are all valid URLs to a zone: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * @return value or {@code null} for none + */ + public java.lang.String getDestinationZone() { + return destinationZone; + } + + /** + * The URL of the destination zone to move the disk. This can be a full or partial URL. For + * example, the following are all valid URLs to a zone: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * @param destinationZone destinationZone or {@code null} for none + */ + public DiskMoveRequest setDestinationZone(java.lang.String destinationZone) { + this.destinationZone = destinationZone; + return this; + } + + /** + * The URL of the target disk to move. This can be a full or partial URL. For example, the + * following are all valid URLs to a disk: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getTargetDisk() { + return targetDisk; + } + + /** + * The URL of the target disk to move. This can be a full or partial URL. For example, the + * following are all valid URLs to a disk: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * @param targetDisk targetDisk or {@code null} for none + */ + public DiskMoveRequest setTargetDisk(java.lang.String targetDisk) { + this.targetDisk = targetDisk; + return this; + } + + @Override + public DiskMoveRequest set(String fieldName, Object value) { + return (DiskMoveRequest) super.set(fieldName, value); + } + + @Override + public DiskMoveRequest clone() { + return (DiskMoveRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskParams.java new file mode 100644 index 00000000000..ecee6643901 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional disk params. + * + *

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 DiskParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public DiskParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public DiskParams set(String fieldName, Object value) { + return (DiskParams) super.set(fieldName, value); + } + + @Override + public DiskParams clone() { + return (DiskParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatus.java new file mode 100644 index 00000000000..b9fc390e4a6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatus.java @@ -0,0 +1,87 @@ +/* + * 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 DiskResourceStatus. + * + *

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 DiskResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskResourceStatusAsyncReplicationStatus asyncPrimaryDisk; + + /** + * Key: disk, value: AsyncReplicationStatus message + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map asyncSecondaryDisks; + + /** + * @return value or {@code null} for none + */ + public DiskResourceStatusAsyncReplicationStatus getAsyncPrimaryDisk() { + return asyncPrimaryDisk; + } + + /** + * @param asyncPrimaryDisk asyncPrimaryDisk or {@code null} for none + */ + public DiskResourceStatus setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus asyncPrimaryDisk) { + this.asyncPrimaryDisk = asyncPrimaryDisk; + return this; + } + + /** + * Key: disk, value: AsyncReplicationStatus message + * @return value or {@code null} for none + */ + public java.util.Map getAsyncSecondaryDisks() { + return asyncSecondaryDisks; + } + + /** + * Key: disk, value: AsyncReplicationStatus message + * @param asyncSecondaryDisks asyncSecondaryDisks or {@code null} for none + */ + public DiskResourceStatus setAsyncSecondaryDisks(java.util.Map asyncSecondaryDisks) { + this.asyncSecondaryDisks = asyncSecondaryDisks; + return this; + } + + @Override + public DiskResourceStatus set(String fieldName, Object value) { + return (DiskResourceStatus) super.set(fieldName, value); + } + + @Override + public DiskResourceStatus clone() { + return (DiskResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatusAsyncReplicationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatusAsyncReplicationStatus.java new file mode 100644 index 00000000000..28e285655c4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskResourceStatusAsyncReplicationStatus.java @@ -0,0 +1,63 @@ +/* + * 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 DiskResourceStatusAsyncReplicationStatus. + * + *

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 DiskResourceStatusAsyncReplicationStatus extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * @param state state or {@code null} for none + */ + public DiskResourceStatusAsyncReplicationStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public DiskResourceStatusAsyncReplicationStatus set(String fieldName, Object value) { + return (DiskResourceStatusAsyncReplicationStatus) super.set(fieldName, value); + } + + @Override + public DiskResourceStatusAsyncReplicationStatus clone() { + return (DiskResourceStatusAsyncReplicationStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskType.java new file mode 100644 index 00000000000..68f00cf8b7e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -0,0 +1,329 @@ +/* + * 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 Disk Type resource. + * + * Google Compute Engine has two Disk Type resources: + * + * * [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) * + * [Zonal](/compute/docs/reference/rest/v1/diskTypes) + * + * You can choose from a variety of disk types based on your needs. For more information, + * readStorage options. + * + * The diskTypes resource represents disk types for a zonal persistent disk. For more information, + * readZonal persistent disks. + * + * The regionDiskTypes resource represents disk types for a regional persistent disk. For more + * information, read Regional persistent disks. + * + *

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 DiskType extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] Server-defined default disk size in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long defaultDiskSizeGb; + + /** + * [Output Only] The deprecation status associated with this disk type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * [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] 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] Type of the resource. Always compute#diskType for disk types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [Output Only] URL of the region where the disk type resides. Only applicable for regional + * resources. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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] An optional textual description of the valid disk size, such as "10GB-10TB". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String validDiskSize; + + /** + * [Output Only] URL of the zone where the disk type resides. You must specify this field as part + * of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public DiskType setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] Server-defined default disk size in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDefaultDiskSizeGb() { + return defaultDiskSizeGb; + } + + /** + * [Output Only] Server-defined default disk size in GB. + * @param defaultDiskSizeGb defaultDiskSizeGb or {@code null} for none + */ + public DiskType setDefaultDiskSizeGb(java.lang.Long defaultDiskSizeGb) { + this.defaultDiskSizeGb = defaultDiskSizeGb; + return this; + } + + /** + * [Output Only] The deprecation status associated with this disk type. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * [Output Only] The deprecation status associated with this disk type. + * @param deprecated deprecated or {@code null} for none + */ + public DiskType setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + 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 DiskType setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public DiskType setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * @param kind kind or {@code null} for none + */ + public DiskType setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public DiskType setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] URL of the region where the disk type resides. Only applicable for regional + * resources. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] URL of the region where the disk type resides. Only applicable for regional + * resources. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. + * @param region region or {@code null} for none + */ + public DiskType setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public DiskType setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". + * @return value or {@code null} for none + */ + public java.lang.String getValidDiskSize() { + return validDiskSize; + } + + /** + * [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". + * @param validDiskSize validDiskSize or {@code null} for none + */ + public DiskType setValidDiskSize(java.lang.String validDiskSize) { + this.validDiskSize = validDiskSize; + return this; + } + + /** + * [Output Only] URL of the zone where the disk type resides. You must specify this field as part + * of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] URL of the zone where the disk type resides. You must specify this field as part + * of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public DiskType setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public DiskType set(String fieldName, Object value) { + return (DiskType) super.set(fieldName, value); + } + + @Override + public DiskType clone() { + return (DiskType) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java new file mode 100644 index 00000000000..d8e0cf57e88 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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 DiskTypeAggregatedList. + * + *

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 DiskTypeAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 DiskTypesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 DiskTypeAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of DiskTypesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of DiskTypesScopedList resources. + * @param items items or {@code null} for none + */ + public DiskTypeAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * @param kind kind or {@code null} for none + */ + public DiskTypeAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public DiskTypeAggregatedList 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 DiskTypeAggregatedList 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 DiskTypeAggregatedList 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 DiskTypeAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DiskTypeAggregatedList set(String fieldName, Object value) { + return (DiskTypeAggregatedList) super.set(fieldName, value); + } + + @Override + public DiskTypeAggregatedList clone() { + return (DiskTypeAggregatedList) 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 DiskTypeAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeList.java new file mode 100644 index 00000000000..2b559b6ed73 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of disk types. + * + *

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 DiskTypeList extends com.google.api.client.json.GenericJson { + + /** + * [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 DiskType 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 DiskType 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(DiskType.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 DiskTypeList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of DiskType resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of DiskType resources. + * @param items items or {@code null} for none + */ + public DiskTypeList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * @param kind kind or {@code null} for none + */ + public DiskTypeList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public DiskTypeList 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 DiskTypeList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 DiskTypeList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DiskTypeList set(String fieldName, Object value) { + return (DiskTypeList) super.set(fieldName, value); + } + + @Override + public DiskTypeList clone() { + return (DiskTypeList) 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 DiskTypeListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/DiskTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypesScopedList.java new file mode 100644 index 00000000000..e3bdefac94c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskTypesScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 DiskTypesScopedList. + * + *

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 DiskTypesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of disk types contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List diskTypes; + + static { + // hack to force ProGuard to consider DiskType 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(DiskType.class); + } + + /** + * [Output Only] Informational warning which replaces the list of disk types when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of disk types contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getDiskTypes() { + return diskTypes; + } + + /** + * [Output Only] A list of disk types contained in this scope. + * @param diskTypes diskTypes or {@code null} for none + */ + public DiskTypesScopedList setDiskTypes(java.util.List diskTypes) { + this.diskTypes = diskTypes; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of disk types when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of disk types when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public DiskTypesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DiskTypesScopedList set(String fieldName, Object value) { + return (DiskTypesScopedList) super.set(fieldName, value); + } + + @Override + public DiskTypesScopedList clone() { + return (DiskTypesScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of disk types when the list is empty. + */ + 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 DiskTypesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java new file mode 100644 index 00000000000..e4541064f90 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java @@ -0,0 +1,84 @@ +/* + * 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 DiskUpdateKmsKeyRequest. + * + *

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 DiskUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be + * re-encrypted using the primary version of the disk's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + * + * Where project is the project ID or project number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKeyName; + + /** + * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be + * re-encrypted using the primary version of the disk's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + * + * Where project is the project ID or project number. + * @return value or {@code null} for none + */ + public java.lang.String getKmsKeyName() { + return kmsKeyName; + } + + /** + * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be + * re-encrypted using the primary version of the disk's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + * + * Where project is the project ID or project number. + * @param kmsKeyName kmsKeyName or {@code null} for none + */ + public DiskUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { + this.kmsKeyName = kmsKeyName; + return this; + } + + @Override + public DiskUpdateKmsKeyRequest set(String fieldName, Object value) { + return (DiskUpdateKmsKeyRequest) super.set(fieldName, value); + } + + @Override + public DiskUpdateKmsKeyRequest clone() { + return (DiskUpdateKmsKeyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksAddResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksAddResourcePoliciesRequest.java new file mode 100644 index 00000000000..b3145c38efd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksAddResourcePoliciesRequest.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; + +/** + * Model definition for DisksAddResourcePoliciesRequest. + * + *

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 DisksAddResourcePoliciesRequest extends com.google.api.client.json.GenericJson { + + /** + * Full or relative path to the resource policy to be added to this disk. You can only specify one + * resource policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Full or relative path to the resource policy to be added to this disk. You can only specify one + * resource policy. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Full or relative path to the resource policy to be added to this disk. You can only specify one + * resource policy. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public DisksAddResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + @Override + public DisksAddResourcePoliciesRequest set(String fieldName, Object value) { + return (DisksAddResourcePoliciesRequest) super.set(fieldName, value); + } + + @Override + public DisksAddResourcePoliciesRequest clone() { + return (DisksAddResourcePoliciesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksRemoveResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksRemoveResourcePoliciesRequest.java new file mode 100644 index 00000000000..07d1eeb100e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksRemoveResourcePoliciesRequest.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; + +/** + * Model definition for DisksRemoveResourcePoliciesRequest. + * + *

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 DisksRemoveResourcePoliciesRequest extends com.google.api.client.json.GenericJson { + + /** + * Resource policies to be removed from this disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Resource policies to be removed from this disk. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies to be removed from this disk. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public DisksRemoveResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + @Override + public DisksRemoveResourcePoliciesRequest set(String fieldName, Object value) { + return (DisksRemoveResourcePoliciesRequest) super.set(fieldName, value); + } + + @Override + public DisksRemoveResourcePoliciesRequest clone() { + return (DisksRemoveResourcePoliciesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksResizeRequest.java new file mode 100644 index 00000000000..2c81fd5566b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksResizeRequest.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; + +/** + * Model definition for DisksResizeRequest. + * + *

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 DisksResizeRequest extends com.google.api.client.json.GenericJson { + + /** + * The new size of the persistent disk, which is specified in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sizeGb; + + /** + * The new size of the persistent disk, which is specified in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getSizeGb() { + return sizeGb; + } + + /** + * The new size of the persistent disk, which is specified in GB. + * @param sizeGb sizeGb or {@code null} for none + */ + public DisksResizeRequest setSizeGb(java.lang.Long sizeGb) { + this.sizeGb = sizeGb; + return this; + } + + @Override + public DisksResizeRequest set(String fieldName, Object value) { + return (DisksResizeRequest) super.set(fieldName, value); + } + + @Override + public DisksResizeRequest clone() { + return (DisksResizeRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksScopedList.java new file mode 100644 index 00000000000..3fab150a18b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 DisksScopedList. + * + *

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 DisksScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of disks contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider Disk 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(Disk.class); + } + + /** + * [Output Only] Informational warning which replaces the list of disks when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of disks contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * [Output Only] A list of disks contained in this scope. + * @param disks disks or {@code null} for none + */ + public DisksScopedList setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of disks when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of disks when the list is empty. + * @param warning warning or {@code null} for none + */ + public DisksScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public DisksScopedList set(String fieldName, Object value) { + return (DisksScopedList) super.set(fieldName, value); + } + + @Override + public DisksScopedList clone() { + return (DisksScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of disks when the list is empty. + */ + 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 DisksScopedListWarningData. + */ + 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(); + } + + } + } +} From cbe8652e28ab8d9dc8e4cbbb86aa82e1c5b9847f Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:19 -0700 Subject: [PATCH 03/23] chore: regenerate compute client --- .../DisksStartAsyncReplicationRequest.java | 84 + ...isksStopGroupAsyncReplicationResource.java | 80 + .../services/compute/model/DisplayDevice.java | 66 + .../compute/model/DistributionPolicy.java | 105 + .../DistributionPolicyZoneConfiguration.java | 69 + .../api/services/compute/model/Duration.java | 104 + .../api/services/compute/model/ErrorInfo.java | 166 ++ .../compute/model/ExchangedPeeringRoute.java | 171 ++ .../model/ExchangedPeeringRoutesList.java | 386 ++++ .../api/services/compute/model/Expr.java | 172 ++ .../compute/model/ExternalVpnGateway.java | 410 ++++ .../model/ExternalVpnGatewayInterface.java | 138 ++ .../compute/model/ExternalVpnGatewayList.java | 407 ++++ .../model/ExternalVpnGatewayParams.java | 87 + .../compute/model/FileContentBuffer.java | 118 ++ .../api/services/compute/model/Firewall.java | 862 ++++++++ .../services/compute/model/FirewallList.java | 386 ++++ .../compute/model/FirewallLogConfig.java | 93 + .../compute/model/FirewallParams.java | 84 + ...ewallPoliciesListAssociationsResponse.java | 93 + .../model/FirewallPoliciesScopedList.java | 272 +++ .../compute/model/FirewallPolicy.java | 580 ++++++ .../model/FirewallPolicyAssociation.java | 201 ++ .../compute/model/FirewallPolicyList.java | 362 ++++ .../compute/model/FirewallPolicyRule.java | 541 +++++ .../model/FirewallPolicyRuleMatcher.java | 499 +++++ ...FirewallPolicyRuleMatcherLayer4Config.java | 108 + .../model/FirewallPolicyRuleSecureTag.java | 93 + .../compute/model/FixedOrPercent.java | 135 ++ .../compute/model/FlexibleTimeRange.java | 129 ++ .../compute/model/ForwardingRule.java | 1754 +++++++++++++++++ .../model/ForwardingRuleAggregatedList.java | 404 ++++ .../ForwardingRuleAttachedExtension.java | 66 + .../compute/model/ForwardingRuleList.java | 383 ++++ .../model/ForwardingRuleReference.java | 63 + ...rdingRuleServiceDirectoryRegistration.java | 122 ++ .../model/ForwardingRulesScopedList.java | 278 +++ .../compute/model/FutureReservation.java | 867 ++++++++ .../FutureReservationCommitmentInfo.java | 120 ++ .../model/FutureReservationParams.java | 78 + ...utureReservationSpecificSKUProperties.java | 117 ++ .../model/FutureReservationStatus.java | 303 +++ ...vationStatusExistingMatchingUsageInfo.java | 93 + ...reReservationStatusLastKnownGoodState.java | 195 ++ ...tKnownGoodStateFutureReservationSpecs.java | 114 ++ ...eservationStatusSpecificSKUProperties.java | 66 + ...utureReservationStoragePoolProperties.java | 114 ++ ...rvationStoragePoolProvisionedCapacity.java | 120 ++ .../model/FutureReservationTimeWindow.java | 108 + ...ureReservationsAggregatedListResponse.java | 428 ++++ .../model/FutureReservationsListResponse.java | 431 ++++ .../model/FutureReservationsScopedList.java | 278 +++ .../model/FutureResourcesRecommendation.java | 186 ++ ...eResourcesRecommendationOtherLocation.java | 97 + .../compute/model/FutureResourcesSpec.java | 148 ++ ...FutureResourcesSpecAggregateResources.java | 117 ++ .../FutureResourcesSpecLocalSsdPartition.java | 90 + .../FutureResourcesSpecLocationPolicy.java | 72 + ...reResourcesSpecLocationPolicyLocation.java | 66 + ...tureResourcesSpecSpecificSKUResources.java | 132 ++ .../FutureResourcesSpecTargetResources.java | 84 + .../compute/model/GRPCHealthCheck.java | 210 ++ .../compute/model/GRPCTLSHealthCheck.java | 186 ++ .../model/GetHealthOperationMetadata.java | 66 + .../GetHealthOperationMetadataHealthInfo.java | 162 ++ .../model/GetVersionOperationMetadata.java | 63 + .../GetVersionOperationMetadataSbomInfo.java | 90 + .../model/GlobalAddressesMoveRequest.java | 108 + .../compute/model/GlobalFrontendSettings.java | 222 +++ .../GlobalFrontendSettingsPatchResponse.java | 66 + ...kEndpointGroupsAttachEndpointsRequest.java | 66 + ...kEndpointGroupsDetachEndpointsRequest.java | 66 + .../GlobalOrganizationSetPolicyRequest.java | 162 ++ .../compute/model/GlobalSetLabelsRequest.java | 144 ++ .../compute/model/GlobalSetPolicyRequest.java | 162 ++ .../model/GlobalVmExtensionPolicy.java | 393 ++++ ...lobalVmExtensionPolicyExtensionPolicy.java | 93 + ...obalVmExtensionPolicyInstanceSelector.java | 66 + .../GlobalVmExtensionPolicyLabelSelector.java | 69 + .../model/GlobalVmExtensionPolicyList.java | 428 ++++ ...obalVmExtensionPolicyRolloutOperation.java | 90 + ...ionPolicyRolloutOperationRolloutInput.java | 198 ++ ...onPolicyRolloutOperationRolloutStatus.java | 96 + ...OperationRolloutStatusRolloutMetadata.java | 144 ++ ...sRolloutMetadataLocationRolloutStatus.java | 67 + .../compute/model/GroupMaintenanceInfo.java | 252 +++ .../compute/model/GuestAttributes.java | 192 ++ .../compute/model/GuestAttributesEntry.java | 114 ++ .../compute/model/GuestAttributesValue.java | 69 + .../compute/model/GuestOsFeature.java | 84 + .../compute/model/HTTP2HealthCheck.java | 282 +++ .../compute/model/HTTPHealthCheck.java | 285 +++ .../compute/model/HTTPSHealthCheck.java | 282 +++ .../services/compute/model/HaController.java | 447 +++++ ...ControllerNetworkingAutoConfiguration.java | 67 + ...erNetworkingAutoConfigurationInternal.java | 114 ++ .../compute/model/HaControllerStatus.java | 225 +++ .../HaControllerStatusFailoverProgress.java | 168 ++ ...usFailoverProgressLastFailoverAttempt.java | 377 ++++ .../model/HaControllerStatusZoneStatus.java | 114 ++ 100 files changed, 20984 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStartAsyncReplicationRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStopGroupAsyncReplicationResource.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisplayDevice.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Duration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ErrorInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoute.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Expr.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayInterface.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FileContentBuffer.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Firewall.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallLogConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcherLayer4Config.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleServiceDirectoryRegistration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRulesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationCommitmentInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationSpecificSKUProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusExistingMatchingUsageInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodState.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusSpecificSKUProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProvisionedCapacity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationTimeWindow.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsAggregatedListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCTLSHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalAddressesMoveRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalOrganizationSetPolicyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetLabelsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetPolicyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstanceSelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyLabelSelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributes.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesEntry.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesValue.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTP2HealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPSHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaController.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfiguration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfigurationInternal.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStartAsyncReplicationRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStartAsyncReplicationRequest.java new file mode 100644 index 00000000000..7874f3e08c5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStartAsyncReplicationRequest.java @@ -0,0 +1,84 @@ +/* + * 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 DisksStartAsyncReplicationRequest. + * + *

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 DisksStartAsyncReplicationRequest extends com.google.api.client.json.GenericJson { + + /** + * The secondary disk to start asynchronous replication to. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String asyncSecondaryDisk; + + /** + * The secondary disk to start asynchronous replication to. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getAsyncSecondaryDisk() { + return asyncSecondaryDisk; + } + + /** + * The secondary disk to start asynchronous replication to. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @param asyncSecondaryDisk asyncSecondaryDisk or {@code null} for none + */ + public DisksStartAsyncReplicationRequest setAsyncSecondaryDisk(java.lang.String asyncSecondaryDisk) { + this.asyncSecondaryDisk = asyncSecondaryDisk; + return this; + } + + @Override + public DisksStartAsyncReplicationRequest set(String fieldName, Object value) { + return (DisksStartAsyncReplicationRequest) super.set(fieldName, value); + } + + @Override + public DisksStartAsyncReplicationRequest clone() { + return (DisksStartAsyncReplicationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStopGroupAsyncReplicationResource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStopGroupAsyncReplicationResource.java new file mode 100644 index 00000000000..5178bb42ccb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisksStopGroupAsyncReplicationResource.java @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A transient resource used in compute.disks.stopGroupAsyncReplication and + * compute.regionDisks.stopGroupAsyncReplication. It is only used to process requests and is not + * persisted. + * + *

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 DisksStopGroupAsyncReplicationResource extends com.google.api.client.json.GenericJson { + + /** + * The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or + * partial URL, such as: - https://www.googleapis.com/compute/v1/projects/pro + * ject/regions/region/resourcePolicies/resourcePolicy - + * projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourcePolicy; + + /** + * The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or + * partial URL, such as: - https://www.googleapis.com/compute/v1/projects/pro + * ject/regions/region/resourcePolicies/resourcePolicy - + * projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * @return value or {@code null} for none + */ + public java.lang.String getResourcePolicy() { + return resourcePolicy; + } + + /** + * The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or + * partial URL, such as: - https://www.googleapis.com/compute/v1/projects/pro + * ject/regions/region/resourcePolicies/resourcePolicy - + * projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * @param resourcePolicy resourcePolicy or {@code null} for none + */ + public DisksStopGroupAsyncReplicationResource setResourcePolicy(java.lang.String resourcePolicy) { + this.resourcePolicy = resourcePolicy; + return this; + } + + @Override + public DisksStopGroupAsyncReplicationResource set(String fieldName, Object value) { + return (DisksStopGroupAsyncReplicationResource) super.set(fieldName, value); + } + + @Override + public DisksStopGroupAsyncReplicationResource clone() { + return (DisksStopGroupAsyncReplicationResource) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisplayDevice.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisplayDevice.java new file mode 100644 index 00000000000..dfba45121c5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DisplayDevice.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; + +/** + * A set of Display Device options + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DisplayDevice extends com.google.api.client.json.GenericJson { + + /** + * Defines whether the instance has Display enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableDisplay; + + /** + * Defines whether the instance has Display enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableDisplay() { + return enableDisplay; + } + + /** + * Defines whether the instance has Display enabled. + * @param enableDisplay enableDisplay or {@code null} for none + */ + public DisplayDevice setEnableDisplay(java.lang.Boolean enableDisplay) { + this.enableDisplay = enableDisplay; + return this; + } + + @Override + public DisplayDevice set(String fieldName, Object value) { + return (DisplayDevice) super.set(fieldName, value); + } + + @Override + public DisplayDevice clone() { + return (DisplayDevice) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java new file mode 100644 index 00000000000..5559090d792 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -0,0 +1,105 @@ +/* + * 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 DistributionPolicy. + * + *

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 DistributionPolicy extends com.google.api.client.json.GenericJson { + + /** + * The distribution shape to which the group converges either proactively or on resize events + * (depending on the value set inupdatePolicy.instanceRedistributionType). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetShape; + + /** + * Zones where the regional managed instance group will create and manage its instances. By + * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an + * AI zone is available in the specified region. To create instances in an AI zone in the selected + * region, you must explicitly specify it in the distribution policy together with the other + * preferred zones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * The distribution shape to which the group converges either proactively or on resize events + * (depending on the value set inupdatePolicy.instanceRedistributionType). + * @return value or {@code null} for none + */ + public java.lang.String getTargetShape() { + return targetShape; + } + + /** + * The distribution shape to which the group converges either proactively or on resize events + * (depending on the value set inupdatePolicy.instanceRedistributionType). + * @param targetShape targetShape or {@code null} for none + */ + public DistributionPolicy setTargetShape(java.lang.String targetShape) { + this.targetShape = targetShape; + return this; + } + + /** + * Zones where the regional managed instance group will create and manage its instances. By + * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an + * AI zone is available in the specified region. To create instances in an AI zone in the selected + * region, you must explicitly specify it in the distribution policy together with the other + * preferred zones. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * Zones where the regional managed instance group will create and manage its instances. By + * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an + * AI zone is available in the specified region. To create instances in an AI zone in the selected + * region, you must explicitly specify it in the distribution policy together with the other + * preferred zones. + * @param zones zones or {@code null} for none + */ + public DistributionPolicy setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public DistributionPolicy set(String fieldName, Object value) { + return (DistributionPolicy) super.set(fieldName, value); + } + + @Override + public DistributionPolicy clone() { + return (DistributionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java new file mode 100644 index 00000000000..3770492c7ae --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.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; + +/** + * Model definition for DistributionPolicyZoneConfiguration. + * + *

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 DistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The URL of thezone. The zone must exist in the region where the managed instance group is + * located. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The URL of thezone. The zone must exist in the region where the managed instance group is + * located. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The URL of thezone. The zone must exist in the region where the managed instance group is + * located. + * @param zone zone or {@code null} for none + */ + public DistributionPolicyZoneConfiguration setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public DistributionPolicyZoneConfiguration set(String fieldName, Object value) { + return (DistributionPolicyZoneConfiguration) super.set(fieldName, value); + } + + @Override + public DistributionPolicyZoneConfiguration clone() { + return (DistributionPolicyZoneConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Duration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Duration.java new file mode 100644 index 00000000000..e57d072b507 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Duration.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A Duration represents a fixed-length span of time represented as a count of seconds and fractions + * of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or + * "month". Range is approximately 10,000 years. + * + *

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 Duration extends com.google.api.client.json.GenericJson { + + /** + * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one + * second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to + * 999,999,999 inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: + * these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 + * years + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long seconds; + + /** + * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one + * second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to + * 999,999,999 inclusive. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one + * second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to + * 999,999,999 inclusive. + * @param nanos nanos or {@code null} for none + */ + public Duration setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: + * these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 + * years + * @return value or {@code null} for none + */ + public java.lang.Long getSeconds() { + return seconds; + } + + /** + * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: + * these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 + * years + * @param seconds seconds or {@code null} for none + */ + public Duration setSeconds(java.lang.Long seconds) { + this.seconds = seconds; + return this; + } + + @Override + public Duration set(String fieldName, Object value) { + return (Duration) super.set(fieldName, value); + } + + @Override + public Duration clone() { + return (Duration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ErrorInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ErrorInfo.java new file mode 100644 index 00000000000..4c5fa2b4ad5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ErrorInfo.java @@ -0,0 +1,166 @@ +/* + * 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; + +/** + * Describes the cause of the error with structured details. + * + * Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: + * + * { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { + * "resource": "projects/123", "service": "pubsub.googleapis.com" } } + * + * This response indicates that the pubsub.googleapis.com API is not enabled. + * + * Example of an error that is returned when attempting to create a Spanner instance in a region + * that is out of stock: + * + * { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { + * "availableRegions": "us-central1,us-east2" } } + * + *

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 ErrorInfo extends com.google.api.client.json.GenericJson { + + /** + * The logical grouping to which the "reason" belongs. The error domain is typically the + * registered service name of the tool or product that generates the error. Example: + * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error + * domain must be a globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domain; + + /** + * Additional structured details about this error. + * + * Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they + * must be limited to 64 characters in length. When identifying the current value of an exceeded + * limit, the units should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": + * "100"}`, if the client exceeds the number of instances that can be created in a single (batch) + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadatas; + + /** + * The reason of the error. This is a constant value that identifies the proximate cause of the + * error. Error reasons are unique within a particular domain of errors. This should be at most 63 + * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reason; + + /** + * The logical grouping to which the "reason" belongs. The error domain is typically the + * registered service name of the tool or product that generates the error. Example: + * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error + * domain must be a globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * @return value or {@code null} for none + */ + public java.lang.String getDomain() { + return domain; + } + + /** + * The logical grouping to which the "reason" belongs. The error domain is typically the + * registered service name of the tool or product that generates the error. Example: + * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error + * domain must be a globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * @param domain domain or {@code null} for none + */ + public ErrorInfo setDomain(java.lang.String domain) { + this.domain = domain; + return this; + } + + /** + * Additional structured details about this error. + * + * Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they + * must be limited to 64 characters in length. When identifying the current value of an exceeded + * limit, the units should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": + * "100"}`, if the client exceeds the number of instances that can be created in a single (batch) + * request. + * @return value or {@code null} for none + */ + public java.util.Map getMetadatas() { + return metadatas; + } + + /** + * Additional structured details about this error. + * + * Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they + * must be limited to 64 characters in length. When identifying the current value of an exceeded + * limit, the units should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": + * "100"}`, if the client exceeds the number of instances that can be created in a single (batch) + * request. + * @param metadatas metadatas or {@code null} for none + */ + public ErrorInfo setMetadatas(java.util.Map metadatas) { + this.metadatas = metadatas; + return this; + } + + /** + * The reason of the error. This is a constant value that identifies the proximate cause of the + * error. Error reasons are unique within a particular domain of errors. This should be at most 63 + * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. + * @return value or {@code null} for none + */ + public java.lang.String getReason() { + return reason; + } + + /** + * The reason of the error. This is a constant value that identifies the proximate cause of the + * error. Error reasons are unique within a particular domain of errors. This should be at most 63 + * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. + * @param reason reason or {@code null} for none + */ + public ErrorInfo setReason(java.lang.String reason) { + this.reason = reason; + return this; + } + + @Override + public ErrorInfo set(String fieldName, Object value) { + return (ErrorInfo) super.set(fieldName, value); + } + + @Override + public ErrorInfo clone() { + return (ErrorInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoute.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoute.java new file mode 100644 index 00000000000..2584082bc7c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoute.java @@ -0,0 +1,171 @@ +/* + * 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 ExchangedPeeringRoute. + * + *

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 ExchangedPeeringRoute extends com.google.api.client.json.GenericJson { + + /** + * The destination range of the route. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destRange; + + /** + * True if the peering route has been imported from a peer. The actual import happens if the field + * networkPeering.importCustomRoutes is true for this network, and + * networkPeering.exportCustomRoutes is true for the peer network, and the import does not result + * in a route conflict. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean imported; + + /** + * The region of peering route next hop, only applies to dynamic routes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopRegion; + + /** + * The priority of the peering route. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long priority; + + /** + * The type of the peering route. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The destination range of the route. + * @return value or {@code null} for none + */ + public java.lang.String getDestRange() { + return destRange; + } + + /** + * The destination range of the route. + * @param destRange destRange or {@code null} for none + */ + public ExchangedPeeringRoute setDestRange(java.lang.String destRange) { + this.destRange = destRange; + return this; + } + + /** + * True if the peering route has been imported from a peer. The actual import happens if the field + * networkPeering.importCustomRoutes is true for this network, and + * networkPeering.exportCustomRoutes is true for the peer network, and the import does not result + * in a route conflict. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImported() { + return imported; + } + + /** + * True if the peering route has been imported from a peer. The actual import happens if the field + * networkPeering.importCustomRoutes is true for this network, and + * networkPeering.exportCustomRoutes is true for the peer network, and the import does not result + * in a route conflict. + * @param imported imported or {@code null} for none + */ + public ExchangedPeeringRoute setImported(java.lang.Boolean imported) { + this.imported = imported; + return this; + } + + /** + * The region of peering route next hop, only applies to dynamic routes. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopRegion() { + return nextHopRegion; + } + + /** + * The region of peering route next hop, only applies to dynamic routes. + * @param nextHopRegion nextHopRegion or {@code null} for none + */ + public ExchangedPeeringRoute setNextHopRegion(java.lang.String nextHopRegion) { + this.nextHopRegion = nextHopRegion; + return this; + } + + /** + * The priority of the peering route. + * @return value or {@code null} for none + */ + public java.lang.Long getPriority() { + return priority; + } + + /** + * The priority of the peering route. + * @param priority priority or {@code null} for none + */ + public ExchangedPeeringRoute setPriority(java.lang.Long priority) { + this.priority = priority; + return this; + } + + /** + * The type of the peering route. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of the peering route. + * @param type type or {@code null} for none + */ + public ExchangedPeeringRoute setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public ExchangedPeeringRoute set(String fieldName, Object value) { + return (ExchangedPeeringRoute) super.set(fieldName, value); + } + + @Override + public ExchangedPeeringRoute clone() { + return (ExchangedPeeringRoute) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java new file mode 100644 index 00000000000..b9a3d24797b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -0,0 +1,386 @@ +/* + * 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 ExchangedPeeringRoutesList. + * + *

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 ExchangedPeeringRoutesList extends com.google.api.client.json.GenericJson { + + /** + * [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 ExchangedPeeringRoute 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 ExchangedPeeringRoute 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(ExchangedPeeringRoute.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for + * exchanged peering routes lists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 ExchangedPeeringRoutesList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ExchangedPeeringRoute resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of ExchangedPeeringRoute resources. + * @param items items or {@code null} for none + */ + public ExchangedPeeringRoutesList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for + * exchanged peering routes lists. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for + * exchanged peering routes lists. + * @param kind kind or {@code null} for none + */ + public ExchangedPeeringRoutesList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ExchangedPeeringRoutesList 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 ExchangedPeeringRoutesList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ExchangedPeeringRoutesList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ExchangedPeeringRoutesList set(String fieldName, Object value) { + return (ExchangedPeeringRoutesList) super.set(fieldName, value); + } + + @Override + public ExchangedPeeringRoutesList clone() { + return (ExchangedPeeringRoutesList) 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 ExchangedPeeringRoutesListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/Expr.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Expr.java new file mode 100644 index 00000000000..0be8ee8fd66 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Expr.java @@ -0,0 +1,172 @@ +/* + * 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 textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like + * expression language. The syntax and semantics of CEL are documented at + * https://github.com/google/cel-spec. + * + * Example (Comparison): + * + * title: "Summary size limit" description: "Determines if a summary is less than 100 chars" + * expression: "document.summary.size() < 100" + * + * Example (Equality): + * + * title: "Requestor is owner" description: "Determines if requestor is the document owner" + * expression: "document.owner == request.auth.claims.email" + * + * Example (Logic): + * + * title: "Public documents" description: "Determine whether the document should be publicly + * visible" expression: "document.type != 'private' && document.type != 'internal'" + * + * Example (Data Manipulation): + * + * title: "Notification string" description: "Create a notification string with a + * timestamp." expression: "'New message received at ' + string(document.create_time)" + * + * The exact variables and functions that may be referenced within an expression are determined by + * the service that evaluates it. See the service documentation for additional information. + * + *

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 Expr extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Textual representation of an expression in Common Expression Language syntax. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the expression. This is a longer text which describes the expression, + * e.g. when hovered over it in a UI. + * @param description description or {@code null} for none + */ + public Expr setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Textual representation of an expression in Common Expression Language syntax. + * @param expression expression or {@code null} for none + */ + public Expr setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Optional. String indicating the location of the expression for error reporting, e.g. a file + * name and a position in the file. + * @param location location or {@code null} for none + */ + public Expr setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be + * used e.g. in UIs which allow to enter the expression. + * @param title title or {@code null} for none + */ + public Expr setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public Expr set(String fieldName, Object value) { + return (Expr) super.set(fieldName, value); + } + + @Override + public Expr clone() { + return (Expr) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java new file mode 100644 index 00000000000..268e207e284 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -0,0 +1,410 @@ +/* + * 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 an external VPN gateway. + * + * External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway + * that connects to your Google Cloud VPN gateway. + * + * To create a highly available VPN from Google Cloud Platform to your VPN gateway or another cloud + * provider's VPN gateway, you must create a external VPN gateway resource with information about + * the other gateway. + * + * For more information about using external VPN gateways, see Creating an HA VPN gateway and tunnel + * pair to a peer VPN. + * + *

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 ExternalVpnGateway extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the 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; + + /** + * A list of interfaces for this external VPN gateway. + * + * If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at + * most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS + * virtual private gateway, four interfaces should be provided for an external VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interfaces; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExternalVpnGatewayParams params; + + /** + * Indicates the user-supplied redundancy type of this external VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redundancyType; + + /** + * 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] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public ExternalVpnGateway 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 ExternalVpnGateway setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * A list of interfaces for this external VPN gateway. + * + * If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at + * most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS + * virtual private gateway, four interfaces should be provided for an external VPN gateway. + * @return value or {@code null} for none + */ + public java.util.List getInterfaces() { + return interfaces; + } + + /** + * A list of interfaces for this external VPN gateway. + * + * If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at + * most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS + * virtual private gateway, four interfaces should be provided for an external VPN gateway. + * @param interfaces interfaces or {@code null} for none + */ + public ExternalVpnGateway setInterfaces(java.util.List interfaces) { + this.interfaces = interfaces; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. + * @param kind kind or {@code null} for none + */ + public ExternalVpnGateway setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public ExternalVpnGateway setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ExternalVpnGateway encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public ExternalVpnGateway setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 ExternalVpnGateway setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public ExternalVpnGatewayParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public ExternalVpnGateway setParams(ExternalVpnGatewayParams params) { + this.params = params; + return this; + } + + /** + * Indicates the user-supplied redundancy type of this external VPN gateway. + * @return value or {@code null} for none + */ + public java.lang.String getRedundancyType() { + return redundancyType; + } + + /** + * Indicates the user-supplied redundancy type of this external VPN gateway. + * @param redundancyType redundancyType or {@code null} for none + */ + public ExternalVpnGateway setRedundancyType(java.lang.String redundancyType) { + this.redundancyType = redundancyType; + 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 ExternalVpnGateway setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public ExternalVpnGateway set(String fieldName, Object value) { + return (ExternalVpnGateway) super.set(fieldName, value); + } + + @Override + public ExternalVpnGateway clone() { + return (ExternalVpnGateway) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayInterface.java new file mode 100644 index 00000000000..2c8b6f4614f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayInterface.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The interface for the external VPN gateway. + * + *

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 ExternalVpnGatewayInterface extends com.google.api.client.json.GenericJson { + + /** + * The numeric ID of this interface. The allowed input values for this id for different redundancy + * types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - + * TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** + * IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP + * address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it + * cannot be an IP address from Google Compute Engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from + * your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address + * from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format + * described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format + * (e.g. 2001:db8::2d9:51:0:0). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * The numeric ID of this interface. The allowed input values for this id for different redundancy + * types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - + * TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + * @return value or {@code null} for none + */ + public java.lang.Long getId() { + return id; + } + + /** + * The numeric ID of this interface. The allowed input values for this id for different redundancy + * types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - + * TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + * @param id id or {@code null} for none + */ + public ExternalVpnGatewayInterface setId(java.lang.Long id) { + this.id = id; + return this; + } + + /** + * IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP + * address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it + * cannot be an IP address from Google Compute Engine. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP + * address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it + * cannot be an IP address from Google Compute Engine. + * @param ipAddress ipAddress or {@code null} for none + */ + public ExternalVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from + * your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address + * from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format + * described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format + * (e.g. 2001:db8::2d9:51:0:0). + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from + * your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address + * from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format + * described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format + * (e.g. 2001:db8::2d9:51:0:0). + * @param ipv6Address ipv6Address or {@code null} for none + */ + public ExternalVpnGatewayInterface setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + @Override + public ExternalVpnGatewayInterface set(String fieldName, Object value) { + return (ExternalVpnGatewayInterface) super.set(fieldName, value); + } + + @Override + public ExternalVpnGatewayInterface clone() { + return (ExternalVpnGatewayInterface) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayList.java new file mode 100644 index 00000000000..da653b0368d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayList.java @@ -0,0 +1,407 @@ +/* + * 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 the list request, and contains a list of externalVpnGateways. + * + *

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 ExternalVpnGatewayList extends com.google.api.client.json.GenericJson { + + /** + * 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 ExternalVpnGateway 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 ExternalVpnGateway 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(ExternalVpnGateway.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * externalVpnGateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * 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 getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public ExternalVpnGatewayList 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 ExternalVpnGatewayList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ExternalVpnGateway resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of ExternalVpnGateway resources. + * @param items items or {@code null} for none + */ + public ExternalVpnGatewayList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * externalVpnGateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * externalVpnGateways. + * @param kind kind or {@code null} for none + */ + public ExternalVpnGatewayList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ExternalVpnGatewayList 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 ExternalVpnGatewayList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ExternalVpnGatewayList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ExternalVpnGatewayList set(String fieldName, Object value) { + return (ExternalVpnGatewayList) super.set(fieldName, value); + } + + @Override + public ExternalVpnGatewayList clone() { + return (ExternalVpnGatewayList) 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 ExternalVpnGatewayListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java new file mode 100644 index 00000000000..ae9a0a6eea6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java @@ -0,0 +1,87 @@ +/* + * 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 ExternalVpnGatewayParams. + * + *

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 ExternalVpnGatewayParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public ExternalVpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public ExternalVpnGatewayParams set(String fieldName, Object value) { + return (ExternalVpnGatewayParams) super.set(fieldName, value); + } + + @Override + public ExternalVpnGatewayParams clone() { + return (ExternalVpnGatewayParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FileContentBuffer.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FileContentBuffer.java new file mode 100644 index 00000000000..b0a48184a97 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FileContentBuffer.java @@ -0,0 +1,118 @@ +/* + * 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 FileContentBuffer. + * + *

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 FileContentBuffer extends com.google.api.client.json.GenericJson { + + /** + * The raw content in the secure keys file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * The file type of source file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileType; + + /** + * The raw content in the secure keys file. + * @see #decodeContent() + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * The raw content in the secure keys file. + * @see #getContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeContent() { + return com.google.api.client.util.Base64.decodeBase64(content); + } + + /** + * The raw content in the secure keys file. + * @see #encodeContent() + * @param content content or {@code null} for none + */ + public FileContentBuffer setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * The raw content in the secure keys file. + * @see #setContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public FileContentBuffer encodeContent(byte[] content) { + this.content = com.google.api.client.util.Base64.encodeBase64URLSafeString(content); + return this; + } + + /** + * The file type of source file. + * @return value or {@code null} for none + */ + public java.lang.String getFileType() { + return fileType; + } + + /** + * The file type of source file. + * @param fileType fileType or {@code null} for none + */ + public FileContentBuffer setFileType(java.lang.String fileType) { + this.fileType = fileType; + return this; + } + + @Override + public FileContentBuffer set(String fieldName, Object value) { + return (FileContentBuffer) super.set(fieldName, value); + } + + @Override + public FileContentBuffer clone() { + return (FileContentBuffer) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Firewall.java new file mode 100644 index 00000000000..790c4fd6faa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -0,0 +1,862 @@ +/* + * 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 Firewall Rule resource. + * + * Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. For more + * information, readFirewall rules. + * + *

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 Firewall extends com.google.api.client.json.GenericJson { + + /** + * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port- + * range tuple that describes a permitted connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowed; + + static { + // hack to force ProGuard to consider Allowed 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(Allowed.class); + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port- + * range tuple that describes a denied connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List denied; + + static { + // hack to force ProGuard to consider Denied 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(Denied.class); + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * If destination ranges are specified, the firewall rule applies only to traffic that has + * destination IP address in these ranges. These ranges must be expressed inCIDR format. Both IPv4 + * and IPv6 are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destinationRanges; + + /** + * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default + * is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String direction; + + /** + * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not + * enforced and the network behaves as if it did not exist. If this is unspecified, the firewall + * rule will be enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * 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] Type of the resource. Always compute#firewall for firewall rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This field denotes the logging options for a particular firewall rule. If logging is enabled, + * logs will be exported to Cloud Logging. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallLogConfig logConfig; + + /** + * Name of the resource; provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * URL of the network resource for this firewall rule. If not specified when creating a firewall + * rule, the default network is used: + * + * global/networks/default + * + * If you choose to specify this field, you can specify the network as a full or partial URL. For + * example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - + * projects/myproject/global/networks/my-network - global/networks/default + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallParams params; + + /** + * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default + * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. + * Lower values indicate higher priority. For example, a rule with priority `0` has higher + * precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they + * have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To + * avoid conflicts with the implied rules, use a priority number less than `65535`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * [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; + + /** + * If source ranges are specified, the firewall rule applies only to traffic that has a source IP + * address in these ranges. These ranges must be expressed inCIDR format. One or both of + * sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic + * that has a source IP address within sourceRanges OR a source IP from a resource with a matching + * tag listed in thesourceTags field. The connection does not need to match both fields for the + * rule to apply. Both IPv4 and IPv6 are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceRanges; + + /** + * If source service accounts are specified, the firewall rules apply only to traffic originating + * from an instance with a service account in this list. Source service accounts cannot be used to + * control traffic to an instance's external IP address because service accounts are associated + * with an instance, not an IP address.sourceRanges can be set at the same time + * assourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP + * address within the sourceRanges OR a source IP that belongs to an instance with service account + * listed insourceServiceAccount. The connection does not need to match both fields for the + * firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or + * targetTags. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceServiceAccounts; + + /** + * If source tags are specified, the firewall rule applies only to traffic with source IPs that + * match the primary network interfaces of VM instances that have the tag and are in the same VPC + * network. Source tags cannot be used to control traffic to an instance's external IP address, it + * only applies to traffic between instances in the same virtual network. Because tags are + * associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be + * set. If both fields are set, the firewall applies to traffic that has a source IP address + * within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags + * field. The connection does not need to match both fields for the firewall to apply. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceTags; + + /** + * A list of service accounts indicating sets of instances located in the network that may make + * network connections as specified inallowed[].targetServiceAccounts cannot be used at the same + * time astargetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, + * the firewall rule applies to all instances on the specified network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetServiceAccounts; + + /** + * A list of tags that controls which instances the firewall rule applies to. If targetTags are + * specified, then the firewall rule applies only to instances in the VPC network that have one of + * those tags. If no targetTags are specified, the firewall rule applies to all instances on the + * specified network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetTags; + + /** + * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port- + * range tuple that describes a permitted connection. + * @return value or {@code null} for none + */ + public java.util.List getAllowed() { + return allowed; + } + + /** + * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port- + * range tuple that describes a permitted connection. + * @param allowed allowed or {@code null} for none + */ + public Firewall setAllowed(java.util.List allowed) { + this.allowed = allowed; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port- + * range tuple that describes a denied connection. + * @return value or {@code null} for none + */ + public java.util.List getDenied() { + return denied; + } + + /** + * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port- + * range tuple that describes a denied connection. + * @param denied denied or {@code null} for none + */ + public Firewall setDenied(java.util.List denied) { + this.denied = denied; + return this; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @param description description or {@code null} for none + */ + public Firewall setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * If destination ranges are specified, the firewall rule applies only to traffic that has + * destination IP address in these ranges. These ranges must be expressed inCIDR format. Both IPv4 + * and IPv6 are supported. + * @return value or {@code null} for none + */ + public java.util.List getDestinationRanges() { + return destinationRanges; + } + + /** + * If destination ranges are specified, the firewall rule applies only to traffic that has + * destination IP address in these ranges. These ranges must be expressed inCIDR format. Both IPv4 + * and IPv6 are supported. + * @param destinationRanges destinationRanges or {@code null} for none + */ + public Firewall setDestinationRanges(java.util.List destinationRanges) { + this.destinationRanges = destinationRanges; + return this; + } + + /** + * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default + * is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. + * @return value or {@code null} for none + */ + public java.lang.String getDirection() { + return direction; + } + + /** + * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default + * is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. + * @param direction direction or {@code null} for none + */ + public Firewall setDirection(java.lang.String direction) { + this.direction = direction; + return this; + } + + /** + * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not + * enforced and the network behaves as if it did not exist. If this is unspecified, the firewall + * rule will be enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not + * enforced and the network behaves as if it did not exist. If this is unspecified, the firewall + * rule will be enabled. + * @param disabled disabled or {@code null} for none + */ + public Firewall setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + 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 Firewall setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * @param kind kind or {@code null} for none + */ + public Firewall setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This field denotes the logging options for a particular firewall rule. If logging is enabled, + * logs will be exported to Cloud Logging. + * @return value or {@code null} for none + */ + public FirewallLogConfig getLogConfig() { + return logConfig; + } + + /** + * This field denotes the logging options for a particular firewall rule. If logging is enabled, + * logs will be exported to Cloud Logging. + * @param logConfig logConfig or {@code null} for none + */ + public Firewall setLogConfig(FirewallLogConfig logConfig) { + this.logConfig = logConfig; + return this; + } + + /** + * Name of the resource; provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource; provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @param name name or {@code null} for none + */ + public Firewall setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * URL of the network resource for this firewall rule. If not specified when creating a firewall + * rule, the default network is used: + * + * global/networks/default + * + * If you choose to specify this field, you can specify the network as a full or partial URL. For + * example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - + * projects/myproject/global/networks/my-network - global/networks/default + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * URL of the network resource for this firewall rule. If not specified when creating a firewall + * rule, the default network is used: + * + * global/networks/default + * + * If you choose to specify this field, you can specify the network as a full or partial URL. For + * example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - + * projects/myproject/global/networks/my-network - global/networks/default + * @param network network or {@code null} for none + */ + public Firewall setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public FirewallParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Firewall setParams(FirewallParams params) { + this.params = params; + return this; + } + + /** + * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default + * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. + * Lower values indicate higher priority. For example, a rule with priority `0` has higher + * precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they + * have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To + * avoid conflicts with the implied rules, use a priority number less than `65535`. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default + * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. + * Lower values indicate higher priority. For example, a rule with priority `0` has higher + * precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they + * have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To + * avoid conflicts with the implied rules, use a priority number less than `65535`. + * @param priority priority or {@code null} for none + */ + public Firewall setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Firewall setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * If source ranges are specified, the firewall rule applies only to traffic that has a source IP + * address in these ranges. These ranges must be expressed inCIDR format. One or both of + * sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic + * that has a source IP address within sourceRanges OR a source IP from a resource with a matching + * tag listed in thesourceTags field. The connection does not need to match both fields for the + * rule to apply. Both IPv4 and IPv6 are supported. + * @return value or {@code null} for none + */ + public java.util.List getSourceRanges() { + return sourceRanges; + } + + /** + * If source ranges are specified, the firewall rule applies only to traffic that has a source IP + * address in these ranges. These ranges must be expressed inCIDR format. One or both of + * sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic + * that has a source IP address within sourceRanges OR a source IP from a resource with a matching + * tag listed in thesourceTags field. The connection does not need to match both fields for the + * rule to apply. Both IPv4 and IPv6 are supported. + * @param sourceRanges sourceRanges or {@code null} for none + */ + public Firewall setSourceRanges(java.util.List sourceRanges) { + this.sourceRanges = sourceRanges; + return this; + } + + /** + * If source service accounts are specified, the firewall rules apply only to traffic originating + * from an instance with a service account in this list. Source service accounts cannot be used to + * control traffic to an instance's external IP address because service accounts are associated + * with an instance, not an IP address.sourceRanges can be set at the same time + * assourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP + * address within the sourceRanges OR a source IP that belongs to an instance with service account + * listed insourceServiceAccount. The connection does not need to match both fields for the + * firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or + * targetTags. + * @return value or {@code null} for none + */ + public java.util.List getSourceServiceAccounts() { + return sourceServiceAccounts; + } + + /** + * If source service accounts are specified, the firewall rules apply only to traffic originating + * from an instance with a service account in this list. Source service accounts cannot be used to + * control traffic to an instance's external IP address because service accounts are associated + * with an instance, not an IP address.sourceRanges can be set at the same time + * assourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP + * address within the sourceRanges OR a source IP that belongs to an instance with service account + * listed insourceServiceAccount. The connection does not need to match both fields for the + * firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or + * targetTags. + * @param sourceServiceAccounts sourceServiceAccounts or {@code null} for none + */ + public Firewall setSourceServiceAccounts(java.util.List sourceServiceAccounts) { + this.sourceServiceAccounts = sourceServiceAccounts; + return this; + } + + /** + * If source tags are specified, the firewall rule applies only to traffic with source IPs that + * match the primary network interfaces of VM instances that have the tag and are in the same VPC + * network. Source tags cannot be used to control traffic to an instance's external IP address, it + * only applies to traffic between instances in the same virtual network. Because tags are + * associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be + * set. If both fields are set, the firewall applies to traffic that has a source IP address + * within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags + * field. The connection does not need to match both fields for the firewall to apply. + * @return value or {@code null} for none + */ + public java.util.List getSourceTags() { + return sourceTags; + } + + /** + * If source tags are specified, the firewall rule applies only to traffic with source IPs that + * match the primary network interfaces of VM instances that have the tag and are in the same VPC + * network. Source tags cannot be used to control traffic to an instance's external IP address, it + * only applies to traffic between instances in the same virtual network. Because tags are + * associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be + * set. If both fields are set, the firewall applies to traffic that has a source IP address + * within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags + * field. The connection does not need to match both fields for the firewall to apply. + * @param sourceTags sourceTags or {@code null} for none + */ + public Firewall setSourceTags(java.util.List sourceTags) { + this.sourceTags = sourceTags; + return this; + } + + /** + * A list of service accounts indicating sets of instances located in the network that may make + * network connections as specified inallowed[].targetServiceAccounts cannot be used at the same + * time astargetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, + * the firewall rule applies to all instances on the specified network. + * @return value or {@code null} for none + */ + public java.util.List getTargetServiceAccounts() { + return targetServiceAccounts; + } + + /** + * A list of service accounts indicating sets of instances located in the network that may make + * network connections as specified inallowed[].targetServiceAccounts cannot be used at the same + * time astargetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, + * the firewall rule applies to all instances on the specified network. + * @param targetServiceAccounts targetServiceAccounts or {@code null} for none + */ + public Firewall setTargetServiceAccounts(java.util.List targetServiceAccounts) { + this.targetServiceAccounts = targetServiceAccounts; + return this; + } + + /** + * A list of tags that controls which instances the firewall rule applies to. If targetTags are + * specified, then the firewall rule applies only to instances in the VPC network that have one of + * those tags. If no targetTags are specified, the firewall rule applies to all instances on the + * specified network. + * @return value or {@code null} for none + */ + public java.util.List getTargetTags() { + return targetTags; + } + + /** + * A list of tags that controls which instances the firewall rule applies to. If targetTags are + * specified, then the firewall rule applies only to instances in the VPC network that have one of + * those tags. If no targetTags are specified, the firewall rule applies to all instances on the + * specified network. + * @param targetTags targetTags or {@code null} for none + */ + public Firewall setTargetTags(java.util.List targetTags) { + this.targetTags = targetTags; + return this; + } + + @Override + public Firewall set(String fieldName, Object value) { + return (Firewall) super.set(fieldName, value); + } + + @Override + public Firewall clone() { + return (Firewall) super.clone(); + } + + /** + * Model definition for FirewallAllowed. + */ + public static final class Allowed extends com.google.api.client.json.GenericJson { + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings (tcp, + * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPProtocol") + private java.lang.String iPProtocol; + + /** + * An optional list of ports to which this rule applies. This field is only applicable for the UDP + * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ports; + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings (tcp, + * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. + * @return value or {@code null} for none + */ + public java.lang.String getIPProtocol() { + return iPProtocol; + } + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings (tcp, + * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. + * @param iPProtocol iPProtocol or {@code null} for none + */ + public Allowed setIPProtocol(java.lang.String iPProtocol) { + this.iPProtocol = iPProtocol; + return this; + } + + /** + * An optional list of ports to which this rule applies. This field is only applicable for the UDP + * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + * @return value or {@code null} for none + */ + public java.util.List getPorts() { + return ports; + } + + /** + * An optional list of ports to which this rule applies. This field is only applicable for the UDP + * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + * @param ports ports or {@code null} for none + */ + public Allowed setPorts(java.util.List ports) { + this.ports = ports; + return this; + } + + @Override + public Allowed set(String fieldName, Object value) { + return (Allowed) super.set(fieldName, value); + } + + @Override + public Allowed clone() { + return (Allowed) super.clone(); + } + + } + + /** + * Model definition for FirewallDenied. + */ + public static final class Denied extends com.google.api.client.json.GenericJson { + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings (tcp, + * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPProtocol") + private java.lang.String iPProtocol; + + /** + * An optional list of ports to which this rule applies. This field is only applicable for the UDP + * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ports; + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings (tcp, + * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. + * @return value or {@code null} for none + */ + public java.lang.String getIPProtocol() { + return iPProtocol; + } + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings (tcp, + * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. + * @param iPProtocol iPProtocol or {@code null} for none + */ + public Denied setIPProtocol(java.lang.String iPProtocol) { + this.iPProtocol = iPProtocol; + return this; + } + + /** + * An optional list of ports to which this rule applies. This field is only applicable for the UDP + * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + * @return value or {@code null} for none + */ + public java.util.List getPorts() { + return ports; + } + + /** + * An optional list of ports to which this rule applies. This field is only applicable for the UDP + * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. + * @param ports ports or {@code null} for none + */ + public Denied setPorts(java.util.List ports) { + this.ports = ports; + return this; + } + + @Override + public Denied set(String fieldName, Object value) { + return (Denied) super.set(fieldName, value); + } + + @Override + public Denied clone() { + return (Denied) super.clone(); + } + + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallList.java new file mode 100644 index 00000000000..975175a40e3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of firewalls. + * + *

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 FirewallList extends com.google.api.client.json.GenericJson { + + /** + * [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 Firewall 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 Firewall 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(Firewall.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of + * firewalls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 FirewallList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Firewall resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Firewall resources. + * @param items items or {@code null} for none + */ + public FirewallList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of + * firewalls. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of + * firewalls. + * @param kind kind or {@code null} for none + */ + public FirewallList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FirewallList 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 FirewallList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 FirewallList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FirewallList set(String fieldName, Object value) { + return (FirewallList) super.set(fieldName, value); + } + + @Override + public FirewallList clone() { + return (FirewallList) 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 FirewallListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FirewallLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallLogConfig.java new file mode 100644 index 00000000000..9f3bef37727 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallLogConfig.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The available logging options for a firewall rule. + * + *

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 FirewallLogConfig extends com.google.api.client.json.GenericJson { + + /** + * This field denotes whether to enable logging for a particular firewall rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enable; + + /** + * This field can only be specified for a particular firewall rule if logging is enabled for that + * rule. This field denotes whether to include or exclude metadata for firewall logs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metadata; + + /** + * This field denotes whether to enable logging for a particular firewall rule. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnable() { + return enable; + } + + /** + * This field denotes whether to enable logging for a particular firewall rule. + * @param enable enable or {@code null} for none + */ + public FirewallLogConfig setEnable(java.lang.Boolean enable) { + this.enable = enable; + return this; + } + + /** + * This field can only be specified for a particular firewall rule if logging is enabled for that + * rule. This field denotes whether to include or exclude metadata for firewall logs. + * @return value or {@code null} for none + */ + public java.lang.String getMetadata() { + return metadata; + } + + /** + * This field can only be specified for a particular firewall rule if logging is enabled for that + * rule. This field denotes whether to include or exclude metadata for firewall logs. + * @param metadata metadata or {@code null} for none + */ + public FirewallLogConfig setMetadata(java.lang.String metadata) { + this.metadata = metadata; + return this; + } + + @Override + public FirewallLogConfig set(String fieldName, Object value) { + return (FirewallLogConfig) super.set(fieldName, value); + } + + @Override + public FirewallLogConfig clone() { + return (FirewallLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallParams.java new file mode 100644 index 00000000000..c51a06b25be --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional firewall parameters. + * + *

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 FirewallParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public FirewallParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public FirewallParams set(String fieldName, Object value) { + return (FirewallParams) super.set(fieldName, value); + } + + @Override + public FirewallParams clone() { + return (FirewallParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java new file mode 100644 index 00000000000..3f0fd7877bd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -0,0 +1,93 @@ +/* + * 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 FirewallPoliciesListAssociationsResponse. + * + *

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 FirewallPoliciesListAssociationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of associations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List associations; + + /** + * Output only. [Output Only] Type of firewallPolicy associations. + * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A list of associations. + * @return value or {@code null} for none + */ + public java.util.List getAssociations() { + return associations; + } + + /** + * A list of associations. + * @param associations associations or {@code null} for none + */ + public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations) { + this.associations = associations; + return this; + } + + /** + * Output only. [Output Only] Type of firewallPolicy associations. + * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of firewallPolicy associations. + * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. + * @param kind kind or {@code null} for none + */ + public FirewallPoliciesListAssociationsResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public FirewallPoliciesListAssociationsResponse set(String fieldName, Object value) { + return (FirewallPoliciesListAssociationsResponse) super.set(fieldName, value); + } + + @Override + public FirewallPoliciesListAssociationsResponse clone() { + return (FirewallPoliciesListAssociationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesScopedList.java new file mode 100644 index 00000000000..f0223f7b09d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPoliciesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 FirewallPoliciesScopedList. + * + *

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 FirewallPoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of firewall policies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewallPolicies; + + /** + * Informational warning which replaces the list of firewall policies when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of firewall policies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getFirewallPolicies() { + return firewallPolicies; + } + + /** + * A list of firewall policies contained in this scope. + * @param firewallPolicies firewallPolicies or {@code null} for none + */ + public FirewallPoliciesScopedList setFirewallPolicies(java.util.List firewallPolicies) { + this.firewallPolicies = firewallPolicies; + return this; + } + + /** + * Informational warning which replaces the list of firewall policies when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of firewall policies when the list is empty. + * @param warning warning or {@code null} for none + */ + public FirewallPoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FirewallPoliciesScopedList set(String fieldName, Object value) { + return (FirewallPoliciesScopedList) super.set(fieldName, value); + } + + @Override + public FirewallPoliciesScopedList clone() { + return (FirewallPoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of firewall policies when the list is empty. + */ + 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 FirewallPoliciesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java new file mode 100644 index 00000000000..affcac8da07 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java @@ -0,0 +1,580 @@ +/* + * 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 Firewall Policy 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 FirewallPolicy extends com.google.api.client.json.GenericJson { + + /** + * A list of associations that belong to this firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List associations; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Deprecated, please use short name instead. User-provided name of the Organization firewall + * policy. The name should be unique in the organization in which the firewall policy is created. + * This field is not applicable to network firewall policies. This name must be set on creation + * and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. + * 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 displayName; + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * [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] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID + * allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * A list of packet mirroring rules that belong to this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List packetMirroringRules; + + /** + * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to + * network firewall policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or + * ULL_POLICY. + * + * Note: if not specified then VPC_POLICY will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyType; + + /** + * Output only. [Output Only] URL of the region where the regional firewall policy resides. This + * field is not applicable to global firewall policies. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy + * can not exceed a set number of tuples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ruleTupleCount; + + /** + * A list of rules that belong to this policy. There must always be a default rule (rule with + * priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a + * default rule with action "allow" will be added. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + /** + * [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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * User-provided name of the Organization firewall policy. The name should be unique in the + * organization in which the firewall policy is created. This field is not applicable to network + * firewall policies. This name must be set on creation and cannot be changed. The name must be + * 1-63 characters long, and comply with RFC1035. 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 shortName; + + /** + * A list of associations that belong to this firewall policy. + * @return value or {@code null} for none + */ + public java.util.List getAssociations() { + return associations; + } + + /** + * A list of associations that belong to this firewall policy. + * @param associations associations or {@code null} for none + */ + public FirewallPolicy setAssociations(java.util.List associations) { + this.associations = associations; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public FirewallPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Deprecated, please use short name instead. User-provided name of the Organization firewall + * policy. The name should be unique in the organization in which the firewall policy is created. + * This field is not applicable to network firewall policies. This name must be set on creation + * and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. + * 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 getDisplayName() { + return displayName; + } + + /** + * Deprecated, please use short name instead. User-provided name of the Organization firewall + * policy. The name should be unique in the organization in which the firewall policy is created. + * This field is not applicable to network firewall policies. This name must be set on creation + * and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. + * 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 displayName displayName or {@code null} for none + */ + public FirewallPolicy setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the firewall policy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the firewall policy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the firewall policy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public FirewallPolicy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the firewall policy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public FirewallPolicy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public FirewallPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies + * @param kind kind or {@code null} for none + */ + public FirewallPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID + * allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID + * allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. + * @param name name or {@code null} for none + */ + public FirewallPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A list of packet mirroring rules that belong to this policy. + * @return value or {@code null} for none + */ + public java.util.List getPacketMirroringRules() { + return packetMirroringRules; + } + + /** + * A list of packet mirroring rules that belong to this policy. + * @param packetMirroringRules packetMirroringRules or {@code null} for none + */ + public FirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { + this.packetMirroringRules = packetMirroringRules; + return this; + } + + /** + * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to + * network firewall policies. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to + * network firewall policies. + * @param parent parent or {@code null} for none + */ + public FirewallPolicy setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or + * ULL_POLICY. + * + * Note: if not specified then VPC_POLICY will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyType() { + return policyType; + } + + /** + * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or + * ULL_POLICY. + * + * Note: if not specified then VPC_POLICY will be used. + * @param policyType policyType or {@code null} for none + */ + public FirewallPolicy setPolicyType(java.lang.String policyType) { + this.policyType = policyType; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional firewall policy resides. This + * field is not applicable to global firewall policies. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional firewall policy resides. This + * field is not applicable to global firewall policies. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public FirewallPolicy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy + * can not exceed a set number of tuples. + * @return value or {@code null} for none + */ + public java.lang.Integer getRuleTupleCount() { + return ruleTupleCount; + } + + /** + * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy + * can not exceed a set number of tuples. + * @param ruleTupleCount ruleTupleCount or {@code null} for none + */ + public FirewallPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { + this.ruleTupleCount = ruleTupleCount; + return this; + } + + /** + * A list of rules that belong to this policy. There must always be a default rule (rule with + * priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a + * default rule with action "allow" will be added. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * A list of rules that belong to this policy. There must always be a default rule (rule with + * priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a + * default rule with action "allow" will be added. + * @param rules rules or {@code null} for none + */ + public FirewallPolicy setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public FirewallPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public FirewallPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * User-provided name of the Organization firewall policy. The name should be unique in the + * organization in which the firewall policy is created. This field is not applicable to network + * firewall policies. This name must be set on creation and cannot be changed. The name must be + * 1-63 characters long, and comply with RFC1035. 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 getShortName() { + return shortName; + } + + /** + * User-provided name of the Organization firewall policy. The name should be unique in the + * organization in which the firewall policy is created. This field is not applicable to network + * firewall policies. This name must be set on creation and cannot be changed. The name must be + * 1-63 characters long, and comply with RFC1035. 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 shortName shortName or {@code null} for none + */ + public FirewallPolicy setShortName(java.lang.String shortName) { + this.shortName = shortName; + return this; + } + + @Override + public FirewallPolicy set(String fieldName, Object value) { + return (FirewallPolicy) super.set(fieldName, value); + } + + @Override + public FirewallPolicy clone() { + return (FirewallPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java new file mode 100644 index 00000000000..da4f0aa51e9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -0,0 +1,201 @@ +/* + * 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 FirewallPolicyAssociation. + * + *

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 FirewallPolicyAssociation extends com.google.api.client.json.GenericJson { + + /** + * The target that the firewall policy is attached to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachmentTarget; + + /** + * [Output Only] Deprecated, please use short name instead. The display name of the firewall + * policy of the association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. [Output Only] The firewall policy ID of the association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicyId; + + /** + * The name for an association. + * The value may be {@code null}. + */ + @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}. + */ + @com.google.api.client.util.Key + private java.lang.String shortName; + + /** + * The target that the firewall policy is attached to. + * @return value or {@code null} for none + */ + public java.lang.String getAttachmentTarget() { + return attachmentTarget; + } + + /** + * The target that the firewall policy is attached to. + * @param attachmentTarget attachmentTarget or {@code null} for none + */ + public FirewallPolicyAssociation setAttachmentTarget(java.lang.String attachmentTarget) { + this.attachmentTarget = attachmentTarget; + return this; + } + + /** + * [Output Only] Deprecated, please use short name instead. The display name of the firewall + * policy of the association. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * [Output Only] Deprecated, please use short name instead. The display name of the firewall + * policy of the association. + * @param displayName displayName or {@code null} for none + */ + public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. [Output Only] The firewall policy ID of the association. + * @return value or {@code null} for none + */ + public java.lang.String getFirewallPolicyId() { + return firewallPolicyId; + } + + /** + * Output only. [Output Only] The firewall policy ID of the association. + * @param firewallPolicyId firewallPolicyId or {@code null} for none + */ + public FirewallPolicyAssociation setFirewallPolicyId(java.lang.String firewallPolicyId) { + this.firewallPolicyId = firewallPolicyId; + return this; + } + + /** + * The name for an association. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name for an association. + * @param name name or {@code null} for none + */ + public FirewallPolicyAssociation setName(java.lang.String name) { + this.name = 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 + */ + public java.lang.String getShortName() { + return shortName; + } + + /** + * Output only. [Output Only] The short name of the firewall policy of the association. + * @param shortName shortName or {@code null} for none + */ + public FirewallPolicyAssociation setShortName(java.lang.String shortName) { + this.shortName = shortName; + return this; + } + + @Override + public FirewallPolicyAssociation set(String fieldName, Object value) { + return (FirewallPolicyAssociation) super.set(fieldName, value); + } + + @Override + public FirewallPolicyAssociation clone() { + return (FirewallPolicyAssociation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java new file mode 100644 index 00000000000..0774359e061 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -0,0 +1,362 @@ +/* + * 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 FirewallPolicyList. + * + *

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 FirewallPolicyList extends com.google.api.client.json.GenericJson { + + /** + * [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 FirewallPolicy 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 FirewallPolicy 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(FirewallPolicy.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 FirewallPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of FirewallPolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of FirewallPolicy resources. + * @param items items or {@code null} for none + */ + public FirewallPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies + * @param kind kind or {@code null} for none + */ + public FirewallPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FirewallPolicyList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + 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 FirewallPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FirewallPolicyList set(String fieldName, Object value) { + return (FirewallPolicyList) super.set(fieldName, value); + } + + @Override + public FirewallPolicyList clone() { + return (FirewallPolicyList) 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 FirewallPolicyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java new file mode 100644 index 00000000000..e692265e7d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -0,0 +1,541 @@ +/* + * 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 rule that describes one or more match conditions along with the action to be taken + * when traffic matches this condition (allow or deny). + * + *

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 FirewallPolicyRule extends com.google.api.client.json.GenericJson { + + /** + * The Action to perform when the client connection triggers the rule. Valid actions for firewall + * rules are: "allow", "deny", "apply_security_profile_group" and "goto_next" ( + * "apply_security_profile_group" can be specified only for global network firewall policies or + * hierarchical firewall policies). Valid actions for packet mirroring rules are: "mirror", + * "do_not_mirror" and "goto_next". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * An optional description for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The direction in which this rule applies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String direction; + + /** + * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy + * rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the + * firewall policy rule will be enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be + * exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery + * or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableLogging; + + /** + * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall + * rules andcompute#packetMirroringRule for packet mirroring rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A match condition that incoming traffic is evaluated against. If it evaluates to true, the + * corresponding 'action' is enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallPolicyRuleMatcher match; + + /** + * An integer indicating the priority of a rule in the list. The priority must be a positive value + * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the + * highest priority and 2147483647 is the lowest priority. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * An optional name for the rule. This field is not a unique identifier and can be updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ruleName; + + /** + * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ruleTupleCount; + + /** + * A fully-qualified URL of a SecurityProfileGroup resource instance. Example: https://networksecu + * rity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my- + * security-profile-group Must be specified if action is one of 'apply_security_profile_group' or + * 'mirror'. Cannot be specified for other actions. Can be specified only for global network + * firewall policies or hierarchical firewall policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityProfileGroup; + + /** + * A list of forwarding rules to which this rule applies. This field allows you to control which + * load balancers get this rule. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule + * - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forward + * ingRule - projects/project/global/ forwardingRules/forwardingRule - + * projects/project/regions/region/forwardingRules/ forwardingRule + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetForwardingRules; + + /** + * A list of network resource URLs to which this rule applies. This field allows you to control + * which network's VMs get this rule. If this field is left blank, all VMs within the + * organization will receive the rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetResources; + + /** + * A list of secure tags that controls which instances the firewall rule applies to. If + * targetSecureTag are specified, then the firewall rule applies only to instances in the VPC + * network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in + * INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same + * time astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag are + * specified, the firewall rule applies to all instances on the specified network. Maximum number + * of target label tags allowed is 256. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetSecureTags; + + /** + * A list of service accounts indicating the sets of instances that are applied with this rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetServiceAccounts; + + /** + * Target types of the firewall policy rule. Default value is INSTANCES. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetType; + + /** + * Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = + * 'apply_security_profile_group' and cannot be set for other actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean tlsInspect; + + /** + * The Action to perform when the client connection triggers the rule. Valid actions for firewall + * rules are: "allow", "deny", "apply_security_profile_group" and "goto_next" ( + * "apply_security_profile_group" can be specified only for global network firewall policies or + * hierarchical firewall policies). Valid actions for packet mirroring rules are: "mirror", + * "do_not_mirror" and "goto_next". + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * The Action to perform when the client connection triggers the rule. Valid actions for firewall + * rules are: "allow", "deny", "apply_security_profile_group" and "goto_next" ( + * "apply_security_profile_group" can be specified only for global network firewall policies or + * hierarchical firewall policies). Valid actions for packet mirroring rules are: "mirror", + * "do_not_mirror" and "goto_next". + * @param action action or {@code null} for none + */ + public FirewallPolicyRule setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * An optional description for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description for this resource. + * @param description description or {@code null} for none + */ + public FirewallPolicyRule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The direction in which this rule applies. + * @return value or {@code null} for none + */ + public java.lang.String getDirection() { + return direction; + } + + /** + * The direction in which this rule applies. + * @param direction direction or {@code null} for none + */ + public FirewallPolicyRule setDirection(java.lang.String direction) { + this.direction = direction; + return this; + } + + /** + * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy + * rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the + * firewall policy rule will be enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy + * rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the + * firewall policy rule will be enabled. + * @param disabled disabled or {@code null} for none + */ + public FirewallPolicyRule setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be + * exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery + * or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableLogging() { + return enableLogging; + } + + /** + * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be + * exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery + * or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. + * @param enableLogging enableLogging or {@code null} for none + */ + public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { + this.enableLogging = enableLogging; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall + * rules andcompute#packetMirroringRule for packet mirroring rules. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall + * rules andcompute#packetMirroringRule for packet mirroring rules. + * @param kind kind or {@code null} for none + */ + public FirewallPolicyRule setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A match condition that incoming traffic is evaluated against. If it evaluates to true, the + * corresponding 'action' is enforced. + * @return value or {@code null} for none + */ + public FirewallPolicyRuleMatcher getMatch() { + return match; + } + + /** + * A match condition that incoming traffic is evaluated against. If it evaluates to true, the + * corresponding 'action' is enforced. + * @param match match or {@code null} for none + */ + public FirewallPolicyRule setMatch(FirewallPolicyRuleMatcher match) { + this.match = match; + return this; + } + + /** + * An integer indicating the priority of a rule in the list. The priority must be a positive value + * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the + * highest priority and 2147483647 is the lowest priority. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * An integer indicating the priority of a rule in the list. The priority must be a positive value + * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the + * highest priority and 2147483647 is the lowest priority. + * @param priority priority or {@code null} for none + */ + public FirewallPolicyRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * An optional name for the rule. This field is not a unique identifier and can be updated. + * @return value or {@code null} for none + */ + public java.lang.String getRuleName() { + return ruleName; + } + + /** + * An optional name for the rule. This field is not a unique identifier and can be updated. + * @param ruleName ruleName or {@code null} for none + */ + public FirewallPolicyRule setRuleName(java.lang.String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * @return value or {@code null} for none + */ + public java.lang.Integer getRuleTupleCount() { + return ruleTupleCount; + } + + /** + * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * @param ruleTupleCount ruleTupleCount or {@code null} for none + */ + public FirewallPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { + this.ruleTupleCount = ruleTupleCount; + return this; + } + + /** + * A fully-qualified URL of a SecurityProfileGroup resource instance. Example: https://networksecu + * rity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my- + * security-profile-group Must be specified if action is one of 'apply_security_profile_group' or + * 'mirror'. Cannot be specified for other actions. Can be specified only for global network + * firewall policies or hierarchical firewall policies. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityProfileGroup() { + return securityProfileGroup; + } + + /** + * A fully-qualified URL of a SecurityProfileGroup resource instance. Example: https://networksecu + * rity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my- + * security-profile-group Must be specified if action is one of 'apply_security_profile_group' or + * 'mirror'. Cannot be specified for other actions. Can be specified only for global network + * firewall policies or hierarchical firewall policies. + * @param securityProfileGroup securityProfileGroup or {@code null} for none + */ + public FirewallPolicyRule setSecurityProfileGroup(java.lang.String securityProfileGroup) { + this.securityProfileGroup = securityProfileGroup; + return this; + } + + /** + * A list of forwarding rules to which this rule applies. This field allows you to control which + * load balancers get this rule. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule + * - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forward + * ingRule - projects/project/global/ forwardingRules/forwardingRule - + * projects/project/regions/region/forwardingRules/ forwardingRule + * @return value or {@code null} for none + */ + public java.util.List getTargetForwardingRules() { + return targetForwardingRules; + } + + /** + * A list of forwarding rules to which this rule applies. This field allows you to control which + * load balancers get this rule. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule + * - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forward + * ingRule - projects/project/global/ forwardingRules/forwardingRule - + * projects/project/regions/region/forwardingRules/ forwardingRule + * @param targetForwardingRules targetForwardingRules or {@code null} for none + */ + public FirewallPolicyRule setTargetForwardingRules(java.util.List targetForwardingRules) { + this.targetForwardingRules = targetForwardingRules; + return this; + } + + /** + * A list of network resource URLs to which this rule applies. This field allows you to control + * which network's VMs get this rule. If this field is left blank, all VMs within the + * organization will receive the rule. + * @return value or {@code null} for none + */ + public java.util.List getTargetResources() { + return targetResources; + } + + /** + * A list of network resource URLs to which this rule applies. This field allows you to control + * which network's VMs get this rule. If this field is left blank, all VMs within the + * organization will receive the rule. + * @param targetResources targetResources or {@code null} for none + */ + public FirewallPolicyRule setTargetResources(java.util.List targetResources) { + this.targetResources = targetResources; + return this; + } + + /** + * A list of secure tags that controls which instances the firewall rule applies to. If + * targetSecureTag are specified, then the firewall rule applies only to instances in the VPC + * network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in + * INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same + * time astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag are + * specified, the firewall rule applies to all instances on the specified network. Maximum number + * of target label tags allowed is 256. + * @return value or {@code null} for none + */ + public java.util.List getTargetSecureTags() { + return targetSecureTags; + } + + /** + * A list of secure tags that controls which instances the firewall rule applies to. If + * targetSecureTag are specified, then the firewall rule applies only to instances in the VPC + * network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in + * INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same + * time astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag are + * specified, the firewall rule applies to all instances on the specified network. Maximum number + * of target label tags allowed is 256. + * @param targetSecureTags targetSecureTags or {@code null} for none + */ + public FirewallPolicyRule setTargetSecureTags(java.util.List targetSecureTags) { + this.targetSecureTags = targetSecureTags; + return this; + } + + /** + * A list of service accounts indicating the sets of instances that are applied with this rule. + * @return value or {@code null} for none + */ + public java.util.List getTargetServiceAccounts() { + return targetServiceAccounts; + } + + /** + * A list of service accounts indicating the sets of instances that are applied with this rule. + * @param targetServiceAccounts targetServiceAccounts or {@code null} for none + */ + public FirewallPolicyRule setTargetServiceAccounts(java.util.List targetServiceAccounts) { + this.targetServiceAccounts = targetServiceAccounts; + return this; + } + + /** + * Target types of the firewall policy rule. Default value is INSTANCES. + * @return value or {@code null} for none + */ + public java.lang.String getTargetType() { + return targetType; + } + + /** + * Target types of the firewall policy rule. Default value is INSTANCES. + * @param targetType targetType or {@code null} for none + */ + public FirewallPolicyRule setTargetType(java.lang.String targetType) { + this.targetType = targetType; + return this; + } + + /** + * Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = + * 'apply_security_profile_group' and cannot be set for other actions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTlsInspect() { + return tlsInspect; + } + + /** + * Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = + * 'apply_security_profile_group' and cannot be set for other actions. + * @param tlsInspect tlsInspect or {@code null} for none + */ + public FirewallPolicyRule setTlsInspect(java.lang.Boolean tlsInspect) { + this.tlsInspect = tlsInspect; + return this; + } + + @Override + public FirewallPolicyRule set(String fieldName, Object value) { + return (FirewallPolicyRule) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRule clone() { + return (FirewallPolicyRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java new file mode 100644 index 00000000000..2a23b7aa765 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -0,0 +1,499 @@ +/* + * 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 match condition that incoming traffic is evaluated against. Exactly one field must + * be specified. + * + *

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 FirewallPolicyRuleMatcher extends com.google.api.client.json.GenericJson { + + /** + * Address groups which should be matched against the traffic destination. Maximum number of + * destination address groups is 10. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destAddressGroups; + + /** + * Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum + * number of destination fqdn allowed is 100. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destFqdns; + + /** + * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destIpRanges; + + /** + * Network context of the traffic destination. Allowed values are: - UNSPECIFIED + * - INTERNET - NON_INTERNET + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destNetworkContext; + + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - + * INTERNET - NON_INTERNET + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destNetworkType; + + /** + * Region codes whose IP addresses will be used to match for destination of traffic. Should be + * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" + * Maximum number of dest region codes allowed is 5000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destRegionCodes; + + /** + * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against + * traffic destination. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destThreatIntelligences; + + /** + * Pairs of IP protocols and ports that the rule should match. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List layer4Configs; + + /** + * Address groups which should be matched against the traffic source. Maximum number of source + * address groups is 10. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcAddressGroups; + + /** + * Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum + * number of source fqdn allowed is 100. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcFqdns; + + /** + * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcIpRanges; + + /** + * Network context of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String srcNetworkContext; + + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String srcNetworkType; + + /** + * Networks of the traffic source. It can be either a full or partial url. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcNetworks; + + /** + * Region codes whose IP addresses will be used to match for source of traffic. Should be + * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" + * Maximum number of source region codes allowed is 5000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcRegionCodes; + + /** + * List of secure tag values, which should be matched at the source of the traffic. For INGRESS + * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be + * ignored. Maximum number of source tag values allowed is 256. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcSecureTags; + + /** + * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against + * traffic source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcThreatIntelligences; + + /** + * Address groups which should be matched against the traffic destination. Maximum number of + * destination address groups is 10. + * @return value or {@code null} for none + */ + public java.util.List getDestAddressGroups() { + return destAddressGroups; + } + + /** + * Address groups which should be matched against the traffic destination. Maximum number of + * destination address groups is 10. + * @param destAddressGroups destAddressGroups or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestAddressGroups(java.util.List destAddressGroups) { + this.destAddressGroups = destAddressGroups; + return this; + } + + /** + * Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum + * number of destination fqdn allowed is 100. + * @return value or {@code null} for none + */ + public java.util.List getDestFqdns() { + return destFqdns; + } + + /** + * Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum + * number of destination fqdn allowed is 100. + * @param destFqdns destFqdns or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestFqdns(java.util.List destFqdns) { + this.destFqdns = destFqdns; + return this; + } + + /** + * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. + * @return value or {@code null} for none + */ + public java.util.List getDestIpRanges() { + return destIpRanges; + } + + /** + * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. + * @param destIpRanges destIpRanges or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List destIpRanges) { + this.destIpRanges = destIpRanges; + return this; + } + + /** + * Network context of the traffic destination. Allowed values are: - UNSPECIFIED + * - INTERNET - NON_INTERNET + * @return value or {@code null} for none + */ + public java.lang.String getDestNetworkContext() { + return destNetworkContext; + } + + /** + * Network context of the traffic destination. Allowed values are: - UNSPECIFIED + * - INTERNET - NON_INTERNET + * @param destNetworkContext destNetworkContext or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestNetworkContext(java.lang.String destNetworkContext) { + this.destNetworkContext = destNetworkContext; + return this; + } + + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - + * INTERNET - NON_INTERNET + * @return value or {@code null} for none + */ + public java.lang.String getDestNetworkType() { + return destNetworkType; + } + + /** + * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - + * INTERNET - NON_INTERNET + * @param destNetworkType destNetworkType or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestNetworkType(java.lang.String destNetworkType) { + this.destNetworkType = destNetworkType; + return this; + } + + /** + * Region codes whose IP addresses will be used to match for destination of traffic. Should be + * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" + * Maximum number of dest region codes allowed is 5000. + * @return value or {@code null} for none + */ + public java.util.List getDestRegionCodes() { + return destRegionCodes; + } + + /** + * Region codes whose IP addresses will be used to match for destination of traffic. Should be + * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" + * Maximum number of dest region codes allowed is 5000. + * @param destRegionCodes destRegionCodes or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestRegionCodes(java.util.List destRegionCodes) { + this.destRegionCodes = destRegionCodes; + return this; + } + + /** + * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against + * traffic destination. + * @return value or {@code null} for none + */ + public java.util.List getDestThreatIntelligences() { + return destThreatIntelligences; + } + + /** + * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against + * traffic destination. + * @param destThreatIntelligences destThreatIntelligences or {@code null} for none + */ + public FirewallPolicyRuleMatcher setDestThreatIntelligences(java.util.List destThreatIntelligences) { + this.destThreatIntelligences = destThreatIntelligences; + return this; + } + + /** + * Pairs of IP protocols and ports that the rule should match. + * @return value or {@code null} for none + */ + public java.util.List getLayer4Configs() { + return layer4Configs; + } + + /** + * Pairs of IP protocols and ports that the rule should match. + * @param layer4Configs layer4Configs or {@code null} for none + */ + public FirewallPolicyRuleMatcher setLayer4Configs(java.util.List layer4Configs) { + this.layer4Configs = layer4Configs; + return this; + } + + /** + * Address groups which should be matched against the traffic source. Maximum number of source + * address groups is 10. + * @return value or {@code null} for none + */ + public java.util.List getSrcAddressGroups() { + return srcAddressGroups; + } + + /** + * Address groups which should be matched against the traffic source. Maximum number of source + * address groups is 10. + * @param srcAddressGroups srcAddressGroups or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcAddressGroups(java.util.List srcAddressGroups) { + this.srcAddressGroups = srcAddressGroups; + return this; + } + + /** + * Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum + * number of source fqdn allowed is 100. + * @return value or {@code null} for none + */ + public java.util.List getSrcFqdns() { + return srcFqdns; + } + + /** + * Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum + * number of source fqdn allowed is 100. + * @param srcFqdns srcFqdns or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcFqdns(java.util.List srcFqdns) { + this.srcFqdns = srcFqdns; + return this; + } + + /** + * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. + * @return value or {@code null} for none + */ + public java.util.List getSrcIpRanges() { + return srcIpRanges; + } + + /** + * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. + * @param srcIpRanges srcIpRanges or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcIpRanges(java.util.List srcIpRanges) { + this.srcIpRanges = srcIpRanges; + return this; + } + + /** + * Network context of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * @return value or {@code null} for none + */ + public java.lang.String getSrcNetworkContext() { + return srcNetworkContext; + } + + /** + * Network context of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * @param srcNetworkContext srcNetworkContext or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcNetworkContext(java.lang.String srcNetworkContext) { + this.srcNetworkContext = srcNetworkContext; + return this; + } + + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * @return value or {@code null} for none + */ + public java.lang.String getSrcNetworkType() { + return srcNetworkType; + } + + /** + * Network type of the traffic source. Allowed values are: - UNSPECIFIED - + * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS + * @param srcNetworkType srcNetworkType or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcNetworkType(java.lang.String srcNetworkType) { + this.srcNetworkType = srcNetworkType; + return this; + } + + /** + * Networks of the traffic source. It can be either a full or partial url. + * @return value or {@code null} for none + */ + public java.util.List getSrcNetworks() { + return srcNetworks; + } + + /** + * Networks of the traffic source. It can be either a full or partial url. + * @param srcNetworks srcNetworks or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcNetworks(java.util.List srcNetworks) { + this.srcNetworks = srcNetworks; + return this; + } + + /** + * Region codes whose IP addresses will be used to match for source of traffic. Should be + * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" + * Maximum number of source region codes allowed is 5000. + * @return value or {@code null} for none + */ + public java.util.List getSrcRegionCodes() { + return srcRegionCodes; + } + + /** + * Region codes whose IP addresses will be used to match for source of traffic. Should be + * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" + * Maximum number of source region codes allowed is 5000. + * @param srcRegionCodes srcRegionCodes or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcRegionCodes(java.util.List srcRegionCodes) { + this.srcRegionCodes = srcRegionCodes; + return this; + } + + /** + * List of secure tag values, which should be matched at the source of the traffic. For INGRESS + * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be + * ignored. Maximum number of source tag values allowed is 256. + * @return value or {@code null} for none + */ + public java.util.List getSrcSecureTags() { + return srcSecureTags; + } + + /** + * List of secure tag values, which should be matched at the source of the traffic. For INGRESS + * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be + * ignored. Maximum number of source tag values allowed is 256. + * @param srcSecureTags srcSecureTags or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcSecureTags(java.util.List srcSecureTags) { + this.srcSecureTags = srcSecureTags; + return this; + } + + /** + * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against + * traffic source. + * @return value or {@code null} for none + */ + public java.util.List getSrcThreatIntelligences() { + return srcThreatIntelligences; + } + + /** + * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against + * traffic source. + * @param srcThreatIntelligences srcThreatIntelligences or {@code null} for none + */ + public FirewallPolicyRuleMatcher setSrcThreatIntelligences(java.util.List srcThreatIntelligences) { + this.srcThreatIntelligences = srcThreatIntelligences; + return this; + } + + @Override + public FirewallPolicyRuleMatcher set(String fieldName, Object value) { + return (FirewallPolicyRuleMatcher) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRuleMatcher clone() { + return (FirewallPolicyRuleMatcher) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcherLayer4Config.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcherLayer4Config.java new file mode 100644 index 00000000000..7945108a794 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcherLayer4Config.java @@ -0,0 +1,108 @@ +/* + * 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 FirewallPolicyRuleMatcherLayer4Config. + * + *

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 FirewallPolicyRuleMatcherLayer4Config extends com.google.api.client.json.GenericJson { + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings + * (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP protocol number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipProtocol; + + /** + * An optional list of ports to which this rule applies. This field is only applicable for UDP or + * TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"],["80","443"], and ["12345-12349"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ports; + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings + * (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP protocol number. + * @return value or {@code null} for none + */ + public java.lang.String getIpProtocol() { + return ipProtocol; + } + + /** + * The IP protocol to which this rule applies. The protocol type is required when creating a + * firewall rule. This value can either be one of the following well known protocol strings + * (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP protocol number. + * @param ipProtocol ipProtocol or {@code null} for none + */ + public FirewallPolicyRuleMatcherLayer4Config setIpProtocol(java.lang.String ipProtocol) { + this.ipProtocol = ipProtocol; + return this; + } + + /** + * An optional list of ports to which this rule applies. This field is only applicable for UDP or + * TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"],["80","443"], and ["12345-12349"]. + * @return value or {@code null} for none + */ + public java.util.List getPorts() { + return ports; + } + + /** + * An optional list of ports to which this rule applies. This field is only applicable for UDP or + * TCP protocol. Each entry must be either an integer or a range. If not specified, this rule + * applies to connections through any port. + * + * Example inputs include: ["22"],["80","443"], and ["12345-12349"]. + * @param ports ports or {@code null} for none + */ + public FirewallPolicyRuleMatcherLayer4Config setPorts(java.util.List ports) { + this.ports = ports; + return this; + } + + @Override + public FirewallPolicyRuleMatcherLayer4Config set(String fieldName, Object value) { + return (FirewallPolicyRuleMatcherLayer4Config) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRuleMatcherLayer4Config clone() { + return (FirewallPolicyRuleMatcherLayer4Config) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java new file mode 100644 index 00000000000..3aa52411ce1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -0,0 +1,93 @@ +/* + * 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 FirewallPolicyRuleSecureTag. + * + *

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 FirewallPolicyRuleSecureTag extends com.google.api.client.json.GenericJson { + + /** + * Name of the secure tag, created with TagManager's TagValue API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A + * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Name of the secure tag, created with TagManager's TagValue API. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the secure tag, created with TagManager's TagValue API. + * @param name name or {@code null} for none + */ + public FirewallPolicyRuleSecureTag setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A + * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A + * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. + * @param state state or {@code null} for none + */ + public FirewallPolicyRuleSecureTag setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public FirewallPolicyRuleSecureTag set(String fieldName, Object value) { + return (FirewallPolicyRuleSecureTag) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRuleSecureTag clone() { + return (FirewallPolicyRuleSecureTag) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java new file mode 100644 index 00000000000..589b4b9d737 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -0,0 +1,135 @@ +/* + * 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; + +/** + * Encapsulates numeric value that can be either absolute or relative. + * + *

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 FixedOrPercent extends com.google.api.client.json.GenericJson { + + /** + * Output only. Absolute value of VM instances calculated based on the specific mode. + * + * - If the value is fixed, then the calculated value is equal to the fixed + * value. - If the value is a percent, then the calculated value is percent/100 * + * targetSize. For example, the calculated value of a 80% of a managed instance group + * with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, + * the number is rounded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer calculated; + + /** + * Specifies a fixed number of VM instances. This must be a positive integer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer fixed; + + /** + * Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for + * 80%. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer percent; + + /** + * Output only. Absolute value of VM instances calculated based on the specific mode. + * + * - If the value is fixed, then the calculated value is equal to the fixed + * value. - If the value is a percent, then the calculated value is percent/100 * + * targetSize. For example, the calculated value of a 80% of a managed instance group + * with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, + * the number is rounded. + * @return value or {@code null} for none + */ + public java.lang.Integer getCalculated() { + return calculated; + } + + /** + * Output only. Absolute value of VM instances calculated based on the specific mode. + * + * - If the value is fixed, then the calculated value is equal to the fixed + * value. - If the value is a percent, then the calculated value is percent/100 * + * targetSize. For example, the calculated value of a 80% of a managed instance group + * with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, + * the number is rounded. + * @param calculated calculated or {@code null} for none + */ + public FixedOrPercent setCalculated(java.lang.Integer calculated) { + this.calculated = calculated; + return this; + } + + /** + * Specifies a fixed number of VM instances. This must be a positive integer. + * @return value or {@code null} for none + */ + public java.lang.Integer getFixed() { + return fixed; + } + + /** + * Specifies a fixed number of VM instances. This must be a positive integer. + * @param fixed fixed or {@code null} for none + */ + public FixedOrPercent setFixed(java.lang.Integer fixed) { + this.fixed = fixed; + return this; + } + + /** + * Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for + * 80%. + * @return value or {@code null} for none + */ + public java.lang.Integer getPercent() { + return percent; + } + + /** + * Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for + * 80%. + * @param percent percent or {@code null} for none + */ + public FixedOrPercent setPercent(java.lang.Integer percent) { + this.percent = percent; + return this; + } + + @Override + public FixedOrPercent set(String fieldName, Object value) { + return (FixedOrPercent) super.set(fieldName, value); + } + + @Override + public FixedOrPercent clone() { + return (FixedOrPercent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java new file mode 100644 index 00000000000..4b11567e687 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java @@ -0,0 +1,129 @@ +/* + * 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; + +/** + * Specifies a flexible time range with flexible start time and duration. + * + * It is possible to specify a contradictory time range that cannot be matched by any Interval. This + * causes a validation error. + * + *

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 FlexibleTimeRange extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String maxDuration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String minDuration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTimeNotEarlierThan; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTimeNotLaterThan; + + /** + * @return value or {@code null} for none + */ + public String getMaxDuration() { + return maxDuration; + } + + /** + * @param maxDuration maxDuration or {@code null} for none + */ + public FlexibleTimeRange setMaxDuration(String maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getMinDuration() { + return minDuration; + } + + /** + * @param minDuration minDuration or {@code null} for none + */ + public FlexibleTimeRange setMinDuration(String minDuration) { + this.minDuration = minDuration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getStartTimeNotEarlierThan() { + return startTimeNotEarlierThan; + } + + /** + * @param startTimeNotEarlierThan startTimeNotEarlierThan or {@code null} for none + */ + public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierThan) { + this.startTimeNotEarlierThan = startTimeNotEarlierThan; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getStartTimeNotLaterThan() { + return startTimeNotLaterThan; + } + + /** + * @param startTimeNotLaterThan startTimeNotLaterThan or {@code null} for none + */ + public FlexibleTimeRange setStartTimeNotLaterThan(String startTimeNotLaterThan) { + this.startTimeNotLaterThan = startTimeNotLaterThan; + return this; + } + + @Override + public FlexibleTimeRange set(String fieldName, Object value) { + return (FlexibleTimeRange) super.set(fieldName, value); + } + + @Override + public FlexibleTimeRange clone() { + return (FlexibleTimeRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRule.java new file mode 100644 index 00000000000..8215f309d93 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -0,0 +1,1754 @@ +/* + * 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 Forwarding Rule resource. + * + * Forwarding rule resources in Google Cloud can be either regional or global in scope: + * + * * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) * + * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) + * + * A forwarding rule and its corresponding IP address represent the frontend configuration of a + * Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN + * Classic gateways (targetVpnGateway). + * + * For more information, read Forwarding rule concepts and Using protocol forwarding. + * + *

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 ForwardingRule extends com.google.api.client.json.GenericJson { + + /** + * IP address for which this forwarding rule accepts traffic. When a client sends traffic to this + * IP address, the forwarding rule directs the traffic to the referenced target or backendService. + * While creating a forwarding rule, specifying an IPAddress is required under the following + * circumstances: + * + * - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, + * theIPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google + * APIs bundle, you must specify an IPAddress. + * + * Otherwise, you can optionally specify an IP address that references an existing static + * (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. + * + * Use one of the following formats to specify an IP address while creating a forwarding rule: + * + * * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full + * resource URL, as + * inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- + * name * Partial URL or by name, as in: - + * projects/project_id/regions/region/addresses/address-name - + * regions/region/addresses/address-name - global/addresses/address-name - address-name + * + * The IP address can only be set at creation. Once set, it cannot be updated. + * + * The forwarding rule's target or backendService, and in most cases, also the + * loadBalancingScheme, determine the type of IP address that you can use. For detailed + * information, see [IP address specifications](https://cloud.google.com/load- + * balancing/docs/forwarding-rule-concepts#ip_address_specifications). + * + * When reading an IPAddress, the API always returns the IP address number. + * + * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent + * forwarding rule), you must use theIPAddresses field, but the Google Cloud generated child + * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for + * further details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPAddress") + private java.lang.String iPAddress; + + /** + * The IP protocol to which this rule applies. + * + * For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. + * + * The valid IP protocols are different for different load balancing products as described in + * [Load balancing features](https://cloud.google.com/load- + * balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPProtocol") + private java.lang.String iPProtocol; + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The allPorts field has the following limitations: - It requires that the forwarding rule + * IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following + * products: internal passthrough Network Load Balancers, backend service-based external + * passthrough Network Load Balancers, and internal and external protocol forwarding. - Set + * this field to true to allow packets addressed to any port or packets lacking destination + * port information (for example, UDP fragments after the first fragment) to be forwarded to + * the backends configured with this forwarding rule. The L3_DEFAULT protocol requiresallPorts + * be set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allPorts; + + /** + * If set to true, clients can access the internal passthrough Network Load Balancers, the + * regional internal Application Load Balancer, and the regional internal proxy Network Load + * Balancer from all regions. If false, only allows access from the local region the load balancer + * is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed + * after the forwarding rule is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowGlobalAccess; + + /** + * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed + * from another region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowPscGlobalAccess; + + /** + * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachedExtensions; + + /** + * Identifies the backend service to which the forwarding rule sends traffic. + * + * It is a required field for the following load balancers: - Internal passthrough Network + * Load Balancers - Backend service-based regional external passthrough Network Load + * Balancers - Global external passthrough Network Load Balancers + * + * It cannot be set by other load balancer types and protocol forwarding rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** + * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base + * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port + * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty + * if the current forwarding rule does not have sourceIPRanges specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String baseForwardingRule; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Specifies the canary migration state for the backend buckets attached to this forwarding rule. + * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + * + * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. + * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to + * backend buckets attached to this forwarding rule by percentage using + * externalManagedBackendBucketMigrationTestingPercentage. + * + * Rolling back a migration requires the states to be set in reverse order. So changing the scheme + * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same + * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalManagedBackendBucketMigrationState; + + /** + * Determines the fraction of requests to backend buckets that should be processed by the global + * external Application Load Balancer. + * + * The value of this field must be in the range [0, 100]. + * + * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL + * (when using the classic Application Load Balancer) and the migration state is + * TEST_BY_PERCENTAGE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float externalManagedBackendBucketMigrationTestingPercentage; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the + * fingerprint in patch request to ensure that you do not overwrite changes that were applied from + * another concurrent request. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * [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; + + /** + * Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. + * + * Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding + * rule using BYOIP: Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projec + * t_id/regions/region/publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - + * projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - + * regions/region/publicDelegatedPrefixes/sub-pdp-name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCollection; + + /** + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipVersion; + + /** + * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To + * prevent mirroring loops, instances behind this load balancer will not have their traffic + * mirrored even if aPacketMirroring rule applies to them. This can only be set to true for load + * balancers that have theirloadBalancingScheme set to INTERNAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isMirroringCollector; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding + * rule resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this resource, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Specifies the forwarding rule type. + * + * For more information, refer to Forwarding rule product and scheme table. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadBalancingScheme; + + /** + * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set + * of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node + * metadata. When there is a match, the relevant configuration is made available to those proxies. + * Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) referenced by the ForwardingRule are + * not visible to those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least + * one of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of + * them need to be satisfied in order to be considered a match. + * + * metadataFilters specified here will be applifed before those specified in the UrlMap that + * thisForwardingRule references. + * + * metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set + * toINTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metadataFilters; + + /** + * Name of the resource; provided by the client 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. + * + * For Private Service Connect forwarding rules that forward traffic to Google APIs, the + * forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and + * must start with a letter. + * + * For global external Passthrough Network Load Balancer forwarding rules, the forwarding rule + * name must be 1-43 characters long. For each global external Passthrough Network Load Balancer + * forwarding rule (a parent forwarding rule) that you create, Google Cloud generates two output- + * only child forwarding rules that are named by concatenating the parent forwarding rule name + * with the `-ag0` and `-ag1` suffixes, respectively. Refer to theavailabilityGroup field for + * further details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * This field is not used for global external load balancing. + * + * For internal passthrough Network Load Balancers, this field identifies the network that the + * load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the + * network of the subnetwork will be used. If neither subnetwork nor this field is specified, the + * default network will be used. + * + * For Private Service Connect forwarding rules that forward traffic to Google APIs, a network + * must be provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * This signifies the networking tier used for configuring this load balancer and can only take + * the following values:PREMIUM, STANDARD. + * + * For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For + * GlobalForwardingRule, the valid value isPREMIUM. + * + * If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this + * value must be equal to the networkTier of the Address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkTier; + + /** + * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a + * DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not + * mutable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noAutomateDnsZone; + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The portRange field has the following limitations: - It requires that the forwarding + * rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following + * products: external passthrough Network Load Balancers, internal and external proxy Network + * Load Balancers, internal and external Application Load Balancers, external protocol + * forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. + * See port specifications for details. + * + * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, + * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they have + * overlapping portRanges. + * + * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot + * use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. + * + * @pattern: \\d+(?:-\\d+)? + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portRange; + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The ports field has the following limitations: - It requires that the forwarding rule + * IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: + * internal passthrough Network Load Balancers, backend service-based external passthrough + * Network Load Balancers, and internal protocol forwarding. - You can specify a list of up + * to five ports by number, separated by commas. The ports can be contiguous or discontiguous. + * + * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, + * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they share at least + * one port number. + * + * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot + * use the same [IPAddress, IPProtocol] pair if they share at least one port number. + * + * @pattern: \\d+(?:-\\d+)? + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ports; + + /** + * [Output Only] The PSC connection id of the PSC forwarding rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger pscConnectionId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pscConnectionStatus; + + /** + * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This + * field is not applicable to global forwarding rules. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Service Directory resources to register this forwarding rule with. Currently, only supports a + * single Service Directory resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceDirectoryRegistrations; + + /** + * An optional prefix to the service name for this forwarding rule. If specified, the prefix is + * the first label of the fully qualified service name. + * + * The label must be 1-63 characters long, and comply withRFC1035. Specifically, the label 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. + * + * This field is only used for internal load balancing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceLabel; + + /** + * [Output Only] The internal fully qualified service name for this forwarding rule. + * + * This field is only used for internal load balancing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceName; + + /** + * If not empty, this forwarding rule will only forward the traffic when the source IP address + * matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only + * have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule + * whose scheme isEXTERNAL. Each source_ip_range entry should be either an IP address (for + * example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceIpRanges; + + /** + * This field identifies the subnetwork that the load balanced IP should belong to for this + * forwarding rule, used with internal load balancers and external passthrough Network Load + * Balancers with IPv6. + * + * If the network specified is in auto subnet mode, this field is optional. However, a subnetwork + * must be specified if the network is in custom subnet mode or when creating external forwarding + * rule with IPv6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * The URL of the target resource to receive the matched traffic. For regional forwarding rules, + * this target must be in the same region as the forwarding rule. For global forwarding rules, + * this target must be a global load balancing resource. + * + * The forwarded traffic must be of a type appropriate to the target object. - For + * load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load- + * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service + * Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported + * Google API bundle: - vpc-sc - APIs that support VPC Service + * Controls. - all-apis - All supported Google APIs. - For + * Private Service Connect forwarding rules that forward traffic to managed services, the target + * must be a service attachment. The target is not mutable once set as a service attachment. + * + * The following load balancers cannot set the target field (they should set the backendService + * field instead): - Internal passthrough Network Load Balancers - Backend service-based + * regional external passthrough Network Load Balancers - Global external passthrough + * Network Load Balancers + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * IP address for which this forwarding rule accepts traffic. When a client sends traffic to this + * IP address, the forwarding rule directs the traffic to the referenced target or backendService. + * While creating a forwarding rule, specifying an IPAddress is required under the following + * circumstances: + * + * - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, + * theIPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google + * APIs bundle, you must specify an IPAddress. + * + * Otherwise, you can optionally specify an IP address that references an existing static + * (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. + * + * Use one of the following formats to specify an IP address while creating a forwarding rule: + * + * * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full + * resource URL, as + * inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- + * name * Partial URL or by name, as in: - + * projects/project_id/regions/region/addresses/address-name - + * regions/region/addresses/address-name - global/addresses/address-name - address-name + * + * The IP address can only be set at creation. Once set, it cannot be updated. + * + * The forwarding rule's target or backendService, and in most cases, also the + * loadBalancingScheme, determine the type of IP address that you can use. For detailed + * information, see [IP address specifications](https://cloud.google.com/load- + * balancing/docs/forwarding-rule-concepts#ip_address_specifications). + * + * When reading an IPAddress, the API always returns the IP address number. + * + * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent + * forwarding rule), you must use theIPAddresses field, but the Google Cloud generated child + * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for + * further details. + * @return value or {@code null} for none + */ + public java.lang.String getIPAddress() { + return iPAddress; + } + + /** + * IP address for which this forwarding rule accepts traffic. When a client sends traffic to this + * IP address, the forwarding rule directs the traffic to the referenced target or backendService. + * While creating a forwarding rule, specifying an IPAddress is required under the following + * circumstances: + * + * - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, + * theIPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google + * APIs bundle, you must specify an IPAddress. + * + * Otherwise, you can optionally specify an IP address that references an existing static + * (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. + * + * Use one of the following formats to specify an IP address while creating a forwarding rule: + * + * * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full + * resource URL, as + * inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- + * name * Partial URL or by name, as in: - + * projects/project_id/regions/region/addresses/address-name - + * regions/region/addresses/address-name - global/addresses/address-name - address-name + * + * The IP address can only be set at creation. Once set, it cannot be updated. + * + * The forwarding rule's target or backendService, and in most cases, also the + * loadBalancingScheme, determine the type of IP address that you can use. For detailed + * information, see [IP address specifications](https://cloud.google.com/load- + * balancing/docs/forwarding-rule-concepts#ip_address_specifications). + * + * When reading an IPAddress, the API always returns the IP address number. + * + * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent + * forwarding rule), you must use theIPAddresses field, but the Google Cloud generated child + * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for + * further details. + * @param iPAddress iPAddress or {@code null} for none + */ + public ForwardingRule setIPAddress(java.lang.String iPAddress) { + this.iPAddress = iPAddress; + return this; + } + + /** + * The IP protocol to which this rule applies. + * + * For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. + * + * The valid IP protocols are different for different load balancing products as described in + * [Load balancing features](https://cloud.google.com/load- + * balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). + * @return value or {@code null} for none + */ + public java.lang.String getIPProtocol() { + return iPProtocol; + } + + /** + * The IP protocol to which this rule applies. + * + * For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. + * + * The valid IP protocols are different for different load balancing products as described in + * [Load balancing features](https://cloud.google.com/load- + * balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). + * @param iPProtocol iPProtocol or {@code null} for none + */ + public ForwardingRule setIPProtocol(java.lang.String iPProtocol) { + this.iPProtocol = iPProtocol; + return this; + } + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The allPorts field has the following limitations: - It requires that the forwarding rule + * IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following + * products: internal passthrough Network Load Balancers, backend service-based external + * passthrough Network Load Balancers, and internal and external protocol forwarding. - Set + * this field to true to allow packets addressed to any port or packets lacking destination + * port information (for example, UDP fragments after the first fragment) to be forwarded to + * the backends configured with this forwarding rule. The L3_DEFAULT protocol requiresallPorts + * be set to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllPorts() { + return allPorts; + } + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The allPorts field has the following limitations: - It requires that the forwarding rule + * IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following + * products: internal passthrough Network Load Balancers, backend service-based external + * passthrough Network Load Balancers, and internal and external protocol forwarding. - Set + * this field to true to allow packets addressed to any port or packets lacking destination + * port information (for example, UDP fragments after the first fragment) to be forwarded to + * the backends configured with this forwarding rule. The L3_DEFAULT protocol requiresallPorts + * be set to true. + * @param allPorts allPorts or {@code null} for none + */ + public ForwardingRule setAllPorts(java.lang.Boolean allPorts) { + this.allPorts = allPorts; + return this; + } + + /** + * If set to true, clients can access the internal passthrough Network Load Balancers, the + * regional internal Application Load Balancer, and the regional internal proxy Network Load + * Balancer from all regions. If false, only allows access from the local region the load balancer + * is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed + * after the forwarding rule is created. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowGlobalAccess() { + return allowGlobalAccess; + } + + /** + * If set to true, clients can access the internal passthrough Network Load Balancers, the + * regional internal Application Load Balancer, and the regional internal proxy Network Load + * Balancer from all regions. If false, only allows access from the local region the load balancer + * is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed + * after the forwarding rule is created. + * @param allowGlobalAccess allowGlobalAccess or {@code null} for none + */ + public ForwardingRule setAllowGlobalAccess(java.lang.Boolean allowGlobalAccess) { + this.allowGlobalAccess = allowGlobalAccess; + return this; + } + + /** + * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed + * from another region. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowPscGlobalAccess() { + return allowPscGlobalAccess; + } + + /** + * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed + * from another region. + * @param allowPscGlobalAccess allowPscGlobalAccess or {@code null} for none + */ + public ForwardingRule setAllowPscGlobalAccess(java.lang.Boolean allowPscGlobalAccess) { + this.allowPscGlobalAccess = allowPscGlobalAccess; + return this; + } + + /** + * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. + * @return value or {@code null} for none + */ + public java.util.List getAttachedExtensions() { + return attachedExtensions; + } + + /** + * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. + * @param attachedExtensions attachedExtensions or {@code null} for none + */ + public ForwardingRule setAttachedExtensions(java.util.List attachedExtensions) { + this.attachedExtensions = attachedExtensions; + return this; + } + + /** + * Identifies the backend service to which the forwarding rule sends traffic. + * + * It is a required field for the following load balancers: - Internal passthrough Network + * Load Balancers - Backend service-based regional external passthrough Network Load + * Balancers - Global external passthrough Network Load Balancers + * + * It cannot be set by other load balancer types and protocol forwarding rules. + * @return value or {@code null} for none + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * Identifies the backend service to which the forwarding rule sends traffic. + * + * It is a required field for the following load balancers: - Internal passthrough Network + * Load Balancers - Backend service-based regional external passthrough Network Load + * Balancers - Global external passthrough Network Load Balancers + * + * It cannot be set by other load balancer types and protocol forwarding rules. + * @param backendService backendService or {@code null} for none + */ + public ForwardingRule setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + + /** + * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base + * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port + * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty + * if the current forwarding rule does not have sourceIPRanges specified. + * @return value or {@code null} for none + */ + public java.lang.String getBaseForwardingRule() { + return baseForwardingRule; + } + + /** + * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base + * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port + * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty + * if the current forwarding rule does not have sourceIPRanges specified. + * @param baseForwardingRule baseForwardingRule or {@code null} for none + */ + public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) { + this.baseForwardingRule = baseForwardingRule; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public ForwardingRule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Specifies the canary migration state for the backend buckets attached to this forwarding rule. + * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + * + * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. + * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to + * backend buckets attached to this forwarding rule by percentage using + * externalManagedBackendBucketMigrationTestingPercentage. + * + * Rolling back a migration requires the states to be set in reverse order. So changing the scheme + * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same + * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + * @return value or {@code null} for none + */ + public java.lang.String getExternalManagedBackendBucketMigrationState() { + return externalManagedBackendBucketMigrationState; + } + + /** + * Specifies the canary migration state for the backend buckets attached to this forwarding rule. + * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + * + * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. + * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to + * backend buckets attached to this forwarding rule by percentage using + * externalManagedBackendBucketMigrationTestingPercentage. + * + * Rolling back a migration requires the states to be set in reverse order. So changing the scheme + * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same + * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to + * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. + * @param externalManagedBackendBucketMigrationState externalManagedBackendBucketMigrationState or {@code null} for none + */ + public ForwardingRule setExternalManagedBackendBucketMigrationState(java.lang.String externalManagedBackendBucketMigrationState) { + this.externalManagedBackendBucketMigrationState = externalManagedBackendBucketMigrationState; + return this; + } + + /** + * Determines the fraction of requests to backend buckets that should be processed by the global + * external Application Load Balancer. + * + * The value of this field must be in the range [0, 100]. + * + * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL + * (when using the classic Application Load Balancer) and the migration state is + * TEST_BY_PERCENTAGE. + * @return value or {@code null} for none + */ + public java.lang.Float getExternalManagedBackendBucketMigrationTestingPercentage() { + return externalManagedBackendBucketMigrationTestingPercentage; + } + + /** + * Determines the fraction of requests to backend buckets that should be processed by the global + * external Application Load Balancer. + * + * The value of this field must be in the range [0, 100]. + * + * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL + * (when using the classic Application Load Balancer) and the migration state is + * TEST_BY_PERCENTAGE. + * @param externalManagedBackendBucketMigrationTestingPercentage externalManagedBackendBucketMigrationTestingPercentage or {@code null} for none + */ + public ForwardingRule setExternalManagedBackendBucketMigrationTestingPercentage(java.lang.Float externalManagedBackendBucketMigrationTestingPercentage) { + this.externalManagedBackendBucketMigrationTestingPercentage = externalManagedBackendBucketMigrationTestingPercentage; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the + * fingerprint in patch request to ensure that you do not overwrite changes that were applied from + * another concurrent request. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the + * fingerprint in patch request to ensure that you do not overwrite changes that were applied from + * another concurrent request. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the + * fingerprint in patch request to ensure that you do not overwrite changes that were applied from + * another concurrent request. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public ForwardingRule setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the + * fingerprint in patch request to ensure that you do not overwrite changes that were applied from + * another concurrent request. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ForwardingRule encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public ForwardingRule setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. + * + * Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding + * rule using BYOIP: Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projec + * t_id/regions/region/publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - + * projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - + * regions/region/publicDelegatedPrefixes/sub-pdp-name + * @return value or {@code null} for none + */ + public java.lang.String getIpCollection() { + return ipCollection; + } + + /** + * Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. + * + * Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding + * rule using BYOIP: Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projec + * t_id/regions/region/publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - + * projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - + * regions/region/publicDelegatedPrefixes/sub-pdp-name + * @param ipCollection ipCollection or {@code null} for none + */ + public ForwardingRule setIpCollection(java.lang.String ipCollection) { + this.ipCollection = ipCollection; + return this; + } + + /** + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. + * @return value or {@code null} for none + */ + public java.lang.String getIpVersion() { + return ipVersion; + } + + /** + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. + * @param ipVersion ipVersion or {@code null} for none + */ + public ForwardingRule setIpVersion(java.lang.String ipVersion) { + this.ipVersion = ipVersion; + return this; + } + + /** + * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To + * prevent mirroring loops, instances behind this load balancer will not have their traffic + * mirrored even if aPacketMirroring rule applies to them. This can only be set to true for load + * balancers that have theirloadBalancingScheme set to INTERNAL. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsMirroringCollector() { + return isMirroringCollector; + } + + /** + * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To + * prevent mirroring loops, instances behind this load balancer will not have their traffic + * mirrored even if aPacketMirroring rule applies to them. This can only be set to true for load + * balancers that have theirloadBalancingScheme set to INTERNAL. + * @param isMirroringCollector isMirroringCollector or {@code null} for none + */ + public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringCollector) { + this.isMirroringCollector = isMirroringCollector; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding + * rule resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding + * rule resources. + * @param kind kind or {@code null} for none + */ + public ForwardingRule setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this resource, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this resource, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this resource, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public ForwardingRule setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this resource, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ForwardingRule encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public ForwardingRule setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Specifies the forwarding rule type. + * + * For more information, refer to Forwarding rule product and scheme table. + * @return value or {@code null} for none + */ + public java.lang.String getLoadBalancingScheme() { + return loadBalancingScheme; + } + + /** + * Specifies the forwarding rule type. + * + * For more information, refer to Forwarding rule product and scheme table. + * @param loadBalancingScheme loadBalancingScheme or {@code null} for none + */ + public ForwardingRule setLoadBalancingScheme(java.lang.String loadBalancingScheme) { + this.loadBalancingScheme = loadBalancingScheme; + return this; + } + + /** + * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set + * of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node + * metadata. When there is a match, the relevant configuration is made available to those proxies. + * Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) referenced by the ForwardingRule are + * not visible to those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least + * one of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of + * them need to be satisfied in order to be considered a match. + * + * metadataFilters specified here will be applifed before those specified in the UrlMap that + * thisForwardingRule references. + * + * metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set + * toINTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public java.util.List getMetadataFilters() { + return metadataFilters; + } + + /** + * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set + * of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node + * metadata. When there is a match, the relevant configuration is made available to those proxies. + * Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) referenced by the ForwardingRule are + * not visible to those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least + * one of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of + * them need to be satisfied in order to be considered a match. + * + * metadataFilters specified here will be applifed before those specified in the UrlMap that + * thisForwardingRule references. + * + * metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set + * toINTERNAL_SELF_MANAGED. + * @param metadataFilters metadataFilters or {@code null} for none + */ + public ForwardingRule setMetadataFilters(java.util.List metadataFilters) { + this.metadataFilters = metadataFilters; + return this; + } + + /** + * Name of the resource; provided by the client 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. + * + * For Private Service Connect forwarding rules that forward traffic to Google APIs, the + * forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and + * must start with a letter. + * + * For global external Passthrough Network Load Balancer forwarding rules, the forwarding rule + * name must be 1-43 characters long. For each global external Passthrough Network Load Balancer + * forwarding rule (a parent forwarding rule) that you create, Google Cloud generates two output- + * only child forwarding rules that are named by concatenating the parent forwarding rule name + * with the `-ag0` and `-ag1` suffixes, respectively. Refer to theavailabilityGroup field for + * further details. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource; provided by the client 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. + * + * For Private Service Connect forwarding rules that forward traffic to Google APIs, the + * forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and + * must start with a letter. + * + * For global external Passthrough Network Load Balancer forwarding rules, the forwarding rule + * name must be 1-43 characters long. For each global external Passthrough Network Load Balancer + * forwarding rule (a parent forwarding rule) that you create, Google Cloud generates two output- + * only child forwarding rules that are named by concatenating the parent forwarding rule name + * with the `-ag0` and `-ag1` suffixes, respectively. Refer to theavailabilityGroup field for + * further details. + * @param name name or {@code null} for none + */ + public ForwardingRule setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * This field is not used for global external load balancing. + * + * For internal passthrough Network Load Balancers, this field identifies the network that the + * load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the + * network of the subnetwork will be used. If neither subnetwork nor this field is specified, the + * default network will be used. + * + * For Private Service Connect forwarding rules that forward traffic to Google APIs, a network + * must be provided. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * This field is not used for global external load balancing. + * + * For internal passthrough Network Load Balancers, this field identifies the network that the + * load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the + * network of the subnetwork will be used. If neither subnetwork nor this field is specified, the + * default network will be used. + * + * For Private Service Connect forwarding rules that forward traffic to Google APIs, a network + * must be provided. + * @param network network or {@code null} for none + */ + public ForwardingRule setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * This signifies the networking tier used for configuring this load balancer and can only take + * the following values:PREMIUM, STANDARD. + * + * For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For + * GlobalForwardingRule, the valid value isPREMIUM. + * + * If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this + * value must be equal to the networkTier of the Address. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkTier() { + return networkTier; + } + + /** + * This signifies the networking tier used for configuring this load balancer and can only take + * the following values:PREMIUM, STANDARD. + * + * For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For + * GlobalForwardingRule, the valid value isPREMIUM. + * + * If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this + * value must be equal to the networkTier of the Address. + * @param networkTier networkTier or {@code null} for none + */ + public ForwardingRule setNetworkTier(java.lang.String networkTier) { + this.networkTier = networkTier; + return this; + } + + /** + * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a + * DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not + * mutable. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNoAutomateDnsZone() { + return noAutomateDnsZone; + } + + /** + * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a + * DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not + * mutable. + * @param noAutomateDnsZone noAutomateDnsZone or {@code null} for none + */ + public ForwardingRule setNoAutomateDnsZone(java.lang.Boolean noAutomateDnsZone) { + this.noAutomateDnsZone = noAutomateDnsZone; + return this; + } + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The portRange field has the following limitations: - It requires that the forwarding + * rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following + * products: external passthrough Network Load Balancers, internal and external proxy Network + * Load Balancers, internal and external Application Load Balancers, external protocol + * forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. + * See port specifications for details. + * + * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, + * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they have + * overlapping portRanges. + * + * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot + * use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. + * + * @pattern: \\d+(?:-\\d+)? + * @return value or {@code null} for none + */ + public java.lang.String getPortRange() { + return portRange; + } + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The portRange field has the following limitations: - It requires that the forwarding + * rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following + * products: external passthrough Network Load Balancers, internal and external proxy Network + * Load Balancers, internal and external Application Load Balancers, external protocol + * forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. + * See port specifications for details. + * + * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, + * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they have + * overlapping portRanges. + * + * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot + * use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. + * + * @pattern: \\d+(?:-\\d+)? + * @param portRange portRange or {@code null} for none + */ + public ForwardingRule setPortRange(java.lang.String portRange) { + this.portRange = portRange; + return this; + } + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The ports field has the following limitations: - It requires that the forwarding rule + * IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: + * internal passthrough Network Load Balancers, backend service-based external passthrough + * Network Load Balancers, and internal protocol forwarding. - You can specify a list of up + * to five ports by number, separated by commas. The ports can be contiguous or discontiguous. + * + * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, + * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they share at least + * one port number. + * + * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot + * use the same [IPAddress, IPProtocol] pair if they share at least one port number. + * + * @pattern: \\d+(?:-\\d+)? + * @return value or {@code null} for none + */ + public java.util.List getPorts() { + return ports; + } + + /** + * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to + * ports in the specified range will be forwarded to the backends configured with this forwarding + * rule. + * + * The ports field has the following limitations: - It requires that the forwarding rule + * IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: + * internal passthrough Network Load Balancers, backend service-based external passthrough + * Network Load Balancers, and internal protocol forwarding. - You can specify a list of up + * to five ports by number, separated by commas. The ports can be contiguous or discontiguous. + * + * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, + * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they share at least + * one port number. + * + * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot + * use the same [IPAddress, IPProtocol] pair if they share at least one port number. + * + * @pattern: \\d+(?:-\\d+)? + * @param ports ports or {@code null} for none + */ + public ForwardingRule setPorts(java.util.List ports) { + this.ports = ports; + return this; + } + + /** + * [Output Only] The PSC connection id of the PSC forwarding rule. + * @return value or {@code null} for none + */ + public java.math.BigInteger getPscConnectionId() { + return pscConnectionId; + } + + /** + * [Output Only] The PSC connection id of the PSC forwarding rule. + * @param pscConnectionId pscConnectionId or {@code null} for none + */ + public ForwardingRule setPscConnectionId(java.math.BigInteger pscConnectionId) { + this.pscConnectionId = pscConnectionId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPscConnectionStatus() { + return pscConnectionStatus; + } + + /** + * @param pscConnectionStatus pscConnectionStatus or {@code null} for none + */ + public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatus) { + this.pscConnectionStatus = pscConnectionStatus; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This + * field is not applicable to global forwarding rules. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This + * field is not applicable to global forwarding rules. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public ForwardingRule setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public ForwardingRule setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ForwardingRule setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Service Directory resources to register this forwarding rule with. Currently, only supports a + * single Service Directory resource. + * @return value or {@code null} for none + */ + public java.util.List getServiceDirectoryRegistrations() { + return serviceDirectoryRegistrations; + } + + /** + * Service Directory resources to register this forwarding rule with. Currently, only supports a + * single Service Directory resource. + * @param serviceDirectoryRegistrations serviceDirectoryRegistrations or {@code null} for none + */ + public ForwardingRule setServiceDirectoryRegistrations(java.util.List serviceDirectoryRegistrations) { + this.serviceDirectoryRegistrations = serviceDirectoryRegistrations; + return this; + } + + /** + * An optional prefix to the service name for this forwarding rule. If specified, the prefix is + * the first label of the fully qualified service name. + * + * The label must be 1-63 characters long, and comply withRFC1035. Specifically, the label 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. + * + * This field is only used for internal load balancing. + * @return value or {@code null} for none + */ + public java.lang.String getServiceLabel() { + return serviceLabel; + } + + /** + * An optional prefix to the service name for this forwarding rule. If specified, the prefix is + * the first label of the fully qualified service name. + * + * The label must be 1-63 characters long, and comply withRFC1035. Specifically, the label 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. + * + * This field is only used for internal load balancing. + * @param serviceLabel serviceLabel or {@code null} for none + */ + public ForwardingRule setServiceLabel(java.lang.String serviceLabel) { + this.serviceLabel = serviceLabel; + return this; + } + + /** + * [Output Only] The internal fully qualified service name for this forwarding rule. + * + * This field is only used for internal load balancing. + * @return value or {@code null} for none + */ + public java.lang.String getServiceName() { + return serviceName; + } + + /** + * [Output Only] The internal fully qualified service name for this forwarding rule. + * + * This field is only used for internal load balancing. + * @param serviceName serviceName or {@code null} for none + */ + public ForwardingRule setServiceName(java.lang.String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * If not empty, this forwarding rule will only forward the traffic when the source IP address + * matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only + * have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule + * whose scheme isEXTERNAL. Each source_ip_range entry should be either an IP address (for + * example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). + * @return value or {@code null} for none + */ + public java.util.List getSourceIpRanges() { + return sourceIpRanges; + } + + /** + * If not empty, this forwarding rule will only forward the traffic when the source IP address + * matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only + * have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule + * whose scheme isEXTERNAL. Each source_ip_range entry should be either an IP address (for + * example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). + * @param sourceIpRanges sourceIpRanges or {@code null} for none + */ + public ForwardingRule setSourceIpRanges(java.util.List sourceIpRanges) { + this.sourceIpRanges = sourceIpRanges; + return this; + } + + /** + * This field identifies the subnetwork that the load balanced IP should belong to for this + * forwarding rule, used with internal load balancers and external passthrough Network Load + * Balancers with IPv6. + * + * If the network specified is in auto subnet mode, this field is optional. However, a subnetwork + * must be specified if the network is in custom subnet mode or when creating external forwarding + * rule with IPv6. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * This field identifies the subnetwork that the load balanced IP should belong to for this + * forwarding rule, used with internal load balancers and external passthrough Network Load + * Balancers with IPv6. + * + * If the network specified is in auto subnet mode, this field is optional. However, a subnetwork + * must be specified if the network is in custom subnet mode or when creating external forwarding + * rule with IPv6. + * @param subnetwork subnetwork or {@code null} for none + */ + public ForwardingRule setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * The URL of the target resource to receive the matched traffic. For regional forwarding rules, + * this target must be in the same region as the forwarding rule. For global forwarding rules, + * this target must be a global load balancing resource. + * + * The forwarded traffic must be of a type appropriate to the target object. - For + * load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load- + * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service + * Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported + * Google API bundle: - vpc-sc - APIs that support VPC Service + * Controls. - all-apis - All supported Google APIs. - For + * Private Service Connect forwarding rules that forward traffic to managed services, the target + * must be a service attachment. The target is not mutable once set as a service attachment. + * + * The following load balancers cannot set the target field (they should set the backendService + * field instead): - Internal passthrough Network Load Balancers - Backend service-based + * regional external passthrough Network Load Balancers - Global external passthrough + * Network Load Balancers + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * The URL of the target resource to receive the matched traffic. For regional forwarding rules, + * this target must be in the same region as the forwarding rule. For global forwarding rules, + * this target must be a global load balancing resource. + * + * The forwarded traffic must be of a type appropriate to the target object. - For + * load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load- + * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service + * Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported + * Google API bundle: - vpc-sc - APIs that support VPC Service + * Controls. - all-apis - All supported Google APIs. - For + * Private Service Connect forwarding rules that forward traffic to managed services, the target + * must be a service attachment. The target is not mutable once set as a service attachment. + * + * The following load balancers cannot set the target field (they should set the backendService + * field instead): - Internal passthrough Network Load Balancers - Backend service-based + * regional external passthrough Network Load Balancers - Global external passthrough + * Network Load Balancers + * @param target target or {@code null} for none + */ + public ForwardingRule setTarget(java.lang.String target) { + this.target = target; + return this; + } + + @Override + public ForwardingRule set(String fieldName, Object value) { + return (ForwardingRule) super.set(fieldName, value); + } + + @Override + public ForwardingRule clone() { + return (ForwardingRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java new file mode 100644 index 00000000000..d181ed4e645 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 ForwardingRuleAggregatedList. + * + *

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 ForwardingRuleAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 ForwardingRulesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for + * lists of forwarding rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 ForwardingRuleAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ForwardingRulesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of ForwardingRulesScopedList resources. + * @param items items or {@code null} for none + */ + public ForwardingRuleAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for + * lists of forwarding rules. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for + * lists of forwarding rules. + * @param kind kind or {@code null} for none + */ + public ForwardingRuleAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ForwardingRuleAggregatedList 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 ForwardingRuleAggregatedList 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 ForwardingRuleAggregatedList 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 ForwardingRuleAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ForwardingRuleAggregatedList set(String fieldName, Object value) { + return (ForwardingRuleAggregatedList) super.set(fieldName, value); + } + + @Override + public ForwardingRuleAggregatedList clone() { + return (ForwardingRuleAggregatedList) 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 ForwardingRuleAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java new file mode 100644 index 00000000000..b6bda2496c5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.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; + +/** + * Reference to an extension resource that is attached to this ForwardingRule. + * + *

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 ForwardingRuleAttachedExtension extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reference; + + /** + * Output only. The resource name. + * @return value or {@code null} for none + */ + public java.lang.String getReference() { + return reference; + } + + /** + * Output only. The resource name. + * @param reference reference or {@code null} for none + */ + public ForwardingRuleAttachedExtension setReference(java.lang.String reference) { + this.reference = reference; + return this; + } + + @Override + public ForwardingRuleAttachedExtension set(String fieldName, Object value) { + return (ForwardingRuleAttachedExtension) super.set(fieldName, value); + } + + @Override + public ForwardingRuleAttachedExtension clone() { + return (ForwardingRuleAttachedExtension) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java new file mode 100644 index 00000000000..b6e4e0a5cab --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of ForwardingRule resources. + * + *

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 ForwardingRuleList extends com.google.api.client.json.GenericJson { + + /** + * [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 ForwardingRule 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 ForwardingRule 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(ForwardingRule.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 ForwardingRuleList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ForwardingRule resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of ForwardingRule resources. + * @param items items or {@code null} for none + */ + public ForwardingRuleList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public ForwardingRuleList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ForwardingRuleList 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 ForwardingRuleList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ForwardingRuleList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ForwardingRuleList set(String fieldName, Object value) { + return (ForwardingRuleList) super.set(fieldName, value); + } + + @Override + public ForwardingRuleList clone() { + return (ForwardingRuleList) 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 ForwardingRuleListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleReference.java new file mode 100644 index 00000000000..d2376600954 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleReference.java @@ -0,0 +1,63 @@ +/* + * 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 ForwardingRuleReference. + * + *

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 ForwardingRuleReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** + * @param forwardingRule forwardingRule or {@code null} for none + */ + public ForwardingRuleReference setForwardingRule(java.lang.String forwardingRule) { + this.forwardingRule = forwardingRule; + return this; + } + + @Override + public ForwardingRuleReference set(String fieldName, Object value) { + return (ForwardingRuleReference) super.set(fieldName, value); + } + + @Override + public ForwardingRuleReference clone() { + return (ForwardingRuleReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleServiceDirectoryRegistration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleServiceDirectoryRegistration.java new file mode 100644 index 00000000000..152cbbd1d5a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRuleServiceDirectoryRegistration.java @@ -0,0 +1,122 @@ +/* + * 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; + +/** + * Describes the auto-registration of the forwarding rule to Service Directory. The region and + * project of the Service Directory resource generated from this registration will be the same as + * this forwarding rule. + * + *

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 ForwardingRuleServiceDirectoryRegistration extends com.google.api.client.json.GenericJson { + + /** + * Service Directory namespace to register the forwarding rule under. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namespace; + + /** + * Service Directory service to register the forwarding rule under. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * [Optional] Service Directory region to register this global forwarding rule under. Default to + * "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on + * the same network should use the same Service Directory region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceDirectoryRegion; + + /** + * Service Directory namespace to register the forwarding rule under. + * @return value or {@code null} for none + */ + public java.lang.String getNamespace() { + return namespace; + } + + /** + * Service Directory namespace to register the forwarding rule under. + * @param namespace namespace or {@code null} for none + */ + public ForwardingRuleServiceDirectoryRegistration setNamespace(java.lang.String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Service Directory service to register the forwarding rule under. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Service Directory service to register the forwarding rule under. + * @param service service or {@code null} for none + */ + public ForwardingRuleServiceDirectoryRegistration setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * [Optional] Service Directory region to register this global forwarding rule under. Default to + * "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on + * the same network should use the same Service Directory region. + * @return value or {@code null} for none + */ + public java.lang.String getServiceDirectoryRegion() { + return serviceDirectoryRegion; + } + + /** + * [Optional] Service Directory region to register this global forwarding rule under. Default to + * "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on + * the same network should use the same Service Directory region. + * @param serviceDirectoryRegion serviceDirectoryRegion or {@code null} for none + */ + public ForwardingRuleServiceDirectoryRegistration setServiceDirectoryRegion(java.lang.String serviceDirectoryRegion) { + this.serviceDirectoryRegion = serviceDirectoryRegion; + return this; + } + + @Override + public ForwardingRuleServiceDirectoryRegistration set(String fieldName, Object value) { + return (ForwardingRuleServiceDirectoryRegistration) super.set(fieldName, value); + } + + @Override + public ForwardingRuleServiceDirectoryRegistration clone() { + return (ForwardingRuleServiceDirectoryRegistration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRulesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRulesScopedList.java new file mode 100644 index 00000000000..49dd5ef0a0c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ForwardingRulesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 ForwardingRulesScopedList. + * + *

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 ForwardingRulesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of forwarding rules contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List forwardingRules; + + static { + // hack to force ProGuard to consider ForwardingRule 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(ForwardingRule.class); + } + + /** + * Informational warning which replaces the list of forwarding rules when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of forwarding rules contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getForwardingRules() { + return forwardingRules; + } + + /** + * A list of forwarding rules contained in this scope. + * @param forwardingRules forwardingRules or {@code null} for none + */ + public ForwardingRulesScopedList setForwardingRules(java.util.List forwardingRules) { + this.forwardingRules = forwardingRules; + return this; + } + + /** + * Informational warning which replaces the list of forwarding rules when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of forwarding rules when the list is empty. + * @param warning warning or {@code null} for none + */ + public ForwardingRulesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ForwardingRulesScopedList set(String fieldName, Object value) { + return (ForwardingRulesScopedList) super.set(fieldName, value); + } + + @Override + public ForwardingRulesScopedList clone() { + return (ForwardingRulesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of forwarding rules when the list is empty. + */ + 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 ForwardingRulesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservation.java new file mode 100644 index 00000000000..38276abe8b5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -0,0 +1,867 @@ +/* + * 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 FutureReservation. + * + *

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 FutureReservation extends com.google.api.client.json.GenericJson { + + /** + * Aggregate reservation details for the future reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationAggregateReservation aggregateReservation; + + /** + * Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. + * Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoCreatedReservationsDeleteTime; + + /** + * Specifies the duration of auto-created reservations. It represents relative time to future + * reservation start_time when auto-created reservations will be automatically deleted by Compute + * Engine. Duration time unit is represented as a count of seconds and fractions of seconds at + * nanosecond resolution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration autoCreatedReservationsDuration; + + /** + * Setting for enabling or disabling automatic deletion for auto-created reservation. If set to + * true, auto-created reservations will be deleted at Future Reservation's end time (default) or + * at user's defined timestamp if any of the [auto_created_reservations_delete_time, + * auto_created_reservations_duration] values is specified. For keeping auto-created reservation + * indefinitely, this value should be set to false. + * The value may be {@code null}. + */ + @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}. + */ + @com.google.api.client.util.Key + private FutureReservationCommitmentInfo commitmentInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String confidentialComputeType; + + /** + * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text + * format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Type of the deployment requested as part of future reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentType; + + /** + * An optional description of this resource. Provide this property when you create the future + * reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEmergentMaintenance; + + /** + * Output only. [Output Only] A unique identifier for this future reservation. The server defines + * this identifier. + * 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] Type of the resource. Alwayscompute#futureReservation for future + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + + /** + * Name prefix for the reservations to be created at the time of delivery. The name prefix must + * comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created + * reservations name format will be -date-####. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namePrefix; + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationParams params; + + /** + * Planning state before being submitted for evaluation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String planningStatus; + + /** + * The reservation mode which determines reservation-termination behavior and expected pricing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reservationMode; + + /** + * Name of reservations where the capacity is provisioned at the time of delivery of future + * reservations. If the reservation with the given name does not exist already, it is created + * automatically at the time of Approval with INACTIVE state till specified start-time. Either + * provide the reservation_name or a name_prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reservationName; + + /** + * Output only. Contains standard resource metadata for an FutureReservation resource. It is + * populated for each instance of the FutureReservation resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceMetadata resourceMetadata; + + /** + * Name of the resource intended to be delivered. Name should conform to RFC1035. This will be the + * name of storage pool or Exapool for persistent disk FRs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceName; + + /** + * Maintenance information for this reservation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedulingType; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * List of Projects/Folders to share with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShareSettings shareSettings; + + /** + * Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" + * reservation. If the field is set, then only VMs that target the reservation by name can consume + * from the delivered reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean specificReservationRequired; + + /** + * Future Reservation configuration to indicate instance properties and total count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationSpecificSKUProperties specificSkuProperties; + + /** + * Output only. [Output only] Status of the Future Reservation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStatus status; + + /** + * Storage pool details for the future reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStoragePoolProperties storagePoolProperties; + + /** + * Time window for this Future Reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationTimeWindow timeWindow; + + /** + * Output only. [Output Only] URL of the Zone where this future reservation resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Aggregate reservation details for the future reservation. + * @return value or {@code null} for none + */ + public AllocationAggregateReservation getAggregateReservation() { + return aggregateReservation; + } + + /** + * Aggregate reservation details for the future reservation. + * @param aggregateReservation aggregateReservation or {@code null} for none + */ + public FutureReservation setAggregateReservation(AllocationAggregateReservation aggregateReservation) { + this.aggregateReservation = aggregateReservation; + return this; + } + + /** + * Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. + * Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. + * @return value or {@code null} for none + */ + public java.lang.String getAutoCreatedReservationsDeleteTime() { + return autoCreatedReservationsDeleteTime; + } + + /** + * Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. + * Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. + * @param autoCreatedReservationsDeleteTime autoCreatedReservationsDeleteTime or {@code null} for none + */ + public FutureReservation setAutoCreatedReservationsDeleteTime(java.lang.String autoCreatedReservationsDeleteTime) { + this.autoCreatedReservationsDeleteTime = autoCreatedReservationsDeleteTime; + return this; + } + + /** + * Specifies the duration of auto-created reservations. It represents relative time to future + * reservation start_time when auto-created reservations will be automatically deleted by Compute + * Engine. Duration time unit is represented as a count of seconds and fractions of seconds at + * nanosecond resolution. + * @return value or {@code null} for none + */ + public Duration getAutoCreatedReservationsDuration() { + return autoCreatedReservationsDuration; + } + + /** + * Specifies the duration of auto-created reservations. It represents relative time to future + * reservation start_time when auto-created reservations will be automatically deleted by Compute + * Engine. Duration time unit is represented as a count of seconds and fractions of seconds at + * nanosecond resolution. + * @param autoCreatedReservationsDuration autoCreatedReservationsDuration or {@code null} for none + */ + public FutureReservation setAutoCreatedReservationsDuration(Duration autoCreatedReservationsDuration) { + this.autoCreatedReservationsDuration = autoCreatedReservationsDuration; + return this; + } + + /** + * Setting for enabling or disabling automatic deletion for auto-created reservation. If set to + * true, auto-created reservations will be deleted at Future Reservation's end time (default) or + * at user's defined timestamp if any of the [auto_created_reservations_delete_time, + * auto_created_reservations_duration] values is specified. For keeping auto-created reservation + * indefinitely, this value should be set to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoDeleteAutoCreatedReservations() { + return autoDeleteAutoCreatedReservations; + } + + /** + * Setting for enabling or disabling automatic deletion for auto-created reservation. If set to + * true, auto-created reservations will be deleted at Future Reservation's end time (default) or + * at user's defined timestamp if any of the [auto_created_reservations_delete_time, + * auto_created_reservations_duration] values is specified. For keeping auto-created reservation + * indefinitely, this value should be set to false. + * @param autoDeleteAutoCreatedReservations autoDeleteAutoCreatedReservations or {@code null} for none + */ + public FutureReservation setAutoDeleteAutoCreatedReservations(java.lang.Boolean autoDeleteAutoCreatedReservations) { + this.autoDeleteAutoCreatedReservations = autoDeleteAutoCreatedReservations; + 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 + */ + public FutureReservationCommitmentInfo getCommitmentInfo() { + return commitmentInfo; + } + + /** + * If not present, then FR will not deliver a new commitment or update an existing commitment. + * @param commitmentInfo commitmentInfo or {@code null} for none + */ + public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commitmentInfo) { + this.commitmentInfo = commitmentInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getConfidentialComputeType() { + return confidentialComputeType; + } + + /** + * @param confidentialComputeType confidentialComputeType or {@code null} for none + */ + public FutureReservation setConfidentialComputeType(java.lang.String confidentialComputeType) { + this.confidentialComputeType = confidentialComputeType; + return this; + } + + /** + * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text + * format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text + * format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public FutureReservation setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Type of the deployment requested as part of future reservation. + * @return value or {@code null} for none + */ + public java.lang.String getDeploymentType() { + return deploymentType; + } + + /** + * Type of the deployment requested as part of future reservation. + * @param deploymentType deploymentType or {@code null} for none + */ + public FutureReservation setDeploymentType(java.lang.String deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the future + * reservation. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the future + * reservation. + * @param description description or {@code null} for none + */ + public FutureReservation setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEmergentMaintenance() { + return enableEmergentMaintenance; + } + + /** + * Indicates if this group of VMs have emergent maintenance enabled. + * @param enableEmergentMaintenance enableEmergentMaintenance or {@code null} for none + */ + public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergentMaintenance) { + this.enableEmergentMaintenance = enableEmergentMaintenance; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this future reservation. The server defines + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this future reservation. The server defines + * this identifier. + * @param id id or {@code null} for none + */ + public FutureReservation setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future + * reservations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future + * reservations. + * @param kind kind or {@code null} for none + */ + public FutureReservation setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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 FutureReservation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Name prefix for the reservations to be created at the time of delivery. The name prefix must + * comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created + * reservations name format will be -date-####. + * @return value or {@code null} for none + */ + public java.lang.String getNamePrefix() { + return namePrefix; + } + + /** + * Name prefix for the reservations to be created at the time of delivery. The name prefix must + * comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created + * reservations name format will be -date-####. + * @param namePrefix namePrefix or {@code null} for none + */ + public FutureReservation setNamePrefix(java.lang.String namePrefix) { + this.namePrefix = namePrefix; + return this; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public FutureReservationParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public FutureReservation setParams(FutureReservationParams params) { + this.params = params; + return this; + } + + /** + * Planning state before being submitted for evaluation + * @return value or {@code null} for none + */ + public java.lang.String getPlanningStatus() { + return planningStatus; + } + + /** + * Planning state before being submitted for evaluation + * @param planningStatus planningStatus or {@code null} for none + */ + public FutureReservation setPlanningStatus(java.lang.String planningStatus) { + this.planningStatus = planningStatus; + return this; + } + + /** + * The reservation mode which determines reservation-termination behavior and expected pricing. + * @return value or {@code null} for none + */ + public java.lang.String getReservationMode() { + return reservationMode; + } + + /** + * The reservation mode which determines reservation-termination behavior and expected pricing. + * @param reservationMode reservationMode or {@code null} for none + */ + public FutureReservation setReservationMode(java.lang.String reservationMode) { + this.reservationMode = reservationMode; + return this; + } + + /** + * Name of reservations where the capacity is provisioned at the time of delivery of future + * reservations. If the reservation with the given name does not exist already, it is created + * automatically at the time of Approval with INACTIVE state till specified start-time. Either + * provide the reservation_name or a name_prefix. + * @return value or {@code null} for none + */ + public java.lang.String getReservationName() { + return reservationName; + } + + /** + * Name of reservations where the capacity is provisioned at the time of delivery of future + * reservations. If the reservation with the given name does not exist already, it is created + * automatically at the time of Approval with INACTIVE state till specified start-time. Either + * provide the reservation_name or a name_prefix. + * @param reservationName reservationName or {@code null} for none + */ + public FutureReservation setReservationName(java.lang.String reservationName) { + this.reservationName = reservationName; + return this; + } + + /** + * Output only. Contains standard resource metadata for an FutureReservation resource. It is + * populated for each instance of the FutureReservation resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * @return value or {@code null} for none + */ + public ResourceMetadata getResourceMetadata() { + return resourceMetadata; + } + + /** + * Output only. Contains standard resource metadata for an FutureReservation resource. It is + * populated for each instance of the FutureReservation resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * @param resourceMetadata resourceMetadata or {@code null} for none + */ + public FutureReservation setResourceMetadata(ResourceMetadata resourceMetadata) { + this.resourceMetadata = resourceMetadata; + return this; + } + + /** + * Name of the resource intended to be delivered. Name should conform to RFC1035. This will be the + * name of storage pool or Exapool for persistent disk FRs. + * @return value or {@code null} for none + */ + public java.lang.String getResourceName() { + return resourceName; + } + + /** + * Name of the resource intended to be delivered. Name should conform to RFC1035. This will be the + * name of storage pool or Exapool for persistent disk FRs. + * @param resourceName resourceName or {@code null} for none + */ + public FutureReservation setResourceName(java.lang.String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * Maintenance information for this reservation + * @return value or {@code null} for none + */ + public java.lang.String getSchedulingType() { + return schedulingType; + } + + /** + * Maintenance information for this reservation + * @param schedulingType schedulingType or {@code null} for none + */ + public FutureReservation setSchedulingType(java.lang.String schedulingType) { + this.schedulingType = schedulingType; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public FutureReservation setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public FutureReservation setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * List of Projects/Folders to share with. + * @return value or {@code null} for none + */ + public ShareSettings getShareSettings() { + return shareSettings; + } + + /** + * List of Projects/Folders to share with. + * @param shareSettings shareSettings or {@code null} for none + */ + public FutureReservation setShareSettings(ShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" + * reservation. If the field is set, then only VMs that target the reservation by name can consume + * from the delivered reservation. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSpecificReservationRequired() { + return specificReservationRequired; + } + + /** + * Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" + * reservation. If the field is set, then only VMs that target the reservation by name can consume + * from the delivered reservation. + * @param specificReservationRequired specificReservationRequired or {@code null} for none + */ + public FutureReservation setSpecificReservationRequired(java.lang.Boolean specificReservationRequired) { + this.specificReservationRequired = specificReservationRequired; + return this; + } + + /** + * Future Reservation configuration to indicate instance properties and total count. + * @return value or {@code null} for none + */ + public FutureReservationSpecificSKUProperties getSpecificSkuProperties() { + return specificSkuProperties; + } + + /** + * Future Reservation configuration to indicate instance properties and total count. + * @param specificSkuProperties specificSkuProperties or {@code null} for none + */ + public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUProperties specificSkuProperties) { + this.specificSkuProperties = specificSkuProperties; + return this; + } + + /** + * Output only. [Output only] Status of the Future Reservation + * @return value or {@code null} for none + */ + public FutureReservationStatus getStatus() { + return status; + } + + /** + * Output only. [Output only] Status of the Future Reservation + * @param status status or {@code null} for none + */ + public FutureReservation setStatus(FutureReservationStatus status) { + this.status = status; + return this; + } + + /** + * Storage pool details for the future reservation. + * @return value or {@code null} for none + */ + public FutureReservationStoragePoolProperties getStoragePoolProperties() { + return storagePoolProperties; + } + + /** + * Storage pool details for the future reservation. + * @param storagePoolProperties storagePoolProperties or {@code null} for none + */ + public FutureReservation setStoragePoolProperties(FutureReservationStoragePoolProperties storagePoolProperties) { + this.storagePoolProperties = storagePoolProperties; + return this; + } + + /** + * Time window for this Future Reservation. + * @return value or {@code null} for none + */ + public FutureReservationTimeWindow getTimeWindow() { + return timeWindow; + } + + /** + * Time window for this Future Reservation. + * @param timeWindow timeWindow or {@code null} for none + */ + public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { + this.timeWindow = timeWindow; + return this; + } + + /** + * Output only. [Output Only] URL of the Zone where this future reservation resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the Zone where this future reservation resides. + * @param zone zone or {@code null} for none + */ + public FutureReservation setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public FutureReservation set(String fieldName, Object value) { + return (FutureReservation) super.set(fieldName, value); + } + + @Override + public FutureReservation clone() { + return (FutureReservation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationCommitmentInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationCommitmentInfo.java new file mode 100644 index 00000000000..d8ae47d8fec --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationCommitmentInfo.java @@ -0,0 +1,120 @@ +/* + * 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 FutureReservationCommitmentInfo. + * + *

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 FutureReservationCommitmentInfo extends com.google.api.client.json.GenericJson { + + /** + * name of the commitment where capacity is being delivered to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String commitmentName; + + /** + * Indicates if a Commitment needs to be created as part of FR delivery. If this field is not + * present, then no commitment needs to be created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String commitmentPlan; + + /** + * Only applicable if FR is delivering to the same reservation. If set, all parent commitments + * will be extended to match the end date of the plan for this commitment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String previousCommitmentTerms; + + /** + * name of the commitment where capacity is being delivered to. + * @return value or {@code null} for none + */ + public java.lang.String getCommitmentName() { + return commitmentName; + } + + /** + * name of the commitment where capacity is being delivered to. + * @param commitmentName commitmentName or {@code null} for none + */ + public FutureReservationCommitmentInfo setCommitmentName(java.lang.String commitmentName) { + this.commitmentName = commitmentName; + return this; + } + + /** + * Indicates if a Commitment needs to be created as part of FR delivery. If this field is not + * present, then no commitment needs to be created. + * @return value or {@code null} for none + */ + public java.lang.String getCommitmentPlan() { + return commitmentPlan; + } + + /** + * Indicates if a Commitment needs to be created as part of FR delivery. If this field is not + * present, then no commitment needs to be created. + * @param commitmentPlan commitmentPlan or {@code null} for none + */ + public FutureReservationCommitmentInfo setCommitmentPlan(java.lang.String commitmentPlan) { + this.commitmentPlan = commitmentPlan; + return this; + } + + /** + * Only applicable if FR is delivering to the same reservation. If set, all parent commitments + * will be extended to match the end date of the plan for this commitment. + * @return value or {@code null} for none + */ + public java.lang.String getPreviousCommitmentTerms() { + return previousCommitmentTerms; + } + + /** + * Only applicable if FR is delivering to the same reservation. If set, all parent commitments + * will be extended to match the end date of the plan for this commitment. + * @param previousCommitmentTerms previousCommitmentTerms or {@code null} for none + */ + public FutureReservationCommitmentInfo setPreviousCommitmentTerms(java.lang.String previousCommitmentTerms) { + this.previousCommitmentTerms = previousCommitmentTerms; + return this; + } + + @Override + public FutureReservationCommitmentInfo set(String fieldName, Object value) { + return (FutureReservationCommitmentInfo) super.set(fieldName, value); + } + + @Override + public FutureReservationCommitmentInfo clone() { + return (FutureReservationCommitmentInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java new file mode 100644 index 00000000000..44e7aaa116d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional future reservation params. + * + *

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 FutureReservationParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the future reservation. Tag keys and values + * have the same definition as resource manager tags. Keys and values can be either in numeric + * format, such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format + * such as `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is + * ignored (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the future reservation. Tag keys and values + * have the same definition as resource manager tags. Keys and values can be either in numeric + * format, such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format + * such as `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is + * ignored (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the future reservation. Tag keys and values + * have the same definition as resource manager tags. Keys and values can be either in numeric + * format, such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format + * such as `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is + * ignored (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public FutureReservationParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public FutureReservationParams set(String fieldName, Object value) { + return (FutureReservationParams) super.set(fieldName, value); + } + + @Override + public FutureReservationParams clone() { + return (FutureReservationParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationSpecificSKUProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationSpecificSKUProperties.java new file mode 100644 index 00000000000..ade8971f3e0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationSpecificSKUProperties.java @@ -0,0 +1,117 @@ +/* + * 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 FutureReservationSpecificSKUProperties. + * + *

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 FutureReservationSpecificSKUProperties extends com.google.api.client.json.GenericJson { + + /** + * Properties of the SKU instances being reserved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties; + + /** + * The instance template that will be used to populate the ReservedInstanceProperties of the + * future reservation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplate; + + /** + * Total number of instances for which capacity assurance is requested at a future time period. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalCount; + + /** + * Properties of the SKU instances being reserved. + * @return value or {@code null} for none + */ + public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * Properties of the SKU instances being reserved. + * @param instanceProperties instanceProperties or {@code null} for none + */ + public FutureReservationSpecificSKUProperties setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + /** + * The instance template that will be used to populate the ReservedInstanceProperties of the + * future reservation + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstanceTemplate() { + return sourceInstanceTemplate; + } + + /** + * The instance template that will be used to populate the ReservedInstanceProperties of the + * future reservation + * @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none + */ + public FutureReservationSpecificSKUProperties setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { + this.sourceInstanceTemplate = sourceInstanceTemplate; + return this; + } + + /** + * Total number of instances for which capacity assurance is requested at a future time period. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalCount() { + return totalCount; + } + + /** + * Total number of instances for which capacity assurance is requested at a future time period. + * @param totalCount totalCount or {@code null} for none + */ + public FutureReservationSpecificSKUProperties setTotalCount(java.lang.Long totalCount) { + this.totalCount = totalCount; + return this; + } + + @Override + public FutureReservationSpecificSKUProperties set(String fieldName, Object value) { + return (FutureReservationSpecificSKUProperties) super.set(fieldName, value); + } + + @Override + public FutureReservationSpecificSKUProperties clone() { + return (FutureReservationSpecificSKUProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java new file mode 100644 index 00000000000..83ad4d1ae81 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -0,0 +1,303 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output only] Represents status related to the future reservation. + * + *

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 FutureReservationStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The current status of the requested amendment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String amendmentStatus; + + /** + * Output only. Fully qualified urls of the automatically created reservations at start_time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List autoCreatedReservations; + + /** + * Output only. Exapool provisioned capacities for each SKU type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb; + + /** + * Output only. [Output Only] Represents the existing matching usage for the future reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo; + + /** + * Output only. This count indicates the fulfilled capacity so far. This is set during + * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long fulfilledCount; + + /** + * Output only. [Output Only] This field represents the future reservation before an amendment was + * requested. If the amendment is declined, the Future Reservation will be reverted to the last + * known good state. The last known good state is not set when updating a future reservation whose + * Procurement Status is DRAFTING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStatusLastKnownGoodState lastKnownGoodState; + + /** + * Output only. Time when Future Reservation would become LOCKED, after which no modifications to + * Future Reservation will be allowed. Applicable only after the Future Reservation is in the + * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to + * PROCURING state at this time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lockTime; + + /** + * Output only. Current state of this Future Reservation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String procurementStatus; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStatusSpecificSKUProperties specificSkuProperties; + + /** + * Output only. Storage pool provisioned capacities for each SKU type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStoragePoolProvisionedCapacity storagePoolProvisionedCapacity; + + /** + * Output only. [Output Only] The current status of the requested amendment. + * @return value or {@code null} for none + */ + public java.lang.String getAmendmentStatus() { + return amendmentStatus; + } + + /** + * Output only. [Output Only] The current status of the requested amendment. + * @param amendmentStatus amendmentStatus or {@code null} for none + */ + public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStatus) { + this.amendmentStatus = amendmentStatus; + return this; + } + + /** + * Output only. Fully qualified urls of the automatically created reservations at start_time. + * @return value or {@code null} for none + */ + public java.util.List getAutoCreatedReservations() { + return autoCreatedReservations; + } + + /** + * Output only. Fully qualified urls of the automatically created reservations at start_time. + * @param autoCreatedReservations autoCreatedReservations or {@code null} for none + */ + public FutureReservationStatus setAutoCreatedReservations(java.util.List autoCreatedReservations) { + this.autoCreatedReservations = autoCreatedReservations; + return this; + } + + /** + * Output only. Exapool provisioned capacities for each SKU type. + * @return value or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { + return exapoolProvisionedCapacityGb; + } + + /** + * Output only. Exapool provisioned capacities for each SKU type. + * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none + */ + public FutureReservationStatus setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { + this.exapoolProvisionedCapacityGb = exapoolProvisionedCapacityGb; + return this; + } + + /** + * Output only. [Output Only] Represents the existing matching usage for the future reservation. + * @return value or {@code null} for none + */ + public FutureReservationStatusExistingMatchingUsageInfo getExistingMatchingUsageInfo() { + return existingMatchingUsageInfo; + } + + /** + * Output only. [Output Only] Represents the existing matching usage for the future reservation. + * @param existingMatchingUsageInfo existingMatchingUsageInfo or {@code null} for none + */ + public FutureReservationStatus setExistingMatchingUsageInfo(FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo) { + this.existingMatchingUsageInfo = existingMatchingUsageInfo; + return this; + } + + /** + * Output only. This count indicates the fulfilled capacity so far. This is set during + * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching + * reservations. + * @return value or {@code null} for none + */ + public java.lang.Long getFulfilledCount() { + return fulfilledCount; + } + + /** + * Output only. This count indicates the fulfilled capacity so far. This is set during + * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching + * reservations. + * @param fulfilledCount fulfilledCount or {@code null} for none + */ + public FutureReservationStatus setFulfilledCount(java.lang.Long fulfilledCount) { + this.fulfilledCount = fulfilledCount; + return this; + } + + /** + * Output only. [Output Only] This field represents the future reservation before an amendment was + * requested. If the amendment is declined, the Future Reservation will be reverted to the last + * known good state. The last known good state is not set when updating a future reservation whose + * Procurement Status is DRAFTING. + * @return value or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState getLastKnownGoodState() { + return lastKnownGoodState; + } + + /** + * Output only. [Output Only] This field represents the future reservation before an amendment was + * requested. If the amendment is declined, the Future Reservation will be reverted to the last + * known good state. The last known good state is not set when updating a future reservation whose + * Procurement Status is DRAFTING. + * @param lastKnownGoodState lastKnownGoodState or {@code null} for none + */ + public FutureReservationStatus setLastKnownGoodState(FutureReservationStatusLastKnownGoodState lastKnownGoodState) { + this.lastKnownGoodState = lastKnownGoodState; + return this; + } + + /** + * Output only. Time when Future Reservation would become LOCKED, after which no modifications to + * Future Reservation will be allowed. Applicable only after the Future Reservation is in the + * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to + * PROCURING state at this time. + * @return value or {@code null} for none + */ + public java.lang.String getLockTime() { + return lockTime; + } + + /** + * Output only. Time when Future Reservation would become LOCKED, after which no modifications to + * Future Reservation will be allowed. Applicable only after the Future Reservation is in the + * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to + * PROCURING state at this time. + * @param lockTime lockTime or {@code null} for none + */ + public FutureReservationStatus setLockTime(java.lang.String lockTime) { + this.lockTime = lockTime; + return this; + } + + /** + * Output only. Current state of this Future Reservation + * @return value or {@code null} for none + */ + public java.lang.String getProcurementStatus() { + return procurementStatus; + } + + /** + * Output only. Current state of this Future Reservation + * @param procurementStatus procurementStatus or {@code null} for none + */ + public FutureReservationStatus setProcurementStatus(java.lang.String procurementStatus) { + this.procurementStatus = procurementStatus; + return this; + } + + /** + * @return value or {@code null} for none + */ + public FutureReservationStatusSpecificSKUProperties getSpecificSkuProperties() { + return specificSkuProperties; + } + + /** + * @param specificSkuProperties specificSkuProperties or {@code null} for none + */ + public FutureReservationStatus setSpecificSkuProperties(FutureReservationStatusSpecificSKUProperties specificSkuProperties) { + this.specificSkuProperties = specificSkuProperties; + return this; + } + + /** + * Output only. Storage pool provisioned capacities for each SKU type. + * @return value or {@code null} for none + */ + public FutureReservationStoragePoolProvisionedCapacity getStoragePoolProvisionedCapacity() { + return storagePoolProvisionedCapacity; + } + + /** + * Output only. Storage pool provisioned capacities for each SKU type. + * @param storagePoolProvisionedCapacity storagePoolProvisionedCapacity or {@code null} for none + */ + public FutureReservationStatus setStoragePoolProvisionedCapacity(FutureReservationStoragePoolProvisionedCapacity storagePoolProvisionedCapacity) { + this.storagePoolProvisionedCapacity = storagePoolProvisionedCapacity; + return this; + } + + @Override + public FutureReservationStatus set(String fieldName, Object value) { + return (FutureReservationStatus) super.set(fieldName, value); + } + + @Override + public FutureReservationStatus clone() { + return (FutureReservationStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusExistingMatchingUsageInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusExistingMatchingUsageInfo.java new file mode 100644 index 00000000000..3346bc87df3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusExistingMatchingUsageInfo.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Represents the existing matching usage for the future reservation. + * + *

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 FutureReservationStatusExistingMatchingUsageInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Count to represent min(FR total_count, + * matching_reserved_capacity+matching_unreserved_instances) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long count; + + /** + * Output only. Timestamp when the matching usage was calculated + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timestamp; + + /** + * Output only. Count to represent min(FR total_count, + * matching_reserved_capacity+matching_unreserved_instances) + * @return value or {@code null} for none + */ + public java.lang.Long getCount() { + return count; + } + + /** + * Output only. Count to represent min(FR total_count, + * matching_reserved_capacity+matching_unreserved_instances) + * @param count count or {@code null} for none + */ + public FutureReservationStatusExistingMatchingUsageInfo setCount(java.lang.Long count) { + this.count = count; + return this; + } + + /** + * Output only. Timestamp when the matching usage was calculated + * @return value or {@code null} for none + */ + public java.lang.String getTimestamp() { + return timestamp; + } + + /** + * Output only. Timestamp when the matching usage was calculated + * @param timestamp timestamp or {@code null} for none + */ + public FutureReservationStatusExistingMatchingUsageInfo setTimestamp(java.lang.String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public FutureReservationStatusExistingMatchingUsageInfo set(String fieldName, Object value) { + return (FutureReservationStatusExistingMatchingUsageInfo) super.set(fieldName, value); + } + + @Override + public FutureReservationStatusExistingMatchingUsageInfo clone() { + return (FutureReservationStatusExistingMatchingUsageInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodState.java new file mode 100644 index 00000000000..276b491328b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodState.java @@ -0,0 +1,195 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The state that the future reservation will be reverted to should the amendment be declined. + * + *

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 FutureReservationStatusLastKnownGoodState extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The description of the FutureReservation before an amendment was + * requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Represents the matching usage for the future reservation before an + * amendment was requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStatusLastKnownGoodStateFutureReservationSpecs futureReservationSpecs; + + /** + * Output only. [Output Only] The lock time of the FutureReservation before an amendment was + * requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lockTime; + + /** + * Output only. [Output Only] The name prefix of the Future Reservation before an amendment was + * requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namePrefix; + + /** + * Output only. [Output Only] The status of the last known good state for the Future Reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String procurementStatus; + + /** + * Output only. [Output Only] The description of the FutureReservation before an amendment was + * requested. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] The description of the FutureReservation before an amendment was + * requested. + * @param description description or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Represents the matching usage for the future reservation before an + * amendment was requested. + * @return value or {@code null} for none + */ + public FutureReservationStatusExistingMatchingUsageInfo getExistingMatchingUsageInfo() { + return existingMatchingUsageInfo; + } + + /** + * Output only. [Output Only] Represents the matching usage for the future reservation before an + * amendment was requested. + * @param existingMatchingUsageInfo existingMatchingUsageInfo or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState setExistingMatchingUsageInfo(FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo) { + this.existingMatchingUsageInfo = existingMatchingUsageInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs getFutureReservationSpecs() { + return futureReservationSpecs; + } + + /** + * @param futureReservationSpecs futureReservationSpecs or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState setFutureReservationSpecs(FutureReservationStatusLastKnownGoodStateFutureReservationSpecs futureReservationSpecs) { + this.futureReservationSpecs = futureReservationSpecs; + return this; + } + + /** + * Output only. [Output Only] The lock time of the FutureReservation before an amendment was + * requested. + * @return value or {@code null} for none + */ + public java.lang.String getLockTime() { + return lockTime; + } + + /** + * Output only. [Output Only] The lock time of the FutureReservation before an amendment was + * requested. + * @param lockTime lockTime or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState setLockTime(java.lang.String lockTime) { + this.lockTime = lockTime; + return this; + } + + /** + * Output only. [Output Only] The name prefix of the Future Reservation before an amendment was + * requested. + * @return value or {@code null} for none + */ + public java.lang.String getNamePrefix() { + return namePrefix; + } + + /** + * Output only. [Output Only] The name prefix of the Future Reservation before an amendment was + * requested. + * @param namePrefix namePrefix or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState setNamePrefix(java.lang.String namePrefix) { + this.namePrefix = namePrefix; + return this; + } + + /** + * Output only. [Output Only] The status of the last known good state for the Future Reservation. + * @return value or {@code null} for none + */ + public java.lang.String getProcurementStatus() { + return procurementStatus; + } + + /** + * Output only. [Output Only] The status of the last known good state for the Future Reservation. + * @param procurementStatus procurementStatus or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodState setProcurementStatus(java.lang.String procurementStatus) { + this.procurementStatus = procurementStatus; + return this; + } + + @Override + public FutureReservationStatusLastKnownGoodState set(String fieldName, Object value) { + return (FutureReservationStatusLastKnownGoodState) super.set(fieldName, value); + } + + @Override + public FutureReservationStatusLastKnownGoodState clone() { + return (FutureReservationStatusLastKnownGoodState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java new file mode 100644 index 00000000000..f8e4fe562dd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The properties of the last known good state for the Future Reservation. + * + *

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 FutureReservationStatusLastKnownGoodStateFutureReservationSpecs extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The previous share settings of the Future Reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShareSettings shareSettings; + + /** + * Output only. [Output Only] The previous instance related properties of the Future Reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationSpecificSKUProperties specificSkuProperties; + + /** + * Output only. [Output Only] The previous time window of the Future Reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationTimeWindow timeWindow; + + /** + * Output only. [Output Only] The previous share settings of the Future Reservation. + * @return value or {@code null} for none + */ + public ShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Output only. [Output Only] The previous share settings of the Future Reservation. + * @param shareSettings shareSettings or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs setShareSettings(ShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Output only. [Output Only] The previous instance related properties of the Future Reservation. + * @return value or {@code null} for none + */ + public FutureReservationSpecificSKUProperties getSpecificSkuProperties() { + return specificSkuProperties; + } + + /** + * Output only. [Output Only] The previous instance related properties of the Future Reservation. + * @param specificSkuProperties specificSkuProperties or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs setSpecificSkuProperties(FutureReservationSpecificSKUProperties specificSkuProperties) { + this.specificSkuProperties = specificSkuProperties; + return this; + } + + /** + * Output only. [Output Only] The previous time window of the Future Reservation. + * @return value or {@code null} for none + */ + public FutureReservationTimeWindow getTimeWindow() { + return timeWindow; + } + + /** + * Output only. [Output Only] The previous time window of the Future Reservation. + * @param timeWindow timeWindow or {@code null} for none + */ + public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs setTimeWindow(FutureReservationTimeWindow timeWindow) { + this.timeWindow = timeWindow; + return this; + } + + @Override + public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs set(String fieldName, Object value) { + return (FutureReservationStatusLastKnownGoodStateFutureReservationSpecs) super.set(fieldName, value); + } + + @Override + public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs clone() { + return (FutureReservationStatusLastKnownGoodStateFutureReservationSpecs) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusSpecificSKUProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusSpecificSKUProperties.java new file mode 100644 index 00000000000..053bf253570 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStatusSpecificSKUProperties.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; + +/** + * Properties to be set for the Future Reservation. + * + *

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 FutureReservationStatusSpecificSKUProperties extends com.google.api.client.json.GenericJson { + + /** + * ID of the instance template used to populate the Future Reservation properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplateId; + + /** + * ID of the instance template used to populate the Future Reservation properties. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstanceTemplateId() { + return sourceInstanceTemplateId; + } + + /** + * ID of the instance template used to populate the Future Reservation properties. + * @param sourceInstanceTemplateId sourceInstanceTemplateId or {@code null} for none + */ + public FutureReservationStatusSpecificSKUProperties setSourceInstanceTemplateId(java.lang.String sourceInstanceTemplateId) { + this.sourceInstanceTemplateId = sourceInstanceTemplateId; + return this; + } + + @Override + public FutureReservationStatusSpecificSKUProperties set(String fieldName, Object value) { + return (FutureReservationStatusSpecificSKUProperties) super.set(fieldName, value); + } + + @Override + public FutureReservationStatusSpecificSKUProperties clone() { + return (FutureReservationStatusSpecificSKUProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProperties.java new file mode 100644 index 00000000000..9fce79f8641 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProperties.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Storage pool properties for the future reservation. + * + *

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 FutureReservationStoragePoolProperties extends com.google.api.client.json.GenericJson { + + /** + * Requested exapool provisioned capacity in GiB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolExapoolProvisionedCapacityGb requestedExapoolProvisionedCapacityGb; + + /** + * Requested storage pool provisioned capacity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureReservationStoragePoolProvisionedCapacity requestedStoragePoolProvisionedCapacity; + + /** + * Type of the storage pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storagePoolType; + + /** + * Requested exapool provisioned capacity in GiB. + * @return value or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb getRequestedExapoolProvisionedCapacityGb() { + return requestedExapoolProvisionedCapacityGb; + } + + /** + * Requested exapool provisioned capacity in GiB. + * @param requestedExapoolProvisionedCapacityGb requestedExapoolProvisionedCapacityGb or {@code null} for none + */ + public FutureReservationStoragePoolProperties setRequestedExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb requestedExapoolProvisionedCapacityGb) { + this.requestedExapoolProvisionedCapacityGb = requestedExapoolProvisionedCapacityGb; + return this; + } + + /** + * Requested storage pool provisioned capacity. + * @return value or {@code null} for none + */ + public FutureReservationStoragePoolProvisionedCapacity getRequestedStoragePoolProvisionedCapacity() { + return requestedStoragePoolProvisionedCapacity; + } + + /** + * Requested storage pool provisioned capacity. + * @param requestedStoragePoolProvisionedCapacity requestedStoragePoolProvisionedCapacity or {@code null} for none + */ + public FutureReservationStoragePoolProperties setRequestedStoragePoolProvisionedCapacity(FutureReservationStoragePoolProvisionedCapacity requestedStoragePoolProvisionedCapacity) { + this.requestedStoragePoolProvisionedCapacity = requestedStoragePoolProvisionedCapacity; + return this; + } + + /** + * Type of the storage pool. + * @return value or {@code null} for none + */ + public java.lang.String getStoragePoolType() { + return storagePoolType; + } + + /** + * Type of the storage pool. + * @param storagePoolType storagePoolType or {@code null} for none + */ + public FutureReservationStoragePoolProperties setStoragePoolType(java.lang.String storagePoolType) { + this.storagePoolType = storagePoolType; + return this; + } + + @Override + public FutureReservationStoragePoolProperties set(String fieldName, Object value) { + return (FutureReservationStoragePoolProperties) super.set(fieldName, value); + } + + @Override + public FutureReservationStoragePoolProperties clone() { + return (FutureReservationStoragePoolProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProvisionedCapacity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProvisionedCapacity.java new file mode 100644 index 00000000000..e1f9ab2b372 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationStoragePoolProvisionedCapacity.java @@ -0,0 +1,120 @@ +/* + * 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; + +/** + * Storage pool provisioned capacities for each SKU type. + * + *

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 FutureReservationStoragePoolProvisionedCapacity extends com.google.api.client.json.GenericJson { + + /** + * Size of the storage pool in GiB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolProvisionedCapacityGb; + + /** + * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- + * balanced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolProvisionedIops; + + /** + * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is + * hyperdisk-balanced or hyperdisk-throughput. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolProvisionedThroughput; + + /** + * Size of the storage pool in GiB. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolProvisionedCapacityGb() { + return poolProvisionedCapacityGb; + } + + /** + * Size of the storage pool in GiB. + * @param poolProvisionedCapacityGb poolProvisionedCapacityGb or {@code null} for none + */ + public FutureReservationStoragePoolProvisionedCapacity setPoolProvisionedCapacityGb(java.lang.Long poolProvisionedCapacityGb) { + this.poolProvisionedCapacityGb = poolProvisionedCapacityGb; + return this; + } + + /** + * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- + * balanced. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolProvisionedIops() { + return poolProvisionedIops; + } + + /** + * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- + * balanced. + * @param poolProvisionedIops poolProvisionedIops or {@code null} for none + */ + public FutureReservationStoragePoolProvisionedCapacity setPoolProvisionedIops(java.lang.Long poolProvisionedIops) { + this.poolProvisionedIops = poolProvisionedIops; + return this; + } + + /** + * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is + * hyperdisk-balanced or hyperdisk-throughput. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolProvisionedThroughput() { + return poolProvisionedThroughput; + } + + /** + * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is + * hyperdisk-balanced or hyperdisk-throughput. + * @param poolProvisionedThroughput poolProvisionedThroughput or {@code null} for none + */ + public FutureReservationStoragePoolProvisionedCapacity setPoolProvisionedThroughput(java.lang.Long poolProvisionedThroughput) { + this.poolProvisionedThroughput = poolProvisionedThroughput; + return this; + } + + @Override + public FutureReservationStoragePoolProvisionedCapacity set(String fieldName, Object value) { + return (FutureReservationStoragePoolProvisionedCapacity) super.set(fieldName, value); + } + + @Override + public FutureReservationStoragePoolProvisionedCapacity clone() { + return (FutureReservationStoragePoolProvisionedCapacity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationTimeWindow.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationTimeWindow.java new file mode 100644 index 00000000000..bae64a178a4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationTimeWindow.java @@ -0,0 +1,108 @@ +/* + * 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 FutureReservationTimeWindow. + * + *

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 FutureReservationTimeWindow extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration duration; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endTime; + + /** + * Start time of the Future Reservation. The start_time is an RFC3339 string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * @return value or {@code null} for none + */ + public Duration getDuration() { + return duration; + } + + /** + * @param duration duration or {@code null} for none + */ + public FutureReservationTimeWindow setDuration(Duration duration) { + this.duration = duration; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEndTime() { + return endTime; + } + + /** + * @param endTime endTime or {@code null} for none + */ + public FutureReservationTimeWindow setEndTime(java.lang.String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Start time of the Future Reservation. The start_time is an RFC3339 string. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * Start time of the Future Reservation. The start_time is an RFC3339 string. + * @param startTime startTime or {@code null} for none + */ + public FutureReservationTimeWindow setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public FutureReservationTimeWindow set(String fieldName, Object value) { + return (FutureReservationTimeWindow) super.set(fieldName, value); + } + + @Override + public FutureReservationTimeWindow clone() { + return (FutureReservationTimeWindow) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsAggregatedListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsAggregatedListResponse.java new file mode 100644 index 00000000000..2d88b14c915 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsAggregatedListResponse.java @@ -0,0 +1,428 @@ +/* + * 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; + +/** + * Contains a list of future reservations. + * + *

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 FutureReservationsAggregatedListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 Future reservation resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Future reservation resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of Future reservation resources. + * @param items items or {@code null} for none + */ + public FutureReservationsAggregatedListResponse setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list + * response. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list + * response. + * @param kind kind or {@code null} for none + */ + public FutureReservationsAggregatedListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FutureReservationsAggregatedListResponse set(String fieldName, Object value) { + return (FutureReservationsAggregatedListResponse) super.set(fieldName, value); + } + + @Override + public FutureReservationsAggregatedListResponse clone() { + return (FutureReservationsAggregatedListResponse) 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 FutureReservationsAggregatedListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java new file mode 100644 index 00000000000..2a1290a7e9b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -0,0 +1,431 @@ +/* + * 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 FutureReservationsListResponse. + * + *

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 FutureReservationsListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * [Output Only] A list of future reservation 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 FutureReservation 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(FutureReservation.class); + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for + * lists of reservations + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public FutureReservationsListResponse 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 + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public FutureReservationsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * [Output Only] A list of future reservation resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * [Output Only] A list of future reservation resources. + * @param items items or {@code null} for none + */ + public FutureReservationsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for + * lists of reservations + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for + * lists of reservations + * @param kind kind or {@code null} for none + */ + public FutureReservationsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FutureReservationsListResponse 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 FutureReservationsListResponse 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 FutureReservationsListResponse 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 FutureReservationsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FutureReservationsListResponse set(String fieldName, Object value) { + return (FutureReservationsListResponse) super.set(fieldName, value); + } + + @Override + public FutureReservationsListResponse clone() { + return (FutureReservationsListResponse) 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 FutureReservationsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsScopedList.java new file mode 100644 index 00000000000..6d011ade0ba --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureReservationsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 FutureReservationsScopedList. + * + *

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 FutureReservationsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of future reservations contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List futureReservations; + + static { + // hack to force ProGuard to consider FutureReservation 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(FutureReservation.class); + } + + /** + * Informational warning which replaces the list of future reservations when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of future reservations contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getFutureReservations() { + return futureReservations; + } + + /** + * A list of future reservations contained in this scope. + * @param futureReservations futureReservations or {@code null} for none + */ + public FutureReservationsScopedList setFutureReservations(java.util.List futureReservations) { + this.futureReservations = futureReservations; + return this; + } + + /** + * Informational warning which replaces the list of future reservations when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of future reservations when the list is empty. + * @param warning warning or {@code null} for none + */ + public FutureReservationsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FutureReservationsScopedList set(String fieldName, Object value) { + return (FutureReservationsScopedList) super.set(fieldName, value); + } + + @Override + public FutureReservationsScopedList clone() { + return (FutureReservationsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of future reservations when the list is empty. + */ + 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 FutureReservationsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java new file mode 100644 index 00000000000..2ccacd327d1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java @@ -0,0 +1,186 @@ +/* + * 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; + +/** + * Recommendation for single resources specification, to be created in the future. + * + *

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 FutureResourcesRecommendation extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means + * that no location is recommended - see other_locations for details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * List of locations in the request scope that were not recommended. Keys of the map are zones, in + * format 'zones/'. The values are status information indicating the recommendation status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map otherLocations; + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recommendationId; + + /** + * Type of recommendation. Currently only FUTURE_RESERVATION is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recommendationType; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * @param endTime endTime or {@code null} for none + */ + public FutureResourcesRecommendation setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means + * that no location is recommended - see other_locations for details. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means + * that no location is recommended - see other_locations for details. + * @param location location or {@code null} for none + */ + public FutureResourcesRecommendation setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * List of locations in the request scope that were not recommended. Keys of the map are zones, in + * format 'zones/'. The values are status information indicating the recommendation status. + * @return value or {@code null} for none + */ + public java.util.Map getOtherLocations() { + return otherLocations; + } + + /** + * List of locations in the request scope that were not recommended. Keys of the map are zones, in + * format 'zones/'. The values are status information indicating the recommendation status. + * @param otherLocations otherLocations or {@code null} for none + */ + public FutureResourcesRecommendation setOtherLocations(java.util.Map otherLocations) { + this.otherLocations = otherLocations; + return this; + } + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * @return value or {@code null} for none + */ + public java.lang.String getRecommendationId() { + return recommendationId; + } + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * @param recommendationId recommendationId or {@code null} for none + */ + public FutureResourcesRecommendation setRecommendationId(java.lang.String recommendationId) { + this.recommendationId = recommendationId; + return this; + } + + /** + * Type of recommendation. Currently only FUTURE_RESERVATION is supported. + * @return value or {@code null} for none + */ + public java.lang.String getRecommendationType() { + return recommendationType; + } + + /** + * Type of recommendation. Currently only FUTURE_RESERVATION is supported. + * @param recommendationType recommendationType or {@code null} for none + */ + public FutureResourcesRecommendation setRecommendationType(java.lang.String recommendationType) { + this.recommendationType = recommendationType; + return this; + } + + /** + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * @param startTime startTime or {@code null} for none + */ + public FutureResourcesRecommendation setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public FutureResourcesRecommendation set(String fieldName, Object value) { + return (FutureResourcesRecommendation) super.set(fieldName, value); + } + + @Override + public FutureResourcesRecommendation clone() { + return (FutureResourcesRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java new file mode 100644 index 00000000000..6d5b0c60056 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java @@ -0,0 +1,97 @@ +/* + * 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; + +/** + * Information about recommendation status for locations that were allowed but not used by the + * response. + * + *

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 FutureResourcesRecommendationOtherLocation extends com.google.api.client.json.GenericJson { + + /** + * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, + * then details contain information about the parameters of the time window that did not meet the + * required conditions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String details; + + /** + * Status of recommendation in this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, + * then details contain information about the parameters of the time window that did not meet the + * required conditions. + * @return value or {@code null} for none + */ + public java.lang.String getDetails() { + return details; + } + + /** + * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, + * then details contain information about the parameters of the time window that did not meet the + * required conditions. + * @param details details or {@code null} for none + */ + public FutureResourcesRecommendationOtherLocation setDetails(java.lang.String details) { + this.details = details; + return this; + } + + /** + * Status of recommendation in this location. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Status of recommendation in this location. + * @param status status or {@code null} for none + */ + public FutureResourcesRecommendationOtherLocation setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public FutureResourcesRecommendationOtherLocation set(String fieldName, Object value) { + return (FutureResourcesRecommendationOtherLocation) super.set(fieldName, value); + } + + @Override + public FutureResourcesRecommendationOtherLocation clone() { + return (FutureResourcesRecommendationOtherLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java new file mode 100644 index 00000000000..6e2dd704c57 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java @@ -0,0 +1,148 @@ +/* + * 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; + +/** + * Specification of resources to be created at some time in the future within an optionally + * specified set of locations, and within the specified time range. + * + *

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 FutureResourcesSpec extends com.google.api.client.json.GenericJson { + + /** + * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). + * Defaults to DENSE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentType; + + /** + * Optional location policy allowing to exclude some zone(s) in which the resources must not be + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecLocationPolicy locationPolicy; + + /** + * Specification of the reserved resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecTargetResources targetResources; + + /** + * Specification of a time range in which the resources may be created. The time range specifies + * start of resource use and planned end of resource use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FlexibleTimeRange timeRangeSpec; + + /** + * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). + * Defaults to DENSE. + * @return value or {@code null} for none + */ + public java.lang.String getDeploymentType() { + return deploymentType; + } + + /** + * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). + * Defaults to DENSE. + * @param deploymentType deploymentType or {@code null} for none + */ + public FutureResourcesSpec setDeploymentType(java.lang.String deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * Optional location policy allowing to exclude some zone(s) in which the resources must not be + * created. + * @return value or {@code null} for none + */ + public FutureResourcesSpecLocationPolicy getLocationPolicy() { + return locationPolicy; + } + + /** + * Optional location policy allowing to exclude some zone(s) in which the resources must not be + * created. + * @param locationPolicy locationPolicy or {@code null} for none + */ + public FutureResourcesSpec setLocationPolicy(FutureResourcesSpecLocationPolicy locationPolicy) { + this.locationPolicy = locationPolicy; + return this; + } + + /** + * Specification of the reserved resources. + * @return value or {@code null} for none + */ + public FutureResourcesSpecTargetResources getTargetResources() { + return targetResources; + } + + /** + * Specification of the reserved resources. + * @param targetResources targetResources or {@code null} for none + */ + public FutureResourcesSpec setTargetResources(FutureResourcesSpecTargetResources targetResources) { + this.targetResources = targetResources; + return this; + } + + /** + * Specification of a time range in which the resources may be created. The time range specifies + * start of resource use and planned end of resource use. + * @return value or {@code null} for none + */ + public FlexibleTimeRange getTimeRangeSpec() { + return timeRangeSpec; + } + + /** + * Specification of a time range in which the resources may be created. The time range specifies + * start of resource use and planned end of resource use. + * @param timeRangeSpec timeRangeSpec or {@code null} for none + */ + public FutureResourcesSpec setTimeRangeSpec(FlexibleTimeRange timeRangeSpec) { + this.timeRangeSpec = timeRangeSpec; + return this; + } + + @Override + public FutureResourcesSpec set(String fieldName, Object value) { + return (FutureResourcesSpec) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpec clone() { + return (FutureResourcesSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java new file mode 100644 index 00000000000..9773bea49aa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java @@ -0,0 +1,117 @@ +/* + * 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 FutureResourcesSpecAggregateResources. + * + *

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 FutureResourcesSpecAggregateResources extends com.google.api.client.json.GenericJson { + + /** + * Size of the request, in accelerator (chip) count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long acceleratorCount; + + /** + * The VM family that all instances scheduled against this reservation must belong to. Use for TPU + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vmFamily; + + /** + * Workload type. Use for TPU reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadType; + + /** + * Size of the request, in accelerator (chip) count. + * @return value or {@code null} for none + */ + public java.lang.Long getAcceleratorCount() { + return acceleratorCount; + } + + /** + * Size of the request, in accelerator (chip) count. + * @param acceleratorCount acceleratorCount or {@code null} for none + */ + public FutureResourcesSpecAggregateResources setAcceleratorCount(java.lang.Long acceleratorCount) { + this.acceleratorCount = acceleratorCount; + return this; + } + + /** + * The VM family that all instances scheduled against this reservation must belong to. Use for TPU + * reservations. + * @return value or {@code null} for none + */ + public java.lang.String getVmFamily() { + return vmFamily; + } + + /** + * The VM family that all instances scheduled against this reservation must belong to. Use for TPU + * reservations. + * @param vmFamily vmFamily or {@code null} for none + */ + public FutureResourcesSpecAggregateResources setVmFamily(java.lang.String vmFamily) { + this.vmFamily = vmFamily; + return this; + } + + /** + * Workload type. Use for TPU reservations. + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadType() { + return workloadType; + } + + /** + * Workload type. Use for TPU reservations. + * @param workloadType workloadType or {@code null} for none + */ + public FutureResourcesSpecAggregateResources setWorkloadType(java.lang.String workloadType) { + this.workloadType = workloadType; + return this; + } + + @Override + public FutureResourcesSpecAggregateResources set(String fieldName, Object value) { + return (FutureResourcesSpecAggregateResources) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecAggregateResources clone() { + return (FutureResourcesSpecAggregateResources) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java new file mode 100644 index 00000000000..10907bc1be5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for FutureResourcesSpecLocalSsdPartition. + * + *

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 FutureResourcesSpecLocalSsdPartition extends com.google.api.client.json.GenericJson { + + /** + * Disk interface. Defaults to SCSI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskInterface; + + /** + * The size of the disk in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Disk interface. Defaults to SCSI. + * @return value or {@code null} for none + */ + public java.lang.String getDiskInterface() { + return diskInterface; + } + + /** + * Disk interface. Defaults to SCSI. + * @param diskInterface diskInterface or {@code null} for none + */ + public FutureResourcesSpecLocalSsdPartition setDiskInterface(java.lang.String diskInterface) { + this.diskInterface = diskInterface; + return this; + } + + /** + * The size of the disk in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * The size of the disk in GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public FutureResourcesSpecLocalSsdPartition setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + @Override + public FutureResourcesSpecLocalSsdPartition set(String fieldName, Object value) { + return (FutureResourcesSpecLocalSsdPartition) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecLocalSsdPartition clone() { + return (FutureResourcesSpecLocalSsdPartition) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java new file mode 100644 index 00000000000..80098785f4b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * Specification of locations to create resources in. + * + *

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 FutureResourcesSpecLocationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Preferences for specified locations. Keys of the map are locations - zones, in format of + * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is + * ALLOWed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locations; + + /** + * Preferences for specified locations. Keys of the map are locations - zones, in format of + * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is + * ALLOWed. + * @return value or {@code null} for none + */ + public java.util.Map getLocations() { + return locations; + } + + /** + * Preferences for specified locations. Keys of the map are locations - zones, in format of + * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is + * ALLOWed. + * @param locations locations or {@code null} for none + */ + public FutureResourcesSpecLocationPolicy setLocations(java.util.Map locations) { + this.locations = locations; + return this; + } + + @Override + public FutureResourcesSpecLocationPolicy set(String fieldName, Object value) { + return (FutureResourcesSpecLocationPolicy) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecLocationPolicy clone() { + return (FutureResourcesSpecLocationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java new file mode 100644 index 00000000000..1bdaa0ec064 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.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; + +/** + * Preference for a single specified location. + * + *

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 FutureResourcesSpecLocationPolicyLocation extends com.google.api.client.json.GenericJson { + + /** + * Preference for this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String preference; + + /** + * Preference for this location. + * @return value or {@code null} for none + */ + public java.lang.String getPreference() { + return preference; + } + + /** + * Preference for this location. + * @param preference preference or {@code null} for none + */ + public FutureResourcesSpecLocationPolicyLocation setPreference(java.lang.String preference) { + this.preference = preference; + return this; + } + + @Override + public FutureResourcesSpecLocationPolicyLocation set(String fieldName, Object value) { + return (FutureResourcesSpecLocationPolicyLocation) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecLocationPolicyLocation clone() { + return (FutureResourcesSpecLocationPolicyLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java new file mode 100644 index 00000000000..89b5472ab03 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java @@ -0,0 +1,132 @@ +/* + * 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 FutureResourcesSpecSpecificSKUResources. + * + *

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 FutureResourcesSpecSpecificSKUResources extends com.google.api.client.json.GenericJson { + + /** + * Size of the request, in instance count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long instanceCount; + + /** + * Local SSD partitions. You do not have to include SSD partitions that are built in the machine + * type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List localSsdPartitions; + + static { + // hack to force ProGuard to consider FutureResourcesSpecLocalSsdPartition 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(FutureResourcesSpecLocalSsdPartition.class); + } + + /** + * The machine type to use for instances that will use the reservation. This field only accepts + * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. + * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * Size of the request, in instance count. + * @return value or {@code null} for none + */ + public java.lang.Long getInstanceCount() { + return instanceCount; + } + + /** + * Size of the request, in instance count. + * @param instanceCount instanceCount or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources setInstanceCount(java.lang.Long instanceCount) { + this.instanceCount = instanceCount; + return this; + } + + /** + * Local SSD partitions. You do not have to include SSD partitions that are built in the machine + * type. + * @return value or {@code null} for none + */ + public java.util.List getLocalSsdPartitions() { + return localSsdPartitions; + } + + /** + * Local SSD partitions. You do not have to include SSD partitions that are built in the machine + * type. + * @param localSsdPartitions localSsdPartitions or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources setLocalSsdPartitions(java.util.List localSsdPartitions) { + this.localSsdPartitions = localSsdPartitions; + return this; + } + + /** + * The machine type to use for instances that will use the reservation. This field only accepts + * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. + * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU + * reservations. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type to use for instances that will use the reservation. This field only accepts + * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. + * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU + * reservations. + * @param machineType machineType or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + @Override + public FutureResourcesSpecSpecificSKUResources set(String fieldName, Object value) { + return (FutureResourcesSpecSpecificSKUResources) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecSpecificSKUResources clone() { + return (FutureResourcesSpecSpecificSKUResources) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java new file mode 100644 index 00000000000..6c6dfb971ae --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Specification of reserved resources. + * + *

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 FutureResourcesSpecTargetResources extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecAggregateResources aggregateResources; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FutureResourcesSpecSpecificSKUResources specificSkuResources; + + /** + * @return value or {@code null} for none + */ + public FutureResourcesSpecAggregateResources getAggregateResources() { + return aggregateResources; + } + + /** + * @param aggregateResources aggregateResources or {@code null} for none + */ + public FutureResourcesSpecTargetResources setAggregateResources(FutureResourcesSpecAggregateResources aggregateResources) { + this.aggregateResources = aggregateResources; + return this; + } + + /** + * @return value or {@code null} for none + */ + public FutureResourcesSpecSpecificSKUResources getSpecificSkuResources() { + return specificSkuResources; + } + + /** + * @param specificSkuResources specificSkuResources or {@code null} for none + */ + public FutureResourcesSpecTargetResources setSpecificSkuResources(FutureResourcesSpecSpecificSKUResources specificSkuResources) { + this.specificSkuResources = specificSkuResources; + return this; + } + + @Override + public FutureResourcesSpecTargetResources set(String fieldName, Object value) { + return (FutureResourcesSpecTargetResources) super.set(fieldName, value); + } + + @Override + public FutureResourcesSpecTargetResources clone() { + return (FutureResourcesSpecTargetResources) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCHealthCheck.java new file mode 100644 index 00000000000..8ee13b40332 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCHealthCheck.java @@ -0,0 +1,210 @@ +/* + * 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 GRPCHealthCheck. + * + *

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 GRPCHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The gRPC service name for the health check. This field is optional. The value of + * grpc_service_name has the following meanings by convention: + * + * - Empty service_name means the overall status of all services at the backend. + * + * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the + * service. + * + * The grpc_service_name can only be ASCII. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String grpcServiceName; + + /** + * The TCP port number to which the health check prober sends packets. Valid values are 1 through + * 65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * The gRPC service name for the health check. This field is optional. The value of + * grpc_service_name has the following meanings by convention: + * + * - Empty service_name means the overall status of all services at the backend. + * + * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the + * service. + * + * The grpc_service_name can only be ASCII. + * @return value or {@code null} for none + */ + public java.lang.String getGrpcServiceName() { + return grpcServiceName; + } + + /** + * The gRPC service name for the health check. This field is optional. The value of + * grpc_service_name has the following meanings by convention: + * + * - Empty service_name means the overall status of all services at the backend. + * + * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the + * service. + * + * The grpc_service_name can only be ASCII. + * @param grpcServiceName grpcServiceName or {@code null} for none + */ + public GRPCHealthCheck setGrpcServiceName(java.lang.String grpcServiceName) { + this.grpcServiceName = grpcServiceName; + return this; + } + + /** + * The TCP port number to which the health check prober sends packets. Valid values are 1 through + * 65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. Valid values are 1 through + * 65535. + * @param port port or {@code null} for none + */ + public GRPCHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Not supported. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Not supported. + * @param portName portName or {@code null} for none + */ + public GRPCHealthCheck setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public GRPCHealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + @Override + public GRPCHealthCheck set(String fieldName, Object value) { + return (GRPCHealthCheck) super.set(fieldName, value); + } + + @Override + public GRPCHealthCheck clone() { + return (GRPCHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCTLSHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCTLSHealthCheck.java new file mode 100644 index 00000000000..f779e52378b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GRPCTLSHealthCheck.java @@ -0,0 +1,186 @@ +/* + * 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 GRPCTLSHealthCheck. + * + *

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 GRPCTLSHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The gRPC service name for the health check. This field is optional. The value of + * grpc_service_name has the following meanings by convention: + * + * - Empty service_name means the overall status of all services at the backend. + * + * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the + * service. + * + * The grpc_service_name can only be ASCII. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String grpcServiceName; + + /** + * The TCP port number to which the health check prober sends packets. Valid values are 1 through + * 65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * The gRPC service name for the health check. This field is optional. The value of + * grpc_service_name has the following meanings by convention: + * + * - Empty service_name means the overall status of all services at the backend. + * + * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the + * service. + * + * The grpc_service_name can only be ASCII. + * @return value or {@code null} for none + */ + public java.lang.String getGrpcServiceName() { + return grpcServiceName; + } + + /** + * The gRPC service name for the health check. This field is optional. The value of + * grpc_service_name has the following meanings by convention: + * + * - Empty service_name means the overall status of all services at the backend. + * + * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the + * service. + * + * The grpc_service_name can only be ASCII. + * @param grpcServiceName grpcServiceName or {@code null} for none + */ + public GRPCTLSHealthCheck setGrpcServiceName(java.lang.String grpcServiceName) { + this.grpcServiceName = grpcServiceName; + return this; + } + + /** + * The TCP port number to which the health check prober sends packets. Valid values are 1 through + * 65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. Valid values are 1 through + * 65535. + * @param port port or {@code null} for none + */ + public GRPCTLSHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public GRPCTLSHealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + @Override + public GRPCTLSHealthCheck set(String fieldName, Object value) { + return (GRPCTLSHealthCheck) super.set(fieldName, value); + } + + @Override + public GRPCTLSHealthCheck clone() { + return (GRPCTLSHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.java new file mode 100644 index 00000000000..ed2f7d1f033 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadata.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; + +/** + * Metadata for GetHealth operations. + * + *

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 GetHealthOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The health information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetHealthOperationMetadataHealthInfo healthInfo; + + /** + * Output only. The health information. + * @return value or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo getHealthInfo() { + return healthInfo; + } + + /** + * Output only. The health information. + * @param healthInfo healthInfo or {@code null} for none + */ + public GetHealthOperationMetadata setHealthInfo(GetHealthOperationMetadataHealthInfo healthInfo) { + this.healthInfo = healthInfo; + return this; + } + + @Override + public GetHealthOperationMetadata set(String fieldName, Object value) { + return (GetHealthOperationMetadata) super.set(fieldName, value); + } + + @Override + public GetHealthOperationMetadata clone() { + return (GetHealthOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java new file mode 100644 index 00000000000..04087ae9ace --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetHealthOperationMetadataHealthInfo.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * Health information. + * + *

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 GetHealthOperationMetadataHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The availability SLO status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilitySloStatus; + + /** + * Output only. The health status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * Output only. The repair category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String repairCategory; + + /** + * Output only. The reason for unhealthy status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String unhealthyReason; + + /** + * Output only. The time when health info was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The availability SLO status. + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilitySloStatus() { + return availabilitySloStatus; + } + + /** + * Output only. The availability SLO status. + * @param availabilitySloStatus availabilitySloStatus or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setAvailabilitySloStatus(java.lang.String availabilitySloStatus) { + this.availabilitySloStatus = availabilitySloStatus; + return this; + } + + /** + * Output only. The health status. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * Output only. The health status. + * @param healthStatus healthStatus or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * Output only. The repair category. + * @return value or {@code null} for none + */ + public java.lang.String getRepairCategory() { + return repairCategory; + } + + /** + * Output only. The repair category. + * @param repairCategory repairCategory or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setRepairCategory(java.lang.String repairCategory) { + this.repairCategory = repairCategory; + return this; + } + + /** + * Output only. The reason for unhealthy status. + * @return value or {@code null} for none + */ + public java.lang.String getUnhealthyReason() { + return unhealthyReason; + } + + /** + * Output only. The reason for unhealthy status. + * @param unhealthyReason unhealthyReason or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setUnhealthyReason(java.lang.String unhealthyReason) { + this.unhealthyReason = unhealthyReason; + return this; + } + + /** + * Output only. The time when health info was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time when health info was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GetHealthOperationMetadataHealthInfo setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GetHealthOperationMetadataHealthInfo set(String fieldName, Object value) { + return (GetHealthOperationMetadataHealthInfo) super.set(fieldName, value); + } + + @Override + public GetHealthOperationMetadataHealthInfo clone() { + return (GetHealthOperationMetadataHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java new file mode 100644 index 00000000000..9333f196ff6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java @@ -0,0 +1,63 @@ +/* + * 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 GetVersionOperationMetadata. + * + *

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 GetVersionOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetVersionOperationMetadataSbomInfo inlineSbomInfo; + + /** + * @return value or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo getInlineSbomInfo() { + return inlineSbomInfo; + } + + /** + * @param inlineSbomInfo inlineSbomInfo or {@code null} for none + */ + public GetVersionOperationMetadata setInlineSbomInfo(GetVersionOperationMetadataSbomInfo inlineSbomInfo) { + this.inlineSbomInfo = inlineSbomInfo; + return this; + } + + @Override + public GetVersionOperationMetadata set(String fieldName, Object value) { + return (GetVersionOperationMetadata) super.set(fieldName, value); + } + + @Override + public GetVersionOperationMetadata clone() { + return (GetVersionOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java new file mode 100644 index 00000000000..5aeb2efaa2e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for GetVersionOperationMetadataSbomInfo. + * + *

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 GetVersionOperationMetadataSbomInfo extends com.google.api.client.json.GenericJson { + + /** + * A mapping of components to their currently-applied versions or other appropriate identifiers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map currentComponentVersions; + + /** + * A mapping of components to their target versions or other appropriate identifiers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map targetComponentVersions; + + /** + * A mapping of components to their currently-applied versions or other appropriate identifiers. + * @return value or {@code null} for none + */ + public java.util.Map getCurrentComponentVersions() { + return currentComponentVersions; + } + + /** + * A mapping of components to their currently-applied versions or other appropriate identifiers. + * @param currentComponentVersions currentComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { + this.currentComponentVersions = currentComponentVersions; + return this; + } + + /** + * A mapping of components to their target versions or other appropriate identifiers. + * @return value or {@code null} for none + */ + public java.util.Map getTargetComponentVersions() { + return targetComponentVersions; + } + + /** + * A mapping of components to their target versions or other appropriate identifiers. + * @param targetComponentVersions targetComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setTargetComponentVersions(java.util.Map targetComponentVersions) { + this.targetComponentVersions = targetComponentVersions; + return this; + } + + @Override + public GetVersionOperationMetadataSbomInfo set(String fieldName, Object value) { + return (GetVersionOperationMetadataSbomInfo) super.set(fieldName, value); + } + + @Override + public GetVersionOperationMetadataSbomInfo clone() { + return (GetVersionOperationMetadataSbomInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalAddressesMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalAddressesMoveRequest.java new file mode 100644 index 00000000000..65443fb4a6e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalAddressesMoveRequest.java @@ -0,0 +1,108 @@ +/* + * 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 GlobalAddressesMoveRequest. + * + *

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 GlobalAddressesMoveRequest extends com.google.api.client.json.GenericJson { + + /** + * An optional destination address description if intended to be different from the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The URL of the destination address to move to. This can be a full or partial URL. For example, + * the following are all valid URLs to a address: - + * https://www.googleapis.com/compute/v1/projects/project/global/addresses/address - + * projects/project/global/addresses/address + * + * Note that destination project must be different from the source project. + * So/global/addresses/address is not valid partial url. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationAddress; + + /** + * An optional destination address description if intended to be different from the source. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional destination address description if intended to be different from the source. + * @param description description or {@code null} for none + */ + public GlobalAddressesMoveRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The URL of the destination address to move to. This can be a full or partial URL. For example, + * the following are all valid URLs to a address: - + * https://www.googleapis.com/compute/v1/projects/project/global/addresses/address - + * projects/project/global/addresses/address + * + * Note that destination project must be different from the source project. + * So/global/addresses/address is not valid partial url. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationAddress() { + return destinationAddress; + } + + /** + * The URL of the destination address to move to. This can be a full or partial URL. For example, + * the following are all valid URLs to a address: - + * https://www.googleapis.com/compute/v1/projects/project/global/addresses/address - + * projects/project/global/addresses/address + * + * Note that destination project must be different from the source project. + * So/global/addresses/address is not valid partial url. + * @param destinationAddress destinationAddress or {@code null} for none + */ + public GlobalAddressesMoveRequest setDestinationAddress(java.lang.String destinationAddress) { + this.destinationAddress = destinationAddress; + return this; + } + + @Override + public GlobalAddressesMoveRequest set(String fieldName, Object value) { + return (GlobalAddressesMoveRequest) super.set(fieldName, value); + } + + @Override + public GlobalAddressesMoveRequest clone() { + return (GlobalAddressesMoveRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java new file mode 100644 index 00000000000..db88a784c8a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.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; + +/** + * Model definition for GlobalNetworkEndpointGroupsAttachEndpointsRequest. + * + *

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 GlobalNetworkEndpointGroupsAttachEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of network endpoints to be attached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpoints; + + /** + * The list of network endpoints to be attached. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpoints() { + return networkEndpoints; + } + + /** + * The list of network endpoints to be attached. + * @param networkEndpoints networkEndpoints or {@code null} for none + */ + public GlobalNetworkEndpointGroupsAttachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { + this.networkEndpoints = networkEndpoints; + return this; + } + + @Override + public GlobalNetworkEndpointGroupsAttachEndpointsRequest set(String fieldName, Object value) { + return (GlobalNetworkEndpointGroupsAttachEndpointsRequest) super.set(fieldName, value); + } + + @Override + public GlobalNetworkEndpointGroupsAttachEndpointsRequest clone() { + return (GlobalNetworkEndpointGroupsAttachEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java new file mode 100644 index 00000000000..5c2b24243ba --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.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; + +/** + * Model definition for GlobalNetworkEndpointGroupsDetachEndpointsRequest. + * + *

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 GlobalNetworkEndpointGroupsDetachEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of network endpoints to be detached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpoints; + + /** + * The list of network endpoints to be detached. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpoints() { + return networkEndpoints; + } + + /** + * The list of network endpoints to be detached. + * @param networkEndpoints networkEndpoints or {@code null} for none + */ + public GlobalNetworkEndpointGroupsDetachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { + this.networkEndpoints = networkEndpoints; + return this; + } + + @Override + public GlobalNetworkEndpointGroupsDetachEndpointsRequest set(String fieldName, Object value) { + return (GlobalNetworkEndpointGroupsDetachEndpointsRequest) super.set(fieldName, value); + } + + @Override + public GlobalNetworkEndpointGroupsDetachEndpointsRequest clone() { + return (GlobalNetworkEndpointGroupsDetachEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalOrganizationSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalOrganizationSetPolicyRequest.java new file mode 100644 index 00000000000..e22725b5eb6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalOrganizationSetPolicyRequest.java @@ -0,0 +1,162 @@ +/* + * 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 GlobalOrganizationSetPolicyRequest. + * + *

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 GlobalOrganizationSetPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding 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(Binding.class); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @param bindings bindings or {@code null} for none + */ + public GlobalOrganizationSetPolicyRequest setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public GlobalOrganizationSetPolicyRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GlobalOrganizationSetPolicyRequest encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public GlobalOrganizationSetPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + @Override + public GlobalOrganizationSetPolicyRequest set(String fieldName, Object value) { + return (GlobalOrganizationSetPolicyRequest) super.set(fieldName, value); + } + + @Override + public GlobalOrganizationSetPolicyRequest clone() { + return (GlobalOrganizationSetPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetLabelsRequest.java new file mode 100644 index 00000000000..624dc06635b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetLabelsRequest.java @@ -0,0 +1,144 @@ +/* + * 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 GlobalSetLabelsRequest. + * + *

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 GlobalSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash when updating or + * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() + * request to the resource to get the latest fingerprint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * A list of labels to apply for this resource. Each label must comply with the requirements for + * labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my- + * label": ""). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash when updating or + * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() + * request to the resource to get the latest fingerprint. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash when updating or + * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() + * request to the resource to get the latest fingerprint. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash when updating or + * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() + * request to the resource to get the latest fingerprint. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public GlobalSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash when updating or + * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() + * request to the resource to get the latest fingerprint. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GlobalSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * A list of labels to apply for this resource. Each label must comply with the requirements for + * labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my- + * label": ""). + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * A list of labels to apply for this resource. Each label must comply with the requirements for + * labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my- + * label": ""). + * @param labels labels or {@code null} for none + */ + public GlobalSetLabelsRequest setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + @Override + public GlobalSetLabelsRequest set(String fieldName, Object value) { + return (GlobalSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public GlobalSetLabelsRequest clone() { + return (GlobalSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetPolicyRequest.java new file mode 100644 index 00000000000..0c53ec4fa6e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalSetPolicyRequest.java @@ -0,0 +1,162 @@ +/* + * 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 GlobalSetPolicyRequest. + * + *

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 GlobalSetPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding 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(Binding.class); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @param bindings bindings or {@code null} for none + */ + public GlobalSetPolicyRequest setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public GlobalSetPolicyRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public GlobalSetPolicyRequest encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public GlobalSetPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + @Override + public GlobalSetPolicyRequest set(String fieldName, Object value) { + return (GlobalSetPolicyRequest) super.set(fieldName, value); + } + + @Override + public GlobalSetPolicyRequest clone() { + return (GlobalSetPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java new file mode 100644 index 00000000000..b52d5081698 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java @@ -0,0 +1,393 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message describing GlobalVmExtensionPolicy object. + * + *

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 GlobalVmExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Map from extension (eg: "cloudops") to its policy configuration. The key is the name + * of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map extensionPolicies; + + /** + * 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; + + /** + * Optional. Selector to target VMs for a policy. There is a logical "AND" between + * instance_selectors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceSelectors; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * globalVmExtensionPolicies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Optional. Used to resolve conflicts when multiple policies are active for the same extension. + * Defaults to 0. + * + * Larger the number, higher the priority. When the priority is the same, the policy with the + * newer create time has higher priority. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * Required. The rollout strategy and status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GlobalVmExtensionPolicyRolloutOperation rolloutOperation; + + /** + * Output only. [Output Only] The scoped resource status. It's only for tracking the purging + * status of the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scopedResourceStatus; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public GlobalVmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public GlobalVmExtensionPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Map from extension (eg: "cloudops") to its policy configuration. The key is the name + * of the extension. + * @return value or {@code null} for none + */ + public java.util.Map getExtensionPolicies() { + return extensionPolicies; + } + + /** + * Required. Map from extension (eg: "cloudops") to its policy configuration. The key is the name + * of the extension. + * @param extensionPolicies extensionPolicies or {@code null} for none + */ + public GlobalVmExtensionPolicy setExtensionPolicies(java.util.Map extensionPolicies) { + this.extensionPolicies = extensionPolicies; + 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 GlobalVmExtensionPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Optional. Selector to target VMs for a policy. There is a logical "AND" between + * instance_selectors. + * @return value or {@code null} for none + */ + public java.util.List getInstanceSelectors() { + return instanceSelectors; + } + + /** + * Optional. Selector to target VMs for a policy. There is a logical "AND" between + * instance_selectors. + * @param instanceSelectors instanceSelectors or {@code null} for none + */ + public GlobalVmExtensionPolicy setInstanceSelectors(java.util.List instanceSelectors) { + this.instanceSelectors = instanceSelectors; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * globalVmExtensionPolicies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * globalVmExtensionPolicies. + * @param kind kind or {@code null} for none + */ + public GlobalVmExtensionPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 GlobalVmExtensionPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Used to resolve conflicts when multiple policies are active for the same extension. + * Defaults to 0. + * + * Larger the number, higher the priority. When the priority is the same, the policy with the + * newer create time has higher priority. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Optional. Used to resolve conflicts when multiple policies are active for the same extension. + * Defaults to 0. + * + * Larger the number, higher the priority. When the priority is the same, the policy with the + * newer create time has higher priority. + * @param priority priority or {@code null} for none + */ + public GlobalVmExtensionPolicy setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * Required. The rollout strategy and status. + * @return value or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperation getRolloutOperation() { + return rolloutOperation; + } + + /** + * Required. The rollout strategy and status. + * @param rolloutOperation rolloutOperation or {@code null} for none + */ + public GlobalVmExtensionPolicy setRolloutOperation(GlobalVmExtensionPolicyRolloutOperation rolloutOperation) { + this.rolloutOperation = rolloutOperation; + return this; + } + + /** + * Output only. [Output Only] The scoped resource status. It's only for tracking the purging + * status of the policy. + * @return value or {@code null} for none + */ + public java.lang.String getScopedResourceStatus() { + return scopedResourceStatus; + } + + /** + * Output only. [Output Only] The scoped resource status. It's only for tracking the purging + * status of the policy. + * @param scopedResourceStatus scopedResourceStatus or {@code null} for none + */ + public GlobalVmExtensionPolicy setScopedResourceStatus(java.lang.String scopedResourceStatus) { + this.scopedResourceStatus = scopedResourceStatus; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public GlobalVmExtensionPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public GlobalVmExtensionPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public GlobalVmExtensionPolicy setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + + @Override + public GlobalVmExtensionPolicy set(String fieldName, Object value) { + return (GlobalVmExtensionPolicy) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicy clone() { + return (GlobalVmExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java new file mode 100644 index 00000000000..2fbefef35f9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Policy for a single extension. + * + *

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 GlobalVmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The version pinning for the extension. If empty, the extension will be installed with + * the latest version released by the extension producer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pinnedVersion; + + /** + * Optional. String configuration. Any string payload that the extension understands. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringConfig; + + /** + * Optional. The version pinning for the extension. If empty, the extension will be installed with + * the latest version released by the extension producer. + * @return value or {@code null} for none + */ + public java.lang.String getPinnedVersion() { + return pinnedVersion; + } + + /** + * Optional. The version pinning for the extension. If empty, the extension will be installed with + * the latest version released by the extension producer. + * @param pinnedVersion pinnedVersion or {@code null} for none + */ + public GlobalVmExtensionPolicyExtensionPolicy setPinnedVersion(java.lang.String pinnedVersion) { + this.pinnedVersion = pinnedVersion; + return this; + } + + /** + * Optional. String configuration. Any string payload that the extension understands. + * @return value or {@code null} for none + */ + public java.lang.String getStringConfig() { + return stringConfig; + } + + /** + * Optional. String configuration. Any string payload that the extension understands. + * @param stringConfig stringConfig or {@code null} for none + */ + public GlobalVmExtensionPolicyExtensionPolicy setStringConfig(java.lang.String stringConfig) { + this.stringConfig = stringConfig; + return this; + } + + @Override + public GlobalVmExtensionPolicyExtensionPolicy set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyExtensionPolicy) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyExtensionPolicy clone() { + return (GlobalVmExtensionPolicyExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstanceSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstanceSelector.java new file mode 100644 index 00000000000..d9b3dcf6b2a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstanceSelector.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; + +/** + * Selector to target VMs for a zone VM extension policy. + * + *

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 GlobalVmExtensionPolicyInstanceSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. Labels within the LabelSelector are OR'd. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GlobalVmExtensionPolicyLabelSelector labelSelector; + + /** + * Optional. Labels within the LabelSelector are OR'd. + * @return value or {@code null} for none + */ + public GlobalVmExtensionPolicyLabelSelector getLabelSelector() { + return labelSelector; + } + + /** + * Optional. Labels within the LabelSelector are OR'd. + * @param labelSelector labelSelector or {@code null} for none + */ + public GlobalVmExtensionPolicyInstanceSelector setLabelSelector(GlobalVmExtensionPolicyLabelSelector labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + @Override + public GlobalVmExtensionPolicyInstanceSelector set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyInstanceSelector) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyInstanceSelector clone() { + return (GlobalVmExtensionPolicyInstanceSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyLabelSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyLabelSelector.java new file mode 100644 index 00000000000..079891d41aa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyLabelSelector.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; + +/** + * A LabelSelector is applicable for a VM only if it matches all labels in the LabelSelector. + * + *

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 GlobalVmExtensionPolicyLabelSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. Labels as key value pairs. A VM should contain all the pairs specified in this map to + * be selected; Labels within the LabelSelector are OR'ed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map inclusionLabels; + + /** + * Optional. Labels as key value pairs. A VM should contain all the pairs specified in this map to + * be selected; Labels within the LabelSelector are OR'ed. + * @return value or {@code null} for none + */ + public java.util.Map getInclusionLabels() { + return inclusionLabels; + } + + /** + * Optional. Labels as key value pairs. A VM should contain all the pairs specified in this map to + * be selected; Labels within the LabelSelector are OR'ed. + * @param inclusionLabels inclusionLabels or {@code null} for none + */ + public GlobalVmExtensionPolicyLabelSelector setInclusionLabels(java.util.Map inclusionLabels) { + this.inclusionLabels = inclusionLabels; + return this; + } + + @Override + public GlobalVmExtensionPolicyLabelSelector set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyLabelSelector) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyLabelSelector clone() { + return (GlobalVmExtensionPolicyLabelSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyList.java new file mode 100644 index 00000000000..42ae1906c33 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyList.java @@ -0,0 +1,428 @@ +/* + * 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 list global VM extension policy resources. + * + *

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 GlobalVmExtensionPolicyList extends com.google.api.client.json.GenericJson { + + /** + * 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 GlobalVmExtensionPolicy 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 GlobalVmExtensionPolicy 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(GlobalVmExtensionPolicy.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of GlobalVmExtensionPolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of GlobalVmExtensionPolicy resources. + * @param items items or {@code null} for none + */ + public GlobalVmExtensionPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public GlobalVmExtensionPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public GlobalVmExtensionPolicyList set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyList) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyList clone() { + return (GlobalVmExtensionPolicyList) 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 GlobalVmExtensionPolicyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java new file mode 100644 index 00000000000..84a7cc8f18f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents the rollout operation + * + *

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 GlobalVmExtensionPolicyRolloutOperation extends com.google.api.client.json.GenericJson { + + /** + * Required. The rollout input which defines the rollout plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput; + + /** + * Output only. [Output Only] The rollout status of the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus; + + /** + * Required. The rollout input which defines the rollout plan. + * @return value or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutInput getRolloutInput() { + return rolloutInput; + } + + /** + * Required. The rollout input which defines the rollout plan. + * @param rolloutInput rolloutInput or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperation setRolloutInput(GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput) { + this.rolloutInput = rolloutInput; + return this; + } + + /** + * Output only. [Output Only] The rollout status of the policy. + * @return value or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { + return rolloutStatus; + } + + /** + * Output only. [Output Only] The rollout status of the policy. + * @param rolloutStatus rolloutStatus or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperation setRolloutStatus(GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus) { + this.rolloutStatus = rolloutStatus; + return this; + } + + @Override + public GlobalVmExtensionPolicyRolloutOperation set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyRolloutOperation) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyRolloutOperation clone() { + return (GlobalVmExtensionPolicyRolloutOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java new file mode 100644 index 00000000000..9a91e54bcec --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java @@ -0,0 +1,198 @@ +/* + * 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 GlobalVmExtensionPolicyRolloutOperationRolloutInput. + * + *

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 GlobalVmExtensionPolicyRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { + + /** + * Optional. Specifies the behavior of the rollout if a conflict is detected in a project during a + * rollout. This only applies to `insert` and `update` methods. + * + * A conflict occurs in the following cases: + * + * * `insert` method: If the zonal policy already exists when the insert happens. * `update` + * method: If the zonal policy was modified by a zonal API call outside of this rollout. + * + * Possible values are the following: + * + * * `""` (empty string): If a conflict occurs, the local value is not overwritten. This is the + * default behavior. * `"overwrite"`: If a conflict occurs, the local value is overwritten with + * the rollout value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conflictBehavior; + + /** + * Optional. The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Specifies the predefined rollout plan for the policy. Valid values are `SLOW_ROLLOUT` + * and `FAST_ROLLOUT`. The recommended value is `SLOW_ROLLOUT` for progressive rollout. For more + * information, see Rollout plans for global policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String predefinedRolloutPlan; + + /** + * Optional. The UUID that identifies a policy rollout retry attempt for update and delete + * operations. Set this field only when retrying a rollout for an existing extension policy. + * + * * `update` method: Lets you retry policy rollout without changes. An error occurs if you set + * retry_uuid but the policy is modified. * `delete` method: Lets you retry policy deletion + * rollout if the previous deletion rollout is not finished and the policy is in the DELETING + * state. If you set this field when the policy is not in the DELETING state, an error occurs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retryUuid; + + /** + * Optional. Specifies the behavior of the rollout if a conflict is detected in a project during a + * rollout. This only applies to `insert` and `update` methods. + * + * A conflict occurs in the following cases: + * + * * `insert` method: If the zonal policy already exists when the insert happens. * `update` + * method: If the zonal policy was modified by a zonal API call outside of this rollout. + * + * Possible values are the following: + * + * * `""` (empty string): If a conflict occurs, the local value is not overwritten. This is the + * default behavior. * `"overwrite"`: If a conflict occurs, the local value is overwritten with + * the rollout value. + * @return value or {@code null} for none + */ + public java.lang.String getConflictBehavior() { + return conflictBehavior; + } + + /** + * Optional. Specifies the behavior of the rollout if a conflict is detected in a project during a + * rollout. This only applies to `insert` and `update` methods. + * + * A conflict occurs in the following cases: + * + * * `insert` method: If the zonal policy already exists when the insert happens. * `update` + * method: If the zonal policy was modified by a zonal API call outside of this rollout. + * + * Possible values are the following: + * + * * `""` (empty string): If a conflict occurs, the local value is not overwritten. This is the + * default behavior. * `"overwrite"`: If a conflict occurs, the local value is overwritten with + * the rollout value. + * @param conflictBehavior conflictBehavior or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutInput setConflictBehavior(java.lang.String conflictBehavior) { + this.conflictBehavior = conflictBehavior; + return this; + } + + /** + * Optional. The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * @param name name or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutInput setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Specifies the predefined rollout plan for the policy. Valid values are `SLOW_ROLLOUT` + * and `FAST_ROLLOUT`. The recommended value is `SLOW_ROLLOUT` for progressive rollout. For more + * information, see Rollout plans for global policies. + * @return value or {@code null} for none + */ + public java.lang.String getPredefinedRolloutPlan() { + return predefinedRolloutPlan; + } + + /** + * Optional. Specifies the predefined rollout plan for the policy. Valid values are `SLOW_ROLLOUT` + * and `FAST_ROLLOUT`. The recommended value is `SLOW_ROLLOUT` for progressive rollout. For more + * information, see Rollout plans for global policies. + * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { + this.predefinedRolloutPlan = predefinedRolloutPlan; + return this; + } + + /** + * Optional. The UUID that identifies a policy rollout retry attempt for update and delete + * operations. Set this field only when retrying a rollout for an existing extension policy. + * + * * `update` method: Lets you retry policy rollout without changes. An error occurs if you set + * retry_uuid but the policy is modified. * `delete` method: Lets you retry policy deletion + * rollout if the previous deletion rollout is not finished and the policy is in the DELETING + * state. If you set this field when the policy is not in the DELETING state, an error occurs. + * @return value or {@code null} for none + */ + public java.lang.String getRetryUuid() { + return retryUuid; + } + + /** + * Optional. The UUID that identifies a policy rollout retry attempt for update and delete + * operations. Set this field only when retrying a rollout for an existing extension policy. + * + * * `update` method: Lets you retry policy rollout without changes. An error occurs if you set + * retry_uuid but the policy is modified. * `delete` method: Lets you retry policy deletion + * rollout if the previous deletion rollout is not finished and the policy is in the DELETING + * state. If you set this field when the policy is not in the DELETING state, an error occurs. + * @param retryUuid retryUuid or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { + this.retryUuid = retryUuid; + return this; + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutInput set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyRolloutOperationRolloutInput) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutInput clone() { + return (GlobalVmExtensionPolicyRolloutOperationRolloutInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java new file mode 100644 index 00000000000..4b905fd66b1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java @@ -0,0 +1,96 @@ +/* + * 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 GlobalVmExtensionPolicyRolloutOperationRolloutStatus. + * + *

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 GlobalVmExtensionPolicyRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The current rollouts for the latest version of the resource. There + * should be only one current rollout, but for scalability, we make it repeated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List currentRollouts; + + /** + * Output only. [Output Only] The last completed rollout resource. This field will not be + * populated until the first rollout is completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout; + + /** + * Output only. [Output Only] The current rollouts for the latest version of the resource. There + * should be only one current rollout, but for scalability, we make it repeated. + * @return value or {@code null} for none + */ + public java.util.List getCurrentRollouts() { + return currentRollouts; + } + + /** + * Output only. [Output Only] The current rollouts for the latest version of the resource. There + * should be only one current rollout, but for scalability, we make it repeated. + * @param currentRollouts currentRollouts or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setCurrentRollouts(java.util.List currentRollouts) { + this.currentRollouts = currentRollouts; + return this; + } + + /** + * Output only. [Output Only] The last completed rollout resource. This field will not be + * populated until the first rollout is completed. + * @return value or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata getPreviousRollout() { + return previousRollout; + } + + /** + * Output only. [Output Only] The last completed rollout resource. This field will not be + * populated until the first rollout is completed. + * @param previousRollout previousRollout or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setPreviousRollout(GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout) { + this.previousRollout = previousRollout; + return this; + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutStatus set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyRolloutOperationRolloutStatus) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutStatus clone() { + return (GlobalVmExtensionPolicyRolloutOperationRolloutStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java new file mode 100644 index 00000000000..52e24e59562 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java @@ -0,0 +1,144 @@ +/* + * 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 GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. + * + *

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 GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The rollout status for each location. The list of the locations is + * the same as the list of locations in the rollout plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locationRolloutStatus; + + /** + * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** + * Output only. [Output Only] The name of the rollout plan. Ex. + * projects//locations/global/rolloutPlans/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** + * Output only. [Output Only] The overall state of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The rollout status for each location. The list of the locations is + * the same as the list of locations in the rollout plan. + * @return value or {@code null} for none + */ + public java.util.Map getLocationRolloutStatus() { + return locationRolloutStatus; + } + + /** + * Output only. [Output Only] The rollout status for each location. The list of the locations is + * the same as the list of locations in the rollout plan. + * @param locationRolloutStatus locationRolloutStatus or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setLocationRolloutStatus(java.util.Map locationRolloutStatus) { + this.locationRolloutStatus = locationRolloutStatus; + return this; + } + + /** + * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * @return value or {@code null} for none + */ + public java.lang.String getRollout() { + return rollout; + } + + /** + * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * @param rollout rollout or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRollout(java.lang.String rollout) { + this.rollout = rollout; + return this; + } + + /** + * Output only. [Output Only] The name of the rollout plan. Ex. + * projects//locations/global/rolloutPlans/. + * @return value or {@code null} for none + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** + * Output only. [Output Only] The name of the rollout plan. Ex. + * projects//locations/global/rolloutPlans/. + * @param rolloutPlan rolloutPlan or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRolloutPlan(java.lang.String rolloutPlan) { + this.rolloutPlan = rolloutPlan; + return this; + } + + /** + * Output only. [Output Only] The overall state of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The overall state of the rollout. + * @param state state or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata clone() { + return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java new file mode 100644 index 00000000000..692e5153c0e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for + * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. + * + *

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 GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The state of the location rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The state of the location rollout. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The state of the location rollout. + * @param state state or {@code null} for none + */ + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus clone() { + return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java new file mode 100644 index 00000000000..d27adc62861 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GroupMaintenanceInfo.java @@ -0,0 +1,252 @@ +/* + * 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; + +/** + * Maintenance Info for ReservationBlocks. + * + *

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 GroupMaintenanceInfo extends com.google.api.client.json.GenericJson { + + /** + * Describes number of instances that have ongoing maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer instanceMaintenanceOngoingCount; + + /** + * Describes number of instances that have pending maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer instanceMaintenancePendingCount; + + /** + * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the + * block that have ongoing maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maintenanceOngoingCount; + + /** + * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the + * block that have pending maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maintenancePendingCount; + + /** + * The type of maintenance for the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedulingType; + + /** + * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer subblockInfraMaintenanceOngoingCount; + + /** + * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer subblockInfraMaintenancePendingCount; + + /** + * Maintenance information on this group of VMs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UpcomingMaintenance upcomingGroupMaintenance; + + /** + * Describes number of instances that have ongoing maintenance. + * @return value or {@code null} for none + */ + public java.lang.Integer getInstanceMaintenanceOngoingCount() { + return instanceMaintenanceOngoingCount; + } + + /** + * Describes number of instances that have ongoing maintenance. + * @param instanceMaintenanceOngoingCount instanceMaintenanceOngoingCount or {@code null} for none + */ + public GroupMaintenanceInfo setInstanceMaintenanceOngoingCount(java.lang.Integer instanceMaintenanceOngoingCount) { + this.instanceMaintenanceOngoingCount = instanceMaintenanceOngoingCount; + return this; + } + + /** + * Describes number of instances that have pending maintenance. + * @return value or {@code null} for none + */ + public java.lang.Integer getInstanceMaintenancePendingCount() { + return instanceMaintenancePendingCount; + } + + /** + * Describes number of instances that have pending maintenance. + * @param instanceMaintenancePendingCount instanceMaintenancePendingCount or {@code null} for none + */ + public GroupMaintenanceInfo setInstanceMaintenancePendingCount(java.lang.Integer instanceMaintenancePendingCount) { + this.instanceMaintenancePendingCount = instanceMaintenancePendingCount; + return this; + } + + /** + * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the + * block that have ongoing maintenance. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaintenanceOngoingCount() { + return maintenanceOngoingCount; + } + + /** + * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the + * block that have ongoing maintenance. + * @param maintenanceOngoingCount maintenanceOngoingCount or {@code null} for none + */ + public GroupMaintenanceInfo setMaintenanceOngoingCount(java.lang.Integer maintenanceOngoingCount) { + this.maintenanceOngoingCount = maintenanceOngoingCount; + return this; + } + + /** + * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the + * block that have pending maintenance. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaintenancePendingCount() { + return maintenancePendingCount; + } + + /** + * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the + * block that have pending maintenance. + * @param maintenancePendingCount maintenancePendingCount or {@code null} for none + */ + public GroupMaintenanceInfo setMaintenancePendingCount(java.lang.Integer maintenancePendingCount) { + this.maintenancePendingCount = maintenancePendingCount; + return this; + } + + /** + * The type of maintenance for the reservation. + * @return value or {@code null} for none + */ + public java.lang.String getSchedulingType() { + return schedulingType; + } + + /** + * The type of maintenance for the reservation. + * @param schedulingType schedulingType or {@code null} for none + */ + public GroupMaintenanceInfo setSchedulingType(java.lang.String schedulingType) { + this.schedulingType = schedulingType; + return this; + } + + /** + * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + * @return value or {@code null} for none + */ + public java.lang.Integer getSubblockInfraMaintenanceOngoingCount() { + return subblockInfraMaintenanceOngoingCount; + } + + /** + * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. + * @param subblockInfraMaintenanceOngoingCount subblockInfraMaintenanceOngoingCount or {@code null} for none + */ + public GroupMaintenanceInfo setSubblockInfraMaintenanceOngoingCount(java.lang.Integer subblockInfraMaintenanceOngoingCount) { + this.subblockInfraMaintenanceOngoingCount = subblockInfraMaintenanceOngoingCount; + return this; + } + + /** + * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + * @return value or {@code null} for none + */ + public java.lang.Integer getSubblockInfraMaintenancePendingCount() { + return subblockInfraMaintenancePendingCount; + } + + /** + * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock + * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is + * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. + * @param subblockInfraMaintenancePendingCount subblockInfraMaintenancePendingCount or {@code null} for none + */ + public GroupMaintenanceInfo setSubblockInfraMaintenancePendingCount(java.lang.Integer subblockInfraMaintenancePendingCount) { + this.subblockInfraMaintenancePendingCount = subblockInfraMaintenancePendingCount; + return this; + } + + /** + * Maintenance information on this group of VMs. + * @return value or {@code null} for none + */ + public UpcomingMaintenance getUpcomingGroupMaintenance() { + return upcomingGroupMaintenance; + } + + /** + * Maintenance information on this group of VMs. + * @param upcomingGroupMaintenance upcomingGroupMaintenance or {@code null} for none + */ + public GroupMaintenanceInfo setUpcomingGroupMaintenance(UpcomingMaintenance upcomingGroupMaintenance) { + this.upcomingGroupMaintenance = upcomingGroupMaintenance; + return this; + } + + @Override + public GroupMaintenanceInfo set(String fieldName, Object value) { + return (GroupMaintenanceInfo) super.set(fieldName, value); + } + + @Override + public GroupMaintenanceInfo clone() { + return (GroupMaintenanceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributes.java new file mode 100644 index 00000000000..03028ade01e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -0,0 +1,192 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A guest attributes entry. + * + *

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 GuestAttributes extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest + * attributes entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or + * a specified key ('\/\'). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String queryPath; + + /** + * Output only. [Output Only] The value of the requested queried path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuestAttributesValue queryValue; + + /** + * 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; + + /** + * The key to search for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String variableKey; + + /** + * Output only. [Output Only] The value found for the requested key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String variableValue; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest + * attributes entry. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest + * attributes entry. + * @param kind kind or {@code null} for none + */ + public GuestAttributes setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or + * a specified key ('\/\'). + * @return value or {@code null} for none + */ + public java.lang.String getQueryPath() { + return queryPath; + } + + /** + * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or + * a specified key ('\/\'). + * @param queryPath queryPath or {@code null} for none + */ + public GuestAttributes setQueryPath(java.lang.String queryPath) { + this.queryPath = queryPath; + return this; + } + + /** + * Output only. [Output Only] The value of the requested queried path. + * @return value or {@code null} for none + */ + public GuestAttributesValue getQueryValue() { + return queryValue; + } + + /** + * Output only. [Output Only] The value of the requested queried path. + * @param queryValue queryValue or {@code null} for none + */ + public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { + this.queryValue = queryValue; + 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 GuestAttributes setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The key to search for. + * @return value or {@code null} for none + */ + public java.lang.String getVariableKey() { + return variableKey; + } + + /** + * The key to search for. + * @param variableKey variableKey or {@code null} for none + */ + public GuestAttributes setVariableKey(java.lang.String variableKey) { + this.variableKey = variableKey; + return this; + } + + /** + * Output only. [Output Only] The value found for the requested key. + * @return value or {@code null} for none + */ + public java.lang.String getVariableValue() { + return variableValue; + } + + /** + * Output only. [Output Only] The value found for the requested key. + * @param variableValue variableValue or {@code null} for none + */ + public GuestAttributes setVariableValue(java.lang.String variableValue) { + this.variableValue = variableValue; + return this; + } + + @Override + public GuestAttributes set(String fieldName, Object value) { + return (GuestAttributes) super.set(fieldName, value); + } + + @Override + public GuestAttributes clone() { + return (GuestAttributes) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesEntry.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesEntry.java new file mode 100644 index 00000000000..e44fd68c0a9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesEntry.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A guest attributes namespace/key/value entry. + * + *

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 GuestAttributesEntry extends com.google.api.client.json.GenericJson { + + /** + * Key for the guest attribute entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Namespace for the guest attribute entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namespace; + + /** + * Value for the guest attribute entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Key for the guest attribute entry. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Key for the guest attribute entry. + * @param key key or {@code null} for none + */ + public GuestAttributesEntry setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Namespace for the guest attribute entry. + * @return value or {@code null} for none + */ + public java.lang.String getNamespace() { + return namespace; + } + + /** + * Namespace for the guest attribute entry. + * @param namespace namespace or {@code null} for none + */ + public GuestAttributesEntry setNamespace(java.lang.String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Value for the guest attribute entry. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Value for the guest attribute entry. + * @param value value or {@code null} for none + */ + public GuestAttributesEntry setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public GuestAttributesEntry set(String fieldName, Object value) { + return (GuestAttributesEntry) super.set(fieldName, value); + } + + @Override + public GuestAttributesEntry clone() { + return (GuestAttributesEntry) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesValue.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesValue.java new file mode 100644 index 00000000000..04cea2f0440 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestAttributesValue.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; + +/** + * Array of guest attribute namespace/key/value tuples. + * + *

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 GuestAttributesValue extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider GuestAttributesEntry 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(GuestAttributesEntry.class); + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * @param items items or {@code null} for none + */ + public GuestAttributesValue setItems(java.util.List items) { + this.items = items; + return this; + } + + @Override + public GuestAttributesValue set(String fieldName, Object value) { + return (GuestAttributesValue) super.set(fieldName, value); + } + + @Override + public GuestAttributesValue clone() { + return (GuestAttributesValue) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java new file mode 100644 index 00000000000..baf01e0647f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/GuestOsFeature.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Guest OS features. + * + *

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 GuestOsFeature extends com.google.api.client.json.GenericJson { + + /** + * The ID of a supported feature. To add multiple values, use commas to separate values. Set to + * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - + * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE + * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR + * + * For more information, see Enabling guest operating system features. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The ID of a supported feature. To add multiple values, use commas to separate values. Set to + * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - + * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE + * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR + * + * For more information, see Enabling guest operating system features. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The ID of a supported feature. To add multiple values, use commas to separate values. Set to + * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - + * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE + * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE + * - CCA_CAPABLE - SUSPEND_SAFE_FPR + * + * For more information, see Enabling guest operating system features. + * @param type type or {@code null} for none + */ + public GuestOsFeature setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GuestOsFeature set(String fieldName, Object value) { + return (GuestOsFeature) super.set(fieldName, value); + } + + @Override + public GuestOsFeature clone() { + return (GuestOsFeature) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTP2HealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTP2HealthCheck.java new file mode 100644 index 00000000000..e7a3111003c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTP2HealthCheck.java @@ -0,0 +1,282 @@ +/* + * 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 HTTP2HealthCheck. + * + *

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 HTTP2HealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The value of the host header in the HTTP/2 health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * The request path of the HTTP/2 health check request. The default value is/. Must comply + * withRFC3986. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestPath; + + /** + * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String response; + + /** + * The value of the host header in the HTTP/2 health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The value of the host header in the HTTP/2 health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * @param host host or {@code null} for none + */ + public HTTP2HealthCheck setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * @param port port or {@code null} for none + */ + public HTTP2HealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Not supported. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Not supported. + * @param portName portName or {@code null} for none + */ + public HTTP2HealthCheck setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public HTTP2HealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public HTTP2HealthCheck setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * The request path of the HTTP/2 health check request. The default value is/. Must comply + * withRFC3986. + * @return value or {@code null} for none + */ + public java.lang.String getRequestPath() { + return requestPath; + } + + /** + * The request path of the HTTP/2 health check request. The default value is/. Must comply + * withRFC3986. + * @param requestPath requestPath or {@code null} for none + */ + public HTTP2HealthCheck setRequestPath(java.lang.String requestPath) { + this.requestPath = requestPath; + return this; + } + + /** + * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * @return value or {@code null} for none + */ + public java.lang.String getResponse() { + return response; + } + + /** + * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * @param response response or {@code null} for none + */ + public HTTP2HealthCheck setResponse(java.lang.String response) { + this.response = response; + return this; + } + + @Override + public HTTP2HealthCheck set(String fieldName, Object value) { + return (HTTP2HealthCheck) super.set(fieldName, value); + } + + @Override + public HTTP2HealthCheck clone() { + return (HTTP2HealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPHealthCheck.java new file mode 100644 index 00000000000..6351455f7dd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPHealthCheck.java @@ -0,0 +1,285 @@ +/* + * 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 HTTPHealthCheck. + * + *

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 HTTPHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The value of the host header in the HTTP health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The TCP port number to which the health check prober sends packets. The default value is 80. + * Valid values are 1 through65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Also supported in legacy HTTP health checks for target pools. The health check + * supports all backends supported by the backend service provided the backend can be health + * checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, + * and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an + * indirect method of specifying the health check port by referring to the backend service. Only + * supported by backend services for proxy load balancers. Not supported by target pools. Not + * supported by backend services for pass-through load balancers. Supports all backends that can + * be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + * backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * The request path of the HTTP health check request. The default value is/. Must comply + * withRFC3986. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestPath; + + /** + * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String response; + + /** + * The value of the host header in the HTTP health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The value of the host header in the HTTP health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * @param host host or {@code null} for none + */ + public HTTPHealthCheck setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 80. + * Valid values are 1 through65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 80. + * Valid values are 1 through65535. + * @param port port or {@code null} for none + */ + public HTTPHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Not supported. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Not supported. + * @param portName portName or {@code null} for none + */ + public HTTPHealthCheck setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Also supported in legacy HTTP health checks for target pools. The health check + * supports all backends supported by the backend service provided the backend can be health + * checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, + * and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an + * indirect method of specifying the health check port by referring to the backend service. Only + * supported by backend services for proxy load balancers. Not supported by target pools. Not + * supported by backend services for pass-through load balancers. Supports all backends that can + * be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + * backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Also supported in legacy HTTP health checks for target pools. The health check + * supports all backends supported by the backend service provided the backend can be health + * checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, + * and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an + * indirect method of specifying the health check port by referring to the backend service. Only + * supported by backend services for proxy load balancers. Not supported by target pools. Not + * supported by backend services for pass-through load balancers. Supports all backends that can + * be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group + * backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public HTTPHealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public HTTPHealthCheck setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * The request path of the HTTP health check request. The default value is/. Must comply + * withRFC3986. + * @return value or {@code null} for none + */ + public java.lang.String getRequestPath() { + return requestPath; + } + + /** + * The request path of the HTTP health check request. The default value is/. Must comply + * withRFC3986. + * @param requestPath requestPath or {@code null} for none + */ + public HTTPHealthCheck setRequestPath(java.lang.String requestPath) { + this.requestPath = requestPath; + return this; + } + + /** + * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * @return value or {@code null} for none + */ + public java.lang.String getResponse() { + return response; + } + + /** + * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * @param response response or {@code null} for none + */ + public HTTPHealthCheck setResponse(java.lang.String response) { + this.response = response; + return this; + } + + @Override + public HTTPHealthCheck set(String fieldName, Object value) { + return (HTTPHealthCheck) super.set(fieldName, value); + } + + @Override + public HTTPHealthCheck clone() { + return (HTTPHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPSHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPSHealthCheck.java new file mode 100644 index 00000000000..34e91227487 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HTTPSHealthCheck.java @@ -0,0 +1,282 @@ +/* + * 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 HTTPSHealthCheck. + * + *

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 HTTPSHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The value of the host header in the HTTPS health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * The request path of the HTTPS health check request. The default value is/. Must comply + * withRFC3986. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestPath; + + /** + * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String response; + + /** + * The value of the host header in the HTTPS health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The value of the host header in the HTTPS health check request. If left empty (default value), + * the host header is set to the destination IP address to which health check packets are sent. + * The destination IP address depends on the type of load balancer. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest + * @param host host or {@code null} for none + */ + public HTTPSHealthCheck setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * @param port port or {@code null} for none + */ + public HTTPSHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Not supported. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Not supported. + * @param portName portName or {@code null} for none + */ + public HTTPSHealthCheck setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public HTTPSHealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public HTTPSHealthCheck setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * The request path of the HTTPS health check request. The default value is/. Must comply + * withRFC3986. + * @return value or {@code null} for none + */ + public java.lang.String getRequestPath() { + return requestPath; + } + + /** + * The request path of the HTTPS health check request. The default value is/. Must comply + * withRFC3986. + * @param requestPath requestPath or {@code null} for none + */ + public HTTPSHealthCheck setRequestPath(java.lang.String requestPath) { + this.requestPath = requestPath; + return this; + } + + /** + * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * @return value or {@code null} for none + */ + public java.lang.String getResponse() { + return response; + } + + /** + * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status + * code, you can configure the health check to pass only when the backend sends this specific + * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http + * @param response response or {@code null} for none + */ + public HTTPSHealthCheck setResponse(java.lang.String response) { + this.response = response; + return this; + } + + @Override + public HTTPSHealthCheck set(String fieldName, Object value) { + return (HTTPSHealthCheck) super.set(fieldName, value); + } + + @Override + public HTTPSHealthCheck clone() { + return (HTTPSHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaController.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaController.java new file mode 100644 index 00000000000..c672baeebd9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaController.java @@ -0,0 +1,447 @@ +/* + * 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; + +/** + * HaController handles failover for a VM Instance. + * + *

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 HaController extends com.google.api.client.json.GenericJson { + + /** + * Advanced configuration option. If specified, these Backend Services need to be pre-created. + * + * Currently, only one backend service can be specified, and it must be L4 Internal Load Balancer + * (ILB). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List backendServices; + + /** + * 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; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Indicates how failover should be initiated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failoverInitiation; + + /** + * 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 instance that HaController is in charge of. If not specified the HaController's + * resource name will be used instead. 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 instanceName; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Basic networking configuration. Required backend services and forwarding rules will be + * automatically created with default parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerNetworkingAutoConfiguration networkingAutoConfiguration; + + /** + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. The current state of the HA Controller. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] Status information for the HaController resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerStatus status; + + /** + * Map of zone configurations Key: name of the zone Value: ZoneConfiguration + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map zoneConfigurations; + + /** + * Advanced configuration option. If specified, these Backend Services need to be pre-created. + * + * Currently, only one backend service can be specified, and it must be L4 Internal Load Balancer + * (ILB). + * @return value or {@code null} for none + */ + public java.util.List getBackendServices() { + return backendServices; + } + + /** + * Advanced configuration option. If specified, these Backend Services need to be pre-created. + * + * Currently, only one backend service can be specified, and it must be L4 Internal Load Balancer + * (ILB). + * @param backendServices backendServices or {@code null} for none + */ + public HaController setBackendServices(java.util.List backendServices) { + this.backendServices = backendServices; + 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 HaController setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HaController setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Indicates how failover should be initiated. + * @return value or {@code null} for none + */ + public java.lang.String getFailoverInitiation() { + return failoverInitiation; + } + + /** + * Indicates how failover should be initiated. + * @param failoverInitiation failoverInitiation or {@code null} for none + */ + public HaController setFailoverInitiation(java.lang.String failoverInitiation) { + this.failoverInitiation = failoverInitiation; + 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 HaController setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Name of the instance that HaController is in charge of. If not specified the HaController's + * resource name will be used instead. 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 getInstanceName() { + return instanceName; + } + + /** + * Name of the instance that HaController is in charge of. If not specified the HaController's + * resource name will be used instead. 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 instanceName instanceName or {@code null} for none + */ + public HaController setInstanceName(java.lang.String instanceName) { + this.instanceName = instanceName; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * @param kind kind or {@code null} for none + */ + public HaController setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 HaController setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Basic networking configuration. Required backend services and forwarding rules will be + * automatically created with default parameters. + * @return value or {@code null} for none + */ + public HaControllerNetworkingAutoConfiguration getNetworkingAutoConfiguration() { + return networkingAutoConfiguration; + } + + /** + * Basic networking configuration. Required backend services and forwarding rules will be + * automatically created with default parameters. + * @param networkingAutoConfiguration networkingAutoConfiguration or {@code null} for none + */ + public HaController setNetworkingAutoConfiguration(HaControllerNetworkingAutoConfiguration networkingAutoConfiguration) { + this.networkingAutoConfiguration = networkingAutoConfiguration; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public HaController setRegion(java.lang.String region) { + this.region = region; + 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 HaController setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public HaController setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. The current state of the HA Controller. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the HA Controller. + * @param state state or {@code null} for none + */ + public HaController setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] Status information for the HaController resource. + * @return value or {@code null} for none + */ + public HaControllerStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] Status information for the HaController resource. + * @param status status or {@code null} for none + */ + public HaController setStatus(HaControllerStatus status) { + this.status = status; + return this; + } + + /** + * Map of zone configurations Key: name of the zone Value: ZoneConfiguration + * @return value or {@code null} for none + */ + public java.util.Map getZoneConfigurations() { + return zoneConfigurations; + } + + /** + * Map of zone configurations Key: name of the zone Value: ZoneConfiguration + * @param zoneConfigurations zoneConfigurations or {@code null} for none + */ + public HaController setZoneConfigurations(java.util.Map zoneConfigurations) { + this.zoneConfigurations = zoneConfigurations; + return this; + } + + @Override + public HaController set(String fieldName, Object value) { + return (HaController) super.set(fieldName, value); + } + + @Override + public HaController clone() { + return (HaController) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfiguration.java new file mode 100644 index 00000000000..4f9e46167ba --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfiguration.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Basic networking configuration. Required backend services and forwarding rules will be + * automatically created with default parameters. + * + *

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 HaControllerNetworkingAutoConfiguration extends com.google.api.client.json.GenericJson { + + /** + * Internal networking configuration + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerNetworkingAutoConfigurationInternal internal; + + /** + * Internal networking configuration + * @return value or {@code null} for none + */ + public HaControllerNetworkingAutoConfigurationInternal getInternal() { + return internal; + } + + /** + * Internal networking configuration + * @param internal internal or {@code null} for none + */ + public HaControllerNetworkingAutoConfiguration setInternal(HaControllerNetworkingAutoConfigurationInternal internal) { + this.internal = internal; + return this; + } + + @Override + public HaControllerNetworkingAutoConfiguration set(String fieldName, Object value) { + return (HaControllerNetworkingAutoConfiguration) super.set(fieldName, value); + } + + @Override + public HaControllerNetworkingAutoConfiguration clone() { + return (HaControllerNetworkingAutoConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfigurationInternal.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfigurationInternal.java new file mode 100644 index 00000000000..6751a7b4a19 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerNetworkingAutoConfigurationInternal.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Internal networking configuration + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HaControllerNetworkingAutoConfigurationInternal extends com.google.api.client.json.GenericJson { + + /** + * Optional. IP addresses will be automatically allocated according to StackType if not provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * Determine which IP addresses to automatically create. Field and option naming consistent with + * NetworkInterface configuration on Instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Optional. IP addresses will be automatically allocated according to StackType if not provided. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Optional. IP addresses will be automatically allocated according to StackType if not provided. + * @param ipAddress ipAddress or {@code null} for none + */ + public HaControllerNetworkingAutoConfigurationInternal setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * @param ipv6Address ipv6Address or {@code null} for none + */ + public HaControllerNetworkingAutoConfigurationInternal setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * Determine which IP addresses to automatically create. Field and option naming consistent with + * NetworkInterface configuration on Instances. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * Determine which IP addresses to automatically create. Field and option naming consistent with + * NetworkInterface configuration on Instances. + * @param stackType stackType or {@code null} for none + */ + public HaControllerNetworkingAutoConfigurationInternal setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + @Override + public HaControllerNetworkingAutoConfigurationInternal set(String fieldName, Object value) { + return (HaControllerNetworkingAutoConfigurationInternal) super.set(fieldName, value); + } + + @Override + public HaControllerNetworkingAutoConfigurationInternal clone() { + return (HaControllerNetworkingAutoConfigurationInternal) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java new file mode 100644 index 00000000000..4c72b316e46 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java @@ -0,0 +1,225 @@ +/* + * 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; + +/** + * Contains information about current status of the HaController. + * + *

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 HaControllerStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Contains the details of the ongoing failover. This message is not + * displayed if failover is NOT in progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerStatusFailoverProgress failoverProgress; + + /** + * Output only. [Output Only] Contains the details of the last successful failover. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerStatusFailoverProgress lastFailoverInfo; + + /** + * Output only. [Output Only] Indicates if the failover is currently in-progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ongoingFailover; + + /** + * Output only. [Output Only] The URL to the instance that is intended to be primary at this + * moment. Primary instance will be changed at the very beginning of a failover operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String primaryInstance; + + /** + * Output only. [Output Only] The name of the zone that is intended to be primary at this moment. + * Primary zone will be changed at the very beginning of a failover operation. The zone may not be + * operational in the middle of a failover operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String primaryZone; + + /** + * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the + * secondary zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean readyForFailover; + + /** + * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map zoneStatus; + + /** + * Output only. [Output Only] Contains the details of the ongoing failover. This message is not + * displayed if failover is NOT in progress. + * @return value or {@code null} for none + */ + public HaControllerStatusFailoverProgress getFailoverProgress() { + return failoverProgress; + } + + /** + * Output only. [Output Only] Contains the details of the ongoing failover. This message is not + * displayed if failover is NOT in progress. + * @param failoverProgress failoverProgress or {@code null} for none + */ + public HaControllerStatus setFailoverProgress(HaControllerStatusFailoverProgress failoverProgress) { + this.failoverProgress = failoverProgress; + return this; + } + + /** + * Output only. [Output Only] Contains the details of the last successful failover. + * @return value or {@code null} for none + */ + public HaControllerStatusFailoverProgress getLastFailoverInfo() { + return lastFailoverInfo; + } + + /** + * Output only. [Output Only] Contains the details of the last successful failover. + * @param lastFailoverInfo lastFailoverInfo or {@code null} for none + */ + public HaControllerStatus setLastFailoverInfo(HaControllerStatusFailoverProgress lastFailoverInfo) { + this.lastFailoverInfo = lastFailoverInfo; + return this; + } + + /** + * Output only. [Output Only] Indicates if the failover is currently in-progress. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOngoingFailover() { + return ongoingFailover; + } + + /** + * Output only. [Output Only] Indicates if the failover is currently in-progress. + * @param ongoingFailover ongoingFailover or {@code null} for none + */ + public HaControllerStatus setOngoingFailover(java.lang.Boolean ongoingFailover) { + this.ongoingFailover = ongoingFailover; + return this; + } + + /** + * Output only. [Output Only] The URL to the instance that is intended to be primary at this + * moment. Primary instance will be changed at the very beginning of a failover operation. + * @return value or {@code null} for none + */ + public java.lang.String getPrimaryInstance() { + return primaryInstance; + } + + /** + * Output only. [Output Only] The URL to the instance that is intended to be primary at this + * moment. Primary instance will be changed at the very beginning of a failover operation. + * @param primaryInstance primaryInstance or {@code null} for none + */ + public HaControllerStatus setPrimaryInstance(java.lang.String primaryInstance) { + this.primaryInstance = primaryInstance; + return this; + } + + /** + * Output only. [Output Only] The name of the zone that is intended to be primary at this moment. + * Primary zone will be changed at the very beginning of a failover operation. The zone may not be + * operational in the middle of a failover operation. + * @return value or {@code null} for none + */ + public java.lang.String getPrimaryZone() { + return primaryZone; + } + + /** + * Output only. [Output Only] The name of the zone that is intended to be primary at this moment. + * Primary zone will be changed at the very beginning of a failover operation. The zone may not be + * operational in the middle of a failover operation. + * @param primaryZone primaryZone or {@code null} for none + */ + public HaControllerStatus setPrimaryZone(java.lang.String primaryZone) { + this.primaryZone = primaryZone; + return this; + } + + /** + * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the + * secondary zone. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReadyForFailover() { + return readyForFailover; + } + + /** + * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the + * secondary zone. + * @param readyForFailover readyForFailover or {@code null} for none + */ + public HaControllerStatus setReadyForFailover(java.lang.Boolean readyForFailover) { + this.readyForFailover = readyForFailover; + return this; + } + + /** + * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * @return value or {@code null} for none + */ + public java.util.Map getZoneStatus() { + return zoneStatus; + } + + /** + * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * @param zoneStatus zoneStatus or {@code null} for none + */ + public HaControllerStatus setZoneStatus(java.util.Map zoneStatus) { + this.zoneStatus = zoneStatus; + return this; + } + + @Override + public HaControllerStatus set(String fieldName, Object value) { + return (HaControllerStatus) super.set(fieldName, value); + } + + @Override + public HaControllerStatus clone() { + return (HaControllerStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java new file mode 100644 index 00000000000..262da03be88 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java @@ -0,0 +1,168 @@ +/* + * 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; + +/** + * Contains information about the current failover operation. + * + *

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 HaControllerStatusFailoverProgress extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is + * completed, in lastFailoverInfo. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String failoverCompleteTimestamp; + + /** + * Output only. The duration of the last failover. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String failoverDuration; + + /** + * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failoverTrigger; + + /** + * Output only. [Output Only] Timestamp of the last failover trigger. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String failoverTriggerTimestamp; + + /** + * Output only. [Output Only] Contains details of the last failed failover. This field is filled + * only if the current failover is failing + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerStatusFailoverProgressLastFailoverAttempt lastFailoverAttempt; + + /** + * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is + * completed, in lastFailoverInfo. + * @return value or {@code null} for none + */ + public String getFailoverCompleteTimestamp() { + return failoverCompleteTimestamp; + } + + /** + * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is + * completed, in lastFailoverInfo. + * @param failoverCompleteTimestamp failoverCompleteTimestamp or {@code null} for none + */ + public HaControllerStatusFailoverProgress setFailoverCompleteTimestamp(String failoverCompleteTimestamp) { + this.failoverCompleteTimestamp = failoverCompleteTimestamp; + return this; + } + + /** + * Output only. The duration of the last failover. + * @return value or {@code null} for none + */ + public String getFailoverDuration() { + return failoverDuration; + } + + /** + * Output only. The duration of the last failover. + * @param failoverDuration failoverDuration or {@code null} for none + */ + public HaControllerStatusFailoverProgress setFailoverDuration(String failoverDuration) { + this.failoverDuration = failoverDuration; + return this; + } + + /** + * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. + * @return value or {@code null} for none + */ + public java.lang.String getFailoverTrigger() { + return failoverTrigger; + } + + /** + * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. + * @param failoverTrigger failoverTrigger or {@code null} for none + */ + public HaControllerStatusFailoverProgress setFailoverTrigger(java.lang.String failoverTrigger) { + this.failoverTrigger = failoverTrigger; + return this; + } + + /** + * Output only. [Output Only] Timestamp of the last failover trigger. + * @return value or {@code null} for none + */ + public String getFailoverTriggerTimestamp() { + return failoverTriggerTimestamp; + } + + /** + * Output only. [Output Only] Timestamp of the last failover trigger. + * @param failoverTriggerTimestamp failoverTriggerTimestamp or {@code null} for none + */ + public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(String failoverTriggerTimestamp) { + this.failoverTriggerTimestamp = failoverTriggerTimestamp; + return this; + } + + /** + * Output only. [Output Only] Contains details of the last failed failover. This field is filled + * only if the current failover is failing + * @return value or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttempt getLastFailoverAttempt() { + return lastFailoverAttempt; + } + + /** + * Output only. [Output Only] Contains details of the last failed failover. This field is filled + * only if the current failover is failing + * @param lastFailoverAttempt lastFailoverAttempt or {@code null} for none + */ + public HaControllerStatusFailoverProgress setLastFailoverAttempt(HaControllerStatusFailoverProgressLastFailoverAttempt lastFailoverAttempt) { + this.lastFailoverAttempt = lastFailoverAttempt; + return this; + } + + @Override + public HaControllerStatusFailoverProgress set(String fieldName, Object value) { + return (HaControllerStatusFailoverProgress) super.set(fieldName, value); + } + + @Override + public HaControllerStatusFailoverProgress clone() { + return (HaControllerStatusFailoverProgress) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java new file mode 100644 index 00000000000..62fc44d4ff1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java @@ -0,0 +1,377 @@ +/* + * 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 HaControllerStatusFailoverProgressLastFailoverAttempt. + * + *

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 HaControllerStatusFailoverProgressLastFailoverAttempt extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Encountered errors during the last attempt to process failover. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Errors errors; + + /** + * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. [Output Only] Encountered errors during the last attempt to process failover. + * @return value or {@code null} for none + */ + public Errors getErrors() { + return errors; + } + + /** + * Output only. [Output Only] Encountered errors during the last attempt to process failover. + * @param errors errors or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttempt setErrors(Errors errors) { + this.errors = errors; + return this; + } + + /** + * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttempt setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public HaControllerStatusFailoverProgressLastFailoverAttempt set(String fieldName, Object value) { + return (HaControllerStatusFailoverProgressLastFailoverAttempt) super.set(fieldName, value); + } + + @Override + public HaControllerStatusFailoverProgressLastFailoverAttempt clone() { + return (HaControllerStatusFailoverProgressLastFailoverAttempt) super.clone(); + } + + /** + * Output only. [Output Only] Encountered errors during the last attempt to process failover. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors 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(HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Errors setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors set(String fieldName, Object value) { + return (HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors) super.set(fieldName, value); + } + + @Override + public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors clone() { + return (HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java new file mode 100644 index 00000000000..f10664639fc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Contains the status of a specific zone. + * + *

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 HaControllerStatusZoneStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Indicates if the zone is primary at this moment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isPrimary; + + /** + * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isZoneReady; + + /** + * Output only. [Output Only] This field is filled only if the current operation is failing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerStatusZoneStatusLastError lastError; + + /** + * Output only. [Output Only] Indicates if the zone is primary at this moment. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsPrimary() { + return isPrimary; + } + + /** + * Output only. [Output Only] Indicates if the zone is primary at this moment. + * @param isPrimary isPrimary or {@code null} for none + */ + public HaControllerStatusZoneStatus setIsPrimary(java.lang.Boolean isPrimary) { + this.isPrimary = isPrimary; + return this; + } + + /** + * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsZoneReady() { + return isZoneReady; + } + + /** + * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. + * @param isZoneReady isZoneReady or {@code null} for none + */ + public HaControllerStatusZoneStatus setIsZoneReady(java.lang.Boolean isZoneReady) { + this.isZoneReady = isZoneReady; + return this; + } + + /** + * Output only. [Output Only] This field is filled only if the current operation is failing. + * @return value or {@code null} for none + */ + public HaControllerStatusZoneStatusLastError getLastError() { + return lastError; + } + + /** + * Output only. [Output Only] This field is filled only if the current operation is failing. + * @param lastError lastError or {@code null} for none + */ + public HaControllerStatusZoneStatus setLastError(HaControllerStatusZoneStatusLastError lastError) { + this.lastError = lastError; + return this; + } + + @Override + public HaControllerStatusZoneStatus set(String fieldName, Object value) { + return (HaControllerStatusZoneStatus) super.set(fieldName, value); + } + + @Override + public HaControllerStatusZoneStatus clone() { + return (HaControllerStatusZoneStatus) super.clone(); + } + +} From c30281e601aebe947c1b00487c5fccd63ff902ef Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:21 -0700 Subject: [PATCH 04/23] chore: regenerate compute client --- ...HaControllerStatusZoneStatusLastError.java | 377 +++++ .../model/HaControllerZoneConfiguration.java | 93 ++ ...ntrollerZoneConfigurationNodeAffinity.java | 118 ++ ...rZoneConfigurationReservationAffinity.java | 133 ++ .../model/HaControllersAggregatedList.java | 425 +++++ .../model/HaControllersFailoverRequest.java | 66 + .../compute/model/HaControllersList.java | 401 +++++ .../model/HaControllersScopedList.java | 278 ++++ .../HealthAggregationPoliciesScopedList.java | 276 ++++ .../model/HealthAggregationPolicy.java | 451 +++++ ...HealthAggregationPolicyAggregatedList.java | 407 +++++ .../model/HealthAggregationPolicyList.java | 386 +++++ .../services/compute/model/HealthCheck.java | 603 +++++++ .../compute/model/HealthCheckList.java | 383 +++++ .../compute/model/HealthCheckLogConfig.java | 70 + .../compute/model/HealthCheckReference.java | 66 + .../compute/model/HealthCheckService.java | 462 ++++++ .../HealthCheckServiceAggregatedList.java | 401 +++++ .../model/HealthCheckServiceReference.java | 67 + .../model/HealthCheckServicesList.java | 386 +++++ .../model/HealthCheckServicesScopedList.java | 278 ++++ .../model/HealthChecksAggregatedList.java | 401 +++++ .../compute/model/HealthChecksScopedList.java | 278 ++++ .../services/compute/model/HealthSource.java | 420 +++++ .../model/HealthSourceAggregatedList.java | 401 +++++ .../compute/model/HealthSourceHealth.java | 117 ++ .../compute/model/HealthSourceList.java | 383 +++++ ...lthSourcesGetHealthResponseSourceInfo.java | 120 ++ ...etHealthResponseSourceInfoBackendInfo.java | 117 ++ .../model/HealthSourcesScopedList.java | 278 ++++ .../services/compute/model/HealthStatus.java | 303 ++++ .../model/HealthStatusForNetworkEndpoint.java | 186 +++ .../api/services/compute/model/Help.java | 70 + .../api/services/compute/model/HelpLink.java | 90 + .../api/services/compute/model/Host.java | 309 ++++ .../compute/model/HostPhysicalTopology.java | 138 ++ .../api/services/compute/model/HostRule.java | 136 ++ .../services/compute/model/HostStatus.java | 90 + .../compute/model/HostsGetVersionRequest.java | 66 + .../compute/model/HostsListResponse.java | 428 +++++ .../compute/model/HttpFaultAbort.java | 117 ++ .../compute/model/HttpFaultDelay.java | 100 ++ .../compute/model/HttpFaultInjection.java | 97 ++ .../compute/model/HttpHeaderAction.java | 145 ++ .../compute/model/HttpHeaderMatch.java | 378 +++++ .../compute/model/HttpHeaderOption.java | 126 ++ .../compute/model/HttpHealthCheck.java | 390 +++++ .../compute/model/HttpHealthCheckList.java | 383 +++++ .../model/HttpQueryParameterMatch.java | 177 ++ .../compute/model/HttpRedirectAction.java | 276 ++++ .../compute/model/HttpRetryPolicy.java | 192 +++ .../compute/model/HttpRouteAction.java | 408 +++++ .../services/compute/model/HttpRouteRule.java | 433 +++++ .../compute/model/HttpRouteRuleMatch.java | 427 +++++ .../compute/model/HttpsHealthCheck.java | 388 +++++ .../compute/model/HttpsHealthCheckList.java | 383 +++++ .../api/services/compute/model/Image.java | 1235 ++++++++++++++ .../compute/model/ImageFamilyView.java | 69 + .../api/services/compute/model/ImageList.java | 383 +++++ .../services/compute/model/ImageParams.java | 78 + .../api/services/compute/model/ImageView.java | 66 + .../compute/model/ImageViewsListResponse.java | 416 +++++ .../compute/model/InitialStateConfig.java | 156 ++ .../api/services/compute/model/Instance.java | 1456 +++++++++++++++++ .../compute/model/InstanceAggregatedList.java | 404 +++++ .../model/InstanceConsumptionData.java | 90 + .../model/InstanceConsumptionInfo.java | 138 ++ .../model/InstanceFlexibilityPolicy.java | 75 + ...nceFlexibilityPolicyInstanceSelection.java | 158 ++ .../services/compute/model/InstanceGroup.java | 445 +++++ .../model/InstanceGroupAggregatedList.java | 404 +++++ .../compute/model/InstanceGroupList.java | 386 +++++ .../compute/model/InstanceGroupManager.java | 991 +++++++++++ .../InstanceGroupManagerActionsSummary.java | 420 +++++ .../InstanceGroupManagerAggregatedList.java | 404 +++++ ...nstanceGroupManagerAllInstancesConfig.java | 84 + ...InstanceGroupManagerAutoHealingPolicy.java | 105 ++ ...GroupManagerInstanceFlexibilityPolicy.java | 66 + ...nceFlexibilityPolicyInstanceSelection.java | 153 ++ ...ceGroupManagerInstanceLifecyclePolicy.java | 183 +++ ...anagerInstanceLifecyclePolicyOnRepair.java | 72 + .../model/InstanceGroupManagerList.java | 386 +++++ .../InstanceGroupManagerResizeRequest.java | 402 +++++ ...stanceGroupManagerResizeRequestStatus.java | 403 +++++ ...ManagerResizeRequestStatusLastAttempt.java | 352 ++++ ...roupManagerResizeRequestsListResponse.java | 386 +++++ .../InstanceGroupManagerResourcePolicies.java | 78 + .../InstanceGroupManagerStandbyPolicy.java | 102 ++ .../model/InstanceGroupManagerStatus.java | 255 +++ ...GroupManagerStatusAcceleratorTopology.java | 117 ++ ...pologyAcceleratorTopologyStateDetails.java | 381 +++++ ...eGroupManagerStatusAllInstancesConfig.java | 96 ++ ...oupManagerStatusBulkInstanceOperation.java | 91 ++ ...ulkInstanceOperationLastProgressCheck.java | 380 +++++ ...oupManagerStatusInstanceStatusSummary.java | 380 +++++ .../InstanceGroupManagerStatusStateful.java | 102 ++ ...nagerStatusStatefulPerInstanceConfigs.java | 72 + ...stanceGroupManagerStatusVersionTarget.java | 72 + .../InstanceGroupManagerTargetSizePolicy.java | 69 + .../InstanceGroupManagerUpdatePolicy.java | 324 ++++ 100 files changed, 27763 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfiguration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationNodeAffinity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationReservationAffinity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckLogConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckService.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthChecksScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSource.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatusForNetworkEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Help.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HelpLink.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Host.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultAbort.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultDelay.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultInjection.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderAction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderOption.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRedirectAction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRetryPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheckList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Image.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageFamilyView.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageView.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InitialStateConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Instance.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAllInstancesConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAutoHealingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResourcePolicies.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStandbyPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java new file mode 100644 index 00000000000..d30ee7ff8ab --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java @@ -0,0 +1,377 @@ +/* + * 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; + +/** + * Contains details of the last failed operation. + * + *

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 HaControllerStatusZoneStatusLastError extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Errors errors; + + /** + * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. [Output Only] Encountered errors. + * @return value or {@code null} for none + */ + public Errors getErrors() { + return errors; + } + + /** + * Output only. [Output Only] Encountered errors. + * @param errors errors or {@code null} for none + */ + public HaControllerStatusZoneStatusLastError setErrors(Errors errors) { + this.errors = errors; + return this; + } + + /** + * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public HaControllerStatusZoneStatusLastError setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public HaControllerStatusZoneStatusLastError set(String fieldName, Object value) { + return (HaControllerStatusZoneStatusLastError) super.set(fieldName, value); + } + + @Override + public HaControllerStatusZoneStatusLastError clone() { + return (HaControllerStatusZoneStatusLastError) super.clone(); + } + + /** + * Output only. [Output Only] Encountered errors. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider HaControllerStatusZoneStatusLastErrorErrorsErrors 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(HaControllerStatusZoneStatusLastErrorErrorsErrors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Errors setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class HaControllerStatusZoneStatusLastErrorErrorsErrors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public HaControllerStatusZoneStatusLastErrorErrorsErrors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public HaControllerStatusZoneStatusLastErrorErrorsErrors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public HaControllerStatusZoneStatusLastErrorErrorsErrors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public HaControllerStatusZoneStatusLastErrorErrorsErrors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public HaControllerStatusZoneStatusLastErrorErrorsErrors set(String fieldName, Object value) { + return (HaControllerStatusZoneStatusLastErrorErrorsErrors) super.set(fieldName, value); + } + + @Override + public HaControllerStatusZoneStatusLastErrorErrorsErrors clone() { + return (HaControllerStatusZoneStatusLastErrorErrorsErrors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfiguration.java new file mode 100644 index 00000000000..bb0de3c5cea --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfiguration.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Config for a zone that the HaController may use for running the VM instance. + * + *

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 HaControllerZoneConfiguration extends com.google.api.client.json.GenericJson { + + /** + * A set of node affinity configurations. Refer toConfiguring node affinity for more information. + * Overrides reservationAffinity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodeAffinities; + + /** + * Specifies the reservations that the instance can consume from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HaControllerZoneConfigurationReservationAffinity reservationAffinity; + + /** + * A set of node affinity configurations. Refer toConfiguring node affinity for more information. + * Overrides reservationAffinity. + * @return value or {@code null} for none + */ + public java.util.List getNodeAffinities() { + return nodeAffinities; + } + + /** + * A set of node affinity configurations. Refer toConfiguring node affinity for more information. + * Overrides reservationAffinity. + * @param nodeAffinities nodeAffinities or {@code null} for none + */ + public HaControllerZoneConfiguration setNodeAffinities(java.util.List nodeAffinities) { + this.nodeAffinities = nodeAffinities; + return this; + } + + /** + * Specifies the reservations that the instance can consume from. + * @return value or {@code null} for none + */ + public HaControllerZoneConfigurationReservationAffinity getReservationAffinity() { + return reservationAffinity; + } + + /** + * Specifies the reservations that the instance can consume from. + * @param reservationAffinity reservationAffinity or {@code null} for none + */ + public HaControllerZoneConfiguration setReservationAffinity(HaControllerZoneConfigurationReservationAffinity reservationAffinity) { + this.reservationAffinity = reservationAffinity; + return this; + } + + @Override + public HaControllerZoneConfiguration set(String fieldName, Object value) { + return (HaControllerZoneConfiguration) super.set(fieldName, value); + } + + @Override + public HaControllerZoneConfiguration clone() { + return (HaControllerZoneConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationNodeAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationNodeAffinity.java new file mode 100644 index 00000000000..0357e864c37 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationNodeAffinity.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * Node Affinity: the configuration of desired nodes onto which the Instance could be scheduled. + * This message should be an exact copy of the Instances representation of NodeAffinity. + * + *

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 HaControllerZoneConfigurationNodeAffinity extends com.google.api.client.json.GenericJson { + + /** + * Corresponds to the label key of Node resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for + * anti-affinity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operator; + + /** + * Corresponds to the label values of Node resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Corresponds to the label key of Node resource. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Corresponds to the label key of Node resource. + * @param key key or {@code null} for none + */ + public HaControllerZoneConfigurationNodeAffinity setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for + * anti-affinity. + * @return value or {@code null} for none + */ + public java.lang.String getOperator() { + return operator; + } + + /** + * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for + * anti-affinity. + * @param operator operator or {@code null} for none + */ + public HaControllerZoneConfigurationNodeAffinity setOperator(java.lang.String operator) { + this.operator = operator; + return this; + } + + /** + * Corresponds to the label values of Node resource. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Corresponds to the label values of Node resource. + * @param values values or {@code null} for none + */ + public HaControllerZoneConfigurationNodeAffinity setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public HaControllerZoneConfigurationNodeAffinity set(String fieldName, Object value) { + return (HaControllerZoneConfigurationNodeAffinity) super.set(fieldName, value); + } + + @Override + public HaControllerZoneConfigurationNodeAffinity clone() { + return (HaControllerZoneConfigurationNodeAffinity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationReservationAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationReservationAffinity.java new file mode 100644 index 00000000000..c3e394d2b22 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllerZoneConfigurationReservationAffinity.java @@ -0,0 +1,133 @@ +/* + * 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; + +/** + * Specifies the reservations that this instance can consume from. This message should be an exact + * copy of the Instances representation of AllocationAffinity. + * + *

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 HaControllerZoneConfigurationReservationAffinity extends com.google.api.client.json.GenericJson { + + /** + * Specifies the type of reservation from which this instance can consume resources: + * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved + * instances for examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumeReservationType; + + /** + * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by + * name, specifygoogleapis.com/reservation-name as the key and specify the name of your + * reservation as its value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Corresponds to the label values of a reservation resource. This can be either a name to a + * reservation in the same project or "projects/different-project/reservations/some-reservation- + * name" to target a shared reservation in the same zone but in a different project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Specifies the type of reservation from which this instance can consume resources: + * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved + * instances for examples. + * @return value or {@code null} for none + */ + public java.lang.String getConsumeReservationType() { + return consumeReservationType; + } + + /** + * Specifies the type of reservation from which this instance can consume resources: + * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved + * instances for examples. + * @param consumeReservationType consumeReservationType or {@code null} for none + */ + public HaControllerZoneConfigurationReservationAffinity setConsumeReservationType(java.lang.String consumeReservationType) { + this.consumeReservationType = consumeReservationType; + return this; + } + + /** + * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by + * name, specifygoogleapis.com/reservation-name as the key and specify the name of your + * reservation as its value. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by + * name, specifygoogleapis.com/reservation-name as the key and specify the name of your + * reservation as its value. + * @param key key or {@code null} for none + */ + public HaControllerZoneConfigurationReservationAffinity setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Corresponds to the label values of a reservation resource. This can be either a name to a + * reservation in the same project or "projects/different-project/reservations/some-reservation- + * name" to target a shared reservation in the same zone but in a different project. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Corresponds to the label values of a reservation resource. This can be either a name to a + * reservation in the same project or "projects/different-project/reservations/some-reservation- + * name" to target a shared reservation in the same zone but in a different project. + * @param values values or {@code null} for none + */ + public HaControllerZoneConfigurationReservationAffinity setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public HaControllerZoneConfigurationReservationAffinity set(String fieldName, Object value) { + return (HaControllerZoneConfigurationReservationAffinity) super.set(fieldName, value); + } + + @Override + public HaControllerZoneConfigurationReservationAffinity clone() { + return (HaControllerZoneConfigurationReservationAffinity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java new file mode 100644 index 00000000000..c3e0e23eea4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java @@ -0,0 +1,425 @@ +/* + * 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 HaControllersAggregatedList. + * + *

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 HaControllersAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 HaControllersScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for + * lists of HaControllers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public HaControllersAggregatedList 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 HaControllersAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HaControllersScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HaControllersScopedList resources. + * @param items items or {@code null} for none + */ + public HaControllersAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for + * lists of HaControllers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for + * lists of HaControllers. + * @param kind kind or {@code null} for none + */ + public HaControllersAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HaControllersAggregatedList 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 HaControllersAggregatedList 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 HaControllersAggregatedList 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 HaControllersAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HaControllersAggregatedList set(String fieldName, Object value) { + return (HaControllersAggregatedList) super.set(fieldName, value); + } + + @Override + public HaControllersAggregatedList clone() { + return (HaControllersAggregatedList) 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 HaControllersAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java new file mode 100644 index 00000000000..4d6400c8dfe --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.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; + +/** + * Model definition for HaControllersFailoverRequest. + * + *

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 HaControllersFailoverRequest extends com.google.api.client.json.GenericJson { + + /** + * Name of the destination zone for the failover. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failoverToZone; + + /** + * Name of the destination zone for the failover. + * @return value or {@code null} for none + */ + public java.lang.String getFailoverToZone() { + return failoverToZone; + } + + /** + * Name of the destination zone for the failover. + * @param failoverToZone failoverToZone or {@code null} for none + */ + public HaControllersFailoverRequest setFailoverToZone(java.lang.String failoverToZone) { + this.failoverToZone = failoverToZone; + return this; + } + + @Override + public HaControllersFailoverRequest set(String fieldName, Object value) { + return (HaControllersFailoverRequest) super.set(fieldName, value); + } + + @Override + public HaControllersFailoverRequest clone() { + return (HaControllersFailoverRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersList.java new file mode 100644 index 00000000000..39549cbb69b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersList.java @@ -0,0 +1,401 @@ +/* + * 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 HaControllersList. + * + *

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 HaControllersList extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * 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 HaControllers in the specified project and region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider HaController 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(HaController.class); + } + + /** + * This token allows you to get the next page of results formaxResults, use the nextPageToken as a + * value for the query parameter pageToken in the next list request. Subsequent list requests will + * have their own nextPageToken to continue paging through the results. + * 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; + + /** + * Informational warning message. + * 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 getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public HaControllersList setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HaControllersList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HaControllers in the specified project and region. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HaControllers in the specified project and region. + * @param items items or {@code null} for none + */ + public HaControllersList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * This token allows you to get the next page of results formaxResults, use the nextPageToken as a + * value for the query parameter pageToken in the next list request. Subsequent list requests will + * have their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results formaxResults, use the nextPageToken as a + * value for the query parameter pageToken in the next list request. Subsequent list requests will + * have their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HaControllersList 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 HaControllersList 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 HaControllersList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning message. + * @param warning warning or {@code null} for none + */ + public HaControllersList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HaControllersList set(String fieldName, Object value) { + return (HaControllersList) super.set(fieldName, value); + } + + @Override + public HaControllersList clone() { + return (HaControllersList) super.clone(); + } + + /** + * 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 HaControllersListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HaControllersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersScopedList.java new file mode 100644 index 00000000000..579f6f3227b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HaControllersScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 HaControllersScopedList. + * + *

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 HaControllersScopedList extends com.google.api.client.json.GenericJson { + + /** + * List of HaControllers contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List haControllers; + + static { + // hack to force ProGuard to consider HaController 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(HaController.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * List of HaControllers contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getHaControllers() { + return haControllers; + } + + /** + * List of HaControllers contained in this scope. + * @param haControllers haControllers or {@code null} for none + */ + public HaControllersScopedList setHaControllers(java.util.List haControllers) { + this.haControllers = haControllers; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public HaControllersScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HaControllersScopedList set(String fieldName, Object value) { + return (HaControllersScopedList) super.set(fieldName, value); + } + + @Override + public HaControllersScopedList clone() { + return (HaControllersScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 HaControllersScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java new file mode 100644 index 00000000000..6119b27c15d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java @@ -0,0 +1,276 @@ +/* + * 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 HealthAggregationPoliciesScopedList. + * + *

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 HealthAggregationPoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthAggregationPolicys contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthAggregationPolicies; + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthAggregationPolicys contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getHealthAggregationPolicies() { + return healthAggregationPolicies; + } + + /** + * A list of HealthAggregationPolicys contained in this scope. + * @param healthAggregationPolicies healthAggregationPolicies or {@code null} for none + */ + public HealthAggregationPoliciesScopedList setHealthAggregationPolicies(java.util.List healthAggregationPolicies) { + this.healthAggregationPolicies = healthAggregationPolicies; + return this; + } + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public HealthAggregationPoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthAggregationPoliciesScopedList set(String fieldName, Object value) { + return (HealthAggregationPoliciesScopedList) super.set(fieldName, value); + } + + @Override + public HealthAggregationPoliciesScopedList clone() { + return (HealthAggregationPoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of health aggregation policies when the list is + * empty. + */ + 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 HealthAggregationPoliciesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java new file mode 100644 index 00000000000..5854e52ebe9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java @@ -0,0 +1,451 @@ +/* + * 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 health aggregation policy. + * + * A health aggregation policy resource defines a policy to aggregate health. + * + * For more information, see Health checks overview. + * + *

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 HealthAggregationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + * percentage) of healthy endpoints required in order to consider the aggregated health result + * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field + * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default + * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in + * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a + * Network Endpoint Group or instances within an Instance Group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long healthyPercentThreshold; + + /** + * 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] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number + * of healthy endpoints required in order to consider the aggregated health result HEALTHY. + * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. + * Can be mutated. This field is optional, and will be set to the default if unspecified. Note + * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to + * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint + * Group or instances within an Instance Group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minHealthyThreshold; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources + * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is + * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and + * cannot be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyType; + + /** + * Output only. [Output Only] URL of the region where the health aggregation policy resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HealthAggregationPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public HealthAggregationPolicy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An + * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthAggregationPolicy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public HealthAggregationPolicy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + * percentage) of healthy endpoints required in order to consider the aggregated health result + * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field + * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default + * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in + * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a + * Network Endpoint Group or instances within an Instance Group. + * @return value or {@code null} for none + */ + public java.lang.Long getHealthyPercentThreshold() { + return healthyPercentThreshold; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + * percentage) of healthy endpoints required in order to consider the aggregated health result + * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field + * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default + * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in + * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a + * Network Endpoint Group or instances within an Instance Group. + * @param healthyPercentThreshold healthyPercentThreshold or {@code null} for none + */ + public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthyPercentThreshold) { + this.healthyPercentThreshold = healthyPercentThreshold; + 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 HealthAggregationPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @param kind kind or {@code null} for none + */ + public HealthAggregationPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number + * of healthy endpoints required in order to consider the aggregated health result HEALTHY. + * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. + * Can be mutated. This field is optional, and will be set to the default if unspecified. Note + * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to + * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint + * Group or instances within an Instance Group. + * @return value or {@code null} for none + */ + public java.lang.Long getMinHealthyThreshold() { + return minHealthyThreshold; + } + + /** + * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number + * of healthy endpoints required in order to consider the aggregated health result HEALTHY. + * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. + * Can be mutated. This field is optional, and will be set to the default if unspecified. Note + * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to + * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint + * Group or instances within an Instance Group. + * @param minHealthyThreshold minHealthyThreshold or {@code null} for none + */ + public HealthAggregationPolicy setMinHealthyThreshold(java.lang.Long minHealthyThreshold) { + this.minHealthyThreshold = minHealthyThreshold; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 HealthAggregationPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources + * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is + * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and + * cannot be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyType() { + return policyType; + } + + /** + * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources + * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is + * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and + * cannot be mutated. + * @param policyType policyType or {@code null} for none + */ + public HealthAggregationPolicy setPolicyType(java.lang.String policyType) { + this.policyType = policyType; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the health aggregation policy resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the health aggregation policy resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public HealthAggregationPolicy setRegion(java.lang.String region) { + this.region = region; + 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 HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public HealthAggregationPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public HealthAggregationPolicy set(String fieldName, Object value) { + return (HealthAggregationPolicy) super.set(fieldName, value); + } + + @Override + public HealthAggregationPolicy clone() { + return (HealthAggregationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java new file mode 100644 index 00000000000..42fecbea1f6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java @@ -0,0 +1,407 @@ +/* + * 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; + +/** + * Contains a list of HealthAggregationPoliciesScopedList. + * + *

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 HealthAggregationPolicyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthAggregationPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider HealthAggregationPoliciesScopedList 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(HealthAggregationPoliciesScopedList.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 HealthAggregationPolicyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthAggregationPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthAggregationPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthAggregationPolicyAggregatedList 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 HealthAggregationPolicyAggregatedList 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 HealthAggregationPolicyAggregatedList 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 HealthAggregationPolicyAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthAggregationPolicyAggregatedList set(String fieldName, Object value) { + return (HealthAggregationPolicyAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthAggregationPolicyAggregatedList clone() { + return (HealthAggregationPolicyAggregatedList) 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 HealthAggregationPolicyAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java new file mode 100644 index 00000000000..f0a421e5cd6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java @@ -0,0 +1,386 @@ +/* + * 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 HealthAggregationPolicyList. + * + *

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 HealthAggregationPolicyList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthAggregationPolicy 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 HealthAggregationPolicy 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(HealthAggregationPolicy.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 HealthAggregationPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthAggregationPolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HealthAggregationPolicy resources. + * @param items items or {@code null} for none + */ + public HealthAggregationPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for + * health aggregation policies. + * @param kind kind or {@code null} for none + */ + public HealthAggregationPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthAggregationPolicyList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthAggregationPolicyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 HealthAggregationPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthAggregationPolicyList set(String fieldName, Object value) { + return (HealthAggregationPolicyList) super.set(fieldName, value); + } + + @Override + public HealthAggregationPolicyList clone() { + return (HealthAggregationPolicyList) 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 HealthAggregationPolicyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheck.java new file mode 100644 index 00000000000..e36611e9cd4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheck.java @@ -0,0 +1,603 @@ +/* + * 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 health check resource. + * + * Google Compute Engine has two health check resources: + * + * * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) * + * [Global](/compute/docs/reference/rest/v1/healthChecks) + * + * These health check resources can be used for load balancing and for autohealing VMs in a managed + * instance group (MIG). + * + * **Load balancing** + * + * Health check requirements vary depending on the type of load balancer. For details about the type + * of health check supported for each load balancer and corresponding backend type, see Health + * checks overview: Load balancer guide. + * + * **Autohealing in MIGs** + * + * The health checks that you use for autohealing VMs in a MIG can be either regional or global. For + * more information, see Set up an application health check and autohealing. + * + * For more information, seeHealth checks overview. + * + *

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 HealthCheck extends com.google.api.client.json.GenericJson { + + /** + * How often (in seconds) to send a health check. The default value is 5 seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer checkIntervalSec; + + /** + * Output only. [Output Only] Creation timestamp in3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GRPCHealthCheck grpcHealthCheck; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GRPCTLSHealthCheck grpcTlsHealthCheck; + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyThreshold; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HTTP2HealthCheck http2HealthCheck; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HTTPHealthCheck httpHealthCheck; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HTTPSHealthCheck httpsHealthCheck; + + /** + * [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. Type of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Configure logging on this health check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HealthCheckLogConfig logConfig; + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. For example, a name that is 1-63 characters long, + * matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with + * RFC1035. This regular expression describes a name where the first character is a lowercase + * letter, and all following characters are a dash, lowercase letter, or digit, except the last + * character, which isn't a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] Region where the health check resides. Not applicable to global + * health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * The list of cloud regions from which health checks are performed. If any regions are specified, + * then exactly 3 regions should be specified. The region names must be valid names of Google + * Cloud regions. This can only be set for global health check. If this list is non-empty, then + * there are restrictions on what other health check fields are supported and what other resources + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceRegions; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SSLHealthCheck sslHealthCheck; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TCPHealthCheck tcpHealthCheck; + + /** + * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is + * invalid for timeoutSec to have greater value than checkIntervalSec. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer timeoutSec; + + /** + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unhealthyThreshold; + + /** + * How often (in seconds) to send a health check. The default value is 5 seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getCheckIntervalSec() { + return checkIntervalSec; + } + + /** + * How often (in seconds) to send a health check. The default value is 5 seconds. + * @param checkIntervalSec checkIntervalSec or {@code null} for none + */ + public HealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { + this.checkIntervalSec = checkIntervalSec; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp in3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp in3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HealthCheck setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GRPCHealthCheck getGrpcHealthCheck() { + return grpcHealthCheck; + } + + /** + * @param grpcHealthCheck grpcHealthCheck or {@code null} for none + */ + public HealthCheck setGrpcHealthCheck(GRPCHealthCheck grpcHealthCheck) { + this.grpcHealthCheck = grpcHealthCheck; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GRPCTLSHealthCheck getGrpcTlsHealthCheck() { + return grpcTlsHealthCheck; + } + + /** + * @param grpcTlsHealthCheck grpcTlsHealthCheck or {@code null} for none + */ + public HealthCheck setGrpcTlsHealthCheck(GRPCTLSHealthCheck grpcTlsHealthCheck) { + this.grpcTlsHealthCheck = grpcTlsHealthCheck; + return this; + } + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyThreshold() { + return healthyThreshold; + } + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * @param healthyThreshold healthyThreshold or {@code null} for none + */ + public HealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold) { + this.healthyThreshold = healthyThreshold; + return this; + } + + /** + * @return value or {@code null} for none + */ + public HTTP2HealthCheck getHttp2HealthCheck() { + return http2HealthCheck; + } + + /** + * @param http2HealthCheck http2HealthCheck or {@code null} for none + */ + public HealthCheck setHttp2HealthCheck(HTTP2HealthCheck http2HealthCheck) { + this.http2HealthCheck = http2HealthCheck; + return this; + } + + /** + * @return value or {@code null} for none + */ + public HTTPHealthCheck getHttpHealthCheck() { + return httpHealthCheck; + } + + /** + * @param httpHealthCheck httpHealthCheck or {@code null} for none + */ + public HealthCheck setHttpHealthCheck(HTTPHealthCheck httpHealthCheck) { + this.httpHealthCheck = httpHealthCheck; + return this; + } + + /** + * @return value or {@code null} for none + */ + public HTTPSHealthCheck getHttpsHealthCheck() { + return httpsHealthCheck; + } + + /** + * @param httpsHealthCheck httpsHealthCheck or {@code null} for none + */ + public HealthCheck setHttpsHealthCheck(HTTPSHealthCheck httpsHealthCheck) { + this.httpsHealthCheck = httpsHealthCheck; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public HealthCheck setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. Type of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. + * @param kind kind or {@code null} for none + */ + public HealthCheck setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Configure logging on this health check. + * @return value or {@code null} for none + */ + public HealthCheckLogConfig getLogConfig() { + return logConfig; + } + + /** + * Configure logging on this health check. + * @param logConfig logConfig or {@code null} for none + */ + public HealthCheck setLogConfig(HealthCheckLogConfig logConfig) { + this.logConfig = logConfig; + return this; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. For example, a name that is 1-63 characters long, + * matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with + * RFC1035. This regular expression describes a name where the first character is a lowercase + * letter, and all following characters are a dash, lowercase letter, or digit, except the last + * character, which isn't a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client when the resource is created. The name must be + * 1-63 characters long, and comply withRFC1035. For example, a name that is 1-63 characters long, + * matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with + * RFC1035. This regular expression describes a name where the first character is a lowercase + * letter, and all following characters are a dash, lowercase letter, or digit, except the last + * character, which isn't a dash. + * @param name name or {@code null} for none + */ + public HealthCheck setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Region where the health check resides. Not applicable to global + * health checks. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] Region where the health check resides. Not applicable to global + * health checks. + * @param region region or {@code null} for none + */ + public HealthCheck setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthCheck setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The list of cloud regions from which health checks are performed. If any regions are specified, + * then exactly 3 regions should be specified. The region names must be valid names of Google + * Cloud regions. This can only be set for global health check. If this list is non-empty, then + * there are restrictions on what other health check fields are supported and what other resources + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. + * @return value or {@code null} for none + */ + public java.util.List getSourceRegions() { + return sourceRegions; + } + + /** + * The list of cloud regions from which health checks are performed. If any regions are specified, + * then exactly 3 regions should be specified. The region names must be valid names of Google + * Cloud regions. This can only be set for global health check. If this list is non-empty, then + * there are restrictions on what other health check fields are supported and what other resources + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. + * @param sourceRegions sourceRegions or {@code null} for none + */ + public HealthCheck setSourceRegions(java.util.List sourceRegions) { + this.sourceRegions = sourceRegions; + return this; + } + + /** + * @return value or {@code null} for none + */ + public SSLHealthCheck getSslHealthCheck() { + return sslHealthCheck; + } + + /** + * @param sslHealthCheck sslHealthCheck or {@code null} for none + */ + public HealthCheck setSslHealthCheck(SSLHealthCheck sslHealthCheck) { + this.sslHealthCheck = sslHealthCheck; + return this; + } + + /** + * @return value or {@code null} for none + */ + public TCPHealthCheck getTcpHealthCheck() { + return tcpHealthCheck; + } + + /** + * @param tcpHealthCheck tcpHealthCheck or {@code null} for none + */ + public HealthCheck setTcpHealthCheck(TCPHealthCheck tcpHealthCheck) { + this.tcpHealthCheck = tcpHealthCheck; + return this; + } + + /** + * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is + * invalid for timeoutSec to have greater value than checkIntervalSec. + * @return value or {@code null} for none + */ + public java.lang.Integer getTimeoutSec() { + return timeoutSec; + } + + /** + * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is + * invalid for timeoutSec to have greater value than checkIntervalSec. + * @param timeoutSec timeoutSec or {@code null} for none + */ + public HealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { + this.timeoutSec = timeoutSec; + return this; + } + + /** + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. + * @param type type or {@code null} for none + */ + public HealthCheck setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnhealthyThreshold() { + return unhealthyThreshold; + } + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * @param unhealthyThreshold unhealthyThreshold or {@code null} for none + */ + public HealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold) { + this.unhealthyThreshold = unhealthyThreshold; + return this; + } + + @Override + public HealthCheck set(String fieldName, Object value) { + return (HealthCheck) super.set(fieldName, value); + } + + @Override + public HealthCheck clone() { + return (HealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckList.java new file mode 100644 index 00000000000..a2ce83c3a8c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of HealthCheck resources. + * + *

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 HealthCheckList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthCheck 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 HealthCheck 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(HealthCheck.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 HealthCheckList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthCheck resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HealthCheck resources. + * @param items items or {@code null} for none + */ + public HealthCheckList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthCheckList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthCheckList 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 HealthCheckList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 HealthCheckList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthCheckList set(String fieldName, Object value) { + return (HealthCheckList) super.set(fieldName, value); + } + + @Override + public HealthCheckList clone() { + return (HealthCheckList) 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 HealthCheckListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthCheckLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckLogConfig.java new file mode 100644 index 00000000000..575c30d2056 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckLogConfig.java @@ -0,0 +1,70 @@ +/* + * 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; + +/** + * Configuration of logging on a health check. If logging is enabled, logs will be exported to + * Stackdriver. + * + *

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 HealthCheckLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether or not to export logs. This is false by default, which means no health check + * logging will be done. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enable; + + /** + * Indicates whether or not to export logs. This is false by default, which means no health check + * logging will be done. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnable() { + return enable; + } + + /** + * Indicates whether or not to export logs. This is false by default, which means no health check + * logging will be done. + * @param enable enable or {@code null} for none + */ + public HealthCheckLogConfig setEnable(java.lang.Boolean enable) { + this.enable = enable; + return this; + } + + @Override + public HealthCheckLogConfig set(String fieldName, Object value) { + return (HealthCheckLogConfig) super.set(fieldName, value); + } + + @Override + public HealthCheckLogConfig clone() { + return (HealthCheckLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckReference.java new file mode 100644 index 00000000000..cdbbdbd119c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckReference.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; + +/** + * A full or valid partial URL to a health check. For example, the following are valid URLs: + * - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health- + * check - projects/project-id/global/httpHealthChecks/health-check - + * global/httpHealthChecks/health-check + * + *

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 HealthCheckReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** + * @param healthCheck healthCheck or {@code null} for none + */ + public HealthCheckReference setHealthCheck(java.lang.String healthCheck) { + this.healthCheck = healthCheck; + return this; + } + + @Override + public HealthCheckReference set(String fieldName, Object value) { + return (HealthCheckReference) super.set(fieldName, value); + } + + @Override + public HealthCheckReference clone() { + return (HealthCheckReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckService.java new file mode 100644 index 00000000000..dabf1fea8ee --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -0,0 +1,462 @@ +/* + * 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 Health-Check as a Service 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 HealthCheckService extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- + * to-date fingerprint must be provided in order to patch/update the HealthCheckService; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthCheckService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more + * than 10 for regionalHealthCheckService, and not more than 1 for + * globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT + * orportSpecification=USE_FIXED_PORT. For regional HealthCheckService, theHealthCheck must be + * regional and in the same region. For global HealthCheckService,HealthCheck must be global. Mix + * of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong + * to the same region. RegionalHealthChecks must belong to the same region as zones + * ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT + * NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks + * that specify sourceRegions can only be used with global INTERNET_IP_PORTNetworkEndpointGroups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthChecks; + + /** + * Optional. Policy for how the results from multiple health checks for the same endpoint are + * aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An + * EndpointHealth message is returned for each pair in the health check service. - AND. + * If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the + * endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + * + * . This is only allowed with regional HealthCheckService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatusAggregationPolicy; + + /** + * 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] Type of the resource. Alwayscompute#healthCheckServicefor health + * check services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. + * 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; + + /** + * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For + * regionalHealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For + * globalHealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpointGroups; + + /** + * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of + * endpoints for receiving notifications of change in health status. For + * regionalHealthCheckService,NotificationEndpoint must be regional and in the same region. For + * global HealthCheckService,NotificationEndpoint must be global. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List notificationEndpoints; + + /** + * Output only. [Output Only] URL of the region where the health check service resides. This field + * is not applicable to global health check services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HealthCheckService setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- + * to-date fingerprint must be provided in order to patch/update the HealthCheckService; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthCheckService. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- + * to-date fingerprint must be provided in order to patch/update the HealthCheckService; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthCheckService. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- + * to-date fingerprint must be provided in order to patch/update the HealthCheckService; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthCheckService. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public HealthCheckService setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- + * to-date fingerprint must be provided in order to patch/update the HealthCheckService; + * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the HealthCheckService. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public HealthCheckService encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more + * than 10 for regionalHealthCheckService, and not more than 1 for + * globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT + * orportSpecification=USE_FIXED_PORT. For regional HealthCheckService, theHealthCheck must be + * regional and in the same region. For global HealthCheckService,HealthCheck must be global. Mix + * of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong + * to the same region. RegionalHealthChecks must belong to the same region as zones + * ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT + * NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks + * that specify sourceRegions can only be used with global INTERNET_IP_PORTNetworkEndpointGroups. + * @return value or {@code null} for none + */ + public java.util.List getHealthChecks() { + return healthChecks; + } + + /** + * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more + * than 10 for regionalHealthCheckService, and not more than 1 for + * globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT + * orportSpecification=USE_FIXED_PORT. For regional HealthCheckService, theHealthCheck must be + * regional and in the same region. For global HealthCheckService,HealthCheck must be global. Mix + * of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong + * to the same region. RegionalHealthChecks must belong to the same region as zones + * ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT + * NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks + * that specify sourceRegions can only be used with global INTERNET_IP_PORTNetworkEndpointGroups. + * @param healthChecks healthChecks or {@code null} for none + */ + public HealthCheckService setHealthChecks(java.util.List healthChecks) { + this.healthChecks = healthChecks; + return this; + } + + /** + * Optional. Policy for how the results from multiple health checks for the same endpoint are + * aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An + * EndpointHealth message is returned for each pair in the health check service. - AND. + * If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the + * endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + * + * . This is only allowed with regional HealthCheckService. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatusAggregationPolicy() { + return healthStatusAggregationPolicy; + } + + /** + * Optional. Policy for how the results from multiple health checks for the same endpoint are + * aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An + * EndpointHealth message is returned for each pair in the health check service. - AND. + * If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the + * endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + * + * . This is only allowed with regional HealthCheckService. + * @param healthStatusAggregationPolicy healthStatusAggregationPolicy or {@code null} for none + */ + public HealthCheckService setHealthStatusAggregationPolicy(java.lang.String healthStatusAggregationPolicy) { + this.healthStatusAggregationPolicy = healthStatusAggregationPolicy; + 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 HealthCheckService setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health + * check services. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health + * check services. + * @param kind kind or {@code null} for none + */ + public HealthCheckService setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. + * 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. The name must be 1-63 characters long, and comply with RFC1035. + * 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 HealthCheckService setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For + * regionalHealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For + * globalHealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpointGroups() { + return networkEndpointGroups; + } + + /** + * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For + * regionalHealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For + * globalHealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. + * @param networkEndpointGroups networkEndpointGroups or {@code null} for none + */ + public HealthCheckService setNetworkEndpointGroups(java.util.List networkEndpointGroups) { + this.networkEndpointGroups = networkEndpointGroups; + return this; + } + + /** + * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of + * endpoints for receiving notifications of change in health status. For + * regionalHealthCheckService,NotificationEndpoint must be regional and in the same region. For + * global HealthCheckService,NotificationEndpoint must be global. + * @return value or {@code null} for none + */ + public java.util.List getNotificationEndpoints() { + return notificationEndpoints; + } + + /** + * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of + * endpoints for receiving notifications of change in health status. For + * regionalHealthCheckService,NotificationEndpoint must be regional and in the same region. For + * global HealthCheckService,NotificationEndpoint must be global. + * @param notificationEndpoints notificationEndpoints or {@code null} for none + */ + public HealthCheckService setNotificationEndpoints(java.util.List notificationEndpoints) { + this.notificationEndpoints = notificationEndpoints; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the health check service resides. This field + * is not applicable to global health check services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the health check service resides. This field + * is not applicable to global health check services. You must specify this field as part of the + * HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public HealthCheckService setRegion(java.lang.String region) { + this.region = region; + 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 HealthCheckService setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public HealthCheckService set(String fieldName, Object value) { + return (HealthCheckService) super.set(fieldName, value); + } + + @Override + public HealthCheckService clone() { + return (HealthCheckService) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java new file mode 100644 index 00000000000..69b0462a475 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of HealthCheckServicesScopedList. + * + *

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 HealthCheckServiceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthCheckServicesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 HealthCheckServiceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthCheckServicesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthCheckServicesScopedList resources. + * @param items items or {@code null} for none + */ + public HealthCheckServiceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthCheckServiceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthCheckServiceAggregatedList 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 HealthCheckServiceAggregatedList 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 HealthCheckServiceAggregatedList 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 HealthCheckServiceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthCheckServiceAggregatedList set(String fieldName, Object value) { + return (HealthCheckServiceAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthCheckServiceAggregatedList clone() { + return (HealthCheckServiceAggregatedList) 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 HealthCheckServiceAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceReference.java new file mode 100644 index 00000000000..4518c4e1ff6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServiceReference.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A full or valid partial URL to a health check service. For example, the following are valid URLs: + * - https://www.googleapis.com/compute/beta/projects/project-id/regions/us- + * west1/healthCheckServices/health-check-service - projects/project-id/regions/us- + * west1/healthCheckServices/health-check-service - regions/us-west1/healthCheckServices/health- + * check-service + * + *

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 HealthCheckServiceReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheckService; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getHealthCheckService() { + return healthCheckService; + } + + /** + * @param healthCheckService healthCheckService or {@code null} for none + */ + public HealthCheckServiceReference setHealthCheckService(java.lang.String healthCheckService) { + this.healthCheckService = healthCheckService; + return this; + } + + @Override + public HealthCheckServiceReference set(String fieldName, Object value) { + return (HealthCheckServiceReference) super.set(fieldName, value); + } + + @Override + public HealthCheckServiceReference clone() { + return (HealthCheckServiceReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java new file mode 100644 index 00000000000..597feab0ae6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -0,0 +1,386 @@ +/* + * 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 HealthCheckServicesList. + * + *

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 HealthCheckServicesList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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; + + /** + * Output only. A list of HealthCheckService 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 HealthCheckService 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(HealthCheckService.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for + * lists of HealthCheckServices. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HealthCheckServicesList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. A list of HealthCheckService resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. A list of HealthCheckService resources. + * @param items items or {@code null} for none + */ + public HealthCheckServicesList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for + * lists of HealthCheckServices. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for + * lists of HealthCheckServices. + * @param kind kind or {@code null} for none + */ + public HealthCheckServicesList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthCheckServicesList 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 HealthCheckServicesList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 HealthCheckServicesList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthCheckServicesList set(String fieldName, Object value) { + return (HealthCheckServicesList) super.set(fieldName, value); + } + + @Override + public HealthCheckServicesList clone() { + return (HealthCheckServicesList) 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 HealthCheckServicesListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java new file mode 100644 index 00000000000..3681f71b7e7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 HealthCheckServicesScopedList. + * + *

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 HealthCheckServicesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthCheckServices contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + static { + // hack to force ProGuard to consider HealthCheckService 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(HealthCheckService.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthCheckServices contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * A list of HealthCheckServices contained in this scope. + * @param resources resources or {@code null} for none + */ + public HealthCheckServicesScopedList setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public HealthCheckServicesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthCheckServicesScopedList set(String fieldName, Object value) { + return (HealthCheckServicesScopedList) super.set(fieldName, value); + } + + @Override + public HealthCheckServicesScopedList clone() { + return (HealthCheckServicesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 HealthCheckServicesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java new file mode 100644 index 00000000000..769e9d8827d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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 HealthChecksAggregatedList. + * + *

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 HealthChecksAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthChecksScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 HealthChecksAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthChecksScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthChecksScopedList resources. + * @param items items or {@code null} for none + */ + public HealthChecksAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthChecksAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthChecksAggregatedList 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 HealthChecksAggregatedList 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 HealthChecksAggregatedList 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 HealthChecksAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthChecksAggregatedList set(String fieldName, Object value) { + return (HealthChecksAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthChecksAggregatedList clone() { + return (HealthChecksAggregatedList) 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 HealthChecksAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthChecksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthChecksScopedList.java new file mode 100644 index 00000000000..e556cf90049 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthChecksScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 HealthChecksScopedList. + * + *

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 HealthChecksScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthChecks contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthChecks; + + static { + // hack to force ProGuard to consider HealthCheck 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(HealthCheck.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthChecks contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getHealthChecks() { + return healthChecks; + } + + /** + * A list of HealthChecks contained in this scope. + * @param healthChecks healthChecks or {@code null} for none + */ + public HealthChecksScopedList setHealthChecks(java.util.List healthChecks) { + this.healthChecks = healthChecks; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public HealthChecksScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthChecksScopedList set(String fieldName, Object value) { + return (HealthChecksScopedList) super.set(fieldName, value); + } + + @Override + public HealthChecksScopedList clone() { + return (HealthChecksScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 HealthChecksScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSource.java new file mode 100644 index 00000000000..e645a8cd5d1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSource.java @@ -0,0 +1,420 @@ +/* + * 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 health source. + * + * A health source resource specifies the source resources and the health aggregation policy applied + * to the source resources to determine the aggregated health status. + * + *

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 HealthSource extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same + * region as the HealthSource. Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthAggregationPolicy; + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#healthSource for health sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] URL of the region where the health source resides. This field + * applies only to the regional resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be + * specified when theHealthSource is created, and cannot be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is + * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED + * and must be regional and in the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of + * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sources; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HealthSource setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public HealthSource setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date + * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will + * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to + * retrieve the HealthSource. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public HealthSource encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same + * region as the HealthSource. Can be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; + } + + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same + * region as the HealthSource. Can be mutated. + * @param healthAggregationPolicy healthAggregationPolicy or {@code null} for none + */ + public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + this.healthAggregationPolicy = healthAggregationPolicy; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public HealthSource setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @param kind kind or {@code null} for none + */ + public HealthSource setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 HealthSource setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the health source resides. This field + * applies only to the regional resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the health source resides. This field + * applies only to the regional resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public HealthSource setRegion(java.lang.String region) { + this.region = region; + 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 HealthSource setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public HealthSource setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be + * specified when theHealthSource is created, and cannot be mutated. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be + * specified when theHealthSource is created, and cannot be mutated. + * @param sourceType sourceType or {@code null} for none + */ + public HealthSource setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is + * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED + * and must be regional and in the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of + * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. + * @return value or {@code null} for none + */ + public java.util.List getSources() { + return sources; + } + + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is + * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED + * and must be regional and in the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of + * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. + * @param sources sources or {@code null} for none + */ + public HealthSource setSources(java.util.List sources) { + this.sources = sources; + return this; + } + + @Override + public HealthSource set(String fieldName, Object value) { + return (HealthSource) super.set(fieldName, value); + } + + @Override + public HealthSource clone() { + return (HealthSource) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java new file mode 100644 index 00000000000..fa7d25074f3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of HealthSourcesScopedList. + * + *

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 HealthSourceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthSourcesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 HealthSourceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthSourcesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of HealthSourcesScopedList resources. + * @param items items or {@code null} for none + */ + public HealthSourceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HealthSourceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthSourceAggregatedList 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 HealthSourceAggregatedList 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 HealthSourceAggregatedList 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 HealthSourceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthSourceAggregatedList set(String fieldName, Object value) { + return (HealthSourceAggregatedList) super.set(fieldName, value); + } + + @Override + public HealthSourceAggregatedList clone() { + return (HealthSourceAggregatedList) 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 HealthSourceAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java new file mode 100644 index 00000000000..9b562b64733 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java @@ -0,0 +1,117 @@ +/* + * 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 RegionHealthSources.GetHealth + * + *

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 HealthSourceHealth extends com.google.api.client.json.GenericJson { + + /** + * Health state of the HealthSource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthState; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of + * health sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Health state details of the sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sources; + + /** + * Health state of the HealthSource. + * @return value or {@code null} for none + */ + public java.lang.String getHealthState() { + return healthState; + } + + /** + * Health state of the HealthSource. + * @param healthState healthState or {@code null} for none + */ + public HealthSourceHealth setHealthState(java.lang.String healthState) { + this.healthState = healthState; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of + * health sources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of + * health sources. + * @param kind kind or {@code null} for none + */ + public HealthSourceHealth setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Health state details of the sources. + * @return value or {@code null} for none + */ + public java.util.List getSources() { + return sources; + } + + /** + * Health state details of the sources. + * @param sources sources or {@code null} for none + */ + public HealthSourceHealth setSources(java.util.List sources) { + this.sources = sources; + return this; + } + + @Override + public HealthSourceHealth set(String fieldName, Object value) { + return (HealthSourceHealth) super.set(fieldName, value); + } + + @Override + public HealthSourceHealth clone() { + return (HealthSourceHealth) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceList.java new file mode 100644 index 00000000000..e555f20ba1a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourceList.java @@ -0,0 +1,383 @@ +/* + * 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 HealthSourceList. + * + *

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 HealthSourceList extends com.google.api.client.json.GenericJson { + + /** + * [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 HealthSource 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 HealthSource 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(HealthSource.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 HealthSourceList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HealthSource resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HealthSource resources. + * @param items items or {@code null} for none + */ + public HealthSourceList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * @param kind kind or {@code null} for none + */ + public HealthSourceList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HealthSourceList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HealthSourceList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 HealthSourceList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthSourceList set(String fieldName, Object value) { + return (HealthSourceList) super.set(fieldName, value); + } + + @Override + public HealthSourceList clone() { + return (HealthSourceList) 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 HealthSourceListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java new file mode 100644 index 00000000000..8b9e296a844 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java @@ -0,0 +1,120 @@ +/* + * 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 HealthSourcesGetHealthResponseSourceInfo. + * + *

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 HealthSourcesGetHealthResponseSourceInfo extends com.google.api.client.json.GenericJson { + + /** + * Represents an instance group or network endpoint group behind the source backend service. Only + * used if the sourceType of the regionHealthSource is BACKEND_SERVICE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List backends; + + /** + * Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB + * backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** + * Fully qualified URL of the associated source resource. This is always a backend service URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Represents an instance group or network endpoint group behind the source backend service. Only + * used if the sourceType of the regionHealthSource is BACKEND_SERVICE. + * @return value or {@code null} for none + */ + public java.util.List getBackends() { + return backends; + } + + /** + * Represents an instance group or network endpoint group behind the source backend service. Only + * used if the sourceType of the regionHealthSource is BACKEND_SERVICE. + * @param backends backends or {@code null} for none + */ + public HealthSourcesGetHealthResponseSourceInfo setBackends(java.util.List backends) { + this.backends = backends; + return this; + } + + /** + * Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB + * backend service. + * @return value or {@code null} for none + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** + * Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB + * backend service. + * @param forwardingRule forwardingRule or {@code null} for none + */ + public HealthSourcesGetHealthResponseSourceInfo setForwardingRule(java.lang.String forwardingRule) { + this.forwardingRule = forwardingRule; + return this; + } + + /** + * Fully qualified URL of the associated source resource. This is always a backend service URL. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Fully qualified URL of the associated source resource. This is always a backend service URL. + * @param source source or {@code null} for none + */ + public HealthSourcesGetHealthResponseSourceInfo setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public HealthSourcesGetHealthResponseSourceInfo set(String fieldName, Object value) { + return (HealthSourcesGetHealthResponseSourceInfo) super.set(fieldName, value); + } + + @Override + public HealthSourcesGetHealthResponseSourceInfo clone() { + return (HealthSourcesGetHealthResponseSourceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java new file mode 100644 index 00000000000..a498ff4e5c6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java @@ -0,0 +1,117 @@ +/* + * 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 HealthSourcesGetHealthResponseSourceInfoBackendInfo. + * + *

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 HealthSourcesGetHealthResponseSourceInfoBackendInfo extends com.google.api.client.json.GenericJson { + + /** + * Total number of endpoints when determining the health of the regionHealthSource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer endpointCount; + + /** + * Fully qualified URL of an instance group or network endpoint group behind the source backend + * service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String group; + + /** + * Number of endpoints considered healthy when determining health of the regionHealthSource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyEndpointCount; + + /** + * Total number of endpoints when determining the health of the regionHealthSource. + * @return value or {@code null} for none + */ + public java.lang.Integer getEndpointCount() { + return endpointCount; + } + + /** + * Total number of endpoints when determining the health of the regionHealthSource. + * @param endpointCount endpointCount or {@code null} for none + */ + public HealthSourcesGetHealthResponseSourceInfoBackendInfo setEndpointCount(java.lang.Integer endpointCount) { + this.endpointCount = endpointCount; + return this; + } + + /** + * Fully qualified URL of an instance group or network endpoint group behind the source backend + * service. + * @return value or {@code null} for none + */ + public java.lang.String getGroup() { + return group; + } + + /** + * Fully qualified URL of an instance group or network endpoint group behind the source backend + * service. + * @param group group or {@code null} for none + */ + public HealthSourcesGetHealthResponseSourceInfoBackendInfo setGroup(java.lang.String group) { + this.group = group; + return this; + } + + /** + * Number of endpoints considered healthy when determining health of the regionHealthSource. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyEndpointCount() { + return healthyEndpointCount; + } + + /** + * Number of endpoints considered healthy when determining health of the regionHealthSource. + * @param healthyEndpointCount healthyEndpointCount or {@code null} for none + */ + public HealthSourcesGetHealthResponseSourceInfoBackendInfo setHealthyEndpointCount(java.lang.Integer healthyEndpointCount) { + this.healthyEndpointCount = healthyEndpointCount; + return this; + } + + @Override + public HealthSourcesGetHealthResponseSourceInfoBackendInfo set(String fieldName, Object value) { + return (HealthSourcesGetHealthResponseSourceInfoBackendInfo) super.set(fieldName, value); + } + + @Override + public HealthSourcesGetHealthResponseSourceInfoBackendInfo clone() { + return (HealthSourcesGetHealthResponseSourceInfoBackendInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java new file mode 100644 index 00000000000..863ed27d6e9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 HealthSourcesScopedList. + * + *

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 HealthSourcesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of HealthSources contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthSources; + + static { + // hack to force ProGuard to consider HealthSource 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(HealthSource.class); + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of HealthSources contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getHealthSources() { + return healthSources; + } + + /** + * A list of HealthSources contained in this scope. + * @param healthSources healthSources or {@code null} for none + */ + public HealthSourcesScopedList setHealthSources(java.util.List healthSources) { + this.healthSources = healthSources; + return this; + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + * @param warning warning or {@code null} for none + */ + public HealthSourcesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HealthSourcesScopedList set(String fieldName, Object value) { + return (HealthSourcesScopedList) super.set(fieldName, value); + } + + @Override + public HealthSourcesScopedList clone() { + return (HealthSourcesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of health sources when the list is empty. + */ + 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 HealthSourcesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HealthStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatus.java new file mode 100644 index 00000000000..cc6b43bad03 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatus.java @@ -0,0 +1,303 @@ +/* + * 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 HealthStatus. + * + *

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 HealthStatus extends com.google.api.client.json.GenericJson { + + /** + * Metadata defined as annotations for network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * URL of the forwarding rule associated with the health status of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** + * A forwarding rule IP address assigned to this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forwardingRuleIp; + + /** + * Health state of the IPv4 address of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthState; + + /** + * URL of the instance resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * For target pool based Network Load Balancing, it indicates the forwarding rule's IP address + * assigned to this instance. For other types of load balancing, the field indicates VM internal + * ip. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * Health state of the IPv6 address of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6HealthState; + + /** + * The named port of the instance group, not necessarily the port that is health-checked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String weight; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String weightError; + + /** + * Metadata defined as annotations for network endpoint. + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * Metadata defined as annotations for network endpoint. + * @param annotations annotations or {@code null} for none + */ + public HealthStatus setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * URL of the forwarding rule associated with the health status of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** + * URL of the forwarding rule associated with the health status of the instance. + * @param forwardingRule forwardingRule or {@code null} for none + */ + public HealthStatus setForwardingRule(java.lang.String forwardingRule) { + this.forwardingRule = forwardingRule; + return this; + } + + /** + * A forwarding rule IP address assigned to this instance. + * @return value or {@code null} for none + */ + public java.lang.String getForwardingRuleIp() { + return forwardingRuleIp; + } + + /** + * A forwarding rule IP address assigned to this instance. + * @param forwardingRuleIp forwardingRuleIp or {@code null} for none + */ + public HealthStatus setForwardingRuleIp(java.lang.String forwardingRuleIp) { + this.forwardingRuleIp = forwardingRuleIp; + return this; + } + + /** + * Health state of the IPv4 address of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getHealthState() { + return healthState; + } + + /** + * Health state of the IPv4 address of the instance. + * @param healthState healthState or {@code null} for none + */ + public HealthStatus setHealthState(java.lang.String healthState) { + this.healthState = healthState; + return this; + } + + /** + * URL of the instance resource. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * URL of the instance resource. + * @param instance instance or {@code null} for none + */ + public HealthStatus setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * For target pool based Network Load Balancing, it indicates the forwarding rule's IP address + * assigned to this instance. For other types of load balancing, the field indicates VM internal + * ip. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * For target pool based Network Load Balancing, it indicates the forwarding rule's IP address + * assigned to this instance. For other types of load balancing, the field indicates VM internal + * ip. + * @param ipAddress ipAddress or {@code null} for none + */ + public HealthStatus setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * @param ipv6Address ipv6Address or {@code null} for none + */ + public HealthStatus setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * Health state of the IPv6 address of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6HealthState() { + return ipv6HealthState; + } + + /** + * Health state of the IPv6 address of the instance. + * @param ipv6HealthState ipv6HealthState or {@code null} for none + */ + public HealthStatus setIpv6HealthState(java.lang.String ipv6HealthState) { + this.ipv6HealthState = ipv6HealthState; + return this; + } + + /** + * The named port of the instance group, not necessarily the port that is health-checked. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The named port of the instance group, not necessarily the port that is health-checked. + * @param port port or {@code null} for none + */ + public HealthStatus setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getWeight() { + return weight; + } + + /** + * @param weight weight or {@code null} for none + */ + public HealthStatus setWeight(java.lang.String weight) { + this.weight = weight; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getWeightError() { + return weightError; + } + + /** + * @param weightError weightError or {@code null} for none + */ + public HealthStatus setWeightError(java.lang.String weightError) { + this.weightError = weightError; + return this; + } + + @Override + public HealthStatus set(String fieldName, Object value) { + return (HealthStatus) super.set(fieldName, value); + } + + @Override + public HealthStatus clone() { + return (HealthStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatusForNetworkEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatusForNetworkEndpoint.java new file mode 100644 index 00000000000..7d134509766 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HealthStatusForNetworkEndpoint.java @@ -0,0 +1,186 @@ +/* + * 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 HealthStatusForNetworkEndpoint. + * + *

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 HealthStatusForNetworkEndpoint extends com.google.api.client.json.GenericJson { + + /** + * URL of the backend service associated with the health state of the network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceReference backendService; + + /** + * URL of the forwarding rule associated with the health state of the network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ForwardingRuleReference forwardingRule; + + /** + * URL of the health check associated with the health state of the network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HealthCheckReference healthCheck; + + /** + * URL of the health check service associated with the health state of the network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HealthCheckServiceReference healthCheckService; + + /** + * Health state of the network endpoint determined based on the health checks configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthState; + + /** + * Health state of the ipv6 network endpoint determined based on the health checks configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6HealthState; + + /** + * URL of the backend service associated with the health state of the network endpoint. + * @return value or {@code null} for none + */ + public BackendServiceReference getBackendService() { + return backendService; + } + + /** + * URL of the backend service associated with the health state of the network endpoint. + * @param backendService backendService or {@code null} for none + */ + public HealthStatusForNetworkEndpoint setBackendService(BackendServiceReference backendService) { + this.backendService = backendService; + return this; + } + + /** + * URL of the forwarding rule associated with the health state of the network endpoint. + * @return value or {@code null} for none + */ + public ForwardingRuleReference getForwardingRule() { + return forwardingRule; + } + + /** + * URL of the forwarding rule associated with the health state of the network endpoint. + * @param forwardingRule forwardingRule or {@code null} for none + */ + public HealthStatusForNetworkEndpoint setForwardingRule(ForwardingRuleReference forwardingRule) { + this.forwardingRule = forwardingRule; + return this; + } + + /** + * URL of the health check associated with the health state of the network endpoint. + * @return value or {@code null} for none + */ + public HealthCheckReference getHealthCheck() { + return healthCheck; + } + + /** + * URL of the health check associated with the health state of the network endpoint. + * @param healthCheck healthCheck or {@code null} for none + */ + public HealthStatusForNetworkEndpoint setHealthCheck(HealthCheckReference healthCheck) { + this.healthCheck = healthCheck; + return this; + } + + /** + * URL of the health check service associated with the health state of the network endpoint. + * @return value or {@code null} for none + */ + public HealthCheckServiceReference getHealthCheckService() { + return healthCheckService; + } + + /** + * URL of the health check service associated with the health state of the network endpoint. + * @param healthCheckService healthCheckService or {@code null} for none + */ + public HealthStatusForNetworkEndpoint setHealthCheckService(HealthCheckServiceReference healthCheckService) { + this.healthCheckService = healthCheckService; + return this; + } + + /** + * Health state of the network endpoint determined based on the health checks configured. + * @return value or {@code null} for none + */ + public java.lang.String getHealthState() { + return healthState; + } + + /** + * Health state of the network endpoint determined based on the health checks configured. + * @param healthState healthState or {@code null} for none + */ + public HealthStatusForNetworkEndpoint setHealthState(java.lang.String healthState) { + this.healthState = healthState; + return this; + } + + /** + * Health state of the ipv6 network endpoint determined based on the health checks configured. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6HealthState() { + return ipv6HealthState; + } + + /** + * Health state of the ipv6 network endpoint determined based on the health checks configured. + * @param ipv6HealthState ipv6HealthState or {@code null} for none + */ + public HealthStatusForNetworkEndpoint setIpv6HealthState(java.lang.String ipv6HealthState) { + this.ipv6HealthState = ipv6HealthState; + return this; + } + + @Override + public HealthStatusForNetworkEndpoint set(String fieldName, Object value) { + return (HealthStatusForNetworkEndpoint) super.set(fieldName, value); + } + + @Override + public HealthStatusForNetworkEndpoint clone() { + return (HealthStatusForNetworkEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Help.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Help.java new file mode 100644 index 00000000000..d69ca5a0d68 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Help.java @@ -0,0 +1,70 @@ +/* + * 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; + +/** + * Provides links to documentation or for performing an out of band action. + * + * For example, if a quota check failed with an error indicating the calling project hasn't enabled + * the accessed service, this can contain a URL pointing directly to the right place in the + * developer console to flip the bit. + * + *

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 Help extends com.google.api.client.json.GenericJson { + + /** + * URL(s) pointing to additional information on handling the current error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List links; + + /** + * URL(s) pointing to additional information on handling the current error. + * @return value or {@code null} for none + */ + public java.util.List getLinks() { + return links; + } + + /** + * URL(s) pointing to additional information on handling the current error. + * @param links links or {@code null} for none + */ + public Help setLinks(java.util.List links) { + this.links = links; + return this; + } + + @Override + public Help set(String fieldName, Object value) { + return (Help) super.set(fieldName, value); + } + + @Override + public Help clone() { + return (Help) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HelpLink.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HelpLink.java new file mode 100644 index 00000000000..9bbcc3765e3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HelpLink.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Describes a URL link. + * + *

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 HelpLink extends com.google.api.client.json.GenericJson { + + /** + * Describes what the link offers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The URL of the link. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Describes what the link offers. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Describes what the link offers. + * @param description description or {@code null} for none + */ + public HelpLink setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The URL of the link. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * The URL of the link. + * @param url url or {@code null} for none + */ + public HelpLink setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public HelpLink set(String fieldName, Object value) { + return (HelpLink) super.set(fieldName, value); + } + + @Override + public HelpLink clone() { + return (HelpLink) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Host.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Host.java new file mode 100644 index 00000000000..755248a69f3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Host.java @@ -0,0 +1,309 @@ +/* + * 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 host 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 Host extends com.google.api.client.json.GenericJson { + + /** + * Output only. All aliases for this resource. e.g. projects/123/zones/us- + * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List aliasLinks; + + /** + * Output only. The creation timestamp, formatted asRFC3339 text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * 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. The unique identifier for this 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. The type of resource. Alwayscompute#host for hosts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. The name of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The self link of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. The self link with id of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. The state of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The status of the host + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HostStatus status; + + /** + * Output only. The zone in which the host resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. All aliases for this resource. e.g. projects/123/zones/us- + * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 + * @return value or {@code null} for none + */ + public java.util.List getAliasLinks() { + return aliasLinks; + } + + /** + * Output only. All aliases for this resource. e.g. projects/123/zones/us- + * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 + * @param aliasLinks aliasLinks or {@code null} for none + */ + public Host setAliasLinks(java.util.List aliasLinks) { + this.aliasLinks = aliasLinks; + return this; + } + + /** + * Output only. The creation timestamp, formatted asRFC3339 text. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. The creation timestamp, formatted asRFC3339 text. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Host setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public Host setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The unique identifier for this resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. The unique identifier for this resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public Host setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. The type of resource. Alwayscompute#host for hosts. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The type of resource. Alwayscompute#host for hosts. + * @param kind kind or {@code null} for none + */ + public Host setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. The name of the host. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The name of the host. + * @param name name or {@code null} for none + */ + public Host setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The self link of the host. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. The self link of the host. + * @param selfLink selfLink or {@code null} for none + */ + public Host setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. The self link with id of the host. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. The self link with id of the host. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Host setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. The state of the host. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the host. + * @param state state or {@code null} for none + */ + public Host setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The status of the host + * @return value or {@code null} for none + */ + public HostStatus getStatus() { + return status; + } + + /** + * Output only. The status of the host + * @param status status or {@code null} for none + */ + public Host setStatus(HostStatus status) { + this.status = status; + return this; + } + + /** + * Output only. The zone in which the host resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. The zone in which the host resides. + * @param zone zone or {@code null} for none + */ + public Host setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Host set(String fieldName, Object value) { + return (Host) super.set(fieldName, value); + } + + @Override + public Host clone() { + return (Host) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java new file mode 100644 index 00000000000..6633288c1e0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java @@ -0,0 +1,138 @@ +/* + * 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 HostPhysicalTopology. + * + *

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 HostPhysicalTopology extends com.google.api.client.json.GenericJson { + + /** + * The unique identifier of the capacity block within the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String block; + + /** + * The cluster name of the reservation sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subBlock; + + /** + * The unique identifier of the capacity block within the cluster. + * @return value or {@code null} for none + */ + public java.lang.String getBlock() { + return block; + } + + /** + * The unique identifier of the capacity block within the cluster. + * @param block block or {@code null} for none + */ + public HostPhysicalTopology setBlock(java.lang.String block) { + this.block = block; + return this; + } + + /** + * The cluster name of the reservation sub-block. + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * The cluster name of the reservation sub-block. + * @param cluster cluster or {@code null} for none + */ + public HostPhysicalTopology setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * @param host host or {@code null} for none + */ + public HostPhysicalTopology setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * @return value or {@code null} for none + */ + public java.lang.String getSubBlock() { + return subBlock; + } + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * @param subBlock subBlock or {@code null} for none + */ + public HostPhysicalTopology setSubBlock(java.lang.String subBlock) { + this.subBlock = subBlock; + return this; + } + + @Override + public HostPhysicalTopology set(String fieldName, Object value) { + return (HostPhysicalTopology) super.set(fieldName, value); + } + + @Override + public HostPhysicalTopology clone() { + return (HostPhysicalTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostRule.java new file mode 100644 index 00000000000..50220c4c542 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostRule.java @@ -0,0 +1,136 @@ +/* + * 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; + +/** + * UrlMaps A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the + * BackendService. + * + *

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 HostRule extends com.google.api.client.json.GenericJson { + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The list of host patterns to match. They must be valid hostnames with optional port numbers in + * the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first + * character, and if followed by anything, the immediate following character must be either - or + * .. + * + * * based matching is not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List hosts; + + /** + * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches + * the URL's host portion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathMatcher; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HostRule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The list of host patterns to match. They must be valid hostnames with optional port numbers in + * the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first + * character, and if followed by anything, the immediate following character must be either - or + * .. + * + * * based matching is not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.util.List getHosts() { + return hosts; + } + + /** + * The list of host patterns to match. They must be valid hostnames with optional port numbers in + * the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first + * character, and if followed by anything, the immediate following character must be either - or + * .. + * + * * based matching is not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @param hosts hosts or {@code null} for none + */ + public HostRule setHosts(java.util.List hosts) { + this.hosts = hosts; + return this; + } + + /** + * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches + * the URL's host portion. + * @return value or {@code null} for none + */ + public java.lang.String getPathMatcher() { + return pathMatcher; + } + + /** + * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches + * the URL's host portion. + * @param pathMatcher pathMatcher or {@code null} for none + */ + public HostRule setPathMatcher(java.lang.String pathMatcher) { + this.pathMatcher = pathMatcher; + return this; + } + + @Override + public HostRule set(String fieldName, Object value) { + return (HostRule) super.set(fieldName, value); + } + + @Override + public HostRule clone() { + return (HostRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostStatus.java new file mode 100644 index 00000000000..e4ebdeaa586 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostStatus.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HostStatus. + * + *

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 HostStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The physical topology of the reservation sub-block, if present + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HostPhysicalTopology physicalTopology; + + /** + * Output only. The URIs of the instances currently running on this host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List runningInstances; + + /** + * Output only. The physical topology of the reservation sub-block, if present + * @return value or {@code null} for none + */ + public HostPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. The physical topology of the reservation sub-block, if present + * @param physicalTopology physicalTopology or {@code null} for none + */ + public HostStatus setPhysicalTopology(HostPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. The URIs of the instances currently running on this host. + * @return value or {@code null} for none + */ + public java.util.List getRunningInstances() { + return runningInstances; + } + + /** + * Output only. The URIs of the instances currently running on this host. + * @param runningInstances runningInstances or {@code null} for none + */ + public HostStatus setRunningInstances(java.util.List runningInstances) { + this.runningInstances = runningInstances; + return this; + } + + @Override + public HostStatus set(String fieldName, Object value) { + return (HostStatus) super.set(fieldName, value); + } + + @Override + public HostStatus clone() { + return (HostStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java new file mode 100644 index 00000000000..06e2a3264c9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.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; + +/** + * Model definition for HostsGetVersionRequest. + * + *

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 HostsGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public HostsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public HostsGetVersionRequest set(String fieldName, Object value) { + return (HostsGetVersionRequest) super.set(fieldName, value); + } + + @Override + public HostsGetVersionRequest clone() { + return (HostsGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsListResponse.java new file mode 100644 index 00000000000..c076cef8f02 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HostsListResponse.java @@ -0,0 +1,428 @@ +/* + * 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 HostsListResponse. + * + *

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 HostsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The 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 host 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 Host 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(Host.class); + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * An informational warning message. + * 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 getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public HostsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * The unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * The unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HostsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of host resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of host resources. + * @param items items or {@code null} for none + */ + public HostsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * @param kind kind or {@code null} for none + */ + public HostsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HostsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * The server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HostsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public HostsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * An informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning message. + * @param warning warning or {@code null} for none + */ + public HostsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HostsListResponse set(String fieldName, Object value) { + return (HostsListResponse) super.set(fieldName, value); + } + + @Override + public HostsListResponse clone() { + return (HostsListResponse) super.clone(); + } + + /** + * An 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 HostsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HttpFaultAbort.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultAbort.java new file mode 100644 index 00000000000..d867b14626d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultAbort.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Specification for how requests are aborted as part of fault injection. + * + *

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 HttpFaultAbort extends com.google.api.client.json.GenericJson { + + /** + * The HTTP status code used to abort the request. + * + * The value must be from 200 to 599 inclusive. + * + * For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this + * mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is + * currently not supported by Traffic Director. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long httpStatus; + + /** + * The percentage of traffic for connections, operations, or requests that is aborted as part of + * fault injection. + * + * The value must be from 0.0 to 100.0 inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double percentage; + + /** + * The HTTP status code used to abort the request. + * + * The value must be from 200 to 599 inclusive. + * + * For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this + * mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is + * currently not supported by Traffic Director. + * @return value or {@code null} for none + */ + public java.lang.Long getHttpStatus() { + return httpStatus; + } + + /** + * The HTTP status code used to abort the request. + * + * The value must be from 200 to 599 inclusive. + * + * For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this + * mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is + * currently not supported by Traffic Director. + * @param httpStatus httpStatus or {@code null} for none + */ + public HttpFaultAbort setHttpStatus(java.lang.Long httpStatus) { + this.httpStatus = httpStatus; + return this; + } + + /** + * The percentage of traffic for connections, operations, or requests that is aborted as part of + * fault injection. + * + * The value must be from 0.0 to 100.0 inclusive. + * @return value or {@code null} for none + */ + public java.lang.Double getPercentage() { + return percentage; + } + + /** + * The percentage of traffic for connections, operations, or requests that is aborted as part of + * fault injection. + * + * The value must be from 0.0 to 100.0 inclusive. + * @param percentage percentage or {@code null} for none + */ + public HttpFaultAbort setPercentage(java.lang.Double percentage) { + this.percentage = percentage; + return this; + } + + @Override + public HttpFaultAbort set(String fieldName, Object value) { + return (HttpFaultAbort) super.set(fieldName, value); + } + + @Override + public HttpFaultAbort clone() { + return (HttpFaultAbort) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultDelay.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultDelay.java new file mode 100644 index 00000000000..d56657eef23 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultDelay.java @@ -0,0 +1,100 @@ +/* + * 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; + +/** + * Specifies the delay introduced by the load balancer before forwarding the request to the backend + * service as part of fault injection. + * + *

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 HttpFaultDelay extends com.google.api.client.json.GenericJson { + + /** + * Specifies the value of the fixed delay interval. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration fixedDelay; + + /** + * The percentage of traffic for connections, operations, or requests for which a delay is + * introduced as part of fault injection. + * + * The value must be from 0.0 to 100.0 inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double percentage; + + /** + * Specifies the value of the fixed delay interval. + * @return value or {@code null} for none + */ + public Duration getFixedDelay() { + return fixedDelay; + } + + /** + * Specifies the value of the fixed delay interval. + * @param fixedDelay fixedDelay or {@code null} for none + */ + public HttpFaultDelay setFixedDelay(Duration fixedDelay) { + this.fixedDelay = fixedDelay; + return this; + } + + /** + * The percentage of traffic for connections, operations, or requests for which a delay is + * introduced as part of fault injection. + * + * The value must be from 0.0 to 100.0 inclusive. + * @return value or {@code null} for none + */ + public java.lang.Double getPercentage() { + return percentage; + } + + /** + * The percentage of traffic for connections, operations, or requests for which a delay is + * introduced as part of fault injection. + * + * The value must be from 0.0 to 100.0 inclusive. + * @param percentage percentage or {@code null} for none + */ + public HttpFaultDelay setPercentage(java.lang.Double percentage) { + this.percentage = percentage; + return this; + } + + @Override + public HttpFaultDelay set(String fieldName, Object value) { + return (HttpFaultDelay) super.set(fieldName, value); + } + + @Override + public HttpFaultDelay clone() { + return (HttpFaultDelay) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultInjection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultInjection.java new file mode 100644 index 00000000000..c6e2d244a83 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpFaultInjection.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The specification for fault injection introduced into traffic to test the resiliency of clients + * to backend service failure. As part of fault injection, when clients send requests to a backend + * service, delays can be introduced by the load balancer on a percentage of requests before sending + * those request to the backend service. Similarly requests from clients can be aborted by the load + * balancer for a percentage of requests. + * + *

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 HttpFaultInjection extends com.google.api.client.json.GenericJson { + + /** + * The specification for how client requests are aborted as part of fault injection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpFaultAbort abort; + + /** + * The specification for how client requests are delayed as part of fault injection, before being + * sent to a backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpFaultDelay delay; + + /** + * The specification for how client requests are aborted as part of fault injection. + * @return value or {@code null} for none + */ + public HttpFaultAbort getAbort() { + return abort; + } + + /** + * The specification for how client requests are aborted as part of fault injection. + * @param abort abort or {@code null} for none + */ + public HttpFaultInjection setAbort(HttpFaultAbort abort) { + this.abort = abort; + return this; + } + + /** + * The specification for how client requests are delayed as part of fault injection, before being + * sent to a backend service. + * @return value or {@code null} for none + */ + public HttpFaultDelay getDelay() { + return delay; + } + + /** + * The specification for how client requests are delayed as part of fault injection, before being + * sent to a backend service. + * @param delay delay or {@code null} for none + */ + public HttpFaultInjection setDelay(HttpFaultDelay delay) { + this.delay = delay; + return this; + } + + @Override + public HttpFaultInjection set(String fieldName, Object value) { + return (HttpFaultInjection) super.set(fieldName, value); + } + + @Override + public HttpFaultInjection clone() { + return (HttpFaultInjection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderAction.java new file mode 100644 index 00000000000..f995dcdc076 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderAction.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The request and response header transformations that take effect before the request is passed + * along to the selected backendService. + * + *

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 HttpHeaderAction extends com.google.api.client.json.GenericJson { + + /** + * Headers to add to a matching request before forwarding the request to thebackendService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestHeadersToAdd; + + /** + * A list of header names for headers that need to be removed from the request before forwarding + * the request to the backendService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestHeadersToRemove; + + /** + * Headers to add the response before sending the response back to the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responseHeadersToAdd; + + /** + * A list of header names for headers that need to be removed from the response before sending the + * response back to the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responseHeadersToRemove; + + /** + * Headers to add to a matching request before forwarding the request to thebackendService. + * @return value or {@code null} for none + */ + public java.util.List getRequestHeadersToAdd() { + return requestHeadersToAdd; + } + + /** + * Headers to add to a matching request before forwarding the request to thebackendService. + * @param requestHeadersToAdd requestHeadersToAdd or {@code null} for none + */ + public HttpHeaderAction setRequestHeadersToAdd(java.util.List requestHeadersToAdd) { + this.requestHeadersToAdd = requestHeadersToAdd; + return this; + } + + /** + * A list of header names for headers that need to be removed from the request before forwarding + * the request to the backendService. + * @return value or {@code null} for none + */ + public java.util.List getRequestHeadersToRemove() { + return requestHeadersToRemove; + } + + /** + * A list of header names for headers that need to be removed from the request before forwarding + * the request to the backendService. + * @param requestHeadersToRemove requestHeadersToRemove or {@code null} for none + */ + public HttpHeaderAction setRequestHeadersToRemove(java.util.List requestHeadersToRemove) { + this.requestHeadersToRemove = requestHeadersToRemove; + return this; + } + + /** + * Headers to add the response before sending the response back to the client. + * @return value or {@code null} for none + */ + public java.util.List getResponseHeadersToAdd() { + return responseHeadersToAdd; + } + + /** + * Headers to add the response before sending the response back to the client. + * @param responseHeadersToAdd responseHeadersToAdd or {@code null} for none + */ + public HttpHeaderAction setResponseHeadersToAdd(java.util.List responseHeadersToAdd) { + this.responseHeadersToAdd = responseHeadersToAdd; + return this; + } + + /** + * A list of header names for headers that need to be removed from the response before sending the + * response back to the client. + * @return value or {@code null} for none + */ + public java.util.List getResponseHeadersToRemove() { + return responseHeadersToRemove; + } + + /** + * A list of header names for headers that need to be removed from the response before sending the + * response back to the client. + * @param responseHeadersToRemove responseHeadersToRemove or {@code null} for none + */ + public HttpHeaderAction setResponseHeadersToRemove(java.util.List responseHeadersToRemove) { + this.responseHeadersToRemove = responseHeadersToRemove; + return this; + } + + @Override + public HttpHeaderAction set(String fieldName, Object value) { + return (HttpHeaderAction) super.set(fieldName, value); + } + + @Override + public HttpHeaderAction clone() { + return (HttpHeaderAction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java new file mode 100644 index 00000000000..f7f6e7a324b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -0,0 +1,378 @@ +/* + * 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; + +/** + * matchRule criteria for request header matches. + * + *

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 HttpHeaderMatch extends com.google.api.client.json.GenericJson { + + /** + * The value should exactly match contents of exactMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exactMatch; + + /** + * The name of the HTTP header to match. + * + * For matching against the HTTP request's authority, use a headerMatch with the header name + * ":authority". + * + * For matching a request's method, use the headerName ":method". + * + * When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to + * true, only non-binary user-specified custom metadata and the `content-type` header are + * supported. The following transport-level headers cannot be used in header matching rules: + * `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content- + * encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags- + * bin`, `grpc-timeout` and `grpc-trace-bin`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * If set to false, the headerMatch is considered a match if the preceding match criteria are met. + * If set to true, the headerMatch is considered a match if the preceding match criteria are NOT + * met. + * + * The default setting is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean invertMatch; + + /** + * The value of the header must start with the contents ofprefixMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prefixMatch; + + /** + * A header with the contents of headerName must exist. The match takes place whether or not the + * request's header has a value. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean presentMatch; + + /** + * The header value must be an integer and its value must be in the range specified in rangeMatch. + * If the header does not contain an integer, number or is empty, the match fails. + * + * For example for a range [-5, 0] - -3 will match. - 0 will not match. + * - 0.25 will not match. - -3someString will not match. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * + * rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Int64RangeMatch rangeMatch; + + /** + * The value of the header must match the regular expression specified inregexMatch. For more + * information about regular expression syntax, see Syntax. + * + * For matching against a port specified in the HTTP request, use a headerMatch with headerName + * set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regexMatch; + + /** + * The value of the header must end with the contents ofsuffixMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String suffixMatch; + + /** + * The value should exactly match contents of exactMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @return value or {@code null} for none + */ + public java.lang.String getExactMatch() { + return exactMatch; + } + + /** + * The value should exactly match contents of exactMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @param exactMatch exactMatch or {@code null} for none + */ + public HttpHeaderMatch setExactMatch(java.lang.String exactMatch) { + this.exactMatch = exactMatch; + return this; + } + + /** + * The name of the HTTP header to match. + * + * For matching against the HTTP request's authority, use a headerMatch with the header name + * ":authority". + * + * For matching a request's method, use the headerName ":method". + * + * When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to + * true, only non-binary user-specified custom metadata and the `content-type` header are + * supported. The following transport-level headers cannot be used in header matching rules: + * `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content- + * encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags- + * bin`, `grpc-timeout` and `grpc-trace-bin`. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The name of the HTTP header to match. + * + * For matching against the HTTP request's authority, use a headerMatch with the header name + * ":authority". + * + * For matching a request's method, use the headerName ":method". + * + * When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to + * true, only non-binary user-specified custom metadata and the `content-type` header are + * supported. The following transport-level headers cannot be used in header matching rules: + * `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content- + * encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags- + * bin`, `grpc-timeout` and `grpc-trace-bin`. + * @param headerName headerName or {@code null} for none + */ + public HttpHeaderMatch setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + /** + * If set to false, the headerMatch is considered a match if the preceding match criteria are met. + * If set to true, the headerMatch is considered a match if the preceding match criteria are NOT + * met. + * + * The default setting is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInvertMatch() { + return invertMatch; + } + + /** + * If set to false, the headerMatch is considered a match if the preceding match criteria are met. + * If set to true, the headerMatch is considered a match if the preceding match criteria are NOT + * met. + * + * The default setting is false. + * @param invertMatch invertMatch or {@code null} for none + */ + public HttpHeaderMatch setInvertMatch(java.lang.Boolean invertMatch) { + this.invertMatch = invertMatch; + return this; + } + + /** + * The value of the header must start with the contents ofprefixMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @return value or {@code null} for none + */ + public java.lang.String getPrefixMatch() { + return prefixMatch; + } + + /** + * The value of the header must start with the contents ofprefixMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @param prefixMatch prefixMatch or {@code null} for none + */ + public HttpHeaderMatch setPrefixMatch(java.lang.String prefixMatch) { + this.prefixMatch = prefixMatch; + return this; + } + + /** + * A header with the contents of headerName must exist. The match takes place whether or not the + * request's header has a value. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPresentMatch() { + return presentMatch; + } + + /** + * A header with the contents of headerName must exist. The match takes place whether or not the + * request's header has a value. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @param presentMatch presentMatch or {@code null} for none + */ + public HttpHeaderMatch setPresentMatch(java.lang.Boolean presentMatch) { + this.presentMatch = presentMatch; + return this; + } + + /** + * The header value must be an integer and its value must be in the range specified in rangeMatch. + * If the header does not contain an integer, number or is empty, the match fails. + * + * For example for a range [-5, 0] - -3 will match. - 0 will not match. + * - 0.25 will not match. - -3someString will not match. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * + * rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. + * @return value or {@code null} for none + */ + public Int64RangeMatch getRangeMatch() { + return rangeMatch; + } + + /** + * The header value must be an integer and its value must be in the range specified in rangeMatch. + * If the header does not contain an integer, number or is empty, the match fails. + * + * For example for a range [-5, 0] - -3 will match. - 0 will not match. + * - 0.25 will not match. - -3someString will not match. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * + * rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. + * @param rangeMatch rangeMatch or {@code null} for none + */ + public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { + this.rangeMatch = rangeMatch; + return this; + } + + /** + * The value of the header must match the regular expression specified inregexMatch. For more + * information about regular expression syntax, see Syntax. + * + * For matching against a port specified in the HTTP request, use a headerMatch with headerName + * set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getRegexMatch() { + return regexMatch; + } + + /** + * The value of the header must match the regular expression specified inregexMatch. For more + * information about regular expression syntax, see Syntax. + * + * For matching against a port specified in the HTTP request, use a headerMatch with headerName + * set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * @param regexMatch regexMatch or {@code null} for none + */ + public HttpHeaderMatch setRegexMatch(java.lang.String regexMatch) { + this.regexMatch = regexMatch; + return this; + } + + /** + * The value of the header must end with the contents ofsuffixMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @return value or {@code null} for none + */ + public java.lang.String getSuffixMatch() { + return suffixMatch; + } + + /** + * The value of the header must end with the contents ofsuffixMatch. + * + * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be + * set. + * @param suffixMatch suffixMatch or {@code null} for none + */ + public HttpHeaderMatch setSuffixMatch(java.lang.String suffixMatch) { + this.suffixMatch = suffixMatch; + return this; + } + + @Override + public HttpHeaderMatch set(String fieldName, Object value) { + return (HttpHeaderMatch) super.set(fieldName, value); + } + + @Override + public HttpHeaderMatch clone() { + return (HttpHeaderMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderOption.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderOption.java new file mode 100644 index 00000000000..71133c1e59d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHeaderOption.java @@ -0,0 +1,126 @@ +/* + * 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; + +/** + * Specification determining how headers are added to requests or responses. + * + *

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 HttpHeaderOption extends com.google.api.client.json.GenericJson { + + /** + * The name of the header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The value of the header to add. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerValue; + + /** + * If false, headerValue is appended to any values that already exist for the header. If true, + * headerValue is set for the header, discarding any values that were set for that header. + * + * The default value is true, unless a variable is present in headerValue, in which case the + * default value is false. . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replace; + + /** + * The name of the header. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The name of the header. + * @param headerName headerName or {@code null} for none + */ + public HttpHeaderOption setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + /** + * The value of the header to add. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderValue() { + return headerValue; + } + + /** + * The value of the header to add. + * @param headerValue headerValue or {@code null} for none + */ + public HttpHeaderOption setHeaderValue(java.lang.String headerValue) { + this.headerValue = headerValue; + return this; + } + + /** + * If false, headerValue is appended to any values that already exist for the header. If true, + * headerValue is set for the header, discarding any values that were set for that header. + * + * The default value is true, unless a variable is present in headerValue, in which case the + * default value is false. . + * @return value or {@code null} for none + */ + public java.lang.Boolean getReplace() { + return replace; + } + + /** + * If false, headerValue is appended to any values that already exist for the header. If true, + * headerValue is set for the header, discarding any values that were set for that header. + * + * The default value is true, unless a variable is present in headerValue, in which case the + * default value is false. . + * @param replace replace or {@code null} for none + */ + public HttpHeaderOption setReplace(java.lang.Boolean replace) { + this.replace = replace; + return this; + } + + @Override + public HttpHeaderOption set(String fieldName, Object value) { + return (HttpHeaderOption) super.set(fieldName, value); + } + + @Override + public HttpHeaderOption clone() { + return (HttpHeaderOption) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java new file mode 100644 index 00000000000..438550bb2f3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -0,0 +1,390 @@ +/* + * 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 legacy HTTP Health Check resource. + * + * Legacy HTTP health checks are now only required by target pool-based network load balancers. For + * all other load balancers, including backend service-based network load balancers, and for managed + * instance group auto-healing, you must use modern (non-legacy) health checks. + * + * For more information, seeHealth checks overview. + * + *

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 HttpHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * How often (in seconds) to send a health check. The default value is5 seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer checkIntervalSec; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyThreshold; + + /** + * The value of the host header in the HTTP health check request. If left empty (default value), + * the public IP on behalf of which this health check is performed will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * [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] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health + * checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The TCP port number for the HTTP health check request. The default value is80. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * The request path of the HTTP health check request. The default value is/. This field does not + * support query parameters. Must comply withRFC3986. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestPath; + + /** + * [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; + + /** + * How long (in seconds) to wait before claiming failure. The default value is5 seconds. It is + * invalid for timeoutSec to have greater value than checkIntervalSec. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer timeoutSec; + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unhealthyThreshold; + + /** + * How often (in seconds) to send a health check. The default value is5 seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getCheckIntervalSec() { + return checkIntervalSec; + } + + /** + * How often (in seconds) to send a health check. The default value is5 seconds. + * @param checkIntervalSec checkIntervalSec or {@code null} for none + */ + public HttpHealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { + this.checkIntervalSec = checkIntervalSec; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HttpHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HttpHealthCheck setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyThreshold() { + return healthyThreshold; + } + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * @param healthyThreshold healthyThreshold or {@code null} for none + */ + public HttpHealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold) { + this.healthyThreshold = healthyThreshold; + return this; + } + + /** + * The value of the host header in the HTTP health check request. If left empty (default value), + * the public IP on behalf of which this health check is performed will be used. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The value of the host header in the HTTP health check request. If left empty (default value), + * the public IP on behalf of which this health check is performed will be used. + * @param host host or {@code null} for none + */ + public HttpHealthCheck setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public HttpHealthCheck setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health + * checks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health + * checks. + * @param kind kind or {@code null} for none + */ + public HttpHealthCheck setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 HttpHealthCheck setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The TCP port number for the HTTP health check request. The default value is80. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number for the HTTP health check request. The default value is80. + * @param port port or {@code null} for none + */ + public HttpHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * The request path of the HTTP health check request. The default value is/. This field does not + * support query parameters. Must comply withRFC3986. + * @return value or {@code null} for none + */ + public java.lang.String getRequestPath() { + return requestPath; + } + + /** + * The request path of the HTTP health check request. The default value is/. This field does not + * support query parameters. Must comply withRFC3986. + * @param requestPath requestPath or {@code null} for none + */ + public HttpHealthCheck setRequestPath(java.lang.String requestPath) { + this.requestPath = requestPath; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public HttpHealthCheck setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * How long (in seconds) to wait before claiming failure. The default value is5 seconds. It is + * invalid for timeoutSec to have greater value than checkIntervalSec. + * @return value or {@code null} for none + */ + public java.lang.Integer getTimeoutSec() { + return timeoutSec; + } + + /** + * How long (in seconds) to wait before claiming failure. The default value is5 seconds. It is + * invalid for timeoutSec to have greater value than checkIntervalSec. + * @param timeoutSec timeoutSec or {@code null} for none + */ + public HttpHealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { + this.timeoutSec = timeoutSec; + return this; + } + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnhealthyThreshold() { + return unhealthyThreshold; + } + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * @param unhealthyThreshold unhealthyThreshold or {@code null} for none + */ + public HttpHealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold) { + this.unhealthyThreshold = unhealthyThreshold; + return this; + } + + @Override + public HttpHealthCheck set(String fieldName, Object value) { + return (HttpHealthCheck) super.set(fieldName, value); + } + + @Override + public HttpHealthCheck clone() { + return (HttpHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java new file mode 100644 index 00000000000..39b44940a62 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of HttpHealthCheck resources. + * + *

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 HttpHealthCheckList extends com.google.api.client.json.GenericJson { + + /** + * [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 HttpHealthCheck 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 HttpHealthCheck 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(HttpHealthCheck.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 HttpHealthCheckList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HttpHealthCheck resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HttpHealthCheck resources. + * @param items items or {@code null} for none + */ + public HttpHealthCheckList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HttpHealthCheckList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HttpHealthCheckList 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 HttpHealthCheckList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 HttpHealthCheckList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HttpHealthCheckList set(String fieldName, Object value) { + return (HttpHealthCheckList) super.set(fieldName, value); + } + + @Override + public HttpHealthCheckList clone() { + return (HttpHealthCheckList) 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 HttpHealthCheckListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java new file mode 100644 index 00000000000..3393e1b57b1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -0,0 +1,177 @@ +/* + * 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; + +/** + * HttpRouteRuleMatch criteria for a request's query parameter. + * + *

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 HttpQueryParameterMatch extends com.google.api.client.json.GenericJson { + + /** + * The queryParameterMatch matches if the value of the parameter exactly matches the contents of + * exactMatch. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exactMatch; + + /** + * The name of the query parameter to match. The query parameter must exist in the request, in the + * absence of which the request match fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Specifies that the queryParameterMatch matches if the request contains the query parameter, + * irrespective of whether the parameter has a value or not. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean presentMatch; + + /** + * The queryParameterMatch matches if the value of the parameter matches the regular expression + * specified byregexMatch. For more information about regular expression syntax, see Syntax. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regexMatch; + + /** + * The queryParameterMatch matches if the value of the parameter exactly matches the contents of + * exactMatch. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * @return value or {@code null} for none + */ + public java.lang.String getExactMatch() { + return exactMatch; + } + + /** + * The queryParameterMatch matches if the value of the parameter exactly matches the contents of + * exactMatch. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * @param exactMatch exactMatch or {@code null} for none + */ + public HttpQueryParameterMatch setExactMatch(java.lang.String exactMatch) { + this.exactMatch = exactMatch; + return this; + } + + /** + * The name of the query parameter to match. The query parameter must exist in the request, in the + * absence of which the request match fails. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the query parameter to match. The query parameter must exist in the request, in the + * absence of which the request match fails. + * @param name name or {@code null} for none + */ + public HttpQueryParameterMatch setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies that the queryParameterMatch matches if the request contains the query parameter, + * irrespective of whether the parameter has a value or not. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPresentMatch() { + return presentMatch; + } + + /** + * Specifies that the queryParameterMatch matches if the request contains the query parameter, + * irrespective of whether the parameter has a value or not. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * @param presentMatch presentMatch or {@code null} for none + */ + public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { + this.presentMatch = presentMatch; + return this; + } + + /** + * The queryParameterMatch matches if the value of the parameter matches the regular expression + * specified byregexMatch. For more information about regular expression syntax, see Syntax. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getRegexMatch() { + return regexMatch; + } + + /** + * The queryParameterMatch matches if the value of the parameter matches the regular expression + * specified byregexMatch. For more information about regular expression syntax, see Syntax. + * + * Only one of presentMatch, exactMatch, orregexMatch must be set. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * @param regexMatch regexMatch or {@code null} for none + */ + public HttpQueryParameterMatch setRegexMatch(java.lang.String regexMatch) { + this.regexMatch = regexMatch; + return this; + } + + @Override + public HttpQueryParameterMatch set(String fieldName, Object value) { + return (HttpQueryParameterMatch) super.set(fieldName, value); + } + + @Override + public HttpQueryParameterMatch clone() { + return (HttpQueryParameterMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRedirectAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRedirectAction.java new file mode 100644 index 00000000000..02e89a96f87 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRedirectAction.java @@ -0,0 +1,276 @@ +/* + * 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; + +/** + * Specifies settings for an HTTP redirect. + * + *

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 HttpRedirectAction extends com.google.api.client.json.GenericJson { + + /** + * The host that is used in the redirect response instead of the one that was supplied in the + * request. + * + * The value must be from 1 to 255 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostRedirect; + + /** + * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the + * URL scheme of the redirected request remains the same as that of the request. + * + * This must only be set for URL maps used inTargetHttpProxys. Setting this true + * forTargetHttpsProxy is not permitted. + * + * The default is set to false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean httpsRedirect; + + /** + * The path that is used in the redirect response instead of the one that was supplied in the + * request. + * + * pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If + * neither is supplied, the path of the original request is used for the redirect. + * + * The value must be from 1 to 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathRedirect; + + /** + * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the + * remaining portion of the URL before redirecting the request. + * + * prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If + * neither is supplied, the path of the original request is used for the redirect. + * + * The value must be from 1 to 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prefixRedirect; + + /** + * The HTTP Status code to use for this RedirectAction. + * + * Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and + * corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds + * to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method + * is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + * method is retained. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redirectResponseCode; + + /** + * If set to true, any accompanying query portion of the original URL is removed before + * redirecting the request. If set to false, the query portion of the original URL is retained. + * + * The default is set to false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean stripQuery; + + /** + * The host that is used in the redirect response instead of the one that was supplied in the + * request. + * + * The value must be from 1 to 255 characters. + * @return value or {@code null} for none + */ + public java.lang.String getHostRedirect() { + return hostRedirect; + } + + /** + * The host that is used in the redirect response instead of the one that was supplied in the + * request. + * + * The value must be from 1 to 255 characters. + * @param hostRedirect hostRedirect or {@code null} for none + */ + public HttpRedirectAction setHostRedirect(java.lang.String hostRedirect) { + this.hostRedirect = hostRedirect; + return this; + } + + /** + * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the + * URL scheme of the redirected request remains the same as that of the request. + * + * This must only be set for URL maps used inTargetHttpProxys. Setting this true + * forTargetHttpsProxy is not permitted. + * + * The default is set to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHttpsRedirect() { + return httpsRedirect; + } + + /** + * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the + * URL scheme of the redirected request remains the same as that of the request. + * + * This must only be set for URL maps used inTargetHttpProxys. Setting this true + * forTargetHttpsProxy is not permitted. + * + * The default is set to false. + * @param httpsRedirect httpsRedirect or {@code null} for none + */ + public HttpRedirectAction setHttpsRedirect(java.lang.Boolean httpsRedirect) { + this.httpsRedirect = httpsRedirect; + return this; + } + + /** + * The path that is used in the redirect response instead of the one that was supplied in the + * request. + * + * pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If + * neither is supplied, the path of the original request is used for the redirect. + * + * The value must be from 1 to 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getPathRedirect() { + return pathRedirect; + } + + /** + * The path that is used in the redirect response instead of the one that was supplied in the + * request. + * + * pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If + * neither is supplied, the path of the original request is used for the redirect. + * + * The value must be from 1 to 1024 characters. + * @param pathRedirect pathRedirect or {@code null} for none + */ + public HttpRedirectAction setPathRedirect(java.lang.String pathRedirect) { + this.pathRedirect = pathRedirect; + return this; + } + + /** + * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the + * remaining portion of the URL before redirecting the request. + * + * prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If + * neither is supplied, the path of the original request is used for the redirect. + * + * The value must be from 1 to 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getPrefixRedirect() { + return prefixRedirect; + } + + /** + * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the + * remaining portion of the URL before redirecting the request. + * + * prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If + * neither is supplied, the path of the original request is used for the redirect. + * + * The value must be from 1 to 1024 characters. + * @param prefixRedirect prefixRedirect or {@code null} for none + */ + public HttpRedirectAction setPrefixRedirect(java.lang.String prefixRedirect) { + this.prefixRedirect = prefixRedirect; + return this; + } + + /** + * The HTTP Status code to use for this RedirectAction. + * + * Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and + * corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds + * to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method + * is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + * method is retained. + * @return value or {@code null} for none + */ + public java.lang.String getRedirectResponseCode() { + return redirectResponseCode; + } + + /** + * The HTTP Status code to use for this RedirectAction. + * + * Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and + * corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds + * to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method + * is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + * method is retained. + * @param redirectResponseCode redirectResponseCode or {@code null} for none + */ + public HttpRedirectAction setRedirectResponseCode(java.lang.String redirectResponseCode) { + this.redirectResponseCode = redirectResponseCode; + return this; + } + + /** + * If set to true, any accompanying query portion of the original URL is removed before + * redirecting the request. If set to false, the query portion of the original URL is retained. + * + * The default is set to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getStripQuery() { + return stripQuery; + } + + /** + * If set to true, any accompanying query portion of the original URL is removed before + * redirecting the request. If set to false, the query portion of the original URL is retained. + * + * The default is set to false. + * @param stripQuery stripQuery or {@code null} for none + */ + public HttpRedirectAction setStripQuery(java.lang.Boolean stripQuery) { + this.stripQuery = stripQuery; + return this; + } + + @Override + public HttpRedirectAction set(String fieldName, Object value) { + return (HttpRedirectAction) super.set(fieldName, value); + } + + @Override + public HttpRedirectAction clone() { + return (HttpRedirectAction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRetryPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRetryPolicy.java new file mode 100644 index 00000000000..e35af9f41f5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRetryPolicy.java @@ -0,0 +1,192 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The retry policy associates with HttpRouteRule + * + *

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 HttpRetryPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long numRetries; + + /** + * Specifies a non-zero timeout per retry attempt. + * + * If not specified, will use the timeout set in theHttpRouteAction field. If timeout in the + * HttpRouteAction field is not set, this field uses the largest timeout among all backend + * services associated with the route. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration perTryTimeout; + + /** + * Specifies one or more conditions when this retry policy applies. Valid values are: - + * 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or + * if the instance or endpoint does not respond at all. For example, disconnects, reset, read + * timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only + * applies to response codes 502, 503 or504. - connect-failure: a retry is attempted on + * failures connecting to the instance or endpoint. For example, connection timeouts. - + * retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response + * code. The only error that you can retry is error code 409. - refused-stream: a retry is + * attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. + * This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the + * gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry + * is attempted if the gRPC status code in the response header is set todeadline-exceeded. - + * internal: a retry is attempted if the gRPC status code in the response header is set + * tointernal. - resource-exhausted: a retry is attempted if the gRPC status code in the + * response header is set toresource-exhausted. - unavailable: a retry is attempted if the gRPC + * status code in the response header is set tounavailable. + * + * Only the following codes are supported when the URL map is bound to target gRPC proxy that has + * validateForProxyless field set to true. - cancelled - deadline-exceeded - internal + * - resource-exhausted - unavailable + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List retryConditions; + + /** + * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. + * @return value or {@code null} for none + */ + public java.lang.Long getNumRetries() { + return numRetries; + } + + /** + * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. + * @param numRetries numRetries or {@code null} for none + */ + public HttpRetryPolicy setNumRetries(java.lang.Long numRetries) { + this.numRetries = numRetries; + return this; + } + + /** + * Specifies a non-zero timeout per retry attempt. + * + * If not specified, will use the timeout set in theHttpRouteAction field. If timeout in the + * HttpRouteAction field is not set, this field uses the largest timeout among all backend + * services associated with the route. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public Duration getPerTryTimeout() { + return perTryTimeout; + } + + /** + * Specifies a non-zero timeout per retry attempt. + * + * If not specified, will use the timeout set in theHttpRouteAction field. If timeout in the + * HttpRouteAction field is not set, this field uses the largest timeout among all backend + * services associated with the route. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @param perTryTimeout perTryTimeout or {@code null} for none + */ + public HttpRetryPolicy setPerTryTimeout(Duration perTryTimeout) { + this.perTryTimeout = perTryTimeout; + return this; + } + + /** + * Specifies one or more conditions when this retry policy applies. Valid values are: - + * 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or + * if the instance or endpoint does not respond at all. For example, disconnects, reset, read + * timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only + * applies to response codes 502, 503 or504. - connect-failure: a retry is attempted on + * failures connecting to the instance or endpoint. For example, connection timeouts. - + * retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response + * code. The only error that you can retry is error code 409. - refused-stream: a retry is + * attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. + * This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the + * gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry + * is attempted if the gRPC status code in the response header is set todeadline-exceeded. - + * internal: a retry is attempted if the gRPC status code in the response header is set + * tointernal. - resource-exhausted: a retry is attempted if the gRPC status code in the + * response header is set toresource-exhausted. - unavailable: a retry is attempted if the gRPC + * status code in the response header is set tounavailable. + * + * Only the following codes are supported when the URL map is bound to target gRPC proxy that has + * validateForProxyless field set to true. - cancelled - deadline-exceeded - internal + * - resource-exhausted - unavailable + * @return value or {@code null} for none + */ + public java.util.List getRetryConditions() { + return retryConditions; + } + + /** + * Specifies one or more conditions when this retry policy applies. Valid values are: - + * 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or + * if the instance or endpoint does not respond at all. For example, disconnects, reset, read + * timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only + * applies to response codes 502, 503 or504. - connect-failure: a retry is attempted on + * failures connecting to the instance or endpoint. For example, connection timeouts. - + * retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response + * code. The only error that you can retry is error code 409. - refused-stream: a retry is + * attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. + * This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the + * gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry + * is attempted if the gRPC status code in the response header is set todeadline-exceeded. - + * internal: a retry is attempted if the gRPC status code in the response header is set + * tointernal. - resource-exhausted: a retry is attempted if the gRPC status code in the + * response header is set toresource-exhausted. - unavailable: a retry is attempted if the gRPC + * status code in the response header is set tounavailable. + * + * Only the following codes are supported when the URL map is bound to target gRPC proxy that has + * validateForProxyless field set to true. - cancelled - deadline-exceeded - internal + * - resource-exhausted - unavailable + * @param retryConditions retryConditions or {@code null} for none + */ + public HttpRetryPolicy setRetryConditions(java.util.List retryConditions) { + this.retryConditions = retryConditions; + return this; + } + + @Override + public HttpRetryPolicy set(String fieldName, Object value) { + return (HttpRetryPolicy) super.set(fieldName, value); + } + + @Override + public HttpRetryPolicy clone() { + return (HttpRetryPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java new file mode 100644 index 00000000000..a5a8eadb258 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -0,0 +1,408 @@ +/* + * 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 HttpRouteAction. + * + *

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 HttpRouteAction extends com.google.api.client.json.GenericJson { + + /** + * Specifies the cache policy configuration for matched traffic. Available only for Global + * `EXTERNAL_MANAGED` load balancer schemes. At least one property must be specified. This policy + * cannot be specified if any target backend has Identity-Aware Proxy enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CachePolicy cachePolicy; + + /** + * The specification for allowing client-side cross-origin requests. For more information about + * the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CorsPolicy corsPolicy; + + /** + * The specification for fault injection introduced into traffic to test the resiliency of clients + * to backend service failure. As part of fault injection, when clients send requests to a backend + * service, delays can be introduced by a load balancer on a percentage of requests before sending + * those requests to the backend service. Similarly requests from clients can be aborted by the + * load balancer for a percentage of requests.timeout and retry_policy is ignored by clients that + * are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection + * AND 2. The fault injection is not a delay fault injection. Fault injection is not supported + * with the classic Application Load Balancer . To see which load balancers support fault + * injection, see Load balancing: Routing and traffic management features. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpFaultInjection faultInjectionPolicy; + + /** + * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout + * field where the timeout duration starts from the time the request has been fully processed + * (known as*end-of-stream*), the duration in this field is computed from the beginning of the + * stream until the response has been processed, including all retries. A stream that does not + * complete in this duration is closed. + * + * If not specified, this field uses the maximummaxStreamDuration value among all backend services + * associated with the route. + * + * This field is only allowed if the Url map is used with backend services with + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxStreamDuration; + + /** + * Specifies the policy on how requests intended for the route's backends are shadowed to a + * separate mirrored backend service. The load balancer does not wait for responses from the + * shadow service. Before sending traffic to the shadow service, the host / authority header is + * suffixed with-shadow. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RequestMirrorPolicy requestMirrorPolicy; + + /** + * Specifies the retry policy associated with this route. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRetryPolicy retryPolicy; + + /** + * Specifies the timeout for the selected route. Timeout is computed from the time the request has + * been fully processed (known as *end-of-stream*) up until the response has been processed. + * Timeout includes all retries. + * + * If not specified, this field uses the largest timeout among all backend services associated + * with the route. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration timeout; + + /** + * The spec to modify the URL of the request, before forwarding the request to the matched + * service. + * + * urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlRewrite urlRewrite; + + /** + * A list of weighted backend services to send traffic to when a route match occurs. The weights + * determine the fraction of traffic that flows to their corresponding backend service. If all + * traffic needs to go to a single backend service, there must be oneweightedBackendService with + * weight set to a non-zero number. + * + * After a backend service is identified and before forwarding the request to the backend service, + * advanced routing actions such as URL rewrites and header transformations are applied depending + * on additional settings specified in this HttpRouteAction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List weightedBackendServices; + + /** + * Specifies the cache policy configuration for matched traffic. Available only for Global + * `EXTERNAL_MANAGED` load balancer schemes. At least one property must be specified. This policy + * cannot be specified if any target backend has Identity-Aware Proxy enabled. + * @return value or {@code null} for none + */ + public CachePolicy getCachePolicy() { + return cachePolicy; + } + + /** + * Specifies the cache policy configuration for matched traffic. Available only for Global + * `EXTERNAL_MANAGED` load balancer schemes. At least one property must be specified. This policy + * cannot be specified if any target backend has Identity-Aware Proxy enabled. + * @param cachePolicy cachePolicy or {@code null} for none + */ + public HttpRouteAction setCachePolicy(CachePolicy cachePolicy) { + this.cachePolicy = cachePolicy; + return this; + } + + /** + * The specification for allowing client-side cross-origin requests. For more information about + * the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public CorsPolicy getCorsPolicy() { + return corsPolicy; + } + + /** + * The specification for allowing client-side cross-origin requests. For more information about + * the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param corsPolicy corsPolicy or {@code null} for none + */ + public HttpRouteAction setCorsPolicy(CorsPolicy corsPolicy) { + this.corsPolicy = corsPolicy; + return this; + } + + /** + * The specification for fault injection introduced into traffic to test the resiliency of clients + * to backend service failure. As part of fault injection, when clients send requests to a backend + * service, delays can be introduced by a load balancer on a percentage of requests before sending + * those requests to the backend service. Similarly requests from clients can be aborted by the + * load balancer for a percentage of requests.timeout and retry_policy is ignored by clients that + * are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection + * AND 2. The fault injection is not a delay fault injection. Fault injection is not supported + * with the classic Application Load Balancer . To see which load balancers support fault + * injection, see Load balancing: Routing and traffic management features. + * @return value or {@code null} for none + */ + public HttpFaultInjection getFaultInjectionPolicy() { + return faultInjectionPolicy; + } + + /** + * The specification for fault injection introduced into traffic to test the resiliency of clients + * to backend service failure. As part of fault injection, when clients send requests to a backend + * service, delays can be introduced by a load balancer on a percentage of requests before sending + * those requests to the backend service. Similarly requests from clients can be aborted by the + * load balancer for a percentage of requests.timeout and retry_policy is ignored by clients that + * are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection + * AND 2. The fault injection is not a delay fault injection. Fault injection is not supported + * with the classic Application Load Balancer . To see which load balancers support fault + * injection, see Load balancing: Routing and traffic management features. + * @param faultInjectionPolicy faultInjectionPolicy or {@code null} for none + */ + public HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjectionPolicy) { + this.faultInjectionPolicy = faultInjectionPolicy; + return this; + } + + /** + * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout + * field where the timeout duration starts from the time the request has been fully processed + * (known as*end-of-stream*), the duration in this field is computed from the beginning of the + * stream until the response has been processed, including all retries. A stream that does not + * complete in this duration is closed. + * + * If not specified, this field uses the maximummaxStreamDuration value among all backend services + * associated with the route. + * + * This field is only allowed if the Url map is used with backend services with + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public Duration getMaxStreamDuration() { + return maxStreamDuration; + } + + /** + * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout + * field where the timeout duration starts from the time the request has been fully processed + * (known as*end-of-stream*), the duration in this field is computed from the beginning of the + * stream until the response has been processed, including all retries. A stream that does not + * complete in this duration is closed. + * + * If not specified, this field uses the maximummaxStreamDuration value among all backend services + * associated with the route. + * + * This field is only allowed if the Url map is used with backend services with + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * @param maxStreamDuration maxStreamDuration or {@code null} for none + */ + public HttpRouteAction setMaxStreamDuration(Duration maxStreamDuration) { + this.maxStreamDuration = maxStreamDuration; + return this; + } + + /** + * Specifies the policy on how requests intended for the route's backends are shadowed to a + * separate mirrored backend service. The load balancer does not wait for responses from the + * shadow service. Before sending traffic to the shadow service, the host / authority header is + * suffixed with-shadow. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public RequestMirrorPolicy getRequestMirrorPolicy() { + return requestMirrorPolicy; + } + + /** + * Specifies the policy on how requests intended for the route's backends are shadowed to a + * separate mirrored backend service. The load balancer does not wait for responses from the + * shadow service. Before sending traffic to the shadow service, the host / authority header is + * suffixed with-shadow. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @param requestMirrorPolicy requestMirrorPolicy or {@code null} for none + */ + public HttpRouteAction setRequestMirrorPolicy(RequestMirrorPolicy requestMirrorPolicy) { + this.requestMirrorPolicy = requestMirrorPolicy; + return this; + } + + /** + * Specifies the retry policy associated with this route. + * @return value or {@code null} for none + */ + public HttpRetryPolicy getRetryPolicy() { + return retryPolicy; + } + + /** + * Specifies the retry policy associated with this route. + * @param retryPolicy retryPolicy or {@code null} for none + */ + public HttpRouteAction setRetryPolicy(HttpRetryPolicy retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Specifies the timeout for the selected route. Timeout is computed from the time the request has + * been fully processed (known as *end-of-stream*) up until the response has been processed. + * Timeout includes all retries. + * + * If not specified, this field uses the largest timeout among all backend services associated + * with the route. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public Duration getTimeout() { + return timeout; + } + + /** + * Specifies the timeout for the selected route. Timeout is computed from the time the request has + * been fully processed (known as *end-of-stream*) up until the response has been processed. + * Timeout includes all retries. + * + * If not specified, this field uses the largest timeout among all backend services associated + * with the route. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param timeout timeout or {@code null} for none + */ + public HttpRouteAction setTimeout(Duration timeout) { + this.timeout = timeout; + return this; + } + + /** + * The spec to modify the URL of the request, before forwarding the request to the matched + * service. + * + * urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public UrlRewrite getUrlRewrite() { + return urlRewrite; + } + + /** + * The spec to modify the URL of the request, before forwarding the request to the matched + * service. + * + * urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. + * + * Not supported when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @param urlRewrite urlRewrite or {@code null} for none + */ + public HttpRouteAction setUrlRewrite(UrlRewrite urlRewrite) { + this.urlRewrite = urlRewrite; + return this; + } + + /** + * A list of weighted backend services to send traffic to when a route match occurs. The weights + * determine the fraction of traffic that flows to their corresponding backend service. If all + * traffic needs to go to a single backend service, there must be oneweightedBackendService with + * weight set to a non-zero number. + * + * After a backend service is identified and before forwarding the request to the backend service, + * advanced routing actions such as URL rewrites and header transformations are applied depending + * on additional settings specified in this HttpRouteAction. + * @return value or {@code null} for none + */ + public java.util.List getWeightedBackendServices() { + return weightedBackendServices; + } + + /** + * A list of weighted backend services to send traffic to when a route match occurs. The weights + * determine the fraction of traffic that flows to their corresponding backend service. If all + * traffic needs to go to a single backend service, there must be oneweightedBackendService with + * weight set to a non-zero number. + * + * After a backend service is identified and before forwarding the request to the backend service, + * advanced routing actions such as URL rewrites and header transformations are applied depending + * on additional settings specified in this HttpRouteAction. + * @param weightedBackendServices weightedBackendServices or {@code null} for none + */ + public HttpRouteAction setWeightedBackendServices(java.util.List weightedBackendServices) { + this.weightedBackendServices = weightedBackendServices; + return this; + } + + @Override + public HttpRouteAction set(String fieldName, Object value) { + return (HttpRouteAction) super.set(fieldName, value); + } + + @Override + public HttpRouteAction clone() { + return (HttpRouteAction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRule.java new file mode 100644 index 00000000000..93a94e57b90 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRule.java @@ -0,0 +1,433 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing + * action that load balancing proxies perform. + * + *

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 HttpRouteRule extends com.google.api.client.json.GenericJson { + + /** + * customErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * If a policy for an error code is not configured for the RouteRule, a policy for the error code + * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified + * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in + * UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx + * errors - A RouteRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * When used in conjunction withrouteRules.routeAction.retryPolicy, retries take precedence. Only + * once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting a + * retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is + * ignored and the response from the service is returned to the client. + * + * customErrorResponsePolicy is supported only for global external Application Load Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomErrorResponsePolicy customErrorResponsePolicy; + + /** + * The short description conveying the intent of this routeRule. + * + * The description can have a maximum length of 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * The headerAction value specified here is applied before the matching + * pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendSer + * vice.backendServiceWeightAction[].headerAction + * + * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpHeaderAction headerAction; + + /** + * The list of criteria for matching attributes of a request to thisrouteRule. This list has OR + * semantics: the request matches this routeRule when any of thematchRules are satisfied. However + * predicates within a given matchRule have AND semantics. All predicates within a matchRule must + * match for the request to match the rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List matchRules; + + /** + * For routeRules within a given pathMatcher, priority determines the order in which a load + * balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest + * to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The + * first rule that matches the request is applied. + * + * You cannot configure two or more routeRules with the same priority. Priority for each rule must + * be set to a number from 0 to 2147483647 inclusive. + * + * Priority numbers can have gaps, which enable you to add or remove rules in the future without + * affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of + * priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in + * the future without any impact on existing rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * In response to a matching matchRule, the load balancer performs advanced routing actions, such + * as URL rewrites and header transformations, before forwarding the request to the selected + * backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * route rule'srouteAction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRouteAction routeAction; + + /** + * The full or partial URL of the backend service resource to which traffic is directed if this + * rule is matched. If routeAction is also specified, advanced routing actions, such as URL + * rewrites, take effect before sending the request to the backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * When this rule is matched, the request is redirected to a URL specified by urlRedirect. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRedirectAction urlRedirect; + + /** + * customErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * If a policy for an error code is not configured for the RouteRule, a policy for the error code + * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified + * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in + * UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx + * errors - A RouteRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * When used in conjunction withrouteRules.routeAction.retryPolicy, retries take precedence. Only + * once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting a + * retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is + * ignored and the response from the service is returned to the client. + * + * customErrorResponsePolicy is supported only for global external Application Load Balancers. + * @return value or {@code null} for none + */ + public CustomErrorResponsePolicy getCustomErrorResponsePolicy() { + return customErrorResponsePolicy; + } + + /** + * customErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * If a policy for an error code is not configured for the RouteRule, a policy for the error code + * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified + * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in + * UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx + * errors - A RouteRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * When used in conjunction withrouteRules.routeAction.retryPolicy, retries take precedence. Only + * once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting a + * retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is + * ignored and the response from the service is returned to the client. + * + * customErrorResponsePolicy is supported only for global external Application Load Balancers. + * @param customErrorResponsePolicy customErrorResponsePolicy or {@code null} for none + */ + public HttpRouteRule setCustomErrorResponsePolicy(CustomErrorResponsePolicy customErrorResponsePolicy) { + this.customErrorResponsePolicy = customErrorResponsePolicy; + return this; + } + + /** + * The short description conveying the intent of this routeRule. + * + * The description can have a maximum length of 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * The short description conveying the intent of this routeRule. + * + * The description can have a maximum length of 1024 characters. + * @param description description or {@code null} for none + */ + public HttpRouteRule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * The headerAction value specified here is applied before the matching + * pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendSer + * vice.backendServiceWeightAction[].headerAction + * + * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public HttpHeaderAction getHeaderAction() { + return headerAction; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * The headerAction value specified here is applied before the matching + * pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendSer + * vice.backendServiceWeightAction[].headerAction + * + * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param headerAction headerAction or {@code null} for none + */ + public HttpRouteRule setHeaderAction(HttpHeaderAction headerAction) { + this.headerAction = headerAction; + return this; + } + + /** + * The list of criteria for matching attributes of a request to thisrouteRule. This list has OR + * semantics: the request matches this routeRule when any of thematchRules are satisfied. However + * predicates within a given matchRule have AND semantics. All predicates within a matchRule must + * match for the request to match the rule. + * @return value or {@code null} for none + */ + public java.util.List getMatchRules() { + return matchRules; + } + + /** + * The list of criteria for matching attributes of a request to thisrouteRule. This list has OR + * semantics: the request matches this routeRule when any of thematchRules are satisfied. However + * predicates within a given matchRule have AND semantics. All predicates within a matchRule must + * match for the request to match the rule. + * @param matchRules matchRules or {@code null} for none + */ + public HttpRouteRule setMatchRules(java.util.List matchRules) { + this.matchRules = matchRules; + return this; + } + + /** + * For routeRules within a given pathMatcher, priority determines the order in which a load + * balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest + * to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The + * first rule that matches the request is applied. + * + * You cannot configure two or more routeRules with the same priority. Priority for each rule must + * be set to a number from 0 to 2147483647 inclusive. + * + * Priority numbers can have gaps, which enable you to add or remove rules in the future without + * affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of + * priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in + * the future without any impact on existing rules. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * For routeRules within a given pathMatcher, priority determines the order in which a load + * balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest + * to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The + * first rule that matches the request is applied. + * + * You cannot configure two or more routeRules with the same priority. Priority for each rule must + * be set to a number from 0 to 2147483647 inclusive. + * + * Priority numbers can have gaps, which enable you to add or remove rules in the future without + * affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of + * priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in + * the future without any impact on existing rules. + * @param priority priority or {@code null} for none + */ + public HttpRouteRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * In response to a matching matchRule, the load balancer performs advanced routing actions, such + * as URL rewrites and header transformations, before forwarding the request to the selected + * backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * route rule'srouteAction. + * @return value or {@code null} for none + */ + public HttpRouteAction getRouteAction() { + return routeAction; + } + + /** + * In response to a matching matchRule, the load balancer performs advanced routing actions, such + * as URL rewrites and header transformations, before forwarding the request to the selected + * backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * route rule'srouteAction. + * @param routeAction routeAction or {@code null} for none + */ + public HttpRouteRule setRouteAction(HttpRouteAction routeAction) { + this.routeAction = routeAction; + return this; + } + + /** + * The full or partial URL of the backend service resource to which traffic is directed if this + * rule is matched. If routeAction is also specified, advanced routing actions, such as URL + * rewrites, take effect before sending the request to the backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * The full or partial URL of the backend service resource to which traffic is directed if this + * rule is matched. If routeAction is also specified, advanced routing actions, such as URL + * rewrites, take effect before sending the request to the backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * @param service service or {@code null} for none + */ + public HttpRouteRule setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * When this rule is matched, the request is redirected to a URL specified by urlRedirect. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public HttpRedirectAction getUrlRedirect() { + return urlRedirect; + } + + /** + * When this rule is matched, the request is redirected to a URL specified by urlRedirect. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param urlRedirect urlRedirect or {@code null} for none + */ + public HttpRouteRule setUrlRedirect(HttpRedirectAction urlRedirect) { + this.urlRedirect = urlRedirect; + return this; + } + + @Override + public HttpRouteRule set(String fieldName, Object value) { + return (HttpRouteRule) super.set(fieldName, value); + } + + @Override + public HttpRouteRule clone() { + return (HttpRouteRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java new file mode 100644 index 00000000000..cd8eebf2f5c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -0,0 +1,427 @@ +/* + * 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; + +/** + * HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All + * specified criteria must be satisfied for a match to occur. + * + *

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 HttpRouteRuleMatch extends com.google.api.client.json.GenericJson { + + /** + * For satisfying the matchRule condition, the path of the request must exactly match the value + * specified infullPathMatch after removing any query parameters and anchor that may be part of + * the original URL. + * + * fullPathMatch must be from 1 to 1024 characters. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fullPathMatch; + + /** + * Specifies a list of header match criteria, all of which must match corresponding headers in the + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List headerMatches; + + static { + // hack to force ProGuard to consider HttpHeaderMatch 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(HttpHeaderMatch.class); + } + + /** + * Specifies that prefixMatch and fullPathMatch matches are case sensitive. + * + * The default value is false. + * + * ignoreCase must not be used with regexMatch. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreCase; + + /** + * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited + * set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present + * node metadata. When there is a match, the relevant routing configuration is made available to + * those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least + * one of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. If multiple metadata filters are specified, all + * of them need to be satisfied in order to be considered a match. + * + * metadataFilters specified here is applied after those specified in ForwardingRule that refers + * to theUrlMap this HttpRouteRuleMatch belongs to. + * + * metadataFilters only applies to load balancers that haveloadBalancingScheme set + * toINTERNAL_SELF_MANAGED. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metadataFilters; + + /** + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. + * + * A path template pattern can include variables and wildcards. Variables are enclosed in curly + * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and + * ** that matches zero or more path segments. The pattern must follow these rules: + * + * - The value must be between 1 and 1024 characters. - The pattern must start + * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may + * appear in the pattern. + * + * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathTemplateMatch; + + /** + * For satisfying the matchRule condition, the request's path must begin with the specified + * prefixMatch.prefixMatch must begin with a /. + * + * The value must be from 1 to 1024 characters. + * + * The * character inside a prefix match is treated as a literal character, not as a wildcard. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a + * matchRule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prefixMatch; + + /** + * Specifies a list of query parameter match criteria, all of which must match corresponding query + * parameters in the request. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queryParameterMatches; + + static { + // hack to force ProGuard to consider HttpQueryParameterMatch 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(HttpQueryParameterMatch.class); + } + + /** + * For satisfying the matchRule condition, the path of the request must satisfy the regular + * expression specified inregexMatch after removing any query parameters and anchor supplied with + * the original URL. For more information about regular expression syntax, see Syntax. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regexMatch; + + /** + * For satisfying the matchRule condition, the path of the request must exactly match the value + * specified infullPathMatch after removing any query parameters and anchor that may be part of + * the original URL. + * + * fullPathMatch must be from 1 to 1024 characters. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * @return value or {@code null} for none + */ + public java.lang.String getFullPathMatch() { + return fullPathMatch; + } + + /** + * For satisfying the matchRule condition, the path of the request must exactly match the value + * specified infullPathMatch after removing any query parameters and anchor that may be part of + * the original URL. + * + * fullPathMatch must be from 1 to 1024 characters. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * @param fullPathMatch fullPathMatch or {@code null} for none + */ + public HttpRouteRuleMatch setFullPathMatch(java.lang.String fullPathMatch) { + this.fullPathMatch = fullPathMatch; + return this; + } + + /** + * Specifies a list of header match criteria, all of which must match corresponding headers in the + * request. + * @return value or {@code null} for none + */ + public java.util.List getHeaderMatches() { + return headerMatches; + } + + /** + * Specifies a list of header match criteria, all of which must match corresponding headers in the + * request. + * @param headerMatches headerMatches or {@code null} for none + */ + public HttpRouteRuleMatch setHeaderMatches(java.util.List headerMatches) { + this.headerMatches = headerMatches; + return this; + } + + /** + * Specifies that prefixMatch and fullPathMatch matches are case sensitive. + * + * The default value is false. + * + * ignoreCase must not be used with regexMatch. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreCase() { + return ignoreCase; + } + + /** + * Specifies that prefixMatch and fullPathMatch matches are case sensitive. + * + * The default value is false. + * + * ignoreCase must not be used with regexMatch. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param ignoreCase ignoreCase or {@code null} for none + */ + public HttpRouteRuleMatch setIgnoreCase(java.lang.Boolean ignoreCase) { + this.ignoreCase = ignoreCase; + return this; + } + + /** + * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited + * set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present + * node metadata. When there is a match, the relevant routing configuration is made available to + * those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least + * one of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. If multiple metadata filters are specified, all + * of them need to be satisfied in order to be considered a match. + * + * metadataFilters specified here is applied after those specified in ForwardingRule that refers + * to theUrlMap this HttpRouteRuleMatch belongs to. + * + * metadataFilters only applies to load balancers that haveloadBalancingScheme set + * toINTERNAL_SELF_MANAGED. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public java.util.List getMetadataFilters() { + return metadataFilters; + } + + /** + * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited + * set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present + * node metadata. When there is a match, the relevant routing configuration is made available to + * those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least + * one of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. If multiple metadata filters are specified, all + * of them need to be satisfied in order to be considered a match. + * + * metadataFilters specified here is applied after those specified in ForwardingRule that refers + * to theUrlMap this HttpRouteRuleMatch belongs to. + * + * metadataFilters only applies to load balancers that haveloadBalancingScheme set + * toINTERNAL_SELF_MANAGED. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param metadataFilters metadataFilters or {@code null} for none + */ + public HttpRouteRuleMatch setMetadataFilters(java.util.List metadataFilters) { + this.metadataFilters = metadataFilters; + return this; + } + + /** + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. + * + * A path template pattern can include variables and wildcards. Variables are enclosed in curly + * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and + * ** that matches zero or more path segments. The pattern must follow these rules: + * + * - The value must be between 1 and 1024 characters. - The pattern must start + * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may + * appear in the pattern. + * + * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. + * @return value or {@code null} for none + */ + public java.lang.String getPathTemplateMatch() { + return pathTemplateMatch; + } + + /** + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. + * + * A path template pattern can include variables and wildcards. Variables are enclosed in curly + * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and + * ** that matches zero or more path segments. The pattern must follow these rules: + * + * - The value must be between 1 and 1024 characters. - The pattern must start + * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may + * appear in the pattern. + * + * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. + * @param pathTemplateMatch pathTemplateMatch or {@code null} for none + */ + public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatch) { + this.pathTemplateMatch = pathTemplateMatch; + return this; + } + + /** + * For satisfying the matchRule condition, the request's path must begin with the specified + * prefixMatch.prefixMatch must begin with a /. + * + * The value must be from 1 to 1024 characters. + * + * The * character inside a prefix match is treated as a literal character, not as a wildcard. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a + * matchRule. + * @return value or {@code null} for none + */ + public java.lang.String getPrefixMatch() { + return prefixMatch; + } + + /** + * For satisfying the matchRule condition, the request's path must begin with the specified + * prefixMatch.prefixMatch must begin with a /. + * + * The value must be from 1 to 1024 characters. + * + * The * character inside a prefix match is treated as a literal character, not as a wildcard. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a + * matchRule. + * @param prefixMatch prefixMatch or {@code null} for none + */ + public HttpRouteRuleMatch setPrefixMatch(java.lang.String prefixMatch) { + this.prefixMatch = prefixMatch; + return this; + } + + /** + * Specifies a list of query parameter match criteria, all of which must match corresponding query + * parameters in the request. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public java.util.List getQueryParameterMatches() { + return queryParameterMatches; + } + + /** + * Specifies a list of query parameter match criteria, all of which must match corresponding query + * parameters in the request. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param queryParameterMatches queryParameterMatches or {@code null} for none + */ + public HttpRouteRuleMatch setQueryParameterMatches(java.util.List queryParameterMatches) { + this.queryParameterMatches = queryParameterMatches; + return this; + } + + /** + * For satisfying the matchRule condition, the path of the request must satisfy the regular + * expression specified inregexMatch after removing any query parameters and anchor supplied with + * the original URL. For more information about regular expression syntax, see Syntax. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getRegexMatch() { + return regexMatch; + } + + /** + * For satisfying the matchRule condition, the path of the request must satisfy the regular + * expression specified inregexMatch after removing any query parameters and anchor supplied with + * the original URL. For more information about regular expression syntax, see Syntax. + * + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * + * Regular expressions can only be used when the loadBalancingScheme is set to + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * @param regexMatch regexMatch or {@code null} for none + */ + public HttpRouteRuleMatch setRegexMatch(java.lang.String regexMatch) { + this.regexMatch = regexMatch; + return this; + } + + @Override + public HttpRouteRuleMatch set(String fieldName, Object value) { + return (HttpRouteRuleMatch) super.set(fieldName, value); + } + + @Override + public HttpRouteRuleMatch clone() { + return (HttpRouteRuleMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheck.java new file mode 100644 index 00000000000..241f548358f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheck.java @@ -0,0 +1,388 @@ +/* + * 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 legacy HTTPS Health Check resource. + * + * Legacy HTTPS health checks have been deprecated. If you are using a target pool-based network + * load balancer, you must use a legacy HTTP (not HTTPS) health check. For all other load balancers, + * including backend service-based network load balancers, and for managed instance group auto- + * healing, you must use modern (non-legacy) health checks. + * + * For more information, seeHealth checks overview. + * + *

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 HttpsHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * How often (in seconds) to send a health check. The default value is 5 seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer checkIntervalSec; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyThreshold; + + /** + * The value of the host header in the HTTPS health check request. If left empty (default value), + * the public IP on behalf of which this health check is performed will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * [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. Type of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The TCP port number for the HTTPS health check request. The default value is 443. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * The request path of the HTTPS health check request. The default value is "/". Must comply + * withRFC3986. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestPath; + + /** + * [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; + + /** + * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is + * invalid for timeoutSec to have a greater value than checkIntervalSec. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer timeoutSec; + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unhealthyThreshold; + + /** + * How often (in seconds) to send a health check. The default value is 5 seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getCheckIntervalSec() { + return checkIntervalSec; + } + + /** + * How often (in seconds) to send a health check. The default value is 5 seconds. + * @param checkIntervalSec checkIntervalSec or {@code null} for none + */ + public HttpsHealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { + this.checkIntervalSec = checkIntervalSec; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public HttpsHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public HttpsHealthCheck setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyThreshold() { + return healthyThreshold; + } + + /** + * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The + * default value is 2. + * @param healthyThreshold healthyThreshold or {@code null} for none + */ + public HttpsHealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold) { + this.healthyThreshold = healthyThreshold; + return this; + } + + /** + * The value of the host header in the HTTPS health check request. If left empty (default value), + * the public IP on behalf of which this health check is performed will be used. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The value of the host header in the HTTPS health check request. If left empty (default value), + * the public IP on behalf of which this health check is performed will be used. + * @param host host or {@code null} for none + */ + public HttpsHealthCheck setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public HttpsHealthCheck setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. Type of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. + * @param kind kind or {@code null} for none + */ + public HttpsHealthCheck setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 HttpsHealthCheck setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The TCP port number for the HTTPS health check request. The default value is 443. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number for the HTTPS health check request. The default value is 443. + * @param port port or {@code null} for none + */ + public HttpsHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * The request path of the HTTPS health check request. The default value is "/". Must comply + * withRFC3986. + * @return value or {@code null} for none + */ + public java.lang.String getRequestPath() { + return requestPath; + } + + /** + * The request path of the HTTPS health check request. The default value is "/". Must comply + * withRFC3986. + * @param requestPath requestPath or {@code null} for none + */ + public HttpsHealthCheck setRequestPath(java.lang.String requestPath) { + this.requestPath = requestPath; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public HttpsHealthCheck setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is + * invalid for timeoutSec to have a greater value than checkIntervalSec. + * @return value or {@code null} for none + */ + public java.lang.Integer getTimeoutSec() { + return timeoutSec; + } + + /** + * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is + * invalid for timeoutSec to have a greater value than checkIntervalSec. + * @param timeoutSec timeoutSec or {@code null} for none + */ + public HttpsHealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { + this.timeoutSec = timeoutSec; + return this; + } + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnhealthyThreshold() { + return unhealthyThreshold; + } + + /** + * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The + * default value is 2. + * @param unhealthyThreshold unhealthyThreshold or {@code null} for none + */ + public HttpsHealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold) { + this.unhealthyThreshold = unhealthyThreshold; + return this; + } + + @Override + public HttpsHealthCheck set(String fieldName, Object value) { + return (HttpsHealthCheck) super.set(fieldName, value); + } + + @Override + public HttpsHealthCheck clone() { + return (HttpsHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheckList.java new file mode 100644 index 00000000000..2a22bc71a20 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/HttpsHealthCheckList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of HttpsHealthCheck resources. + * + *

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 HttpsHealthCheckList extends com.google.api.client.json.GenericJson { + + /** + * [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 HttpsHealthCheck 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 HttpsHealthCheck 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(HttpsHealthCheck.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 HttpsHealthCheckList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of HttpsHealthCheck resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of HttpsHealthCheck resources. + * @param items items or {@code null} for none + */ + public HttpsHealthCheckList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public HttpsHealthCheckList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HttpsHealthCheckList 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 HttpsHealthCheckList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 HttpsHealthCheckList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HttpsHealthCheckList set(String fieldName, Object value) { + return (HttpsHealthCheckList) super.set(fieldName, value); + } + + @Override + public HttpsHealthCheckList clone() { + return (HttpsHealthCheckList) 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 HttpsHealthCheckListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Image.java new file mode 100644 index 00000000000..638e7c38e35 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Image.java @@ -0,0 +1,1235 @@ +/* + * 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 an Image resource. + * + * You can use images to create boot disks for your VM instances. For more information, read Images. + * + *

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 Image extends com.google.api.client.json.GenericJson { + + /** + * The architecture of the image. Valid values are ARM64 or X86_64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long archiveSizeBytes; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. The deprecation status associated with this image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Size of the image when restored onto a persistent disk (in GB). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Output only. Whether this image is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableConfidentialCompute; + + /** + * The name of the image family to which this image belongs. The image family name can be from a + * publicly managed image family provided by Compute Engine, or from a custom image family you + * create. For example,centos-stream-9 is a publicly available image family. For more information, + * see Image family best practices. + * + * When creating disks, you can specify an image family instead of a specific image name. The + * image family always returns its latest image that is not deprecated. The name of the image + * family must comply with RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String family; + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. To see a list of available options, see theguestOSfeatures[].type parameter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guestOsFeatures; + + static { + // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); + } + + /** + * 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; + + /** + * Encrypts the image using acustomer-supplied encryption key. + * + * After you encrypt an image with a customer-supplied key, you must provide the same key if you + * use the image later (e.g. to create a disk from the image). + * + * Customer-supplied encryption keys do not protect access to metadata of the disk. + * + * If you do not provide an encryption key when creating the image, then the disk will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * image later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey imageEncryptionKey; + + /** + * Output only. [Output Only] Type of the resource. Always compute#image for images. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this image, which is essentially a hash of the + * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always provide an up-to- + * date fingerprint hash in order to update or change labels, otherwise the request will fail with + * error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this image. These can be later modified by the setLabels method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Integer license codes indicating which licenses are attached to this image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List licenseCodes; + + /** + * Any applicable license URI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * Name of the resource; provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImageParams params; + + /** + * The parameters of the raw disk image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RawDisk rawDisk; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * 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; + + /** + * Set the secure boot keys of shielded instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InitialStateConfig shieldedInstanceInitialState; + + /** + * URL of the source disk used to create this image. For example, the following are valid values: + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * Thecustomer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceDiskEncryptionKey; + + /** + * Output only. [Output Only] The ID value of the disk used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given disk name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskId; + + /** + * URL of the source image used to create this image. The following are valid formats for the URL: + * - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - + * projects/project_id/global/images/image_name + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; + + /** + * The customer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceImageEncryptionKey; + + /** + * Output only. [Output Only] The ID value of the image used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given image name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceImageId; + + /** + * URL of the source snapshot used to create this image. The following are valid formats for the + * URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ + * snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshot; + + /** + * The customer-supplied encryption key of the source snapshot. Required if the source snapshot is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceSnapshotEncryptionKey; + + /** + * Output only. [Output Only] The ID value of the snapshot used to create this image. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given snapshot name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshotId; + + /** + * The type of the image used to create this disk. The default and only valid value is RAW. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * Output only. [Output Only] The status of the image. An image can be used to create other + * resources, such as instances, only after the image has been successfully created and the status + * is set to READY. Possible values are FAILED, PENDING, orREADY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Cloud Storage bucket storage location of the image (regional or multi-regional). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageLocations; + + /** + * The architecture of the image. Valid values are ARM64 or X86_64. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * The architecture of the image. Valid values are ARM64 or X86_64. + * @param architecture architecture or {@code null} for none + */ + public Image setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). + * @return value or {@code null} for none + */ + public java.lang.Long getArchiveSizeBytes() { + return archiveSizeBytes; + } + + /** + * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). + * @param archiveSizeBytes archiveSizeBytes or {@code null} for none + */ + public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { + this.archiveSizeBytes = archiveSizeBytes; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Image setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. The deprecation status associated with this image. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * Output only. The deprecation status associated with this image. + * @param deprecated deprecated or {@code null} for none + */ + public Image setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Image setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Size of the image when restored onto a persistent disk (in GB). + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Size of the image when restored onto a persistent disk (in GB). + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public Image setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * Output only. Whether this image is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableConfidentialCompute() { + return enableConfidentialCompute; + } + + /** + * Output only. Whether this image is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. + * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none + */ + public Image setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { + this.enableConfidentialCompute = enableConfidentialCompute; + return this; + } + + /** + * The name of the image family to which this image belongs. The image family name can be from a + * publicly managed image family provided by Compute Engine, or from a custom image family you + * create. For example,centos-stream-9 is a publicly available image family. For more information, + * see Image family best practices. + * + * When creating disks, you can specify an image family instead of a specific image name. The + * image family always returns its latest image that is not deprecated. The name of the image + * family must comply with RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getFamily() { + return family; + } + + /** + * The name of the image family to which this image belongs. The image family name can be from a + * publicly managed image family provided by Compute Engine, or from a custom image family you + * create. For example,centos-stream-9 is a publicly available image family. For more information, + * see Image family best practices. + * + * When creating disks, you can specify an image family instead of a specific image name. The + * image family always returns its latest image that is not deprecated. The name of the image + * family must comply with RFC1035. + * @param family family or {@code null} for none + */ + public Image setFamily(java.lang.String family) { + this.family = family; + return this; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. To see a list of available options, see theguestOSfeatures[].type parameter. + * @return value or {@code null} for none + */ + public java.util.List getGuestOsFeatures() { + return guestOsFeatures; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. To see a list of available options, see theguestOSfeatures[].type parameter. + * @param guestOsFeatures guestOsFeatures or {@code null} for none + */ + public Image setGuestOsFeatures(java.util.List guestOsFeatures) { + this.guestOsFeatures = guestOsFeatures; + 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 Image setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Encrypts the image using acustomer-supplied encryption key. + * + * After you encrypt an image with a customer-supplied key, you must provide the same key if you + * use the image later (e.g. to create a disk from the image). + * + * Customer-supplied encryption keys do not protect access to metadata of the disk. + * + * If you do not provide an encryption key when creating the image, then the disk will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * image later. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getImageEncryptionKey() { + return imageEncryptionKey; + } + + /** + * Encrypts the image using acustomer-supplied encryption key. + * + * After you encrypt an image with a customer-supplied key, you must provide the same key if you + * use the image later (e.g. to create a disk from the image). + * + * Customer-supplied encryption keys do not protect access to metadata of the disk. + * + * If you do not provide an encryption key when creating the image, then the disk will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * image later. + * @param imageEncryptionKey imageEncryptionKey or {@code null} for none + */ + public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { + this.imageEncryptionKey = imageEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#image for images. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#image for images. + * @param kind kind or {@code null} for none + */ + public Image setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this image, which is essentially a hash of the + * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always provide an up-to- + * date fingerprint hash in order to update or change labels, otherwise the request will fail with + * error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an image. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this image, which is essentially a hash of the + * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always provide an up-to- + * date fingerprint hash in order to update or change labels, otherwise the request will fail with + * error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an image. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this image, which is essentially a hash of the + * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always provide an up-to- + * date fingerprint hash in order to update or change labels, otherwise the request will fail with + * error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an image. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public Image setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this image, which is essentially a hash of the + * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine + * and changes after every request to modify or update labels. You must always provide an up-to- + * date fingerprint hash in order to update or change labels, otherwise the request will fail with + * error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an image. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Image encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this image. These can be later modified by the setLabels method. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this image. These can be later modified by the setLabels method. + * @param labels labels or {@code null} for none + */ + public Image setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Integer license codes indicating which licenses are attached to this image. + * @return value or {@code null} for none + */ + public java.util.List getLicenseCodes() { + return licenseCodes; + } + + /** + * Integer license codes indicating which licenses are attached to this image. + * @param licenseCodes licenseCodes or {@code null} for none + */ + public Image setLicenseCodes(java.util.List licenseCodes) { + this.licenseCodes = licenseCodes; + return this; + } + + /** + * Any applicable license URI. + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * Any applicable license URI. + * @param licenses licenses or {@code null} for none + */ + public Image setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 Image setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public ImageParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Image setParams(ImageParams params) { + this.params = params; + return this; + } + + /** + * The parameters of the raw disk image. + * @return value or {@code null} for none + */ + public RawDisk getRawDisk() { + return rawDisk; + } + + /** + * The parameters of the raw disk image. + * @param rawDisk rawDisk or {@code null} for none + */ + public Image setRawDisk(RawDisk rawDisk) { + this.rawDisk = rawDisk; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 Image setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Set the secure boot keys of shielded instance. + * @return value or {@code null} for none + */ + public InitialStateConfig getShieldedInstanceInitialState() { + return shieldedInstanceInitialState; + } + + /** + * Set the secure boot keys of shielded instance. + * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none + */ + public Image setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { + this.shieldedInstanceInitialState = shieldedInstanceInitialState; + return this; + } + + /** + * URL of the source disk used to create this image. For example, the following are valid values: + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * URL of the source disk used to create this image. For example, the following are valid values: + * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @param sourceDisk sourceDisk or {@code null} for none + */ + public Image setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + /** + * Thecustomer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceDiskEncryptionKey() { + return sourceDiskEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @param sourceDiskEncryptionKey sourceDiskEncryptionKey or {@code null} for none + */ + public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey) { + this.sourceDiskEncryptionKey = sourceDiskEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given disk name. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskId() { + return sourceDiskId; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given disk name. + * @param sourceDiskId sourceDiskId or {@code null} for none + */ + public Image setSourceDiskId(java.lang.String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + return this; + } + + /** + * URL of the source image used to create this image. The following are valid formats for the URL: + * - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - + * projects/project_id/global/images/image_name + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @return value or {@code null} for none + */ + public java.lang.String getSourceImage() { + return sourceImage; + } + + /** + * URL of the source image used to create this image. The following are valid formats for the URL: + * - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - + * projects/project_id/global/images/image_name + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @param sourceImage sourceImage or {@code null} for none + */ + public Image setSourceImage(java.lang.String sourceImage) { + this.sourceImage = sourceImage; + return this; + } + + /** + * The customer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceImageEncryptionKey() { + return sourceImageEncryptionKey; + } + + /** + * The customer-supplied encryption key of the source image. Required if the source image is + * protected by a customer-supplied encryption key. + * @param sourceImageEncryptionKey sourceImageEncryptionKey or {@code null} for none + */ + public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey) { + this.sourceImageEncryptionKey = sourceImageEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The ID value of the image used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given image name. + * @return value or {@code null} for none + */ + public java.lang.String getSourceImageId() { + return sourceImageId; + } + + /** + * Output only. [Output Only] The ID value of the image used to create this image. This value may + * be used to determine whether the image was taken from the current or a previous instance of a + * given image name. + * @param sourceImageId sourceImageId or {@code null} for none + */ + public Image setSourceImageId(java.lang.String sourceImageId) { + this.sourceImageId = sourceImageId; + return this; + } + + /** + * URL of the source snapshot used to create this image. The following are valid formats for the + * URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ + * snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshot() { + return sourceSnapshot; + } + + /** + * URL of the source snapshot used to create this image. The following are valid formats for the + * URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ + * snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @param sourceSnapshot sourceSnapshot or {@code null} for none + */ + public Image setSourceSnapshot(java.lang.String sourceSnapshot) { + this.sourceSnapshot = sourceSnapshot; + return this; + } + + /** + * The customer-supplied encryption key of the source snapshot. Required if the source snapshot is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceSnapshotEncryptionKey() { + return sourceSnapshotEncryptionKey; + } + + /** + * The customer-supplied encryption key of the source snapshot. Required if the source snapshot is + * protected by a customer-supplied encryption key. + * @param sourceSnapshotEncryptionKey sourceSnapshotEncryptionKey or {@code null} for none + */ + public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey) { + this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The ID value of the snapshot used to create this image. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given snapshot name. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshotId() { + return sourceSnapshotId; + } + + /** + * Output only. [Output Only] The ID value of the snapshot used to create this image. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given snapshot name. + * @param sourceSnapshotId sourceSnapshotId or {@code null} for none + */ + public Image setSourceSnapshotId(java.lang.String sourceSnapshotId) { + this.sourceSnapshotId = sourceSnapshotId; + return this; + } + + /** + * The type of the image used to create this disk. The default and only valid value is RAW. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * The type of the image used to create this disk. The default and only valid value is RAW. + * @param sourceType sourceType or {@code null} for none + */ + public Image setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Output only. [Output Only] The status of the image. An image can be used to create other + * resources, such as instances, only after the image has been successfully created and the status + * is set to READY. Possible values are FAILED, PENDING, orREADY. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the image. An image can be used to create other + * resources, such as instances, only after the image has been successfully created and the status + * is set to READY. Possible values are FAILED, PENDING, orREADY. + * @param status status or {@code null} for none + */ + public Image setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Cloud Storage bucket storage location of the image (regional or multi-regional). + * @return value or {@code null} for none + */ + public java.util.List getStorageLocations() { + return storageLocations; + } + + /** + * Cloud Storage bucket storage location of the image (regional or multi-regional). + * @param storageLocations storageLocations or {@code null} for none + */ + public Image setStorageLocations(java.util.List storageLocations) { + this.storageLocations = storageLocations; + return this; + } + + @Override + public Image set(String fieldName, Object value) { + return (Image) super.set(fieldName, value); + } + + @Override + public Image clone() { + return (Image) super.clone(); + } + + /** + * The parameters of the raw disk image. + */ + public static final class RawDisk extends com.google.api.client.json.GenericJson { + + /** + * The format used to encode and transmit the block device, which should beTAR. This is just a + * container and transmission format and not a runtime format. Provided by the client when the + * disk image is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String containerType; + + /** + * [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before + * unpackaging provided by the client when the disk image is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sha1Checksum; + + /** + * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is + * stored. The following are valid formats: - + * https://storage.googleapis.com/bucket_name/image_archive_name - + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs + * um_sha256:hex_value + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * The format used to encode and transmit the block device, which should beTAR. This is just a + * container and transmission format and not a runtime format. Provided by the client when the + * disk image is created. + * @return value or {@code null} for none + */ + public java.lang.String getContainerType() { + return containerType; + } + + /** + * The format used to encode and transmit the block device, which should beTAR. This is just a + * container and transmission format and not a runtime format. Provided by the client when the + * disk image is created. + * @param containerType containerType or {@code null} for none + */ + public RawDisk setContainerType(java.lang.String containerType) { + this.containerType = containerType; + return this; + } + + /** + * [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before + * unpackaging provided by the client when the disk image is created. + * @return value or {@code null} for none + */ + public java.lang.String getSha1Checksum() { + return sha1Checksum; + } + + /** + * [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before + * unpackaging provided by the client when the disk image is created. + * @param sha1Checksum sha1Checksum or {@code null} for none + */ + public RawDisk setSha1Checksum(java.lang.String sha1Checksum) { + this.sha1Checksum = sha1Checksum; + return this; + } + + /** + * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is + * stored. The following are valid formats: - + * https://storage.googleapis.com/bucket_name/image_archive_name - + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs + * um_sha256:hex_value + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is + * stored. The following are valid formats: - + * https://storage.googleapis.com/bucket_name/image_archive_name - + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - + * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs + * um_sha256:hex_value + * + * In order to create an image, you must provide the full or partial URL of one of the following: + * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The + * sourceSnapshot URL + * @param source source or {@code null} for none + */ + public RawDisk setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public RawDisk set(String fieldName, Object value) { + return (RawDisk) super.set(fieldName, value); + } + + @Override + public RawDisk clone() { + return (RawDisk) super.clone(); + } + + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageFamilyView.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageFamilyView.java new file mode 100644 index 00000000000..38f836aa01d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageFamilyView.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; + +/** + * Model definition for ImageFamilyView. + * + *

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 ImageFamilyView extends com.google.api.client.json.GenericJson { + + /** + * The latest image that is part of the specified image family in the requested location, and that + * is not deprecated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * The latest image that is part of the specified image family in the requested location, and that + * is not deprecated. + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * The latest image that is part of the specified image family in the requested location, and that + * is not deprecated. + * @param image image or {@code null} for none + */ + public ImageFamilyView setImage(Image image) { + this.image = image; + return this; + } + + @Override + public ImageFamilyView set(String fieldName, Object value) { + return (ImageFamilyView) super.set(fieldName, value); + } + + @Override + public ImageFamilyView clone() { + return (ImageFamilyView) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageList.java new file mode 100644 index 00000000000..4dd6699a307 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of images. + * + *

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 ImageList extends com.google.api.client.json.GenericJson { + + /** + * [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 Image 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(Image.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 ImageList 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 ImageList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public ImageList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ImageList 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 ImageList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ImageList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ImageList set(String fieldName, Object value) { + return (ImageList) super.set(fieldName, value); + } + + @Override + public ImageList clone() { + return (ImageList) 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 ImageListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageParams.java new file mode 100644 index 00000000000..7b2a9e72871 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional image params. + * + *

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 ImageParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public ImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public ImageParams set(String fieldName, Object value) { + return (ImageParams) super.set(fieldName, value); + } + + @Override + public ImageParams clone() { + return (ImageParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ImageView.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/InitialStateConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InitialStateConfig.java new file mode 100644 index 00000000000..c16e029b13a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InitialStateConfig.java @@ -0,0 +1,156 @@ +/* + * 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; + +/** + * Initial State for shielded instance, these are public keys which are safe to store in public + * + *

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 InitialStateConfig extends com.google.api.client.json.GenericJson { + + /** + * The Key Database (db). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dbs; + + static { + // hack to force ProGuard to consider FileContentBuffer 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(FileContentBuffer.class); + } + + /** + * The forbidden key database (dbx). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dbxs; + + static { + // hack to force ProGuard to consider FileContentBuffer 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(FileContentBuffer.class); + } + + /** + * The Key Exchange Key (KEK). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List keks; + + static { + // hack to force ProGuard to consider FileContentBuffer 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(FileContentBuffer.class); + } + + /** + * The Platform Key (PK). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FileContentBuffer pk; + + /** + * The Key Database (db). + * @return value or {@code null} for none + */ + public java.util.List getDbs() { + return dbs; + } + + /** + * The Key Database (db). + * @param dbs dbs or {@code null} for none + */ + public InitialStateConfig setDbs(java.util.List dbs) { + this.dbs = dbs; + return this; + } + + /** + * The forbidden key database (dbx). + * @return value or {@code null} for none + */ + public java.util.List getDbxs() { + return dbxs; + } + + /** + * The forbidden key database (dbx). + * @param dbxs dbxs or {@code null} for none + */ + public InitialStateConfig setDbxs(java.util.List dbxs) { + this.dbxs = dbxs; + return this; + } + + /** + * The Key Exchange Key (KEK). + * @return value or {@code null} for none + */ + public java.util.List getKeks() { + return keks; + } + + /** + * The Key Exchange Key (KEK). + * @param keks keks or {@code null} for none + */ + public InitialStateConfig setKeks(java.util.List keks) { + this.keks = keks; + return this; + } + + /** + * The Platform Key (PK). + * @return value or {@code null} for none + */ + public FileContentBuffer getPk() { + return pk; + } + + /** + * The Platform Key (PK). + * @param pk pk or {@code null} for none + */ + public InitialStateConfig setPk(FileContentBuffer pk) { + this.pk = pk; + return this; + } + + @Override + public InitialStateConfig set(String fieldName, Object value) { + return (InitialStateConfig) super.set(fieldName, value); + } + + @Override + public InitialStateConfig clone() { + return (InitialStateConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Instance.java new file mode 100644 index 00000000000..89699e3b5ec --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Instance.java @@ -0,0 +1,1456 @@ +/* + * 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 an Instance resource. + * + * An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, + * readVirtual Machine Instances. + * + *

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 Instance extends com.google.api.client.json.GenericJson { + + /** + * Controls for advanced machine-related behavior features. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AdvancedMachineFeatures advancedMachineFeatures; + + /** + * Allows this instance to send and receive packets with non-matching destination or source IPs. + * This is required if you plan to use this instance to forward routes. For more information, + * seeEnabling IP Forwarding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canIpForward; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConfidentialInstanceConfig confidentialInstanceConfig; + + /** + * Output only. [Output Only] The CPU platform used by this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cpuPlatform; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Whether the resource should be protected against deletion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deletionProtection; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Array of disks associated with this instance. Persistent disks must be created before you can + * assign them. + * 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); + } + + /** + * Enables display device for the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DisplayDevice displayDevice; + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the instance's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the instance. You must always + * provide an up-to-date fingerprint hash in order to update the instance. + * + * To see the latest fingerprint, make get() request to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * A list of the type and count of accelerator cards attached to the instance. + * 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); + } + + /** + * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If + * hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when + * using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostname; + + /** + * 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; + + /** + * Encrypts suspended data for an instance with acustomer-managed encryption key. + * + * If you are creating a new instance, this field will encrypt the local SSD and in-memory + * contents of the instance during the suspend operation. + * + * If you do not provide an encryption key when creating the instance, then the local SSD and in- + * memory contents will be encrypted using an automatically generated key during the suspend + * operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey instanceEncryptionKey; + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyRevocationActionType; + + /** + * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for this request, which is essentially a hash of the label's contents and used + * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes + * after every request to modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this instance. These can be later modified by the setLabels method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastStartTimestamp; + + /** + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastStopTimestamp; + + /** + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastSuspendedTimestamp; + + /** + * Specifies which method should be used for encrypting the Local SSDs attached to the VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localSsdEncryptionMode; + + /** + * Full or partial URL of the machine type resource to use for this instance, in the + * format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance + * is created. For example, the following is a valid partial url to a predefined machine type: + * + * zones/us-central1-f/machineTypes/n1-standard-1 + * + * To create acustom machine type, provide a URL to a machine type in the following format, where + * CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for + * this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of + * memory is 5120 MB): + * + * zones/zone/machineTypes/custom-CPUS-MEMORY + * + * For example: zones/us-central1-f/machineTypes/custom-4-5120 + * + * For a full list of restrictions, read theSpecifications for custom machine types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * The metadata key/value pairs assigned to this instance. This includes metadata keys that were + * explicitly defined for the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Metadata metadata; + + /** + * Specifies aminimum CPU platform for the VM instance. Applicable values are the friendly names + * of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy + * Bridge". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + + /** + * An array of network configurations for this instance. These specify how interfaces are + * configured to interact with other network services, such as connecting to the internet. + * Multiple interfaces are supported per instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkInterfaces; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPerformanceConfig networkPerformanceConfig; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceParams params; + + /** + * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK + * as default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateIpv6GoogleAccess; + + /** + * Specifies the reservations that this instance can consume from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationAffinity reservationAffinity; + + /** + * Resource policies applied to this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Output only. [Output Only] Specifies values set for instance attributes as compared to the + * values requested by user in the corresponding input only field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatus resourceStatus; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * Sets the scheduling options for this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Scheduling scheduling; + + /** + * 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; + + /** + * A list of service accounts, with their specified scopes, authorized for this instance. Only one + * service account per VM instance is supported. + * + * Service accounts generate access tokens that can be accessed through the metadata server and + * used to authenticate applications on the instance. SeeService Accounts for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceAccounts; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceConfig shieldedInstanceConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy; + + /** + * Source machine image + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceMachineImage; + + /** + * Source machine image encryption key when creating an instance from a machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceMachineImageEncryptionKey; + + /** + * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine + * has detected suspicious activity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean startRestricted; + + /** + * Output only. [Output Only] The status of the instance. One of the following values: + * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For + * more information about the status of the instance, see Instance life cycle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Tags to apply to this instance. Tags are used to identify valid sources or targets for network + * firewalls and are specified by the client during instance creation. The tags can be later + * modified by the setTags method. Each tag within the list must comply withRFC1035. Multiple tags + * can be specified via the 'tags.items' field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Tags tags; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WorkloadIdentityConfig workloadIdentityConfig; + + /** + * Output only. [Output Only] URL of the zone where the instance resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Controls for advanced machine-related behavior features. + * @return value or {@code null} for none + */ + public AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures; + } + + /** + * Controls for advanced machine-related behavior features. + * @param advancedMachineFeatures advancedMachineFeatures or {@code null} for none + */ + public Instance setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures) { + this.advancedMachineFeatures = advancedMachineFeatures; + return this; + } + + /** + * Allows this instance to send and receive packets with non-matching destination or source IPs. + * This is required if you plan to use this instance to forward routes. For more information, + * seeEnabling IP Forwarding. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanIpForward() { + return canIpForward; + } + + /** + * Allows this instance to send and receive packets with non-matching destination or source IPs. + * This is required if you plan to use this instance to forward routes. For more information, + * seeEnabling IP Forwarding. + * @param canIpForward canIpForward or {@code null} for none + */ + public Instance setCanIpForward(java.lang.Boolean canIpForward) { + this.canIpForward = canIpForward; + return this; + } + + /** + * @return value or {@code null} for none + */ + public ConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig; + } + + /** + * @param confidentialInstanceConfig confidentialInstanceConfig or {@code null} for none + */ + public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig) { + this.confidentialInstanceConfig = confidentialInstanceConfig; + return this; + } + + /** + * Output only. [Output Only] The CPU platform used by this instance. + * @return value or {@code null} for none + */ + public java.lang.String getCpuPlatform() { + return cpuPlatform; + } + + /** + * Output only. [Output Only] The CPU platform used by this instance. + * @param cpuPlatform cpuPlatform or {@code null} for none + */ + public Instance setCpuPlatform(java.lang.String cpuPlatform) { + this.cpuPlatform = cpuPlatform; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Instance setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Whether the resource should be protected against deletion. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeletionProtection() { + return deletionProtection; + } + + /** + * Whether the resource should be protected against deletion. + * @param deletionProtection deletionProtection or {@code null} for none + */ + public Instance setDeletionProtection(java.lang.Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Instance setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Array of disks associated with this instance. Persistent disks must be created before you can + * assign them. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Array of disks associated with this instance. Persistent disks must be created before you can + * assign them. + * @param disks disks or {@code null} for none + */ + public Instance setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * Enables display device for the instance. + * @return value or {@code null} for none + */ + public DisplayDevice getDisplayDevice() { + return displayDevice; + } + + /** + * Enables display device for the instance. + * @param displayDevice displayDevice or {@code null} for none + */ + public Instance setDisplayDevice(DisplayDevice displayDevice) { + this.displayDevice = displayDevice; + return this; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the instance's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the instance. You must always + * provide an up-to-date fingerprint hash in order to update the instance. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the instance's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the instance. You must always + * provide an up-to-date fingerprint hash in order to update the instance. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the instance's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the instance. You must always + * provide an up-to-date fingerprint hash in order to update the instance. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public Instance setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the instance's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the instance. You must always + * provide an up-to-date fingerprint hash in order to update the instance. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Instance encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * A list of the type and count of accelerator cards attached to the instance. + * @return value or {@code null} for none + */ + public java.util.List getGuestAccelerators() { + return guestAccelerators; + } + + /** + * A list of the type and count of accelerator cards attached to the instance. + * @param guestAccelerators guestAccelerators or {@code null} for none + */ + public Instance setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + + /** + * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If + * hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when + * using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. + * @return value or {@code null} for none + */ + public java.lang.String getHostname() { + return hostname; + } + + /** + * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If + * hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when + * using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. + * @param hostname hostname or {@code null} for none + */ + public Instance setHostname(java.lang.String hostname) { + this.hostname = hostname; + 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 Instance setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Encrypts suspended data for an instance with acustomer-managed encryption key. + * + * If you are creating a new instance, this field will encrypt the local SSD and in-memory + * contents of the instance during the suspend operation. + * + * If you do not provide an encryption key when creating the instance, then the local SSD and in- + * memory contents will be encrypted using an automatically generated key during the suspend + * operation. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getInstanceEncryptionKey() { + return instanceEncryptionKey; + } + + /** + * Encrypts suspended data for an instance with acustomer-managed encryption key. + * + * If you are creating a new instance, this field will encrypt the local SSD and in-memory + * contents of the instance during the suspend operation. + * + * If you do not provide an encryption key when creating the instance, then the local SSD and in- + * memory contents will be encrypted using an automatically generated key during the suspend + * operation. + * @param instanceEncryptionKey instanceEncryptionKey or {@code null} for none + */ + public Instance setInstanceEncryptionKey(CustomerEncryptionKey instanceEncryptionKey) { + this.instanceEncryptionKey = instanceEncryptionKey; + return this; + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * @return value or {@code null} for none + */ + public java.lang.String getKeyRevocationActionType() { + return keyRevocationActionType; + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * @param keyRevocationActionType keyRevocationActionType or {@code null} for none + */ + public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionType) { + this.keyRevocationActionType = keyRevocationActionType; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * @param kind kind or {@code null} for none + */ + public Instance setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for this request, which is essentially a hash of the label's contents and used + * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes + * after every request to modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for this request, which is essentially a hash of the label's contents and used + * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes + * after every request to modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for this request, which is essentially a hash of the label's contents and used + * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes + * after every request to modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public Instance setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for this request, which is essentially a hash of the label's contents and used + * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes + * after every request to modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Instance encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this instance. These can be later modified by the setLabels method. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this instance. These can be later modified by the setLabels method. + * @param labels labels or {@code null} for none + */ + public Instance setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastStartTimestamp() { + return lastStartTimestamp; + } + + /** + * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * @param lastStartTimestamp lastStartTimestamp or {@code null} for none + */ + public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { + this.lastStartTimestamp = lastStartTimestamp; + return this; + } + + /** + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastStopTimestamp() { + return lastStopTimestamp; + } + + /** + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * @param lastStopTimestamp lastStopTimestamp or {@code null} for none + */ + public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { + this.lastStopTimestamp = lastStopTimestamp; + return this; + } + + /** + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastSuspendedTimestamp() { + return lastSuspendedTimestamp; + } + + /** + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * @param lastSuspendedTimestamp lastSuspendedTimestamp or {@code null} for none + */ + public Instance setLastSuspendedTimestamp(java.lang.String lastSuspendedTimestamp) { + this.lastSuspendedTimestamp = lastSuspendedTimestamp; + return this; + } + + /** + * Specifies which method should be used for encrypting the Local SSDs attached to the VM. + * @return value or {@code null} for none + */ + public java.lang.String getLocalSsdEncryptionMode() { + return localSsdEncryptionMode; + } + + /** + * Specifies which method should be used for encrypting the Local SSDs attached to the VM. + * @param localSsdEncryptionMode localSsdEncryptionMode or {@code null} for none + */ + public Instance setLocalSsdEncryptionMode(java.lang.String localSsdEncryptionMode) { + this.localSsdEncryptionMode = localSsdEncryptionMode; + return this; + } + + /** + * Full or partial URL of the machine type resource to use for this instance, in the + * format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance + * is created. For example, the following is a valid partial url to a predefined machine type: + * + * zones/us-central1-f/machineTypes/n1-standard-1 + * + * To create acustom machine type, provide a URL to a machine type in the following format, where + * CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for + * this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of + * memory is 5120 MB): + * + * zones/zone/machineTypes/custom-CPUS-MEMORY + * + * For example: zones/us-central1-f/machineTypes/custom-4-5120 + * + * For a full list of restrictions, read theSpecifications for custom machine types. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * Full or partial URL of the machine type resource to use for this instance, in the + * format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance + * is created. For example, the following is a valid partial url to a predefined machine type: + * + * zones/us-central1-f/machineTypes/n1-standard-1 + * + * To create acustom machine type, provide a URL to a machine type in the following format, where + * CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for + * this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of + * memory is 5120 MB): + * + * zones/zone/machineTypes/custom-CPUS-MEMORY + * + * For example: zones/us-central1-f/machineTypes/custom-4-5120 + * + * For a full list of restrictions, read theSpecifications for custom machine types. + * @param machineType machineType or {@code null} for none + */ + public Instance setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * The metadata key/value pairs assigned to this instance. This includes metadata keys that were + * explicitly defined for the instance. + * @return value or {@code null} for none + */ + public Metadata getMetadata() { + return metadata; + } + + /** + * The metadata key/value pairs assigned to this instance. This includes metadata keys that were + * explicitly defined for the instance. + * @param metadata metadata or {@code null} for none + */ + public Instance setMetadata(Metadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Specifies aminimum CPU platform for the VM instance. Applicable values are the friendly names + * of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy + * Bridge". + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Specifies aminimum CPU platform for the VM instance. Applicable values are the friendly names + * of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy + * Bridge". + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public Instance setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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 Instance setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * An array of network configurations for this instance. These specify how interfaces are + * configured to interact with other network services, such as connecting to the internet. + * Multiple interfaces are supported per instance. + * @return value or {@code null} for none + */ + public java.util.List getNetworkInterfaces() { + return networkInterfaces; + } + + /** + * An array of network configurations for this instance. These specify how interfaces are + * configured to interact with other network services, such as connecting to the internet. + * Multiple interfaces are supported per instance. + * @param networkInterfaces networkInterfaces or {@code null} for none + */ + public Instance setNetworkInterfaces(java.util.List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + return this; + } + + /** + * @return value or {@code null} for none + */ + public NetworkPerformanceConfig getNetworkPerformanceConfig() { + return networkPerformanceConfig; + } + + /** + * @param networkPerformanceConfig networkPerformanceConfig or {@code null} for none + */ + public Instance setNetworkPerformanceConfig(NetworkPerformanceConfig networkPerformanceConfig) { + this.networkPerformanceConfig = networkPerformanceConfig; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public InstanceParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Instance setParams(InstanceParams params) { + this.params = params; + return this; + } + + /** + * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK + * as default. + * @return value or {@code null} for none + */ + public java.lang.String getPrivateIpv6GoogleAccess() { + return privateIpv6GoogleAccess; + } + + /** + * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK + * as default. + * @param privateIpv6GoogleAccess privateIpv6GoogleAccess or {@code null} for none + */ + public Instance setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess) { + this.privateIpv6GoogleAccess = privateIpv6GoogleAccess; + return this; + } + + /** + * Specifies the reservations that this instance can consume from. + * @return value or {@code null} for none + */ + public ReservationAffinity getReservationAffinity() { + return reservationAffinity; + } + + /** + * Specifies the reservations that this instance can consume from. + * @param reservationAffinity reservationAffinity or {@code null} for none + */ + public Instance setReservationAffinity(ReservationAffinity reservationAffinity) { + this.reservationAffinity = reservationAffinity; + return this; + } + + /** + * Resource policies applied to this instance. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies applied to this instance. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public Instance setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Output only. [Output Only] Specifies values set for instance attributes as compared to the + * values requested by user in the corresponding input only field. + * @return value or {@code null} for none + */ + public ResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] Specifies values set for instance attributes as compared to the + * values requested by user in the corresponding input only field. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public Instance setResourceStatus(ResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * Sets the scheduling options for this instance. + * @return value or {@code null} for none + */ + public Scheduling getScheduling() { + return scheduling; + } + + /** + * Sets the scheduling options for this instance. + * @param scheduling scheduling or {@code null} for none + */ + public Instance setScheduling(Scheduling scheduling) { + this.scheduling = scheduling; + 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 Instance setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * A list of service accounts, with their specified scopes, authorized for this instance. Only one + * service account per VM instance is supported. + * + * Service accounts generate access tokens that can be accessed through the metadata server and + * used to authenticate applications on the instance. SeeService Accounts for more information. + * @return value or {@code null} for none + */ + public java.util.List getServiceAccounts() { + return serviceAccounts; + } + + /** + * A list of service accounts, with their specified scopes, authorized for this instance. Only one + * service account per VM instance is supported. + * + * Service accounts generate access tokens that can be accessed through the metadata server and + * used to authenticate applications on the instance. SeeService Accounts for more information. + * @param serviceAccounts serviceAccounts or {@code null} for none + */ + public Instance setServiceAccounts(java.util.List serviceAccounts) { + this.serviceAccounts = serviceAccounts; + return this; + } + + /** + * @return value or {@code null} for none + */ + public ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig; + } + + /** + * @param shieldedInstanceConfig shieldedInstanceConfig or {@code null} for none + */ + public Instance setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) { + this.shieldedInstanceConfig = shieldedInstanceConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy() { + return shieldedInstanceIntegrityPolicy; + } + + /** + * @param shieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy or {@code null} for none + */ + public Instance setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy) { + this.shieldedInstanceIntegrityPolicy = shieldedInstanceIntegrityPolicy; + return this; + } + + /** + * Source machine image + * @return value or {@code null} for none + */ + public java.lang.String getSourceMachineImage() { + return sourceMachineImage; + } + + /** + * Source machine image + * @param sourceMachineImage sourceMachineImage or {@code null} for none + */ + public Instance setSourceMachineImage(java.lang.String sourceMachineImage) { + this.sourceMachineImage = sourceMachineImage; + return this; + } + + /** + * Source machine image encryption key when creating an instance from a machine image. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceMachineImageEncryptionKey() { + return sourceMachineImageEncryptionKey; + } + + /** + * Source machine image encryption key when creating an instance from a machine image. + * @param sourceMachineImageEncryptionKey sourceMachineImageEncryptionKey or {@code null} for none + */ + public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceMachineImageEncryptionKey) { + this.sourceMachineImageEncryptionKey = sourceMachineImageEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine + * has detected suspicious activity. + * @return value or {@code null} for none + */ + public java.lang.Boolean getStartRestricted() { + return startRestricted; + } + + /** + * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine + * has detected suspicious activity. + * @param startRestricted startRestricted or {@code null} for none + */ + public Instance setStartRestricted(java.lang.Boolean startRestricted) { + this.startRestricted = startRestricted; + return this; + } + + /** + * Output only. [Output Only] The status of the instance. One of the following values: + * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For + * more information about the status of the instance, see Instance life cycle. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the instance. One of the following values: + * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For + * more information about the status of the instance, see Instance life cycle. + * @param status status or {@code null} for none + */ + public Instance setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * @param statusMessage statusMessage or {@code null} for none + */ + public Instance setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Tags to apply to this instance. Tags are used to identify valid sources or targets for network + * firewalls and are specified by the client during instance creation. The tags can be later + * modified by the setTags method. Each tag within the list must comply withRFC1035. Multiple tags + * can be specified via the 'tags.items' field. + * @return value or {@code null} for none + */ + public Tags getTags() { + return tags; + } + + /** + * Tags to apply to this instance. Tags are used to identify valid sources or targets for network + * firewalls and are specified by the client during instance creation. The tags can be later + * modified by the setTags method. Each tag within the list must comply withRFC1035. Multiple tags + * can be specified via the 'tags.items' field. + * @param tags tags or {@code null} for none + */ + public Instance setTags(Tags tags) { + this.tags = tags; + return this; + } + + /** + * @return value or {@code null} for none + */ + public WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig; + } + + /** + * @param workloadIdentityConfig workloadIdentityConfig or {@code null} for none + */ + public Instance setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig) { + this.workloadIdentityConfig = workloadIdentityConfig; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the instance resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the instance resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public Instance setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Instance set(String fieldName, Object value) { + return (Instance) super.set(fieldName, value); + } + + @Override + public Instance clone() { + return (Instance) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java new file mode 100644 index 00000000000..516c946a240 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 InstanceAggregatedList. + * + *

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 InstanceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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; + + /** + * An object that contains a list of instances scoped by zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for + * aggregated lists of Instance resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 InstanceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * An object that contains a list of instances scoped by zone. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * An object that contains a list of instances scoped by zone. + * @param items items or {@code null} for none + */ + public InstanceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for + * aggregated lists of Instance resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for + * aggregated lists of Instance resources. + * @param kind kind or {@code null} for none + */ + public InstanceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceAggregatedList 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 InstanceAggregatedList 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 InstanceAggregatedList 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 InstanceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceAggregatedList set(String fieldName, Object value) { + return (InstanceAggregatedList) super.set(fieldName, value); + } + + @Override + public InstanceAggregatedList clone() { + return (InstanceAggregatedList) 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 InstanceAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java new file mode 100644 index 00000000000..0802df8ace4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstanceConsumptionData. + * + *

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 InstanceConsumptionData extends com.google.api.client.json.GenericJson { + + /** + * Output only. Resources consumed by the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceConsumptionInfo consumptionInfo; + + /** + * Output only. Server-defined URL for the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Output only. Resources consumed by the instance. + * @return value or {@code null} for none + */ + public InstanceConsumptionInfo getConsumptionInfo() { + return consumptionInfo; + } + + /** + * Output only. Resources consumed by the instance. + * @param consumptionInfo consumptionInfo or {@code null} for none + */ + public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { + this.consumptionInfo = consumptionInfo; + return this; + } + + /** + * Output only. Server-defined URL for the instance. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Output only. Server-defined URL for the instance. + * @param instance instance or {@code null} for none + */ + public InstanceConsumptionData setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + @Override + public InstanceConsumptionData set(String fieldName, Object value) { + return (InstanceConsumptionData) super.set(fieldName, value); + } + + @Override + public InstanceConsumptionData clone() { + return (InstanceConsumptionData) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java new file mode 100644 index 00000000000..045c36fe60e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -0,0 +1,138 @@ +/* + * 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 InstanceConsumptionInfo. + * + *

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 InstanceConsumptionInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of virtual CPUs that are available to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer guestCpus; + + /** + * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer localSsdGb; + + /** + * Output only. The amount of physical memory available to the instance, defined in MiB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer memoryMb; + + /** + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minNodeCpus; + + /** + * Output only. The number of virtual CPUs that are available to the instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getGuestCpus() { + return guestCpus; + } + + /** + * Output only. The number of virtual CPUs that are available to the instance. + * @param guestCpus guestCpus or {@code null} for none + */ + public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { + this.guestCpus = guestCpus; + return this; + } + + /** + * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * @return value or {@code null} for none + */ + public java.lang.Integer getLocalSsdGb() { + return localSsdGb; + } + + /** + * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * @param localSsdGb localSsdGb or {@code null} for none + */ + public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { + this.localSsdGb = localSsdGb; + return this; + } + + /** + * Output only. The amount of physical memory available to the instance, defined in MiB. + * @return value or {@code null} for none + */ + public java.lang.Integer getMemoryMb() { + return memoryMb; + } + + /** + * Output only. The amount of physical memory available to the instance, defined in MiB. + * @param memoryMb memoryMb or {@code null} for none + */ + public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { + this.memoryMb = memoryMb; + return this; + } + + /** + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinNodeCpus() { + return minNodeCpus; + } + + /** + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * @param minNodeCpus minNodeCpus or {@code null} for none + */ + public InstanceConsumptionInfo setMinNodeCpus(java.lang.Integer minNodeCpus) { + this.minNodeCpus = minNodeCpus; + return this; + } + + @Override + public InstanceConsumptionInfo set(String fieldName, Object value) { + return (InstanceConsumptionInfo) super.set(fieldName, value); + } + + @Override + public InstanceConsumptionInfo clone() { + return (InstanceConsumptionInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java new file mode 100644 index 00000000000..681d9b2c7a7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A flexible specification of machine types for instances to create. + * + *

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 InstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specification of alternative, flexible instance subsets. One of them will be selected to create + * the instances based on various criteria, like: - ranks, - location policy, - current capacity, + * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE + * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map instanceSelections; + + /** + * Specification of alternative, flexible instance subsets. One of them will be selected to create + * the instances based on various criteria, like: - ranks, - location policy, - current capacity, + * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE + * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. + * @return value or {@code null} for none + */ + public java.util.Map getInstanceSelections() { + return instanceSelections; + } + + /** + * Specification of alternative, flexible instance subsets. One of them will be selected to create + * the instances based on various criteria, like: - ranks, - location policy, - current capacity, + * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE + * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. + * @param instanceSelections instanceSelections or {@code null} for none + */ + public InstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { + this.instanceSelections = instanceSelections; + return this; + } + + @Override + public InstanceFlexibilityPolicy set(String fieldName, Object value) { + return (InstanceFlexibilityPolicy) super.set(fieldName, value); + } + + @Override + public InstanceFlexibilityPolicy clone() { + return (InstanceFlexibilityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..8ffdd9adfc4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,158 @@ +/* + * 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; + +/** + * Specification of machine type to use. Every position inside this message is an alternative. The + * count specified in the shape flexibility must not exceed the number of entries in + * per_instance_properties or the capacity of the name_pattern, if used. + * + *

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 InstanceFlexibilityPolicyInstanceSelection extends com.google.api.client.json.GenericJson { + + /** + * Disks to be attached to the instances created from in this selection. They override the disks + * specified in the instance properties. + * 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); + } + + /** + * Alternative machine types to use for instances that are created from these properties. This + * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial + * URLs. + * The value may be {@code null}. + */ + @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; + + /** + * Rank when prioritizing the shape flexibilities. The instance selections with rank are + * considered first, 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; + + /** + * Disks to be attached to the instances created from in this selection. They override the disks + * specified in the instance properties. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Disks to be attached to the instances created from in this selection. They override the disks + * specified in the instance properties. + * @param disks disks or {@code null} for none + */ + public InstanceFlexibilityPolicyInstanceSelection setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * Alternative machine types to use for instances that are created from these properties. This + * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial + * URLs. + * @return value or {@code null} for none + */ + public java.util.List getMachineTypes() { + return machineTypes; + } + + /** + * Alternative machine types to use for instances that are created from these properties. This + * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial + * URLs. + * @param machineTypes machineTypes or {@code null} for none + */ + public InstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { + this.machineTypes = machineTypes; + 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 InstanceFlexibilityPolicyInstanceSelection setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + + /** + * Rank when prioritizing the shape flexibilities. The instance selections with rank are + * considered first, 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; + } + + /** + * Rank when prioritizing the shape flexibilities. The instance selections with rank are + * considered first, in the ascending order of the rank. If not set, defaults to 0. + * @param rank rank or {@code null} for none + */ + public InstanceFlexibilityPolicyInstanceSelection setRank(java.lang.Long rank) { + this.rank = rank; + return this; + } + + @Override + public InstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { + return (InstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); + } + + @Override + public InstanceFlexibilityPolicyInstanceSelection clone() { + return (InstanceFlexibilityPolicyInstanceSelection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroup.java new file mode 100644 index 00000000000..1347250c1d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -0,0 +1,445 @@ +/* + * 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 an Instance Group resource. + * + * Instance Groups can be used to configure a target forload balancing. + * + * Instance groups can either be managed or unmanaged. + * + * To create managed instance groups, use the instanceGroupManager orregionInstanceGroupManager + * resource instead. + * + * Use zonal unmanaged instance groups if you need to applyload balancing to groups of heterogeneous + * instances or if you need to manage the instances yourself. You cannot create regional unmanaged + * instance groups. + * + * For more information, readInstance groups. + * + *

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 InstanceGroup extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text + * format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] A unique identifier for this instance group, generated 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] The resource type, which is alwayscompute#instanceGroup for instance + * groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Assigns a name to a port number. For example:{name: "http", port: 80} + * + * This allows the system to reference ports by the assigned name instead of a port number. Named + * ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: "app1", + * port: 8081}, {name: "app2", port: 8082}] + * + * Named ports apply to all instances in this instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namedPorts; + + /** + * [Output Only] The URL of the network to which all instances in the instance group belong. If + * your instance has multiple network interfaces, then the network and subnetwork fields only + * refer to the network and subnet used by your primary interface (nic0). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Output only. [Output Only] The URL of theregion where the instance group is located (for + * regional resources). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] The total number of instances in the instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** + * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance + * group belong. If your instance has multiple network interfaces, then the network and subnetwork + * fields only refer to the network and subnet used by your primary interface (nic0). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal + * resources). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text + * format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text + * format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InstanceGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InstanceGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public InstanceGroup setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint + * to detect conflicts when multiple users change the named ports concurrently. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstanceGroup encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this instance group, generated by the + * server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this instance group, generated by the + * server. + * @param id id or {@code null} for none + */ + public InstanceGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance + * groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance + * groups. + * @param kind kind or {@code null} for none + */ + public InstanceGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035. + * @param name name or {@code null} for none + */ + public InstanceGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Assigns a name to a port number. For example:{name: "http", port: 80} + * + * This allows the system to reference ports by the assigned name instead of a port number. Named + * ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: "app1", + * port: 8081}, {name: "app2", port: 8082}] + * + * Named ports apply to all instances in this instance group. + * @return value or {@code null} for none + */ + public java.util.List getNamedPorts() { + return namedPorts; + } + + /** + * Optional. Assigns a name to a port number. For example:{name: "http", port: 80} + * + * This allows the system to reference ports by the assigned name instead of a port number. Named + * ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: "app1", + * port: 8081}, {name: "app2", port: 8082}] + * + * Named ports apply to all instances in this instance group. + * @param namedPorts namedPorts or {@code null} for none + */ + public InstanceGroup setNamedPorts(java.util.List namedPorts) { + this.namedPorts = namedPorts; + return this; + } + + /** + * [Output Only] The URL of the network to which all instances in the instance group belong. If + * your instance has multiple network interfaces, then the network and subnetwork fields only + * refer to the network and subnet used by your primary interface (nic0). + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * [Output Only] The URL of the network to which all instances in the instance group belong. If + * your instance has multiple network interfaces, then the network and subnetwork fields only + * refer to the network and subnet used by your primary interface (nic0). + * @param network network or {@code null} for none + */ + public InstanceGroup setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Output only. [Output Only] The URL of theregion where the instance group is located (for + * regional resources). + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The URL of theregion where the instance group is located (for + * regional resources). + * @param region region or {@code null} for none + */ + public InstanceGroup setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] The total number of instances in the instance group. + * @return value or {@code null} for none + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * Output only. [Output Only] The total number of instances in the instance group. + * @param size size or {@code null} for none + */ + public InstanceGroup setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + /** + * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance + * group belong. If your instance has multiple network interfaces, then the network and subnetwork + * fields only refer to the network and subnet used by your primary interface (nic0). + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance + * group belong. If your instance has multiple network interfaces, then the network and subnetwork + * fields only refer to the network and subnet used by your primary interface (nic0). + * @param subnetwork subnetwork or {@code null} for none + */ + public InstanceGroup setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal + * resources). + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal + * resources). + * @param zone zone or {@code null} for none + */ + public InstanceGroup setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InstanceGroup set(String fieldName, Object value) { + return (InstanceGroup) super.set(fieldName, value); + } + + @Override + public InstanceGroup clone() { + return (InstanceGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java new file mode 100644 index 00000000000..71631757d2f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 InstanceGroupAggregatedList. + * + *

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 InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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 InstanceGroupsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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. [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InstanceGroupAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceGroupsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of InstanceGroupsScopedList resources. + * @param items items or {@code null} for none + */ + public InstanceGroupAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. + * @param kind kind or {@code null} for none + */ + public InstanceGroupAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupAggregatedList 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 InstanceGroupAggregatedList 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 InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InstanceGroupAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupAggregatedList set(String fieldName, Object value) { + return (InstanceGroupAggregatedList) super.set(fieldName, value); + } + + @Override + public InstanceGroupAggregatedList clone() { + return (InstanceGroupAggregatedList) super.clone(); + } + + /** + * Output only. [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 InstanceGroupAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupList.java new file mode 100644 index 00000000000..898787d5ae1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of InstanceGroup resources. + * + *

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 InstanceGroupList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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 InstanceGroup 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 InstanceGroup 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(InstanceGroup.class); + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for + * instance group lists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InstanceGroupList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceGroup resources. + * @param items items or {@code null} for none + */ + public InstanceGroupList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for + * instance group lists. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for + * instance group lists. + * @param kind kind or {@code null} for none + */ + public InstanceGroupList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupList 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 InstanceGroupList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InstanceGroupList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupList set(String fieldName, Object value) { + return (InstanceGroupList) super.set(fieldName, value); + } + + @Override + public InstanceGroupList clone() { + return (InstanceGroupList) super.clone(); + } + + /** + * Output only. [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 InstanceGroupListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java new file mode 100644 index 00000000000..489da7cd87f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -0,0 +1,991 @@ +/* + * 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 Managed Instance Group resource. + * + * An instance group is a collection of VM instances that you can manage as a single entity. For + * more information, readInstance groups. + * + * For zonal Managed Instance Group, use the instanceGroupManagers resource. + * + * For regional Managed Instance Group, use theregionInstanceGroupManagers 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 InstanceGroupManager extends com.google.api.client.json.GenericJson { + + /** + * Specifies configuration that overrides the instance template configuration for the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerAllInstancesConfig allInstancesConfig; + + /** + * The autohealing policy for this managed instance group. You can specify only one value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List autoHealingPolicies; + + /** + * The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. + * The maximum character length is 58 and the name must comply with RFC1035 format. + * + * When a VM is created in the group, the MIG appends a hyphen and a random four-character string + * to the base instance name. If you want the MIG to assign sequential numbers instead of a random + * string, then end the base instance name with a hyphen followed by one or more hash symbols. The + * hash symbols indicate the number of digits. For example, a base instance name of "vm-###" + * results in "vm-001" as a VM name. @pattern + * [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String baseInstanceName; + + /** + * Output only. The creation timestamp for this managed instance group inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. The list of instance actions and the number of instances in this managed instance + * group that are scheduled for each of those actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerActionsSummary currentActions; + + /** + * An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Policy specifying the intended distribution of managed instances across zones in a regional + * managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DistributionPolicy distributionPolicy; + + /** + * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored + * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to + * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. A unique identifier for this resource type. The server generates this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance + * flexibility configuration on MIG overrides instance template configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; + + /** + * Output only. The URL of the Instance Group resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** + * The repair policy for this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerInstanceLifecyclePolicy instanceLifecyclePolicy; + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create all new instances in the managed instance group. The templates for + * existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed + * instance groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Pagination behavior of the listManagedInstances API method for this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String listManagedInstancesResults; + + /** + * The name of the managed instance group. The name must be 1-63 characters long, and comply + * withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [Output Only] Named ports configured on the Instance Groups complementary to this Instance + * Group Manager. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namedPorts; + + /** + * Output only. [Output Only] The URL of theregion where the managed instance group resides (for + * regional resources). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Resource policies for this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerResourcePolicies resourcePolicies; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * Output only. The URL for this managed instance group. The server defines this URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Standby policy for stopped and suspended instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStandbyPolicy standbyPolicy; + + /** + * Stateful configuration for this Instanced Group Manager + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StatefulPolicy statefulPolicy; + + /** + * Output only. The status of this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatus status; + + /** + * The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. + * The target pools automatically apply to all of the instances in the managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetPools; + + /** + * The target number of running instances for this managed instance group. You can reduce this + * number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing + * the group also changes this number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer targetSize; + + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerTargetSizePolicy targetSizePolicy; + + /** + * The target number of stopped instances for this managed instance group. This number changes + * when you: - Stop instance using the stopInstances method or start instances using + * the startInstances method. - Manually change the targetStoppedSize using the update + * method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer targetStoppedSize; + + /** + * The target number of suspended instances for this managed instance group. This number changes + * when you: - Suspend instance using the suspendInstances method or resume instances + * using the resumeInstances method. - Manually change the targetSuspendedSize using the + * update method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer targetSuspendedSize; + + /** + * The update policy for this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerUpdatePolicy updatePolicy; + + /** + * Specifies the instance templates used by this managed instance group to create instances. + * + * Each version is defined by an instanceTemplate and aname. Every version can appear at most once + * per instance group. This field overrides the top-level instanceTemplate field. Read more about + * therelationships between these fields. Exactly one version must leave thetargetSize field + * unset. That version will be applied to all remaining instances. For more information, read + * aboutcanary updates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List versions; + + /** + * Output only. The URL of azone where the managed instance group is located (for zonal + * resources). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Specifies configuration that overrides the instance template configuration for the group. + * @return value or {@code null} for none + */ + public InstanceGroupManagerAllInstancesConfig getAllInstancesConfig() { + return allInstancesConfig; + } + + /** + * Specifies configuration that overrides the instance template configuration for the group. + * @param allInstancesConfig allInstancesConfig or {@code null} for none + */ + public InstanceGroupManager setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig allInstancesConfig) { + this.allInstancesConfig = allInstancesConfig; + return this; + } + + /** + * The autohealing policy for this managed instance group. You can specify only one value. + * @return value or {@code null} for none + */ + public java.util.List getAutoHealingPolicies() { + return autoHealingPolicies; + } + + /** + * The autohealing policy for this managed instance group. You can specify only one value. + * @param autoHealingPolicies autoHealingPolicies or {@code null} for none + */ + public InstanceGroupManager setAutoHealingPolicies(java.util.List autoHealingPolicies) { + this.autoHealingPolicies = autoHealingPolicies; + return this; + } + + /** + * The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. + * The maximum character length is 58 and the name must comply with RFC1035 format. + * + * When a VM is created in the group, the MIG appends a hyphen and a random four-character string + * to the base instance name. If you want the MIG to assign sequential numbers instead of a random + * string, then end the base instance name with a hyphen followed by one or more hash symbols. The + * hash symbols indicate the number of digits. For example, a base instance name of "vm-###" + * results in "vm-001" as a VM name. @pattern + * [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) + * @return value or {@code null} for none + */ + public java.lang.String getBaseInstanceName() { + return baseInstanceName; + } + + /** + * The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. + * The maximum character length is 58 and the name must comply with RFC1035 format. + * + * When a VM is created in the group, the MIG appends a hyphen and a random four-character string + * to the base instance name. If you want the MIG to assign sequential numbers instead of a random + * string, then end the base instance name with a hyphen followed by one or more hash symbols. The + * hash symbols indicate the number of digits. For example, a base instance name of "vm-###" + * results in "vm-001" as a VM name. @pattern + * [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) + * @param baseInstanceName baseInstanceName or {@code null} for none + */ + public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceName) { + this.baseInstanceName = baseInstanceName; + return this; + } + + /** + * Output only. The creation timestamp for this managed instance group inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. The creation timestamp for this managed instance group inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. The list of instance actions and the number of instances in this managed instance + * group that are scheduled for each of those actions. + * @return value or {@code null} for none + */ + public InstanceGroupManagerActionsSummary getCurrentActions() { + return currentActions; + } + + /** + * Output only. The list of instance actions and the number of instances in this managed instance + * group that are scheduled for each of those actions. + * @param currentActions currentActions or {@code null} for none + */ + public InstanceGroupManager setCurrentActions(InstanceGroupManagerActionsSummary currentActions) { + this.currentActions = currentActions; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public InstanceGroupManager setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Policy specifying the intended distribution of managed instances across zones in a regional + * managed instance group. + * @return value or {@code null} for none + */ + public DistributionPolicy getDistributionPolicy() { + return distributionPolicy; + } + + /** + * Policy specifying the intended distribution of managed instances across zones in a regional + * managed instance group. + * @param distributionPolicy distributionPolicy or {@code null} for none + */ + public InstanceGroupManager setDistributionPolicy(DistributionPolicy distributionPolicy) { + this.distributionPolicy = distributionPolicy; + return this; + } + + /** + * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored + * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to + * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored + * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to + * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored + * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to + * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public InstanceGroupManager setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored + * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to + * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. A unique identifier for this resource type. The server generates this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. A unique identifier for this resource type. The server generates this identifier. + * @param id id or {@code null} for none + */ + public InstanceGroupManager setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance + * flexibility configuration on MIG overrides instance template configuration. + * @return value or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { + return instanceFlexibilityPolicy; + } + + /** + * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance + * flexibility configuration on MIG overrides instance template configuration. + * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none + */ + public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy) { + this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; + return this; + } + + /** + * Output only. The URL of the Instance Group resource. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** + * Output only. The URL of the Instance Group resource. + * @param instanceGroup instanceGroup or {@code null} for none + */ + public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + return this; + } + + /** + * The repair policy for this managed instance group. + * @return value or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicy getInstanceLifecyclePolicy() { + return instanceLifecyclePolicy; + } + + /** + * The repair policy for this managed instance group. + * @param instanceLifecyclePolicy instanceLifecyclePolicy or {@code null} for none + */ + public InstanceGroupManager setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy instanceLifecyclePolicy) { + this.instanceLifecyclePolicy = instanceLifecyclePolicy; + return this; + } + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create all new instances in the managed instance group. The templates for + * existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create all new instances in the managed instance group. The templates for + * existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * @param instanceTemplate instanceTemplate or {@code null} for none + */ + public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplate) { + this.instanceTemplate = instanceTemplate; + return this; + } + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed + * instance groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed + * instance groups. + * @param kind kind or {@code null} for none + */ + public InstanceGroupManager setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Pagination behavior of the listManagedInstances API method for this managed instance group. + * @return value or {@code null} for none + */ + public java.lang.String getListManagedInstancesResults() { + return listManagedInstancesResults; + } + + /** + * Pagination behavior of the listManagedInstances API method for this managed instance group. + * @param listManagedInstancesResults listManagedInstancesResults or {@code null} for none + */ + public InstanceGroupManager setListManagedInstancesResults(java.lang.String listManagedInstancesResults) { + this.listManagedInstancesResults = listManagedInstancesResults; + return this; + } + + /** + * The name of the managed instance group. The name must be 1-63 characters long, and comply + * withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the managed instance group. The name must be 1-63 characters long, and comply + * withRFC1035. + * @param name name or {@code null} for none + */ + public InstanceGroupManager setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] Named ports configured on the Instance Groups complementary to this Instance + * Group Manager. + * @return value or {@code null} for none + */ + public java.util.List getNamedPorts() { + return namedPorts; + } + + /** + * [Output Only] Named ports configured on the Instance Groups complementary to this Instance + * Group Manager. + * @param namedPorts namedPorts or {@code null} for none + */ + public InstanceGroupManager setNamedPorts(java.util.List namedPorts) { + this.namedPorts = namedPorts; + return this; + } + + /** + * Output only. [Output Only] The URL of theregion where the managed instance group resides (for + * regional resources). + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The URL of theregion where the managed instance group resides (for + * regional resources). + * @param region region or {@code null} for none + */ + public InstanceGroupManager setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Resource policies for this managed instance group. + * @return value or {@code null} for none + */ + public InstanceGroupManagerResourcePolicies getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies for this managed instance group. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePolicies resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * Output only. The URL for this managed instance group. The server defines this URL. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. The URL for this managed instance group. The server defines this URL. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceGroupManager setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Standby policy for stopped and suspended instances. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStandbyPolicy getStandbyPolicy() { + return standbyPolicy; + } + + /** + * Standby policy for stopped and suspended instances. + * @param standbyPolicy standbyPolicy or {@code null} for none + */ + public InstanceGroupManager setStandbyPolicy(InstanceGroupManagerStandbyPolicy standbyPolicy) { + this.standbyPolicy = standbyPolicy; + return this; + } + + /** + * Stateful configuration for this Instanced Group Manager + * @return value or {@code null} for none + */ + public StatefulPolicy getStatefulPolicy() { + return statefulPolicy; + } + + /** + * Stateful configuration for this Instanced Group Manager + * @param statefulPolicy statefulPolicy or {@code null} for none + */ + public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { + this.statefulPolicy = statefulPolicy; + return this; + } + + /** + * Output only. The status of this managed instance group. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatus getStatus() { + return status; + } + + /** + * Output only. The status of this managed instance group. + * @param status status or {@code null} for none + */ + public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { + this.status = status; + return this; + } + + /** + * The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. + * The target pools automatically apply to all of the instances in the managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getTargetPools() { + return targetPools; + } + + /** + * The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. + * The target pools automatically apply to all of the instances in the managed instance group. + * @param targetPools targetPools or {@code null} for none + */ + public InstanceGroupManager setTargetPools(java.util.List targetPools) { + this.targetPools = targetPools; + return this; + } + + /** + * The target number of running instances for this managed instance group. You can reduce this + * number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing + * the group also changes this number. + * @return value or {@code null} for none + */ + public java.lang.Integer getTargetSize() { + return targetSize; + } + + /** + * The target number of running instances for this managed instance group. You can reduce this + * number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing + * the group also changes this number. + * @param targetSize targetSize or {@code null} for none + */ + public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) { + this.targetSize = targetSize; + return this; + } + + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * @return value or {@code null} for none + */ + public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy() { + return targetSizePolicy; + } + + /** + * The policy that specifies how the MIG creates its VMs to achieve the target size. + * @param targetSizePolicy targetSizePolicy or {@code null} for none + */ + public InstanceGroupManager setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy targetSizePolicy) { + this.targetSizePolicy = targetSizePolicy; + return this; + } + + /** + * The target number of stopped instances for this managed instance group. This number changes + * when you: - Stop instance using the stopInstances method or start instances using + * the startInstances method. - Manually change the targetStoppedSize using the update + * method. + * @return value or {@code null} for none + */ + public java.lang.Integer getTargetStoppedSize() { + return targetStoppedSize; + } + + /** + * The target number of stopped instances for this managed instance group. This number changes + * when you: - Stop instance using the stopInstances method or start instances using + * the startInstances method. - Manually change the targetStoppedSize using the update + * method. + * @param targetStoppedSize targetStoppedSize or {@code null} for none + */ + public InstanceGroupManager setTargetStoppedSize(java.lang.Integer targetStoppedSize) { + this.targetStoppedSize = targetStoppedSize; + return this; + } + + /** + * The target number of suspended instances for this managed instance group. This number changes + * when you: - Suspend instance using the suspendInstances method or resume instances + * using the resumeInstances method. - Manually change the targetSuspendedSize using the + * update method. + * @return value or {@code null} for none + */ + public java.lang.Integer getTargetSuspendedSize() { + return targetSuspendedSize; + } + + /** + * The target number of suspended instances for this managed instance group. This number changes + * when you: - Suspend instance using the suspendInstances method or resume instances + * using the resumeInstances method. - Manually change the targetSuspendedSize using the + * update method. + * @param targetSuspendedSize targetSuspendedSize or {@code null} for none + */ + public InstanceGroupManager setTargetSuspendedSize(java.lang.Integer targetSuspendedSize) { + this.targetSuspendedSize = targetSuspendedSize; + return this; + } + + /** + * The update policy for this managed instance group. + * @return value or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy getUpdatePolicy() { + return updatePolicy; + } + + /** + * The update policy for this managed instance group. + * @param updatePolicy updatePolicy or {@code null} for none + */ + public InstanceGroupManager setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy) { + this.updatePolicy = updatePolicy; + return this; + } + + /** + * Specifies the instance templates used by this managed instance group to create instances. + * + * Each version is defined by an instanceTemplate and aname. Every version can appear at most once + * per instance group. This field overrides the top-level instanceTemplate field. Read more about + * therelationships between these fields. Exactly one version must leave thetargetSize field + * unset. That version will be applied to all remaining instances. For more information, read + * aboutcanary updates. + * @return value or {@code null} for none + */ + public java.util.List getVersions() { + return versions; + } + + /** + * Specifies the instance templates used by this managed instance group to create instances. + * + * Each version is defined by an instanceTemplate and aname. Every version can appear at most once + * per instance group. This field overrides the top-level instanceTemplate field. Read more about + * therelationships between these fields. Exactly one version must leave thetargetSize field + * unset. That version will be applied to all remaining instances. For more information, read + * aboutcanary updates. + * @param versions versions or {@code null} for none + */ + public InstanceGroupManager setVersions(java.util.List versions) { + this.versions = versions; + return this; + } + + /** + * Output only. The URL of azone where the managed instance group is located (for zonal + * resources). + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. The URL of azone where the managed instance group is located (for zonal + * resources). + * @param zone zone or {@code null} for none + */ + public InstanceGroupManager setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InstanceGroupManager set(String fieldName, Object value) { + return (InstanceGroupManager) super.set(fieldName, value); + } + + @Override + public InstanceGroupManager clone() { + return (InstanceGroupManager) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java new file mode 100644 index 00000000000..49b1930b8d0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java @@ -0,0 +1,420 @@ +/* + * 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 InstanceGroupManagerActionsSummary. + * + *

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 InstanceGroupManagerActionsSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The total number of instances in the managed instance group that are scheduled to + * be abandoned. Abandoning an instance removes it from the managed instance group without + * deleting it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer abandoning; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * created or are currently being created. If the group fails to create any of these instances, it + * tries again until it creates the instance successfully. + * + * If you have disabled creation retries, this field will not be populated; instead, the + * creatingWithoutRetries field will be populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer creating; + + /** + * Output only. The number of instances that the managed instance group will attempt to create. + * The group attempts to create each instance only once. If the group fails to create any of these + * instances, it decreases the group's targetSize value accordingly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer creatingWithoutRetries; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * deleted or are currently being deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deleting; + + /** + * Output only. The number of instances in the managed instance group that are running and have no + * scheduled actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer none; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * recreated or are currently being being recreated. Recreating an instance deletes the existing + * root persistent disk and creates a new disk from the image that is defined in the instance + * template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer recreating; + + /** + * Output only. The number of instances in the managed instance group that are being reconfigured + * with properties that do not require a restart or a recreate action. For example, setting or + * removing target pools for the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer refreshing; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * restarted or are currently being restarted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer restarting; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * resumed or are currently being resumed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer resuming; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * started or are currently being started. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer starting; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * stopped or are currently being stopped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stopping; + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * suspended or are currently being suspended. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer suspending; + + /** + * Output only. The number of instances in the managed instance group that are being verified. See + * the managedInstances[].currentAction property in the listManagedInstances method documentation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer verifying; + + /** + * Output only. The total number of instances in the managed instance group that are scheduled to + * be abandoned. Abandoning an instance removes it from the managed instance group without + * deleting it. + * @return value or {@code null} for none + */ + public java.lang.Integer getAbandoning() { + return abandoning; + } + + /** + * Output only. The total number of instances in the managed instance group that are scheduled to + * be abandoned. Abandoning an instance removes it from the managed instance group without + * deleting it. + * @param abandoning abandoning or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setAbandoning(java.lang.Integer abandoning) { + this.abandoning = abandoning; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * created or are currently being created. If the group fails to create any of these instances, it + * tries again until it creates the instance successfully. + * + * If you have disabled creation retries, this field will not be populated; instead, the + * creatingWithoutRetries field will be populated. + * @return value or {@code null} for none + */ + public java.lang.Integer getCreating() { + return creating; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * created or are currently being created. If the group fails to create any of these instances, it + * tries again until it creates the instance successfully. + * + * If you have disabled creation retries, this field will not be populated; instead, the + * creatingWithoutRetries field will be populated. + * @param creating creating or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setCreating(java.lang.Integer creating) { + this.creating = creating; + return this; + } + + /** + * Output only. The number of instances that the managed instance group will attempt to create. + * The group attempts to create each instance only once. If the group fails to create any of these + * instances, it decreases the group's targetSize value accordingly. + * @return value or {@code null} for none + */ + public java.lang.Integer getCreatingWithoutRetries() { + return creatingWithoutRetries; + } + + /** + * Output only. The number of instances that the managed instance group will attempt to create. + * The group attempts to create each instance only once. If the group fails to create any of these + * instances, it decreases the group's targetSize value accordingly. + * @param creatingWithoutRetries creatingWithoutRetries or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setCreatingWithoutRetries(java.lang.Integer creatingWithoutRetries) { + this.creatingWithoutRetries = creatingWithoutRetries; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * deleted or are currently being deleted. + * @return value or {@code null} for none + */ + public java.lang.Integer getDeleting() { + return deleting; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * deleted or are currently being deleted. + * @param deleting deleting or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setDeleting(java.lang.Integer deleting) { + this.deleting = deleting; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are running and have no + * scheduled actions. + * @return value or {@code null} for none + */ + public java.lang.Integer getNone() { + return none; + } + + /** + * Output only. The number of instances in the managed instance group that are running and have no + * scheduled actions. + * @param none none or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setNone(java.lang.Integer none) { + this.none = none; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * recreated or are currently being being recreated. Recreating an instance deletes the existing + * root persistent disk and creates a new disk from the image that is defined in the instance + * template. + * @return value or {@code null} for none + */ + public java.lang.Integer getRecreating() { + return recreating; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * recreated or are currently being being recreated. Recreating an instance deletes the existing + * root persistent disk and creates a new disk from the image that is defined in the instance + * template. + * @param recreating recreating or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setRecreating(java.lang.Integer recreating) { + this.recreating = recreating; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are being reconfigured + * with properties that do not require a restart or a recreate action. For example, setting or + * removing target pools for the instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getRefreshing() { + return refreshing; + } + + /** + * Output only. The number of instances in the managed instance group that are being reconfigured + * with properties that do not require a restart or a recreate action. For example, setting or + * removing target pools for the instance. + * @param refreshing refreshing or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setRefreshing(java.lang.Integer refreshing) { + this.refreshing = refreshing; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * restarted or are currently being restarted. + * @return value or {@code null} for none + */ + public java.lang.Integer getRestarting() { + return restarting; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * restarted or are currently being restarted. + * @param restarting restarting or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setRestarting(java.lang.Integer restarting) { + this.restarting = restarting; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * resumed or are currently being resumed. + * @return value or {@code null} for none + */ + public java.lang.Integer getResuming() { + return resuming; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * resumed or are currently being resumed. + * @param resuming resuming or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setResuming(java.lang.Integer resuming) { + this.resuming = resuming; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * started or are currently being started. + * @return value or {@code null} for none + */ + public java.lang.Integer getStarting() { + return starting; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * started or are currently being started. + * @param starting starting or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setStarting(java.lang.Integer starting) { + this.starting = starting; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * stopped or are currently being stopped. + * @return value or {@code null} for none + */ + public java.lang.Integer getStopping() { + return stopping; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * stopped or are currently being stopped. + * @param stopping stopping or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setStopping(java.lang.Integer stopping) { + this.stopping = stopping; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * suspended or are currently being suspended. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuspending() { + return suspending; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * suspended or are currently being suspended. + * @param suspending suspending or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setSuspending(java.lang.Integer suspending) { + this.suspending = suspending; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that are being verified. See + * the managedInstances[].currentAction property in the listManagedInstances method documentation. + * @return value or {@code null} for none + */ + public java.lang.Integer getVerifying() { + return verifying; + } + + /** + * Output only. The number of instances in the managed instance group that are being verified. See + * the managedInstances[].currentAction property in the listManagedInstances method documentation. + * @param verifying verifying or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setVerifying(java.lang.Integer verifying) { + this.verifying = verifying; + return this; + } + + @Override + public InstanceGroupManagerActionsSummary set(String fieldName, Object value) { + return (InstanceGroupManagerActionsSummary) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerActionsSummary clone() { + return (InstanceGroupManagerActionsSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAggregatedList.java new file mode 100644 index 00000000000..40b7e2aebb0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 InstanceGroupManagerAggregatedList. + * + *

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 InstanceGroupManagerAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 InstanceGroupManagersScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for + * an aggregated list of managed instance groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * 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. 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; + + /** + * 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 InstanceGroupManagerAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceGroupManagersScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of InstanceGroupManagersScopedList resources. + * @param items items or {@code null} for none + */ + public InstanceGroupManagerAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for + * an aggregated list of managed instance groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for + * an aggregated list of managed instance groups. + * @param kind kind or {@code null} for none + */ + public InstanceGroupManagerAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupManagerAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceGroupManagerAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public InstanceGroupManagerAggregatedList 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 InstanceGroupManagerAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupManagerAggregatedList set(String fieldName, Object value) { + return (InstanceGroupManagerAggregatedList) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerAggregatedList clone() { + return (InstanceGroupManagerAggregatedList) 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 InstanceGroupManagerAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAllInstancesConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAllInstancesConfig.java new file mode 100644 index 00000000000..12cb931f8d7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAllInstancesConfig.java @@ -0,0 +1,84 @@ +/* + * 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 InstanceGroupManagerAllInstancesConfig. + * + *

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 InstanceGroupManagerAllInstancesConfig extends com.google.api.client.json.GenericJson { + + /** + * Properties to set on all instances in the group. + * + * You can add or modify properties using theinstanceGroupManagers.patch + * orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must + * update the group's instances to apply the configuration. To apply the configuration, set the + * group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances + * method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstancePropertiesPatch properties; + + /** + * Properties to set on all instances in the group. + * + * You can add or modify properties using theinstanceGroupManagers.patch + * orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must + * update the group's instances to apply the configuration. To apply the configuration, set the + * group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances + * method. + * @return value or {@code null} for none + */ + public InstancePropertiesPatch getProperties() { + return properties; + } + + /** + * Properties to set on all instances in the group. + * + * You can add or modify properties using theinstanceGroupManagers.patch + * orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must + * update the group's instances to apply the configuration. To apply the configuration, set the + * group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances + * method. + * @param properties properties or {@code null} for none + */ + public InstanceGroupManagerAllInstancesConfig setProperties(InstancePropertiesPatch properties) { + this.properties = properties; + return this; + } + + @Override + public InstanceGroupManagerAllInstancesConfig set(String fieldName, Object value) { + return (InstanceGroupManagerAllInstancesConfig) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerAllInstancesConfig clone() { + return (InstanceGroupManagerAllInstancesConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAutoHealingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAutoHealingPolicy.java new file mode 100644 index 00000000000..883770c7c1d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerAutoHealingPolicy.java @@ -0,0 +1,105 @@ +/* + * 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 InstanceGroupManagerAutoHealingPolicy. + * + *

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 InstanceGroupManagerAutoHealingPolicy extends com.google.api.client.json.GenericJson { + + /** + * The URL for the health check that signals autohealing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** + * The initial delay is the number of seconds that a new VM takes to initialize and run its + * startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks + * because the VM might be in the startup process. This prevents the MIG from prematurely + * recreating a VM. If the health check receives a healthy response during the initial delay, it + * indicates that the startup process is complete and the VM is ready. The value of initial delay + * must be between 0 and 3600 seconds. The default value is 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer initialDelaySec; + + /** + * The URL for the health check that signals autohealing. + * @return value or {@code null} for none + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** + * The URL for the health check that signals autohealing. + * @param healthCheck healthCheck or {@code null} for none + */ + public InstanceGroupManagerAutoHealingPolicy setHealthCheck(java.lang.String healthCheck) { + this.healthCheck = healthCheck; + return this; + } + + /** + * The initial delay is the number of seconds that a new VM takes to initialize and run its + * startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks + * because the VM might be in the startup process. This prevents the MIG from prematurely + * recreating a VM. If the health check receives a healthy response during the initial delay, it + * indicates that the startup process is complete and the VM is ready. The value of initial delay + * must be between 0 and 3600 seconds. The default value is 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getInitialDelaySec() { + return initialDelaySec; + } + + /** + * The initial delay is the number of seconds that a new VM takes to initialize and run its + * startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks + * because the VM might be in the startup process. This prevents the MIG from prematurely + * recreating a VM. If the health check receives a healthy response during the initial delay, it + * indicates that the startup process is complete and the VM is ready. The value of initial delay + * must be between 0 and 3600 seconds. The default value is 0. + * @param initialDelaySec initialDelaySec or {@code null} for none + */ + public InstanceGroupManagerAutoHealingPolicy setInitialDelaySec(java.lang.Integer initialDelaySec) { + this.initialDelaySec = initialDelaySec; + return this; + } + + @Override + public InstanceGroupManagerAutoHealingPolicy set(String fieldName, Object value) { + return (InstanceGroupManagerAutoHealingPolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerAutoHealingPolicy clone() { + return (InstanceGroupManagerAutoHealingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java new file mode 100644 index 00000000000..69c6c6c1d68 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.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; + +/** + * Model definition for InstanceGroupManagerInstanceFlexibilityPolicy. + * + *

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 InstanceGroupManagerInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + + /** + * Named instance selections configuring properties that the group will use when creating new VMs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map instanceSelections; + + /** + * Named instance selections configuring properties that the group will use when creating new VMs. + * @return value or {@code null} for none + */ + public java.util.Map getInstanceSelections() { + return instanceSelections; + } + + /** + * Named instance selections configuring properties that the group will use when creating new VMs. + * @param instanceSelections instanceSelections or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { + this.instanceSelections = instanceSelections; + return this; + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicy set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceFlexibilityPolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicy clone() { + return (InstanceGroupManagerInstanceFlexibilityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..d8fe4fc5d69 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,153 @@ +/* + * 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 InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. + * + *

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 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}. + */ + @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 + * availability. Machine types and instance selections with the same rank have the same + * preference. + * The value may be {@code null}. + */ + @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 + */ + public java.util.List getMachineTypes() { + return machineTypes; + } + + /** + * Full machine-type names, e.g. "n1-standard-16". + * @param machineTypes machineTypes or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { + this.machineTypes = machineTypes; + 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 + * availability. Machine types and instance selections with the same rank have the same + * preference. + * @return value or {@code null} for none + */ + public java.lang.Integer getRank() { + return rank; + } + + /** + * 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 + * availability. Machine types and instance selections with the same rank have the same + * preference. + * @param rank rank or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setRank(java.lang.Integer rank) { + this.rank = rank; + return this; + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection clone() { + return (InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java new file mode 100644 index 00000000000..5aba0671c09 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java @@ -0,0 +1,183 @@ +/* + * 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 InstanceGroupManagerInstanceLifecyclePolicy. + * + *

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 InstanceGroupManagerInstanceLifecyclePolicy extends com.google.api.client.json.GenericJson { + + /** + * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is + * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultActionOnFailure; + + /** + * A bit indicating whether to forcefully apply the group's latest configuration when repairing a + * VM. Valid options are: + * + * - NO (default): If configuration updates are available, they are not + * forcefully applied during repair. Instead, configuration updates are applied according to + * the group's update policy. - YES: If configuration updates are available, they are + * applied during repair. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forceUpdateOnRepair; + + /** + * The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the + * application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION + * (default): MIG uses the same action configured for + * instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an + * unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For + * more information, see About repairing VMs in a MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String onFailedHealthCheck; + + /** + * Configuration for VM repairs in the MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerInstanceLifecyclePolicyOnRepair onRepair; + + /** + * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is + * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultActionOnFailure() { + return defaultActionOnFailure; + } + + /** + * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is + * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. + * @param defaultActionOnFailure defaultActionOnFailure or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicy setDefaultActionOnFailure(java.lang.String defaultActionOnFailure) { + this.defaultActionOnFailure = defaultActionOnFailure; + return this; + } + + /** + * A bit indicating whether to forcefully apply the group's latest configuration when repairing a + * VM. Valid options are: + * + * - NO (default): If configuration updates are available, they are not + * forcefully applied during repair. Instead, configuration updates are applied according to + * the group's update policy. - YES: If configuration updates are available, they are + * applied during repair. + * @return value or {@code null} for none + */ + public java.lang.String getForceUpdateOnRepair() { + return forceUpdateOnRepair; + } + + /** + * A bit indicating whether to forcefully apply the group's latest configuration when repairing a + * VM. Valid options are: + * + * - NO (default): If configuration updates are available, they are not + * forcefully applied during repair. Instead, configuration updates are applied according to + * the group's update policy. - YES: If configuration updates are available, they are + * applied during repair. + * @param forceUpdateOnRepair forceUpdateOnRepair or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicy setForceUpdateOnRepair(java.lang.String forceUpdateOnRepair) { + this.forceUpdateOnRepair = forceUpdateOnRepair; + return this; + } + + /** + * The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the + * application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION + * (default): MIG uses the same action configured for + * instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an + * unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For + * more information, see About repairing VMs in a MIG. + * @return value or {@code null} for none + */ + public java.lang.String getOnFailedHealthCheck() { + return onFailedHealthCheck; + } + + /** + * The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the + * application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION + * (default): MIG uses the same action configured for + * instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an + * unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For + * more information, see About repairing VMs in a MIG. + * @param onFailedHealthCheck onFailedHealthCheck or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicy setOnFailedHealthCheck(java.lang.String onFailedHealthCheck) { + this.onFailedHealthCheck = onFailedHealthCheck; + return this; + } + + /** + * Configuration for VM repairs in the MIG. + * @return value or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair getOnRepair() { + return onRepair; + } + + /** + * Configuration for VM repairs in the MIG. + * @param onRepair onRepair or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicy setOnRepair(InstanceGroupManagerInstanceLifecyclePolicyOnRepair onRepair) { + this.onRepair = onRepair; + return this; + } + + @Override + public InstanceGroupManagerInstanceLifecyclePolicy set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceLifecyclePolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceLifecyclePolicy clone() { + return (InstanceGroupManagerInstanceLifecyclePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java new file mode 100644 index 00000000000..1912fec4bb3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * Configuration for VM repairs in the MIG. + * + *

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 InstanceGroupManagerInstanceLifecyclePolicyOnRepair extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO + * (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a + * different zone for the VM during a repair. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowChangingZone; + + /** + * Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO + * (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a + * different zone for the VM during a repair. + * @return value or {@code null} for none + */ + public java.lang.String getAllowChangingZone() { + return allowChangingZone; + } + + /** + * Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO + * (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a + * different zone for the VM during a repair. + * @param allowChangingZone allowChangingZone or {@code null} for none + */ + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair setAllowChangingZone(java.lang.String allowChangingZone) { + this.allowChangingZone = allowChangingZone; + return this; + } + + @Override + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceLifecyclePolicyOnRepair) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceLifecyclePolicyOnRepair clone() { + return (InstanceGroupManagerInstanceLifecyclePolicyOnRepair) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerList.java new file mode 100644 index 00000000000..bc949153d63 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] A list of managed instance groups. + * + *

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 InstanceGroupManagerList extends com.google.api.client.json.GenericJson { + + /** + * 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 InstanceGroupManager 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 InstanceGroupManager 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(InstanceGroupManager.class); + } + + /** + * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of + * managed instance groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * 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. Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * 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 InstanceGroupManagerList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceGroupManager resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceGroupManager resources. + * @param items items or {@code null} for none + */ + public InstanceGroupManagerList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of + * managed instance groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of + * managed instance groups. + * @param kind kind or {@code null} for none + */ + public InstanceGroupManagerList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstanceGroupManagerList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupManagerList set(String fieldName, Object value) { + return (InstanceGroupManagerList) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerList clone() { + return (InstanceGroupManagerList) 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 InstanceGroupManagerListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java new file mode 100644 index 00000000000..9417321119b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -0,0 +1,402 @@ +/* + * 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; + +/** + * InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either + * immediately or by queuing the request for the specified time. This resize request is nested under + * InstanceGroupManager and the VMs created by this request are added to the owning + * InstanceGroupManager. + * + *

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 InstanceGroupManagerResizeRequest extends com.google.api.client.json.GenericJson { + + /** + * Output only. The creation timestamp for this resize request inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * 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. A unique identifier for this resource type. The server generates this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The names of instances to be created by this resize request. The number of names specified + * determines the number of instances to create. The group's target size will be increased by this + * number. This field cannot be used together with 'resize_by'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for + * resize requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The URL of a region where the resize request is located. Populated only for + * regional resize requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Requested run duration for instances that will be created by this request. At the end of the + * run duration instance will be deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration requestedRunDuration; + + /** + * The number of instances to be created by this resize request. The group's target size will be + * increased by this number. This field cannot be used together with 'instances'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer resizeBy; + + /** + * Output only. The URL for this resize request. The server defines this URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. Current state of the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Status of the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerResizeRequestStatus status; + + /** + * Output only. The URL of a zone where the resize request is located. Populated only for zonal + * resize requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. The creation timestamp for this resize request inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. The creation timestamp for this resize request inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. A unique identifier for this resource type. The server generates this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. A unique identifier for this resource type. The server generates this identifier. + * @param id id or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * The names of instances to be created by this resize request. The number of names specified + * determines the number of instances to create. The group's target size will be increased by this + * number. This field cannot be used together with 'resize_by'. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The names of instances to be created by this resize request. The number of names specified + * determines the number of instances to create. The group's target size will be increased by this + * number. This field cannot be used together with 'resize_by'. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for + * resize requests. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for + * resize requests. + * @param kind kind or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. + * @param name name or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The URL of a region where the resize request is located. Populated only for + * regional resize requests. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. The URL of a region where the resize request is located. Populated only for + * regional resize requests. + * @param region region or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Requested run duration for instances that will be created by this request. At the end of the + * run duration instance will be deleted. + * @return value or {@code null} for none + */ + public Duration getRequestedRunDuration() { + return requestedRunDuration; + } + + /** + * Requested run duration for instances that will be created by this request. At the end of the + * run duration instance will be deleted. + * @param requestedRunDuration requestedRunDuration or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setRequestedRunDuration(Duration requestedRunDuration) { + this.requestedRunDuration = requestedRunDuration; + return this; + } + + /** + * The number of instances to be created by this resize request. The group's target size will be + * increased by this number. This field cannot be used together with 'instances'. + * @return value or {@code null} for none + */ + public java.lang.Integer getResizeBy() { + return resizeBy; + } + + /** + * The number of instances to be created by this resize request. The group's target size will be + * increased by this number. This field cannot be used together with 'instances'. + * @param resizeBy resizeBy or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setResizeBy(java.lang.Integer resizeBy) { + this.resizeBy = resizeBy; + return this; + } + + /** + * Output only. The URL for this resize request. The server defines this URL. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. The URL for this resize request. The server defines this URL. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. Current state of the request. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. Current state of the request. + * @param state state or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Status of the request. + * @return value or {@code null} for none + */ + public InstanceGroupManagerResizeRequestStatus getStatus() { + return status; + } + + /** + * Output only. Status of the request. + * @param status status or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setStatus(InstanceGroupManagerResizeRequestStatus status) { + this.status = status; + return this; + } + + /** + * Output only. The URL of a zone where the resize request is located. Populated only for zonal + * resize requests. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. The URL of a zone where the resize request is located. Populated only for zonal + * resize requests. + * @param zone zone or {@code null} for none + */ + public InstanceGroupManagerResizeRequest setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InstanceGroupManagerResizeRequest set(String fieldName, Object value) { + return (InstanceGroupManagerResizeRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerResizeRequest clone() { + return (InstanceGroupManagerResizeRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java new file mode 100644 index 00000000000..062cee066df --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java @@ -0,0 +1,403 @@ +/* + * 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 InstanceGroupManagerResizeRequestStatus. + * + *

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 InstanceGroupManagerResizeRequestStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Fatal errors encountered during the queueing or provisioning phases of the + * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt + * errors, this field is final and errors are never removed from here, as the ResizeRequest is not + * going to retry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. Information about the last attempt to fulfill the request. The value is temporary + * since the ResizeRequest can retry, as long as it's still active and the last attempt value can + * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, + * the value may be stale and no longer show an active problem. The value is cleared when + * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED + * the error describing it will be stored in the "error" field only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt; + + /** + * Output only. Fatal errors encountered during the queueing or provisioning phases of the + * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt + * errors, this field is final and errors are never removed from here, as the ResizeRequest is not + * going to retry. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. Fatal errors encountered during the queueing or provisioning phases of the + * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt + * errors, this field is final and errors are never removed from here, as the ResizeRequest is not + * going to retry. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerResizeRequestStatus setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. Information about the last attempt to fulfill the request. The value is temporary + * since the ResizeRequest can retry, as long as it's still active and the last attempt value can + * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, + * the value may be stale and no longer show an active problem. The value is cleared when + * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED + * the error describing it will be stored in the "error" field only. + * @return value or {@code null} for none + */ + public InstanceGroupManagerResizeRequestStatusLastAttempt getLastAttempt() { + return lastAttempt; + } + + /** + * Output only. Information about the last attempt to fulfill the request. The value is temporary + * since the ResizeRequest can retry, as long as it's still active and the last attempt value can + * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, + * the value may be stale and no longer show an active problem. The value is cleared when + * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED + * the error describing it will be stored in the "error" field only. + * @param lastAttempt lastAttempt or {@code null} for none + */ + public InstanceGroupManagerResizeRequestStatus setLastAttempt(InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt) { + this.lastAttempt = lastAttempt; + return this; + } + + @Override + public InstanceGroupManagerResizeRequestStatus set(String fieldName, Object value) { + return (InstanceGroupManagerResizeRequestStatus) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerResizeRequestStatus clone() { + return (InstanceGroupManagerResizeRequestStatus) super.clone(); + } + + /** + * Output only. Fatal errors encountered during the queueing or provisioning phases of the + * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt + * errors, this field is final and errors are never removed from here, as the ResizeRequest is not + * going to retry. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java new file mode 100644 index 00000000000..d017ca8925b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java @@ -0,0 +1,352 @@ +/* + * 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 InstanceGroupManagerResizeRequestStatusLastAttempt. + * + *

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 InstanceGroupManagerResizeRequestStatusLastAttempt extends com.google.api.client.json.GenericJson { + + /** + * Output only. Errors that prevented the ResizeRequest to be fulfilled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. Errors that prevented the ResizeRequest to be fulfilled. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. Errors that prevented the ResizeRequest to be fulfilled. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerResizeRequestStatusLastAttempt setError(Error error) { + this.error = error; + return this; + } + + @Override + public InstanceGroupManagerResizeRequestStatusLastAttempt set(String fieldName, Object value) { + return (InstanceGroupManagerResizeRequestStatusLastAttempt) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerResizeRequestStatusLastAttempt clone() { + return (InstanceGroupManagerResizeRequestStatusLastAttempt) super.clone(); + } + + /** + * Output only. Errors that prevented the ResizeRequest to be fulfilled. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java new file mode 100644 index 00000000000..5ce2bdb9c70 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] A list of resize requests. + * + *

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 InstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 resize request 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 InstanceGroupManagerResizeRequest 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(InstanceGroupManagerResizeRequest.class); + } + + /** + * Output only. Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a + * list of resize requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use thenextPageToken as a value for the query + * parameterpageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * 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. Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * 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 InstanceGroupManagerResizeRequestsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of resize request resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of resize request resources. + * @param items items or {@code null} for none + */ + public InstanceGroupManagerResizeRequestsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a + * list of resize requests. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a + * list of resize requests. + * @param kind kind or {@code null} for none + */ + public InstanceGroupManagerResizeRequestsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use thenextPageToken as a value for the query + * parameterpageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults, use thenextPageToken as a value for the query + * parameterpageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupManagerResizeRequestsListResponse set(String fieldName, Object value) { + return (InstanceGroupManagerResizeRequestsListResponse) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerResizeRequestsListResponse clone() { + return (InstanceGroupManagerResizeRequestsListResponse) 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 InstanceGroupManagerResizeRequestsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResourcePolicies.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResourcePolicies.java new file mode 100644 index 00000000000..f6337ef2182 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResourcePolicies.java @@ -0,0 +1,78 @@ +/* + * 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 InstanceGroupManagerResourcePolicies. + * + *

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 InstanceGroupManagerResourcePolicies extends com.google.api.client.json.GenericJson { + + /** + * The URL of the workload policy that is specified for this managed instance group. It can be a + * full or partial URL. For example, the following are all valid URLs to a workload policy: + * - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resour + * cePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadPolicy; + + /** + * The URL of the workload policy that is specified for this managed instance group. It can be a + * full or partial URL. For example, the following are all valid URLs to a workload policy: + * - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resour + * cePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadPolicy() { + return workloadPolicy; + } + + /** + * The URL of the workload policy that is specified for this managed instance group. It can be a + * full or partial URL. For example, the following are all valid URLs to a workload policy: + * - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resour + * cePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - + * regions/region/resourcePolicies/resourcePolicy + * @param workloadPolicy workloadPolicy or {@code null} for none + */ + public InstanceGroupManagerResourcePolicies setWorkloadPolicy(java.lang.String workloadPolicy) { + this.workloadPolicy = workloadPolicy; + return this; + } + + @Override + public InstanceGroupManagerResourcePolicies set(String fieldName, Object value) { + return (InstanceGroupManagerResourcePolicies) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerResourcePolicies clone() { + return (InstanceGroupManagerResourcePolicies) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStandbyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStandbyPolicy.java new file mode 100644 index 00000000000..f1b00dd5f70 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStandbyPolicy.java @@ -0,0 +1,102 @@ +/* + * 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 InstanceGroupManagerStandbyPolicy. + * + *

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 InstanceGroupManagerStandbyPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM + * was created. The initial delay gives the initialization script the time to prepare your VM for + * a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default + * value is 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer initialDelaySec; + + /** + * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The + * default mode is `MANUAL`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM + * was created. The initial delay gives the initialization script the time to prepare your VM for + * a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default + * value is 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getInitialDelaySec() { + return initialDelaySec; + } + + /** + * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM + * was created. The initial delay gives the initialization script the time to prepare your VM for + * a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default + * value is 0. + * @param initialDelaySec initialDelaySec or {@code null} for none + */ + public InstanceGroupManagerStandbyPolicy setInitialDelaySec(java.lang.Integer initialDelaySec) { + this.initialDelaySec = initialDelaySec; + return this; + } + + /** + * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The + * default mode is `MANUAL`. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The + * default mode is `MANUAL`. + * @param mode mode or {@code null} for none + */ + public InstanceGroupManagerStandbyPolicy setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public InstanceGroupManagerStandbyPolicy set(String fieldName, Object value) { + return (InstanceGroupManagerStandbyPolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStandbyPolicy clone() { + return (InstanceGroupManagerStandbyPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java new file mode 100644 index 00000000000..33e814e7450 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatus.java @@ -0,0 +1,255 @@ +/* + * 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 InstanceGroupManagerStatus. + * + *

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 InstanceGroupManagerStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Status of all-instances configuration on the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig; + + /** + * Output only. The accelerator topology applied to this MIG. Currently only one accelerator + * topology is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List appliedAcceleratorTopologies; + + /** + * Output only. The URL of theAutoscaler that targets this instance group manager. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoscaler; + + /** + * Output only. The status of bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation; + + /** + * Output only. The list of instance statuses and the number of instances in this managed instance + * group that have the status. Currently only shown for TPU MIGs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusInstanceStatusSummary currentInstanceStatuses; + + /** + * Output only. A bit indicating whether the managed instance group is in a stable state. A stable + * state means that: none of the instances in the managed instance group is currently undergoing + * any type of change (for example, creation, restart, or deletion); no future changes are + * scheduled for instances in the managed instance group; and the managed instance group itself is + * not being modified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isStable; + + /** + * Output only. Stateful status of the given Instance Group Manager. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusStateful stateful; + + /** + * Output only. A status of consistency of Instances' versions with their target version specified + * by version field on Instance Group Manager. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusVersionTarget versionTarget; + + /** + * Output only. Status of all-instances configuration on the group. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { + return allInstancesConfig; + } + + /** + * Output only. Status of all-instances configuration on the group. + * @param allInstancesConfig allInstancesConfig or {@code null} for none + */ + public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { + this.allInstancesConfig = allInstancesConfig; + return this; + } + + /** + * Output only. The accelerator topology applied to this MIG. Currently only one accelerator + * topology is supported. + * @return value or {@code null} for none + */ + public java.util.List getAppliedAcceleratorTopologies() { + return appliedAcceleratorTopologies; + } + + /** + * Output only. The accelerator topology applied to this MIG. Currently only one accelerator + * topology is supported. + * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none + */ + public InstanceGroupManagerStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { + this.appliedAcceleratorTopologies = appliedAcceleratorTopologies; + return this; + } + + /** + * Output only. The URL of theAutoscaler that targets this instance group manager. + * @return value or {@code null} for none + */ + public java.lang.String getAutoscaler() { + return autoscaler; + } + + /** + * Output only. The URL of theAutoscaler that targets this instance group manager. + * @param autoscaler autoscaler or {@code null} for none + */ + public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { + this.autoscaler = autoscaler; + return this; + } + + /** + * Output only. The status of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { + return bulkInstanceOperation; + } + + /** + * Output only. The status of bulk instance operation. + * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none + */ + public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { + this.bulkInstanceOperation = bulkInstanceOperation; + return this; + } + + /** + * Output only. The list of instance statuses and the number of instances in this managed instance + * group that have the status. Currently only shown for TPU MIGs + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary getCurrentInstanceStatuses() { + return currentInstanceStatuses; + } + + /** + * Output only. The list of instance statuses and the number of instances in this managed instance + * group that have the status. Currently only shown for TPU MIGs + * @param currentInstanceStatuses currentInstanceStatuses or {@code null} for none + */ + public InstanceGroupManagerStatus setCurrentInstanceStatuses(InstanceGroupManagerStatusInstanceStatusSummary currentInstanceStatuses) { + this.currentInstanceStatuses = currentInstanceStatuses; + return this; + } + + /** + * Output only. A bit indicating whether the managed instance group is in a stable state. A stable + * state means that: none of the instances in the managed instance group is currently undergoing + * any type of change (for example, creation, restart, or deletion); no future changes are + * scheduled for instances in the managed instance group; and the managed instance group itself is + * not being modified. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsStable() { + return isStable; + } + + /** + * Output only. A bit indicating whether the managed instance group is in a stable state. A stable + * state means that: none of the instances in the managed instance group is currently undergoing + * any type of change (for example, creation, restart, or deletion); no future changes are + * scheduled for instances in the managed instance group; and the managed instance group itself is + * not being modified. + * @param isStable isStable or {@code null} for none + */ + public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { + this.isStable = isStable; + return this; + } + + /** + * Output only. Stateful status of the given Instance Group Manager. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusStateful getStateful() { + return stateful; + } + + /** + * Output only. Stateful status of the given Instance Group Manager. + * @param stateful stateful or {@code null} for none + */ + public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { + this.stateful = stateful; + return this; + } + + /** + * Output only. A status of consistency of Instances' versions with their target version specified + * by version field on Instance Group Manager. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusVersionTarget getVersionTarget() { + return versionTarget; + } + + /** + * Output only. A status of consistency of Instances' versions with their target version specified + * by version field on Instance Group Manager. + * @param versionTarget versionTarget or {@code null} for none + */ + public InstanceGroupManagerStatus setVersionTarget(InstanceGroupManagerStatusVersionTarget versionTarget) { + this.versionTarget = versionTarget; + return this; + } + + @Override + public InstanceGroupManagerStatus set(String fieldName, Object value) { + return (InstanceGroupManagerStatus) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatus clone() { + return (InstanceGroupManagerStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java new file mode 100644 index 00000000000..28db8aa4a4e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java @@ -0,0 +1,117 @@ +/* + * 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 InstanceGroupManagerStatusAcceleratorTopology. + * + *

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 InstanceGroupManagerStatusAcceleratorTopology extends com.google.api.client.json.GenericJson { + + /** + * Output only. Topology in the format of: "16x16", "4x4x4", etc. The value is the same as + * configured in the WorkloadPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + + /** + * Output only. The state of the accelerator topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The result of the latest accelerator topology state check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails stateDetails; + + /** + * Output only. Topology in the format of: "16x16", "4x4x4", etc. The value is the same as + * configured in the WorkloadPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * Output only. Topology in the format of: "16x16", "4x4x4", etc. The value is the same as + * configured in the WorkloadPolicy. + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopology setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + + /** + * Output only. The state of the accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the accelerator topology. + * @param state state or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopology setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The result of the latest accelerator topology state check. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails getStateDetails() { + return stateDetails; + } + + /** + * Output only. The result of the latest accelerator topology state check. + * @param stateDetails stateDetails or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopology setStateDetails(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails stateDetails) { + this.stateDetails = stateDetails; + return this; + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopology set(String fieldName, Object value) { + return (InstanceGroupManagerStatusAcceleratorTopology) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopology clone() { + return (InstanceGroupManagerStatusAcceleratorTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java new file mode 100644 index 00000000000..9b50f530bb9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java @@ -0,0 +1,381 @@ +/* + * 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 + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * + *

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 InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. Timestamp is shown only if there is an error. The field has // RFC3339 // text + * format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. Encountered errors. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. Encountered errors. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. Timestamp is shown only if there is an error. The field has // RFC3339 // text + * format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. Timestamp is shown only if there is an error. The field has // RFC3339 // text + * format. + * @param timestamp timestamp or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails set(String fieldName, Object value) { + return (InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails clone() { + return (InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) super.clone(); + } + + /** + * Output only. Encountered errors. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java new file mode 100644 index 00000000000..e0c1c555b4a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -0,0 +1,96 @@ +/* + * 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 InstanceGroupManagerStatusAllInstancesConfig. + * + *

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 InstanceGroupManagerStatusAllInstancesConfig extends com.google.api.client.json.GenericJson { + + /** + * Output only. Current all-instances configuration revision. This value is in RFC3339 text + * format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentRevision; + + /** + * Output only. A bit indicating whether this configuration has been applied to all managed + * instances in the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean effective; + + /** + * Output only. Current all-instances configuration revision. This value is in RFC3339 text + * format. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentRevision() { + return currentRevision; + } + + /** + * Output only. Current all-instances configuration revision. This value is in RFC3339 text + * format. + * @param currentRevision currentRevision or {@code null} for none + */ + public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang.String currentRevision) { + this.currentRevision = currentRevision; + return this; + } + + /** + * Output only. A bit indicating whether this configuration has been applied to all managed + * instances in the group. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEffective() { + return effective; + } + + /** + * Output only. A bit indicating whether this configuration has been applied to all managed + * instances in the group. + * @param effective effective or {@code null} for none + */ + public InstanceGroupManagerStatusAllInstancesConfig setEffective(java.lang.Boolean effective) { + this.effective = effective; + return this; + } + + @Override + public InstanceGroupManagerStatusAllInstancesConfig set(String fieldName, Object value) { + return (InstanceGroupManagerStatusAllInstancesConfig) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusAllInstancesConfig clone() { + return (InstanceGroupManagerStatusAllInstancesConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java new file mode 100644 index 00000000000..4dac3caebb6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Bulk instance operation is the creation of VMs in a MIG when the targetSizePolicy.mode is set to + * BULK. + * + *

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 InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { + + /** + * Output only. Informs whether bulk instance operation is in progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean inProgress; + + /** + * Output only. Information from the last progress check of bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck; + + /** + * Output only. Informs whether bulk instance operation is in progress. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInProgress() { + return inProgress; + } + + /** + * Output only. Informs whether bulk instance operation is in progress. + * @param inProgress inProgress or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.Boolean inProgress) { + this.inProgress = inProgress; + return this; + } + + /** + * Output only. Information from the last progress check of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { + return lastProgressCheck; + } + + /** + * Output only. Information from the last progress check of bulk instance operation. + * @param lastProgressCheck lastProgressCheck or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation setLastProgressCheck(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck) { + this.lastProgressCheck = lastProgressCheck; + return this; + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperation set(String fieldName, Object value) { + return (InstanceGroupManagerStatusBulkInstanceOperation) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperation clone() { + return (InstanceGroupManagerStatusBulkInstanceOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java new file mode 100644 index 00000000000..f8e83b93417 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -0,0 +1,380 @@ +/* + * 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 InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * + *

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 InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { + + /** + * Output only. Errors encountered during bulk instance operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. Timestamp of the last progress check of bulk instance operation. Timestamp is in + * RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. Errors encountered during bulk instance operation. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. Errors encountered during bulk instance operation. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. Timestamp of the last progress check of bulk instance operation. Timestamp is in + * RFC3339 text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. Timestamp of the last progress check of bulk instance operation. Timestamp is in + * RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck set(String fieldName, Object value) { + return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() { + return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.clone(); + } + + /** + * Output only. Errors encountered during bulk instance operation. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java new file mode 100644 index 00000000000..34c0fcc68b1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java @@ -0,0 +1,380 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The list of instance statuses and the number of instances in this managed instance group that + * have the status. For more information about how to interpret each status check the instance + * lifecycle documentation. Currently only shown for TPU MIGs. + * + *

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 InstanceGroupManagerStatusInstanceStatusSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of instances in the managed instance group that have DEPROVISIONING + * status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deprovisioning; + + /** + * Output only. The number of instances that have not been created yet or have been deleted. + * Includes only instances that would be shown in the listManagedInstances method and not all + * instances that have been deleted in the lifetime of the MIG. Does not include FlexStart + * instances that are waiting for the resources availability, they are considered as 'pending'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nonExistent; + + /** + * Output only. The number of instances in the managed instance group that have PENDING status, + * that is FlexStart instances that are waiting for resources. Instances that do not exist because + * of the other reasons are counted as 'non_existent'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pending; + + /** + * Output only. The number of instances in the managed instance group that have PENDING_STOP + * status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pendingStop; + + /** + * Output only. The number of instances in the managed instance group that have PROVISIONING + * status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer provisioning; + + /** + * Output only. The number of instances in the managed instance group that have REPAIRING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer repairing; + + /** + * Output only. The number of instances in the managed instance group that have RUNNING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer running; + + /** + * Output only. The number of instances in the managed instance group that have STAGING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer staging; + + /** + * Output only. The number of instances in the managed instance group that have STOPPED status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stopped; + + /** + * Output only. The number of instances in the managed instance group that have STOPPING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer stopping; + + /** + * Output only. The number of instances in the managed instance group that have SUSPENDED status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer suspended; + + /** + * Output only. The number of instances in the managed instance group that have SUSPENDING status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer suspending; + + /** + * Output only. The number of instances in the managed instance group that have TERMINATED status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer terminated; + + /** + * Output only. The number of instances in the managed instance group that have DEPROVISIONING + * status. + * @return value or {@code null} for none + */ + public java.lang.Integer getDeprovisioning() { + return deprovisioning; + } + + /** + * Output only. The number of instances in the managed instance group that have DEPROVISIONING + * status. + * @param deprovisioning deprovisioning or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setDeprovisioning(java.lang.Integer deprovisioning) { + this.deprovisioning = deprovisioning; + return this; + } + + /** + * Output only. The number of instances that have not been created yet or have been deleted. + * Includes only instances that would be shown in the listManagedInstances method and not all + * instances that have been deleted in the lifetime of the MIG. Does not include FlexStart + * instances that are waiting for the resources availability, they are considered as 'pending'. + * @return value or {@code null} for none + */ + public java.lang.Integer getNonExistent() { + return nonExistent; + } + + /** + * Output only. The number of instances that have not been created yet or have been deleted. + * Includes only instances that would be shown in the listManagedInstances method and not all + * instances that have been deleted in the lifetime of the MIG. Does not include FlexStart + * instances that are waiting for the resources availability, they are considered as 'pending'. + * @param nonExistent nonExistent or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setNonExistent(java.lang.Integer nonExistent) { + this.nonExistent = nonExistent; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have PENDING status, + * that is FlexStart instances that are waiting for resources. Instances that do not exist because + * of the other reasons are counted as 'non_existent'. + * @return value or {@code null} for none + */ + public java.lang.Integer getPending() { + return pending; + } + + /** + * Output only. The number of instances in the managed instance group that have PENDING status, + * that is FlexStart instances that are waiting for resources. Instances that do not exist because + * of the other reasons are counted as 'non_existent'. + * @param pending pending or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setPending(java.lang.Integer pending) { + this.pending = pending; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have PENDING_STOP + * status. + * @return value or {@code null} for none + */ + public java.lang.Integer getPendingStop() { + return pendingStop; + } + + /** + * Output only. The number of instances in the managed instance group that have PENDING_STOP + * status. + * @param pendingStop pendingStop or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setPendingStop(java.lang.Integer pendingStop) { + this.pendingStop = pendingStop; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have PROVISIONING + * status. + * @return value or {@code null} for none + */ + public java.lang.Integer getProvisioning() { + return provisioning; + } + + /** + * Output only. The number of instances in the managed instance group that have PROVISIONING + * status. + * @param provisioning provisioning or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setProvisioning(java.lang.Integer provisioning) { + this.provisioning = provisioning; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have REPAIRING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getRepairing() { + return repairing; + } + + /** + * Output only. The number of instances in the managed instance group that have REPAIRING status. + * @param repairing repairing or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setRepairing(java.lang.Integer repairing) { + this.repairing = repairing; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have RUNNING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getRunning() { + return running; + } + + /** + * Output only. The number of instances in the managed instance group that have RUNNING status. + * @param running running or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setRunning(java.lang.Integer running) { + this.running = running; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have STAGING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getStaging() { + return staging; + } + + /** + * Output only. The number of instances in the managed instance group that have STAGING status. + * @param staging staging or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setStaging(java.lang.Integer staging) { + this.staging = staging; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have STOPPED status. + * @return value or {@code null} for none + */ + public java.lang.Integer getStopped() { + return stopped; + } + + /** + * Output only. The number of instances in the managed instance group that have STOPPED status. + * @param stopped stopped or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setStopped(java.lang.Integer stopped) { + this.stopped = stopped; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have STOPPING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getStopping() { + return stopping; + } + + /** + * Output only. The number of instances in the managed instance group that have STOPPING status. + * @param stopping stopping or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setStopping(java.lang.Integer stopping) { + this.stopping = stopping; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have SUSPENDED status. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuspended() { + return suspended; + } + + /** + * Output only. The number of instances in the managed instance group that have SUSPENDED status. + * @param suspended suspended or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setSuspended(java.lang.Integer suspended) { + this.suspended = suspended; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have SUSPENDING status. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuspending() { + return suspending; + } + + /** + * Output only. The number of instances in the managed instance group that have SUSPENDING status. + * @param suspending suspending or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setSuspending(java.lang.Integer suspending) { + this.suspending = suspending; + return this; + } + + /** + * Output only. The number of instances in the managed instance group that have TERMINATED status. + * @return value or {@code null} for none + */ + public java.lang.Integer getTerminated() { + return terminated; + } + + /** + * Output only. The number of instances in the managed instance group that have TERMINATED status. + * @param terminated terminated or {@code null} for none + */ + public InstanceGroupManagerStatusInstanceStatusSummary setTerminated(java.lang.Integer terminated) { + this.terminated = terminated; + return this; + } + + @Override + public InstanceGroupManagerStatusInstanceStatusSummary set(String fieldName, Object value) { + return (InstanceGroupManagerStatusInstanceStatusSummary) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusInstanceStatusSummary clone() { + return (InstanceGroupManagerStatusInstanceStatusSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java new file mode 100644 index 00000000000..59ebd89feeb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -0,0 +1,102 @@ +/* + * 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 InstanceGroupManagerStatusStateful. + * + *

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 InstanceGroupManagerStatusStateful extends com.google.api.client.json.GenericJson { + + /** + * Output only. A bit indicating whether the managed instance group has stateful configuration, + * that is, if you have configured any items in a stateful policy or in per-instance configs. The + * group might report that it has no stateful configuration even when there is still some + * preserved state on a managed instance, for example, if you have deleted all PICs but not yet + * applied those deletions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean hasStatefulConfig; + + /** + * Output only. Status of per-instance configurations on the instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs; + + /** + * Output only. A bit indicating whether the managed instance group has stateful configuration, + * that is, if you have configured any items in a stateful policy or in per-instance configs. The + * group might report that it has no stateful configuration even when there is still some + * preserved state on a managed instance, for example, if you have deleted all PICs but not yet + * applied those deletions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getHasStatefulConfig() { + return hasStatefulConfig; + } + + /** + * Output only. A bit indicating whether the managed instance group has stateful configuration, + * that is, if you have configured any items in a stateful policy or in per-instance configs. The + * group might report that it has no stateful configuration even when there is still some + * preserved state on a managed instance, for example, if you have deleted all PICs but not yet + * applied those deletions. + * @param hasStatefulConfig hasStatefulConfig or {@code null} for none + */ + public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean hasStatefulConfig) { + this.hasStatefulConfig = hasStatefulConfig; + return this; + } + + /** + * Output only. Status of per-instance configurations on the instances. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { + return perInstanceConfigs; + } + + /** + * Output only. Status of per-instance configurations on the instances. + * @param perInstanceConfigs perInstanceConfigs or {@code null} for none + */ + public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { + this.perInstanceConfigs = perInstanceConfigs; + return this; + } + + @Override + public InstanceGroupManagerStatusStateful set(String fieldName, Object value) { + return (InstanceGroupManagerStatusStateful) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusStateful clone() { + return (InstanceGroupManagerStatusStateful) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java new file mode 100644 index 00000000000..0a11f261bbd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -0,0 +1,72 @@ +/* + * 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 InstanceGroupManagerStatusStatefulPerInstanceConfigs. + * + *

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 InstanceGroupManagerStatusStatefulPerInstanceConfigs extends com.google.api.client.json.GenericJson { + + /** + * Output only. A bit indicating if all of the group's per-instance configurations (listed in the + * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- + * instance-configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allEffective; + + /** + * Output only. A bit indicating if all of the group's per-instance configurations (listed in the + * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- + * instance-configs. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllEffective() { + return allEffective; + } + + /** + * Output only. A bit indicating if all of the group's per-instance configurations (listed in the + * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- + * instance-configs. + * @param allEffective allEffective or {@code null} for none + */ + public InstanceGroupManagerStatusStatefulPerInstanceConfigs setAllEffective(java.lang.Boolean allEffective) { + this.allEffective = allEffective; + return this; + } + + @Override + public InstanceGroupManagerStatusStatefulPerInstanceConfigs set(String fieldName, Object value) { + return (InstanceGroupManagerStatusStatefulPerInstanceConfigs) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusStatefulPerInstanceConfigs clone() { + return (InstanceGroupManagerStatusStatefulPerInstanceConfigs) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java new file mode 100644 index 00000000000..1becbe670d5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -0,0 +1,72 @@ +/* + * 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 InstanceGroupManagerStatusVersionTarget. + * + *

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 InstanceGroupManagerStatusVersionTarget extends com.google.api.client.json.GenericJson { + + /** + * Output only. A bit indicating whether version target has been reached in this managed instance + * group, i.e. all instances are in their target version. Instances' target version are specified + * byversion field on Instance Group Manager. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isReached; + + /** + * Output only. A bit indicating whether version target has been reached in this managed instance + * group, i.e. all instances are in their target version. Instances' target version are specified + * byversion field on Instance Group Manager. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsReached() { + return isReached; + } + + /** + * Output only. A bit indicating whether version target has been reached in this managed instance + * group, i.e. all instances are in their target version. Instances' target version are specified + * byversion field on Instance Group Manager. + * @param isReached isReached or {@code null} for none + */ + public InstanceGroupManagerStatusVersionTarget setIsReached(java.lang.Boolean isReached) { + this.isReached = isReached; + return this; + } + + @Override + public InstanceGroupManagerStatusVersionTarget set(String fieldName, Object value) { + return (InstanceGroupManagerStatusVersionTarget) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerStatusVersionTarget clone() { + return (InstanceGroupManagerStatusVersionTarget) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java new file mode 100644 index 00000000000..df8d10c8af7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.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; + +/** + * Model definition for InstanceGroupManagerTargetSizePolicy. + * + *

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 InstanceGroupManagerTargetSizePolicy extends com.google.api.client.json.GenericJson { + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode of target size policy based on which the MIG creates its VMs individually or all at + * once. + * @param mode mode or {@code null} for none + */ + public InstanceGroupManagerTargetSizePolicy setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public InstanceGroupManagerTargetSizePolicy set(String fieldName, Object value) { + return (InstanceGroupManagerTargetSizePolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerTargetSizePolicy clone() { + return (InstanceGroupManagerTargetSizePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java new file mode 100644 index 00000000000..7af7c1de915 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java @@ -0,0 +1,324 @@ +/* + * 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 InstanceGroupManagerUpdatePolicy. + * + *

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 InstanceGroupManagerUpdatePolicy extends com.google.api.client.json.GenericJson { + + /** + * The instance redistribution policy for regional managed instance groups. Valid values are: + * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances + * across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution + * is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceRedistributionType; + + /** + * The maximum number of instances that can be created above the specifiedtargetSize during the + * update process. This value can be either a fixed number or, if the group has 10 or more + * instances, a percentage. If you set a percentage, the number of instances is rounded if + * necessary. The default value for maxSurge is a fixed value equal to the number of zones in + * which the managed instance group operates. + * + * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about + * maxSurge. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedOrPercent maxSurge; + + /** + * The maximum number of instances that can be unavailable during the update process. An instance + * is considered available if all of the following conditions are satisfied: + * + * - The instance's status is RUNNING. - If there is a health check on + * the instance group, the instance's health check status must be HEALTHY at least once. If + * there is no health check on the group, then the instance only needs to have a status of + * RUNNING to be considered available. + * + * This value can be either a fixed number or, if the group has 10 or more instances, a + * percentage. If you set a percentage, the number of instances is rounded if necessary. The + * default value formaxUnavailable is a fixed value equal to the number of zones in which the + * managed instance group operates. + * + * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about + * maxUnavailable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedOrPercent maxUnavailable; + + /** + * Minimal action to be taken on an instance. Use this option to minimize disruption as much as + * possible or to apply a more disruptive action than is necessary. - To limit disruption + * as much as possible, set the minimal action toREFRESH. If your update requires a more + * disruptive action, Compute Engine performs the necessary action to execute the update. - + * To apply a more disruptive action than is strictly necessary, set the minimal action to + * RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its + * metadata. But if your application reads instance metadata only when a VM is restarted, you + * can set the minimal action to RESTART in order to pick up metadata changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minimalAction; + + /** + * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE + * to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as + * possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to + * allow all possible actions. If the Updater determines that the minimal update action needed is + * more disruptive than most disruptive allowed action you specify it will not perform the update + * at all. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mostDisruptiveAllowedAction; + + /** + * What action should be used to replace instances. See minimal_action.REPLACE + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String replacementMethod; + + /** + * The type of update process. You can specify either PROACTIVE so that the MIG automatically + * updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that + * you want to update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The instance redistribution policy for regional managed instance groups. Valid values are: + * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances + * across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution + * is disabled. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceRedistributionType() { + return instanceRedistributionType; + } + + /** + * The instance redistribution policy for regional managed instance groups. Valid values are: + * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances + * across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution + * is disabled. + * @param instanceRedistributionType instanceRedistributionType or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setInstanceRedistributionType(java.lang.String instanceRedistributionType) { + this.instanceRedistributionType = instanceRedistributionType; + return this; + } + + /** + * The maximum number of instances that can be created above the specifiedtargetSize during the + * update process. This value can be either a fixed number or, if the group has 10 or more + * instances, a percentage. If you set a percentage, the number of instances is rounded if + * necessary. The default value for maxSurge is a fixed value equal to the number of zones in + * which the managed instance group operates. + * + * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about + * maxSurge. + * @return value or {@code null} for none + */ + public FixedOrPercent getMaxSurge() { + return maxSurge; + } + + /** + * The maximum number of instances that can be created above the specifiedtargetSize during the + * update process. This value can be either a fixed number or, if the group has 10 or more + * instances, a percentage. If you set a percentage, the number of instances is rounded if + * necessary. The default value for maxSurge is a fixed value equal to the number of zones in + * which the managed instance group operates. + * + * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about + * maxSurge. + * @param maxSurge maxSurge or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setMaxSurge(FixedOrPercent maxSurge) { + this.maxSurge = maxSurge; + return this; + } + + /** + * The maximum number of instances that can be unavailable during the update process. An instance + * is considered available if all of the following conditions are satisfied: + * + * - The instance's status is RUNNING. - If there is a health check on + * the instance group, the instance's health check status must be HEALTHY at least once. If + * there is no health check on the group, then the instance only needs to have a status of + * RUNNING to be considered available. + * + * This value can be either a fixed number or, if the group has 10 or more instances, a + * percentage. If you set a percentage, the number of instances is rounded if necessary. The + * default value formaxUnavailable is a fixed value equal to the number of zones in which the + * managed instance group operates. + * + * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about + * maxUnavailable. + * @return value or {@code null} for none + */ + public FixedOrPercent getMaxUnavailable() { + return maxUnavailable; + } + + /** + * The maximum number of instances that can be unavailable during the update process. An instance + * is considered available if all of the following conditions are satisfied: + * + * - The instance's status is RUNNING. - If there is a health check on + * the instance group, the instance's health check status must be HEALTHY at least once. If + * there is no health check on the group, then the instance only needs to have a status of + * RUNNING to be considered available. + * + * This value can be either a fixed number or, if the group has 10 or more instances, a + * percentage. If you set a percentage, the number of instances is rounded if necessary. The + * default value formaxUnavailable is a fixed value equal to the number of zones in which the + * managed instance group operates. + * + * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about + * maxUnavailable. + * @param maxUnavailable maxUnavailable or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setMaxUnavailable(FixedOrPercent maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return this; + } + + /** + * Minimal action to be taken on an instance. Use this option to minimize disruption as much as + * possible or to apply a more disruptive action than is necessary. - To limit disruption + * as much as possible, set the minimal action toREFRESH. If your update requires a more + * disruptive action, Compute Engine performs the necessary action to execute the update. - + * To apply a more disruptive action than is strictly necessary, set the minimal action to + * RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its + * metadata. But if your application reads instance metadata only when a VM is restarted, you + * can set the minimal action to RESTART in order to pick up metadata changes. + * @return value or {@code null} for none + */ + public java.lang.String getMinimalAction() { + return minimalAction; + } + + /** + * Minimal action to be taken on an instance. Use this option to minimize disruption as much as + * possible or to apply a more disruptive action than is necessary. - To limit disruption + * as much as possible, set the minimal action toREFRESH. If your update requires a more + * disruptive action, Compute Engine performs the necessary action to execute the update. - + * To apply a more disruptive action than is strictly necessary, set the minimal action to + * RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its + * metadata. But if your application reads instance metadata only when a VM is restarted, you + * can set the minimal action to RESTART in order to pick up metadata changes. + * @param minimalAction minimalAction or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setMinimalAction(java.lang.String minimalAction) { + this.minimalAction = minimalAction; + return this; + } + + /** + * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE + * to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as + * possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to + * allow all possible actions. If the Updater determines that the minimal update action needed is + * more disruptive than most disruptive allowed action you specify it will not perform the update + * at all. + * @return value or {@code null} for none + */ + public java.lang.String getMostDisruptiveAllowedAction() { + return mostDisruptiveAllowedAction; + } + + /** + * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE + * to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as + * possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to + * allow all possible actions. If the Updater determines that the minimal update action needed is + * more disruptive than most disruptive allowed action you specify it will not perform the update + * at all. + * @param mostDisruptiveAllowedAction mostDisruptiveAllowedAction or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { + this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; + return this; + } + + /** + * What action should be used to replace instances. See minimal_action.REPLACE + * @return value or {@code null} for none + */ + public java.lang.String getReplacementMethod() { + return replacementMethod; + } + + /** + * What action should be used to replace instances. See minimal_action.REPLACE + * @param replacementMethod replacementMethod or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setReplacementMethod(java.lang.String replacementMethod) { + this.replacementMethod = replacementMethod; + return this; + } + + /** + * The type of update process. You can specify either PROACTIVE so that the MIG automatically + * updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that + * you want to update. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of update process. You can specify either PROACTIVE so that the MIG automatically + * updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that + * you want to update. + * @param type type or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public InstanceGroupManagerUpdatePolicy set(String fieldName, Object value) { + return (InstanceGroupManagerUpdatePolicy) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerUpdatePolicy clone() { + return (InstanceGroupManagerUpdatePolicy) super.clone(); + } + +} From 41c40c4124b473fe0b16ba432f36cf17d6a1ea65 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:22 -0700 Subject: [PATCH 05/23] chore: regenerate compute client --- .../model/InstanceGroupManagerVersion.java | 147 ++ ...eGroupManagersAbandonInstancesRequest.java | 69 + ...tanceGroupManagersApplyUpdatesRequest.java | 180 ++ ...ceGroupManagersCreateInstancesRequest.java | 66 + ...ceGroupManagersDeleteInstancesRequest.java | 108 ++ ...upManagersDeletePerInstanceConfigsReq.java | 69 + ...stanceGroupManagersListErrorsResponse.java | 99 ++ ...pManagersListManagedInstancesResponse.java | 99 ++ ...oupManagersListPerInstanceConfigsResp.java | 305 ++++ ...oupManagersPatchPerInstanceConfigsReq.java | 66 + ...GroupManagersRecreateInstancesRequest.java | 69 + ...ceGroupManagersResumeInstancesRequest.java | 69 + .../InstanceGroupManagersScopedList.java | 285 +++ ...oupManagersSetInstanceTemplateRequest.java | 75 + ...nceGroupManagersSetTargetPoolsRequest.java | 144 ++ ...nceGroupManagersStartInstancesRequest.java | 69 + ...anceGroupManagersStopInstancesRequest.java | 96 + ...eGroupManagersSuspendInstancesRequest.java | 96 + ...upManagersUpdatePerInstanceConfigsReq.java | 66 + .../InstanceGroupsAddInstancesRequest.java | 66 + .../model/InstanceGroupsListInstances.java | 383 ++++ .../InstanceGroupsListInstancesRequest.java | 72 + .../InstanceGroupsRemoveInstancesRequest.java | 66 + .../model/InstanceGroupsScopedList.java | 282 +++ .../InstanceGroupsSetNamedPortsRequest.java | 138 ++ .../services/compute/model/InstanceList.java | 386 ++++ .../compute/model/InstanceListReferrers.java | 380 ++++ .../model/InstanceManagedByIgmError.java | 117 ++ ...anagedByIgmErrorInstanceActionDetails.java | 126 ++ ...ManagedByIgmErrorManagedInstanceError.java | 90 + .../compute/model/InstanceMoveRequest.java | 108 ++ .../compute/model/InstanceParams.java | 102 ++ .../compute/model/InstanceProperties.java | 687 +++++++ .../model/InstancePropertiesPatch.java | 117 ++ .../compute/model/InstanceReference.java | 66 + .../compute/model/InstanceSettings.java | 204 +++ .../model/InstanceSettingsMetadata.java | 90 + .../compute/model/InstanceTemplate.java | 329 ++++ .../model/InstanceTemplateAggregatedList.java | 377 ++++ .../compute/model/InstanceTemplateList.java | 386 ++++ .../model/InstanceTemplatesScopedList.java | 285 +++ .../compute/model/InstanceWithNamedPorts.java | 114 ++ .../InstancesAddResourcePoliciesRequest.java | 66 + .../InstancesBulkInsertOperationMetadata.java | 72 + ...nstancesGetEffectiveFirewallsResponse.java | 96 + ...ewallsResponseEffectiveFirewallPolicy.java | 237 +++ ...nstancesRemoveResourcePoliciesRequest.java | 66 + .../InstancesReportHostAsFaultyRequest.java | 87 + ...sReportHostAsFaultyRequestFaultReason.java | 84 + .../compute/model/InstancesScopedList.java | 281 +++ .../model/InstancesSetLabelsRequest.java | 120 ++ .../InstancesSetMachineResourcesRequest.java | 72 + .../model/InstancesSetMachineTypeRequest.java | 69 + .../InstancesSetMinCpuPlatformRequest.java | 66 + .../model/InstancesSetNameRequest.java | 93 + .../InstancesSetSecurityPolicyRequest.java | 99 ++ .../InstancesSetServiceAccountRequest.java | 90 + ...nstancesStartWithEncryptionKeyRequest.java | 90 + ...nstancesTroubleshootOperationMetadata.java | 66 + .../compute/model/InstantSnapshot.java | 708 ++++++++ .../model/InstantSnapshotAggregatedList.java | 404 +++++ .../compute/model/InstantSnapshotGroup.java | 360 ++++ .../model/InstantSnapshotGroupParameters.java | 78 + .../InstantSnapshotGroupResourceStatus.java | 90 + .../model/InstantSnapshotGroupSourceInfo.java | 84 + .../compute/model/InstantSnapshotList.java | 383 ++++ .../compute/model/InstantSnapshotParams.java | 78 + .../model/InstantSnapshotResourceStatus.java | 66 + .../model/InstantSnapshotsScopedList.java | 282 +++ .../compute/model/Int64RangeMatch.java | 90 + .../services/compute/model/Interconnect.java | 1198 +++++++++++++ ...erconnectApplicationAwareInterconnect.java | 135 ++ ...nAwareInterconnectBandwidthPercentage.java | 92 + ...InterconnectBandwidthPercentagePolicy.java | 72 + ...AwareInterconnectStrictPriorityPolicy.java | 42 + .../compute/model/InterconnectAttachment.java | 1577 +++++++++++++++++ .../InterconnectAttachmentAggregatedList.java | 404 +++++ ...ectAttachmentConfigurationConstraints.java | 132 ++ ...nfigurationConstraintsBgpPeerASNRange.java | 84 + .../model/InterconnectAttachmentGroup.java | 358 ++++ ...InterconnectAttachmentGroupAttachment.java | 63 + ...InterconnectAttachmentGroupConfigured.java | 64 + ...achmentGroupConfiguredAvailabilitySLA.java | 85 + ...redAvailabilitySLAIntendedSlaBlockers.java | 235 +++ .../InterconnectAttachmentGroupIntent.java | 64 + ...onnectAttachmentGroupLogicalStructure.java | 64 + ...AttachmentGroupLogicalStructureRegion.java | 87 + ...hmentGroupLogicalStructureRegionMetro.java | 90 + ...upLogicalStructureRegionMetroFacility.java | 87 + ...gicalStructureRegionMetroFacilityZone.java | 94 + ...entGroupsGetOperationalStatusResponse.java | 84 + ...erconnectAttachmentGroupsListResponse.java | 428 +++++ ...nectAttachmentGroupsOperationalStatus.java | 153 ++ ...oupsOperationalStatusAttachmentStatus.java | 147 ++ .../InterconnectAttachmentL2Forwarding.java | 204 +++ ...ttachmentL2ForwardingApplianceMapping.java | 135 ++ ...nceMappingInnerVlanToApplianceMapping.java | 108 ++ ...ectAttachmentL2ForwardingGeneveHeader.java | 66 + .../model/InterconnectAttachmentList.java | 386 ++++ .../model/InterconnectAttachmentParams.java | 87 + 100 files changed, 18350 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerVersion.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersAbandonInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersCreateInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeleteInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListManagedInstancesResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersRecreateInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersResumeInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetInstanceTemplateRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetTargetPoolsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStartInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStopInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSuspendInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsAddInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstances.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsRemoveInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsSetNamedPortsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceMoveRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplatesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesAddResourcePoliciesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesBulkInsertOperationMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesRemoveResourcePoliciesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequestFaultReason.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetLabelsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineResourcesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineTypeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMinCpuPlatformRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetNameRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetSecurityPolicyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetServiceAccountRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesStartWithEncryptionKeyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesTroubleshootOperationMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Int64RangeMatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interconnect.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnect.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2Forwarding.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMapping.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingGeneveHeader.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentParams.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerVersion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerVersion.java new file mode 100644 index 00000000000..a885cd486e1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerVersion.java @@ -0,0 +1,147 @@ +/* + * 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 InstanceGroupManagerVersion. + * + *

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 InstanceGroupManagerVersion extends com.google.api.client.json.GenericJson { + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create new instances in the managed instance group until the `targetSize` + * for this version is reached. The templates for existing instances in the group do not change + * unless you run recreateInstances, runapplyUpdatesToInstances, or set the + * group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the + * `targetSize` for this version is reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** + * Name of the version. Unique among all versions in the scope of this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Specifies the intended number of instances to be created from theinstanceTemplate. The final + * number of instances created from the template will be equal to: - If expressed as + * a fixed number, the minimum of either targetSize.fixed or + * instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize + * would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a + * remainder, the number is rounded. If unset, this version will update any remaining + * instances not updated by another version. ReadStarting a canary update for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedOrPercent targetSize; + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create new instances in the managed instance group until the `targetSize` + * for this version is reached. The templates for existing instances in the group do not change + * unless you run recreateInstances, runapplyUpdatesToInstances, or set the + * group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the + * `targetSize` for this version is reached. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create new instances in the managed instance group until the `targetSize` + * for this version is reached. The templates for existing instances in the group do not change + * unless you run recreateInstances, runapplyUpdatesToInstances, or set the + * group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the + * `targetSize` for this version is reached. + * @param instanceTemplate instanceTemplate or {@code null} for none + */ + public InstanceGroupManagerVersion setInstanceTemplate(java.lang.String instanceTemplate) { + this.instanceTemplate = instanceTemplate; + return this; + } + + /** + * Name of the version. Unique among all versions in the scope of this managed instance group. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the version. Unique among all versions in the scope of this managed instance group. + * @param name name or {@code null} for none + */ + public InstanceGroupManagerVersion setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies the intended number of instances to be created from theinstanceTemplate. The final + * number of instances created from the template will be equal to: - If expressed as + * a fixed number, the minimum of either targetSize.fixed or + * instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize + * would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a + * remainder, the number is rounded. If unset, this version will update any remaining + * instances not updated by another version. ReadStarting a canary update for more information. + * @return value or {@code null} for none + */ + public FixedOrPercent getTargetSize() { + return targetSize; + } + + /** + * Specifies the intended number of instances to be created from theinstanceTemplate. The final + * number of instances created from the template will be equal to: - If expressed as + * a fixed number, the minimum of either targetSize.fixed or + * instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize + * would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a + * remainder, the number is rounded. If unset, this version will update any remaining + * instances not updated by another version. ReadStarting a canary update for more information. + * @param targetSize targetSize or {@code null} for none + */ + public InstanceGroupManagerVersion setTargetSize(FixedOrPercent targetSize) { + this.targetSize = targetSize; + return this; + } + + @Override + public InstanceGroupManagerVersion set(String fieldName, Object value) { + return (InstanceGroupManagerVersion) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerVersion clone() { + return (InstanceGroupManagerVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersAbandonInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersAbandonInstancesRequest.java new file mode 100644 index 00000000000..625e4b3c748 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersAbandonInstancesRequest.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; + +/** + * Model definition for InstanceGroupManagersAbandonInstancesRequest. + * + *

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 InstanceGroupManagersAbandonInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersAbandonInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersAbandonInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersAbandonInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersAbandonInstancesRequest clone() { + return (InstanceGroupManagersAbandonInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java new file mode 100644 index 00000000000..f7256f595dc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java @@ -0,0 +1,180 @@ +/* + * 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; + +/** + * InstanceGroupManagers.applyUpdatesToInstances + * + *

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 InstanceGroupManagersApplyUpdatesRequest extends com.google.api.client.json.GenericJson { + + /** + * Flag to update all instances instead of specified list of "instances". If the flag is set to + * true then the instances may not be specified in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allInstances; + + /** + * The list of URLs of one or more instances for which you want to apply updates. Each URL can be + * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The minimal action that you want to perform on each instance during the update: - + * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the + * instance and start it again. - REFRESH: Do not stop the instance and limit + * disruption as much as possible. - NONE: Do not disrupt the instance at all. + * + * By default, the minimum action is NONE. If your update requires a more disruptive action than + * you set with this flag, the necessary action is performed to execute the update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minimalAction; + + /** + * The most disruptive action that you want to perform on each instance during the update: + * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start + * it again. - REFRESH: Do not stop the instance and limit disruption as much as + * possible. - NONE: Do not disrupt the instance at all. + * + * By default, the most disruptive allowed action is REPLACE. If your update requires a more + * disruptive action than you set with this flag, the update request will fail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mostDisruptiveAllowedAction; + + /** + * Flag to update all instances instead of specified list of "instances". If the flag is set to + * true then the instances may not be specified in the request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllInstances() { + return allInstances; + } + + /** + * Flag to update all instances instead of specified list of "instances". If the flag is set to + * true then the instances may not be specified in the request. + * @param allInstances allInstances or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolean allInstances) { + this.allInstances = allInstances; + return this; + } + + /** + * The list of URLs of one or more instances for which you want to apply updates. Each URL can be + * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The list of URLs of one or more instances for which you want to apply updates. Each URL can be + * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * The minimal action that you want to perform on each instance during the update: - + * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the + * instance and start it again. - REFRESH: Do not stop the instance and limit + * disruption as much as possible. - NONE: Do not disrupt the instance at all. + * + * By default, the minimum action is NONE. If your update requires a more disruptive action than + * you set with this flag, the necessary action is performed to execute the update. + * @return value or {@code null} for none + */ + public java.lang.String getMinimalAction() { + return minimalAction; + } + + /** + * The minimal action that you want to perform on each instance during the update: - + * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the + * instance and start it again. - REFRESH: Do not stop the instance and limit + * disruption as much as possible. - NONE: Do not disrupt the instance at all. + * + * By default, the minimum action is NONE. If your update requires a more disruptive action than + * you set with this flag, the necessary action is performed to execute the update. + * @param minimalAction minimalAction or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setMinimalAction(java.lang.String minimalAction) { + this.minimalAction = minimalAction; + return this; + } + + /** + * The most disruptive action that you want to perform on each instance during the update: + * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start + * it again. - REFRESH: Do not stop the instance and limit disruption as much as + * possible. - NONE: Do not disrupt the instance at all. + * + * By default, the most disruptive allowed action is REPLACE. If your update requires a more + * disruptive action than you set with this flag, the update request will fail. + * @return value or {@code null} for none + */ + public java.lang.String getMostDisruptiveAllowedAction() { + return mostDisruptiveAllowedAction; + } + + /** + * The most disruptive action that you want to perform on each instance during the update: + * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start + * it again. - REFRESH: Do not stop the instance and limit disruption as much as + * possible. - NONE: Do not disrupt the instance at all. + * + * By default, the most disruptive allowed action is REPLACE. If your update requires a more + * disruptive action than you set with this flag, the update request will fail. + * @param mostDisruptiveAllowedAction mostDisruptiveAllowedAction or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { + this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; + return this; + } + + @Override + public InstanceGroupManagersApplyUpdatesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersApplyUpdatesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersApplyUpdatesRequest clone() { + return (InstanceGroupManagersApplyUpdatesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersCreateInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersCreateInstancesRequest.java new file mode 100644 index 00000000000..704ba58613d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersCreateInstancesRequest.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; + +/** + * InstanceGroupManagers.createInstances + * + *

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 InstanceGroupManagersCreateInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * [Required] List of specifications of per-instance configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * [Required] List of specifications of per-instance configs. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * [Required] List of specifications of per-instance configs. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersCreateInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersCreateInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersCreateInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersCreateInstancesRequest clone() { + return (InstanceGroupManagersCreateInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeleteInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeleteInstancesRequest.java new file mode 100644 index 00000000000..ac58e893aaa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeleteInstancesRequest.java @@ -0,0 +1,108 @@ +/* + * 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 InstanceGroupManagersDeleteInstancesRequest. + * + *

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 InstanceGroupManagersDeleteInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted + * only by name. One cannot specify both URLs and names in a single request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * Specifies whether the request should proceed despite the inclusion of instances that are not + * members of the group or that are already in the process of being deleted or abandoned. If this + * field is set to `false` and such an instance is specified in the request, the operation fails. + * The operation always fails if the request contains a malformed instance URL or a reference to + * an instance that exists in a zone or region other than the group's zone or region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean skipInstancesOnValidationError; + + /** + * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted + * only by name. One cannot specify both URLs and names in a single request. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted + * only by name. One cannot specify both URLs and names in a single request. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersDeleteInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * Specifies whether the request should proceed despite the inclusion of instances that are not + * members of the group or that are already in the process of being deleted or abandoned. If this + * field is set to `false` and such an instance is specified in the request, the operation fails. + * The operation always fails if the request contains a malformed instance URL or a reference to + * an instance that exists in a zone or region other than the group's zone or region. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSkipInstancesOnValidationError() { + return skipInstancesOnValidationError; + } + + /** + * Specifies whether the request should proceed despite the inclusion of instances that are not + * members of the group or that are already in the process of being deleted or abandoned. If this + * field is set to `false` and such an instance is specified in the request, the operation fails. + * The operation always fails if the request contains a malformed instance URL or a reference to + * an instance that exists in a zone or region other than the group's zone or region. + * @param skipInstancesOnValidationError skipInstancesOnValidationError or {@code null} for none + */ + public InstanceGroupManagersDeleteInstancesRequest setSkipInstancesOnValidationError(java.lang.Boolean skipInstancesOnValidationError) { + this.skipInstancesOnValidationError = skipInstancesOnValidationError; + return this; + } + + @Override + public InstanceGroupManagersDeleteInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersDeleteInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersDeleteInstancesRequest clone() { + return (InstanceGroupManagersDeleteInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java new file mode 100644 index 00000000000..5ca4684c4b8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersDeletePerInstanceConfigsReq.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; + +/** + * InstanceGroupManagers.deletePerInstanceConfigs + * + *

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 InstanceGroupManagersDeletePerInstanceConfigsReq extends com.google.api.client.json.GenericJson { + + /** + * The list of instance names for which we want to delete per-instance configs on this managed + * instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List names; + + /** + * The list of instance names for which we want to delete per-instance configs on this managed + * instance group. + * @return value or {@code null} for none + */ + public java.util.List getNames() { + return names; + } + + /** + * The list of instance names for which we want to delete per-instance configs on this managed + * instance group. + * @param names names or {@code null} for none + */ + public InstanceGroupManagersDeletePerInstanceConfigsReq setNames(java.util.List names) { + this.names = names; + return this; + } + + @Override + public InstanceGroupManagersDeletePerInstanceConfigsReq set(String fieldName, Object value) { + return (InstanceGroupManagersDeletePerInstanceConfigsReq) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersDeletePerInstanceConfigsReq clone() { + return (InstanceGroupManagersDeletePerInstanceConfigsReq) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java new file mode 100644 index 00000000000..dfae8cc0cdf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -0,0 +1,99 @@ +/* + * 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 InstanceGroupManagersListErrorsResponse. + * + *

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 InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. The list of errors of the managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults , then use the nextPageToken as a value for the + * query parameter pageToken in the next list request. Subsequent list requests will have their + * own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. The list of errors of the managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. The list of errors of the managed instance group. + * @param items items or {@code null} for none + */ + public InstanceGroupManagersListErrorsResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults , then use the nextPageToken as a value for the + * query parameter pageToken in the next list request. Subsequent list requests will have their + * own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger than maxResults , then use the nextPageToken as a value for the + * query parameter pageToken in the next list request. Subsequent list requests will have their + * own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupManagersListErrorsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public InstanceGroupManagersListErrorsResponse set(String fieldName, Object value) { + return (InstanceGroupManagersListErrorsResponse) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersListErrorsResponse clone() { + return (InstanceGroupManagersListErrorsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListManagedInstancesResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListManagedInstancesResponse.java new file mode 100644 index 00000000000..b248617bb47 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListManagedInstancesResponse.java @@ -0,0 +1,99 @@ +/* + * 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 InstanceGroupManagersListManagedInstancesResponse. + * + *

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 InstanceGroupManagersListManagedInstancesResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The list of instances in the managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List managedInstances; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] The list of instances in the managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getManagedInstances() { + return managedInstances; + } + + /** + * Output only. [Output Only] The list of instances in the managed instance group. + * @param managedInstances managedInstances or {@code null} for none + */ + public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupManagersListManagedInstancesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public InstanceGroupManagersListManagedInstancesResponse set(String fieldName, Object value) { + return (InstanceGroupManagersListManagedInstancesResponse) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersListManagedInstancesResponse clone() { + return (InstanceGroupManagersListManagedInstancesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java new file mode 100644 index 00000000000..8077274d251 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -0,0 +1,305 @@ +/* + * 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 InstanceGroupManagersListPerInstanceConfigsResp. + * + *

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 InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The list of PerInstanceConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [Output Only] The list of PerInstanceConfig. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. [Output Only] The list of PerInstanceConfig. + * @param items items or {@code null} for none + */ + public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupManagersListPerInstanceConfigsResp setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InstanceGroupManagersListPerInstanceConfigsResp setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupManagersListPerInstanceConfigsResp set(String fieldName, Object value) { + return (InstanceGroupManagersListPerInstanceConfigsResp) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersListPerInstanceConfigsResp clone() { + return (InstanceGroupManagersListPerInstanceConfigsResp) super.clone(); + } + + /** + * Output only. [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 InstanceGroupManagersListPerInstanceConfigsRespWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java new file mode 100644 index 00000000000..b86f7fdca61 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersPatchPerInstanceConfigsReq.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; + +/** + * InstanceGroupManagers.patchPerInstanceConfigs + * + *

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 InstanceGroupManagersPatchPerInstanceConfigsReq extends com.google.api.client.json.GenericJson { + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List perInstanceConfigs; + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getPerInstanceConfigs() { + return perInstanceConfigs; + } + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @param perInstanceConfigs perInstanceConfigs or {@code null} for none + */ + public InstanceGroupManagersPatchPerInstanceConfigsReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { + this.perInstanceConfigs = perInstanceConfigs; + return this; + } + + @Override + public InstanceGroupManagersPatchPerInstanceConfigsReq set(String fieldName, Object value) { + return (InstanceGroupManagersPatchPerInstanceConfigsReq) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersPatchPerInstanceConfigsReq clone() { + return (InstanceGroupManagersPatchPerInstanceConfigsReq) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersRecreateInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersRecreateInstancesRequest.java new file mode 100644 index 00000000000..7e2f3b4e764 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersRecreateInstancesRequest.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; + +/** + * Model definition for InstanceGroupManagersRecreateInstancesRequest. + * + *

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 InstanceGroupManagersRecreateInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersRecreateInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersRecreateInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersRecreateInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersRecreateInstancesRequest clone() { + return (InstanceGroupManagersRecreateInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersResumeInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersResumeInstancesRequest.java new file mode 100644 index 00000000000..7d9761b57d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersResumeInstancesRequest.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; + +/** + * Model definition for InstanceGroupManagersResumeInstancesRequest. + * + *

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 InstanceGroupManagersResumeInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersResumeInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersResumeInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersResumeInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersResumeInstancesRequest clone() { + return (InstanceGroupManagersResumeInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersScopedList.java new file mode 100644 index 00000000000..8752a8fabb4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersScopedList.java @@ -0,0 +1,285 @@ +/* + * 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 InstanceGroupManagersScopedList. + * + *

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 InstanceGroupManagersScopedList extends com.google.api.client.json.GenericJson { + + /** + * Output only. The list of managed instance groups that are contained in the specified project + * and zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceGroupManagers; + + static { + // hack to force ProGuard to consider InstanceGroupManager 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(InstanceGroupManager.class); + } + + /** + * Output only. The warning that replaces the list of managed instance groups when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. The list of managed instance groups that are contained in the specified project + * and zone. + * @return value or {@code null} for none + */ + public java.util.List getInstanceGroupManagers() { + return instanceGroupManagers; + } + + /** + * Output only. The list of managed instance groups that are contained in the specified project + * and zone. + * @param instanceGroupManagers instanceGroupManagers or {@code null} for none + */ + public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List instanceGroupManagers) { + this.instanceGroupManagers = instanceGroupManagers; + return this; + } + + /** + * Output only. The warning that replaces the list of managed instance groups when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. The warning that replaces the list of managed instance groups when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public InstanceGroupManagersScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupManagersScopedList set(String fieldName, Object value) { + return (InstanceGroupManagersScopedList) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersScopedList clone() { + return (InstanceGroupManagersScopedList) super.clone(); + } + + /** + * Output only. The warning that replaces the list of managed instance groups when the list is + * empty. + */ + 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 InstanceGroupManagersScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetInstanceTemplateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetInstanceTemplateRequest.java new file mode 100644 index 00000000000..2bb634c6e86 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetInstanceTemplateRequest.java @@ -0,0 +1,75 @@ +/* + * 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 InstanceGroupManagersSetInstanceTemplateRequest. + * + *

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 InstanceGroupManagersSetInstanceTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create all new instances in the managed instance group. The templates for + * existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create all new instances in the managed instance group. The templates for + * existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** + * The URL of the instance template that is specified for this managed instance group. The group + * uses this template to create all new instances in the managed instance group. The templates for + * existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * @param instanceTemplate instanceTemplate or {@code null} for none + */ + public InstanceGroupManagersSetInstanceTemplateRequest setInstanceTemplate(java.lang.String instanceTemplate) { + this.instanceTemplate = instanceTemplate; + return this; + } + + @Override + public InstanceGroupManagersSetInstanceTemplateRequest set(String fieldName, Object value) { + return (InstanceGroupManagersSetInstanceTemplateRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersSetInstanceTemplateRequest clone() { + return (InstanceGroupManagersSetInstanceTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetTargetPoolsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetTargetPoolsRequest.java new file mode 100644 index 00000000000..05d5eabb6f4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSetTargetPoolsRequest.java @@ -0,0 +1,144 @@ +/* + * 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 InstanceGroupManagersSetTargetPoolsRequest. + * + *

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 InstanceGroupManagersSetTargetPoolsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the target pools information. Use this optional property to prevent + * conflicts when multiple users change the target pools settings concurrently. Obtain the + * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * The list of target pool URLs that instances in this managed instance group belong to. The + * managed instance group applies these target pools to all of the instances in the group. + * Existing instances and new instances in the group all receive these target pool settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetPools; + + /** + * The fingerprint of the target pools information. Use this optional property to prevent + * conflicts when multiple users change the target pools settings concurrently. Obtain the + * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * The fingerprint of the target pools information. Use this optional property to prevent + * conflicts when multiple users change the target pools settings concurrently. Obtain the + * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * The fingerprint of the target pools information. Use this optional property to prevent + * conflicts when multiple users change the target pools settings concurrently. Obtain the + * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public InstanceGroupManagersSetTargetPoolsRequest setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * The fingerprint of the target pools information. Use this optional property to prevent + * conflicts when multiple users change the target pools settings concurrently. Obtain the + * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstanceGroupManagersSetTargetPoolsRequest encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * The list of target pool URLs that instances in this managed instance group belong to. The + * managed instance group applies these target pools to all of the instances in the group. + * Existing instances and new instances in the group all receive these target pool settings. + * @return value or {@code null} for none + */ + public java.util.List getTargetPools() { + return targetPools; + } + + /** + * The list of target pool URLs that instances in this managed instance group belong to. The + * managed instance group applies these target pools to all of the instances in the group. + * Existing instances and new instances in the group all receive these target pool settings. + * @param targetPools targetPools or {@code null} for none + */ + public InstanceGroupManagersSetTargetPoolsRequest setTargetPools(java.util.List targetPools) { + this.targetPools = targetPools; + return this; + } + + @Override + public InstanceGroupManagersSetTargetPoolsRequest set(String fieldName, Object value) { + return (InstanceGroupManagersSetTargetPoolsRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersSetTargetPoolsRequest clone() { + return (InstanceGroupManagersSetTargetPoolsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStartInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStartInstancesRequest.java new file mode 100644 index 00000000000..9caccd499fa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStartInstancesRequest.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; + +/** + * Model definition for InstanceGroupManagersStartInstancesRequest. + * + *

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 InstanceGroupManagersStartInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersStartInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersStartInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersStartInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersStartInstancesRequest clone() { + return (InstanceGroupManagersStartInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStopInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStopInstancesRequest.java new file mode 100644 index 00000000000..c16549b3c2e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersStopInstancesRequest.java @@ -0,0 +1,96 @@ +/* + * 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 InstanceGroupManagersStopInstancesRequest. + * + *

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 InstanceGroupManagersStopInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, + * skipping initialization on them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceStop; + + /** + * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, + * skipping initialization on them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForceStop() { + return forceStop; + } + + /** + * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, + * skipping initialization on them. + * @param forceStop forceStop or {@code null} for none + */ + public InstanceGroupManagersStopInstancesRequest setForceStop(java.lang.Boolean forceStop) { + this.forceStop = forceStop; + return this; + } + + /** + * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersStopInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersStopInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersStopInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersStopInstancesRequest clone() { + return (InstanceGroupManagersStopInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSuspendInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSuspendInstancesRequest.java new file mode 100644 index 00000000000..db4b2f4a3be --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersSuspendInstancesRequest.java @@ -0,0 +1,96 @@ +/* + * 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 InstanceGroupManagersSuspendInstancesRequest. + * + *

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 InstanceGroupManagersSuspendInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, + * skipping initialization on them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceSuspend; + + /** + * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, + * skipping initialization on them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForceSuspend() { + return forceSuspend; + } + + /** + * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, + * skipping initialization on them. + * @param forceSuspend forceSuspend or {@code null} for none + */ + public InstanceGroupManagersSuspendInstancesRequest setForceSuspend(java.lang.Boolean forceSuspend) { + this.forceSuspend = forceSuspend; + return this; + } + + /** + * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public InstanceGroupManagersSuspendInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupManagersSuspendInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersSuspendInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersSuspendInstancesRequest clone() { + return (InstanceGroupManagersSuspendInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java new file mode 100644 index 00000000000..e5e0c7380b3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.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; + +/** + * InstanceGroupManagers.updatePerInstanceConfigs + * + *

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 InstanceGroupManagersUpdatePerInstanceConfigsReq extends com.google.api.client.json.GenericJson { + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List perInstanceConfigs; + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getPerInstanceConfigs() { + return perInstanceConfigs; + } + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @param perInstanceConfigs perInstanceConfigs or {@code null} for none + */ + public InstanceGroupManagersUpdatePerInstanceConfigsReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { + this.perInstanceConfigs = perInstanceConfigs; + return this; + } + + @Override + public InstanceGroupManagersUpdatePerInstanceConfigsReq set(String fieldName, Object value) { + return (InstanceGroupManagersUpdatePerInstanceConfigsReq) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersUpdatePerInstanceConfigsReq clone() { + return (InstanceGroupManagersUpdatePerInstanceConfigsReq) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsAddInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsAddInstancesRequest.java new file mode 100644 index 00000000000..47c1c353aa5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsAddInstancesRequest.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; + +/** + * Model definition for InstanceGroupsAddInstancesRequest. + * + *

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 InstanceGroupsAddInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of instances to add to the instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The list of instances to add to the instance group. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The list of instances to add to the instance group. + * @param instances instances or {@code null} for none + */ + public InstanceGroupsAddInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupsAddInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupsAddInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupsAddInstancesRequest clone() { + return (InstanceGroupsAddInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstances.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstances.java new file mode 100644 index 00000000000..aac825a4495 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstances.java @@ -0,0 +1,383 @@ +/* + * 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 InstanceGroupsListInstances. + * + *

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 InstanceGroupsListInstances extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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 InstanceWithNamedPorts resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance + * group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public InstanceGroupsListInstances setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceWithNamedPorts resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceWithNamedPorts resources. + * @param items items or {@code null} for none + */ + public InstanceGroupsListInstances setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance + * group. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance + * group. + * @param kind kind or {@code null} for none + */ + public InstanceGroupsListInstances setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceGroupsListInstances 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 InstanceGroupsListInstances setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public InstanceGroupsListInstances setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupsListInstances set(String fieldName, Object value) { + return (InstanceGroupsListInstances) super.set(fieldName, value); + } + + @Override + public InstanceGroupsListInstances clone() { + return (InstanceGroupsListInstances) super.clone(); + } + + /** + * Output only. [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 InstanceGroupsListInstancesWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstancesRequest.java new file mode 100644 index 00000000000..ed357f547b7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsListInstancesRequest.java @@ -0,0 +1,72 @@ +/* + * 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 InstanceGroupsListInstancesRequest. + * + *

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 InstanceGroupsListInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * A filter for the state of the instances in the instance group. Valid options are ALL or + * RUNNING. If you do not specify this parameter the list includes all instances regardless of + * their state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceState; + + /** + * A filter for the state of the instances in the instance group. Valid options are ALL or + * RUNNING. If you do not specify this parameter the list includes all instances regardless of + * their state. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceState() { + return instanceState; + } + + /** + * A filter for the state of the instances in the instance group. Valid options are ALL or + * RUNNING. If you do not specify this parameter the list includes all instances regardless of + * their state. + * @param instanceState instanceState or {@code null} for none + */ + public InstanceGroupsListInstancesRequest setInstanceState(java.lang.String instanceState) { + this.instanceState = instanceState; + return this; + } + + @Override + public InstanceGroupsListInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupsListInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupsListInstancesRequest clone() { + return (InstanceGroupsListInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsRemoveInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsRemoveInstancesRequest.java new file mode 100644 index 00000000000..f3d56155166 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsRemoveInstancesRequest.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; + +/** + * Model definition for InstanceGroupsRemoveInstancesRequest. + * + *

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 InstanceGroupsRemoveInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of instances to remove from the instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The list of instances to remove from the instance group. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The list of instances to remove from the instance group. + * @param instances instances or {@code null} for none + */ + public InstanceGroupsRemoveInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public InstanceGroupsRemoveInstancesRequest set(String fieldName, Object value) { + return (InstanceGroupsRemoveInstancesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupsRemoveInstancesRequest clone() { + return (InstanceGroupsRemoveInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsScopedList.java new file mode 100644 index 00000000000..a70c135d422 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 InstanceGroupsScopedList. + * + *

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 InstanceGroupsScopedList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The list ofinstance groups that are contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceGroups; + + static { + // hack to force ProGuard to consider InstanceGroup 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(InstanceGroup.class); + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [Output Only] The list ofinstance groups that are contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getInstanceGroups() { + return instanceGroups; + } + + /** + * Output only. [Output Only] The list ofinstance groups that are contained in this scope. + * @param instanceGroups instanceGroups or {@code null} for none + */ + public InstanceGroupsScopedList setInstanceGroups(java.util.List instanceGroups) { + this.instanceGroups = instanceGroups; + return this; + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. + * @param warning warning or {@code null} for none + */ + public InstanceGroupsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceGroupsScopedList set(String fieldName, Object value) { + return (InstanceGroupsScopedList) super.set(fieldName, value); + } + + @Override + public InstanceGroupsScopedList clone() { + return (InstanceGroupsScopedList) super.clone(); + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of instance groups + * when the list is empty. + */ + 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 InstanceGroupsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsSetNamedPortsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsSetNamedPortsRequest.java new file mode 100644 index 00000000000..0d14f9b41a3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceGroupsSetNamedPortsRequest.java @@ -0,0 +1,138 @@ +/* + * 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 InstanceGroupsSetNamedPortsRequest. + * + *

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 InstanceGroupsSetNamedPortsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * The list of named ports to set for this instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namedPorts; + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public InstanceGroupsSetNamedPortsRequest setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstanceGroupsSetNamedPortsRequest encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * The list of named ports to set for this instance group. + * @return value or {@code null} for none + */ + public java.util.List getNamedPorts() { + return namedPorts; + } + + /** + * The list of named ports to set for this instance group. + * @param namedPorts namedPorts or {@code null} for none + */ + public InstanceGroupsSetNamedPortsRequest setNamedPorts(java.util.List namedPorts) { + this.namedPorts = namedPorts; + return this; + } + + @Override + public InstanceGroupsSetNamedPortsRequest set(String fieldName, Object value) { + return (InstanceGroupsSetNamedPortsRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupsSetNamedPortsRequest clone() { + return (InstanceGroupsSetNamedPortsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceList.java new file mode 100644 index 00000000000..270df85a3d7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of instances. + * + *

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 InstanceList extends com.google.api.client.json.GenericJson { + + /** + * [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 Instance 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 Instance 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(Instance.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InstanceList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Instance resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Instance resources. + * @param items items or {@code null} for none + */ + public InstanceList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance + * resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance + * resources. + * @param kind kind or {@code null} for none + */ + public InstanceList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceList 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 InstanceList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstanceList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceList set(String fieldName, Object value) { + return (InstanceList) super.set(fieldName, value); + } + + @Override + public InstanceList clone() { + return (InstanceList) 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 InstanceListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java new file mode 100644 index 00000000000..c9b2d38bb80 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -0,0 +1,380 @@ +/* + * 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; + +/** + * Contains a list of instance referrers. + * + *

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 InstanceListReferrers extends com.google.api.client.json.GenericJson { + + /** + * [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 Reference resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of + * Instance referrers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InstanceListReferrers setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Reference resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Reference resources. + * @param items items or {@code null} for none + */ + public InstanceListReferrers setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of + * Instance referrers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of + * Instance referrers. + * @param kind kind or {@code null} for none + */ + public InstanceListReferrers setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceListReferrers 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 InstanceListReferrers setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstanceListReferrers setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceListReferrers set(String fieldName, Object value) { + return (InstanceListReferrers) super.set(fieldName, value); + } + + @Override + public InstanceListReferrers clone() { + return (InstanceListReferrers) 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 InstanceListReferrersWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java new file mode 100644 index 00000000000..90c04f253ca --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -0,0 +1,117 @@ +/* + * 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 InstanceManagedByIgmError. + * + *

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 InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { + + /** + * Output only. Contents of the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceManagedByIgmErrorManagedInstanceError error; + + /** + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails; + + /** + * Output only. The time that this error occurred. This value is in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timestamp; + + /** + * Output only. Contents of the error. + * @return value or {@code null} for none + */ + public InstanceManagedByIgmErrorManagedInstanceError getError() { + return error; + } + + /** + * Output only. Contents of the error. + * @param error error or {@code null} for none + */ + public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { + this.error = error; + return this; + } + + /** + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. + * @return value or {@code null} for none + */ + public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() { + return instanceActionDetails; + } + + /** + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. + * @param instanceActionDetails instanceActionDetails or {@code null} for none + */ + public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails) { + this.instanceActionDetails = instanceActionDetails; + return this; + } + + /** + * Output only. The time that this error occurred. This value is in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getTimestamp() { + return timestamp; + } + + /** + * Output only. The time that this error occurred. This value is in RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public InstanceManagedByIgmError setTimestamp(java.lang.String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public InstanceManagedByIgmError set(String fieldName, Object value) { + return (InstanceManagedByIgmError) super.set(fieldName, value); + } + + @Override + public InstanceManagedByIgmError clone() { + return (InstanceManagedByIgmError) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java new file mode 100644 index 00000000000..b699c99ec32 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -0,0 +1,126 @@ +/* + * 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 InstanceManagedByIgmErrorInstanceActionDetails. + * + *

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 InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ManagedInstanceVersion version; + + /** + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: + * @param action action or {@code null} for none + */ + public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. + * @param instance instance or {@code null} for none + */ + public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. + * @return value or {@code null} for none + */ + public ManagedInstanceVersion getVersion() { + return version; + } + + /** + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. + * @param version version or {@code null} for none + */ + public InstanceManagedByIgmErrorInstanceActionDetails setVersion(ManagedInstanceVersion version) { + this.version = version; + return this; + } + + @Override + public InstanceManagedByIgmErrorInstanceActionDetails set(String fieldName, Object value) { + return (InstanceManagedByIgmErrorInstanceActionDetails) super.set(fieldName, value); + } + + @Override + public InstanceManagedByIgmErrorInstanceActionDetails clone() { + return (InstanceManagedByIgmErrorInstanceActionDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java new file mode 100644 index 00000000000..6202587499a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstanceManagedByIgmErrorManagedInstanceError. + * + *

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 InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { + + /** + * Output only. Error code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * Output only. Error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * Output only. Error code. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * Output only. Error code. + * @param code code or {@code null} for none + */ + public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * Output only. Error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * Output only. Error message. + * @param message message or {@code null} for none + */ + public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public InstanceManagedByIgmErrorManagedInstanceError set(String fieldName, Object value) { + return (InstanceManagedByIgmErrorManagedInstanceError) super.set(fieldName, value); + } + + @Override + public InstanceManagedByIgmErrorManagedInstanceError clone() { + return (InstanceManagedByIgmErrorManagedInstanceError) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceMoveRequest.java new file mode 100644 index 00000000000..ca2b22b1a1d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceMoveRequest.java @@ -0,0 +1,108 @@ +/* + * 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 InstanceMoveRequest. + * + *

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 InstanceMoveRequest extends com.google.api.client.json.GenericJson { + + /** + * The URL of the destination zone to move the instance. This can be a full or partial URL. For + * example, the following are all valid URLs to a zone: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationZone; + + /** + * The URL of the target instance to move. This can be a full or partial URL. For example, the + * following are all valid URLs to an instance: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance - zones/zone/instances/instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetInstance; + + /** + * The URL of the destination zone to move the instance. This can be a full or partial URL. For + * example, the following are all valid URLs to a zone: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * @return value or {@code null} for none + */ + public java.lang.String getDestinationZone() { + return destinationZone; + } + + /** + * The URL of the destination zone to move the instance. This can be a full or partial URL. For + * example, the following are all valid URLs to a zone: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone - + * projects/project/zones/zone - zones/zone + * @param destinationZone destinationZone or {@code null} for none + */ + public InstanceMoveRequest setDestinationZone(java.lang.String destinationZone) { + this.destinationZone = destinationZone; + return this; + } + + /** + * The URL of the target instance to move. This can be a full or partial URL. For example, the + * following are all valid URLs to an instance: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance - zones/zone/instances/instance + * @return value or {@code null} for none + */ + public java.lang.String getTargetInstance() { + return targetInstance; + } + + /** + * The URL of the target instance to move. This can be a full or partial URL. For example, the + * following are all valid URLs to an instance: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance - zones/zone/instances/instance + * @param targetInstance targetInstance or {@code null} for none + */ + public InstanceMoveRequest setTargetInstance(java.lang.String targetInstance) { + this.targetInstance = targetInstance; + return this; + } + + @Override + public InstanceMoveRequest set(String fieldName, Object value) { + return (InstanceMoveRequest) super.set(fieldName, value); + } + + @Override + public InstanceMoveRequest clone() { + return (InstanceMoveRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceParams.java new file mode 100644 index 00000000000..49c6a64f9e1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -0,0 +1,102 @@ +/* + * 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; + +/** + * Additional instance params. + * + *

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 InstanceParams extends com.google.api.client.json.GenericJson { + + /** + * Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration requestValidForDuration; + + /** + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. + * @return value or {@code null} for none + */ + public Duration getRequestValidForDuration() { + return requestValidForDuration; + } + + /** + * Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. + * @param requestValidForDuration requestValidForDuration or {@code null} for none + */ + public InstanceParams setRequestValidForDuration(Duration requestValidForDuration) { + this.requestValidForDuration = requestValidForDuration; + return this; + } + + /** + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public InstanceParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public InstanceParams set(String fieldName, Object value) { + return (InstanceParams) super.set(fieldName, value); + } + + @Override + public InstanceParams clone() { + return (InstanceParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceProperties.java new file mode 100644 index 00000000000..9020547cace --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -0,0 +1,687 @@ +/* + * 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 InstanceProperties. + * + *

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 InstanceProperties extends com.google.api.client.json.GenericJson { + + /** + * Controls for advanced machine-related behavior features. Note that for MachineImage, this is + * not supported yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AdvancedMachineFeatures advancedMachineFeatures; + + /** + * Enables instances created based on these properties to send packets with source IP addresses + * other than their own and receive packets with destination IP addresses other than their own. If + * these instances will be used as an IP gateway or it will be set as the next-hop in a Route + * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + * documentation for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canIpForward; + + /** + * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported + * yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConfidentialInstanceConfig confidentialInstanceConfig; + + /** + * An optional text description for the instances that are created from these properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * An array of disks that are associated with the instances that are created from these + * properties. + * 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); + } + + /** + * A list of guest accelerator cards' type and count to use for instances created from these + * properties. + * 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); + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyRevocationActionType; + + /** + * Labels to apply to instances that are created from these properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Specifies which method should be used for encrypting the Local SSDs attached to the VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localSsdEncryptionMode; + + /** + * The machine type to use for instances that are created from these properties. This field only + * accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or + * partial URL, for example `projects/my-l7ilb-project/zones/us- + * central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * The metadata key/value pairs to assign to instances that are created from these properties. + * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata + * for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Metadata metadata; + + /** + * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or + * newer cpu/platform. Applicable values are the friendly names of CPU platforms, such + * asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, + * read Specifying a Minimum CPU Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + + /** + * An array of network access configurations for this interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkInterfaces; + + /** + * Note that for MachineImage, this is not supported yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPerformanceConfig networkPerformanceConfig; + + /** + * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as + * default. Note that for MachineImage, this is not supported yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateIpv6GoogleAccess; + + /** + * Specifies the reservations that instances can consume from. Note that for MachineImage, this is + * not supported yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationAffinity reservationAffinity; + + /** + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Resource policies (names, not URLs) applied to instances created from these properties. Note + * that for MachineImage, this is not supported yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Specifies the scheduling options for the instances that are created from these properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Scheduling scheduling; + + /** + * A list of service accounts with specified scopes. Access tokens for these service accounts are + * available to the instances that are created from these properties. Use metadata queries to + * obtain the access tokens for these instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceAccounts; + + /** + * Note that for MachineImage, this is not supported yet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceConfig shieldedInstanceConfig; + + /** + * A list of tags to apply to the instances that are created from these properties. The tags + * identify valid sources or targets for network firewalls. The setTags method can modify this + * list of tags. Each tag within the list must comply with RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Tags tags; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WorkloadIdentityConfig workloadIdentityConfig; + + /** + * Controls for advanced machine-related behavior features. Note that for MachineImage, this is + * not supported yet. + * @return value or {@code null} for none + */ + public AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures; + } + + /** + * Controls for advanced machine-related behavior features. Note that for MachineImage, this is + * not supported yet. + * @param advancedMachineFeatures advancedMachineFeatures or {@code null} for none + */ + public InstanceProperties setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures) { + this.advancedMachineFeatures = advancedMachineFeatures; + return this; + } + + /** + * Enables instances created based on these properties to send packets with source IP addresses + * other than their own and receive packets with destination IP addresses other than their own. If + * these instances will be used as an IP gateway or it will be set as the next-hop in a Route + * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + * documentation for more information. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanIpForward() { + return canIpForward; + } + + /** + * Enables instances created based on these properties to send packets with source IP addresses + * other than their own and receive packets with destination IP addresses other than their own. If + * these instances will be used as an IP gateway or it will be set as the next-hop in a Route + * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + * documentation for more information. + * @param canIpForward canIpForward or {@code null} for none + */ + public InstanceProperties setCanIpForward(java.lang.Boolean canIpForward) { + this.canIpForward = canIpForward; + return this; + } + + /** + * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported + * yet. + * @return value or {@code null} for none + */ + public ConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig; + } + + /** + * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported + * yet. + * @param confidentialInstanceConfig confidentialInstanceConfig or {@code null} for none + */ + public InstanceProperties setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig) { + this.confidentialInstanceConfig = confidentialInstanceConfig; + return this; + } + + /** + * An optional text description for the instances that are created from these properties. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional text description for the instances that are created from these properties. + * @param description description or {@code null} for none + */ + public InstanceProperties setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * An array of disks that are associated with the instances that are created from these + * properties. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * An array of disks that are associated with the instances that are created from these + * properties. + * @param disks disks or {@code null} for none + */ + public InstanceProperties setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * A list of guest accelerator cards' type and count to use for instances created from these + * properties. + * @return value or {@code null} for none + */ + public java.util.List getGuestAccelerators() { + return guestAccelerators; + } + + /** + * A list of guest accelerator cards' type and count to use for instances created from these + * properties. + * @param guestAccelerators guestAccelerators or {@code null} for none + */ + public InstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * @return value or {@code null} for none + */ + public java.lang.String getKeyRevocationActionType() { + return keyRevocationActionType; + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * @param keyRevocationActionType keyRevocationActionType or {@code null} for none + */ + public InstanceProperties setKeyRevocationActionType(java.lang.String keyRevocationActionType) { + this.keyRevocationActionType = keyRevocationActionType; + return this; + } + + /** + * Labels to apply to instances that are created from these properties. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to instances that are created from these properties. + * @param labels labels or {@code null} for none + */ + public InstanceProperties setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Specifies which method should be used for encrypting the Local SSDs attached to the VM. + * @return value or {@code null} for none + */ + public java.lang.String getLocalSsdEncryptionMode() { + return localSsdEncryptionMode; + } + + /** + * Specifies which method should be used for encrypting the Local SSDs attached to the VM. + * @param localSsdEncryptionMode localSsdEncryptionMode or {@code null} for none + */ + public InstanceProperties setLocalSsdEncryptionMode(java.lang.String localSsdEncryptionMode) { + this.localSsdEncryptionMode = localSsdEncryptionMode; + return this; + } + + /** + * The machine type to use for instances that are created from these properties. This field only + * accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or + * partial URL, for example `projects/my-l7ilb-project/zones/us- + * central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type to use for instances that are created from these properties. This field only + * accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or + * partial URL, for example `projects/my-l7ilb-project/zones/us- + * central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. + * @param machineType machineType or {@code null} for none + */ + public InstanceProperties setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * The metadata key/value pairs to assign to instances that are created from these properties. + * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata + * for more information. + * @return value or {@code null} for none + */ + public Metadata getMetadata() { + return metadata; + } + + /** + * The metadata key/value pairs to assign to instances that are created from these properties. + * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata + * for more information. + * @param metadata metadata or {@code null} for none + */ + public InstanceProperties setMetadata(Metadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or + * newer cpu/platform. Applicable values are the friendly names of CPU platforms, such + * asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, + * read Specifying a Minimum CPU Platform. + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or + * newer cpu/platform. Applicable values are the friendly names of CPU platforms, such + * asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, + * read Specifying a Minimum CPU Platform. + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public InstanceProperties setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + + /** + * An array of network access configurations for this interface. + * @return value or {@code null} for none + */ + public java.util.List getNetworkInterfaces() { + return networkInterfaces; + } + + /** + * An array of network access configurations for this interface. + * @param networkInterfaces networkInterfaces or {@code null} for none + */ + public InstanceProperties setNetworkInterfaces(java.util.List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + return this; + } + + /** + * Note that for MachineImage, this is not supported yet. + * @return value or {@code null} for none + */ + public NetworkPerformanceConfig getNetworkPerformanceConfig() { + return networkPerformanceConfig; + } + + /** + * Note that for MachineImage, this is not supported yet. + * @param networkPerformanceConfig networkPerformanceConfig or {@code null} for none + */ + public InstanceProperties setNetworkPerformanceConfig(NetworkPerformanceConfig networkPerformanceConfig) { + this.networkPerformanceConfig = networkPerformanceConfig; + return this; + } + + /** + * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as + * default. Note that for MachineImage, this is not supported yet. + * @return value or {@code null} for none + */ + public java.lang.String getPrivateIpv6GoogleAccess() { + return privateIpv6GoogleAccess; + } + + /** + * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as + * default. Note that for MachineImage, this is not supported yet. + * @param privateIpv6GoogleAccess privateIpv6GoogleAccess or {@code null} for none + */ + public InstanceProperties setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess) { + this.privateIpv6GoogleAccess = privateIpv6GoogleAccess; + return this; + } + + /** + * Specifies the reservations that instances can consume from. Note that for MachineImage, this is + * not supported yet. + * @return value or {@code null} for none + */ + public ReservationAffinity getReservationAffinity() { + return reservationAffinity; + } + + /** + * Specifies the reservations that instances can consume from. Note that for MachineImage, this is + * not supported yet. + * @param reservationAffinity reservationAffinity or {@code null} for none + */ + public InstanceProperties setReservationAffinity(ReservationAffinity reservationAffinity) { + this.reservationAffinity = reservationAffinity; + return this; + } + + /** + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + /** + * Resource policies (names, not URLs) applied to instances created from these properties. Note + * that for MachineImage, this is not supported yet. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies (names, not URLs) applied to instances created from these properties. Note + * that for MachineImage, this is not supported yet. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public InstanceProperties setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Specifies the scheduling options for the instances that are created from these properties. + * @return value or {@code null} for none + */ + public Scheduling getScheduling() { + return scheduling; + } + + /** + * Specifies the scheduling options for the instances that are created from these properties. + * @param scheduling scheduling or {@code null} for none + */ + public InstanceProperties setScheduling(Scheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + /** + * A list of service accounts with specified scopes. Access tokens for these service accounts are + * available to the instances that are created from these properties. Use metadata queries to + * obtain the access tokens for these instances. + * @return value or {@code null} for none + */ + public java.util.List getServiceAccounts() { + return serviceAccounts; + } + + /** + * A list of service accounts with specified scopes. Access tokens for these service accounts are + * available to the instances that are created from these properties. Use metadata queries to + * obtain the access tokens for these instances. + * @param serviceAccounts serviceAccounts or {@code null} for none + */ + public InstanceProperties setServiceAccounts(java.util.List serviceAccounts) { + this.serviceAccounts = serviceAccounts; + return this; + } + + /** + * Note that for MachineImage, this is not supported yet. + * @return value or {@code null} for none + */ + public ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig; + } + + /** + * Note that for MachineImage, this is not supported yet. + * @param shieldedInstanceConfig shieldedInstanceConfig or {@code null} for none + */ + public InstanceProperties setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) { + this.shieldedInstanceConfig = shieldedInstanceConfig; + return this; + } + + /** + * A list of tags to apply to the instances that are created from these properties. The tags + * identify valid sources or targets for network firewalls. The setTags method can modify this + * list of tags. Each tag within the list must comply with RFC1035. + * @return value or {@code null} for none + */ + public Tags getTags() { + return tags; + } + + /** + * A list of tags to apply to the instances that are created from these properties. The tags + * identify valid sources or targets for network firewalls. The setTags method can modify this + * list of tags. Each tag within the list must comply with RFC1035. + * @param tags tags or {@code null} for none + */ + public InstanceProperties setTags(Tags tags) { + this.tags = tags; + return this; + } + + /** + * @return value or {@code null} for none + */ + public WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig; + } + + /** + * @param workloadIdentityConfig workloadIdentityConfig or {@code null} for none + */ + public InstanceProperties setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig) { + this.workloadIdentityConfig = workloadIdentityConfig; + return this; + } + + @Override + public InstanceProperties set(String fieldName, Object value) { + return (InstanceProperties) super.set(fieldName, value); + } + + @Override + public InstanceProperties clone() { + return (InstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java new file mode 100644 index 00000000000..724fff2f050 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java @@ -0,0 +1,117 @@ +/* + * 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 change that you want to make to the instance properties. + * + *

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 InstancePropertiesPatch extends com.google.api.client.json.GenericJson { + + /** + * This optional flag exposes the hashed physical host ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exposeHostTopology; + + /** + * The label key-value pairs that you want to patch onto the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The metadata key-value pairs that you want to patch onto the instance. For more information, + * see Project and instance metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * This optional flag exposes the hashed physical host ID. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExposeHostTopology() { + return exposeHostTopology; + } + + /** + * This optional flag exposes the hashed physical host ID. + * @param exposeHostTopology exposeHostTopology or {@code null} for none + */ + public InstancePropertiesPatch setExposeHostTopology(java.lang.Boolean exposeHostTopology) { + this.exposeHostTopology = exposeHostTopology; + return this; + } + + /** + * The label key-value pairs that you want to patch onto the instance. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The label key-value pairs that you want to patch onto the instance. + * @param labels labels or {@code null} for none + */ + public InstancePropertiesPatch setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The metadata key-value pairs that you want to patch onto the instance. For more information, + * see Project and instance metadata. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * The metadata key-value pairs that you want to patch onto the instance. For more information, + * see Project and instance metadata. + * @param metadata metadata or {@code null} for none + */ + public InstancePropertiesPatch setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + @Override + public InstancePropertiesPatch set(String fieldName, Object value) { + return (InstancePropertiesPatch) super.set(fieldName, value); + } + + @Override + public InstancePropertiesPatch clone() { + return (InstancePropertiesPatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceReference.java new file mode 100644 index 00000000000..2f28a8b7f88 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceReference.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; + +/** + * Model definition for InstanceReference. + * + *

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 InstanceReference extends com.google.api.client.json.GenericJson { + + /** + * The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances + * @param instance instance or {@code null} for none + */ + public InstanceReference setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + @Override + public InstanceReference set(String fieldName, Object value) { + return (InstanceReference) super.set(fieldName, value); + } + + @Override + public InstanceReference clone() { + return (InstanceReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettings.java new file mode 100644 index 00000000000..c8fde84cc91 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -0,0 +1,204 @@ +/* + * 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 Instance Settings resource. You can use instance settings to configure default + * settings for Compute Engine VM instances. For example, you can use it to configure default + * machine type of Compute Engine VM instances. + * + *

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 InstanceSettings extends com.google.api.client.json.GenericJson { + + /** + * Specifies a fingerprint for instance settings, which is essentially a hash of the instance + * settings resource's contents and used for optimistic locking. The fingerprint is initially + * generated by Compute Engine and changes after every request to modify or update the instance + * settings resource. You must always provide an up-to-date fingerprint hash in order to update or + * change the resource, otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance + * settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The metadata key/value pairs assigned to all the instances in the corresponding scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceSettingsMetadata metadata; + + /** + * Output only. [Output Only] URL of the zone where the resource resides You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Specifies a fingerprint for instance settings, which is essentially a hash of the instance + * settings resource's contents and used for optimistic locking. The fingerprint is initially + * generated by Compute Engine and changes after every request to modify or update the instance + * settings resource. You must always provide an up-to-date fingerprint hash in order to update or + * change the resource, otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Specifies a fingerprint for instance settings, which is essentially a hash of the instance + * settings resource's contents and used for optimistic locking. The fingerprint is initially + * generated by Compute Engine and changes after every request to modify or update the instance + * settings resource. You must always provide an up-to-date fingerprint hash in order to update or + * change the resource, otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Specifies a fingerprint for instance settings, which is essentially a hash of the instance + * settings resource's contents and used for optimistic locking. The fingerprint is initially + * generated by Compute Engine and changes after every request to modify or update the instance + * settings resource. You must always provide an up-to-date fingerprint hash in order to update or + * change the resource, otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public InstanceSettings setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Specifies a fingerprint for instance settings, which is essentially a hash of the instance + * settings resource's contents and used for optimistic locking. The fingerprint is initially + * generated by Compute Engine and changes after every request to modify or update the instance + * settings resource. You must always provide an up-to-date fingerprint hash in order to update or + * change the resource, otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstanceSettings encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance + * settings. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance + * settings. + * @param kind kind or {@code null} for none + */ + public InstanceSettings setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The metadata key/value pairs assigned to all the instances in the corresponding scope. + * @return value or {@code null} for none + */ + public InstanceSettingsMetadata getMetadata() { + return metadata; + } + + /** + * The metadata key/value pairs assigned to all the instances in the corresponding scope. + * @param metadata metadata or {@code null} for none + */ + public InstanceSettings setMetadata(InstanceSettingsMetadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the resource resides You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the resource resides You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public InstanceSettings setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InstanceSettings set(String fieldName, Object value) { + return (InstanceSettings) super.set(fieldName, value); + } + + @Override + public InstanceSettings clone() { + return (InstanceSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java new file mode 100644 index 00000000000..560dee51139 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstanceSettingsMetadata. + * + *

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 InstanceSettingsMetadata extends com.google.api.client.json.GenericJson { + + /** + * A metadata key/value items map. The total size of all keys and values must be less than 512KB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A metadata key/value items map. The total size of all keys and values must be less than 512KB. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A metadata key/value items map. The total size of all keys and values must be less than 512KB. + * @param items items or {@code null} for none + */ + public InstanceSettingsMetadata setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * @param kind kind or {@code null} for none + */ + public InstanceSettingsMetadata setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public InstanceSettingsMetadata set(String fieldName, Object value) { + return (InstanceSettingsMetadata) super.set(fieldName, value); + } + + @Override + public InstanceSettingsMetadata clone() { + return (InstanceSettingsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java new file mode 100644 index 00000000000..52a70c08037 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -0,0 +1,329 @@ +/* + * 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 an Instance Template resource. + * + * Google Compute Engine has two Instance Template resources: + * + * * [Global](/compute/docs/reference/rest/v1/instanceTemplates) * + * [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) + * + * You can reuse a global instance template in different regions whereas you can use a regional + * instance template in a specified region only. If you want to reduce cross-region dependency or + * achieve data residency, use a regional instance template. + * + * To create VMs, managed instance groups, and reservations, you can use either global or regional + * instance templates. + * + * For more information, readInstance Templates. + * + *

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 InstanceTemplate extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text + * format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] A unique identifier for this instance template. The server defines + * this identifier. + * 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] The resource type, which is alwayscompute#instanceTemplate for + * instance templates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource; provided by the client 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; + + /** + * The instance properties for this instance template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceProperties properties; + + /** + * Output only. [Output Only] URL of the region where the instance template resides. Only + * applicable for regional resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * The source instance used to create the template. You can provide this as a partial or full URL + * to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstance; + + /** + * The source instance params to use to create this instance template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SourceInstanceParams sourceInstanceParams; + + /** + * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text + * format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text + * format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InstanceTemplate setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InstanceTemplate setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this instance template. The server defines + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this instance template. The server defines + * this identifier. + * @param id id or {@code null} for none + */ + public InstanceTemplate setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for + * instance templates. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for + * instance templates. + * @param kind kind or {@code null} for none + */ + public InstanceTemplate setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 InstanceTemplate setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The instance properties for this instance template. + * @return value or {@code null} for none + */ + public InstanceProperties getProperties() { + return properties; + } + + /** + * The instance properties for this instance template. + * @param properties properties or {@code null} for none + */ + public InstanceTemplate setProperties(InstanceProperties properties) { + this.properties = properties; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the instance template resides. Only + * applicable for regional resources. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the instance template resides. Only + * applicable for regional resources. + * @param region region or {@code null} for none + */ + public InstanceTemplate setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * @param selfLink selfLink or {@code null} for none + */ + public InstanceTemplate setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The source instance used to create the template. You can provide this as a partial or full URL + * to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstance() { + return sourceInstance; + } + + /** + * The source instance used to create the template. You can provide this as a partial or full URL + * to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance + * @param sourceInstance sourceInstance or {@code null} for none + */ + public InstanceTemplate setSourceInstance(java.lang.String sourceInstance) { + this.sourceInstance = sourceInstance; + return this; + } + + /** + * The source instance params to use to create this instance template. + * @return value or {@code null} for none + */ + public SourceInstanceParams getSourceInstanceParams() { + return sourceInstanceParams; + } + + /** + * The source instance params to use to create this instance template. + * @param sourceInstanceParams sourceInstanceParams or {@code null} for none + */ + public InstanceTemplate setSourceInstanceParams(SourceInstanceParams sourceInstanceParams) { + this.sourceInstanceParams = sourceInstanceParams; + return this; + } + + @Override + public InstanceTemplate set(String fieldName, Object value) { + return (InstanceTemplate) super.set(fieldName, value); + } + + @Override + public InstanceTemplate clone() { + return (InstanceTemplate) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java new file mode 100644 index 00000000000..ef55a363036 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -0,0 +1,377 @@ +/* + * 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; + +/** + * Contains a list of InstanceTemplatesScopedList. + * + *

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 InstanceTemplateAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 InstanceTemplatesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InstanceTemplateAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceTemplatesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of InstanceTemplatesScopedList resources. + * @param items items or {@code null} for none + */ + public InstanceTemplateAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public InstanceTemplateAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceTemplateAggregatedList 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 InstanceTemplateAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstanceTemplateAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceTemplateAggregatedList set(String fieldName, Object value) { + return (InstanceTemplateAggregatedList) super.set(fieldName, value); + } + + @Override + public InstanceTemplateAggregatedList clone() { + return (InstanceTemplateAggregatedList) 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 InstanceTemplateAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateList.java new file mode 100644 index 00000000000..c05aad2a4bd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplateList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of instance templates. + * + *

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 InstanceTemplateList extends com.google.api.client.json.GenericJson { + + /** + * [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 InstanceTemplate 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 InstanceTemplate 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(InstanceTemplate.class); + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceTemplatesListResponse for instance template lists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InstanceTemplateList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceTemplate resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceTemplate resources. + * @param items items or {@code null} for none + */ + public InstanceTemplateList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceTemplatesListResponse for instance template lists. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceTemplatesListResponse for instance template lists. + * @param kind kind or {@code null} for none + */ + public InstanceTemplateList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstanceTemplateList 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 InstanceTemplateList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstanceTemplateList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceTemplateList set(String fieldName, Object value) { + return (InstanceTemplateList) super.set(fieldName, value); + } + + @Override + public InstanceTemplateList clone() { + return (InstanceTemplateList) 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 InstanceTemplateListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplatesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplatesScopedList.java new file mode 100644 index 00000000000..b81988630a5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceTemplatesScopedList.java @@ -0,0 +1,285 @@ +/* + * 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 InstanceTemplatesScopedList. + * + *

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 InstanceTemplatesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of instance templates that are contained within the specified project and + * zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceTemplates; + + static { + // hack to force ProGuard to consider InstanceTemplate 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(InstanceTemplate.class); + } + + /** + * [Output Only] An informational warning that replaces the list of instance templates when the + * list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of instance templates that are contained within the specified project and + * zone. + * @return value or {@code null} for none + */ + public java.util.List getInstanceTemplates() { + return instanceTemplates; + } + + /** + * [Output Only] A list of instance templates that are contained within the specified project and + * zone. + * @param instanceTemplates instanceTemplates or {@code null} for none + */ + public InstanceTemplatesScopedList setInstanceTemplates(java.util.List instanceTemplates) { + this.instanceTemplates = instanceTemplates; + return this; + } + + /** + * [Output Only] An informational warning that replaces the list of instance templates when the + * list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] An informational warning that replaces the list of instance templates when the + * list is empty. + * @param warning warning or {@code null} for none + */ + public InstanceTemplatesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstanceTemplatesScopedList set(String fieldName, Object value) { + return (InstanceTemplatesScopedList) super.set(fieldName, value); + } + + @Override + public InstanceTemplatesScopedList clone() { + return (InstanceTemplatesScopedList) super.clone(); + } + + /** + * [Output Only] An informational warning that replaces the list of instance templates when the list + * is empty. + */ + 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 InstanceTemplatesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java new file mode 100644 index 00000000000..0337c8ee34c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -0,0 +1,114 @@ +/* + * 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 InstanceWithNamedPorts. + * + *

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 InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The URL of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Output only. [Output Only] The named ports that belong to this instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namedPorts; + + /** + * Output only. [Output Only] The status of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] The URL of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Output only. [Output Only] The URL of the instance. + * @param instance instance or {@code null} for none + */ + public InstanceWithNamedPorts setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Output only. [Output Only] The named ports that belong to this instance group. + * @return value or {@code null} for none + */ + public java.util.List getNamedPorts() { + return namedPorts; + } + + /** + * Output only. [Output Only] The named ports that belong to this instance group. + * @param namedPorts namedPorts or {@code null} for none + */ + public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts) { + this.namedPorts = namedPorts; + return this; + } + + /** + * Output only. [Output Only] The status of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the instance. + * @param status status or {@code null} for none + */ + public InstanceWithNamedPorts setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public InstanceWithNamedPorts set(String fieldName, Object value) { + return (InstanceWithNamedPorts) super.set(fieldName, value); + } + + @Override + public InstanceWithNamedPorts clone() { + return (InstanceWithNamedPorts) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesAddResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesAddResourcePoliciesRequest.java new file mode 100644 index 00000000000..26f4f1606c4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesAddResourcePoliciesRequest.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; + +/** + * Model definition for InstancesAddResourcePoliciesRequest. + * + *

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 InstancesAddResourcePoliciesRequest extends com.google.api.client.json.GenericJson { + + /** + * Resource policies to be added to this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Resource policies to be added to this instance. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies to be added to this instance. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public InstancesAddResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + @Override + public InstancesAddResourcePoliciesRequest set(String fieldName, Object value) { + return (InstancesAddResourcePoliciesRequest) super.set(fieldName, value); + } + + @Override + public InstancesAddResourcePoliciesRequest clone() { + return (InstancesAddResourcePoliciesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesBulkInsertOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesBulkInsertOperationMetadata.java new file mode 100644 index 00000000000..edf1550edaf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesBulkInsertOperationMetadata.java @@ -0,0 +1,72 @@ +/* + * 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 InstancesBulkInsertOperationMetadata. + * + *

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 InstancesBulkInsertOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Status information per location (location name is key). Example key: zones/us-central1-a + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map perLocationStatus; + + static { + // hack to force ProGuard to consider BulkInsertOperationStatus 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(BulkInsertOperationStatus.class); + } + + /** + * Status information per location (location name is key). Example key: zones/us-central1-a + * @return value or {@code null} for none + */ + public java.util.Map getPerLocationStatus() { + return perLocationStatus; + } + + /** + * Status information per location (location name is key). Example key: zones/us-central1-a + * @param perLocationStatus perLocationStatus or {@code null} for none + */ + public InstancesBulkInsertOperationMetadata setPerLocationStatus(java.util.Map perLocationStatus) { + this.perLocationStatus = perLocationStatus; + return this; + } + + @Override + public InstancesBulkInsertOperationMetadata set(String fieldName, Object value) { + return (InstancesBulkInsertOperationMetadata) super.set(fieldName, value); + } + + @Override + public InstancesBulkInsertOperationMetadata clone() { + return (InstancesBulkInsertOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponse.java new file mode 100644 index 00000000000..4b26903e14f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponse.java @@ -0,0 +1,96 @@ +/* + * 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 InstancesGetEffectiveFirewallsResponse. + * + *

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 InstancesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Effective firewalls from firewall policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewallPolicys; + + /** + * Effective firewalls on the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewalls; + + static { + // hack to force ProGuard to consider Firewall 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(Firewall.class); + } + + /** + * [Output Only] Effective firewalls from firewall policies. + * @return value or {@code null} for none + */ + public java.util.List getFirewallPolicys() { + return firewallPolicys; + } + + /** + * [Output Only] Effective firewalls from firewall policies. + * @param firewallPolicys firewallPolicys or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponse setFirewallPolicys(java.util.List firewallPolicys) { + this.firewallPolicys = firewallPolicys; + return this; + } + + /** + * Effective firewalls on the instance. + * @return value or {@code null} for none + */ + public java.util.List getFirewalls() { + return firewalls; + } + + /** + * Effective firewalls on the instance. + * @param firewalls firewalls or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponse setFirewalls(java.util.List firewalls) { + this.firewalls = firewalls; + return this; + } + + @Override + public InstancesGetEffectiveFirewallsResponse set(String fieldName, Object value) { + return (InstancesGetEffectiveFirewallsResponse) super.set(fieldName, value); + } + + @Override + public InstancesGetEffectiveFirewallsResponse clone() { + return (InstancesGetEffectiveFirewallsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java new file mode 100644 index 00000000000..4ef7f976b66 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -0,0 +1,237 @@ +/* + * 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 InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy. + * + *

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 InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. [Output Only] The name of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List packetMirroringRules; + + static { + // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * [Output Only] The rules that apply to the instance. Only rules that target the specific VM + * instance are returned if target service accounts or target secure tags are specified in the + * rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + static { + // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); + } + + /** + * Output only. [Output Only] The short name of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String shortName; + + /** + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. + * @param displayName displayName or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. [Output Only] The name of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the firewall policy. + * @param name name or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * @return value or {@code null} for none + */ + public java.util.List getPacketMirroringRules() { + return packetMirroringRules; + } + + /** + * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * @param packetMirroringRules packetMirroringRules or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { + this.packetMirroringRules = packetMirroringRules; + return this; + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * @param priority priority or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * [Output Only] The rules that apply to the instance. Only rules that target the specific VM + * instance are returned if target service accounts or target secure tags are specified in the + * rules. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * [Output Only] The rules that apply to the instance. Only rules that target the specific VM + * instance are returned if target service accounts or target secure tags are specified in the + * rules. + * @param rules rules or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * Output only. [Output Only] The short name of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getShortName() { + return shortName; + } + + /** + * Output only. [Output Only] The short name of the firewall policy. + * @param shortName shortName or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { + this.shortName = shortName; + return this; + } + + /** + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + * @param type type or {@code null} for none + */ + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy set(String fieldName, Object value) { + return (InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.set(fieldName, value); + } + + @Override + public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy clone() { + return (InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesRemoveResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesRemoveResourcePoliciesRequest.java new file mode 100644 index 00000000000..e5b45a5b56e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesRemoveResourcePoliciesRequest.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; + +/** + * Model definition for InstancesRemoveResourcePoliciesRequest. + * + *

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 InstancesRemoveResourcePoliciesRequest extends com.google.api.client.json.GenericJson { + + /** + * Resource policies to be removed from this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Resource policies to be removed from this instance. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies to be removed from this instance. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public InstancesRemoveResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + @Override + public InstancesRemoveResourcePoliciesRequest set(String fieldName, Object value) { + return (InstancesRemoveResourcePoliciesRequest) super.set(fieldName, value); + } + + @Override + public InstancesRemoveResourcePoliciesRequest clone() { + return (InstancesRemoveResourcePoliciesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequest.java new file mode 100644 index 00000000000..05d11ac941d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequest.java @@ -0,0 +1,87 @@ +/* + * 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 InstancesReportHostAsFaultyRequest. + * + *

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 InstancesReportHostAsFaultyRequest extends com.google.api.client.json.GenericJson { + + /** + * The disruption schedule for the VM. Required field, only allows IMMEDIATE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disruptionSchedule; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List faultReasons; + + /** + * The disruption schedule for the VM. Required field, only allows IMMEDIATE. + * @return value or {@code null} for none + */ + public java.lang.String getDisruptionSchedule() { + return disruptionSchedule; + } + + /** + * The disruption schedule for the VM. Required field, only allows IMMEDIATE. + * @param disruptionSchedule disruptionSchedule or {@code null} for none + */ + public InstancesReportHostAsFaultyRequest setDisruptionSchedule(java.lang.String disruptionSchedule) { + this.disruptionSchedule = disruptionSchedule; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getFaultReasons() { + return faultReasons; + } + + /** + * @param faultReasons faultReasons or {@code null} for none + */ + public InstancesReportHostAsFaultyRequest setFaultReasons(java.util.List faultReasons) { + this.faultReasons = faultReasons; + return this; + } + + @Override + public InstancesReportHostAsFaultyRequest set(String fieldName, Object value) { + return (InstancesReportHostAsFaultyRequest) super.set(fieldName, value); + } + + @Override + public InstancesReportHostAsFaultyRequest clone() { + return (InstancesReportHostAsFaultyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequestFaultReason.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequestFaultReason.java new file mode 100644 index 00000000000..8d67114ef7b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesReportHostAsFaultyRequestFaultReason.java @@ -0,0 +1,84 @@ +/* + * 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 InstancesReportHostAsFaultyRequestFaultReason. + * + *

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 InstancesReportHostAsFaultyRequestFaultReason extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String behavior; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBehavior() { + return behavior; + } + + /** + * @param behavior behavior or {@code null} for none + */ + public InstancesReportHostAsFaultyRequestFaultReason setBehavior(java.lang.String behavior) { + this.behavior = behavior; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * @param description description or {@code null} for none + */ + public InstancesReportHostAsFaultyRequestFaultReason setDescription(java.lang.String description) { + this.description = description; + return this; + } + + @Override + public InstancesReportHostAsFaultyRequestFaultReason set(String fieldName, Object value) { + return (InstancesReportHostAsFaultyRequestFaultReason) super.set(fieldName, value); + } + + @Override + public InstancesReportHostAsFaultyRequestFaultReason clone() { + return (InstancesReportHostAsFaultyRequestFaultReason) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesScopedList.java new file mode 100644 index 00000000000..459c051a5af --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 InstancesScopedList. + * + *

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 InstancesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of instances contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + static { + // hack to force ProGuard to consider Instance 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(Instance.class); + } + + /** + * [Output Only] Informational warning which replaces the list of instances when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of instances contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * [Output Only] A list of instances contained in this scope. + * @param instances instances or {@code null} for none + */ + public InstancesScopedList setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of instances when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of instances when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public InstancesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstancesScopedList set(String fieldName, Object value) { + return (InstancesScopedList) super.set(fieldName, value); + } + + @Override + public InstancesScopedList clone() { + return (InstancesScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of instances when the list is empty. + */ + 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 InstancesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstancesSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetLabelsRequest.java new file mode 100644 index 00000000000..8c1c2b6e256 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetLabelsRequest.java @@ -0,0 +1,120 @@ +/* + * 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 InstancesSetLabelsRequest. + * + *

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 InstancesSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide + * the latest fingerprint value when making a request to add or change labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide + * the latest fingerprint value when making a request to add or change labels. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide + * the latest fingerprint value when making a request to add or change labels. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide + * the latest fingerprint value when making a request to add or change labels. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public InstancesSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide + * the latest fingerprint value when making a request to add or change labels. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstancesSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * @param labels labels or {@code null} for none + */ + public InstancesSetLabelsRequest setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + @Override + public InstancesSetLabelsRequest set(String fieldName, Object value) { + return (InstancesSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetLabelsRequest clone() { + return (InstancesSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineResourcesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineResourcesRequest.java new file mode 100644 index 00000000000..cbdefba2cc0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineResourcesRequest.java @@ -0,0 +1,72 @@ +/* + * 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 InstancesSetMachineResourcesRequest. + * + *

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 InstancesSetMachineResourcesRequest extends com.google.api.client.json.GenericJson { + + /** + * A list of the type and count of accelerator cards attached to the instance. + * 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); + } + + /** + * A list of the type and count of accelerator cards attached to the instance. + * @return value or {@code null} for none + */ + public java.util.List getGuestAccelerators() { + return guestAccelerators; + } + + /** + * A list of the type and count of accelerator cards attached to the instance. + * @param guestAccelerators guestAccelerators or {@code null} for none + */ + public InstancesSetMachineResourcesRequest setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + + @Override + public InstancesSetMachineResourcesRequest set(String fieldName, Object value) { + return (InstancesSetMachineResourcesRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetMachineResourcesRequest clone() { + return (InstancesSetMachineResourcesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineTypeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineTypeRequest.java new file mode 100644 index 00000000000..0e864a8da2c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMachineTypeRequest.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; + +/** + * Model definition for InstancesSetMachineTypeRequest. + * + *

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 InstancesSetMachineTypeRequest extends com.google.api.client.json.GenericJson { + + /** + * Full or partial URL of the machine type resource. See Machine Types for a full list of machine + * types. For example:zones/us-central1-f/machineTypes/n1-standard-1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * Full or partial URL of the machine type resource. See Machine Types for a full list of machine + * types. For example:zones/us-central1-f/machineTypes/n1-standard-1 + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * Full or partial URL of the machine type resource. See Machine Types for a full list of machine + * types. For example:zones/us-central1-f/machineTypes/n1-standard-1 + * @param machineType machineType or {@code null} for none + */ + public InstancesSetMachineTypeRequest setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + @Override + public InstancesSetMachineTypeRequest set(String fieldName, Object value) { + return (InstancesSetMachineTypeRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetMachineTypeRequest clone() { + return (InstancesSetMachineTypeRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMinCpuPlatformRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMinCpuPlatformRequest.java new file mode 100644 index 00000000000..57775c0d37b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetMinCpuPlatformRequest.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; + +/** + * Model definition for InstancesSetMinCpuPlatformRequest. + * + *

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 InstancesSetMinCpuPlatformRequest extends com.google.api.client.json.GenericJson { + + /** + * Minimum cpu/platform this instance should be started at. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + + /** + * Minimum cpu/platform this instance should be started at. + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Minimum cpu/platform this instance should be started at. + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public InstancesSetMinCpuPlatformRequest setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + + @Override + public InstancesSetMinCpuPlatformRequest set(String fieldName, Object value) { + return (InstancesSetMinCpuPlatformRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetMinCpuPlatformRequest clone() { + return (InstancesSetMinCpuPlatformRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetNameRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetNameRequest.java new file mode 100644 index 00000000000..0bf0a7d2c82 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetNameRequest.java @@ -0,0 +1,93 @@ +/* + * 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 InstancesSetNameRequest. + * + *

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 InstancesSetNameRequest extends com.google.api.client.json.GenericJson { + + /** + * The current name of this resource, used to prevent conflicts. Provide the latest name when + * making a request to change name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentName; + + /** + * The name to be applied to the instance. Needs to be RFC 1035 compliant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The current name of this resource, used to prevent conflicts. Provide the latest name when + * making a request to change name. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentName() { + return currentName; + } + + /** + * The current name of this resource, used to prevent conflicts. Provide the latest name when + * making a request to change name. + * @param currentName currentName or {@code null} for none + */ + public InstancesSetNameRequest setCurrentName(java.lang.String currentName) { + this.currentName = currentName; + return this; + } + + /** + * The name to be applied to the instance. Needs to be RFC 1035 compliant. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name to be applied to the instance. Needs to be RFC 1035 compliant. + * @param name name or {@code null} for none + */ + public InstancesSetNameRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public InstancesSetNameRequest set(String fieldName, Object value) { + return (InstancesSetNameRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetNameRequest clone() { + return (InstancesSetNameRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetSecurityPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetSecurityPolicyRequest.java new file mode 100644 index 00000000000..b921c4f7aed --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetSecurityPolicyRequest.java @@ -0,0 +1,99 @@ +/* + * 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 InstancesSetSecurityPolicyRequest. + * + *

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 InstancesSetSecurityPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * The network interfaces that the security policy will be applied to. Network interfaces use the + * nicN naming format. You can only set a security policy for network interfaces with an access + * config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkInterfaces; + + /** + * A full or partial URL to a security policy to add to this instance. If this field is set to an + * empty string it will remove the associated security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * The network interfaces that the security policy will be applied to. Network interfaces use the + * nicN naming format. You can only set a security policy for network interfaces with an access + * config. + * @return value or {@code null} for none + */ + public java.util.List getNetworkInterfaces() { + return networkInterfaces; + } + + /** + * The network interfaces that the security policy will be applied to. Network interfaces use the + * nicN naming format. You can only set a security policy for network interfaces with an access + * config. + * @param networkInterfaces networkInterfaces or {@code null} for none + */ + public InstancesSetSecurityPolicyRequest setNetworkInterfaces(java.util.List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + return this; + } + + /** + * A full or partial URL to a security policy to add to this instance. If this field is set to an + * empty string it will remove the associated security policy. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * A full or partial URL to a security policy to add to this instance. If this field is set to an + * empty string it will remove the associated security policy. + * @param securityPolicy securityPolicy or {@code null} for none + */ + public InstancesSetSecurityPolicyRequest setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public InstancesSetSecurityPolicyRequest set(String fieldName, Object value) { + return (InstancesSetSecurityPolicyRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetSecurityPolicyRequest clone() { + return (InstancesSetSecurityPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetServiceAccountRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetServiceAccountRequest.java new file mode 100644 index 00000000000..8d719acf77e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesSetServiceAccountRequest.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstancesSetServiceAccountRequest. + * + *

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 InstancesSetServiceAccountRequest extends com.google.api.client.json.GenericJson { + + /** + * Email address of the service account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * The list of scopes to be made available for this service account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Email address of the service account. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Email address of the service account. + * @param email email or {@code null} for none + */ + public InstancesSetServiceAccountRequest setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * The list of scopes to be made available for this service account. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * The list of scopes to be made available for this service account. + * @param scopes scopes or {@code null} for none + */ + public InstancesSetServiceAccountRequest setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + @Override + public InstancesSetServiceAccountRequest set(String fieldName, Object value) { + return (InstancesSetServiceAccountRequest) super.set(fieldName, value); + } + + @Override + public InstancesSetServiceAccountRequest clone() { + return (InstancesSetServiceAccountRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesStartWithEncryptionKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesStartWithEncryptionKeyRequest.java new file mode 100644 index 00000000000..549cd5516a7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesStartWithEncryptionKeyRequest.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstancesStartWithEncryptionKeyRequest. + * + *

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 InstancesStartWithEncryptionKeyRequest extends com.google.api.client.json.GenericJson { + + /** + * Array of disks associated with this instance that are protected with acustomer-supplied + * encryption key. + * + * In order to start the instance, the disk url and its corresponding key must be provided. + * + * If the disk is not protected with a customer-supplied encryption key it should not be + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider CustomerEncryptionKeyProtectedDisk 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(CustomerEncryptionKeyProtectedDisk.class); + } + + /** + * Array of disks associated with this instance that are protected with acustomer-supplied + * encryption key. + * + * In order to start the instance, the disk url and its corresponding key must be provided. + * + * If the disk is not protected with a customer-supplied encryption key it should not be + * specified. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Array of disks associated with this instance that are protected with acustomer-supplied + * encryption key. + * + * In order to start the instance, the disk url and its corresponding key must be provided. + * + * If the disk is not protected with a customer-supplied encryption key it should not be + * specified. + * @param disks disks or {@code null} for none + */ + public InstancesStartWithEncryptionKeyRequest setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + @Override + public InstancesStartWithEncryptionKeyRequest set(String fieldName, Object value) { + return (InstancesStartWithEncryptionKeyRequest) super.set(fieldName, value); + } + + @Override + public InstancesStartWithEncryptionKeyRequest clone() { + return (InstancesStartWithEncryptionKeyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesTroubleshootOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesTroubleshootOperationMetadata.java new file mode 100644 index 00000000000..f34bcf03f01 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstancesTroubleshootOperationMetadata.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Operation metadata for instances.troubleshoot. + * + *

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 InstancesTroubleshootOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Serialized output of the troubleshooting diagnostic run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String troubleshootOutput; + + /** + * Output only. [Output Only] Serialized output of the troubleshooting diagnostic run. + * @return value or {@code null} for none + */ + public java.lang.String getTroubleshootOutput() { + return troubleshootOutput; + } + + /** + * Output only. [Output Only] Serialized output of the troubleshooting diagnostic run. + * @param troubleshootOutput troubleshootOutput or {@code null} for none + */ + public InstancesTroubleshootOperationMetadata setTroubleshootOutput(java.lang.String troubleshootOutput) { + this.troubleshootOutput = troubleshootOutput; + return this; + } + + @Override + public InstancesTroubleshootOperationMetadata set(String fieldName, Object value) { + return (InstancesTroubleshootOperationMetadata) super.set(fieldName, value); + } + + @Override + public InstancesTroubleshootOperationMetadata clone() { + return (InstancesTroubleshootOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java new file mode 100644 index 00000000000..5bfec0fbc4a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -0,0 +1,708 @@ +/* + * 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 InstantSnapshot resource. + * + * You can use instant snapshots to create disk rollback points quickly.. + * + *

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 InstantSnapshot extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or + * X86_64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * 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] Type of the resource. Alwayscompute#instantSnapshot for + * InstantSnapshot resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. + * Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource; provided by the client 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; + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstantSnapshotParams params; + + /** + * Output only. [Output Only] URL of the region where the instant snapshot resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] Status information for the instant snapshot resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstantSnapshotResourceStatus resourceStatus; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * URL of the source disk used to create this instant snapshot. Note that the source disk must be + * in the same zone/region as the instant snapshot to be created. This can be a full or valid + * partial URL. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This + * value may be used to determine whether the InstantSnapshot was taken from the current or a + * previous instance of a given disk name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskId; + + /** + * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is part of. + * Note that the source instant snapshot group must be in the same zone/region as the instant + * snapshot to be created. This can be a full or valid partial URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotGroup; + + /** + * Output only. [Output Only] The ID value of the source instant snapshot group this + * InstantSnapshot is part of. This value may be used to determine whether the InstantSnapshot was + * created as part of an InstantSnapshotGroup creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotGroupId; + + /** + * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, + * FAILED, orREADY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or + * X86_64. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or + * X86_64. + * @param architecture architecture or {@code null} for none + */ + public InstantSnapshot setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InstantSnapshot setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + 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 InstantSnapshot setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for + * InstantSnapshot resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for + * InstantSnapshot resources. + * @param kind kind or {@code null} for none + */ + public InstantSnapshot setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public InstantSnapshot setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InstantSnapshot encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. + * Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. + * Label values may be empty. + * @param labels labels or {@code null} for none + */ + public InstantSnapshot setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 InstantSnapshot setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public InstantSnapshotParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public InstantSnapshot setParams(InstantSnapshotParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the instant snapshot resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the instant snapshot resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * @param region region or {@code null} for none + */ + public InstantSnapshot setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] Status information for the instant snapshot resource. + * @return value or {@code null} for none + */ + public InstantSnapshotResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] Status information for the instant snapshot resource. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 InstantSnapshot setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public InstantSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * URL of the source disk used to create this instant snapshot. Note that the source disk must be + * in the same zone/region as the instant snapshot to be created. This can be a full or valid + * partial URL. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * URL of the source disk used to create this instant snapshot. Note that the source disk must be + * in the same zone/region as the instant snapshot to be created. This can be a full or valid + * partial URL. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @param sourceDisk sourceDisk or {@code null} for none + */ + public InstantSnapshot setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This + * value may be used to determine whether the InstantSnapshot was taken from the current or a + * previous instance of a given disk name. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskId() { + return sourceDiskId; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This + * value may be used to determine whether the InstantSnapshot was taken from the current or a + * previous instance of a given disk name. + * @param sourceDiskId sourceDiskId or {@code null} for none + */ + public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + return this; + } + + /** + * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is part of. + * Note that the source instant snapshot group must be in the same zone/region as the instant + * snapshot to be created. This can be a full or valid partial URL. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotGroup() { + return sourceInstantSnapshotGroup; + } + + /** + * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is part of. + * Note that the source instant snapshot group must be in the same zone/region as the instant + * snapshot to be created. This can be a full or valid partial URL. + * @param sourceInstantSnapshotGroup sourceInstantSnapshotGroup or {@code null} for none + */ + public InstantSnapshot setSourceInstantSnapshotGroup(java.lang.String sourceInstantSnapshotGroup) { + this.sourceInstantSnapshotGroup = sourceInstantSnapshotGroup; + return this; + } + + /** + * Output only. [Output Only] The ID value of the source instant snapshot group this + * InstantSnapshot is part of. This value may be used to determine whether the InstantSnapshot was + * created as part of an InstantSnapshotGroup creation. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotGroupId() { + return sourceInstantSnapshotGroupId; + } + + /** + * Output only. [Output Only] The ID value of the source instant snapshot group this + * InstantSnapshot is part of. This value may be used to determine whether the InstantSnapshot was + * created as part of an InstantSnapshotGroup creation. + * @param sourceInstantSnapshotGroupId sourceInstantSnapshotGroupId or {@code null} for none + */ + public InstantSnapshot setSourceInstantSnapshotGroupId(java.lang.String sourceInstantSnapshotGroupId) { + this.sourceInstantSnapshotGroupId = sourceInstantSnapshotGroupId; + return this; + } + + /** + * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, + * FAILED, orREADY. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, + * FAILED, orREADY. + * @param status status or {@code null} for none + */ + public InstantSnapshot setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public InstantSnapshot setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InstantSnapshot set(String fieldName, Object value) { + return (InstantSnapshot) super.set(fieldName, value); + } + + @Override + public InstantSnapshot clone() { + return (InstantSnapshot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java new file mode 100644 index 00000000000..ce13907b150 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 InstantSnapshotAggregatedList. + * + *

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 InstantSnapshotAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 InstantSnapshotsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for + * aggregated lists of instantSnapshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 InstantSnapshotAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstantSnapshotsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of InstantSnapshotsScopedList resources. + * @param items items or {@code null} for none + */ + public InstantSnapshotAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for + * aggregated lists of instantSnapshots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for + * aggregated lists of instantSnapshots. + * @param kind kind or {@code null} for none + */ + public InstantSnapshotAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstantSnapshotAggregatedList set(String fieldName, Object value) { + return (InstantSnapshotAggregatedList) super.set(fieldName, value); + } + + @Override + public InstantSnapshotAggregatedList clone() { + return (InstantSnapshotAggregatedList) 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 InstantSnapshotAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java new file mode 100644 index 00000000000..cc0835f0895 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java @@ -0,0 +1,360 @@ +/* + * 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 an InstantSnapshotGroup resource. + * + * An instant snapshot group is a set of instant snapshots that represents a point in time state of + * a consistency group. + * + *

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 InstantSnapshotGroup extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Optional. An optional description of this resource. Provide this property when you create the + * 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; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for + * InstantSnapshotGroup resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Identifier. Name of the resource; provided by the client 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] URL of the region where the instant snapshot group resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstantSnapshotGroupResourceStatus resourceStatus; + + /** + * 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroup; + + /** + * Output only. [Output Only] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] URL of the zone where the instant snapshot group resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InstantSnapshotGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Optional. An optional description of this resource. Provide this property when you create the + * resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. An optional description of this resource. Provide this property when you create the + * resource. + * @param description description or {@code null} for none + */ + public InstantSnapshotGroup 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 InstantSnapshotGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for + * InstantSnapshotGroup resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for + * InstantSnapshotGroup resources. + * @param kind kind or {@code null} for none + */ + public InstantSnapshotGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Identifier. Name of the resource; provided by the client 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; + } + + /** + * Identifier. Name of the resource; provided by the client 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 InstantSnapshotGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the instant snapshot group resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the instant snapshot group resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * @param region region or {@code null} for none + */ + public InstantSnapshotGroup setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InstantSnapshotGroupResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * @param resourceStatus resourceStatus or {@code null} for none + */ + public InstantSnapshotGroup setResourceStatus(InstantSnapshotGroupResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + 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 InstantSnapshotGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public InstantSnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getSourceConsistencyGroup() { + return sourceConsistencyGroup; + } + + /** + * @param sourceConsistencyGroup sourceConsistencyGroup or {@code null} for none + */ + public InstantSnapshotGroup setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { + this.sourceConsistencyGroup = sourceConsistencyGroup; + return this; + } + + /** + * Output only. [Output Only] + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] + * @param status status or {@code null} for none + */ + public InstantSnapshotGroup setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the instant snapshot group resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the instant snapshot group resides. You must + * specify this field as part of the HTTP request URL. It is not settable as a field in the + * request body. + * @param zone zone or {@code null} for none + */ + public InstantSnapshotGroup setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InstantSnapshotGroup set(String fieldName, Object value) { + return (InstantSnapshotGroup) super.set(fieldName, value); + } + + @Override + public InstantSnapshotGroup clone() { + return (InstantSnapshotGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java new file mode 100644 index 00000000000..e40d2be4748 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java @@ -0,0 +1,78 @@ +/* + * 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 InstantSnapshotGroupParameters. + * + *

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 InstantSnapshotGroupParameters extends com.google.api.client.json.GenericJson { + + /** + * The source instant snapshot group used to create disks. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - https://w + * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotG + * roup - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup - + * zones/zone/instantSnapshotGroups/instantSnapshotGroup + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotGroup; + + /** + * The source instant snapshot group used to create disks. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - https://w + * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotG + * roup - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup - + * zones/zone/instantSnapshotGroups/instantSnapshotGroup + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotGroup() { + return sourceInstantSnapshotGroup; + } + + /** + * The source instant snapshot group used to create disks. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - https://w + * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotG + * roup - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup - + * zones/zone/instantSnapshotGroups/instantSnapshotGroup + * @param sourceInstantSnapshotGroup sourceInstantSnapshotGroup or {@code null} for none + */ + public InstantSnapshotGroupParameters setSourceInstantSnapshotGroup(java.lang.String sourceInstantSnapshotGroup) { + this.sourceInstantSnapshotGroup = sourceInstantSnapshotGroup; + return this; + } + + @Override + public InstantSnapshotGroupParameters set(String fieldName, Object value) { + return (InstantSnapshotGroupParameters) super.set(fieldName, value); + } + + @Override + public InstantSnapshotGroupParameters clone() { + return (InstantSnapshotGroupParameters) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java new file mode 100644 index 00000000000..44d3387e7de --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for InstantSnapshotGroupResourceStatus. + * + *

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 InstantSnapshotGroupResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String consistencyMembershipResolutionTime; + + /** + * Output only. [Output Only] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstantSnapshotGroupSourceInfo sourceInfo; + + /** + * Output only. [Output Only] + * @return value or {@code null} for none + */ + public String getConsistencyMembershipResolutionTime() { + return consistencyMembershipResolutionTime; + } + + /** + * Output only. [Output Only] + * @param consistencyMembershipResolutionTime consistencyMembershipResolutionTime or {@code null} for none + */ + public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(String consistencyMembershipResolutionTime) { + this.consistencyMembershipResolutionTime = consistencyMembershipResolutionTime; + return this; + } + + /** + * Output only. [Output Only] + * @return value or {@code null} for none + */ + public InstantSnapshotGroupSourceInfo getSourceInfo() { + return sourceInfo; + } + + /** + * Output only. [Output Only] + * @param sourceInfo sourceInfo or {@code null} for none + */ + public InstantSnapshotGroupResourceStatus setSourceInfo(InstantSnapshotGroupSourceInfo sourceInfo) { + this.sourceInfo = sourceInfo; + return this; + } + + @Override + public InstantSnapshotGroupResourceStatus set(String fieldName, Object value) { + return (InstantSnapshotGroupResourceStatus) super.set(fieldName, value); + } + + @Override + public InstantSnapshotGroupResourceStatus clone() { + return (InstantSnapshotGroupResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java new file mode 100644 index 00000000000..e89704779c9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java @@ -0,0 +1,84 @@ +/* + * 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 InstantSnapshotGroupSourceInfo. + * + *

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 InstantSnapshotGroupSourceInfo extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consistencyGroup; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consistencyGroupId; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getConsistencyGroup() { + return consistencyGroup; + } + + /** + * @param consistencyGroup consistencyGroup or {@code null} for none + */ + public InstantSnapshotGroupSourceInfo setConsistencyGroup(java.lang.String consistencyGroup) { + this.consistencyGroup = consistencyGroup; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getConsistencyGroupId() { + return consistencyGroupId; + } + + /** + * @param consistencyGroupId consistencyGroupId or {@code null} for none + */ + public InstantSnapshotGroupSourceInfo setConsistencyGroupId(java.lang.String consistencyGroupId) { + this.consistencyGroupId = consistencyGroupId; + return this; + } + + @Override + public InstantSnapshotGroupSourceInfo set(String fieldName, Object value) { + return (InstantSnapshotGroupSourceInfo) super.set(fieldName, value); + } + + @Override + public InstantSnapshotGroupSourceInfo clone() { + return (InstantSnapshotGroupSourceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java new file mode 100644 index 00000000000..545417f4f18 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of InstantSnapshot resources. + * + *

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 InstantSnapshotList extends com.google.api.client.json.GenericJson { + + /** + * [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 InstantSnapshot 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 InstantSnapshot 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(InstantSnapshot.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InstantSnapshotList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstantSnapshot resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstantSnapshot resources. + * @param items items or {@code null} for none + */ + public InstantSnapshotList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public InstantSnapshotList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InstantSnapshotList 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 InstantSnapshotList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InstantSnapshotList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstantSnapshotList set(String fieldName, Object value) { + return (InstantSnapshotList) super.set(fieldName, value); + } + + @Override + public InstantSnapshotList clone() { + return (InstantSnapshotList) 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 InstantSnapshotListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java new file mode 100644 index 00000000000..50d9f5655fe --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional instant snapshot params. + * + *

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 InstantSnapshotParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public InstantSnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public InstantSnapshotParams set(String fieldName, Object value) { + return (InstantSnapshotParams) super.set(fieldName, value); + } + + @Override + public InstantSnapshotParams clone() { + return (InstantSnapshotParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotResourceStatus.java new file mode 100644 index 00000000000..fbcb23cb086 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotResourceStatus.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; + +/** + * Model definition for InstantSnapshotResourceStatus. + * + *

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 InstantSnapshotResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The storage size of this instant snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long storageSizeBytes; + + /** + * [Output Only] The storage size of this instant snapshot. + * @return value or {@code null} for none + */ + public java.lang.Long getStorageSizeBytes() { + return storageSizeBytes; + } + + /** + * [Output Only] The storage size of this instant snapshot. + * @param storageSizeBytes storageSizeBytes or {@code null} for none + */ + public InstantSnapshotResourceStatus setStorageSizeBytes(java.lang.Long storageSizeBytes) { + this.storageSizeBytes = storageSizeBytes; + return this; + } + + @Override + public InstantSnapshotResourceStatus set(String fieldName, Object value) { + return (InstantSnapshotResourceStatus) super.set(fieldName, value); + } + + @Override + public InstantSnapshotResourceStatus clone() { + return (InstantSnapshotResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotsScopedList.java new file mode 100644 index 00000000000..fb2e4058311 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InstantSnapshotsScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 InstantSnapshotsScopedList. + * + *

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 InstantSnapshotsScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of instantSnapshots contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instantSnapshots; + + static { + // hack to force ProGuard to consider InstantSnapshot 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(InstantSnapshot.class); + } + + /** + * [Output Only] Informational warning which replaces the list of instantSnapshots when the list + * is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of instantSnapshots contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getInstantSnapshots() { + return instantSnapshots; + } + + /** + * [Output Only] A list of instantSnapshots contained in this scope. + * @param instantSnapshots instantSnapshots or {@code null} for none + */ + public InstantSnapshotsScopedList setInstantSnapshots(java.util.List instantSnapshots) { + this.instantSnapshots = instantSnapshots; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of instantSnapshots when the list + * is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of instantSnapshots when the list + * is empty. + * @param warning warning or {@code null} for none + */ + public InstantSnapshotsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InstantSnapshotsScopedList set(String fieldName, Object value) { + return (InstantSnapshotsScopedList) super.set(fieldName, value); + } + + @Override + public InstantSnapshotsScopedList clone() { + return (InstantSnapshotsScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of instantSnapshots when the list is + * empty. + */ + 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 InstantSnapshotsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/Int64RangeMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Int64RangeMatch.java new file mode 100644 index 00000000000..82871863c47 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Int64RangeMatch.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * HttpRouteRuleMatch criteria for field values that must stay within the specified integer range. + * + *

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 Int64RangeMatch extends com.google.api.client.json.GenericJson { + + /** + * The end of the range (exclusive) in signed long integer format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long rangeEnd; + + /** + * The start of the range (inclusive) in signed long integer format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long rangeStart; + + /** + * The end of the range (exclusive) in signed long integer format. + * @return value or {@code null} for none + */ + public java.lang.Long getRangeEnd() { + return rangeEnd; + } + + /** + * The end of the range (exclusive) in signed long integer format. + * @param rangeEnd rangeEnd or {@code null} for none + */ + public Int64RangeMatch setRangeEnd(java.lang.Long rangeEnd) { + this.rangeEnd = rangeEnd; + return this; + } + + /** + * The start of the range (inclusive) in signed long integer format. + * @return value or {@code null} for none + */ + public java.lang.Long getRangeStart() { + return rangeStart; + } + + /** + * The start of the range (inclusive) in signed long integer format. + * @param rangeStart rangeStart or {@code null} for none + */ + public Int64RangeMatch setRangeStart(java.lang.Long rangeStart) { + this.rangeStart = rangeStart; + return this; + } + + @Override + public Int64RangeMatch set(String fieldName, Object value) { + return (Int64RangeMatch) super.set(fieldName, value); + } + + @Override + public Int64RangeMatch clone() { + return (Int64RangeMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interconnect.java new file mode 100644 index 00000000000..70d2f32c91f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -0,0 +1,1198 @@ +/* + * 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 an Interconnect resource. + * + * An Interconnect resource is a dedicated connection between the Google Cloud network and your on- + * premises network. For more information, read the Dedicated Interconnect Overview. + * + *

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 Interconnect extends com.google.api.client.json.GenericJson { + + /** + * Enable or disable the application awareness feature on this Cloud Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean aaiEnabled; + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Configuration information for application awareness on this Cloud Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectApplicationAwareInterconnect applicationAwareInterconnect; + + /** + * [Output only] List of features available for this Interconnect connection, which can take one + * of the following values: - IF_MACSEC: If present, then the Interconnect connection is + * provisioned on MACsec capable hardware ports. If not present, then the Interconnect + * connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will + * fail. - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is + * provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments + * will fail. If not present, then the Interconnect connection is not provisioned for Cross- + * Site Networking. Any attempt to use it for Cross-Site Networking will fail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List availableFeatures; + + /** + * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits + * in this LAG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List circuitInfos; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerName; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveLocation; + + /** + * Output only. [Output Only] A list of outages expected for this Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List expectedOutages; + + /** + * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. + * This can be used only for ping tests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleIpAddress; + + /** + * Output only. [Output Only] Google reference ID to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleReferenceId; + + /** + * 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] A list of the URLs of all InterconnectAttachments configured to use + * this Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectAttachments; + + /** + * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is + * arbitrary and items are unique. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectGroups; + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner- + * managed interconnection shared between customers though a partner. - DEDICATED: A + * dedicated physical interconnection with the customer. + * + * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectType; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A + * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + * optics. + * + * Note that this field indicates the speed of each of the links in the bundle, not the speed of + * the entire bundle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkType; + + /** + * URL of the InterconnectLocation object that represents where this connection is to be + * provisioned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect + * connection between Google and your on-premises router. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectMacsec macsec; + + /** + * Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec + * object is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean macsecEnabled; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nocContactEmail; + + /** + * Output only. [Output Only] The current status of this Interconnect's functionality, which can + * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up + * and is ready to use. Attachments may be provisioned on this Interconnect. + * + * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be + * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing + * internal maintenance. No attachments may be provisioned or updated on this Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operationalStatus; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectParams params; + + /** + * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. + * The customer should configure this IP address during turnup when prompted by Google NOC. This + * can be used only for ping tests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpAddress; + + /** + * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer provisionedLinkCount; + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteLocation; + + /** + * Optional. This parameter can be provided only with Interconnect INSERT. It isn't valid for + * Interconnect PATCH. List of features requested for this Interconnect connection, which can take + * one of the following values: - IF_MACSEC: If specified, then the connection is created + * on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be + * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site + * Networking unless this feature is specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestedFeatures; + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer requestedLinkCount; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * 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. Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] The current state of Interconnect functionality, which can take one + * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to + * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The + * Interconnect has not completed turnup. No attachments may be provisioned on this + * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + * No attachments may be provisioned or updated on this Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * To be deprecated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subzone; + + /** + * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to + * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List wireGroups; + + /** + * Enable or disable the application awareness feature on this Cloud Interconnect. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAaiEnabled() { + return aaiEnabled; + } + + /** + * Enable or disable the application awareness feature on this Cloud Interconnect. + * @param aaiEnabled aaiEnabled or {@code null} for none + */ + public Interconnect setAaiEnabled(java.lang.Boolean aaiEnabled) { + this.aaiEnabled = aaiEnabled; + return this; + } + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public Interconnect setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Configuration information for application awareness on this Cloud Interconnect. + * @return value or {@code null} for none + */ + public InterconnectApplicationAwareInterconnect getApplicationAwareInterconnect() { + return applicationAwareInterconnect; + } + + /** + * Configuration information for application awareness on this Cloud Interconnect. + * @param applicationAwareInterconnect applicationAwareInterconnect or {@code null} for none + */ + public Interconnect setApplicationAwareInterconnect(InterconnectApplicationAwareInterconnect applicationAwareInterconnect) { + this.applicationAwareInterconnect = applicationAwareInterconnect; + return this; + } + + /** + * [Output only] List of features available for this Interconnect connection, which can take one + * of the following values: - IF_MACSEC: If present, then the Interconnect connection is + * provisioned on MACsec capable hardware ports. If not present, then the Interconnect + * connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will + * fail. - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is + * provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments + * will fail. If not present, then the Interconnect connection is not provisioned for Cross- + * Site Networking. Any attempt to use it for Cross-Site Networking will fail. + * @return value or {@code null} for none + */ + public java.util.List getAvailableFeatures() { + return availableFeatures; + } + + /** + * [Output only] List of features available for this Interconnect connection, which can take one + * of the following values: - IF_MACSEC: If present, then the Interconnect connection is + * provisioned on MACsec capable hardware ports. If not present, then the Interconnect + * connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will + * fail. - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is + * provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments + * will fail. If not present, then the Interconnect connection is not provisioned for Cross- + * Site Networking. Any attempt to use it for Cross-Site Networking will fail. + * @param availableFeatures availableFeatures or {@code null} for none + */ + public Interconnect setAvailableFeatures(java.util.List availableFeatures) { + this.availableFeatures = availableFeatures; + return this; + } + + /** + * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits + * in this LAG. + * @return value or {@code null} for none + */ + public java.util.List getCircuitInfos() { + return circuitInfos; + } + + /** + * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits + * in this LAG. + * @param circuitInfos circuitInfos or {@code null} for none + */ + public Interconnect setCircuitInfos(java.util.List circuitInfos) { + this.circuitInfos = circuitInfos; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerName() { + return customerName; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @param customerName customerName or {@code null} for none + */ + public Interconnect setCustomerName(java.lang.String customerName) { + this.customerName = customerName; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Interconnect setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveLocation() { + return effectiveLocation; + } + + /** + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. + * @param effectiveLocation effectiveLocation or {@code null} for none + */ + public Interconnect setEffectiveLocation(java.lang.String effectiveLocation) { + this.effectiveLocation = effectiveLocation; + return this; + } + + /** + * Output only. [Output Only] A list of outages expected for this Interconnect. + * @return value or {@code null} for none + */ + public java.util.List getExpectedOutages() { + return expectedOutages; + } + + /** + * Output only. [Output Only] A list of outages expected for this Interconnect. + * @param expectedOutages expectedOutages or {@code null} for none + */ + public Interconnect setExpectedOutages(java.util.List expectedOutages) { + this.expectedOutages = expectedOutages; + return this; + } + + /** + * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. + * This can be used only for ping tests. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleIpAddress() { + return googleIpAddress; + } + + /** + * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. + * This can be used only for ping tests. + * @param googleIpAddress googleIpAddress or {@code null} for none + */ + public Interconnect setGoogleIpAddress(java.lang.String googleIpAddress) { + this.googleIpAddress = googleIpAddress; + return this; + } + + /** + * Output only. [Output Only] Google reference ID to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleReferenceId() { + return googleReferenceId; + } + + /** + * Output only. [Output Only] Google reference ID to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. + * @param googleReferenceId googleReferenceId or {@code null} for none + */ + public Interconnect setGoogleReferenceId(java.lang.String googleReferenceId) { + this.googleReferenceId = googleReferenceId; + 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 Interconnect setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use + * this Interconnect. + * @return value or {@code null} for none + */ + public java.util.List getInterconnectAttachments() { + return interconnectAttachments; + } + + /** + * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use + * this Interconnect. + * @param interconnectAttachments interconnectAttachments or {@code null} for none + */ + public Interconnect setInterconnectAttachments(java.util.List interconnectAttachments) { + this.interconnectAttachments = interconnectAttachments; + return this; + } + + /** + * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is + * arbitrary and items are unique. + * @return value or {@code null} for none + */ + public java.util.List getInterconnectGroups() { + return interconnectGroups; + } + + /** + * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is + * arbitrary and items are unique. + * @param interconnectGroups interconnectGroups or {@code null} for none + */ + public Interconnect setInterconnectGroups(java.util.List interconnectGroups) { + this.interconnectGroups = interconnectGroups; + return this; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner- + * managed interconnection shared between customers though a partner. - DEDICATED: A + * dedicated physical interconnection with the customer. + * + * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectType() { + return interconnectType; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner- + * managed interconnection shared between customers though a partner. - DEDICATED: A + * dedicated physical interconnection with the customer. + * + * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + * @param interconnectType interconnectType or {@code null} for none + */ + public Interconnect setInterconnectType(java.lang.String interconnectType) { + this.interconnectType = interconnectType; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * @param kind kind or {@code null} for none + */ + public Interconnect setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Interconnect. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Interconnect. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Interconnect. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public Interconnect setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an Interconnect. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Interconnect encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public Interconnect setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A + * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + * optics. + * + * Note that this field indicates the speed of each of the links in the bundle, not the speed of + * the entire bundle. + * @return value or {@code null} for none + */ + public java.lang.String getLinkType() { + return linkType; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A + * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + * optics. + * + * Note that this field indicates the speed of each of the links in the bundle, not the speed of + * the entire bundle. + * @param linkType linkType or {@code null} for none + */ + public Interconnect setLinkType(java.lang.String linkType) { + this.linkType = linkType; + return this; + } + + /** + * URL of the InterconnectLocation object that represents where this connection is to be + * provisioned. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * URL of the InterconnectLocation object that represents where this connection is to be + * provisioned. + * @param location location or {@code null} for none + */ + public Interconnect setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect + * connection between Google and your on-premises router. + * @return value or {@code null} for none + */ + public InterconnectMacsec getMacsec() { + return macsec; + } + + /** + * Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect + * connection between Google and your on-premises router. + * @param macsec macsec or {@code null} for none + */ + public Interconnect setMacsec(InterconnectMacsec macsec) { + this.macsec = macsec; + return this; + } + + /** + * Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec + * object is not specified. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMacsecEnabled() { + return macsecEnabled; + } + + /** + * Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec + * object is not specified. + * @param macsecEnabled macsecEnabled or {@code null} for none + */ + public Interconnect setMacsecEnabled(java.lang.Boolean macsecEnabled) { + this.macsecEnabled = macsecEnabled; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 Interconnect setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @return value or {@code null} for none + */ + public java.lang.String getNocContactEmail() { + return nocContactEmail; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @param nocContactEmail nocContactEmail or {@code null} for none + */ + public Interconnect setNocContactEmail(java.lang.String nocContactEmail) { + this.nocContactEmail = nocContactEmail; + return this; + } + + /** + * Output only. [Output Only] The current status of this Interconnect's functionality, which can + * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up + * and is ready to use. Attachments may be provisioned on this Interconnect. + * + * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be + * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing + * internal maintenance. No attachments may be provisioned or updated on this Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getOperationalStatus() { + return operationalStatus; + } + + /** + * Output only. [Output Only] The current status of this Interconnect's functionality, which can + * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up + * and is ready to use. Attachments may be provisioned on this Interconnect. + * + * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be + * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing + * internal maintenance. No attachments may be provisioned or updated on this Interconnect. + * @param operationalStatus operationalStatus or {@code null} for none + */ + public Interconnect setOperationalStatus(java.lang.String operationalStatus) { + this.operationalStatus = operationalStatus; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public InterconnectParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Interconnect setParams(InterconnectParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. + * The customer should configure this IP address during turnup when prompted by Google NOC. This + * can be used only for ping tests. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpAddress() { + return peerIpAddress; + } + + /** + * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. + * The customer should configure this IP address during turnup when prompted by Google NOC. This + * can be used only for ping tests. + * @param peerIpAddress peerIpAddress or {@code null} for none + */ + public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { + this.peerIpAddress = peerIpAddress; + return this; + } + + /** + * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * @return value or {@code null} for none + */ + public java.lang.Integer getProvisionedLinkCount() { + return provisionedLinkCount; + } + + /** + * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * @param provisionedLinkCount provisionedLinkCount or {@code null} for none + */ + public Interconnect setProvisionedLinkCount(java.lang.Integer provisionedLinkCount) { + this.provisionedLinkCount = provisionedLinkCount; + return this; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @return value or {@code null} for none + */ + public java.lang.String getRemoteLocation() { + return remoteLocation; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @param remoteLocation remoteLocation or {@code null} for none + */ + public Interconnect setRemoteLocation(java.lang.String remoteLocation) { + this.remoteLocation = remoteLocation; + return this; + } + + /** + * Optional. This parameter can be provided only with Interconnect INSERT. It isn't valid for + * Interconnect PATCH. List of features requested for this Interconnect connection, which can take + * one of the following values: - IF_MACSEC: If specified, then the connection is created + * on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be + * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site + * Networking unless this feature is specified. + * @return value or {@code null} for none + */ + public java.util.List getRequestedFeatures() { + return requestedFeatures; + } + + /** + * Optional. This parameter can be provided only with Interconnect INSERT. It isn't valid for + * Interconnect PATCH. List of features requested for this Interconnect connection, which can take + * one of the following values: - IF_MACSEC: If specified, then the connection is created + * on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be + * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site + * Networking unless this feature is specified. + * @param requestedFeatures requestedFeatures or {@code null} for none + */ + public Interconnect setRequestedFeatures(java.util.List requestedFeatures) { + this.requestedFeatures = requestedFeatures; + return this; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @return value or {@code null} for none + */ + public java.lang.Integer getRequestedLinkCount() { + return requestedLinkCount; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @param requestedLinkCount requestedLinkCount or {@code null} for none + */ + public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) { + this.requestedLinkCount = requestedLinkCount; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 Interconnect setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Interconnect setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] The current state of Interconnect functionality, which can take one + * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to + * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The + * Interconnect has not completed turnup. No attachments may be provisioned on this + * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + * No attachments may be provisioned or updated on this Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The current state of Interconnect functionality, which can take one + * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to + * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The + * Interconnect has not completed turnup. No attachments may be provisioned on this + * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + * No attachments may be provisioned or updated on this Interconnect. + * @param state state or {@code null} for none + */ + public Interconnect setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * To be deprecated. + * @return value or {@code null} for none + */ + public java.lang.String getSubzone() { + return subzone; + } + + /** + * To be deprecated. + * @param subzone subzone or {@code null} for none + */ + public Interconnect setSubzone(java.lang.String subzone) { + this.subzone = subzone; + return this; + } + + /** + * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to + * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. + * @return value or {@code null} for none + */ + public java.util.List getWireGroups() { + return wireGroups; + } + + /** + * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to + * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. + * @param wireGroups wireGroups or {@code null} for none + */ + public Interconnect setWireGroups(java.util.List wireGroups) { + this.wireGroups = wireGroups; + return this; + } + + @Override + public Interconnect set(String fieldName, Object value) { + return (Interconnect) super.set(fieldName, value); + } + + @Override + public Interconnect clone() { + return (Interconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnect.java new file mode 100644 index 00000000000..ff3b474baf2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnect.java @@ -0,0 +1,135 @@ +/* + * 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; + +/** + * Configuration information for application awareness on this Cloud Interconnect. + * + *

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 InterconnectApplicationAwareInterconnect extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy bandwidthPercentagePolicy; + + /** + * Description for the application awareness profile on this Cloud Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileDescription; + + /** + * Optional field to specify a list of shape average percentages to be applied in conjunction with + * StrictPriorityPolicy or BandwidthPercentagePolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List shapeAveragePercentages; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectApplicationAwareInterconnectStrictPriorityPolicy strictPriorityPolicy; + + /** + * @return value or {@code null} for none + */ + public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy getBandwidthPercentagePolicy() { + return bandwidthPercentagePolicy; + } + + /** + * @param bandwidthPercentagePolicy bandwidthPercentagePolicy or {@code null} for none + */ + public InterconnectApplicationAwareInterconnect setBandwidthPercentagePolicy(InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy bandwidthPercentagePolicy) { + this.bandwidthPercentagePolicy = bandwidthPercentagePolicy; + return this; + } + + /** + * Description for the application awareness profile on this Cloud Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getProfileDescription() { + return profileDescription; + } + + /** + * Description for the application awareness profile on this Cloud Interconnect. + * @param profileDescription profileDescription or {@code null} for none + */ + public InterconnectApplicationAwareInterconnect setProfileDescription(java.lang.String profileDescription) { + this.profileDescription = profileDescription; + return this; + } + + /** + * Optional field to specify a list of shape average percentages to be applied in conjunction with + * StrictPriorityPolicy or BandwidthPercentagePolicy. + * @return value or {@code null} for none + */ + public java.util.List getShapeAveragePercentages() { + return shapeAveragePercentages; + } + + /** + * Optional field to specify a list of shape average percentages to be applied in conjunction with + * StrictPriorityPolicy or BandwidthPercentagePolicy. + * @param shapeAveragePercentages shapeAveragePercentages or {@code null} for none + */ + public InterconnectApplicationAwareInterconnect setShapeAveragePercentages(java.util.List shapeAveragePercentages) { + this.shapeAveragePercentages = shapeAveragePercentages; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectApplicationAwareInterconnectStrictPriorityPolicy getStrictPriorityPolicy() { + return strictPriorityPolicy; + } + + /** + * @param strictPriorityPolicy strictPriorityPolicy or {@code null} for none + */ + public InterconnectApplicationAwareInterconnect setStrictPriorityPolicy(InterconnectApplicationAwareInterconnectStrictPriorityPolicy strictPriorityPolicy) { + this.strictPriorityPolicy = strictPriorityPolicy; + return this; + } + + @Override + public InterconnectApplicationAwareInterconnect set(String fieldName, Object value) { + return (InterconnectApplicationAwareInterconnect) super.set(fieldName, value); + } + + @Override + public InterconnectApplicationAwareInterconnect clone() { + return (InterconnectApplicationAwareInterconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java new file mode 100644 index 00000000000..ed21a573d26 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java @@ -0,0 +1,92 @@ +/* + * 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; + +/** + * Specify bandwidth percentages [1-100] for various traffic classes in BandwidthPercentagePolicy. + * The sum of all percentages must equal 100. All traffic classes must have a percentage value + * specified. + * + *

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 InterconnectApplicationAwareInterconnectBandwidthPercentage extends com.google.api.client.json.GenericJson { + + /** + * Bandwidth percentage for a specific traffic class. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long percentage; + + /** + * TrafficClass whose bandwidth percentage is being specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trafficClass; + + /** + * Bandwidth percentage for a specific traffic class. + * @return value or {@code null} for none + */ + public java.lang.Long getPercentage() { + return percentage; + } + + /** + * Bandwidth percentage for a specific traffic class. + * @param percentage percentage or {@code null} for none + */ + public InterconnectApplicationAwareInterconnectBandwidthPercentage setPercentage(java.lang.Long percentage) { + this.percentage = percentage; + return this; + } + + /** + * TrafficClass whose bandwidth percentage is being specified. + * @return value or {@code null} for none + */ + public java.lang.String getTrafficClass() { + return trafficClass; + } + + /** + * TrafficClass whose bandwidth percentage is being specified. + * @param trafficClass trafficClass or {@code null} for none + */ + public InterconnectApplicationAwareInterconnectBandwidthPercentage setTrafficClass(java.lang.String trafficClass) { + this.trafficClass = trafficClass; + return this; + } + + @Override + public InterconnectApplicationAwareInterconnectBandwidthPercentage set(String fieldName, Object value) { + return (InterconnectApplicationAwareInterconnectBandwidthPercentage) super.set(fieldName, value); + } + + @Override + public InterconnectApplicationAwareInterconnectBandwidthPercentage clone() { + return (InterconnectApplicationAwareInterconnectBandwidthPercentage) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java new file mode 100644 index 00000000000..873d76b55d4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java @@ -0,0 +1,72 @@ +/* + * 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 InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy. + * + *

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 InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy extends com.google.api.client.json.GenericJson { + + /** + * Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bandwidthPercentages; + + static { + // hack to force ProGuard to consider InterconnectApplicationAwareInterconnectBandwidthPercentage 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(InterconnectApplicationAwareInterconnectBandwidthPercentage.class); + } + + /** + * Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. + * @return value or {@code null} for none + */ + public java.util.List getBandwidthPercentages() { + return bandwidthPercentages; + } + + /** + * Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. + * @param bandwidthPercentages bandwidthPercentages or {@code null} for none + */ + public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy setBandwidthPercentages(java.util.List bandwidthPercentages) { + this.bandwidthPercentages = bandwidthPercentages; + return this; + } + + @Override + public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy set(String fieldName, Object value) { + return (InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy) super.set(fieldName, value); + } + + @Override + public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy clone() { + return (InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java new file mode 100644 index 00000000000..12c93f5a6de --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Specify configuration for StrictPriorityPolicy. + * + *

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 InterconnectApplicationAwareInterconnectStrictPriorityPolicy extends com.google.api.client.json.GenericJson { + + @Override + public InterconnectApplicationAwareInterconnectStrictPriorityPolicy set(String fieldName, Object value) { + return (InterconnectApplicationAwareInterconnectStrictPriorityPolicy) super.set(fieldName, value); + } + + @Override + public InterconnectApplicationAwareInterconnectStrictPriorityPolicy clone() { + return (InterconnectApplicationAwareInterconnectStrictPriorityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java new file mode 100644 index 00000000000..049a541c269 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -0,0 +1,1577 @@ +/* + * 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 an Interconnect Attachment (VLAN) resource. + * + * You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to + * your on-premises networks through an Interconnect. For more information, read Creating VLAN + * Attachments. + * + *

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 InterconnectAttachment extends com.google.api.client.json.GenericJson { + + /** + * Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachmentGroup; + + /** + * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type + * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner + * that is operating the interconnect must set the bandwidth. Output only for PARTNER type, + * mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - + * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 + * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 + * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bandwidth; + + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address + * must be the same. - Max prefix length is 31. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCloudRouterIpAddress; + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCloudRouterIpv6Address; + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCustomerRouterIpAddress; + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String candidateCustomerRouterIpv6Address; + + /** + * This field is not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List candidateIpv6Subnets; + + /** + * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of + * cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be + * within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). + * Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request + * will fail if all possible /29s are in use on Google's edge. If not supplied, Google will + * randomly select an unused /29 from all of link-local space. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List candidateSubnets; + + /** + * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRouterIpAddress; + + /** + * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRouterIpv6Address; + + /** + * This field is not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudRouterIpv6InterfaceId; + + /** + * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not + * work if these constraints are not met. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentConfigurationConstraints configurationConstraints; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerRouterIpAddress; + + /** + * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerRouterIpv6Address; + + /** + * This field is not available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerRouterIpv6InterfaceId; + + /** + * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is + * only present for Dataplane version 2 and higher. Absence of this field in the API output + * indicates that the Dataplane is version 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer dataplaneVersion; + + /** + * An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at + * creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - + * AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 + * + * For improved reliability, customers should configure a pair of attachments, one per + * availability domain. The selected availability domain will be provided to the Partner via the + * pairing key, so that the provisioned circuit will lie in the specified domain. If not + * specified, the value will default to AVAILABILITY_DOMAIN_ANY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String edgeAvailabilityDomain; + + /** + * Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). + * Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible + * values are: - NONE - This is the default value, which means that the VLAN attachment + * carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such + * a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is + * encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot + * directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN + * over Cloud Interconnect*, the VLAN attachment must be created with this option. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String encryption; + + /** + * Output only. [Output Only] Google reference ID, to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleReferenceId; + + /** + * 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; + + /** + * URL of the underlying Interconnect object that this attachment's traffic will traverse through. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the + * VLAN attachment that has the encryption option as IPSEC. The addresses must be regional + * internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the + * attachment is configured to use a regional internal IP address, then the VPN gateway's IP + * address is allocated from the IP address range specified here. For example, if the HA VPN + * gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address + * for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN + * attachment. If this field is not specified when creating the VLAN attachment, then later on + * when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is + * allocated from the regional external IP address pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ipsecInternalAddresses; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for + * interconnect attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED. + * + * The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are + * mapped to the destination appliances IP addresses. The packet is then encapsulated with the + * appliance IP address and sent to the edge appliance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentL2Forwarding l2Forwarding; + + /** + * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially + * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer mtu; + + /** + * Name of the resource. Provided by the client 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 current status of whether or not this interconnect attachment is + * functional, which can take one of the following values: - OS_ACTIVE: The attachment has + * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to + * use yet, because turnup is not complete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operationalStatus; + + /** + * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The + * opaque identifier of a PARTNER attachment used to initiate provisioning with a selected + * partner. Of the form "XXXXX/region/domain" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pairingKey; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentParams params; + + /** + * Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf + * of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available + * for DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long partnerAsn; + + /** + * Informational metadata about Partner attachments from Partners to display to customers. Output + * only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentPartnerMetadata partnerMetadata; + + /** + * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is + * populated if the interconnect that this is attached to is of type DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentPrivateInfo privateInterconnectInfo; + + /** + * Output only. [Output Only] URL of the region where the regional interconnect attachment + * resides. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this + * field contains the interconnect's remote location service provider. Example values: "Amazon Web + * Services" "Microsoft Azure". + * + * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is + * copied from the InterconnectRemoteLocation remoteService field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteService; + + /** + * URL of the Cloud Router to be used for dynamic routing. This router must be in the same region + * as this InterconnectAttachment. The InterconnectAttachment will automatically connect the + * Interconnect to the network & region within which the Cloud Router is configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * 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; + + /** + * The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled + * or not. If not specified, IPV4_ONLY will be used. + * + * This field can be both set at interconnect attachments creation and update interconnect + * attachment operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Output only. [Output Only] The current state of this attachment's functionality. Enum values + * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER + * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and + * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This + * state can take one of the following values: - ACTIVE: The attachment has been turned up + * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup + * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in + * the process of provisioning after a PARTNER_PROVIDER attachment was created that + * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is + * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally + * and is no longer functional. This could be because the associated Interconnect was removed, + * or because the other side of a Partner attachment was deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 + * + * The default value is 29, except for Cross-Cloud Interconnect connections that use an + * InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, + * connections that use an Azure remote location fall into this category. In these cases, the + * default value is 30, and requesting 29 returns an error. + * + * Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more + * debugging visibility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer subnetLength; + + /** + * The type of interconnect attachment this is, which can take one of the following values: + * - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a + * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a + * Partner Interconnect, created by the partner. + * + * - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation + * time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer vlanTag8021q; + + /** + * Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * @return value or {@code null} for none + */ + public java.lang.String getAttachmentGroup() { + return attachmentGroup; + } + + /** + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * @param attachmentGroup attachmentGroup or {@code null} for none + */ + public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGroup) { + this.attachmentGroup = attachmentGroup; + return this; + } + + /** + * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type + * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner + * that is operating the interconnect must set the bandwidth. Output only for PARTNER type, + * mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - + * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 + * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 + * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s + * @return value or {@code null} for none + */ + public java.lang.String getBandwidth() { + return bandwidth; + } + + /** + * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type + * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner + * that is operating the interconnect must set the bandwidth. Output only for PARTNER type, + * mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - + * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 + * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 + * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s + * @param bandwidth bandwidth or {@code null} for none + */ + public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { + this.bandwidth = bandwidth; + return this; + } + + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address + * must be the same. - Max prefix length is 31. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCloudRouterIpAddress() { + return candidateCloudRouterIpAddress; + } + + /** + * Single IPv4 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ip_address and + * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address + * must be the same. - Max prefix length is 31. + * @param candidateCloudRouterIpAddress candidateCloudRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCandidateCloudRouterIpAddress(java.lang.String candidateCloudRouterIpAddress) { + this.candidateCloudRouterIpAddress = candidateCloudRouterIpAddress; + return this; + } + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCloudRouterIpv6Address() { + return candidateCloudRouterIpv6Address; + } + + /** + * Single IPv6 address + prefix length to be configured on the cloud router interface for this + * interconnect attachment. - Both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix + * length of both candidate_cloud_router_ipv6_address and + * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. + * @param candidateCloudRouterIpv6Address candidateCloudRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCandidateCloudRouterIpv6Address(java.lang.String candidateCloudRouterIpv6Address) { + this.candidateCloudRouterIpv6Address = candidateCloudRouterIpv6Address; + return this; + } + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCustomerRouterIpAddress() { + return candidateCustomerRouterIpAddress; + } + + /** + * Single IPv4 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @param candidateCustomerRouterIpAddress candidateCustomerRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCandidateCustomerRouterIpAddress(java.lang.String candidateCustomerRouterIpAddress) { + this.candidateCustomerRouterIpAddress = candidateCustomerRouterIpAddress; + return this; + } + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCandidateCustomerRouterIpv6Address() { + return candidateCustomerRouterIpv6Address; + } + + /** + * Single IPv6 address + prefix length to be configured on the customer router interface for this + * interconnect attachment. + * @param candidateCustomerRouterIpv6Address candidateCustomerRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCandidateCustomerRouterIpv6Address(java.lang.String candidateCustomerRouterIpv6Address) { + this.candidateCustomerRouterIpv6Address = candidateCustomerRouterIpv6Address; + return this; + } + + /** + * This field is not available. + * @return value or {@code null} for none + */ + public java.util.List getCandidateIpv6Subnets() { + return candidateIpv6Subnets; + } + + /** + * This field is not available. + * @param candidateIpv6Subnets candidateIpv6Subnets or {@code null} for none + */ + public InterconnectAttachment setCandidateIpv6Subnets(java.util.List candidateIpv6Subnets) { + this.candidateIpv6Subnets = candidateIpv6Subnets; + return this; + } + + /** + * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of + * cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be + * within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). + * Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request + * will fail if all possible /29s are in use on Google's edge. If not supplied, Google will + * randomly select an unused /29 from all of link-local space. + * @return value or {@code null} for none + */ + public java.util.List getCandidateSubnets() { + return candidateSubnets; + } + + /** + * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of + * cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be + * within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). + * Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request + * will fail if all possible /29s are in use on Google's edge. If not supplied, Google will + * randomly select an unused /29 from all of link-local space. + * @param candidateSubnets candidateSubnets or {@code null} for none + */ + public InterconnectAttachment setCandidateSubnets(java.util.List candidateSubnets) { + this.candidateSubnets = candidateSubnets; + return this; + } + + /** + * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRouterIpAddress() { + return cloudRouterIpAddress; + } + + /** + * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. + * @param cloudRouterIpAddress cloudRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCloudRouterIpAddress(java.lang.String cloudRouterIpAddress) { + this.cloudRouterIpAddress = cloudRouterIpAddress; + return this; + } + + /** + * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRouterIpv6Address() { + return cloudRouterIpv6Address; + } + + /** + * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router + * Interface for this interconnect attachment. + * @param cloudRouterIpv6Address cloudRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCloudRouterIpv6Address(java.lang.String cloudRouterIpv6Address) { + this.cloudRouterIpv6Address = cloudRouterIpv6Address; + return this; + } + + /** + * This field is not available. + * @return value or {@code null} for none + */ + public java.lang.String getCloudRouterIpv6InterfaceId() { + return cloudRouterIpv6InterfaceId; + } + + /** + * This field is not available. + * @param cloudRouterIpv6InterfaceId cloudRouterIpv6InterfaceId or {@code null} for none + */ + public InterconnectAttachment setCloudRouterIpv6InterfaceId(java.lang.String cloudRouterIpv6InterfaceId) { + this.cloudRouterIpv6InterfaceId = cloudRouterIpv6InterfaceId; + return this; + } + + /** + * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not + * work if these constraints are not met. + * @return value or {@code null} for none + */ + public InterconnectAttachmentConfigurationConstraints getConfigurationConstraints() { + return configurationConstraints; + } + + /** + * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not + * work if these constraints are not met. + * @param configurationConstraints configurationConstraints or {@code null} for none + */ + public InterconnectAttachment setConfigurationConstraints(InterconnectAttachmentConfigurationConstraints configurationConstraints) { + this.configurationConstraints = configurationConstraints; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectAttachment setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerRouterIpAddress() { + return customerRouterIpAddress; + } + + /** + * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. + * @param customerRouterIpAddress customerRouterIpAddress or {@code null} for none + */ + public InterconnectAttachment setCustomerRouterIpAddress(java.lang.String customerRouterIpAddress) { + this.customerRouterIpAddress = customerRouterIpAddress; + return this; + } + + /** + * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerRouterIpv6Address() { + return customerRouterIpv6Address; + } + + /** + * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router + * subinterface for this interconnect attachment. + * @param customerRouterIpv6Address customerRouterIpv6Address or {@code null} for none + */ + public InterconnectAttachment setCustomerRouterIpv6Address(java.lang.String customerRouterIpv6Address) { + this.customerRouterIpv6Address = customerRouterIpv6Address; + return this; + } + + /** + * This field is not available. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerRouterIpv6InterfaceId() { + return customerRouterIpv6InterfaceId; + } + + /** + * This field is not available. + * @param customerRouterIpv6InterfaceId customerRouterIpv6InterfaceId or {@code null} for none + */ + public InterconnectAttachment setCustomerRouterIpv6InterfaceId(java.lang.String customerRouterIpv6InterfaceId) { + this.customerRouterIpv6InterfaceId = customerRouterIpv6InterfaceId; + return this; + } + + /** + * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is + * only present for Dataplane version 2 and higher. Absence of this field in the API output + * indicates that the Dataplane is version 1. + * @return value or {@code null} for none + */ + public java.lang.Integer getDataplaneVersion() { + return dataplaneVersion; + } + + /** + * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is + * only present for Dataplane version 2 and higher. Absence of this field in the API output + * indicates that the Dataplane is version 1. + * @param dataplaneVersion dataplaneVersion or {@code null} for none + */ + public InterconnectAttachment setDataplaneVersion(java.lang.Integer dataplaneVersion) { + this.dataplaneVersion = dataplaneVersion; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public InterconnectAttachment setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at + * creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - + * AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 + * + * For improved reliability, customers should configure a pair of attachments, one per + * availability domain. The selected availability domain will be provided to the Partner via the + * pairing key, so that the provisioned circuit will lie in the specified domain. If not + * specified, the value will default to AVAILABILITY_DOMAIN_ANY. + * @return value or {@code null} for none + */ + public java.lang.String getEdgeAvailabilityDomain() { + return edgeAvailabilityDomain; + } + + /** + * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at + * creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - + * AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 + * + * For improved reliability, customers should configure a pair of attachments, one per + * availability domain. The selected availability domain will be provided to the Partner via the + * pairing key, so that the provisioned circuit will lie in the specified domain. If not + * specified, the value will default to AVAILABILITY_DOMAIN_ANY. + * @param edgeAvailabilityDomain edgeAvailabilityDomain or {@code null} for none + */ + public InterconnectAttachment setEdgeAvailabilityDomain(java.lang.String edgeAvailabilityDomain) { + this.edgeAvailabilityDomain = edgeAvailabilityDomain; + return this; + } + + /** + * Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). + * Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible + * values are: - NONE - This is the default value, which means that the VLAN attachment + * carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such + * a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is + * encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot + * directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN + * over Cloud Interconnect*, the VLAN attachment must be created with this option. + * @return value or {@code null} for none + */ + public java.lang.String getEncryption() { + return encryption; + } + + /** + * Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). + * Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible + * values are: - NONE - This is the default value, which means that the VLAN attachment + * carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such + * a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is + * encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot + * directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN + * over Cloud Interconnect*, the VLAN attachment must be created with this option. + * @param encryption encryption or {@code null} for none + */ + public InterconnectAttachment setEncryption(java.lang.String encryption) { + this.encryption = encryption; + return this; + } + + /** + * Output only. [Output Only] Google reference ID, to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleReferenceId() { + return googleReferenceId; + } + + /** + * Output only. [Output Only] Google reference ID, to be used when raising support tickets with + * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. + * @param googleReferenceId googleReferenceId or {@code null} for none + */ + public InterconnectAttachment setGoogleReferenceId(java.lang.String googleReferenceId) { + this.googleReferenceId = googleReferenceId; + 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 InterconnectAttachment setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * URL of the underlying Interconnect object that this attachment's traffic will traverse through. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * URL of the underlying Interconnect object that this attachment's traffic will traverse through. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectAttachment setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + /** + * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the + * VLAN attachment that has the encryption option as IPSEC. The addresses must be regional + * internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the + * attachment is configured to use a regional internal IP address, then the VPN gateway's IP + * address is allocated from the IP address range specified here. For example, if the HA VPN + * gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address + * for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN + * attachment. If this field is not specified when creating the VLAN attachment, then later on + * when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is + * allocated from the regional external IP address pool. + * @return value or {@code null} for none + */ + public java.util.List getIpsecInternalAddresses() { + return ipsecInternalAddresses; + } + + /** + * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the + * VLAN attachment that has the encryption option as IPSEC. The addresses must be regional + * internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the + * attachment is configured to use a regional internal IP address, then the VPN gateway's IP + * address is allocated from the IP address range specified here. For example, if the HA VPN + * gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address + * for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN + * attachment. If this field is not specified when creating the VLAN attachment, then later on + * when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is + * allocated from the regional external IP address pool. + * @param ipsecInternalAddresses ipsecInternalAddresses or {@code null} for none + */ + public InterconnectAttachment setIpsecInternalAddresses(java.util.List ipsecInternalAddresses) { + this.ipsecInternalAddresses = ipsecInternalAddresses; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for + * interconnect attachments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for + * interconnect attachments. + * @param kind kind or {@code null} for none + */ + public InterconnectAttachment setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED. + * + * The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are + * mapped to the destination appliances IP addresses. The packet is then encapsulated with the + * appliance IP address and sent to the edge appliance. + * @return value or {@code null} for none + */ + public InterconnectAttachmentL2Forwarding getL2Forwarding() { + return l2Forwarding; + } + + /** + * L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED. + * + * The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are + * mapped to the destination appliances IP addresses. The packet is then encapsulated with the + * appliance IP address and sent to the edge appliance. + * @param l2Forwarding l2Forwarding or {@code null} for none + */ + public InterconnectAttachment setL2Forwarding(InterconnectAttachmentL2Forwarding l2Forwarding) { + this.l2Forwarding = l2Forwarding; + return this; + } + + /** + * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially + * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially + * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially + * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public InterconnectAttachment setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially + * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public InterconnectAttachment encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public InterconnectAttachment setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. + * @return value or {@code null} for none + */ + public java.lang.Integer getMtu() { + return mtu; + } + + /** + * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect + * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will + * default to 1440. + * @param mtu mtu or {@code null} for none + */ + public InterconnectAttachment setMtu(java.lang.Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 InterconnectAttachment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The current status of whether or not this interconnect attachment is + * functional, which can take one of the following values: - OS_ACTIVE: The attachment has + * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to + * use yet, because turnup is not complete. + * @return value or {@code null} for none + */ + public java.lang.String getOperationalStatus() { + return operationalStatus; + } + + /** + * Output only. [Output Only] The current status of whether or not this interconnect attachment is + * functional, which can take one of the following values: - OS_ACTIVE: The attachment has + * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to + * use yet, because turnup is not complete. + * @param operationalStatus operationalStatus or {@code null} for none + */ + public InterconnectAttachment setOperationalStatus(java.lang.String operationalStatus) { + this.operationalStatus = operationalStatus; + return this; + } + + /** + * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The + * opaque identifier of a PARTNER attachment used to initiate provisioning with a selected + * partner. Of the form "XXXXX/region/domain" + * @return value or {@code null} for none + */ + public java.lang.String getPairingKey() { + return pairingKey; + } + + /** + * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The + * opaque identifier of a PARTNER attachment used to initiate provisioning with a selected + * partner. Of the form "XXXXX/region/domain" + * @param pairingKey pairingKey or {@code null} for none + */ + public InterconnectAttachment setPairingKey(java.lang.String pairingKey) { + this.pairingKey = pairingKey; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public InterconnectAttachmentParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public InterconnectAttachment setParams(InterconnectAttachmentParams params) { + this.params = params; + return this; + } + + /** + * Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf + * of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available + * for DEDICATED. + * @return value or {@code null} for none + */ + public java.lang.Long getPartnerAsn() { + return partnerAsn; + } + + /** + * Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf + * of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available + * for DEDICATED. + * @param partnerAsn partnerAsn or {@code null} for none + */ + public InterconnectAttachment setPartnerAsn(java.lang.Long partnerAsn) { + this.partnerAsn = partnerAsn; + return this; + } + + /** + * Informational metadata about Partner attachments from Partners to display to customers. Output + * only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. + * @return value or {@code null} for none + */ + public InterconnectAttachmentPartnerMetadata getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Informational metadata about Partner attachments from Partners to display to customers. Output + * only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public InterconnectAttachment setPartnerMetadata(InterconnectAttachmentPartnerMetadata partnerMetadata) { + this.partnerMetadata = partnerMetadata; + return this; + } + + /** + * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is + * populated if the interconnect that this is attached to is of type DEDICATED. + * @return value or {@code null} for none + */ + public InterconnectAttachmentPrivateInfo getPrivateInterconnectInfo() { + return privateInterconnectInfo; + } + + /** + * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is + * populated if the interconnect that this is attached to is of type DEDICATED. + * @param privateInterconnectInfo privateInterconnectInfo or {@code null} for none + */ + public InterconnectAttachment setPrivateInterconnectInfo(InterconnectAttachmentPrivateInfo privateInterconnectInfo) { + this.privateInterconnectInfo = privateInterconnectInfo; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional interconnect attachment + * resides. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional interconnect attachment + * resides. You must specify this field as part of the HTTP request URL. It is not settable as a + * field in the request body. + * @param region region or {@code null} for none + */ + public InterconnectAttachment setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this + * field contains the interconnect's remote location service provider. Example values: "Amazon Web + * Services" "Microsoft Azure". + * + * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is + * copied from the InterconnectRemoteLocation remoteService field. + * @return value or {@code null} for none + */ + public java.lang.String getRemoteService() { + return remoteService; + } + + /** + * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this + * field contains the interconnect's remote location service provider. Example values: "Amazon Web + * Services" "Microsoft Azure". + * + * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is + * copied from the InterconnectRemoteLocation remoteService field. + * @param remoteService remoteService or {@code null} for none + */ + public InterconnectAttachment setRemoteService(java.lang.String remoteService) { + this.remoteService = remoteService; + return this; + } + + /** + * URL of the Cloud Router to be used for dynamic routing. This router must be in the same region + * as this InterconnectAttachment. The InterconnectAttachment will automatically connect the + * Interconnect to the network & region within which the Cloud Router is configured. + * @return value or {@code null} for none + */ + public java.lang.String getRouter() { + return router; + } + + /** + * URL of the Cloud Router to be used for dynamic routing. This router must be in the same region + * as this InterconnectAttachment. The InterconnectAttachment will automatically connect the + * Interconnect to the network & region within which the Cloud Router is configured. + * @param router router or {@code null} for none + */ + public InterconnectAttachment setRouter(java.lang.String router) { + this.router = router; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public InterconnectAttachment setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 InterconnectAttachment setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled + * or not. If not specified, IPV4_ONLY will be used. + * + * This field can be both set at interconnect attachments creation and update interconnect + * attachment operations. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled + * or not. If not specified, IPV4_ONLY will be used. + * + * This field can be both set at interconnect attachments creation and update interconnect + * attachment operations. + * @param stackType stackType or {@code null} for none + */ + public InterconnectAttachment setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + /** + * Output only. [Output Only] The current state of this attachment's functionality. Enum values + * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER + * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and + * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This + * state can take one of the following values: - ACTIVE: The attachment has been turned up + * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup + * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in + * the process of provisioning after a PARTNER_PROVIDER attachment was created that + * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is + * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally + * and is no longer functional. This could be because the associated Interconnect was removed, + * or because the other side of a Partner attachment was deleted. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The current state of this attachment's functionality. Enum values + * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER + * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and + * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This + * state can take one of the following values: - ACTIVE: The attachment has been turned up + * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup + * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in + * the process of provisioning after a PARTNER_PROVIDER attachment was created that + * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is + * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally + * and is no longer functional. This could be because the associated Interconnect was removed, + * or because the other side of a Partner attachment was deleted. + * @param state state or {@code null} for none + */ + public InterconnectAttachment setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 + * + * The default value is 29, except for Cross-Cloud Interconnect connections that use an + * InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, + * connections that use an Azure remote location fall into this category. In these cases, the + * default value is 30, and requesting 29 returns an error. + * + * Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more + * debugging visibility. + * @return value or {@code null} for none + */ + public java.lang.Integer getSubnetLength() { + return subnetLength; + } + + /** + * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 + * + * The default value is 29, except for Cross-Cloud Interconnect connections that use an + * InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, + * connections that use an Azure remote location fall into this category. In these cases, the + * default value is 30, and requesting 29 returns an error. + * + * Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more + * debugging visibility. + * @param subnetLength subnetLength or {@code null} for none + */ + public InterconnectAttachment setSubnetLength(java.lang.Integer subnetLength) { + this.subnetLength = subnetLength; + return this; + } + + /** + * The type of interconnect attachment this is, which can take one of the following values: + * - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a + * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a + * Partner Interconnect, created by the partner. + * + * - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of interconnect attachment this is, which can take one of the following values: + * - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a + * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a + * Partner Interconnect, created by the partner. + * + * - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. + * @param type type or {@code null} for none + */ + public InterconnectAttachment setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation + * time. + * @return value or {@code null} for none + */ + public java.lang.Integer getVlanTag8021q() { + return vlanTag8021q; + } + + /** + * The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation + * time. + * @param vlanTag8021q vlanTag8021q or {@code null} for none + */ + public InterconnectAttachment setVlanTag8021q(java.lang.Integer vlanTag8021q) { + this.vlanTag8021q = vlanTag8021q; + return this; + } + + @Override + public InterconnectAttachment set(String fieldName, Object value) { + return (InterconnectAttachment) super.set(fieldName, value); + } + + @Override + public InterconnectAttachment clone() { + return (InterconnectAttachment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentAggregatedList.java new file mode 100644 index 00000000000..4d50abeb392 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 InterconnectAttachmentAggregatedList. + * + *

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 InterconnectAttachmentAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 InterconnectAttachmentsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList + * for aggregated lists of interconnect attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 InterconnectAttachmentAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectAttachmentsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of InterconnectAttachmentsScopedList resources. + * @param items items or {@code null} for none + */ + public InterconnectAttachmentAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList + * for aggregated lists of interconnect attachments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList + * for aggregated lists of interconnect attachments. + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectAttachmentAggregatedList 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 InterconnectAttachmentAggregatedList 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 InterconnectAttachmentAggregatedList 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 InterconnectAttachmentAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectAttachmentAggregatedList set(String fieldName, Object value) { + return (InterconnectAttachmentAggregatedList) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentAggregatedList clone() { + return (InterconnectAttachmentAggregatedList) 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 InterconnectAttachmentAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java new file mode 100644 index 00000000000..1988be83c63 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -0,0 +1,132 @@ +/* + * 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 InterconnectAttachmentConfigurationConstraints. + * + *

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 InterconnectAttachmentConfigurationConstraints extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP + * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, + * MD5_UNSUPPORTED. + * + * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP + * MD5 authentication has the interconnectRemoteLocation + * attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is + * propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if + * MD5 is requested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bgpMd5; + + /** + * Output only. [Output Only] List of ASN ranges that the remote location is known to support. + * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: + * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the + * range 64512-65534. + * + * This field is only advisory. Although the API accepts other ranges, these are the ranges that + * we recommend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bgpPeerAsnRanges; + + /** + * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP + * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, + * MD5_UNSUPPORTED. + * + * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP + * MD5 authentication has the interconnectRemoteLocation + * attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is + * propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if + * MD5 is requested. + * @return value or {@code null} for none + */ + public java.lang.String getBgpMd5() { + return bgpMd5; + } + + /** + * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP + * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, + * MD5_UNSUPPORTED. + * + * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP + * MD5 authentication has the interconnectRemoteLocation + * attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is + * propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if + * MD5 is requested. + * @param bgpMd5 bgpMd5 or {@code null} for none + */ + public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String bgpMd5) { + this.bgpMd5 = bgpMd5; + return this; + } + + /** + * Output only. [Output Only] List of ASN ranges that the remote location is known to support. + * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: + * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the + * range 64512-65534. + * + * This field is only advisory. Although the API accepts other ranges, these are the ranges that + * we recommend. + * @return value or {@code null} for none + */ + public java.util.List getBgpPeerAsnRanges() { + return bgpPeerAsnRanges; + } + + /** + * Output only. [Output Only] List of ASN ranges that the remote location is known to support. + * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: + * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the + * range 64512-65534. + * + * This field is only advisory. Although the API accepts other ranges, these are the ranges that + * we recommend. + * @param bgpPeerAsnRanges bgpPeerAsnRanges or {@code null} for none + */ + public InterconnectAttachmentConfigurationConstraints setBgpPeerAsnRanges(java.util.List bgpPeerAsnRanges) { + this.bgpPeerAsnRanges = bgpPeerAsnRanges; + return this; + } + + @Override + public InterconnectAttachmentConfigurationConstraints set(String fieldName, Object value) { + return (InterconnectAttachmentConfigurationConstraints) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentConfigurationConstraints clone() { + return (InterconnectAttachmentConfigurationConstraints) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java new file mode 100644 index 00000000000..aecf0cd0ce4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java @@ -0,0 +1,84 @@ +/* + * 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 InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange. + * + *

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 InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long max; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long min; + + /** + * @return value or {@code null} for none + */ + public java.lang.Long getMax() { + return max; + } + + /** + * @param max max or {@code null} for none + */ + public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange setMax(java.lang.Long max) { + this.max = max; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Long getMin() { + return min; + } + + /** + * @param min min or {@code null} for none + */ + public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange setMin(java.lang.Long min) { + this.min = min; + return this; + } + + @Override + public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange set(String fieldName, Object value) { + return (InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange clone() { + return (InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java new file mode 100644 index 00000000000..2f00c327058 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroup.java @@ -0,0 +1,358 @@ +/* + * 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; + +/** + * An interconnect attachment group resource allows customers to create, analyze, and expand highly + * available deployments. + * + *

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 InterconnectAttachmentGroup extends com.google.api.client.json.GenericJson { + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map attachments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured configured; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described byAIP 154. + * 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 type. The server generates + * this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupIntent intent; + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectGroup; + + /** + * Output only. [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * 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 InterconnectAttachmentGroupLogicalStructure logicalStructure; + + /** + * Name of the resource. Provided by the client 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] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * @return value or {@code null} for none + */ + public java.util.Map getAttachments() { + return attachments; + } + + /** + * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Attachments per group" quota. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroup setAttachments(java.util.Map attachments) { + this.attachments = attachments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectAttachmentGroup setConfigured(InterconnectAttachmentGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectAttachmentGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectAttachmentGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described byAIP 154. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described byAIP 154. + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroup setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public InterconnectAttachmentGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectAttachmentGroup setIntent(InterconnectAttachmentGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectGroup() { + return interconnectGroup; + } + + /** + * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not + * need to set this unless directed by Google Support. + * @param interconnectGroup interconnectGroup or {@code null} for none + */ + public InterconnectAttachmentGroup setInterconnectGroup(java.lang.String interconnectGroup) { + this.interconnectGroup = interconnectGroup; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructure getLogicalStructure() { + return logicalStructure; + } + + /** + * @param logicalStructure logicalStructure or {@code null} for none + */ + public InterconnectAttachmentGroup setLogicalStructure(InterconnectAttachmentGroupLogicalStructure logicalStructure) { + this.logicalStructure = logicalStructure; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 InterconnectAttachmentGroup 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 InterconnectAttachmentGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public InterconnectAttachmentGroup set(String fieldName, Object value) { + return (InterconnectAttachmentGroup) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroup clone() { + return (InterconnectAttachmentGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java new file mode 100644 index 00000000000..25dd80300b6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupAttachment.java @@ -0,0 +1,63 @@ +/* + * 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; + +/** + * An Attachment in this AttachmentGroup. + * + *

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 InterconnectAttachmentGroupAttachment extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAttachment() { + return attachment; + } + + /** + * @param attachment attachment or {@code null} for none + */ + public InterconnectAttachmentGroupAttachment setAttachment(java.lang.String attachment) { + this.attachment = attachment; + return this; + } + + @Override + public InterconnectAttachmentGroupAttachment set(String fieldName, Object value) { + return (InterconnectAttachmentGroupAttachment) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupAttachment clone() { + return (InterconnectAttachmentGroupAttachment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java new file mode 100644 index 00000000000..060c10533ee --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfigured.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The redundancy this group is configured to support. The way a user queries what SLA + * their Attachment gets is by looking at this field of the Attachment's AttachmentGroup. + * + *

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 InterconnectAttachmentGroupConfigured extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla; + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA getAvailabilitySla() { + return availabilitySla; + } + + /** + * @param availabilitySla availabilitySla or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured setAvailabilitySla(InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla) { + this.availabilitySla = availabilitySla; + return this; + } + + @Override + public InterconnectAttachmentGroupConfigured set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfigured) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfigured clone() { + return (InterconnectAttachmentGroupConfigured) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java new file mode 100644 index 00000000000..bf9f54a3cb0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java @@ -0,0 +1,85 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Which SLA this group is configured to support, and why this group does or does not + * meet that SLA's requirements. + * + *

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 InterconnectAttachmentGroupConfiguredAvailabilitySLA extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveSla; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List intendedSlaBlockers; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveSla() { + return effectiveSla; + } + + /** + * @param effectiveSla effectiveSla or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA setEffectiveSla(java.lang.String effectiveSla) { + this.effectiveSla = effectiveSla; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntendedSlaBlockers() { + return intendedSlaBlockers; + } + + /** + * @param intendedSlaBlockers intendedSlaBlockers or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLA setIntendedSlaBlockers(java.util.List intendedSlaBlockers) { + this.intendedSlaBlockers = intendedSlaBlockers; + return this; + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLA set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLA clone() { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java new file mode 100644 index 00000000000..d41b4f1f091 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java @@ -0,0 +1,235 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Reasons why configuration.availabilitySLA.sla differs from intent.availabilitySLA. + * This list is empty if and only if those are the same. + * + *

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 InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more + * detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachments; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blockerType; + + /** + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationLink; + + /** + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * Output only. [Output Only] Regions used to explain this blocker in more detail. These are + * region names formatted like "us-central1". This will be set for some blockers (like + * INCOMPATIBLE_REGIONS) but does not apply to others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regions; + + /** + * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" + * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to + * others. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more + * detail. + * @return value or {@code null} for none + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more + * detail. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setAttachments(java.util.List attachments) { + this.attachments = attachments; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBlockerType() { + return blockerType; + } + + /** + * @param blockerType blockerType or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setBlockerType(java.lang.String blockerType) { + this.blockerType = blockerType; + return this; + } + + /** + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationLink() { + return documentationLink; + } + + /** + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. + * @param documentationLink documentationLink or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setDocumentationLink(java.lang.String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + /** + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. + * @param explanation explanation or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". This will be set for some blockers (like + * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. + * @param metros metros or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * Output only. [Output Only] Regions used to explain this blocker in more detail. These are + * region names formatted like "us-central1". This will be set for some blockers (like + * INCOMPATIBLE_REGIONS) but does not apply to others. + * @return value or {@code null} for none + */ + public java.util.List getRegions() { + return regions; + } + + /** + * Output only. [Output Only] Regions used to explain this blocker in more detail. These are + * region names formatted like "us-central1". This will be set for some blockers (like + * INCOMPATIBLE_REGIONS) but does not apply to others. + * @param regions regions or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setRegions(java.util.List regions) { + this.regions = regions; + return this; + } + + /** + * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" + * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to + * others. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" + * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to + * others. + * @param zones zones or {@code null} for none + */ + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers set(String fieldName, Object value) { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers clone() { + return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java new file mode 100644 index 00000000000..6ae6fcedd40 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupIntent.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The user's intent for this AttachmentGroup. This is the only required field besides the name that + * must be specified on group creation. + * + *

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 InterconnectAttachmentGroupIntent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilitySla; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilitySla() { + return availabilitySla; + } + + /** + * @param availabilitySla availabilitySla or {@code null} for none + */ + public InterconnectAttachmentGroupIntent setAvailabilitySla(java.lang.String availabilitySla) { + this.availabilitySla = availabilitySla; + return this; + } + + @Override + public InterconnectAttachmentGroupIntent set(String fieldName, Object value) { + return (InterconnectAttachmentGroupIntent) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupIntent clone() { + return (InterconnectAttachmentGroupIntent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java new file mode 100644 index 00000000000..2301e034dc1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructure.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] An analysis of the logical layout of Attachments in this group. Every Attachment in + * the group is shown once in this structure. + * + *

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 InterconnectAttachmentGroupLogicalStructure extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regions; + + /** + * @return value or {@code null} for none + */ + public java.util.List getRegions() { + return regions; + } + + /** + * @param regions regions or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructure setRegions(java.util.List regions) { + this.regions = regions; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructure set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructure) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructure clone() { + return (InterconnectAttachmentGroupLogicalStructure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java new file mode 100644 index 00000000000..ac31099ab68 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The regions Attachments in this group are in. + * + *

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 InterconnectAttachmentGroupLogicalStructureRegion extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * Output only. [Output Only] The name of a region, like "us-central1". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * @param metros metros or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * Output only. [Output Only] The name of a region, like "us-central1". + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The name of a region, like "us-central1". + * @param region region or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegion setRegion(java.lang.String region) { + this.region = region; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegion set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegion) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegion clone() { + return (InterconnectAttachmentGroupLogicalStructureRegion) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java new file mode 100644 index 00000000000..45ba8bbc924 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The metros of Attachments in this group in this region. + * + *

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 InterconnectAttachmentGroupLogicalStructureRegionMetro extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of an Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metro; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * @param facilities facilities or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of an Interconnect. + * @return value or {@code null} for none + */ + public java.lang.String getMetro() { + return metro; + } + + /** + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of an Interconnect. + * @param metro metro or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetro setMetro(java.lang.String metro) { + this.metro = metro; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetro set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetro clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java new file mode 100644 index 00000000000..c0d019c94e5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The facilities used for this group's Attachments' Interconnects. + * + *

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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The name of a facility, like "iad-1234". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * Output only. [Output Only] The name of a facility, like "iad-1234". + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * Output only. [Output Only] The name of a facility, like "iad-1234". + * @param facility facility or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * @param zones zones or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java new file mode 100644 index 00000000000..51dea9c5bf9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The zones that Attachments in this group are present in, in the given facilities. + * This is inherited from their Interconnects. + * + *

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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on + * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachments; + + /** + * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on + * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. + * @return value or {@code null} for none + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on + * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. + * @param attachments attachments or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAttachments(java.util.List attachments) { + this.attachments = attachments; + return this; + } + + /** + * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * @param zone zone or {@code null} for none + */ + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone set(String fieldName, Object value) { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone clone() { + return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java new file mode 100644 index 00000000000..38eb36dc142 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java @@ -0,0 +1,84 @@ +/* + * 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 for the InterconnectAttachmentGroupsGetOperationalStatusResponse. + * + *

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 InterconnectAttachmentGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupsOperationalStatus result; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectAttachmentGroupsGetOperationalStatusResponse setResult(InterconnectAttachmentGroupsOperationalStatus result) { + this.result = result; + return this; + } + + @Override + public InterconnectAttachmentGroupsGetOperationalStatusResponse set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsGetOperationalStatusResponse clone() { + return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java new file mode 100644 index 00000000000..df220a253f1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -0,0 +1,428 @@ +/* + * 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 InterconnectAttachmentGroupsListResponse. + * + *

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 InterconnectAttachmentGroupsListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 InterconnectAttachmentGroup 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 InterconnectAttachmentGroup 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(InterconnectAttachmentGroup.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse 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 InterconnectAttachmentGroupsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectAttachmentGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectAttachmentGroup resources. + * @param items items or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse 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 InterconnectAttachmentGroupsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public InterconnectAttachmentGroupsListResponse 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 InterconnectAttachmentGroupsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectAttachmentGroupsListResponse set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsListResponse) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsListResponse clone() { + return (InterconnectAttachmentGroupsListResponse) 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 InterconnectAttachmentGroupsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java new file mode 100644 index 00000000000..5789be05d78 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -0,0 +1,153 @@ +/* + * 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 InterconnectAttachmentGroupsOperationalStatus. + * + *

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 InterconnectAttachmentGroupsOperationalStatus extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachmentStatuses; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured configured; + + /** + * Output only. Summarizes the status of the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupStatus; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupIntent intent; + + /** + * Output only. The operational state of the group, including only active Attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentGroupConfigured operational; + + /** + * @return value or {@code null} for none + */ + public java.util.List getAttachmentStatuses() { + return attachmentStatuses; + } + + /** + * @param attachmentStatuses attachmentStatuses or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setAttachmentStatuses(java.util.List attachmentStatuses) { + this.attachmentStatuses = attachmentStatuses; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectAttachmentGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Output only. Summarizes the status of the group. + * @return value or {@code null} for none + */ + public java.lang.String getGroupStatus() { + return groupStatus; + } + + /** + * Output only. Summarizes the status of the group. + * @param groupStatus groupStatus or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { + this.groupStatus = groupStatus; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttachmentGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * Output only. The operational state of the group, including only active Attachments. + * @return value or {@code null} for none + */ + public InterconnectAttachmentGroupConfigured getOperational() { + return operational; + } + + /** + * Output only. The operational state of the group, including only active Attachments. + * @param operational operational or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectAttachmentGroupsOperationalStatus set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsOperationalStatus) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsOperationalStatus clone() { + return (InterconnectAttachmentGroupsOperationalStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java new file mode 100644 index 00000000000..3122c881cc7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -0,0 +1,147 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The status of one Attachment in the group. List order is arbitrary. + * + *

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 InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Whether this Attachment is enabled. This becomes false when the customer drains + * their Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Output only. The URL of the Attachment being described. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachment; + + /** + * Output only. Whether this Attachment is participating in the redundant configuration. This will + * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are + * excluded from the analysis that generates operational.availabilitySLA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String isActive; + + /** + * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. Whether this Attachment is enabled. This becomes false when the customer drains + * their Attachment. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Output only. Whether this Attachment is enabled. This becomes false when the customer drains + * their Attachment. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Output only. The URL of the Attachment being described. + * @return value or {@code null} for none + */ + public java.lang.String getAttachment() { + return attachment; + } + + /** + * Output only. The URL of the Attachment being described. + * @param attachment attachment or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { + this.attachment = attachment; + return this; + } + + /** + * Output only. Whether this Attachment is participating in the redundant configuration. This will + * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are + * excluded from the analysis that generates operational.availabilitySLA. + * @return value or {@code null} for none + */ + public java.lang.String getIsActive() { + return isActive; + } + + /** + * Output only. Whether this Attachment is participating in the redundant configuration. This will + * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are + * excluded from the analysis that generates operational.availabilitySLA. + * @param isActive isActive or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive(java.lang.String isActive) { + this.isActive = isActive; + return this; + } + + /** + * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * @param status status or {@code null} for none + */ + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus set(String fieldName, Object value) { + return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus clone() { + return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2Forwarding.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2Forwarding.java new file mode 100644 index 00000000000..6e2387dfa15 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2Forwarding.java @@ -0,0 +1,204 @@ +/* + * 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; + +/** + * L2 Interconnect Attachment related configuration. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InterconnectAttachmentL2Forwarding extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not + * explicitly mapped to any appliance, the defaultApplianceIpAddress is used. + * + * Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" + * or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating + * operations will be rejected. + * + * The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map applianceMappings; + + /** + * Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no + * VLAN mapping result found. + * + * Unset field (null-value) indicates the unmatched packet should be dropped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultApplianceIpAddress; + + /** + * Optional. It represents the structure of a Geneve (Generic Network Virtualization + * Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols + * (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentL2ForwardingGeneveHeader geneveHeader; + + /** + * Required. Resource URL of the network to which this attachment belongs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for + * packets sent to the appliances, and must be used as the destination IP address for packets that + * should be sent out through this attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tunnelEndpointIpAddress; + + /** + * Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not + * explicitly mapped to any appliance, the defaultApplianceIpAddress is used. + * + * Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" + * or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating + * operations will be rejected. + * + * The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100. + * @return value or {@code null} for none + */ + public java.util.Map getApplianceMappings() { + return applianceMappings; + } + + /** + * Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not + * explicitly mapped to any appliance, the defaultApplianceIpAddress is used. + * + * Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" + * or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating + * operations will be rejected. + * + * The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100. + * @param applianceMappings applianceMappings or {@code null} for none + */ + public InterconnectAttachmentL2Forwarding setApplianceMappings(java.util.Map applianceMappings) { + this.applianceMappings = applianceMappings; + return this; + } + + /** + * Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no + * VLAN mapping result found. + * + * Unset field (null-value) indicates the unmatched packet should be dropped. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultApplianceIpAddress() { + return defaultApplianceIpAddress; + } + + /** + * Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no + * VLAN mapping result found. + * + * Unset field (null-value) indicates the unmatched packet should be dropped. + * @param defaultApplianceIpAddress defaultApplianceIpAddress or {@code null} for none + */ + public InterconnectAttachmentL2Forwarding setDefaultApplianceIpAddress(java.lang.String defaultApplianceIpAddress) { + this.defaultApplianceIpAddress = defaultApplianceIpAddress; + return this; + } + + /** + * Optional. It represents the structure of a Geneve (Generic Network Virtualization + * Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols + * (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments. + * @return value or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingGeneveHeader getGeneveHeader() { + return geneveHeader; + } + + /** + * Optional. It represents the structure of a Geneve (Generic Network Virtualization + * Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols + * (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments. + * @param geneveHeader geneveHeader or {@code null} for none + */ + public InterconnectAttachmentL2Forwarding setGeneveHeader(InterconnectAttachmentL2ForwardingGeneveHeader geneveHeader) { + this.geneveHeader = geneveHeader; + return this; + } + + /** + * Required. Resource URL of the network to which this attachment belongs. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Required. Resource URL of the network to which this attachment belongs. + * @param network network or {@code null} for none + */ + public InterconnectAttachmentL2Forwarding setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for + * packets sent to the appliances, and must be used as the destination IP address for packets that + * should be sent out through this attachment. + * @return value or {@code null} for none + */ + public java.lang.String getTunnelEndpointIpAddress() { + return tunnelEndpointIpAddress; + } + + /** + * Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for + * packets sent to the appliances, and must be used as the destination IP address for packets that + * should be sent out through this attachment. + * @param tunnelEndpointIpAddress tunnelEndpointIpAddress or {@code null} for none + */ + public InterconnectAttachmentL2Forwarding setTunnelEndpointIpAddress(java.lang.String tunnelEndpointIpAddress) { + this.tunnelEndpointIpAddress = tunnelEndpointIpAddress; + return this; + } + + @Override + public InterconnectAttachmentL2Forwarding set(String fieldName, Object value) { + return (InterconnectAttachmentL2Forwarding) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentL2Forwarding clone() { + return (InterconnectAttachmentL2Forwarding) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMapping.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMapping.java new file mode 100644 index 00000000000..68d44129602 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMapping.java @@ -0,0 +1,135 @@ +/* + * 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; + +/** + * Two-level VLAN-to-Appliance mapping rule. + * + *

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 InterconnectAttachmentL2ForwardingApplianceMapping extends com.google.api.client.json.GenericJson { + + /** + * Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets + * that match on a VLAN tag, but do not match a more specific inner VLAN tag. + * + * Unset field (null-value) indicates both VLAN tags are required to be mapped. Otherwise, + * defaultApplianceIpAddress is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String applianceIpAddress; + + /** + * Optional. Used to match against the inner VLAN when the packet contains two VLAN tags. + * + * A list of mapping rules from inner VLAN tags to IP addresses. If the inner VLAN is not + * explicitly mapped to an IP address range, the applianceIpAddress is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List innerVlanToApplianceMappings; + + /** + * Optional. The name of this appliance mapping rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets + * that match on a VLAN tag, but do not match a more specific inner VLAN tag. + * + * Unset field (null-value) indicates both VLAN tags are required to be mapped. Otherwise, + * defaultApplianceIpAddress is used. + * @return value or {@code null} for none + */ + public java.lang.String getApplianceIpAddress() { + return applianceIpAddress; + } + + /** + * Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets + * that match on a VLAN tag, but do not match a more specific inner VLAN tag. + * + * Unset field (null-value) indicates both VLAN tags are required to be mapped. Otherwise, + * defaultApplianceIpAddress is used. + * @param applianceIpAddress applianceIpAddress or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingApplianceMapping setApplianceIpAddress(java.lang.String applianceIpAddress) { + this.applianceIpAddress = applianceIpAddress; + return this; + } + + /** + * Optional. Used to match against the inner VLAN when the packet contains two VLAN tags. + * + * A list of mapping rules from inner VLAN tags to IP addresses. If the inner VLAN is not + * explicitly mapped to an IP address range, the applianceIpAddress is used. + * @return value or {@code null} for none + */ + public java.util.List getInnerVlanToApplianceMappings() { + return innerVlanToApplianceMappings; + } + + /** + * Optional. Used to match against the inner VLAN when the packet contains two VLAN tags. + * + * A list of mapping rules from inner VLAN tags to IP addresses. If the inner VLAN is not + * explicitly mapped to an IP address range, the applianceIpAddress is used. + * @param innerVlanToApplianceMappings innerVlanToApplianceMappings or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingApplianceMapping setInnerVlanToApplianceMappings(java.util.List innerVlanToApplianceMappings) { + this.innerVlanToApplianceMappings = innerVlanToApplianceMappings; + return this; + } + + /** + * Optional. The name of this appliance mapping rule. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of this appliance mapping rule. + * @param name name or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingApplianceMapping setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public InterconnectAttachmentL2ForwardingApplianceMapping set(String fieldName, Object value) { + return (InterconnectAttachmentL2ForwardingApplianceMapping) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentL2ForwardingApplianceMapping clone() { + return (InterconnectAttachmentL2ForwardingApplianceMapping) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java new file mode 100644 index 00000000000..6b11bc76e69 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java @@ -0,0 +1,108 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The inner VLAN-to-Appliance mapping. + * + *

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 InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping extends com.google.api.client.json.GenericJson { + + /** + * Required in this object. A single IPv4 or IPv6 address used as the destination IP address for + * ingress packets that match on both VLAN tags. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String innerApplianceIpAddress; + + /** + * Required in this object. Used to match the inner VLAN tag on the packet. Each entry can be a + * single number or a range of numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] is + * valid. Non-empty and Non-overlapping VLAN tag ranges are enforced, and violating operations + * will be rejected. + * + * The inner VLAN tags must have an ethertype value of 0x8100. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List innerVlanTags; + + /** + * Required in this object. A single IPv4 or IPv6 address used as the destination IP address for + * ingress packets that match on both VLAN tags. + * @return value or {@code null} for none + */ + public java.lang.String getInnerApplianceIpAddress() { + return innerApplianceIpAddress; + } + + /** + * Required in this object. A single IPv4 or IPv6 address used as the destination IP address for + * ingress packets that match on both VLAN tags. + * @param innerApplianceIpAddress innerApplianceIpAddress or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping setInnerApplianceIpAddress(java.lang.String innerApplianceIpAddress) { + this.innerApplianceIpAddress = innerApplianceIpAddress; + return this; + } + + /** + * Required in this object. Used to match the inner VLAN tag on the packet. Each entry can be a + * single number or a range of numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] is + * valid. Non-empty and Non-overlapping VLAN tag ranges are enforced, and violating operations + * will be rejected. + * + * The inner VLAN tags must have an ethertype value of 0x8100. + * @return value or {@code null} for none + */ + public java.util.List getInnerVlanTags() { + return innerVlanTags; + } + + /** + * Required in this object. Used to match the inner VLAN tag on the packet. Each entry can be a + * single number or a range of numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] is + * valid. Non-empty and Non-overlapping VLAN tag ranges are enforced, and violating operations + * will be rejected. + * + * The inner VLAN tags must have an ethertype value of 0x8100. + * @param innerVlanTags innerVlanTags or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping setInnerVlanTags(java.util.List innerVlanTags) { + this.innerVlanTags = innerVlanTags; + return this; + } + + @Override + public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping set(String fieldName, Object value) { + return (InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping clone() { + return (InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingGeneveHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingGeneveHeader.java new file mode 100644 index 00000000000..e0d64730204 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentL2ForwardingGeneveHeader.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; + +/** + * GeneveHeader related configurations. + * + *

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 InterconnectAttachmentL2ForwardingGeneveHeader extends com.google.api.client.json.GenericJson { + + /** + * Optional. VNI is a 24-bit unique virtual network identifier, from 0 to 16,777,215. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long vni; + + /** + * Optional. VNI is a 24-bit unique virtual network identifier, from 0 to 16,777,215. + * @return value or {@code null} for none + */ + public java.lang.Long getVni() { + return vni; + } + + /** + * Optional. VNI is a 24-bit unique virtual network identifier, from 0 to 16,777,215. + * @param vni vni or {@code null} for none + */ + public InterconnectAttachmentL2ForwardingGeneveHeader setVni(java.lang.Long vni) { + this.vni = vni; + return this; + } + + @Override + public InterconnectAttachmentL2ForwardingGeneveHeader set(String fieldName, Object value) { + return (InterconnectAttachmentL2ForwardingGeneveHeader) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentL2ForwardingGeneveHeader clone() { + return (InterconnectAttachmentL2ForwardingGeneveHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java new file mode 100644 index 00000000000..4412654271f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -0,0 +1,386 @@ +/* + * 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 the list request, and contains a list of interconnect attachments. + * + *

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 InterconnectAttachmentList extends com.google.api.client.json.GenericJson { + + /** + * [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 InterconnectAttachment 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 InterconnectAttachment 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(InterconnectAttachment.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists + * of interconnect attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InterconnectAttachmentList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectAttachment resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectAttachment resources. + * @param items items or {@code null} for none + */ + public InterconnectAttachmentList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists + * of interconnect attachments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists + * of interconnect attachments. + * @param kind kind or {@code null} for none + */ + public InterconnectAttachmentList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectAttachmentList 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 InterconnectAttachmentList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InterconnectAttachmentList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectAttachmentList set(String fieldName, Object value) { + return (InterconnectAttachmentList) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentList clone() { + return (InterconnectAttachmentList) 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 InterconnectAttachmentListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentParams.java new file mode 100644 index 00000000000..dc82e645763 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentParams.java @@ -0,0 +1,87 @@ +/* + * 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; + +/** + * Additional interconnect attachment parameters. + * + *

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 InterconnectAttachmentParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public InterconnectAttachmentParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public InterconnectAttachmentParams set(String fieldName, Object value) { + return (InterconnectAttachmentParams) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentParams clone() { + return (InterconnectAttachmentParams) super.clone(); + } + +} From d9c9e91e97d17e4dc707eeaacc96ba9b4425f745 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:24 -0700 Subject: [PATCH 06/23] chore: regenerate compute client --- ...InterconnectAttachmentPartnerMetadata.java | 131 ++++ .../InterconnectAttachmentPrivateInfo.java | 70 ++ .../InterconnectAttachmentsScopedList.java | 278 +++++++ .../model/InterconnectCircuitInfo.java | 118 +++ .../model/InterconnectDiagnostics.java | 172 +++++ .../InterconnectDiagnosticsARPEntry.java | 90 +++ ...InterconnectDiagnosticsLinkLACPStatus.java | 120 ++++ ...terconnectDiagnosticsLinkOpticalPower.java | 111 +++ .../InterconnectDiagnosticsLinkStatus.java | 246 +++++++ .../InterconnectDiagnosticsMacsecStatus.java | 93 +++ .../compute/model/InterconnectGroup.java | 331 +++++++++ .../model/InterconnectGroupConfigured.java | 65 ++ ...nectGroupConfiguredTopologyCapability.java | 85 +++ ...yCapabilityIntendedCapabilityBlockers.java | 226 ++++++ .../model/InterconnectGroupIntent.java | 64 ++ .../model/InterconnectGroupInterconnect.java | 66 ++ .../InterconnectGroupPhysicalStructure.java | 64 ++ ...erconnectGroupPhysicalStructureMetros.java | 90 +++ ...roupPhysicalStructureMetrosFacilities.java | 90 +++ ...hysicalStructureMetrosFacilitiesZones.java | 96 +++ .../InterconnectGroupsCreateMembers.java | 114 +++ ...tGroupsCreateMembersInterconnectInput.java | 390 ++++++++++ ...nterconnectGroupsCreateMembersRequest.java | 63 ++ ...ectGroupsGetOperationalStatusResponse.java | 84 +++ .../model/InterconnectGroupsListResponse.java | 428 +++++++++++ .../InterconnectGroupsOperationalStatus.java | 159 ++++ ...psOperationalStatusInterconnectStatus.java | 141 ++++ .../compute/model/InterconnectList.java | 386 ++++++++++ .../compute/model/InterconnectLocation.java | 588 +++++++++++++++ ...nectLocationCrossSiteInterconnectInfo.java | 127 ++++ .../model/InterconnectLocationList.java | 386 ++++++++++ .../model/InterconnectLocationRegionInfo.java | 145 ++++ .../compute/model/InterconnectMacsec.java | 112 +++ .../model/InterconnectMacsecConfig.java | 76 ++ .../InterconnectMacsecConfigPreSharedKey.java | 139 ++++ .../model/InterconnectMacsecPreSharedKey.java | 112 +++ .../model/InterconnectOutageNotification.java | 285 ++++++++ .../compute/model/InterconnectParams.java | 87 +++ .../model/InterconnectRemoteLocation.java | 600 ++++++++++++++++ ...InterconnectRemoteLocationConstraints.java | 171 +++++ ...eLocationConstraintsSubnetLengthRange.java | 84 +++ .../model/InterconnectRemoteLocationList.java | 386 ++++++++++ ...ectRemoteLocationPermittedConnections.java | 69 ++ .../InterconnectsGetDiagnosticsResponse.java | 63 ++ .../InterconnectsGetMacsecConfigResponse.java | 87 +++ .../model/InterconnectsSetNameRequest.java | 96 +++ .../api/services/compute/model/Interval.java | 106 +++ .../api/services/compute/model/License.java | 604 ++++++++++++++++ .../services/compute/model/LicenseCode.java | 531 ++++++++++++++ .../model/LicenseCodeLicenseAlias.java | 90 +++ .../services/compute/model/LicenseParams.java | 78 ++ .../model/LicenseResourceCommitment.java | 114 +++ .../model/LicenseResourceRequirements.java | 96 +++ .../compute/model/LicensesListResponse.java | 359 ++++++++++ .../model/ListInstantSnapshotGroups.java | 431 +++++++++++ .../api/services/compute/model/LocalDisk.java | 120 ++++ .../compute/model/LocalizedMessage.java | 94 +++ .../compute/model/LocationPolicy.java | 136 ++++ .../compute/model/LocationPolicyLocation.java | 90 +++ .../LocationPolicyLocationConstraints.java | 69 ++ .../LocationPolicyZoneConfiguration.java | 69 ++ .../services/compute/model/MachineImage.java | 678 ++++++++++++++++++ .../compute/model/MachineImageList.java | 386 ++++++++++ .../compute/model/MachineImageParams.java | 78 ++ .../services/compute/model/MachineType.java | 533 ++++++++++++++ .../model/MachineTypeAggregatedList.java | 404 +++++++++++ .../compute/model/MachineTypeList.java | 386 ++++++++++ .../compute/model/MachineTypesScopedList.java | 278 +++++++ .../compute/model/ManagedInstance.java | 447 ++++++++++++ .../model/ManagedInstanceInstanceHealth.java | 93 +++ .../model/ManagedInstanceLastAttempt.java | 384 ++++++++++ ...stancePropertiesFromFlexibilityPolicy.java | 120 ++++ .../model/ManagedInstanceScheduling.java | 96 +++ .../model/ManagedInstanceShutdownDetails.java | 96 +++ .../compute/model/ManagedInstanceVersion.java | 93 +++ .../compute/model/ManagedRuleset.java | 259 +++++++ .../compute/model/ManagedRulesetList.java | 317 ++++++++ .../api/services/compute/model/Metadata.java | 258 +++++++ .../compute/model/MetadataFilter.java | 126 ++++ .../model/MetadataFilterLabelMatch.java | 103 +++ .../api/services/compute/model/Money.java | 126 ++++ .../api/services/compute/model/NamedPort.java | 90 +++ .../api/services/compute/model/NamedSet.java | 224 ++++++ .../api/services/compute/model/NatIpInfo.java | 90 +++ .../model/NatIpInfoNatIpInfoMapping.java | 114 +++ .../compute/model/NatIpInfoResponse.java | 72 ++ .../api/services/compute/model/Network.java | 612 ++++++++++++++++ .../compute/model/NetworkAttachment.java | 480 +++++++++++++ .../NetworkAttachmentAggregatedList.java | 374 ++++++++++ .../NetworkAttachmentConnectedEndpoint.java | 246 +++++++ .../compute/model/NetworkAttachmentList.java | 380 ++++++++++ .../model/NetworkAttachmentsScopedList.java | 278 +++++++ .../model/NetworkEdgeSecurityService.java | 386 ++++++++++ ...workEdgeSecurityServiceAggregatedList.java | 428 +++++++++++ .../NetworkEdgeSecurityServiceParams.java | 87 +++ ...NetworkEdgeSecurityServicesScopedList.java | 278 +++++++ .../compute/model/NetworkEndpoint.java | 279 +++++++ .../compute/model/NetworkEndpointGroup.java | 571 +++++++++++++++ .../NetworkEndpointGroupAggregatedList.java | 407 +++++++++++ .../model/NetworkEndpointGroupAppEngine.java | 170 +++++ 100 files changed, 21798 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPartnerMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPrivateInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectCircuitInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnostics.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsARPEntry.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkLACPStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkOpticalPower.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsMacsecStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfigPreSharedKey.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecPreSharedKey.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectOutageNotification.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraints.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationPermittedConnections.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetDiagnosticsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetMacsecConfigResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interval.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/License.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCode.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceCommitment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceRequirements.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalizedMessage.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocationConstraints.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImage.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineType.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstance.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceInstanceHealth.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceLastAttempt.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceShutdownDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceVersion.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedRuleset.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Metadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilter.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilterLabelMatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Money.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedPort.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedSet.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Network.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServicesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAppEngine.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPartnerMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPartnerMetadata.java new file mode 100644 index 00000000000..050164d28d7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPartnerMetadata.java @@ -0,0 +1,131 @@ +/* + * 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; + +/** + * Informational metadata about Partner attachments from Partners to display to customers. These + * fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER + * attachments. + * + *

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 InterconnectAttachmentPartnerMetadata extends com.google.api.client.json.GenericJson { + + /** + * Plain text name of the Interconnect this attachment is connected to, as displayed in the + * Partner's portal. For instance "Chicago 1". This value may be validated to match approved + * Partner values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectName; + + /** + * Plain text name of the Partner providing this attachment. This value may be validated to match + * approved Partner values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String partnerName; + + /** + * URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link + * to the specific resource on the Partner portal. This value may be validated to match approved + * Partner values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portalUrl; + + /** + * Plain text name of the Interconnect this attachment is connected to, as displayed in the + * Partner's portal. For instance "Chicago 1". This value may be validated to match approved + * Partner values. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectName() { + return interconnectName; + } + + /** + * Plain text name of the Interconnect this attachment is connected to, as displayed in the + * Partner's portal. For instance "Chicago 1". This value may be validated to match approved + * Partner values. + * @param interconnectName interconnectName or {@code null} for none + */ + public InterconnectAttachmentPartnerMetadata setInterconnectName(java.lang.String interconnectName) { + this.interconnectName = interconnectName; + return this; + } + + /** + * Plain text name of the Partner providing this attachment. This value may be validated to match + * approved Partner values. + * @return value or {@code null} for none + */ + public java.lang.String getPartnerName() { + return partnerName; + } + + /** + * Plain text name of the Partner providing this attachment. This value may be validated to match + * approved Partner values. + * @param partnerName partnerName or {@code null} for none + */ + public InterconnectAttachmentPartnerMetadata setPartnerName(java.lang.String partnerName) { + this.partnerName = partnerName; + return this; + } + + /** + * URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link + * to the specific resource on the Partner portal. This value may be validated to match approved + * Partner values. + * @return value or {@code null} for none + */ + public java.lang.String getPortalUrl() { + return portalUrl; + } + + /** + * URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link + * to the specific resource on the Partner portal. This value may be validated to match approved + * Partner values. + * @param portalUrl portalUrl or {@code null} for none + */ + public InterconnectAttachmentPartnerMetadata setPortalUrl(java.lang.String portalUrl) { + this.portalUrl = portalUrl; + return this; + } + + @Override + public InterconnectAttachmentPartnerMetadata set(String fieldName, Object value) { + return (InterconnectAttachmentPartnerMetadata) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentPartnerMetadata clone() { + return (InterconnectAttachmentPartnerMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPrivateInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPrivateInfo.java new file mode 100644 index 00000000000..bbca9a08bea --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentPrivateInfo.java @@ -0,0 +1,70 @@ +/* + * 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; + +/** + * Information for an interconnect attachment when this belongs to an interconnect of type + * DEDICATED. + * + *

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 InterconnectAttachmentPrivateInfo extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, + * going to and from this network and region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long tag8021q; + + /** + * [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, + * going to and from this network and region. + * @return value or {@code null} for none + */ + public java.lang.Long getTag8021q() { + return tag8021q; + } + + /** + * [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, + * going to and from this network and region. + * @param tag8021q tag8021q or {@code null} for none + */ + public InterconnectAttachmentPrivateInfo setTag8021q(java.lang.Long tag8021q) { + this.tag8021q = tag8021q; + return this; + } + + @Override + public InterconnectAttachmentPrivateInfo set(String fieldName, Object value) { + return (InterconnectAttachmentPrivateInfo) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentPrivateInfo clone() { + return (InterconnectAttachmentPrivateInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentsScopedList.java new file mode 100644 index 00000000000..fdd2070fc04 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 InterconnectAttachmentsScopedList. + * + *

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 InterconnectAttachmentsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of interconnect attachments contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectAttachments; + + static { + // hack to force ProGuard to consider InterconnectAttachment 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(InterconnectAttachment.class); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of interconnect attachments contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getInterconnectAttachments() { + return interconnectAttachments; + } + + /** + * A list of interconnect attachments contained in this scope. + * @param interconnectAttachments interconnectAttachments or {@code null} for none + */ + public InterconnectAttachmentsScopedList setInterconnectAttachments(java.util.List interconnectAttachments) { + this.interconnectAttachments = interconnectAttachments; + return this; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @param warning warning or {@code null} for none + */ + public InterconnectAttachmentsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectAttachmentsScopedList set(String fieldName, Object value) { + return (InterconnectAttachmentsScopedList) super.set(fieldName, value); + } + + @Override + public InterconnectAttachmentsScopedList clone() { + return (InterconnectAttachmentsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + */ + 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 InterconnectAttachmentsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectCircuitInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectCircuitInfo.java new file mode 100644 index 00000000000..77ae84aea12 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectCircuitInfo.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * Describes a single physical circuit between the Customer and Google. CircuitInfo objects are + * created by Google, so all fields are output only. + * + *

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 InterconnectCircuitInfo extends com.google.api.client.json.GenericJson { + + /** + * Customer-side demarc ID for this circuit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerDemarcId; + + /** + * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleCircuitId; + + /** + * Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to + * the customer in the LOA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleDemarcId; + + /** + * Customer-side demarc ID for this circuit. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerDemarcId() { + return customerDemarcId; + } + + /** + * Customer-side demarc ID for this circuit. + * @param customerDemarcId customerDemarcId or {@code null} for none + */ + public InterconnectCircuitInfo setCustomerDemarcId(java.lang.String customerDemarcId) { + this.customerDemarcId = customerDemarcId; + return this; + } + + /** + * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleCircuitId() { + return googleCircuitId; + } + + /** + * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. + * @param googleCircuitId googleCircuitId or {@code null} for none + */ + public InterconnectCircuitInfo setGoogleCircuitId(java.lang.String googleCircuitId) { + this.googleCircuitId = googleCircuitId; + return this; + } + + /** + * Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to + * the customer in the LOA. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleDemarcId() { + return googleDemarcId; + } + + /** + * Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to + * the customer in the LOA. + * @param googleDemarcId googleDemarcId or {@code null} for none + */ + public InterconnectCircuitInfo setGoogleDemarcId(java.lang.String googleDemarcId) { + this.googleDemarcId = googleDemarcId; + return this; + } + + @Override + public InterconnectCircuitInfo set(String fieldName, Object value) { + return (InterconnectCircuitInfo) super.set(fieldName, value); + } + + @Override + public InterconnectCircuitInfo clone() { + return (InterconnectCircuitInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnostics.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnostics.java new file mode 100644 index 00000000000..00519caa681 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnostics.java @@ -0,0 +1,172 @@ +/* + * 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; + +/** + * Diagnostics information about the Interconnect connection, which contains detailed and current + * technical information about Google's side of the connection. + * + *

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 InterconnectDiagnostics extends com.google.api.client.json.GenericJson { + + /** + * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently + * seen by the Google router in the ARP cache for the Interconnect. This will be empty when the + * Interconnect is not bundled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List arpCaches; + + /** + * The aggregation type of the bundle interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bundleAggregationType; + + /** + * The operational status of the bundle interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bundleOperationalStatus; + + /** + * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on + * the Interconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List links; + + /** + * The MAC address of the Interconnect's bundle interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String macAddress; + + /** + * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently + * seen by the Google router in the ARP cache for the Interconnect. This will be empty when the + * Interconnect is not bundled. + * @return value or {@code null} for none + */ + public java.util.List getArpCaches() { + return arpCaches; + } + + /** + * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently + * seen by the Google router in the ARP cache for the Interconnect. This will be empty when the + * Interconnect is not bundled. + * @param arpCaches arpCaches or {@code null} for none + */ + public InterconnectDiagnostics setArpCaches(java.util.List arpCaches) { + this.arpCaches = arpCaches; + return this; + } + + /** + * The aggregation type of the bundle interface. + * @return value or {@code null} for none + */ + public java.lang.String getBundleAggregationType() { + return bundleAggregationType; + } + + /** + * The aggregation type of the bundle interface. + * @param bundleAggregationType bundleAggregationType or {@code null} for none + */ + public InterconnectDiagnostics setBundleAggregationType(java.lang.String bundleAggregationType) { + this.bundleAggregationType = bundleAggregationType; + return this; + } + + /** + * The operational status of the bundle interface. + * @return value or {@code null} for none + */ + public java.lang.String getBundleOperationalStatus() { + return bundleOperationalStatus; + } + + /** + * The operational status of the bundle interface. + * @param bundleOperationalStatus bundleOperationalStatus or {@code null} for none + */ + public InterconnectDiagnostics setBundleOperationalStatus(java.lang.String bundleOperationalStatus) { + this.bundleOperationalStatus = bundleOperationalStatus; + return this; + } + + /** + * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on + * the Interconnect. + * @return value or {@code null} for none + */ + public java.util.List getLinks() { + return links; + } + + /** + * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on + * the Interconnect. + * @param links links or {@code null} for none + */ + public InterconnectDiagnostics setLinks(java.util.List links) { + this.links = links; + return this; + } + + /** + * The MAC address of the Interconnect's bundle interface. + * @return value or {@code null} for none + */ + public java.lang.String getMacAddress() { + return macAddress; + } + + /** + * The MAC address of the Interconnect's bundle interface. + * @param macAddress macAddress or {@code null} for none + */ + public InterconnectDiagnostics setMacAddress(java.lang.String macAddress) { + this.macAddress = macAddress; + return this; + } + + @Override + public InterconnectDiagnostics set(String fieldName, Object value) { + return (InterconnectDiagnostics) super.set(fieldName, value); + } + + @Override + public InterconnectDiagnostics clone() { + return (InterconnectDiagnostics) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsARPEntry.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsARPEntry.java new file mode 100644 index 00000000000..29c30c31144 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsARPEntry.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Describing the ARP neighbor entries seen on this link + * + *

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 InterconnectDiagnosticsARPEntry extends com.google.api.client.json.GenericJson { + + /** + * The IP address of this ARP neighbor. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * The MAC address of this ARP neighbor. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String macAddress; + + /** + * The IP address of this ARP neighbor. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * The IP address of this ARP neighbor. + * @param ipAddress ipAddress or {@code null} for none + */ + public InterconnectDiagnosticsARPEntry setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The MAC address of this ARP neighbor. + * @return value or {@code null} for none + */ + public java.lang.String getMacAddress() { + return macAddress; + } + + /** + * The MAC address of this ARP neighbor. + * @param macAddress macAddress or {@code null} for none + */ + public InterconnectDiagnosticsARPEntry setMacAddress(java.lang.String macAddress) { + this.macAddress = macAddress; + return this; + } + + @Override + public InterconnectDiagnosticsARPEntry set(String fieldName, Object value) { + return (InterconnectDiagnosticsARPEntry) super.set(fieldName, value); + } + + @Override + public InterconnectDiagnosticsARPEntry clone() { + return (InterconnectDiagnosticsARPEntry) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkLACPStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkLACPStatus.java new file mode 100644 index 00000000000..93c0c6393c6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkLACPStatus.java @@ -0,0 +1,120 @@ +/* + * 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 InterconnectDiagnosticsLinkLACPStatus. + * + *

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 InterconnectDiagnosticsLinkLACPStatus extends com.google.api.client.json.GenericJson { + + /** + * System ID of the port on Google's side of the LACP exchange. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleSystemId; + + /** + * System ID of the port on the neighbor's side of the LACP exchange. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String neighborSystemId; + + /** + * The state of a LACP link, which can take one of the following values: - ACTIVE: The link + * is configured and active within the bundle. - DETACHED: The link is not configured within + * the bundle. This means that the rest of the object should be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * System ID of the port on Google's side of the LACP exchange. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleSystemId() { + return googleSystemId; + } + + /** + * System ID of the port on Google's side of the LACP exchange. + * @param googleSystemId googleSystemId or {@code null} for none + */ + public InterconnectDiagnosticsLinkLACPStatus setGoogleSystemId(java.lang.String googleSystemId) { + this.googleSystemId = googleSystemId; + return this; + } + + /** + * System ID of the port on the neighbor's side of the LACP exchange. + * @return value or {@code null} for none + */ + public java.lang.String getNeighborSystemId() { + return neighborSystemId; + } + + /** + * System ID of the port on the neighbor's side of the LACP exchange. + * @param neighborSystemId neighborSystemId or {@code null} for none + */ + public InterconnectDiagnosticsLinkLACPStatus setNeighborSystemId(java.lang.String neighborSystemId) { + this.neighborSystemId = neighborSystemId; + return this; + } + + /** + * The state of a LACP link, which can take one of the following values: - ACTIVE: The link + * is configured and active within the bundle. - DETACHED: The link is not configured within + * the bundle. This means that the rest of the object should be empty. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * The state of a LACP link, which can take one of the following values: - ACTIVE: The link + * is configured and active within the bundle. - DETACHED: The link is not configured within + * the bundle. This means that the rest of the object should be empty. + * @param state state or {@code null} for none + */ + public InterconnectDiagnosticsLinkLACPStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public InterconnectDiagnosticsLinkLACPStatus set(String fieldName, Object value) { + return (InterconnectDiagnosticsLinkLACPStatus) super.set(fieldName, value); + } + + @Override + public InterconnectDiagnosticsLinkLACPStatus clone() { + return (InterconnectDiagnosticsLinkLACPStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkOpticalPower.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkOpticalPower.java new file mode 100644 index 00000000000..77b1fa060bf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkOpticalPower.java @@ -0,0 +1,111 @@ +/* + * 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 InterconnectDiagnosticsLinkOpticalPower. + * + *

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 InterconnectDiagnosticsLinkOpticalPower extends com.google.api.client.json.GenericJson { + + /** + * The status of the current value when compared to the warning and alarm levels for the receiving + * or transmitting transceiver. Possible states include: - OK: The value has not + * crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning + * threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. + * - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The + * value has crossed above the high alarm threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Value of the current receiving or transmitting optical power, read in dBm. Take a known good + * optical value, give it a 10% margin and trigger warnings relative to that value. In general, a + * -7dBm warning and a -11dBm alarm are good optical value estimates for most links. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float value; + + /** + * The status of the current value when compared to the warning and alarm levels for the receiving + * or transmitting transceiver. Possible states include: - OK: The value has not + * crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning + * threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. + * - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The + * value has crossed above the high alarm threshold. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * The status of the current value when compared to the warning and alarm levels for the receiving + * or transmitting transceiver. Possible states include: - OK: The value has not + * crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning + * threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. + * - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The + * value has crossed above the high alarm threshold. + * @param state state or {@code null} for none + */ + public InterconnectDiagnosticsLinkOpticalPower setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Value of the current receiving or transmitting optical power, read in dBm. Take a known good + * optical value, give it a 10% margin and trigger warnings relative to that value. In general, a + * -7dBm warning and a -11dBm alarm are good optical value estimates for most links. + * @return value or {@code null} for none + */ + public java.lang.Float getValue() { + return value; + } + + /** + * Value of the current receiving or transmitting optical power, read in dBm. Take a known good + * optical value, give it a 10% margin and trigger warnings relative to that value. In general, a + * -7dBm warning and a -11dBm alarm are good optical value estimates for most links. + * @param value value or {@code null} for none + */ + public InterconnectDiagnosticsLinkOpticalPower setValue(java.lang.Float value) { + this.value = value; + return this; + } + + @Override + public InterconnectDiagnosticsLinkOpticalPower set(String fieldName, Object value) { + return (InterconnectDiagnosticsLinkOpticalPower) super.set(fieldName, value); + } + + @Override + public InterconnectDiagnosticsLinkOpticalPower clone() { + return (InterconnectDiagnosticsLinkOpticalPower) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkStatus.java new file mode 100644 index 00000000000..235dc866609 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsLinkStatus.java @@ -0,0 +1,246 @@ +/* + * 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 InterconnectDiagnosticsLinkStatus. + * + *

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 InterconnectDiagnosticsLinkStatus extends com.google.api.client.json.GenericJson { + + /** + * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on + * this link. This will be empty if the link is bundled + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List arpCaches; + + static { + // hack to force ProGuard to consider InterconnectDiagnosticsARPEntry 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(InterconnectDiagnosticsARPEntry.class); + } + + /** + * The unique ID for this link assigned during turn up by Google. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String circuitId; + + /** + * The Demarc address assigned by Google and provided in the LoA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String googleDemarc; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnosticsLinkLACPStatus lacpStatus; + + /** + * Describes the status of MACsec encryption on this link. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnosticsMacsecStatus macsec; + + /** + * The operational status of the link. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operationalStatus; + + /** + * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of + * the received light level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnosticsLinkOpticalPower receivingOpticalPower; + + /** + * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of + * the transmitted light level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnosticsLinkOpticalPower transmittingOpticalPower; + + /** + * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on + * this link. This will be empty if the link is bundled + * @return value or {@code null} for none + */ + public java.util.List getArpCaches() { + return arpCaches; + } + + /** + * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on + * this link. This will be empty if the link is bundled + * @param arpCaches arpCaches or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setArpCaches(java.util.List arpCaches) { + this.arpCaches = arpCaches; + return this; + } + + /** + * The unique ID for this link assigned during turn up by Google. + * @return value or {@code null} for none + */ + public java.lang.String getCircuitId() { + return circuitId; + } + + /** + * The unique ID for this link assigned during turn up by Google. + * @param circuitId circuitId or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setCircuitId(java.lang.String circuitId) { + this.circuitId = circuitId; + return this; + } + + /** + * The Demarc address assigned by Google and provided in the LoA. + * @return value or {@code null} for none + */ + public java.lang.String getGoogleDemarc() { + return googleDemarc; + } + + /** + * The Demarc address assigned by Google and provided in the LoA. + * @param googleDemarc googleDemarc or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setGoogleDemarc(java.lang.String googleDemarc) { + this.googleDemarc = googleDemarc; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectDiagnosticsLinkLACPStatus getLacpStatus() { + return lacpStatus; + } + + /** + * @param lacpStatus lacpStatus or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setLacpStatus(InterconnectDiagnosticsLinkLACPStatus lacpStatus) { + this.lacpStatus = lacpStatus; + return this; + } + + /** + * Describes the status of MACsec encryption on this link. + * @return value or {@code null} for none + */ + public InterconnectDiagnosticsMacsecStatus getMacsec() { + return macsec; + } + + /** + * Describes the status of MACsec encryption on this link. + * @param macsec macsec or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setMacsec(InterconnectDiagnosticsMacsecStatus macsec) { + this.macsec = macsec; + return this; + } + + /** + * The operational status of the link. + * @return value or {@code null} for none + */ + public java.lang.String getOperationalStatus() { + return operationalStatus; + } + + /** + * The operational status of the link. + * @param operationalStatus operationalStatus or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setOperationalStatus(java.lang.String operationalStatus) { + this.operationalStatus = operationalStatus; + return this; + } + + /** + * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of + * the received light level. + * @return value or {@code null} for none + */ + public InterconnectDiagnosticsLinkOpticalPower getReceivingOpticalPower() { + return receivingOpticalPower; + } + + /** + * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of + * the received light level. + * @param receivingOpticalPower receivingOpticalPower or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setReceivingOpticalPower(InterconnectDiagnosticsLinkOpticalPower receivingOpticalPower) { + this.receivingOpticalPower = receivingOpticalPower; + return this; + } + + /** + * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of + * the transmitted light level. + * @return value or {@code null} for none + */ + public InterconnectDiagnosticsLinkOpticalPower getTransmittingOpticalPower() { + return transmittingOpticalPower; + } + + /** + * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of + * the transmitted light level. + * @param transmittingOpticalPower transmittingOpticalPower or {@code null} for none + */ + public InterconnectDiagnosticsLinkStatus setTransmittingOpticalPower(InterconnectDiagnosticsLinkOpticalPower transmittingOpticalPower) { + this.transmittingOpticalPower = transmittingOpticalPower; + return this; + } + + @Override + public InterconnectDiagnosticsLinkStatus set(String fieldName, Object value) { + return (InterconnectDiagnosticsLinkStatus) super.set(fieldName, value); + } + + @Override + public InterconnectDiagnosticsLinkStatus clone() { + return (InterconnectDiagnosticsLinkStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsMacsecStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsMacsecStatus.java new file mode 100644 index 00000000000..2d17f88ec2f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectDiagnosticsMacsecStatus.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Describes the status of MACsec encryption on the link. + * + *

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 InterconnectDiagnosticsMacsecStatus extends com.google.api.client.json.GenericJson { + + /** + * Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is + * operational. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ckn; + + /** + * Indicates whether or not MACsec is operational on this link. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean operational; + + /** + * Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is + * operational. + * @return value or {@code null} for none + */ + public java.lang.String getCkn() { + return ckn; + } + + /** + * Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is + * operational. + * @param ckn ckn or {@code null} for none + */ + public InterconnectDiagnosticsMacsecStatus setCkn(java.lang.String ckn) { + this.ckn = ckn; + return this; + } + + /** + * Indicates whether or not MACsec is operational on this link. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOperational() { + return operational; + } + + /** + * Indicates whether or not MACsec is operational on this link. + * @param operational operational or {@code null} for none + */ + public InterconnectDiagnosticsMacsecStatus setOperational(java.lang.Boolean operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectDiagnosticsMacsecStatus set(String fieldName, Object value) { + return (InterconnectDiagnosticsMacsecStatus) super.set(fieldName, value); + } + + @Override + public InterconnectDiagnosticsMacsecStatus clone() { + return (InterconnectDiagnosticsMacsecStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java new file mode 100644 index 00000000000..818391e5ba1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroup.java @@ -0,0 +1,331 @@ +/* + * 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; + +/** + * An interconnect group resource allows customers to create, analyze, and expand their redundant + * connections. + * + *

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 InterconnectGroup extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured configured; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * 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 type. The server generates + * this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupIntent intent; + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map interconnects; + + /** + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupPhysicalStructure physicalStructure; + + /** + * 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; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getConfigured() { + return configured; + } + + /** + * @param configured configured or {@code null} for none + */ + public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Opaque system-generated token that uniquely identifies the configuration. If provided when + * patching a configuration in update mode, the provided token must match the current token or the + * update is rejected. This provides a reliable means of doing read-modify-write (optimistic + * locking) as described by AIP 154. + * @param etag etag or {@code null} for none + */ + public InterconnectGroup setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public InterconnectGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupIntent getIntent() { + return intent; + } + + /** + * @param intent intent or {@code null} for none + */ + public InterconnectGroup setIntent(InterconnectGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * @return value or {@code null} for none + */ + public java.util.Map getInterconnects() { + return interconnects; + } + + /** + * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are + * encouraged, but not required, to use their preferred format for resource links as keys. Note + * that there are add-members and remove-members methods in gcloud. The size of this map is + * limited by an "Interconnects per group" quota. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroup setInterconnects(java.util.Map interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup + * @param kind kind or {@code null} for none + */ + public InterconnectGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 InterconnectGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupPhysicalStructure getPhysicalStructure() { + return physicalStructure; + } + + /** + * @param physicalStructure physicalStructure or {@code null} for none + */ + public InterconnectGroup setPhysicalStructure(InterconnectGroupPhysicalStructure physicalStructure) { + this.physicalStructure = physicalStructure; + 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 InterconnectGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public InterconnectGroup set(String fieldName, Object value) { + return (InterconnectGroup) super.set(fieldName, value); + } + + @Override + public InterconnectGroup clone() { + return (InterconnectGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java new file mode 100644 index 00000000000..48179a6cb50 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfigured.java @@ -0,0 +1,65 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The status of the group as configured. This has the same structure as the + * operational field reported by the OperationalStatus method, but does not take into account the + * operational status of each 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 InterconnectGroupConfigured extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfiguredTopologyCapability topologyCapability; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability getTopologyCapability() { + return topologyCapability; + } + + /** + * @param topologyCapability topologyCapability or {@code null} for none + */ + public InterconnectGroupConfigured setTopologyCapability(InterconnectGroupConfiguredTopologyCapability topologyCapability) { + this.topologyCapability = topologyCapability; + return this; + } + + @Override + public InterconnectGroupConfigured set(String fieldName, Object value) { + return (InterconnectGroupConfigured) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfigured clone() { + return (InterconnectGroupConfigured) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java new file mode 100644 index 00000000000..cd36e59561e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapability.java @@ -0,0 +1,85 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] How reliable this topology is configured to be, and why this group does or does not + * meet the requirements for the intended capability. + * + *

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 InterconnectGroupConfiguredTopologyCapability extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List intendedCapabilityBlockers; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String supportedSla; + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntendedCapabilityBlockers() { + return intendedCapabilityBlockers; + } + + /** + * @param intendedCapabilityBlockers intendedCapabilityBlockers or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability setIntendedCapabilityBlockers(java.util.List intendedCapabilityBlockers) { + this.intendedCapabilityBlockers = intendedCapabilityBlockers; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getSupportedSla() { + return supportedSla; + } + + /** + * @param supportedSla supportedSla or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapability setSupportedSla(java.lang.String supportedSla) { + this.supportedSla = supportedSla; + return this; + } + + @Override + public InterconnectGroupConfiguredTopologyCapability set(String fieldName, Object value) { + return (InterconnectGroupConfiguredTopologyCapability) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfiguredTopologyCapability clone() { + return (InterconnectGroupConfiguredTopologyCapability) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java new file mode 100644 index 00000000000..c557416197d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java @@ -0,0 +1,226 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Reasons why configuration.topologyCapability.sla differs from + * intent.topologyCapability. This list is empty if and only if those are the same. + * + *

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 InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String blockerType; + + /** + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentationLink; + + /** + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the + * problematic metros in this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are + * "zone1" and/or "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getBlockerType() { + return blockerType; + } + + /** + * @param blockerType blockerType or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setBlockerType(java.lang.String blockerType) { + this.blockerType = blockerType; + return this; + } + + /** + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentationLink() { + return documentationLink; + } + + /** + * Output only. [Output Only] The url of Google Cloud public documentation explaining this + * requirement. This is set for every type of requirement. + * @param documentationLink documentationLink or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setDocumentationLink(java.lang.String documentationLink) { + this.documentationLink = documentationLink; + return this; + } + + /** + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. [Output Only] A human-readable explanation of this requirement and why it's not + * met. This is set for every type of requirement. + * @param explanation explanation or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". + * @param facilities facilities or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the + * problematic metros in this field. + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- + * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the + * problematic metros in this field. + * @param metros metros or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + /** + * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are + * "zone1" and/or "zone2". + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are + * "zone1" and/or "zone2". + * @param zones zones or {@code null} for none + */ + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers set(String fieldName, Object value) { + return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.set(fieldName, value); + } + + @Override + public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers clone() { + return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java new file mode 100644 index 00000000000..d7b08fdbe17 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupIntent.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The user's intent for this group. This is the only required field besides the name that must be + * specified on group creation. + * + *

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 InterconnectGroupIntent extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String topologyCapability; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTopologyCapability() { + return topologyCapability; + } + + /** + * @param topologyCapability topologyCapability or {@code null} for none + */ + public InterconnectGroupIntent setTopologyCapability(java.lang.String topologyCapability) { + this.topologyCapability = topologyCapability; + return this; + } + + @Override + public InterconnectGroupIntent set(String fieldName, Object value) { + return (InterconnectGroupIntent) super.set(fieldName, value); + } + + @Override + public InterconnectGroupIntent clone() { + return (InterconnectGroupIntent) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.java new file mode 100644 index 00000000000..8d5e817ed69 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupInterconnect.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; + +/** + * An Interconnect in this InterconnectGroup. + * + *

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 InterconnectGroupInterconnect extends com.google.api.client.json.GenericJson { + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * The URL of an Interconnect in this group. All Interconnects in the group are unique. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectGroupInterconnect setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + @Override + public InterconnectGroupInterconnect set(String fieldName, Object value) { + return (InterconnectGroupInterconnect) super.set(fieldName, value); + } + + @Override + public InterconnectGroupInterconnect clone() { + return (InterconnectGroupInterconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java new file mode 100644 index 00000000000..95fa3028163 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructure.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] An analysis of the physical layout of Interconnects in this group. Every + * Interconnect in the group is shown once in this structure. + * + *

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 InterconnectGroupPhysicalStructure extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metros; + + /** + * @return value or {@code null} for none + */ + public java.util.List getMetros() { + return metros; + } + + /** + * @param metros metros or {@code null} for none + */ + public InterconnectGroupPhysicalStructure setMetros(java.util.List metros) { + this.metros = metros; + return this; + } + + @Override + public InterconnectGroupPhysicalStructure set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructure) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructure clone() { + return (InterconnectGroupPhysicalStructure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java new file mode 100644 index 00000000000..39179adb193 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The metros Interconnects in this group are in. + * + *

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 InterconnectGroupPhysicalStructureMetros extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List facilities; + + /** + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of Interconnects underneath this. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metro; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFacilities() { + return facilities; + } + + /** + * @param facilities facilities or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List facilities) { + this.facilities = facilities; + return this; + } + + /** + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of Interconnects underneath this. + * @return value or {@code null} for none + */ + public java.lang.String getMetro() { + return metro; + } + + /** + * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like + * "iad". This is the first component of the location of Interconnects underneath this. + * @param metro metro or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetros setMetro(java.lang.String metro) { + this.metro = metro; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetros set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetros) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetros clone() { + return (InterconnectGroupPhysicalStructureMetros) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java new file mode 100644 index 00000000000..a0dc3142408 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilities.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The facilities Interconnects in this metro are present in. + * + *

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 InterconnectGroupPhysicalStructureMetrosFacilities extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is + * the third component of the location of Interconnects in this facility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is + * the third component of the location of Interconnects in this facility. + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is + * the third component of the location of Interconnects in this facility. + * @param facility facility or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilities setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * @param zones zones or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilities setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilities set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetrosFacilities) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilities clone() { + return (InterconnectGroupPhysicalStructureMetrosFacilities) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java new file mode 100644 index 00000000000..a71726bdb33 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The zones that Interconnects in this facility are present in. + * + *

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 InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, + * facility, and zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second + * component of the location of Interconnects in this facility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, + * facility, and zone. + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, + * facility, and zone. + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second + * component of the location of Interconnects in this facility. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second + * component of the location of Interconnects in this facility. + * @param zone zone or {@code null} for none + */ + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones set(String fieldName, Object value) { + return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.set(fieldName, value); + } + + @Override + public InterconnectGroupPhysicalStructureMetrosFacilitiesZones clone() { + return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java new file mode 100644 index 00000000000..d5121dc915d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembers.java @@ -0,0 +1,114 @@ +/* + * 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 InterconnectGroupsCreateMembers. + * + *

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 InterconnectGroupsCreateMembers extends com.google.api.client.json.GenericJson { + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String intentMismatchBehavior; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnects; + + /** + * Parameters for the Interconnects to create. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsCreateMembersInterconnectInput templateInterconnect; + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * @return value or {@code null} for none + */ + public java.lang.String getIntentMismatchBehavior() { + return intentMismatchBehavior; + } + + /** + * How to behave when configured.topologyCapability.supportedSLA would not equal + * intent.topologyCapability after this call. + * @param intentMismatchBehavior intentMismatchBehavior or {@code null} for none + */ + public InterconnectGroupsCreateMembers setIntentMismatchBehavior(java.lang.String intentMismatchBehavior) { + this.intentMismatchBehavior = intentMismatchBehavior; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterconnects() { + return interconnects; + } + + /** + * @param interconnects interconnects or {@code null} for none + */ + public InterconnectGroupsCreateMembers setInterconnects(java.util.List interconnects) { + this.interconnects = interconnects; + return this; + } + + /** + * Parameters for the Interconnects to create. + * @return value or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput getTemplateInterconnect() { + return templateInterconnect; + } + + /** + * Parameters for the Interconnects to create. + * @param templateInterconnect templateInterconnect or {@code null} for none + */ + public InterconnectGroupsCreateMembers setTemplateInterconnect(InterconnectGroupsCreateMembersInterconnectInput templateInterconnect) { + this.templateInterconnect = templateInterconnect; + return this; + } + + @Override + public InterconnectGroupsCreateMembers set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembers) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembers clone() { + return (InterconnectGroupsCreateMembers) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java new file mode 100644 index 00000000000..dd21e0d6f8a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersInterconnectInput.java @@ -0,0 +1,390 @@ +/* + * 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 InterconnectGroupsCreateMembersInterconnectInput. + * + *

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 InterconnectGroupsCreateMembersInterconnectInput extends com.google.api.client.json.GenericJson { + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerName; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facility; + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner- + * managed interconnection shared between customers though a partner. - DEDICATED: A + * dedicated physical interconnection with the customer. + * + * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectType; + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A + * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + * optics. + * + * Note that this field indicates the speed of each of the links in the bundle, not the speed of + * the entire bundle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkType; + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty 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; + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nocContactEmail; + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteLocation; + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC: If specified, then the connection is created on + * MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be + * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site + * Networking unless this feature is specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestedFeatures; + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer requestedLinkCount; + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Administrative status of the interconnect. When this is set to true, the Interconnect is + * functional and can carry traffic. When set to false, no packets can be carried over the + * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerName() { + return customerName; + } + + /** + * Customer name, to put in the Letter of Authorization as the party authorized to request a + * crossconnect. + * @param customerName customerName or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setCustomerName(java.lang.String customerName) { + this.customerName = customerName; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * @return value or {@code null} for none + */ + public java.lang.String getFacility() { + return facility; + } + + /** + * A zone-free location to use for all Interconnects created in this call, like "iad-1234". + * @param facility facility or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setFacility(java.lang.String facility) { + this.facility = facility; + return this; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner- + * managed interconnection shared between customers though a partner. - DEDICATED: A + * dedicated physical interconnection with the customer. + * + * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectType() { + return interconnectType; + } + + /** + * Type of interconnect, which can take one of the following values: - PARTNER: A partner- + * managed interconnection shared between customers though a partner. - DEDICATED: A + * dedicated physical interconnection with the customer. + * + * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. + * @param interconnectType interconnectType or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setInterconnectType(java.lang.String interconnectType) { + this.interconnectType = interconnectType; + return this; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A + * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + * optics. + * + * Note that this field indicates the speed of each of the links in the bundle, not the speed of + * the entire bundle. + * @return value or {@code null} for none + */ + public java.lang.String getLinkType() { + return linkType; + } + + /** + * Type of link requested, which can take one of the following values: - + * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A + * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + * optics. + * + * Note that this field indicates the speed of each of the links in the bundle, not the speed of + * the entire bundle. + * @param linkType linkType or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setLinkType(java.lang.String linkType) { + this.linkType = linkType; + return this; + } + + /** + * Name of the Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty 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 Interconnects to be created. This must be specified on the template and/or on each + * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with + * RFC1035. Specifically, any nonempty 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 InterconnectGroupsCreateMembersInterconnectInput setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @return value or {@code null} for none + */ + public java.lang.String getNocContactEmail() { + return nocContactEmail; + } + + /** + * Email address to contact the customer NOC for operations and maintenance notifications + * regarding this Interconnect. If specified, this will be used for notifications in addition to + * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This + * field is required for users who sign up for Cloud Interconnect using workforce identity + * federation. + * @param nocContactEmail nocContactEmail or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setNocContactEmail(java.lang.String nocContactEmail) { + this.nocContactEmail = nocContactEmail; + return this; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @return value or {@code null} for none + */ + public java.lang.String getRemoteLocation() { + return remoteLocation; + } + + /** + * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of + * Google's network that the interconnect is connected to. + * @param remoteLocation remoteLocation or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRemoteLocation(java.lang.String remoteLocation) { + this.remoteLocation = remoteLocation; + return this; + } + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC: If specified, then the connection is created on + * MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be + * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site + * Networking unless this feature is specified. + * @return value or {@code null} for none + */ + public java.util.List getRequestedFeatures() { + return requestedFeatures; + } + + /** + * Optional. List of features requested for this Interconnect connection, which can take one of + * the following values: - IF_MACSEC: If specified, then the connection is created on + * MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be + * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site + * Networking unless this feature is specified. + * @param requestedFeatures requestedFeatures or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRequestedFeatures(java.util.List requestedFeatures) { + this.requestedFeatures = requestedFeatures; + return this; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @return value or {@code null} for none + */ + public java.lang.Integer getRequestedLinkCount() { + return requestedLinkCount; + } + + /** + * Target number of physical links in the link bundle, as requested by the customer. + * @param requestedLinkCount requestedLinkCount or {@code null} for none + */ + public InterconnectGroupsCreateMembersInterconnectInput setRequestedLinkCount(java.lang.Integer requestedLinkCount) { + this.requestedLinkCount = requestedLinkCount; + return this; + } + + @Override + public InterconnectGroupsCreateMembersInterconnectInput set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembersInterconnectInput) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembersInterconnectInput clone() { + return (InterconnectGroupsCreateMembersInterconnectInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java new file mode 100644 index 00000000000..d3beb89c3a8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsCreateMembersRequest.java @@ -0,0 +1,63 @@ +/* + * 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 InterconnectGroupsCreateMembersRequest. + * + *

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 InterconnectGroupsCreateMembersRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsCreateMembers request; + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupsCreateMembers getRequest() { + return request; + } + + /** + * @param request request or {@code null} for none + */ + public InterconnectGroupsCreateMembersRequest setRequest(InterconnectGroupsCreateMembers request) { + this.request = request; + return this; + } + + @Override + public InterconnectGroupsCreateMembersRequest set(String fieldName, Object value) { + return (InterconnectGroupsCreateMembersRequest) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsCreateMembersRequest clone() { + return (InterconnectGroupsCreateMembersRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java new file mode 100644 index 00000000000..97edd563ae3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsGetOperationalStatusResponse.java @@ -0,0 +1,84 @@ +/* + * 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 for the InterconnectGroupsGetOperationalStatusResponse. + * + *

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 InterconnectGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupsOperationalStatus result; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectGroupsOperationalStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectGroupsGetOperationalStatusResponse setResult(InterconnectGroupsOperationalStatus result) { + this.result = result; + return this; + } + + @Override + public InterconnectGroupsGetOperationalStatusResponse set(String fieldName, Object value) { + return (InterconnectGroupsGetOperationalStatusResponse) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsGetOperationalStatusResponse clone() { + return (InterconnectGroupsGetOperationalStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java new file mode 100644 index 00000000000..5c0748ae19b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -0,0 +1,428 @@ +/* + * 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 InterconnectGroupsListResponse. + * + *

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 InterconnectGroupsListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 InterconnectGroup 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 InterconnectGroup 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(InterconnectGroup.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public InterconnectGroupsListResponse 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 InterconnectGroupsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectGroup resources. + * @param items items or {@code null} for none + */ + public InterconnectGroupsListResponse 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 InterconnectGroupsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public InterconnectGroupsListResponse 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 InterconnectGroupsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectGroupsListResponse set(String fieldName, Object value) { + return (InterconnectGroupsListResponse) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsListResponse clone() { + return (InterconnectGroupsListResponse) 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 InterconnectGroupsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java new file mode 100644 index 00000000000..f042bf10e06 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -0,0 +1,159 @@ +/* + * 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; + +/** + * Request to get the status of the interconnect group with extra detail. + * + *

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 InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The configuration analysis, as returned by Get. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured configured; + + /** + * Output only. Summarizes the status of the group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String groupStatus; + + /** + * Output only. The intent of the resource, as returned by Get. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupIntent intent; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interconnectStatuses; + + /** + * Output only. The operational state of the group, including only active Interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectGroupConfigured operational; + + /** + * Output only. The configuration analysis, as returned by Get. + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getConfigured() { + return configured; + } + + /** + * Output only. The configuration analysis, as returned by Get. + * @param configured configured or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { + this.configured = configured; + return this; + } + + /** + * Output only. Summarizes the status of the group. + * @return value or {@code null} for none + */ + public java.lang.String getGroupStatus() { + return groupStatus; + } + + /** + * Output only. Summarizes the status of the group. + * @param groupStatus groupStatus or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { + this.groupStatus = groupStatus; + return this; + } + + /** + * Output only. The intent of the resource, as returned by Get. + * @return value or {@code null} for none + */ + public InterconnectGroupIntent getIntent() { + return intent; + } + + /** + * Output only. The intent of the resource, as returned by Get. + * @param intent intent or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { + this.intent = intent; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterconnectStatuses() { + return interconnectStatuses; + } + + /** + * @param interconnectStatuses interconnectStatuses or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.List interconnectStatuses) { + this.interconnectStatuses = interconnectStatuses; + return this; + } + + /** + * Output only. The operational state of the group, including only active Interconnects. + * @return value or {@code null} for none + */ + public InterconnectGroupConfigured getOperational() { + return operational; + } + + /** + * Output only. The operational state of the group, including only active Interconnects. + * @param operational operational or {@code null} for none + */ + public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { + this.operational = operational; + return this; + } + + @Override + public InterconnectGroupsOperationalStatus set(String fieldName, Object value) { + return (InterconnectGroupsOperationalStatus) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsOperationalStatus clone() { + return (InterconnectGroupsOperationalStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java new file mode 100644 index 00000000000..4dc45ceabc1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The status of one Interconnect in the group. The order is arbitrary. + * + *

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 InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Whether the Interconnect is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics + * method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnostics diagnostics; + + /** + * Output only. The URL of the Interconnect being described. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * Output only. Whether this interconnect is participating in the redundant configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String isActive; + + /** + * Output only. Whether the Interconnect is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Output only. Whether the Interconnect is enabled. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics + * method. + * @return value or {@code null} for none + */ + public InterconnectDiagnostics getDiagnostics() { + return diagnostics; + } + + /** + * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics + * method. + * @param diagnostics diagnostics or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(InterconnectDiagnostics diagnostics) { + this.diagnostics = diagnostics; + return this; + } + + /** + * Output only. The URL of the Interconnect being described. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * Output only. The URL of the Interconnect being described. + * @param interconnect interconnect or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + /** + * Output only. Whether this interconnect is participating in the redundant configuration. + * @return value or {@code null} for none + */ + public java.lang.String getIsActive() { + return isActive; + } + + /** + * Output only. Whether this interconnect is participating in the redundant configuration. + * @param isActive isActive or {@code null} for none + */ + public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { + this.isActive = isActive; + return this; + } + + @Override + public InterconnectGroupsOperationalStatusInterconnectStatus set(String fieldName, Object value) { + return (InterconnectGroupsOperationalStatusInterconnectStatus) super.set(fieldName, value); + } + + @Override + public InterconnectGroupsOperationalStatusInterconnectStatus clone() { + return (InterconnectGroupsOperationalStatusInterconnectStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectList.java new file mode 100644 index 00000000000..cbab6c302fb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -0,0 +1,386 @@ +/* + * 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 the list request, and contains a list of interconnects. + * + *

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 InterconnectList extends com.google.api.client.json.GenericJson { + + /** + * [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 Interconnect 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 Interconnect 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(Interconnect.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of + * interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InterconnectList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Interconnect resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Interconnect resources. + * @param items items or {@code null} for none + */ + public InterconnectList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of + * interconnects. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of + * interconnects. + * @param kind kind or {@code null} for none + */ + public InterconnectList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectList 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 InterconnectList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InterconnectList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectList set(String fieldName, Object value) { + return (InterconnectList) super.set(fieldName, value); + } + + @Override + public InterconnectList clone() { + return (InterconnectList) 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 InterconnectListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java new file mode 100644 index 00000000000..879497c0276 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -0,0 +1,588 @@ +/* + * 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 an Interconnect Attachment (VLAN) Location resource. + * + * You can use this resource to find location details about an Interconnect attachment (VLAN). For + * more information about interconnect attachments, read Creating VLAN Attachments. + * + *

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 InterconnectLocation extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** + * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area + * (metro), maintenance will not be simultaneously scheduled in more than one availability zone. + * Example: "zone1" or "zone2". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilityZone; + + /** + * [Output only] List of features available at this InterconnectLocation, which can take one of + * the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List availableFeatures; + + /** + * [Output only] List of link types available at this InterconnectLocation, which can take one of + * the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - + * LINK_TYPE_ETHERNET_400G_LR4 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List availableLinkTypes; + + /** + * [Output Only] Metropolitan area designator that indicates which city an interconnect is + * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String city; + + /** + * [Output Only] Continent for this location, which can take one of the following values: - + * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continent; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe + * where Cross-Site Interconnect wires may connect to from this location and associated connection + * parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List crossSiteInterconnectInfos; + + /** + * Output only. [Output Only] An optional description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facilityProvider; + + /** + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facilityProviderFacilityId; + + /** + * 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] Type of the resource. Alwayscompute#interconnectLocation for + * interconnect locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peeringdbFacilityId; + + /** + * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe + * parameters pertaining to the relation between this InterconnectLocation and various Google + * Cloud regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List regionInfos; + + /** + * 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] URLs of the other locations that can pair up with this location to + * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% + * peer locations of each other. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List singleRegionProductionCriticalPeerLocations; + + /** + * [Output Only] The status of this InterconnectLocation, which can take one of the following + * values: - CLOSED: The InterconnectLocation is closed and is unavailable for + * provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for + * provisioning new Interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean supportsPzs; + + /** + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. + * @return value or {@code null} for none + */ + public java.lang.String getAddress() { + return address; + } + + /** + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. + * @param address address or {@code null} for none + */ + public InterconnectLocation setAddress(java.lang.String address) { + this.address = address; + return this; + } + + /** + * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area + * (metro), maintenance will not be simultaneously scheduled in more than one availability zone. + * Example: "zone1" or "zone2". + * @return value or {@code null} for none + */ + public java.lang.String getAvailabilityZone() { + return availabilityZone; + } + + /** + * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area + * (metro), maintenance will not be simultaneously scheduled in more than one availability zone. + * Example: "zone1" or "zone2". + * @param availabilityZone availabilityZone or {@code null} for none + */ + public InterconnectLocation setAvailabilityZone(java.lang.String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * [Output only] List of features available at this InterconnectLocation, which can take one of + * the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK + * @return value or {@code null} for none + */ + public java.util.List getAvailableFeatures() { + return availableFeatures; + } + + /** + * [Output only] List of features available at this InterconnectLocation, which can take one of + * the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK + * @param availableFeatures availableFeatures or {@code null} for none + */ + public InterconnectLocation setAvailableFeatures(java.util.List availableFeatures) { + this.availableFeatures = availableFeatures; + return this; + } + + /** + * [Output only] List of link types available at this InterconnectLocation, which can take one of + * the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - + * LINK_TYPE_ETHERNET_400G_LR4 + * @return value or {@code null} for none + */ + public java.util.List getAvailableLinkTypes() { + return availableLinkTypes; + } + + /** + * [Output only] List of link types available at this InterconnectLocation, which can take one of + * the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - + * LINK_TYPE_ETHERNET_400G_LR4 + * @param availableLinkTypes availableLinkTypes or {@code null} for none + */ + public InterconnectLocation setAvailableLinkTypes(java.util.List availableLinkTypes) { + this.availableLinkTypes = availableLinkTypes; + return this; + } + + /** + * [Output Only] Metropolitan area designator that indicates which city an interconnect is + * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * @return value or {@code null} for none + */ + public java.lang.String getCity() { + return city; + } + + /** + * [Output Only] Metropolitan area designator that indicates which city an interconnect is + * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * @param city city or {@code null} for none + */ + public InterconnectLocation setCity(java.lang.String city) { + this.city = city; + return this; + } + + /** + * [Output Only] Continent for this location, which can take one of the following values: - + * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * @return value or {@code null} for none + */ + public java.lang.String getContinent() { + return continent; + } + + /** + * [Output Only] Continent for this location, which can take one of the following values: - + * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * @param continent continent or {@code null} for none + */ + public InterconnectLocation setContinent(java.lang.String continent) { + this.continent = continent; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe + * where Cross-Site Interconnect wires may connect to from this location and associated connection + * parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. + * @return value or {@code null} for none + */ + public java.util.List getCrossSiteInterconnectInfos() { + return crossSiteInterconnectInfos; + } + + /** + * [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe + * where Cross-Site Interconnect wires may connect to from this location and associated connection + * parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. + * @param crossSiteInterconnectInfos crossSiteInterconnectInfos or {@code null} for none + */ + public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List crossSiteInterconnectInfos) { + this.crossSiteInterconnectInfos = crossSiteInterconnectInfos; + return this; + } + + /** + * Output only. [Output Only] An optional description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] An optional description of the resource. + * @param description description or {@code null} for none + */ + public InterconnectLocation setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * @return value or {@code null} for none + */ + public java.lang.String getFacilityProvider() { + return facilityProvider; + } + + /** + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * @param facilityProvider facilityProvider or {@code null} for none + */ + public InterconnectLocation setFacilityProvider(java.lang.String facilityProvider) { + this.facilityProvider = facilityProvider; + return this; + } + + /** + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). + * @return value or {@code null} for none + */ + public java.lang.String getFacilityProviderFacilityId() { + return facilityProviderFacilityId; + } + + /** + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). + * @param facilityProviderFacilityId facilityProviderFacilityId or {@code null} for none + */ + public InterconnectLocation setFacilityProviderFacilityId(java.lang.String facilityProviderFacilityId) { + this.facilityProviderFacilityId = facilityProviderFacilityId; + 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 InterconnectLocation setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectLocation for + * interconnect locations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectLocation for + * interconnect locations. + * @param kind kind or {@code null} for none + */ + public InterconnectLocation setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public InterconnectLocation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). + * @return value or {@code null} for none + */ + public java.lang.String getPeeringdbFacilityId() { + return peeringdbFacilityId; + } + + /** + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). + * @param peeringdbFacilityId peeringdbFacilityId or {@code null} for none + */ + public InterconnectLocation setPeeringdbFacilityId(java.lang.String peeringdbFacilityId) { + this.peeringdbFacilityId = peeringdbFacilityId; + return this; + } + + /** + * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe + * parameters pertaining to the relation between this InterconnectLocation and various Google + * Cloud regions. + * @return value or {@code null} for none + */ + public java.util.List getRegionInfos() { + return regionInfos; + } + + /** + * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe + * parameters pertaining to the relation between this InterconnectLocation and various Google + * Cloud regions. + * @param regionInfos regionInfos or {@code null} for none + */ + public InterconnectLocation setRegionInfos(java.util.List regionInfos) { + this.regionInfos = regionInfos; + 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 InterconnectLocation setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] URLs of the other locations that can pair up with this location to + * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% + * peer locations of each other. + * @return value or {@code null} for none + */ + public java.util.List getSingleRegionProductionCriticalPeerLocations() { + return singleRegionProductionCriticalPeerLocations; + } + + /** + * Output only. [Output Only] URLs of the other locations that can pair up with this location to + * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% + * peer locations of each other. + * @param singleRegionProductionCriticalPeerLocations singleRegionProductionCriticalPeerLocations or {@code null} for none + */ + public InterconnectLocation setSingleRegionProductionCriticalPeerLocations(java.util.List singleRegionProductionCriticalPeerLocations) { + this.singleRegionProductionCriticalPeerLocations = singleRegionProductionCriticalPeerLocations; + return this; + } + + /** + * [Output Only] The status of this InterconnectLocation, which can take one of the following + * values: - CLOSED: The InterconnectLocation is closed and is unavailable for + * provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for + * provisioning new Interconnects. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] The status of this InterconnectLocation, which can take one of the following + * values: - CLOSED: The InterconnectLocation is closed and is unavailable for + * provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for + * provisioning new Interconnects. + * @param status status or {@code null} for none + */ + public InterconnectLocation setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSupportsPzs() { + return supportsPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param supportsPzs supportsPzs or {@code null} for none + */ + public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { + this.supportsPzs = supportsPzs; + return this; + } + + @Override + public InterconnectLocation set(String fieldName, Object value) { + return (InterconnectLocation) super.set(fieldName, value); + } + + @Override + public InterconnectLocation clone() { + return (InterconnectLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java new file mode 100644 index 00000000000..be097d3bca9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -0,0 +1,127 @@ +/* + * 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; + +/** + * Information about Cross-Site Interconnect wires which may be created between the containing + * location and another remote location. + * + *

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 InterconnectLocationCrossSiteInterconnectInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The remote location for Cross-Site Interconnect wires. This specifies an + * InterconnectLocation city (metropolitan area designator), which itself may match multiple + * InterconnectLocations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String city; + + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxDynamicPathBandwidthGbps; + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxFixedPathBandwidthGbps; + + /** + * Output only. The remote location for Cross-Site Interconnect wires. This specifies an + * InterconnectLocation city (metropolitan area designator), which itself may match multiple + * InterconnectLocations. + * @return value or {@code null} for none + */ + public java.lang.String getCity() { + return city; + } + + /** + * Output only. The remote location for Cross-Site Interconnect wires. This specifies an + * InterconnectLocation city (metropolitan area designator), which itself may match multiple + * InterconnectLocations. + * @param city city or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String city) { + this.city = city; + return this; + } + + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxDynamicPathBandwidthGbps() { + return maxDynamicPathBandwidthGbps; + } + + /** + * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this + * metro. + * @param maxDynamicPathBandwidthGbps maxDynamicPathBandwidthGbps or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setMaxDynamicPathBandwidthGbps(java.lang.Long maxDynamicPathBandwidthGbps) { + this.maxDynamicPathBandwidthGbps = maxDynamicPathBandwidthGbps; + return this; + } + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxFixedPathBandwidthGbps() { + return maxFixedPathBandwidthGbps; + } + + /** + * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this + * metro. + * @param maxFixedPathBandwidthGbps maxFixedPathBandwidthGbps or {@code null} for none + */ + public InterconnectLocationCrossSiteInterconnectInfo setMaxFixedPathBandwidthGbps(java.lang.Long maxFixedPathBandwidthGbps) { + this.maxFixedPathBandwidthGbps = maxFixedPathBandwidthGbps; + return this; + } + + @Override + public InterconnectLocationCrossSiteInterconnectInfo set(String fieldName, Object value) { + return (InterconnectLocationCrossSiteInterconnectInfo) super.set(fieldName, value); + } + + @Override + public InterconnectLocationCrossSiteInterconnectInfo clone() { + return (InterconnectLocationCrossSiteInterconnectInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java new file mode 100644 index 00000000000..8cb3fcea051 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -0,0 +1,386 @@ +/* + * 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 the list request, and contains a list of interconnect locations. + * + *

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 InterconnectLocationList extends com.google.api.client.json.GenericJson { + + /** + * [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 InterconnectLocation 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 InterconnectLocation 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(InterconnectLocation.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists + * of interconnect locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InterconnectLocationList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectLocation resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectLocation resources. + * @param items items or {@code null} for none + */ + public InterconnectLocationList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists + * of interconnect locations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists + * of interconnect locations. + * @param kind kind or {@code null} for none + */ + public InterconnectLocationList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectLocationList 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 InterconnectLocationList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InterconnectLocationList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectLocationList set(String fieldName, Object value) { + return (InterconnectLocationList) super.set(fieldName, value); + } + + @Override + public InterconnectLocationList clone() { + return (InterconnectLocationList) 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 InterconnectLocationListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java new file mode 100644 index 00000000000..1e35db8faf6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -0,0 +1,145 @@ +/* + * 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; + +/** + * Information about any potential InterconnectAttachments between an Interconnect at a specific + * InterconnectLocation, and a specific Cloud Region. + * + *

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 InterconnectLocationRegionInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM + * in this region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long expectedRttMs; + + /** + * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for + * interconnects that are in this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean l2ForwardingEnabled; + + /** + * Output only. Identifies the network presence of this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationPresence; + + /** + * Output only. URL for the region of this location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM + * in this region. + * @return value or {@code null} for none + */ + public java.lang.Long getExpectedRttMs() { + return expectedRttMs; + } + + /** + * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM + * in this region. + * @param expectedRttMs expectedRttMs or {@code null} for none + */ + public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRttMs) { + this.expectedRttMs = expectedRttMs; + return this; + } + + /** + * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for + * interconnects that are in this location. + * @return value or {@code null} for none + */ + public java.lang.Boolean getL2ForwardingEnabled() { + return l2ForwardingEnabled; + } + + /** + * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for + * interconnects that are in this location. + * @param l2ForwardingEnabled l2ForwardingEnabled or {@code null} for none + */ + public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l2ForwardingEnabled) { + this.l2ForwardingEnabled = l2ForwardingEnabled; + return this; + } + + /** + * Output only. Identifies the network presence of this location. + * @return value or {@code null} for none + */ + public java.lang.String getLocationPresence() { + return locationPresence; + } + + /** + * Output only. Identifies the network presence of this location. + * @param locationPresence locationPresence or {@code null} for none + */ + public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { + this.locationPresence = locationPresence; + return this; + } + + /** + * Output only. URL for the region of this location. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. URL for the region of this location. + * @param region region or {@code null} for none + */ + public InterconnectLocationRegionInfo setRegion(java.lang.String region) { + this.region = region; + return this; + } + + @Override + public InterconnectLocationRegionInfo set(String fieldName, Object value) { + return (InterconnectLocationRegionInfo) super.set(fieldName, value); + } + + @Override + public InterconnectLocationRegionInfo clone() { + return (InterconnectLocationRegionInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java new file mode 100644 index 00000000000..904e54471a3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java @@ -0,0 +1,112 @@ +/* + * 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; + +/** + * Configuration information for enabling Media Access Control security (MACsec) on this Cloud + * Interconnect connection between Google and your on-premises router. + * + *

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 InterconnectMacsec extends com.google.api.client.json.GenericJson { + + /** + * If set to true, the Interconnect connection is configured with ashould-secure MACsec security + * policy, that allows the Google router to fallback to cleartext traffic if the MKA session + * cannot be established. By default, the Interconnect connection is configured with amust-secure + * security policy that drops all traffic if the MKA session cannot be established with your + * router. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failOpen; + + /** + * Required. A keychain placeholder describing a set of named key objects along with their start + * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically + * picks the key with the most recent startTime when establishing or re-establishing a MACsec + * secure link. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List preSharedKeys; + + /** + * If set to true, the Interconnect connection is configured with ashould-secure MACsec security + * policy, that allows the Google router to fallback to cleartext traffic if the MKA session + * cannot be established. By default, the Interconnect connection is configured with amust-secure + * security policy that drops all traffic if the MKA session cannot be established with your + * router. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailOpen() { + return failOpen; + } + + /** + * If set to true, the Interconnect connection is configured with ashould-secure MACsec security + * policy, that allows the Google router to fallback to cleartext traffic if the MKA session + * cannot be established. By default, the Interconnect connection is configured with amust-secure + * security policy that drops all traffic if the MKA session cannot be established with your + * router. + * @param failOpen failOpen or {@code null} for none + */ + public InterconnectMacsec setFailOpen(java.lang.Boolean failOpen) { + this.failOpen = failOpen; + return this; + } + + /** + * Required. A keychain placeholder describing a set of named key objects along with their start + * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically + * picks the key with the most recent startTime when establishing or re-establishing a MACsec + * secure link. + * @return value or {@code null} for none + */ + public java.util.List getPreSharedKeys() { + return preSharedKeys; + } + + /** + * Required. A keychain placeholder describing a set of named key objects along with their start + * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically + * picks the key with the most recent startTime when establishing or re-establishing a MACsec + * secure link. + * @param preSharedKeys preSharedKeys or {@code null} for none + */ + public InterconnectMacsec setPreSharedKeys(java.util.List preSharedKeys) { + this.preSharedKeys = preSharedKeys; + return this; + } + + @Override + public InterconnectMacsec set(String fieldName, Object value) { + return (InterconnectMacsec) super.set(fieldName, value); + } + + @Override + public InterconnectMacsec clone() { + return (InterconnectMacsec) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfig.java new file mode 100644 index 00000000000..8654a0246bc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfig.java @@ -0,0 +1,76 @@ +/* + * 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; + +/** + * MACsec configuration information for the Interconnect connection. Contains the generated + * Connectivity Association Key Name (CKN) and the key (CAK) for this Interconnect connection. + * + *

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 InterconnectMacsecConfig extends com.google.api.client.json.GenericJson { + + /** + * A keychain placeholder describing a set of named key objects along with their start times. A + * MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks + * the key with the most recent startTime when establishing or re-establishing a MACsec secure + * link. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List preSharedKeys; + + /** + * A keychain placeholder describing a set of named key objects along with their start times. A + * MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks + * the key with the most recent startTime when establishing or re-establishing a MACsec secure + * link. + * @return value or {@code null} for none + */ + public java.util.List getPreSharedKeys() { + return preSharedKeys; + } + + /** + * A keychain placeholder describing a set of named key objects along with their start times. A + * MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks + * the key with the most recent startTime when establishing or re-establishing a MACsec secure + * link. + * @param preSharedKeys preSharedKeys or {@code null} for none + */ + public InterconnectMacsecConfig setPreSharedKeys(java.util.List preSharedKeys) { + this.preSharedKeys = preSharedKeys; + return this; + } + + @Override + public InterconnectMacsecConfig set(String fieldName, Object value) { + return (InterconnectMacsecConfig) super.set(fieldName, value); + } + + @Override + public InterconnectMacsecConfig clone() { + return (InterconnectMacsecConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfigPreSharedKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfigPreSharedKey.java new file mode 100644 index 00000000000..5f5fa5b2143 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecConfigPreSharedKey.java @@ -0,0 +1,139 @@ +/* + * 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; + +/** + * Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) + * mode. + * + *

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 InterconnectMacsecConfigPreSharedKey extends com.google.api.client.json.GenericJson { + + /** + * An auto-generated Connectivity Association Key (CAK) for this key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cak; + + /** + * An auto-generated Connectivity Association Key Name (CKN) for this key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ckn; + + /** + * User provided name for this pre-shared key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * User provided timestamp on or after which this key is valid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * An auto-generated Connectivity Association Key (CAK) for this key. + * @return value or {@code null} for none + */ + public java.lang.String getCak() { + return cak; + } + + /** + * An auto-generated Connectivity Association Key (CAK) for this key. + * @param cak cak or {@code null} for none + */ + public InterconnectMacsecConfigPreSharedKey setCak(java.lang.String cak) { + this.cak = cak; + return this; + } + + /** + * An auto-generated Connectivity Association Key Name (CKN) for this key. + * @return value or {@code null} for none + */ + public java.lang.String getCkn() { + return ckn; + } + + /** + * An auto-generated Connectivity Association Key Name (CKN) for this key. + * @param ckn ckn or {@code null} for none + */ + public InterconnectMacsecConfigPreSharedKey setCkn(java.lang.String ckn) { + this.ckn = ckn; + return this; + } + + /** + * User provided name for this pre-shared key. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * User provided name for this pre-shared key. + * @param name name or {@code null} for none + */ + public InterconnectMacsecConfigPreSharedKey setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * User provided timestamp on or after which this key is valid. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * User provided timestamp on or after which this key is valid. + * @param startTime startTime or {@code null} for none + */ + public InterconnectMacsecConfigPreSharedKey setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public InterconnectMacsecConfigPreSharedKey set(String fieldName, Object value) { + return (InterconnectMacsecConfigPreSharedKey) super.set(fieldName, value); + } + + @Override + public InterconnectMacsecConfigPreSharedKey clone() { + return (InterconnectMacsecConfigPreSharedKey) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecPreSharedKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecPreSharedKey.java new file mode 100644 index 00000000000..23d89559fb8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectMacsecPreSharedKey.java @@ -0,0 +1,112 @@ +/* + * 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; + +/** + * Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) + * mode. + * + *

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 InterconnectMacsecPreSharedKey extends com.google.api.client.json.GenericJson { + + /** + * Required. A name for this pre-shared key. 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; + + /** + * A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the + * keychain has a single key, startTime can be omitted. If the keychain has multiple keys, + * startTime is mandatory for each key. The start times of keys must be in increasing order. The + * start times of two consecutive keys must be at least 6 hours apart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * Required. A name for this pre-shared key. 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; + } + + /** + * Required. A name for this pre-shared key. 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 InterconnectMacsecPreSharedKey setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the + * keychain has a single key, startTime can be omitted. If the keychain has multiple keys, + * startTime is mandatory for each key. The start times of keys must be in increasing order. The + * start times of two consecutive keys must be at least 6 hours apart. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the + * keychain has a single key, startTime can be omitted. If the keychain has multiple keys, + * startTime is mandatory for each key. The start times of keys must be in increasing order. The + * start times of two consecutive keys must be at least 6 hours apart. + * @param startTime startTime or {@code null} for none + */ + public InterconnectMacsecPreSharedKey setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public InterconnectMacsecPreSharedKey set(String fieldName, Object value) { + return (InterconnectMacsecPreSharedKey) super.set(fieldName, value); + } + + @Override + public InterconnectMacsecPreSharedKey clone() { + return (InterconnectMacsecPreSharedKey) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectOutageNotification.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectOutageNotification.java new file mode 100644 index 00000000000..bb3f73864f6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectOutageNotification.java @@ -0,0 +1,285 @@ +/* + * 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; + +/** + * Description of a planned outage on this Interconnect. + * + *

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 InterconnectOutageNotification extends com.google.api.client.json.GenericJson { + + /** + * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be + * affected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List affectedCircuits; + + /** + * A description about the purpose of the outage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Scheduled end time for the outage (milliseconds since Unix epoch). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long endTime; + + /** + * Form this outage is expected to take, which can take one of the following values: - + * OUTAGE: The Interconnect may be completely out of service for some or all of the specified + * window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should + * remain up, but with reduced bandwidth. + * + * Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the + * unprefixed values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueType; + + /** + * Unique identifier for this outage notification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The party that generated this notification, which can take the following value: - + * GOOGLE: this notification as generated by Google. + * + * Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Scheduled start time for the outage (milliseconds since Unix epoch). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long startTime; + + /** + * State of this notification, which can take one of the following values: - ACTIVE: This + * outage notification is active. The event could be in the past, present, or future. See + * start_time and end_time for scheduling. - CANCELLED: The outage associated with this + * notification was cancelled before the outage was due to start. - COMPLETED: The outage + * associated with this notification is complete. + * + * Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the + * unprefixed values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be + * affected. + * @return value or {@code null} for none + */ + public java.util.List getAffectedCircuits() { + return affectedCircuits; + } + + /** + * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be + * affected. + * @param affectedCircuits affectedCircuits or {@code null} for none + */ + public InterconnectOutageNotification setAffectedCircuits(java.util.List affectedCircuits) { + this.affectedCircuits = affectedCircuits; + return this; + } + + /** + * A description about the purpose of the outage. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * A description about the purpose of the outage. + * @param description description or {@code null} for none + */ + public InterconnectOutageNotification setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Scheduled end time for the outage (milliseconds since Unix epoch). + * @return value or {@code null} for none + */ + public java.lang.Long getEndTime() { + return endTime; + } + + /** + * Scheduled end time for the outage (milliseconds since Unix epoch). + * @param endTime endTime or {@code null} for none + */ + public InterconnectOutageNotification setEndTime(java.lang.Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * Form this outage is expected to take, which can take one of the following values: - + * OUTAGE: The Interconnect may be completely out of service for some or all of the specified + * window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should + * remain up, but with reduced bandwidth. + * + * Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the + * unprefixed values. + * @return value or {@code null} for none + */ + public java.lang.String getIssueType() { + return issueType; + } + + /** + * Form this outage is expected to take, which can take one of the following values: - + * OUTAGE: The Interconnect may be completely out of service for some or all of the specified + * window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should + * remain up, but with reduced bandwidth. + * + * Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the + * unprefixed values. + * @param issueType issueType or {@code null} for none + */ + public InterconnectOutageNotification setIssueType(java.lang.String issueType) { + this.issueType = issueType; + return this; + } + + /** + * Unique identifier for this outage notification. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Unique identifier for this outage notification. + * @param name name or {@code null} for none + */ + public InterconnectOutageNotification setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The party that generated this notification, which can take the following value: - + * GOOGLE: this notification as generated by Google. + * + * Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * The party that generated this notification, which can take the following value: - + * GOOGLE: this notification as generated by Google. + * + * Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. + * @param source source or {@code null} for none + */ + public InterconnectOutageNotification setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Scheduled start time for the outage (milliseconds since Unix epoch). + * @return value or {@code null} for none + */ + public java.lang.Long getStartTime() { + return startTime; + } + + /** + * Scheduled start time for the outage (milliseconds since Unix epoch). + * @param startTime startTime or {@code null} for none + */ + public InterconnectOutageNotification setStartTime(java.lang.Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * State of this notification, which can take one of the following values: - ACTIVE: This + * outage notification is active. The event could be in the past, present, or future. See + * start_time and end_time for scheduling. - CANCELLED: The outage associated with this + * notification was cancelled before the outage was due to start. - COMPLETED: The outage + * associated with this notification is complete. + * + * Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the + * unprefixed values. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * State of this notification, which can take one of the following values: - ACTIVE: This + * outage notification is active. The event could be in the past, present, or future. See + * start_time and end_time for scheduling. - CANCELLED: The outage associated with this + * notification was cancelled before the outage was due to start. - COMPLETED: The outage + * associated with this notification is complete. + * + * Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the + * unprefixed values. + * @param state state or {@code null} for none + */ + public InterconnectOutageNotification setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public InterconnectOutageNotification set(String fieldName, Object value) { + return (InterconnectOutageNotification) super.set(fieldName, value); + } + + @Override + public InterconnectOutageNotification clone() { + return (InterconnectOutageNotification) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectParams.java new file mode 100644 index 00000000000..8ed8c359fa2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectParams.java @@ -0,0 +1,87 @@ +/* + * 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; + +/** + * Additional interconnect parameters. + * + *

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 InterconnectParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public InterconnectParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public InterconnectParams set(String fieldName, Object value) { + return (InterconnectParams) super.set(fieldName, value); + } + + @Override + public InterconnectParams clone() { + return (InterconnectParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java new file mode 100644 index 00000000000..b39fa5417ea --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -0,0 +1,600 @@ +/* + * 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 Cross-Cloud Interconnect Remote Location resource. + * + * You can use this resource to find remote location details about an Interconnect attachment + * (VLAN). + * + *

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 InterconnectRemoteLocation extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** + * Output only. [Output Only] Subset of fields from InterconnectAttachment's + * |configurationConstraints| field that apply to all attachments for this remote location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectAttachmentConfigurationConstraints attachmentConfigurationConstraints; + + /** + * Output only. [Output Only] Metropolitan area designator that indicates which city an + * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String city; + + /** + * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect + * and associated InterconnectAttachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectRemoteLocationConstraints constraints; + + /** + * Output only. [Output Only] Continent for this location, which can take one of the following + * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String continent; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 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 the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facilityProvider; + + /** + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String facilityProviderFacilityId; + + /** + * 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] Type of the resource. Alwayscompute#interconnectRemoteLocation for + * interconnect remote locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take + * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lacp; + + /** + * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxLagSize100Gbps; + + /** + * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxLagSize10Gbps; + + /** + * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxLagSize400Gbps; + + /** + * Output only. [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peeringdbFacilityId; + + /** + * Output only. [Output Only] Permitted connections. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permittedConnections; + + /** + * Output only. [Output Only] Indicates the service provider present at the remote location. + * Example values: "Amazon Web Services", "Microsoft Azure". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String remoteService; + + /** + * 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 status of this InterconnectRemoteLocation, which can take one of + * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is + * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The + * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. + * @return value or {@code null} for none + */ + public java.lang.String getAddress() { + return address; + } + + /** + * Output only. [Output Only] The postal address of the Point of Presence, each line in the + * address is separated by a newline character. + * @param address address or {@code null} for none + */ + public InterconnectRemoteLocation setAddress(java.lang.String address) { + this.address = address; + return this; + } + + /** + * Output only. [Output Only] Subset of fields from InterconnectAttachment's + * |configurationConstraints| field that apply to all attachments for this remote location. + * @return value or {@code null} for none + */ + public InterconnectAttachmentConfigurationConstraints getAttachmentConfigurationConstraints() { + return attachmentConfigurationConstraints; + } + + /** + * Output only. [Output Only] Subset of fields from InterconnectAttachment's + * |configurationConstraints| field that apply to all attachments for this remote location. + * @param attachmentConfigurationConstraints attachmentConfigurationConstraints or {@code null} for none + */ + public InterconnectRemoteLocation setAttachmentConfigurationConstraints(InterconnectAttachmentConfigurationConstraints attachmentConfigurationConstraints) { + this.attachmentConfigurationConstraints = attachmentConfigurationConstraints; + return this; + } + + /** + * Output only. [Output Only] Metropolitan area designator that indicates which city an + * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * @return value or {@code null} for none + */ + public java.lang.String getCity() { + return city; + } + + /** + * Output only. [Output Only] Metropolitan area designator that indicates which city an + * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * @param city city or {@code null} for none + */ + public InterconnectRemoteLocation setCity(java.lang.String city) { + this.city = city; + return this; + } + + /** + * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect + * and associated InterconnectAttachments. + * @return value or {@code null} for none + */ + public InterconnectRemoteLocationConstraints getConstraints() { + return constraints; + } + + /** + * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect + * and associated InterconnectAttachments. + * @param constraints constraints or {@code null} for none + */ + public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConstraints constraints) { + this.constraints = constraints; + return this; + } + + /** + * Output only. [Output Only] Continent for this location, which can take one of the following + * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * @return value or {@code null} for none + */ + public java.lang.String getContinent() { + return continent; + } + + /** + * Output only. [Output Only] Continent for this location, which can take one of the following + * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * @param continent continent or {@code null} for none + */ + public InterconnectRemoteLocation setContinent(java.lang.String continent) { + this.continent = continent; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] An optional description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] An optional description of the resource. + * @param description description or {@code null} for none + */ + public InterconnectRemoteLocation setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * @return value or {@code null} for none + */ + public java.lang.String getFacilityProvider() { + return facilityProvider; + } + + /** + * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * @param facilityProvider facilityProvider or {@code null} for none + */ + public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityProvider) { + this.facilityProvider = facilityProvider; + return this; + } + + /** + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). + * @return value or {@code null} for none + */ + public java.lang.String getFacilityProviderFacilityId() { + return facilityProviderFacilityId; + } + + /** + * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- + * DC1). + * @param facilityProviderFacilityId facilityProviderFacilityId or {@code null} for none + */ + public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String facilityProviderFacilityId) { + this.facilityProviderFacilityId = facilityProviderFacilityId; + 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 InterconnectRemoteLocation setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for + * interconnect remote locations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for + * interconnect remote locations. + * @param kind kind or {@code null} for none + */ + public InterconnectRemoteLocation setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take + * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * @return value or {@code null} for none + */ + public java.lang.String getLacp() { + return lacp; + } + + /** + * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take + * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * @param lacp lacp or {@code null} for none + */ + public InterconnectRemoteLocation setLacp(java.lang.String lacp) { + this.lacp = lacp; + return this; + } + + /** + * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxLagSize100Gbps() { + return maxLagSize100Gbps; + } + + /** + * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. + * @param maxLagSize100Gbps maxLagSize100Gbps or {@code null} for none + */ + public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagSize100Gbps) { + this.maxLagSize100Gbps = maxLagSize100Gbps; + return this; + } + + /** + * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxLagSize10Gbps() { + return maxLagSize10Gbps; + } + + /** + * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. + * @param maxLagSize10Gbps maxLagSize10Gbps or {@code null} for none + */ + public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSize10Gbps) { + this.maxLagSize10Gbps = maxLagSize10Gbps; + return this; + } + + /** + * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxLagSize400Gbps() { + return maxLagSize400Gbps; + } + + /** + * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation + * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. + * @param maxLagSize400Gbps maxLagSize400Gbps or {@code null} for none + */ + public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagSize400Gbps) { + this.maxLagSize400Gbps = maxLagSize400Gbps; + return this; + } + + /** + * Output only. [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public InterconnectRemoteLocation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). + * @return value or {@code null} for none + */ + public java.lang.String getPeeringdbFacilityId() { + return peeringdbFacilityId; + } + + /** + * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a + * netfac type in peeringdb). + * @param peeringdbFacilityId peeringdbFacilityId or {@code null} for none + */ + public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peeringdbFacilityId) { + this.peeringdbFacilityId = peeringdbFacilityId; + return this; + } + + /** + * Output only. [Output Only] Permitted connections. + * @return value or {@code null} for none + */ + public java.util.List getPermittedConnections() { + return permittedConnections; + } + + /** + * Output only. [Output Only] Permitted connections. + * @param permittedConnections permittedConnections or {@code null} for none + */ + public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { + this.permittedConnections = permittedConnections; + return this; + } + + /** + * Output only. [Output Only] Indicates the service provider present at the remote location. + * Example values: "Amazon Web Services", "Microsoft Azure". + * @return value or {@code null} for none + */ + public java.lang.String getRemoteService() { + return remoteService; + } + + /** + * Output only. [Output Only] Indicates the service provider present at the remote location. + * Example values: "Amazon Web Services", "Microsoft Azure". + * @param remoteService remoteService or {@code null} for none + */ + public InterconnectRemoteLocation setRemoteService(java.lang.String remoteService) { + this.remoteService = remoteService; + 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 InterconnectRemoteLocation setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] The status of this InterconnectRemoteLocation, which can take one of + * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is + * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The + * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of this InterconnectRemoteLocation, which can take one of + * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is + * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The + * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. + * @param status status or {@code null} for none + */ + public InterconnectRemoteLocation setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public InterconnectRemoteLocation set(String fieldName, Object value) { + return (InterconnectRemoteLocation) super.set(fieldName, value); + } + + @Override + public InterconnectRemoteLocation clone() { + return (InterconnectRemoteLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraints.java new file mode 100644 index 00000000000..b0b7a48163b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraints.java @@ -0,0 +1,171 @@ +/* + * 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 InterconnectRemoteLocationConstraints. + * + *

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 InterconnectRemoteLocationConstraints extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Port pair remote location constraints, which can take one of the + * following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. + * + * Google Cloud API refers only to individual ports, but the UI uses this field when ordering a + * pair of ports, to prevent users from accidentally ordering something that is incompatible with + * their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect + * ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to + * matching, the UI requires that both ports use the same remote location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portPairRemoteLocation; + + /** + * Output only. [Output Only] Port pair VLAN constraints, which can take one of the following + * values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portPairVlan; + + /** + * Output only. [Output Only] + * + * [min-length, max-length] + * + * The minimum and maximum value (inclusive) for the IPv4 subnet length. + * + * For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure + * requires /30 subnets. + * + * This range specifies the values supported by both cloud providers. Interconnect currently + * supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet + * length, the range would thus be {min: 29, max: 30}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectRemoteLocationConstraintsSubnetLengthRange subnetLengthRange; + + /** + * Output only. [Output Only] Port pair remote location constraints, which can take one of the + * following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. + * + * Google Cloud API refers only to individual ports, but the UI uses this field when ordering a + * pair of ports, to prevent users from accidentally ordering something that is incompatible with + * their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect + * ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to + * matching, the UI requires that both ports use the same remote location. + * @return value or {@code null} for none + */ + public java.lang.String getPortPairRemoteLocation() { + return portPairRemoteLocation; + } + + /** + * Output only. [Output Only] Port pair remote location constraints, which can take one of the + * following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. + * + * Google Cloud API refers only to individual ports, but the UI uses this field when ordering a + * pair of ports, to prevent users from accidentally ordering something that is incompatible with + * their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect + * ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to + * matching, the UI requires that both ports use the same remote location. + * @param portPairRemoteLocation portPairRemoteLocation or {@code null} for none + */ + public InterconnectRemoteLocationConstraints setPortPairRemoteLocation(java.lang.String portPairRemoteLocation) { + this.portPairRemoteLocation = portPairRemoteLocation; + return this; + } + + /** + * Output only. [Output Only] Port pair VLAN constraints, which can take one of the following + * values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN + * @return value or {@code null} for none + */ + public java.lang.String getPortPairVlan() { + return portPairVlan; + } + + /** + * Output only. [Output Only] Port pair VLAN constraints, which can take one of the following + * values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN + * @param portPairVlan portPairVlan or {@code null} for none + */ + public InterconnectRemoteLocationConstraints setPortPairVlan(java.lang.String portPairVlan) { + this.portPairVlan = portPairVlan; + return this; + } + + /** + * Output only. [Output Only] + * + * [min-length, max-length] + * + * The minimum and maximum value (inclusive) for the IPv4 subnet length. + * + * For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure + * requires /30 subnets. + * + * This range specifies the values supported by both cloud providers. Interconnect currently + * supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet + * length, the range would thus be {min: 29, max: 30}. + * @return value or {@code null} for none + */ + public InterconnectRemoteLocationConstraintsSubnetLengthRange getSubnetLengthRange() { + return subnetLengthRange; + } + + /** + * Output only. [Output Only] + * + * [min-length, max-length] + * + * The minimum and maximum value (inclusive) for the IPv4 subnet length. + * + * For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure + * requires /30 subnets. + * + * This range specifies the values supported by both cloud providers. Interconnect currently + * supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet + * length, the range would thus be {min: 29, max: 30}. + * @param subnetLengthRange subnetLengthRange or {@code null} for none + */ + public InterconnectRemoteLocationConstraints setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange subnetLengthRange) { + this.subnetLengthRange = subnetLengthRange; + return this; + } + + @Override + public InterconnectRemoteLocationConstraints set(String fieldName, Object value) { + return (InterconnectRemoteLocationConstraints) super.set(fieldName, value); + } + + @Override + public InterconnectRemoteLocationConstraints clone() { + return (InterconnectRemoteLocationConstraints) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java new file mode 100644 index 00000000000..13cce9597a1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java @@ -0,0 +1,84 @@ +/* + * 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 InterconnectRemoteLocationConstraintsSubnetLengthRange. + * + *

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 InterconnectRemoteLocationConstraintsSubnetLengthRange extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer max; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer min; + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getMax() { + return max; + } + + /** + * @param max max or {@code null} for none + */ + public InterconnectRemoteLocationConstraintsSubnetLengthRange setMax(java.lang.Integer max) { + this.max = max; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getMin() { + return min; + } + + /** + * @param min min or {@code null} for none + */ + public InterconnectRemoteLocationConstraintsSubnetLengthRange setMin(java.lang.Integer min) { + this.min = min; + return this; + } + + @Override + public InterconnectRemoteLocationConstraintsSubnetLengthRange set(String fieldName, Object value) { + return (InterconnectRemoteLocationConstraintsSubnetLengthRange) super.set(fieldName, value); + } + + @Override + public InterconnectRemoteLocationConstraintsSubnetLengthRange clone() { + return (InterconnectRemoteLocationConstraintsSubnetLengthRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationList.java new file mode 100644 index 00000000000..11692445004 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationList.java @@ -0,0 +1,386 @@ +/* + * 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 the list request, and contains a list of interconnect remote locations. + * + *

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 InterconnectRemoteLocationList extends com.google.api.client.json.GenericJson { + + /** + * [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 InterconnectRemoteLocation 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 InterconnectRemoteLocation 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(InterconnectRemoteLocation.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for + * lists of interconnect remote locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token lets you get the next page of results for list requests. If the number + * of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 InterconnectRemoteLocationList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InterconnectRemoteLocation resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InterconnectRemoteLocation resources. + * @param items items or {@code null} for none + */ + public InterconnectRemoteLocationList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for + * lists of interconnect remote locations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for + * lists of interconnect remote locations. + * @param kind kind or {@code null} for none + */ + public InterconnectRemoteLocationList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token lets you get the next page of results for list requests. If the number + * of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token lets you get the next page of results for list requests. If the number + * of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public InterconnectRemoteLocationList 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 InterconnectRemoteLocationList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 InterconnectRemoteLocationList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public InterconnectRemoteLocationList set(String fieldName, Object value) { + return (InterconnectRemoteLocationList) super.set(fieldName, value); + } + + @Override + public InterconnectRemoteLocationList clone() { + return (InterconnectRemoteLocationList) 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 InterconnectRemoteLocationListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationPermittedConnections.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationPermittedConnections.java new file mode 100644 index 00000000000..6feb0bea674 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocationPermittedConnections.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; + +/** + * Model definition for InterconnectRemoteLocationPermittedConnections. + * + *

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 InterconnectRemoteLocationPermittedConnections extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] URL of an Interconnect location that is permitted to connect to this + * Interconnect remote location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectLocation; + + /** + * Output only. [Output Only] URL of an Interconnect location that is permitted to connect to this + * Interconnect remote location. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectLocation() { + return interconnectLocation; + } + + /** + * Output only. [Output Only] URL of an Interconnect location that is permitted to connect to this + * Interconnect remote location. + * @param interconnectLocation interconnectLocation or {@code null} for none + */ + public InterconnectRemoteLocationPermittedConnections setInterconnectLocation(java.lang.String interconnectLocation) { + this.interconnectLocation = interconnectLocation; + return this; + } + + @Override + public InterconnectRemoteLocationPermittedConnections set(String fieldName, Object value) { + return (InterconnectRemoteLocationPermittedConnections) super.set(fieldName, value); + } + + @Override + public InterconnectRemoteLocationPermittedConnections clone() { + return (InterconnectRemoteLocationPermittedConnections) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetDiagnosticsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetDiagnosticsResponse.java new file mode 100644 index 00000000000..efbbc695f3a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetDiagnosticsResponse.java @@ -0,0 +1,63 @@ +/* + * 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 for the InterconnectsGetDiagnosticsRequest. + * + *

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 InterconnectsGetDiagnosticsResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectDiagnostics result; + + /** + * @return value or {@code null} for none + */ + public InterconnectDiagnostics getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectsGetDiagnosticsResponse setResult(InterconnectDiagnostics result) { + this.result = result; + return this; + } + + @Override + public InterconnectsGetDiagnosticsResponse set(String fieldName, Object value) { + return (InterconnectsGetDiagnosticsResponse) super.set(fieldName, value); + } + + @Override + public InterconnectsGetDiagnosticsResponse clone() { + return (InterconnectsGetDiagnosticsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetMacsecConfigResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetMacsecConfigResponse.java new file mode 100644 index 00000000000..9fff0487e4b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsGetMacsecConfigResponse.java @@ -0,0 +1,87 @@ +/* + * 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 for the InterconnectsGetMacsecConfigRequest. + * + *

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 InterconnectsGetMacsecConfigResponse extends com.google.api.client.json.GenericJson { + + /** + * end_interface: MixerGetResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InterconnectMacsecConfig result; + + /** + * end_interface: MixerGetResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * end_interface: MixerGetResponseWithEtagBuilder + * @param etag etag or {@code null} for none + */ + public InterconnectsGetMacsecConfigResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InterconnectMacsecConfig getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public InterconnectsGetMacsecConfigResponse setResult(InterconnectMacsecConfig result) { + this.result = result; + return this; + } + + @Override + public InterconnectsGetMacsecConfigResponse set(String fieldName, Object value) { + return (InterconnectsGetMacsecConfigResponse) super.set(fieldName, value); + } + + @Override + public InterconnectsGetMacsecConfigResponse clone() { + return (InterconnectsGetMacsecConfigResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java new file mode 100644 index 00000000000..8d5a4ff0620 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java @@ -0,0 +1,96 @@ +/* + * 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; + +/** + * Request to rename an interconnect. + * + *

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 InterconnectsSetNameRequest extends com.google.api.client.json.GenericJson { + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentName; + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentName() { + return currentName; + } + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param currentName currentName or {@code null} for none + */ + public InterconnectsSetNameRequest setCurrentName(java.lang.String currentName) { + this.currentName = currentName; + return this; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param name name or {@code null} for none + */ + public InterconnectsSetNameRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public InterconnectsSetNameRequest set(String fieldName, Object value) { + return (InterconnectsSetNameRequest) super.set(fieldName, value); + } + + @Override + public InterconnectsSetNameRequest clone() { + return (InterconnectsSetNameRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interval.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interval.java new file mode 100644 index 00000000000..6f0231114cd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Interval.java @@ -0,0 +1,106 @@ +/* + * 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 time interval, encoded as a Timestamp start (inclusive) and a Timestamp end + * (exclusive). + * + * The start must be less than or equal to the end. When the start equals the end, the interval is + * empty (matches no time). When both start and end are unspecified, the interval matches any time. + * + *

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 Interval extends com.google.api.client.json.GenericJson { + + /** + * Optional. Exclusive end of the interval. + * + * If specified, a Timestamp matching this interval will have to be before the end. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Optional. Inclusive start of the interval. + * + * If specified, a Timestamp matching this interval will have to be the same or after the start. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Optional. Exclusive end of the interval. + * + * If specified, a Timestamp matching this interval will have to be before the end. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. Exclusive end of the interval. + * + * If specified, a Timestamp matching this interval will have to be before the end. + * @param endTime endTime or {@code null} for none + */ + public Interval setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Optional. Inclusive start of the interval. + * + * If specified, a Timestamp matching this interval will have to be the same or after the start. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Optional. Inclusive start of the interval. + * + * If specified, a Timestamp matching this interval will have to be the same or after the start. + * @param startTime startTime or {@code null} for none + */ + public Interval setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public Interval set(String fieldName, Object value) { + return (Interval) super.set(fieldName, value); + } + + @Override + public Interval clone() { + return (Interval) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/License.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/License.java new file mode 100644 index 00000000000..2df15b24974 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/License.java @@ -0,0 +1,604 @@ +/* + * 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 License resource. + * + * A License represents billing and aggregate usage data forpublic andmarketplace images. Caution* + * This resource is intended for use only by third-party partners who are creatingCloud Marketplace + * images. + * + *

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 License extends com.google.api.client.json.GenericJson { + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedReplacementLicenses; + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean appendableToDisk; + + /** + * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean chargesUseFee; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional textual description of the resource; provided by the client when the resource is + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [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; + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List incompatibleLicenses; + + /** + * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] The unique code used to attach this license to images, snapshots, and disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger licenseCode; + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration minimumRetention; + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean multiTenantOnly; + + /** + * Name of the resource. The name must be 1-63 characters long and comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean osLicense; + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LicenseParams params; + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean removableFromDisk; + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requiredCoattachedLicenses; + + /** + * [Input Only] Deprecated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LicenseResourceRequirements resourceRequirements; + + /** + * 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean soleTenantOnly; + + /** + * If false, licenses will not be copied from the source resource when creating an image from a + * disk, disk from snapshot, or snapshot from disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean transferable; + + /** + * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @return value or {@code null} for none + */ + public java.util.List getAllowedReplacementLicenses() { + return allowedReplacementLicenses; + } + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @param allowedReplacementLicenses allowedReplacementLicenses or {@code null} for none + */ + public License setAllowedReplacementLicenses(java.util.List allowedReplacementLicenses) { + this.allowedReplacementLicenses = allowedReplacementLicenses; + return this; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAppendableToDisk() { + return appendableToDisk; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @param appendableToDisk appendableToDisk or {@code null} for none + */ + public License setAppendableToDisk(java.lang.Boolean appendableToDisk) { + this.appendableToDisk = appendableToDisk; + return this; + } + + /** + * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. + * @return value or {@code null} for none + */ + public java.lang.Boolean getChargesUseFee() { + return chargesUseFee; + } + + /** + * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. + * @param chargesUseFee chargesUseFee or {@code null} for none + */ + public License setChargesUseFee(java.lang.Boolean chargesUseFee) { + this.chargesUseFee = chargesUseFee; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public License setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional textual description of the resource; provided by the client when the resource is + * created. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional textual description of the resource; provided by the client when the resource is + * created. + * @param description description or {@code null} for none + */ + public License setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public License setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @return value or {@code null} for none + */ + public java.util.List getIncompatibleLicenses() { + return incompatibleLicenses; + } + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @param incompatibleLicenses incompatibleLicenses or {@code null} for none + */ + public License setIncompatibleLicenses(java.util.List incompatibleLicenses) { + this.incompatibleLicenses = incompatibleLicenses; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * @param kind kind or {@code null} for none + */ + public License setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] The unique code used to attach this license to images, snapshots, and disks. + * @return value or {@code null} for none + */ + public java.math.BigInteger getLicenseCode() { + return licenseCode; + } + + /** + * [Output Only] The unique code used to attach this license to images, snapshots, and disks. + * @param licenseCode licenseCode or {@code null} for none + */ + public License setLicenseCode(java.math.BigInteger licenseCode) { + this.licenseCode = licenseCode; + return this; + } + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @return value or {@code null} for none + */ + public Duration getMinimumRetention() { + return minimumRetention; + } + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @param minimumRetention minimumRetention or {@code null} for none + */ + public License setMinimumRetention(Duration minimumRetention) { + this.minimumRetention = minimumRetention; + return this; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMultiTenantOnly() { + return multiTenantOnly; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @param multiTenantOnly multiTenantOnly or {@code null} for none + */ + public License setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { + this.multiTenantOnly = multiTenantOnly; + return this; + } + + /** + * Name of the resource. The name must be 1-63 characters long and comply withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. The name must be 1-63 characters long and comply withRFC1035. + * @param name name or {@code null} for none + */ + public License setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOsLicense() { + return osLicense; + } + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @param osLicense osLicense or {@code null} for none + */ + public License setOsLicense(java.lang.Boolean osLicense) { + this.osLicense = osLicense; + return this; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public LicenseParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public License setParams(LicenseParams params) { + this.params = params; + return this; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRemovableFromDisk() { + return removableFromDisk; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @param removableFromDisk removableFromDisk or {@code null} for none + */ + public License setRemovableFromDisk(java.lang.Boolean removableFromDisk) { + this.removableFromDisk = removableFromDisk; + return this; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @return value or {@code null} for none + */ + public java.util.List getRequiredCoattachedLicenses() { + return requiredCoattachedLicenses; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @param requiredCoattachedLicenses requiredCoattachedLicenses or {@code null} for none + */ + public License setRequiredCoattachedLicenses(java.util.List requiredCoattachedLicenses) { + this.requiredCoattachedLicenses = requiredCoattachedLicenses; + return this; + } + + /** + * [Input Only] Deprecated. + * @return value or {@code null} for none + */ + public LicenseResourceRequirements getResourceRequirements() { + return resourceRequirements; + } + + /** + * [Input Only] Deprecated. + * @param resourceRequirements resourceRequirements or {@code null} for none + */ + public License setResourceRequirements(LicenseResourceRequirements resourceRequirements) { + this.resourceRequirements = resourceRequirements; + 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 License setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public License setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSoleTenantOnly() { + return soleTenantOnly; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @param soleTenantOnly soleTenantOnly or {@code null} for none + */ + public License setSoleTenantOnly(java.lang.Boolean soleTenantOnly) { + this.soleTenantOnly = soleTenantOnly; + return this; + } + + /** + * If false, licenses will not be copied from the source resource when creating an image from a + * disk, disk from snapshot, or snapshot from disk. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTransferable() { + return transferable; + } + + /** + * If false, licenses will not be copied from the source resource when creating an image from a + * disk, disk from snapshot, or snapshot from disk. + * @param transferable transferable or {@code null} for none + */ + public License setTransferable(java.lang.Boolean transferable) { + this.transferable = transferable; + return this; + } + + /** + * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public License setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + + @Override + public License set(String fieldName, Object value) { + return (License) super.set(fieldName, value); + } + + @Override + public License clone() { + return (License) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCode.java new file mode 100644 index 00000000000..85f546f4ddb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -0,0 +1,531 @@ +/* + * 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 License Code resource. + * + * A License Code is a unique identifier used to represent alicense resource. Caution* This resource + * is intended for use only by third-party partners who are creatingCloud Marketplace images. + * + *

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 LicenseCode extends com.google.api.client.json.GenericJson { + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedReplacementLicenses; + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean appendableToDisk; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] Description of this License Code. + * 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; + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List incompatibleLicenses; + + /** + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] URL and description aliases of Licenses with the same License Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenseAlias; + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration minimumRetention; + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean multiTenantOnly; + + /** + * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a + * valid 64 bit integer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean osLicense; + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean removableFromDisk; + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requiredCoattachedLicenses; + + /** + * 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; + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean soleTenantOnly; + + /** + * Output only. [Output Only] Current state of this License Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] If true, the license will remain attached when creating images or + * snapshots from disks. Otherwise, the license is not transferred. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean transferable; + + /** + * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @return value or {@code null} for none + */ + public java.util.List getAllowedReplacementLicenses() { + return allowedReplacementLicenses; + } + + /** + * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are + * allowed even if removable_from_disk is false. + * @param allowedReplacementLicenses allowedReplacementLicenses or {@code null} for none + */ + public LicenseCode setAllowedReplacementLicenses(java.util.List allowedReplacementLicenses) { + this.allowedReplacementLicenses = allowedReplacementLicenses; + return this; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAppendableToDisk() { + return appendableToDisk; + } + + /** + * If true, this license can be appended to an existing disk's set of licenses. + * @param appendableToDisk appendableToDisk or {@code null} for none + */ + public LicenseCode setAppendableToDisk(java.lang.Boolean appendableToDisk) { + this.appendableToDisk = appendableToDisk; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] Description of this License Code. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] Description of this License Code. + * @param description description or {@code null} for none + */ + public LicenseCode 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 LicenseCode setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @return value or {@code null} for none + */ + public java.util.List getIncompatibleLicenses() { + return incompatibleLicenses; + } + + /** + * Specifies licenseCodes of licenses that are incompatible with this license. If a license is + * incompatible with this license, it cannot be attached to the same disk or image. + * @param incompatibleLicenses incompatibleLicenses or {@code null} for none + */ + public LicenseCode setIncompatibleLicenses(java.util.List incompatibleLicenses) { + this.incompatibleLicenses = incompatibleLicenses; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * @param kind kind or {@code null} for none + */ + public LicenseCode setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] URL and description aliases of Licenses with the same License Code. + * @return value or {@code null} for none + */ + public java.util.List getLicenseAlias() { + return licenseAlias; + } + + /** + * [Output Only] URL and description aliases of Licenses with the same License Code. + * @param licenseAlias licenseAlias or {@code null} for none + */ + public LicenseCode setLicenseAlias(java.util.List licenseAlias) { + this.licenseAlias = licenseAlias; + return this; + } + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @return value or {@code null} for none + */ + public Duration getMinimumRetention() { + return minimumRetention; + } + + /** + * If set, this license will be unable to be removed or replaced once attached to a disk until the + * minimum_retention period has passed. + * @param minimumRetention minimumRetention or {@code null} for none + */ + public LicenseCode setMinimumRetention(Duration minimumRetention) { + this.minimumRetention = minimumRetention; + return this; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMultiTenantOnly() { + return multiTenantOnly; + } + + /** + * If true, this license can only be used on VMs on multi tenant nodes. + * @param multiTenantOnly multiTenantOnly or {@code null} for none + */ + public LicenseCode setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { + this.multiTenantOnly = multiTenantOnly; + return this; + } + + /** + * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a + * valid 64 bit integer. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a + * valid 64 bit integer. + * @param name name or {@code null} for none + */ + public LicenseCode setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getOsLicense() { + return osLicense; + } + + /** + * If true, indicates this is an OS license. Only one OS license can be attached to a disk or + * image at a time. + * @param osLicense osLicense or {@code null} for none + */ + public LicenseCode setOsLicense(java.lang.Boolean osLicense) { + this.osLicense = osLicense; + return this; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRemovableFromDisk() { + return removableFromDisk; + } + + /** + * If true, this license can be removed from a disk's set of licenses, with no replacement license + * needed. + * @param removableFromDisk removableFromDisk or {@code null} for none + */ + public LicenseCode setRemovableFromDisk(java.lang.Boolean removableFromDisk) { + this.removableFromDisk = removableFromDisk; + return this; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @return value or {@code null} for none + */ + public java.util.List getRequiredCoattachedLicenses() { + return requiredCoattachedLicenses; + } + + /** + * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the + * coattachment requirement of this license. At least one license from the set must be attached to + * the same disk or image as this license. + * @param requiredCoattachedLicenses requiredCoattachedLicenses or {@code null} for none + */ + public LicenseCode setRequiredCoattachedLicenses(java.util.List requiredCoattachedLicenses) { + this.requiredCoattachedLicenses = requiredCoattachedLicenses; + 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 LicenseCode setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSoleTenantOnly() { + return soleTenantOnly; + } + + /** + * If true, this license can only be used on VMs on sole tenant nodes. + * @param soleTenantOnly soleTenantOnly or {@code null} for none + */ + public LicenseCode setSoleTenantOnly(java.lang.Boolean soleTenantOnly) { + this.soleTenantOnly = soleTenantOnly; + return this; + } + + /** + * Output only. [Output Only] Current state of this License Code. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] Current state of this License Code. + * @param state state or {@code null} for none + */ + public LicenseCode setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] If true, the license will remain attached when creating images or + * snapshots from disks. Otherwise, the license is not transferred. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTransferable() { + return transferable; + } + + /** + * Output only. [Output Only] If true, the license will remain attached when creating images or + * snapshots from disks. Otherwise, the license is not transferred. + * @param transferable transferable or {@code null} for none + */ + public LicenseCode setTransferable(java.lang.Boolean transferable) { + this.transferable = transferable; + return this; + } + + /** + * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public LicenseCode setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + + @Override + public LicenseCode set(String fieldName, Object value) { + return (LicenseCode) super.set(fieldName, value); + } + + @Override + public LicenseCode clone() { + return (LicenseCode) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java new file mode 100644 index 00000000000..cfe3ccb4c83 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for LicenseCodeLicenseAlias. + * + *

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 LicenseCodeLicenseAlias extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Description of this License Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] URL of license corresponding to this License Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Description of this License Code. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] Description of this License Code. + * @param description description or {@code null} for none + */ + public LicenseCodeLicenseAlias setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] URL of license corresponding to this License Code. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] URL of license corresponding to this License Code. + * @param selfLink selfLink or {@code null} for none + */ + public LicenseCodeLicenseAlias setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public LicenseCodeLicenseAlias set(String fieldName, Object value) { + return (LicenseCodeLicenseAlias) super.set(fieldName, value); + } + + @Override + public LicenseCodeLicenseAlias clone() { + return (LicenseCodeLicenseAlias) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseParams.java new file mode 100644 index 00000000000..91d69437fa5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional license params. + * + *

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 LicenseParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same + * definition as resource manager tags. Keys and values can be either in numeric format, such as + * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public LicenseParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public LicenseParams set(String fieldName, Object value) { + return (LicenseParams) super.set(fieldName, value); + } + + @Override + public LicenseParams clone() { + return (LicenseParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceCommitment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceCommitment.java new file mode 100644 index 00000000000..6b218b0df10 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceCommitment.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Commitment for a particular license 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 LicenseResourceCommitment extends com.google.api.client.json.GenericJson { + + /** + * The number of licenses you plan to purchase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long amount; + + /** + * The number of cores per license. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String coresPerLicense; + + /** + * The applicable license URI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String license; + + /** + * The number of licenses you plan to purchase. + * @return value or {@code null} for none + */ + public java.lang.Long getAmount() { + return amount; + } + + /** + * The number of licenses you plan to purchase. + * @param amount amount or {@code null} for none + */ + public LicenseResourceCommitment setAmount(java.lang.Long amount) { + this.amount = amount; + return this; + } + + /** + * The number of cores per license. + * @return value or {@code null} for none + */ + public java.lang.String getCoresPerLicense() { + return coresPerLicense; + } + + /** + * The number of cores per license. + * @param coresPerLicense coresPerLicense or {@code null} for none + */ + public LicenseResourceCommitment setCoresPerLicense(java.lang.String coresPerLicense) { + this.coresPerLicense = coresPerLicense; + return this; + } + + /** + * The applicable license URI. + * @return value or {@code null} for none + */ + public java.lang.String getLicense() { + return license; + } + + /** + * The applicable license URI. + * @param license license or {@code null} for none + */ + public LicenseResourceCommitment setLicense(java.lang.String license) { + this.license = license; + return this; + } + + @Override + public LicenseResourceCommitment set(String fieldName, Object value) { + return (LicenseResourceCommitment) super.set(fieldName, value); + } + + @Override + public LicenseResourceCommitment clone() { + return (LicenseResourceCommitment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceRequirements.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceRequirements.java new file mode 100644 index 00000000000..81e455c3bcb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicenseResourceRequirements.java @@ -0,0 +1,96 @@ +/* + * 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 LicenseResourceRequirements. + * + *

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 LicenseResourceRequirements extends com.google.api.client.json.GenericJson { + + /** + * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus + * required to use the Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minGuestCpuCount; + + /** + * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the + * Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minMemoryMb; + + /** + * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus + * required to use the Instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinGuestCpuCount() { + return minGuestCpuCount; + } + + /** + * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus + * required to use the Instance. + * @param minGuestCpuCount minGuestCpuCount or {@code null} for none + */ + public LicenseResourceRequirements setMinGuestCpuCount(java.lang.Integer minGuestCpuCount) { + this.minGuestCpuCount = minGuestCpuCount; + return this; + } + + /** + * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the + * Instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinMemoryMb() { + return minMemoryMb; + } + + /** + * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the + * Instance. + * @param minMemoryMb minMemoryMb or {@code null} for none + */ + public LicenseResourceRequirements setMinMemoryMb(java.lang.Integer minMemoryMb) { + this.minMemoryMb = minMemoryMb; + return this; + } + + @Override + public LicenseResourceRequirements set(String fieldName, Object value) { + return (LicenseResourceRequirements) super.set(fieldName, value); + } + + @Override + public LicenseResourceRequirements clone() { + return (LicenseResourceRequirements) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java new file mode 100644 index 00000000000..f62bb8fb83f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -0,0 +1,359 @@ +/* + * 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 LicensesListResponse. + * + *

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 LicensesListResponse extends com.google.api.client.json.GenericJson { + + /** + * [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 License 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 License 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(License.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 LicensesListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of License resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of License resources. + * @param items items or {@code null} for none + */ + public LicensesListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public LicensesListResponse 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 LicensesListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 LicensesListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public LicensesListResponse set(String fieldName, Object value) { + return (LicensesListResponse) super.set(fieldName, value); + } + + @Override + public LicensesListResponse clone() { + return (LicensesListResponse) 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 LicensesListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java new file mode 100644 index 00000000000..f64a3456d19 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java @@ -0,0 +1,431 @@ +/* + * 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; + +/** + * Contains a list of InstantSnapshotGroup resources. + * + *

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 ListInstantSnapshotGroups extends com.google.api.client.json.GenericJson { + + /** + * 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 InstantSnapshotGroup 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 InstantSnapshotGroup 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(InstantSnapshotGroup.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public ListInstantSnapshotGroups 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 ListInstantSnapshotGroups setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstantSnapshotGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstantSnapshotGroup resources. + * @param items items or {@code null} for none + */ + public ListInstantSnapshotGroups setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public ListInstantSnapshotGroups setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListInstantSnapshotGroups 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 ListInstantSnapshotGroups setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public ListInstantSnapshotGroups 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 ListInstantSnapshotGroups setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ListInstantSnapshotGroups set(String fieldName, Object value) { + return (ListInstantSnapshotGroups) super.set(fieldName, value); + } + + @Override + public ListInstantSnapshotGroups clone() { + return (ListInstantSnapshotGroups) 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 ListInstantSnapshotGroupsWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/LocalDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalDisk.java new file mode 100644 index 00000000000..9ae9256b2cb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalDisk.java @@ -0,0 +1,120 @@ +/* + * 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 LocalDisk. + * + *

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 LocalDisk extends com.google.api.client.json.GenericJson { + + /** + * Specifies the number of such disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer diskCount; + + /** + * Specifies the size of the disk in base-2 GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer diskSizeGb; + + /** + * Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: + * local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its + * URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskType; + + /** + * Specifies the number of such disks. + * @return value or {@code null} for none + */ + public java.lang.Integer getDiskCount() { + return diskCount; + } + + /** + * Specifies the number of such disks. + * @param diskCount diskCount or {@code null} for none + */ + public LocalDisk setDiskCount(java.lang.Integer diskCount) { + this.diskCount = diskCount; + return this; + } + + /** + * Specifies the size of the disk in base-2 GB. + * @return value or {@code null} for none + */ + public java.lang.Integer getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Specifies the size of the disk in base-2 GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public LocalDisk setDiskSizeGb(java.lang.Integer diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: + * local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its + * URL. + * @return value or {@code null} for none + */ + public java.lang.String getDiskType() { + return diskType; + } + + /** + * Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: + * local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its + * URL. + * @param diskType diskType or {@code null} for none + */ + public LocalDisk setDiskType(java.lang.String diskType) { + this.diskType = diskType; + return this; + } + + @Override + public LocalDisk set(String fieldName, Object value) { + return (LocalDisk) super.set(fieldName, value); + } + + @Override + public LocalDisk clone() { + return (LocalDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalizedMessage.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalizedMessage.java new file mode 100644 index 00000000000..e3bad38d05f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocalizedMessage.java @@ -0,0 +1,94 @@ +/* + * 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; + +/** + * Provides a localized error message that is safe to return to the user which can be attached to an + * RPC error. + * + *

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 LocalizedMessage extends com.google.api.client.json.GenericJson { + + /** + * The locale used following the specification defined at https://www.rfc- + * editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locale; + + /** + * The localized error message in the above locale. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The locale used following the specification defined at https://www.rfc- + * editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * @return value or {@code null} for none + */ + public java.lang.String getLocale() { + return locale; + } + + /** + * The locale used following the specification defined at https://www.rfc- + * editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * @param locale locale or {@code null} for none + */ + public LocalizedMessage setLocale(java.lang.String locale) { + this.locale = locale; + return this; + } + + /** + * The localized error message in the above locale. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * The localized error message in the above locale. + * @param message message or {@code null} for none + */ + public LocalizedMessage setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public LocalizedMessage set(String fieldName, Object value) { + return (LocalizedMessage) super.set(fieldName, value); + } + + @Override + public LocalizedMessage clone() { + return (LocalizedMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicy.java new file mode 100644 index 00000000000..7c437efa39b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -0,0 +1,136 @@ +/* + * 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; + +/** + * Configuration for location policy among multiple possible locations (e.g. preferences for zone + * selection among zones in a single region). + * + *

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 LocationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Location configurations mapped by location name. Currently only zone names are supported and + * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert + * operation doesn't create instances in an AI zone, even if an AI zone is available in the + * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine + * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. + * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To + * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locations; + + /** + * Strategy for distributing VMs across zones in a region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetShape; + + /** + * The bulkInsert operation applies any preferences set in the locations field to the specific + * zones listed in the zones field if the same zones are specified in both fields. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * Location configurations mapped by location name. Currently only zone names are supported and + * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert + * operation doesn't create instances in an AI zone, even if an AI zone is available in the + * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine + * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. + * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To + * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. + * @return value or {@code null} for none + */ + public java.util.Map getLocations() { + return locations; + } + + /** + * Location configurations mapped by location name. Currently only zone names are supported and + * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert + * operation doesn't create instances in an AI zone, even if an AI zone is available in the + * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine + * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. + * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To + * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. + * @param locations locations or {@code null} for none + */ + public LocationPolicy setLocations(java.util.Map locations) { + this.locations = locations; + return this; + } + + /** + * Strategy for distributing VMs across zones in a region. + * @return value or {@code null} for none + */ + public java.lang.String getTargetShape() { + return targetShape; + } + + /** + * Strategy for distributing VMs across zones in a region. + * @param targetShape targetShape or {@code null} for none + */ + public LocationPolicy setTargetShape(java.lang.String targetShape) { + this.targetShape = targetShape; + return this; + } + + /** + * The bulkInsert operation applies any preferences set in the locations field to the specific + * zones listed in the zones field if the same zones are specified in both fields. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * The bulkInsert operation applies any preferences set in the locations field to the specific + * zones listed in the zones field if the same zones are specified in both fields. + * @param zones zones or {@code null} for none + */ + public LocationPolicy setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public LocationPolicy set(String fieldName, Object value) { + return (LocationPolicy) super.set(fieldName, value); + } + + @Override + public LocationPolicy clone() { + return (LocationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocation.java new file mode 100644 index 00000000000..2e8ff93bf1b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for LocationPolicyLocation. + * + *

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 LocationPolicyLocation extends com.google.api.client.json.GenericJson { + + /** + * Constraints that the caller requires on the result distribution in this zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocationPolicyLocationConstraints constraints; + + /** + * Preference for a given location. Set to either ALLOW orDENY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String preference; + + /** + * Constraints that the caller requires on the result distribution in this zone. + * @return value or {@code null} for none + */ + public LocationPolicyLocationConstraints getConstraints() { + return constraints; + } + + /** + * Constraints that the caller requires on the result distribution in this zone. + * @param constraints constraints or {@code null} for none + */ + public LocationPolicyLocation setConstraints(LocationPolicyLocationConstraints constraints) { + this.constraints = constraints; + return this; + } + + /** + * Preference for a given location. Set to either ALLOW orDENY. + * @return value or {@code null} for none + */ + public java.lang.String getPreference() { + return preference; + } + + /** + * Preference for a given location. Set to either ALLOW orDENY. + * @param preference preference or {@code null} for none + */ + public LocationPolicyLocation setPreference(java.lang.String preference) { + this.preference = preference; + return this; + } + + @Override + public LocationPolicyLocation set(String fieldName, Object value) { + return (LocationPolicyLocation) super.set(fieldName, value); + } + + @Override + public LocationPolicyLocation clone() { + return (LocationPolicyLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocationConstraints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocationConstraints.java new file mode 100644 index 00000000000..ba3a2603429 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyLocationConstraints.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; + +/** + * Per-zone constraints on location policy for this zone. + * + *

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 LocationPolicyLocationConstraints extends com.google.api.client.json.GenericJson { + + /** + * Maximum number of items that are allowed to be placed in this zone. The value must be non- + * negative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxCount; + + /** + * Maximum number of items that are allowed to be placed in this zone. The value must be non- + * negative. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxCount() { + return maxCount; + } + + /** + * Maximum number of items that are allowed to be placed in this zone. The value must be non- + * negative. + * @param maxCount maxCount or {@code null} for none + */ + public LocationPolicyLocationConstraints setMaxCount(java.lang.Integer maxCount) { + this.maxCount = maxCount; + return this; + } + + @Override + public LocationPolicyLocationConstraints set(String fieldName, Object value) { + return (LocationPolicyLocationConstraints) super.set(fieldName, value); + } + + @Override + public LocationPolicyLocationConstraints clone() { + return (LocationPolicyLocationConstraints) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java new file mode 100644 index 00000000000..df5e3278cbf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.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; + +/** + * Model definition for LocationPolicyZoneConfiguration. + * + *

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 LocationPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The URL of the zone. The zone must exist in the region where the request is called. Zones must + * be represented as valid partial URLs, such as zones/us-central1-a. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * The URL of the zone. The zone must exist in the region where the request is called. Zones must + * be represented as valid partial URLs, such as zones/us-central1-a. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The URL of the zone. The zone must exist in the region where the request is called. Zones must + * be represented as valid partial URLs, such as zones/us-central1-a. + * @param zone zone or {@code null} for none + */ + public LocationPolicyZoneConfiguration setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public LocationPolicyZoneConfiguration set(String fieldName, Object value) { + return (LocationPolicyZoneConfiguration) super.set(fieldName, value); + } + + @Override + public LocationPolicyZoneConfiguration clone() { + return (LocationPolicyZoneConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImage.java new file mode 100644 index 00000000000..8b4e7fd0cd4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -0,0 +1,678 @@ +/* + * 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 machine image resource. + * + * A machine image is a Compute Engine resource that stores all the configuration, metadata, + * permissions, and data from one or more disks required to create a Virtual machine (VM) instance. + * For more information, seeMachine images. + * + *

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 MachineImage extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Input Only] Whether to attempt an application consistent machine image by informing the OS to + * prepare for the snapshot process. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean guestFlush; + + /** + * Output only. [Output Only] A unique identifier for this machine image. The server defines this + * identifier. + * 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] Properties of source instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceProperties instanceProperties; + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine + * image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this machine image, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this machine image. These can be later modified by the setLabels method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Encrypts the machine image using acustomer-supplied encryption key. + * + * After you encrypt a machine image using a customer-supplied key, you must provide the same key + * if you use the machine image later. For example, you must provide the encryption key when you + * create an instance from the encrypted machine image in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the machine image. + * + * If you do not provide an encryption key when creating the machine image, then the machine image + * will be encrypted using an automatically generated key and you do not need to provide a key to + * use the machine image later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey machineImageEncryptionKey; + + /** + * Name of the resource; provided by the client 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; + + /** + * Input only. [Input Only] Additional parameters that are passed in the request, but are not + * persisted in the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private MachineImageParams params; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * Output only. An array of Machine Image specific properties for disks attached to the source + * instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List savedDisks; + + /** + * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. + * Required if the source disk is protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceDiskEncryptionKeys; + + /** + * The source instance used to create the machine image. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstance; + + /** + * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source + * instance related properties. New properties will not be added to this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SourceInstanceProperties sourceInstanceProperties; + + /** + * Output only. [Output Only] The status of the machine image. One of the following + * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The regional or multi-regional Cloud Storage bucket location where themachine image is stored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageLocations; + + /** + * Output only. [Output Only] Total size of the storage used by the machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalStorageBytes; + + /** + * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public MachineImage setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public MachineImage setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Input Only] Whether to attempt an application consistent machine image by informing the OS to + * prepare for the snapshot process. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGuestFlush() { + return guestFlush; + } + + /** + * [Input Only] Whether to attempt an application consistent machine image by informing the OS to + * prepare for the snapshot process. + * @param guestFlush guestFlush or {@code null} for none + */ + public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { + this.guestFlush = guestFlush; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this machine image. The server defines this + * identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this machine image. The server defines this + * identifier. + * @param id id or {@code null} for none + */ + public MachineImage setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * [Output Only] Properties of source instance + * @return value or {@code null} for none + */ + public InstanceProperties getInstanceProperties() { + return instanceProperties; + } + + /** + * [Output Only] Properties of source instance + * @param instanceProperties instanceProperties or {@code null} for none + */ + public MachineImage setInstanceProperties(InstanceProperties instanceProperties) { + this.instanceProperties = instanceProperties; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine + * image. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine + * image. + * @param kind kind or {@code null} for none + */ + public MachineImage setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this machine image, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the machine image. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this machine image, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the machine image. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this machine image, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the machine image. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public MachineImage setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this machine image, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the machine image. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public MachineImage encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this machine image. These can be later modified by the setLabels method. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this machine image. These can be later modified by the setLabels method. + * @param labels labels or {@code null} for none + */ + public MachineImage setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Encrypts the machine image using acustomer-supplied encryption key. + * + * After you encrypt a machine image using a customer-supplied key, you must provide the same key + * if you use the machine image later. For example, you must provide the encryption key when you + * create an instance from the encrypted machine image in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the machine image. + * + * If you do not provide an encryption key when creating the machine image, then the machine image + * will be encrypted using an automatically generated key and you do not need to provide a key to + * use the machine image later. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getMachineImageEncryptionKey() { + return machineImageEncryptionKey; + } + + /** + * Encrypts the machine image using acustomer-supplied encryption key. + * + * After you encrypt a machine image using a customer-supplied key, you must provide the same key + * if you use the machine image later. For example, you must provide the encryption key when you + * create an instance from the encrypted machine image in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the machine image. + * + * If you do not provide an encryption key when creating the machine image, then the machine image + * will be encrypted using an automatically generated key and you do not need to provide a key to + * use the machine image later. + * @param machineImageEncryptionKey machineImageEncryptionKey or {@code null} for none + */ + public MachineImage setMachineImageEncryptionKey(CustomerEncryptionKey machineImageEncryptionKey) { + this.machineImageEncryptionKey = machineImageEncryptionKey; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 MachineImage setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional parameters that are passed in the request, but are not + * persisted in the resource. + * @return value or {@code null} for none + */ + public MachineImageParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional parameters that are passed in the request, but are not + * persisted in the resource. + * @param params params or {@code null} for none + */ + public MachineImage setParams(MachineImageParams params) { + this.params = params; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * Output only. An array of Machine Image specific properties for disks attached to the source + * instance + * @return value or {@code null} for none + */ + public java.util.List getSavedDisks() { + return savedDisks; + } + + /** + * Output only. An array of Machine Image specific properties for disks attached to the source + * instance + * @param savedDisks savedDisks or {@code null} for none + */ + public MachineImage setSavedDisks(java.util.List savedDisks) { + this.savedDisks = savedDisks; + return this; + } + + /** + * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * @param selfLink selfLink or {@code null} for none + */ + public MachineImage setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. + * Required if the source disk is protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public java.util.List getSourceDiskEncryptionKeys() { + return sourceDiskEncryptionKeys; + } + + /** + * [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. + * Required if the source disk is protected by a customer-supplied encryption key. + * @param sourceDiskEncryptionKeys sourceDiskEncryptionKeys or {@code null} for none + */ + public MachineImage setSourceDiskEncryptionKeys(java.util.List sourceDiskEncryptionKeys) { + this.sourceDiskEncryptionKeys = sourceDiskEncryptionKeys; + return this; + } + + /** + * The source instance used to create the machine image. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstance() { + return sourceInstance; + } + + /** + * The source instance used to create the machine image. You can provide this as a partial or full + * URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance + * @param sourceInstance sourceInstance or {@code null} for none + */ + public MachineImage setSourceInstance(java.lang.String sourceInstance) { + this.sourceInstance = sourceInstance; + return this; + } + + /** + * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source + * instance related properties. New properties will not be added to this field. + * @return value or {@code null} for none + */ + public SourceInstanceProperties getSourceInstanceProperties() { + return sourceInstanceProperties; + } + + /** + * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source + * instance related properties. New properties will not be added to this field. + * @param sourceInstanceProperties sourceInstanceProperties or {@code null} for none + */ + public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceInstanceProperties) { + this.sourceInstanceProperties = sourceInstanceProperties; + return this; + } + + /** + * Output only. [Output Only] The status of the machine image. One of the following + * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the machine image. One of the following + * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * @param status status or {@code null} for none + */ + public MachineImage setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The regional or multi-regional Cloud Storage bucket location where themachine image is stored. + * @return value or {@code null} for none + */ + public java.util.List getStorageLocations() { + return storageLocations; + } + + /** + * The regional or multi-regional Cloud Storage bucket location where themachine image is stored. + * @param storageLocations storageLocations or {@code null} for none + */ + public MachineImage setStorageLocations(java.util.List storageLocations) { + this.storageLocations = storageLocations; + return this; + } + + /** + * Output only. [Output Only] Total size of the storage used by the machine image. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalStorageBytes() { + return totalStorageBytes; + } + + /** + * Output only. [Output Only] Total size of the storage used by the machine image. + * @param totalStorageBytes totalStorageBytes or {@code null} for none + */ + public MachineImage setTotalStorageBytes(java.lang.Long totalStorageBytes) { + this.totalStorageBytes = totalStorageBytes; + return this; + } + + @Override + public MachineImage set(String fieldName, Object value) { + return (MachineImage) super.set(fieldName, value); + } + + @Override + public MachineImage clone() { + return (MachineImage) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageList.java new file mode 100644 index 00000000000..ad07fd63069 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of machine images. + * + *

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 MachineImageList extends com.google.api.client.json.GenericJson { + + /** + * [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 MachineImage 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 MachineImage 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(MachineImage.class); + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse + * for machine image lists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 MachineImageList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of MachineImage resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of MachineImage resources. + * @param items items or {@code null} for none + */ + public MachineImageList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse + * for machine image lists. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse + * for machine image lists. + * @param kind kind or {@code null} for none + */ + public MachineImageList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public MachineImageList 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 MachineImageList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 MachineImageList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public MachineImageList set(String fieldName, Object value) { + return (MachineImageList) super.set(fieldName, value); + } + + @Override + public MachineImageList clone() { + return (MachineImageList) 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 MachineImageListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageParams.java new file mode 100644 index 00000000000..1a76348a584 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineImageParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Machine Image parameters + * + *

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 MachineImageParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public MachineImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public MachineImageParams set(String fieldName, Object value) { + return (MachineImageParams) super.set(fieldName, value); + } + + @Override + public MachineImageParams clone() { + return (MachineImageParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineType.java new file mode 100644 index 00000000000..2644394df67 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -0,0 +1,533 @@ +/* + * 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 Machine Type resource. + * + * You can use specific machine types for your VM instances based on performance and pricing + * requirements. For more information, readMachine Types. + * + *

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 MachineType extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of accelerator configurations assigned to this machine type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accelerators; + + static { + // hack to force ProGuard to consider Accelerators 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(Accelerators.class); + } + + /** + * [Output Only] The architecture of the machine type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * [Output Only] The configuration of bundled local SSD for the machine type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BundledLocalSsds bundledLocalSsds; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] The deprecation status associated with this machine type. Only applicable if the + * machine type is unavailable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * [Output Only] An optional textual description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] The number of virtual CPUs that are available to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer guestCpus; + + /** + * [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; + + /** + * [Deprecated] This property is deprecated and will never be populated with any relevant values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer imageSpaceGb; + + /** + * [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine types for more + * information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isSharedCpu; + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine + * types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Maximum persistent disks allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maximumPersistentDisks; + + /** + * [Output Only] Maximum total persistent disks size (GB) allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maximumPersistentDisksSizeGb; + + /** + * [Output Only] The amount of physical memory available to the instance, defined in MB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer memoryMb; + + /** + * [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [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] The name of the zone where the machine type resides, such as us-central1-a. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] A list of accelerator configurations assigned to this machine type. + * @return value or {@code null} for none + */ + public java.util.List getAccelerators() { + return accelerators; + } + + /** + * [Output Only] A list of accelerator configurations assigned to this machine type. + * @param accelerators accelerators or {@code null} for none + */ + public MachineType setAccelerators(java.util.List accelerators) { + this.accelerators = accelerators; + return this; + } + + /** + * [Output Only] The architecture of the machine type. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * [Output Only] The architecture of the machine type. + * @param architecture architecture or {@code null} for none + */ + public MachineType setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * [Output Only] The configuration of bundled local SSD for the machine type. + * @return value or {@code null} for none + */ + public BundledLocalSsds getBundledLocalSsds() { + return bundledLocalSsds; + } + + /** + * [Output Only] The configuration of bundled local SSD for the machine type. + * @param bundledLocalSsds bundledLocalSsds or {@code null} for none + */ + public MachineType setBundledLocalSsds(BundledLocalSsds bundledLocalSsds) { + this.bundledLocalSsds = bundledLocalSsds; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public MachineType setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] The deprecation status associated with this machine type. Only applicable if the + * machine type is unavailable. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * [Output Only] The deprecation status associated with this machine type. Only applicable if the + * machine type is unavailable. + * @param deprecated deprecated or {@code null} for none + */ + public MachineType setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * [Output Only] An optional textual description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] An optional textual description of the resource. + * @param description description or {@code null} for none + */ + public MachineType setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] The number of virtual CPUs that are available to the instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getGuestCpus() { + return guestCpus; + } + + /** + * [Output Only] The number of virtual CPUs that are available to the instance. + * @param guestCpus guestCpus or {@code null} for none + */ + public MachineType setGuestCpus(java.lang.Integer guestCpus) { + this.guestCpus = guestCpus; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public MachineType setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * [Deprecated] This property is deprecated and will never be populated with any relevant values. + * @return value or {@code null} for none + */ + public java.lang.Integer getImageSpaceGb() { + return imageSpaceGb; + } + + /** + * [Deprecated] This property is deprecated and will never be populated with any relevant values. + * @param imageSpaceGb imageSpaceGb or {@code null} for none + */ + public MachineType setImageSpaceGb(java.lang.Integer imageSpaceGb) { + this.imageSpaceGb = imageSpaceGb; + return this; + } + + /** + * [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine types for more + * information. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsSharedCpu() { + return isSharedCpu; + } + + /** + * [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine types for more + * information. + * @param isSharedCpu isSharedCpu or {@code null} for none + */ + public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { + this.isSharedCpu = isSharedCpu; + return this; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine + * types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine + * types. + * @param kind kind or {@code null} for none + */ + public MachineType setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Maximum persistent disks allowed. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaximumPersistentDisks() { + return maximumPersistentDisks; + } + + /** + * [Output Only] Maximum persistent disks allowed. + * @param maximumPersistentDisks maximumPersistentDisks or {@code null} for none + */ + public MachineType setMaximumPersistentDisks(java.lang.Integer maximumPersistentDisks) { + this.maximumPersistentDisks = maximumPersistentDisks; + return this; + } + + /** + * [Output Only] Maximum total persistent disks size (GB) allowed. + * @return value or {@code null} for none + */ + public java.lang.Long getMaximumPersistentDisksSizeGb() { + return maximumPersistentDisksSizeGb; + } + + /** + * [Output Only] Maximum total persistent disks size (GB) allowed. + * @param maximumPersistentDisksSizeGb maximumPersistentDisksSizeGb or {@code null} for none + */ + public MachineType setMaximumPersistentDisksSizeGb(java.lang.Long maximumPersistentDisksSizeGb) { + this.maximumPersistentDisksSizeGb = maximumPersistentDisksSizeGb; + return this; + } + + /** + * [Output Only] The amount of physical memory available to the instance, defined in MB. + * @return value or {@code null} for none + */ + public java.lang.Integer getMemoryMb() { + return memoryMb; + } + + /** + * [Output Only] The amount of physical memory available to the instance, defined in MB. + * @param memoryMb memoryMb or {@code null} for none + */ + public MachineType setMemoryMb(java.lang.Integer memoryMb) { + this.memoryMb = memoryMb; + return this; + } + + /** + * [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public MachineType setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public MachineType setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] The name of the zone where the machine type resides, such as us-central1-a. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The name of the zone where the machine type resides, such as us-central1-a. + * @param zone zone or {@code null} for none + */ + public MachineType setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public MachineType set(String fieldName, Object value) { + return (MachineType) super.set(fieldName, value); + } + + @Override + public MachineType clone() { + return (MachineType) super.clone(); + } + + /** + * Model definition for MachineTypeAccelerators. + */ + public static final class Accelerators extends com.google.api.client.json.GenericJson { + + /** + * Number of accelerator cards exposed to the guest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer guestAcceleratorCount; + + /** + * The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String guestAcceleratorType; + + /** + * Number of accelerator cards exposed to the guest. + * @return value or {@code null} for none + */ + public java.lang.Integer getGuestAcceleratorCount() { + return guestAcceleratorCount; + } + + /** + * Number of accelerator cards exposed to the guest. + * @param guestAcceleratorCount guestAcceleratorCount or {@code null} for none + */ + public Accelerators setGuestAcceleratorCount(java.lang.Integer guestAcceleratorCount) { + this.guestAcceleratorCount = guestAcceleratorCount; + return this; + } + + /** + * The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. + * @return value or {@code null} for none + */ + public java.lang.String getGuestAcceleratorType() { + return guestAcceleratorType; + } + + /** + * The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. + * @param guestAcceleratorType guestAcceleratorType or {@code null} for none + */ + public Accelerators setGuestAcceleratorType(java.lang.String guestAcceleratorType) { + this.guestAcceleratorType = guestAcceleratorType; + return this; + } + + @Override + public Accelerators set(String fieldName, Object value) { + return (Accelerators) super.set(fieldName, value); + } + + @Override + public Accelerators clone() { + return (Accelerators) super.clone(); + } + + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java new file mode 100644 index 00000000000..5822e8071b5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 MachineTypeAggregatedList. + * + *

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 MachineTypeAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 MachineTypesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for + * aggregated lists of machine types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 MachineTypeAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of MachineTypesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of MachineTypesScopedList resources. + * @param items items or {@code null} for none + */ + public MachineTypeAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for + * aggregated lists of machine types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for + * aggregated lists of machine types. + * @param kind kind or {@code null} for none + */ + public MachineTypeAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public MachineTypeAggregatedList 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 MachineTypeAggregatedList 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 MachineTypeAggregatedList 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 MachineTypeAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public MachineTypeAggregatedList set(String fieldName, Object value) { + return (MachineTypeAggregatedList) super.set(fieldName, value); + } + + @Override + public MachineTypeAggregatedList clone() { + return (MachineTypeAggregatedList) 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 MachineTypeAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeList.java new file mode 100644 index 00000000000..af96910a4a6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of machine types. + * + *

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 MachineTypeList extends com.google.api.client.json.GenericJson { + + /** + * [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 MachineType 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 MachineType 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(MachineType.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of + * machine types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 MachineTypeList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of MachineType resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of MachineType resources. + * @param items items or {@code null} for none + */ + public MachineTypeList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of + * machine types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of + * machine types. + * @param kind kind or {@code null} for none + */ + public MachineTypeList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public MachineTypeList 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 MachineTypeList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 MachineTypeList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public MachineTypeList set(String fieldName, Object value) { + return (MachineTypeList) super.set(fieldName, value); + } + + @Override + public MachineTypeList clone() { + return (MachineTypeList) 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 MachineTypeListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/MachineTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypesScopedList.java new file mode 100644 index 00000000000..6244b53bf41 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MachineTypesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 MachineTypesScopedList. + * + *

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 MachineTypesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of machine types contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List machineTypes; + + static { + // hack to force ProGuard to consider MachineType 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(MachineType.class); + } + + /** + * [Output Only] An informational warning that appears when the machine types list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of machine types contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getMachineTypes() { + return machineTypes; + } + + /** + * [Output Only] A list of machine types contained in this scope. + * @param machineTypes machineTypes or {@code null} for none + */ + public MachineTypesScopedList setMachineTypes(java.util.List machineTypes) { + this.machineTypes = machineTypes; + return this; + } + + /** + * [Output Only] An informational warning that appears when the machine types list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] An informational warning that appears when the machine types list is empty. + * @param warning warning or {@code null} for none + */ + public MachineTypesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public MachineTypesScopedList set(String fieldName, Object value) { + return (MachineTypesScopedList) super.set(fieldName, value); + } + + @Override + public MachineTypesScopedList clone() { + return (MachineTypesScopedList) super.clone(); + } + + /** + * [Output Only] An informational warning that appears when the machine types list is empty. + */ + 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 MachineTypesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstance.java new file mode 100644 index 00000000000..fdf048a8e9d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -0,0 +1,447 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A Managed Instance 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 ManagedInstance extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The current action that the managed instance group has scheduled for + * the instance. Possible values: - NONE The instance is running, and the managed + * instance group does not have any scheduled actions for this instance. - CREATING The managed + * instance group is creating this instance. If the group fails to create this instance, it + * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance + * group is attempting to create this instance only once. If the group fails to create this + * instance, it does not try again and the group'stargetSize value is decreased instead. - + * RECREATING The managed instance group is recreating this instance. - DELETING The managed + * instance group is permanently deleting this instance. - ABANDONING The managed instance + * group is abandoning this instance. The instance will be removed from the instance group + * and from any target pools that are associated with this group. - RESTARTING The managed + * instance group is restarting the instance. - REFRESHING The managed instance group is + * applying configuration changes to the instance without stopping it. For example, the + * group can update the target pool list for an instance without stopping that instance. - + * VERIFYING The managed instance group has created the instance and it is in the process of + * being verified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentAction; + + /** + * Output only. [Output only] The unique identifier for this resource. This field is empty when + * instance does not exist. + * 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] The URL of the instance. The URL can exist even if the instance has + * not yet been created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Output only. [Output Only] Health state of the instance per health-check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceHealth; + + /** + * Output only. [Output Only] The status of the instance. This field is empty when the instance + * does not exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceStatus; + + /** + * Output only. [Output Only] Information about the last attempt to create or delete the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ManagedInstanceLastAttempt lastAttempt; + + /** + * Output only. [Output Only] The name of the instance. The name always exists even if the + * instance has not yet been created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] Preserved state applied from per-instance config for this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreservedState preservedStateFromConfig; + + /** + * Output only. [Output Only] Preserved state generated based on stateful policy for this + * instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreservedState preservedStateFromPolicy; + + /** + * Output only. [Output Only] Instance properties selected for this instance resulting from + * InstanceFlexibilityPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; + + /** + * Output only. Information about the termination timestamp of the instance, if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ManagedInstanceScheduling scheduling; + + /** + * Output only. Specifies the graceful shutdown details if the instance is in `PENDING_STOP` state + * or there is a programmed stop scheduled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ManagedInstanceShutdownDetails shutdownDetails; + + /** + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetStatus; + + /** + * Output only. [Output Only] Intended version of this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ManagedInstanceVersion version; + + /** + * Output only. [Output Only] The current action that the managed instance group has scheduled for + * the instance. Possible values: - NONE The instance is running, and the managed + * instance group does not have any scheduled actions for this instance. - CREATING The managed + * instance group is creating this instance. If the group fails to create this instance, it + * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance + * group is attempting to create this instance only once. If the group fails to create this + * instance, it does not try again and the group'stargetSize value is decreased instead. - + * RECREATING The managed instance group is recreating this instance. - DELETING The managed + * instance group is permanently deleting this instance. - ABANDONING The managed instance + * group is abandoning this instance. The instance will be removed from the instance group + * and from any target pools that are associated with this group. - RESTARTING The managed + * instance group is restarting the instance. - REFRESHING The managed instance group is + * applying configuration changes to the instance without stopping it. For example, the + * group can update the target pool list for an instance without stopping that instance. - + * VERIFYING The managed instance group has created the instance and it is in the process of + * being verified. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentAction() { + return currentAction; + } + + /** + * Output only. [Output Only] The current action that the managed instance group has scheduled for + * the instance. Possible values: - NONE The instance is running, and the managed + * instance group does not have any scheduled actions for this instance. - CREATING The managed + * instance group is creating this instance. If the group fails to create this instance, it + * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance + * group is attempting to create this instance only once. If the group fails to create this + * instance, it does not try again and the group'stargetSize value is decreased instead. - + * RECREATING The managed instance group is recreating this instance. - DELETING The managed + * instance group is permanently deleting this instance. - ABANDONING The managed instance + * group is abandoning this instance. The instance will be removed from the instance group + * and from any target pools that are associated with this group. - RESTARTING The managed + * instance group is restarting the instance. - REFRESHING The managed instance group is + * applying configuration changes to the instance without stopping it. For example, the + * group can update the target pool list for an instance without stopping that instance. - + * VERIFYING The managed instance group has created the instance and it is in the process of + * being verified. + * @param currentAction currentAction or {@code null} for none + */ + public ManagedInstance setCurrentAction(java.lang.String currentAction) { + this.currentAction = currentAction; + return this; + } + + /** + * Output only. [Output only] The unique identifier for this resource. This field is empty when + * instance does not exist. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output only] The unique identifier for this resource. This field is empty when + * instance does not exist. + * @param id id or {@code null} for none + */ + public ManagedInstance setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has + * not yet been created. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has + * not yet been created. + * @param instance instance or {@code null} for none + */ + public ManagedInstance setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Output only. [Output Only] Health state of the instance per health-check. + * @return value or {@code null} for none + */ + public java.util.List getInstanceHealth() { + return instanceHealth; + } + + /** + * Output only. [Output Only] Health state of the instance per health-check. + * @param instanceHealth instanceHealth or {@code null} for none + */ + public ManagedInstance setInstanceHealth(java.util.List instanceHealth) { + this.instanceHealth = instanceHealth; + return this; + } + + /** + * Output only. [Output Only] The status of the instance. This field is empty when the instance + * does not exist. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceStatus() { + return instanceStatus; + } + + /** + * Output only. [Output Only] The status of the instance. This field is empty when the instance + * does not exist. + * @param instanceStatus instanceStatus or {@code null} for none + */ + public ManagedInstance setInstanceStatus(java.lang.String instanceStatus) { + this.instanceStatus = instanceStatus; + return this; + } + + /** + * Output only. [Output Only] Information about the last attempt to create or delete the instance. + * @return value or {@code null} for none + */ + public ManagedInstanceLastAttempt getLastAttempt() { + return lastAttempt; + } + + /** + * Output only. [Output Only] Information about the last attempt to create or delete the instance. + * @param lastAttempt lastAttempt or {@code null} for none + */ + public ManagedInstance setLastAttempt(ManagedInstanceLastAttempt lastAttempt) { + this.lastAttempt = lastAttempt; + return this; + } + + /** + * Output only. [Output Only] The name of the instance. The name always exists even if the + * instance has not yet been created. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the instance. The name always exists even if the + * instance has not yet been created. + * @param name name or {@code null} for none + */ + public ManagedInstance setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Preserved state applied from per-instance config for this instance. + * @return value or {@code null} for none + */ + public PreservedState getPreservedStateFromConfig() { + return preservedStateFromConfig; + } + + /** + * Output only. [Output Only] Preserved state applied from per-instance config for this instance. + * @param preservedStateFromConfig preservedStateFromConfig or {@code null} for none + */ + public ManagedInstance setPreservedStateFromConfig(PreservedState preservedStateFromConfig) { + this.preservedStateFromConfig = preservedStateFromConfig; + return this; + } + + /** + * Output only. [Output Only] Preserved state generated based on stateful policy for this + * instance. + * @return value or {@code null} for none + */ + public PreservedState getPreservedStateFromPolicy() { + return preservedStateFromPolicy; + } + + /** + * Output only. [Output Only] Preserved state generated based on stateful policy for this + * instance. + * @param preservedStateFromPolicy preservedStateFromPolicy or {@code null} for none + */ + public ManagedInstance setPreservedStateFromPolicy(PreservedState preservedStateFromPolicy) { + this.preservedStateFromPolicy = preservedStateFromPolicy; + return this; + } + + /** + * Output only. [Output Only] Instance properties selected for this instance resulting from + * InstanceFlexibilityPolicy. + * @return value or {@code null} for none + */ + public ManagedInstancePropertiesFromFlexibilityPolicy getPropertiesFromFlexibilityPolicy() { + return propertiesFromFlexibilityPolicy; + } + + /** + * Output only. [Output Only] Instance properties selected for this instance resulting from + * InstanceFlexibilityPolicy. + * @param propertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy or {@code null} for none + */ + public ManagedInstance setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy) { + this.propertiesFromFlexibilityPolicy = propertiesFromFlexibilityPolicy; + return this; + } + + /** + * Output only. Information about the termination timestamp of the instance, if applicable. + * @return value or {@code null} for none + */ + public ManagedInstanceScheduling getScheduling() { + return scheduling; + } + + /** + * Output only. Information about the termination timestamp of the instance, if applicable. + * @param scheduling scheduling or {@code null} for none + */ + public ManagedInstance setScheduling(ManagedInstanceScheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + /** + * Output only. Specifies the graceful shutdown details if the instance is in `PENDING_STOP` state + * or there is a programmed stop scheduled. + * @return value or {@code null} for none + */ + public ManagedInstanceShutdownDetails getShutdownDetails() { + return shutdownDetails; + } + + /** + * Output only. Specifies the graceful shutdown details if the instance is in `PENDING_STOP` state + * or there is a programmed stop scheduled. + * @param shutdownDetails shutdownDetails or {@code null} for none + */ + public ManagedInstance setShutdownDetails(ManagedInstanceShutdownDetails shutdownDetails) { + this.shutdownDetails = shutdownDetails; + return this; + } + + /** + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. + * @return value or {@code null} for none + */ + public java.lang.String getTargetStatus() { + return targetStatus; + } + + /** + * Output only. The eventual status of the instance. The instance group manager will not be + * identified as stable till each managed instance reaches its targetStatus. + * @param targetStatus targetStatus or {@code null} for none + */ + public ManagedInstance setTargetStatus(java.lang.String targetStatus) { + this.targetStatus = targetStatus; + return this; + } + + /** + * Output only. [Output Only] Intended version of this instance. + * @return value or {@code null} for none + */ + public ManagedInstanceVersion getVersion() { + return version; + } + + /** + * Output only. [Output Only] Intended version of this instance. + * @param version version or {@code null} for none + */ + public ManagedInstance setVersion(ManagedInstanceVersion version) { + this.version = version; + return this; + } + + @Override + public ManagedInstance set(String fieldName, Object value) { + return (ManagedInstance) super.set(fieldName, value); + } + + @Override + public ManagedInstance clone() { + return (ManagedInstance) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceInstanceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceInstanceHealth.java new file mode 100644 index 00000000000..05745266da2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceInstanceHealth.java @@ -0,0 +1,93 @@ +/* + * 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 ManagedInstanceInstanceHealth. + * + *

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 ManagedInstanceInstanceHealth extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The current detailed instance health state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detailedHealthState; + + /** + * Output only. [Output Only] The URL for the health check that verifies whether the instance is + * healthy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** + * Output only. [Output Only] The current detailed instance health state. + * @return value or {@code null} for none + */ + public java.lang.String getDetailedHealthState() { + return detailedHealthState; + } + + /** + * Output only. [Output Only] The current detailed instance health state. + * @param detailedHealthState detailedHealthState or {@code null} for none + */ + public ManagedInstanceInstanceHealth setDetailedHealthState(java.lang.String detailedHealthState) { + this.detailedHealthState = detailedHealthState; + return this; + } + + /** + * Output only. [Output Only] The URL for the health check that verifies whether the instance is + * healthy. + * @return value or {@code null} for none + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** + * Output only. [Output Only] The URL for the health check that verifies whether the instance is + * healthy. + * @param healthCheck healthCheck or {@code null} for none + */ + public ManagedInstanceInstanceHealth setHealthCheck(java.lang.String healthCheck) { + this.healthCheck = healthCheck; + return this; + } + + @Override + public ManagedInstanceInstanceHealth set(String fieldName, Object value) { + return (ManagedInstanceInstanceHealth) super.set(fieldName, value); + } + + @Override + public ManagedInstanceInstanceHealth clone() { + return (ManagedInstanceInstanceHealth) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceLastAttempt.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceLastAttempt.java new file mode 100644 index 00000000000..ce78c407bb5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceLastAttempt.java @@ -0,0 +1,384 @@ +/* + * 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 ManagedInstanceLastAttempt. + * + *

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 ManagedInstanceLastAttempt extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Encountered errors during the last attempt to create or delete the + * instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Errors errors; + + /** + * Output only. Show timestamp only if there is an error. The field value should match + * corresponding timestamp in listErrors.RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestamp; + + /** + * Output only. [Output Only] Encountered errors during the last attempt to create or delete the + * instance. + * @return value or {@code null} for none + */ + public Errors getErrors() { + return errors; + } + + /** + * Output only. [Output Only] Encountered errors during the last attempt to create or delete the + * instance. + * @param errors errors or {@code null} for none + */ + public ManagedInstanceLastAttempt setErrors(Errors errors) { + this.errors = errors; + return this; + } + + /** + * Output only. Show timestamp only if there is an error. The field value should match + * corresponding timestamp in listErrors.RFC3339 text format. + * @return value or {@code null} for none + */ + public String getTimestamp() { + return timestamp; + } + + /** + * Output only. Show timestamp only if there is an error. The field value should match + * corresponding timestamp in listErrors.RFC3339 text format. + * @param timestamp timestamp or {@code null} for none + */ + public ManagedInstanceLastAttempt setTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + @Override + public ManagedInstanceLastAttempt set(String fieldName, Object value) { + return (ManagedInstanceLastAttempt) super.set(fieldName, value); + } + + @Override + public ManagedInstanceLastAttempt clone() { + return (ManagedInstanceLastAttempt) super.clone(); + } + + /** + * Output only. [Output Only] Encountered errors during the last attempt to create or delete the + * instance. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider ManagedInstanceLastAttemptErrorsErrors 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(ManagedInstanceLastAttemptErrorsErrors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Errors setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class ManagedInstanceLastAttemptErrorsErrors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public ManagedInstanceLastAttemptErrorsErrors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public ManagedInstanceLastAttemptErrorsErrors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public ManagedInstanceLastAttemptErrorsErrors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public ManagedInstanceLastAttemptErrorsErrors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public ManagedInstanceLastAttemptErrorsErrors set(String fieldName, Object value) { + return (ManagedInstanceLastAttemptErrorsErrors) super.set(fieldName, value); + } + + @Override + public ManagedInstanceLastAttemptErrorsErrors clone() { + return (ManagedInstanceLastAttemptErrorsErrors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java new file mode 100644 index 00000000000..1729099466c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java @@ -0,0 +1,120 @@ +/* + * 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 ManagedInstancePropertiesFromFlexibilityPolicy. + * + *

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 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}. + */ + @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 + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * Output only. The machine type to be used for this instance. + * @param machineType machineType or {@code null} for none + */ + public ManagedInstancePropertiesFromFlexibilityPolicy setMachineType(java.lang.String machineType) { + this.machineType = machineType; + 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); + } + + @Override + public ManagedInstancePropertiesFromFlexibilityPolicy clone() { + return (ManagedInstancePropertiesFromFlexibilityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java new file mode 100644 index 00000000000..40f7e5a3f60 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceScheduling.java @@ -0,0 +1,96 @@ +/* + * 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 ManagedInstanceScheduling. + * + *

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 ManagedInstanceScheduling extends com.google.api.client.json.GenericJson { + + /** + * Output only. The timestamp at which the underlying instance will be triggered for graceful + * shutdown if it is configured. This is in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String gracefulShutdownTimestamp; + + /** + * Output only. The timestamp at which the managed instance will be terminated. This is in RFC3339 + * text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String terminationTimestamp; + + /** + * Output only. The timestamp at which the underlying instance will be triggered for graceful + * shutdown if it is configured. This is in RFC3339 text format. + * @return value or {@code null} for none + */ + public String getGracefulShutdownTimestamp() { + return gracefulShutdownTimestamp; + } + + /** + * Output only. The timestamp at which the underlying instance will be triggered for graceful + * shutdown if it is configured. This is in RFC3339 text format. + * @param gracefulShutdownTimestamp gracefulShutdownTimestamp or {@code null} for none + */ + public ManagedInstanceScheduling setGracefulShutdownTimestamp(String gracefulShutdownTimestamp) { + this.gracefulShutdownTimestamp = gracefulShutdownTimestamp; + return this; + } + + /** + * Output only. The timestamp at which the managed instance will be terminated. This is in RFC3339 + * text format. + * @return value or {@code null} for none + */ + public String getTerminationTimestamp() { + return terminationTimestamp; + } + + /** + * Output only. The timestamp at which the managed instance will be terminated. This is in RFC3339 + * text format. + * @param terminationTimestamp terminationTimestamp or {@code null} for none + */ + public ManagedInstanceScheduling setTerminationTimestamp(String terminationTimestamp) { + this.terminationTimestamp = terminationTimestamp; + return this; + } + + @Override + public ManagedInstanceScheduling set(String fieldName, Object value) { + return (ManagedInstanceScheduling) super.set(fieldName, value); + } + + @Override + public ManagedInstanceScheduling clone() { + return (ManagedInstanceScheduling) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceShutdownDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceShutdownDetails.java new file mode 100644 index 00000000000..91083f684f3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceShutdownDetails.java @@ -0,0 +1,96 @@ +/* + * 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 ManagedInstanceShutdownDetails. + * + *

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 ManagedInstanceShutdownDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. The duration for graceful shutdown. Only applicable when the instance is in + * `PENDING_STOP` state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxDuration; + + /** + * Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of instance in + * RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String requestTimestamp; + + /** + * Output only. The duration for graceful shutdown. Only applicable when the instance is in + * `PENDING_STOP` state. + * @return value or {@code null} for none + */ + public Duration getMaxDuration() { + return maxDuration; + } + + /** + * Output only. The duration for graceful shutdown. Only applicable when the instance is in + * `PENDING_STOP` state. + * @param maxDuration maxDuration or {@code null} for none + */ + public ManagedInstanceShutdownDetails setMaxDuration(Duration maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of instance in + * RFC3339 text format. + * @return value or {@code null} for none + */ + public String getRequestTimestamp() { + return requestTimestamp; + } + + /** + * Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of instance in + * RFC3339 text format. + * @param requestTimestamp requestTimestamp or {@code null} for none + */ + public ManagedInstanceShutdownDetails setRequestTimestamp(String requestTimestamp) { + this.requestTimestamp = requestTimestamp; + return this; + } + + @Override + public ManagedInstanceShutdownDetails set(String fieldName, Object value) { + return (ManagedInstanceShutdownDetails) super.set(fieldName, value); + } + + @Override + public ManagedInstanceShutdownDetails clone() { + return (ManagedInstanceShutdownDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceVersion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceVersion.java new file mode 100644 index 00000000000..77ab64b5a6e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedInstanceVersion.java @@ -0,0 +1,93 @@ +/* + * 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 ManagedInstanceVersion. + * + *

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 ManagedInstanceVersion extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The intended template of the instance. This field is empty when + * current_action is one of { DELETING, ABANDONING }. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** + * Output only. [Output Only] Name of the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The intended template of the instance. This field is empty when + * current_action is one of { DELETING, ABANDONING }. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** + * Output only. [Output Only] The intended template of the instance. This field is empty when + * current_action is one of { DELETING, ABANDONING }. + * @param instanceTemplate instanceTemplate or {@code null} for none + */ + public ManagedInstanceVersion setInstanceTemplate(java.lang.String instanceTemplate) { + this.instanceTemplate = instanceTemplate; + return this; + } + + /** + * Output only. [Output Only] Name of the version. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] Name of the version. + * @param name name or {@code null} for none + */ + public ManagedInstanceVersion setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public ManagedInstanceVersion set(String fieldName, Object value) { + return (ManagedInstanceVersion) super.set(fieldName, value); + } + + @Override + public ManagedInstanceVersion clone() { + return (ManagedInstanceVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ManagedRuleset.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java b/clients/google-api-services-compute/preview/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/preview/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/preview/2.0.0/com/google/api/services/compute/model/Metadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Metadata.java new file mode 100644 index 00000000000..b6a2455edf9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Metadata.java @@ -0,0 +1,258 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A metadata key/value entry. + * + *

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 Metadata extends com.google.api.client.json.GenericJson { + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider Items 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(Items.class); + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public Metadata setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve the resource. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Metadata encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. + * @param items items or {@code null} for none + */ + public Metadata setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * @param kind kind or {@code null} for none + */ + public Metadata setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public Metadata set(String fieldName, Object value) { + return (Metadata) super.set(fieldName, value); + } + + @Override + public Metadata clone() { + return (Metadata) super.clone(); + } + + /** + * Metadata + */ + public static final class Items extends com.google.api.client.json.GenericJson { + + /** + * Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be + * less than 128 bytes in length. This is reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the + * project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Value for the metadata entry. These are free-form strings, and only have meaning as interpreted + * by the image running in the instance. The only restriction placed on values is that their size + * must be less than or equal to 262144 bytes (256 KiB). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be + * less than 128 bytes in length. This is reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the + * project. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be + * less than 128 bytes in length. This is reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the + * project. + * @param key key or {@code null} for none + */ + public Items setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Value for the metadata entry. These are free-form strings, and only have meaning as interpreted + * by the image running in the instance. The only restriction placed on values is that their size + * must be less than or equal to 262144 bytes (256 KiB). + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Value for the metadata entry. These are free-form strings, and only have meaning as interpreted + * by the image running in the instance. The only restriction placed on values is that their size + * must be less than or equal to 262144 bytes (256 KiB). + * @param value value or {@code null} for none + */ + public Items setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Items set(String fieldName, Object value) { + return (Items) super.set(fieldName, value); + } + + @Override + public Items clone() { + return (Items) super.clone(); + } + + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilter.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilter.java new file mode 100644 index 00000000000..b21a7687fe4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilter.java @@ -0,0 +1,126 @@ +/* + * 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; + +/** + * Opaque filter criteria used by load balancers to restrict routing configuration to a limited set + * of load balancing proxies. Proxies and sidecars involved in load balancing would typically + * present metadata to the load balancers that need to match criteria specified here. If a match + * takes place, the relevant configuration is made available to those proxies. + * + * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one + * of thefilterLabels must match the corresponding label provided in the metadata. If its + * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with + * corresponding labels provided in the metadata. + * + * An example for using metadataFilters would be: if load balancing involves Envoys, they receive + * routing configuration when values inmetadataFilters match values supplied in of their XDS + * requests to loadbalancers. + * + *

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 MetadataFilter extends com.google.api.client.json.GenericJson { + + /** + * The list of label value pairs that must match labels in the provided metadata based on + * filterMatchCriteria + * + * This list must not be empty and can have at the most 64 entries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List filterLabels; + + /** + * Specifies how individual filter label matches within the list of filterLabels and contributes + * toward the overall metadataFilter match. + * + * Supported values are: - MATCH_ANY: at least one of the filterLabels must have a + * matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching + * labels in the provided metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filterMatchCriteria; + + /** + * The list of label value pairs that must match labels in the provided metadata based on + * filterMatchCriteria + * + * This list must not be empty and can have at the most 64 entries. + * @return value or {@code null} for none + */ + public java.util.List getFilterLabels() { + return filterLabels; + } + + /** + * The list of label value pairs that must match labels in the provided metadata based on + * filterMatchCriteria + * + * This list must not be empty and can have at the most 64 entries. + * @param filterLabels filterLabels or {@code null} for none + */ + public MetadataFilter setFilterLabels(java.util.List filterLabels) { + this.filterLabels = filterLabels; + return this; + } + + /** + * Specifies how individual filter label matches within the list of filterLabels and contributes + * toward the overall metadataFilter match. + * + * Supported values are: - MATCH_ANY: at least one of the filterLabels must have a + * matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching + * labels in the provided metadata. + * @return value or {@code null} for none + */ + public java.lang.String getFilterMatchCriteria() { + return filterMatchCriteria; + } + + /** + * Specifies how individual filter label matches within the list of filterLabels and contributes + * toward the overall metadataFilter match. + * + * Supported values are: - MATCH_ANY: at least one of the filterLabels must have a + * matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching + * labels in the provided metadata. + * @param filterMatchCriteria filterMatchCriteria or {@code null} for none + */ + public MetadataFilter setFilterMatchCriteria(java.lang.String filterMatchCriteria) { + this.filterMatchCriteria = filterMatchCriteria; + return this; + } + + @Override + public MetadataFilter set(String fieldName, Object value) { + return (MetadataFilter) super.set(fieldName, value); + } + + @Override + public MetadataFilter clone() { + return (MetadataFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilterLabelMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilterLabelMatch.java new file mode 100644 index 00000000000..a1fb8566484 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/MetadataFilterLabelMatch.java @@ -0,0 +1,103 @@ +/* + * 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; + +/** + * MetadataFilter label name value pairs that are expected to match corresponding labels presented + * as metadata to the load balancer. + * + *

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 MetadataFilterLabelMatch extends com.google.api.client.json.GenericJson { + + /** + * Name of metadata label. + * + * The name can have a maximum length of 1024 characters and must be at least 1 character long. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value of the label must match the specified value. + * + * value can have a maximum length of 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Name of metadata label. + * + * The name can have a maximum length of 1024 characters and must be at least 1 character long. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of metadata label. + * + * The name can have a maximum length of 1024 characters and must be at least 1 character long. + * @param name name or {@code null} for none + */ + public MetadataFilterLabelMatch setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The value of the label must match the specified value. + * + * value can have a maximum length of 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * The value of the label must match the specified value. + * + * value can have a maximum length of 1024 characters. + * @param value value or {@code null} for none + */ + public MetadataFilterLabelMatch setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public MetadataFilterLabelMatch set(String fieldName, Object value) { + return (MetadataFilterLabelMatch) super.set(fieldName, value); + } + + @Override + public MetadataFilterLabelMatch clone() { + return (MetadataFilterLabelMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Money.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Money.java new file mode 100644 index 00000000000..fa97437fa48 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Money.java @@ -0,0 +1,126 @@ +/* + * 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 an amount of money with its currency type. + * + *

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 Money extends com.google.api.client.json.GenericJson { + + /** + * The three-letter currency code defined in ISO 4217. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currencyCode; + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long units; + + /** + * The three-letter currency code defined in ISO 4217. + * @return value or {@code null} for none + */ + public java.lang.String getCurrencyCode() { + return currencyCode; + } + + /** + * The three-letter currency code defined in ISO 4217. + * @param currencyCode currencyCode or {@code null} for none + */ + public Money setCurrencyCode(java.lang.String currencyCode) { + this.currencyCode = currencyCode; + return this; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and + * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is + * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be + * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * @param nanos nanos or {@code null} for none + */ + public Money setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @return value or {@code null} for none + */ + public java.lang.Long getUnits() { + return units; + } + + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US + * dollar. + * @param units units or {@code null} for none + */ + public Money setUnits(java.lang.Long units) { + this.units = units; + return this; + } + + @Override + public Money set(String fieldName, Object value) { + return (Money) super.set(fieldName, value); + } + + @Override + public Money clone() { + return (Money) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedPort.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedPort.java new file mode 100644 index 00000000000..7808a909ef1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedPort.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The named port. For example: <"http", 80>. + * + *

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 NamedPort extends com.google.api.client.json.GenericJson { + + /** + * The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The port number, which can be a value between 1 and 65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. + * @param name name or {@code null} for none + */ + public NamedPort setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The port number, which can be a value between 1 and 65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The port number, which can be a value between 1 and 65535. + * @param port port or {@code null} for none + */ + public NamedPort setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + @Override + public NamedPort set(String fieldName, Object value) { + return (NamedPort) super.set(fieldName, value); + } + + @Override + public NamedPort clone() { + return (NamedPort) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedSet.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedSet.java new file mode 100644 index 00000000000..302db93730a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NamedSet.java @@ -0,0 +1,224 @@ +/* + * 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 NamedSet. + * + *

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 NamedSet extends com.google.api.client.json.GenericJson { + + /** + * An optional description of named set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * CEL expressions that are comparable to constructs of this set's type (see Policy Language). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List elements; + + static { + // hack to force ProGuard to consider Expr 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(Expr.class); + } + + /** + * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of + * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the Named Set. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * This set's name, which must be a resource ID segment and unique within all named sets owned by + * the Router. Name should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * This named set's type + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * An optional description of named set. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of named set. + * @param description description or {@code null} for none + */ + public NamedSet setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * CEL expressions that are comparable to constructs of this set's type (see Policy Language). + * @return value or {@code null} for none + */ + public java.util.List getElements() { + return elements; + } + + /** + * CEL expressions that are comparable to constructs of this set's type (see Policy Language). + * @param elements elements or {@code null} for none + */ + public NamedSet setElements(java.util.List elements) { + this.elements = elements; + return this; + } + + /** + * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of + * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the Named Set. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of + * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the Named Set. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of + * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the Named Set. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public NamedSet setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of + * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update the Named Set. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public NamedSet encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * This set's name, which must be a resource ID segment and unique within all named sets owned by + * the Router. Name should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * This set's name, which must be a resource ID segment and unique within all named sets owned by + * the Router. Name should conform to RFC1035. + * @param name name or {@code null} for none + */ + public NamedSet setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * This named set's type + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * This named set's type + * @param type type or {@code null} for none + */ + public NamedSet setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public NamedSet set(String fieldName, Object value) { + return (NamedSet) super.set(fieldName, value); + } + + @Override + public NamedSet clone() { + return (NamedSet) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfo.java new file mode 100644 index 00000000000..ad71f5d0e5a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Contains NAT IP information of a NAT config (i.e. usage status, mode). + * + *

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 NatIpInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of all NAT IPs assigned to this NAT config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natIpInfoMappings; + + /** + * Output only. Name of the NAT config which the NAT IP belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String natName; + + /** + * Output only. A list of all NAT IPs assigned to this NAT config. + * @return value or {@code null} for none + */ + public java.util.List getNatIpInfoMappings() { + return natIpInfoMappings; + } + + /** + * Output only. A list of all NAT IPs assigned to this NAT config. + * @param natIpInfoMappings natIpInfoMappings or {@code null} for none + */ + public NatIpInfo setNatIpInfoMappings(java.util.List natIpInfoMappings) { + this.natIpInfoMappings = natIpInfoMappings; + return this; + } + + /** + * Output only. Name of the NAT config which the NAT IP belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getNatName() { + return natName; + } + + /** + * Output only. Name of the NAT config which the NAT IP belongs to. + * @param natName natName or {@code null} for none + */ + public NatIpInfo setNatName(java.lang.String natName) { + this.natName = natName; + return this; + } + + @Override + public NatIpInfo set(String fieldName, Object value) { + return (NatIpInfo) super.set(fieldName, value); + } + + @Override + public NatIpInfo clone() { + return (NatIpInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java new file mode 100644 index 00000000000..9ca1eff4dd7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Contains information of a NAT IP. + * + *

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 NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { + + /** + * Output only. Specifies whether NAT IP is auto or manual. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Output only. NAT IP address. For example: 203.0.113.11. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String natIp; + + /** + * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String usage; + + /** + * Output only. Specifies whether NAT IP is auto or manual. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * Output only. Specifies whether NAT IP is auto or manual. + * @param mode mode or {@code null} for none + */ + public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * Output only. NAT IP address. For example: 203.0.113.11. + * @return value or {@code null} for none + */ + public java.lang.String getNatIp() { + return natIp; + } + + /** + * Output only. NAT IP address. For example: 203.0.113.11. + * @param natIp natIp or {@code null} for none + */ + public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { + this.natIp = natIp; + return this; + } + + /** + * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * @return value or {@code null} for none + */ + public java.lang.String getUsage() { + return usage; + } + + /** + * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * @param usage usage or {@code null} for none + */ + public NatIpInfoNatIpInfoMapping setUsage(java.lang.String usage) { + this.usage = usage; + return this; + } + + @Override + public NatIpInfoNatIpInfoMapping set(String fieldName, Object value) { + return (NatIpInfoNatIpInfoMapping) super.set(fieldName, value); + } + + @Override + public NatIpInfoNatIpInfoMapping clone() { + return (NatIpInfoNatIpInfoMapping) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoResponse.java new file mode 100644 index 00000000000..45d5d057c2c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NatIpInfoResponse.java @@ -0,0 +1,72 @@ +/* + * 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 NatIpInfoResponse. + * + *

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 NatIpInfoResponse extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of NAT IP information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider NatIpInfo 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(NatIpInfo.class); + } + + /** + * [Output Only] A list of NAT IP information. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * [Output Only] A list of NAT IP information. + * @param result result or {@code null} for none + */ + public NatIpInfoResponse setResult(java.util.List result) { + this.result = result; + return this; + } + + @Override + public NatIpInfoResponse set(String fieldName, Object value) { + return (NatIpInfoResponse) super.set(fieldName, value); + } + + @Override + public NatIpInfoResponse clone() { + return (NatIpInfoResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Network.java new file mode 100644 index 00000000000..b381067197e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Network.java @@ -0,0 +1,612 @@ +/* + * 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 VPC Network resource. + * + * Networks connect resources to each other and to the internet. For more information, readVirtual + * Private Cloud (VPC) Network. + * + *

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 Network extends com.google.api.client.json.GenericJson { + + /** + * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on + * this network. This range is aCIDR specification, for example:192.168.0.0/16. Provided by the + * client when the network is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPv4Range") + private java.lang.String iPv4Range; + + /** + * Must be set to create a VPC network. If not set, a legacy network is created. + * + * When set to true, the VPC network is created in auto mode. When set to false, the VPC network + * is created in custom mode. + * + * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined + * range as described inAuto mode VPC network IP ranges. + * + * For custom mode VPC networks, you can add subnets using the subnetworksinsert method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoCreateSubnetworks; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this field when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google + * defined ULA prefix fd20::/20. . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableUlaInternalIpv6; + + /** + * Output only. [Output Only] URL of the firewall policy the network is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** + * [Output Only] The gateway address for default routing out of the network, selected by Google + * Cloud. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gatewayIPv4; + + /** + * 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; + + /** + * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the + * google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be + * within the fd20::/20. Operation will fail if the speficied /48 is already in used by another + * resource. If the field is not speficied, then a /48 range will be randomly allocated from + * fd20::/20 and returned via this field. . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String internalIpv6Range; + + /** + * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum + * value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or + * 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer mtu; + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or + * BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkFirewallPolicyEnforcementOrder; + + /** + * A full or partial URL of the network profile to apply to this network. This field can be set + * only at resource creation time. For example, the following are valid URLs: - https://ww + * w.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_pr + * ofile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkProfile; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkParams params; + + /** + * Output only. [Output Only] A list of network peerings for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List peerings; + + /** + * The network-level routing configuration for this network. Used by Cloud Router to determine + * what type of network-wide routing behavior to enforce. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkRoutingConfig routingConfig; + + /** + * [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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworks; + + /** + * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on + * this network. This range is aCIDR specification, for example:192.168.0.0/16. Provided by the + * client when the network is created. + * @return value or {@code null} for none + */ + public java.lang.String getIPv4Range() { + return iPv4Range; + } + + /** + * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on + * this network. This range is aCIDR specification, for example:192.168.0.0/16. Provided by the + * client when the network is created. + * @param iPv4Range iPv4Range or {@code null} for none + */ + public Network setIPv4Range(java.lang.String iPv4Range) { + this.iPv4Range = iPv4Range; + return this; + } + + /** + * Must be set to create a VPC network. If not set, a legacy network is created. + * + * When set to true, the VPC network is created in auto mode. When set to false, the VPC network + * is created in custom mode. + * + * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined + * range as described inAuto mode VPC network IP ranges. + * + * For custom mode VPC networks, you can add subnets using the subnetworksinsert method. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoCreateSubnetworks() { + return autoCreateSubnetworks; + } + + /** + * Must be set to create a VPC network. If not set, a legacy network is created. + * + * When set to true, the VPC network is created in auto mode. When set to false, the VPC network + * is created in custom mode. + * + * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined + * range as described inAuto mode VPC network IP ranges. + * + * For custom mode VPC networks, you can add subnets using the subnetworksinsert method. + * @param autoCreateSubnetworks autoCreateSubnetworks or {@code null} for none + */ + public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) { + this.autoCreateSubnetworks = autoCreateSubnetworks; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Network setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @param description description or {@code null} for none + */ + public Network setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google + * defined ULA prefix fd20::/20. . + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableUlaInternalIpv6() { + return enableUlaInternalIpv6; + } + + /** + * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google + * defined ULA prefix fd20::/20. . + * @param enableUlaInternalIpv6 enableUlaInternalIpv6 or {@code null} for none + */ + public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) { + this.enableUlaInternalIpv6 = enableUlaInternalIpv6; + return this; + } + + /** + * Output only. [Output Only] URL of the firewall policy the network is associated with. + * @return value or {@code null} for none + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** + * Output only. [Output Only] URL of the firewall policy the network is associated with. + * @param firewallPolicy firewallPolicy or {@code null} for none + */ + public Network setFirewallPolicy(java.lang.String firewallPolicy) { + this.firewallPolicy = firewallPolicy; + return this; + } + + /** + * [Output Only] The gateway address for default routing out of the network, selected by Google + * Cloud. + * @return value or {@code null} for none + */ + public java.lang.String getGatewayIPv4() { + return gatewayIPv4; + } + + /** + * [Output Only] The gateway address for default routing out of the network, selected by Google + * Cloud. + * @param gatewayIPv4 gatewayIPv4 or {@code null} for none + */ + public Network setGatewayIPv4(java.lang.String gatewayIPv4) { + this.gatewayIPv4 = gatewayIPv4; + 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 Network setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the + * google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be + * within the fd20::/20. Operation will fail if the speficied /48 is already in used by another + * resource. If the field is not speficied, then a /48 range will be randomly allocated from + * fd20::/20 and returned via this field. . + * @return value or {@code null} for none + */ + public java.lang.String getInternalIpv6Range() { + return internalIpv6Range; + } + + /** + * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the + * google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be + * within the fd20::/20. Operation will fail if the speficied /48 is already in used by another + * resource. If the field is not speficied, then a /48 range will be randomly allocated from + * fd20::/20 and returned via this field. . + * @param internalIpv6Range internalIpv6Range or {@code null} for none + */ + public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { + this.internalIpv6Range = internalIpv6Range; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * @param kind kind or {@code null} for none + */ + public Network setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum + * value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or + * 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. + * @return value or {@code null} for none + */ + public java.lang.Integer getMtu() { + return mtu; + } + + /** + * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum + * value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or + * 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. + * @param mtu mtu or {@code null} for none + */ + public Network setMtu(java.lang.Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @param name name or {@code null} for none + */ + public Network setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or + * BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkFirewallPolicyEnforcementOrder() { + return networkFirewallPolicyEnforcementOrder; + } + + /** + * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or + * BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. + * @param networkFirewallPolicyEnforcementOrder networkFirewallPolicyEnforcementOrder or {@code null} for none + */ + public Network setNetworkFirewallPolicyEnforcementOrder(java.lang.String networkFirewallPolicyEnforcementOrder) { + this.networkFirewallPolicyEnforcementOrder = networkFirewallPolicyEnforcementOrder; + return this; + } + + /** + * A full or partial URL of the network profile to apply to this network. This field can be set + * only at resource creation time. For example, the following are valid URLs: - https://ww + * w.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_pr + * ofile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} + * @return value or {@code null} for none + */ + public java.lang.String getNetworkProfile() { + return networkProfile; + } + + /** + * A full or partial URL of the network profile to apply to this network. This field can be set + * only at resource creation time. For example, the following are valid URLs: - https://ww + * w.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_pr + * ofile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} + * @param networkProfile networkProfile or {@code null} for none + */ + public Network setNetworkProfile(java.lang.String networkProfile) { + this.networkProfile = networkProfile; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public NetworkParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Network setParams(NetworkParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] A list of network peerings for the resource. + * @return value or {@code null} for none + */ + public java.util.List getPeerings() { + return peerings; + } + + /** + * Output only. [Output Only] A list of network peerings for the resource. + * @param peerings peerings or {@code null} for none + */ + public Network setPeerings(java.util.List peerings) { + this.peerings = peerings; + return this; + } + + /** + * The network-level routing configuration for this network. Used by Cloud Router to determine + * what type of network-wide routing behavior to enforce. + * @return value or {@code null} for none + */ + public NetworkRoutingConfig getRoutingConfig() { + return routingConfig; + } + + /** + * The network-level routing configuration for this network. Used by Cloud Router to determine + * what type of network-wide routing behavior to enforce. + * @param routingConfig routingConfig or {@code null} for none + */ + public Network setRoutingConfig(NetworkRoutingConfig routingConfig) { + this.routingConfig = routingConfig; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Network setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Network setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworks() { + return subnetworks; + } + + /** + * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. + * @param subnetworks subnetworks or {@code null} for none + */ + public Network setSubnetworks(java.util.List subnetworks) { + this.subnetworks = subnetworks; + return this; + } + + @Override + public Network set(String fieldName, Object value) { + return (Network) super.set(fieldName, value); + } + + @Override + public Network clone() { + return (Network) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java new file mode 100644 index 00000000000..7a6c04a06e8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -0,0 +1,480 @@ +/* + * 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; + +/** + * NetworkAttachments A network attachment 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 NetworkAttachment extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] An array of connections for all the producers connected to this + * network attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List connectionEndpoints; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connectionPreference; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * 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] Type of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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 URL of the network which the Network Attachment belongs to. + * Practically it is inferred by fetching the network of the first subnetwork associated. Because + * it is required that all the subnetworks must be from the same network, it is assured that the + * Network Attachment belongs to the same network as all the subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Projects or service class ids that are allowed to connect to this network attachment. The + * project can be specified using its id or number. Service class id can be specified as + * "serviceclasses/{service_class_id}". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List producerAcceptLists; + + /** + * Projects or service class ids that are not allowed to connect to this network attachment. The + * project can be specified using its id or number. Service class id can be specified as + * "serviceclasses/{service_class_id}". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List producerRejectLists; + + /** + * Output only. [Output Only] URL of the region where the network attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * An array of URLs where each entry is the URL of a subnet provided by the service consumer to + * use for endpoints in the producers that connect to this network attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworks; + + /** + * Output only. [Output Only] An array of connections for all the producers connected to this + * network attachment. + * @return value or {@code null} for none + */ + public java.util.List getConnectionEndpoints() { + return connectionEndpoints; + } + + /** + * Output only. [Output Only] An array of connections for all the producers connected to this + * network attachment. + * @param connectionEndpoints connectionEndpoints or {@code null} for none + */ + public NetworkAttachment setConnectionEndpoints(java.util.List connectionEndpoints) { + this.connectionEndpoints = connectionEndpoints; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getConnectionPreference() { + return connectionPreference; + } + + /** + * @param connectionPreference connectionPreference or {@code null} for none + */ + public NetworkAttachment setConnectionPreference(java.lang.String connectionPreference) { + this.connectionPreference = connectionPreference; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public NetworkAttachment setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public NetworkAttachment setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public NetworkAttachment encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public NetworkAttachment setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. + * @param kind kind or {@code null} for none + */ + public NetworkAttachment setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 NetworkAttachment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. + * Practically it is inferred by fetching the network of the first subnetwork associated. Because + * it is required that all the subnetworks must be from the same network, it is assured that the + * Network Attachment belongs to the same network as all the subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. + * Practically it is inferred by fetching the network of the first subnetwork associated. Because + * it is required that all the subnetworks must be from the same network, it is assured that the + * Network Attachment belongs to the same network as all the subnetworks. + * @param network network or {@code null} for none + */ + public NetworkAttachment setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Projects or service class ids that are allowed to connect to this network attachment. The + * project can be specified using its id or number. Service class id can be specified as + * "serviceclasses/{service_class_id}". + * @return value or {@code null} for none + */ + public java.util.List getProducerAcceptLists() { + return producerAcceptLists; + } + + /** + * Projects or service class ids that are allowed to connect to this network attachment. The + * project can be specified using its id or number. Service class id can be specified as + * "serviceclasses/{service_class_id}". + * @param producerAcceptLists producerAcceptLists or {@code null} for none + */ + public NetworkAttachment setProducerAcceptLists(java.util.List producerAcceptLists) { + this.producerAcceptLists = producerAcceptLists; + return this; + } + + /** + * Projects or service class ids that are not allowed to connect to this network attachment. The + * project can be specified using its id or number. Service class id can be specified as + * "serviceclasses/{service_class_id}". + * @return value or {@code null} for none + */ + public java.util.List getProducerRejectLists() { + return producerRejectLists; + } + + /** + * Projects or service class ids that are not allowed to connect to this network attachment. The + * project can be specified using its id or number. Service class id can be specified as + * "serviceclasses/{service_class_id}". + * @param producerRejectLists producerRejectLists or {@code null} for none + */ + public NetworkAttachment setProducerRejectLists(java.util.List producerRejectLists) { + this.producerRejectLists = producerRejectLists; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the network attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the network attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public NetworkAttachment setRegion(java.lang.String region) { + this.region = region; + 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 NetworkAttachment setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public NetworkAttachment setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * An array of URLs where each entry is the URL of a subnet provided by the service consumer to + * use for endpoints in the producers that connect to this network attachment. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworks() { + return subnetworks; + } + + /** + * An array of URLs where each entry is the URL of a subnet provided by the service consumer to + * use for endpoints in the producers that connect to this network attachment. + * @param subnetworks subnetworks or {@code null} for none + */ + public NetworkAttachment setSubnetworks(java.util.List subnetworks) { + this.subnetworks = subnetworks; + return this; + } + + @Override + public NetworkAttachment set(String fieldName, Object value) { + return (NetworkAttachment) super.set(fieldName, value); + } + + @Override + public NetworkAttachment clone() { + return (NetworkAttachment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentAggregatedList.java new file mode 100644 index 00000000000..5e5f0628401 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentAggregatedList.java @@ -0,0 +1,374 @@ +/* + * 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; + +/** + * Contains a list of NetworkAttachmentsScopedList. + * + *

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 NetworkAttachmentAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 NetworkAttachmentsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NetworkAttachmentAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkAttachmentsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NetworkAttachmentsScopedList resources. + * @param items items or {@code null} for none + */ + public NetworkAttachmentAggregatedList setItems(java.util.Map 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 NetworkAttachmentAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkAttachmentAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public NetworkAttachmentAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NetworkAttachmentAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkAttachmentAggregatedList set(String fieldName, Object value) { + return (NetworkAttachmentAggregatedList) super.set(fieldName, value); + } + + @Override + public NetworkAttachmentAggregatedList clone() { + return (NetworkAttachmentAggregatedList) 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 NetworkAttachmentAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java new file mode 100644 index 00000000000..a1ba49eed7d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -0,0 +1,246 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] A connection connected to this network attachment. + * + *

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 NetworkAttachmentConnectedEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The IPv4 address assigned to the producer instance network interface. This value will be a + * range in case of Serverless. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * The IPv6 address assigned to the producer instance network interface. This is only assigned + * when the stack types of both the instance network interface and the consumer subnet are + * IPv4_IPv6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * The project id or number of the interface to which the IP was assigned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String projectIdOrNum; + + /** + * Alias IP ranges from the same subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List secondaryIpCidrRanges; + + /** + * The service class id of the producer service to which the IP was assigned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceClassId; + + /** + * The status of a connected endpoint to this network attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The subnetwork used to assign the IP to the producer instance network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was + * allocated from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetworkCidrRange; + + /** + * The IPv4 address assigned to the producer instance network interface. This value will be a + * range in case of Serverless. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * The IPv4 address assigned to the producer instance network interface. This value will be a + * range in case of Serverless. + * @param ipAddress ipAddress or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The IPv6 address assigned to the producer instance network interface. This is only assigned + * when the stack types of both the instance network interface and the consumer subnet are + * IPv4_IPv6. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * The IPv6 address assigned to the producer instance network interface. This is only assigned + * when the stack types of both the instance network interface and the consumer subnet are + * IPv4_IPv6. + * @param ipv6Address ipv6Address or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * The project id or number of the interface to which the IP was assigned. + * @return value or {@code null} for none + */ + public java.lang.String getProjectIdOrNum() { + return projectIdOrNum; + } + + /** + * The project id or number of the interface to which the IP was assigned. + * @param projectIdOrNum projectIdOrNum or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setProjectIdOrNum(java.lang.String projectIdOrNum) { + this.projectIdOrNum = projectIdOrNum; + return this; + } + + /** + * Alias IP ranges from the same subnetwork. + * @return value or {@code null} for none + */ + public java.util.List getSecondaryIpCidrRanges() { + return secondaryIpCidrRanges; + } + + /** + * Alias IP ranges from the same subnetwork. + * @param secondaryIpCidrRanges secondaryIpCidrRanges or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setSecondaryIpCidrRanges(java.util.List secondaryIpCidrRanges) { + this.secondaryIpCidrRanges = secondaryIpCidrRanges; + return this; + } + + /** + * The service class id of the producer service to which the IP was assigned. + * @return value or {@code null} for none + */ + public java.lang.String getServiceClassId() { + return serviceClassId; + } + + /** + * The service class id of the producer service to which the IP was assigned. + * @param serviceClassId serviceClassId or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setServiceClassId(java.lang.String serviceClassId) { + this.serviceClassId = serviceClassId; + return this; + } + + /** + * The status of a connected endpoint to this network attachment. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of a connected endpoint to this network attachment. + * @param status status or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * The subnetwork used to assign the IP to the producer instance network interface. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * The subnetwork used to assign the IP to the producer instance network interface. + * @param subnetwork subnetwork or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was + * allocated from. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetworkCidrRange() { + return subnetworkCidrRange; + } + + /** + * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was + * allocated from. + * @param subnetworkCidrRange subnetworkCidrRange or {@code null} for none + */ + public NetworkAttachmentConnectedEndpoint setSubnetworkCidrRange(java.lang.String subnetworkCidrRange) { + this.subnetworkCidrRange = subnetworkCidrRange; + return this; + } + + @Override + public NetworkAttachmentConnectedEndpoint set(String fieldName, Object value) { + return (NetworkAttachmentConnectedEndpoint) super.set(fieldName, value); + } + + @Override + public NetworkAttachmentConnectedEndpoint clone() { + return (NetworkAttachmentConnectedEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentList.java new file mode 100644 index 00000000000..37827585025 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentList.java @@ -0,0 +1,380 @@ +/* + * 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 NetworkAttachmentList. + * + *

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 NetworkAttachmentList extends com.google.api.client.json.GenericJson { + + /** + * [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 NetworkAttachment 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 NetworkAttachment 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(NetworkAttachment.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NetworkAttachmentList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkAttachment resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NetworkAttachment resources. + * @param items items or {@code null} for none + */ + public NetworkAttachmentList 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 NetworkAttachmentList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkAttachmentList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public NetworkAttachmentList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NetworkAttachmentList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkAttachmentList set(String fieldName, Object value) { + return (NetworkAttachmentList) super.set(fieldName, value); + } + + @Override + public NetworkAttachmentList clone() { + return (NetworkAttachmentList) 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 NetworkAttachmentListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentsScopedList.java new file mode 100644 index 00000000000..b3ea510d7a8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkAttachmentsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 NetworkAttachmentsScopedList. + * + *

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 NetworkAttachmentsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of NetworkAttachments contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkAttachments; + + static { + // hack to force ProGuard to consider NetworkAttachment 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(NetworkAttachment.class); + } + + /** + * Informational warning which replaces the list of network attachments when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of NetworkAttachments contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getNetworkAttachments() { + return networkAttachments; + } + + /** + * A list of NetworkAttachments contained in this scope. + * @param networkAttachments networkAttachments or {@code null} for none + */ + public NetworkAttachmentsScopedList setNetworkAttachments(java.util.List networkAttachments) { + this.networkAttachments = networkAttachments; + return this; + } + + /** + * Informational warning which replaces the list of network attachments when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of network attachments when the list is empty. + * @param warning warning or {@code null} for none + */ + public NetworkAttachmentsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkAttachmentsScopedList set(String fieldName, Object value) { + return (NetworkAttachmentsScopedList) super.set(fieldName, value); + } + + @Override + public NetworkAttachmentsScopedList clone() { + return (NetworkAttachmentsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of network attachments when the list is empty. + */ + 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 NetworkAttachmentsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java new file mode 100644 index 00000000000..0f975539572 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -0,0 +1,386 @@ +/* + * 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 Google Cloud Armor network edge security service 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 NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. + * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, + * otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * 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] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * NetworkEdgeSecurityServices + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkEdgeSecurityServiceParams params; + + /** + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * The resource URL for the network edge security service associated with this network edge + * security service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public NetworkEdgeSecurityService setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. + * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, + * otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. + * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, + * otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. + * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, + * otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public NetworkEdgeSecurityService setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. + * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, + * otherwise the request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + 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 NetworkEdgeSecurityService setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * NetworkEdgeSecurityServices + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * NetworkEdgeSecurityServices + * @param kind kind or {@code null} for none + */ + public NetworkEdgeSecurityService setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 NetworkEdgeSecurityService setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public NetworkEdgeSecurityServiceParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public NetworkEdgeSecurityService setParams(NetworkEdgeSecurityServiceParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the resource resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public NetworkEdgeSecurityService setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The resource URL for the network edge security service associated with this network edge + * security service. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * The resource URL for the network edge security service associated with this network edge + * security service. + * @param securityPolicy securityPolicy or {@code null} for none + */ + public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + 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 NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public NetworkEdgeSecurityService setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public NetworkEdgeSecurityService set(String fieldName, Object value) { + return (NetworkEdgeSecurityService) super.set(fieldName, value); + } + + @Override + public NetworkEdgeSecurityService clone() { + return (NetworkEdgeSecurityService) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java new file mode 100644 index 00000000000..1cb2024c4e6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -0,0 +1,428 @@ +/* + * 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 NetworkEdgeSecurityServiceAggregatedList. + * + *

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 NetworkEdgeSecurityServiceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 NetworkEdgeSecurityServicesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security + * Services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkEdgeSecurityServicesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NetworkEdgeSecurityServicesScopedList resources. + * @param items items or {@code null} for none + */ + public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security + * Services. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security + * Services. + * @param kind kind or {@code null} for none + */ + public NetworkEdgeSecurityServiceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkEdgeSecurityServiceAggregatedList set(String fieldName, Object value) { + return (NetworkEdgeSecurityServiceAggregatedList) super.set(fieldName, value); + } + + @Override + public NetworkEdgeSecurityServiceAggregatedList clone() { + return (NetworkEdgeSecurityServiceAggregatedList) 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 NetworkEdgeSecurityServiceAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceParams.java new file mode 100644 index 00000000000..0d175c12160 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceParams.java @@ -0,0 +1,87 @@ +/* + * 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; + +/** + * Additional network edge security service parameters. + * + *

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 NetworkEdgeSecurityServiceParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public NetworkEdgeSecurityServiceParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public NetworkEdgeSecurityServiceParams set(String fieldName, Object value) { + return (NetworkEdgeSecurityServiceParams) super.set(fieldName, value); + } + + @Override + public NetworkEdgeSecurityServiceParams clone() { + return (NetworkEdgeSecurityServiceParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServicesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServicesScopedList.java new file mode 100644 index 00000000000..8213651d030 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServicesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 NetworkEdgeSecurityServicesScopedList. + * + *

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 NetworkEdgeSecurityServicesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of NetworkEdgeSecurityServices contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEdgeSecurityServices; + + static { + // hack to force ProGuard to consider NetworkEdgeSecurityService 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(NetworkEdgeSecurityService.class); + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of NetworkEdgeSecurityServices contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEdgeSecurityServices() { + return networkEdgeSecurityServices; + } + + /** + * A list of NetworkEdgeSecurityServices contained in this scope. + * @param networkEdgeSecurityServices networkEdgeSecurityServices or {@code null} for none + */ + public NetworkEdgeSecurityServicesScopedList setNetworkEdgeSecurityServices(java.util.List networkEdgeSecurityServices) { + this.networkEdgeSecurityServices = networkEdgeSecurityServices; + return this; + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + * @param warning warning or {@code null} for none + */ + public NetworkEdgeSecurityServicesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkEdgeSecurityServicesScopedList set(String fieldName, Object value) { + return (NetworkEdgeSecurityServicesScopedList) super.set(fieldName, value); + } + + @Override + public NetworkEdgeSecurityServicesScopedList clone() { + return (NetworkEdgeSecurityServicesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + */ + 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 NetworkEdgeSecurityServicesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpoint.java new file mode 100644 index 00000000000..ddd09f21ece --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpoint.java @@ -0,0 +1,279 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The network endpoint. + * + *

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 NetworkEndpoint extends com.google.api.client.json.GenericJson { + + /** + * Optional metadata defined as annotations on the network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * Represents the port number to which PSC consumer sends packets. + * + * Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer clientDestinationPort; + + /** + * Optional fully qualified domain name of network endpoint. This can only be specified when + * NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fqdn; + + /** + * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends + * on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP + * andGCE_VM_IP_PORT. + * + * The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone + * within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must + * belongs to the VM instance. + * + * The name must be 1-63 characters long, and comply withRFC1035 or be a valid URL pointing to an + * existing instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine + * (either the primary IP or as part of an aliased IP range). If the IP address is not specified, + * then the primary IP address for the VM instance in the network that the network endpoint group + * belongs to will be used. + * + * This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it + * must be set to the primary internal IP address of the attached VM instance that matches the + * subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance + * can be added to a NEG as long as it matches the NEG subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Optional IPv6 address of network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * Optional port number of network endpoint. If not specified, the defaultPort for the network + * endpoint group will be used. + * + * This field can not be set for network endpoints of typeGCE_VM_IP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Optional metadata defined as annotations on the network endpoint. + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * Optional metadata defined as annotations on the network endpoint. + * @param annotations annotations or {@code null} for none + */ + public NetworkEndpoint setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Represents the port number to which PSC consumer sends packets. + * + * Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. + * @return value or {@code null} for none + */ + public java.lang.Integer getClientDestinationPort() { + return clientDestinationPort; + } + + /** + * Represents the port number to which PSC consumer sends packets. + * + * Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. + * @param clientDestinationPort clientDestinationPort or {@code null} for none + */ + public NetworkEndpoint setClientDestinationPort(java.lang.Integer clientDestinationPort) { + this.clientDestinationPort = clientDestinationPort; + return this; + } + + /** + * Optional fully qualified domain name of network endpoint. This can only be specified when + * NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. + * @return value or {@code null} for none + */ + public java.lang.String getFqdn() { + return fqdn; + } + + /** + * Optional fully qualified domain name of network endpoint. This can only be specified when + * NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. + * @param fqdn fqdn or {@code null} for none + */ + public NetworkEndpoint setFqdn(java.lang.String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends + * on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP + * andGCE_VM_IP_PORT. + * + * The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone + * within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must + * belongs to the VM instance. + * + * The name must be 1-63 characters long, and comply withRFC1035 or be a valid URL pointing to an + * existing instance. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends + * on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP + * andGCE_VM_IP_PORT. + * + * The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone + * within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must + * belongs to the VM instance. + * + * The name must be 1-63 characters long, and comply withRFC1035 or be a valid URL pointing to an + * existing instance. + * @param instance instance or {@code null} for none + */ + public NetworkEndpoint setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine + * (either the primary IP or as part of an aliased IP range). If the IP address is not specified, + * then the primary IP address for the VM instance in the network that the network endpoint group + * belongs to will be used. + * + * This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it + * must be set to the primary internal IP address of the attached VM instance that matches the + * subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance + * can be added to a NEG as long as it matches the NEG subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine + * (either the primary IP or as part of an aliased IP range). If the IP address is not specified, + * then the primary IP address for the VM instance in the network that the network endpoint group + * belongs to will be used. + * + * This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it + * must be set to the primary internal IP address of the attached VM instance that matches the + * subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance + * can be added to a NEG as long as it matches the NEG subnetwork. + * @param ipAddress ipAddress or {@code null} for none + */ + public NetworkEndpoint setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Optional IPv6 address of network endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * Optional IPv6 address of network endpoint. + * @param ipv6Address ipv6Address or {@code null} for none + */ + public NetworkEndpoint setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * Optional port number of network endpoint. If not specified, the defaultPort for the network + * endpoint group will be used. + * + * This field can not be set for network endpoints of typeGCE_VM_IP. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * Optional port number of network endpoint. If not specified, the defaultPort for the network + * endpoint group will be used. + * + * This field can not be set for network endpoints of typeGCE_VM_IP. + * @param port port or {@code null} for none + */ + public NetworkEndpoint setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + @Override + public NetworkEndpoint set(String fieldName, Object value) { + return (NetworkEndpoint) super.set(fieldName, value); + } + + @Override + public NetworkEndpoint clone() { + return (NetworkEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java new file mode 100644 index 00000000000..865857b06a6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -0,0 +1,571 @@ +/* + * 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 collection of network endpoints. + * + * A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are + * reachable, and where they are located. For more information about using NEGs for different use + * cases, seeNetwork endpoint groups overview. + * + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * + *

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 NetworkEndpointGroup extends com.google.api.client.json.GenericJson { + + /** + * Optional. Metadata defined as annotations on the network endpoint group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkEndpointGroupAppEngine appEngine; + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkEndpointGroupCloudFunction cloudFunction; + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkEndpointGroupCloudRun cloudRun; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * The default port used if the port number is not specified in the network endpoint. + * + * Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or + * PRIVATE_SERVICE_CONNECT, this field must not be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer defaultPort; + + /** + * An optional description of this resource. Provide this property when you create the 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; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network + * endpoint group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource; provided by the client 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; + + /** + * The URL of the network to which all network endpoints in the NEG belong. For + * networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field + * is not specified, a default network will be used. This field cannot be set for NEGs with + * networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all + * other network endpoint types, this field is required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, + * GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, + * SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointType; + + /** + * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkEndpointGroupPscData pscData; + + /** + * The target service url used to set up private service connection to a Google API or a PSC + * Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. + * + * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pscTargetService; + + /** + * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Number of network endpoints in the network endpoint group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** + * Optional URL of the subnetwork to which all network endpoints in the NEG belong. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Optional. Metadata defined as annotations on the network endpoint group. + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * Optional. Metadata defined as annotations on the network endpoint group. + * @param annotations annotations or {@code null} for none + */ + public NetworkEndpointGroup setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * @return value or {@code null} for none + */ + public NetworkEndpointGroupAppEngine getAppEngine() { + return appEngine; + } + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * @param appEngine appEngine or {@code null} for none + */ + public NetworkEndpointGroup setAppEngine(NetworkEndpointGroupAppEngine appEngine) { + this.appEngine = appEngine; + return this; + } + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * @return value or {@code null} for none + */ + public NetworkEndpointGroupCloudFunction getCloudFunction() { + return cloudFunction; + } + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * @param cloudFunction cloudFunction or {@code null} for none + */ + public NetworkEndpointGroup setCloudFunction(NetworkEndpointGroupCloudFunction cloudFunction) { + this.cloudFunction = cloudFunction; + return this; + } + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * @return value or {@code null} for none + */ + public NetworkEndpointGroupCloudRun getCloudRun() { + return cloudRun; + } + + /** + * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or + * cloudFunction may be set. + * @param cloudRun cloudRun or {@code null} for none + */ + public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { + this.cloudRun = cloudRun; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * The default port used if the port number is not specified in the network endpoint. + * + * Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or + * PRIVATE_SERVICE_CONNECT, this field must not be specified. + * @return value or {@code null} for none + */ + public java.lang.Integer getDefaultPort() { + return defaultPort; + } + + /** + * The default port used if the port number is not specified in the network endpoint. + * + * Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or + * PRIVATE_SERVICE_CONNECT, this field must not be specified. + * @param defaultPort defaultPort or {@code null} for none + */ + public NetworkEndpointGroup setDefaultPort(java.lang.Integer defaultPort) { + this.defaultPort = defaultPort; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public NetworkEndpointGroup 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 NetworkEndpointGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network + * endpoint group. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network + * endpoint group. + * @param kind kind or {@code null} for none + */ + public NetworkEndpointGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 NetworkEndpointGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The URL of the network to which all network endpoints in the NEG belong. For + * networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field + * is not specified, a default network will be used. This field cannot be set for NEGs with + * networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all + * other network endpoint types, this field is required. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * The URL of the network to which all network endpoints in the NEG belong. For + * networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field + * is not specified, a default network will be used. This field cannot be set for NEGs with + * networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all + * other network endpoint types, this field is required. + * @param network network or {@code null} for none + */ + public NetworkEndpointGroup setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, + * GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, + * SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkEndpointType() { + return networkEndpointType; + } + + /** + * Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, + * GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, + * SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. + * @param networkEndpointType networkEndpointType or {@code null} for none + */ + public NetworkEndpointGroup setNetworkEndpointType(java.lang.String networkEndpointType) { + this.networkEndpointType = networkEndpointType; + return this; + } + + /** + * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. + * @return value or {@code null} for none + */ + public NetworkEndpointGroupPscData getPscData() { + return pscData; + } + + /** + * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. + * @param pscData pscData or {@code null} for none + */ + public NetworkEndpointGroup setPscData(NetworkEndpointGroupPscData pscData) { + this.pscData = pscData; + return this; + } + + /** + * The target service url used to set up private service connection to a Google API or a PSC + * Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. + * + * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. + * @return value or {@code null} for none + */ + public java.lang.String getPscTargetService() { + return pscTargetService; + } + + /** + * The target service url used to set up private service connection to a Google API or a PSC + * Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. + * + * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. + * @param pscTargetService pscTargetService or {@code null} for none + */ + public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetService) { + this.pscTargetService = pscTargetService; + return this; + } + + /** + * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * @param region region or {@code null} for none + */ + public NetworkEndpointGroup setRegion(java.lang.String region) { + this.region = region; + 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 NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output only] Number of network endpoints in the network endpoint group. + * @return value or {@code null} for none + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * Output only. [Output only] Number of network endpoints in the network endpoint group. + * @param size size or {@code null} for none + */ + public NetworkEndpointGroup setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + /** + * Optional URL of the subnetwork to which all network endpoints in the NEG belong. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * Optional URL of the subnetwork to which all network endpoints in the NEG belong. + * @param subnetwork subnetwork or {@code null} for none + */ + public NetworkEndpointGroup setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * @param zone zone or {@code null} for none + */ + public NetworkEndpointGroup setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public NetworkEndpointGroup set(String fieldName, Object value) { + return (NetworkEndpointGroup) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroup clone() { + return (NetworkEndpointGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java new file mode 100644 index 00000000000..6788f0c1d6e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -0,0 +1,407 @@ +/* + * 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 NetworkEndpointGroupAggregatedList. + * + *

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 NetworkEndpointGroupAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 NetworkEndpointGroupsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint + * groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 NetworkEndpointGroupAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkEndpointGroupsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NetworkEndpointGroupsScopedList resources. + * @param items items or {@code null} for none + */ + public NetworkEndpointGroupAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint + * groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint + * groups. + * @param kind kind or {@code null} for none + */ + public NetworkEndpointGroupAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkEndpointGroupAggregatedList 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 NetworkEndpointGroupAggregatedList 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 NetworkEndpointGroupAggregatedList 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 NetworkEndpointGroupAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkEndpointGroupAggregatedList set(String fieldName, Object value) { + return (NetworkEndpointGroupAggregatedList) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupAggregatedList clone() { + return (NetworkEndpointGroupAggregatedList) 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 NetworkEndpointGroupAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAppEngine.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAppEngine.java new file mode 100644 index 00000000000..0a5f9b99f7d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAppEngine.java @@ -0,0 +1,170 @@ +/* + * 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; + +/** + * Configuration for an App Engine network endpoint group (NEG). The service is optional, may be + * provided explicitly or in the URL mask. The version is optional and can only be provided + * explicitly or in the URL mask when service is present. + * + * Note: App Engine service must be in the same project and located in the same region as the + * Serverless NEG. + * + *

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 NetworkEndpointGroupAppEngine extends com.google.api.client.json.GenericJson { + + /** + * Optional serving service. + * + * The service name is case-sensitive and must be 1-63 characters long. + * + * Example value: default, my-service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse service and version fields from a request URL. URL mask allows for routing + * to multiple App Engine services without having to create multiple Network Endpoint Groups and + * backend services. + * + * For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 + * can be backed by the same Serverless NEG with URL mask-dot-appname.appspot.com/. The URL mask + * will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" + * } respectively. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMask; + + /** + * Optional serving version. + * + * The version name is case-sensitive and must be 1-100 characters long. + * + * Example value: v1, v2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional serving service. + * + * The service name is case-sensitive and must be 1-63 characters long. + * + * Example value: default, my-service. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Optional serving service. + * + * The service name is case-sensitive and must be 1-63 characters long. + * + * Example value: default, my-service. + * @param service service or {@code null} for none + */ + public NetworkEndpointGroupAppEngine setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse service and version fields from a request URL. URL mask allows for routing + * to multiple App Engine services without having to create multiple Network Endpoint Groups and + * backend services. + * + * For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 + * can be backed by the same Serverless NEG with URL mask-dot-appname.appspot.com/. The URL mask + * will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" + * } respectively. + * @return value or {@code null} for none + */ + public java.lang.String getUrlMask() { + return urlMask; + } + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse service and version fields from a request URL. URL mask allows for routing + * to multiple App Engine services without having to create multiple Network Endpoint Groups and + * backend services. + * + * For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 + * can be backed by the same Serverless NEG with URL mask-dot-appname.appspot.com/. The URL mask + * will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" + * } respectively. + * @param urlMask urlMask or {@code null} for none + */ + public NetworkEndpointGroupAppEngine setUrlMask(java.lang.String urlMask) { + this.urlMask = urlMask; + return this; + } + + /** + * Optional serving version. + * + * The version name is case-sensitive and must be 1-100 characters long. + * + * Example value: v1, v2. + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Optional serving version. + * + * The version name is case-sensitive and must be 1-100 characters long. + * + * Example value: v1, v2. + * @param version version or {@code null} for none + */ + public NetworkEndpointGroupAppEngine setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public NetworkEndpointGroupAppEngine set(String fieldName, Object value) { + return (NetworkEndpointGroupAppEngine) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupAppEngine clone() { + return (NetworkEndpointGroupAppEngine) super.clone(); + } + +} From 5d945f06dff5fbfec0af69a65c3e4ccaf80d2048 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:25 -0700 Subject: [PATCH 07/23] chore: regenerate compute client --- .../NetworkEndpointGroupCloudFunction.java | 127 ++ .../model/NetworkEndpointGroupCloudRun.java | 167 +++ .../model/NetworkEndpointGroupList.java | 386 +++++ .../model/NetworkEndpointGroupPscData.java | 145 ++ ...kEndpointGroupsAttachEndpointsRequest.java | 72 + ...kEndpointGroupsDetachEndpointsRequest.java | 72 + ...orkEndpointGroupsListEndpointsRequest.java | 72 + ...orkEndpointGroupsListNetworkEndpoints.java | 359 +++++ .../NetworkEndpointGroupsScopedList.java | 282 ++++ .../NetworkEndpointWithHealthStatus.java | 102 ++ .../NetworkFirewallPolicyAggregatedList.java | 410 ++++++ .../compute/model/NetworkInterface.java | 757 ++++++++++ .../services/compute/model/NetworkList.java | 383 +++++ .../services/compute/model/NetworkParams.java | 84 ++ .../compute/model/NetworkPeering.java | 431 ++++++ .../model/NetworkPeeringConnectionStatus.java | 122 ++ ...PeeringConnectionStatusConsensusState.java | 92 ++ ...gConnectionStatusTrafficConfiguration.java | 162 +++ .../model/NetworkPerformanceConfig.java | 63 + .../compute/model/NetworkProfile.java | 288 ++++ .../compute/model/NetworkProfileLocation.java | 84 ++ .../model/NetworkProfileNetworkFeatures.java | 957 ++++++++++++ ...workFeaturesPredefinedSubnetworkRange.java | 90 ++ .../model/NetworkProfileProfileType.java | 126 ++ .../model/NetworkProfilesListResponse.java | 434 ++++++ .../compute/model/NetworkRoutingConfig.java | 206 +++ .../model/NetworksAddPeeringRequest.java | 165 +++ ...orksCancelRequestRemovePeeringRequest.java | 66 + ...NetworksGetEffectiveFirewallsResponse.java | 105 ++ ...ewallsResponseEffectiveFirewallPolicy.java | 228 +++ .../model/NetworksRemovePeeringRequest.java | 66 + .../NetworksRequestRemovePeeringRequest.java | 66 + .../model/NetworksUpdatePeeringRequest.java | 63 + .../api/services/compute/model/NodeGroup.java | 507 +++++++ .../model/NodeGroupAggregatedList.java | 404 ++++++ .../model/NodeGroupAutoscalingPolicy.java | 120 ++ .../services/compute/model/NodeGroupList.java | 386 +++++ .../model/NodeGroupMaintenanceWindow.java | 97 ++ .../services/compute/model/NodeGroupNode.java | 393 +++++ .../model/NodeGroupsAddNodesRequest.java | 66 + .../model/NodeGroupsDeleteNodesRequest.java | 66 + .../compute/model/NodeGroupsListNodes.java | 386 +++++ .../NodeGroupsPerformMaintenanceRequest.java | 90 ++ .../compute/model/NodeGroupsScopedList.java | 278 ++++ .../NodeGroupsSetNodeTemplateRequest.java | 66 + ...GroupsSimulateMaintenanceEventRequest.java | 66 + .../services/compute/model/NodeTemplate.java | 471 ++++++ .../model/NodeTemplateAggregatedList.java | 404 ++++++ .../compute/model/NodeTemplateList.java | 386 +++++ .../NodeTemplateNodeTypeFlexibility.java | 105 ++ .../model/NodeTemplatesScopedList.java | 278 ++++ .../api/services/compute/model/NodeType.java | 362 +++++ .../compute/model/NodeTypeAggregatedList.java | 404 ++++++ .../services/compute/model/NodeTypeList.java | 386 +++++ .../compute/model/NodeTypesScopedList.java | 278 ++++ .../compute/model/NotificationEndpoint.java | 263 ++++ .../NotificationEndpointAggregatedList.java | 401 +++++ .../NotificationEndpointGrpcSettings.java | 178 +++ .../model/NotificationEndpointList.java | 386 +++++ .../NotificationEndpointsScopedList.java | 278 ++++ .../api/services/compute/model/Operation.java | 1286 +++++++++++++++++ .../model/OperationAggregatedList.java | 404 ++++++ .../services/compute/model/OperationList.java | 386 +++++ .../compute/model/OperationsScopedList.java | 281 ++++ ...urityPoliciesListAssociationsResponse.java | 96 ++ .../compute/model/OutlierDetection.java | 418 ++++++ .../compute/model/PacketIntervals.java | 186 +++ .../compute/model/PacketMirroring.java | 410 ++++++ .../model/PacketMirroringAggregatedList.java | 401 +++++ .../compute/model/PacketMirroringFilter.java | 132 ++ .../PacketMirroringForwardingRuleInfo.java | 93 ++ .../compute/model/PacketMirroringList.java | 386 +++++ .../PacketMirroringMirroredResourceInfo.java | 144 ++ ...oringMirroredResourceInfoInstanceInfo.java | 90 ++ ...rroringMirroredResourceInfoSubnetInfo.java | 90 ++ .../model/PacketMirroringNetworkInfo.java | 90 ++ .../model/PacketMirroringsScopedList.java | 278 ++++ .../compute/model/PartitionFormability.java | 165 +++ .../model/PartitionFormabilityStatus.java | 504 +++++++ .../services/compute/model/PathMatcher.java | 502 +++++++ .../api/services/compute/model/PathRule.java | 268 ++++ .../compute/model/PerInstanceConfig.java | 191 +++ .../PeriodicPartialMaintenanceSchedule.java | 163 +++ .../api/services/compute/model/Policy.java | 337 +++++ .../compute/model/PreconfiguredWafSet.java | 66 + .../compute/model/PreservedState.java | 147 ++ .../model/PreservedStatePreservedDisk.java | 126 ++ .../PreservedStatePreservedNetworkIp.java | 96 ++ ...ervedStatePreservedNetworkIpIpAddress.java | 90 ++ .../compute/model/PreviewFeature.java | 264 ++++ .../compute/model/PreviewFeatureList.java | 407 ++++++ .../model/PreviewFeatureRolloutOperation.java | 66 + ...ewFeatureRolloutOperationRolloutInput.java | 93 ++ .../compute/model/PreviewFeatureStatus.java | 111 ++ .../PreviewFeatureStatusReleaseStatus.java | 90 ++ .../api/services/compute/model/Project.java | 414 ++++++ .../services/compute/model/ProjectView.java | 77 + .../ProjectsDisableXpnResourceRequest.java | 66 + .../ProjectsEnableXpnResourceRequest.java | 66 + .../model/ProjectsGetXpnResources.java | 126 ++ 100 files changed, 24343 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudFunction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudRun.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsAttachEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsDetachEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointWithHealthStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkFirewallPolicyAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkInterface.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeering.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPerformanceConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfile.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileProfileType.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksAddPeeringRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRemovePeeringRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksUpdatePeeringRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAutoscalingPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsAddNodesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsDeleteNodesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsPerformMaintenanceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSetNodeTemplateRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSimulateMaintenanceEventRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplate.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateNodeTypeFlexibility.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplatesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeType.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointGrpcSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Operation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OutlierDetection.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketIntervals.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroring.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringFilter.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormability.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormabilityStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathMatcher.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PerInstanceConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Policy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreconfiguredWafSet.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedState.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIp.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIpIpAddress.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeature.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Project.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectView.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsDisableXpnResourceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsEnableXpnResourceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudFunction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudFunction.java new file mode 100644 index 00000000000..c4dfc573a9c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudFunction.java @@ -0,0 +1,127 @@ +/* + * 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; + +/** + * Configuration for a Cloud Function network endpoint group (NEG). The function must be provided + * explicitly or in the URL mask. + * + * Note: Cloud Function must be in the same project and located in the same region as the Serverless + * NEG. + * + *

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 NetworkEndpointGroupCloudFunction extends com.google.api.client.json.GenericJson { + + /** + * A user-defined name of the Cloud Function. + * + * The function name is case-sensitive and must be 1-63 characters long. + * + * Example value: func1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String function; + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse function field from a request URL. URL mask allows for routing to multiple + * Cloud Functions without having to create multiple Network Endpoint Groups and backend services. + * + * For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the + * same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } + * and{ function = "function2" } respectively. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMask; + + /** + * A user-defined name of the Cloud Function. + * + * The function name is case-sensitive and must be 1-63 characters long. + * + * Example value: func1. + * @return value or {@code null} for none + */ + public java.lang.String getFunction() { + return function; + } + + /** + * A user-defined name of the Cloud Function. + * + * The function name is case-sensitive and must be 1-63 characters long. + * + * Example value: func1. + * @param function function or {@code null} for none + */ + public NetworkEndpointGroupCloudFunction setFunction(java.lang.String function) { + this.function = function; + return this; + } + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse function field from a request URL. URL mask allows for routing to multiple + * Cloud Functions without having to create multiple Network Endpoint Groups and backend services. + * + * For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the + * same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } + * and{ function = "function2" } respectively. + * @return value or {@code null} for none + */ + public java.lang.String getUrlMask() { + return urlMask; + } + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse function field from a request URL. URL mask allows for routing to multiple + * Cloud Functions without having to create multiple Network Endpoint Groups and backend services. + * + * For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the + * same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } + * and{ function = "function2" } respectively. + * @param urlMask urlMask or {@code null} for none + */ + public NetworkEndpointGroupCloudFunction setUrlMask(java.lang.String urlMask) { + this.urlMask = urlMask; + return this; + } + + @Override + public NetworkEndpointGroupCloudFunction set(String fieldName, Object value) { + return (NetworkEndpointGroupCloudFunction) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupCloudFunction clone() { + return (NetworkEndpointGroupCloudFunction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudRun.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudRun.java new file mode 100644 index 00000000000..b57634f705a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupCloudRun.java @@ -0,0 +1,167 @@ +/* + * 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; + +/** + * Configuration for a Cloud Run network endpoint group (NEG). The service must be provided + * explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL + * mask. + * + * Note: Cloud Run service must be in the same project and located in the same region as the + * Serverless NEG. + * + *

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 NetworkEndpointGroupCloudRun extends com.google.api.client.json.GenericJson { + + /** + * Cloud Run service is the main resource of Cloud Run. + * + * The service must be 1-63 characters long, and comply withRFC1035. + * + * Example value: "run-service". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained + * traffic routing information. + * + * The tag must be 1-63 characters long, and comply withRFC1035. + * + * Example value: "revision-0010". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse and fields from a request URL. URL mask allows for routing to multiple Run + * services without having to create multiple network endpoint groups and backend services. + * + * For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the + * same Serverless Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will parse + * them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMask; + + /** + * Cloud Run service is the main resource of Cloud Run. + * + * The service must be 1-63 characters long, and comply withRFC1035. + * + * Example value: "run-service". + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Cloud Run service is the main resource of Cloud Run. + * + * The service must be 1-63 characters long, and comply withRFC1035. + * + * Example value: "run-service". + * @param service service or {@code null} for none + */ + public NetworkEndpointGroupCloudRun setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained + * traffic routing information. + * + * The tag must be 1-63 characters long, and comply withRFC1035. + * + * Example value: "revision-0010". + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained + * traffic routing information. + * + * The tag must be 1-63 characters long, and comply withRFC1035. + * + * Example value: "revision-0010". + * @param tag tag or {@code null} for none + */ + public NetworkEndpointGroupCloudRun setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse and fields from a request URL. URL mask allows for routing to multiple Run + * services without having to create multiple network endpoint groups and backend services. + * + * For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the + * same Serverless Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will parse + * them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. + * @return value or {@code null} for none + */ + public java.lang.String getUrlMask() { + return urlMask; + } + + /** + * An URL mask is one of the main components of the Cloud Function. + * + * A template to parse and fields from a request URL. URL mask allows for routing to multiple Run + * services without having to create multiple network endpoint groups and backend services. + * + * For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the + * same Serverless Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will parse + * them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. + * @param urlMask urlMask or {@code null} for none + */ + public NetworkEndpointGroupCloudRun setUrlMask(java.lang.String urlMask) { + this.urlMask = urlMask; + return this; + } + + @Override + public NetworkEndpointGroupCloudRun set(String fieldName, Object value) { + return (NetworkEndpointGroupCloudRun) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupCloudRun clone() { + return (NetworkEndpointGroupCloudRun) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java new file mode 100644 index 00000000000..9752ecbc408 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -0,0 +1,386 @@ +/* + * 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 NetworkEndpointGroupList. + * + *

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 NetworkEndpointGroupList extends com.google.api.client.json.GenericJson { + + /** + * [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 NetworkEndpointGroup 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 NetworkEndpointGroup 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(NetworkEndpointGroup.class); + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList + * for network endpoint group lists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NetworkEndpointGroupList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkEndpointGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NetworkEndpointGroup resources. + * @param items items or {@code null} for none + */ + public NetworkEndpointGroupList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList + * for network endpoint group lists. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList + * for network endpoint group lists. + * @param kind kind or {@code null} for none + */ + public NetworkEndpointGroupList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkEndpointGroupList 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 NetworkEndpointGroupList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NetworkEndpointGroupList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkEndpointGroupList set(String fieldName, Object value) { + return (NetworkEndpointGroupList) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupList clone() { + return (NetworkEndpointGroupList) 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 NetworkEndpointGroupListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java new file mode 100644 index 00000000000..294c37e562a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -0,0 +1,145 @@ +/* + * 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; + +/** + * All data that is specifically relevant to only network endpoint groups of type + * PRIVATE_SERVICE_CONNECT. + * + *

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 NetworkEndpointGroupPscData extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address + * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumerPscAddress; + + /** + * The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; + * should only be used for the PRIVATE_SERVICE_CONNECT NEG type + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer producerPort; + + /** + * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger pscConnectionId; + + /** + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pscConnectionStatus; + + /** + * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address + * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + * @return value or {@code null} for none + */ + public java.lang.String getConsumerPscAddress() { + return consumerPscAddress; + } + + /** + * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address + * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. + * @param consumerPscAddress consumerPscAddress or {@code null} for none + */ + public NetworkEndpointGroupPscData setConsumerPscAddress(java.lang.String consumerPscAddress) { + this.consumerPscAddress = consumerPscAddress; + return this; + } + + /** + * The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; + * should only be used for the PRIVATE_SERVICE_CONNECT NEG type + * @return value or {@code null} for none + */ + public java.lang.Integer getProducerPort() { + return producerPort; + } + + /** + * The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; + * should only be used for the PRIVATE_SERVICE_CONNECT NEG type + * @param producerPort producerPort or {@code null} for none + */ + public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPort) { + this.producerPort = producerPort; + return this; + } + + /** + * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * @return value or {@code null} for none + */ + public java.math.BigInteger getPscConnectionId() { + return pscConnectionId; + } + + /** + * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * @param pscConnectionId pscConnectionId or {@code null} for none + */ + public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscConnectionId) { + this.pscConnectionId = pscConnectionId; + return this; + } + + /** + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * @return value or {@code null} for none + */ + public java.lang.String getPscConnectionStatus() { + return pscConnectionStatus; + } + + /** + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * @param pscConnectionStatus pscConnectionStatus or {@code null} for none + */ + public NetworkEndpointGroupPscData setPscConnectionStatus(java.lang.String pscConnectionStatus) { + this.pscConnectionStatus = pscConnectionStatus; + return this; + } + + @Override + public NetworkEndpointGroupPscData set(String fieldName, Object value) { + return (NetworkEndpointGroupPscData) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupPscData clone() { + return (NetworkEndpointGroupPscData) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsAttachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsAttachEndpointsRequest.java new file mode 100644 index 00000000000..5bf626b3afb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsAttachEndpointsRequest.java @@ -0,0 +1,72 @@ +/* + * 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 NetworkEndpointGroupsAttachEndpointsRequest. + * + *

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 NetworkEndpointGroupsAttachEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of network endpoints to be attached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpoints; + + static { + // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); + } + + /** + * The list of network endpoints to be attached. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpoints() { + return networkEndpoints; + } + + /** + * The list of network endpoints to be attached. + * @param networkEndpoints networkEndpoints or {@code null} for none + */ + public NetworkEndpointGroupsAttachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { + this.networkEndpoints = networkEndpoints; + return this; + } + + @Override + public NetworkEndpointGroupsAttachEndpointsRequest set(String fieldName, Object value) { + return (NetworkEndpointGroupsAttachEndpointsRequest) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupsAttachEndpointsRequest clone() { + return (NetworkEndpointGroupsAttachEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsDetachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsDetachEndpointsRequest.java new file mode 100644 index 00000000000..fb620a57b8b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsDetachEndpointsRequest.java @@ -0,0 +1,72 @@ +/* + * 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 NetworkEndpointGroupsDetachEndpointsRequest. + * + *

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 NetworkEndpointGroupsDetachEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of network endpoints to be detached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpoints; + + static { + // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); + } + + /** + * The list of network endpoints to be detached. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpoints() { + return networkEndpoints; + } + + /** + * The list of network endpoints to be detached. + * @param networkEndpoints networkEndpoints or {@code null} for none + */ + public NetworkEndpointGroupsDetachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { + this.networkEndpoints = networkEndpoints; + return this; + } + + @Override + public NetworkEndpointGroupsDetachEndpointsRequest set(String fieldName, Object value) { + return (NetworkEndpointGroupsDetachEndpointsRequest) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupsDetachEndpointsRequest clone() { + return (NetworkEndpointGroupsDetachEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListEndpointsRequest.java new file mode 100644 index 00000000000..268b53c55de --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListEndpointsRequest.java @@ -0,0 +1,72 @@ +/* + * 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 NetworkEndpointGroupsListEndpointsRequest. + * + *

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 NetworkEndpointGroupsListEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional query parameter for showing the health status of each network endpoint. Valid options + * are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints + * will not be provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * Optional query parameter for showing the health status of each network endpoint. Valid options + * are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints + * will not be provided. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * Optional query parameter for showing the health status of each network endpoint. Valid options + * are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints + * will not be provided. + * @param healthStatus healthStatus or {@code null} for none + */ + public NetworkEndpointGroupsListEndpointsRequest setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + @Override + public NetworkEndpointGroupsListEndpointsRequest set(String fieldName, Object value) { + return (NetworkEndpointGroupsListEndpointsRequest) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupsListEndpointsRequest clone() { + return (NetworkEndpointGroupsListEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java new file mode 100644 index 00000000000..33de6eafa3f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -0,0 +1,359 @@ +/* + * 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 NetworkEndpointGroupsListNetworkEndpoints. + * + *

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 NetworkEndpointGroupsListNetworkEndpoints extends com.google.api.client.json.GenericJson { + + /** + * [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 NetworkEndpointWithHealthStatus resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in + * the specified network endpoint group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NetworkEndpointGroupsListNetworkEndpoints setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkEndpointWithHealthStatus resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NetworkEndpointWithHealthStatus resources. + * @param items items or {@code null} for none + */ + public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in + * the specified network endpoint group. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is + * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in + * the specified network endpoint group. + * @param kind kind or {@code null} for none + */ + public NetworkEndpointGroupsListNetworkEndpoints setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkEndpointGroupsListNetworkEndpoints setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + 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 NetworkEndpointGroupsListNetworkEndpoints setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkEndpointGroupsListNetworkEndpoints set(String fieldName, Object value) { + return (NetworkEndpointGroupsListNetworkEndpoints) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupsListNetworkEndpoints clone() { + return (NetworkEndpointGroupsListNetworkEndpoints) 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 NetworkEndpointGroupsListNetworkEndpointsWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsScopedList.java new file mode 100644 index 00000000000..35db27e00ae --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 NetworkEndpointGroupsScopedList. + * + *

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 NetworkEndpointGroupsScopedList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpointGroups; + + static { + // hack to force ProGuard to consider NetworkEndpointGroup 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(NetworkEndpointGroup.class); + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of network endpoint + * groups when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpointGroups() { + return networkEndpointGroups; + } + + /** + * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * @param networkEndpointGroups networkEndpointGroups or {@code null} for none + */ + public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List networkEndpointGroups) { + this.networkEndpointGroups = networkEndpointGroups; + return this; + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of network endpoint + * groups when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of network endpoint + * groups when the list is empty. + * @param warning warning or {@code null} for none + */ + public NetworkEndpointGroupsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkEndpointGroupsScopedList set(String fieldName, Object value) { + return (NetworkEndpointGroupsScopedList) super.set(fieldName, value); + } + + @Override + public NetworkEndpointGroupsScopedList clone() { + return (NetworkEndpointGroupsScopedList) super.clone(); + } + + /** + * Output only. [Output Only] An informational warning that replaces the list of network endpoint + * groups when the list is empty. + */ + 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 NetworkEndpointGroupsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointWithHealthStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointWithHealthStatus.java new file mode 100644 index 00000000000..71e2c4c66ff --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkEndpointWithHealthStatus.java @@ -0,0 +1,102 @@ +/* + * 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 NetworkEndpointWithHealthStatus. + * + *

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 NetworkEndpointWithHealthStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] The health status of network endpoint. + * + * Optional. Displayed only if the network endpoint has centralized health checking configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healths; + + static { + // hack to force ProGuard to consider HealthStatusForNetworkEndpoint 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(HealthStatusForNetworkEndpoint.class); + } + + /** + * Output only. [Output only] The network endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkEndpoint networkEndpoint; + + /** + * Output only. [Output only] The health status of network endpoint. + * + * Optional. Displayed only if the network endpoint has centralized health checking configured. + * @return value or {@code null} for none + */ + public java.util.List getHealths() { + return healths; + } + + /** + * Output only. [Output only] The health status of network endpoint. + * + * Optional. Displayed only if the network endpoint has centralized health checking configured. + * @param healths healths or {@code null} for none + */ + public NetworkEndpointWithHealthStatus setHealths(java.util.List healths) { + this.healths = healths; + return this; + } + + /** + * Output only. [Output only] The network endpoint. + * @return value or {@code null} for none + */ + public NetworkEndpoint getNetworkEndpoint() { + return networkEndpoint; + } + + /** + * Output only. [Output only] The network endpoint. + * @param networkEndpoint networkEndpoint or {@code null} for none + */ + public NetworkEndpointWithHealthStatus setNetworkEndpoint(NetworkEndpoint networkEndpoint) { + this.networkEndpoint = networkEndpoint; + return this; + } + + @Override + public NetworkEndpointWithHealthStatus set(String fieldName, Object value) { + return (NetworkEndpointWithHealthStatus) super.set(fieldName, value); + } + + @Override + public NetworkEndpointWithHealthStatus clone() { + return (NetworkEndpointWithHealthStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkFirewallPolicyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkFirewallPolicyAggregatedList.java new file mode 100644 index 00000000000..c3fd9c5c0d4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkFirewallPolicyAggregatedList.java @@ -0,0 +1,410 @@ +/* + * 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 NetworkFirewallPolicyAggregatedList. + * + *

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 NetworkFirewallPolicyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 FirewallPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider FirewallPoliciesScopedList 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(FirewallPoliciesScopedList.class); + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 NetworkFirewallPolicyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of FirewallPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of FirewallPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public NetworkFirewallPolicyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. + * @param kind kind or {@code null} for none + */ + public NetworkFirewallPolicyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkFirewallPolicyAggregatedList 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 NetworkFirewallPolicyAggregatedList 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 NetworkFirewallPolicyAggregatedList 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 NetworkFirewallPolicyAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkFirewallPolicyAggregatedList set(String fieldName, Object value) { + return (NetworkFirewallPolicyAggregatedList) super.set(fieldName, value); + } + + @Override + public NetworkFirewallPolicyAggregatedList clone() { + return (NetworkFirewallPolicyAggregatedList) 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 NetworkFirewallPolicyAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkInterface.java new file mode 100644 index 00000000000..564619af3a8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -0,0 +1,757 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A network interface resource attached to an instance. + * + *

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 NetworkInterface extends com.google.api.client.json.GenericJson { + + /** + * An array of configurations for this interface. Currently, only one access config, + * ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will + * have no external internet access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessConfigs; + + static { + // hack to force ProGuard to consider AccessConfig 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(AccessConfig.class); + } + + /** + * An array of alias IP ranges for this network interface. You can only specify this field for + * network interfaces in VPC networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List aliasIpRanges; + + static { + // hack to force ProGuard to consider AliasIpRange 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(AliasIpRange.class); + } + + /** + * An array of alias IPv6 ranges for this network interface. You can only specify this field for + * network interfaces in VPC networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List aliasIpv6Ranges; + + static { + // hack to force ProGuard to consider AliasIpRange 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(AliasIpRange.class); + } + + /** + * Optional. If true, DNS resolution will be enabled over this interface. Only valid with + * network_attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableVpcScopedDns; + + /** + * Fingerprint hash of contents stored in this network interface. This field will be ignored when + * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided + * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the + * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Indicate whether igmp query is enabled on the network interface or not. If enabled, also + * indicates the version of IGMP supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String igmpQuery; + + /** + * The prefix length of the primary internal IPv6 range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer internalIpv6PrefixLength; + + /** + * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access + * config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this + * instance will have no external IPv6 Internet access. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ipv6AccessConfigs; + + static { + // hack to force ProGuard to consider AccessConfig 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(AccessConfig.class); + } + + /** + * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed + * from the Internet. This field is always inherited from its subnetwork. + * + * Valid only if stackType is IPV4_IPV6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6AccessType; + + /** + * An IPv6 internal network address for this network interface. To use a static internal IP + * address, it must be unused and in the same region as the instance's zone. If not specified, + * Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network + * interfaces. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] The name of the network interface, which is generated by the server. For a VM, + * the network interface uses the nicN naming format. Where N is a value between 0 and7. The + * default interface value is nic0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * URL of the VPC network resource for this instance. When creating an instance, if neither the + * network nor the subnetwork is specified, the default network global/networks/default is used. + * If the selected project doesn't have the default network, you must specify a network or subnet. + * If the network is not specified but the subnetwork is specified, the network is inferred. + * + * If you specify this property, you can specify the network as a full or partial URL. For + * example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - + * projects/project/global/networks/network - global/networks/default + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * The URL of the network attachment that this interface should connect to in the following + * format: + * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** + * An IPv4 internal IP address to assign to the instance for this network interface. If not + * specified by the user, an unused internal IP is assigned by the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkIP; + + /** + * The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nicType; + + /** + * Name of the parent network interface of a dynamic network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parentNicName; + + /** + * The networking queue count that's specified by users for the network interface. Both Rx and Tx + * queues will be set to this number. It'll be empty if not specified by the users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer queueCount; + + /** + * Optional. Producer Service's Service class Id for the region of this network interface. Can + * only be used with network_attachment. It is not possible to use on its own however, + * network_attachment can be used without service_class_id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceClassId; + + /** + * The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To + * assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. + * + * This field can be both set at instance creation and update network interface operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, + * do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is + * optional. If the network is in custom subnet mode, specifying the subnetwork is required. If + * you specify this field, you can specify the subnetwork as a full or partial URL. For example, + * the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork + * - regions/region/subnetworks/subnetwork + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 + * inclusively. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer vlan; + + /** + * An array of configurations for this interface. Currently, only one access config, + * ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will + * have no external internet access. + * @return value or {@code null} for none + */ + public java.util.List getAccessConfigs() { + return accessConfigs; + } + + /** + * An array of configurations for this interface. Currently, only one access config, + * ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will + * have no external internet access. + * @param accessConfigs accessConfigs or {@code null} for none + */ + public NetworkInterface setAccessConfigs(java.util.List accessConfigs) { + this.accessConfigs = accessConfigs; + return this; + } + + /** + * An array of alias IP ranges for this network interface. You can only specify this field for + * network interfaces in VPC networks. + * @return value or {@code null} for none + */ + public java.util.List getAliasIpRanges() { + return aliasIpRanges; + } + + /** + * An array of alias IP ranges for this network interface. You can only specify this field for + * network interfaces in VPC networks. + * @param aliasIpRanges aliasIpRanges or {@code null} for none + */ + public NetworkInterface setAliasIpRanges(java.util.List aliasIpRanges) { + this.aliasIpRanges = aliasIpRanges; + return this; + } + + /** + * An array of alias IPv6 ranges for this network interface. You can only specify this field for + * network interfaces in VPC networks. + * @return value or {@code null} for none + */ + public java.util.List getAliasIpv6Ranges() { + return aliasIpv6Ranges; + } + + /** + * An array of alias IPv6 ranges for this network interface. You can only specify this field for + * network interfaces in VPC networks. + * @param aliasIpv6Ranges aliasIpv6Ranges or {@code null} for none + */ + public NetworkInterface setAliasIpv6Ranges(java.util.List aliasIpv6Ranges) { + this.aliasIpv6Ranges = aliasIpv6Ranges; + return this; + } + + /** + * Optional. If true, DNS resolution will be enabled over this interface. Only valid with + * network_attachment. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableVpcScopedDns() { + return enableVpcScopedDns; + } + + /** + * Optional. If true, DNS resolution will be enabled over this interface. Only valid with + * network_attachment. + * @param enableVpcScopedDns enableVpcScopedDns or {@code null} for none + */ + public NetworkInterface setEnableVpcScopedDns(java.lang.Boolean enableVpcScopedDns) { + this.enableVpcScopedDns = enableVpcScopedDns; + return this; + } + + /** + * Fingerprint hash of contents stored in this network interface. This field will be ignored when + * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided + * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the + * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint hash of contents stored in this network interface. This field will be ignored when + * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided + * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the + * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint hash of contents stored in this network interface. This field will be ignored when + * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided + * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the + * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public NetworkInterface setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint hash of contents stored in this network interface. This field will be ignored when + * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided + * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the + * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public NetworkInterface encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Indicate whether igmp query is enabled on the network interface or not. If enabled, also + * indicates the version of IGMP supported. + * @return value or {@code null} for none + */ + public java.lang.String getIgmpQuery() { + return igmpQuery; + } + + /** + * Indicate whether igmp query is enabled on the network interface or not. If enabled, also + * indicates the version of IGMP supported. + * @param igmpQuery igmpQuery or {@code null} for none + */ + public NetworkInterface setIgmpQuery(java.lang.String igmpQuery) { + this.igmpQuery = igmpQuery; + return this; + } + + /** + * The prefix length of the primary internal IPv6 range. + * @return value or {@code null} for none + */ + public java.lang.Integer getInternalIpv6PrefixLength() { + return internalIpv6PrefixLength; + } + + /** + * The prefix length of the primary internal IPv6 range. + * @param internalIpv6PrefixLength internalIpv6PrefixLength or {@code null} for none + */ + public NetworkInterface setInternalIpv6PrefixLength(java.lang.Integer internalIpv6PrefixLength) { + this.internalIpv6PrefixLength = internalIpv6PrefixLength; + return this; + } + + /** + * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access + * config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this + * instance will have no external IPv6 Internet access. + * @return value or {@code null} for none + */ + public java.util.List getIpv6AccessConfigs() { + return ipv6AccessConfigs; + } + + /** + * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access + * config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this + * instance will have no external IPv6 Internet access. + * @param ipv6AccessConfigs ipv6AccessConfigs or {@code null} for none + */ + public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6AccessConfigs) { + this.ipv6AccessConfigs = ipv6AccessConfigs; + return this; + } + + /** + * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed + * from the Internet. This field is always inherited from its subnetwork. + * + * Valid only if stackType is IPV4_IPV6. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6AccessType() { + return ipv6AccessType; + } + + /** + * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed + * from the Internet. This field is always inherited from its subnetwork. + * + * Valid only if stackType is IPV4_IPV6. + * @param ipv6AccessType ipv6AccessType or {@code null} for none + */ + public NetworkInterface setIpv6AccessType(java.lang.String ipv6AccessType) { + this.ipv6AccessType = ipv6AccessType; + return this; + } + + /** + * An IPv6 internal network address for this network interface. To use a static internal IP + * address, it must be unused and in the same region as the instance's zone. If not specified, + * Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * An IPv6 internal network address for this network interface. To use a static internal IP + * address, it must be unused and in the same region as the instance's zone. If not specified, + * Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. + * @param ipv6Address ipv6Address or {@code null} for none + */ + public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network + * interfaces. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network + * interfaces. + * @param kind kind or {@code null} for none + */ + public NetworkInterface setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] The name of the network interface, which is generated by the server. For a VM, + * the network interface uses the nicN naming format. Where N is a value between 0 and7. The + * default interface value is nic0. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] The name of the network interface, which is generated by the server. For a VM, + * the network interface uses the nicN naming format. Where N is a value between 0 and7. The + * default interface value is nic0. + * @param name name or {@code null} for none + */ + public NetworkInterface setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * URL of the VPC network resource for this instance. When creating an instance, if neither the + * network nor the subnetwork is specified, the default network global/networks/default is used. + * If the selected project doesn't have the default network, you must specify a network or subnet. + * If the network is not specified but the subnetwork is specified, the network is inferred. + * + * If you specify this property, you can specify the network as a full or partial URL. For + * example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - + * projects/project/global/networks/network - global/networks/default + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * URL of the VPC network resource for this instance. When creating an instance, if neither the + * network nor the subnetwork is specified, the default network global/networks/default is used. + * If the selected project doesn't have the default network, you must specify a network or subnet. + * If the network is not specified but the subnetwork is specified, the network is inferred. + * + * If you specify this property, you can specify the network as a full or partial URL. For + * example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - + * projects/project/global/networks/network - global/networks/default + * @param network network or {@code null} for none + */ + public NetworkInterface setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * The URL of the network attachment that this interface should connect to in the following + * format: + * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** + * The URL of the network attachment that this interface should connect to in the following + * format: + * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. + * @param networkAttachment networkAttachment or {@code null} for none + */ + public NetworkInterface setNetworkAttachment(java.lang.String networkAttachment) { + this.networkAttachment = networkAttachment; + return this; + } + + /** + * An IPv4 internal IP address to assign to the instance for this network interface. If not + * specified by the user, an unused internal IP is assigned by the system. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkIP() { + return networkIP; + } + + /** + * An IPv4 internal IP address to assign to the instance for this network interface. If not + * specified by the user, an unused internal IP is assigned by the system. + * @param networkIP networkIP or {@code null} for none + */ + public NetworkInterface setNetworkIP(java.lang.String networkIP) { + this.networkIP = networkIP; + return this; + } + + /** + * The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. + * @return value or {@code null} for none + */ + public java.lang.String getNicType() { + return nicType; + } + + /** + * The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. + * @param nicType nicType or {@code null} for none + */ + public NetworkInterface setNicType(java.lang.String nicType) { + this.nicType = nicType; + return this; + } + + /** + * Name of the parent network interface of a dynamic network interface. + * @return value or {@code null} for none + */ + public java.lang.String getParentNicName() { + return parentNicName; + } + + /** + * Name of the parent network interface of a dynamic network interface. + * @param parentNicName parentNicName or {@code null} for none + */ + public NetworkInterface setParentNicName(java.lang.String parentNicName) { + this.parentNicName = parentNicName; + return this; + } + + /** + * The networking queue count that's specified by users for the network interface. Both Rx and Tx + * queues will be set to this number. It'll be empty if not specified by the users. + * @return value or {@code null} for none + */ + public java.lang.Integer getQueueCount() { + return queueCount; + } + + /** + * The networking queue count that's specified by users for the network interface. Both Rx and Tx + * queues will be set to this number. It'll be empty if not specified by the users. + * @param queueCount queueCount or {@code null} for none + */ + public NetworkInterface setQueueCount(java.lang.Integer queueCount) { + this.queueCount = queueCount; + return this; + } + + /** + * Optional. Producer Service's Service class Id for the region of this network interface. Can + * only be used with network_attachment. It is not possible to use on its own however, + * network_attachment can be used without service_class_id. + * @return value or {@code null} for none + */ + public java.lang.String getServiceClassId() { + return serviceClassId; + } + + /** + * Optional. Producer Service's Service class Id for the region of this network interface. Can + * only be used with network_attachment. It is not possible to use on its own however, + * network_attachment can be used without service_class_id. + * @param serviceClassId serviceClassId or {@code null} for none + */ + public NetworkInterface setServiceClassId(java.lang.String serviceClassId) { + this.serviceClassId = serviceClassId; + return this; + } + + /** + * The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To + * assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. + * + * This field can be both set at instance creation and update network interface operations. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To + * assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. + * + * This field can be both set at instance creation and update network interface operations. + * @param stackType stackType or {@code null} for none + */ + public NetworkInterface setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + /** + * The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, + * do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is + * optional. If the network is in custom subnet mode, specifying the subnetwork is required. If + * you specify this field, you can specify the subnetwork as a full or partial URL. For example, + * the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork + * - regions/region/subnetworks/subnetwork + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, + * do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is + * optional. If the network is in custom subnet mode, specifying the subnetwork is required. If + * you specify this field, you can specify the subnetwork as a full or partial URL. For example, + * the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork + * - regions/region/subnetworks/subnetwork + * @param subnetwork subnetwork or {@code null} for none + */ + public NetworkInterface setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 + * inclusively. + * @return value or {@code null} for none + */ + public java.lang.Integer getVlan() { + return vlan; + } + + /** + * VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 + * inclusively. + * @param vlan vlan or {@code null} for none + */ + public NetworkInterface setVlan(java.lang.Integer vlan) { + this.vlan = vlan; + return this; + } + + @Override + public NetworkInterface set(String fieldName, Object value) { + return (NetworkInterface) super.set(fieldName, value); + } + + @Override + public NetworkInterface clone() { + return (NetworkInterface) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkList.java new file mode 100644 index 00000000000..e4afb6747d2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of networks. + * + *

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 NetworkList extends com.google.api.client.json.GenericJson { + + /** + * [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 Network 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 Network 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(Network.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NetworkList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Network resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Network resources. + * @param items items or {@code null} for none + */ + public NetworkList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * @param kind kind or {@code null} for none + */ + public NetworkList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkList 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 NetworkList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NetworkList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkList set(String fieldName, Object value) { + return (NetworkList) super.set(fieldName, value); + } + + @Override + public NetworkList clone() { + return (NetworkList) 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 NetworkListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkParams.java new file mode 100644 index 00000000000..e4934c9357f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional network parameters. + * + *

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 NetworkParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public NetworkParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public NetworkParams set(String fieldName, Object value) { + return (NetworkParams) super.set(fieldName, value); + } + + @Override + public NetworkParams clone() { + return (NetworkParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeering.java new file mode 100644 index 00000000000..084c972666c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -0,0 +1,431 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A network peering attached to a network resource. The message includes the peering name, peer + * network, peering state, and a flag indicating whether Google Compute Engine should automatically + * create routes for the peering. + * + *

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 NetworkPeering extends com.google.api.client.json.GenericJson { + + /** + * This field will be deprecated soon. Use theexchange_subnet_routes field instead. Indicates + * whether full mesh connectivity is created and managed automatically between peered networks. + * Currently this field should always be true since Google Compute Engine will automatically + * create and manage subnetwork routes between two networks when peering state isACTIVE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoCreateRoutes; + + /** + * Output only. [Output Only] The effective state of the peering connection as a whole. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeeringConnectionStatus connectionStatus; + + /** + * Indicates whether full mesh connectivity is created and managed automatically between peered + * networks. Currently this field should always be true since Google Compute Engine will + * automatically create and manage subnetwork routes between two networks when peering state + * isACTIVE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exchangeSubnetRoutes; + + /** + * Whether to export the custom routes to peer network. The default value is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exportCustomRoutes; + + /** + * Whether subnet routes with public IP range are exported. The default value is true, all subnet + * routes are exported.IPv4 special-use ranges are always exported to peers and are not controlled + * by this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exportSubnetRoutesWithPublicIp; + + /** + * Whether to import the custom routes from peer network. The default value is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean importCustomRoutes; + + /** + * Whether subnet routes with public IP range are imported. The default value is false.IPv4 + * special-use ranges are always imported from peers and are not controlled by this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean importSubnetRoutesWithPublicIp; + + /** + * Name of this peering. Provided by the client when the peering is created. The name must comply + * withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression + * `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the + * 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; + + /** + * The URL of the peer network. It can be either full URL or partial URL. The peer network may + * belong to a different project. If the partial URL does not contain project, it is assumed that + * the peer network is in the same project as the current network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer peerMtu; + + /** + * Which IP version(s) of traffic and routes are allowed to be imported or exported between peer + * networks. The default value is IPV4_ONLY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Output only. [Output Only] State for the peering. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] Details about the current state of the peering. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stateDetails; + + /** + * The update strategy determines the semantics for updates and deletes to the peering connection + * configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStrategy; + + /** + * This field will be deprecated soon. Use theexchange_subnet_routes field instead. Indicates + * whether full mesh connectivity is created and managed automatically between peered networks. + * Currently this field should always be true since Google Compute Engine will automatically + * create and manage subnetwork routes between two networks when peering state isACTIVE. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoCreateRoutes() { + return autoCreateRoutes; + } + + /** + * This field will be deprecated soon. Use theexchange_subnet_routes field instead. Indicates + * whether full mesh connectivity is created and managed automatically between peered networks. + * Currently this field should always be true since Google Compute Engine will automatically + * create and manage subnetwork routes between two networks when peering state isACTIVE. + * @param autoCreateRoutes autoCreateRoutes or {@code null} for none + */ + public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { + this.autoCreateRoutes = autoCreateRoutes; + return this; + } + + /** + * Output only. [Output Only] The effective state of the peering connection as a whole. + * @return value or {@code null} for none + */ + public NetworkPeeringConnectionStatus getConnectionStatus() { + return connectionStatus; + } + + /** + * Output only. [Output Only] The effective state of the peering connection as a whole. + * @param connectionStatus connectionStatus or {@code null} for none + */ + public NetworkPeering setConnectionStatus(NetworkPeeringConnectionStatus connectionStatus) { + this.connectionStatus = connectionStatus; + return this; + } + + /** + * Indicates whether full mesh connectivity is created and managed automatically between peered + * networks. Currently this field should always be true since Google Compute Engine will + * automatically create and manage subnetwork routes between two networks when peering state + * isACTIVE. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExchangeSubnetRoutes() { + return exchangeSubnetRoutes; + } + + /** + * Indicates whether full mesh connectivity is created and managed automatically between peered + * networks. Currently this field should always be true since Google Compute Engine will + * automatically create and manage subnetwork routes between two networks when peering state + * isACTIVE. + * @param exchangeSubnetRoutes exchangeSubnetRoutes or {@code null} for none + */ + public NetworkPeering setExchangeSubnetRoutes(java.lang.Boolean exchangeSubnetRoutes) { + this.exchangeSubnetRoutes = exchangeSubnetRoutes; + return this; + } + + /** + * Whether to export the custom routes to peer network. The default value is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExportCustomRoutes() { + return exportCustomRoutes; + } + + /** + * Whether to export the custom routes to peer network. The default value is false. + * @param exportCustomRoutes exportCustomRoutes or {@code null} for none + */ + public NetworkPeering setExportCustomRoutes(java.lang.Boolean exportCustomRoutes) { + this.exportCustomRoutes = exportCustomRoutes; + return this; + } + + /** + * Whether subnet routes with public IP range are exported. The default value is true, all subnet + * routes are exported.IPv4 special-use ranges are always exported to peers and are not controlled + * by this field. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExportSubnetRoutesWithPublicIp() { + return exportSubnetRoutesWithPublicIp; + } + + /** + * Whether subnet routes with public IP range are exported. The default value is true, all subnet + * routes are exported.IPv4 special-use ranges are always exported to peers and are not controlled + * by this field. + * @param exportSubnetRoutesWithPublicIp exportSubnetRoutesWithPublicIp or {@code null} for none + */ + public NetworkPeering setExportSubnetRoutesWithPublicIp(java.lang.Boolean exportSubnetRoutesWithPublicIp) { + this.exportSubnetRoutesWithPublicIp = exportSubnetRoutesWithPublicIp; + return this; + } + + /** + * Whether to import the custom routes from peer network. The default value is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImportCustomRoutes() { + return importCustomRoutes; + } + + /** + * Whether to import the custom routes from peer network. The default value is false. + * @param importCustomRoutes importCustomRoutes or {@code null} for none + */ + public NetworkPeering setImportCustomRoutes(java.lang.Boolean importCustomRoutes) { + this.importCustomRoutes = importCustomRoutes; + return this; + } + + /** + * Whether subnet routes with public IP range are imported. The default value is false.IPv4 + * special-use ranges are always imported from peers and are not controlled by this field. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImportSubnetRoutesWithPublicIp() { + return importSubnetRoutesWithPublicIp; + } + + /** + * Whether subnet routes with public IP range are imported. The default value is false.IPv4 + * special-use ranges are always imported from peers and are not controlled by this field. + * @param importSubnetRoutesWithPublicIp importSubnetRoutesWithPublicIp or {@code null} for none + */ + public NetworkPeering setImportSubnetRoutesWithPublicIp(java.lang.Boolean importSubnetRoutesWithPublicIp) { + this.importSubnetRoutesWithPublicIp = importSubnetRoutesWithPublicIp; + return this; + } + + /** + * Name of this peering. Provided by the client when the peering is created. The name must comply + * withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression + * `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the + * 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 this peering. Provided by the client when the peering is created. The name must comply + * withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression + * `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the + * 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 NetworkPeering setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The URL of the peer network. It can be either full URL or partial URL. The peer network may + * belong to a different project. If the partial URL does not contain project, it is assumed that + * the peer network is in the same project as the current network. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * The URL of the peer network. It can be either full URL or partial URL. The peer network may + * belong to a different project. If the partial URL does not contain project, it is assumed that + * the peer network is in the same project as the current network. + * @param network network or {@code null} for none + */ + public NetworkPeering setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * @return value or {@code null} for none + */ + public java.lang.Integer getPeerMtu() { + return peerMtu; + } + + /** + * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * @param peerMtu peerMtu or {@code null} for none + */ + public NetworkPeering setPeerMtu(java.lang.Integer peerMtu) { + this.peerMtu = peerMtu; + return this; + } + + /** + * Which IP version(s) of traffic and routes are allowed to be imported or exported between peer + * networks. The default value is IPV4_ONLY. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * Which IP version(s) of traffic and routes are allowed to be imported or exported between peer + * networks. The default value is IPV4_ONLY. + * @param stackType stackType or {@code null} for none + */ + public NetworkPeering setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + /** + * Output only. [Output Only] State for the peering. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] State for the peering. + * @param state state or {@code null} for none + */ + public NetworkPeering setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] Details about the current state of the peering. + * @return value or {@code null} for none + */ + public java.lang.String getStateDetails() { + return stateDetails; + } + + /** + * Output only. [Output Only] Details about the current state of the peering. + * @param stateDetails stateDetails or {@code null} for none + */ + public NetworkPeering setStateDetails(java.lang.String stateDetails) { + this.stateDetails = stateDetails; + return this; + } + + /** + * The update strategy determines the semantics for updates and deletes to the peering connection + * configuration. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStrategy() { + return updateStrategy; + } + + /** + * The update strategy determines the semantics for updates and deletes to the peering connection + * configuration. + * @param updateStrategy updateStrategy or {@code null} for none + */ + public NetworkPeering setUpdateStrategy(java.lang.String updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + + @Override + public NetworkPeering set(String fieldName, Object value) { + return (NetworkPeering) super.set(fieldName, value); + } + + @Override + public NetworkPeering clone() { + return (NetworkPeering) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java new file mode 100644 index 00000000000..3c466657dea --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatus.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Describes the state of a peering connection, not just the local peering. This field + * provides information about the effective settings for the connection as a whole, including + * pending delete/update requests for CONSENSUS peerings. + * + *

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 NetworkPeeringConnectionStatus extends com.google.api.client.json.GenericJson { + + /** + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeeringConnectionStatusConsensusState consensusState; + + /** + * The active connectivity settings for the peering connection based on the settings of the + * network peerings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeeringConnectionStatusTrafficConfiguration trafficConfiguration; + + /** + * The update strategy determines the update/delete semantics for this peering connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStrategy; + + /** + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. + * @return value or {@code null} for none + */ + public NetworkPeeringConnectionStatusConsensusState getConsensusState() { + return consensusState; + } + + /** + * The consensus state contains information about the status of update and delete for a consensus + * peering connection. + * @param consensusState consensusState or {@code null} for none + */ + public NetworkPeeringConnectionStatus setConsensusState(NetworkPeeringConnectionStatusConsensusState consensusState) { + this.consensusState = consensusState; + return this; + } + + /** + * The active connectivity settings for the peering connection based on the settings of the + * network peerings. + * @return value or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration getTrafficConfiguration() { + return trafficConfiguration; + } + + /** + * The active connectivity settings for the peering connection based on the settings of the + * network peerings. + * @param trafficConfiguration trafficConfiguration or {@code null} for none + */ + public NetworkPeeringConnectionStatus setTrafficConfiguration(NetworkPeeringConnectionStatusTrafficConfiguration trafficConfiguration) { + this.trafficConfiguration = trafficConfiguration; + return this; + } + + /** + * The update strategy determines the update/delete semantics for this peering connection. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStrategy() { + return updateStrategy; + } + + /** + * The update strategy determines the update/delete semantics for this peering connection. + * @param updateStrategy updateStrategy or {@code null} for none + */ + public NetworkPeeringConnectionStatus setUpdateStrategy(java.lang.String updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + + @Override + public NetworkPeeringConnectionStatus set(String fieldName, Object value) { + return (NetworkPeeringConnectionStatus) super.set(fieldName, value); + } + + @Override + public NetworkPeeringConnectionStatus clone() { + return (NetworkPeeringConnectionStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java new file mode 100644 index 00000000000..180610ddc3d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusConsensusState.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The status of update/delete for a consensus peering connection. Only set when + * connection_status.update_strategy isCONSENSUS or a network peering is proposing to update the + * strategy to CONSENSUS. + * + *

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 NetworkPeeringConnectionStatusConsensusState extends com.google.api.client.json.GenericJson { + + /** + * The status of the delete request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deleteStatus; + + /** + * The status of the update request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateStatus; + + /** + * The status of the delete request. + * @return value or {@code null} for none + */ + public java.lang.String getDeleteStatus() { + return deleteStatus; + } + + /** + * The status of the delete request. + * @param deleteStatus deleteStatus or {@code null} for none + */ + public NetworkPeeringConnectionStatusConsensusState setDeleteStatus(java.lang.String deleteStatus) { + this.deleteStatus = deleteStatus; + return this; + } + + /** + * The status of the update request. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateStatus() { + return updateStatus; + } + + /** + * The status of the update request. + * @param updateStatus updateStatus or {@code null} for none + */ + public NetworkPeeringConnectionStatusConsensusState setUpdateStatus(java.lang.String updateStatus) { + this.updateStatus = updateStatus; + return this; + } + + @Override + public NetworkPeeringConnectionStatusConsensusState set(String fieldName, Object value) { + return (NetworkPeeringConnectionStatusConsensusState) super.set(fieldName, value); + } + + @Override + public NetworkPeeringConnectionStatusConsensusState clone() { + return (NetworkPeeringConnectionStatusConsensusState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java new file mode 100644 index 00000000000..0971f683c6b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPeeringConnectionStatusTrafficConfiguration.java @@ -0,0 +1,162 @@ +/* + * 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 NetworkPeeringConnectionStatusTrafficConfiguration. + * + *

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 NetworkPeeringConnectionStatusTrafficConfiguration extends com.google.api.client.json.GenericJson { + + /** + * Whether custom routes are being exported to the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exportCustomRoutesToPeer; + + /** + * Whether subnet routes with public IP ranges are being exported to the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer; + + /** + * Whether custom routes are being imported from the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean importCustomRoutesFromPeer; + + /** + * Whether subnet routes with public IP ranges are being imported from the peer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer; + + /** + * Which IP version(s) of traffic and routes are being imported or exported between peer networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Whether custom routes are being exported to the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExportCustomRoutesToPeer() { + return exportCustomRoutesToPeer; + } + + /** + * Whether custom routes are being exported to the peer network. + * @param exportCustomRoutesToPeer exportCustomRoutesToPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setExportCustomRoutesToPeer(java.lang.Boolean exportCustomRoutesToPeer) { + this.exportCustomRoutesToPeer = exportCustomRoutesToPeer; + return this; + } + + /** + * Whether subnet routes with public IP ranges are being exported to the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExportSubnetRoutesWithPublicIpToPeer() { + return exportSubnetRoutesWithPublicIpToPeer; + } + + /** + * Whether subnet routes with public IP ranges are being exported to the peer network. + * @param exportSubnetRoutesWithPublicIpToPeer exportSubnetRoutesWithPublicIpToPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setExportSubnetRoutesWithPublicIpToPeer(java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer) { + this.exportSubnetRoutesWithPublicIpToPeer = exportSubnetRoutesWithPublicIpToPeer; + return this; + } + + /** + * Whether custom routes are being imported from the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImportCustomRoutesFromPeer() { + return importCustomRoutesFromPeer; + } + + /** + * Whether custom routes are being imported from the peer network. + * @param importCustomRoutesFromPeer importCustomRoutesFromPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setImportCustomRoutesFromPeer(java.lang.Boolean importCustomRoutesFromPeer) { + this.importCustomRoutesFromPeer = importCustomRoutesFromPeer; + return this; + } + + /** + * Whether subnet routes with public IP ranges are being imported from the peer network. + * @return value or {@code null} for none + */ + public java.lang.Boolean getImportSubnetRoutesWithPublicIpFromPeer() { + return importSubnetRoutesWithPublicIpFromPeer; + } + + /** + * Whether subnet routes with public IP ranges are being imported from the peer network. + * @param importSubnetRoutesWithPublicIpFromPeer importSubnetRoutesWithPublicIpFromPeer or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setImportSubnetRoutesWithPublicIpFromPeer(java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer) { + this.importSubnetRoutesWithPublicIpFromPeer = importSubnetRoutesWithPublicIpFromPeer; + return this; + } + + /** + * Which IP version(s) of traffic and routes are being imported or exported between peer networks. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * Which IP version(s) of traffic and routes are being imported or exported between peer networks. + * @param stackType stackType or {@code null} for none + */ + public NetworkPeeringConnectionStatusTrafficConfiguration setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + @Override + public NetworkPeeringConnectionStatusTrafficConfiguration set(String fieldName, Object value) { + return (NetworkPeeringConnectionStatusTrafficConfiguration) super.set(fieldName, value); + } + + @Override + public NetworkPeeringConnectionStatusTrafficConfiguration clone() { + return (NetworkPeeringConnectionStatusTrafficConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPerformanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPerformanceConfig.java new file mode 100644 index 00000000000..2ac58bdb307 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkPerformanceConfig.java @@ -0,0 +1,63 @@ +/* + * 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 NetworkPerformanceConfig. + * + *

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 NetworkPerformanceConfig extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String totalEgressBandwidthTier; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTotalEgressBandwidthTier() { + return totalEgressBandwidthTier; + } + + /** + * @param totalEgressBandwidthTier totalEgressBandwidthTier or {@code null} for none + */ + public NetworkPerformanceConfig setTotalEgressBandwidthTier(java.lang.String totalEgressBandwidthTier) { + this.totalEgressBandwidthTier = totalEgressBandwidthTier; + return this; + } + + @Override + public NetworkPerformanceConfig set(String fieldName, Object value) { + return (NetworkPerformanceConfig) super.set(fieldName, value); + } + + @Override + public NetworkPerformanceConfig clone() { + return (NetworkPerformanceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfile.java new file mode 100644 index 00000000000..0e3cfd5fd64 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -0,0 +1,288 @@ +/* + * 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; + +/** + * NetworkProfile represents a Google managed network profile 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 NetworkProfile extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 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. [Output Only] Features supported by the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkProfileNetworkFeatures features; + + /** + * 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] Type of the resource. Alwayscompute#networkProfile for network + * profiles. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Location to which the network is restricted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkProfileLocation location; + + /** + * Output only. [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] Type of the network profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkProfileProfileType profileType; + + /** + * 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NetworkProfile 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 NetworkProfile setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Features supported by the network. + * @return value or {@code null} for none + */ + public NetworkProfileNetworkFeatures getFeatures() { + return features; + } + + /** + * Output only. [Output Only] Features supported by the network. + * @param features features or {@code null} for none + */ + public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { + this.features = features; + 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 NetworkProfile setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network + * profiles. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network + * profiles. + * @param kind kind or {@code null} for none + */ + public NetworkProfile setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Location to which the network is restricted. + * @return value or {@code null} for none + */ + public NetworkProfileLocation getLocation() { + return location; + } + + /** + * Output only. [Output Only] Location to which the network is restricted. + * @param location location or {@code null} for none + */ + public NetworkProfile setLocation(NetworkProfileLocation location) { + this.location = location; + return this; + } + + /** + * Output only. [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public NetworkProfile setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Type of the network profile. + * @return value or {@code null} for none + */ + public NetworkProfileProfileType getProfileType() { + return profileType; + } + + /** + * Output only. [Output Only] Type of the network profile. + * @param profileType profileType or {@code null} for none + */ + public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { + this.profileType = profileType; + 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 NetworkProfile setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public NetworkProfile setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public NetworkProfile set(String fieldName, Object value) { + return (NetworkProfile) super.set(fieldName, value); + } + + @Override + public NetworkProfile clone() { + return (NetworkProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileLocation.java new file mode 100644 index 00000000000..8b56d5f79ce --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileLocation.java @@ -0,0 +1,84 @@ +/* + * 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 NetworkProfileLocation. + * + *

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 NetworkProfileLocation extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public NetworkProfileLocation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getScope() { + return scope; + } + + /** + * @param scope scope or {@code null} for none + */ + public NetworkProfileLocation setScope(java.lang.String scope) { + this.scope = scope; + return this; + } + + @Override + public NetworkProfileLocation set(String fieldName, Object value) { + return (NetworkProfileLocation) super.set(fieldName, value); + } + + @Override + public NetworkProfileLocation clone() { + return (NetworkProfileLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java new file mode 100644 index 00000000000..243b31e663f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -0,0 +1,957 @@ +/* + * 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 NetworkProfileNetworkFeatures. + * + *

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 NetworkProfileNetworkFeatures extends com.google.api.client.json.GenericJson { + + /** + * Specifies what address purposes are supported. If empty, all address purposes are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List addressPurposes; + + /** + * Specifies whether address creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowAddressCreation; + + /** + * Specifies whether alias IP ranges (and secondary address ranges) are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowAliasIpRanges; + + /** + * Specifies whether auto mode subnet creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowAutoModeSubnet; + + /** + * Specifies whether firewalls for Class D address ranges are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowClassDFirewalls; + + /** + * Specifies whether cloud NAT creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowCloudNat; + + /** + * Specifies whether cloud router creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowCloudRouter; + + /** + * Specifies whether default NIC attachment is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowDefaultNicAttachment; + + /** + * Specifies whether VMs are allowed to have external IP access on network interfaces connected to + * this VPC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowExternalIpAccess; + + /** + * Specifies whether firewall policy can be attached to the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowFirewallPolicy; + + /** + * Specifies whether Cloud Interconnect creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowInterconnect; + + /** + * Specifies whether IP forwarding is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowIpForwarding; + + /** + * Specifies whether cloud load balancing is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowLoadBalancing; + + /** + * Specifies whether multi-nic in the same network is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowMultiNicInSameNetwork; + + /** + * Specifies whether multi-nic in the same subnetwork is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowMultiNicInSameSubnetwork; + + /** + * Specifies whether multicast is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowMulticast; + + /** + * Specifies whether NCC is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowNcc; + + /** + * Specifies whether VM network migration is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowNetworkMigration; + + /** + * Specifies whether Packet Mirroring 1.0 is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowPacketMirroring; + + /** + * Specifies whether private Google access is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowPrivateGoogleAccess; + + /** + * Specifies whether PSC creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowPsc; + + /** + * Specifies whether unicast within the same network is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowSameNetworkUnicast; + + /** + * Specifies whether static route creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowStaticRoutes; + + /** + * Specifies whether sub interfaces are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowSubInterfaces; + + /** + * Specifies whether subnetwork creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowSubnetworkCreation; + + /** + * Specifies whether VPC firewall rules can be created under the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowVpcFirewallRules; + + /** + * Specifies whether VPC peering is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowVpcPeering; + + /** + * Specifies whether VPN creation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String allowVpn; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewallPolicyTypes; + + /** + * If set, limits the interface types that the network supports. If empty, all interface types are + * supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interfaceTypes; + + /** + * Specifies which type of multicast is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String multicast; + + /** + * Specifies a predefined internal IPv6 range for the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String predefinedNetworkInternalIpv6Range; + + /** + * Predefined subnetwork ranges for the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List predefinedSubnetworkRanges; + + /** + * Specifies which subnetwork purposes are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetPurposes; + + /** + * Specifies which subnetwork stack types are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetStackTypes; + + /** + * Output only. Specifies which subnetwork purposes are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworkPurposes; + + /** + * Output only. Specifies which subnetwork stack types are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworkStackTypes; + + /** + * Specifies which type of unicast is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String unicast; + + /** + * Specifies what address purposes are supported. If empty, all address purposes are supported. + * @return value or {@code null} for none + */ + public java.util.List getAddressPurposes() { + return addressPurposes; + } + + /** + * Specifies what address purposes are supported. If empty, all address purposes are supported. + * @param addressPurposes addressPurposes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAddressPurposes(java.util.List addressPurposes) { + this.addressPurposes = addressPurposes; + return this; + } + + /** + * Specifies whether address creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowAddressCreation() { + return allowAddressCreation; + } + + /** + * Specifies whether address creation is allowed. + * @param allowAddressCreation allowAddressCreation or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowAddressCreation(java.lang.String allowAddressCreation) { + this.allowAddressCreation = allowAddressCreation; + return this; + } + + /** + * Specifies whether alias IP ranges (and secondary address ranges) are allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowAliasIpRanges() { + return allowAliasIpRanges; + } + + /** + * Specifies whether alias IP ranges (and secondary address ranges) are allowed. + * @param allowAliasIpRanges allowAliasIpRanges or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowAliasIpRanges(java.lang.String allowAliasIpRanges) { + this.allowAliasIpRanges = allowAliasIpRanges; + return this; + } + + /** + * Specifies whether auto mode subnet creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowAutoModeSubnet() { + return allowAutoModeSubnet; + } + + /** + * Specifies whether auto mode subnet creation is allowed. + * @param allowAutoModeSubnet allowAutoModeSubnet or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowAutoModeSubnet(java.lang.String allowAutoModeSubnet) { + this.allowAutoModeSubnet = allowAutoModeSubnet; + return this; + } + + /** + * Specifies whether firewalls for Class D address ranges are supported. + * @return value or {@code null} for none + */ + public java.lang.String getAllowClassDFirewalls() { + return allowClassDFirewalls; + } + + /** + * Specifies whether firewalls for Class D address ranges are supported. + * @param allowClassDFirewalls allowClassDFirewalls or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowClassDFirewalls(java.lang.String allowClassDFirewalls) { + this.allowClassDFirewalls = allowClassDFirewalls; + return this; + } + + /** + * Specifies whether cloud NAT creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowCloudNat() { + return allowCloudNat; + } + + /** + * Specifies whether cloud NAT creation is allowed. + * @param allowCloudNat allowCloudNat or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowCloudNat(java.lang.String allowCloudNat) { + this.allowCloudNat = allowCloudNat; + return this; + } + + /** + * Specifies whether cloud router creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowCloudRouter() { + return allowCloudRouter; + } + + /** + * Specifies whether cloud router creation is allowed. + * @param allowCloudRouter allowCloudRouter or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowCloudRouter(java.lang.String allowCloudRouter) { + this.allowCloudRouter = allowCloudRouter; + return this; + } + + /** + * Specifies whether default NIC attachment is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowDefaultNicAttachment() { + return allowDefaultNicAttachment; + } + + /** + * Specifies whether default NIC attachment is allowed. + * @param allowDefaultNicAttachment allowDefaultNicAttachment or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowDefaultNicAttachment(java.lang.String allowDefaultNicAttachment) { + this.allowDefaultNicAttachment = allowDefaultNicAttachment; + return this; + } + + /** + * Specifies whether VMs are allowed to have external IP access on network interfaces connected to + * this VPC. + * @return value or {@code null} for none + */ + public java.lang.String getAllowExternalIpAccess() { + return allowExternalIpAccess; + } + + /** + * Specifies whether VMs are allowed to have external IP access on network interfaces connected to + * this VPC. + * @param allowExternalIpAccess allowExternalIpAccess or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowExternalIpAccess(java.lang.String allowExternalIpAccess) { + this.allowExternalIpAccess = allowExternalIpAccess; + return this; + } + + /** + * Specifies whether firewall policy can be attached to the network. + * @return value or {@code null} for none + */ + public java.lang.String getAllowFirewallPolicy() { + return allowFirewallPolicy; + } + + /** + * Specifies whether firewall policy can be attached to the network. + * @param allowFirewallPolicy allowFirewallPolicy or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowFirewallPolicy(java.lang.String allowFirewallPolicy) { + this.allowFirewallPolicy = allowFirewallPolicy; + return this; + } + + /** + * Specifies whether Cloud Interconnect creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowInterconnect() { + return allowInterconnect; + } + + /** + * Specifies whether Cloud Interconnect creation is allowed. + * @param allowInterconnect allowInterconnect or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowInterconnect(java.lang.String allowInterconnect) { + this.allowInterconnect = allowInterconnect; + return this; + } + + /** + * Specifies whether IP forwarding is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowIpForwarding() { + return allowIpForwarding; + } + + /** + * Specifies whether IP forwarding is allowed. + * @param allowIpForwarding allowIpForwarding or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowIpForwarding(java.lang.String allowIpForwarding) { + this.allowIpForwarding = allowIpForwarding; + return this; + } + + /** + * Specifies whether cloud load balancing is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowLoadBalancing() { + return allowLoadBalancing; + } + + /** + * Specifies whether cloud load balancing is allowed. + * @param allowLoadBalancing allowLoadBalancing or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowLoadBalancing(java.lang.String allowLoadBalancing) { + this.allowLoadBalancing = allowLoadBalancing; + return this; + } + + /** + * Specifies whether multi-nic in the same network is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowMultiNicInSameNetwork() { + return allowMultiNicInSameNetwork; + } + + /** + * Specifies whether multi-nic in the same network is allowed. + * @param allowMultiNicInSameNetwork allowMultiNicInSameNetwork or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowMultiNicInSameNetwork(java.lang.String allowMultiNicInSameNetwork) { + this.allowMultiNicInSameNetwork = allowMultiNicInSameNetwork; + return this; + } + + /** + * Specifies whether multi-nic in the same subnetwork is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowMultiNicInSameSubnetwork() { + return allowMultiNicInSameSubnetwork; + } + + /** + * Specifies whether multi-nic in the same subnetwork is allowed. + * @param allowMultiNicInSameSubnetwork allowMultiNicInSameSubnetwork or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowMultiNicInSameSubnetwork(java.lang.String allowMultiNicInSameSubnetwork) { + this.allowMultiNicInSameSubnetwork = allowMultiNicInSameSubnetwork; + return this; + } + + /** + * Specifies whether multicast is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowMulticast() { + return allowMulticast; + } + + /** + * Specifies whether multicast is allowed. + * @param allowMulticast allowMulticast or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowMulticast(java.lang.String allowMulticast) { + this.allowMulticast = allowMulticast; + return this; + } + + /** + * Specifies whether NCC is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowNcc() { + return allowNcc; + } + + /** + * Specifies whether NCC is allowed. + * @param allowNcc allowNcc or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowNcc(java.lang.String allowNcc) { + this.allowNcc = allowNcc; + return this; + } + + /** + * Specifies whether VM network migration is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowNetworkMigration() { + return allowNetworkMigration; + } + + /** + * Specifies whether VM network migration is allowed. + * @param allowNetworkMigration allowNetworkMigration or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowNetworkMigration(java.lang.String allowNetworkMigration) { + this.allowNetworkMigration = allowNetworkMigration; + return this; + } + + /** + * Specifies whether Packet Mirroring 1.0 is supported. + * @return value or {@code null} for none + */ + public java.lang.String getAllowPacketMirroring() { + return allowPacketMirroring; + } + + /** + * Specifies whether Packet Mirroring 1.0 is supported. + * @param allowPacketMirroring allowPacketMirroring or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowPacketMirroring(java.lang.String allowPacketMirroring) { + this.allowPacketMirroring = allowPacketMirroring; + return this; + } + + /** + * Specifies whether private Google access is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowPrivateGoogleAccess() { + return allowPrivateGoogleAccess; + } + + /** + * Specifies whether private Google access is allowed. + * @param allowPrivateGoogleAccess allowPrivateGoogleAccess or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowPrivateGoogleAccess(java.lang.String allowPrivateGoogleAccess) { + this.allowPrivateGoogleAccess = allowPrivateGoogleAccess; + return this; + } + + /** + * Specifies whether PSC creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowPsc() { + return allowPsc; + } + + /** + * Specifies whether PSC creation is allowed. + * @param allowPsc allowPsc or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowPsc(java.lang.String allowPsc) { + this.allowPsc = allowPsc; + return this; + } + + /** + * Specifies whether unicast within the same network is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowSameNetworkUnicast() { + return allowSameNetworkUnicast; + } + + /** + * Specifies whether unicast within the same network is allowed. + * @param allowSameNetworkUnicast allowSameNetworkUnicast or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowSameNetworkUnicast(java.lang.String allowSameNetworkUnicast) { + this.allowSameNetworkUnicast = allowSameNetworkUnicast; + return this; + } + + /** + * Specifies whether static route creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowStaticRoutes() { + return allowStaticRoutes; + } + + /** + * Specifies whether static route creation is allowed. + * @param allowStaticRoutes allowStaticRoutes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowStaticRoutes(java.lang.String allowStaticRoutes) { + this.allowStaticRoutes = allowStaticRoutes; + return this; + } + + /** + * Specifies whether sub interfaces are allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowSubInterfaces() { + return allowSubInterfaces; + } + + /** + * Specifies whether sub interfaces are allowed. + * @param allowSubInterfaces allowSubInterfaces or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowSubInterfaces(java.lang.String allowSubInterfaces) { + this.allowSubInterfaces = allowSubInterfaces; + return this; + } + + /** + * Specifies whether subnetwork creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowSubnetworkCreation() { + return allowSubnetworkCreation; + } + + /** + * Specifies whether subnetwork creation is allowed. + * @param allowSubnetworkCreation allowSubnetworkCreation or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowSubnetworkCreation(java.lang.String allowSubnetworkCreation) { + this.allowSubnetworkCreation = allowSubnetworkCreation; + return this; + } + + /** + * Specifies whether VPC firewall rules can be created under the network. + * @return value or {@code null} for none + */ + public java.lang.String getAllowVpcFirewallRules() { + return allowVpcFirewallRules; + } + + /** + * Specifies whether VPC firewall rules can be created under the network. + * @param allowVpcFirewallRules allowVpcFirewallRules or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowVpcFirewallRules(java.lang.String allowVpcFirewallRules) { + this.allowVpcFirewallRules = allowVpcFirewallRules; + return this; + } + + /** + * Specifies whether VPC peering is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowVpcPeering() { + return allowVpcPeering; + } + + /** + * Specifies whether VPC peering is allowed. + * @param allowVpcPeering allowVpcPeering or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowVpcPeering(java.lang.String allowVpcPeering) { + this.allowVpcPeering = allowVpcPeering; + return this; + } + + /** + * Specifies whether VPN creation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getAllowVpn() { + return allowVpn; + } + + /** + * Specifies whether VPN creation is allowed. + * @param allowVpn allowVpn or {@code null} for none + */ + public NetworkProfileNetworkFeatures setAllowVpn(java.lang.String allowVpn) { + this.allowVpn = allowVpn; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getFirewallPolicyTypes() { + return firewallPolicyTypes; + } + + /** + * @param firewallPolicyTypes firewallPolicyTypes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setFirewallPolicyTypes(java.util.List firewallPolicyTypes) { + this.firewallPolicyTypes = firewallPolicyTypes; + return this; + } + + /** + * If set, limits the interface types that the network supports. If empty, all interface types are + * supported. + * @return value or {@code null} for none + */ + public java.util.List getInterfaceTypes() { + return interfaceTypes; + } + + /** + * If set, limits the interface types that the network supports. If empty, all interface types are + * supported. + * @param interfaceTypes interfaceTypes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setInterfaceTypes(java.util.List interfaceTypes) { + this.interfaceTypes = interfaceTypes; + return this; + } + + /** + * Specifies which type of multicast is supported. + * @return value or {@code null} for none + */ + public java.lang.String getMulticast() { + return multicast; + } + + /** + * Specifies which type of multicast is supported. + * @param multicast multicast or {@code null} for none + */ + public NetworkProfileNetworkFeatures setMulticast(java.lang.String multicast) { + this.multicast = multicast; + return this; + } + + /** + * Specifies a predefined internal IPv6 range for the network. + * @return value or {@code null} for none + */ + public java.lang.String getPredefinedNetworkInternalIpv6Range() { + return predefinedNetworkInternalIpv6Range; + } + + /** + * Specifies a predefined internal IPv6 range for the network. + * @param predefinedNetworkInternalIpv6Range predefinedNetworkInternalIpv6Range or {@code null} for none + */ + public NetworkProfileNetworkFeatures setPredefinedNetworkInternalIpv6Range(java.lang.String predefinedNetworkInternalIpv6Range) { + this.predefinedNetworkInternalIpv6Range = predefinedNetworkInternalIpv6Range; + return this; + } + + /** + * Predefined subnetwork ranges for the network. + * @return value or {@code null} for none + */ + public java.util.List getPredefinedSubnetworkRanges() { + return predefinedSubnetworkRanges; + } + + /** + * Predefined subnetwork ranges for the network. + * @param predefinedSubnetworkRanges predefinedSubnetworkRanges or {@code null} for none + */ + public NetworkProfileNetworkFeatures setPredefinedSubnetworkRanges(java.util.List predefinedSubnetworkRanges) { + this.predefinedSubnetworkRanges = predefinedSubnetworkRanges; + return this; + } + + /** + * Specifies which subnetwork purposes are supported. + * @return value or {@code null} for none + */ + public java.util.List getSubnetPurposes() { + return subnetPurposes; + } + + /** + * Specifies which subnetwork purposes are supported. + * @param subnetPurposes subnetPurposes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setSubnetPurposes(java.util.List subnetPurposes) { + this.subnetPurposes = subnetPurposes; + return this; + } + + /** + * Specifies which subnetwork stack types are supported. + * @return value or {@code null} for none + */ + public java.util.List getSubnetStackTypes() { + return subnetStackTypes; + } + + /** + * Specifies which subnetwork stack types are supported. + * @param subnetStackTypes subnetStackTypes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List subnetStackTypes) { + this.subnetStackTypes = subnetStackTypes; + return this; + } + + /** + * Output only. Specifies which subnetwork purposes are supported. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworkPurposes() { + return subnetworkPurposes; + } + + /** + * Output only. Specifies which subnetwork purposes are supported. + * @param subnetworkPurposes subnetworkPurposes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { + this.subnetworkPurposes = subnetworkPurposes; + return this; + } + + /** + * Output only. Specifies which subnetwork stack types are supported. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworkStackTypes() { + return subnetworkStackTypes; + } + + /** + * Output only. Specifies which subnetwork stack types are supported. + * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none + */ + public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { + this.subnetworkStackTypes = subnetworkStackTypes; + return this; + } + + /** + * Specifies which type of unicast is supported. + * @return value or {@code null} for none + */ + public java.lang.String getUnicast() { + return unicast; + } + + /** + * Specifies which type of unicast is supported. + * @param unicast unicast or {@code null} for none + */ + public NetworkProfileNetworkFeatures setUnicast(java.lang.String unicast) { + this.unicast = unicast; + return this; + } + + @Override + public NetworkProfileNetworkFeatures set(String fieldName, Object value) { + return (NetworkProfileNetworkFeatures) super.set(fieldName, value); + } + + @Override + public NetworkProfileNetworkFeatures clone() { + return (NetworkProfileNetworkFeatures) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java new file mode 100644 index 00000000000..469b5f50bc5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for NetworkProfileNetworkFeaturesPredefinedSubnetworkRange. + * + *

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 NetworkProfileNetworkFeaturesPredefinedSubnetworkRange extends com.google.api.client.json.GenericJson { + + /** + * The IPv6 range of the predefined subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Range; + + /** + * The naming prefix of the predefined subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String namePrefix; + + /** + * The IPv6 range of the predefined subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Range() { + return ipv6Range; + } + + /** + * The IPv6 range of the predefined subnetwork. + * @param ipv6Range ipv6Range or {@code null} for none + */ + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange setIpv6Range(java.lang.String ipv6Range) { + this.ipv6Range = ipv6Range; + return this; + } + + /** + * The naming prefix of the predefined subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getNamePrefix() { + return namePrefix; + } + + /** + * The naming prefix of the predefined subnetwork. + * @param namePrefix namePrefix or {@code null} for none + */ + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange setNamePrefix(java.lang.String namePrefix) { + this.namePrefix = namePrefix; + return this; + } + + @Override + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange set(String fieldName, Object value) { + return (NetworkProfileNetworkFeaturesPredefinedSubnetworkRange) super.set(fieldName, value); + } + + @Override + public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange clone() { + return (NetworkProfileNetworkFeaturesPredefinedSubnetworkRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileProfileType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileProfileType.java new file mode 100644 index 00000000000..4a5153e7e08 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfileProfileType.java @@ -0,0 +1,126 @@ +/* + * 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 NetworkProfileProfileType. + * + *

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 NetworkProfileProfileType extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkType; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rdmaSubtype; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ullSubtype; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpcSubtype; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getNetworkType() { + return networkType; + } + + /** + * @param networkType networkType or {@code null} for none + */ + public NetworkProfileProfileType setNetworkType(java.lang.String networkType) { + this.networkType = networkType; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getRdmaSubtype() { + return rdmaSubtype; + } + + /** + * @param rdmaSubtype rdmaSubtype or {@code null} for none + */ + public NetworkProfileProfileType setRdmaSubtype(java.lang.String rdmaSubtype) { + this.rdmaSubtype = rdmaSubtype; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUllSubtype() { + return ullSubtype; + } + + /** + * @param ullSubtype ullSubtype or {@code null} for none + */ + public NetworkProfileProfileType setUllSubtype(java.lang.String ullSubtype) { + this.ullSubtype = ullSubtype; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getVpcSubtype() { + return vpcSubtype; + } + + /** + * @param vpcSubtype vpcSubtype or {@code null} for none + */ + public NetworkProfileProfileType setVpcSubtype(java.lang.String vpcSubtype) { + this.vpcSubtype = vpcSubtype; + return this; + } + + @Override + public NetworkProfileProfileType set(String fieldName, Object value) { + return (NetworkProfileProfileType) super.set(fieldName, value); + } + + @Override + public NetworkProfileProfileType clone() { + return (NetworkProfileProfileType) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java new file mode 100644 index 00000000000..2a7b44f0904 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -0,0 +1,434 @@ +/* + * 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; + +/** + * Contains a list of network profiles. + * + *

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 NetworkProfilesListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 NetworkProfile 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 NetworkProfile 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(NetworkProfile.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public NetworkProfilesListResponse 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 NetworkProfilesListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NetworkProfile resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NetworkProfile resources. + * @param items items or {@code null} for none + */ + public NetworkProfilesListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. + * @param kind kind or {@code null} for none + */ + public NetworkProfilesListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NetworkProfilesListResponse 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 NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public NetworkProfilesListResponse 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 NetworkProfilesListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NetworkProfilesListResponse set(String fieldName, Object value) { + return (NetworkProfilesListResponse) super.set(fieldName, value); + } + + @Override + public NetworkProfilesListResponse clone() { + return (NetworkProfilesListResponse) 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 NetworkProfilesListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java new file mode 100644 index 00000000000..195b392152e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -0,0 +1,206 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A routing configuration attached to a network resource. The message includes the list of routers + * associated with the network, and a flag indicating the type of routing behavior to enforce + * network-wide. + * + *

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 NetworkRoutingConfig extends com.google.api.client.json.GenericJson { + + /** + * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs + * when using the STANDARD BGP best path selection algorithm. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean bgpAlwaysCompareMed; + + /** + * The BGP best path selection algorithm to be employed within this network for dynamic routes + * learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bgpBestPathSelectionMode; + + /** + * Allows to define a preferred approach for handling inter-region cost in the selection process + * when using the STANDARD BGP best path selection algorithm. Can be DEFAULT orADD_COST_TO_MED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bgpInterRegionCost; + + /** + * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean effectiveBgpAlwaysCompareMed; + + /** + * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String effectiveBgpInterRegionCost; + + /** + * The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will + * only advertise routes with subnets of this network in the same region as the router. If set + * toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, + * across regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String routingMode; + + /** + * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs + * when using the STANDARD BGP best path selection algorithm. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBgpAlwaysCompareMed() { + return bgpAlwaysCompareMed; + } + + /** + * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs + * when using the STANDARD BGP best path selection algorithm. + * @param bgpAlwaysCompareMed bgpAlwaysCompareMed or {@code null} for none + */ + public NetworkRoutingConfig setBgpAlwaysCompareMed(java.lang.Boolean bgpAlwaysCompareMed) { + this.bgpAlwaysCompareMed = bgpAlwaysCompareMed; + return this; + } + + /** + * The BGP best path selection algorithm to be employed within this network for dynamic routes + * learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + * @return value or {@code null} for none + */ + public java.lang.String getBgpBestPathSelectionMode() { + return bgpBestPathSelectionMode; + } + + /** + * The BGP best path selection algorithm to be employed within this network for dynamic routes + * learned by Cloud Routers. Can be LEGACY (default) or STANDARD. + * @param bgpBestPathSelectionMode bgpBestPathSelectionMode or {@code null} for none + */ + public NetworkRoutingConfig setBgpBestPathSelectionMode(java.lang.String bgpBestPathSelectionMode) { + this.bgpBestPathSelectionMode = bgpBestPathSelectionMode; + return this; + } + + /** + * Allows to define a preferred approach for handling inter-region cost in the selection process + * when using the STANDARD BGP best path selection algorithm. Can be DEFAULT orADD_COST_TO_MED. + * @return value or {@code null} for none + */ + public java.lang.String getBgpInterRegionCost() { + return bgpInterRegionCost; + } + + /** + * Allows to define a preferred approach for handling inter-region cost in the selection process + * when using the STANDARD BGP best path selection algorithm. Can be DEFAULT orADD_COST_TO_MED. + * @param bgpInterRegionCost bgpInterRegionCost or {@code null} for none + */ + public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegionCost) { + this.bgpInterRegionCost = bgpInterRegionCost; + return this; + } + + /** + * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { + return effectiveBgpAlwaysCompareMed; + } + + /** + * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * @param effectiveBgpAlwaysCompareMed effectiveBgpAlwaysCompareMed or {@code null} for none + */ + public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean effectiveBgpAlwaysCompareMed) { + this.effectiveBgpAlwaysCompareMed = effectiveBgpAlwaysCompareMed; + return this; + } + + /** + * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * @return value or {@code null} for none + */ + public java.lang.String getEffectiveBgpInterRegionCost() { + return effectiveBgpInterRegionCost; + } + + /** + * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * @param effectiveBgpInterRegionCost effectiveBgpInterRegionCost or {@code null} for none + */ + public NetworkRoutingConfig setEffectiveBgpInterRegionCost(java.lang.String effectiveBgpInterRegionCost) { + this.effectiveBgpInterRegionCost = effectiveBgpInterRegionCost; + return this; + } + + /** + * The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will + * only advertise routes with subnets of this network in the same region as the router. If set + * toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, + * across regions. + * @return value or {@code null} for none + */ + public java.lang.String getRoutingMode() { + return routingMode; + } + + /** + * The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will + * only advertise routes with subnets of this network in the same region as the router. If set + * toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, + * across regions. + * @param routingMode routingMode or {@code null} for none + */ + public NetworkRoutingConfig setRoutingMode(java.lang.String routingMode) { + this.routingMode = routingMode; + return this; + } + + @Override + public NetworkRoutingConfig set(String fieldName, Object value) { + return (NetworkRoutingConfig) super.set(fieldName, value); + } + + @Override + public NetworkRoutingConfig clone() { + return (NetworkRoutingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksAddPeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksAddPeeringRequest.java new file mode 100644 index 00000000000..323527c2868 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksAddPeeringRequest.java @@ -0,0 +1,165 @@ +/* + * 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 NetworksAddPeeringRequest. + * + *

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 NetworksAddPeeringRequest extends com.google.api.client.json.GenericJson { + + /** + * This field will be deprecated soon. Useexchange_subnet_routes in network_peering instead. + * Indicates whether full mesh connectivity is created and managed automatically between peered + * networks. Currently this field should always be true since Google Compute Engine will + * automatically create and manage subnetwork routes between two networks when peering state + * isACTIVE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoCreateRoutes; + + /** + * Name of the peering, which should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Network peering parameters. In order to specify route policies for peering using import and + * export custom routes, you must specify all peering related parameters (name, peer + * network,exchange_subnet_routes) in the network_peering field. The corresponding fields in + * NetworksAddPeeringRequest will be deprecated soon. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeering networkPeering; + + /** + * URL of the peer network. It can be either full URL or partial URL. The peer network may belong + * to a different project. If the partial URL does not contain project, it is assumed that the + * peer network is in the same project as the current network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerNetwork; + + /** + * This field will be deprecated soon. Useexchange_subnet_routes in network_peering instead. + * Indicates whether full mesh connectivity is created and managed automatically between peered + * networks. Currently this field should always be true since Google Compute Engine will + * automatically create and manage subnetwork routes between two networks when peering state + * isACTIVE. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoCreateRoutes() { + return autoCreateRoutes; + } + + /** + * This field will be deprecated soon. Useexchange_subnet_routes in network_peering instead. + * Indicates whether full mesh connectivity is created and managed automatically between peered + * networks. Currently this field should always be true since Google Compute Engine will + * automatically create and manage subnetwork routes between two networks when peering state + * isACTIVE. + * @param autoCreateRoutes autoCreateRoutes or {@code null} for none + */ + public NetworksAddPeeringRequest setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { + this.autoCreateRoutes = autoCreateRoutes; + return this; + } + + /** + * Name of the peering, which should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the peering, which should conform to RFC1035. + * @param name name or {@code null} for none + */ + public NetworksAddPeeringRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Network peering parameters. In order to specify route policies for peering using import and + * export custom routes, you must specify all peering related parameters (name, peer + * network,exchange_subnet_routes) in the network_peering field. The corresponding fields in + * NetworksAddPeeringRequest will be deprecated soon. + * @return value or {@code null} for none + */ + public NetworkPeering getNetworkPeering() { + return networkPeering; + } + + /** + * Network peering parameters. In order to specify route policies for peering using import and + * export custom routes, you must specify all peering related parameters (name, peer + * network,exchange_subnet_routes) in the network_peering field. The corresponding fields in + * NetworksAddPeeringRequest will be deprecated soon. + * @param networkPeering networkPeering or {@code null} for none + */ + public NetworksAddPeeringRequest setNetworkPeering(NetworkPeering networkPeering) { + this.networkPeering = networkPeering; + return this; + } + + /** + * URL of the peer network. It can be either full URL or partial URL. The peer network may belong + * to a different project. If the partial URL does not contain project, it is assumed that the + * peer network is in the same project as the current network. + * @return value or {@code null} for none + */ + public java.lang.String getPeerNetwork() { + return peerNetwork; + } + + /** + * URL of the peer network. It can be either full URL or partial URL. The peer network may belong + * to a different project. If the partial URL does not contain project, it is assumed that the + * peer network is in the same project as the current network. + * @param peerNetwork peerNetwork or {@code null} for none + */ + public NetworksAddPeeringRequest setPeerNetwork(java.lang.String peerNetwork) { + this.peerNetwork = peerNetwork; + return this; + } + + @Override + public NetworksAddPeeringRequest set(String fieldName, Object value) { + return (NetworksAddPeeringRequest) super.set(fieldName, value); + } + + @Override + public NetworksAddPeeringRequest clone() { + return (NetworksAddPeeringRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java new file mode 100644 index 00000000000..3579133fb9c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.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; + +/** + * Model definition for NetworksCancelRequestRemovePeeringRequest. + * + *

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 NetworksCancelRequestRemovePeeringRequest extends com.google.api.client.json.GenericJson { + + /** + * Name of the peering, which should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Name of the peering, which should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the peering, which should conform to RFC1035. + * @param name name or {@code null} for none + */ + public NetworksCancelRequestRemovePeeringRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public NetworksCancelRequestRemovePeeringRequest set(String fieldName, Object value) { + return (NetworksCancelRequestRemovePeeringRequest) super.set(fieldName, value); + } + + @Override + public NetworksCancelRequestRemovePeeringRequest clone() { + return (NetworksCancelRequestRemovePeeringRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponse.java new file mode 100644 index 00000000000..59d7d2d32a1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponse.java @@ -0,0 +1,105 @@ +/* + * 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 NetworksGetEffectiveFirewallsResponse. + * + *

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 NetworksGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall + * Policies and Hierarchical Firewall Policies. + * UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall + * Policies as well. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewallPolicys; + + /** + * Effective firewalls on the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewalls; + + static { + // hack to force ProGuard to consider Firewall 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(Firewall.class); + } + + /** + * [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall + * Policies and Hierarchical Firewall Policies. + * UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall + * Policies as well. + * @return value or {@code null} for none + */ + public java.util.List getFirewallPolicys() { + return firewallPolicys; + } + + /** + * [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall + * Policies and Hierarchical Firewall Policies. + * UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall + * Policies as well. + * @param firewallPolicys firewallPolicys or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponse setFirewallPolicys(java.util.List firewallPolicys) { + this.firewallPolicys = firewallPolicys; + return this; + } + + /** + * Effective firewalls on the network. + * @return value or {@code null} for none + */ + public java.util.List getFirewalls() { + return firewalls; + } + + /** + * Effective firewalls on the network. + * @param firewalls firewalls or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponse setFirewalls(java.util.List firewalls) { + this.firewalls = firewalls; + return this; + } + + @Override + public NetworksGetEffectiveFirewallsResponse set(String fieldName, Object value) { + return (NetworksGetEffectiveFirewallsResponse) super.set(fieldName, value); + } + + @Override + public NetworksGetEffectiveFirewallsResponse clone() { + return (NetworksGetEffectiveFirewallsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java new file mode 100644 index 00000000000..57b26100431 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -0,0 +1,228 @@ +/* + * 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 NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy. + * + *

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 NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. [Output Only] The name of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The packet mirroring rules that apply to the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List packetMirroringRules; + + static { + // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * [Output Only] The rules that apply to the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + static { + // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); + } + + /** + * Output only. [Output Only] The short name of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String shortName; + + /** + * Output only. [Output Only] The type of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. [Output Only] Deprecated, please use short name instead. The display name of the + * firewall policy. + * @param displayName displayName or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. [Output Only] The name of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the firewall policy. + * @param name name or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The packet mirroring rules that apply to the network. + * @return value or {@code null} for none + */ + public java.util.List getPacketMirroringRules() { + return packetMirroringRules; + } + + /** + * Output only. [Output Only] The packet mirroring rules that apply to the network. + * @param packetMirroringRules packetMirroringRules or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { + this.packetMirroringRules = packetMirroringRules; + return this; + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * @param priority priority or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * [Output Only] The rules that apply to the network. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * [Output Only] The rules that apply to the network. + * @param rules rules or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * Output only. [Output Only] The short name of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getShortName() { + return shortName; + } + + /** + * Output only. [Output Only] The short name of the firewall policy. + * @param shortName shortName or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { + this.shortName = shortName; + return this; + } + + /** + * Output only. [Output Only] The type of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. [Output Only] The type of the firewall policy. + * @param type type or {@code null} for none + */ + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy set(String fieldName, Object value) { + return (NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.set(fieldName, value); + } + + @Override + public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy clone() { + return (NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRemovePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRemovePeeringRequest.java new file mode 100644 index 00000000000..dc18f78fbf7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRemovePeeringRequest.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; + +/** + * Model definition for NetworksRemovePeeringRequest. + * + *

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 NetworksRemovePeeringRequest extends com.google.api.client.json.GenericJson { + + /** + * Name of the peering, which should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Name of the peering, which should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the peering, which should conform to RFC1035. + * @param name name or {@code null} for none + */ + public NetworksRemovePeeringRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public NetworksRemovePeeringRequest set(String fieldName, Object value) { + return (NetworksRemovePeeringRequest) super.set(fieldName, value); + } + + @Override + public NetworksRemovePeeringRequest clone() { + return (NetworksRemovePeeringRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.java new file mode 100644 index 00000000000..9cf8bbe1a09 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksRequestRemovePeeringRequest.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; + +/** + * Model definition for NetworksRequestRemovePeeringRequest. + * + *

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 NetworksRequestRemovePeeringRequest extends com.google.api.client.json.GenericJson { + + /** + * Name of the peering, which should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Name of the peering, which should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the peering, which should conform to RFC1035. + * @param name name or {@code null} for none + */ + public NetworksRequestRemovePeeringRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public NetworksRequestRemovePeeringRequest set(String fieldName, Object value) { + return (NetworksRequestRemovePeeringRequest) super.set(fieldName, value); + } + + @Override + public NetworksRequestRemovePeeringRequest clone() { + return (NetworksRequestRemovePeeringRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksUpdatePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksUpdatePeeringRequest.java new file mode 100644 index 00000000000..3c5bcd2879e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NetworksUpdatePeeringRequest.java @@ -0,0 +1,63 @@ +/* + * 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 NetworksUpdatePeeringRequest. + * + *

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 NetworksUpdatePeeringRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NetworkPeering networkPeering; + + /** + * @return value or {@code null} for none + */ + public NetworkPeering getNetworkPeering() { + return networkPeering; + } + + /** + * @param networkPeering networkPeering or {@code null} for none + */ + public NetworksUpdatePeeringRequest setNetworkPeering(NetworkPeering networkPeering) { + this.networkPeering = networkPeering; + return this; + } + + @Override + public NetworksUpdatePeeringRequest set(String fieldName, Object value) { + return (NetworksUpdatePeeringRequest) super.set(fieldName, value); + } + + @Override + public NetworksUpdatePeeringRequest clone() { + return (NetworksUpdatePeeringRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroup.java new file mode 100644 index 00000000000..7b34e2e9405 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -0,0 +1,507 @@ +/* + * 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 sole-tenant Node Group resource. + * + * A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your + * specific project. Use sole-tenant nodes to keep your instances physically separated from + * instances in other projects, or to group your instances together on the same host hardware. For + * more information, readSole-tenant nodes. + * + *

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 NodeGroup extends com.google.api.client.json.GenericJson { + + /** + * Specifies how autoscaling should behave. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NodeGroupAutoscalingPolicy autoscalingPolicy; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * 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] The type of the resource. Alwayscompute#nodeGroup for node group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * An opaque location hint used to place the Node close to other resources. This field is for use + * by internal tools that use the public API. The location hint here on the NodeGroup overrides + * any location_hint present in the NodeTemplate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationHint; + + /** + * Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and + * `RECURRENT`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenanceInterval; + + /** + * Specifies how to handle instances when a node in the group undergoes maintenance. Set to one + * of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For + * more information, see Maintenance policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenancePolicy; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NodeGroupMaintenanceWindow maintenanceWindow; + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + + /** + * URL of the node template to create the node group from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** + * 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; + + /** + * Share-settings for the node group + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShareSettings shareSettings; + + /** + * Output only. [Output Only] The total number of nodes in the node group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] The name of the zone where the node group resides, such as us- + * central1-a. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Specifies how autoscaling should behave. + * @return value or {@code null} for none + */ + public NodeGroupAutoscalingPolicy getAutoscalingPolicy() { + return autoscalingPolicy; + } + + /** + * Specifies how autoscaling should behave. + * @param autoscalingPolicy autoscalingPolicy or {@code null} for none + */ + public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPolicy) { + this.autoscalingPolicy = autoscalingPolicy; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public NodeGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public NodeGroup setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public NodeGroup encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + 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 NodeGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * @param kind kind or {@code null} for none + */ + public NodeGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * An opaque location hint used to place the Node close to other resources. This field is for use + * by internal tools that use the public API. The location hint here on the NodeGroup overrides + * any location_hint present in the NodeTemplate. + * @return value or {@code null} for none + */ + public java.lang.String getLocationHint() { + return locationHint; + } + + /** + * An opaque location hint used to place the Node close to other resources. This field is for use + * by internal tools that use the public API. The location hint here on the NodeGroup overrides + * any location_hint present in the NodeTemplate. + * @param locationHint locationHint or {@code null} for none + */ + public NodeGroup setLocationHint(java.lang.String locationHint) { + this.locationHint = locationHint; + return this; + } + + /** + * Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and + * `RECURRENT`. + * @return value or {@code null} for none + */ + public java.lang.String getMaintenanceInterval() { + return maintenanceInterval; + } + + /** + * Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and + * `RECURRENT`. + * @param maintenanceInterval maintenanceInterval or {@code null} for none + */ + public NodeGroup setMaintenanceInterval(java.lang.String maintenanceInterval) { + this.maintenanceInterval = maintenanceInterval; + return this; + } + + /** + * Specifies how to handle instances when a node in the group undergoes maintenance. Set to one + * of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For + * more information, see Maintenance policies. + * @return value or {@code null} for none + */ + public java.lang.String getMaintenancePolicy() { + return maintenancePolicy; + } + + /** + * Specifies how to handle instances when a node in the group undergoes maintenance. Set to one + * of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For + * more information, see Maintenance policies. + * @param maintenancePolicy maintenancePolicy or {@code null} for none + */ + public NodeGroup setMaintenancePolicy(java.lang.String maintenancePolicy) { + this.maintenancePolicy = maintenancePolicy; + return this; + } + + /** + * @return value or {@code null} for none + */ + public NodeGroupMaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + /** + * @param maintenanceWindow maintenanceWindow or {@code null} for none + */ + public NodeGroup setMaintenanceWindow(NodeGroupMaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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 NodeGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * URL of the node template to create the node group from. + * @return value or {@code null} for none + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** + * URL of the node template to create the node group from. + * @param nodeTemplate nodeTemplate or {@code null} for none + */ + public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { + this.nodeTemplate = nodeTemplate; + 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 NodeGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Share-settings for the node group + * @return value or {@code null} for none + */ + public ShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Share-settings for the node group + * @param shareSettings shareSettings or {@code null} for none + */ + public NodeGroup setShareSettings(ShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Output only. [Output Only] The total number of nodes in the node group. + * @return value or {@code null} for none + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * Output only. [Output Only] The total number of nodes in the node group. + * @param size size or {@code null} for none + */ + public NodeGroup setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * @param status status or {@code null} for none + */ + public NodeGroup setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] The name of the zone where the node group resides, such as us- + * central1-a. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The name of the zone where the node group resides, such as us- + * central1-a. + * @param zone zone or {@code null} for none + */ + public NodeGroup setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public NodeGroup set(String fieldName, Object value) { + return (NodeGroup) super.set(fieldName, value); + } + + @Override + public NodeGroup clone() { + return (NodeGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java new file mode 100644 index 00000000000..99c522c5578 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 NodeGroupAggregatedList. + * + *

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 NodeGroupAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 NodeGroupsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for + * aggregated lists of node groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 NodeGroupAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NodeGroupsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NodeGroupsScopedList resources. + * @param items items or {@code null} for none + */ + public NodeGroupAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for + * aggregated lists of node groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for + * aggregated lists of node groups. + * @param kind kind or {@code null} for none + */ + public NodeGroupAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeGroupAggregatedList 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 NodeGroupAggregatedList 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 NodeGroupAggregatedList 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 NodeGroupAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeGroupAggregatedList set(String fieldName, Object value) { + return (NodeGroupAggregatedList) super.set(fieldName, value); + } + + @Override + public NodeGroupAggregatedList clone() { + return (NodeGroupAggregatedList) 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 NodeGroupAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAutoscalingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAutoscalingPolicy.java new file mode 100644 index 00000000000..59cb10da51b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupAutoscalingPolicy.java @@ -0,0 +1,120 @@ +/* + * 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 NodeGroupAutoscalingPolicy. + * + *

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 NodeGroupAutoscalingPolicy extends com.google.api.client.json.GenericJson { + + /** + * The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. + * Maximum value allowed is 100. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxNodes; + + /** + * The minimum number of nodes that the group should have. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minNodes; + + /** + * The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see + * Autoscaler modes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. + * Maximum value allowed is 100. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxNodes() { + return maxNodes; + } + + /** + * The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. + * Maximum value allowed is 100. + * @param maxNodes maxNodes or {@code null} for none + */ + public NodeGroupAutoscalingPolicy setMaxNodes(java.lang.Integer maxNodes) { + this.maxNodes = maxNodes; + return this; + } + + /** + * The minimum number of nodes that the group should have. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinNodes() { + return minNodes; + } + + /** + * The minimum number of nodes that the group should have. + * @param minNodes minNodes or {@code null} for none + */ + public NodeGroupAutoscalingPolicy setMinNodes(java.lang.Integer minNodes) { + this.minNodes = minNodes; + return this; + } + + /** + * The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see + * Autoscaler modes. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see + * Autoscaler modes. + * @param mode mode or {@code null} for none + */ + public NodeGroupAutoscalingPolicy setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public NodeGroupAutoscalingPolicy set(String fieldName, Object value) { + return (NodeGroupAutoscalingPolicy) super.set(fieldName, value); + } + + @Override + public NodeGroupAutoscalingPolicy clone() { + return (NodeGroupAutoscalingPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupList.java new file mode 100644 index 00000000000..9135f2cd2df --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of nodeGroups. + * + *

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 NodeGroupList extends com.google.api.client.json.GenericJson { + + /** + * [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 NodeGroup 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 NodeGroup 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(NodeGroup.class); + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + * groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NodeGroupList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NodeGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NodeGroup resources. + * @param items items or {@code null} for none + */ + public NodeGroupList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + * groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node + * groups. + * @param kind kind or {@code null} for none + */ + public NodeGroupList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeGroupList 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 NodeGroupList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NodeGroupList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeGroupList set(String fieldName, Object value) { + return (NodeGroupList) super.set(fieldName, value); + } + + @Override + public NodeGroupList clone() { + return (NodeGroupList) 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 NodeGroupListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java new file mode 100644 index 00000000000..e316a46ff52 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -0,0 +1,97 @@ +/* + * 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; + +/** + * Time window specified for daily maintenance operations. GCE's internal maintenance will be + * performed within this window. + * + *

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 NodeGroupMaintenanceWindow extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maintenanceDuration; + + /** + * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, + * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. + * @return value or {@code null} for none + */ + public Duration getMaintenanceDuration() { + return maintenanceDuration; + } + + /** + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. + * @param maintenanceDuration maintenanceDuration or {@code null} for none + */ + public NodeGroupMaintenanceWindow setMaintenanceDuration(Duration maintenanceDuration) { + this.maintenanceDuration = maintenanceDuration; + return this; + } + + /** + * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, + * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, + * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + * @param startTime startTime or {@code null} for none + */ + public NodeGroupMaintenanceWindow setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public NodeGroupMaintenanceWindow set(String fieldName, Object value) { + return (NodeGroupMaintenanceWindow) super.set(fieldName, value); + } + + @Override + public NodeGroupMaintenanceWindow clone() { + return (NodeGroupMaintenanceWindow) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java new file mode 100644 index 00000000000..b1af48a0a34 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -0,0 +1,393 @@ +/* + * 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 NodeGroupNode. + * + *

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 NodeGroupNode extends com.google.api.client.json.GenericJson { + + /** + * Accelerators for this node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accelerators; + + 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); + } + + /** + * Output only. Node resources that are reserved by all instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceConsumptionInfo consumedResources; + + /** + * CPU overcommit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cpuOvercommitType; + + /** + * Local disk configurations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider LocalDisk 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(LocalDisk.class); + } + + /** + * Output only. Instance data that shows consumed resources on the node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceConsumptionData; + + static { + // hack to force ProGuard to consider InstanceConsumptionData 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(InstanceConsumptionData.class); + } + + /** + * Instances scheduled on this node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The name of the node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The type of this node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nodeType; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * Binding properties for the physical server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServerBinding serverBinding; + + /** + * Server ID associated with this node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverId; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. Total amount of available resources on the node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceConsumptionInfo totalResources; + + /** + * Output only. [Output Only] The information about an upcoming maintenance event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UpcomingMaintenance upcomingMaintenance; + + /** + * Accelerators for this node. + * @return value or {@code null} for none + */ + public java.util.List getAccelerators() { + return accelerators; + } + + /** + * Accelerators for this node. + * @param accelerators accelerators or {@code null} for none + */ + public NodeGroupNode setAccelerators(java.util.List accelerators) { + this.accelerators = accelerators; + return this; + } + + /** + * Output only. Node resources that are reserved by all instances. + * @return value or {@code null} for none + */ + public InstanceConsumptionInfo getConsumedResources() { + return consumedResources; + } + + /** + * Output only. Node resources that are reserved by all instances. + * @param consumedResources consumedResources or {@code null} for none + */ + public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { + this.consumedResources = consumedResources; + return this; + } + + /** + * CPU overcommit. + * @return value or {@code null} for none + */ + public java.lang.String getCpuOvercommitType() { + return cpuOvercommitType; + } + + /** + * CPU overcommit. + * @param cpuOvercommitType cpuOvercommitType or {@code null} for none + */ + public NodeGroupNode setCpuOvercommitType(java.lang.String cpuOvercommitType) { + this.cpuOvercommitType = cpuOvercommitType; + return this; + } + + /** + * Local disk configurations. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Local disk configurations. + * @param disks disks or {@code null} for none + */ + public NodeGroupNode setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * Output only. Instance data that shows consumed resources on the node. + * @return value or {@code null} for none + */ + public java.util.List getInstanceConsumptionData() { + return instanceConsumptionData; + } + + /** + * Output only. Instance data that shows consumed resources on the node. + * @param instanceConsumptionData instanceConsumptionData or {@code null} for none + */ + public NodeGroupNode setInstanceConsumptionData(java.util.List instanceConsumptionData) { + this.instanceConsumptionData = instanceConsumptionData; + return this; + } + + /** + * Instances scheduled on this node. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * Instances scheduled on this node. + * @param instances instances or {@code null} for none + */ + public NodeGroupNode setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * The name of the node. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the node. + * @param name name or {@code null} for none + */ + public NodeGroupNode setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The type of this node. + * @return value or {@code null} for none + */ + public java.lang.String getNodeType() { + return nodeType; + } + + /** + * The type of this node. + * @param nodeType nodeType or {@code null} for none + */ + public NodeGroupNode setNodeType(java.lang.String nodeType) { + this.nodeType = nodeType; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * Binding properties for the physical server. + * @return value or {@code null} for none + */ + public ServerBinding getServerBinding() { + return serverBinding; + } + + /** + * Binding properties for the physical server. + * @param serverBinding serverBinding or {@code null} for none + */ + public NodeGroupNode setServerBinding(ServerBinding serverBinding) { + this.serverBinding = serverBinding; + return this; + } + + /** + * Server ID associated with this node. + * @return value or {@code null} for none + */ + public java.lang.String getServerId() { + return serverId; + } + + /** + * Server ID associated with this node. + * @param serverId serverId or {@code null} for none + */ + public NodeGroupNode setServerId(java.lang.String serverId) { + this.serverId = serverId; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * @param status status or {@code null} for none + */ + public NodeGroupNode setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. Total amount of available resources on the node. + * @return value or {@code null} for none + */ + public InstanceConsumptionInfo getTotalResources() { + return totalResources; + } + + /** + * Output only. Total amount of available resources on the node. + * @param totalResources totalResources or {@code null} for none + */ + public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { + this.totalResources = totalResources; + return this; + } + + /** + * Output only. [Output Only] The information about an upcoming maintenance event. + * @return value or {@code null} for none + */ + public UpcomingMaintenance getUpcomingMaintenance() { + return upcomingMaintenance; + } + + /** + * Output only. [Output Only] The information about an upcoming maintenance event. + * @param upcomingMaintenance upcomingMaintenance or {@code null} for none + */ + public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { + this.upcomingMaintenance = upcomingMaintenance; + return this; + } + + @Override + public NodeGroupNode set(String fieldName, Object value) { + return (NodeGroupNode) super.set(fieldName, value); + } + + @Override + public NodeGroupNode clone() { + return (NodeGroupNode) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsAddNodesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsAddNodesRequest.java new file mode 100644 index 00000000000..d389339d016 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsAddNodesRequest.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; + +/** + * Model definition for NodeGroupsAddNodesRequest. + * + *

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 NodeGroupsAddNodesRequest extends com.google.api.client.json.GenericJson { + + /** + * Count of additional nodes to be added to the node group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer additionalNodeCount; + + /** + * Count of additional nodes to be added to the node group. + * @return value or {@code null} for none + */ + public java.lang.Integer getAdditionalNodeCount() { + return additionalNodeCount; + } + + /** + * Count of additional nodes to be added to the node group. + * @param additionalNodeCount additionalNodeCount or {@code null} for none + */ + public NodeGroupsAddNodesRequest setAdditionalNodeCount(java.lang.Integer additionalNodeCount) { + this.additionalNodeCount = additionalNodeCount; + return this; + } + + @Override + public NodeGroupsAddNodesRequest set(String fieldName, Object value) { + return (NodeGroupsAddNodesRequest) super.set(fieldName, value); + } + + @Override + public NodeGroupsAddNodesRequest clone() { + return (NodeGroupsAddNodesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsDeleteNodesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsDeleteNodesRequest.java new file mode 100644 index 00000000000..0d8d1fab2f1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsDeleteNodesRequest.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; + +/** + * Model definition for NodeGroupsDeleteNodesRequest. + * + *

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 NodeGroupsDeleteNodesRequest extends com.google.api.client.json.GenericJson { + + /** + * Names of the nodes to delete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodes; + + /** + * Names of the nodes to delete. + * @return value or {@code null} for none + */ + public java.util.List getNodes() { + return nodes; + } + + /** + * Names of the nodes to delete. + * @param nodes nodes or {@code null} for none + */ + public NodeGroupsDeleteNodesRequest setNodes(java.util.List nodes) { + this.nodes = nodes; + return this; + } + + @Override + public NodeGroupsDeleteNodesRequest set(String fieldName, Object value) { + return (NodeGroupsDeleteNodesRequest) super.set(fieldName, value); + } + + @Override + public NodeGroupsDeleteNodesRequest clone() { + return (NodeGroupsDeleteNodesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java new file mode 100644 index 00000000000..dbb728aba1d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -0,0 +1,386 @@ +/* + * 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 NodeGroupsListNodes. + * + *

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 NodeGroupsListNodes extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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 Node 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 NodeGroupNode 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(NodeGroupNode.class); + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for + * the list of nodes in the specified node group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public NodeGroupsListNodes setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Node resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Node resources. + * @param items items or {@code null} for none + */ + public NodeGroupsListNodes setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for + * the list of nodes in the specified node group. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for + * the list of nodes in the specified node group. + * @param kind kind or {@code null} for none + */ + public NodeGroupsListNodes setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeGroupsListNodes 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 NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public NodeGroupsListNodes setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeGroupsListNodes set(String fieldName, Object value) { + return (NodeGroupsListNodes) super.set(fieldName, value); + } + + @Override + public NodeGroupsListNodes clone() { + return (NodeGroupsListNodes) super.clone(); + } + + /** + * Output only. [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 NodeGroupsListNodesWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsPerformMaintenanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsPerformMaintenanceRequest.java new file mode 100644 index 00000000000..c567e306a54 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsPerformMaintenanceRequest.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for NodeGroupsPerformMaintenanceRequest. + * + *

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 NodeGroupsPerformMaintenanceRequest extends com.google.api.client.json.GenericJson { + + /** + * [Required] List of nodes affected by the call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodes; + + /** + * The start time of the schedule. The timestamp is an RFC3339 string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * [Required] List of nodes affected by the call. + * @return value or {@code null} for none + */ + public java.util.List getNodes() { + return nodes; + } + + /** + * [Required] List of nodes affected by the call. + * @param nodes nodes or {@code null} for none + */ + public NodeGroupsPerformMaintenanceRequest setNodes(java.util.List nodes) { + this.nodes = nodes; + return this; + } + + /** + * The start time of the schedule. The timestamp is an RFC3339 string. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * The start time of the schedule. The timestamp is an RFC3339 string. + * @param startTime startTime or {@code null} for none + */ + public NodeGroupsPerformMaintenanceRequest setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public NodeGroupsPerformMaintenanceRequest set(String fieldName, Object value) { + return (NodeGroupsPerformMaintenanceRequest) super.set(fieldName, value); + } + + @Override + public NodeGroupsPerformMaintenanceRequest clone() { + return (NodeGroupsPerformMaintenanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsScopedList.java new file mode 100644 index 00000000000..5f8268b1dce --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 NodeGroupsScopedList. + * + *

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 NodeGroupsScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of node groups contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodeGroups; + + static { + // hack to force ProGuard to consider NodeGroup 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(NodeGroup.class); + } + + /** + * [Output Only] An informational warning that appears when the nodeGroup list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of node groups contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getNodeGroups() { + return nodeGroups; + } + + /** + * [Output Only] A list of node groups contained in this scope. + * @param nodeGroups nodeGroups or {@code null} for none + */ + public NodeGroupsScopedList setNodeGroups(java.util.List nodeGroups) { + this.nodeGroups = nodeGroups; + return this; + } + + /** + * [Output Only] An informational warning that appears when the nodeGroup list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] An informational warning that appears when the nodeGroup list is empty. + * @param warning warning or {@code null} for none + */ + public NodeGroupsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeGroupsScopedList set(String fieldName, Object value) { + return (NodeGroupsScopedList) super.set(fieldName, value); + } + + @Override + public NodeGroupsScopedList clone() { + return (NodeGroupsScopedList) super.clone(); + } + + /** + * [Output Only] An informational warning that appears when the nodeGroup list is empty. + */ + 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 NodeGroupsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSetNodeTemplateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSetNodeTemplateRequest.java new file mode 100644 index 00000000000..ed365c3f3aa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSetNodeTemplateRequest.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; + +/** + * Model definition for NodeGroupsSetNodeTemplateRequest. + * + *

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 NodeGroupsSetNodeTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * Full or partial URL of the node template resource to be updated for this node group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** + * Full or partial URL of the node template resource to be updated for this node group. + * @return value or {@code null} for none + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** + * Full or partial URL of the node template resource to be updated for this node group. + * @param nodeTemplate nodeTemplate or {@code null} for none + */ + public NodeGroupsSetNodeTemplateRequest setNodeTemplate(java.lang.String nodeTemplate) { + this.nodeTemplate = nodeTemplate; + return this; + } + + @Override + public NodeGroupsSetNodeTemplateRequest set(String fieldName, Object value) { + return (NodeGroupsSetNodeTemplateRequest) super.set(fieldName, value); + } + + @Override + public NodeGroupsSetNodeTemplateRequest clone() { + return (NodeGroupsSetNodeTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSimulateMaintenanceEventRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSimulateMaintenanceEventRequest.java new file mode 100644 index 00000000000..8759c187265 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeGroupsSimulateMaintenanceEventRequest.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; + +/** + * Model definition for NodeGroupsSimulateMaintenanceEventRequest. + * + *

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 NodeGroupsSimulateMaintenanceEventRequest extends com.google.api.client.json.GenericJson { + + /** + * Names of the nodes to go under maintenance simulation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodes; + + /** + * Names of the nodes to go under maintenance simulation. + * @return value or {@code null} for none + */ + public java.util.List getNodes() { + return nodes; + } + + /** + * Names of the nodes to go under maintenance simulation. + * @param nodes nodes or {@code null} for none + */ + public NodeGroupsSimulateMaintenanceEventRequest setNodes(java.util.List nodes) { + this.nodes = nodes; + return this; + } + + @Override + public NodeGroupsSimulateMaintenanceEventRequest set(String fieldName, Object value) { + return (NodeGroupsSimulateMaintenanceEventRequest) super.set(fieldName, value); + } + + @Override + public NodeGroupsSimulateMaintenanceEventRequest clone() { + return (NodeGroupsSimulateMaintenanceEventRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplate.java new file mode 100644 index 00000000000..49172d7c01c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -0,0 +1,471 @@ +/* + * 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; + +/** + * Represent a sole-tenant Node Template resource. + * + * You can use a template to define properties for nodes in a node group. For more information, + * readCreating node groups and instances. + * + *

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 NodeTemplate extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accelerators; + + 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); + } + + /** + * CPU overcommit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cpuOvercommitType; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider LocalDisk 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(LocalDisk.class); + } + + /** + * 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] The type of the resource. Alwayscompute#nodeTemplate for node + * templates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + + /** + * Labels to use for node affinity, which will be used in instance scheduling. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map nodeAffinityLabels; + + /** + * The node type to use for nodes group that are created from this template. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nodeType; + + /** + * Do not use. Instead, use the node_type property. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; + + /** + * Output only. [Output Only] The name of the region where the node template resides, such as us- + * central1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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; + + /** + * Sets the binding properties for the physical server. Valid values include: - *[Default]* + * RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - + * RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible + * + * See Sole-tenant node options for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServerBinding serverBinding; + + /** + * Output only. [Output Only] The status of the node template. One of the following + * values:CREATING, READY, and DELETING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * @return value or {@code null} for none + */ + public java.util.List getAccelerators() { + return accelerators; + } + + /** + * @param accelerators accelerators or {@code null} for none + */ + public NodeTemplate setAccelerators(java.util.List accelerators) { + this.accelerators = accelerators; + return this; + } + + /** + * CPU overcommit. + * @return value or {@code null} for none + */ + public java.lang.String getCpuOvercommitType() { + return cpuOvercommitType; + } + + /** + * CPU overcommit. + * @param cpuOvercommitType cpuOvercommitType or {@code null} for none + */ + public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { + this.cpuOvercommitType = cpuOvercommitType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public NodeTemplate setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * @param disks disks or {@code null} for none + */ + public NodeTemplate setDisks(java.util.List disks) { + this.disks = disks; + 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 NodeTemplate setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node + * templates. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node + * templates. + * @param kind kind or {@code null} for none + */ + public NodeTemplate setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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 NodeTemplate setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Labels to use for node affinity, which will be used in instance scheduling. + * @return value or {@code null} for none + */ + public java.util.Map getNodeAffinityLabels() { + return nodeAffinityLabels; + } + + /** + * Labels to use for node affinity, which will be used in instance scheduling. + * @param nodeAffinityLabels nodeAffinityLabels or {@code null} for none + */ + public NodeTemplate setNodeAffinityLabels(java.util.Map nodeAffinityLabels) { + this.nodeAffinityLabels = nodeAffinityLabels; + return this; + } + + /** + * The node type to use for nodes group that are created from this template. + * @return value or {@code null} for none + */ + public java.lang.String getNodeType() { + return nodeType; + } + + /** + * The node type to use for nodes group that are created from this template. + * @param nodeType nodeType or {@code null} for none + */ + public NodeTemplate setNodeType(java.lang.String nodeType) { + this.nodeType = nodeType; + return this; + } + + /** + * Do not use. Instead, use the node_type property. + * @return value or {@code null} for none + */ + public NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility() { + return nodeTypeFlexibility; + } + + /** + * Do not use. Instead, use the node_type property. + * @param nodeTypeFlexibility nodeTypeFlexibility or {@code null} for none + */ + public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeTypeFlexibility) { + this.nodeTypeFlexibility = nodeTypeFlexibility; + return this; + } + + /** + * Output only. [Output Only] The name of the region where the node template resides, such as us- + * central1. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The name of the region where the node template resides, such as us- + * central1. + * @param region region or {@code null} for none + */ + public NodeTemplate setRegion(java.lang.String region) { + this.region = region; + 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 NodeTemplate setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Sets the binding properties for the physical server. Valid values include: - *[Default]* + * RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - + * RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible + * + * See Sole-tenant node options for more information. + * @return value or {@code null} for none + */ + public ServerBinding getServerBinding() { + return serverBinding; + } + + /** + * Sets the binding properties for the physical server. Valid values include: - *[Default]* + * RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - + * RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible + * + * See Sole-tenant node options for more information. + * @param serverBinding serverBinding or {@code null} for none + */ + public NodeTemplate setServerBinding(ServerBinding serverBinding) { + this.serverBinding = serverBinding; + return this; + } + + /** + * Output only. [Output Only] The status of the node template. One of the following + * values:CREATING, READY, and DELETING. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the node template. One of the following + * values:CREATING, READY, and DELETING. + * @param status status or {@code null} for none + */ + public NodeTemplate setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. [Output Only] An optional, human-readable explanation of the status. + * @param statusMessage statusMessage or {@code null} for none + */ + public NodeTemplate setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public NodeTemplate set(String fieldName, Object value) { + return (NodeTemplate) super.set(fieldName, value); + } + + @Override + public NodeTemplate clone() { + return (NodeTemplate) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java new file mode 100644 index 00000000000..4cd515355b9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 NodeTemplateAggregatedList. + * + *

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 NodeTemplateAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 NodeTemplatesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for + * aggregated lists of node templates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 NodeTemplateAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NodeTemplatesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NodeTemplatesScopedList resources. + * @param items items or {@code null} for none + */ + public NodeTemplateAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for + * aggregated lists of node templates. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for + * aggregated lists of node templates. + * @param kind kind or {@code null} for none + */ + public NodeTemplateAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeTemplateAggregatedList 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 NodeTemplateAggregatedList 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 NodeTemplateAggregatedList 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 NodeTemplateAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeTemplateAggregatedList set(String fieldName, Object value) { + return (NodeTemplateAggregatedList) super.set(fieldName, value); + } + + @Override + public NodeTemplateAggregatedList clone() { + return (NodeTemplateAggregatedList) 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 NodeTemplateAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java new file mode 100644 index 00000000000..07391c356b2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of node templates. + * + *

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 NodeTemplateList extends com.google.api.client.json.GenericJson { + + /** + * [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 NodeTemplate 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 NodeTemplate 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(NodeTemplate.class); + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node + * templates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NodeTemplateList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NodeTemplate resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NodeTemplate resources. + * @param items items or {@code null} for none + */ + public NodeTemplateList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node + * templates. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node + * templates. + * @param kind kind or {@code null} for none + */ + public NodeTemplateList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeTemplateList 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 NodeTemplateList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NodeTemplateList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeTemplateList set(String fieldName, Object value) { + return (NodeTemplateList) super.set(fieldName, value); + } + + @Override + public NodeTemplateList clone() { + return (NodeTemplateList) 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 NodeTemplateListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateNodeTypeFlexibility.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateNodeTypeFlexibility.java new file mode 100644 index 00000000000..219284caf73 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplateNodeTypeFlexibility.java @@ -0,0 +1,105 @@ +/* + * 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 NodeTemplateNodeTypeFlexibility. + * + *

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 NodeTemplateNodeTypeFlexibility extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cpus; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String localSsd; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String memory; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getCpus() { + return cpus; + } + + /** + * @param cpus cpus or {@code null} for none + */ + public NodeTemplateNodeTypeFlexibility setCpus(java.lang.String cpus) { + this.cpus = cpus; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getLocalSsd() { + return localSsd; + } + + /** + * @param localSsd localSsd or {@code null} for none + */ + public NodeTemplateNodeTypeFlexibility setLocalSsd(java.lang.String localSsd) { + this.localSsd = localSsd; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMemory() { + return memory; + } + + /** + * @param memory memory or {@code null} for none + */ + public NodeTemplateNodeTypeFlexibility setMemory(java.lang.String memory) { + this.memory = memory; + return this; + } + + @Override + public NodeTemplateNodeTypeFlexibility set(String fieldName, Object value) { + return (NodeTemplateNodeTypeFlexibility) super.set(fieldName, value); + } + + @Override + public NodeTemplateNodeTypeFlexibility clone() { + return (NodeTemplateNodeTypeFlexibility) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplatesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplatesScopedList.java new file mode 100644 index 00000000000..68df73f4b54 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTemplatesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 NodeTemplatesScopedList. + * + *

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 NodeTemplatesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of node templates contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodeTemplates; + + static { + // hack to force ProGuard to consider NodeTemplate 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(NodeTemplate.class); + } + + /** + * [Output Only] An informational warning that appears when the node templates list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of node templates contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getNodeTemplates() { + return nodeTemplates; + } + + /** + * [Output Only] A list of node templates contained in this scope. + * @param nodeTemplates nodeTemplates or {@code null} for none + */ + public NodeTemplatesScopedList setNodeTemplates(java.util.List nodeTemplates) { + this.nodeTemplates = nodeTemplates; + return this; + } + + /** + * [Output Only] An informational warning that appears when the node templates list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] An informational warning that appears when the node templates list is empty. + * @param warning warning or {@code null} for none + */ + public NodeTemplatesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeTemplatesScopedList set(String fieldName, Object value) { + return (NodeTemplatesScopedList) super.set(fieldName, value); + } + + @Override + public NodeTemplatesScopedList clone() { + return (NodeTemplatesScopedList) super.clone(); + } + + /** + * [Output Only] An informational warning that appears when the node templates list is empty. + */ + 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 NodeTemplatesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeType.java new file mode 100644 index 00000000000..f9f15a051ae --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -0,0 +1,362 @@ +/* + * 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; + +/** + * Represent a sole-tenant Node Type resource. + * + * Each node within a node group must have a node type. A node type specifies the total amount of + * cores and memory for that node. Currently, the only available node type is n1-node-96-624 node + * type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information + * readNode types. + * + *

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 NodeType extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The CPU platform used by this node type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cpuPlatform; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] The deprecation status associated with this node type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * [Output Only] An optional textual description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] The number of virtual CPUs that are available to the node type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer guestCpus; + + /** + * [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] The type of the resource. Alwayscompute#nodeType for node types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Local SSD available to the node type, defined in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer localSsdGb; + + /** + * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxVms; + + /** + * [Output Only] The amount of physical memory available to the node type, defined in MB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer memoryMb; + + /** + * [Output Only] Name of the resource. + * 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; + + /** + * Output only. [Output Only] The name of the zone where the node type resides, such as us- + * central1-a. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] The CPU platform used by this node type. + * @return value or {@code null} for none + */ + public java.lang.String getCpuPlatform() { + return cpuPlatform; + } + + /** + * [Output Only] The CPU platform used by this node type. + * @param cpuPlatform cpuPlatform or {@code null} for none + */ + public NodeType setCpuPlatform(java.lang.String cpuPlatform) { + this.cpuPlatform = cpuPlatform; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NodeType setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] The deprecation status associated with this node type. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * [Output Only] The deprecation status associated with this node type. + * @param deprecated deprecated or {@code null} for none + */ + public NodeType setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * [Output Only] An optional textual description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] An optional textual description of the resource. + * @param description description or {@code null} for none + */ + public NodeType setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] The number of virtual CPUs that are available to the node type. + * @return value or {@code null} for none + */ + public java.lang.Integer getGuestCpus() { + return guestCpus; + } + + /** + * [Output Only] The number of virtual CPUs that are available to the node type. + * @param guestCpus guestCpus or {@code null} for none + */ + public NodeType setGuestCpus(java.lang.Integer guestCpus) { + this.guestCpus = guestCpus; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public NodeType setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * @param kind kind or {@code null} for none + */ + public NodeType setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Local SSD available to the node type, defined in GB. + * @return value or {@code null} for none + */ + public java.lang.Integer getLocalSsdGb() { + return localSsdGb; + } + + /** + * [Output Only] Local SSD available to the node type, defined in GB. + * @param localSsdGb localSsdGb or {@code null} for none + */ + public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { + this.localSsdGb = localSsdGb; + return this; + } + + /** + * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxVms() { + return maxVms; + } + + /** + * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * @param maxVms maxVms or {@code null} for none + */ + public NodeType setMaxVms(java.lang.Integer maxVms) { + this.maxVms = maxVms; + return this; + } + + /** + * [Output Only] The amount of physical memory available to the node type, defined in MB. + * @return value or {@code null} for none + */ + public java.lang.Integer getMemoryMb() { + return memoryMb; + } + + /** + * [Output Only] The amount of physical memory available to the node type, defined in MB. + * @param memoryMb memoryMb or {@code null} for none + */ + public NodeType setMemoryMb(java.lang.Integer memoryMb) { + this.memoryMb = memoryMb; + return this; + } + + /** + * [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public NodeType 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 NodeType setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] The name of the zone where the node type resides, such as us- + * central1-a. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The name of the zone where the node type resides, such as us- + * central1-a. + * @param zone zone or {@code null} for none + */ + public NodeType setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public NodeType set(String fieldName, Object value) { + return (NodeType) super.set(fieldName, value); + } + + @Override + public NodeType clone() { + return (NodeType) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java new file mode 100644 index 00000000000..647e89107e1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 NodeTypeAggregatedList. + * + *

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 NodeTypeAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 NodeTypesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated + * lists of node types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 NodeTypeAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NodeTypesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NodeTypesScopedList resources. + * @param items items or {@code null} for none + */ + public NodeTypeAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated + * lists of node types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated + * lists of node types. + * @param kind kind or {@code null} for none + */ + public NodeTypeAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeTypeAggregatedList 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 NodeTypeAggregatedList 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 NodeTypeAggregatedList 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 NodeTypeAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeTypeAggregatedList set(String fieldName, Object value) { + return (NodeTypeAggregatedList) super.set(fieldName, value); + } + + @Override + public NodeTypeAggregatedList clone() { + return (NodeTypeAggregatedList) 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 NodeTypeAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeList.java new file mode 100644 index 00000000000..a6cc4fcdb7f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of node types. + * + *

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 NodeTypeList extends com.google.api.client.json.GenericJson { + + /** + * [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 NodeType 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 NodeType 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(NodeType.class); + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + * types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NodeTypeList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NodeType resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NodeType resources. + * @param items items or {@code null} for none + */ + public NodeTypeList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + * types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node + * types. + * @param kind kind or {@code null} for none + */ + public NodeTypeList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NodeTypeList 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 NodeTypeList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NodeTypeList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeTypeList set(String fieldName, Object value) { + return (NodeTypeList) super.set(fieldName, value); + } + + @Override + public NodeTypeList clone() { + return (NodeTypeList) 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 NodeTypeListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NodeTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypesScopedList.java new file mode 100644 index 00000000000..30fc1d353e5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NodeTypesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 NodeTypesScopedList. + * + *

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 NodeTypesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of node types contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodeTypes; + + static { + // hack to force ProGuard to consider NodeType 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(NodeType.class); + } + + /** + * [Output Only] An informational warning that appears when the node types list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of node types contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getNodeTypes() { + return nodeTypes; + } + + /** + * [Output Only] A list of node types contained in this scope. + * @param nodeTypes nodeTypes or {@code null} for none + */ + public NodeTypesScopedList setNodeTypes(java.util.List nodeTypes) { + this.nodeTypes = nodeTypes; + return this; + } + + /** + * [Output Only] An informational warning that appears when the node types list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] An informational warning that appears when the node types list is empty. + * @param warning warning or {@code null} for none + */ + public NodeTypesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NodeTypesScopedList set(String fieldName, Object value) { + return (NodeTypesScopedList) super.set(fieldName, value); + } + + @Override + public NodeTypesScopedList clone() { + return (NodeTypesScopedList) super.clone(); + } + + /** + * [Output Only] An informational warning that appears when the node types list is empty. + */ + 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 NodeTypesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java new file mode 100644 index 00000000000..29423ff6380 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -0,0 +1,263 @@ +/* + * 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 notification endpoint. + * + * A notification endpoint resource defines an endpoint to receive notifications when there are + * status changes detected by the associated health check service. + * + * For more information, see Health checks overview. + * + *

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 NotificationEndpoint extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NotificationEndpointGrpcSettings grpcSettings; + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] URL of the region where the notification endpoint resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public NotificationEndpoint setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. + * @return value or {@code null} for none + */ + public NotificationEndpointGrpcSettings getGrpcSettings() { + return grpcSettings; + } + + /** + * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. + * @param grpcSettings grpcSettings or {@code null} for none + */ + public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grpcSettings) { + this.grpcSettings = grpcSettings; + return this; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] A unique identifier for this resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public NotificationEndpoint setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. + * @param kind kind or {@code null} for none + */ + public NotificationEndpoint setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 NotificationEndpoint setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the notification endpoint resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the notification endpoint resides. This + * field applies only to the regional resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public NotificationEndpoint setRegion(java.lang.String region) { + this.region = region; + 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 NotificationEndpoint setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public NotificationEndpoint set(String fieldName, Object value) { + return (NotificationEndpoint) super.set(fieldName, value); + } + + @Override + public NotificationEndpoint clone() { + return (NotificationEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java new file mode 100644 index 00000000000..08c9dc553fe --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of NotificationEndpointsScopedList. + * + *

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 NotificationEndpointAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 NotificationEndpointsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 NotificationEndpointAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NotificationEndpointsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of NotificationEndpointsScopedList resources. + * @param items items or {@code null} for none + */ + public NotificationEndpointAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public NotificationEndpointAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NotificationEndpointAggregatedList 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 NotificationEndpointAggregatedList 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 NotificationEndpointAggregatedList 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 NotificationEndpointAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NotificationEndpointAggregatedList set(String fieldName, Object value) { + return (NotificationEndpointAggregatedList) super.set(fieldName, value); + } + + @Override + public NotificationEndpointAggregatedList clone() { + return (NotificationEndpointAggregatedList) 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 NotificationEndpointAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointGrpcSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointGrpcSettings.java new file mode 100644 index 00000000000..019b6b89c96 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointGrpcSettings.java @@ -0,0 +1,178 @@ +/* + * 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 gRPC setting that describes one gRPC notification endpoint and the retry duration + * attempting to send notification to this endpoint. + * + *

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 NotificationEndpointGrpcSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. If specified, this field is used to set the authority header by the sender of + * notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authority; + + /** + * Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** + * Optional. If specified, this field is used to populate the "name" field in gRPC requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String payloadName; + + /** + * Optional. This field is used to configure how often to send a full update of all non-healthy + * backends. If unspecified, full updates are not sent. If specified, must be in the range between + * 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification + * endpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration resendInterval; + + /** + * How much time (in seconds) is spent attempting notification retries until a successful response + * is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long retryDurationSec; + + /** + * Optional. If specified, this field is used to set the authority header by the sender of + * notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 + * @return value or {@code null} for none + */ + public java.lang.String getAuthority() { + return authority; + } + + /** + * Optional. If specified, this field is used to set the authority header by the sender of + * notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 + * @param authority authority or {@code null} for none + */ + public NotificationEndpointGrpcSettings setAuthority(java.lang.String authority) { + this.authority = authority; + return this; + } + + /** + * Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. + * @return value or {@code null} for none + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. + * @param endpoint endpoint or {@code null} for none + */ + public NotificationEndpointGrpcSettings setEndpoint(java.lang.String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Optional. If specified, this field is used to populate the "name" field in gRPC requests. + * @return value or {@code null} for none + */ + public java.lang.String getPayloadName() { + return payloadName; + } + + /** + * Optional. If specified, this field is used to populate the "name" field in gRPC requests. + * @param payloadName payloadName or {@code null} for none + */ + public NotificationEndpointGrpcSettings setPayloadName(java.lang.String payloadName) { + this.payloadName = payloadName; + return this; + } + + /** + * Optional. This field is used to configure how often to send a full update of all non-healthy + * backends. If unspecified, full updates are not sent. If specified, must be in the range between + * 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification + * endpoints. + * @return value or {@code null} for none + */ + public Duration getResendInterval() { + return resendInterval; + } + + /** + * Optional. This field is used to configure how often to send a full update of all non-healthy + * backends. If unspecified, full updates are not sent. If specified, must be in the range between + * 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification + * endpoints. + * @param resendInterval resendInterval or {@code null} for none + */ + public NotificationEndpointGrpcSettings setResendInterval(Duration resendInterval) { + this.resendInterval = resendInterval; + return this; + } + + /** + * How much time (in seconds) is spent attempting notification retries until a successful response + * is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. + * @return value or {@code null} for none + */ + public java.lang.Long getRetryDurationSec() { + return retryDurationSec; + } + + /** + * How much time (in seconds) is spent attempting notification retries until a successful response + * is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. + * @param retryDurationSec retryDurationSec or {@code null} for none + */ + public NotificationEndpointGrpcSettings setRetryDurationSec(java.lang.Long retryDurationSec) { + this.retryDurationSec = retryDurationSec; + return this; + } + + @Override + public NotificationEndpointGrpcSettings set(String fieldName, Object value) { + return (NotificationEndpointGrpcSettings) super.set(fieldName, value); + } + + @Override + public NotificationEndpointGrpcSettings clone() { + return (NotificationEndpointGrpcSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java new file mode 100644 index 00000000000..06e2aff8fa0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -0,0 +1,386 @@ +/* + * 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 NotificationEndpointList. + * + *

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 NotificationEndpointList extends com.google.api.client.json.GenericJson { + + /** + * [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 NotificationEndpoint 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 NotificationEndpoint 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(NotificationEndpoint.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 NotificationEndpointList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of NotificationEndpoint resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of NotificationEndpoint resources. + * @param items items or {@code null} for none + */ + public NotificationEndpointList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for + * notification endpoints. + * @param kind kind or {@code null} for none + */ + public NotificationEndpointList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public NotificationEndpointList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public NotificationEndpointList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 NotificationEndpointList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NotificationEndpointList set(String fieldName, Object value) { + return (NotificationEndpointList) super.set(fieldName, value); + } + + @Override + public NotificationEndpointList clone() { + return (NotificationEndpointList) 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 NotificationEndpointListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java new file mode 100644 index 00000000000..b943c2f0f5a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 NotificationEndpointsScopedList. + * + *

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 NotificationEndpointsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of NotificationEndpoints contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + static { + // hack to force ProGuard to consider NotificationEndpoint 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(NotificationEndpoint.class); + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of NotificationEndpoints contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * A list of NotificationEndpoints contained in this scope. + * @param resources resources or {@code null} for none + */ + public NotificationEndpointsScopedList setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + * @param warning warning or {@code null} for none + */ + public NotificationEndpointsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public NotificationEndpointsScopedList set(String fieldName, Object value) { + return (NotificationEndpointsScopedList) super.set(fieldName, value); + } + + @Override + public NotificationEndpointsScopedList clone() { + return (NotificationEndpointsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of notification endpoints when the list is empty. + */ + 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 NotificationEndpointsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Operation.java new file mode 100644 index 00000000000..343378d30b6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Operation.java @@ -0,0 +1,1286 @@ +/* + * 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 an Operation resource. + * + * Google Compute Engine has three Operation resources: + * + * * [Global](/compute/docs/reference/rest/v1/globalOperations) * + * [Regional](/compute/docs/reference/rest/v1/regionOperations) * + * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + * + * You can use an operation resource to manage asynchronous API requests. For more information, + * readHandling API responses. + * + * Operations can be global, regional or zonal. - For global operations, use the + * `globalOperations` resource. - For regional operations, use the `regionOperations` + * resource. - For zonal operations, use the `zoneOperations` resource. + * + * For more information, read Global, Regional, and Zonal Resources. + * + * Note that completed Operation resources have a limited retention period. + * + *

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 Operation extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The value of `requestId` if you provided it in the request. Not present + * otherwise. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** + * [Deprecated] This field is deprecated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] A textual description of the operation, which is set when the operation is + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] The time that this operation was completed. This value is inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endTime; + + /** + * [Output Only] If errors are generated during processing of the operation, this field will be + * populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. Metadata for GetHealth operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetHealthOperationMetadata getHealthOperationMetadata; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GetVersionOperationMetadata getVersionOperationMetadata; + + /** + * [Output Only] If the operation fails, this field contains the HTTP error message that was + * returned, such as `NOT FOUND`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String httpErrorMessage; + + /** + * [Output Only] If the operation fails, this field contains the HTTP error status code that was + * returned. For example, a `404` means the resource was not found. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer httpErrorStatusCode; + + /** + * [Output Only] The unique identifier for the operation. 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] The time that this operation was requested. This value is inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String insertTime; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; + + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstancesTroubleshootOperationMetadata instancesTroubleshootOperationMetadata; + + /** + * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Name of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] An ID that represents a group of operations, such as when a group of + * operations results from a `bulkInsert` API request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operationGroupId; + + /** + * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operationType; + + /** + * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement + * that this be linear or support any granularity of operations. This should not be used to guess + * when the operation will be complete. This number should monotonically increase as the operation + * progresses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer progress; + + /** + * [Output Only] The URL of the region where the operation resides. Only applicable when + * performing regional operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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] If the operation is for projects.setCommonInstanceMetadata, this + * field will contain information on all underlying zonal actions and their state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata; + + /** + * [Output Only] The time that this operation was started by the server. This value is inRFC3339 + * text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * [Output Only] The status of the operation, which can be one of the following: `PENDING`, + * `RUNNING`, or `DONE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * [Output Only] An optional textual description of the current status of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * [Output Only] The unique target ID, which identifies a specific incarnation of the target + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger targetId; + + /** + * [Output Only] The URL of the resource that the operation modifies. For operations related to + * creating a snapshot, this points to the disk that the snapshot was created from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetLink; + + /** + * [Output Only] User who requested the operation, for example: `user@example.com` or + * `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String user; + + /** + * [Output Only] If warning messages are generated during processing of the operation, this field + * will be populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + static { + // hack to force ProGuard to consider Warnings 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(Warnings.class); + } + + /** + * [Output Only] The URL of the zone where the operation resides. Only applicable when performing + * per-zone operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] The value of `requestId` if you provided it in the request. Not present + * otherwise. + * @return value or {@code null} for none + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * [Output Only] The value of `requestId` if you provided it in the request. Not present + * otherwise. + * @param clientOperationId clientOperationId or {@code null} for none + */ + public Operation setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + /** + * [Deprecated] This field is deprecated. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Deprecated] This field is deprecated. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Operation setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] A textual description of the operation, which is set when the operation is + * created. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] A textual description of the operation, which is set when the operation is + * created. + * @param description description or {@code null} for none + */ + public Operation setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] The time that this operation was completed. This value is inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getEndTime() { + return endTime; + } + + /** + * [Output Only] The time that this operation was completed. This value is inRFC3339 text format. + * @param endTime endTime or {@code null} for none + */ + public Operation setEndTime(java.lang.String endTime) { + this.endTime = endTime; + return this; + } + + /** + * [Output Only] If errors are generated during processing of the operation, this field will be + * populated. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * [Output Only] If errors are generated during processing of the operation, this field will be + * populated. + * @param error error or {@code null} for none + */ + public Operation setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. Metadata for GetHealth operations. + * @return value or {@code null} for none + */ + public GetHealthOperationMetadata getGetHealthOperationMetadata() { + return getHealthOperationMetadata; + } + + /** + * Output only. Metadata for GetHealth operations. + * @param getHealthOperationMetadata getHealthOperationMetadata or {@code null} for none + */ + public Operation setGetHealthOperationMetadata(GetHealthOperationMetadata getHealthOperationMetadata) { + this.getHealthOperationMetadata = getHealthOperationMetadata; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GetVersionOperationMetadata getGetVersionOperationMetadata() { + return getVersionOperationMetadata; + } + + /** + * @param getVersionOperationMetadata getVersionOperationMetadata or {@code null} for none + */ + public Operation setGetVersionOperationMetadata(GetVersionOperationMetadata getVersionOperationMetadata) { + this.getVersionOperationMetadata = getVersionOperationMetadata; + return this; + } + + /** + * [Output Only] If the operation fails, this field contains the HTTP error message that was + * returned, such as `NOT FOUND`. + * @return value or {@code null} for none + */ + public java.lang.String getHttpErrorMessage() { + return httpErrorMessage; + } + + /** + * [Output Only] If the operation fails, this field contains the HTTP error message that was + * returned, such as `NOT FOUND`. + * @param httpErrorMessage httpErrorMessage or {@code null} for none + */ + public Operation setHttpErrorMessage(java.lang.String httpErrorMessage) { + this.httpErrorMessage = httpErrorMessage; + return this; + } + + /** + * [Output Only] If the operation fails, this field contains the HTTP error status code that was + * returned. For example, a `404` means the resource was not found. + * @return value or {@code null} for none + */ + public java.lang.Integer getHttpErrorStatusCode() { + return httpErrorStatusCode; + } + + /** + * [Output Only] If the operation fails, this field contains the HTTP error status code that was + * returned. For example, a `404` means the resource was not found. + * @param httpErrorStatusCode httpErrorStatusCode or {@code null} for none + */ + public Operation setHttpErrorStatusCode(java.lang.Integer httpErrorStatusCode) { + this.httpErrorStatusCode = httpErrorStatusCode; + return this; + } + + /** + * [Output Only] The unique identifier for the operation. This identifier is defined by the + * server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the operation. This identifier is defined by the + * server. + * @param id id or {@code null} for none + */ + public Operation setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * [Output Only] The time that this operation was requested. This value is inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getInsertTime() { + return insertTime; + } + + /** + * [Output Only] The time that this operation was requested. This value is inRFC3339 text format. + * @param insertTime insertTime or {@code null} for none + */ + public Operation setInsertTime(java.lang.String insertTime) { + this.insertTime = insertTime; + return this; + } + + /** + * @return value or {@code null} for none + */ + public InstancesBulkInsertOperationMetadata getInstancesBulkInsertOperationMetadata() { + return instancesBulkInsertOperationMetadata; + } + + /** + * @param instancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata or {@code null} for none + */ + public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata) { + this.instancesBulkInsertOperationMetadata = instancesBulkInsertOperationMetadata; + return this; + } + + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + * @return value or {@code null} for none + */ + public InstancesTroubleshootOperationMetadata getInstancesTroubleshootOperationMetadata() { + return instancesTroubleshootOperationMetadata; + } + + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + * @param instancesTroubleshootOperationMetadata instancesTroubleshootOperationMetadata or {@code null} for none + */ + public Operation setInstancesTroubleshootOperationMetadata(InstancesTroubleshootOperationMetadata instancesTroubleshootOperationMetadata) { + this.instancesTroubleshootOperationMetadata = instancesTroubleshootOperationMetadata; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation + * resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation + * resources. + * @param kind kind or {@code null} for none + */ + public Operation setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Name of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the operation. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] An ID that represents a group of operations, such as when a group of + * operations results from a `bulkInsert` API request. + * @return value or {@code null} for none + */ + public java.lang.String getOperationGroupId() { + return operationGroupId; + } + + /** + * Output only. [Output Only] An ID that represents a group of operations, such as when a group of + * operations results from a `bulkInsert` API request. + * @param operationGroupId operationGroupId or {@code null} for none + */ + public Operation setOperationGroupId(java.lang.String operationGroupId) { + this.operationGroupId = operationGroupId; + return this; + } + + /** + * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. + * @return value or {@code null} for none + */ + public java.lang.String getOperationType() { + return operationType; + } + + /** + * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. + * @param operationType operationType or {@code null} for none + */ + public Operation setOperationType(java.lang.String operationType) { + this.operationType = operationType; + return this; + } + + /** + * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement + * that this be linear or support any granularity of operations. This should not be used to guess + * when the operation will be complete. This number should monotonically increase as the operation + * progresses. + * @return value or {@code null} for none + */ + public java.lang.Integer getProgress() { + return progress; + } + + /** + * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement + * that this be linear or support any granularity of operations. This should not be used to guess + * when the operation will be complete. This number should monotonically increase as the operation + * progresses. + * @param progress progress or {@code null} for none + */ + public Operation setProgress(java.lang.Integer progress) { + this.progress = progress; + return this; + } + + /** + * [Output Only] The URL of the region where the operation resides. Only applicable when + * performing regional operations. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] The URL of the region where the operation resides. Only applicable when + * performing regional operations. + * @param region region or {@code null} for none + */ + public Operation setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Operation setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this + * field will contain information on all underlying zonal actions and their state. + * @return value or {@code null} for none + */ + public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOperationMetadata() { + return setCommonInstanceMetadataOperationMetadata; + } + + /** + * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this + * field will contain information on all underlying zonal actions and their state. + * @param setCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata or {@code null} for none + */ + public Operation setSetCommonInstanceMetadataOperationMetadata(SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata) { + this.setCommonInstanceMetadataOperationMetadata = setCommonInstanceMetadataOperationMetadata; + return this; + } + + /** + * [Output Only] The time that this operation was started by the server. This value is inRFC3339 + * text format. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * [Output Only] The time that this operation was started by the server. This value is inRFC3339 + * text format. + * @param startTime startTime or {@code null} for none + */ + public Operation setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + /** + * [Output Only] The status of the operation, which can be one of the following: `PENDING`, + * `RUNNING`, or `DONE`. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] The status of the operation, which can be one of the following: `PENDING`, + * `RUNNING`, or `DONE`. + * @param status status or {@code null} for none + */ + public Operation setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * [Output Only] An optional textual description of the current status of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * [Output Only] An optional textual description of the current status of the operation. + * @param statusMessage statusMessage or {@code null} for none + */ + public Operation setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * [Output Only] The unique target ID, which identifies a specific incarnation of the target + * resource. + * @return value or {@code null} for none + */ + public java.math.BigInteger getTargetId() { + return targetId; + } + + /** + * [Output Only] The unique target ID, which identifies a specific incarnation of the target + * resource. + * @param targetId targetId or {@code null} for none + */ + public Operation setTargetId(java.math.BigInteger targetId) { + this.targetId = targetId; + return this; + } + + /** + * [Output Only] The URL of the resource that the operation modifies. For operations related to + * creating a snapshot, this points to the disk that the snapshot was created from. + * @return value or {@code null} for none + */ + public java.lang.String getTargetLink() { + return targetLink; + } + + /** + * [Output Only] The URL of the resource that the operation modifies. For operations related to + * creating a snapshot, this points to the disk that the snapshot was created from. + * @param targetLink targetLink or {@code null} for none + */ + public Operation setTargetLink(java.lang.String targetLink) { + this.targetLink = targetLink; + return this; + } + + /** + * [Output Only] User who requested the operation, for example: `user@example.com` or + * `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. + * @return value or {@code null} for none + */ + public java.lang.String getUser() { + return user; + } + + /** + * [Output Only] User who requested the operation, for example: `user@example.com` or + * `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. + * @param user user or {@code null} for none + */ + public Operation setUser(java.lang.String user) { + this.user = user; + return this; + } + + /** + * [Output Only] If warning messages are generated during processing of the operation, this field + * will be populated. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * [Output Only] If warning messages are generated during processing of the operation, this field + * will be populated. + * @param warnings warnings or {@code null} for none + */ + public Operation setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + /** + * [Output Only] The URL of the zone where the operation resides. Only applicable when performing + * per-zone operations. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] The URL of the zone where the operation resides. Only applicable when performing + * per-zone operations. + * @param zone zone or {@code null} for none + */ + public Operation setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + + /** + * [Output Only] If errors are generated during processing of the operation, this field will be + * populated. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + + /** + * Model definition for OperationWarnings. + */ + public static final class Warnings 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 Warnings 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 Warnings 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 Warnings setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warnings set(String fieldName, Object value) { + return (Warnings) super.set(fieldName, value); + } + + @Override + public Warnings clone() { + return (Warnings) super.clone(); + } + + /** + * Model definition for OperationWarningsData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java new file mode 100644 index 00000000000..53c35878ed0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 OperationAggregatedList. + * + *

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 OperationAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 + private java.lang.String id; + + /** + * [Output Only] A map of scoped operation lists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for + * aggregated lists of operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query + * parameter `pageToken` in the next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public OperationAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * [Output Only] A map of scoped operation lists. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * [Output Only] A map of scoped operation lists. + * @param items items or {@code null} for none + */ + public OperationAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for + * aggregated lists of operations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for + * aggregated lists of operations. + * @param kind kind or {@code null} for none + */ + public OperationAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query + * parameter `pageToken` in the next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query + * parameter `pageToken` in the next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public OperationAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public OperationAggregatedList 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 OperationAggregatedList 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 OperationAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public OperationAggregatedList set(String fieldName, Object value) { + return (OperationAggregatedList) super.set(fieldName, value); + } + + @Override + public OperationAggregatedList clone() { + return (OperationAggregatedList) 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 OperationAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationList.java new file mode 100644 index 00000000000..8f147d6952f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of Operation resources. + * + *

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 OperationList extends com.google.api.client.json.GenericJson { + + /** + * [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 + private java.lang.String id; + + /** + * [Output Only] A list of Operation 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 Operation 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(Operation.class); + } + + /** + * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query + * parameter `pageToken` in the next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public OperationList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * [Output Only] A list of Operation resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * [Output Only] A list of Operation resources. + * @param items items or {@code null} for none + */ + public OperationList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations + * resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations + * resource. + * @param kind kind or {@code null} for none + */ + public OperationList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query + * parameter `pageToken` in the next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query + * parameter `pageToken` in the next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public OperationList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public OperationList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 OperationList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public OperationList set(String fieldName, Object value) { + return (OperationList) super.set(fieldName, value); + } + + @Override + public OperationList clone() { + return (OperationList) 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 OperationListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/OperationsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationsScopedList.java new file mode 100644 index 00000000000..54020a6c097 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OperationsScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 OperationsScopedList. + * + *

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 OperationsScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of operations contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + static { + // hack to force ProGuard to consider Operation 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(Operation.class); + } + + /** + * [Output Only] Informational warning which replaces the list of operations when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of operations contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * [Output Only] A list of operations contained in this scope. + * @param operations operations or {@code null} for none + */ + public OperationsScopedList setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of operations when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of operations when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public OperationsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public OperationsScopedList set(String fieldName, Object value) { + return (OperationsScopedList) super.set(fieldName, value); + } + + @Override + public OperationsScopedList clone() { + return (OperationsScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of operations when the list is empty. + */ + 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 OperationsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java new file mode 100644 index 00000000000..5608b2e6ea6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -0,0 +1,96 @@ +/* + * 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 OrganizationSecurityPoliciesListAssociationsResponse. + * + *

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 OrganizationSecurityPoliciesListAssociationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of associations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List associations; + + /** + * Output only. [Output Only] Type of securityPolicy associations. + * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy + * associations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A list of associations. + * @return value or {@code null} for none + */ + public java.util.List getAssociations() { + return associations; + } + + /** + * A list of associations. + * @param associations associations or {@code null} for none + */ + public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java.util.List associations) { + this.associations = associations; + return this; + } + + /** + * Output only. [Output Only] Type of securityPolicy associations. + * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy + * associations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of securityPolicy associations. + * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy + * associations. + * @param kind kind or {@code null} for none + */ + public OrganizationSecurityPoliciesListAssociationsResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public OrganizationSecurityPoliciesListAssociationsResponse set(String fieldName, Object value) { + return (OrganizationSecurityPoliciesListAssociationsResponse) super.set(fieldName, value); + } + + @Override + public OrganizationSecurityPoliciesListAssociationsResponse clone() { + return (OrganizationSecurityPoliciesListAssociationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OutlierDetection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OutlierDetection.java new file mode 100644 index 00000000000..7c6627ba38a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/OutlierDetection.java @@ -0,0 +1,418 @@ +/* + * 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; + +/** + * Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend + * service. + * + *

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 OutlierDetection extends com.google.api.client.json.GenericJson { + + /** + * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. + * + * After a backend endpoint is returned back to the load balancing pool, it can be ejected again + * in another ejection analysis. Thus, the total ejection time is equal to the base ejection time + * multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or + * 30s. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration baseEjectionTime; + + /** + * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. + * When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. + * Defaults to 5. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer consecutiveErrors; + + /** + * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are + * mapped to one of those status codes) before a consecutive gateway failure ejection occurs. + * Defaults to 3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer consecutiveGatewayFailure; + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up + * slowly. Defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer enforcingConsecutiveErrors; + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through consecutive gateway failures. This setting can be used to disable ejection or + * to ramp it up slowly. Defaults to 100. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer enforcingConsecutiveGatewayFailure; + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through success rate statistics. This setting can be used to disable ejection or to + * ramp it up slowly. Defaults to 100. + * + * Not supported when the backend service uses Serverless NEG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer enforcingSuccessRate; + + /** + * Time interval between ejection analysis sweeps. This can result in both new ejections and + * backend endpoints being returned to service. The interval is equal to the number of seconds as + * defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in + * outlierDetection.interval.nanos. Defaults to 1 second. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration interval; + + /** + * Maximum percentage of backend endpoints in the load balancing pool for the backend service that + * can be ejected if the ejection conditions are met. Defaults to 50%. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxEjectionPercent; + + /** + * The number of backend endpoints in the load balancing pool that must have enough request volume + * to detect success rate outliers. If the number of backend endpoints is fewer than this setting, + * outlier detection via success rate statistics is not performed for any backend endpoint in the + * load balancing pool. Defaults to 5. + * + * Not supported when the backend service uses Serverless NEG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer successRateMinimumHosts; + + /** + * The minimum number of total requests that must be collected in one interval (as defined by the + * interval duration above) to include this backend endpoint in success rate based outlier + * detection. If the volume is lower than this setting, outlier detection via success rate + * statistics is not performed for that backend endpoint. Defaults to 100. + * + * Not supported when the backend service uses Serverless NEG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer successRateRequestVolume; + + /** + * This factor is used to determine the ejection threshold for success rate outlier ejection. The + * ejection threshold is the difference between the mean success rate, and the product of this + * factor and the standard deviation of the mean success rate: mean - (stdev * + * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the + * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. + * + * Not supported when the backend service uses Serverless NEG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer successRateStdevFactor; + + /** + * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. + * + * After a backend endpoint is returned back to the load balancing pool, it can be ejected again + * in another ejection analysis. Thus, the total ejection time is equal to the base ejection time + * multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or + * 30s. + * @return value or {@code null} for none + */ + public Duration getBaseEjectionTime() { + return baseEjectionTime; + } + + /** + * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. + * + * After a backend endpoint is returned back to the load balancing pool, it can be ejected again + * in another ejection analysis. Thus, the total ejection time is equal to the base ejection time + * multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or + * 30s. + * @param baseEjectionTime baseEjectionTime or {@code null} for none + */ + public OutlierDetection setBaseEjectionTime(Duration baseEjectionTime) { + this.baseEjectionTime = baseEjectionTime; + return this; + } + + /** + * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. + * When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. + * Defaults to 5. + * @return value or {@code null} for none + */ + public java.lang.Integer getConsecutiveErrors() { + return consecutiveErrors; + } + + /** + * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. + * When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. + * Defaults to 5. + * @param consecutiveErrors consecutiveErrors or {@code null} for none + */ + public OutlierDetection setConsecutiveErrors(java.lang.Integer consecutiveErrors) { + this.consecutiveErrors = consecutiveErrors; + return this; + } + + /** + * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are + * mapped to one of those status codes) before a consecutive gateway failure ejection occurs. + * Defaults to 3. + * @return value or {@code null} for none + */ + public java.lang.Integer getConsecutiveGatewayFailure() { + return consecutiveGatewayFailure; + } + + /** + * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are + * mapped to one of those status codes) before a consecutive gateway failure ejection occurs. + * Defaults to 3. + * @param consecutiveGatewayFailure consecutiveGatewayFailure or {@code null} for none + */ + public OutlierDetection setConsecutiveGatewayFailure(java.lang.Integer consecutiveGatewayFailure) { + this.consecutiveGatewayFailure = consecutiveGatewayFailure; + return this; + } + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up + * slowly. Defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getEnforcingConsecutiveErrors() { + return enforcingConsecutiveErrors; + } + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up + * slowly. Defaults to 0. + * @param enforcingConsecutiveErrors enforcingConsecutiveErrors or {@code null} for none + */ + public OutlierDetection setEnforcingConsecutiveErrors(java.lang.Integer enforcingConsecutiveErrors) { + this.enforcingConsecutiveErrors = enforcingConsecutiveErrors; + return this; + } + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through consecutive gateway failures. This setting can be used to disable ejection or + * to ramp it up slowly. Defaults to 100. + * @return value or {@code null} for none + */ + public java.lang.Integer getEnforcingConsecutiveGatewayFailure() { + return enforcingConsecutiveGatewayFailure; + } + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through consecutive gateway failures. This setting can be used to disable ejection or + * to ramp it up slowly. Defaults to 100. + * @param enforcingConsecutiveGatewayFailure enforcingConsecutiveGatewayFailure or {@code null} for none + */ + public OutlierDetection setEnforcingConsecutiveGatewayFailure(java.lang.Integer enforcingConsecutiveGatewayFailure) { + this.enforcingConsecutiveGatewayFailure = enforcingConsecutiveGatewayFailure; + return this; + } + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through success rate statistics. This setting can be used to disable ejection or to + * ramp it up slowly. Defaults to 100. + * + * Not supported when the backend service uses Serverless NEG. + * @return value or {@code null} for none + */ + public java.lang.Integer getEnforcingSuccessRate() { + return enforcingSuccessRate; + } + + /** + * The percentage chance that a backend endpoint will be ejected when an outlier status is + * detected through success rate statistics. This setting can be used to disable ejection or to + * ramp it up slowly. Defaults to 100. + * + * Not supported when the backend service uses Serverless NEG. + * @param enforcingSuccessRate enforcingSuccessRate or {@code null} for none + */ + public OutlierDetection setEnforcingSuccessRate(java.lang.Integer enforcingSuccessRate) { + this.enforcingSuccessRate = enforcingSuccessRate; + return this; + } + + /** + * Time interval between ejection analysis sweeps. This can result in both new ejections and + * backend endpoints being returned to service. The interval is equal to the number of seconds as + * defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in + * outlierDetection.interval.nanos. Defaults to 1 second. + * @return value or {@code null} for none + */ + public Duration getInterval() { + return interval; + } + + /** + * Time interval between ejection analysis sweeps. This can result in both new ejections and + * backend endpoints being returned to service. The interval is equal to the number of seconds as + * defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in + * outlierDetection.interval.nanos. Defaults to 1 second. + * @param interval interval or {@code null} for none + */ + public OutlierDetection setInterval(Duration interval) { + this.interval = interval; + return this; + } + + /** + * Maximum percentage of backend endpoints in the load balancing pool for the backend service that + * can be ejected if the ejection conditions are met. Defaults to 50%. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxEjectionPercent() { + return maxEjectionPercent; + } + + /** + * Maximum percentage of backend endpoints in the load balancing pool for the backend service that + * can be ejected if the ejection conditions are met. Defaults to 50%. + * @param maxEjectionPercent maxEjectionPercent or {@code null} for none + */ + public OutlierDetection setMaxEjectionPercent(java.lang.Integer maxEjectionPercent) { + this.maxEjectionPercent = maxEjectionPercent; + return this; + } + + /** + * The number of backend endpoints in the load balancing pool that must have enough request volume + * to detect success rate outliers. If the number of backend endpoints is fewer than this setting, + * outlier detection via success rate statistics is not performed for any backend endpoint in the + * load balancing pool. Defaults to 5. + * + * Not supported when the backend service uses Serverless NEG. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuccessRateMinimumHosts() { + return successRateMinimumHosts; + } + + /** + * The number of backend endpoints in the load balancing pool that must have enough request volume + * to detect success rate outliers. If the number of backend endpoints is fewer than this setting, + * outlier detection via success rate statistics is not performed for any backend endpoint in the + * load balancing pool. Defaults to 5. + * + * Not supported when the backend service uses Serverless NEG. + * @param successRateMinimumHosts successRateMinimumHosts or {@code null} for none + */ + public OutlierDetection setSuccessRateMinimumHosts(java.lang.Integer successRateMinimumHosts) { + this.successRateMinimumHosts = successRateMinimumHosts; + return this; + } + + /** + * The minimum number of total requests that must be collected in one interval (as defined by the + * interval duration above) to include this backend endpoint in success rate based outlier + * detection. If the volume is lower than this setting, outlier detection via success rate + * statistics is not performed for that backend endpoint. Defaults to 100. + * + * Not supported when the backend service uses Serverless NEG. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuccessRateRequestVolume() { + return successRateRequestVolume; + } + + /** + * The minimum number of total requests that must be collected in one interval (as defined by the + * interval duration above) to include this backend endpoint in success rate based outlier + * detection. If the volume is lower than this setting, outlier detection via success rate + * statistics is not performed for that backend endpoint. Defaults to 100. + * + * Not supported when the backend service uses Serverless NEG. + * @param successRateRequestVolume successRateRequestVolume or {@code null} for none + */ + public OutlierDetection setSuccessRateRequestVolume(java.lang.Integer successRateRequestVolume) { + this.successRateRequestVolume = successRateRequestVolume; + return this; + } + + /** + * This factor is used to determine the ejection threshold for success rate outlier ejection. The + * ejection threshold is the difference between the mean success rate, and the product of this + * factor and the standard deviation of the mean success rate: mean - (stdev * + * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the + * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. + * + * Not supported when the backend service uses Serverless NEG. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuccessRateStdevFactor() { + return successRateStdevFactor; + } + + /** + * This factor is used to determine the ejection threshold for success rate outlier ejection. The + * ejection threshold is the difference between the mean success rate, and the product of this + * factor and the standard deviation of the mean success rate: mean - (stdev * + * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the + * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. + * + * Not supported when the backend service uses Serverless NEG. + * @param successRateStdevFactor successRateStdevFactor or {@code null} for none + */ + public OutlierDetection setSuccessRateStdevFactor(java.lang.Integer successRateStdevFactor) { + this.successRateStdevFactor = successRateStdevFactor; + return this; + } + + @Override + public OutlierDetection set(String fieldName, Object value) { + return (OutlierDetection) super.set(fieldName, value); + } + + @Override + public OutlierDetection clone() { + return (OutlierDetection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketIntervals.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketIntervals.java new file mode 100644 index 00000000000..2e05995b1d8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketIntervals.java @@ -0,0 +1,186 @@ +/* + * 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; + +/** + * Next free: 7 + * + *

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 PacketIntervals extends com.google.api.client.json.GenericJson { + + /** + * Average observed inter-packet interval in milliseconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long avgMs; + + /** + * From how long ago in the past these intervals were observed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String duration; + + /** + * Maximum observed inter-packet interval in milliseconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxMs; + + /** + * Minimum observed inter-packet interval in milliseconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minMs; + + /** + * Number of inter-packet intervals from which these statistics were derived. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long numIntervals; + + /** + * The type of packets for which inter-packet intervals were computed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Average observed inter-packet interval in milliseconds. + * @return value or {@code null} for none + */ + public java.lang.Long getAvgMs() { + return avgMs; + } + + /** + * Average observed inter-packet interval in milliseconds. + * @param avgMs avgMs or {@code null} for none + */ + public PacketIntervals setAvgMs(java.lang.Long avgMs) { + this.avgMs = avgMs; + return this; + } + + /** + * From how long ago in the past these intervals were observed. + * @return value or {@code null} for none + */ + public java.lang.String getDuration() { + return duration; + } + + /** + * From how long ago in the past these intervals were observed. + * @param duration duration or {@code null} for none + */ + public PacketIntervals setDuration(java.lang.String duration) { + this.duration = duration; + return this; + } + + /** + * Maximum observed inter-packet interval in milliseconds. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxMs() { + return maxMs; + } + + /** + * Maximum observed inter-packet interval in milliseconds. + * @param maxMs maxMs or {@code null} for none + */ + public PacketIntervals setMaxMs(java.lang.Long maxMs) { + this.maxMs = maxMs; + return this; + } + + /** + * Minimum observed inter-packet interval in milliseconds. + * @return value or {@code null} for none + */ + public java.lang.Long getMinMs() { + return minMs; + } + + /** + * Minimum observed inter-packet interval in milliseconds. + * @param minMs minMs or {@code null} for none + */ + public PacketIntervals setMinMs(java.lang.Long minMs) { + this.minMs = minMs; + return this; + } + + /** + * Number of inter-packet intervals from which these statistics were derived. + * @return value or {@code null} for none + */ + public java.lang.Long getNumIntervals() { + return numIntervals; + } + + /** + * Number of inter-packet intervals from which these statistics were derived. + * @param numIntervals numIntervals or {@code null} for none + */ + public PacketIntervals setNumIntervals(java.lang.Long numIntervals) { + this.numIntervals = numIntervals; + return this; + } + + /** + * The type of packets for which inter-packet intervals were computed. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of packets for which inter-packet intervals were computed. + * @param type type or {@code null} for none + */ + public PacketIntervals setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public PacketIntervals set(String fieldName, Object value) { + return (PacketIntervals) super.set(fieldName, value); + } + + @Override + public PacketIntervals clone() { + return (PacketIntervals) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroring.java new file mode 100644 index 00000000000..b3eb96bcda6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -0,0 +1,410 @@ +/* + * 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 Packet Mirroring resource. + * + * Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) + * network and forwards it to a collector destination, such as an instance group of an internal + * TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet + * Mirroring, seeUsing Packet Mirroring. + * + *

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 PacketMirroring extends com.google.api.client.json.GenericJson { + + /** + * The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector + * for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PacketMirroringForwardingRuleInfo collectorIlb; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet + * mirroring policy will not be enforced on the network. + * + * The default is TRUE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enable; + + /** + * Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PacketMirroringFilter filter; + + /** + * 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] Type of the resource. Alwayscompute#packetMirroring for packet + * mirrorings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM + * instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PacketMirroringMirroredResourceInfo mirroredResources; + + /** + * Name of the resource; provided by the client 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; + + /** + * Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored + * VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given + * network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PacketMirroringNetworkInfo network; + + /** + * The priority of applying this configuration. Priority is used to break ties in cases where + * there is more than one matching rule. In the case of two rules that apply for a given Instance, + * the one with the lowest-numbered priority value wins. + * + * Default value is 1000. Valid range is 0 through 65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long priority; + + /** + * [Output Only] URI of the region where the packetMirroring resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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; + + /** + * The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector + * for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. + * @return value or {@code null} for none + */ + public PacketMirroringForwardingRuleInfo getCollectorIlb() { + return collectorIlb; + } + + /** + * The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector + * for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. + * @param collectorIlb collectorIlb or {@code null} for none + */ + public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collectorIlb) { + this.collectorIlb = collectorIlb; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public PacketMirroring setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet + * mirroring policy will not be enforced on the network. + * + * The default is TRUE. + * @return value or {@code null} for none + */ + public java.lang.String getEnable() { + return enable; + } + + /** + * Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet + * mirroring policy will not be enforced on the network. + * + * The default is TRUE. + * @param enable enable or {@code null} for none + */ + public PacketMirroring setEnable(java.lang.String enable) { + this.enable = enable; + return this; + } + + /** + * Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. + * @return value or {@code null} for none + */ + public PacketMirroringFilter getFilter() { + return filter; + } + + /** + * Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. + * @param filter filter or {@code null} for none + */ + public PacketMirroring setFilter(PacketMirroringFilter filter) { + this.filter = filter; + 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 PacketMirroring setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet + * mirrorings. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet + * mirrorings. + * @param kind kind or {@code null} for none + */ + public PacketMirroring setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM + * instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. + * @return value or {@code null} for none + */ + public PacketMirroringMirroredResourceInfo getMirroredResources() { + return mirroredResources; + } + + /** + * PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM + * instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. + * @param mirroredResources mirroredResources or {@code null} for none + */ + public PacketMirroring setMirroredResources(PacketMirroringMirroredResourceInfo mirroredResources) { + this.mirroredResources = mirroredResources; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 PacketMirroring setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored + * VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given + * network. + * @return value or {@code null} for none + */ + public PacketMirroringNetworkInfo getNetwork() { + return network; + } + + /** + * Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored + * VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given + * network. + * @param network network or {@code null} for none + */ + public PacketMirroring setNetwork(PacketMirroringNetworkInfo network) { + this.network = network; + return this; + } + + /** + * The priority of applying this configuration. Priority is used to break ties in cases where + * there is more than one matching rule. In the case of two rules that apply for a given Instance, + * the one with the lowest-numbered priority value wins. + * + * Default value is 1000. Valid range is 0 through 65535. + * @return value or {@code null} for none + */ + public java.lang.Long getPriority() { + return priority; + } + + /** + * The priority of applying this configuration. Priority is used to break ties in cases where + * there is more than one matching rule. In the case of two rules that apply for a given Instance, + * the one with the lowest-numbered priority value wins. + * + * Default value is 1000. Valid range is 0 through 65535. + * @param priority priority or {@code null} for none + */ + public PacketMirroring setPriority(java.lang.Long priority) { + this.priority = priority; + return this; + } + + /** + * [Output Only] URI of the region where the packetMirroring resides. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] URI of the region where the packetMirroring resides. + * @param region region or {@code null} for none + */ + public PacketMirroring setRegion(java.lang.String region) { + this.region = region; + 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 PacketMirroring setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public PacketMirroring set(String fieldName, Object value) { + return (PacketMirroring) super.set(fieldName, value); + } + + @Override + public PacketMirroring clone() { + return (PacketMirroring) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java new file mode 100644 index 00000000000..1ff676d8152 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of packetMirrorings. + * + *

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 PacketMirroringAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 PacketMirroring resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 PacketMirroringAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PacketMirroring resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of PacketMirroring resources. + * @param items items or {@code null} for none + */ + public PacketMirroringAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public PacketMirroringAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PacketMirroringAggregatedList 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 PacketMirroringAggregatedList 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 PacketMirroringAggregatedList 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 PacketMirroringAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PacketMirroringAggregatedList set(String fieldName, Object value) { + return (PacketMirroringAggregatedList) super.set(fieldName, value); + } + + @Override + public PacketMirroringAggregatedList clone() { + return (PacketMirroringAggregatedList) 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 PacketMirroringAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringFilter.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringFilter.java new file mode 100644 index 00000000000..eac748ebbbb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringFilter.java @@ -0,0 +1,132 @@ +/* + * 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 PacketMirroringFilter. + * + *

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 PacketMirroringFilter extends com.google.api.client.json.GenericJson { + + /** + * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic + * that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is + * specified, all IPv4 traffic is mirrored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPProtocols") + private java.util.List iPProtocols; + + /** + * One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or + * destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that + * matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is + * specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use + * "0.0.0.0/0,::/0". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cidrRanges; + + /** + * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String direction; + + /** + * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic + * that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is + * specified, all IPv4 traffic is mirrored. + * @return value or {@code null} for none + */ + public java.util.List getIPProtocols() { + return iPProtocols; + } + + /** + * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic + * that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is + * specified, all IPv4 traffic is mirrored. + * @param iPProtocols iPProtocols or {@code null} for none + */ + public PacketMirroringFilter setIPProtocols(java.util.List iPProtocols) { + this.iPProtocols = iPProtocols; + return this; + } + + /** + * One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or + * destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that + * matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is + * specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use + * "0.0.0.0/0,::/0". + * @return value or {@code null} for none + */ + public java.util.List getCidrRanges() { + return cidrRanges; + } + + /** + * One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or + * destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that + * matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is + * specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use + * "0.0.0.0/0,::/0". + * @param cidrRanges cidrRanges or {@code null} for none + */ + public PacketMirroringFilter setCidrRanges(java.util.List cidrRanges) { + this.cidrRanges = cidrRanges; + return this; + } + + /** + * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. + * @return value or {@code null} for none + */ + public java.lang.String getDirection() { + return direction; + } + + /** + * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. + * @param direction direction or {@code null} for none + */ + public PacketMirroringFilter setDirection(java.lang.String direction) { + this.direction = direction; + return this; + } + + @Override + public PacketMirroringFilter set(String fieldName, Object value) { + return (PacketMirroringFilter) super.set(fieldName, value); + } + + @Override + public PacketMirroringFilter clone() { + return (PacketMirroringFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java new file mode 100644 index 00000000000..94108ee8069 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -0,0 +1,93 @@ +/* + * 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 PacketMirroringForwardingRuleInfo. + * + *

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 PacketMirroringForwardingRuleInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String canonicalUrl; + + /** + * Resource URL to the forwarding rule representing the ILB configured as destination of the + * mirrored traffic. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getCanonicalUrl() { + return canonicalUrl; + } + + /** + * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * @param canonicalUrl canonicalUrl or {@code null} for none + */ + public PacketMirroringForwardingRuleInfo setCanonicalUrl(java.lang.String canonicalUrl) { + this.canonicalUrl = canonicalUrl; + return this; + } + + /** + * Resource URL to the forwarding rule representing the ILB configured as destination of the + * mirrored traffic. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Resource URL to the forwarding rule representing the ILB configured as destination of the + * mirrored traffic. + * @param url url or {@code null} for none + */ + public PacketMirroringForwardingRuleInfo setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public PacketMirroringForwardingRuleInfo set(String fieldName, Object value) { + return (PacketMirroringForwardingRuleInfo) super.set(fieldName, value); + } + + @Override + public PacketMirroringForwardingRuleInfo clone() { + return (PacketMirroringForwardingRuleInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java new file mode 100644 index 00000000000..5422d6a37ff --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of PacketMirroring resources. + * + *

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 PacketMirroringList extends com.google.api.client.json.GenericJson { + + /** + * [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 PacketMirroring 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 PacketMirroring 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(PacketMirroring.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 PacketMirroringList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PacketMirroring resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of PacketMirroring resources. + * @param items items or {@code null} for none + */ + public PacketMirroringList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. + * @param kind kind or {@code null} for none + */ + public PacketMirroringList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PacketMirroringList 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 PacketMirroringList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 PacketMirroringList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PacketMirroringList set(String fieldName, Object value) { + return (PacketMirroringList) super.set(fieldName, value); + } + + @Override + public PacketMirroringList clone() { + return (PacketMirroringList) 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 PacketMirroringListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfo.java new file mode 100644 index 00000000000..69b04baed40 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfo.java @@ -0,0 +1,144 @@ +/* + * 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 PacketMirroringMirroredResourceInfo. + * + *

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 PacketMirroringMirroredResourceInfo extends com.google.api.client.json.GenericJson { + + /** + * A set of virtual machine instances that are being mirrored. They must live in zones contained + * in the same region as this packetMirroring. + * + * Note that this config will apply only to those network interfaces of the Instances that belong + * to the network specified in this packetMirroring. + * + * You may specify a maximum of 50 Instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must + * live in the same region as this packetMirroring. + * + * You may specify a maximum of 5 subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworks; + + /** + * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags + * will be mirrored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * A set of virtual machine instances that are being mirrored. They must live in zones contained + * in the same region as this packetMirroring. + * + * Note that this config will apply only to those network interfaces of the Instances that belong + * to the network specified in this packetMirroring. + * + * You may specify a maximum of 50 Instances. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * A set of virtual machine instances that are being mirrored. They must live in zones contained + * in the same region as this packetMirroring. + * + * Note that this config will apply only to those network interfaces of the Instances that belong + * to the network specified in this packetMirroring. + * + * You may specify a maximum of 50 Instances. + * @param instances instances or {@code null} for none + */ + public PacketMirroringMirroredResourceInfo setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must + * live in the same region as this packetMirroring. + * + * You may specify a maximum of 5 subnetworks. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworks() { + return subnetworks; + } + + /** + * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must + * live in the same region as this packetMirroring. + * + * You may specify a maximum of 5 subnetworks. + * @param subnetworks subnetworks or {@code null} for none + */ + public PacketMirroringMirroredResourceInfo setSubnetworks(java.util.List subnetworks) { + this.subnetworks = subnetworks; + return this; + } + + /** + * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags + * will be mirrored. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags + * will be mirrored. + * @param tags tags or {@code null} for none + */ + public PacketMirroringMirroredResourceInfo setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + @Override + public PacketMirroringMirroredResourceInfo set(String fieldName, Object value) { + return (PacketMirroringMirroredResourceInfo) super.set(fieldName, value); + } + + @Override + public PacketMirroringMirroredResourceInfo clone() { + return (PacketMirroringMirroredResourceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java new file mode 100644 index 00000000000..17b0f288da5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for PacketMirroringMirroredResourceInfoInstanceInfo. + * + *

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 PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String canonicalUrl; + + /** + * Resource URL to the virtual machine instance which is being mirrored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getCanonicalUrl() { + return canonicalUrl; + } + + /** + * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * @param canonicalUrl canonicalUrl or {@code null} for none + */ + public PacketMirroringMirroredResourceInfoInstanceInfo setCanonicalUrl(java.lang.String canonicalUrl) { + this.canonicalUrl = canonicalUrl; + return this; + } + + /** + * Resource URL to the virtual machine instance which is being mirrored. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Resource URL to the virtual machine instance which is being mirrored. + * @param url url or {@code null} for none + */ + public PacketMirroringMirroredResourceInfoInstanceInfo setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public PacketMirroringMirroredResourceInfoInstanceInfo set(String fieldName, Object value) { + return (PacketMirroringMirroredResourceInfoInstanceInfo) super.set(fieldName, value); + } + + @Override + public PacketMirroringMirroredResourceInfoInstanceInfo clone() { + return (PacketMirroringMirroredResourceInfoInstanceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java new file mode 100644 index 00000000000..afcc0dfdf19 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for PacketMirroringMirroredResourceInfoSubnetInfo. + * + *

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 PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String canonicalUrl; + + /** + * Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getCanonicalUrl() { + return canonicalUrl; + } + + /** + * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * @param canonicalUrl canonicalUrl or {@code null} for none + */ + public PacketMirroringMirroredResourceInfoSubnetInfo setCanonicalUrl(java.lang.String canonicalUrl) { + this.canonicalUrl = canonicalUrl; + return this; + } + + /** + * Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. + * @param url url or {@code null} for none + */ + public PacketMirroringMirroredResourceInfoSubnetInfo setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public PacketMirroringMirroredResourceInfoSubnetInfo set(String fieldName, Object value) { + return (PacketMirroringMirroredResourceInfoSubnetInfo) super.set(fieldName, value); + } + + @Override + public PacketMirroringMirroredResourceInfoSubnetInfo clone() { + return (PacketMirroringMirroredResourceInfoSubnetInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java new file mode 100644 index 00000000000..aba6b27e954 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for PacketMirroringNetworkInfo. + * + *

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 PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Unique identifier for the network; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String canonicalUrl; + + /** + * URL of the network resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Output only. [Output Only] Unique identifier for the network; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getCanonicalUrl() { + return canonicalUrl; + } + + /** + * Output only. [Output Only] Unique identifier for the network; defined by the server. + * @param canonicalUrl canonicalUrl or {@code null} for none + */ + public PacketMirroringNetworkInfo setCanonicalUrl(java.lang.String canonicalUrl) { + this.canonicalUrl = canonicalUrl; + return this; + } + + /** + * URL of the network resource. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * URL of the network resource. + * @param url url or {@code null} for none + */ + public PacketMirroringNetworkInfo setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public PacketMirroringNetworkInfo set(String fieldName, Object value) { + return (PacketMirroringNetworkInfo) super.set(fieldName, value); + } + + @Override + public PacketMirroringNetworkInfo clone() { + return (PacketMirroringNetworkInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringsScopedList.java new file mode 100644 index 00000000000..57f28765525 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PacketMirroringsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 PacketMirroringsScopedList. + * + *

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 PacketMirroringsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of packetMirrorings contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List packetMirrorings; + + static { + // hack to force ProGuard to consider PacketMirroring 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(PacketMirroring.class); + } + + /** + * Informational warning which replaces the list of packetMirrorings when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of packetMirrorings contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getPacketMirrorings() { + return packetMirrorings; + } + + /** + * A list of packetMirrorings contained in this scope. + * @param packetMirrorings packetMirrorings or {@code null} for none + */ + public PacketMirroringsScopedList setPacketMirrorings(java.util.List packetMirrorings) { + this.packetMirrorings = packetMirrorings; + return this; + } + + /** + * Informational warning which replaces the list of packetMirrorings when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of packetMirrorings when the list is empty. + * @param warning warning or {@code null} for none + */ + public PacketMirroringsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PacketMirroringsScopedList set(String fieldName, Object value) { + return (PacketMirroringsScopedList) super.set(fieldName, value); + } + + @Override + public PacketMirroringsScopedList clone() { + return (PacketMirroringsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of packetMirrorings when the list is empty. + */ + 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 PacketMirroringsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PartitionFormability.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormability.java new file mode 100644 index 00000000000..0deba0d1b09 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormability.java @@ -0,0 +1,165 @@ +/* + * 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; + +/** + * Formability of a partition. + * + *

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 PartitionFormability extends com.google.api.client.json.GenericJson { + + /** + * Topological shape (e.g., "4x4x4"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + + /** + * Partition ID of a partition that is a direct parent in the tree hierarchy. In case the + * partition represents a full cube, it doesn't have a parent field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Identifier for this topological block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String partitionId; + + /** + * Output only. Defines the status of the partition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PartitionFormabilityStatus status; + + /** + * The URL of the capacity subblock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subblock; + + /** + * Topological shape (e.g., "4x4x4"). + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * Topological shape (e.g., "4x4x4"). + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public PartitionFormability setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + + /** + * Partition ID of a partition that is a direct parent in the tree hierarchy. In case the + * partition represents a full cube, it doesn't have a parent field. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Partition ID of a partition that is a direct parent in the tree hierarchy. In case the + * partition represents a full cube, it doesn't have a parent field. + * @param parent parent or {@code null} for none + */ + public PartitionFormability setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Identifier for this topological block. + * @return value or {@code null} for none + */ + public java.lang.String getPartitionId() { + return partitionId; + } + + /** + * Identifier for this topological block. + * @param partitionId partitionId or {@code null} for none + */ + public PartitionFormability setPartitionId(java.lang.String partitionId) { + this.partitionId = partitionId; + return this; + } + + /** + * Output only. Defines the status of the partition. + * @return value or {@code null} for none + */ + public PartitionFormabilityStatus getStatus() { + return status; + } + + /** + * Output only. Defines the status of the partition. + * @param status status or {@code null} for none + */ + public PartitionFormability setStatus(PartitionFormabilityStatus status) { + this.status = status; + return this; + } + + /** + * The URL of the capacity subblock. + * @return value or {@code null} for none + */ + public java.lang.String getSubblock() { + return subblock; + } + + /** + * The URL of the capacity subblock. + * @param subblock subblock or {@code null} for none + */ + public PartitionFormability setSubblock(java.lang.String subblock) { + this.subblock = subblock; + return this; + } + + @Override + public PartitionFormability set(String fieldName, Object value) { + return (PartitionFormability) super.set(fieldName, value); + } + + @Override + public PartitionFormability clone() { + return (PartitionFormability) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormabilityStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormabilityStatus.java new file mode 100644 index 00000000000..85038ae2249 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PartitionFormabilityStatus.java @@ -0,0 +1,504 @@ +/* + * 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; + +/** + * Status of a partition formability. + * + *

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 PartitionFormabilityStatus extends com.google.api.client.json.GenericJson { + + /** + * URL of the AcceleratorInterconnect utilizing this partition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** + * Detailed error status if the subblock has wrong or no provisioning. When set, only subblock and + * error are populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Physical health of the underlying infrastructure. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String infrastructureHealth; + + /** + * URL of an instance provisioned in a single-host partitionID at the lowest level of the + * partition tree. Empty if the instance is missing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * State of the instances within this partition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceState; + + /** + * Current formability state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Usage state indicating if the partition is occupied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String usageState; + + /** + * URL of the AcceleratorInterconnect utilizing this partition. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** + * URL of the AcceleratorInterconnect utilizing this partition. + * @param acceleratorInterconnect acceleratorInterconnect or {@code null} for none + */ + public PartitionFormabilityStatus setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + return this; + } + + /** + * Detailed error status if the subblock has wrong or no provisioning. When set, only subblock and + * error are populated. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Detailed error status if the subblock has wrong or no provisioning. When set, only subblock and + * error are populated. + * @param error error or {@code null} for none + */ + public PartitionFormabilityStatus setError(Error error) { + this.error = error; + return this; + } + + /** + * Physical health of the underlying infrastructure. + * @return value or {@code null} for none + */ + public java.lang.String getInfrastructureHealth() { + return infrastructureHealth; + } + + /** + * Physical health of the underlying infrastructure. + * @param infrastructureHealth infrastructureHealth or {@code null} for none + */ + public PartitionFormabilityStatus setInfrastructureHealth(java.lang.String infrastructureHealth) { + this.infrastructureHealth = infrastructureHealth; + return this; + } + + /** + * URL of an instance provisioned in a single-host partitionID at the lowest level of the + * partition tree. Empty if the instance is missing. + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * URL of an instance provisioned in a single-host partitionID at the lowest level of the + * partition tree. Empty if the instance is missing. + * @param instance instance or {@code null} for none + */ + public PartitionFormabilityStatus setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * State of the instances within this partition. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceState() { + return instanceState; + } + + /** + * State of the instances within this partition. + * @param instanceState instanceState or {@code null} for none + */ + public PartitionFormabilityStatus setInstanceState(java.lang.String instanceState) { + this.instanceState = instanceState; + return this; + } + + /** + * Current formability state. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Current formability state. + * @param state state or {@code null} for none + */ + public PartitionFormabilityStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Usage state indicating if the partition is occupied. + * @return value or {@code null} for none + */ + public java.lang.String getUsageState() { + return usageState; + } + + /** + * Usage state indicating if the partition is occupied. + * @param usageState usageState or {@code null} for none + */ + public PartitionFormabilityStatus setUsageState(java.lang.String usageState) { + this.usageState = usageState; + return this; + } + + @Override + public PartitionFormabilityStatus set(String fieldName, Object value) { + return (PartitionFormabilityStatus) super.set(fieldName, value); + } + + @Override + public PartitionFormabilityStatus clone() { + return (PartitionFormabilityStatus) super.clone(); + } + + /** + * Detailed error status if the subblock has wrong or no provisioning. When set, only subblock and + * error are populated. + */ + public static final class Error extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The array of errors encountered while processing this operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errors; + + static { + // hack to force ProGuard to consider Errors 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(Errors.class); + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @return value or {@code null} for none + */ + public java.util.List getErrors() { + return errors; + } + + /** + * [Output Only] The array of errors encountered while processing this operation. + * @param errors errors or {@code null} for none + */ + public Error setErrors(java.util.List errors) { + this.errors = errors; + return this; + } + + @Override + public Error set(String fieldName, Object value) { + return (Error) super.set(fieldName, value); + } + + @Override + public Error clone() { + return (Error) super.clone(); + } + + /** + * Represents a single error encountered during the processing of an operation. + */ + public static final class Errors extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The error type identifier for this error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorDetails; + + static { + // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * [Output Only] An optional, human-readable error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] The error type identifier for this error. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] The error type identifier for this error. + * @param code code or {@code null} for none + */ + public Errors setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @return value or {@code null} for none + */ + public java.util.List getErrorDetails() { + return errorDetails; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of + * defined message types to use for providing details.The syntax depends on the error code. For + * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * @param errorDetails errorDetails or {@code null} for none + */ + public Errors setErrorDetails(java.util.List errorDetails) { + this.errorDetails = errorDetails; + return this; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * [Output Only] Indicates the field in the request that caused the error. This property is + * optional. + * @param location location or {@code null} for none + */ + public Errors setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * [Output Only] An optional, human-readable error message. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] An optional, human-readable error message. + * @param message message or {@code null} for none + */ + public Errors setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Errors set(String fieldName, Object value) { + return (Errors) super.set(fieldName, value); + } + + @Override + public Errors clone() { + return (Errors) super.clone(); + } + + /** + * Container for structured error details providing additional context specific to the encountered + * error code. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * Error information containing structured domain, reason, and metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * Links and information to help the user resolve the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * A localized human-readable error message intended for end users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * Details about quota limits and metrics when a quota is exceeded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * Error information containing structured domain, reason, and metadata. + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Error information containing structured domain, reason, and metadata. + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Links and information to help the user resolve the error. + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * Links and information to help the user resolve the error. + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * A localized human-readable error message intended for end users. + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * A localized human-readable error message intended for end users. + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * Details about quota limits and metrics when a quota is exceeded. + * @param quotaInfo quotaInfo or {@code null} for none + */ + public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { + this.quotaInfo = quotaInfo; + return this; + } + + @Override + public ErrorDetails set(String fieldName, Object value) { + return (ErrorDetails) super.set(fieldName, value); + } + + @Override + public ErrorDetails clone() { + return (ErrorDetails) super.clone(); + } + + } + } + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathMatcher.java new file mode 100644 index 00000000000..862d369b8cb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -0,0 +1,502 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A matcher for the path portion of the URL. The BackendService from the longest-matched rule will + * serve the URL. If no rule was matched, the default service is used. + * + *

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 PathMatcher extends com.google.api.client.json.GenericJson { + + /** + * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * This policy takes effect at the PathMatcher level and applies only when no policy has been + * defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. + * If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a + * policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors + * - A RouteRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * When used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take + * precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is + * applied. While attempting a retry, if load balancer is successful in reaching the service, the + * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to + * the client. + * + * defaultCustomErrorResponsePolicy is supported only for global external Application Load + * Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomErrorResponsePolicy defaultCustomErrorResponsePolicy; + + /** + * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load + * balancer performs advanced routing actions, such as URL rewrites and header transformations, + * before forwarding the request to the selected backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * path matcher'sdefaultRouteAction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRouteAction defaultRouteAction; + + /** + * The full or partial URL to the BackendService resource. This URL is used if none of the + * pathRules orrouteRules defined by this PathMatcher are matched. For example, the following are + * all valid URLs to a BackendService resource: - + * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService + * - compute/v1/projects/project/global/backendServices/backendService - + * global/backendServices/backendService + * + * If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take + * effect before sending the request to the backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Authorization requires one or more of the following Google IAM permissions on the specified + * resource default_service: - compute.backendBuckets.use - + * compute.backendServices.use + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultService; + + /** + * When none of the specified pathRules orrouteRules match, the request is redirected to a URL + * specified by defaultUrlRedirect. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRedirectAction defaultUrlRedirect; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backend service. + * + * HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before + * theHeaderAction in the UrlMap + * + * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpHeaderAction headerAction; + + /** + * The name to which this PathMatcher is referred by theHostRule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The list of path rules. Use this list instead of routeRules when routing based on simple path + * matching is all that's required. A path rule can only include a wildcard character (*) after a + * forward slash character ("/"). + * + * The order by which path rules are specified does not matter. Matches are always done on the + * longest-path-first basis. + * + * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in + * which those paths appear in this list. + * + * Within a given pathMatcher, only one ofpathRules or routeRules must be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pathRules; + + /** + * The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching + * and routing actions are desired. routeRules are evaluated in order of priority, from the lowest + * to highest number. + * + * Within a given pathMatcher, you can set only one ofpathRules or routeRules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List routeRules; + + static { + // hack to force ProGuard to consider HttpRouteRule 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(HttpRouteRule.class); + } + + /** + * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * This policy takes effect at the PathMatcher level and applies only when no policy has been + * defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. + * If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a + * policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors + * - A RouteRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * When used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take + * precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is + * applied. While attempting a retry, if load balancer is successful in reaching the service, the + * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to + * the client. + * + * defaultCustomErrorResponsePolicy is supported only for global external Application Load + * Balancers. + * @return value or {@code null} for none + */ + public CustomErrorResponsePolicy getDefaultCustomErrorResponsePolicy() { + return defaultCustomErrorResponsePolicy; + } + + /** + * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * This policy takes effect at the PathMatcher level and applies only when no policy has been + * defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. + * If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a + * policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors + * - A RouteRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * When used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take + * precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is + * applied. While attempting a retry, if load balancer is successful in reaching the service, the + * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to + * the client. + * + * defaultCustomErrorResponsePolicy is supported only for global external Application Load + * Balancers. + * @param defaultCustomErrorResponsePolicy defaultCustomErrorResponsePolicy or {@code null} for none + */ + public PathMatcher setDefaultCustomErrorResponsePolicy(CustomErrorResponsePolicy defaultCustomErrorResponsePolicy) { + this.defaultCustomErrorResponsePolicy = defaultCustomErrorResponsePolicy; + return this; + } + + /** + * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load + * balancer performs advanced routing actions, such as URL rewrites and header transformations, + * before forwarding the request to the selected backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * path matcher'sdefaultRouteAction. + * @return value or {@code null} for none + */ + public HttpRouteAction getDefaultRouteAction() { + return defaultRouteAction; + } + + /** + * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load + * balancer performs advanced routing actions, such as URL rewrites and header transformations, + * before forwarding the request to the selected backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * path matcher'sdefaultRouteAction. + * @param defaultRouteAction defaultRouteAction or {@code null} for none + */ + public PathMatcher setDefaultRouteAction(HttpRouteAction defaultRouteAction) { + this.defaultRouteAction = defaultRouteAction; + return this; + } + + /** + * The full or partial URL to the BackendService resource. This URL is used if none of the + * pathRules orrouteRules defined by this PathMatcher are matched. For example, the following are + * all valid URLs to a BackendService resource: - + * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService + * - compute/v1/projects/project/global/backendServices/backendService - + * global/backendServices/backendService + * + * If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take + * effect before sending the request to the backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Authorization requires one or more of the following Google IAM permissions on the specified + * resource default_service: - compute.backendBuckets.use - + * compute.backendServices.use + * @return value or {@code null} for none + */ + public java.lang.String getDefaultService() { + return defaultService; + } + + /** + * The full or partial URL to the BackendService resource. This URL is used if none of the + * pathRules orrouteRules defined by this PathMatcher are matched. For example, the following are + * all valid URLs to a BackendService resource: - + * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService + * - compute/v1/projects/project/global/backendServices/backendService - + * global/backendServices/backendService + * + * If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take + * effect before sending the request to the backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Authorization requires one or more of the following Google IAM permissions on the specified + * resource default_service: - compute.backendBuckets.use - + * compute.backendServices.use + * @param defaultService defaultService or {@code null} for none + */ + public PathMatcher setDefaultService(java.lang.String defaultService) { + this.defaultService = defaultService; + return this; + } + + /** + * When none of the specified pathRules orrouteRules match, the request is redirected to a URL + * specified by defaultUrlRedirect. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public HttpRedirectAction getDefaultUrlRedirect() { + return defaultUrlRedirect; + } + + /** + * When none of the specified pathRules orrouteRules match, the request is redirected to a URL + * specified by defaultUrlRedirect. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param defaultUrlRedirect defaultUrlRedirect or {@code null} for none + */ + public PathMatcher setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect) { + this.defaultUrlRedirect = defaultUrlRedirect; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public PathMatcher setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backend service. + * + * HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before + * theHeaderAction in the UrlMap + * + * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public HttpHeaderAction getHeaderAction() { + return headerAction; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backend service. + * + * HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before + * theHeaderAction in the UrlMap + * + * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param headerAction headerAction or {@code null} for none + */ + public PathMatcher setHeaderAction(HttpHeaderAction headerAction) { + this.headerAction = headerAction; + return this; + } + + /** + * The name to which this PathMatcher is referred by theHostRule. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name to which this PathMatcher is referred by theHostRule. + * @param name name or {@code null} for none + */ + public PathMatcher setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The list of path rules. Use this list instead of routeRules when routing based on simple path + * matching is all that's required. A path rule can only include a wildcard character (*) after a + * forward slash character ("/"). + * + * The order by which path rules are specified does not matter. Matches are always done on the + * longest-path-first basis. + * + * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in + * which those paths appear in this list. + * + * Within a given pathMatcher, only one ofpathRules or routeRules must be set. + * @return value or {@code null} for none + */ + public java.util.List getPathRules() { + return pathRules; + } + + /** + * The list of path rules. Use this list instead of routeRules when routing based on simple path + * matching is all that's required. A path rule can only include a wildcard character (*) after a + * forward slash character ("/"). + * + * The order by which path rules are specified does not matter. Matches are always done on the + * longest-path-first basis. + * + * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in + * which those paths appear in this list. + * + * Within a given pathMatcher, only one ofpathRules or routeRules must be set. + * @param pathRules pathRules or {@code null} for none + */ + public PathMatcher setPathRules(java.util.List pathRules) { + this.pathRules = pathRules; + return this; + } + + /** + * The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching + * and routing actions are desired. routeRules are evaluated in order of priority, from the lowest + * to highest number. + * + * Within a given pathMatcher, you can set only one ofpathRules or routeRules. + * @return value or {@code null} for none + */ + public java.util.List getRouteRules() { + return routeRules; + } + + /** + * The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching + * and routing actions are desired. routeRules are evaluated in order of priority, from the lowest + * to highest number. + * + * Within a given pathMatcher, you can set only one ofpathRules or routeRules. + * @param routeRules routeRules or {@code null} for none + */ + public PathMatcher setRouteRules(java.util.List routeRules) { + this.routeRules = routeRules; + return this; + } + + @Override + public PathMatcher set(String fieldName, Object value) { + return (PathMatcher) super.set(fieldName, value); + } + + @Override + public PathMatcher clone() { + return (PathMatcher) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathRule.java new file mode 100644 index 00000000000..41df033d81c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PathRule.java @@ -0,0 +1,268 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the + * traffic arriving at this URL. + * + *

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 PathRule extends com.google.api.client.json.GenericJson { + + /** + * customErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * If a policy for an error code is not configured for the PathRule, a policy for the error code + * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified + * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in + * UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx + * errors - A PathRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * customErrorResponsePolicy is supported only for global external Application Load Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomErrorResponsePolicy customErrorResponsePolicy; + + /** + * The list of path patterns to match. Each must start with / and the only place a * is allowed is + * at the end following a /. The string fed to the path matcher does not include any text after + * the first ? or #, and those chars are not allowed here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List paths; + + /** + * In response to a matching path, the load balancer performs advanced routing actions, such as + * URL rewrites and header transformations, before forwarding the request to the selected backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * path rule'srouteAction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRouteAction routeAction; + + /** + * The full or partial URL of the backend service resource to which traffic is directed if this + * rule is matched. If routeAction is also specified, advanced routing actions, such as URL + * rewrites, take effect before sending the request to the backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRedirectAction urlRedirect; + + /** + * customErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * If a policy for an error code is not configured for the PathRule, a policy for the error code + * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified + * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in + * UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx + * errors - A PathRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * customErrorResponsePolicy is supported only for global external Application Load Balancers. + * @return value or {@code null} for none + */ + public CustomErrorResponsePolicy getCustomErrorResponsePolicy() { + return customErrorResponsePolicy; + } + + /** + * customErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * If a policy for an error code is not configured for the PathRule, a policy for the error code + * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified + * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in + * UrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * For example, consider a UrlMap with the following configuration: - + * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx + * errors - A PathRule for /coming_soon/ is configured for the error code 404. + * + * If the request is for www.myotherdomain.com and a404 is encountered, the policy + * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for + * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, + * the request forwww.example.com/coming_soon/ encounters a 404, the policy in + * PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example + * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. + * + * customErrorResponsePolicy is supported only for global external Application Load Balancers. + * @param customErrorResponsePolicy customErrorResponsePolicy or {@code null} for none + */ + public PathRule setCustomErrorResponsePolicy(CustomErrorResponsePolicy customErrorResponsePolicy) { + this.customErrorResponsePolicy = customErrorResponsePolicy; + return this; + } + + /** + * The list of path patterns to match. Each must start with / and the only place a * is allowed is + * at the end following a /. The string fed to the path matcher does not include any text after + * the first ? or #, and those chars are not allowed here. + * @return value or {@code null} for none + */ + public java.util.List getPaths() { + return paths; + } + + /** + * The list of path patterns to match. Each must start with / and the only place a * is allowed is + * at the end following a /. The string fed to the path matcher does not include any text after + * the first ? or #, and those chars are not allowed here. + * @param paths paths or {@code null} for none + */ + public PathRule setPaths(java.util.List paths) { + this.paths = paths; + return this; + } + + /** + * In response to a matching path, the load balancer performs advanced routing actions, such as + * URL rewrites and header transformations, before forwarding the request to the selected backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * path rule'srouteAction. + * @return value or {@code null} for none + */ + public HttpRouteAction getRouteAction() { + return routeAction; + } + + /** + * In response to a matching path, the load balancer performs advanced routing actions, such as + * URL rewrites and header transformations, before forwarding the request to the selected backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within a + * path rule'srouteAction. + * @param routeAction routeAction or {@code null} for none + */ + public PathRule setRouteAction(HttpRouteAction routeAction) { + this.routeAction = routeAction; + return this; + } + + /** + * The full or partial URL of the backend service resource to which traffic is directed if this + * rule is matched. If routeAction is also specified, advanced routing actions, such as URL + * rewrites, take effect before sending the request to the backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * The full or partial URL of the backend service resource to which traffic is directed if this + * rule is matched. If routeAction is also specified, advanced routing actions, such as URL + * rewrites, take effect before sending the request to the backend. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * @param service service or {@code null} for none + */ + public PathRule setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public HttpRedirectAction getUrlRedirect() { + return urlRedirect; + } + + /** + * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. + * + * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param urlRedirect urlRedirect or {@code null} for none + */ + public PathRule setUrlRedirect(HttpRedirectAction urlRedirect) { + this.urlRedirect = urlRedirect; + return this; + } + + @Override + public PathRule set(String fieldName, Object value) { + return (PathRule) super.set(fieldName, value); + } + + @Override + public PathRule clone() { + return (PathRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PerInstanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PerInstanceConfig.java new file mode 100644 index 00000000000..a6b545afe53 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PerInstanceConfig.java @@ -0,0 +1,191 @@ +/* + * 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 PerInstanceConfig. + * + *

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 PerInstanceConfig extends com.google.api.client.json.GenericJson { + + /** + * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is + * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in + * order to update an existing per-instance configuration or the field needs to be unset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * The name of a per-instance configuration and its corresponding instance. Serves as a merge key + * during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the + * same name exists then it will be updated, otherwise a new one will be created for the VM + * instance with the same name. An attempt to create a per-instance configuration for a VM + * instance that either doesn't exist or is not part of the group will result in an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The intended preserved state for the given instance. Does not contain preserved state generated + * from a stateful policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreservedState preservedState; + + /** + * The status of applying this per-instance configuration on the corresponding managed instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is + * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in + * order to update an existing per-instance configuration or the field needs to be unset. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is + * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in + * order to update an existing per-instance configuration or the field needs to be unset. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is + * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in + * order to update an existing per-instance configuration or the field needs to be unset. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public PerInstanceConfig setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is + * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in + * order to update an existing per-instance configuration or the field needs to be unset. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public PerInstanceConfig encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * The name of a per-instance configuration and its corresponding instance. Serves as a merge key + * during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the + * same name exists then it will be updated, otherwise a new one will be created for the VM + * instance with the same name. An attempt to create a per-instance configuration for a VM + * instance that either doesn't exist or is not part of the group will result in an error. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of a per-instance configuration and its corresponding instance. Serves as a merge key + * during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the + * same name exists then it will be updated, otherwise a new one will be created for the VM + * instance with the same name. An attempt to create a per-instance configuration for a VM + * instance that either doesn't exist or is not part of the group will result in an error. + * @param name name or {@code null} for none + */ + public PerInstanceConfig setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The intended preserved state for the given instance. Does not contain preserved state generated + * from a stateful policy. + * @return value or {@code null} for none + */ + public PreservedState getPreservedState() { + return preservedState; + } + + /** + * The intended preserved state for the given instance. Does not contain preserved state generated + * from a stateful policy. + * @param preservedState preservedState or {@code null} for none + */ + public PerInstanceConfig setPreservedState(PreservedState preservedState) { + this.preservedState = preservedState; + return this; + } + + /** + * The status of applying this per-instance configuration on the corresponding managed instance. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of applying this per-instance configuration on the corresponding managed instance. + * @param status status or {@code null} for none + */ + public PerInstanceConfig setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PerInstanceConfig set(String fieldName, Object value) { + return (PerInstanceConfig) super.set(fieldName, value); + } + + @Override + public PerInstanceConfig clone() { + return (PerInstanceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java new file mode 100644 index 00000000000..907653b9c79 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The periodic partial maintenance schedule includes 52 weeks worth of maintenance windows. + * LINT.IfChange(PeriodicPartialMaintenanceSchedule) + * + *

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 PeriodicPartialMaintenanceSchedule extends com.google.api.client.json.GenericJson { + + /** + * The maintenance type in which the zone is during the given window. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subType; + + /** + * The target resource that the maintenance window is for. For example, "projects/my- + * project/zones/us-central1-a". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetResource; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The end civil timestamp of the window (not inclusive). This contains a time zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DateTime windowEndTime; + + /** + * The start civil timestamp of the window. This contains a time zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DateTime windowStartTime; + + /** + * The maintenance type in which the zone is during the given window. + * @return value or {@code null} for none + */ + public java.lang.String getSubType() { + return subType; + } + + /** + * The maintenance type in which the zone is during the given window. + * @param subType subType or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setSubType(java.lang.String subType) { + this.subType = subType; + return this; + } + + /** + * The target resource that the maintenance window is for. For example, "projects/my- + * project/zones/us-central1-a". + * @return value or {@code null} for none + */ + public java.lang.String getTargetResource() { + return targetResource; + } + + /** + * The target resource that the maintenance window is for. For example, "projects/my- + * project/zones/us-central1-a". + * @param targetResource targetResource or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * @param type type or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The end civil timestamp of the window (not inclusive). This contains a time zone. + * @return value or {@code null} for none + */ + public DateTime getWindowEndTime() { + return windowEndTime; + } + + /** + * The end civil timestamp of the window (not inclusive). This contains a time zone. + * @param windowEndTime windowEndTime or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setWindowEndTime(DateTime windowEndTime) { + this.windowEndTime = windowEndTime; + return this; + } + + /** + * The start civil timestamp of the window. This contains a time zone. + * @return value or {@code null} for none + */ + public DateTime getWindowStartTime() { + return windowStartTime; + } + + /** + * The start civil timestamp of the window. This contains a time zone. + * @param windowStartTime windowStartTime or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setWindowStartTime(DateTime windowStartTime) { + this.windowStartTime = windowStartTime; + return this; + } + + @Override + public PeriodicPartialMaintenanceSchedule set(String fieldName, Object value) { + return (PeriodicPartialMaintenanceSchedule) super.set(fieldName, value); + } + + @Override + public PeriodicPartialMaintenanceSchedule clone() { + return (PeriodicPartialMaintenanceSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Policy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Policy.java new file mode 100644 index 00000000000..234dbf076c8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Policy.java @@ -0,0 +1,337 @@ +/* + * 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; + +/** + * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud + * resources. + * + * A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, + * to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains + * (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined + * role or a user-created custom role. + * + * For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a + * logical expression that allows access to a resource only if the expression evaluates to `true`. A + * condition can add constraints based on attributes of the request, the resource, or both. To learn + * which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * **JSON example:** + * + * ``` { "bindings": [ { "role": + * "roles/resourcemanager.organizationAdmin", "members": [ + * "user:mike@example.com", "group:admins@example.com", "domain:google.com", + * "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { + * "role": "roles/resourcemanager.organizationViewer", "members": [ + * "user:eve@example.com" ], "condition": { "title": "expirable + * access", "description": "Does not grant access after Sep 2020", + * "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } + * ], "etag": "BwWWja0YfJA=", "version": 3 } ``` + * + * **YAML example:** + * + * ``` bindings: - members: - user:mike@example.com - group:admins@example.com + * - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: + * roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: + * roles/resourcemanager.organizationViewer condition: title: expirable access + * description: Does not grant access after Sep 2020 expression: request.time < + * timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` + * + * For a description of IAM and its features, see the [IAM + * documentation](https://cloud.google.com/iam/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 Policy extends com.google.api.client.json.GenericJson { + + /** + * Specifies cloud audit logging configuration for this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditConfigs; + + static { + // hack to force ProGuard to consider AuditConfig 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(AuditConfig.class); + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. + * + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals + * can be Google groups. Each occurrence of a principal counts towards these limits. For example, + * if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding 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(Binding.class); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Specifies the format of the policy. + * + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. + * + * Any operation that affects conditional role bindings must specify version `3`. This requirement + * applies to the following operations: + * + * * Getting a policy that includes a conditional role binding * Adding a conditional role binding + * to a policy * Changing a conditional role binding in a policy * Removing any role binding, with + * or without a condition, from a policy that includes conditions + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * + * If a policy does not include any conditions, operations on that policy may specify any valid + * version or leave the field unset. + * + * To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer version; + + /** + * Specifies cloud audit logging configuration for this policy. + * @return value or {@code null} for none + */ + public java.util.List getAuditConfigs() { + return auditConfigs; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * @param auditConfigs auditConfigs or {@code null} for none + */ + public Policy setAuditConfigs(java.util.List auditConfigs) { + this.auditConfigs = auditConfigs; + return this; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. + * + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals + * can be Google groups. Each occurrence of a principal counts towards these limits. For example, + * if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a + * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` + * must contain at least one principal. + * + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals + * can be Google groups. Each occurrence of a principal counts towards these limits. For example, + * if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. + * @param bindings bindings or {@code null} for none + */ + public Policy setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public Policy setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates + * of a policy from overwriting each other. It is strongly suggested that systems make use of the + * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected + * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied + * to the same version of the policy. + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Policy encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * Specifies the format of the policy. + * + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. + * + * Any operation that affects conditional role bindings must specify version `3`. This requirement + * applies to the following operations: + * + * * Getting a policy that includes a conditional role binding * Adding a conditional role binding + * to a policy * Changing a conditional role binding in a policy * Removing any role binding, with + * or without a condition, from a policy that includes conditions + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * + * If a policy does not include any conditions, operations on that policy may specify any valid + * version or leave the field unset. + * + * To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @return value or {@code null} for none + */ + public java.lang.Integer getVersion() { + return version; + } + + /** + * Specifies the format of the policy. + * + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. + * + * Any operation that affects conditional role bindings must specify version `3`. This requirement + * applies to the following operations: + * + * * Getting a policy that includes a conditional role binding * Adding a conditional role binding + * to a policy * Changing a conditional role binding in a policy * Removing any role binding, with + * or without a condition, from a policy that includes conditions + * + * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call + * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy + * with a version `1` policy, and all of the conditions in the version `3` policy are lost. + * + * If a policy does not include any conditions, operations on that policy may specify any valid + * version or leave the field unset. + * + * To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @param version version or {@code null} for none + */ + public Policy setVersion(java.lang.Integer version) { + this.version = version; + return this; + } + + @Override + public Policy set(String fieldName, Object value) { + return (Policy) super.set(fieldName, value); + } + + @Override + public Policy clone() { + return (Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreconfiguredWafSet.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreconfiguredWafSet.java new file mode 100644 index 00000000000..48247983164 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreconfiguredWafSet.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; + +/** + * Model definition for PreconfiguredWafSet. + * + *

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 PreconfiguredWafSet extends com.google.api.client.json.GenericJson { + + /** + * List of entities that are currently supported for WAF rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List expressionSets; + + /** + * List of entities that are currently supported for WAF rules. + * @return value or {@code null} for none + */ + public java.util.List getExpressionSets() { + return expressionSets; + } + + /** + * List of entities that are currently supported for WAF rules. + * @param expressionSets expressionSets or {@code null} for none + */ + public PreconfiguredWafSet setExpressionSets(java.util.List expressionSets) { + this.expressionSets = expressionSets; + return this; + } + + @Override + public PreconfiguredWafSet set(String fieldName, Object value) { + return (PreconfiguredWafSet) super.set(fieldName, value); + } + + @Override + public PreconfiguredWafSet clone() { + return (PreconfiguredWafSet) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedState.java new file mode 100644 index 00000000000..02eadf2deac --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedState.java @@ -0,0 +1,147 @@ +/* + * 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; + +/** + * Preserved state for a given instance. + * + *

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 PreservedState extends com.google.api.client.json.GenericJson { + + /** + * Preserved disks defined for this instance. This map is keyed with the device names of the + * disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map disks; + + /** + * Preserved external IPs defined for this instance. This map is keyed with the name of the + * network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map externalIPs; + + /** + * Preserved internal IPs defined for this instance. This map is keyed with the name of the + * network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map internalIPs; + + /** + * Preserved metadata defined for this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Preserved disks defined for this instance. This map is keyed with the device names of the + * disks. + * @return value or {@code null} for none + */ + public java.util.Map getDisks() { + return disks; + } + + /** + * Preserved disks defined for this instance. This map is keyed with the device names of the + * disks. + * @param disks disks or {@code null} for none + */ + public PreservedState setDisks(java.util.Map disks) { + this.disks = disks; + return this; + } + + /** + * Preserved external IPs defined for this instance. This map is keyed with the name of the + * network interface. + * @return value or {@code null} for none + */ + public java.util.Map getExternalIPs() { + return externalIPs; + } + + /** + * Preserved external IPs defined for this instance. This map is keyed with the name of the + * network interface. + * @param externalIPs externalIPs or {@code null} for none + */ + public PreservedState setExternalIPs(java.util.Map externalIPs) { + this.externalIPs = externalIPs; + return this; + } + + /** + * Preserved internal IPs defined for this instance. This map is keyed with the name of the + * network interface. + * @return value or {@code null} for none + */ + public java.util.Map getInternalIPs() { + return internalIPs; + } + + /** + * Preserved internal IPs defined for this instance. This map is keyed with the name of the + * network interface. + * @param internalIPs internalIPs or {@code null} for none + */ + public PreservedState setInternalIPs(java.util.Map internalIPs) { + this.internalIPs = internalIPs; + return this; + } + + /** + * Preserved metadata defined for this instance. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Preserved metadata defined for this instance. + * @param metadata metadata or {@code null} for none + */ + public PreservedState setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + @Override + public PreservedState set(String fieldName, Object value) { + return (PreservedState) super.set(fieldName, value); + } + + @Override + public PreservedState clone() { + return (PreservedState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedDisk.java new file mode 100644 index 00000000000..4f289bfbd37 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedDisk.java @@ -0,0 +1,126 @@ +/* + * 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 PreservedStatePreservedDisk. + * + *

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 PreservedStatePreservedDisk extends com.google.api.client.json.GenericJson { + + /** + * These stateful disks will never be deleted during autohealing, update, instance recreate + * operations. This flag is used to configure if the disk should be deleted after it is no longer + * used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks + * attached in READ_ONLY mode cannot be auto-deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoDelete; + + /** + * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the + * default is to attach the disk in READ_WRITE mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The URL of the disk resource that is stateful and should be attached to the VM instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * These stateful disks will never be deleted during autohealing, update, instance recreate + * operations. This flag is used to configure if the disk should be deleted after it is no longer + * used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks + * attached in READ_ONLY mode cannot be auto-deleted. + * @return value or {@code null} for none + */ + public java.lang.String getAutoDelete() { + return autoDelete; + } + + /** + * These stateful disks will never be deleted during autohealing, update, instance recreate + * operations. This flag is used to configure if the disk should be deleted after it is no longer + * used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks + * attached in READ_ONLY mode cannot be auto-deleted. + * @param autoDelete autoDelete or {@code null} for none + */ + public PreservedStatePreservedDisk setAutoDelete(java.lang.String autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the + * default is to attach the disk in READ_WRITE mode. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the + * default is to attach the disk in READ_WRITE mode. + * @param mode mode or {@code null} for none + */ + public PreservedStatePreservedDisk setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * The URL of the disk resource that is stateful and should be attached to the VM instance. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * The URL of the disk resource that is stateful and should be attached to the VM instance. + * @param source source or {@code null} for none + */ + public PreservedStatePreservedDisk setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public PreservedStatePreservedDisk set(String fieldName, Object value) { + return (PreservedStatePreservedDisk) super.set(fieldName, value); + } + + @Override + public PreservedStatePreservedDisk clone() { + return (PreservedStatePreservedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIp.java new file mode 100644 index 00000000000..5a229a2a74d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIp.java @@ -0,0 +1,96 @@ +/* + * 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 PreservedStatePreservedNetworkIp. + * + *

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 PreservedStatePreservedNetworkIp extends com.google.api.client.json.GenericJson { + + /** + * These stateful IPs will never be released during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the IP reservation should be deleted after it is + * no longer used by the group, e.g. when the given instance or the whole group is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoDelete; + + /** + * Ip address representation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreservedStatePreservedNetworkIpIpAddress ipAddress; + + /** + * These stateful IPs will never be released during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the IP reservation should be deleted after it is + * no longer used by the group, e.g. when the given instance or the whole group is deleted. + * @return value or {@code null} for none + */ + public java.lang.String getAutoDelete() { + return autoDelete; + } + + /** + * These stateful IPs will never be released during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the IP reservation should be deleted after it is + * no longer used by the group, e.g. when the given instance or the whole group is deleted. + * @param autoDelete autoDelete or {@code null} for none + */ + public PreservedStatePreservedNetworkIp setAutoDelete(java.lang.String autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * Ip address representation + * @return value or {@code null} for none + */ + public PreservedStatePreservedNetworkIpIpAddress getIpAddress() { + return ipAddress; + } + + /** + * Ip address representation + * @param ipAddress ipAddress or {@code null} for none + */ + public PreservedStatePreservedNetworkIp setIpAddress(PreservedStatePreservedNetworkIpIpAddress ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + @Override + public PreservedStatePreservedNetworkIp set(String fieldName, Object value) { + return (PreservedStatePreservedNetworkIp) super.set(fieldName, value); + } + + @Override + public PreservedStatePreservedNetworkIp clone() { + return (PreservedStatePreservedNetworkIp) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIpIpAddress.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIpIpAddress.java new file mode 100644 index 00000000000..9308a44123f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreservedStatePreservedNetworkIpIpAddress.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for PreservedStatePreservedNetworkIpIpAddress. + * + *

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 PreservedStatePreservedNetworkIpIpAddress extends com.google.api.client.json.GenericJson { + + /** + * The URL of the reservation for this IP address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String address; + + /** + * An IPv4 internal network address to assign to the instance for this network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String literal; + + /** + * The URL of the reservation for this IP address. + * @return value or {@code null} for none + */ + public java.lang.String getAddress() { + return address; + } + + /** + * The URL of the reservation for this IP address. + * @param address address or {@code null} for none + */ + public PreservedStatePreservedNetworkIpIpAddress setAddress(java.lang.String address) { + this.address = address; + return this; + } + + /** + * An IPv4 internal network address to assign to the instance for this network interface. + * @return value or {@code null} for none + */ + public java.lang.String getLiteral() { + return literal; + } + + /** + * An IPv4 internal network address to assign to the instance for this network interface. + * @param literal literal or {@code null} for none + */ + public PreservedStatePreservedNetworkIpIpAddress setLiteral(java.lang.String literal) { + this.literal = literal; + return this; + } + + @Override + public PreservedStatePreservedNetworkIpIpAddress set(String fieldName, Object value) { + return (PreservedStatePreservedNetworkIpIpAddress) super.set(fieldName, value); + } + + @Override + public PreservedStatePreservedNetworkIpIpAddress clone() { + return (PreservedStatePreservedNetworkIpIpAddress) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeature.java new file mode 100644 index 00000000000..67589c68ecf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -0,0 +1,264 @@ +/* + * 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 single Google Compute Engine preview feature. + * + *

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 PreviewFeature extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the feature is enabled or disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String activationStatus; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] Description of the feature. + * 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; + + /** + * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview + * features. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Rollout operation of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureRolloutOperation rolloutOperation; + + /** + * 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] Status of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureStatus status; + + /** + * Specifies whether the feature is enabled or disabled. + * @return value or {@code null} for none + */ + public java.lang.String getActivationStatus() { + return activationStatus; + } + + /** + * Specifies whether the feature is enabled or disabled. + * @param activationStatus activationStatus or {@code null} for none + */ + public PreviewFeature setActivationStatus(java.lang.String activationStatus) { + this.activationStatus = activationStatus; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] Description of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] Description of the feature. + * @param description description or {@code null} for none + */ + public PreviewFeature 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 PreviewFeature setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview + * features. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview + * features. + * @param kind kind or {@code null} for none + */ + public PreviewFeature setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the feature. + * @param name name or {@code null} for none + */ + public PreviewFeature setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Rollout operation of the feature. + * @return value or {@code null} for none + */ + public PreviewFeatureRolloutOperation getRolloutOperation() { + return rolloutOperation; + } + + /** + * Rollout operation of the feature. + * @param rolloutOperation rolloutOperation or {@code null} for none + */ + public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rolloutOperation) { + this.rolloutOperation = rolloutOperation; + 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 PreviewFeature setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output only] Status of the feature. + * @return value or {@code null} for none + */ + public PreviewFeatureStatus getStatus() { + return status; + } + + /** + * Output only. [Output only] Status of the feature. + * @param status status or {@code null} for none + */ + public PreviewFeature setStatus(PreviewFeatureStatus status) { + this.status = status; + return this; + } + + @Override + public PreviewFeature set(String fieldName, Object value) { + return (PreviewFeature) super.set(fieldName, value); + } + + @Override + public PreviewFeature clone() { + return (PreviewFeature) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java new file mode 100644 index 00000000000..5abecc828d8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -0,0 +1,407 @@ +/* + * 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 PreviewFeatureList. + * + *

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 PreviewFeatureList extends com.google.api.client.json.GenericJson { + + /** + * 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 PreviewFeature 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 PreviewFeature 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(PreviewFeature.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public PreviewFeatureList 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 PreviewFeatureList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PreviewFeature resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of PreviewFeature resources. + * @param items items or {@code null} for none + */ + public PreviewFeatureList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PreviewFeatureList 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 PreviewFeatureList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public PreviewFeatureList 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 PreviewFeatureList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PreviewFeatureList set(String fieldName, Object value) { + return (PreviewFeatureList) super.set(fieldName, value); + } + + @Override + public PreviewFeatureList clone() { + return (PreviewFeatureList) 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 PreviewFeatureListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.java new file mode 100644 index 00000000000..fad35c9c362 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperation.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 the rollout operation + * + *

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 PreviewFeatureRolloutOperation extends com.google.api.client.json.GenericJson { + + /** + * Input only. The input for the rollout operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureRolloutOperationRolloutInput rolloutInput; + + /** + * Input only. The input for the rollout operation. + * @return value or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput getRolloutInput() { + return rolloutInput; + } + + /** + * Input only. The input for the rollout operation. + * @param rolloutInput rolloutInput or {@code null} for none + */ + public PreviewFeatureRolloutOperation setRolloutInput(PreviewFeatureRolloutOperationRolloutInput rolloutInput) { + this.rolloutInput = rolloutInput; + return this; + } + + @Override + public PreviewFeatureRolloutOperation set(String fieldName, Object value) { + return (PreviewFeatureRolloutOperation) super.set(fieldName, value); + } + + @Override + public PreviewFeatureRolloutOperation clone() { + return (PreviewFeatureRolloutOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java new file mode 100644 index 00000000000..4125cedd909 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureRolloutOperationRolloutInput.java @@ -0,0 +1,93 @@ +/* + * 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 input for the rollout operation. + * + *

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 PreviewFeatureRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Predefined rollout plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String predefinedRolloutPlan; + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. + * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. + * @param name name or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Predefined rollout plan. + * @return value or {@code null} for none + */ + public java.lang.String getPredefinedRolloutPlan() { + return predefinedRolloutPlan; + } + + /** + * Predefined rollout plan. + * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none + */ + public PreviewFeatureRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { + this.predefinedRolloutPlan = predefinedRolloutPlan; + return this; + } + + @Override + public PreviewFeatureRolloutOperationRolloutInput set(String fieldName, Object value) { + return (PreviewFeatureRolloutOperationRolloutInput) super.set(fieldName, value); + } + + @Override + public PreviewFeatureRolloutOperationRolloutInput clone() { + return (PreviewFeatureRolloutOperationRolloutInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java new file mode 100644 index 00000000000..6b0cd6054f8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -0,0 +1,111 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The status of the feature. + * + *

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 PreviewFeatureStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The description of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Link to the public documentation for the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String helpLink; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreviewFeatureStatusReleaseStatus releaseStatus; + + /** + * Output only. [Output Only] The description of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] The description of the feature. + * @param description description or {@code null} for none + */ + public PreviewFeatureStatus setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Link to the public documentation for the feature. + * @return value or {@code null} for none + */ + public java.lang.String getHelpLink() { + return helpLink; + } + + /** + * Output only. [Output Only] Link to the public documentation for the feature. + * @param helpLink helpLink or {@code null} for none + */ + public PreviewFeatureStatus setHelpLink(java.lang.String helpLink) { + this.helpLink = helpLink; + return this; + } + + /** + * @return value or {@code null} for none + */ + public PreviewFeatureStatusReleaseStatus getReleaseStatus() { + return releaseStatus; + } + + /** + * @param releaseStatus releaseStatus or {@code null} for none + */ + public PreviewFeatureStatus setReleaseStatus(PreviewFeatureStatusReleaseStatus releaseStatus) { + this.releaseStatus = releaseStatus; + return this; + } + + @Override + public PreviewFeatureStatus set(String fieldName, Object value) { + return (PreviewFeatureStatus) super.set(fieldName, value); + } + + @Override + public PreviewFeatureStatus clone() { + return (PreviewFeatureStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java new file mode 100644 index 00000000000..bbefbcc3470 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The release status of the feature. + * + *

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 PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The stage of the feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stage; + + /** + * Output only. The last date when a feature transitioned between ReleaseStatuses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date updateDate; + + /** + * Output only. [Output Only] The stage of the feature. + * @return value or {@code null} for none + */ + public java.lang.String getStage() { + return stage; + } + + /** + * Output only. [Output Only] The stage of the feature. + * @param stage stage or {@code null} for none + */ + public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { + this.stage = stage; + return this; + } + + /** + * Output only. The last date when a feature transitioned between ReleaseStatuses. + * @return value or {@code null} for none + */ + public Date getUpdateDate() { + return updateDate; + } + + /** + * Output only. The last date when a feature transitioned between ReleaseStatuses. + * @param updateDate updateDate or {@code null} for none + */ + public PreviewFeatureStatusReleaseStatus setUpdateDate(Date updateDate) { + this.updateDate = updateDate; + return this; + } + + @Override + public PreviewFeatureStatusReleaseStatus set(String fieldName, Object value) { + return (PreviewFeatureStatusReleaseStatus) super.set(fieldName, value); + } + + @Override + public PreviewFeatureStatusReleaseStatus clone() { + return (PreviewFeatureStatusReleaseStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Project.java new file mode 100644 index 00000000000..ffa634dcc7a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Project.java @@ -0,0 +1,414 @@ +/* + * 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 Project resource. + * + * A project is used to organize resources in a Google Cloud Platform environment. For more + * information, read about the Resource Hierarchy. + * + *

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 Project extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the + * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + * + * If this field is not specified, it is assumed to beCA_STANDARD. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudArmorTier; + + /** + * Metadata key/value pairs available to all instances contained in this project. See Custom + * metadata for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Metadata commonInstanceMetadata; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * This signifies the default network tier used for configuring resources of the project and can + * only take the following values:PREMIUM, STANDARD. Initially the default network tier is + * PREMIUM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultNetworkTier; + + /** + * [Output Only] Default service account used by VMs running in this project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultServiceAccount; + + /** + * An optional textual description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * An optional list of restricted features enabled for use on this project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List enabledFeatures; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * This is *not* the project ID, and is just a unique ID used by Compute Engine to identify + * resources. + * 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] Type of the resource. Always compute#project for projects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The project ID. For example: my-example-project. Use the project ID to make requests to Compute + * Engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [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; + + /** + * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where + * they are stored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UsageExportLocation usageExportLocation; + + /** + * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vmDnsSetting; + + /** + * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects + * with the host role, which is specified by the value HOST, are differentiated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String xpnProjectStatus; + + /** + * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the + * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + * + * If this field is not specified, it is assumed to beCA_STANDARD. + * @return value or {@code null} for none + */ + public java.lang.String getCloudArmorTier() { + return cloudArmorTier; + } + + /** + * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the + * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + * + * If this field is not specified, it is assumed to beCA_STANDARD. + * @param cloudArmorTier cloudArmorTier or {@code null} for none + */ + public Project setCloudArmorTier(java.lang.String cloudArmorTier) { + this.cloudArmorTier = cloudArmorTier; + return this; + } + + /** + * Metadata key/value pairs available to all instances contained in this project. See Custom + * metadata for more information. + * @return value or {@code null} for none + */ + public Metadata getCommonInstanceMetadata() { + return commonInstanceMetadata; + } + + /** + * Metadata key/value pairs available to all instances contained in this project. See Custom + * metadata for more information. + * @param commonInstanceMetadata commonInstanceMetadata or {@code null} for none + */ + public Project setCommonInstanceMetadata(Metadata commonInstanceMetadata) { + this.commonInstanceMetadata = commonInstanceMetadata; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Project setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * This signifies the default network tier used for configuring resources of the project and can + * only take the following values:PREMIUM, STANDARD. Initially the default network tier is + * PREMIUM. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultNetworkTier() { + return defaultNetworkTier; + } + + /** + * This signifies the default network tier used for configuring resources of the project and can + * only take the following values:PREMIUM, STANDARD. Initially the default network tier is + * PREMIUM. + * @param defaultNetworkTier defaultNetworkTier or {@code null} for none + */ + public Project setDefaultNetworkTier(java.lang.String defaultNetworkTier) { + this.defaultNetworkTier = defaultNetworkTier; + return this; + } + + /** + * [Output Only] Default service account used by VMs running in this project. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultServiceAccount() { + return defaultServiceAccount; + } + + /** + * [Output Only] Default service account used by VMs running in this project. + * @param defaultServiceAccount defaultServiceAccount or {@code null} for none + */ + public Project setDefaultServiceAccount(java.lang.String defaultServiceAccount) { + this.defaultServiceAccount = defaultServiceAccount; + return this; + } + + /** + * An optional textual description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional textual description of the resource. + * @param description description or {@code null} for none + */ + public Project setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * An optional list of restricted features enabled for use on this project. + * @return value or {@code null} for none + */ + public java.util.List getEnabledFeatures() { + return enabledFeatures; + } + + /** + * An optional list of restricted features enabled for use on this project. + * @param enabledFeatures enabledFeatures or {@code null} for none + */ + public Project setEnabledFeatures(java.util.List enabledFeatures) { + this.enabledFeatures = enabledFeatures; + return this; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * This is *not* the project ID, and is just a unique ID used by Compute Engine to identify + * resources. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * This is *not* the project ID, and is just a unique ID used by Compute Engine to identify + * resources. + * @param id id or {@code null} for none + */ + public Project setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * @param kind kind or {@code null} for none + */ + public Project setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The project ID. For example: my-example-project. Use the project ID to make requests to Compute + * Engine. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The project ID. For example: my-example-project. Use the project ID to make requests to Compute + * Engine. + * @param name name or {@code null} for none + */ + public Project setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Project setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where + * they are stored. + * @return value or {@code null} for none + */ + public UsageExportLocation getUsageExportLocation() { + return usageExportLocation; + } + + /** + * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where + * they are stored. + * @param usageExportLocation usageExportLocation or {@code null} for none + */ + public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { + this.usageExportLocation = usageExportLocation; + return this; + } + + /** + * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * @return value or {@code null} for none + */ + public java.lang.String getVmDnsSetting() { + return vmDnsSetting; + } + + /** + * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * @param vmDnsSetting vmDnsSetting or {@code null} for none + */ + public Project setVmDnsSetting(java.lang.String vmDnsSetting) { + this.vmDnsSetting = vmDnsSetting; + return this; + } + + /** + * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects + * with the host role, which is specified by the value HOST, are differentiated. + * @return value or {@code null} for none + */ + public java.lang.String getXpnProjectStatus() { + return xpnProjectStatus; + } + + /** + * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects + * with the host role, which is specified by the value HOST, are differentiated. + * @param xpnProjectStatus xpnProjectStatus or {@code null} for none + */ + public Project setXpnProjectStatus(java.lang.String xpnProjectStatus) { + this.xpnProjectStatus = xpnProjectStatus; + return this; + } + + @Override + public Project set(String fieldName, Object value) { + return (Project) super.set(fieldName, value); + } + + @Override + public Project clone() { + return (Project) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectView.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectView.java new file mode 100644 index 00000000000..b9a5ad856a0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectView.java @@ -0,0 +1,77 @@ +/* + * 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 ProjectView resource. + * + * A ProjectView resource contains read-only project data which is available globally. + * + *

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 ProjectView extends com.google.api.client.json.GenericJson { + + /** + * The project data. The returned Project data does not contain regional or zonal quota usage + * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the + * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) + * endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Project project; + + /** + * The project data. The returned Project data does not contain regional or zonal quota usage + * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the + * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) + * endpoint. + * @return value or {@code null} for none + */ + public Project getProject() { + return project; + } + + /** + * The project data. The returned Project data does not contain regional or zonal quota usage + * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the + * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) + * endpoint. + * @param project project or {@code null} for none + */ + public ProjectView setProject(Project project) { + this.project = project; + return this; + } + + @Override + public ProjectView set(String fieldName, Object value) { + return (ProjectView) super.set(fieldName, value); + } + + @Override + public ProjectView clone() { + return (ProjectView) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsDisableXpnResourceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsDisableXpnResourceRequest.java new file mode 100644 index 00000000000..e2f5d8efcf0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsDisableXpnResourceRequest.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; + +/** + * Model definition for ProjectsDisableXpnResourceRequest. + * + *

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 ProjectsDisableXpnResourceRequest extends com.google.api.client.json.GenericJson { + + /** + * Service resource (a.k.a service project) ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private XpnResourceId xpnResource; + + /** + * Service resource (a.k.a service project) ID. + * @return value or {@code null} for none + */ + public XpnResourceId getXpnResource() { + return xpnResource; + } + + /** + * Service resource (a.k.a service project) ID. + * @param xpnResource xpnResource or {@code null} for none + */ + public ProjectsDisableXpnResourceRequest setXpnResource(XpnResourceId xpnResource) { + this.xpnResource = xpnResource; + return this; + } + + @Override + public ProjectsDisableXpnResourceRequest set(String fieldName, Object value) { + return (ProjectsDisableXpnResourceRequest) super.set(fieldName, value); + } + + @Override + public ProjectsDisableXpnResourceRequest clone() { + return (ProjectsDisableXpnResourceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsEnableXpnResourceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsEnableXpnResourceRequest.java new file mode 100644 index 00000000000..efcdd8b3ef4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsEnableXpnResourceRequest.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; + +/** + * Model definition for ProjectsEnableXpnResourceRequest. + * + *

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 ProjectsEnableXpnResourceRequest extends com.google.api.client.json.GenericJson { + + /** + * Service resource (a.k.a service project) ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private XpnResourceId xpnResource; + + /** + * Service resource (a.k.a service project) ID. + * @return value or {@code null} for none + */ + public XpnResourceId getXpnResource() { + return xpnResource; + } + + /** + * Service resource (a.k.a service project) ID. + * @param xpnResource xpnResource or {@code null} for none + */ + public ProjectsEnableXpnResourceRequest setXpnResource(XpnResourceId xpnResource) { + this.xpnResource = xpnResource; + return this; + } + + @Override + public ProjectsEnableXpnResourceRequest set(String fieldName, Object value) { + return (ProjectsEnableXpnResourceRequest) super.set(fieldName, value); + } + + @Override + public ProjectsEnableXpnResourceRequest clone() { + return (ProjectsEnableXpnResourceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java new file mode 100644 index 00000000000..cd70d815772 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -0,0 +1,126 @@ +/* + * 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 ProjectsGetXpnResources. + * + *

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 ProjectsGetXpnResources extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of + * service resources (a.k.a service projects) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Service resources (a.k.a service projects) attached to this project as their shared VPC host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resources; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of + * service resources (a.k.a service projects) + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of + * service resources (a.k.a service projects) + * @param kind kind or {@code null} for none + */ + public ProjectsGetXpnResources setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ProjectsGetXpnResources setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Service resources (a.k.a service projects) attached to this project as their shared VPC host. + * @return value or {@code null} for none + */ + public java.util.List getResources() { + return resources; + } + + /** + * Service resources (a.k.a service projects) attached to this project as their shared VPC host. + * @param resources resources or {@code null} for none + */ + public ProjectsGetXpnResources setResources(java.util.List resources) { + this.resources = resources; + return this; + } + + @Override + public ProjectsGetXpnResources set(String fieldName, Object value) { + return (ProjectsGetXpnResources) super.set(fieldName, value); + } + + @Override + public ProjectsGetXpnResources clone() { + return (ProjectsGetXpnResources) super.clone(); + } + +} From 90da58c4ad6caaad60dad2028387688a206f9457 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:27 -0700 Subject: [PATCH 08/23] chore: regenerate compute client --- .../model/ProjectsListXpnHostsRequest.java | 69 ++ .../ProjectsSetCloudArmorTierRequest.java | 66 ++ .../ProjectsSetDefaultNetworkTierRequest.java | 66 ++ .../compute/model/PublicAdvertisedPrefix.java | 508 +++++++++++ .../model/PublicAdvertisedPrefixList.java | 386 +++++++++ ...AdvertisedPrefixPublicDelegatedPrefix.java | 168 ++++ .../compute/model/PublicDelegatedPrefix.java | 581 +++++++++++++ .../PublicDelegatedPrefixAggregatedList.java | 407 +++++++++ .../model/PublicDelegatedPrefixList.java | 386 +++++++++ ...legatedPrefixPublicDelegatedSubPrefix.java | 315 +++++++ .../PublicDelegatedPrefixesScopedList.java | 282 ++++++ .../model/QueryFormabilityRequest.java | 69 ++ .../model/QueryFormabilityResponse.java | 108 +++ .../compute/model/QuotaExceededInfo.java | 186 ++++ .../api/services/compute/model/Reference.java | 141 +++ .../services/compute/model/RegexRewrite.java | 111 +++ .../api/services/compute/model/Region.java | 496 +++++++++++ .../model/RegionAddressesMoveRequest.java | 108 +++ .../compute/model/RegionAutoscalerList.java | 383 ++++++++ .../compute/model/RegionDiskTypeList.java | 386 +++++++++ .../model/RegionDiskUpdateKmsKeyRequest.java | 84 ++ ...RegionDisksAddResourcePoliciesRequest.java | 66 ++ ...ionDisksRemoveResourcePoliciesRequest.java | 66 ++ .../model/RegionDisksResizeRequest.java | 66 ++ ...gionDisksStartAsyncReplicationRequest.java | 84 ++ .../model/RegionInstanceGroupList.java | 383 ++++++++ ...ceGroupManagerDeleteInstanceConfigReq.java | 69 ++ .../model/RegionInstanceGroupManagerList.java | 386 +++++++++ ...nceGroupManagerPatchInstanceConfigReq.java | 72 ++ ...roupManagerResizeRequestsListResponse.java | 431 +++++++++ ...ceGroupManagerUpdateInstanceConfigReq.java | 72 ++ ...eGroupManagersAbandonInstancesRequest.java | 69 ++ ...tanceGroupManagersApplyUpdatesRequest.java | 180 ++++ ...ceGroupManagersCreateInstancesRequest.java | 72 ++ ...ceGroupManagersDeleteInstancesRequest.java | 105 +++ ...stanceGroupManagersListErrorsResponse.java | 105 +++ ...eGroupManagersListInstanceConfigsResp.java | 311 +++++++ ...nceGroupManagersListInstancesResponse.java | 105 +++ ...nInstanceGroupManagersRecreateRequest.java | 69 ++ ...ceGroupManagersResumeInstancesRequest.java | 69 ++ ...nceGroupManagersSetTargetPoolsRequest.java | 126 +++ ...stanceGroupManagersSetTemplateRequest.java | 66 ++ ...nceGroupManagersStartInstancesRequest.java | 69 ++ ...anceGroupManagersStopInstancesRequest.java | 96 +++ ...eGroupManagersSuspendInstancesRequest.java | 96 +++ .../RegionInstanceGroupsListInstances.java | 383 ++++++++ ...ionInstanceGroupsListInstancesRequest.java | 99 +++ ...ionInstanceGroupsSetNamedPortsRequest.java | 144 ++++ .../services/compute/model/RegionList.java | 383 ++++++++ ...kEndpointGroupsAttachEndpointsRequest.java | 72 ++ ...kEndpointGroupsDetachEndpointsRequest.java | 72 ++ ...PoliciesGetEffectiveFirewallsResponse.java | 102 +++ ...ewallsResponseEffectiveFirewallPolicy.java | 205 +++++ .../compute/model/RegionSetLabelsRequest.java | 133 +++ .../compute/model/RegionSetPolicyRequest.java | 162 ++++ .../RegionSnapshotUpdateKmsKeyRequest.java | 78 ++ ...HttpsProxiesSetSslCertificatesRequest.java | 66 ++ .../model/RegionUrlMapsValidateRequest.java | 66 ++ .../compute/model/ReliabilityRisk.java | 261 ++++++ .../model/ReliabilityRisksListResponse.java | 410 +++++++++ .../compute/model/RequestMirrorPolicy.java | 108 +++ .../services/compute/model/Reservation.java | 815 ++++++++++++++++++ .../ReservationAdvancedDeploymentControl.java | 66 ++ .../compute/model/ReservationAffinity.java | 132 +++ .../model/ReservationAggregatedList.java | 401 +++++++++ .../compute/model/ReservationBlock.java | 504 +++++++++++ ...servationBlockBlockDetailedHealthInfo.java | 150 ++++ .../model/ReservationBlockBlockStatus.java | 66 ++ .../model/ReservationBlockHealthInfo.java | 114 +++ .../ReservationBlockPhysicalTopology.java | 114 +++ ...ervationBlockPhysicalTopologyInstance.java | 114 +++ ...lTopologyInstancePhysicalHostTopology.java | 117 +++ .../model/ReservationBlocksGetResponse.java | 63 ++ .../model/ReservationBlocksListResponse.java | 383 ++++++++ .../compute/model/ReservationList.java | 386 +++++++++ .../compute/model/ReservationParams.java | 78 ++ .../compute/model/ReservationSlot.java | 315 +++++++ .../ReservationSlotPhysicalTopology.java | 138 +++ .../compute/model/ReservationSlotStatus.java | 114 +++ .../model/ReservationSlotsGetResponse.java | 63 ++ .../ReservationSlotsGetVersionRequest.java | 66 ++ .../model/ReservationSlotsListResponse.java | 383 ++++++++ .../compute/model/ReservationSubBlock.java | 471 ++++++++++ .../model/ReservationSubBlockHealthInfo.java | 162 ++++ .../ReservationSubBlockPhysicalTopology.java | 114 +++ ...ionSubBlockSubBlockDetailedHealthInfo.java | 117 +++ .../ReservationSubBlockSubBlockStatus.java | 66 ++ .../ReservationSubBlocksGetResponse.java | 63 ++ ...ReservationSubBlocksGetVersionRequest.java | 66 ++ .../ReservationSubBlocksListResponse.java | 383 ++++++++ ...servationSubBlocksReportFaultyRequest.java | 114 +++ ...bBlocksReportFaultyRequestFaultReason.java | 90 ++ ...ationsBlocksPerformMaintenanceRequest.java | 66 ++ ...ReservationsPerformMaintenanceRequest.java | 66 ++ .../model/ReservationsResizeRequest.java | 66 ++ .../compute/model/ReservationsScopedList.java | 278 ++++++ .../compute/model/ResourceCommitment.java | 141 +++ .../compute/model/ResourceGroupReference.java | 69 ++ .../compute/model/ResourceMetadata.java | 96 +++ .../model/ResourcePoliciesScopedList.java | 272 ++++++ 100 files changed, 18565 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsListXpnHostsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetCloudArmorTierRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetDefaultNetworkTierRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QuotaExceededInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegexRewrite.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Region.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAddressesMoveRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksAddResourcePoliciesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksRemoveResourcePoliciesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksResizeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksStartAsyncReplicationRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerResizeRequestsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAbandonInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersCreateInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersDeleteInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstanceConfigsResp.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersRecreateRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResumeInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTemplateRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStartInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStopInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSuspendInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstancesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsSetNamedPortsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetLabelsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetPolicyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionUrlMapsValidateRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RequestMirrorPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reservation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAdvancedDeploymentControl.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAffinity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlock.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockDetailedHealthInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockHealthInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksGetResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlot.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockHealthInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockPhysicalTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockDetailedHealthInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequestFaultReason.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsBlocksPerformMaintenanceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsPerformMaintenanceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsResizeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceCommitment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceGroupReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePoliciesScopedList.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsListXpnHostsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsListXpnHostsRequest.java new file mode 100644 index 00000000000..4ea072f76d9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsListXpnHostsRequest.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; + +/** + * Model definition for ProjectsListXpnHostsRequest. + * + *

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 ProjectsListXpnHostsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host + * projects. If not specified, the organization will be inferred from the project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** + * Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host + * projects. If not specified, the organization will be inferred from the project. + * @return value or {@code null} for none + */ + public java.lang.String getOrganization() { + return organization; + } + + /** + * Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host + * projects. If not specified, the organization will be inferred from the project. + * @param organization organization or {@code null} for none + */ + public ProjectsListXpnHostsRequest setOrganization(java.lang.String organization) { + this.organization = organization; + return this; + } + + @Override + public ProjectsListXpnHostsRequest set(String fieldName, Object value) { + return (ProjectsListXpnHostsRequest) super.set(fieldName, value); + } + + @Override + public ProjectsListXpnHostsRequest clone() { + return (ProjectsListXpnHostsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetCloudArmorTierRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetCloudArmorTierRequest.java new file mode 100644 index 00000000000..8f2eb8d186b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetCloudArmorTierRequest.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; + +/** + * Model definition for ProjectsSetCloudArmorTierRequest. + * + *

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 ProjectsSetCloudArmorTierRequest extends com.google.api.client.json.GenericJson { + + /** + * Managed protection tier to be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudArmorTier; + + /** + * Managed protection tier to be set. + * @return value or {@code null} for none + */ + public java.lang.String getCloudArmorTier() { + return cloudArmorTier; + } + + /** + * Managed protection tier to be set. + * @param cloudArmorTier cloudArmorTier or {@code null} for none + */ + public ProjectsSetCloudArmorTierRequest setCloudArmorTier(java.lang.String cloudArmorTier) { + this.cloudArmorTier = cloudArmorTier; + return this; + } + + @Override + public ProjectsSetCloudArmorTierRequest set(String fieldName, Object value) { + return (ProjectsSetCloudArmorTierRequest) super.set(fieldName, value); + } + + @Override + public ProjectsSetCloudArmorTierRequest clone() { + return (ProjectsSetCloudArmorTierRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetDefaultNetworkTierRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetDefaultNetworkTierRequest.java new file mode 100644 index 00000000000..6caf894e6e0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ProjectsSetDefaultNetworkTierRequest.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; + +/** + * Model definition for ProjectsSetDefaultNetworkTierRequest. + * + *

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 ProjectsSetDefaultNetworkTierRequest extends com.google.api.client.json.GenericJson { + + /** + * Default network tier to be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkTier; + + /** + * Default network tier to be set. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkTier() { + return networkTier; + } + + /** + * Default network tier to be set. + * @param networkTier networkTier or {@code null} for none + */ + public ProjectsSetDefaultNetworkTierRequest setNetworkTier(java.lang.String networkTier) { + this.networkTier = networkTier; + return this; + } + + @Override + public ProjectsSetDefaultNetworkTierRequest set(String fieldName, Object value) { + return (ProjectsSetDefaultNetworkTierRequest) super.set(fieldName, value); + } + + @Override + public ProjectsSetDefaultNetworkTierRequest clone() { + return (ProjectsSetDefaultNetworkTierRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java new file mode 100644 index 00000000000..dffdfa4c908 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -0,0 +1,508 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A public advertised prefix represents an aggregated IP prefix or netblock which customers bring + * to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the + * internet. + * + *

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 PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The version of BYOIP API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String byoipApiVersion; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The address to be used for reverse DNS verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dnsVerificationIp; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The address range, in CIDR format, represented by this public advertised prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * The internet access type for IPv6 Public Advertised Prefixes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6AccessType; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Specifies how child public delegated prefix will be scoped. It could be one of following + * values: - `REGIONAL`: The public delegated prefix is regional only. The + * provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global + * only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The + * public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no + * longer supported in BYOIP V2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pdpScope; + + /** + * Output only. [Output Only] The list of public delegated prefixes that exist for this public + * advertised prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List publicDelegatedPrefixs; + + /** + * 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] The shared secret to be used for reverse DNS verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sharedSecret; + + /** + * The status of the public advertised prefix. Possible values include: - `INITIAL`: + * RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - + * `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS + * lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. + * - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - + * `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] The version of BYOIP API. + * @return value or {@code null} for none + */ + public java.lang.String getByoipApiVersion() { + return byoipApiVersion; + } + + /** + * Output only. [Output Only] The version of BYOIP API. + * @param byoipApiVersion byoipApiVersion or {@code null} for none + */ + public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { + this.byoipApiVersion = byoipApiVersion; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public PublicAdvertisedPrefix setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The address to be used for reverse DNS verification. + * @return value or {@code null} for none + */ + public java.lang.String getDnsVerificationIp() { + return dnsVerificationIp; + } + + /** + * The address to be used for reverse DNS verification. + * @param dnsVerificationIp dnsVerificationIp or {@code null} for none + */ + public PublicAdvertisedPrefix setDnsVerificationIp(java.lang.String dnsVerificationIp) { + this.dnsVerificationIp = dnsVerificationIp; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public PublicAdvertisedPrefix setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public PublicAdvertisedPrefix setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * The address range, in CIDR format, represented by this public advertised prefix. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The address range, in CIDR format, represented by this public advertised prefix. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public PublicAdvertisedPrefix setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * The internet access type for IPv6 Public Advertised Prefixes. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6AccessType() { + return ipv6AccessType; + } + + /** + * The internet access type for IPv6 Public Advertised Prefixes. + * @param ipv6AccessType ipv6AccessType or {@code null} for none + */ + public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { + this.ipv6AccessType = ipv6AccessType; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. + * @param kind kind or {@code null} for none + */ + public PublicAdvertisedPrefix setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 PublicAdvertisedPrefix setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies how child public delegated prefix will be scoped. It could be one of following + * values: - `REGIONAL`: The public delegated prefix is regional only. The + * provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global + * only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The + * public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no + * longer supported in BYOIP V2. + * @return value or {@code null} for none + */ + public java.lang.String getPdpScope() { + return pdpScope; + } + + /** + * Specifies how child public delegated prefix will be scoped. It could be one of following + * values: - `REGIONAL`: The public delegated prefix is regional only. The + * provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global + * only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The + * public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no + * longer supported in BYOIP V2. + * @param pdpScope pdpScope or {@code null} for none + */ + public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { + this.pdpScope = pdpScope; + return this; + } + + /** + * Output only. [Output Only] The list of public delegated prefixes that exist for this public + * advertised prefix. + * @return value or {@code null} for none + */ + public java.util.List getPublicDelegatedPrefixs() { + return publicDelegatedPrefixs; + } + + /** + * Output only. [Output Only] The list of public delegated prefixes that exist for this public + * advertised prefix. + * @param publicDelegatedPrefixs publicDelegatedPrefixs or {@code null} for none + */ + public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List publicDelegatedPrefixs) { + this.publicDelegatedPrefixs = publicDelegatedPrefixs; + 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 PublicAdvertisedPrefix setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] The shared secret to be used for reverse DNS verification. + * @return value or {@code null} for none + */ + public java.lang.String getSharedSecret() { + return sharedSecret; + } + + /** + * [Output Only] The shared secret to be used for reverse DNS verification. + * @param sharedSecret sharedSecret or {@code null} for none + */ + public PublicAdvertisedPrefix setSharedSecret(java.lang.String sharedSecret) { + this.sharedSecret = sharedSecret; + return this; + } + + /** + * The status of the public advertised prefix. Possible values include: - `INITIAL`: + * RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - + * `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS + * lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. + * - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - + * `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of the public advertised prefix. Possible values include: - `INITIAL`: + * RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - + * `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS + * lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. + * - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - + * `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. + * @param status status or {@code null} for none + */ + public PublicAdvertisedPrefix setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PublicAdvertisedPrefix set(String fieldName, Object value) { + return (PublicAdvertisedPrefix) super.set(fieldName, value); + } + + @Override + public PublicAdvertisedPrefix clone() { + return (PublicAdvertisedPrefix) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixList.java new file mode 100644 index 00000000000..210f7480994 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixList.java @@ -0,0 +1,386 @@ +/* + * 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 PublicAdvertisedPrefixList. + * + *

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 PublicAdvertisedPrefixList extends com.google.api.client.json.GenericJson { + + /** + * [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 PublicAdvertisedPrefix 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 PublicAdvertisedPrefix 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(PublicAdvertisedPrefix.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 PublicAdvertisedPrefixList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PublicAdvertisedPrefix resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of PublicAdvertisedPrefix resources. + * @param items items or {@code null} for none + */ + public PublicAdvertisedPrefixList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for + * public advertised prefixes. + * @param kind kind or {@code null} for none + */ + public PublicAdvertisedPrefixList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PublicAdvertisedPrefixList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public PublicAdvertisedPrefixList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 PublicAdvertisedPrefixList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PublicAdvertisedPrefixList set(String fieldName, Object value) { + return (PublicAdvertisedPrefixList) super.set(fieldName, value); + } + + @Override + public PublicAdvertisedPrefixList clone() { + return (PublicAdvertisedPrefixList) 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 PublicAdvertisedPrefixListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java new file mode 100644 index 00000000000..fe9c5915dd3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java @@ -0,0 +1,168 @@ +/* + * 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 CIDR range which can be used to assign addresses. + * + *

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 PublicAdvertisedPrefixPublicDelegatedPrefix extends com.google.api.client.json.GenericJson { + + /** + * The IP address range of the public delegated prefix + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipRange; + + /** + * The name of the public delegated prefix + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The project number of the public delegated prefix + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * The region of the public delegated prefix if it is regional. If absent, the prefix is global. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * The status of the public delegated prefix. Possible values are: INITIALIZING: The public + * delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The + * public delegated prefix is active. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The IP address range of the public delegated prefix + * @return value or {@code null} for none + */ + public java.lang.String getIpRange() { + return ipRange; + } + + /** + * The IP address range of the public delegated prefix + * @param ipRange ipRange or {@code null} for none + */ + public PublicAdvertisedPrefixPublicDelegatedPrefix setIpRange(java.lang.String ipRange) { + this.ipRange = ipRange; + return this; + } + + /** + * The name of the public delegated prefix + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the public delegated prefix + * @param name name or {@code null} for none + */ + public PublicAdvertisedPrefixPublicDelegatedPrefix setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The project number of the public delegated prefix + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * The project number of the public delegated prefix + * @param project project or {@code null} for none + */ + public PublicAdvertisedPrefixPublicDelegatedPrefix setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * The region of the public delegated prefix if it is regional. If absent, the prefix is global. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The region of the public delegated prefix if it is regional. If absent, the prefix is global. + * @param region region or {@code null} for none + */ + public PublicAdvertisedPrefixPublicDelegatedPrefix setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The status of the public delegated prefix. Possible values are: INITIALIZING: The public + * delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The + * public delegated prefix is active. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of the public delegated prefix. Possible values are: INITIALIZING: The public + * delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The + * public delegated prefix is active. + * @param status status or {@code null} for none + */ + public PublicAdvertisedPrefixPublicDelegatedPrefix setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PublicAdvertisedPrefixPublicDelegatedPrefix set(String fieldName, Object value) { + return (PublicAdvertisedPrefixPublicDelegatedPrefix) super.set(fieldName, value); + } + + @Override + public PublicAdvertisedPrefixPublicDelegatedPrefix clone() { + return (PublicAdvertisedPrefixPublicDelegatedPrefix) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java new file mode 100644 index 00000000000..4894fc07886 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java @@ -0,0 +1,581 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is + * configured within a single cloud scope (global or region). IPs in the block can be allocated to + * resources within that scope. Public delegated prefixes may be further broken up into smaller IP + * blocks in the same scope as the parent block. + * + *

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 PublicDelegatedPrefix extends com.google.api.client.json.GenericJson { + + /** + * The allocatable prefix length supported by this public delegated prefix. This field is optional + * and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, + * and it always defaults to 32. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer allocatablePrefixLength; + + /** + * Output only. [Output Only] The version of BYOIP API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String byoipApiVersion; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEnhancedIpv4Allocation; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * The IP address range, in CIDR format, represented by this public delegated prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + * Inherited from parent prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6AccessType; + + /** + * If true, the prefix will be live migrated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isLiveMigration; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public + * delegated prefixes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The public delegated prefix mode for IPv6 only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parentPrefix; + + /** + * The list of sub public delegated prefixes that exist for this public delegated prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List publicDelegatedSubPrefixs; + + /** + * Output only. [Output Only] URL of the region where the public delegated prefix resides. This + * field applies only to the region resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] The status of the public delegated prefix, which can be one of following values: + * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be + * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + * prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to + * use. - `DELETING` The public delegated prefix is being deprovsioned. - `ACTIVE` The + * public delegated prefix is ready to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The allocatable prefix length supported by this public delegated prefix. This field is optional + * and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, + * and it always defaults to 32. + * @return value or {@code null} for none + */ + public java.lang.Integer getAllocatablePrefixLength() { + return allocatablePrefixLength; + } + + /** + * The allocatable prefix length supported by this public delegated prefix. This field is optional + * and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, + * and it always defaults to 32. + * @param allocatablePrefixLength allocatablePrefixLength or {@code null} for none + */ + public PublicDelegatedPrefix setAllocatablePrefixLength(java.lang.Integer allocatablePrefixLength) { + this.allocatablePrefixLength = allocatablePrefixLength; + return this; + } + + /** + * Output only. [Output Only] The version of BYOIP API. + * @return value or {@code null} for none + */ + public java.lang.String getByoipApiVersion() { + return byoipApiVersion; + } + + /** + * Output only. [Output Only] The version of BYOIP API. + * @param byoipApiVersion byoipApiVersion or {@code null} for none + */ + public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { + this.byoipApiVersion = byoipApiVersion; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public PublicDelegatedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public PublicDelegatedPrefix setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEnhancedIpv4Allocation() { + return enableEnhancedIpv4Allocation; + } + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @param enableEnhancedIpv4Allocation enableEnhancedIpv4Allocation or {@code null} for none + */ + public PublicDelegatedPrefix setEnableEnhancedIpv4Allocation(java.lang.Boolean enableEnhancedIpv4Allocation) { + this.enableEnhancedIpv4Allocation = enableEnhancedIpv4Allocation; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public PublicDelegatedPrefix setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. + * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, + * otherwise the request will fail with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public PublicDelegatedPrefix encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public PublicDelegatedPrefix setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * The IP address range, in CIDR format, represented by this public delegated prefix. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The IP address range, in CIDR format, represented by this public delegated prefix. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public PublicDelegatedPrefix setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + * Inherited from parent prefix. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6AccessType() { + return ipv6AccessType; + } + + /** + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. + * Inherited from parent prefix. + * @param ipv6AccessType ipv6AccessType or {@code null} for none + */ + public PublicDelegatedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { + this.ipv6AccessType = ipv6AccessType; + return this; + } + + /** + * If true, the prefix will be live migrated. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsLiveMigration() { + return isLiveMigration; + } + + /** + * If true, the prefix will be live migrated. + * @param isLiveMigration isLiveMigration or {@code null} for none + */ + public PublicDelegatedPrefix setIsLiveMigration(java.lang.Boolean isLiveMigration) { + this.isLiveMigration = isLiveMigration; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public + * delegated prefixes. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public + * delegated prefixes. + * @param kind kind or {@code null} for none + */ + public PublicDelegatedPrefix setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The public delegated prefix mode for IPv6 only. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The public delegated prefix mode for IPv6 only. + * @param mode mode or {@code null} for none + */ + public PublicDelegatedPrefix setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 PublicDelegatedPrefix setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. + * @return value or {@code null} for none + */ + public java.lang.String getParentPrefix() { + return parentPrefix; + } + + /** + * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. + * @param parentPrefix parentPrefix or {@code null} for none + */ + public PublicDelegatedPrefix setParentPrefix(java.lang.String parentPrefix) { + this.parentPrefix = parentPrefix; + return this; + } + + /** + * The list of sub public delegated prefixes that exist for this public delegated prefix. + * @return value or {@code null} for none + */ + public java.util.List getPublicDelegatedSubPrefixs() { + return publicDelegatedSubPrefixs; + } + + /** + * The list of sub public delegated prefixes that exist for this public delegated prefix. + * @param publicDelegatedSubPrefixs publicDelegatedSubPrefixs or {@code null} for none + */ + public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List publicDelegatedSubPrefixs) { + this.publicDelegatedSubPrefixs = publicDelegatedSubPrefixs; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the public delegated prefix resides. This + * field applies only to the region resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the public delegated prefix resides. This + * field applies only to the region resource. You must specify this field as part of the HTTP + * request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public PublicDelegatedPrefix setRegion(java.lang.String region) { + this.region = region; + 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 PublicDelegatedPrefix setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] The status of the public delegated prefix, which can be one of following values: + * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be + * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + * prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to + * use. - `DELETING` The public delegated prefix is being deprovsioned. - `ACTIVE` The + * public delegated prefix is ready to use. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] The status of the public delegated prefix, which can be one of following values: + * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be + * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + * prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to + * use. - `DELETING` The public delegated prefix is being deprovsioned. - `ACTIVE` The + * public delegated prefix is ready to use. + * @param status status or {@code null} for none + */ + public PublicDelegatedPrefix setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PublicDelegatedPrefix set(String fieldName, Object value) { + return (PublicDelegatedPrefix) super.set(fieldName, value); + } + + @Override + public PublicDelegatedPrefix clone() { + return (PublicDelegatedPrefix) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixAggregatedList.java new file mode 100644 index 00000000000..e8003b34a55 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixAggregatedList.java @@ -0,0 +1,407 @@ +/* + * 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 PublicDelegatedPrefixAggregatedList. + * + *

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 PublicDelegatedPrefixAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 PublicDelegatedPrefixesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated + * prefixes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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; + + /** + * [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 PublicDelegatedPrefixAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PublicDelegatedPrefixesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of PublicDelegatedPrefixesScopedList resources. + * @param items items or {@code null} for none + */ + public PublicDelegatedPrefixAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated + * prefixes. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated + * prefixes. + * @param kind kind or {@code null} for none + */ + public PublicDelegatedPrefixAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PublicDelegatedPrefixAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public PublicDelegatedPrefixAggregatedList 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 PublicDelegatedPrefixAggregatedList 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 PublicDelegatedPrefixAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PublicDelegatedPrefixAggregatedList set(String fieldName, Object value) { + return (PublicDelegatedPrefixAggregatedList) super.set(fieldName, value); + } + + @Override + public PublicDelegatedPrefixAggregatedList clone() { + return (PublicDelegatedPrefixAggregatedList) 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 PublicDelegatedPrefixAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java new file mode 100644 index 00000000000..ce4bbc31da0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -0,0 +1,386 @@ +/* + * 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 PublicDelegatedPrefixList. + * + *

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 PublicDelegatedPrefixList extends com.google.api.client.json.GenericJson { + + /** + * [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 PublicDelegatedPrefix 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 PublicDelegatedPrefix 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(PublicDelegatedPrefix.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for + * public delegated prefixes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 PublicDelegatedPrefixList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of PublicDelegatedPrefix resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of PublicDelegatedPrefix resources. + * @param items items or {@code null} for none + */ + public PublicDelegatedPrefixList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for + * public delegated prefixes. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for + * public delegated prefixes. + * @param kind kind or {@code null} for none + */ + public PublicDelegatedPrefixList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public PublicDelegatedPrefixList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public PublicDelegatedPrefixList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 PublicDelegatedPrefixList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PublicDelegatedPrefixList set(String fieldName, Object value) { + return (PublicDelegatedPrefixList) super.set(fieldName, value); + } + + @Override + public PublicDelegatedPrefixList clone() { + return (PublicDelegatedPrefixList) 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 PublicDelegatedPrefixListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java new file mode 100644 index 00000000000..db255ac525a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -0,0 +1,315 @@ +/* + * 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 sub PublicDelegatedPrefix. + * + *

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 PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.google.api.client.json.GenericJson { + + /** + * The allocatable prefix length supported by this PublicDelegatedSubPrefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer allocatablePrefixLength; + + /** + * Name of the project scoping this PublicDelegatedSubPrefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delegateeProject; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEnhancedIpv4Allocation; + + /** + * The IP address range, in CIDR format, represented by this sub public delegated prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. + * Inherited from parent prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6AccessType; + + /** + * Whether the sub prefix is delegated to create Address resources in the delegatee project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isAddress; + + /** + * The PublicDelegatedSubPrefix mode for IPv6 only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * The name of the sub public delegated prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If + * absent, the sub prefix is global. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] The status of the sub public delegated prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The allocatable prefix length supported by this PublicDelegatedSubPrefix. + * @return value or {@code null} for none + */ + public java.lang.Integer getAllocatablePrefixLength() { + return allocatablePrefixLength; + } + + /** + * The allocatable prefix length supported by this PublicDelegatedSubPrefix. + * @param allocatablePrefixLength allocatablePrefixLength or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setAllocatablePrefixLength(java.lang.Integer allocatablePrefixLength) { + this.allocatablePrefixLength = allocatablePrefixLength; + return this; + } + + /** + * Name of the project scoping this PublicDelegatedSubPrefix. + * @return value or {@code null} for none + */ + public java.lang.String getDelegateeProject() { + return delegateeProject; + } + + /** + * Name of the project scoping this PublicDelegatedSubPrefix. + * @param delegateeProject delegateeProject or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setDelegateeProject(java.lang.String delegateeProject) { + this.delegateeProject = delegateeProject; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEnhancedIpv4Allocation() { + return enableEnhancedIpv4Allocation; + } + + /** + * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for + * IPv4 PDPs only. + * @param enableEnhancedIpv4Allocation enableEnhancedIpv4Allocation or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setEnableEnhancedIpv4Allocation(java.lang.Boolean enableEnhancedIpv4Allocation) { + this.enableEnhancedIpv4Allocation = enableEnhancedIpv4Allocation; + return this; + } + + /** + * The IP address range, in CIDR format, represented by this sub public delegated prefix. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The IP address range, in CIDR format, represented by this sub public delegated prefix. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. + * Inherited from parent prefix. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6AccessType() { + return ipv6AccessType; + } + + /** + * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. + * Inherited from parent prefix. + * @param ipv6AccessType ipv6AccessType or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { + this.ipv6AccessType = ipv6AccessType; + return this; + } + + /** + * Whether the sub prefix is delegated to create Address resources in the delegatee project. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsAddress() { + return isAddress; + } + + /** + * Whether the sub prefix is delegated to create Address resources in the delegatee project. + * @param isAddress isAddress or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setIsAddress(java.lang.Boolean isAddress) { + this.isAddress = isAddress; + return this; + } + + /** + * The PublicDelegatedSubPrefix mode for IPv6 only. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The PublicDelegatedSubPrefix mode for IPv6 only. + * @param mode mode or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * The name of the sub public delegated prefix. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the sub public delegated prefix. + * @param name name or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If + * absent, the sub prefix is global. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If + * absent, the sub prefix is global. + * @param region region or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] The status of the sub public delegated prefix. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the sub public delegated prefix. + * @param status status or {@code null} for none + */ + public PublicDelegatedPrefixPublicDelegatedSubPrefix setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public PublicDelegatedPrefixPublicDelegatedSubPrefix set(String fieldName, Object value) { + return (PublicDelegatedPrefixPublicDelegatedSubPrefix) super.set(fieldName, value); + } + + @Override + public PublicDelegatedPrefixPublicDelegatedSubPrefix clone() { + return (PublicDelegatedPrefixPublicDelegatedSubPrefix) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixesScopedList.java new file mode 100644 index 00000000000..6d9760e57ba --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixesScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 PublicDelegatedPrefixesScopedList. + * + *

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 PublicDelegatedPrefixesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List publicDelegatedPrefixes; + + static { + // hack to force ProGuard to consider PublicDelegatedPrefix 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(PublicDelegatedPrefix.class); + } + + /** + * [Output Only] Informational warning which replaces the list of public delegated prefixes when + * the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getPublicDelegatedPrefixes() { + return publicDelegatedPrefixes; + } + + /** + * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. + * @param publicDelegatedPrefixes publicDelegatedPrefixes or {@code null} for none + */ + public PublicDelegatedPrefixesScopedList setPublicDelegatedPrefixes(java.util.List publicDelegatedPrefixes) { + this.publicDelegatedPrefixes = publicDelegatedPrefixes; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of public delegated prefixes when + * the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of public delegated prefixes when + * the list is empty. + * @param warning warning or {@code null} for none + */ + public PublicDelegatedPrefixesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public PublicDelegatedPrefixesScopedList set(String fieldName, Object value) { + return (PublicDelegatedPrefixesScopedList) super.set(fieldName, value); + } + + @Override + public PublicDelegatedPrefixesScopedList clone() { + return (PublicDelegatedPrefixesScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of public delegated prefixes when the + * list is empty. + */ + 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 PublicDelegatedPrefixesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityRequest.java new file mode 100644 index 00000000000..ae6c8cc7923 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityRequest.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; + +/** + * Query formability of a given set of reservation subblocks. + * + *

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 QueryFormabilityRequest extends com.google.api.client.json.GenericJson { + + /** + * Explicit list of fully qualified reservation subblock resource URLs. Both full and relative + * URIs are supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subblocks; + + /** + * Explicit list of fully qualified reservation subblock resource URLs. Both full and relative + * URIs are supported. + * @return value or {@code null} for none + */ + public java.util.List getSubblocks() { + return subblocks; + } + + /** + * Explicit list of fully qualified reservation subblock resource URLs. Both full and relative + * URIs are supported. + * @param subblocks subblocks or {@code null} for none + */ + public QueryFormabilityRequest setSubblocks(java.util.List subblocks) { + this.subblocks = subblocks; + return this; + } + + @Override + public QueryFormabilityRequest set(String fieldName, Object value) { + return (QueryFormabilityRequest) super.set(fieldName, value); + } + + @Override + public QueryFormabilityRequest clone() { + return (QueryFormabilityRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityResponse.java new file mode 100644 index 00000000000..bf11b9d0e89 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QueryFormabilityResponse.java @@ -0,0 +1,108 @@ +/* + * 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 AcceleratorInterconnects.QueryFormability. + * + *

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 QueryFormabilityResponse extends com.google.api.client.json.GenericJson { + + /** + * Flattened collection of hierarchical partitions and their formability across all requested + * subblocks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider PartitionFormability 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(PartitionFormability.class); + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Flattened collection of hierarchical partitions and their formability across all requested + * subblocks. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Flattened collection of hierarchical partitions and their formability across all requested + * subblocks. + * @param items items or {@code null} for none + */ + public QueryFormabilityResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public QueryFormabilityResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public QueryFormabilityResponse set(String fieldName, Object value) { + return (QueryFormabilityResponse) super.set(fieldName, value); + } + + @Override + public QueryFormabilityResponse clone() { + return (QueryFormabilityResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QuotaExceededInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QuotaExceededInfo.java new file mode 100644 index 00000000000..a1327812ee2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/QuotaExceededInfo.java @@ -0,0 +1,186 @@ +/* + * 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; + +/** + * Additional details for quota exceeded error for resource quota. + * + *

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 QuotaExceededInfo extends com.google.api.client.json.GenericJson { + + /** + * The map holding related quota dimensions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map dimensions; + + /** + * Future quota limit being rolled out. The limit's unit depends on the quota type or metric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double futureLimit; + + /** + * Current effective quota limit. The limit's unit depends on the quota type or metric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double limit; + + /** + * The name of the quota limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String limitName; + + /** + * The Compute Engine quota metric name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metricName; + + /** + * Rollout status of the future quota limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rolloutStatus; + + /** + * The map holding related quota dimensions. + * @return value or {@code null} for none + */ + public java.util.Map getDimensions() { + return dimensions; + } + + /** + * The map holding related quota dimensions. + * @param dimensions dimensions or {@code null} for none + */ + public QuotaExceededInfo setDimensions(java.util.Map dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Future quota limit being rolled out. The limit's unit depends on the quota type or metric. + * @return value or {@code null} for none + */ + public java.lang.Double getFutureLimit() { + return futureLimit; + } + + /** + * Future quota limit being rolled out. The limit's unit depends on the quota type or metric. + * @param futureLimit futureLimit or {@code null} for none + */ + public QuotaExceededInfo setFutureLimit(java.lang.Double futureLimit) { + this.futureLimit = futureLimit; + return this; + } + + /** + * Current effective quota limit. The limit's unit depends on the quota type or metric. + * @return value or {@code null} for none + */ + public java.lang.Double getLimit() { + return limit; + } + + /** + * Current effective quota limit. The limit's unit depends on the quota type or metric. + * @param limit limit or {@code null} for none + */ + public QuotaExceededInfo setLimit(java.lang.Double limit) { + this.limit = limit; + return this; + } + + /** + * The name of the quota limit. + * @return value or {@code null} for none + */ + public java.lang.String getLimitName() { + return limitName; + } + + /** + * The name of the quota limit. + * @param limitName limitName or {@code null} for none + */ + public QuotaExceededInfo setLimitName(java.lang.String limitName) { + this.limitName = limitName; + return this; + } + + /** + * The Compute Engine quota metric name. + * @return value or {@code null} for none + */ + public java.lang.String getMetricName() { + return metricName; + } + + /** + * The Compute Engine quota metric name. + * @param metricName metricName or {@code null} for none + */ + public QuotaExceededInfo setMetricName(java.lang.String metricName) { + this.metricName = metricName; + return this; + } + + /** + * Rollout status of the future quota limit. + * @return value or {@code null} for none + */ + public java.lang.String getRolloutStatus() { + return rolloutStatus; + } + + /** + * Rollout status of the future quota limit. + * @param rolloutStatus rolloutStatus or {@code null} for none + */ + public QuotaExceededInfo setRolloutStatus(java.lang.String rolloutStatus) { + this.rolloutStatus = rolloutStatus; + return this; + } + + @Override + public QuotaExceededInfo set(String fieldName, Object value) { + return (QuotaExceededInfo) super.set(fieldName, value); + } + + @Override + public QuotaExceededInfo clone() { + return (QuotaExceededInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reference.java new file mode 100644 index 00000000000..db743f6ac38 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reference.java @@ -0,0 +1,141 @@ +/* + * 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 reference to a 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 Reference extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A description of the reference type with no implied semantics. Possible values include: + * 1. MEMBER_OF + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String referenceType; + + /** + * URL of the resource which refers to the target. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String referrer; + + /** + * URL of the resource to which this reference points. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * @param kind kind or {@code null} for none + */ + public Reference setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A description of the reference type with no implied semantics. Possible values include: + * 1. MEMBER_OF + * @return value or {@code null} for none + */ + public java.lang.String getReferenceType() { + return referenceType; + } + + /** + * A description of the reference type with no implied semantics. Possible values include: + * 1. MEMBER_OF + * @param referenceType referenceType or {@code null} for none + */ + public Reference setReferenceType(java.lang.String referenceType) { + this.referenceType = referenceType; + return this; + } + + /** + * URL of the resource which refers to the target. + * @return value or {@code null} for none + */ + public java.lang.String getReferrer() { + return referrer; + } + + /** + * URL of the resource which refers to the target. + * @param referrer referrer or {@code null} for none + */ + public Reference setReferrer(java.lang.String referrer) { + this.referrer = referrer; + return this; + } + + /** + * URL of the resource to which this reference points. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * URL of the resource to which this reference points. + * @param target target or {@code null} for none + */ + public Reference setTarget(java.lang.String target) { + this.target = target; + return this; + } + + @Override + public Reference set(String fieldName, Object value) { + return (Reference) super.set(fieldName, value); + } + + @Override + public Reference clone() { + return (Reference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegexRewrite.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegexRewrite.java new file mode 100644 index 00000000000..5b977a03fad --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegexRewrite.java @@ -0,0 +1,111 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The spec for modifying the path using a regular expression. + * + *

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 RegexRewrite extends com.google.api.client.json.GenericJson { + + /** + * Required. The regular expression used to match against the URL path. It uses RE2 syntax with + * the following constraints: - Any single character operators - Groups are + * allowed to have only submatch operator inside - Groups are allowed only without any char + * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used + * in a single regex together with: - Empty string operators + * - Other repetitions - Ranges - Repetitions of ranges + * - Ranges are only allowed to have: - Character range - + * Digits range - Symbols listed in characters allowed for ranges + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathPattern; + + /** + * Required. Required when path pattern is specified. Used to rewrite matching parts of the path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathSubstitution; + + /** + * Required. The regular expression used to match against the URL path. It uses RE2 syntax with + * the following constraints: - Any single character operators - Groups are + * allowed to have only submatch operator inside - Groups are allowed only without any char + * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used + * in a single regex together with: - Empty string operators + * - Other repetitions - Ranges - Repetitions of ranges + * - Ranges are only allowed to have: - Character range - + * Digits range - Symbols listed in characters allowed for ranges + * @return value or {@code null} for none + */ + public java.lang.String getPathPattern() { + return pathPattern; + } + + /** + * Required. The regular expression used to match against the URL path. It uses RE2 syntax with + * the following constraints: - Any single character operators - Groups are + * allowed to have only submatch operator inside - Groups are allowed only without any char + * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used + * in a single regex together with: - Empty string operators + * - Other repetitions - Ranges - Repetitions of ranges + * - Ranges are only allowed to have: - Character range - + * Digits range - Symbols listed in characters allowed for ranges + * @param pathPattern pathPattern or {@code null} for none + */ + public RegexRewrite setPathPattern(java.lang.String pathPattern) { + this.pathPattern = pathPattern; + return this; + } + + /** + * Required. Required when path pattern is specified. Used to rewrite matching parts of the path. + * @return value or {@code null} for none + */ + public java.lang.String getPathSubstitution() { + return pathSubstitution; + } + + /** + * Required. Required when path pattern is specified. Used to rewrite matching parts of the path. + * @param pathSubstitution pathSubstitution or {@code null} for none + */ + public RegexRewrite setPathSubstitution(java.lang.String pathSubstitution) { + this.pathSubstitution = pathSubstitution; + return this; + } + + @Override + public RegexRewrite set(String fieldName, Object value) { + return (RegexRewrite) super.set(fieldName, value); + } + + @Override + public RegexRewrite clone() { + return (RegexRewrite) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Region.java new file mode 100644 index 00000000000..f03bf549031 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Region.java @@ -0,0 +1,496 @@ +/* + * 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 Region resource. + * + * A region is a geographical area where a resource is located. For more information, readRegions + * and Zones. + * + *

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 Region extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] The deprecation status associated with this region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * [Output Only] Textual description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [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] Type of the resource. Always compute#region for regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field + * is populated only if fetching of the `quotas` field fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaStatusWarning quotaStatusWarning; + + /** + * [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] Status of the region, either UP orDOWN. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean supportsPzs; + + /** + * [Output Only] A list of zones available in this region, in the form of resource URLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List zones; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Region setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] The deprecation status associated with this region. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * [Output Only] The deprecation status associated with this region. + * @param deprecated deprecated or {@code null} for none + */ + public Region setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + return this; + } + + /** + * [Output Only] Textual description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] Textual description of the resource. + * @param description description or {@code null} for none + */ + public Region setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public Region setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * @param kind kind or {@code null} for none + */ + public Region setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public Region setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field + * is populated only if fetching of the `quotas` field fails. + * @return value or {@code null} for none + */ + public QuotaStatusWarning getQuotaStatusWarning() { + return quotaStatusWarning; + } + + /** + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field + * is populated only if fetching of the `quotas` field fails. + * @param quotaStatusWarning quotaStatusWarning or {@code null} for none + */ + public Region setQuotaStatusWarning(QuotaStatusWarning quotaStatusWarning) { + this.quotaStatusWarning = quotaStatusWarning; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Region setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] Status of the region, either UP orDOWN. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] Status of the region, either UP orDOWN. + * @param status status or {@code null} for none + */ + public Region setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSupportsPzs() { + return supportsPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param supportsPzs supportsPzs or {@code null} for none + */ + public Region setSupportsPzs(java.lang.Boolean supportsPzs) { + this.supportsPzs = supportsPzs; + return this; + } + + /** + * [Output Only] A list of zones available in this region, in the form of resource URLs. + * @return value or {@code null} for none + */ + public java.util.List getZones() { + return zones; + } + + /** + * [Output Only] A list of zones available in this region, in the form of resource URLs. + * @param zones zones or {@code null} for none + */ + public Region setZones(java.util.List zones) { + this.zones = zones; + return this; + } + + @Override + public Region set(String fieldName, Object value) { + return (Region) super.set(fieldName, value); + } + + @Override + public Region clone() { + return (Region) super.clone(); + } + + /** + * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field is + * populated only if fetching of the `quotas` field fails. + */ + public static final class QuotaStatusWarning 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 QuotaStatusWarning 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 QuotaStatusWarning 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 QuotaStatusWarning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public QuotaStatusWarning set(String fieldName, Object value) { + return (QuotaStatusWarning) super.set(fieldName, value); + } + + @Override + public QuotaStatusWarning clone() { + return (QuotaStatusWarning) super.clone(); + } + + /** + * Model definition for RegionQuotaStatusWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionAddressesMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAddressesMoveRequest.java new file mode 100644 index 00000000000..39c38382baf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAddressesMoveRequest.java @@ -0,0 +1,108 @@ +/* + * 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 RegionAddressesMoveRequest. + * + *

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 RegionAddressesMoveRequest extends com.google.api.client.json.GenericJson { + + /** + * An optional destination address description if intended to be different from the source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The URL of the destination address to move to. This can be a full or partial URL. For example, + * the following are all valid URLs to a address: - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address - + * projects/project/regions/region/addresses/address + * + * Note that destination project must be different from the source project. + * So/regions/region/addresses/address is not valid partial url. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationAddress; + + /** + * An optional destination address description if intended to be different from the source. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional destination address description if intended to be different from the source. + * @param description description or {@code null} for none + */ + public RegionAddressesMoveRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The URL of the destination address to move to. This can be a full or partial URL. For example, + * the following are all valid URLs to a address: - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address - + * projects/project/regions/region/addresses/address + * + * Note that destination project must be different from the source project. + * So/regions/region/addresses/address is not valid partial url. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationAddress() { + return destinationAddress; + } + + /** + * The URL of the destination address to move to. This can be a full or partial URL. For example, + * the following are all valid URLs to a address: - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address - + * projects/project/regions/region/addresses/address + * + * Note that destination project must be different from the source project. + * So/regions/region/addresses/address is not valid partial url. + * @param destinationAddress destinationAddress or {@code null} for none + */ + public RegionAddressesMoveRequest setDestinationAddress(java.lang.String destinationAddress) { + this.destinationAddress = destinationAddress; + return this; + } + + @Override + public RegionAddressesMoveRequest set(String fieldName, Object value) { + return (RegionAddressesMoveRequest) super.set(fieldName, value); + } + + @Override + public RegionAddressesMoveRequest clone() { + return (RegionAddressesMoveRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java new file mode 100644 index 00000000000..86f5bf50ad8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of autoscalers. + * + *

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 RegionAutoscalerList extends com.google.api.client.json.GenericJson { + + /** + * [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 Autoscaler 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 Autoscaler 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(Autoscaler.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 RegionAutoscalerList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Autoscaler resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Autoscaler resources. + * @param items items or {@code null} for none + */ + public RegionAutoscalerList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public RegionAutoscalerList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionAutoscalerList 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 RegionAutoscalerList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 RegionAutoscalerList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionAutoscalerList set(String fieldName, Object value) { + return (RegionAutoscalerList) super.set(fieldName, value); + } + + @Override + public RegionAutoscalerList clone() { + return (RegionAutoscalerList) 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 RegionAutoscalerListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java new file mode 100644 index 00000000000..cad7f62e2b6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -0,0 +1,386 @@ +/* + * 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 RegionDiskTypeList. + * + *

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 RegionDiskTypeList extends com.google.api.client.json.GenericJson { + + /** + * [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 DiskType 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 DiskType 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(DiskType.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk + * types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 RegionDiskTypeList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of DiskType resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of DiskType resources. + * @param items items or {@code null} for none + */ + public RegionDiskTypeList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk + * types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk + * types. + * @param kind kind or {@code null} for none + */ + public RegionDiskTypeList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionDiskTypeList 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 RegionDiskTypeList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 RegionDiskTypeList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionDiskTypeList set(String fieldName, Object value) { + return (RegionDiskTypeList) super.set(fieldName, value); + } + + @Override + public RegionDiskTypeList clone() { + return (RegionDiskTypeList) 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 RegionDiskTypeListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java new file mode 100644 index 00000000000..f7c4db62a34 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java @@ -0,0 +1,84 @@ +/* + * 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 RegionDiskUpdateKmsKeyRequest. + * + *

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 RegionDiskUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be + * re-encrypted using the primary version of the disk's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + * + * Where project is the project ID or project number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKeyName; + + /** + * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be + * re-encrypted using the primary version of the disk's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + * + * Where project is the project ID or project number. + * @return value or {@code null} for none + */ + public java.lang.String getKmsKeyName() { + return kmsKeyName; + } + + /** + * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be + * re-encrypted using the primary version of the disk's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key + * + * Where project is the project ID or project number. + * @param kmsKeyName kmsKeyName or {@code null} for none + */ + public RegionDiskUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { + this.kmsKeyName = kmsKeyName; + return this; + } + + @Override + public RegionDiskUpdateKmsKeyRequest set(String fieldName, Object value) { + return (RegionDiskUpdateKmsKeyRequest) super.set(fieldName, value); + } + + @Override + public RegionDiskUpdateKmsKeyRequest clone() { + return (RegionDiskUpdateKmsKeyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksAddResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksAddResourcePoliciesRequest.java new file mode 100644 index 00000000000..2340ef6471b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksAddResourcePoliciesRequest.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; + +/** + * Model definition for RegionDisksAddResourcePoliciesRequest. + * + *

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 RegionDisksAddResourcePoliciesRequest extends com.google.api.client.json.GenericJson { + + /** + * Resource policies to be added to this disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Resource policies to be added to this disk. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies to be added to this disk. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public RegionDisksAddResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + @Override + public RegionDisksAddResourcePoliciesRequest set(String fieldName, Object value) { + return (RegionDisksAddResourcePoliciesRequest) super.set(fieldName, value); + } + + @Override + public RegionDisksAddResourcePoliciesRequest clone() { + return (RegionDisksAddResourcePoliciesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksRemoveResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksRemoveResourcePoliciesRequest.java new file mode 100644 index 00000000000..854963376e2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksRemoveResourcePoliciesRequest.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; + +/** + * Model definition for RegionDisksRemoveResourcePoliciesRequest. + * + *

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 RegionDisksRemoveResourcePoliciesRequest extends com.google.api.client.json.GenericJson { + + /** + * Resource policies to be removed from this disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Resource policies to be removed from this disk. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies to be removed from this disk. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public RegionDisksRemoveResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + @Override + public RegionDisksRemoveResourcePoliciesRequest set(String fieldName, Object value) { + return (RegionDisksRemoveResourcePoliciesRequest) super.set(fieldName, value); + } + + @Override + public RegionDisksRemoveResourcePoliciesRequest clone() { + return (RegionDisksRemoveResourcePoliciesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksResizeRequest.java new file mode 100644 index 00000000000..4bdf595031f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksResizeRequest.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; + +/** + * Model definition for RegionDisksResizeRequest. + * + *

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 RegionDisksResizeRequest extends com.google.api.client.json.GenericJson { + + /** + * The new size of the regional persistent disk, which is specified in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sizeGb; + + /** + * The new size of the regional persistent disk, which is specified in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getSizeGb() { + return sizeGb; + } + + /** + * The new size of the regional persistent disk, which is specified in GB. + * @param sizeGb sizeGb or {@code null} for none + */ + public RegionDisksResizeRequest setSizeGb(java.lang.Long sizeGb) { + this.sizeGb = sizeGb; + return this; + } + + @Override + public RegionDisksResizeRequest set(String fieldName, Object value) { + return (RegionDisksResizeRequest) super.set(fieldName, value); + } + + @Override + public RegionDisksResizeRequest clone() { + return (RegionDisksResizeRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksStartAsyncReplicationRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksStartAsyncReplicationRequest.java new file mode 100644 index 00000000000..4d3f854fa5a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionDisksStartAsyncReplicationRequest.java @@ -0,0 +1,84 @@ +/* + * 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 RegionDisksStartAsyncReplicationRequest. + * + *

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 RegionDisksStartAsyncReplicationRequest extends com.google.api.client.json.GenericJson { + + /** + * The secondary disk to start asynchronous replication to. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String asyncSecondaryDisk; + + /** + * The secondary disk to start asynchronous replication to. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getAsyncSecondaryDisk() { + return asyncSecondaryDisk; + } + + /** + * The secondary disk to start asynchronous replication to. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - + * projects/project/zones/zone/disks/disk - + * projects/project/regions/region/disks/disk - zones/zone/disks/disk + * - regions/region/disks/disk + * @param asyncSecondaryDisk asyncSecondaryDisk or {@code null} for none + */ + public RegionDisksStartAsyncReplicationRequest setAsyncSecondaryDisk(java.lang.String asyncSecondaryDisk) { + this.asyncSecondaryDisk = asyncSecondaryDisk; + return this; + } + + @Override + public RegionDisksStartAsyncReplicationRequest set(String fieldName, Object value) { + return (RegionDisksStartAsyncReplicationRequest) super.set(fieldName, value); + } + + @Override + public RegionDisksStartAsyncReplicationRequest clone() { + return (RegionDisksStartAsyncReplicationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java new file mode 100644 index 00000000000..0d5eb02fe4c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of InstanceGroup resources. + * + *

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 RegionInstanceGroupList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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 InstanceGroup 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 InstanceGroup 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(InstanceGroup.class); + } + + /** + * Output only. The resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public RegionInstanceGroupList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceGroup resources. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. The resource type. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type. + * @param kind kind or {@code null} for none + */ + public RegionInstanceGroupList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupList 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 RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public RegionInstanceGroupList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionInstanceGroupList set(String fieldName, Object value) { + return (RegionInstanceGroupList) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupList clone() { + return (RegionInstanceGroupList) super.clone(); + } + + /** + * Output only. [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 RegionInstanceGroupListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java new file mode 100644 index 00000000000..94fcaaa7918 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.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; + +/** + * RegionInstanceGroupManagers.deletePerInstanceConfigs + * + *

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 RegionInstanceGroupManagerDeleteInstanceConfigReq extends com.google.api.client.json.GenericJson { + + /** + * The list of instance names for which we want to delete per-instance configs on this managed + * instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List names; + + /** + * The list of instance names for which we want to delete per-instance configs on this managed + * instance group. + * @return value or {@code null} for none + */ + public java.util.List getNames() { + return names; + } + + /** + * The list of instance names for which we want to delete per-instance configs on this managed + * instance group. + * @param names names or {@code null} for none + */ + public RegionInstanceGroupManagerDeleteInstanceConfigReq setNames(java.util.List names) { + this.names = names; + return this; + } + + @Override + public RegionInstanceGroupManagerDeleteInstanceConfigReq set(String fieldName, Object value) { + return (RegionInstanceGroupManagerDeleteInstanceConfigReq) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagerDeleteInstanceConfigReq clone() { + return (RegionInstanceGroupManagerDeleteInstanceConfigReq) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java new file mode 100644 index 00000000000..a7a82ef924f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of managed instance groups. + * + *

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 RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { + + /** + * 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 InstanceGroupManager 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 InstanceGroupManager 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(InstanceGroupManager.class); + } + + /** + * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of + * managed instance groups that exist in th regional scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * 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. Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * 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 RegionInstanceGroupManagerList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceGroupManager resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceGroupManager resources. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupManagerList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of + * managed instance groups that exist in th regional scope. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of + * managed instance groups that exist in th regional scope. + * @param kind kind or {@code null} for none + */ + public RegionInstanceGroupManagerList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public RegionInstanceGroupManagerList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 RegionInstanceGroupManagerList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionInstanceGroupManagerList set(String fieldName, Object value) { + return (RegionInstanceGroupManagerList) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagerList clone() { + return (RegionInstanceGroupManagerList) 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 RegionInstanceGroupManagerListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java new file mode 100644 index 00000000000..2e8e08b3e1f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * RegionInstanceGroupManagers.patchPerInstanceConfigs + * + *

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 RegionInstanceGroupManagerPatchInstanceConfigReq extends com.google.api.client.json.GenericJson { + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List perInstanceConfigs; + + static { + // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); + } + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getPerInstanceConfigs() { + return perInstanceConfigs; + } + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @param perInstanceConfigs perInstanceConfigs or {@code null} for none + */ + public RegionInstanceGroupManagerPatchInstanceConfigReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { + this.perInstanceConfigs = perInstanceConfigs; + return this; + } + + @Override + public RegionInstanceGroupManagerPatchInstanceConfigReq set(String fieldName, Object value) { + return (RegionInstanceGroupManagerPatchInstanceConfigReq) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagerPatchInstanceConfigReq clone() { + return (RegionInstanceGroupManagerPatchInstanceConfigReq) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerResizeRequestsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerResizeRequestsListResponse.java new file mode 100644 index 00000000000..0d7ca26d455 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerResizeRequestsListResponse.java @@ -0,0 +1,431 @@ +/* + * 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 RegionInstanceGroupManagerResizeRequestsListResponse. + * + *

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 RegionInstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 Resize Request 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 InstanceGroupManagerResizeRequest 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(InstanceGroupManagerResizeRequest.class); + } + + /** + * Output only. Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList + * for a list of Resize Requests. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * 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. Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Resize Request resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Resize Request resources. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList + * for a list of Resize Requests. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList + * for a list of Resize Requests. + * @param kind kind or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionInstanceGroupManagerResizeRequestsListResponse set(String fieldName, Object value) { + return (RegionInstanceGroupManagerResizeRequestsListResponse) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagerResizeRequestsListResponse clone() { + return (RegionInstanceGroupManagerResizeRequestsListResponse) 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 RegionInstanceGroupManagerResizeRequestsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java new file mode 100644 index 00000000000..0d47c28b34a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * RegionInstanceGroupManagers.updatePerInstanceConfigs + * + *

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 RegionInstanceGroupManagerUpdateInstanceConfigReq extends com.google.api.client.json.GenericJson { + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List perInstanceConfigs; + + static { + // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); + } + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getPerInstanceConfigs() { + return perInstanceConfigs; + } + + /** + * The list of per-instance configurations to insert or patch on this managed instance group. + * @param perInstanceConfigs perInstanceConfigs or {@code null} for none + */ + public RegionInstanceGroupManagerUpdateInstanceConfigReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { + this.perInstanceConfigs = perInstanceConfigs; + return this; + } + + @Override + public RegionInstanceGroupManagerUpdateInstanceConfigReq set(String fieldName, Object value) { + return (RegionInstanceGroupManagerUpdateInstanceConfigReq) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagerUpdateInstanceConfigReq clone() { + return (RegionInstanceGroupManagerUpdateInstanceConfigReq) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAbandonInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAbandonInstancesRequest.java new file mode 100644 index 00000000000..4a4936b3f98 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAbandonInstancesRequest.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; + +/** + * Model definition for RegionInstanceGroupManagersAbandonInstancesRequest. + * + *

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 RegionInstanceGroupManagersAbandonInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersAbandonInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersAbandonInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersAbandonInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersAbandonInstancesRequest clone() { + return (RegionInstanceGroupManagersAbandonInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java new file mode 100644 index 00000000000..7c4334e18c8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java @@ -0,0 +1,180 @@ +/* + * 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; + +/** + * RegionInstanceGroupManagers.applyUpdatesToInstances + * + *

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 RegionInstanceGroupManagersApplyUpdatesRequest extends com.google.api.client.json.GenericJson { + + /** + * Flag to update all instances instead of specified list of "instances". If the flag is set to + * true then the instances may not be specified in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allInstances; + + /** + * The list of URLs of one or more instances for which you want to apply updates. Each URL can be + * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The minimal action that you want to perform on each instance during the update: - + * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the + * instance and start it again. - REFRESH: Do not stop the instance and limit + * disruption as much as possible. - NONE: Do not disrupt the instance at all. + * + * By default, the minimum action is NONE. If your update requires a more disruptive action than + * you set with this flag, the necessary action is performed to execute the update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minimalAction; + + /** + * The most disruptive action that you want to perform on each instance during the update: + * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start + * it again. - REFRESH: Do not stop the instance and limit disruption as much as + * possible. - NONE: Do not disrupt the instance at all. + * + * By default, the most disruptive allowed action is REPLACE. If your update requires a more + * disruptive action than you set with this flag, the update request will fail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mostDisruptiveAllowedAction; + + /** + * Flag to update all instances instead of specified list of "instances". If the flag is set to + * true then the instances may not be specified in the request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllInstances() { + return allInstances; + } + + /** + * Flag to update all instances instead of specified list of "instances". If the flag is set to + * true then the instances may not be specified in the request. + * @param allInstances allInstances or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolean allInstances) { + this.allInstances = allInstances; + return this; + } + + /** + * The list of URLs of one or more instances for which you want to apply updates. Each URL can be + * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The list of URLs of one or more instances for which you want to apply updates. Each URL can be + * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * The minimal action that you want to perform on each instance during the update: - + * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the + * instance and start it again. - REFRESH: Do not stop the instance and limit + * disruption as much as possible. - NONE: Do not disrupt the instance at all. + * + * By default, the minimum action is NONE. If your update requires a more disruptive action than + * you set with this flag, the necessary action is performed to execute the update. + * @return value or {@code null} for none + */ + public java.lang.String getMinimalAction() { + return minimalAction; + } + + /** + * The minimal action that you want to perform on each instance during the update: - + * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the + * instance and start it again. - REFRESH: Do not stop the instance and limit + * disruption as much as possible. - NONE: Do not disrupt the instance at all. + * + * By default, the minimum action is NONE. If your update requires a more disruptive action than + * you set with this flag, the necessary action is performed to execute the update. + * @param minimalAction minimalAction or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setMinimalAction(java.lang.String minimalAction) { + this.minimalAction = minimalAction; + return this; + } + + /** + * The most disruptive action that you want to perform on each instance during the update: + * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start + * it again. - REFRESH: Do not stop the instance and limit disruption as much as + * possible. - NONE: Do not disrupt the instance at all. + * + * By default, the most disruptive allowed action is REPLACE. If your update requires a more + * disruptive action than you set with this flag, the update request will fail. + * @return value or {@code null} for none + */ + public java.lang.String getMostDisruptiveAllowedAction() { + return mostDisruptiveAllowedAction; + } + + /** + * The most disruptive action that you want to perform on each instance during the update: + * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start + * it again. - REFRESH: Do not stop the instance and limit disruption as much as + * possible. - NONE: Do not disrupt the instance at all. + * + * By default, the most disruptive allowed action is REPLACE. If your update requires a more + * disruptive action than you set with this flag, the update request will fail. + * @param mostDisruptiveAllowedAction mostDisruptiveAllowedAction or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { + this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; + return this; + } + + @Override + public RegionInstanceGroupManagersApplyUpdatesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersApplyUpdatesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersApplyUpdatesRequest clone() { + return (RegionInstanceGroupManagersApplyUpdatesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersCreateInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersCreateInstancesRequest.java new file mode 100644 index 00000000000..dc85d7f3910 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersCreateInstancesRequest.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * RegionInstanceGroupManagers.createInstances + * + *

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 RegionInstanceGroupManagersCreateInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * [Required] List of specifications of per-instance configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + static { + // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); + } + + /** + * [Required] List of specifications of per-instance configs. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * [Required] List of specifications of per-instance configs. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersCreateInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersCreateInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersCreateInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersCreateInstancesRequest clone() { + return (RegionInstanceGroupManagersCreateInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersDeleteInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersDeleteInstancesRequest.java new file mode 100644 index 00000000000..9932a97eea3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersDeleteInstancesRequest.java @@ -0,0 +1,105 @@ +/* + * 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 RegionInstanceGroupManagersDeleteInstancesRequest. + * + *

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 RegionInstanceGroupManagersDeleteInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * Specifies whether the request should proceed despite the inclusion of instances that are not + * members of the group or that are already in the process of being deleted or abandoned. If this + * field is set to `false` and such an instance is specified in the request, the operation fails. + * The operation always fails if the request contains a malformed instance URL or a reference to + * an instance that exists in a zone or region other than the group's zone or region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean skipInstancesOnValidationError; + + /** + * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersDeleteInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * Specifies whether the request should proceed despite the inclusion of instances that are not + * members of the group or that are already in the process of being deleted or abandoned. If this + * field is set to `false` and such an instance is specified in the request, the operation fails. + * The operation always fails if the request contains a malformed instance URL or a reference to + * an instance that exists in a zone or region other than the group's zone or region. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSkipInstancesOnValidationError() { + return skipInstancesOnValidationError; + } + + /** + * Specifies whether the request should proceed despite the inclusion of instances that are not + * members of the group or that are already in the process of being deleted or abandoned. If this + * field is set to `false` and such an instance is specified in the request, the operation fails. + * The operation always fails if the request contains a malformed instance URL or a reference to + * an instance that exists in a zone or region other than the group's zone or region. + * @param skipInstancesOnValidationError skipInstancesOnValidationError or {@code null} for none + */ + public RegionInstanceGroupManagersDeleteInstancesRequest setSkipInstancesOnValidationError(java.lang.Boolean skipInstancesOnValidationError) { + this.skipInstancesOnValidationError = skipInstancesOnValidationError; + return this; + } + + @Override + public RegionInstanceGroupManagersDeleteInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersDeleteInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersDeleteInstancesRequest clone() { + return (RegionInstanceGroupManagersDeleteInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java new file mode 100644 index 00000000000..1743aba53b2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -0,0 +1,105 @@ +/* + * 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 RegionInstanceGroupManagersListErrorsResponse. + * + *

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 RegionInstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The list of errors of the managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider InstanceManagedByIgmError 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(InstanceManagedByIgmError.class); + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] The list of errors of the managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * [Output Only] The list of errors of the managed instance group. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupManagersListErrorsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public RegionInstanceGroupManagersListErrorsResponse set(String fieldName, Object value) { + return (RegionInstanceGroupManagersListErrorsResponse) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersListErrorsResponse clone() { + return (RegionInstanceGroupManagersListErrorsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstanceConfigsResp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstanceConfigsResp.java new file mode 100644 index 00000000000..8220b6e68bf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstanceConfigsResp.java @@ -0,0 +1,311 @@ +/* + * 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 RegionInstanceGroupManagersListInstanceConfigsResp. + * + *

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 RegionInstanceGroupManagersListInstanceConfigsResp extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The list of PerInstanceConfig. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [Output Only] The list of PerInstanceConfig. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. [Output Only] The list of PerInstanceConfig. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionInstanceGroupManagersListInstanceConfigsResp set(String fieldName, Object value) { + return (RegionInstanceGroupManagersListInstanceConfigsResp) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersListInstanceConfigsResp clone() { + return (RegionInstanceGroupManagersListInstanceConfigsResp) super.clone(); + } + + /** + * Output only. [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 RegionInstanceGroupManagersListInstanceConfigsRespWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java new file mode 100644 index 00000000000..be961b62fc1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -0,0 +1,105 @@ +/* + * 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 RegionInstanceGroupManagersListInstancesResponse. + * + *

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 RegionInstanceGroupManagersListInstancesResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of managed instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List managedInstances; + + static { + // hack to force ProGuard to consider ManagedInstance 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(ManagedInstance.class); + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of managed instances. + * @return value or {@code null} for none + */ + public java.util.List getManagedInstances() { + return managedInstances; + } + + /** + * A list of managed instances. + * @param managedInstances managedInstances or {@code null} for none + */ + public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupManagersListInstancesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public RegionInstanceGroupManagersListInstancesResponse set(String fieldName, Object value) { + return (RegionInstanceGroupManagersListInstancesResponse) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersListInstancesResponse clone() { + return (RegionInstanceGroupManagersListInstancesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersRecreateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersRecreateRequest.java new file mode 100644 index 00000000000..fa33034dab1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersRecreateRequest.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; + +/** + * Model definition for RegionInstanceGroupManagersRecreateRequest. + * + *

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 RegionInstanceGroupManagersRecreateRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersRecreateRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersRecreateRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersRecreateRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersRecreateRequest clone() { + return (RegionInstanceGroupManagersRecreateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResumeInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResumeInstancesRequest.java new file mode 100644 index 00000000000..499a1617ed6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResumeInstancesRequest.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; + +/** + * Model definition for RegionInstanceGroupManagersResumeInstancesRequest. + * + *

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 RegionInstanceGroupManagersResumeInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersResumeInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersResumeInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersResumeInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersResumeInstancesRequest clone() { + return (RegionInstanceGroupManagersResumeInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java new file mode 100644 index 00000000000..c5058515820 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java @@ -0,0 +1,126 @@ +/* + * 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 RegionInstanceGroupManagersSetTargetPoolsRequest. + * + *

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 RegionInstanceGroupManagersSetTargetPoolsRequest extends com.google.api.client.json.GenericJson { + + /** + * Fingerprint of the target pools information, which is a hash of the contents. This field is + * used for optimistic locking when you update the target pool entries. This field is optional. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The + * target pools automatically apply to all of the instances in the managed instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetPools; + + /** + * Fingerprint of the target pools information, which is a hash of the contents. This field is + * used for optimistic locking when you update the target pool entries. This field is optional. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of the target pools information, which is a hash of the contents. This field is + * used for optimistic locking when you update the target pool entries. This field is optional. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of the target pools information, which is a hash of the contents. This field is + * used for optimistic locking when you update the target pool entries. This field is optional. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public RegionInstanceGroupManagersSetTargetPoolsRequest setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of the target pools information, which is a hash of the contents. This field is + * used for optimistic locking when you update the target pool entries. This field is optional. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public RegionInstanceGroupManagersSetTargetPoolsRequest encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The + * target pools automatically apply to all of the instances in the managed instance group. + * @return value or {@code null} for none + */ + public java.util.List getTargetPools() { + return targetPools; + } + + /** + * The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The + * target pools automatically apply to all of the instances in the managed instance group. + * @param targetPools targetPools or {@code null} for none + */ + public RegionInstanceGroupManagersSetTargetPoolsRequest setTargetPools(java.util.List targetPools) { + this.targetPools = targetPools; + return this; + } + + @Override + public RegionInstanceGroupManagersSetTargetPoolsRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersSetTargetPoolsRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersSetTargetPoolsRequest clone() { + return (RegionInstanceGroupManagersSetTargetPoolsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTemplateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTemplateRequest.java new file mode 100644 index 00000000000..1438841e998 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSetTemplateRequest.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; + +/** + * Model definition for RegionInstanceGroupManagersSetTemplateRequest. + * + *

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 RegionInstanceGroupManagersSetTemplateRequest extends com.google.api.client.json.GenericJson { + + /** + * URL of the InstanceTemplate resource from which all new instances will be created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceTemplate; + + /** + * URL of the InstanceTemplate resource from which all new instances will be created. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceTemplate() { + return instanceTemplate; + } + + /** + * URL of the InstanceTemplate resource from which all new instances will be created. + * @param instanceTemplate instanceTemplate or {@code null} for none + */ + public RegionInstanceGroupManagersSetTemplateRequest setInstanceTemplate(java.lang.String instanceTemplate) { + this.instanceTemplate = instanceTemplate; + return this; + } + + @Override + public RegionInstanceGroupManagersSetTemplateRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersSetTemplateRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersSetTemplateRequest clone() { + return (RegionInstanceGroupManagersSetTemplateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStartInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStartInstancesRequest.java new file mode 100644 index 00000000000..148e9cbf9da --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStartInstancesRequest.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; + +/** + * Model definition for RegionInstanceGroupManagersStartInstancesRequest. + * + *

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 RegionInstanceGroupManagersStartInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersStartInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersStartInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersStartInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersStartInstancesRequest clone() { + return (RegionInstanceGroupManagersStartInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStopInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStopInstancesRequest.java new file mode 100644 index 00000000000..9cfb9ec0a21 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersStopInstancesRequest.java @@ -0,0 +1,96 @@ +/* + * 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 RegionInstanceGroupManagersStopInstancesRequest. + * + *

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 RegionInstanceGroupManagersStopInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, + * skipping initialization on them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceStop; + + /** + * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, + * skipping initialization on them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForceStop() { + return forceStop; + } + + /** + * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, + * skipping initialization on them. + * @param forceStop forceStop or {@code null} for none + */ + public RegionInstanceGroupManagersStopInstancesRequest setForceStop(java.lang.Boolean forceStop) { + this.forceStop = forceStop; + return this; + } + + /** + * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersStopInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersStopInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersStopInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersStopInstancesRequest clone() { + return (RegionInstanceGroupManagersStopInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSuspendInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSuspendInstancesRequest.java new file mode 100644 index 00000000000..113be6f25c3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersSuspendInstancesRequest.java @@ -0,0 +1,96 @@ +/* + * 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 RegionInstanceGroupManagersSuspendInstancesRequest. + * + *

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 RegionInstanceGroupManagersSuspendInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, + * skipping initialization on them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceSuspend; + + /** + * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, + * skipping initialization on them. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForceSuspend() { + return forceSuspend; + } + + /** + * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, + * skipping initialization on them. + * @param forceSuspend forceSuspend or {@code null} for none + */ + public RegionInstanceGroupManagersSuspendInstancesRequest setForceSuspend(java.lang.Boolean forceSuspend) { + this.forceSuspend = forceSuspend; + return this; + } + + /** + * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as + * zones/[ZONE]/instances/[INSTANCE_NAME]. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersSuspendInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersSuspendInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersSuspendInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersSuspendInstancesRequest clone() { + return (RegionInstanceGroupManagersSuspendInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java new file mode 100644 index 00000000000..de3eff889bc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -0,0 +1,383 @@ +/* + * 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 RegionInstanceGroupsListInstances. + * + *

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 RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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 InstanceWithNamedPorts 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 InstanceWithNamedPorts 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(InstanceWithNamedPorts.class); + } + + /** + * Output only. The resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public RegionInstanceGroupsListInstances setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of InstanceWithNamedPorts resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of InstanceWithNamedPorts resources. + * @param items items or {@code null} for none + */ + public RegionInstanceGroupsListInstances setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. The resource type. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The resource type. + * @param kind kind or {@code null} for none + */ + public RegionInstanceGroupsListInstances setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionInstanceGroupsListInstances 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 RegionInstanceGroupsListInstances setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public RegionInstanceGroupsListInstances setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionInstanceGroupsListInstances set(String fieldName, Object value) { + return (RegionInstanceGroupsListInstances) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupsListInstances clone() { + return (RegionInstanceGroupsListInstances) super.clone(); + } + + /** + * Output only. [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 RegionInstanceGroupsListInstancesWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstancesRequest.java new file mode 100644 index 00000000000..02e5b591b03 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstancesRequest.java @@ -0,0 +1,99 @@ +/* + * 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 RegionInstanceGroupsListInstancesRequest. + * + *

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 RegionInstanceGroupsListInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, + * it lists all instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceState; + + /** + * Name of port user is interested in. It is optional. If it is set, only information about this + * ports will be returned. If it is not set, all the named ports will be returned. Always lists + * all instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, + * it lists all instances. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceState() { + return instanceState; + } + + /** + * Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, + * it lists all instances. + * @param instanceState instanceState or {@code null} for none + */ + public RegionInstanceGroupsListInstancesRequest setInstanceState(java.lang.String instanceState) { + this.instanceState = instanceState; + return this; + } + + /** + * Name of port user is interested in. It is optional. If it is set, only information about this + * ports will be returned. If it is not set, all the named ports will be returned. Always lists + * all instances. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Name of port user is interested in. It is optional. If it is set, only information about this + * ports will be returned. If it is not set, all the named ports will be returned. Always lists + * all instances. + * @param portName portName or {@code null} for none + */ + public RegionInstanceGroupsListInstancesRequest setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + @Override + public RegionInstanceGroupsListInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupsListInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupsListInstancesRequest clone() { + return (RegionInstanceGroupsListInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsSetNamedPortsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsSetNamedPortsRequest.java new file mode 100644 index 00000000000..cbb2af3b2a3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsSetNamedPortsRequest.java @@ -0,0 +1,144 @@ +/* + * 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 RegionInstanceGroupsSetNamedPortsRequest. + * + *

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 RegionInstanceGroupsSetNamedPortsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * The list of named ports to set for this instance group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List namedPorts; + + static { + // hack to force ProGuard to consider NamedPort 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(NamedPort.class); + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public RegionInstanceGroupsSetNamedPortsRequest setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * The fingerprint of the named ports information for this instance group. Use this optional + * property to prevent conflicts when multiple users change the named ports settings concurrently. + * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your + * request to ensure that you do not overwrite changes that were applied from another concurrent + * request. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public RegionInstanceGroupsSetNamedPortsRequest encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * The list of named ports to set for this instance group. + * @return value or {@code null} for none + */ + public java.util.List getNamedPorts() { + return namedPorts; + } + + /** + * The list of named ports to set for this instance group. + * @param namedPorts namedPorts or {@code null} for none + */ + public RegionInstanceGroupsSetNamedPortsRequest setNamedPorts(java.util.List namedPorts) { + this.namedPorts = namedPorts; + return this; + } + + @Override + public RegionInstanceGroupsSetNamedPortsRequest set(String fieldName, Object value) { + return (RegionInstanceGroupsSetNamedPortsRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupsSetNamedPortsRequest clone() { + return (RegionInstanceGroupsSetNamedPortsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionList.java new file mode 100644 index 00000000000..4d21ab859df --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of region resources. + * + *

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 RegionList extends com.google.api.client.json.GenericJson { + + /** + * [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 Region 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 Region 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(Region.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 RegionList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Region resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Region resources. + * @param items items or {@code null} for none + */ + public RegionList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * @param kind kind or {@code null} for none + */ + public RegionList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RegionList 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 RegionList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 RegionList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RegionList set(String fieldName, Object value) { + return (RegionList) super.set(fieldName, value); + } + + @Override + public RegionList clone() { + return (RegionList) 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 RegionListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java new file mode 100644 index 00000000000..6dea65eb0ba --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java @@ -0,0 +1,72 @@ +/* + * 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 RegionNetworkEndpointGroupsAttachEndpointsRequest. + * + *

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 RegionNetworkEndpointGroupsAttachEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of network endpoints to be attached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpoints; + + static { + // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); + } + + /** + * The list of network endpoints to be attached. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpoints() { + return networkEndpoints; + } + + /** + * The list of network endpoints to be attached. + * @param networkEndpoints networkEndpoints or {@code null} for none + */ + public RegionNetworkEndpointGroupsAttachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { + this.networkEndpoints = networkEndpoints; + return this; + } + + @Override + public RegionNetworkEndpointGroupsAttachEndpointsRequest set(String fieldName, Object value) { + return (RegionNetworkEndpointGroupsAttachEndpointsRequest) super.set(fieldName, value); + } + + @Override + public RegionNetworkEndpointGroupsAttachEndpointsRequest clone() { + return (RegionNetworkEndpointGroupsAttachEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java new file mode 100644 index 00000000000..ce2a1b7e812 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java @@ -0,0 +1,72 @@ +/* + * 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 RegionNetworkEndpointGroupsDetachEndpointsRequest. + * + *

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 RegionNetworkEndpointGroupsDetachEndpointsRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of network endpoints to be detached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkEndpoints; + + static { + // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); + } + + /** + * The list of network endpoints to be detached. + * @return value or {@code null} for none + */ + public java.util.List getNetworkEndpoints() { + return networkEndpoints; + } + + /** + * The list of network endpoints to be detached. + * @param networkEndpoints networkEndpoints or {@code null} for none + */ + public RegionNetworkEndpointGroupsDetachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { + this.networkEndpoints = networkEndpoints; + return this; + } + + @Override + public RegionNetworkEndpointGroupsDetachEndpointsRequest set(String fieldName, Object value) { + return (RegionNetworkEndpointGroupsDetachEndpointsRequest) super.set(fieldName, value); + } + + @Override + public RegionNetworkEndpointGroupsDetachEndpointsRequest clone() { + return (RegionNetworkEndpointGroupsDetachEndpointsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java new file mode 100644 index 00000000000..f55221c5cee --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -0,0 +1,102 @@ +/* + * 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 RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse. + * + *

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 RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional + * Network Firewall Policies in the specified region, Global Network Firewall Policies and + * Hierachial Firewall Policies which are associated with the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewallPolicys; + + /** + * Effective firewalls on the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List firewalls; + + static { + // hack to force ProGuard to consider Firewall 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(Firewall.class); + } + + /** + * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional + * Network Firewall Policies in the specified region, Global Network Firewall Policies and + * Hierachial Firewall Policies which are associated with the network. + * @return value or {@code null} for none + */ + public java.util.List getFirewallPolicys() { + return firewallPolicys; + } + + /** + * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional + * Network Firewall Policies in the specified region, Global Network Firewall Policies and + * Hierachial Firewall Policies which are associated with the network. + * @param firewallPolicys firewallPolicys or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse setFirewallPolicys(java.util.List firewallPolicys) { + this.firewallPolicys = firewallPolicys; + return this; + } + + /** + * Effective firewalls on the network. + * @return value or {@code null} for none + */ + public java.util.List getFirewalls() { + return firewalls; + } + + /** + * Effective firewalls on the network. + * @param firewalls firewalls or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse setFirewalls(java.util.List firewalls) { + this.firewalls = firewalls; + return this; + } + + @Override + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse set(String fieldName, Object value) { + return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse) super.set(fieldName, value); + } + + @Override + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse clone() { + return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java new file mode 100644 index 00000000000..8ee047a1277 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -0,0 +1,205 @@ +/* + * 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 + * RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy. + * + *

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 RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The display name of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. [Output Only] The name of the firewall policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output only] The packet mirroring rules that apply to the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List packetMirroringRules; + + static { + // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * Output only. [Output only] The rules that apply to the network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + static { + // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); + } + + /** + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output Only] The display name of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. [Output Only] The display name of the firewall policy. + * @param displayName displayName or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. [Output Only] The name of the firewall policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the firewall policy. + * @param name name or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output only] The packet mirroring rules that apply to the network. + * @return value or {@code null} for none + */ + public java.util.List getPacketMirroringRules() { + return packetMirroringRules; + } + + /** + * Output only. [Output only] The packet mirroring rules that apply to the network. + * @param packetMirroringRules packetMirroringRules or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { + this.packetMirroringRules = packetMirroringRules; + return this; + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Output only. [Output only] Priority of firewall policy association. Not applicable for + * type=HIERARCHY. + * @param priority priority or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * Output only. [Output only] The rules that apply to the network. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * Output only. [Output only] The rules that apply to the network. + * @param rules rules or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. + * @param type type or {@code null} for none + */ + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy set(String fieldName, Object value) { + return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.set(fieldName, value); + } + + @Override + public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy clone() { + return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetLabelsRequest.java new file mode 100644 index 00000000000..102a13054ad --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetLabelsRequest.java @@ -0,0 +1,133 @@ +/* + * 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 RegionSetLabelsRequest. + * + *

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 RegionSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * The labels to set for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public RegionSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public RegionSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * The labels to set for this resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The labels to set for this resource. + * @param labels labels or {@code null} for none + */ + public RegionSetLabelsRequest setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + @Override + public RegionSetLabelsRequest set(String fieldName, Object value) { + return (RegionSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public RegionSetLabelsRequest clone() { + return (RegionSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetPolicyRequest.java new file mode 100644 index 00000000000..c563677647f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSetPolicyRequest.java @@ -0,0 +1,162 @@ +/* + * 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 RegionSetPolicyRequest. + * + *

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 RegionSetPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding 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(Binding.class); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @param bindings bindings or {@code null} for none + */ + public RegionSetPolicyRequest setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public RegionSetPolicyRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public RegionSetPolicyRequest encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public RegionSetPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + @Override + public RegionSetPolicyRequest set(String fieldName, Object value) { + return (RegionSetPolicyRequest) super.set(fieldName, value); + } + + @Override + public RegionSetPolicyRequest clone() { + return (RegionSetPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java new file mode 100644 index 00000000000..2f071521139 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java @@ -0,0 +1,78 @@ +/* + * 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 RegionSnapshotUpdateKmsKeyRequest. + * + *

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 RegionSnapshotUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot + * will be re-encrypted using the primary version of the snapshot's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/region/keyRings/region/cryptoKeys/key + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKeyName; + + /** + * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot + * will be re-encrypted using the primary version of the snapshot's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/region/keyRings/region/cryptoKeys/key + * @return value or {@code null} for none + */ + public java.lang.String getKmsKeyName() { + return kmsKeyName; + } + + /** + * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot + * will be re-encrypted using the primary version of the snapshot's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/region/keyRings/region/cryptoKeys/key + * @param kmsKeyName kmsKeyName or {@code null} for none + */ + public RegionSnapshotUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { + this.kmsKeyName = kmsKeyName; + return this; + } + + @Override + public RegionSnapshotUpdateKmsKeyRequest set(String fieldName, Object value) { + return (RegionSnapshotUpdateKmsKeyRequest) super.set(fieldName, value); + } + + @Override + public RegionSnapshotUpdateKmsKeyRequest clone() { + return (RegionSnapshotUpdateKmsKeyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java new file mode 100644 index 00000000000..086c3964520 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.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; + +/** + * Model definition for RegionTargetHttpsProxiesSetSslCertificatesRequest. + * + *

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 RegionTargetHttpsProxiesSetSslCertificatesRequest extends com.google.api.client.json.GenericJson { + + /** + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslCertificates; + + /** + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. + * @return value or {@code null} for none + */ + public java.util.List getSslCertificates() { + return sslCertificates; + } + + /** + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. + * @param sslCertificates sslCertificates or {@code null} for none + */ + public RegionTargetHttpsProxiesSetSslCertificatesRequest setSslCertificates(java.util.List sslCertificates) { + this.sslCertificates = sslCertificates; + return this; + } + + @Override + public RegionTargetHttpsProxiesSetSslCertificatesRequest set(String fieldName, Object value) { + return (RegionTargetHttpsProxiesSetSslCertificatesRequest) super.set(fieldName, value); + } + + @Override + public RegionTargetHttpsProxiesSetSslCertificatesRequest clone() { + return (RegionTargetHttpsProxiesSetSslCertificatesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionUrlMapsValidateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionUrlMapsValidateRequest.java new file mode 100644 index 00000000000..0dadbe22a63 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RegionUrlMapsValidateRequest.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; + +/** + * Model definition for RegionUrlMapsValidateRequest. + * + *

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 RegionUrlMapsValidateRequest extends com.google.api.client.json.GenericJson { + + /** + * Content of the UrlMap to be validated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlMap resource; + + /** + * Content of the UrlMap to be validated. + * @return value or {@code null} for none + */ + public UrlMap getResource() { + return resource; + } + + /** + * Content of the UrlMap to be validated. + * @param resource resource or {@code null} for none + */ + public RegionUrlMapsValidateRequest setResource(UrlMap resource) { + this.resource = resource; + return this; + } + + @Override + public RegionUrlMapsValidateRequest set(String fieldName, Object value) { + return (RegionUrlMapsValidateRequest) super.set(fieldName, value); + } + + @Override + public RegionUrlMapsValidateRequest clone() { + return (RegionUrlMapsValidateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java new file mode 100644 index 00000000000..f426109cf29 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java @@ -0,0 +1,261 @@ +/* + * 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 ReliabilityRisk 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 ReliabilityRisk extends com.google.api.client.json.GenericJson { + + /** + * 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; + + /** + * An optional textual description of the resource; provided when the resource is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] Details of the reliability risk resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RiskDetails details; + + /** + * [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] Type of resource. Always compute#reliabilityRisk for reliability + * risks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The recommendation to mitigate the risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RiskRecommendation recommendation; + + /** + * 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * 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 ReliabilityRisk setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional textual description of the resource; provided when the resource is created. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional textual description of the resource; provided when the resource is created. + * @param description description or {@code null} for none + */ + public ReliabilityRisk setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] Details of the reliability risk resource + * @return value or {@code null} for none + */ + public RiskDetails getDetails() { + return details; + } + + /** + * [Output Only] Details of the reliability risk resource + * @param details details or {@code null} for none + */ + public ReliabilityRisk setDetails(RiskDetails details) { + this.details = details; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public ReliabilityRisk setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability + * risks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability + * risks. + * @param kind kind or {@code null} for none + */ + public ReliabilityRisk setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + * @param name name or {@code null} for none + */ + public ReliabilityRisk setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The recommendation to mitigate the risk. + * @return value or {@code null} for none + */ + public RiskRecommendation getRecommendation() { + return recommendation; + } + + /** + * The recommendation to mitigate the risk. + * @param recommendation recommendation or {@code null} for none + */ + public ReliabilityRisk setRecommendation(RiskRecommendation recommendation) { + this.recommendation = recommendation; + 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 ReliabilityRisk setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ReliabilityRisk setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public ReliabilityRisk set(String fieldName, Object value) { + return (ReliabilityRisk) super.set(fieldName, value); + } + + @Override + public ReliabilityRisk clone() { + return (ReliabilityRisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java new file mode 100644 index 00000000000..2271a96765c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java @@ -0,0 +1,410 @@ +/* + * 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 the List method of ReliabilityRisksService. + * + *

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 ReliabilityRisksListResponse extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] An 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 ReliabilityRisk 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 ReliabilityRisk 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(ReliabilityRisk.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * [Output Only] An ETag of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * [Output Only] An ETag of the resource. + * @param etag etag or {@code null} for none + */ + public ReliabilityRisksListResponse 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 ReliabilityRisksListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ReliabilityRisk resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of ReliabilityRisk resources. + * @param items items or {@code null} for none + */ + public ReliabilityRisksListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReliabilityRisksListResponse 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 ReliabilityRisksListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public ReliabilityRisksListResponse 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 ReliabilityRisksListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReliabilityRisksListResponse set(String fieldName, Object value) { + return (ReliabilityRisksListResponse) super.set(fieldName, value); + } + + @Override + public ReliabilityRisksListResponse clone() { + return (ReliabilityRisksListResponse) 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 ReliabilityRisksListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RequestMirrorPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RequestMirrorPolicy.java new file mode 100644 index 00000000000..408037d9e23 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RequestMirrorPolicy.java @@ -0,0 +1,108 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A policy that specifies how requests intended for the route's backends are shadowed to a separate + * mirrored backend service. The load balancer doesn't wait for responses from the shadow service. + * Before sending traffic to the shadow service, the host or authority header is suffixed with- + * shadow. + * + *

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 RequestMirrorPolicy extends com.google.api.client.json.GenericJson { + + /** + * The full or partial URL to the BackendService resource being mirrored to. + * + * The backend service configured for a mirroring policy must reference backends that are of the + * same type as the original backend service matched in the URL map. + * + * Serverless NEG backends are not currently supported as a mirrored backend service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** + * The percentage of requests to be mirrored to `backend_service`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double mirrorPercent; + + /** + * The full or partial URL to the BackendService resource being mirrored to. + * + * The backend service configured for a mirroring policy must reference backends that are of the + * same type as the original backend service matched in the URL map. + * + * Serverless NEG backends are not currently supported as a mirrored backend service. + * @return value or {@code null} for none + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * The full or partial URL to the BackendService resource being mirrored to. + * + * The backend service configured for a mirroring policy must reference backends that are of the + * same type as the original backend service matched in the URL map. + * + * Serverless NEG backends are not currently supported as a mirrored backend service. + * @param backendService backendService or {@code null} for none + */ + public RequestMirrorPolicy setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + + /** + * The percentage of requests to be mirrored to `backend_service`. + * @return value or {@code null} for none + */ + public java.lang.Double getMirrorPercent() { + return mirrorPercent; + } + + /** + * The percentage of requests to be mirrored to `backend_service`. + * @param mirrorPercent mirrorPercent or {@code null} for none + */ + public RequestMirrorPolicy setMirrorPercent(java.lang.Double mirrorPercent) { + this.mirrorPercent = mirrorPercent; + return this; + } + + @Override + public RequestMirrorPolicy set(String fieldName, Object value) { + return (RequestMirrorPolicy) super.set(fieldName, value); + } + + @Override + public RequestMirrorPolicy clone() { + return (RequestMirrorPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reservation.java new file mode 100644 index 00000000000..484ff750d1d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -0,0 +1,815 @@ +/* + * 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 reservation resource. A reservation ensures that capacity is held in a specific + * zone even if the reserved VMs are not running. For more information, read Reserving zonal + * resources. + * + *

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 Reservation extends com.google.api.client.json.GenericJson { + + /** + * Advanced control for cluster management, applicable only to DENSE deployment type reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationAdvancedDeploymentControl advancedDeploymentControl; + + /** + * Reservation for aggregated resources, providing shape flexibility. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationAggregateReservation aggregateReservation; + + /** + * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for + * reservations that are tied to a commitment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String commitment; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String confidentialComputeType; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Duration time relative to reservation creation when Compute Engine will automatically delete + * this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration deleteAfterDuration; + + /** + * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp + * is represented inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deleteAtTime; + + /** + * Specifies the deployment strategy for this reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentType; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Indicates the early access maintenance for the reservation. If this field is absent or set to + * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard + * notice applies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String earlyAccessMaintenance; + + /** + * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix + * hardware errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEmergentMaintenance; + + /** + * 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] Type of the resource. Alwayscompute#reservations for reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for + * reservations that are tied to multiple commitments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List linkedCommitments; + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationParams params; + + /** + * Protection tier for the workload which specifies the workload expectations in the event of + * infrastructure failures at data center (e.g. power and/or cooling failures). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String protectionTier; + + /** + * Specify the reservation sharing policy. If unspecified, the reservation will not be shared with + * Google Cloud managed services. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationReservationSharingPolicy reservationSharingPolicy; + + /** + * Output only. [Output Only] Contains standard resource metadata for an Allocation resource. It + * is populated for each instance of the Allocation resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceMetadata resourceMetadata; + + /** + * Resource policies to be added to this reservation. The key is defined by user, and the value is + * resource policy url. This is to define placement policy with reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourcePolicies; + + /** + * Output only. [Output Only] Status information for Reservation resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationResourceStatus resourceStatus; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * The type of maintenance for the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedulingType; + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Specify share-settings to create a shared reservation. This property is optional. For more + * information about the syntax and options for this field and its subfields, see the guide for + * creating a shared reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShareSettings shareSettings; + + /** + * Reservation for instances with specific machine shapes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AllocationSpecificSKUReservation specificReservation; + + /** + * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. + * If the field is set, then only VMs that target the reservation by name can consume from this + * reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean specificReservationRequired; + + /** + * Output only. [Output Only] The status of the reservation. - CREATING: Reservation + * resources are being allocated. - READY: Reservation resources have been allocated, + * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. + * - UPDATING: Reservation update is in progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Zone in which the reservation resides. A zone must be provided if the reservation is created + * within a commitment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Advanced control for cluster management, applicable only to DENSE deployment type reservations. + * @return value or {@code null} for none + */ + public ReservationAdvancedDeploymentControl getAdvancedDeploymentControl() { + return advancedDeploymentControl; + } + + /** + * Advanced control for cluster management, applicable only to DENSE deployment type reservations. + * @param advancedDeploymentControl advancedDeploymentControl or {@code null} for none + */ + public Reservation setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl advancedDeploymentControl) { + this.advancedDeploymentControl = advancedDeploymentControl; + return this; + } + + /** + * Reservation for aggregated resources, providing shape flexibility. + * @return value or {@code null} for none + */ + public AllocationAggregateReservation getAggregateReservation() { + return aggregateReservation; + } + + /** + * Reservation for aggregated resources, providing shape flexibility. + * @param aggregateReservation aggregateReservation or {@code null} for none + */ + public Reservation setAggregateReservation(AllocationAggregateReservation aggregateReservation) { + this.aggregateReservation = aggregateReservation; + return this; + } + + /** + * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for + * reservations that are tied to a commitment. + * @return value or {@code null} for none + */ + public java.lang.String getCommitment() { + return commitment; + } + + /** + * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for + * reservations that are tied to a commitment. + * @param commitment commitment or {@code null} for none + */ + public Reservation setCommitment(java.lang.String commitment) { + this.commitment = commitment; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getConfidentialComputeType() { + return confidentialComputeType; + } + + /** + * @param confidentialComputeType confidentialComputeType or {@code null} for none + */ + public Reservation setConfidentialComputeType(java.lang.String confidentialComputeType) { + this.confidentialComputeType = confidentialComputeType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Duration time relative to reservation creation when Compute Engine will automatically delete + * this resource. + * @return value or {@code null} for none + */ + public Duration getDeleteAfterDuration() { + return deleteAfterDuration; + } + + /** + * Duration time relative to reservation creation when Compute Engine will automatically delete + * this resource. + * @param deleteAfterDuration deleteAfterDuration or {@code null} for none + */ + public Reservation setDeleteAfterDuration(Duration deleteAfterDuration) { + this.deleteAfterDuration = deleteAfterDuration; + return this; + } + + /** + * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp + * is represented inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getDeleteAtTime() { + return deleteAtTime; + } + + /** + * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp + * is represented inRFC3339 text format. + * @param deleteAtTime deleteAtTime or {@code null} for none + */ + public Reservation setDeleteAtTime(java.lang.String deleteAtTime) { + this.deleteAtTime = deleteAtTime; + return this; + } + + /** + * Specifies the deployment strategy for this reservation. + * @return value or {@code null} for none + */ + public java.lang.String getDeploymentType() { + return deploymentType; + } + + /** + * Specifies the deployment strategy for this reservation. + * @param deploymentType deploymentType or {@code null} for none + */ + public Reservation setDeploymentType(java.lang.String deploymentType) { + this.deploymentType = deploymentType; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Reservation setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Indicates the early access maintenance for the reservation. If this field is absent or set to + * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard + * notice applies. + * @return value or {@code null} for none + */ + public java.lang.String getEarlyAccessMaintenance() { + return earlyAccessMaintenance; + } + + /** + * Indicates the early access maintenance for the reservation. If this field is absent or set to + * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard + * notice applies. + * @param earlyAccessMaintenance earlyAccessMaintenance or {@code null} for none + */ + public Reservation setEarlyAccessMaintenance(java.lang.String earlyAccessMaintenance) { + this.earlyAccessMaintenance = earlyAccessMaintenance; + return this; + } + + /** + * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix + * hardware errors. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEmergentMaintenance() { + return enableEmergentMaintenance; + } + + /** + * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix + * hardware errors. + * @param enableEmergentMaintenance enableEmergentMaintenance or {@code null} for none + */ + public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergentMaintenance) { + this.enableEmergentMaintenance = enableEmergentMaintenance; + 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 Reservation setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * @param kind kind or {@code null} for none + */ + public Reservation setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for + * reservations that are tied to multiple commitments. + * @return value or {@code null} for none + */ + public java.util.List getLinkedCommitments() { + return linkedCommitments; + } + + /** + * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for + * reservations that are tied to multiple commitments. + * @param linkedCommitments linkedCommitments or {@code null} for none + */ + public Reservation setLinkedCommitments(java.util.List linkedCommitments) { + this.linkedCommitments = linkedCommitments; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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 Reservation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public ReservationParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public Reservation setParams(ReservationParams params) { + this.params = params; + return this; + } + + /** + * Protection tier for the workload which specifies the workload expectations in the event of + * infrastructure failures at data center (e.g. power and/or cooling failures). + * @return value or {@code null} for none + */ + public java.lang.String getProtectionTier() { + return protectionTier; + } + + /** + * Protection tier for the workload which specifies the workload expectations in the event of + * infrastructure failures at data center (e.g. power and/or cooling failures). + * @param protectionTier protectionTier or {@code null} for none + */ + public Reservation setProtectionTier(java.lang.String protectionTier) { + this.protectionTier = protectionTier; + return this; + } + + /** + * Specify the reservation sharing policy. If unspecified, the reservation will not be shared with + * Google Cloud managed services. + * @return value or {@code null} for none + */ + public AllocationReservationSharingPolicy getReservationSharingPolicy() { + return reservationSharingPolicy; + } + + /** + * Specify the reservation sharing policy. If unspecified, the reservation will not be shared with + * Google Cloud managed services. + * @param reservationSharingPolicy reservationSharingPolicy or {@code null} for none + */ + public Reservation setReservationSharingPolicy(AllocationReservationSharingPolicy reservationSharingPolicy) { + this.reservationSharingPolicy = reservationSharingPolicy; + return this; + } + + /** + * Output only. [Output Only] Contains standard resource metadata for an Allocation resource. It + * is populated for each instance of the Allocation resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * @return value or {@code null} for none + */ + public ResourceMetadata getResourceMetadata() { + return resourceMetadata; + } + + /** + * Output only. [Output Only] Contains standard resource metadata for an Allocation resource. It + * is populated for each instance of the Allocation resource, and includes the api_version the + * instance was retrieved through, and its canonical resource_type name. + * @param resourceMetadata resourceMetadata or {@code null} for none + */ + public Reservation setResourceMetadata(ResourceMetadata resourceMetadata) { + this.resourceMetadata = resourceMetadata; + return this; + } + + /** + * Resource policies to be added to this reservation. The key is defined by user, and the value is + * resource policy url. This is to define placement policy with reservation. + * @return value or {@code null} for none + */ + public java.util.Map getResourcePolicies() { + return resourcePolicies; + } + + /** + * Resource policies to be added to this reservation. The key is defined by user, and the value is + * resource policy url. This is to define placement policy with reservation. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public Reservation setResourcePolicies(java.util.Map resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Output only. [Output Only] Status information for Reservation resource. + * @return value or {@code null} for none + */ + public AllocationResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] Status information for Reservation resource. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * The type of maintenance for the reservation. + * @return value or {@code null} for none + */ + public java.lang.String getSchedulingType() { + return schedulingType; + } + + /** + * The type of maintenance for the reservation. + * @param schedulingType schedulingType or {@code null} for none + */ + public Reservation setSchedulingType(java.lang.String schedulingType) { + this.schedulingType = schedulingType; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public Reservation setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Specify share-settings to create a shared reservation. This property is optional. For more + * information about the syntax and options for this field and its subfields, see the guide for + * creating a shared reservation. + * @return value or {@code null} for none + */ + public ShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Specify share-settings to create a shared reservation. This property is optional. For more + * information about the syntax and options for this field and its subfields, see the guide for + * creating a shared reservation. + * @param shareSettings shareSettings or {@code null} for none + */ + public Reservation setShareSettings(ShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Reservation for instances with specific machine shapes. + * @return value or {@code null} for none + */ + public AllocationSpecificSKUReservation getSpecificReservation() { + return specificReservation; + } + + /** + * Reservation for instances with specific machine shapes. + * @param specificReservation specificReservation or {@code null} for none + */ + public Reservation setSpecificReservation(AllocationSpecificSKUReservation specificReservation) { + this.specificReservation = specificReservation; + return this; + } + + /** + * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. + * If the field is set, then only VMs that target the reservation by name can consume from this + * reservation. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSpecificReservationRequired() { + return specificReservationRequired; + } + + /** + * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. + * If the field is set, then only VMs that target the reservation by name can consume from this + * reservation. + * @param specificReservationRequired specificReservationRequired or {@code null} for none + */ + public Reservation setSpecificReservationRequired(java.lang.Boolean specificReservationRequired) { + this.specificReservationRequired = specificReservationRequired; + return this; + } + + /** + * Output only. [Output Only] The status of the reservation. - CREATING: Reservation + * resources are being allocated. - READY: Reservation resources have been allocated, + * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. + * - UPDATING: Reservation update is in progress. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the reservation. - CREATING: Reservation + * resources are being allocated. - READY: Reservation resources have been allocated, + * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. + * - UPDATING: Reservation update is in progress. + * @param status status or {@code null} for none + */ + public Reservation setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Zone in which the reservation resides. A zone must be provided if the reservation is created + * within a commitment. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Zone in which the reservation resides. A zone must be provided if the reservation is created + * within a commitment. + * @param zone zone or {@code null} for none + */ + public Reservation setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Reservation set(String fieldName, Object value) { + return (Reservation) super.set(fieldName, value); + } + + @Override + public Reservation clone() { + return (Reservation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAdvancedDeploymentControl.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAdvancedDeploymentControl.java new file mode 100644 index 00000000000..e9f803858e2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAdvancedDeploymentControl.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; + +/** + * Advance control for cluster management, applicable only to DENSE deployment type reservations. + * + *

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 ReservationAdvancedDeploymentControl extends com.google.api.client.json.GenericJson { + + /** + * Indicates chosen reservation operational mode for the reservation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reservationOperationalMode; + + /** + * Indicates chosen reservation operational mode for the reservation. + * @return value or {@code null} for none + */ + public java.lang.String getReservationOperationalMode() { + return reservationOperationalMode; + } + + /** + * Indicates chosen reservation operational mode for the reservation. + * @param reservationOperationalMode reservationOperationalMode or {@code null} for none + */ + public ReservationAdvancedDeploymentControl setReservationOperationalMode(java.lang.String reservationOperationalMode) { + this.reservationOperationalMode = reservationOperationalMode; + return this; + } + + @Override + public ReservationAdvancedDeploymentControl set(String fieldName, Object value) { + return (ReservationAdvancedDeploymentControl) super.set(fieldName, value); + } + + @Override + public ReservationAdvancedDeploymentControl clone() { + return (ReservationAdvancedDeploymentControl) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAffinity.java new file mode 100644 index 00000000000..9b4627cc536 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAffinity.java @@ -0,0 +1,132 @@ +/* + * 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; + +/** + * Specifies the reservations that this instance can consume from. + * + *

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 ReservationAffinity extends com.google.api.client.json.GenericJson { + + /** + * Specifies the type of reservation from which this instance can consume resources: + * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved + * instances for examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumeReservationType; + + /** + * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by + * name, specifygoogleapis.com/reservation-name as the key and specify the name of your + * reservation as its value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Corresponds to the label values of a reservation resource. This can be either a name to a + * reservation in the same project or "projects/different-project/reservations/some-reservation- + * name" to target a shared reservation in the same zone but in a different project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Specifies the type of reservation from which this instance can consume resources: + * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved + * instances for examples. + * @return value or {@code null} for none + */ + public java.lang.String getConsumeReservationType() { + return consumeReservationType; + } + + /** + * Specifies the type of reservation from which this instance can consume resources: + * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved + * instances for examples. + * @param consumeReservationType consumeReservationType or {@code null} for none + */ + public ReservationAffinity setConsumeReservationType(java.lang.String consumeReservationType) { + this.consumeReservationType = consumeReservationType; + return this; + } + + /** + * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by + * name, specifygoogleapis.com/reservation-name as the key and specify the name of your + * reservation as its value. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by + * name, specifygoogleapis.com/reservation-name as the key and specify the name of your + * reservation as its value. + * @param key key or {@code null} for none + */ + public ReservationAffinity setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Corresponds to the label values of a reservation resource. This can be either a name to a + * reservation in the same project or "projects/different-project/reservations/some-reservation- + * name" to target a shared reservation in the same zone but in a different project. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Corresponds to the label values of a reservation resource. This can be either a name to a + * reservation in the same project or "projects/different-project/reservations/some-reservation- + * name" to target a shared reservation in the same zone but in a different project. + * @param values values or {@code null} for none + */ + public ReservationAffinity setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public ReservationAffinity set(String fieldName, Object value) { + return (ReservationAffinity) super.set(fieldName, value); + } + + @Override + public ReservationAffinity clone() { + return (ReservationAffinity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java new file mode 100644 index 00000000000..4731174a55c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of reservations. + * + *

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 ReservationAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 Allocation resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 ReservationAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Allocation resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of Allocation resources. + * @param items items or {@code null} for none + */ + public ReservationAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public ReservationAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReservationAggregatedList 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 ReservationAggregatedList 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 ReservationAggregatedList 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 ReservationAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationAggregatedList set(String fieldName, Object value) { + return (ReservationAggregatedList) super.set(fieldName, value); + } + + @Override + public ReservationAggregatedList clone() { + return (ReservationAggregatedList) 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 ReservationAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlock.java new file mode 100644 index 00000000000..ead811d9fd5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -0,0 +1,504 @@ +/* + * 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 reservation block 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 ReservationBlock extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Resource status for the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationBlockBlockStatus blockStatus; + + /** + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer count; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] Health information for the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationBlockHealthInfo healthInfo; + + /** + * 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] The number of instances that are currently in use on this + * reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inUseCount; + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inUseHostCount; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation + * blocks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] The number of machines in the reservation block. Only populated for + * families where machine to host ratio is not 1:1 such as TPU8i. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer machineCount; + + /** + * Output only. [Output Only] The name of this reservation block generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern + * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The physical topology of the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationBlockPhysicalTopology physicalTopology; + + /** + * Output only. [Output Only] Maintenance information for this reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GroupMaintenanceInfo reservationMaintenance; + + /** + * Output only. [Output Only] The number of reservation subBlocks associated with this reservation + * block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer reservationSubBlockCount; + + /** + * Output only. [Output Only] The number of in-use reservation subBlocks associated with this + * reservation block. If at least one VM is running on a subBlock, it is considered in-use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer reservationSubBlockInUseCount; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Status of the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] Zone in which the reservation block resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] Resource status for the reservation block. + * @return value or {@code null} for none + */ + public ReservationBlockBlockStatus getBlockStatus() { + return blockStatus; + } + + /** + * Output only. [Output Only] Resource status for the reservation block. + * @param blockStatus blockStatus or {@code null} for none + */ + public ReservationBlock setBlockStatus(ReservationBlockBlockStatus blockStatus) { + this.blockStatus = blockStatus; + return this; + } + + /** + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. + * @return value or {@code null} for none + */ + public java.lang.Integer getCount() { + return count; + } + + /** + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. + * @param count count or {@code null} for none + */ + public ReservationBlock setCount(java.lang.Integer count) { + this.count = count; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] Health information for the reservation block. + * @return value or {@code null} for none + */ + public ReservationBlockHealthInfo getHealthInfo() { + return healthInfo; + } + + /** + * Output only. [Output Only] Health information for the reservation block. + * @param healthInfo healthInfo or {@code null} for none + */ + public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { + this.healthInfo = healthInfo; + 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 ReservationBlock setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation block. + * @return value or {@code null} for none + */ + public java.lang.Integer getInUseCount() { + return inUseCount; + } + + /** + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation block. + * @param inUseCount inUseCount or {@code null} for none + */ + public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { + this.inUseCount = inUseCount; + return this; + } + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @return value or {@code null} for none + */ + public java.lang.Integer getInUseHostCount() { + return inUseHostCount; + } + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @param inUseHostCount inUseHostCount or {@code null} for none + */ + public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { + this.inUseHostCount = inUseHostCount; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation + * blocks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation + * blocks. + * @param kind kind or {@code null} for none + */ + public ReservationBlock setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] The number of machines in the reservation block. Only populated for + * families where machine to host ratio is not 1:1 such as TPU8i. + * @return value or {@code null} for none + */ + public java.lang.Integer getMachineCount() { + return machineCount; + } + + /** + * Output only. [Output Only] The number of machines in the reservation block. Only populated for + * families where machine to host ratio is not 1:1 such as TPU8i. + * @param machineCount machineCount or {@code null} for none + */ + public ReservationBlock setMachineCount(java.lang.Integer machineCount) { + this.machineCount = machineCount; + return this; + } + + /** + * Output only. [Output Only] The name of this reservation block generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern + * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of this reservation block generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern + * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + * @param name name or {@code null} for none + */ + public ReservationBlock setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The physical topology of the reservation block. + * @return value or {@code null} for none + */ + public ReservationBlockPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. [Output Only] The physical topology of the reservation block. + * @param physicalTopology physicalTopology or {@code null} for none + */ + public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. [Output Only] Maintenance information for this reservation block. + * @return value or {@code null} for none + */ + public GroupMaintenanceInfo getReservationMaintenance() { + return reservationMaintenance; + } + + /** + * Output only. [Output Only] Maintenance information for this reservation block. + * @param reservationMaintenance reservationMaintenance or {@code null} for none + */ + public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { + this.reservationMaintenance = reservationMaintenance; + return this; + } + + /** + * Output only. [Output Only] The number of reservation subBlocks associated with this reservation + * block. + * @return value or {@code null} for none + */ + public java.lang.Integer getReservationSubBlockCount() { + return reservationSubBlockCount; + } + + /** + * Output only. [Output Only] The number of reservation subBlocks associated with this reservation + * block. + * @param reservationSubBlockCount reservationSubBlockCount or {@code null} for none + */ + public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservationSubBlockCount) { + this.reservationSubBlockCount = reservationSubBlockCount; + return this; + } + + /** + * Output only. [Output Only] The number of in-use reservation subBlocks associated with this + * reservation block. If at least one VM is running on a subBlock, it is considered in-use. + * @return value or {@code null} for none + */ + public java.lang.Integer getReservationSubBlockInUseCount() { + return reservationSubBlockInUseCount; + } + + /** + * Output only. [Output Only] The number of in-use reservation subBlocks associated with this + * reservation block. If at least one VM is running on a subBlock, it is considered in-use. + * @param reservationSubBlockInUseCount reservationSubBlockInUseCount or {@code null} for none + */ + public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reservationSubBlockInUseCount) { + this.reservationSubBlockInUseCount = reservationSubBlockInUseCount; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationBlock setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] Status of the reservation block. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] Status of the reservation block. + * @param status status or {@code null} for none + */ + public ReservationBlock setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] Zone in which the reservation block resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] Zone in which the reservation block resides. + * @param zone zone or {@code null} for none + */ + public ReservationBlock setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public ReservationBlock set(String fieldName, Object value) { + return (ReservationBlock) super.set(fieldName, value); + } + + @Override + public ReservationBlock clone() { + return (ReservationBlock) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockDetailedHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockDetailedHealthInfo.java new file mode 100644 index 00000000000..ad401f3afca --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockDetailedHealthInfo.java @@ -0,0 +1,150 @@ +/* + * 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; + +/** + * Detailed health information for the reservation block. + * + *

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 ReservationBlockBlockDetailedHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of subBlocks that are critical. Critical subBlocks are completely + * unhealthy and cannot be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer criticalSubBlockCount; + + /** + * Output only. The number of subBlocks that are degraded. Degraded subBlocks are within SLO and + * can be used with some performance degradation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer degradedSubBlockCount; + + /** + * Output only. The number of subBlocks that are healthy. Healthy subBlocks are within SLO and can + * be used without performance degradation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthySubBlockCount; + + /** + * Output only. The number of subBlocks that are unhealthy. Unhealthy subBlocks cannot be used in + * full. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unhealthySubBlockCount; + + /** + * Output only. The number of subBlocks that are critical. Critical subBlocks are completely + * unhealthy and cannot be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getCriticalSubBlockCount() { + return criticalSubBlockCount; + } + + /** + * Output only. The number of subBlocks that are critical. Critical subBlocks are completely + * unhealthy and cannot be used. + * @param criticalSubBlockCount criticalSubBlockCount or {@code null} for none + */ + public ReservationBlockBlockDetailedHealthInfo setCriticalSubBlockCount(java.lang.Integer criticalSubBlockCount) { + this.criticalSubBlockCount = criticalSubBlockCount; + return this; + } + + /** + * Output only. The number of subBlocks that are degraded. Degraded subBlocks are within SLO and + * can be used with some performance degradation. + * @return value or {@code null} for none + */ + public java.lang.Integer getDegradedSubBlockCount() { + return degradedSubBlockCount; + } + + /** + * Output only. The number of subBlocks that are degraded. Degraded subBlocks are within SLO and + * can be used with some performance degradation. + * @param degradedSubBlockCount degradedSubBlockCount or {@code null} for none + */ + public ReservationBlockBlockDetailedHealthInfo setDegradedSubBlockCount(java.lang.Integer degradedSubBlockCount) { + this.degradedSubBlockCount = degradedSubBlockCount; + return this; + } + + /** + * Output only. The number of subBlocks that are healthy. Healthy subBlocks are within SLO and can + * be used without performance degradation. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthySubBlockCount() { + return healthySubBlockCount; + } + + /** + * Output only. The number of subBlocks that are healthy. Healthy subBlocks are within SLO and can + * be used without performance degradation. + * @param healthySubBlockCount healthySubBlockCount or {@code null} for none + */ + public ReservationBlockBlockDetailedHealthInfo setHealthySubBlockCount(java.lang.Integer healthySubBlockCount) { + this.healthySubBlockCount = healthySubBlockCount; + return this; + } + + /** + * Output only. The number of subBlocks that are unhealthy. Unhealthy subBlocks cannot be used in + * full. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnhealthySubBlockCount() { + return unhealthySubBlockCount; + } + + /** + * Output only. The number of subBlocks that are unhealthy. Unhealthy subBlocks cannot be used in + * full. + * @param unhealthySubBlockCount unhealthySubBlockCount or {@code null} for none + */ + public ReservationBlockBlockDetailedHealthInfo setUnhealthySubBlockCount(java.lang.Integer unhealthySubBlockCount) { + this.unhealthySubBlockCount = unhealthySubBlockCount; + return this; + } + + @Override + public ReservationBlockBlockDetailedHealthInfo set(String fieldName, Object value) { + return (ReservationBlockBlockDetailedHealthInfo) super.set(fieldName, value); + } + + @Override + public ReservationBlockBlockDetailedHealthInfo clone() { + return (ReservationBlockBlockDetailedHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockStatus.java new file mode 100644 index 00000000000..da75ae7c8a7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockBlockStatus.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Status for the reservation block. + * + *

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 ReservationBlockBlockStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Detailed health information for the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationBlockBlockDetailedHealthInfo blockDetailedHealthInfo; + + /** + * Output only. Detailed health information for the reservation block. + * @return value or {@code null} for none + */ + public ReservationBlockBlockDetailedHealthInfo getBlockDetailedHealthInfo() { + return blockDetailedHealthInfo; + } + + /** + * Output only. Detailed health information for the reservation block. + * @param blockDetailedHealthInfo blockDetailedHealthInfo or {@code null} for none + */ + public ReservationBlockBlockStatus setBlockDetailedHealthInfo(ReservationBlockBlockDetailedHealthInfo blockDetailedHealthInfo) { + this.blockDetailedHealthInfo = blockDetailedHealthInfo; + return this; + } + + @Override + public ReservationBlockBlockStatus set(String fieldName, Object value) { + return (ReservationBlockBlockStatus) super.set(fieldName, value); + } + + @Override + public ReservationBlockBlockStatus clone() { + return (ReservationBlockBlockStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockHealthInfo.java new file mode 100644 index 00000000000..4324d974abf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockHealthInfo.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Health information for the reservation block. + * + *

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 ReservationBlockHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * The number of subBlocks that are degraded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer degradedSubBlockCount; + + /** + * The health status of the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * The number of subBlocks that are healthy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthySubBlockCount; + + /** + * The number of subBlocks that are degraded. + * @return value or {@code null} for none + */ + public java.lang.Integer getDegradedSubBlockCount() { + return degradedSubBlockCount; + } + + /** + * The number of subBlocks that are degraded. + * @param degradedSubBlockCount degradedSubBlockCount or {@code null} for none + */ + public ReservationBlockHealthInfo setDegradedSubBlockCount(java.lang.Integer degradedSubBlockCount) { + this.degradedSubBlockCount = degradedSubBlockCount; + return this; + } + + /** + * The health status of the reservation block. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * The health status of the reservation block. + * @param healthStatus healthStatus or {@code null} for none + */ + public ReservationBlockHealthInfo setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * The number of subBlocks that are healthy. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthySubBlockCount() { + return healthySubBlockCount; + } + + /** + * The number of subBlocks that are healthy. + * @param healthySubBlockCount healthySubBlockCount or {@code null} for none + */ + public ReservationBlockHealthInfo setHealthySubBlockCount(java.lang.Integer healthySubBlockCount) { + this.healthySubBlockCount = healthySubBlockCount; + return this; + } + + @Override + public ReservationBlockHealthInfo set(String fieldName, Object value) { + return (ReservationBlockHealthInfo) super.set(fieldName, value); + } + + @Override + public ReservationBlockHealthInfo clone() { + return (ReservationBlockHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java new file mode 100644 index 00000000000..b51a80d1123 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -0,0 +1,114 @@ +/* + * 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 ReservationBlockPhysicalTopology. + * + *

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 ReservationBlockPhysicalTopology extends com.google.api.client.json.GenericJson { + + /** + * The hash of the capacity block within the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String block; + + /** + * The cluster name of the reservation block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * Output only. The detailed instances information for a given Block + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * The hash of the capacity block within the cluster. + * @return value or {@code null} for none + */ + public java.lang.String getBlock() { + return block; + } + + /** + * The hash of the capacity block within the cluster. + * @param block block or {@code null} for none + */ + public ReservationBlockPhysicalTopology setBlock(java.lang.String block) { + this.block = block; + return this; + } + + /** + * The cluster name of the reservation block. + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * The cluster name of the reservation block. + * @param cluster cluster or {@code null} for none + */ + public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * Output only. The detailed instances information for a given Block + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * Output only. The detailed instances information for a given Block + * @param instances instances or {@code null} for none + */ + public ReservationBlockPhysicalTopology setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public ReservationBlockPhysicalTopology set(String fieldName, Object value) { + return (ReservationBlockPhysicalTopology) super.set(fieldName, value); + } + + @Override + public ReservationBlockPhysicalTopology clone() { + return (ReservationBlockPhysicalTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java new file mode 100644 index 00000000000..74bbbacca30 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The instances information for a given Block + * + *

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 ReservationBlockPhysicalTopologyInstance extends com.google.api.client.json.GenericJson { + + /** + * The InstanceId of the instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger instanceId; + + /** + * Output only. The PhysicalHostTopology of instances within a Block resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology; + + /** + * Project where the instance lives + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger projectId; + + /** + * The InstanceId of the instance + * @return value or {@code null} for none + */ + public java.math.BigInteger getInstanceId() { + return instanceId; + } + + /** + * The InstanceId of the instance + * @param instanceId instanceId or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteger instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Output only. The PhysicalHostTopology of instances within a Block resource. + * @return value or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { + return physicalHostTopology; + } + + /** + * Output only. The PhysicalHostTopology of instances within a Block resource. + * @param physicalHostTopology physicalHostTopology or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { + this.physicalHostTopology = physicalHostTopology; + return this; + } + + /** + * Project where the instance lives + * @return value or {@code null} for none + */ + public java.math.BigInteger getProjectId() { + return projectId; + } + + /** + * Project where the instance lives + * @param projectId projectId or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstance setProjectId(java.math.BigInteger projectId) { + this.projectId = projectId; + return this; + } + + @Override + public ReservationBlockPhysicalTopologyInstance set(String fieldName, Object value) { + return (ReservationBlockPhysicalTopologyInstance) super.set(fieldName, value); + } + + @Override + public ReservationBlockPhysicalTopologyInstance clone() { + return (ReservationBlockPhysicalTopologyInstance) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java new file mode 100644 index 00000000000..8bfde1af44f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The PhysicalHostTopology of the instance within a Block 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 ReservationBlockPhysicalTopologyInstancePhysicalHostTopology extends com.google.api.client.json.GenericJson { + + /** + * Host hash for a given instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * Machine hash for a given instance. Only populated for families where machine-to-host ratio is + * not 1:1 such as TPU8i. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machine; + + /** + * Sub block hash for a given instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subBlock; + + /** + * Host hash for a given instance + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * Host hash for a given instance + * @param host host or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * Machine hash for a given instance. Only populated for families where machine-to-host ratio is + * not 1:1 such as TPU8i. + * @return value or {@code null} for none + */ + public java.lang.String getMachine() { + return machine; + } + + /** + * Machine hash for a given instance. Only populated for families where machine-to-host ratio is + * not 1:1 such as TPU8i. + * @param machine machine or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology setMachine(java.lang.String machine) { + this.machine = machine; + return this; + } + + /** + * Sub block hash for a given instance + * @return value or {@code null} for none + */ + public java.lang.String getSubBlock() { + return subBlock; + } + + /** + * Sub block hash for a given instance + * @param subBlock subBlock or {@code null} for none + */ + public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology setSubBlock(java.lang.String subBlock) { + this.subBlock = subBlock; + return this; + } + + @Override + public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology set(String fieldName, Object value) { + return (ReservationBlockPhysicalTopologyInstancePhysicalHostTopology) super.set(fieldName, value); + } + + @Override + public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology clone() { + return (ReservationBlockPhysicalTopologyInstancePhysicalHostTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksGetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksGetResponse.java new file mode 100644 index 00000000000..5ca425cab6f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksGetResponse.java @@ -0,0 +1,63 @@ +/* + * 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 ReservationBlocksGetResponse. + * + *

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 ReservationBlocksGetResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationBlock resource; + + /** + * @return value or {@code null} for none + */ + public ReservationBlock getResource() { + return resource; + } + + /** + * @param resource resource or {@code null} for none + */ + public ReservationBlocksGetResponse setResource(ReservationBlock resource) { + this.resource = resource; + return this; + } + + @Override + public ReservationBlocksGetResponse set(String fieldName, Object value) { + return (ReservationBlocksGetResponse) super.set(fieldName, value); + } + + @Override + public ReservationBlocksGetResponse clone() { + return (ReservationBlocksGetResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksListResponse.java new file mode 100644 index 00000000000..4cad1816594 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationBlocksListResponse.java @@ -0,0 +1,383 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of reservation blocks under a single reservation. + * + *

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 ReservationBlocksListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 reservation block 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 ReservationBlock 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(ReservationBlock.class); + } + + /** + * Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ReservationBlocksListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of reservation block resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of reservation block resources. + * @param items items or {@code null} for none + */ + public ReservationBlocksListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. + * @param kind kind or {@code null} for none + */ + public ReservationBlocksListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReservationBlocksListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationBlocksListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning message. + * @param warning warning or {@code null} for none + */ + public ReservationBlocksListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationBlocksListResponse set(String fieldName, Object value) { + return (ReservationBlocksListResponse) super.set(fieldName, value); + } + + @Override + public ReservationBlocksListResponse clone() { + return (ReservationBlocksListResponse) super.clone(); + } + + /** + * 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 ReservationBlocksListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationList.java new file mode 100644 index 00000000000..9ba103059a8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -0,0 +1,386 @@ +/* + * 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 ReservationList. + * + *

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 ReservationList extends com.google.api.client.json.GenericJson { + + /** + * [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 + private java.lang.String id; + + /** + * [Output Only] A list of Allocation 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 Reservation 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(Reservation.class); + } + + /** + * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof + * reservations + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public ReservationList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * [Output Only] A list of Allocation resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * [Output Only] A list of Allocation resources. + * @param items items or {@code null} for none + */ + public ReservationList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof + * reservations + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof + * reservations + * @param kind kind or {@code null} for none + */ + public ReservationList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReservationList 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 ReservationList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ReservationList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationList set(String fieldName, Object value) { + return (ReservationList) super.set(fieldName, value); + } + + @Override + public ReservationList clone() { + return (ReservationList) 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 ReservationListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationParams.java new file mode 100644 index 00000000000..30f762638ba --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional reservation params. + * + *

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 ReservationParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public ReservationParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public ReservationParams set(String fieldName, Object value) { + return (ReservationParams) super.set(fieldName, value); + } + + @Override + public ReservationParams clone() { + return (ReservationParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlot.java new file mode 100644 index 00000000000..9429017cf3c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlot.java @@ -0,0 +1,315 @@ +/* + * 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 reservation slot 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 ReservationSlot extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] The unique identifier for this 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] The type of resource. Alwayscompute#reservationSlot for reservation + * slots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] The name of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The physical topology of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlotPhysicalTopology physicalTopology; + + /** + * Output only. [Output Only] A server-defined fully-qualified 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] A server-defined URL for this resource with the resource ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Specify share settings to create a shared slot. Set to empty to inherit the share settings from + * a parent resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShareSettings shareSettings; + + /** + * Output only. [Output Only] The state of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The status of the reservation slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlotStatus status; + + /** + * Output only. [Output Only] The zone in which the reservation slot resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ReservationSlot setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for this 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 this resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public ReservationSlot setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation + * slots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation + * slots. + * @param kind kind or {@code null} for none + */ + public ReservationSlot setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] The name of the reservation slot. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the reservation slot. + * @param name name or {@code null} for none + */ + public ReservationSlot setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The physical topology of the reservation slot. + * @return value or {@code null} for none + */ + public ReservationSlotPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. [Output Only] The physical topology of the reservation slot. + * @param physicalTopology physicalTopology or {@code null} for none + */ + public ReservationSlot setPhysicalTopology(ReservationSlotPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. [Output Only] A server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] A server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationSlot setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] A server-defined URL for this resource with the resource ID. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] A server-defined URL for this resource with the resource ID. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ReservationSlot setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Specify share settings to create a shared slot. Set to empty to inherit the share settings from + * a parent resource. + * @return value or {@code null} for none + */ + public ShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Specify share settings to create a shared slot. Set to empty to inherit the share settings from + * a parent resource. + * @param shareSettings shareSettings or {@code null} for none + */ + public ReservationSlot setShareSettings(ShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Output only. [Output Only] The state of the reservation slot. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The state of the reservation slot. + * @param state state or {@code null} for none + */ + public ReservationSlot setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] The status of the reservation slot. + * @return value or {@code null} for none + */ + public ReservationSlotStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the reservation slot. + * @param status status or {@code null} for none + */ + public ReservationSlot setStatus(ReservationSlotStatus status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] The zone in which the reservation slot resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] The zone in which the reservation slot resides. + * @param zone zone or {@code null} for none + */ + public ReservationSlot setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public ReservationSlot set(String fieldName, Object value) { + return (ReservationSlot) super.set(fieldName, value); + } + + @Override + public ReservationSlot clone() { + return (ReservationSlot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java new file mode 100644 index 00000000000..a5343db9f74 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java @@ -0,0 +1,138 @@ +/* + * 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 ReservationSlotPhysicalTopology. + * + *

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 ReservationSlotPhysicalTopology extends com.google.api.client.json.GenericJson { + + /** + * The unique identifier of the capacity block within the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String block; + + /** + * The cluster name of the reservation sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subBlock; + + /** + * The unique identifier of the capacity block within the cluster. + * @return value or {@code null} for none + */ + public java.lang.String getBlock() { + return block; + } + + /** + * The unique identifier of the capacity block within the cluster. + * @param block block or {@code null} for none + */ + public ReservationSlotPhysicalTopology setBlock(java.lang.String block) { + this.block = block; + return this; + } + + /** + * The cluster name of the reservation sub-block. + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * The cluster name of the reservation sub-block. + * @param cluster cluster or {@code null} for none + */ + public ReservationSlotPhysicalTopology setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * The unique identifier of the capacity host within the capacity sub-block. + * @param host host or {@code null} for none + */ + public ReservationSlotPhysicalTopology setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * @return value or {@code null} for none + */ + public java.lang.String getSubBlock() { + return subBlock; + } + + /** + * The unique identifier of the capacity sub-block within the capacity block. + * @param subBlock subBlock or {@code null} for none + */ + public ReservationSlotPhysicalTopology setSubBlock(java.lang.String subBlock) { + this.subBlock = subBlock; + return this; + } + + @Override + public ReservationSlotPhysicalTopology set(String fieldName, Object value) { + return (ReservationSlotPhysicalTopology) super.set(fieldName, value); + } + + @Override + public ReservationSlotPhysicalTopology clone() { + return (ReservationSlotPhysicalTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java new file mode 100644 index 00000000000..070a4f2ac91 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java @@ -0,0 +1,114 @@ +/* + * 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 ReservationSlotStatus. + * + *

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 ReservationSlotStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The physical topology of the reservation sub-block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlotPhysicalTopology physicalTopology; + + /** + * Output only. The RDMA IP address of the physical host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rdmaIpAddresses; + + /** + * Output only. The URIs of the instances currently running on this slot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List runningInstances; + + /** + * Output only. [Output Only] The physical topology of the reservation sub-block. + * @return value or {@code null} for none + */ + public ReservationSlotPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. [Output Only] The physical topology of the reservation sub-block. + * @param physicalTopology physicalTopology or {@code null} for none + */ + public ReservationSlotStatus setPhysicalTopology(ReservationSlotPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. The RDMA IP address of the physical host. + * @return value or {@code null} for none + */ + public java.util.List getRdmaIpAddresses() { + return rdmaIpAddresses; + } + + /** + * Output only. The RDMA IP address of the physical host. + * @param rdmaIpAddresses rdmaIpAddresses or {@code null} for none + */ + public ReservationSlotStatus setRdmaIpAddresses(java.util.List rdmaIpAddresses) { + this.rdmaIpAddresses = rdmaIpAddresses; + return this; + } + + /** + * Output only. The URIs of the instances currently running on this slot. + * @return value or {@code null} for none + */ + public java.util.List getRunningInstances() { + return runningInstances; + } + + /** + * Output only. The URIs of the instances currently running on this slot. + * @param runningInstances runningInstances or {@code null} for none + */ + public ReservationSlotStatus setRunningInstances(java.util.List runningInstances) { + this.runningInstances = runningInstances; + return this; + } + + @Override + public ReservationSlotStatus set(String fieldName, Object value) { + return (ReservationSlotStatus) super.set(fieldName, value); + } + + @Override + public ReservationSlotStatus clone() { + return (ReservationSlotStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java new file mode 100644 index 00000000000..b83cc08701f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java @@ -0,0 +1,63 @@ +/* + * 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 ReservationSlotsGetResponse. + * + *

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 ReservationSlotsGetResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSlot resource; + + /** + * @return value or {@code null} for none + */ + public ReservationSlot getResource() { + return resource; + } + + /** + * @param resource resource or {@code null} for none + */ + public ReservationSlotsGetResponse setResource(ReservationSlot resource) { + this.resource = resource; + return this; + } + + @Override + public ReservationSlotsGetResponse set(String fieldName, Object value) { + return (ReservationSlotsGetResponse) super.set(fieldName, value); + } + + @Override + public ReservationSlotsGetResponse clone() { + return (ReservationSlotsGetResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java new file mode 100644 index 00000000000..f00c0534eda --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.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; + +/** + * Model definition for ReservationSlotsGetVersionRequest. + * + *

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 ReservationSlotsGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public ReservationSlotsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public ReservationSlotsGetVersionRequest set(String fieldName, Object value) { + return (ReservationSlotsGetVersionRequest) super.set(fieldName, value); + } + + @Override + public ReservationSlotsGetVersionRequest clone() { + return (ReservationSlotsGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java new file mode 100644 index 00000000000..25154ec1074 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java @@ -0,0 +1,383 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of reservation slots within a single reservation. + * + *

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 ReservationSlotsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The 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 reservation slot 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 ReservationSlot 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(ReservationSlot.class); + } + + /** + * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * An informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * The unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * The unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ReservationSlotsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of reservation slot resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of reservation slot resources. + * @param items items or {@code null} for none + */ + public ReservationSlotsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. + * @param kind kind or {@code null} for none + */ + public ReservationSlotsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReservationSlotsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * The server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationSlotsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * An informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning message. + * @param warning warning or {@code null} for none + */ + public ReservationSlotsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationSlotsListResponse set(String fieldName, Object value) { + return (ReservationSlotsListResponse) super.set(fieldName, value); + } + + @Override + public ReservationSlotsListResponse clone() { + return (ReservationSlotsListResponse) super.clone(); + } + + /** + * An 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 ReservationSlotsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java new file mode 100644 index 00000000000..a8c7573bebc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -0,0 +1,471 @@ +/* + * 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 reservation subBlock 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 ReservationSubBlock extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Slice info for the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AcceleratorTopologiesInfo acceleratorTopologiesInfo; + + /** + * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer count; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlockHealthInfo healthInfo; + + /** + * 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] The number of instances that are currently in use on this + * reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inUseCount; + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer inUseHostCount; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for + * reservation subBlocks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] The number of machines in the reservation subBlock. Only populated + * for families where machine to host ratio is not 1:1 such as TPU8i. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer machineCount; + + /** + * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern + * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The physical topology of the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlockPhysicalTopology physicalTopology; + + /** + * Output only. Maintenance information for this reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GroupMaintenanceInfo reservationSubBlockMaintenance; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Status of the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] Resource status for the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlockSubBlockStatus subBlockStatus; + + /** + * Output only. [Output Only] Zone in which the reservation subBlock resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] Slice info for the reservation subBlock. + * @return value or {@code null} for none + */ + public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { + return acceleratorTopologiesInfo; + } + + /** + * Output only. [Output Only] Slice info for the reservation subBlock. + * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none + */ + public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { + this.acceleratorTopologiesInfo = acceleratorTopologiesInfo; + return this; + } + + /** + * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.Integer getCount() { + return count; + } + + /** + * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * @param count count or {@code null} for none + */ + public ReservationSubBlock setCount(java.lang.Integer count) { + this.count = count; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * @return value or {@code null} for none + */ + public ReservationSubBlockHealthInfo getHealthInfo() { + return healthInfo; + } + + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * @param healthInfo healthInfo or {@code null} for none + */ + public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { + this.healthInfo = healthInfo; + 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 ReservationSubBlock setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.Integer getInUseCount() { + return inUseCount; + } + + /** + * Output only. [Output Only] The number of instances that are currently in use on this + * reservation subBlock. + * @param inUseCount inUseCount or {@code null} for none + */ + public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { + this.inUseCount = inUseCount; + return this; + } + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @return value or {@code null} for none + */ + public java.lang.Integer getInUseHostCount() { + return inUseHostCount; + } + + /** + * Output only. Number of hosts currently in use. If there is one or more Instances running on the + * host, it is considered in use. + * @param inUseHostCount inUseHostCount or {@code null} for none + */ + public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { + this.inUseHostCount = inUseHostCount; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for + * reservation subBlocks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for + * reservation subBlocks. + * @param kind kind or {@code null} for none + */ + public ReservationSubBlock setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] The number of machines in the reservation subBlock. Only populated + * for families where machine to host ratio is not 1:1 such as TPU8i. + * @return value or {@code null} for none + */ + public java.lang.Integer getMachineCount() { + return machineCount; + } + + /** + * Output only. [Output Only] The number of machines in the reservation subBlock. Only populated + * for families where machine to host ratio is not 1:1 such as TPU8i. + * @param machineCount machineCount or {@code null} for none + */ + public ReservationSubBlock setMachineCount(java.lang.Integer machineCount) { + this.machineCount = machineCount; + return this; + } + + /** + * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern + * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute + * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern + * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? + * @param name name or {@code null} for none + */ + public ReservationSubBlock setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The physical topology of the reservation subBlock. + * @return value or {@code null} for none + */ + public ReservationSubBlockPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. [Output Only] The physical topology of the reservation subBlock. + * @param physicalTopology physicalTopology or {@code null} for none + */ + public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. Maintenance information for this reservation subBlock. + * @return value or {@code null} for none + */ + public GroupMaintenanceInfo getReservationSubBlockMaintenance() { + return reservationSubBlockMaintenance; + } + + /** + * Output only. Maintenance information for this reservation subBlock. + * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none + */ + public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { + this.reservationSubBlockMaintenance = reservationSubBlockMaintenance; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationSubBlock setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] Status of the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] Status of the reservation subBlock. + * @param status status or {@code null} for none + */ + public ReservationSubBlock setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] Resource status for the reservation subBlock. + * @return value or {@code null} for none + */ + public ReservationSubBlockSubBlockStatus getSubBlockStatus() { + return subBlockStatus; + } + + /** + * Output only. [Output Only] Resource status for the reservation subBlock. + * @param subBlockStatus subBlockStatus or {@code null} for none + */ + public ReservationSubBlock setSubBlockStatus(ReservationSubBlockSubBlockStatus subBlockStatus) { + this.subBlockStatus = subBlockStatus; + return this; + } + + /** + * Output only. [Output Only] Zone in which the reservation subBlock resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] Zone in which the reservation subBlock resides. + * @param zone zone or {@code null} for none + */ + public ReservationSubBlock setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public ReservationSubBlock set(String fieldName, Object value) { + return (ReservationSubBlock) super.set(fieldName, value); + } + + @Override + public ReservationSubBlock clone() { + return (ReservationSubBlock) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockHealthInfo.java new file mode 100644 index 00000000000..527abdd3e96 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockHealthInfo.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * Health information for the reservation subBlock. + * + *

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 ReservationSubBlockHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * The number of degraded hosts in the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer degradedHostCount; + + /** + * The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer degradedInfraCount; + + /** + * The health status of the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * The number of healthy hosts in the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyHostCount; + + /** + * The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyInfraCount; + + /** + * The number of degraded hosts in the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.Integer getDegradedHostCount() { + return degradedHostCount; + } + + /** + * The number of degraded hosts in the reservation subBlock. + * @param degradedHostCount degradedHostCount or {@code null} for none + */ + public ReservationSubBlockHealthInfo setDegradedHostCount(java.lang.Integer degradedHostCount) { + this.degradedHostCount = degradedHostCount; + return this; + } + + /** + * The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. + * @return value or {@code null} for none + */ + public java.lang.Integer getDegradedInfraCount() { + return degradedInfraCount; + } + + /** + * The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. + * @param degradedInfraCount degradedInfraCount or {@code null} for none + */ + public ReservationSubBlockHealthInfo setDegradedInfraCount(java.lang.Integer degradedInfraCount) { + this.degradedInfraCount = degradedInfraCount; + return this; + } + + /** + * The health status of the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * The health status of the reservation subBlock. + * @param healthStatus healthStatus or {@code null} for none + */ + public ReservationSubBlockHealthInfo setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * The number of healthy hosts in the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyHostCount() { + return healthyHostCount; + } + + /** + * The number of healthy hosts in the reservation subBlock. + * @param healthyHostCount healthyHostCount or {@code null} for none + */ + public ReservationSubBlockHealthInfo setHealthyHostCount(java.lang.Integer healthyHostCount) { + this.healthyHostCount = healthyHostCount; + return this; + } + + /** + * The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyInfraCount() { + return healthyInfraCount; + } + + /** + * The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. + * @param healthyInfraCount healthyInfraCount or {@code null} for none + */ + public ReservationSubBlockHealthInfo setHealthyInfraCount(java.lang.Integer healthyInfraCount) { + this.healthyInfraCount = healthyInfraCount; + return this; + } + + @Override + public ReservationSubBlockHealthInfo set(String fieldName, Object value) { + return (ReservationSubBlockHealthInfo) super.set(fieldName, value); + } + + @Override + public ReservationSubBlockHealthInfo clone() { + return (ReservationSubBlockHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockPhysicalTopology.java new file mode 100644 index 00000000000..3da5645f3c9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockPhysicalTopology.java @@ -0,0 +1,114 @@ +/* + * 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 ReservationSubBlockPhysicalTopology. + * + *

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 ReservationSubBlockPhysicalTopology extends com.google.api.client.json.GenericJson { + + /** + * The hash of the capacity block within the cluster. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String block; + + /** + * The cluster name of the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * The hash of the capacity sub-block within the capacity block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subBlock; + + /** + * The hash of the capacity block within the cluster. + * @return value or {@code null} for none + */ + public java.lang.String getBlock() { + return block; + } + + /** + * The hash of the capacity block within the cluster. + * @param block block or {@code null} for none + */ + public ReservationSubBlockPhysicalTopology setBlock(java.lang.String block) { + this.block = block; + return this; + } + + /** + * The cluster name of the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * The cluster name of the reservation subBlock. + * @param cluster cluster or {@code null} for none + */ + public ReservationSubBlockPhysicalTopology setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * The hash of the capacity sub-block within the capacity block. + * @return value or {@code null} for none + */ + public java.lang.String getSubBlock() { + return subBlock; + } + + /** + * The hash of the capacity sub-block within the capacity block. + * @param subBlock subBlock or {@code null} for none + */ + public ReservationSubBlockPhysicalTopology setSubBlock(java.lang.String subBlock) { + this.subBlock = subBlock; + return this; + } + + @Override + public ReservationSubBlockPhysicalTopology set(String fieldName, Object value) { + return (ReservationSubBlockPhysicalTopology) super.set(fieldName, value); + } + + @Override + public ReservationSubBlockPhysicalTopology clone() { + return (ReservationSubBlockPhysicalTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockDetailedHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockDetailedHealthInfo.java new file mode 100644 index 00000000000..31b1efd8840 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockDetailedHealthInfo.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Detailed health information for the reservation subBlock. + * + *

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 ReservationSubBlockSubBlockDetailedHealthInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The detailed health status of the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detailedHealthStatus; + + /** + * Output only. The number of healthy hosts in the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer healthyHostCount; + + /** + * Output only. The number of unhealthy hosts in the reservation subBlock. Unhealthy hosts cannot + * be used in full. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer unhealthyHostCount; + + /** + * Output only. The detailed health status of the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getDetailedHealthStatus() { + return detailedHealthStatus; + } + + /** + * Output only. The detailed health status of the reservation subBlock. + * @param detailedHealthStatus detailedHealthStatus or {@code null} for none + */ + public ReservationSubBlockSubBlockDetailedHealthInfo setDetailedHealthStatus(java.lang.String detailedHealthStatus) { + this.detailedHealthStatus = detailedHealthStatus; + return this; + } + + /** + * Output only. The number of healthy hosts in the reservation subBlock. + * @return value or {@code null} for none + */ + public java.lang.Integer getHealthyHostCount() { + return healthyHostCount; + } + + /** + * Output only. The number of healthy hosts in the reservation subBlock. + * @param healthyHostCount healthyHostCount or {@code null} for none + */ + public ReservationSubBlockSubBlockDetailedHealthInfo setHealthyHostCount(java.lang.Integer healthyHostCount) { + this.healthyHostCount = healthyHostCount; + return this; + } + + /** + * Output only. The number of unhealthy hosts in the reservation subBlock. Unhealthy hosts cannot + * be used in full. + * @return value or {@code null} for none + */ + public java.lang.Integer getUnhealthyHostCount() { + return unhealthyHostCount; + } + + /** + * Output only. The number of unhealthy hosts in the reservation subBlock. Unhealthy hosts cannot + * be used in full. + * @param unhealthyHostCount unhealthyHostCount or {@code null} for none + */ + public ReservationSubBlockSubBlockDetailedHealthInfo setUnhealthyHostCount(java.lang.Integer unhealthyHostCount) { + this.unhealthyHostCount = unhealthyHostCount; + return this; + } + + @Override + public ReservationSubBlockSubBlockDetailedHealthInfo set(String fieldName, Object value) { + return (ReservationSubBlockSubBlockDetailedHealthInfo) super.set(fieldName, value); + } + + @Override + public ReservationSubBlockSubBlockDetailedHealthInfo clone() { + return (ReservationSubBlockSubBlockDetailedHealthInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockStatus.java new file mode 100644 index 00000000000..f76677fd496 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlockSubBlockStatus.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Status for the reservation subBlock. + * + *

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 ReservationSubBlockSubBlockStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Detailed health information for the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlockSubBlockDetailedHealthInfo subBlockDetailedHealthInfo; + + /** + * Output only. Detailed health information for the reservation subBlock. + * @return value or {@code null} for none + */ + public ReservationSubBlockSubBlockDetailedHealthInfo getSubBlockDetailedHealthInfo() { + return subBlockDetailedHealthInfo; + } + + /** + * Output only. Detailed health information for the reservation subBlock. + * @param subBlockDetailedHealthInfo subBlockDetailedHealthInfo or {@code null} for none + */ + public ReservationSubBlockSubBlockStatus setSubBlockDetailedHealthInfo(ReservationSubBlockSubBlockDetailedHealthInfo subBlockDetailedHealthInfo) { + this.subBlockDetailedHealthInfo = subBlockDetailedHealthInfo; + return this; + } + + @Override + public ReservationSubBlockSubBlockStatus set(String fieldName, Object value) { + return (ReservationSubBlockSubBlockStatus) super.set(fieldName, value); + } + + @Override + public ReservationSubBlockSubBlockStatus clone() { + return (ReservationSubBlockSubBlockStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetResponse.java new file mode 100644 index 00000000000..25e12fb9ec7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetResponse.java @@ -0,0 +1,63 @@ +/* + * 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 ReservationSubBlocksGetResponse. + * + *

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 ReservationSubBlocksGetResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlock resource; + + /** + * @return value or {@code null} for none + */ + public ReservationSubBlock getResource() { + return resource; + } + + /** + * @param resource resource or {@code null} for none + */ + public ReservationSubBlocksGetResponse setResource(ReservationSubBlock resource) { + this.resource = resource; + return this; + } + + @Override + public ReservationSubBlocksGetResponse set(String fieldName, Object value) { + return (ReservationSubBlocksGetResponse) super.set(fieldName, value); + } + + @Override + public ReservationSubBlocksGetResponse clone() { + return (ReservationSubBlocksGetResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java new file mode 100644 index 00000000000..f10458f7bb3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.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; + +/** + * Model definition for ReservationSubBlocksGetVersionRequest. + * + *

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 ReservationSubBlocksGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public ReservationSubBlocksGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public ReservationSubBlocksGetVersionRequest set(String fieldName, Object value) { + return (ReservationSubBlocksGetVersionRequest) super.set(fieldName, value); + } + + @Override + public ReservationSubBlocksGetVersionRequest clone() { + return (ReservationSubBlocksGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksListResponse.java new file mode 100644 index 00000000000..2f03298ae95 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksListResponse.java @@ -0,0 +1,383 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of reservation subBlocks under a single reservation. + * + *

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 ReservationSubBlocksListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 reservation subBlock 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 ReservationSubBlock 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(ReservationSubBlock.class); + } + + /** + * Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation subBlocks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ReservationSubBlocksListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of reservation subBlock resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of reservation subBlock resources. + * @param items items or {@code null} for none + */ + public ReservationSubBlocksListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation subBlocks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation subBlocks. + * @param kind kind or {@code null} for none + */ + public ReservationSubBlocksListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReservationSubBlocksListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReservationSubBlocksListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning message. + * @param warning warning or {@code null} for none + */ + public ReservationSubBlocksListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationSubBlocksListResponse set(String fieldName, Object value) { + return (ReservationSubBlocksListResponse) super.set(fieldName, value); + } + + @Override + public ReservationSubBlocksListResponse clone() { + return (ReservationSubBlocksListResponse) super.clone(); + } + + /** + * 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 ReservationSubBlocksListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequest.java new file mode 100644 index 00000000000..0de211077ce --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequest.java @@ -0,0 +1,114 @@ +/* + * 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 ReservationSubBlocksReportFaultyRequest. + * + *

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 ReservationSubBlocksReportFaultyRequest extends com.google.api.client.json.GenericJson { + + /** + * The disruption schedule for the subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disruptionSchedule; + + /** + * The component that experienced the fault. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failureComponent; + + /** + * The reasons for the fault experienced with the subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List faultReasons; + + /** + * The disruption schedule for the subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getDisruptionSchedule() { + return disruptionSchedule; + } + + /** + * The disruption schedule for the subBlock. + * @param disruptionSchedule disruptionSchedule or {@code null} for none + */ + public ReservationSubBlocksReportFaultyRequest setDisruptionSchedule(java.lang.String disruptionSchedule) { + this.disruptionSchedule = disruptionSchedule; + return this; + } + + /** + * The component that experienced the fault. + * @return value or {@code null} for none + */ + public java.lang.String getFailureComponent() { + return failureComponent; + } + + /** + * The component that experienced the fault. + * @param failureComponent failureComponent or {@code null} for none + */ + public ReservationSubBlocksReportFaultyRequest setFailureComponent(java.lang.String failureComponent) { + this.failureComponent = failureComponent; + return this; + } + + /** + * The reasons for the fault experienced with the subBlock. + * @return value or {@code null} for none + */ + public java.util.List getFaultReasons() { + return faultReasons; + } + + /** + * The reasons for the fault experienced with the subBlock. + * @param faultReasons faultReasons or {@code null} for none + */ + public ReservationSubBlocksReportFaultyRequest setFaultReasons(java.util.List faultReasons) { + this.faultReasons = faultReasons; + return this; + } + + @Override + public ReservationSubBlocksReportFaultyRequest set(String fieldName, Object value) { + return (ReservationSubBlocksReportFaultyRequest) super.set(fieldName, value); + } + + @Override + public ReservationSubBlocksReportFaultyRequest clone() { + return (ReservationSubBlocksReportFaultyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequestFaultReason.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequestFaultReason.java new file mode 100644 index 00000000000..570eb3fceee --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksReportFaultyRequestFaultReason.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The reason for the fault experienced with the subBlock. + * + *

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 ReservationSubBlocksReportFaultyRequestFaultReason extends com.google.api.client.json.GenericJson { + + /** + * The behavior of the fault experienced with the subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String behavior; + + /** + * The description of the fault experienced with the subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The behavior of the fault experienced with the subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getBehavior() { + return behavior; + } + + /** + * The behavior of the fault experienced with the subBlock. + * @param behavior behavior or {@code null} for none + */ + public ReservationSubBlocksReportFaultyRequestFaultReason setBehavior(java.lang.String behavior) { + this.behavior = behavior; + return this; + } + + /** + * The description of the fault experienced with the subBlock. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * The description of the fault experienced with the subBlock. + * @param description description or {@code null} for none + */ + public ReservationSubBlocksReportFaultyRequestFaultReason setDescription(java.lang.String description) { + this.description = description; + return this; + } + + @Override + public ReservationSubBlocksReportFaultyRequestFaultReason set(String fieldName, Object value) { + return (ReservationSubBlocksReportFaultyRequestFaultReason) super.set(fieldName, value); + } + + @Override + public ReservationSubBlocksReportFaultyRequestFaultReason clone() { + return (ReservationSubBlocksReportFaultyRequestFaultReason) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsBlocksPerformMaintenanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsBlocksPerformMaintenanceRequest.java new file mode 100644 index 00000000000..0e790172f0f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsBlocksPerformMaintenanceRequest.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; + +/** + * Model definition for ReservationsBlocksPerformMaintenanceRequest. + * + *

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 ReservationsBlocksPerformMaintenanceRequest extends com.google.api.client.json.GenericJson { + + /** + * Specifies if all, running or unused hosts are in scope for this request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenanceScope; + + /** + * Specifies if all, running or unused hosts are in scope for this request. + * @return value or {@code null} for none + */ + public java.lang.String getMaintenanceScope() { + return maintenanceScope; + } + + /** + * Specifies if all, running or unused hosts are in scope for this request. + * @param maintenanceScope maintenanceScope or {@code null} for none + */ + public ReservationsBlocksPerformMaintenanceRequest setMaintenanceScope(java.lang.String maintenanceScope) { + this.maintenanceScope = maintenanceScope; + return this; + } + + @Override + public ReservationsBlocksPerformMaintenanceRequest set(String fieldName, Object value) { + return (ReservationsBlocksPerformMaintenanceRequest) super.set(fieldName, value); + } + + @Override + public ReservationsBlocksPerformMaintenanceRequest clone() { + return (ReservationsBlocksPerformMaintenanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsPerformMaintenanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsPerformMaintenanceRequest.java new file mode 100644 index 00000000000..8718cfab2bb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsPerformMaintenanceRequest.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; + +/** + * Model definition for ReservationsPerformMaintenanceRequest. + * + *

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 ReservationsPerformMaintenanceRequest extends com.google.api.client.json.GenericJson { + + /** + * Specifies if all, running or unused hosts are in scope for this request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenanceScope; + + /** + * Specifies if all, running or unused hosts are in scope for this request. + * @return value or {@code null} for none + */ + public java.lang.String getMaintenanceScope() { + return maintenanceScope; + } + + /** + * Specifies if all, running or unused hosts are in scope for this request. + * @param maintenanceScope maintenanceScope or {@code null} for none + */ + public ReservationsPerformMaintenanceRequest setMaintenanceScope(java.lang.String maintenanceScope) { + this.maintenanceScope = maintenanceScope; + return this; + } + + @Override + public ReservationsPerformMaintenanceRequest set(String fieldName, Object value) { + return (ReservationsPerformMaintenanceRequest) super.set(fieldName, value); + } + + @Override + public ReservationsPerformMaintenanceRequest clone() { + return (ReservationsPerformMaintenanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsResizeRequest.java new file mode 100644 index 00000000000..62e4d3ed38d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsResizeRequest.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; + +/** + * Model definition for ReservationsResizeRequest. + * + *

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 ReservationsResizeRequest extends com.google.api.client.json.GenericJson { + + /** + * Number of allocated resources can be resized with minimum = 1 and maximum = 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long specificSkuCount; + + /** + * Number of allocated resources can be resized with minimum = 1 and maximum = 1000. + * @return value or {@code null} for none + */ + public java.lang.Long getSpecificSkuCount() { + return specificSkuCount; + } + + /** + * Number of allocated resources can be resized with minimum = 1 and maximum = 1000. + * @param specificSkuCount specificSkuCount or {@code null} for none + */ + public ReservationsResizeRequest setSpecificSkuCount(java.lang.Long specificSkuCount) { + this.specificSkuCount = specificSkuCount; + return this; + } + + @Override + public ReservationsResizeRequest set(String fieldName, Object value) { + return (ReservationsResizeRequest) super.set(fieldName, value); + } + + @Override + public ReservationsResizeRequest clone() { + return (ReservationsResizeRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsScopedList.java new file mode 100644 index 00000000000..b680e46ec56 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ReservationsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 ReservationsScopedList. + * + *

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 ReservationsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of reservations contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reservations; + + static { + // hack to force ProGuard to consider Reservation 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(Reservation.class); + } + + /** + * Informational warning which replaces the list of reservations when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of reservations contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getReservations() { + return reservations; + } + + /** + * A list of reservations contained in this scope. + * @param reservations reservations or {@code null} for none + */ + public ReservationsScopedList setReservations(java.util.List reservations) { + this.reservations = reservations; + return this; + } + + /** + * Informational warning which replaces the list of reservations when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of reservations when the list is empty. + * @param warning warning or {@code null} for none + */ + public ReservationsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReservationsScopedList set(String fieldName, Object value) { + return (ReservationsScopedList) super.set(fieldName, value); + } + + @Override + public ReservationsScopedList clone() { + return (ReservationsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of reservations when the list is empty. + */ + 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 ReservationsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ResourceCommitment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceCommitment.java new file mode 100644 index 00000000000..0b5c0da025d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceCommitment.java @@ -0,0 +1,141 @@ +/* + * 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; + +/** + * Commitment for a particular hardware resource (a commitment is composed of one or more of these). + * + *

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 ResourceCommitment extends com.google.api.client.json.GenericJson { + + /** + * Name of the accelerator type or GPU resource. Specify this field only when the type of hardware + * resource is ACCELERATOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorType; + + /** + * The quantity of the hardware resource that you want to commit to purchasing (in a type- + * dependent unit). - For vCPUs, you must specify an integer value. - For memory, you + * specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, + * with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer + * value. - For Local SSD disks, you must specify the amount in GB. The size of a single + * Local SSD disk is 375 GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long amount; + + /** + * The type of hardware resource that you want to specify. You can specify any of the following + * values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR + * + * Specify as a separate entry in the list for each individual resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Name of the accelerator type or GPU resource. Specify this field only when the type of hardware + * resource is ACCELERATOR. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorType() { + return acceleratorType; + } + + /** + * Name of the accelerator type or GPU resource. Specify this field only when the type of hardware + * resource is ACCELERATOR. + * @param acceleratorType acceleratorType or {@code null} for none + */ + public ResourceCommitment setAcceleratorType(java.lang.String acceleratorType) { + this.acceleratorType = acceleratorType; + return this; + } + + /** + * The quantity of the hardware resource that you want to commit to purchasing (in a type- + * dependent unit). - For vCPUs, you must specify an integer value. - For memory, you + * specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, + * with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer + * value. - For Local SSD disks, you must specify the amount in GB. The size of a single + * Local SSD disk is 375 GB. + * @return value or {@code null} for none + */ + public java.lang.Long getAmount() { + return amount; + } + + /** + * The quantity of the hardware resource that you want to commit to purchasing (in a type- + * dependent unit). - For vCPUs, you must specify an integer value. - For memory, you + * specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, + * with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer + * value. - For Local SSD disks, you must specify the amount in GB. The size of a single + * Local SSD disk is 375 GB. + * @param amount amount or {@code null} for none + */ + public ResourceCommitment setAmount(java.lang.Long amount) { + this.amount = amount; + return this; + } + + /** + * The type of hardware resource that you want to specify. You can specify any of the following + * values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR + * + * Specify as a separate entry in the list for each individual resource type. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of hardware resource that you want to specify. You can specify any of the following + * values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR + * + * Specify as a separate entry in the list for each individual resource type. + * @param type type or {@code null} for none + */ + public ResourceCommitment setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public ResourceCommitment set(String fieldName, Object value) { + return (ResourceCommitment) super.set(fieldName, value); + } + + @Override + public ResourceCommitment clone() { + return (ResourceCommitment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceGroupReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceGroupReference.java new file mode 100644 index 00000000000..3776b3f75c3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceGroupReference.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; + +/** + * Model definition for ResourceGroupReference. + * + *

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 ResourceGroupReference extends com.google.api.client.json.GenericJson { + + /** + * A URI referencing one of the instance groups or network endpoint groups listed in the backend + * service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String group; + + /** + * A URI referencing one of the instance groups or network endpoint groups listed in the backend + * service. + * @return value or {@code null} for none + */ + public java.lang.String getGroup() { + return group; + } + + /** + * A URI referencing one of the instance groups or network endpoint groups listed in the backend + * service. + * @param group group or {@code null} for none + */ + public ResourceGroupReference setGroup(java.lang.String group) { + this.group = group; + return this; + } + + @Override + public ResourceGroupReference set(String fieldName, Object value) { + return (ResourceGroupReference) super.set(fieldName, value); + } + + @Override + public ResourceGroupReference clone() { + return (ResourceGroupReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceMetadata.java new file mode 100644 index 00000000000..a8c5ac25545 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceMetadata.java @@ -0,0 +1,96 @@ +/* + * 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; + +/** + * Standardized resource metadata common to all compute resources. + * + *

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 ResourceMetadata extends com.google.api.client.json.GenericJson { + + /** + * The version of the API interface that this resource was retrieved through. For example, + * `"2025-01-01"` or `"2025-01-01-preview"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * The canonical resource type name in the format of a resource type as defined by + * [AIP-123](https://google.aip.dev/123). For example, `"compute.googleapis.com/Instance"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * The version of the API interface that this resource was retrieved through. For example, + * `"2025-01-01"` or `"2025-01-01-preview"`. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * The version of the API interface that this resource was retrieved through. For example, + * `"2025-01-01"` or `"2025-01-01-preview"`. + * @param apiVersion apiVersion or {@code null} for none + */ + public ResourceMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * The canonical resource type name in the format of a resource type as defined by + * [AIP-123](https://google.aip.dev/123). For example, `"compute.googleapis.com/Instance"`. + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * The canonical resource type name in the format of a resource type as defined by + * [AIP-123](https://google.aip.dev/123). For example, `"compute.googleapis.com/Instance"`. + * @param resourceType resourceType or {@code null} for none + */ + public ResourceMetadata setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + @Override + public ResourceMetadata set(String fieldName, Object value) { + return (ResourceMetadata) super.set(fieldName, value); + } + + @Override + public ResourceMetadata clone() { + return (ResourceMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePoliciesScopedList.java new file mode 100644 index 00000000000..439b63ce486 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePoliciesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 ResourcePoliciesScopedList. + * + *

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 ResourcePoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of resourcePolicies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Informational warning which replaces the list of resourcePolicies when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of resourcePolicies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * A list of resourcePolicies contained in this scope. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public ResourcePoliciesScopedList setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Informational warning which replaces the list of resourcePolicies when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of resourcePolicies when the list is empty. + * @param warning warning or {@code null} for none + */ + public ResourcePoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ResourcePoliciesScopedList set(String fieldName, Object value) { + return (ResourcePoliciesScopedList) super.set(fieldName, value); + } + + @Override + public ResourcePoliciesScopedList clone() { + return (ResourcePoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of resourcePolicies when the list is empty. + */ + 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 ResourcePoliciesScopedListWarningData. + */ + 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(); + } + + } + } +} From d4162e41e79166dcb71b2b8633b1aaf1feaeaa1c Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:28 -0700 Subject: [PATCH 09/23] chore: regenerate compute client --- .../compute/model/ResourcePolicy.java | 391 +++++++ .../model/ResourcePolicyAggregatedList.java | 428 +++++++ .../model/ResourcePolicyDailyCycle.java | 123 ++ ...ourcePolicyDiskConsistencyGroupPolicy.java | 42 + .../ResourcePolicyGroupPlacementPolicy.java | 175 +++ .../model/ResourcePolicyHourlyCycle.java | 123 ++ .../ResourcePolicyInstanceSchedulePolicy.java | 166 +++ ...ePolicyInstanceSchedulePolicySchedule.java | 66 ++ .../compute/model/ResourcePolicyList.java | 407 +++++++ .../model/ResourcePolicyResourceStatus.java | 74 ++ ...rceStatusInstanceSchedulePolicyStatus.java | 96 ++ .../ResourcePolicySnapshotSchedulePolicy.java | 118 ++ ...SnapshotSchedulePolicyRetentionPolicy.java | 90 ++ ...ePolicySnapshotSchedulePolicySchedule.java | 105 ++ ...pshotSchedulePolicySnapshotProperties.java | 141 +++ .../model/ResourcePolicyWeeklyCycle.java | 66 ++ .../ResourcePolicyWeeklyCycleDayOfWeek.java | 126 ++ .../model/ResourcePolicyWorkloadPolicy.java | 141 +++ .../compute/model/ResourceStatus.java | 223 ++++ ...sourceStatusEffectiveInstanceMetadata.java | 258 +++++ .../ResourceStatusPhysicalHostTopology.java | 174 +++ ...sicalHostTopologyAdditionalAttributes.java | 69 ++ ...ourceStatusReservationConsumptionInfo.java | 123 ++ .../model/ResourceStatusScheduling.java | 123 ++ .../model/ResourceStatusShutdownDetails.java | 138 +++ .../services/compute/model/RiskDetails.java | 162 +++ .../model/RiskDetailsGlobalDnsInsight.java | 138 +++ .../compute/model/RiskRecommendation.java | 90 ++ .../api/services/compute/model/Rollout.java | 471 ++++++++ .../services/compute/model/RolloutPlan.java | 280 +++++ .../compute/model/RolloutPlanWave.java | 168 +++ .../RolloutPlanWaveOrchestrationOptions.java | 121 ++ ...loutPlanWaveOrchestrationOptionsDelay.java | 141 +++ .../model/RolloutPlanWaveSelector.java | 90 ++ ...lloutPlanWaveSelectorLocationSelector.java | 66 ++ ...WaveSelectorResourceHierarchySelector.java | 115 ++ .../model/RolloutPlanWaveValidation.java | 105 ++ ...ValidationTimeBasedValidationMetadata.java | 69 ++ .../model/RolloutPlansListResponse.java | 407 +++++++ .../compute/model/RolloutRolloutEntity.java | 66 ++ ...olloutRolloutEntityOrchestratedEntity.java | 145 +++ .../compute/model/RolloutWaveDetails.java | 117 ++ ...outWaveDetailsOrchestratedWaveDetails.java | 198 ++++ ...OrchestratedWaveDetailsLocationStatus.java | 66 ++ .../compute/model/RolloutsListResponse.java | 407 +++++++ .../api/services/compute/model/Route.java | 1009 +++++++++++++++++ .../services/compute/model/RouteAsPath.java | 105 ++ .../api/services/compute/model/RouteList.java | 383 +++++++ .../services/compute/model/RouteParams.java | 84 ++ .../services/compute/model/RoutePolicy.java | 218 ++++ .../compute/model/RoutePolicyPolicyTerm.java | 126 ++ .../api/services/compute/model/Router.java | 470 ++++++++ .../model/RouterAdvertisedIpRange.java | 90 ++ .../compute/model/RouterAggregatedList.java | 401 +++++++ .../api/services/compute/model/RouterBgp.java | 258 +++++ .../services/compute/model/RouterBgpPeer.java | 717 ++++++++++++ .../compute/model/RouterBgpPeerBfd.java | 201 ++++ .../RouterBgpPeerCustomLearnedIpRange.java | 72 ++ .../compute/model/RouterInterface.java | 351 ++++++ .../services/compute/model/RouterList.java | 383 +++++++ .../model/RouterMd5AuthenticationKey.java | 111 ++ .../api/services/compute/model/RouterNat.java | 738 ++++++++++++ .../compute/model/RouterNatLogConfig.java | 102 ++ .../services/compute/model/RouterNatRule.java | 189 +++ .../compute/model/RouterNatRuleAction.java | 156 +++ .../model/RouterNatSubnetworkToNat.java | 126 ++ .../model/RouterNatSubnetworkToNat64.java | 66 ++ .../services/compute/model/RouterParams.java | 84 ++ .../services/compute/model/RouterStatus.java | 222 ++++ .../model/RouterStatusBgpPeerStatus.java | 567 +++++++++ .../compute/model/RouterStatusNatStatus.java | 273 +++++ .../RouterStatusNatStatusNatRuleStatus.java | 168 +++ .../compute/model/RouterStatusResponse.java | 87 ++ .../model/RoutersGetNamedSetResponse.java | 87 ++ .../model/RoutersGetRoutePolicyResponse.java | 63 + .../compute/model/RoutersListBgpRoutes.java | 431 +++++++ .../compute/model/RoutersListNamedSets.java | 431 +++++++ .../model/RoutersListRoutePolicies.java | 431 +++++++ .../compute/model/RoutersPreviewResponse.java | 66 ++ .../compute/model/RoutersScopedList.java | 278 +++++ .../compute/model/SSLHealthCheck.java | 249 ++++ .../compute/model/SavedAttachedDisk.java | 456 ++++++++ .../api/services/compute/model/SavedDisk.java | 171 +++ .../compute/model/ScalingScheduleStatus.java | 126 ++ .../services/compute/model/Scheduling.java | 540 +++++++++ .../model/SchedulingGracefulShutdown.java | 93 ++ .../compute/model/SchedulingNodeAffinity.java | 117 ++ .../model/SchedulingOnInstanceStopAction.java | 72 ++ .../services/compute/model/Screenshot.java | 90 ++ .../model/SecurityPoliciesAggregatedList.java | 425 +++++++ ...stPreconfiguredExpressionSetsResponse.java | 63 + .../model/SecurityPoliciesScopedList.java | 272 +++++ .../model/SecurityPoliciesWafConfig.java | 63 + .../compute/model/SecurityPolicy.java | 777 +++++++++++++ ...ecurityPolicyAdaptiveProtectionConfig.java | 66 ++ ...otectionConfigLayer7DdosDefenseConfig.java | 124 ++ ...ayer7DdosDefenseConfigThresholdConfig.java | 244 ++++ ...resholdConfigTrafficGranularityConfig.java | 117 ++ .../SecurityPolicyAdvancedOptionsConfig.java | 165 +++ ...AdvancedOptionsConfigJsonCustomConfig.java | 87 ++ 100 files changed, 21269 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDiskConsistencyGroupPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicySchedule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySchedule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycle.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Rollout.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlan.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWave.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptions.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorLocationSelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorResourceHierarchySelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntityOrchestratedEntity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Route.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteAsPath.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicyPolicyTerm.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Router.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAdvertisedIpRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgp.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerBfd.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerCustomLearnedIpRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterInterface.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterMd5AuthenticationKey.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNat.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatLogConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRuleAction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat64.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetNamedSetResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetRoutePolicyResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersPreviewResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SSLHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ScalingScheduleStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Scheduling.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingNodeAffinity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingOnInstanceStopAction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Screenshot.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesWafConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java new file mode 100644 index 00000000000..6bc0c38c573 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -0,0 +1,391 @@ +/* + * 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 Resource Policy resource. You can use resource policies to schedule actions for some + * Compute Engine resources. For example, you can use them toschedule persistent disk snapshots. + * + *

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 ResourcePolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Resource policy for disk consistency groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyDiskConsistencyGroupPolicy diskConsistencyGroupPolicy; + + /** + * Resource policy for instances for placement configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; + + /** + * 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; + + /** + * Resource policy for scheduling instance operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource + * policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. [Output Only] The system status of the resource policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyResourceStatus resourceStatus; + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Resource policy for persistent disks for creating snapshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; + + /** + * Output only. [Output Only] The status of resource policy creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Resource policy for defining instance placement for MIGs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyWorkloadPolicy workloadPolicy; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * @param description description or {@code null} for none + */ + public ResourcePolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Resource policy for disk consistency groups. + * @return value or {@code null} for none + */ + public ResourcePolicyDiskConsistencyGroupPolicy getDiskConsistencyGroupPolicy() { + return diskConsistencyGroupPolicy; + } + + /** + * Resource policy for disk consistency groups. + * @param diskConsistencyGroupPolicy diskConsistencyGroupPolicy or {@code null} for none + */ + public ResourcePolicy setDiskConsistencyGroupPolicy(ResourcePolicyDiskConsistencyGroupPolicy diskConsistencyGroupPolicy) { + this.diskConsistencyGroupPolicy = diskConsistencyGroupPolicy; + return this; + } + + /** + * Resource policy for instances for placement configuration. + * @return value or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy getGroupPlacementPolicy() { + return groupPlacementPolicy; + } + + /** + * Resource policy for instances for placement configuration. + * @param groupPlacementPolicy groupPlacementPolicy or {@code null} for none + */ + public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy groupPlacementPolicy) { + this.groupPlacementPolicy = groupPlacementPolicy; + 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 ResourcePolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Resource policy for scheduling instance operations. + * @return value or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicy getInstanceSchedulePolicy() { + return instanceSchedulePolicy; + } + + /** + * Resource policy for scheduling instance operations. + * @param instanceSchedulePolicy instanceSchedulePolicy or {@code null} for none + */ + public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy) { + this.instanceSchedulePolicy = instanceSchedulePolicy; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource + * policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource + * policies. + * @param kind kind or {@code null} for none + */ + public ResourcePolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. The + * resource 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 ResourcePolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * @param region region or {@code null} for none + */ + public ResourcePolicy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. [Output Only] The system status of the resource policy. + * @return value or {@code null} for none + */ + public ResourcePolicyResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] The system status of the resource policy. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ResourcePolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Resource policy for persistent disks for creating snapshots. + * @return value or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicy getSnapshotSchedulePolicy() { + return snapshotSchedulePolicy; + } + + /** + * Resource policy for persistent disks for creating snapshots. + * @param snapshotSchedulePolicy snapshotSchedulePolicy or {@code null} for none + */ + public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy) { + this.snapshotSchedulePolicy = snapshotSchedulePolicy; + return this; + } + + /** + * Output only. [Output Only] The status of resource policy creation. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of resource policy creation. + * @param status status or {@code null} for none + */ + public ResourcePolicy setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Resource policy for defining instance placement for MIGs. + * @return value or {@code null} for none + */ + public ResourcePolicyWorkloadPolicy getWorkloadPolicy() { + return workloadPolicy; + } + + /** + * Resource policy for defining instance placement for MIGs. + * @param workloadPolicy workloadPolicy or {@code null} for none + */ + public ResourcePolicy setWorkloadPolicy(ResourcePolicyWorkloadPolicy workloadPolicy) { + this.workloadPolicy = workloadPolicy; + return this; + } + + @Override + public ResourcePolicy set(String fieldName, Object value) { + return (ResourcePolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicy clone() { + return (ResourcePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java new file mode 100644 index 00000000000..d793ed1c395 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -0,0 +1,428 @@ +/* + * 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; + +/** + * Contains a list of resourcePolicies. + * + *

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 ResourcePolicyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 ResourcePolicy resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider ResourcePoliciesScopedList 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(ResourcePoliciesScopedList.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ResourcePolicy resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of ResourcePolicy resources. + * @param items items or {@code null} for none + */ + public ResourcePolicyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public ResourcePolicyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ResourcePolicyAggregatedList set(String fieldName, Object value) { + return (ResourcePolicyAggregatedList) super.set(fieldName, value); + } + + @Override + public ResourcePolicyAggregatedList clone() { + return (ResourcePolicyAggregatedList) 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 ResourcePolicyAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java new file mode 100644 index 00000000000..a23209854dd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * Time window specified for daily operations. + * + *

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 ResourcePolicyDailyCycle extends com.google.api.client.json.GenericJson { + + /** + * Defines a schedule with units measured in days. The value determines how many days pass between + * the start of each cycle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer daysInCycle; + + /** + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String duration; + + /** + * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, + * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * Defines a schedule with units measured in days. The value determines how many days pass between + * the start of each cycle. + * @return value or {@code null} for none + */ + public java.lang.Integer getDaysInCycle() { + return daysInCycle; + } + + /** + * Defines a schedule with units measured in days. The value determines how many days pass between + * the start of each cycle. + * @param daysInCycle daysInCycle or {@code null} for none + */ + public ResourcePolicyDailyCycle setDaysInCycle(java.lang.Integer daysInCycle) { + this.daysInCycle = daysInCycle; + return this; + } + + /** + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. + * @return value or {@code null} for none + */ + public java.lang.String getDuration() { + return duration; + } + + /** + * Output only. [Output only] A predetermined duration for the window, automatically chosen to be + * the smallest possible in the given scenario. + * @param duration duration or {@code null} for none + */ + public ResourcePolicyDailyCycle setDuration(java.lang.String duration) { + this.duration = duration; + return this; + } + + /** + * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, + * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, + * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. + * @param startTime startTime or {@code null} for none + */ + public ResourcePolicyDailyCycle setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public ResourcePolicyDailyCycle set(String fieldName, Object value) { + return (ResourcePolicyDailyCycle) super.set(fieldName, value); + } + + @Override + public ResourcePolicyDailyCycle clone() { + return (ResourcePolicyDailyCycle) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDiskConsistencyGroupPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDiskConsistencyGroupPolicy.java new file mode 100644 index 00000000000..eae2cc59e67 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyDiskConsistencyGroupPolicy.java @@ -0,0 +1,42 @@ +/* + * 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; + +/** + * Resource policy for disk consistency groups. + * + *

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 ResourcePolicyDiskConsistencyGroupPolicy extends com.google.api.client.json.GenericJson { + + @Override + public ResourcePolicyDiskConsistencyGroupPolicy set(String fieldName, Object value) { + return (ResourcePolicyDiskConsistencyGroupPolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicyDiskConsistencyGroupPolicy clone() { + return (ResourcePolicyDiskConsistencyGroupPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java new file mode 100644 index 00000000000..7ef83defd1c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java @@ -0,0 +1,175 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure + * bucket separation + * + *

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 ResourcePolicyGroupPlacementPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopologyMode; + + /** + * The number of availability domains to spread instances across. If two instances are in + * different availability domain, they are not in the same low latency network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer availabilityDomainCount; + + /** + * Specifies network collocation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collocation; + + /** + * Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gpuTopology; + + /** + * Number of VMs in this placement group. Google does not recommend that you use this field unless + * you use a compact policy and you want your policy to work only if it contains this exact number + * of VMs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer vmCount; + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopologyMode() { + return acceleratorTopologyMode; + } + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @param acceleratorTopologyMode acceleratorTopologyMode or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy setAcceleratorTopologyMode(java.lang.String acceleratorTopologyMode) { + this.acceleratorTopologyMode = acceleratorTopologyMode; + return this; + } + + /** + * The number of availability domains to spread instances across. If two instances are in + * different availability domain, they are not in the same low latency network. + * @return value or {@code null} for none + */ + public java.lang.Integer getAvailabilityDomainCount() { + return availabilityDomainCount; + } + + /** + * The number of availability domains to spread instances across. If two instances are in + * different availability domain, they are not in the same low latency network. + * @param availabilityDomainCount availabilityDomainCount or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy setAvailabilityDomainCount(java.lang.Integer availabilityDomainCount) { + this.availabilityDomainCount = availabilityDomainCount; + return this; + } + + /** + * Specifies network collocation + * @return value or {@code null} for none + */ + public java.lang.String getCollocation() { + return collocation; + } + + /** + * Specifies network collocation + * @param collocation collocation or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy setCollocation(java.lang.String collocation) { + this.collocation = collocation; + return this; + } + + /** + * Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. + * @return value or {@code null} for none + */ + public java.lang.String getGpuTopology() { + return gpuTopology; + } + + /** + * Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. + * @param gpuTopology gpuTopology or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy setGpuTopology(java.lang.String gpuTopology) { + this.gpuTopology = gpuTopology; + return this; + } + + /** + * Number of VMs in this placement group. Google does not recommend that you use this field unless + * you use a compact policy and you want your policy to work only if it contains this exact number + * of VMs. + * @return value or {@code null} for none + */ + public java.lang.Integer getVmCount() { + return vmCount; + } + + /** + * Number of VMs in this placement group. Google does not recommend that you use this field unless + * you use a compact policy and you want your policy to work only if it contains this exact number + * of VMs. + * @param vmCount vmCount or {@code null} for none + */ + public ResourcePolicyGroupPlacementPolicy setVmCount(java.lang.Integer vmCount) { + this.vmCount = vmCount; + return this; + } + + @Override + public ResourcePolicyGroupPlacementPolicy set(String fieldName, Object value) { + return (ResourcePolicyGroupPlacementPolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicyGroupPlacementPolicy clone() { + return (ResourcePolicyGroupPlacementPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java new file mode 100644 index 00000000000..7bc231a7392 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * Time window specified for hourly operations. + * + *

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 ResourcePolicyHourlyCycle extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String duration; + + /** + * Defines a schedule with units measured in hours. The value determines how many hours pass + * between the start of each cycle. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer hoursInCycle; + + /** + * Time within the window to start the operations. It must be in format "HH:MM", where HH : + * [00-23] and MM : [00-00] GMT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. + * @return value or {@code null} for none + */ + public java.lang.String getDuration() { + return duration; + } + + /** + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. + * @param duration duration or {@code null} for none + */ + public ResourcePolicyHourlyCycle setDuration(java.lang.String duration) { + this.duration = duration; + return this; + } + + /** + * Defines a schedule with units measured in hours. The value determines how many hours pass + * between the start of each cycle. + * @return value or {@code null} for none + */ + public java.lang.Integer getHoursInCycle() { + return hoursInCycle; + } + + /** + * Defines a schedule with units measured in hours. The value determines how many hours pass + * between the start of each cycle. + * @param hoursInCycle hoursInCycle or {@code null} for none + */ + public ResourcePolicyHourlyCycle setHoursInCycle(java.lang.Integer hoursInCycle) { + this.hoursInCycle = hoursInCycle; + return this; + } + + /** + * Time within the window to start the operations. It must be in format "HH:MM", where HH : + * [00-23] and MM : [00-00] GMT. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * Time within the window to start the operations. It must be in format "HH:MM", where HH : + * [00-23] and MM : [00-00] GMT. + * @param startTime startTime or {@code null} for none + */ + public ResourcePolicyHourlyCycle setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public ResourcePolicyHourlyCycle set(String fieldName, Object value) { + return (ResourcePolicyHourlyCycle) super.set(fieldName, value); + } + + @Override + public ResourcePolicyHourlyCycle clone() { + return (ResourcePolicyHourlyCycle) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicy.java new file mode 100644 index 00000000000..df5130f8493 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicy.java @@ -0,0 +1,166 @@ +/* + * 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; + +/** + * An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the + * instance. + * + *

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 ResourcePolicyInstanceSchedulePolicy extends com.google.api.client.json.GenericJson { + + /** + * The expiration time of the schedule. The timestamp is an RFC3339 string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expirationTime; + + /** + * The start time of the schedule. The timestamp is an RFC3339 string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field + * must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Specifies the schedule for starting instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyInstanceSchedulePolicySchedule vmStartSchedule; + + /** + * Specifies the schedule for stopping instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyInstanceSchedulePolicySchedule vmStopSchedule; + + /** + * The expiration time of the schedule. The timestamp is an RFC3339 string. + * @return value or {@code null} for none + */ + public java.lang.String getExpirationTime() { + return expirationTime; + } + + /** + * The expiration time of the schedule. The timestamp is an RFC3339 string. + * @param expirationTime expirationTime or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicy setExpirationTime(java.lang.String expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The start time of the schedule. The timestamp is an RFC3339 string. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * The start time of the schedule. The timestamp is an RFC3339 string. + * @param startTime startTime or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicy setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field + * must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field + * must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. + * @param timeZone timeZone or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicy setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Specifies the schedule for starting instances. + * @return value or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicySchedule getVmStartSchedule() { + return vmStartSchedule; + } + + /** + * Specifies the schedule for starting instances. + * @param vmStartSchedule vmStartSchedule or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicy setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule vmStartSchedule) { + this.vmStartSchedule = vmStartSchedule; + return this; + } + + /** + * Specifies the schedule for stopping instances. + * @return value or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicySchedule getVmStopSchedule() { + return vmStopSchedule; + } + + /** + * Specifies the schedule for stopping instances. + * @param vmStopSchedule vmStopSchedule or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicy setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule vmStopSchedule) { + this.vmStopSchedule = vmStopSchedule; + return this; + } + + @Override + public ResourcePolicyInstanceSchedulePolicy set(String fieldName, Object value) { + return (ResourcePolicyInstanceSchedulePolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicyInstanceSchedulePolicy clone() { + return (ResourcePolicyInstanceSchedulePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicySchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicySchedule.java new file mode 100644 index 00000000000..a56a4f28c49 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyInstanceSchedulePolicySchedule.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; + +/** + * Schedule for an instance operation. + * + *

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 ResourcePolicyInstanceSchedulePolicySchedule extends com.google.api.client.json.GenericJson { + + /** + * Specifies the frequency for the operation, using the unix-cron format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String schedule; + + /** + * Specifies the frequency for the operation, using the unix-cron format. + * @return value or {@code null} for none + */ + public java.lang.String getSchedule() { + return schedule; + } + + /** + * Specifies the frequency for the operation, using the unix-cron format. + * @param schedule schedule or {@code null} for none + */ + public ResourcePolicyInstanceSchedulePolicySchedule setSchedule(java.lang.String schedule) { + this.schedule = schedule; + return this; + } + + @Override + public ResourcePolicyInstanceSchedulePolicySchedule set(String fieldName, Object value) { + return (ResourcePolicyInstanceSchedulePolicySchedule) super.set(fieldName, value); + } + + @Override + public ResourcePolicyInstanceSchedulePolicySchedule clone() { + return (ResourcePolicyInstanceSchedulePolicySchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java new file mode 100644 index 00000000000..e2137711ecd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -0,0 +1,407 @@ +/* + * 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 ResourcePolicyList. + * + *

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 ResourcePolicyList extends com.google.api.client.json.GenericJson { + + /** + * 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}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * [Output Only] A list of ResourcePolicy 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 ResourcePolicy 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(ResourcePolicy.class); + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * 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 getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public ResourcePolicyList 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 + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public ResourcePolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * [Output Only] A list of ResourcePolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * [Output Only] A list of ResourcePolicy resources. + * @param items items or {@code null} for none + */ + public ResourcePolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies + * @param kind kind or {@code null} for none + */ + public ResourcePolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ResourcePolicyList 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 ResourcePolicyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ResourcePolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ResourcePolicyList set(String fieldName, Object value) { + return (ResourcePolicyList) super.set(fieldName, value); + } + + @Override + public ResourcePolicyList clone() { + return (ResourcePolicyList) 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 ResourcePolicyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java new file mode 100644 index 00000000000..530e452effd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -0,0 +1,74 @@ +/* + * 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; + +/** + * Contains output only fields. Use this sub-message for all output fields set on ResourcePolicy. + * The internal structure of this "status" field should mimic the structure of ResourcePolicy proto + * specification. + * + *

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 ResourcePolicyResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Specifies a set of output values reffering to the + * instance_schedule_policy system status. This field should have the same name as corresponding + * policy field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instanceSchedulePolicy; + + /** + * Output only. [Output Only] Specifies a set of output values reffering to the + * instance_schedule_policy system status. This field should have the same name as corresponding + * policy field. + * @return value or {@code null} for none + */ + public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSchedulePolicy() { + return instanceSchedulePolicy; + } + + /** + * Output only. [Output Only] Specifies a set of output values reffering to the + * instance_schedule_policy system status. This field should have the same name as corresponding + * policy field. + * @param instanceSchedulePolicy instanceSchedulePolicy or {@code null} for none + */ + public ResourcePolicyResourceStatus setInstanceSchedulePolicy(ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instanceSchedulePolicy) { + this.instanceSchedulePolicy = instanceSchedulePolicy; + return this; + } + + @Override + public ResourcePolicyResourceStatus set(String fieldName, Object value) { + return (ResourcePolicyResourceStatus) super.set(fieldName, value); + } + + @Override + public ResourcePolicyResourceStatus clone() { + return (ResourcePolicyResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java new file mode 100644 index 00000000000..4a6a22e20dd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -0,0 +1,96 @@ +/* + * 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 ResourcePolicyResourceStatusInstanceSchedulePolicyStatus. + * + *

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 ResourcePolicyResourceStatusInstanceSchedulePolicyStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an + * RFC3339 string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastRunStartTime; + + /** + * Output only. [Output Only] The next time the schedule is planned to run. The actual time might + * be slightly different. The timestamp is an RFC3339 string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextRunStartTime; + + /** + * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an + * RFC3339 string. + * @return value or {@code null} for none + */ + public java.lang.String getLastRunStartTime() { + return lastRunStartTime; + } + + /** + * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an + * RFC3339 string. + * @param lastRunStartTime lastRunStartTime or {@code null} for none + */ + public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartTime(java.lang.String lastRunStartTime) { + this.lastRunStartTime = lastRunStartTime; + return this; + } + + /** + * Output only. [Output Only] The next time the schedule is planned to run. The actual time might + * be slightly different. The timestamp is an RFC3339 string. + * @return value or {@code null} for none + */ + public java.lang.String getNextRunStartTime() { + return nextRunStartTime; + } + + /** + * Output only. [Output Only] The next time the schedule is planned to run. The actual time might + * be slightly different. The timestamp is an RFC3339 string. + * @param nextRunStartTime nextRunStartTime or {@code null} for none + */ + public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setNextRunStartTime(java.lang.String nextRunStartTime) { + this.nextRunStartTime = nextRunStartTime; + return this; + } + + @Override + public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus set(String fieldName, Object value) { + return (ResourcePolicyResourceStatusInstanceSchedulePolicyStatus) super.set(fieldName, value); + } + + @Override + public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus clone() { + return (ResourcePolicyResourceStatusInstanceSchedulePolicyStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicy.java new file mode 100644 index 00000000000..cc0ee47973c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicy.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A snapshot schedule policy specifies when and how frequently snapshots are to be created for the + * target disk. Also specifies how many and how long these scheduled snapshots should be retained. + * + *

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 ResourcePolicySnapshotSchedulePolicy extends com.google.api.client.json.GenericJson { + + /** + * Retention policy applied to snapshots created by this resource policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicySnapshotSchedulePolicyRetentionPolicy retentionPolicy; + + /** + * A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to + * perform on this VM and when. Schedule that is applied to disks covered by this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicySnapshotSchedulePolicySchedule schedule; + + /** + * Properties with which snapshots are created such as labels, encryption keys. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshotProperties; + + /** + * Retention policy applied to snapshots created by this resource policy. + * @return value or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicyRetentionPolicy getRetentionPolicy() { + return retentionPolicy; + } + + /** + * Retention policy applied to snapshots created by this resource policy. + * @param retentionPolicy retentionPolicy or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicy setRetentionPolicy(ResourcePolicySnapshotSchedulePolicyRetentionPolicy retentionPolicy) { + this.retentionPolicy = retentionPolicy; + return this; + } + + /** + * A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to + * perform on this VM and when. Schedule that is applied to disks covered by this policy. + * @return value or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySchedule getSchedule() { + return schedule; + } + + /** + * A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to + * perform on this VM and when. Schedule that is applied to disks covered by this policy. + * @param schedule schedule or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicy setSchedule(ResourcePolicySnapshotSchedulePolicySchedule schedule) { + this.schedule = schedule; + return this; + } + + /** + * Properties with which snapshots are created such as labels, encryption keys. + * @return value or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySnapshotProperties getSnapshotProperties() { + return snapshotProperties; + } + + /** + * Properties with which snapshots are created such as labels, encryption keys. + * @param snapshotProperties snapshotProperties or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicy setSnapshotProperties(ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshotProperties) { + this.snapshotProperties = snapshotProperties; + return this; + } + + @Override + public ResourcePolicySnapshotSchedulePolicy set(String fieldName, Object value) { + return (ResourcePolicySnapshotSchedulePolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicySnapshotSchedulePolicy clone() { + return (ResourcePolicySnapshotSchedulePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java new file mode 100644 index 00000000000..65a0fd12a84 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Policy for retention of scheduled snapshots. + * + *

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 ResourcePolicySnapshotSchedulePolicyRetentionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Maximum age of the snapshot that is allowed to be kept. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxRetentionDays; + + /** + * Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String onSourceDiskDelete; + + /** + * Maximum age of the snapshot that is allowed to be kept. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRetentionDays() { + return maxRetentionDays; + } + + /** + * Maximum age of the snapshot that is allowed to be kept. + * @param maxRetentionDays maxRetentionDays or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicyRetentionPolicy setMaxRetentionDays(java.lang.Integer maxRetentionDays) { + this.maxRetentionDays = maxRetentionDays; + return this; + } + + /** + * Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. + * @return value or {@code null} for none + */ + public java.lang.String getOnSourceDiskDelete() { + return onSourceDiskDelete; + } + + /** + * Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. + * @param onSourceDiskDelete onSourceDiskDelete or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicyRetentionPolicy setOnSourceDiskDelete(java.lang.String onSourceDiskDelete) { + this.onSourceDiskDelete = onSourceDiskDelete; + return this; + } + + @Override + public ResourcePolicySnapshotSchedulePolicyRetentionPolicy set(String fieldName, Object value) { + return (ResourcePolicySnapshotSchedulePolicyRetentionPolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicySnapshotSchedulePolicyRetentionPolicy clone() { + return (ResourcePolicySnapshotSchedulePolicyRetentionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySchedule.java new file mode 100644 index 00000000000..563d7623787 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySchedule.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A schedule for disks where the schedueled operations are performed. + * + *

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 ResourcePolicySnapshotSchedulePolicySchedule extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyDailyCycle dailySchedule; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyHourlyCycle hourlySchedule; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourcePolicyWeeklyCycle weeklySchedule; + + /** + * @return value or {@code null} for none + */ + public ResourcePolicyDailyCycle getDailySchedule() { + return dailySchedule; + } + + /** + * @param dailySchedule dailySchedule or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySchedule setDailySchedule(ResourcePolicyDailyCycle dailySchedule) { + this.dailySchedule = dailySchedule; + return this; + } + + /** + * @return value or {@code null} for none + */ + public ResourcePolicyHourlyCycle getHourlySchedule() { + return hourlySchedule; + } + + /** + * @param hourlySchedule hourlySchedule or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySchedule setHourlySchedule(ResourcePolicyHourlyCycle hourlySchedule) { + this.hourlySchedule = hourlySchedule; + return this; + } + + /** + * @return value or {@code null} for none + */ + public ResourcePolicyWeeklyCycle getWeeklySchedule() { + return weeklySchedule; + } + + /** + * @param weeklySchedule weeklySchedule or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySchedule setWeeklySchedule(ResourcePolicyWeeklyCycle weeklySchedule) { + this.weeklySchedule = weeklySchedule; + return this; + } + + @Override + public ResourcePolicySnapshotSchedulePolicySchedule set(String fieldName, Object value) { + return (ResourcePolicySnapshotSchedulePolicySchedule) super.set(fieldName, value); + } + + @Override + public ResourcePolicySnapshotSchedulePolicySchedule clone() { + return (ResourcePolicySnapshotSchedulePolicySchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java new file mode 100644 index 00000000000..32ad3b8f6b3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java @@ -0,0 +1,141 @@ +/* + * 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; + +/** + * Specified snapshot properties for scheduled snapshots created by this policy. + * + *

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 ResourcePolicySnapshotSchedulePolicySnapshotProperties extends com.google.api.client.json.GenericJson { + + /** + * Chain name that the snapshot is created in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chainName; + + /** + * Indication to perform a 'guest aware' snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean guestFlush; + + /** + * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. + * Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageLocations; + + /** + * Chain name that the snapshot is created in. + * @return value or {@code null} for none + */ + public java.lang.String getChainName() { + return chainName; + } + + /** + * Chain name that the snapshot is created in. + * @param chainName chainName or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySnapshotProperties setChainName(java.lang.String chainName) { + this.chainName = chainName; + return this; + } + + /** + * Indication to perform a 'guest aware' snapshot. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGuestFlush() { + return guestFlush; + } + + /** + * Indication to perform a 'guest aware' snapshot. + * @param guestFlush guestFlush or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySnapshotProperties setGuestFlush(java.lang.Boolean guestFlush) { + this.guestFlush = guestFlush; + return this; + } + + /** + * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. + * Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. + * Label values may be empty. + * @param labels labels or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySnapshotProperties setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). + * @return value or {@code null} for none + */ + public java.util.List getStorageLocations() { + return storageLocations; + } + + /** + * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). + * @param storageLocations storageLocations or {@code null} for none + */ + public ResourcePolicySnapshotSchedulePolicySnapshotProperties setStorageLocations(java.util.List storageLocations) { + this.storageLocations = storageLocations; + return this; + } + + @Override + public ResourcePolicySnapshotSchedulePolicySnapshotProperties set(String fieldName, Object value) { + return (ResourcePolicySnapshotSchedulePolicySnapshotProperties) super.set(fieldName, value); + } + + @Override + public ResourcePolicySnapshotSchedulePolicySnapshotProperties clone() { + return (ResourcePolicySnapshotSchedulePolicySnapshotProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycle.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycle.java new file mode 100644 index 00000000000..12316bd088a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycle.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; + +/** + * Time window specified for weekly operations. + * + *

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 ResourcePolicyWeeklyCycle extends com.google.api.client.json.GenericJson { + + /** + * Up to 7 intervals/windows, one for each day of the week. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dayOfWeeks; + + /** + * Up to 7 intervals/windows, one for each day of the week. + * @return value or {@code null} for none + */ + public java.util.List getDayOfWeeks() { + return dayOfWeeks; + } + + /** + * Up to 7 intervals/windows, one for each day of the week. + * @param dayOfWeeks dayOfWeeks or {@code null} for none + */ + public ResourcePolicyWeeklyCycle setDayOfWeeks(java.util.List dayOfWeeks) { + this.dayOfWeeks = dayOfWeeks; + return this; + } + + @Override + public ResourcePolicyWeeklyCycle set(String fieldName, Object value) { + return (ResourcePolicyWeeklyCycle) super.set(fieldName, value); + } + + @Override + public ResourcePolicyWeeklyCycle clone() { + return (ResourcePolicyWeeklyCycle) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java new file mode 100644 index 00000000000..620437c3886 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -0,0 +1,126 @@ +/* + * 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 ResourcePolicyWeeklyCycleDayOfWeek. + * + *

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 ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.client.json.GenericJson { + + /** + * Defines a schedule that runs on specific days of the week. Specify one or more days. The + * following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, + * SUNDAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String day; + + /** + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String duration; + + /** + * Time within the window to start the operations. It must be in format "HH:MM", where HH : + * [00-23] and MM : [00-00] GMT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String startTime; + + /** + * Defines a schedule that runs on specific days of the week. Specify one or more days. The + * following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, + * SUNDAY. + * @return value or {@code null} for none + */ + public java.lang.String getDay() { + return day; + } + + /** + * Defines a schedule that runs on specific days of the week. Specify one or more days. The + * following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, + * SUNDAY. + * @param day day or {@code null} for none + */ + public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { + this.day = day; + return this; + } + + /** + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. + * @return value or {@code null} for none + */ + public java.lang.String getDuration() { + return duration; + } + + /** + * Output only. [Output only] Duration of the time window, automatically chosen to be smallest + * possible in the given scenario. + * @param duration duration or {@code null} for none + */ + public ResourcePolicyWeeklyCycleDayOfWeek setDuration(java.lang.String duration) { + this.duration = duration; + return this; + } + + /** + * Time within the window to start the operations. It must be in format "HH:MM", where HH : + * [00-23] and MM : [00-00] GMT. + * @return value or {@code null} for none + */ + public java.lang.String getStartTime() { + return startTime; + } + + /** + * Time within the window to start the operations. It must be in format "HH:MM", where HH : + * [00-23] and MM : [00-00] GMT. + * @param startTime startTime or {@code null} for none + */ + public ResourcePolicyWeeklyCycleDayOfWeek setStartTime(java.lang.String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public ResourcePolicyWeeklyCycleDayOfWeek set(String fieldName, Object value) { + return (ResourcePolicyWeeklyCycleDayOfWeek) super.set(fieldName, value); + } + + @Override + public ResourcePolicyWeeklyCycleDayOfWeek clone() { + return (ResourcePolicyWeeklyCycleDayOfWeek) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java new file mode 100644 index 00000000000..9396fb1f20f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java @@ -0,0 +1,141 @@ +/* + * 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 workload policy. + * + *

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 ResourcePolicyWorkloadPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies the topology required to create a partition for VMs that have interconnected GPUs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopologyMode; + + /** + * Specifies the maximum distance between instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maxTopologyDistance; + + /** + * Specifies the intent of the instance placement in the MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Specifies the topology required to create a partition for VMs that have interconnected GPUs. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * Specifies the topology required to create a partition for VMs that have interconnected GPUs. + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public ResourcePolicyWorkloadPolicy setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopologyMode() { + return acceleratorTopologyMode; + } + + /** + * Specifies the connection mode for the accelerator topology. If not specified, the default is + * AUTO_CONNECT. + * @param acceleratorTopologyMode acceleratorTopologyMode or {@code null} for none + */ + public ResourcePolicyWorkloadPolicy setAcceleratorTopologyMode(java.lang.String acceleratorTopologyMode) { + this.acceleratorTopologyMode = acceleratorTopologyMode; + return this; + } + + /** + * Specifies the maximum distance between instances. + * @return value or {@code null} for none + */ + public java.lang.String getMaxTopologyDistance() { + return maxTopologyDistance; + } + + /** + * Specifies the maximum distance between instances. + * @param maxTopologyDistance maxTopologyDistance or {@code null} for none + */ + public ResourcePolicyWorkloadPolicy setMaxTopologyDistance(java.lang.String maxTopologyDistance) { + this.maxTopologyDistance = maxTopologyDistance; + return this; + } + + /** + * Specifies the intent of the instance placement in the MIG. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Specifies the intent of the instance placement in the MIG. + * @param type type or {@code null} for none + */ + public ResourcePolicyWorkloadPolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public ResourcePolicyWorkloadPolicy set(String fieldName, Object value) { + return (ResourcePolicyWorkloadPolicy) super.set(fieldName, value); + } + + @Override + public ResourcePolicyWorkloadPolicy clone() { + return (ResourcePolicyWorkloadPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatus.java new file mode 100644 index 00000000000..45529ca6c4f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -0,0 +1,223 @@ +/* + * 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; + +/** + * Contains output only fields. Use this sub-message for actual values set on Instance attributes as + * compared to the value requested by the user (intent) in their instance CRUD calls. + * + *

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 ResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal + * instance settings, and instance-level predefined metadata keys to provide the overridden value + * for those metadata keys at the instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusEffectiveInstanceMetadata effectiveInstanceMetadata; + + /** + * Output only. [Output Only] The precise location of your instance within the zone's data center, + * including the block, sub-block, and host. The field is formatted as follows: + * blockId/subBlockId/hostId. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String physicalHost; + + /** + * Output only. [Output Only] A series of fields containing the global name of the Compute Engine + * cluster, as well as the ID of the block, sub-block, and host on which the running instance is + * located. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusPhysicalHostTopology physicalHostTopology; + + /** + * Output only. [Output Only] Reservation information that the instance is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusReservationConsumptionInfo reservationConsumptionInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusScheduling scheduling; + + /** + * Output only. [Output Only] Details about the instance stopping state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusShutdownDetails shutdownDetails; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UpcomingMaintenance upcomingMaintenance; + + /** + * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal + * instance settings, and instance-level predefined metadata keys to provide the overridden value + * for those metadata keys at the instance level. + * @return value or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { + return effectiveInstanceMetadata; + } + + /** + * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal + * instance settings, and instance-level predefined metadata keys to provide the overridden value + * for those metadata keys at the instance level. + * @param effectiveInstanceMetadata effectiveInstanceMetadata or {@code null} for none + */ + public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstanceMetadata effectiveInstanceMetadata) { + this.effectiveInstanceMetadata = effectiveInstanceMetadata; + return this; + } + + /** + * Output only. [Output Only] The precise location of your instance within the zone's data center, + * including the block, sub-block, and host. The field is formatted as follows: + * blockId/subBlockId/hostId. + * @return value or {@code null} for none + */ + public java.lang.String getPhysicalHost() { + return physicalHost; + } + + /** + * Output only. [Output Only] The precise location of your instance within the zone's data center, + * including the block, sub-block, and host. The field is formatted as follows: + * blockId/subBlockId/hostId. + * @param physicalHost physicalHost or {@code null} for none + */ + public ResourceStatus setPhysicalHost(java.lang.String physicalHost) { + this.physicalHost = physicalHost; + return this; + } + + /** + * Output only. [Output Only] A series of fields containing the global name of the Compute Engine + * cluster, as well as the ID of the block, sub-block, and host on which the running instance is + * located. + * @return value or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { + return physicalHostTopology; + } + + /** + * Output only. [Output Only] A series of fields containing the global name of the Compute Engine + * cluster, as well as the ID of the block, sub-block, and host on which the running instance is + * located. + * @param physicalHostTopology physicalHostTopology or {@code null} for none + */ + public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology physicalHostTopology) { + this.physicalHostTopology = physicalHostTopology; + return this; + } + + /** + * Output only. [Output Only] Reservation information that the instance is consuming from. + * @return value or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() { + return reservationConsumptionInfo; + } + + /** + * Output only. [Output Only] Reservation information that the instance is consuming from. + * @param reservationConsumptionInfo reservationConsumptionInfo or {@code null} for none + */ + public ResourceStatus setReservationConsumptionInfo(ResourceStatusReservationConsumptionInfo reservationConsumptionInfo) { + this.reservationConsumptionInfo = reservationConsumptionInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public ResourceStatusScheduling getScheduling() { + return scheduling; + } + + /** + * @param scheduling scheduling or {@code null} for none + */ + public ResourceStatus setScheduling(ResourceStatusScheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + /** + * Output only. [Output Only] Details about the instance stopping state. + * @return value or {@code null} for none + */ + public ResourceStatusShutdownDetails getShutdownDetails() { + return shutdownDetails; + } + + /** + * Output only. [Output Only] Details about the instance stopping state. + * @param shutdownDetails shutdownDetails or {@code null} for none + */ + public ResourceStatus setShutdownDetails(ResourceStatusShutdownDetails shutdownDetails) { + this.shutdownDetails = shutdownDetails; + return this; + } + + /** + * @return value or {@code null} for none + */ + public UpcomingMaintenance getUpcomingMaintenance() { + return upcomingMaintenance; + } + + /** + * @param upcomingMaintenance upcomingMaintenance or {@code null} for none + */ + public ResourceStatus setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { + this.upcomingMaintenance = upcomingMaintenance; + return this; + } + + @Override + public ResourceStatus set(String fieldName, Object value) { + return (ResourceStatus) super.set(fieldName, value); + } + + @Override + public ResourceStatus clone() { + return (ResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java new file mode 100644 index 00000000000..4ab03361f12 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java @@ -0,0 +1,258 @@ +/* + * 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; + +/** + * Effective values of predefined metadata keys for an instance. + * + *

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 ResourceStatusEffectiveInstanceMetadata extends com.google.api.client.json.GenericJson { + + /** + * Effective block-project-ssh-keys value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean blockProjectSshKeysMetadataValue; + + /** + * Effective enable-guest-attributes value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableGuestAttributesMetadataValue; + + /** + * Effective enable-os-inventory value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOsInventoryMetadataValue; + + /** + * Effective enable-osconfig value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOsconfigMetadataValue; + + /** + * Effective enable-oslogin value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOsloginMetadataValue; + + /** + * Effective gce-container-declaration value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean gceContainerDeclarationMetadataValue; + + /** + * Effective serial-port-enable value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean serialPortEnableMetadataValue; + + /** + * Effective serial-port-logging-enable value at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean serialPortLoggingEnableMetadataValue; + + /** + * Effective VM DNS setting at Instance level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vmDnsSettingMetadataValue; + + /** + * Effective block-project-ssh-keys value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBlockProjectSshKeysMetadataValue() { + return blockProjectSshKeysMetadataValue; + } + + /** + * Effective block-project-ssh-keys value at Instance level. + * @param blockProjectSshKeysMetadataValue blockProjectSshKeysMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setBlockProjectSshKeysMetadataValue(java.lang.Boolean blockProjectSshKeysMetadataValue) { + this.blockProjectSshKeysMetadataValue = blockProjectSshKeysMetadataValue; + return this; + } + + /** + * Effective enable-guest-attributes value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableGuestAttributesMetadataValue() { + return enableGuestAttributesMetadataValue; + } + + /** + * Effective enable-guest-attributes value at Instance level. + * @param enableGuestAttributesMetadataValue enableGuestAttributesMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableGuestAttributesMetadataValue(java.lang.Boolean enableGuestAttributesMetadataValue) { + this.enableGuestAttributesMetadataValue = enableGuestAttributesMetadataValue; + return this; + } + + /** + * Effective enable-os-inventory value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOsInventoryMetadataValue() { + return enableOsInventoryMetadataValue; + } + + /** + * Effective enable-os-inventory value at Instance level. + * @param enableOsInventoryMetadataValue enableOsInventoryMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableOsInventoryMetadataValue(java.lang.Boolean enableOsInventoryMetadataValue) { + this.enableOsInventoryMetadataValue = enableOsInventoryMetadataValue; + return this; + } + + /** + * Effective enable-osconfig value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOsconfigMetadataValue() { + return enableOsconfigMetadataValue; + } + + /** + * Effective enable-osconfig value at Instance level. + * @param enableOsconfigMetadataValue enableOsconfigMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableOsconfigMetadataValue(java.lang.Boolean enableOsconfigMetadataValue) { + this.enableOsconfigMetadataValue = enableOsconfigMetadataValue; + return this; + } + + /** + * Effective enable-oslogin value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOsloginMetadataValue() { + return enableOsloginMetadataValue; + } + + /** + * Effective enable-oslogin value at Instance level. + * @param enableOsloginMetadataValue enableOsloginMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(java.lang.Boolean enableOsloginMetadataValue) { + this.enableOsloginMetadataValue = enableOsloginMetadataValue; + return this; + } + + /** + * Effective gce-container-declaration value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGceContainerDeclarationMetadataValue() { + return gceContainerDeclarationMetadataValue; + } + + /** + * Effective gce-container-declaration value at Instance level. + * @param gceContainerDeclarationMetadataValue gceContainerDeclarationMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setGceContainerDeclarationMetadataValue(java.lang.Boolean gceContainerDeclarationMetadataValue) { + this.gceContainerDeclarationMetadataValue = gceContainerDeclarationMetadataValue; + return this; + } + + /** + * Effective serial-port-enable value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSerialPortEnableMetadataValue() { + return serialPortEnableMetadataValue; + } + + /** + * Effective serial-port-enable value at Instance level. + * @param serialPortEnableMetadataValue serialPortEnableMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setSerialPortEnableMetadataValue(java.lang.Boolean serialPortEnableMetadataValue) { + this.serialPortEnableMetadataValue = serialPortEnableMetadataValue; + return this; + } + + /** + * Effective serial-port-logging-enable value at Instance level. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSerialPortLoggingEnableMetadataValue() { + return serialPortLoggingEnableMetadataValue; + } + + /** + * Effective serial-port-logging-enable value at Instance level. + * @param serialPortLoggingEnableMetadataValue serialPortLoggingEnableMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setSerialPortLoggingEnableMetadataValue(java.lang.Boolean serialPortLoggingEnableMetadataValue) { + this.serialPortLoggingEnableMetadataValue = serialPortLoggingEnableMetadataValue; + return this; + } + + /** + * Effective VM DNS setting at Instance level. + * @return value or {@code null} for none + */ + public java.lang.String getVmDnsSettingMetadataValue() { + return vmDnsSettingMetadataValue; + } + + /** + * Effective VM DNS setting at Instance level. + * @param vmDnsSettingMetadataValue vmDnsSettingMetadataValue or {@code null} for none + */ + public ResourceStatusEffectiveInstanceMetadata setVmDnsSettingMetadataValue(java.lang.String vmDnsSettingMetadataValue) { + this.vmDnsSettingMetadataValue = vmDnsSettingMetadataValue; + return this; + } + + @Override + public ResourceStatusEffectiveInstanceMetadata set(String fieldName, Object value) { + return (ResourceStatusEffectiveInstanceMetadata) super.set(fieldName, value); + } + + @Override + public ResourceStatusEffectiveInstanceMetadata clone() { + return (ResourceStatusEffectiveInstanceMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java new file mode 100644 index 00000000000..d8b7c4199c9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java @@ -0,0 +1,174 @@ +/* + * 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 physical host topology of the host on which the VM is running. + * + *

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 ResourceStatusPhysicalHostTopology extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Additional location information of the running instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes; + + /** + * [Output Only] The ID of the block in which the running instance is located. Instances within + * the same block experience low network latency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String block; + + /** + * [Output Only] The global name of the Compute Engine cluster where the running instance is + * located. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cluster; + + /** + * [Output Only] The ID of the host on which the running instance is located. Instances on the + * same host experience the lowest possible network latency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * [Output Only] The ID of the sub-block in which the running instance is located. Instances in + * the same sub-block experience lower network latency than instances in the same block. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subblock; + + /** + * Output only. [Output Only] Additional location information of the running instance. + * @return value or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Output only. [Output Only] Additional location information of the running instance. + * @param additionalAttributes additionalAttributes or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setAdditionalAttributes(ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes) { + this.additionalAttributes = additionalAttributes; + return this; + } + + /** + * [Output Only] The ID of the block in which the running instance is located. Instances within + * the same block experience low network latency. + * @return value or {@code null} for none + */ + public java.lang.String getBlock() { + return block; + } + + /** + * [Output Only] The ID of the block in which the running instance is located. Instances within + * the same block experience low network latency. + * @param block block or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setBlock(java.lang.String block) { + this.block = block; + return this; + } + + /** + * [Output Only] The global name of the Compute Engine cluster where the running instance is + * located. + * @return value or {@code null} for none + */ + public java.lang.String getCluster() { + return cluster; + } + + /** + * [Output Only] The global name of the Compute Engine cluster where the running instance is + * located. + * @param cluster cluster or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setCluster(java.lang.String cluster) { + this.cluster = cluster; + return this; + } + + /** + * [Output Only] The ID of the host on which the running instance is located. Instances on the + * same host experience the lowest possible network latency. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * [Output Only] The ID of the host on which the running instance is located. Instances on the + * same host experience the lowest possible network latency. + * @param host host or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * [Output Only] The ID of the sub-block in which the running instance is located. Instances in + * the same sub-block experience lower network latency than instances in the same block. + * @return value or {@code null} for none + */ + public java.lang.String getSubblock() { + return subblock; + } + + /** + * [Output Only] The ID of the sub-block in which the running instance is located. Instances in + * the same sub-block experience lower network latency than instances in the same block. + * @param subblock subblock or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setSubblock(java.lang.String subblock) { + this.subblock = subblock; + return this; + } + + @Override + public ResourceStatusPhysicalHostTopology set(String fieldName, Object value) { + return (ResourceStatusPhysicalHostTopology) super.set(fieldName, value); + } + + @Override + public ResourceStatusPhysicalHostTopology clone() { + return (ResourceStatusPhysicalHostTopology) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java new file mode 100644 index 00000000000..29b35d78c50 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.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; + +/** + * Additional location information of the running instance. + * + *

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 ResourceStatusPhysicalHostTopologyAdditionalAttributes extends com.google.api.client.json.GenericJson { + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyIds; + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyIds() { + return acceleratorTopologyIds; + } + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * @param acceleratorTopologyIds acceleratorTopologyIds or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes setAcceleratorTopologyIds(java.util.Map acceleratorTopologyIds) { + this.acceleratorTopologyIds = acceleratorTopologyIds; + return this; + } + + @Override + public ResourceStatusPhysicalHostTopologyAdditionalAttributes set(String fieldName, Object value) { + return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.set(fieldName, value); + } + + @Override + public ResourceStatusPhysicalHostTopologyAdditionalAttributes clone() { + return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java new file mode 100644 index 00000000000..729022df29f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * Reservation consumption information that the instance is consuming from. + * + *

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 ResourceStatusReservationConsumptionInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The full resource name of the reservation that this instance is + * consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservation; + + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservationBlock; + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservationSubBlock; + + /** + * Output only. [Output Only] The full resource name of the reservation that this instance is + * consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservation() { + return consumedReservation; + } + + /** + * Output only. [Output Only] The full resource name of the reservation that this instance is + * consuming from. + * @param consumedReservation consumedReservation or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservation(java.lang.String consumedReservation) { + this.consumedReservation = consumedReservation; + return this; + } + + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservationBlock() { + return consumedReservationBlock; + } + + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * @param consumedReservationBlock consumedReservationBlock or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservationBlock(java.lang.String consumedReservationBlock) { + this.consumedReservationBlock = consumedReservationBlock; + return this; + } + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservationSubBlock() { + return consumedReservationSubBlock; + } + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * @param consumedReservationSubBlock consumedReservationSubBlock or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservationSubBlock(java.lang.String consumedReservationSubBlock) { + this.consumedReservationSubBlock = consumedReservationSubBlock; + return this; + } + + @Override + public ResourceStatusReservationConsumptionInfo set(String fieldName, Object value) { + return (ResourceStatusReservationConsumptionInfo) super.set(fieldName, value); + } + + @Override + public ResourceStatusReservationConsumptionInfo clone() { + return (ResourceStatusReservationConsumptionInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java new file mode 100644 index 00000000000..2a1bf416493 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java @@ -0,0 +1,123 @@ +/* + * 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 ResourceStatusScheduling. + * + *

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 ResourceStatusScheduling extends com.google.api.client.json.GenericJson { + + /** + * Specifies the availability domain to place the instance in. The value must be a number between + * 1 and the number of availability domains specified in the spread placement policy attached to + * the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer availabilityDomain; + + /** + * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, + * in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gracefulShutdownTimestamp; + + /** + * Time in future when the instance will be terminated inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String terminationTimestamp; + + /** + * Specifies the availability domain to place the instance in. The value must be a number between + * 1 and the number of availability domains specified in the spread placement policy attached to + * the instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * Specifies the availability domain to place the instance in. The value must be a number between + * 1 and the number of availability domains specified in the spread placement policy attached to + * the instance. + * @param availabilityDomain availabilityDomain or {@code null} for none + */ + public ResourceStatusScheduling setAvailabilityDomain(java.lang.Integer availabilityDomain) { + this.availabilityDomain = availabilityDomain; + return this; + } + + /** + * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, + * in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getGracefulShutdownTimestamp() { + return gracefulShutdownTimestamp; + } + + /** + * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, + * in RFC3339 text format. + * @param gracefulShutdownTimestamp gracefulShutdownTimestamp or {@code null} for none + */ + public ResourceStatusScheduling setGracefulShutdownTimestamp(java.lang.String gracefulShutdownTimestamp) { + this.gracefulShutdownTimestamp = gracefulShutdownTimestamp; + return this; + } + + /** + * Time in future when the instance will be terminated inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getTerminationTimestamp() { + return terminationTimestamp; + } + + /** + * Time in future when the instance will be terminated inRFC3339 text format. + * @param terminationTimestamp terminationTimestamp or {@code null} for none + */ + public ResourceStatusScheduling setTerminationTimestamp(java.lang.String terminationTimestamp) { + this.terminationTimestamp = terminationTimestamp; + return this; + } + + @Override + public ResourceStatusScheduling set(String fieldName, Object value) { + return (ResourceStatusScheduling) super.set(fieldName, value); + } + + @Override + public ResourceStatusScheduling clone() { + return (ResourceStatusScheduling) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java new file mode 100644 index 00000000000..58e7aced5d4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Specifies if the instance is in `PENDING_STOP` state or there is a programmed stop scheduled. + * + *

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 ResourceStatusShutdownDetails extends com.google.api.client.json.GenericJson { + + /** + * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxDuration; + + /** + * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestTimestamp; + + /** + * Current stopping state of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stopState; + + /** + * Target instance state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetState; + + /** + * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. + * @return value or {@code null} for none + */ + public Duration getMaxDuration() { + return maxDuration; + } + + /** + * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. + * @param maxDuration maxDuration or {@code null} for none + */ + public ResourceStatusShutdownDetails setMaxDuration(Duration maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getRequestTimestamp() { + return requestTimestamp; + } + + /** + * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. + * @param requestTimestamp requestTimestamp or {@code null} for none + */ + public ResourceStatusShutdownDetails setRequestTimestamp(java.lang.String requestTimestamp) { + this.requestTimestamp = requestTimestamp; + return this; + } + + /** + * Current stopping state of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getStopState() { + return stopState; + } + + /** + * Current stopping state of the instance. + * @param stopState stopState or {@code null} for none + */ + public ResourceStatusShutdownDetails setStopState(java.lang.String stopState) { + this.stopState = stopState; + return this; + } + + /** + * Target instance state. + * @return value or {@code null} for none + */ + public java.lang.String getTargetState() { + return targetState; + } + + /** + * Target instance state. + * @param targetState targetState or {@code null} for none + */ + public ResourceStatusShutdownDetails setTargetState(java.lang.String targetState) { + this.targetState = targetState; + return this; + } + + @Override + public ResourceStatusShutdownDetails set(String fieldName, Object value) { + return (ResourceStatusShutdownDetails) super.set(fieldName, value); + } + + @Override + public ResourceStatusShutdownDetails clone() { + return (ResourceStatusShutdownDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetails.java new file mode 100644 index 00000000000..cbd07a47aa6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetails.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * Detailed insights and metrics about a detected reliability risk. + * + *

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 RiskDetails extends com.google.api.client.json.GenericJson { + + /** + * The duration of the risk since it was detected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * Insight details for global DNS risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RiskDetailsGlobalDnsInsight globalDnsInsight; + + /** + * The last time the risk was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastUpdateTimestamp; + + /** + * The severity of the risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severity; + + /** + * The type of risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The duration of the risk since it was detected. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * The duration of the risk since it was detected. + * @param duration duration or {@code null} for none + */ + public RiskDetails setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * Insight details for global DNS risk. + * @return value or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight getGlobalDnsInsight() { + return globalDnsInsight; + } + + /** + * Insight details for global DNS risk. + * @param globalDnsInsight globalDnsInsight or {@code null} for none + */ + public RiskDetails setGlobalDnsInsight(RiskDetailsGlobalDnsInsight globalDnsInsight) { + this.globalDnsInsight = globalDnsInsight; + return this; + } + + /** + * The last time the risk was updated. + * @return value or {@code null} for none + */ + public String getLastUpdateTimestamp() { + return lastUpdateTimestamp; + } + + /** + * The last time the risk was updated. + * @param lastUpdateTimestamp lastUpdateTimestamp or {@code null} for none + */ + public RiskDetails setLastUpdateTimestamp(String lastUpdateTimestamp) { + this.lastUpdateTimestamp = lastUpdateTimestamp; + return this; + } + + /** + * The severity of the risk. + * @return value or {@code null} for none + */ + public java.lang.String getSeverity() { + return severity; + } + + /** + * The severity of the risk. + * @param severity severity or {@code null} for none + */ + public RiskDetails setSeverity(java.lang.String severity) { + this.severity = severity; + return this; + } + + /** + * The type of risk. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of risk. + * @param type type or {@code null} for none + */ + public RiskDetails setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public RiskDetails set(String fieldName, Object value) { + return (RiskDetails) super.set(fieldName, value); + } + + @Override + public RiskDetails clone() { + return (RiskDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java new file mode 100644 index 00000000000..6272a99c767 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java @@ -0,0 +1,138 @@ +/* + * 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; + +/** + * Detailed insights for a global DNS reliability risk. + * + *

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 RiskDetailsGlobalDnsInsight extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether the project's default DNS setting is global DNS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean projectDefaultIsGlobalDns; + + /** + * The observation window for the query counts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String queryObservationWindow; + + /** + * The number of queries that are risky. This is always less than or equal to total_query_count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long riskyQueryCount; + + /** + * The total number of queries in the observation window. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalQueryCount; + + /** + * Indicates whether the project's default DNS setting is global DNS. + * @return value or {@code null} for none + */ + public java.lang.Boolean getProjectDefaultIsGlobalDns() { + return projectDefaultIsGlobalDns; + } + + /** + * Indicates whether the project's default DNS setting is global DNS. + * @param projectDefaultIsGlobalDns projectDefaultIsGlobalDns or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setProjectDefaultIsGlobalDns(java.lang.Boolean projectDefaultIsGlobalDns) { + this.projectDefaultIsGlobalDns = projectDefaultIsGlobalDns; + return this; + } + + /** + * The observation window for the query counts. + * @return value or {@code null} for none + */ + public String getQueryObservationWindow() { + return queryObservationWindow; + } + + /** + * The observation window for the query counts. + * @param queryObservationWindow queryObservationWindow or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setQueryObservationWindow(String queryObservationWindow) { + this.queryObservationWindow = queryObservationWindow; + return this; + } + + /** + * The number of queries that are risky. This is always less than or equal to total_query_count. + * @return value or {@code null} for none + */ + public java.lang.Long getRiskyQueryCount() { + return riskyQueryCount; + } + + /** + * The number of queries that are risky. This is always less than or equal to total_query_count. + * @param riskyQueryCount riskyQueryCount or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setRiskyQueryCount(java.lang.Long riskyQueryCount) { + this.riskyQueryCount = riskyQueryCount; + return this; + } + + /** + * The total number of queries in the observation window. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalQueryCount() { + return totalQueryCount; + } + + /** + * The total number of queries in the observation window. + * @param totalQueryCount totalQueryCount or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setTotalQueryCount(java.lang.Long totalQueryCount) { + this.totalQueryCount = totalQueryCount; + return this; + } + + @Override + public RiskDetailsGlobalDnsInsight set(String fieldName, Object value) { + return (RiskDetailsGlobalDnsInsight) super.set(fieldName, value); + } + + @Override + public RiskDetailsGlobalDnsInsight clone() { + return (RiskDetailsGlobalDnsInsight) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java new file mode 100644 index 00000000000..12baa97f52a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Recommendation for mitigating a reliability risk, including a reference URL. + * + *

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 RiskRecommendation extends com.google.api.client.json.GenericJson { + + /** + * Mitigation guide for the risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * URL referencing a more detailed mitigation guide. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String referenceUrl; + + /** + * Mitigation guide for the risk. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * Mitigation guide for the risk. + * @param content content or {@code null} for none + */ + public RiskRecommendation setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * URL referencing a more detailed mitigation guide. + * @return value or {@code null} for none + */ + public java.lang.String getReferenceUrl() { + return referenceUrl; + } + + /** + * URL referencing a more detailed mitigation guide. + * @param referenceUrl referenceUrl or {@code null} for none + */ + public RiskRecommendation setReferenceUrl(java.lang.String referenceUrl) { + this.referenceUrl = referenceUrl; + return this; + } + + @Override + public RiskRecommendation set(String fieldName, Object value) { + return (RiskRecommendation) super.set(fieldName, value); + } + + @Override + public RiskRecommendation clone() { + return (RiskRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Rollout.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Rollout.java new file mode 100644 index 00000000000..5475815f67a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Rollout.java @@ -0,0 +1,471 @@ +/* + * 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; + +/** + * Rollout resource. + * + * A Rollout is a specific instance of a RolloutPlan. It represents a single execution of a strategy + * to roll out a specific resource. It also provides APIs to interact with the rollout. + * + *

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 Rollout extends com.google.api.client.json.GenericJson { + + /** + * Output only. The timestamp at which the Rollout was cancelled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cancellationTime; + + /** + * Output only. The timestamp at which the Rollout was completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String completionTime; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. The number of the currently running wave. Ex. 1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long currentWaveNumber; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. etag of the Rollout Ex. abc1234 + * 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] Type of the resource. Always compute#rollout for rollouts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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. The timestamp at which the Rollout was paused. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pauseTime; + + /** + * Output only. The timestamp at which the Rollout was resumed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resumeTime; + + /** + * Required. The resource being rolled out. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutRolloutEntity rolloutEntity; + + /** + * Required. Rollout Plan used to model the Rollout. Ex. + * compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. The current state of the Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Details about each wave of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List waveDetails; + + /** + * Output only. The timestamp at which the Rollout was cancelled. + * @return value or {@code null} for none + */ + public java.lang.String getCancellationTime() { + return cancellationTime; + } + + /** + * Output only. The timestamp at which the Rollout was cancelled. + * @param cancellationTime cancellationTime or {@code null} for none + */ + public Rollout setCancellationTime(java.lang.String cancellationTime) { + this.cancellationTime = cancellationTime; + return this; + } + + /** + * Output only. The timestamp at which the Rollout was completed. + * @return value or {@code null} for none + */ + public java.lang.String getCompletionTime() { + return completionTime; + } + + /** + * Output only. The timestamp at which the Rollout was completed. + * @param completionTime completionTime or {@code null} for none + */ + public Rollout setCompletionTime(java.lang.String completionTime) { + this.completionTime = completionTime; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Rollout setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. The number of the currently running wave. Ex. 1 + * @return value or {@code null} for none + */ + public java.lang.Long getCurrentWaveNumber() { + return currentWaveNumber; + } + + /** + * Output only. The number of the currently running wave. Ex. 1 + * @param currentWaveNumber currentWaveNumber or {@code null} for none + */ + public Rollout setCurrentWaveNumber(java.lang.Long currentWaveNumber) { + this.currentWaveNumber = currentWaveNumber; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Rollout setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. etag of the Rollout Ex. abc1234 + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. etag of the Rollout Ex. abc1234 + * @param etag etag or {@code null} for none + */ + public Rollout 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 Rollout setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. + * @param kind kind or {@code null} for none + */ + public Rollout setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 Rollout setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The timestamp at which the Rollout was paused. + * @return value or {@code null} for none + */ + public java.lang.String getPauseTime() { + return pauseTime; + } + + /** + * Output only. The timestamp at which the Rollout was paused. + * @param pauseTime pauseTime or {@code null} for none + */ + public Rollout setPauseTime(java.lang.String pauseTime) { + this.pauseTime = pauseTime; + return this; + } + + /** + * Output only. The timestamp at which the Rollout was resumed. + * @return value or {@code null} for none + */ + public java.lang.String getResumeTime() { + return resumeTime; + } + + /** + * Output only. The timestamp at which the Rollout was resumed. + * @param resumeTime resumeTime or {@code null} for none + */ + public Rollout setResumeTime(java.lang.String resumeTime) { + this.resumeTime = resumeTime; + return this; + } + + /** + * Required. The resource being rolled out. + * @return value or {@code null} for none + */ + public RolloutRolloutEntity getRolloutEntity() { + return rolloutEntity; + } + + /** + * Required. The resource being rolled out. + * @param rolloutEntity rolloutEntity or {@code null} for none + */ + public Rollout setRolloutEntity(RolloutRolloutEntity rolloutEntity) { + this.rolloutEntity = rolloutEntity; + return this; + } + + /** + * Required. Rollout Plan used to model the Rollout. Ex. + * compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 + * @return value or {@code null} for none + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** + * Required. Rollout Plan used to model the Rollout. Ex. + * compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 + * @param rolloutPlan rolloutPlan or {@code null} for none + */ + public Rollout setRolloutPlan(java.lang.String rolloutPlan) { + this.rolloutPlan = rolloutPlan; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public Rollout setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Rollout setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. The current state of the Rollout. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the Rollout. + * @param state state or {@code null} for none + */ + public Rollout setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Details about each wave of the rollout. + * @return value or {@code null} for none + */ + public java.util.List getWaveDetails() { + return waveDetails; + } + + /** + * Output only. Details about each wave of the rollout. + * @param waveDetails waveDetails or {@code null} for none + */ + public Rollout setWaveDetails(java.util.List waveDetails) { + this.waveDetails = waveDetails; + return this; + } + + @Override + public Rollout set(String fieldName, Object value) { + return (Rollout) super.set(fieldName, value); + } + + @Override + public Rollout clone() { + return (Rollout) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlan.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlan.java new file mode 100644 index 00000000000..712a6961446 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlan.java @@ -0,0 +1,280 @@ +/* + * 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; + +/** + * RolloutPlan resource. + * + * A RolloutPlan is the customer-defined strategy to divide a large-scale change into smaller + * increments, referred to as "waves". Each wave targets a specific portion of the overall affected + * area and defines criteria that must be met before progressing to the subsequent wave. + * + *

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 RolloutPlan extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the 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; + + /** + * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The location scope of the rollout plan. If not specified, the location scope is considered as + * ZONAL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationScope; + + /** + * Name of the resource. Provided by the client 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] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Required. The waves included in this rollout plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List waves; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public RolloutPlan setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public RolloutPlan 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 RolloutPlan setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * @param kind kind or {@code null} for none + */ + public RolloutPlan setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The location scope of the rollout plan. If not specified, the location scope is considered as + * ZONAL. + * @return value or {@code null} for none + */ + public java.lang.String getLocationScope() { + return locationScope; + } + + /** + * The location scope of the rollout plan. If not specified, the location scope is considered as + * ZONAL. + * @param locationScope locationScope or {@code null} for none + */ + public RolloutPlan setLocationScope(java.lang.String locationScope) { + this.locationScope = locationScope; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 RolloutPlan setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public RolloutPlan setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public RolloutPlan setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Required. The waves included in this rollout plan. + * @return value or {@code null} for none + */ + public java.util.List getWaves() { + return waves; + } + + /** + * Required. The waves included in this rollout plan. + * @param waves waves or {@code null} for none + */ + public RolloutPlan setWaves(java.util.List waves) { + this.waves = waves; + return this; + } + + @Override + public RolloutPlan set(String fieldName, Object value) { + return (RolloutPlan) super.set(fieldName, value); + } + + @Override + public RolloutPlan clone() { + return (RolloutPlan) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWave.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWave.java new file mode 100644 index 00000000000..40307993ced --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWave.java @@ -0,0 +1,168 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A single wave in a rollout plan. + * + *

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 RolloutPlanWave extends com.google.api.client.json.GenericJson { + + /** + * Optional. The display name of this wave of the rollout plan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The wave number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long number; + + /** + * Optional. The orchestration options for this wave. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutPlanWaveOrchestrationOptions orchestrationOptions; + + /** + * Required. The selectors for this wave. There is a logical AND between each selector defined in + * a wave, so a resource must satisfy the criteria of *all* the specified selectors to be in scope + * for the wave. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List selectors; + + /** + * Required. The validation to be performed at the end of this wave. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutPlanWaveValidation validation; + + /** + * Optional. The display name of this wave of the rollout plan. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of this wave of the rollout plan. + * @param displayName displayName or {@code null} for none + */ + public RolloutPlanWave setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The wave number. + * @return value or {@code null} for none + */ + public java.lang.Long getNumber() { + return number; + } + + /** + * Output only. The wave number. + * @param number number or {@code null} for none + */ + public RolloutPlanWave setNumber(java.lang.Long number) { + this.number = number; + return this; + } + + /** + * Optional. The orchestration options for this wave. + * @return value or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptions getOrchestrationOptions() { + return orchestrationOptions; + } + + /** + * Optional. The orchestration options for this wave. + * @param orchestrationOptions orchestrationOptions or {@code null} for none + */ + public RolloutPlanWave setOrchestrationOptions(RolloutPlanWaveOrchestrationOptions orchestrationOptions) { + this.orchestrationOptions = orchestrationOptions; + return this; + } + + /** + * Required. The selectors for this wave. There is a logical AND between each selector defined in + * a wave, so a resource must satisfy the criteria of *all* the specified selectors to be in scope + * for the wave. + * @return value or {@code null} for none + */ + public java.util.List getSelectors() { + return selectors; + } + + /** + * Required. The selectors for this wave. There is a logical AND between each selector defined in + * a wave, so a resource must satisfy the criteria of *all* the specified selectors to be in scope + * for the wave. + * @param selectors selectors or {@code null} for none + */ + public RolloutPlanWave setSelectors(java.util.List selectors) { + this.selectors = selectors; + return this; + } + + /** + * Required. The validation to be performed at the end of this wave. + * @return value or {@code null} for none + */ + public RolloutPlanWaveValidation getValidation() { + return validation; + } + + /** + * Required. The validation to be performed at the end of this wave. + * @param validation validation or {@code null} for none + */ + public RolloutPlanWave setValidation(RolloutPlanWaveValidation validation) { + this.validation = validation; + return this; + } + + @Override + public RolloutPlanWave set(String fieldName, Object value) { + return (RolloutPlanWave) super.set(fieldName, value); + } + + @Override + public RolloutPlanWave clone() { + return (RolloutPlanWave) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptions.java new file mode 100644 index 00000000000..c43dd0173f1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptions.java @@ -0,0 +1,121 @@ +/* + * 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; + +/** + * Options to control the pace of orchestration of a wave. These options are required only if the + * resource being rolled out follows the Orchestrated pattern. + * + *

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 RolloutPlanWaveOrchestrationOptions extends com.google.api.client.json.GenericJson { + + /** + * Optional. Delays, if any, to be added between batches of projects. We allow multiple Delays to + * be specified, letting users set separate delays between batches of projects corresponding to + * different locations and batches of projects corresponding to the same location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List delays; + + /** + * Optional. Maximum number of locations to be orchestrated in parallel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxConcurrentLocations; + + /** + * Optional. Maximum number of resources to be orchestrated per location in parallel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxConcurrentResourcesPerLocation; + + /** + * Optional. Delays, if any, to be added between batches of projects. We allow multiple Delays to + * be specified, letting users set separate delays between batches of projects corresponding to + * different locations and batches of projects corresponding to the same location. + * @return value or {@code null} for none + */ + public java.util.List getDelays() { + return delays; + } + + /** + * Optional. Delays, if any, to be added between batches of projects. We allow multiple Delays to + * be specified, letting users set separate delays between batches of projects corresponding to + * different locations and batches of projects corresponding to the same location. + * @param delays delays or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptions setDelays(java.util.List delays) { + this.delays = delays; + return this; + } + + /** + * Optional. Maximum number of locations to be orchestrated in parallel. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxConcurrentLocations() { + return maxConcurrentLocations; + } + + /** + * Optional. Maximum number of locations to be orchestrated in parallel. + * @param maxConcurrentLocations maxConcurrentLocations or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptions setMaxConcurrentLocations(java.lang.Long maxConcurrentLocations) { + this.maxConcurrentLocations = maxConcurrentLocations; + return this; + } + + /** + * Optional. Maximum number of resources to be orchestrated per location in parallel. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxConcurrentResourcesPerLocation() { + return maxConcurrentResourcesPerLocation; + } + + /** + * Optional. Maximum number of resources to be orchestrated per location in parallel. + * @param maxConcurrentResourcesPerLocation maxConcurrentResourcesPerLocation or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptions setMaxConcurrentResourcesPerLocation(java.lang.Long maxConcurrentResourcesPerLocation) { + this.maxConcurrentResourcesPerLocation = maxConcurrentResourcesPerLocation; + return this; + } + + @Override + public RolloutPlanWaveOrchestrationOptions set(String fieldName, Object value) { + return (RolloutPlanWaveOrchestrationOptions) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveOrchestrationOptions clone() { + return (RolloutPlanWaveOrchestrationOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java new file mode 100644 index 00000000000..148270883be --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveOrchestrationOptionsDelay.java @@ -0,0 +1,141 @@ +/* + * 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; + +/** + * Options to control the delay, if any, between batches of projects. + * + *

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 RolloutPlanWaveOrchestrationOptionsDelay extends com.google.api.client.json.GenericJson { + + /** + * Optional. Controls whether the delay should only be added between batches of projects + * corresponding to different locations, or also between batches of projects corresponding to the + * same location. + * + * Must be set to DELIMITER_UNSPECIFIED if no delay is to be added. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String delimiter; + + /** + * Optional. The duration of the delay, if any, to be added between batches of projects. A zero + * duration corresponds to no delay. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * Optional. Controls whether the specified duration is to be added at the end of each batch, or + * if the total processing time for each batch will be padded if needed to meet the specified + * duration. + * + * Must be set to TYPE_UNSPECIFIED if no delay is to be added. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. Controls whether the delay should only be added between batches of projects + * corresponding to different locations, or also between batches of projects corresponding to the + * same location. + * + * Must be set to DELIMITER_UNSPECIFIED if no delay is to be added. + * @return value or {@code null} for none + */ + public java.lang.String getDelimiter() { + return delimiter; + } + + /** + * Optional. Controls whether the delay should only be added between batches of projects + * corresponding to different locations, or also between batches of projects corresponding to the + * same location. + * + * Must be set to DELIMITER_UNSPECIFIED if no delay is to be added. + * @param delimiter delimiter or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptionsDelay setDelimiter(java.lang.String delimiter) { + this.delimiter = delimiter; + return this; + } + + /** + * Optional. The duration of the delay, if any, to be added between batches of projects. A zero + * duration corresponds to no delay. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * Optional. The duration of the delay, if any, to be added between batches of projects. A zero + * duration corresponds to no delay. + * @param duration duration or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptionsDelay setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * Optional. Controls whether the specified duration is to be added at the end of each batch, or + * if the total processing time for each batch will be padded if needed to meet the specified + * duration. + * + * Must be set to TYPE_UNSPECIFIED if no delay is to be added. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Optional. Controls whether the specified duration is to be added at the end of each batch, or + * if the total processing time for each batch will be padded if needed to meet the specified + * duration. + * + * Must be set to TYPE_UNSPECIFIED if no delay is to be added. + * @param type type or {@code null} for none + */ + public RolloutPlanWaveOrchestrationOptionsDelay setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public RolloutPlanWaveOrchestrationOptionsDelay set(String fieldName, Object value) { + return (RolloutPlanWaveOrchestrationOptionsDelay) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveOrchestrationOptionsDelay clone() { + return (RolloutPlanWaveOrchestrationOptionsDelay) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelector.java new file mode 100644 index 00000000000..e7d7953f174 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelector.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A selector which specifies what resource(s) are included in a given wave. + * + *

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 RolloutPlanWaveSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. Roll out to resources by Cloud locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutPlanWaveSelectorLocationSelector locationSelector; + + /** + * Optional. Roll out to resources by Cloud Resource Manager resource hierarchy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutPlanWaveSelectorResourceHierarchySelector resourceHierarchySelector; + + /** + * Optional. Roll out to resources by Cloud locations. + * @return value or {@code null} for none + */ + public RolloutPlanWaveSelectorLocationSelector getLocationSelector() { + return locationSelector; + } + + /** + * Optional. Roll out to resources by Cloud locations. + * @param locationSelector locationSelector or {@code null} for none + */ + public RolloutPlanWaveSelector setLocationSelector(RolloutPlanWaveSelectorLocationSelector locationSelector) { + this.locationSelector = locationSelector; + return this; + } + + /** + * Optional. Roll out to resources by Cloud Resource Manager resource hierarchy. + * @return value or {@code null} for none + */ + public RolloutPlanWaveSelectorResourceHierarchySelector getResourceHierarchySelector() { + return resourceHierarchySelector; + } + + /** + * Optional. Roll out to resources by Cloud Resource Manager resource hierarchy. + * @param resourceHierarchySelector resourceHierarchySelector or {@code null} for none + */ + public RolloutPlanWaveSelector setResourceHierarchySelector(RolloutPlanWaveSelectorResourceHierarchySelector resourceHierarchySelector) { + this.resourceHierarchySelector = resourceHierarchySelector; + return this; + } + + @Override + public RolloutPlanWaveSelector set(String fieldName, Object value) { + return (RolloutPlanWaveSelector) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveSelector clone() { + return (RolloutPlanWaveSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorLocationSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorLocationSelector.java new file mode 100644 index 00000000000..a73943b08ad --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorLocationSelector.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; + +/** + * Roll out to resources by location. + * + *

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 RolloutPlanWaveSelectorLocationSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. Example: "us-central1-a" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedLocations; + + /** + * Optional. Example: "us-central1-a" + * @return value or {@code null} for none + */ + public java.util.List getIncludedLocations() { + return includedLocations; + } + + /** + * Optional. Example: "us-central1-a" + * @param includedLocations includedLocations or {@code null} for none + */ + public RolloutPlanWaveSelectorLocationSelector setIncludedLocations(java.util.List includedLocations) { + this.includedLocations = includedLocations; + return this; + } + + @Override + public RolloutPlanWaveSelectorLocationSelector set(String fieldName, Object value) { + return (RolloutPlanWaveSelectorLocationSelector) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveSelectorLocationSelector clone() { + return (RolloutPlanWaveSelectorLocationSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorResourceHierarchySelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorResourceHierarchySelector.java new file mode 100644 index 00000000000..4910eccc108 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveSelectorResourceHierarchySelector.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Roll out to resources by Cloud Resource Manager resource hierarchy nodes such as projects, + * folders, orgs. + * + *

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 RolloutPlanWaveSelectorResourceHierarchySelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. Format: "folders/{folder_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedFolders; + + /** + * Optional. Format: "organizations/{organization_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedOrganizations; + + /** + * Optional. Format: "projects/{project_id}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedProjects; + + /** + * Optional. Format: "folders/{folder_id}" + * @return value or {@code null} for none + */ + public java.util.List getIncludedFolders() { + return includedFolders; + } + + /** + * Optional. Format: "folders/{folder_id}" + * @param includedFolders includedFolders or {@code null} for none + */ + public RolloutPlanWaveSelectorResourceHierarchySelector setIncludedFolders(java.util.List includedFolders) { + this.includedFolders = includedFolders; + return this; + } + + /** + * Optional. Format: "organizations/{organization_id}" + * @return value or {@code null} for none + */ + public java.util.List getIncludedOrganizations() { + return includedOrganizations; + } + + /** + * Optional. Format: "organizations/{organization_id}" + * @param includedOrganizations includedOrganizations or {@code null} for none + */ + public RolloutPlanWaveSelectorResourceHierarchySelector setIncludedOrganizations(java.util.List includedOrganizations) { + this.includedOrganizations = includedOrganizations; + return this; + } + + /** + * Optional. Format: "projects/{project_id}" + * @return value or {@code null} for none + */ + public java.util.List getIncludedProjects() { + return includedProjects; + } + + /** + * Optional. Format: "projects/{project_id}" + * @param includedProjects includedProjects or {@code null} for none + */ + public RolloutPlanWaveSelectorResourceHierarchySelector setIncludedProjects(java.util.List includedProjects) { + this.includedProjects = includedProjects; + return this; + } + + @Override + public RolloutPlanWaveSelectorResourceHierarchySelector set(String fieldName, Object value) { + return (RolloutPlanWaveSelectorResourceHierarchySelector) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveSelectorResourceHierarchySelector clone() { + return (RolloutPlanWaveSelectorResourceHierarchySelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidation.java new file mode 100644 index 00000000000..700a024c26c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidation.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The validation to be performed before progressing to the next wave. + * + *

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 RolloutPlanWaveValidation extends com.google.api.client.json.GenericJson { + + /** + * Optional. Metadata required if type = "time". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutPlanWaveValidationTimeBasedValidationMetadata timeBasedValidationMetadata; + + /** + * Required. The type of the validation. If a type of validation is associated with a metadata + * object, the appropriate metadata field mapping to the validation type must be provided in the + * validation message. Possible values are in quotes below alongside an explanation: "manual": + * The system waits for an end-user approval API before progressing to the next wave. + * "time": The system waits for a user specified duration before progressing to the next wave. + * TimeBasedValidation must be provided. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. Metadata required if type = "time". + * @return value or {@code null} for none + */ + public RolloutPlanWaveValidationTimeBasedValidationMetadata getTimeBasedValidationMetadata() { + return timeBasedValidationMetadata; + } + + /** + * Optional. Metadata required if type = "time". + * @param timeBasedValidationMetadata timeBasedValidationMetadata or {@code null} for none + */ + public RolloutPlanWaveValidation setTimeBasedValidationMetadata(RolloutPlanWaveValidationTimeBasedValidationMetadata timeBasedValidationMetadata) { + this.timeBasedValidationMetadata = timeBasedValidationMetadata; + return this; + } + + /** + * Required. The type of the validation. If a type of validation is associated with a metadata + * object, the appropriate metadata field mapping to the validation type must be provided in the + * validation message. Possible values are in quotes below alongside an explanation: "manual": + * The system waits for an end-user approval API before progressing to the next wave. + * "time": The system waits for a user specified duration before progressing to the next wave. + * TimeBasedValidation must be provided. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The type of the validation. If a type of validation is associated with a metadata + * object, the appropriate metadata field mapping to the validation type must be provided in the + * validation message. Possible values are in quotes below alongside an explanation: "manual": + * The system waits for an end-user approval API before progressing to the next wave. + * "time": The system waits for a user specified duration before progressing to the next wave. + * TimeBasedValidation must be provided. + * @param type type or {@code null} for none + */ + public RolloutPlanWaveValidation setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public RolloutPlanWaveValidation set(String fieldName, Object value) { + return (RolloutPlanWaveValidation) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveValidation clone() { + return (RolloutPlanWaveValidation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java new file mode 100644 index 00000000000..6bbdf15d273 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.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; + +/** + * Metadata required if type = "time". + * + *

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 RolloutPlanWaveValidationTimeBasedValidationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The duration that the system waits in between waves. This wait starts after all + * changes in the wave are rolled out. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String waitDuration; + + /** + * Optional. The duration that the system waits in between waves. This wait starts after all + * changes in the wave are rolled out. + * @return value or {@code null} for none + */ + public String getWaitDuration() { + return waitDuration; + } + + /** + * Optional. The duration that the system waits in between waves. This wait starts after all + * changes in the wave are rolled out. + * @param waitDuration waitDuration or {@code null} for none + */ + public RolloutPlanWaveValidationTimeBasedValidationMetadata setWaitDuration(String waitDuration) { + this.waitDuration = waitDuration; + return this; + } + + @Override + public RolloutPlanWaveValidationTimeBasedValidationMetadata set(String fieldName, Object value) { + return (RolloutPlanWaveValidationTimeBasedValidationMetadata) super.set(fieldName, value); + } + + @Override + public RolloutPlanWaveValidationTimeBasedValidationMetadata clone() { + return (RolloutPlanWaveValidationTimeBasedValidationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java new file mode 100644 index 00000000000..3a9effce6fd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java @@ -0,0 +1,407 @@ +/* + * 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; + +/** + * Contains a list of RolloutPlan resources. + * + *

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 RolloutPlansListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 RolloutPlan 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 RolloutPlan 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(RolloutPlan.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RolloutPlansListResponse 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 RolloutPlansListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of RolloutPlan resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of RolloutPlan resources. + * @param items items or {@code null} for none + */ + public RolloutPlansListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RolloutPlansListResponse 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 RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public RolloutPlansListResponse 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 RolloutPlansListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RolloutPlansListResponse set(String fieldName, Object value) { + return (RolloutPlansListResponse) super.set(fieldName, value); + } + + @Override + public RolloutPlansListResponse clone() { + return (RolloutPlansListResponse) 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 RolloutPlansListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntity.java new file mode 100644 index 00000000000..6cb1318f50f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntity.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; + +/** + * Specifications of the resource to roll out. + * + *

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 RolloutRolloutEntity extends com.google.api.client.json.GenericJson { + + /** + * Optional. Entity details for products using the Orchestrated Integration model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutRolloutEntityOrchestratedEntity orchestratedEntity; + + /** + * Optional. Entity details for products using the Orchestrated Integration model. + * @return value or {@code null} for none + */ + public RolloutRolloutEntityOrchestratedEntity getOrchestratedEntity() { + return orchestratedEntity; + } + + /** + * Optional. Entity details for products using the Orchestrated Integration model. + * @param orchestratedEntity orchestratedEntity or {@code null} for none + */ + public RolloutRolloutEntity setOrchestratedEntity(RolloutRolloutEntityOrchestratedEntity orchestratedEntity) { + this.orchestratedEntity = orchestratedEntity; + return this; + } + + @Override + public RolloutRolloutEntity set(String fieldName, Object value) { + return (RolloutRolloutEntity) super.set(fieldName, value); + } + + @Override + public RolloutRolloutEntity clone() { + return (RolloutRolloutEntity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntityOrchestratedEntity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntityOrchestratedEntity.java new file mode 100644 index 00000000000..17812331028 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutRolloutEntityOrchestratedEntity.java @@ -0,0 +1,145 @@ +/* + * 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; + +/** + * This message is used if the resource type follows the Orchestrated integration model with + * ProgressiveRollout. + * + *

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 RolloutRolloutEntityOrchestratedEntity extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies the behavior of the Rollout if an out of band update is detected in a + * project during a Rollout. It can be one of the following values: 1) overwrite : Overwrite the + * local value with the rollout value. 2) no_overwrite : Do not overwrite the local value with the + * rollout value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conflictBehavior; + + /** + * Required. Orchestration action during the Rollout. It can be one of the following values: 1) + * "update": Resources will be updated by the rollout. 2) "delete": Resources will be deleted by + * the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orchestrationAction; + + /** + * Required. Fully qualified resource name of the resource which contains the source of truth of + * the configuration being rolled out across locations/projects. For example, in the case of a + * global Rollout which is applied across regions, this contains the name of the global resource + * created by the user which contains a payload for a resource that is orchestrated across + * regions. This follows the following format: //.googleapis.com/projects//locations/global// e.g. + * //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orchestrationSource; + + /** + * Required. Specifies the behavior of the Rollout if an out of band update is detected in a + * project during a Rollout. It can be one of the following values: 1) overwrite : Overwrite the + * local value with the rollout value. 2) no_overwrite : Do not overwrite the local value with the + * rollout value. + * @return value or {@code null} for none + */ + public java.lang.String getConflictBehavior() { + return conflictBehavior; + } + + /** + * Required. Specifies the behavior of the Rollout if an out of band update is detected in a + * project during a Rollout. It can be one of the following values: 1) overwrite : Overwrite the + * local value with the rollout value. 2) no_overwrite : Do not overwrite the local value with the + * rollout value. + * @param conflictBehavior conflictBehavior or {@code null} for none + */ + public RolloutRolloutEntityOrchestratedEntity setConflictBehavior(java.lang.String conflictBehavior) { + this.conflictBehavior = conflictBehavior; + return this; + } + + /** + * Required. Orchestration action during the Rollout. It can be one of the following values: 1) + * "update": Resources will be updated by the rollout. 2) "delete": Resources will be deleted by + * the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getOrchestrationAction() { + return orchestrationAction; + } + + /** + * Required. Orchestration action during the Rollout. It can be one of the following values: 1) + * "update": Resources will be updated by the rollout. 2) "delete": Resources will be deleted by + * the rollout. + * @param orchestrationAction orchestrationAction or {@code null} for none + */ + public RolloutRolloutEntityOrchestratedEntity setOrchestrationAction(java.lang.String orchestrationAction) { + this.orchestrationAction = orchestrationAction; + return this; + } + + /** + * Required. Fully qualified resource name of the resource which contains the source of truth of + * the configuration being rolled out across locations/projects. For example, in the case of a + * global Rollout which is applied across regions, this contains the name of the global resource + * created by the user which contains a payload for a resource that is orchestrated across + * regions. This follows the following format: //.googleapis.com/projects//locations/global// e.g. + * //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 + * @return value or {@code null} for none + */ + public java.lang.String getOrchestrationSource() { + return orchestrationSource; + } + + /** + * Required. Fully qualified resource name of the resource which contains the source of truth of + * the configuration being rolled out across locations/projects. For example, in the case of a + * global Rollout which is applied across regions, this contains the name of the global resource + * created by the user which contains a payload for a resource that is orchestrated across + * regions. This follows the following format: //.googleapis.com/projects//locations/global// e.g. + * //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 + * @param orchestrationSource orchestrationSource or {@code null} for none + */ + public RolloutRolloutEntityOrchestratedEntity setOrchestrationSource(java.lang.String orchestrationSource) { + this.orchestrationSource = orchestrationSource; + return this; + } + + @Override + public RolloutRolloutEntityOrchestratedEntity set(String fieldName, Object value) { + return (RolloutRolloutEntityOrchestratedEntity) super.set(fieldName, value); + } + + @Override + public RolloutRolloutEntityOrchestratedEntity clone() { + return (RolloutRolloutEntityOrchestratedEntity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetails.java new file mode 100644 index 00000000000..53349d70d9e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetails.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Additional metadata about the status of each wave provided by the server. + * + *

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 RolloutWaveDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Additional details of the wave for products using the Orchestrated Integration + * model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RolloutWaveDetailsOrchestratedWaveDetails orchestratedWaveDetails; + + /** + * Output only. Wave name. Ex. wave1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String waveDisplayName; + + /** + * Output only. System generated number for the wave. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long waveNumber; + + /** + * Output only. Additional details of the wave for products using the Orchestrated Integration + * model. + * @return value or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails getOrchestratedWaveDetails() { + return orchestratedWaveDetails; + } + + /** + * Output only. Additional details of the wave for products using the Orchestrated Integration + * model. + * @param orchestratedWaveDetails orchestratedWaveDetails or {@code null} for none + */ + public RolloutWaveDetails setOrchestratedWaveDetails(RolloutWaveDetailsOrchestratedWaveDetails orchestratedWaveDetails) { + this.orchestratedWaveDetails = orchestratedWaveDetails; + return this; + } + + /** + * Output only. Wave name. Ex. wave1 + * @return value or {@code null} for none + */ + public java.lang.String getWaveDisplayName() { + return waveDisplayName; + } + + /** + * Output only. Wave name. Ex. wave1 + * @param waveDisplayName waveDisplayName or {@code null} for none + */ + public RolloutWaveDetails setWaveDisplayName(java.lang.String waveDisplayName) { + this.waveDisplayName = waveDisplayName; + return this; + } + + /** + * Output only. System generated number for the wave. + * @return value or {@code null} for none + */ + public java.lang.Long getWaveNumber() { + return waveNumber; + } + + /** + * Output only. System generated number for the wave. + * @param waveNumber waveNumber or {@code null} for none + */ + public RolloutWaveDetails setWaveNumber(java.lang.Long waveNumber) { + this.waveNumber = waveNumber; + return this; + } + + @Override + public RolloutWaveDetails set(String fieldName, Object value) { + return (RolloutWaveDetails) super.set(fieldName, value); + } + + @Override + public RolloutWaveDetails clone() { + return (RolloutWaveDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java new file mode 100644 index 00000000000..a7b6ac697b0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java @@ -0,0 +1,198 @@ +/* + * 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; + +/** + * Details of the wave for products using the Orchestrated integration model. + * + *

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 RolloutWaveDetailsOrchestratedWaveDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Resource completed so far. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long completedResourcesCount; + + /** + * Output only. Estimated timestamp at which the wave will complete. Extrapolated from current + * progress. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String estimatedCompletionTime; + + /** + * Output only. Estimated total count of resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long estimatedTotalResourcesCount; + + /** + * Output only. Locations that failed during orchestration, and ProgressiveRollout stopped + * retrying. There may be some successful resources rolled out in the wave as the location may + * have failed later in the Rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List failedLocations; + + /** + * Output only. Resources failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long failedResourcesCount; + + /** + * Output only. Status of each location in the wave. Map keys (locations) must be specified like + * "us-east1" or "asia-west1-a". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locationStatus; + + /** + * Output only. Resource completed so far. + * @return value or {@code null} for none + */ + public java.lang.Long getCompletedResourcesCount() { + return completedResourcesCount; + } + + /** + * Output only. Resource completed so far. + * @param completedResourcesCount completedResourcesCount or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails setCompletedResourcesCount(java.lang.Long completedResourcesCount) { + this.completedResourcesCount = completedResourcesCount; + return this; + } + + /** + * Output only. Estimated timestamp at which the wave will complete. Extrapolated from current + * progress. + * @return value or {@code null} for none + */ + public java.lang.String getEstimatedCompletionTime() { + return estimatedCompletionTime; + } + + /** + * Output only. Estimated timestamp at which the wave will complete. Extrapolated from current + * progress. + * @param estimatedCompletionTime estimatedCompletionTime or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails setEstimatedCompletionTime(java.lang.String estimatedCompletionTime) { + this.estimatedCompletionTime = estimatedCompletionTime; + return this; + } + + /** + * Output only. Estimated total count of resources. + * @return value or {@code null} for none + */ + public java.lang.Long getEstimatedTotalResourcesCount() { + return estimatedTotalResourcesCount; + } + + /** + * Output only. Estimated total count of resources. + * @param estimatedTotalResourcesCount estimatedTotalResourcesCount or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails setEstimatedTotalResourcesCount(java.lang.Long estimatedTotalResourcesCount) { + this.estimatedTotalResourcesCount = estimatedTotalResourcesCount; + return this; + } + + /** + * Output only. Locations that failed during orchestration, and ProgressiveRollout stopped + * retrying. There may be some successful resources rolled out in the wave as the location may + * have failed later in the Rollout. + * @return value or {@code null} for none + */ + public java.util.List getFailedLocations() { + return failedLocations; + } + + /** + * Output only. Locations that failed during orchestration, and ProgressiveRollout stopped + * retrying. There may be some successful resources rolled out in the wave as the location may + * have failed later in the Rollout. + * @param failedLocations failedLocations or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails setFailedLocations(java.util.List failedLocations) { + this.failedLocations = failedLocations; + return this; + } + + /** + * Output only. Resources failed. + * @return value or {@code null} for none + */ + public java.lang.Long getFailedResourcesCount() { + return failedResourcesCount; + } + + /** + * Output only. Resources failed. + * @param failedResourcesCount failedResourcesCount or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails setFailedResourcesCount(java.lang.Long failedResourcesCount) { + this.failedResourcesCount = failedResourcesCount; + return this; + } + + /** + * Output only. Status of each location in the wave. Map keys (locations) must be specified like + * "us-east1" or "asia-west1-a". + * @return value or {@code null} for none + */ + public java.util.Map getLocationStatus() { + return locationStatus; + } + + /** + * Output only. Status of each location in the wave. Map keys (locations) must be specified like + * "us-east1" or "asia-west1-a". + * @param locationStatus locationStatus or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetails setLocationStatus(java.util.Map locationStatus) { + this.locationStatus = locationStatus; + return this; + } + + @Override + public RolloutWaveDetailsOrchestratedWaveDetails set(String fieldName, Object value) { + return (RolloutWaveDetailsOrchestratedWaveDetails) super.set(fieldName, value); + } + + @Override + public RolloutWaveDetailsOrchestratedWaveDetails clone() { + return (RolloutWaveDetailsOrchestratedWaveDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java new file mode 100644 index 00000000000..8bd3d4af3f0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.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 the status of a location in a wave. + * + *

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 RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Location state of the wave. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Location state of the wave. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. Location state of the wave. + * @param state state or {@code null} for none + */ + public RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus set(String fieldName, Object value) { + return (RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus) super.set(fieldName, value); + } + + @Override + public RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus clone() { + return (RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java new file mode 100644 index 00000000000..b42505b739c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java @@ -0,0 +1,407 @@ +/* + * 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 RolloutsListResponse. + * + *

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 RolloutsListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 Rollout 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 Rollout 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(Rollout.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RolloutsListResponse 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 RolloutsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Rollout resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Rollout resources. + * @param items items or {@code null} for none + */ + public RolloutsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RolloutsListResponse 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 RolloutsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public RolloutsListResponse 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 RolloutsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RolloutsListResponse set(String fieldName, Object value) { + return (RolloutsListResponse) super.set(fieldName, value); + } + + @Override + public RolloutsListResponse clone() { + return (RolloutsListResponse) 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 RolloutsListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Route.java new file mode 100644 index 00000000000..9bbc14042e0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Route.java @@ -0,0 +1,1009 @@ +/* + * 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 Route resource. + * + * A route defines a path from VM instances in the VPC network to a specific destination. This + * destination can be inside or outside the VPC network. For more information, read theRoutes + * overview. + * + *

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 Route extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] AS path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List asPaths; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this field when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are + * supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format + * (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destRange; + + /** + * 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] Type of this resource. Always compute#routes for Route resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Fully-qualified URL of the network that this route applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * The URL to a gateway that should handle matching packets. You can only specify the internet + * gateway using a full or partial valid URL: projects/project/global/gateways/default-internet- + * gateway + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopGateway; + + /** + * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that + * will handle matching packets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopHub; + + /** + * The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching + * packets or the IP address of the forwarding Rule. For example, the following are all valid + * URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/for + * wardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule + * + * If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 + * address in RFC 4291 format. For example, the following are all valid IP addresses: + * - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 + * + * IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). + * Should never be an IPv4-mapped IPv6 address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopIlb; + + /** + * The URL to an instance that should handle matching packets. You can specify this as a full or + * partial URL. For example: + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopInstance; + + /** + * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates + * based on factors such as network performance, distance, and available bandwidth between + * regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long nextHopInterRegionCost; + + /** + * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the + * route. This field will only be populated for dynamic routes generated by Cloud Router with a + * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopInterconnectAttachment; + + /** + * The network IP address of an instance that should handle matching packets. Both IPv6 address + * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. + * 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or + * 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format + * (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopIp; + + /** + * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the + * desirability of a particular route in a network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long nextHopMed; + + /** + * The URL of the local network if it should handle matching packets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopNetwork; + + /** + * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway + * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopOrigin; + + /** + * Output only. [Output Only] The network peering name that should handle matching packets, which + * should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopPeering; + + /** + * The URL to a VpnTunnel that should handle matching packets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextHopVpnTunnel; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouteParams params; + + /** + * The priority of this route. Priority is used to break ties in cases where there is more than + * one matching route of equal prefix length. In cases where multiple routes have equal prefix + * length, the one with the lowest-numbered priority value wins. The default value is `1000`. The + * priority value must be from `0` to `65535`, inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long priority; + + /** + * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud + * Routers. It is also applicable to routes undergoing migration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String routeStatus; + + /** + * Output only. [Output Only] The type of this route, which can be one of the following values: - + * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will + * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' + * for a route learned from a BGP peer of this router - 'STATIC' for a static route + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String routeType; + + /** + * [Output Only] Server-defined fully-qualified URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * A list of instance tags to which this route applies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * Output only. [Output Only] If potential misconfigurations are detected for this route, this + * field will be populated with warning messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + static { + // hack to force ProGuard to consider Warnings 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(Warnings.class); + } + + /** + * Output only. [Output Only] AS path. + * @return value or {@code null} for none + */ + public java.util.List getAsPaths() { + return asPaths; + } + + /** + * Output only. [Output Only] AS path. + * @param asPaths asPaths or {@code null} for none + */ + public Route setAsPaths(java.util.List asPaths) { + this.asPaths = asPaths; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Route setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this field when you create the resource. + * @param description description or {@code null} for none + */ + public Route setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are + * supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format + * (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. + * @return value or {@code null} for none + */ + public java.lang.String getDestRange() { + return destRange; + } + + /** + * The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are + * supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format + * (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. + * @param destRange destRange or {@code null} for none + */ + public Route setDestRange(java.lang.String destRange) { + this.destRange = destRange; + 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 Route setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * @param kind kind or {@code null} for none + */ + public Route setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Provided by the client 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])?`. The first character must be + * a lowercase letter, and all following characters (except for the last character) must be a + * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + * @param name name or {@code null} for none + */ + public Route setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Fully-qualified URL of the network that this route applies to. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Fully-qualified URL of the network that this route applies to. + * @param network network or {@code null} for none + */ + public Route setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * The URL to a gateway that should handle matching packets. You can only specify the internet + * gateway using a full or partial valid URL: projects/project/global/gateways/default-internet- + * gateway + * @return value or {@code null} for none + */ + public java.lang.String getNextHopGateway() { + return nextHopGateway; + } + + /** + * The URL to a gateway that should handle matching packets. You can only specify the internet + * gateway using a full or partial valid URL: projects/project/global/gateways/default-internet- + * gateway + * @param nextHopGateway nextHopGateway or {@code null} for none + */ + public Route setNextHopGateway(java.lang.String nextHopGateway) { + this.nextHopGateway = nextHopGateway; + return this; + } + + /** + * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that + * will handle matching packets. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopHub() { + return nextHopHub; + } + + /** + * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that + * will handle matching packets. + * @param nextHopHub nextHopHub or {@code null} for none + */ + public Route setNextHopHub(java.lang.String nextHopHub) { + this.nextHopHub = nextHopHub; + return this; + } + + /** + * The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching + * packets or the IP address of the forwarding Rule. For example, the following are all valid + * URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/for + * wardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule + * + * If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 + * address in RFC 4291 format. For example, the following are all valid IP addresses: + * - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 + * + * IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). + * Should never be an IPv4-mapped IPv6 address. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopIlb() { + return nextHopIlb; + } + + /** + * The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching + * packets or the IP address of the forwarding Rule. For example, the following are all valid + * URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/for + * wardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule + * + * If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 + * address in RFC 4291 format. For example, the following are all valid IP addresses: + * - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 + * + * IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). + * Should never be an IPv4-mapped IPv6 address. + * @param nextHopIlb nextHopIlb or {@code null} for none + */ + public Route setNextHopIlb(java.lang.String nextHopIlb) { + this.nextHopIlb = nextHopIlb; + return this; + } + + /** + * The URL to an instance that should handle matching packets. You can specify this as a full or + * partial URL. For example: + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ + * @return value or {@code null} for none + */ + public java.lang.String getNextHopInstance() { + return nextHopInstance; + } + + /** + * The URL to an instance that should handle matching packets. You can specify this as a full or + * partial URL. For example: + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ + * @param nextHopInstance nextHopInstance or {@code null} for none + */ + public Route setNextHopInstance(java.lang.String nextHopInstance) { + this.nextHopInstance = nextHopInstance; + return this; + } + + /** + * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates + * based on factors such as network performance, distance, and available bandwidth between + * regions. + * @return value or {@code null} for none + */ + public java.lang.Long getNextHopInterRegionCost() { + return nextHopInterRegionCost; + } + + /** + * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates + * based on factors such as network performance, distance, and available bandwidth between + * regions. + * @param nextHopInterRegionCost nextHopInterRegionCost or {@code null} for none + */ + public Route setNextHopInterRegionCost(java.lang.Long nextHopInterRegionCost) { + this.nextHopInterRegionCost = nextHopInterRegionCost; + return this; + } + + /** + * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the + * route. This field will only be populated for dynamic routes generated by Cloud Router with a + * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopInterconnectAttachment() { + return nextHopInterconnectAttachment; + } + + /** + * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the + * route. This field will only be populated for dynamic routes generated by Cloud Router with a + * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. + * @param nextHopInterconnectAttachment nextHopInterconnectAttachment or {@code null} for none + */ + public Route setNextHopInterconnectAttachment(java.lang.String nextHopInterconnectAttachment) { + this.nextHopInterconnectAttachment = nextHopInterconnectAttachment; + return this; + } + + /** + * The network IP address of an instance that should handle matching packets. Both IPv6 address + * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. + * 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or + * 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format + * (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopIp() { + return nextHopIp; + } + + /** + * The network IP address of an instance that should handle matching packets. Both IPv6 address + * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. + * 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or + * 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format + * (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. + * @param nextHopIp nextHopIp or {@code null} for none + */ + public Route setNextHopIp(java.lang.String nextHopIp) { + this.nextHopIp = nextHopIp; + return this; + } + + /** + * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the + * desirability of a particular route in a network. + * @return value or {@code null} for none + */ + public java.lang.Long getNextHopMed() { + return nextHopMed; + } + + /** + * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the + * desirability of a particular route in a network. + * @param nextHopMed nextHopMed or {@code null} for none + */ + public Route setNextHopMed(java.lang.Long nextHopMed) { + this.nextHopMed = nextHopMed; + return this; + } + + /** + * The URL of the local network if it should handle matching packets. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopNetwork() { + return nextHopNetwork; + } + + /** + * The URL of the local network if it should handle matching packets. + * @param nextHopNetwork nextHopNetwork or {@code null} for none + */ + public Route setNextHopNetwork(java.lang.String nextHopNetwork) { + this.nextHopNetwork = nextHopNetwork; + return this; + } + + /** + * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway + * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopOrigin() { + return nextHopOrigin; + } + + /** + * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway + * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + * @param nextHopOrigin nextHopOrigin or {@code null} for none + */ + public Route setNextHopOrigin(java.lang.String nextHopOrigin) { + this.nextHopOrigin = nextHopOrigin; + return this; + } + + /** + * Output only. [Output Only] The network peering name that should handle matching packets, which + * should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopPeering() { + return nextHopPeering; + } + + /** + * Output only. [Output Only] The network peering name that should handle matching packets, which + * should conform to RFC1035. + * @param nextHopPeering nextHopPeering or {@code null} for none + */ + public Route setNextHopPeering(java.lang.String nextHopPeering) { + this.nextHopPeering = nextHopPeering; + return this; + } + + /** + * The URL to a VpnTunnel that should handle matching packets. + * @return value or {@code null} for none + */ + public java.lang.String getNextHopVpnTunnel() { + return nextHopVpnTunnel; + } + + /** + * The URL to a VpnTunnel that should handle matching packets. + * @param nextHopVpnTunnel nextHopVpnTunnel or {@code null} for none + */ + public Route setNextHopVpnTunnel(java.lang.String nextHopVpnTunnel) { + this.nextHopVpnTunnel = nextHopVpnTunnel; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public RouteParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Route setParams(RouteParams params) { + this.params = params; + return this; + } + + /** + * The priority of this route. Priority is used to break ties in cases where there is more than + * one matching route of equal prefix length. In cases where multiple routes have equal prefix + * length, the one with the lowest-numbered priority value wins. The default value is `1000`. The + * priority value must be from `0` to `65535`, inclusive. + * @return value or {@code null} for none + */ + public java.lang.Long getPriority() { + return priority; + } + + /** + * The priority of this route. Priority is used to break ties in cases where there is more than + * one matching route of equal prefix length. In cases where multiple routes have equal prefix + * length, the one with the lowest-numbered priority value wins. The default value is `1000`. The + * priority value must be from `0` to `65535`, inclusive. + * @param priority priority or {@code null} for none + */ + public Route setPriority(java.lang.Long priority) { + this.priority = priority; + return this; + } + + /** + * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud + * Routers. It is also applicable to routes undergoing migration. + * @return value or {@code null} for none + */ + public java.lang.String getRouteStatus() { + return routeStatus; + } + + /** + * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud + * Routers. It is also applicable to routes undergoing migration. + * @param routeStatus routeStatus or {@code null} for none + */ + public Route setRouteStatus(java.lang.String routeStatus) { + this.routeStatus = routeStatus; + return this; + } + + /** + * Output only. [Output Only] The type of this route, which can be one of the following values: - + * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will + * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' + * for a route learned from a BGP peer of this router - 'STATIC' for a static route + * @return value or {@code null} for none + */ + public java.lang.String getRouteType() { + return routeType; + } + + /** + * Output only. [Output Only] The type of this route, which can be one of the following values: - + * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will + * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' + * for a route learned from a BGP peer of this router - 'STATIC' for a static route + * @param routeType routeType or {@code null} for none + */ + public Route setRouteType(java.lang.String routeType) { + this.routeType = routeType; + return this; + } + + /** + * [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public Route setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * A list of instance tags to which this route applies. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * A list of instance tags to which this route applies. + * @param tags tags or {@code null} for none + */ + public Route setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + /** + * Output only. [Output Only] If potential misconfigurations are detected for this route, this + * field will be populated with warning messages. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * Output only. [Output Only] If potential misconfigurations are detected for this route, this + * field will be populated with warning messages. + * @param warnings warnings or {@code null} for none + */ + public Route setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + @Override + public Route set(String fieldName, Object value) { + return (Route) super.set(fieldName, value); + } + + @Override + public Route clone() { + return (Route) super.clone(); + } + + /** + * Model definition for RouteWarnings. + */ + public static final class Warnings 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 Warnings 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 Warnings 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 Warnings setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warnings set(String fieldName, Object value) { + return (Warnings) super.set(fieldName, value); + } + + @Override + public Warnings clone() { + return (Warnings) super.clone(); + } + + /** + * Model definition for RouteWarningsData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RouteAsPath.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteAsPath.java new file mode 100644 index 00000000000..208ef310598 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteAsPath.java @@ -0,0 +1,105 @@ +/* + * 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 RouteAsPath. + * + *

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 RouteAsPath extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The AS numbers of the AS Path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List asLists; + + /** + * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': + * unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered + * set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of + * Member Autonomous Systems in the local confederation that the route has traversed - + * 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the + * route has traversed + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathSegmentType; + + /** + * [Output Only] The AS numbers of the AS Path. + * @return value or {@code null} for none + */ + public java.util.List getAsLists() { + return asLists; + } + + /** + * [Output Only] The AS numbers of the AS Path. + * @param asLists asLists or {@code null} for none + */ + public RouteAsPath setAsLists(java.util.List asLists) { + this.asLists = asLists; + return this; + } + + /** + * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': + * unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered + * set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of + * Member Autonomous Systems in the local confederation that the route has traversed - + * 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the + * route has traversed + * @return value or {@code null} for none + */ + public java.lang.String getPathSegmentType() { + return pathSegmentType; + } + + /** + * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': + * unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered + * set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of + * Member Autonomous Systems in the local confederation that the route has traversed - + * 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the + * route has traversed + * @param pathSegmentType pathSegmentType or {@code null} for none + */ + public RouteAsPath setPathSegmentType(java.lang.String pathSegmentType) { + this.pathSegmentType = pathSegmentType; + return this; + } + + @Override + public RouteAsPath set(String fieldName, Object value) { + return (RouteAsPath) super.set(fieldName, value); + } + + @Override + public RouteAsPath clone() { + return (RouteAsPath) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteList.java new file mode 100644 index 00000000000..bc1c11b00d2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of Route resources. + * + *

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 RouteList extends com.google.api.client.json.GenericJson { + + /** + * [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 Route 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 Route 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(Route.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 RouteList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Route resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Route resources. + * @param items items or {@code null} for none + */ + public RouteList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public RouteList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RouteList 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 RouteList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 RouteList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RouteList set(String fieldName, Object value) { + return (RouteList) super.set(fieldName, value); + } + + @Override + public RouteList clone() { + return (RouteList) 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 RouteListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RouteParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteParams.java new file mode 100644 index 00000000000..94a41a3a143 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouteParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional route parameters. + * + *

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 RouteParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public RouteParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public RouteParams set(String fieldName, Object value) { + return (RouteParams) super.set(fieldName, value); + } + + @Override + public RouteParams clone() { + return (RouteParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicy.java new file mode 100644 index 00000000000..2574b27f78e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicy.java @@ -0,0 +1,218 @@ +/* + * 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 RoutePolicy. + * + *

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 RoutePolicy extends com.google.api.client.json.GenericJson { + + /** + * An optional description of route policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of + * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update Route Policy. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Route Policy name, which must be a resource ID segment and unique within all the router's Route + * Policies. Name should conform to RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * List of terms (the order in the list is not important, they are evaluated in order of + * priority). Order of policies is not retained and might change when getting policy later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List terms; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * An optional description of route policy. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of route policy. + * @param description description or {@code null} for none + */ + public RoutePolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of + * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update Route Policy. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of + * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update Route Policy. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of + * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update Route Policy. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public RoutePolicy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of + * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update Route Policy. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public RoutePolicy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Route Policy name, which must be a resource ID segment and unique within all the router's Route + * Policies. Name should conform to RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Route Policy name, which must be a resource ID segment and unique within all the router's Route + * Policies. Name should conform to RFC1035. + * @param name name or {@code null} for none + */ + public RoutePolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * List of terms (the order in the list is not important, they are evaluated in order of + * priority). Order of policies is not retained and might change when getting policy later. + * @return value or {@code null} for none + */ + public java.util.List getTerms() { + return terms; + } + + /** + * List of terms (the order in the list is not important, they are evaluated in order of + * priority). Order of policies is not retained and might change when getting policy later. + * @param terms terms or {@code null} for none + */ + public RoutePolicy setTerms(java.util.List terms) { + this.terms = terms; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * @param type type or {@code null} for none + */ + public RoutePolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public RoutePolicy set(String fieldName, Object value) { + return (RoutePolicy) super.set(fieldName, value); + } + + @Override + public RoutePolicy clone() { + return (RoutePolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicyPolicyTerm.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicyPolicyTerm.java new file mode 100644 index 00000000000..5e3be9bb5f4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutePolicyPolicyTerm.java @@ -0,0 +1,126 @@ +/* + * 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 RoutePolicyPolicyTerm. + * + *

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 RoutePolicyPolicyTerm extends com.google.api.client.json.GenericJson { + + /** + * CEL expressions to evaluate to modify a route when this term matches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List actions; + + static { + // hack to force ProGuard to consider Expr 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(Expr.class); + } + + /** + * CEL expression evaluated against a route to determine if this term applies. When not set, the + * term applies to all routes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr match; + + /** + * The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 + * (exclusive), and unique within the list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * CEL expressions to evaluate to modify a route when this term matches. + * @return value or {@code null} for none + */ + public java.util.List getActions() { + return actions; + } + + /** + * CEL expressions to evaluate to modify a route when this term matches. + * @param actions actions or {@code null} for none + */ + public RoutePolicyPolicyTerm setActions(java.util.List actions) { + this.actions = actions; + return this; + } + + /** + * CEL expression evaluated against a route to determine if this term applies. When not set, the + * term applies to all routes. + * @return value or {@code null} for none + */ + public Expr getMatch() { + return match; + } + + /** + * CEL expression evaluated against a route to determine if this term applies. When not set, the + * term applies to all routes. + * @param match match or {@code null} for none + */ + public RoutePolicyPolicyTerm setMatch(Expr match) { + this.match = match; + return this; + } + + /** + * The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 + * (exclusive), and unique within the list. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 + * (exclusive), and unique within the list. + * @param priority priority or {@code null} for none + */ + public RoutePolicyPolicyTerm setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + @Override + public RoutePolicyPolicyTerm set(String fieldName, Object value) { + return (RoutePolicyPolicyTerm) super.set(fieldName, value); + } + + @Override + public RoutePolicyPolicyTerm clone() { + return (RoutePolicyPolicyTerm) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Router.java new file mode 100644 index 00000000000..07fab3bd08e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Router.java @@ -0,0 +1,470 @@ +/* + * 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 Cloud Router resource. + * + * For more information about Cloud Router, read theCloud Router overview. + * + *

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 Router extends com.google.api.client.json.GenericJson { + + /** + * BGP information specific to this router. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouterBgp bgp; + + /** + * BGP information that must be configured into the routing stack to establish BGP peering. This + * information must specify the peer ASN and either the interface name, IP address, or peer IP + * address. Please refer toRFC4273. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bgpPeers; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Indicates if a router is dedicated for use with encrypted VLAN attachments + * (interconnectAttachments). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean encryptedInterconnectRouter; + + /** + * [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; + + /** + * Router interfaces. To create a BGP peer that uses a router interface, the interface must have + * one of the following fields specified: - linkedVpnTunnel - + * linkedInterconnectAttachment - subnetwork + * + * You can create a router interface without any of these fields specified. However, you cannot + * create a BGP peer that uses that interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interfaces; + + /** + * Output only. [Output Only] Type of resource. Always compute#router for routers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Keys used for MD5 authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List md5AuthenticationKeys; + + /** + * Name of the resource. Provided by the client 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; + + /** + * A list of NAT services created in this router. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nats; + + /** + * URI of the ncc_gateway to which this router associated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nccGateway; + + /** + * URI of the network to which this router belongs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouterParams params; + + /** + * [Output Only] URI of the region where the router resides. You must specify this field as part + * of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * BGP information specific to this router. + * @return value or {@code null} for none + */ + public RouterBgp getBgp() { + return bgp; + } + + /** + * BGP information specific to this router. + * @param bgp bgp or {@code null} for none + */ + public Router setBgp(RouterBgp bgp) { + this.bgp = bgp; + return this; + } + + /** + * BGP information that must be configured into the routing stack to establish BGP peering. This + * information must specify the peer ASN and either the interface name, IP address, or peer IP + * address. Please refer toRFC4273. + * @return value or {@code null} for none + */ + public java.util.List getBgpPeers() { + return bgpPeers; + } + + /** + * BGP information that must be configured into the routing stack to establish BGP peering. This + * information must specify the peer ASN and either the interface name, IP address, or peer IP + * address. Please refer toRFC4273. + * @param bgpPeers bgpPeers or {@code null} for none + */ + public Router setBgpPeers(java.util.List bgpPeers) { + this.bgpPeers = bgpPeers; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Router setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Router setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Indicates if a router is dedicated for use with encrypted VLAN attachments + * (interconnectAttachments). + * @return value or {@code null} for none + */ + public java.lang.Boolean getEncryptedInterconnectRouter() { + return encryptedInterconnectRouter; + } + + /** + * Indicates if a router is dedicated for use with encrypted VLAN attachments + * (interconnectAttachments). + * @param encryptedInterconnectRouter encryptedInterconnectRouter or {@code null} for none + */ + public Router setEncryptedInterconnectRouter(java.lang.Boolean encryptedInterconnectRouter) { + this.encryptedInterconnectRouter = encryptedInterconnectRouter; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public Router setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Router interfaces. To create a BGP peer that uses a router interface, the interface must have + * one of the following fields specified: - linkedVpnTunnel - + * linkedInterconnectAttachment - subnetwork + * + * You can create a router interface without any of these fields specified. However, you cannot + * create a BGP peer that uses that interface. + * @return value or {@code null} for none + */ + public java.util.List getInterfaces() { + return interfaces; + } + + /** + * Router interfaces. To create a BGP peer that uses a router interface, the interface must have + * one of the following fields specified: - linkedVpnTunnel - + * linkedInterconnectAttachment - subnetwork + * + * You can create a router interface without any of these fields specified. However, you cannot + * create a BGP peer that uses that interface. + * @param interfaces interfaces or {@code null} for none + */ + public Router setInterfaces(java.util.List interfaces) { + this.interfaces = interfaces; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#router for routers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#router for routers. + * @param kind kind or {@code null} for none + */ + public Router setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Keys used for MD5 authentication. + * @return value or {@code null} for none + */ + public java.util.List getMd5AuthenticationKeys() { + return md5AuthenticationKeys; + } + + /** + * Keys used for MD5 authentication. + * @param md5AuthenticationKeys md5AuthenticationKeys or {@code null} for none + */ + public Router setMd5AuthenticationKeys(java.util.List md5AuthenticationKeys) { + this.md5AuthenticationKeys = md5AuthenticationKeys; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 Router setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A list of NAT services created in this router. + * @return value or {@code null} for none + */ + public java.util.List getNats() { + return nats; + } + + /** + * A list of NAT services created in this router. + * @param nats nats or {@code null} for none + */ + public Router setNats(java.util.List nats) { + this.nats = nats; + return this; + } + + /** + * URI of the ncc_gateway to which this router associated. + * @return value or {@code null} for none + */ + public java.lang.String getNccGateway() { + return nccGateway; + } + + /** + * URI of the ncc_gateway to which this router associated. + * @param nccGateway nccGateway or {@code null} for none + */ + public Router setNccGateway(java.lang.String nccGateway) { + this.nccGateway = nccGateway; + return this; + } + + /** + * URI of the network to which this router belongs. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * URI of the network to which this router belongs. + * @param network network or {@code null} for none + */ + public Router setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public RouterParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Router setParams(RouterParams params) { + this.params = params; + return this; + } + + /** + * [Output Only] URI of the region where the router resides. You must specify this field as part + * of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] URI of the region where the router resides. You must specify this field as part + * of the HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public Router setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Router setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public Router set(String fieldName, Object value) { + return (Router) super.set(fieldName, value); + } + + @Override + public Router clone() { + return (Router) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAdvertisedIpRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAdvertisedIpRange.java new file mode 100644 index 00000000000..564ee2620cc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAdvertisedIpRange.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Description-tagged IP ranges for the router to advertise. + * + *

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 RouterAdvertisedIpRange extends com.google.api.client.json.GenericJson { + + /** + * User-specified description for the IP range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The IP range to advertise. The value must be a CIDR-formatted string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String range; + + /** + * User-specified description for the IP range. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * User-specified description for the IP range. + * @param description description or {@code null} for none + */ + public RouterAdvertisedIpRange setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The IP range to advertise. The value must be a CIDR-formatted string. + * @return value or {@code null} for none + */ + public java.lang.String getRange() { + return range; + } + + /** + * The IP range to advertise. The value must be a CIDR-formatted string. + * @param range range or {@code null} for none + */ + public RouterAdvertisedIpRange setRange(java.lang.String range) { + this.range = range; + return this; + } + + @Override + public RouterAdvertisedIpRange set(String fieldName, Object value) { + return (RouterAdvertisedIpRange) super.set(fieldName, value); + } + + @Override + public RouterAdvertisedIpRange clone() { + return (RouterAdvertisedIpRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java new file mode 100644 index 00000000000..0aeaa989995 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of routers. + * + *

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 RouterAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 Router resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 RouterAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Router resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of Router resources. + * @param items items or {@code null} for none + */ + public RouterAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public RouterAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RouterAggregatedList 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 RouterAggregatedList 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 RouterAggregatedList 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 RouterAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RouterAggregatedList set(String fieldName, Object value) { + return (RouterAggregatedList) super.set(fieldName, value); + } + + @Override + public RouterAggregatedList clone() { + return (RouterAggregatedList) 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 RouterAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RouterBgp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgp.java new file mode 100644 index 00000000000..a9729f15425 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgp.java @@ -0,0 +1,258 @@ +/* + * 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 RouterBgp. + * + *

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 RouterBgp extends com.google.api.client.json.GenericJson { + + /** + * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or + * CUSTOM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String advertiseMode; + + /** + * User-specified list of prefix groups to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These + * groups will be advertised in addition to any specified prefixes. Leave this field blank to + * advertise no custom groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List advertisedGroups; + + /** + * User-specified list of individual IP ranges to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP + * ranges will be advertised in addition to any specified groups. Leave this field blank to + * advertise no custom IP ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List advertisedIpRanges; + + static { + // hack to force ProGuard to consider RouterAdvertisedIpRange 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(RouterAdvertisedIpRange.class); + } + + /** + * Local BGP Autonomous System Number (ASN). Must be anRFC6996 private ASN, either 16-bit or + * 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this + * router will have the same local ASN. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long asn; + + /** + * Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a + * link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are + * over IPv6. It must not overlap with any IPv4 BGP session ranges. + * + * Other vendors commonly call this "router ID". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identifierRange; + + /** + * The interval in seconds between BGP keepalive messages that are sent to the peer. + * + * Hold time is three times the interval at which keepalive messages are sent, and the hold time + * is the maximum number of seconds allowed to elapse between successive keepalive messages that + * BGP receives from a peer. + * + * BGP will use the smaller of either the local hold time value or the peer's hold time value as + * the hold time for the BGP connection between the two peers. + * + * If set, this value must be between 20 and 60. The default is 20. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long keepaliveInterval; + + /** + * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or + * CUSTOM. + * @return value or {@code null} for none + */ + public java.lang.String getAdvertiseMode() { + return advertiseMode; + } + + /** + * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or + * CUSTOM. + * @param advertiseMode advertiseMode or {@code null} for none + */ + public RouterBgp setAdvertiseMode(java.lang.String advertiseMode) { + this.advertiseMode = advertiseMode; + return this; + } + + /** + * User-specified list of prefix groups to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These + * groups will be advertised in addition to any specified prefixes. Leave this field blank to + * advertise no custom groups. + * @return value or {@code null} for none + */ + public java.util.List getAdvertisedGroups() { + return advertisedGroups; + } + + /** + * User-specified list of prefix groups to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These + * groups will be advertised in addition to any specified prefixes. Leave this field blank to + * advertise no custom groups. + * @param advertisedGroups advertisedGroups or {@code null} for none + */ + public RouterBgp setAdvertisedGroups(java.util.List advertisedGroups) { + this.advertisedGroups = advertisedGroups; + return this; + } + + /** + * User-specified list of individual IP ranges to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP + * ranges will be advertised in addition to any specified groups. Leave this field blank to + * advertise no custom IP ranges. + * @return value or {@code null} for none + */ + public java.util.List getAdvertisedIpRanges() { + return advertisedIpRanges; + } + + /** + * User-specified list of individual IP ranges to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP + * ranges will be advertised in addition to any specified groups. Leave this field blank to + * advertise no custom IP ranges. + * @param advertisedIpRanges advertisedIpRanges or {@code null} for none + */ + public RouterBgp setAdvertisedIpRanges(java.util.List advertisedIpRanges) { + this.advertisedIpRanges = advertisedIpRanges; + return this; + } + + /** + * Local BGP Autonomous System Number (ASN). Must be anRFC6996 private ASN, either 16-bit or + * 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this + * router will have the same local ASN. + * @return value or {@code null} for none + */ + public java.lang.Long getAsn() { + return asn; + } + + /** + * Local BGP Autonomous System Number (ASN). Must be anRFC6996 private ASN, either 16-bit or + * 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this + * router will have the same local ASN. + * @param asn asn or {@code null} for none + */ + public RouterBgp setAsn(java.lang.Long asn) { + this.asn = asn; + return this; + } + + /** + * Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a + * link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are + * over IPv6. It must not overlap with any IPv4 BGP session ranges. + * + * Other vendors commonly call this "router ID". + * @return value or {@code null} for none + */ + public java.lang.String getIdentifierRange() { + return identifierRange; + } + + /** + * Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a + * link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are + * over IPv6. It must not overlap with any IPv4 BGP session ranges. + * + * Other vendors commonly call this "router ID". + * @param identifierRange identifierRange or {@code null} for none + */ + public RouterBgp setIdentifierRange(java.lang.String identifierRange) { + this.identifierRange = identifierRange; + return this; + } + + /** + * The interval in seconds between BGP keepalive messages that are sent to the peer. + * + * Hold time is three times the interval at which keepalive messages are sent, and the hold time + * is the maximum number of seconds allowed to elapse between successive keepalive messages that + * BGP receives from a peer. + * + * BGP will use the smaller of either the local hold time value or the peer's hold time value as + * the hold time for the BGP connection between the two peers. + * + * If set, this value must be between 20 and 60. The default is 20. + * @return value or {@code null} for none + */ + public java.lang.Long getKeepaliveInterval() { + return keepaliveInterval; + } + + /** + * The interval in seconds between BGP keepalive messages that are sent to the peer. + * + * Hold time is three times the interval at which keepalive messages are sent, and the hold time + * is the maximum number of seconds allowed to elapse between successive keepalive messages that + * BGP receives from a peer. + * + * BGP will use the smaller of either the local hold time value or the peer's hold time value as + * the hold time for the BGP connection between the two peers. + * + * If set, this value must be between 20 and 60. The default is 20. + * @param keepaliveInterval keepaliveInterval or {@code null} for none + */ + public RouterBgp setKeepaliveInterval(java.lang.Long keepaliveInterval) { + this.keepaliveInterval = keepaliveInterval; + return this; + } + + @Override + public RouterBgp set(String fieldName, Object value) { + return (RouterBgp) super.set(fieldName, value); + } + + @Override + public RouterBgp clone() { + return (RouterBgp) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java new file mode 100644 index 00000000000..b133d765ef9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -0,0 +1,717 @@ +/* + * 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 RouterBgpPeer. + * + *

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 RouterBgpPeer extends com.google.api.client.json.GenericJson { + + /** + * User-specified flag to indicate which mode to use for advertisement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String advertiseMode; + + /** + * User-specified list of prefix groups to advertise in custom mode, which currently supports the + * following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This + * excludes any routes learned for subnets that use VPC Network Peering. + * + * Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list + * defined for the router (in the "bgp" message). These groups are advertised in addition to any + * specified prefixes. Leave this field blank to advertise no custom groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List advertisedGroups; + + /** + * User-specified list of individual IP ranges to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the + * "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this + * field blank to advertise no custom IP ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List advertisedIpRanges; + + static { + // hack to force ProGuard to consider RouterAdvertisedIpRange 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(RouterAdvertisedIpRange.class); + } + + /** + * The priority of routes advertised to this BGP peer. Where there is more than one matching route + * of maximum length, the routes with the lowest priority value win. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long advertisedRoutePriority; + + /** + * BFD configuration for the BGP peering. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouterBgpPeerBfd bfd; + + /** + * A list of user-defined custom learned route IP address ranges for a BGP session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customLearnedIpRanges; + + /** + * The user-defined custom learned route priority for a BGP session. This value is applied to all + * custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you + * don't provide a value, Google Cloud assigns a priority of `100` to the ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer customLearnedRoutePriority; + + /** + * The status of the BGP peer connection. + * + * If set to FALSE, any active session with the peer is terminated and all associated routing + * information is removed. If set to TRUE, the peer connection can be established with routing + * information. The default is TRUE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enable; + + /** + * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableIpv4; + + /** + * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableIpv6; + + /** + * List of export policies applied to this peer, in the order they must be evaluated. The name + * must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exportPolicies; + + /** + * List of import policies applied to this peer, in the order they must be evaluated. The name + * must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List importPolicies; + + /** + * Name of the interface the BGP peer is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interfaceName; + + /** + * IP address of the interface inside Google Cloud Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * IPv4 address of the interface inside Google Cloud Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv4NexthopAddress; + + /** + * IPv6 address of the interface inside Google Cloud Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6NexthopAddress; + + /** + * Output only. [Output Only] The resource that configures and manages this BGP peer. - + * MANAGED_BY_USER is the default value and can be managed by you or other users - + * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, + * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is + * created, updated, or deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String managementType; + + /** + * Present if MD5 authentication is enabled for the peering. Must be the name of one of the + * entries in the Router.md5_authentication_keys. The field must comply with RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String md5AuthenticationKeyName; + + /** + * Name of this BGP peer. 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; + + /** + * Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long peerAsn; + + /** + * IP address of the BGP interface outside Google Cloud Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpAddress; + + /** + * IPv4 address of the BGP interface outside Google Cloud Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpv4NexthopAddress; + + /** + * IPv6 address of the BGP interface outside Google Cloud Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpv6NexthopAddress; + + /** + * URI of the VM instance that is used as third-party router appliances such as Next Gen + * Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones + * contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP + * session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String routerApplianceInstance; + + /** + * User-specified flag to indicate which mode to use for advertisement. + * @return value or {@code null} for none + */ + public java.lang.String getAdvertiseMode() { + return advertiseMode; + } + + /** + * User-specified flag to indicate which mode to use for advertisement. + * @param advertiseMode advertiseMode or {@code null} for none + */ + public RouterBgpPeer setAdvertiseMode(java.lang.String advertiseMode) { + this.advertiseMode = advertiseMode; + return this; + } + + /** + * User-specified list of prefix groups to advertise in custom mode, which currently supports the + * following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This + * excludes any routes learned for subnets that use VPC Network Peering. + * + * Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list + * defined for the router (in the "bgp" message). These groups are advertised in addition to any + * specified prefixes. Leave this field blank to advertise no custom groups. + * @return value or {@code null} for none + */ + public java.util.List getAdvertisedGroups() { + return advertisedGroups; + } + + /** + * User-specified list of prefix groups to advertise in custom mode, which currently supports the + * following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This + * excludes any routes learned for subnets that use VPC Network Peering. + * + * Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list + * defined for the router (in the "bgp" message). These groups are advertised in addition to any + * specified prefixes. Leave this field blank to advertise no custom groups. + * @param advertisedGroups advertisedGroups or {@code null} for none + */ + public RouterBgpPeer setAdvertisedGroups(java.util.List advertisedGroups) { + this.advertisedGroups = advertisedGroups; + return this; + } + + /** + * User-specified list of individual IP ranges to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the + * "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this + * field blank to advertise no custom IP ranges. + * @return value or {@code null} for none + */ + public java.util.List getAdvertisedIpRanges() { + return advertisedIpRanges; + } + + /** + * User-specified list of individual IP ranges to advertise in custom mode. This field can only be + * populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the + * "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this + * field blank to advertise no custom IP ranges. + * @param advertisedIpRanges advertisedIpRanges or {@code null} for none + */ + public RouterBgpPeer setAdvertisedIpRanges(java.util.List advertisedIpRanges) { + this.advertisedIpRanges = advertisedIpRanges; + return this; + } + + /** + * The priority of routes advertised to this BGP peer. Where there is more than one matching route + * of maximum length, the routes with the lowest priority value win. + * @return value or {@code null} for none + */ + public java.lang.Long getAdvertisedRoutePriority() { + return advertisedRoutePriority; + } + + /** + * The priority of routes advertised to this BGP peer. Where there is more than one matching route + * of maximum length, the routes with the lowest priority value win. + * @param advertisedRoutePriority advertisedRoutePriority or {@code null} for none + */ + public RouterBgpPeer setAdvertisedRoutePriority(java.lang.Long advertisedRoutePriority) { + this.advertisedRoutePriority = advertisedRoutePriority; + return this; + } + + /** + * BFD configuration for the BGP peering. + * @return value or {@code null} for none + */ + public RouterBgpPeerBfd getBfd() { + return bfd; + } + + /** + * BFD configuration for the BGP peering. + * @param bfd bfd or {@code null} for none + */ + public RouterBgpPeer setBfd(RouterBgpPeerBfd bfd) { + this.bfd = bfd; + return this; + } + + /** + * A list of user-defined custom learned route IP address ranges for a BGP session. + * @return value or {@code null} for none + */ + public java.util.List getCustomLearnedIpRanges() { + return customLearnedIpRanges; + } + + /** + * A list of user-defined custom learned route IP address ranges for a BGP session. + * @param customLearnedIpRanges customLearnedIpRanges or {@code null} for none + */ + public RouterBgpPeer setCustomLearnedIpRanges(java.util.List customLearnedIpRanges) { + this.customLearnedIpRanges = customLearnedIpRanges; + return this; + } + + /** + * The user-defined custom learned route priority for a BGP session. This value is applied to all + * custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you + * don't provide a value, Google Cloud assigns a priority of `100` to the ranges. + * @return value or {@code null} for none + */ + public java.lang.Integer getCustomLearnedRoutePriority() { + return customLearnedRoutePriority; + } + + /** + * The user-defined custom learned route priority for a BGP session. This value is applied to all + * custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you + * don't provide a value, Google Cloud assigns a priority of `100` to the ranges. + * @param customLearnedRoutePriority customLearnedRoutePriority or {@code null} for none + */ + public RouterBgpPeer setCustomLearnedRoutePriority(java.lang.Integer customLearnedRoutePriority) { + this.customLearnedRoutePriority = customLearnedRoutePriority; + return this; + } + + /** + * The status of the BGP peer connection. + * + * If set to FALSE, any active session with the peer is terminated and all associated routing + * information is removed. If set to TRUE, the peer connection can be established with routing + * information. The default is TRUE. + * @return value or {@code null} for none + */ + public java.lang.String getEnable() { + return enable; + } + + /** + * The status of the BGP peer connection. + * + * If set to FALSE, any active session with the peer is terminated and all associated routing + * information is removed. If set to TRUE, the peer connection can be established with routing + * information. The default is TRUE. + * @param enable enable or {@code null} for none + */ + public RouterBgpPeer setEnable(java.lang.String enable) { + this.enable = enable; + return this; + } + + /** + * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableIpv4() { + return enableIpv4; + } + + /** + * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * @param enableIpv4 enableIpv4 or {@code null} for none + */ + public RouterBgpPeer setEnableIpv4(java.lang.Boolean enableIpv4) { + this.enableIpv4 = enableIpv4; + return this; + } + + /** + * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableIpv6() { + return enableIpv6; + } + + /** + * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * @param enableIpv6 enableIpv6 or {@code null} for none + */ + public RouterBgpPeer setEnableIpv6(java.lang.Boolean enableIpv6) { + this.enableIpv6 = enableIpv6; + return this; + } + + /** + * List of export policies applied to this peer, in the order they must be evaluated. The name + * must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. + * @return value or {@code null} for none + */ + public java.util.List getExportPolicies() { + return exportPolicies; + } + + /** + * List of export policies applied to this peer, in the order they must be evaluated. The name + * must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. + * @param exportPolicies exportPolicies or {@code null} for none + */ + public RouterBgpPeer setExportPolicies(java.util.List exportPolicies) { + this.exportPolicies = exportPolicies; + return this; + } + + /** + * List of import policies applied to this peer, in the order they must be evaluated. The name + * must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. + * @return value or {@code null} for none + */ + public java.util.List getImportPolicies() { + return importPolicies; + } + + /** + * List of import policies applied to this peer, in the order they must be evaluated. The name + * must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. + * @param importPolicies importPolicies or {@code null} for none + */ + public RouterBgpPeer setImportPolicies(java.util.List importPolicies) { + this.importPolicies = importPolicies; + return this; + } + + /** + * Name of the interface the BGP peer is associated with. + * @return value or {@code null} for none + */ + public java.lang.String getInterfaceName() { + return interfaceName; + } + + /** + * Name of the interface the BGP peer is associated with. + * @param interfaceName interfaceName or {@code null} for none + */ + public RouterBgpPeer setInterfaceName(java.lang.String interfaceName) { + this.interfaceName = interfaceName; + return this; + } + + /** + * IP address of the interface inside Google Cloud Platform. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * IP address of the interface inside Google Cloud Platform. + * @param ipAddress ipAddress or {@code null} for none + */ + public RouterBgpPeer setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * IPv4 address of the interface inside Google Cloud Platform. + * @return value or {@code null} for none + */ + public java.lang.String getIpv4NexthopAddress() { + return ipv4NexthopAddress; + } + + /** + * IPv4 address of the interface inside Google Cloud Platform. + * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none + */ + public RouterBgpPeer setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { + this.ipv4NexthopAddress = ipv4NexthopAddress; + return this; + } + + /** + * IPv6 address of the interface inside Google Cloud Platform. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6NexthopAddress() { + return ipv6NexthopAddress; + } + + /** + * IPv6 address of the interface inside Google Cloud Platform. + * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none + */ + public RouterBgpPeer setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { + this.ipv6NexthopAddress = ipv6NexthopAddress; + return this; + } + + /** + * Output only. [Output Only] The resource that configures and manages this BGP peer. - + * MANAGED_BY_USER is the default value and can be managed by you or other users - + * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, + * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is + * created, updated, or deleted. + * @return value or {@code null} for none + */ + public java.lang.String getManagementType() { + return managementType; + } + + /** + * Output only. [Output Only] The resource that configures and manages this BGP peer. - + * MANAGED_BY_USER is the default value and can be managed by you or other users - + * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, + * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is + * created, updated, or deleted. + * @param managementType managementType or {@code null} for none + */ + public RouterBgpPeer setManagementType(java.lang.String managementType) { + this.managementType = managementType; + return this; + } + + /** + * Present if MD5 authentication is enabled for the peering. Must be the name of one of the + * entries in the Router.md5_authentication_keys. The field must comply with RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getMd5AuthenticationKeyName() { + return md5AuthenticationKeyName; + } + + /** + * Present if MD5 authentication is enabled for the peering. Must be the name of one of the + * entries in the Router.md5_authentication_keys. The field must comply with RFC1035. + * @param md5AuthenticationKeyName md5AuthenticationKeyName or {@code null} for none + */ + public RouterBgpPeer setMd5AuthenticationKeyName(java.lang.String md5AuthenticationKeyName) { + this.md5AuthenticationKeyName = md5AuthenticationKeyName; + return this; + } + + /** + * Name of this BGP peer. 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 this BGP peer. 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 RouterBgpPeer setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. + * @return value or {@code null} for none + */ + public java.lang.Long getPeerAsn() { + return peerAsn; + } + + /** + * Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. + * @param peerAsn peerAsn or {@code null} for none + */ + public RouterBgpPeer setPeerAsn(java.lang.Long peerAsn) { + this.peerAsn = peerAsn; + return this; + } + + /** + * IP address of the BGP interface outside Google Cloud Platform. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpAddress() { + return peerIpAddress; + } + + /** + * IP address of the BGP interface outside Google Cloud Platform. + * @param peerIpAddress peerIpAddress or {@code null} for none + */ + public RouterBgpPeer setPeerIpAddress(java.lang.String peerIpAddress) { + this.peerIpAddress = peerIpAddress; + return this; + } + + /** + * IPv4 address of the BGP interface outside Google Cloud Platform. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpv4NexthopAddress() { + return peerIpv4NexthopAddress; + } + + /** + * IPv4 address of the BGP interface outside Google Cloud Platform. + * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none + */ + public RouterBgpPeer setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { + this.peerIpv4NexthopAddress = peerIpv4NexthopAddress; + return this; + } + + /** + * IPv6 address of the BGP interface outside Google Cloud Platform. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpv6NexthopAddress() { + return peerIpv6NexthopAddress; + } + + /** + * IPv6 address of the BGP interface outside Google Cloud Platform. + * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none + */ + public RouterBgpPeer setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { + this.peerIpv6NexthopAddress = peerIpv6NexthopAddress; + return this; + } + + /** + * URI of the VM instance that is used as third-party router appliances such as Next Gen + * Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones + * contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP + * session. + * @return value or {@code null} for none + */ + public java.lang.String getRouterApplianceInstance() { + return routerApplianceInstance; + } + + /** + * URI of the VM instance that is used as third-party router appliances such as Next Gen + * Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones + * contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP + * session. + * @param routerApplianceInstance routerApplianceInstance or {@code null} for none + */ + public RouterBgpPeer setRouterApplianceInstance(java.lang.String routerApplianceInstance) { + this.routerApplianceInstance = routerApplianceInstance; + return this; + } + + @Override + public RouterBgpPeer set(String fieldName, Object value) { + return (RouterBgpPeer) super.set(fieldName, value); + } + + @Override + public RouterBgpPeer clone() { + return (RouterBgpPeer) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerBfd.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerBfd.java new file mode 100644 index 00000000000..f2410c3acb2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerBfd.java @@ -0,0 +1,201 @@ +/* + * 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 RouterBgpPeerBfd. + * + *

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 RouterBgpPeerBfd extends com.google.api.client.json.GenericJson { + + /** + * The minimum interval, in milliseconds, between BFD control packets received from the peer + * router. The actual value is negotiated between the two routers and is equal to the greater of + * this value and the transmit interval of the other router. + * + * If set, this value must be between 1000 and 30000. + * + * The default is 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minReceiveInterval; + + /** + * The minimum interval, in milliseconds, between BFD control packets transmitted to the peer + * router. The actual value is negotiated between the two routers and is equal to the greater of + * this value and the corresponding receive interval of the other router. + * + * If set, this value must be between 1000 and 30000. + * + * The default is 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long minTransmitInterval; + + /** + * The number of consecutive BFD packets that must be missed before BFD declares that a peer is + * unavailable. + * + * If set, the value must be a value between 5 and 16. + * + * The default is 5. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long multiplier; + + /** + * The BFD session initialization mode for this BGP peer. + * + * If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to + * PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this + * BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionInitializationMode; + + /** + * The minimum interval, in milliseconds, between BFD control packets received from the peer + * router. The actual value is negotiated between the two routers and is equal to the greater of + * this value and the transmit interval of the other router. + * + * If set, this value must be between 1000 and 30000. + * + * The default is 1000. + * @return value or {@code null} for none + */ + public java.lang.Long getMinReceiveInterval() { + return minReceiveInterval; + } + + /** + * The minimum interval, in milliseconds, between BFD control packets received from the peer + * router. The actual value is negotiated between the two routers and is equal to the greater of + * this value and the transmit interval of the other router. + * + * If set, this value must be between 1000 and 30000. + * + * The default is 1000. + * @param minReceiveInterval minReceiveInterval or {@code null} for none + */ + public RouterBgpPeerBfd setMinReceiveInterval(java.lang.Long minReceiveInterval) { + this.minReceiveInterval = minReceiveInterval; + return this; + } + + /** + * The minimum interval, in milliseconds, between BFD control packets transmitted to the peer + * router. The actual value is negotiated between the two routers and is equal to the greater of + * this value and the corresponding receive interval of the other router. + * + * If set, this value must be between 1000 and 30000. + * + * The default is 1000. + * @return value or {@code null} for none + */ + public java.lang.Long getMinTransmitInterval() { + return minTransmitInterval; + } + + /** + * The minimum interval, in milliseconds, between BFD control packets transmitted to the peer + * router. The actual value is negotiated between the two routers and is equal to the greater of + * this value and the corresponding receive interval of the other router. + * + * If set, this value must be between 1000 and 30000. + * + * The default is 1000. + * @param minTransmitInterval minTransmitInterval or {@code null} for none + */ + public RouterBgpPeerBfd setMinTransmitInterval(java.lang.Long minTransmitInterval) { + this.minTransmitInterval = minTransmitInterval; + return this; + } + + /** + * The number of consecutive BFD packets that must be missed before BFD declares that a peer is + * unavailable. + * + * If set, the value must be a value between 5 and 16. + * + * The default is 5. + * @return value or {@code null} for none + */ + public java.lang.Long getMultiplier() { + return multiplier; + } + + /** + * The number of consecutive BFD packets that must be missed before BFD declares that a peer is + * unavailable. + * + * If set, the value must be a value between 5 and 16. + * + * The default is 5. + * @param multiplier multiplier or {@code null} for none + */ + public RouterBgpPeerBfd setMultiplier(java.lang.Long multiplier) { + this.multiplier = multiplier; + return this; + } + + /** + * The BFD session initialization mode for this BGP peer. + * + * If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to + * PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this + * BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. + * @return value or {@code null} for none + */ + public java.lang.String getSessionInitializationMode() { + return sessionInitializationMode; + } + + /** + * The BFD session initialization mode for this BGP peer. + * + * If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to + * PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this + * BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. + * @param sessionInitializationMode sessionInitializationMode or {@code null} for none + */ + public RouterBgpPeerBfd setSessionInitializationMode(java.lang.String sessionInitializationMode) { + this.sessionInitializationMode = sessionInitializationMode; + return this; + } + + @Override + public RouterBgpPeerBfd set(String fieldName, Object value) { + return (RouterBgpPeerBfd) super.set(fieldName, value); + } + + @Override + public RouterBgpPeerBfd clone() { + return (RouterBgpPeerBfd) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerCustomLearnedIpRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerCustomLearnedIpRange.java new file mode 100644 index 00000000000..2139668c7da --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterBgpPeerCustomLearnedIpRange.java @@ -0,0 +1,72 @@ +/* + * 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 RouterBgpPeerCustomLearnedIpRange. + * + *

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 RouterBgpPeerCustomLearnedIpRange extends com.google.api.client.json.GenericJson { + + /** + * The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP + * address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP + * address range, and, for IPv6, `/128`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String range; + + /** + * The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP + * address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP + * address range, and, for IPv6, `/128`. + * @return value or {@code null} for none + */ + public java.lang.String getRange() { + return range; + } + + /** + * The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP + * address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP + * address range, and, for IPv6, `/128`. + * @param range range or {@code null} for none + */ + public RouterBgpPeerCustomLearnedIpRange setRange(java.lang.String range) { + this.range = range; + return this; + } + + @Override + public RouterBgpPeerCustomLearnedIpRange set(String fieldName, Object value) { + return (RouterBgpPeerCustomLearnedIpRange) super.set(fieldName, value); + } + + @Override + public RouterBgpPeerCustomLearnedIpRange clone() { + return (RouterBgpPeerCustomLearnedIpRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterInterface.java new file mode 100644 index 00000000000..779d4921d86 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -0,0 +1,351 @@ +/* + * 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 RouterInterface. + * + *

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 RouterInterface extends com.google.api.client.json.GenericJson { + + /** + * IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP + * range must be in theRFC3927 link-local IP address space. The value must be a CIDR-formatted + * string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents + * the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value + * must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or + * less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the + * router's VPC, this IPv6 prefix will be reserved exclusively for this connection and + * cannot be used for any other purpose. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipRange; + + /** + * IP version of this interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipVersion; + + /** + * URI of the linked Interconnect attachment. It must be in the same region as the router. Each + * interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, + * or a subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkedInterconnectAttachment; + + /** + * URI of the linked VPN tunnel, which must be in the same region as the router. Each interface + * can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a + * subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkedVpnTunnel; + + /** + * Output only. [Output Only] The resource that configures and manages this interface. - + * MANAGED_BY_USER is the default value and can be managed directly by users. - + * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, + * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is + * created, updated, or deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String managementType; + + /** + * Name of this interface entry. 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; + + /** + * The regional private internal IP address that is used to establish BGP sessions to a VM + * instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual + * Router, or an SD-WAN VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateIpAddress; + + /** + * Name of the interface that will be redundant with the current interface you are creating. The + * redundantInterface must belong to the same Cloud Router as the interface here. To establish the + * BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be + * attached to two separate interfaces that are redundant with each other. The redundant_interface + * must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface + * 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 redundantInterface; + + /** + * The URI of the subnetwork resource that this interface belongs to, which must be in the same + * region as the Cloud Router. When you establish a BGP session to a VM instance using this + * interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP + * range must be in theRFC3927 link-local IP address space. The value must be a CIDR-formatted + * string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents + * the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value + * must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or + * less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the + * router's VPC, this IPv6 prefix will be reserved exclusively for this connection and + * cannot be used for any other purpose. + * @return value or {@code null} for none + */ + public java.lang.String getIpRange() { + return ipRange; + } + + /** + * IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP + * range must be in theRFC3927 link-local IP address space. The value must be a CIDR-formatted + * string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents + * the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value + * must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or + * less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the + * router's VPC, this IPv6 prefix will be reserved exclusively for this connection and + * cannot be used for any other purpose. + * @param ipRange ipRange or {@code null} for none + */ + public RouterInterface setIpRange(java.lang.String ipRange) { + this.ipRange = ipRange; + return this; + } + + /** + * IP version of this interface. + * @return value or {@code null} for none + */ + public java.lang.String getIpVersion() { + return ipVersion; + } + + /** + * IP version of this interface. + * @param ipVersion ipVersion or {@code null} for none + */ + public RouterInterface setIpVersion(java.lang.String ipVersion) { + this.ipVersion = ipVersion; + return this; + } + + /** + * URI of the linked Interconnect attachment. It must be in the same region as the router. Each + * interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, + * or a subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getLinkedInterconnectAttachment() { + return linkedInterconnectAttachment; + } + + /** + * URI of the linked Interconnect attachment. It must be in the same region as the router. Each + * interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, + * or a subnetwork. + * @param linkedInterconnectAttachment linkedInterconnectAttachment or {@code null} for none + */ + public RouterInterface setLinkedInterconnectAttachment(java.lang.String linkedInterconnectAttachment) { + this.linkedInterconnectAttachment = linkedInterconnectAttachment; + return this; + } + + /** + * URI of the linked VPN tunnel, which must be in the same region as the router. Each interface + * can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a + * subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getLinkedVpnTunnel() { + return linkedVpnTunnel; + } + + /** + * URI of the linked VPN tunnel, which must be in the same region as the router. Each interface + * can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a + * subnetwork. + * @param linkedVpnTunnel linkedVpnTunnel or {@code null} for none + */ + public RouterInterface setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { + this.linkedVpnTunnel = linkedVpnTunnel; + return this; + } + + /** + * Output only. [Output Only] The resource that configures and manages this interface. - + * MANAGED_BY_USER is the default value and can be managed directly by users. - + * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, + * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is + * created, updated, or deleted. + * @return value or {@code null} for none + */ + public java.lang.String getManagementType() { + return managementType; + } + + /** + * Output only. [Output Only] The resource that configures and manages this interface. - + * MANAGED_BY_USER is the default value and can be managed directly by users. - + * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, + * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, + * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is + * created, updated, or deleted. + * @param managementType managementType or {@code null} for none + */ + public RouterInterface setManagementType(java.lang.String managementType) { + this.managementType = managementType; + return this; + } + + /** + * Name of this interface entry. 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 this interface entry. 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 RouterInterface setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The regional private internal IP address that is used to establish BGP sessions to a VM + * instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual + * Router, or an SD-WAN VM. + * @return value or {@code null} for none + */ + public java.lang.String getPrivateIpAddress() { + return privateIpAddress; + } + + /** + * The regional private internal IP address that is used to establish BGP sessions to a VM + * instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual + * Router, or an SD-WAN VM. + * @param privateIpAddress privateIpAddress or {@code null} for none + */ + public RouterInterface setPrivateIpAddress(java.lang.String privateIpAddress) { + this.privateIpAddress = privateIpAddress; + return this; + } + + /** + * Name of the interface that will be redundant with the current interface you are creating. The + * redundantInterface must belong to the same Cloud Router as the interface here. To establish the + * BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be + * attached to two separate interfaces that are redundant with each other. The redundant_interface + * must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface + * 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 getRedundantInterface() { + return redundantInterface; + } + + /** + * Name of the interface that will be redundant with the current interface you are creating. The + * redundantInterface must belong to the same Cloud Router as the interface here. To establish the + * BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be + * attached to two separate interfaces that are redundant with each other. The redundant_interface + * must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface + * 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 redundantInterface redundantInterface or {@code null} for none + */ + public RouterInterface setRedundantInterface(java.lang.String redundantInterface) { + this.redundantInterface = redundantInterface; + return this; + } + + /** + * The URI of the subnetwork resource that this interface belongs to, which must be in the same + * region as the Cloud Router. When you establish a BGP session to a VM instance using this + * interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * The URI of the subnetwork resource that this interface belongs to, which must be in the same + * region as the Cloud Router. When you establish a BGP session to a VM instance using this + * interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. + * @param subnetwork subnetwork or {@code null} for none + */ + public RouterInterface setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + @Override + public RouterInterface set(String fieldName, Object value) { + return (RouterInterface) super.set(fieldName, value); + } + + @Override + public RouterInterface clone() { + return (RouterInterface) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterList.java new file mode 100644 index 00000000000..24604dc475f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of Router resources. + * + *

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 RouterList extends com.google.api.client.json.GenericJson { + + /** + * [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 Router 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 Router 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(Router.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#router for routers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 RouterList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Router resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Router resources. + * @param items items or {@code null} for none + */ + public RouterList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#router for routers. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#router for routers. + * @param kind kind or {@code null} for none + */ + public RouterList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RouterList 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 RouterList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 RouterList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RouterList set(String fieldName, Object value) { + return (RouterList) super.set(fieldName, value); + } + + @Override + public RouterList clone() { + return (RouterList) 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 RouterListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RouterMd5AuthenticationKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterMd5AuthenticationKey.java new file mode 100644 index 00000000000..60ac572639d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterMd5AuthenticationKey.java @@ -0,0 +1,111 @@ +/* + * 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 RouterMd5AuthenticationKey. + * + *

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 RouterMd5AuthenticationKey extends com.google.api.client.json.GenericJson { + + /** + * [Input only] Value of the key. + * + * For patch and update calls, it can be skipped to copy the value from the previous + * configuration. This is allowed if the key with the same name existed before the operation. + * Maximum length is 80 characters. Can only contain printable ASCII characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Name used to identify the key. + * + * Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply + * withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [Input only] Value of the key. + * + * For patch and update calls, it can be skipped to copy the value from the previous + * configuration. This is allowed if the key with the same name existed before the operation. + * Maximum length is 80 characters. Can only contain printable ASCII characters. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Input only] Value of the key. + * + * For patch and update calls, it can be skipped to copy the value from the previous + * configuration. This is allowed if the key with the same name existed before the operation. + * Maximum length is 80 characters. Can only contain printable ASCII characters. + * @param key key or {@code null} for none + */ + public RouterMd5AuthenticationKey setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Name used to identify the key. + * + * Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply + * withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name used to identify the key. + * + * Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply + * withRFC1035. + * @param name name or {@code null} for none + */ + public RouterMd5AuthenticationKey setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public RouterMd5AuthenticationKey set(String fieldName, Object value) { + return (RouterMd5AuthenticationKey) super.set(fieldName, value); + } + + @Override + public RouterMd5AuthenticationKey clone() { + return (RouterMd5AuthenticationKey) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNat.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNat.java new file mode 100644 index 00000000000..67b18483489 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNat.java @@ -0,0 +1,738 @@ +/* + * 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 Nat resource. It enables the VMs within the specified subnetworks to access Internet + * without external IP addresses. It specifies a list of subnetworks (and the ranges within) that + * want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP + * would auto-allocate ephemeral IPs if no external IPs are provided. + * + *

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 RouterNat extends com.google.api.client.json.GenericJson { + + /** + * The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, + * STANDARD. If not specified, then the current project-level default tier is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoNetworkTier; + + /** + * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs + * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List drainNatIps; + + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the + * effective timeout is 30s or 120s. The field is output only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer effectiveTcpTimeWaitTimeoutSec; + + /** + * Enable Dynamic Port Allocation. + * + * If not specified, it is disabled by default. + * + * If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - + * enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm + * must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a + * minimum of 32 ports will be allocated to a VM from this NAT config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableDynamicPortAllocation; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEndpointIndependentMapping; + + /** + * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will + * be equivalent to include ENDPOINT_TYPE_VM + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List endpointTypes; + + /** + * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer icmpIdleTimeoutSec; + + /** + * Configure logging on this NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouterNatLogConfig logConfig; + + /** + * Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is + * enabled. + * + * If Dynamic Port Allocation is not enabled, this field has no effect. + * + * If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two + * greater than minPortsPerVm, or 64 if minPortsPerVm is not set. + * + * If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will + * be allocated to a VM from this NAT config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxPortsPerVm; + + /** + * Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of + * ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the + * value of this field is 50, at least 64 ports are allocated to a VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPortsPerVm; + + /** + * Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used + * only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nat64Subnetworks; + + /** + * Specify the NatIpAllocateOption, which can take one of the following values: - + * MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough + * specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated + * by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then + * nat_ip should be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String natIpAllocateOption; + + /** + * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid + * static external IP addresses assigned to the project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natIps; + + /** + * A list of rules associated with this NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + /** + * Specify the Nat option, which can take one of the following values: - + * ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. + * - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork + * are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + * (specified in the field subnetwork below) + * + * The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains + * ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any + * Router for this network in this region. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSubnetworkIpRangesToNat; + + /** + * Specify the Nat option for NAT64, which can take one of the following values: - + * ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - + * LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field + * nat64_subnetwork below) + * + * The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains + * NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for + * any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 + * only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSubnetworkIpRangesToNat64; + + /** + * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used + * only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworks; + + /** + * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer tcpEstablishedIdleTimeoutSec; + + /** + * Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not + * set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer tcpTimeWaitTimeoutSec; + + /** + * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer tcpTransitoryIdleTimeoutSec; + + /** + * Indicates whether this NAT is used for public or private IP translation. If unspecified, it + * defaults to PUBLIC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer udpIdleTimeoutSec; + + /** + * The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, + * STANDARD. If not specified, then the current project-level default tier is used. + * @return value or {@code null} for none + */ + public java.lang.String getAutoNetworkTier() { + return autoNetworkTier; + } + + /** + * The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, + * STANDARD. If not specified, then the current project-level default tier is used. + * @param autoNetworkTier autoNetworkTier or {@code null} for none + */ + public RouterNat setAutoNetworkTier(java.lang.String autoNetworkTier) { + this.autoNetworkTier = autoNetworkTier; + return this; + } + + /** + * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs + * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. + * @return value or {@code null} for none + */ + public java.util.List getDrainNatIps() { + return drainNatIps; + } + + /** + * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs + * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. + * @param drainNatIps drainNatIps or {@code null} for none + */ + public RouterNat setDrainNatIps(java.util.List drainNatIps) { + this.drainNatIps = drainNatIps; + return this; + } + + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the + * effective timeout is 30s or 120s. The field is output only. + * @return value or {@code null} for none + */ + public java.lang.Integer getEffectiveTcpTimeWaitTimeoutSec() { + return effectiveTcpTimeWaitTimeoutSec; + } + + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the + * effective timeout is 30s or 120s. The field is output only. + * @param effectiveTcpTimeWaitTimeoutSec effectiveTcpTimeWaitTimeoutSec or {@code null} for none + */ + public RouterNat setEffectiveTcpTimeWaitTimeoutSec(java.lang.Integer effectiveTcpTimeWaitTimeoutSec) { + this.effectiveTcpTimeWaitTimeoutSec = effectiveTcpTimeWaitTimeoutSec; + return this; + } + + /** + * Enable Dynamic Port Allocation. + * + * If not specified, it is disabled by default. + * + * If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - + * enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm + * must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a + * minimum of 32 ports will be allocated to a VM from this NAT config. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableDynamicPortAllocation() { + return enableDynamicPortAllocation; + } + + /** + * Enable Dynamic Port Allocation. + * + * If not specified, it is disabled by default. + * + * If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - + * enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm + * must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a + * minimum of 32 ports will be allocated to a VM from this NAT config. + * @param enableDynamicPortAllocation enableDynamicPortAllocation or {@code null} for none + */ + public RouterNat setEnableDynamicPortAllocation(java.lang.Boolean enableDynamicPortAllocation) { + this.enableDynamicPortAllocation = enableDynamicPortAllocation; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEndpointIndependentMapping() { + return enableEndpointIndependentMapping; + } + + /** + * @param enableEndpointIndependentMapping enableEndpointIndependentMapping or {@code null} for none + */ + public RouterNat setEnableEndpointIndependentMapping(java.lang.Boolean enableEndpointIndependentMapping) { + this.enableEndpointIndependentMapping = enableEndpointIndependentMapping; + return this; + } + + /** + * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will + * be equivalent to include ENDPOINT_TYPE_VM + * @return value or {@code null} for none + */ + public java.util.List getEndpointTypes() { + return endpointTypes; + } + + /** + * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will + * be equivalent to include ENDPOINT_TYPE_VM + * @param endpointTypes endpointTypes or {@code null} for none + */ + public RouterNat setEndpointTypes(java.util.List endpointTypes) { + this.endpointTypes = endpointTypes; + return this; + } + + /** + * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. + * @return value or {@code null} for none + */ + public java.lang.Integer getIcmpIdleTimeoutSec() { + return icmpIdleTimeoutSec; + } + + /** + * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. + * @param icmpIdleTimeoutSec icmpIdleTimeoutSec or {@code null} for none + */ + public RouterNat setIcmpIdleTimeoutSec(java.lang.Integer icmpIdleTimeoutSec) { + this.icmpIdleTimeoutSec = icmpIdleTimeoutSec; + return this; + } + + /** + * Configure logging on this NAT. + * @return value or {@code null} for none + */ + public RouterNatLogConfig getLogConfig() { + return logConfig; + } + + /** + * Configure logging on this NAT. + * @param logConfig logConfig or {@code null} for none + */ + public RouterNat setLogConfig(RouterNatLogConfig logConfig) { + this.logConfig = logConfig; + return this; + } + + /** + * Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is + * enabled. + * + * If Dynamic Port Allocation is not enabled, this field has no effect. + * + * If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two + * greater than minPortsPerVm, or 64 if minPortsPerVm is not set. + * + * If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will + * be allocated to a VM from this NAT config. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxPortsPerVm() { + return maxPortsPerVm; + } + + /** + * Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is + * enabled. + * + * If Dynamic Port Allocation is not enabled, this field has no effect. + * + * If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two + * greater than minPortsPerVm, or 64 if minPortsPerVm is not set. + * + * If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will + * be allocated to a VM from this NAT config. + * @param maxPortsPerVm maxPortsPerVm or {@code null} for none + */ + public RouterNat setMaxPortsPerVm(java.lang.Integer maxPortsPerVm) { + this.maxPortsPerVm = maxPortsPerVm; + return this; + } + + /** + * Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of + * ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the + * value of this field is 50, at least 64 ports are allocated to a VM. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinPortsPerVm() { + return minPortsPerVm; + } + + /** + * Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of + * ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the + * value of this field is 50, at least 64 ports are allocated to a VM. + * @param minPortsPerVm minPortsPerVm or {@code null} for none + */ + public RouterNat setMinPortsPerVm(java.lang.Integer minPortsPerVm) { + this.minPortsPerVm = minPortsPerVm; + return this; + } + + /** + * Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035. + * @param name name or {@code null} for none + */ + public RouterNat setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used + * only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. + * @return value or {@code null} for none + */ + public java.util.List getNat64Subnetworks() { + return nat64Subnetworks; + } + + /** + * List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used + * only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. + * @param nat64Subnetworks nat64Subnetworks or {@code null} for none + */ + public RouterNat setNat64Subnetworks(java.util.List nat64Subnetworks) { + this.nat64Subnetworks = nat64Subnetworks; + return this; + } + + /** + * Specify the NatIpAllocateOption, which can take one of the following values: - + * MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough + * specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated + * by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then + * nat_ip should be empty. + * @return value or {@code null} for none + */ + public java.lang.String getNatIpAllocateOption() { + return natIpAllocateOption; + } + + /** + * Specify the NatIpAllocateOption, which can take one of the following values: - + * MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough + * specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated + * by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then + * nat_ip should be empty. + * @param natIpAllocateOption natIpAllocateOption or {@code null} for none + */ + public RouterNat setNatIpAllocateOption(java.lang.String natIpAllocateOption) { + this.natIpAllocateOption = natIpAllocateOption; + return this; + } + + /** + * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid + * static external IP addresses assigned to the project. + * @return value or {@code null} for none + */ + public java.util.List getNatIps() { + return natIps; + } + + /** + * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid + * static external IP addresses assigned to the project. + * @param natIps natIps or {@code null} for none + */ + public RouterNat setNatIps(java.util.List natIps) { + this.natIps = natIps; + return this; + } + + /** + * A list of rules associated with this NAT. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * A list of rules associated with this NAT. + * @param rules rules or {@code null} for none + */ + public RouterNat setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * Specify the Nat option, which can take one of the following values: - + * ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. + * - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork + * are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + * (specified in the field subnetwork below) + * + * The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains + * ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any + * Router for this network in this region. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSubnetworkIpRangesToNat() { + return sourceSubnetworkIpRangesToNat; + } + + /** + * Specify the Nat option, which can take one of the following values: - + * ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. + * - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork + * are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + * (specified in the field subnetwork below) + * + * The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains + * ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any + * Router for this network in this region. + * @param sourceSubnetworkIpRangesToNat sourceSubnetworkIpRangesToNat or {@code null} for none + */ + public RouterNat setSourceSubnetworkIpRangesToNat(java.lang.String sourceSubnetworkIpRangesToNat) { + this.sourceSubnetworkIpRangesToNat = sourceSubnetworkIpRangesToNat; + return this; + } + + /** + * Specify the Nat option for NAT64, which can take one of the following values: - + * ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - + * LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field + * nat64_subnetwork below) + * + * The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains + * NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for + * any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 + * only. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSubnetworkIpRangesToNat64() { + return sourceSubnetworkIpRangesToNat64; + } + + /** + * Specify the Nat option for NAT64, which can take one of the following values: - + * ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - + * LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field + * nat64_subnetwork below) + * + * The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains + * NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for + * any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 + * only. + * @param sourceSubnetworkIpRangesToNat64 sourceSubnetworkIpRangesToNat64 or {@code null} for none + */ + public RouterNat setSourceSubnetworkIpRangesToNat64(java.lang.String sourceSubnetworkIpRangesToNat64) { + this.sourceSubnetworkIpRangesToNat64 = sourceSubnetworkIpRangesToNat64; + return this; + } + + /** + * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used + * only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworks() { + return subnetworks; + } + + /** + * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used + * only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. + * @param subnetworks subnetworks or {@code null} for none + */ + public RouterNat setSubnetworks(java.util.List subnetworks) { + this.subnetworks = subnetworks; + return this; + } + + /** + * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. + * @return value or {@code null} for none + */ + public java.lang.Integer getTcpEstablishedIdleTimeoutSec() { + return tcpEstablishedIdleTimeoutSec; + } + + /** + * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. + * @param tcpEstablishedIdleTimeoutSec tcpEstablishedIdleTimeoutSec or {@code null} for none + */ + public RouterNat setTcpEstablishedIdleTimeoutSec(java.lang.Integer tcpEstablishedIdleTimeoutSec) { + this.tcpEstablishedIdleTimeoutSec = tcpEstablishedIdleTimeoutSec; + return this; + } + + /** + * Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not + * set. + * @return value or {@code null} for none + */ + public java.lang.Integer getTcpTimeWaitTimeoutSec() { + return tcpTimeWaitTimeoutSec; + } + + /** + * Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not + * set. + * @param tcpTimeWaitTimeoutSec tcpTimeWaitTimeoutSec or {@code null} for none + */ + public RouterNat setTcpTimeWaitTimeoutSec(java.lang.Integer tcpTimeWaitTimeoutSec) { + this.tcpTimeWaitTimeoutSec = tcpTimeWaitTimeoutSec; + return this; + } + + /** + * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. + * @return value or {@code null} for none + */ + public java.lang.Integer getTcpTransitoryIdleTimeoutSec() { + return tcpTransitoryIdleTimeoutSec; + } + + /** + * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. + * @param tcpTransitoryIdleTimeoutSec tcpTransitoryIdleTimeoutSec or {@code null} for none + */ + public RouterNat setTcpTransitoryIdleTimeoutSec(java.lang.Integer tcpTransitoryIdleTimeoutSec) { + this.tcpTransitoryIdleTimeoutSec = tcpTransitoryIdleTimeoutSec; + return this; + } + + /** + * Indicates whether this NAT is used for public or private IP translation. If unspecified, it + * defaults to PUBLIC. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Indicates whether this NAT is used for public or private IP translation. If unspecified, it + * defaults to PUBLIC. + * @param type type or {@code null} for none + */ + public RouterNat setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. + * @return value or {@code null} for none + */ + public java.lang.Integer getUdpIdleTimeoutSec() { + return udpIdleTimeoutSec; + } + + /** + * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. + * @param udpIdleTimeoutSec udpIdleTimeoutSec or {@code null} for none + */ + public RouterNat setUdpIdleTimeoutSec(java.lang.Integer udpIdleTimeoutSec) { + this.udpIdleTimeoutSec = udpIdleTimeoutSec; + return this; + } + + @Override + public RouterNat set(String fieldName, Object value) { + return (RouterNat) super.set(fieldName, value); + } + + @Override + public RouterNat clone() { + return (RouterNat) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatLogConfig.java new file mode 100644 index 00000000000..0caddfa523e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatLogConfig.java @@ -0,0 +1,102 @@ +/* + * 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; + +/** + * Configuration of logging on a NAT. + * + *

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 RouterNatLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether or not to export logs. This is false by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enable; + + /** + * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all + * connections handled by this NAT. This option can take one of the following values: - + * ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only + * for successful connections. - ALL: Export logs for all connections, successful and + * unsuccessful. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Indicates whether or not to export logs. This is false by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnable() { + return enable; + } + + /** + * Indicates whether or not to export logs. This is false by default. + * @param enable enable or {@code null} for none + */ + public RouterNatLogConfig setEnable(java.lang.Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all + * connections handled by this NAT. This option can take one of the following values: - + * ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only + * for successful connections. - ALL: Export logs for all connections, successful and + * unsuccessful. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all + * connections handled by this NAT. This option can take one of the following values: - + * ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only + * for successful connections. - ALL: Export logs for all connections, successful and + * unsuccessful. + * @param filter filter or {@code null} for none + */ + public RouterNatLogConfig setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public RouterNatLogConfig set(String fieldName, Object value) { + return (RouterNatLogConfig) super.set(fieldName, value); + } + + @Override + public RouterNatLogConfig clone() { + return (RouterNatLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRule.java new file mode 100644 index 00000000000..a5a9620c8ff --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRule.java @@ -0,0 +1,189 @@ +/* + * 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 RouterNatRule. + * + *

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 RouterNatRule extends com.google.api.client.json.GenericJson { + + /** + * The action to be enforced for traffic that matches this rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RouterNatRuleAction action; + + /** + * An optional description of this rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * CEL expression that specifies the match condition that egress traffic from a VM is evaluated + * against. If it evaluates to true, the corresponding `action` is enforced. + * + * The following examples are valid match expressions for public NAT: + * + * `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` + * + * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` + * + * The following examples are valid match expressions for private NAT: + * + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String match; + + /** + * An integer uniquely identifying a rule in the list. The rule number must be a positive value + * between 0 and 65000, and must be unique among rules within a NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long ruleNumber; + + /** + * The action to be enforced for traffic that matches this rule. + * @return value or {@code null} for none + */ + public RouterNatRuleAction getAction() { + return action; + } + + /** + * The action to be enforced for traffic that matches this rule. + * @param action action or {@code null} for none + */ + public RouterNatRule setAction(RouterNatRuleAction action) { + this.action = action; + return this; + } + + /** + * An optional description of this rule. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this rule. + * @param description description or {@code null} for none + */ + public RouterNatRule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * CEL expression that specifies the match condition that egress traffic from a VM is evaluated + * against. If it evaluates to true, the corresponding `action` is enforced. + * + * The following examples are valid match expressions for public NAT: + * + * `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` + * + * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` + * + * The following examples are valid match expressions for private NAT: + * + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` + * @return value or {@code null} for none + */ + public java.lang.String getMatch() { + return match; + } + + /** + * CEL expression that specifies the match condition that egress traffic from a VM is evaluated + * against. If it evaluates to true, the corresponding `action` is enforced. + * + * The following examples are valid match expressions for public NAT: + * + * `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` + * + * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` + * + * The following examples are valid match expressions for private NAT: + * + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` + * @param match match or {@code null} for none + */ + public RouterNatRule setMatch(java.lang.String match) { + this.match = match; + return this; + } + + /** + * An integer uniquely identifying a rule in the list. The rule number must be a positive value + * between 0 and 65000, and must be unique among rules within a NAT. + * @return value or {@code null} for none + */ + public java.lang.Long getRuleNumber() { + return ruleNumber; + } + + /** + * An integer uniquely identifying a rule in the list. The rule number must be a positive value + * between 0 and 65000, and must be unique among rules within a NAT. + * @param ruleNumber ruleNumber or {@code null} for none + */ + public RouterNatRule setRuleNumber(java.lang.Long ruleNumber) { + this.ruleNumber = ruleNumber; + return this; + } + + @Override + public RouterNatRule set(String fieldName, Object value) { + return (RouterNatRule) super.set(fieldName, value); + } + + @Override + public RouterNatRule clone() { + return (RouterNatRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRuleAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRuleAction.java new file mode 100644 index 00000000000..cc6db4343e8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatRuleAction.java @@ -0,0 +1,156 @@ +/* + * 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 RouterNatRuleAction. + * + *

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 RouterNatRuleAction extends com.google.api.client.json.GenericJson { + + /** + * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid + * static external IP addresses assigned to the project. This field is used for public NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceNatActiveIps; + + /** + * A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks + * must have purpose set to PRIVATE_NAT. This field is used for private NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceNatActiveRanges; + + /** + * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs + * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule + * only. This field is used for public NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceNatDrainIps; + + /** + * A list of URLs of subnetworks representing source ranges to be drained. This is only supported + * on patch/update, and these subnetworks must have previously been used as active ranges in this + * NAT Rule. This field is used for private NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceNatDrainRanges; + + /** + * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid + * static external IP addresses assigned to the project. This field is used for public NAT. + * @return value or {@code null} for none + */ + public java.util.List getSourceNatActiveIps() { + return sourceNatActiveIps; + } + + /** + * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid + * static external IP addresses assigned to the project. This field is used for public NAT. + * @param sourceNatActiveIps sourceNatActiveIps or {@code null} for none + */ + public RouterNatRuleAction setSourceNatActiveIps(java.util.List sourceNatActiveIps) { + this.sourceNatActiveIps = sourceNatActiveIps; + return this; + } + + /** + * A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks + * must have purpose set to PRIVATE_NAT. This field is used for private NAT. + * @return value or {@code null} for none + */ + public java.util.List getSourceNatActiveRanges() { + return sourceNatActiveRanges; + } + + /** + * A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks + * must have purpose set to PRIVATE_NAT. This field is used for private NAT. + * @param sourceNatActiveRanges sourceNatActiveRanges or {@code null} for none + */ + public RouterNatRuleAction setSourceNatActiveRanges(java.util.List sourceNatActiveRanges) { + this.sourceNatActiveRanges = sourceNatActiveRanges; + return this; + } + + /** + * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs + * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule + * only. This field is used for public NAT. + * @return value or {@code null} for none + */ + public java.util.List getSourceNatDrainIps() { + return sourceNatDrainIps; + } + + /** + * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs + * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule + * only. This field is used for public NAT. + * @param sourceNatDrainIps sourceNatDrainIps or {@code null} for none + */ + public RouterNatRuleAction setSourceNatDrainIps(java.util.List sourceNatDrainIps) { + this.sourceNatDrainIps = sourceNatDrainIps; + return this; + } + + /** + * A list of URLs of subnetworks representing source ranges to be drained. This is only supported + * on patch/update, and these subnetworks must have previously been used as active ranges in this + * NAT Rule. This field is used for private NAT. + * @return value or {@code null} for none + */ + public java.util.List getSourceNatDrainRanges() { + return sourceNatDrainRanges; + } + + /** + * A list of URLs of subnetworks representing source ranges to be drained. This is only supported + * on patch/update, and these subnetworks must have previously been used as active ranges in this + * NAT Rule. This field is used for private NAT. + * @param sourceNatDrainRanges sourceNatDrainRanges or {@code null} for none + */ + public RouterNatRuleAction setSourceNatDrainRanges(java.util.List sourceNatDrainRanges) { + this.sourceNatDrainRanges = sourceNatDrainRanges; + return this; + } + + @Override + public RouterNatRuleAction set(String fieldName, Object value) { + return (RouterNatRuleAction) super.set(fieldName, value); + } + + @Override + public RouterNatRuleAction clone() { + return (RouterNatRuleAction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat.java new file mode 100644 index 00000000000..bd2da999917 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat.java @@ -0,0 +1,126 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines the IP ranges that want to use NAT for a subnetwork. + * + *

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 RouterNatSubnetworkToNat extends com.google.api.client.json.GenericJson { + + /** + * URL for the subnetwork resource that will use NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be + * populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in + * source_ip_ranges_to_nat. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List secondaryIpRangeNames; + + /** + * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid + * except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: + * ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceIpRangesToNat; + + /** + * URL for the subnetwork resource that will use NAT. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * URL for the subnetwork resource that will use NAT. + * @param name name or {@code null} for none + */ + public RouterNatSubnetworkToNat setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be + * populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in + * source_ip_ranges_to_nat. + * @return value or {@code null} for none + */ + public java.util.List getSecondaryIpRangeNames() { + return secondaryIpRangeNames; + } + + /** + * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be + * populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in + * source_ip_ranges_to_nat. + * @param secondaryIpRangeNames secondaryIpRangeNames or {@code null} for none + */ + public RouterNatSubnetworkToNat setSecondaryIpRangeNames(java.util.List secondaryIpRangeNames) { + this.secondaryIpRangeNames = secondaryIpRangeNames; + return this; + } + + /** + * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid + * except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: + * ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] + * @return value or {@code null} for none + */ + public java.util.List getSourceIpRangesToNat() { + return sourceIpRangesToNat; + } + + /** + * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid + * except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: + * ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] + * @param sourceIpRangesToNat sourceIpRangesToNat or {@code null} for none + */ + public RouterNatSubnetworkToNat setSourceIpRangesToNat(java.util.List sourceIpRangesToNat) { + this.sourceIpRangesToNat = sourceIpRangesToNat; + return this; + } + + @Override + public RouterNatSubnetworkToNat set(String fieldName, Object value) { + return (RouterNatSubnetworkToNat) super.set(fieldName, value); + } + + @Override + public RouterNatSubnetworkToNat clone() { + return (RouterNatSubnetworkToNat) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat64.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat64.java new file mode 100644 index 00000000000..d4bd47f5eaa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterNatSubnetworkToNat64.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; + +/** + * Specifies a subnetwork to enable NAT64. + * + *

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 RouterNatSubnetworkToNat64 extends com.google.api.client.json.GenericJson { + + /** + * URL for the subnetwork resource that will use NAT64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * URL for the subnetwork resource that will use NAT64. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * URL for the subnetwork resource that will use NAT64. + * @param name name or {@code null} for none + */ + public RouterNatSubnetworkToNat64 setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public RouterNatSubnetworkToNat64 set(String fieldName, Object value) { + return (RouterNatSubnetworkToNat64) super.set(fieldName, value); + } + + @Override + public RouterNatSubnetworkToNat64 clone() { + return (RouterNatSubnetworkToNat64) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterParams.java new file mode 100644 index 00000000000..7bb43b1a073 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional router parameters. + * + *

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 RouterParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The + * keys/values to set on the resource should be specified in either ID { : } or Namespaced format + * { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", + * "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: + * * Invalid combinations of ID & namespaced format is not supported. For instance: + * {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For + * instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The + * keys/values to set on the resource should be specified in either ID { : } or Namespaced format + * { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", + * "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: + * * Invalid combinations of ID & namespaced format is not supported. For instance: + * {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For + * instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The + * keys/values to set on the resource should be specified in either ID { : } or Namespaced format + * { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", + * "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: + * * Invalid combinations of ID & namespaced format is not supported. For instance: + * {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For + * instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public RouterParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public RouterParams set(String fieldName, Object value) { + return (RouterParams) super.set(fieldName, value); + } + + @Override + public RouterParams clone() { + return (RouterParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatus.java new file mode 100644 index 00000000000..a61298a80d8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatus.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; + +/** + * Model definition for RouterStatus. + * + *

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 RouterStatus extends com.google.api.client.json.GenericJson { + + /** + * A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network + * in the same region as this Cloud Router. + * + * Lists all of the best routes per prefix that are programmed into this region's VPC data plane. + * + * When global dynamic routing mode is turned on in the VPC network, this list can include cross- + * region dynamic routes from Cloud Routers in other regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bestRoutes; + + static { + // hack to force ProGuard to consider Route 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(Route.class); + } + + /** + * A list of the best BGP routes learned by this Cloud Router. + * + * It is possible that routes listed might not be programmed into the data plane, if the Google + * Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud + * Router. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bestRoutesForRouter; + + static { + // hack to force ProGuard to consider Route 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(Route.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bgpPeerStatus; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natStatus; + + /** + * URI of the ncc_gateway to which this router associated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nccGateway; + + /** + * URI of the network to which this router belongs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network + * in the same region as this Cloud Router. + * + * Lists all of the best routes per prefix that are programmed into this region's VPC data plane. + * + * When global dynamic routing mode is turned on in the VPC network, this list can include cross- + * region dynamic routes from Cloud Routers in other regions. + * @return value or {@code null} for none + */ + public java.util.List getBestRoutes() { + return bestRoutes; + } + + /** + * A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network + * in the same region as this Cloud Router. + * + * Lists all of the best routes per prefix that are programmed into this region's VPC data plane. + * + * When global dynamic routing mode is turned on in the VPC network, this list can include cross- + * region dynamic routes from Cloud Routers in other regions. + * @param bestRoutes bestRoutes or {@code null} for none + */ + public RouterStatus setBestRoutes(java.util.List bestRoutes) { + this.bestRoutes = bestRoutes; + return this; + } + + /** + * A list of the best BGP routes learned by this Cloud Router. + * + * It is possible that routes listed might not be programmed into the data plane, if the Google + * Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud + * Router. + * @return value or {@code null} for none + */ + public java.util.List getBestRoutesForRouter() { + return bestRoutesForRouter; + } + + /** + * A list of the best BGP routes learned by this Cloud Router. + * + * It is possible that routes listed might not be programmed into the data plane, if the Google + * Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud + * Router. + * @param bestRoutesForRouter bestRoutesForRouter or {@code null} for none + */ + public RouterStatus setBestRoutesForRouter(java.util.List bestRoutesForRouter) { + this.bestRoutesForRouter = bestRoutesForRouter; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getBgpPeerStatus() { + return bgpPeerStatus; + } + + /** + * @param bgpPeerStatus bgpPeerStatus or {@code null} for none + */ + public RouterStatus setBgpPeerStatus(java.util.List bgpPeerStatus) { + this.bgpPeerStatus = bgpPeerStatus; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getNatStatus() { + return natStatus; + } + + /** + * @param natStatus natStatus or {@code null} for none + */ + public RouterStatus setNatStatus(java.util.List natStatus) { + this.natStatus = natStatus; + return this; + } + + /** + * URI of the ncc_gateway to which this router associated. + * @return value or {@code null} for none + */ + public java.lang.String getNccGateway() { + return nccGateway; + } + + /** + * URI of the ncc_gateway to which this router associated. + * @param nccGateway nccGateway or {@code null} for none + */ + public RouterStatus setNccGateway(java.lang.String nccGateway) { + this.nccGateway = nccGateway; + return this; + } + + /** + * URI of the network to which this router belongs. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * URI of the network to which this router belongs. + * @param network network or {@code null} for none + */ + public RouterStatus setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + @Override + public RouterStatus set(String fieldName, Object value) { + return (RouterStatus) super.set(fieldName, value); + } + + @Override + public RouterStatus clone() { + return (RouterStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java new file mode 100644 index 00000000000..01dd9b8ec37 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -0,0 +1,567 @@ +/* + * 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 RouterStatusBgpPeerStatus. + * + *

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 RouterStatusBgpPeerStatus extends com.google.api.client.json.GenericJson { + + /** + * Routes that were advertised to the remote BGP peer + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List advertisedRoutes; + + static { + // hack to force ProGuard to consider Route 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(Route.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BfdStatus bfdStatus; + + /** + * Output only. [Output Only] Indicates whether the BGP peer is in a depreferenced state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean depreferenced; + + /** + * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 4. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableIpv4; + + /** + * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableIpv6; + + /** + * Output only. IP address of the local BGP interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Output only. IPv4 address of the local BGP interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv4NexthopAddress; + + /** + * Output only. IPv6 address of the local BGP interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6NexthopAddress; + + /** + * Output only. URL of the VPN tunnel that this BGP peer controls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String linkedVpnTunnel; + + /** + * Informs whether MD5 authentication is enabled on this BGP peer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean md5AuthEnabled; + + /** + * Output only. Name of this BGP peer. Unique within the Routers resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Number of routes learned from the remote BGP Peer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long numLearnedRoutes; + + /** + * Output only. IP address of the remote BGP interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpAddress; + + /** + * Output only. IPv4 address of the remote BGP interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpv4NexthopAddress; + + /** + * Output only. IPv6 address of the remote BGP interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIpv6NexthopAddress; + + /** + * Output only. [Output only] URI of the VM instance that is used as third-party router appliances + * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer + * side of the BGP session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String routerApplianceInstance; + + /** + * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP + * session states. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Status of the BGP peer: {UP, DOWN} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Indicates why particular status was returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusReason; + + /** + * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 + * minutes, 59 seconds + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uptime; + + /** + * Output only. Time this session has been up, in seconds. Format: 145 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uptimeSeconds; + + /** + * Routes that were advertised to the remote BGP peer + * @return value or {@code null} for none + */ + public java.util.List getAdvertisedRoutes() { + return advertisedRoutes; + } + + /** + * Routes that were advertised to the remote BGP peer + * @param advertisedRoutes advertisedRoutes or {@code null} for none + */ + public RouterStatusBgpPeerStatus setAdvertisedRoutes(java.util.List advertisedRoutes) { + this.advertisedRoutes = advertisedRoutes; + return this; + } + + /** + * @return value or {@code null} for none + */ + public BfdStatus getBfdStatus() { + return bfdStatus; + } + + /** + * @param bfdStatus bfdStatus or {@code null} for none + */ + public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { + this.bfdStatus = bfdStatus; + return this; + } + + /** + * Output only. [Output Only] Indicates whether the BGP peer is in a depreferenced state. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDepreferenced() { + return depreferenced; + } + + /** + * Output only. [Output Only] Indicates whether the BGP peer is in a depreferenced state. + * @param depreferenced depreferenced or {@code null} for none + */ + public RouterStatusBgpPeerStatus setDepreferenced(java.lang.Boolean depreferenced) { + this.depreferenced = depreferenced; + return this; + } + + /** + * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 4. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableIpv4() { + return enableIpv4; + } + + /** + * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 4. + * @param enableIpv4 enableIpv4 or {@code null} for none + */ + public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { + this.enableIpv4 = enableIpv4; + return this; + } + + /** + * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 6. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableIpv6() { + return enableIpv6; + } + + /** + * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress + * is version 6. + * @param enableIpv6 enableIpv6 or {@code null} for none + */ + public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { + this.enableIpv6 = enableIpv6; + return this; + } + + /** + * Output only. IP address of the local BGP interface. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Output only. IP address of the local BGP interface. + * @param ipAddress ipAddress or {@code null} for none + */ + public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Output only. IPv4 address of the local BGP interface. + * @return value or {@code null} for none + */ + public java.lang.String getIpv4NexthopAddress() { + return ipv4NexthopAddress; + } + + /** + * Output only. IPv4 address of the local BGP interface. + * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none + */ + public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { + this.ipv4NexthopAddress = ipv4NexthopAddress; + return this; + } + + /** + * Output only. IPv6 address of the local BGP interface. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6NexthopAddress() { + return ipv6NexthopAddress; + } + + /** + * Output only. IPv6 address of the local BGP interface. + * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none + */ + public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { + this.ipv6NexthopAddress = ipv6NexthopAddress; + return this; + } + + /** + * Output only. URL of the VPN tunnel that this BGP peer controls. + * @return value or {@code null} for none + */ + public java.lang.String getLinkedVpnTunnel() { + return linkedVpnTunnel; + } + + /** + * Output only. URL of the VPN tunnel that this BGP peer controls. + * @param linkedVpnTunnel linkedVpnTunnel or {@code null} for none + */ + public RouterStatusBgpPeerStatus setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { + this.linkedVpnTunnel = linkedVpnTunnel; + return this; + } + + /** + * Informs whether MD5 authentication is enabled on this BGP peer. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMd5AuthEnabled() { + return md5AuthEnabled; + } + + /** + * Informs whether MD5 authentication is enabled on this BGP peer. + * @param md5AuthEnabled md5AuthEnabled or {@code null} for none + */ + public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnabled) { + this.md5AuthEnabled = md5AuthEnabled; + return this; + } + + /** + * Output only. Name of this BGP peer. Unique within the Routers resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Name of this BGP peer. Unique within the Routers resource. + * @param name name or {@code null} for none + */ + public RouterStatusBgpPeerStatus setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Number of routes learned from the remote BGP Peer. + * @return value or {@code null} for none + */ + public java.lang.Long getNumLearnedRoutes() { + return numLearnedRoutes; + } + + /** + * Output only. Number of routes learned from the remote BGP Peer. + * @param numLearnedRoutes numLearnedRoutes or {@code null} for none + */ + public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRoutes) { + this.numLearnedRoutes = numLearnedRoutes; + return this; + } + + /** + * Output only. IP address of the remote BGP interface. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpAddress() { + return peerIpAddress; + } + + /** + * Output only. IP address of the remote BGP interface. + * @param peerIpAddress peerIpAddress or {@code null} for none + */ + public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { + this.peerIpAddress = peerIpAddress; + return this; + } + + /** + * Output only. IPv4 address of the remote BGP interface. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpv4NexthopAddress() { + return peerIpv4NexthopAddress; + } + + /** + * Output only. IPv4 address of the remote BGP interface. + * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none + */ + public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { + this.peerIpv4NexthopAddress = peerIpv4NexthopAddress; + return this; + } + + /** + * Output only. IPv6 address of the remote BGP interface. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIpv6NexthopAddress() { + return peerIpv6NexthopAddress; + } + + /** + * Output only. IPv6 address of the remote BGP interface. + * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none + */ + public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { + this.peerIpv6NexthopAddress = peerIpv6NexthopAddress; + return this; + } + + /** + * Output only. [Output only] URI of the VM instance that is used as third-party router appliances + * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer + * side of the BGP session. + * @return value or {@code null} for none + */ + public java.lang.String getRouterApplianceInstance() { + return routerApplianceInstance; + } + + /** + * Output only. [Output only] URI of the VM instance that is used as third-party router appliances + * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer + * side of the BGP session. + * @param routerApplianceInstance routerApplianceInstance or {@code null} for none + */ + public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String routerApplianceInstance) { + this.routerApplianceInstance = routerApplianceInstance; + return this; + } + + /** + * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP + * session states. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP + * session states. + * @param state state or {@code null} for none + */ + public RouterStatusBgpPeerStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Status of the BGP peer: {UP, DOWN} + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. Status of the BGP peer: {UP, DOWN} + * @param status status or {@code null} for none + */ + public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Indicates why particular status was returned. + * @return value or {@code null} for none + */ + public java.lang.String getStatusReason() { + return statusReason; + } + + /** + * Indicates why particular status was returned. + * @param statusReason statusReason or {@code null} for none + */ + public RouterStatusBgpPeerStatus setStatusReason(java.lang.String statusReason) { + this.statusReason = statusReason; + return this; + } + + /** + * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 + * minutes, 59 seconds + * @return value or {@code null} for none + */ + public java.lang.String getUptime() { + return uptime; + } + + /** + * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 + * minutes, 59 seconds + * @param uptime uptime or {@code null} for none + */ + public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Output only. Time this session has been up, in seconds. Format: 145 + * @return value or {@code null} for none + */ + public java.lang.String getUptimeSeconds() { + return uptimeSeconds; + } + + /** + * Output only. Time this session has been up, in seconds. Format: 145 + * @param uptimeSeconds uptimeSeconds or {@code null} for none + */ + public RouterStatusBgpPeerStatus setUptimeSeconds(java.lang.String uptimeSeconds) { + this.uptimeSeconds = uptimeSeconds; + return this; + } + + @Override + public RouterStatusBgpPeerStatus set(String fieldName, Object value) { + return (RouterStatusBgpPeerStatus) super.set(fieldName, value); + } + + @Override + public RouterStatusBgpPeerStatus clone() { + return (RouterStatusBgpPeerStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java new file mode 100644 index 00000000000..ef71891d9b5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -0,0 +1,273 @@ +/* + * 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; + +/** + * Status of a NAT contained in this router. + * + *

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 RouterStatusNatStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List autoAllocatedNatIps; + + /** + * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List drainAutoAllocatedNatIps; + + /** + * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List drainUserAllocatedNatIps; + + /** + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- + * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful + * only when auto-allocation of NAT IPs is *not* used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minExtraNatIpsNeeded; + + /** + * Output only. Unique name of this NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numVmEndpointsWithNatMappings; + + /** + * Status of rules in this NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ruleStatus; + + /** + * Output only. A list of fully qualified URLs of reserved IP address resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userAllocatedNatIpResources; + + /** + * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like + * "179.12.26.133". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userAllocatedNatIps; + + /** + * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * @return value or {@code null} for none + */ + public java.util.List getAutoAllocatedNatIps() { + return autoAllocatedNatIps; + } + + /** + * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * @param autoAllocatedNatIps autoAllocatedNatIps or {@code null} for none + */ + public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List autoAllocatedNatIps) { + this.autoAllocatedNatIps = autoAllocatedNatIps; + return this; + } + + /** + * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * @return value or {@code null} for none + */ + public java.util.List getDrainAutoAllocatedNatIps() { + return drainAutoAllocatedNatIps; + } + + /** + * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * @param drainAutoAllocatedNatIps drainAutoAllocatedNatIps or {@code null} for none + */ + public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List drainAutoAllocatedNatIps) { + this.drainAutoAllocatedNatIps = drainAutoAllocatedNatIps; + return this; + } + + /** + * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * @return value or {@code null} for none + */ + public java.util.List getDrainUserAllocatedNatIps() { + return drainUserAllocatedNatIps; + } + + /** + * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * @param drainUserAllocatedNatIps drainUserAllocatedNatIps or {@code null} for none + */ + public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List drainUserAllocatedNatIps) { + this.drainUserAllocatedNatIps = drainUserAllocatedNatIps; + return this; + } + + /** + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- + * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful + * only when auto-allocation of NAT IPs is *not* used. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinExtraNatIpsNeeded() { + return minExtraNatIpsNeeded; + } + + /** + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- + * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful + * only when auto-allocation of NAT IPs is *not* used. + * @param minExtraNatIpsNeeded minExtraNatIpsNeeded or {@code null} for none + */ + public RouterStatusNatStatus setMinExtraNatIpsNeeded(java.lang.Integer minExtraNatIpsNeeded) { + this.minExtraNatIpsNeeded = minExtraNatIpsNeeded; + return this; + } + + /** + * Output only. Unique name of this NAT. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Unique name of this NAT. + * @param name name or {@code null} for none + */ + public RouterStatusNatStatus setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumVmEndpointsWithNatMappings() { + return numVmEndpointsWithNatMappings; + } + + /** + * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. + * @param numVmEndpointsWithNatMappings numVmEndpointsWithNatMappings or {@code null} for none + */ + public RouterStatusNatStatus setNumVmEndpointsWithNatMappings(java.lang.Integer numVmEndpointsWithNatMappings) { + this.numVmEndpointsWithNatMappings = numVmEndpointsWithNatMappings; + return this; + } + + /** + * Status of rules in this NAT. + * @return value or {@code null} for none + */ + public java.util.List getRuleStatus() { + return ruleStatus; + } + + /** + * Status of rules in this NAT. + * @param ruleStatus ruleStatus or {@code null} for none + */ + public RouterStatusNatStatus setRuleStatus(java.util.List ruleStatus) { + this.ruleStatus = ruleStatus; + return this; + } + + /** + * Output only. A list of fully qualified URLs of reserved IP address resources. + * @return value or {@code null} for none + */ + public java.util.List getUserAllocatedNatIpResources() { + return userAllocatedNatIpResources; + } + + /** + * Output only. A list of fully qualified URLs of reserved IP address resources. + * @param userAllocatedNatIpResources userAllocatedNatIpResources or {@code null} for none + */ + public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List userAllocatedNatIpResources) { + this.userAllocatedNatIpResources = userAllocatedNatIpResources; + return this; + } + + /** + * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like + * "179.12.26.133". + * @return value or {@code null} for none + */ + public java.util.List getUserAllocatedNatIps() { + return userAllocatedNatIps; + } + + /** + * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like + * "179.12.26.133". + * @param userAllocatedNatIps userAllocatedNatIps or {@code null} for none + */ + public RouterStatusNatStatus setUserAllocatedNatIps(java.util.List userAllocatedNatIps) { + this.userAllocatedNatIps = userAllocatedNatIps; + return this; + } + + @Override + public RouterStatusNatStatus set(String fieldName, Object value) { + return (RouterStatusNatStatus) super.set(fieldName, value); + } + + @Override + public RouterStatusNatStatus clone() { + return (RouterStatusNatStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java new file mode 100644 index 00000000000..cbbdfb39f77 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -0,0 +1,168 @@ +/* + * 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; + +/** + * Status of a NAT Rule contained in this NAT. + * + *

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 RouterStatusNatStatusNatRuleStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List activeNatIps; + + /** + * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List drainNatIps; + + /** + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the + * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minExtraIpsNeeded; + + /** + * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numVmEndpointsWithNatMappings; + + /** + * Output only. Rule number of the rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ruleNumber; + + /** + * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * @return value or {@code null} for none + */ + public java.util.List getActiveNatIps() { + return activeNatIps; + } + + /** + * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * @param activeNatIps activeNatIps or {@code null} for none + */ + public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List activeNatIps) { + this.activeNatIps = activeNatIps; + return this; + } + + /** + * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * @return value or {@code null} for none + */ + public java.util.List getDrainNatIps() { + return drainNatIps; + } + + /** + * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", + * "179.12.26.133"]. + * @param drainNatIps drainNatIps or {@code null} for none + */ + public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List drainNatIps) { + this.drainNatIps = drainNatIps; + return this; + } + + /** + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the + * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinExtraIpsNeeded() { + return minExtraIpsNeeded; + } + + /** + * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the + * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. + * @param minExtraIpsNeeded minExtraIpsNeeded or {@code null} for none + */ + public RouterStatusNatStatusNatRuleStatus setMinExtraIpsNeeded(java.lang.Integer minExtraIpsNeeded) { + this.minExtraIpsNeeded = minExtraIpsNeeded; + return this; + } + + /** + * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumVmEndpointsWithNatMappings() { + return numVmEndpointsWithNatMappings; + } + + /** + * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * @param numVmEndpointsWithNatMappings numVmEndpointsWithNatMappings or {@code null} for none + */ + public RouterStatusNatStatusNatRuleStatus setNumVmEndpointsWithNatMappings(java.lang.Integer numVmEndpointsWithNatMappings) { + this.numVmEndpointsWithNatMappings = numVmEndpointsWithNatMappings; + return this; + } + + /** + * Output only. Rule number of the rule. + * @return value or {@code null} for none + */ + public java.lang.Integer getRuleNumber() { + return ruleNumber; + } + + /** + * Output only. Rule number of the rule. + * @param ruleNumber ruleNumber or {@code null} for none + */ + public RouterStatusNatStatusNatRuleStatus setRuleNumber(java.lang.Integer ruleNumber) { + this.ruleNumber = ruleNumber; + return this; + } + + @Override + public RouterStatusNatStatusNatRuleStatus set(String fieldName, Object value) { + return (RouterStatusNatStatusNatRuleStatus) super.set(fieldName, value); + } + + @Override + public RouterStatusNatStatusNatRuleStatus clone() { + return (RouterStatusNatStatusNatRuleStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusResponse.java new file mode 100644 index 00000000000..136b998e2c0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RouterStatusResponse.java @@ -0,0 +1,87 @@ +/* + * 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 RouterStatusResponse. + * + *

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 RouterStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. Type of resource. + * 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 RouterStatus result; + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public RouterStatusResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * @return value or {@code null} for none + */ + public RouterStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public RouterStatusResponse setResult(RouterStatus result) { + this.result = result; + return this; + } + + @Override + public RouterStatusResponse set(String fieldName, Object value) { + return (RouterStatusResponse) super.set(fieldName, value); + } + + @Override + public RouterStatusResponse clone() { + return (RouterStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetNamedSetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetNamedSetResponse.java new file mode 100644 index 00000000000..42d538417a4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetNamedSetResponse.java @@ -0,0 +1,87 @@ +/* + * 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 RoutersGetNamedSetResponse. + * + *

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 RoutersGetNamedSetResponse extends com.google.api.client.json.GenericJson { + + /** + * end_interface: MixerGetResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NamedSet resource; + + /** + * end_interface: MixerGetResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * end_interface: MixerGetResponseWithEtagBuilder + * @param etag etag or {@code null} for none + */ + public RoutersGetNamedSetResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * @return value or {@code null} for none + */ + public NamedSet getResource() { + return resource; + } + + /** + * @param resource resource or {@code null} for none + */ + public RoutersGetNamedSetResponse setResource(NamedSet resource) { + this.resource = resource; + return this; + } + + @Override + public RoutersGetNamedSetResponse set(String fieldName, Object value) { + return (RoutersGetNamedSetResponse) super.set(fieldName, value); + } + + @Override + public RoutersGetNamedSetResponse clone() { + return (RoutersGetNamedSetResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetRoutePolicyResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetRoutePolicyResponse.java new file mode 100644 index 00000000000..11f2a4c3352 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersGetRoutePolicyResponse.java @@ -0,0 +1,63 @@ +/* + * 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 RoutersGetRoutePolicyResponse. + * + *

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 RoutersGetRoutePolicyResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RoutePolicy resource; + + /** + * @return value or {@code null} for none + */ + public RoutePolicy getResource() { + return resource; + } + + /** + * @param resource resource or {@code null} for none + */ + public RoutersGetRoutePolicyResponse setResource(RoutePolicy resource) { + this.resource = resource; + return this; + } + + @Override + public RoutersGetRoutePolicyResponse set(String fieldName, Object value) { + return (RoutersGetRoutePolicyResponse) super.set(fieldName, value); + } + + @Override + public RoutersGetRoutePolicyResponse clone() { + return (RoutersGetRoutePolicyResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java new file mode 100644 index 00000000000..e05210c19a9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java @@ -0,0 +1,431 @@ +/* + * 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 RoutersListBgpRoutes. + * + *

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 RoutersListBgpRoutes extends com.google.api.client.json.GenericJson { + + /** + * 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}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of + * bgp routes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] A list of bgp routes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider BgpRoute 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(BgpRoute.class); + } + + /** + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RoutersListBgpRoutes 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 + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public RoutersListBgpRoutes setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of + * bgp routes. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of + * bgp routes. + * @param kind kind or {@code null} for none + */ + public RoutersListBgpRoutes setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RoutersListBgpRoutes setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] A list of bgp routes. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * [Output Only] A list of bgp routes. + * @param result result or {@code null} for none + */ + public RoutersListBgpRoutes setResult(java.util.List result) { + this.result = result; + 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 RoutersListBgpRoutes 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 RoutersListBgpRoutes 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 RoutersListBgpRoutes setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RoutersListBgpRoutes set(String fieldName, Object value) { + return (RoutersListBgpRoutes) super.set(fieldName, value); + } + + @Override + public RoutersListBgpRoutes clone() { + return (RoutersListBgpRoutes) 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 RoutersListBgpRoutesWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java new file mode 100644 index 00000000000..259e9d9d452 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java @@ -0,0 +1,431 @@ +/* + * 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 RoutersListNamedSets. + * + *

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 RoutersListNamedSets extends com.google.api.client.json.GenericJson { + + /** + * 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}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of + * named sets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] A list of named sets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider NamedSet 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(NamedSet.class); + } + + /** + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RoutersListNamedSets 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 + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public RoutersListNamedSets setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of + * named sets. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of + * named sets. + * @param kind kind or {@code null} for none + */ + public RoutersListNamedSets setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RoutersListNamedSets setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] A list of named sets. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * [Output Only] A list of named sets. + * @param result result or {@code null} for none + */ + public RoutersListNamedSets setResult(java.util.List result) { + this.result = result; + 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 RoutersListNamedSets 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 RoutersListNamedSets 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 RoutersListNamedSets setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RoutersListNamedSets set(String fieldName, Object value) { + return (RoutersListNamedSets) super.set(fieldName, value); + } + + @Override + public RoutersListNamedSets clone() { + return (RoutersListNamedSets) 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 RoutersListNamedSetsWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java new file mode 100644 index 00000000000..468e8b9819e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -0,0 +1,431 @@ +/* + * 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 RoutersListRoutePolicies. + * + *

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 RoutersListRoutePolicies extends com.google.api.client.json.GenericJson { + + /** + * 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}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists + * of route policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] A list of route policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider RoutePolicy 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(RoutePolicy.class); + } + + /** + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public RoutersListRoutePolicies 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 + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public RoutersListRoutePolicies setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists + * of route policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists + * of route policies. + * @param kind kind or {@code null} for none + */ + public RoutersListRoutePolicies setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public RoutersListRoutePolicies setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] A list of route policies. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * [Output Only] A list of route policies. + * @param result result or {@code null} for none + */ + public RoutersListRoutePolicies setResult(java.util.List result) { + this.result = result; + 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 RoutersListRoutePolicies 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 RoutersListRoutePolicies 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 RoutersListRoutePolicies setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RoutersListRoutePolicies set(String fieldName, Object value) { + return (RoutersListRoutePolicies) super.set(fieldName, value); + } + + @Override + public RoutersListRoutePolicies clone() { + return (RoutersListRoutePolicies) 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 RoutersListRoutePoliciesWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/RoutersPreviewResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersPreviewResponse.java new file mode 100644 index 00000000000..96b9bf6ecbc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersPreviewResponse.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; + +/** + * Model definition for RoutersPreviewResponse. + * + *

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 RoutersPreviewResponse extends com.google.api.client.json.GenericJson { + + /** + * Preview of given router. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Router resource; + + /** + * Preview of given router. + * @return value or {@code null} for none + */ + public Router getResource() { + return resource; + } + + /** + * Preview of given router. + * @param resource resource or {@code null} for none + */ + public RoutersPreviewResponse setResource(Router resource) { + this.resource = resource; + return this; + } + + @Override + public RoutersPreviewResponse set(String fieldName, Object value) { + return (RoutersPreviewResponse) super.set(fieldName, value); + } + + @Override + public RoutersPreviewResponse clone() { + return (RoutersPreviewResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersScopedList.java new file mode 100644 index 00000000000..02f9e0f2af3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/RoutersScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 RoutersScopedList. + * + *

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 RoutersScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of routers contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List routers; + + static { + // hack to force ProGuard to consider Router 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(Router.class); + } + + /** + * Informational warning which replaces the list of routers when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of routers contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getRouters() { + return routers; + } + + /** + * A list of routers contained in this scope. + * @param routers routers or {@code null} for none + */ + public RoutersScopedList setRouters(java.util.List routers) { + this.routers = routers; + return this; + } + + /** + * Informational warning which replaces the list of routers when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of routers when the list is empty. + * @param warning warning or {@code null} for none + */ + public RoutersScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public RoutersScopedList set(String fieldName, Object value) { + return (RoutersScopedList) super.set(fieldName, value); + } + + @Override + public RoutersScopedList clone() { + return (RoutersScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of routers when the list is empty. + */ + 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 RoutersScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SSLHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SSLHealthCheck.java new file mode 100644 index 00000000000..3ce1e269bfd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SSLHealthCheck.java @@ -0,0 +1,249 @@ +/* + * 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 SSLHealthCheck. + * + *

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 SSLHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, + * after establishing the TCP connection and SSL handshake. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String request; + + /** + * Creates a content-based SSL health check. In addition to establishing a TCP connection and the + * TLS handshake, you can configure the health check to pass only when the backend sends this + * exact response ASCII string, up to 1024 bytes in length. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String response; + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 443. + * Valid values are 1 through65535. + * @param port port or {@code null} for none + */ + public SSLHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Not supported. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Not supported. + * @param portName portName or {@code null} for none + */ + public SSLHealthCheck setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public SSLHealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public SSLHealthCheck setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, + * after establishing the TCP connection and SSL handshake. + * @return value or {@code null} for none + */ + public java.lang.String getRequest() { + return request; + } + + /** + * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, + * after establishing the TCP connection and SSL handshake. + * @param request request or {@code null} for none + */ + public SSLHealthCheck setRequest(java.lang.String request) { + this.request = request; + return this; + } + + /** + * Creates a content-based SSL health check. In addition to establishing a TCP connection and the + * TLS handshake, you can configure the health check to pass only when the backend sends this + * exact response ASCII string, up to 1024 bytes in length. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + * @return value or {@code null} for none + */ + public java.lang.String getResponse() { + return response; + } + + /** + * Creates a content-based SSL health check. In addition to establishing a TCP connection and the + * TLS handshake, you can configure the health check to pass only when the backend sends this + * exact response ASCII string, up to 1024 bytes in length. For details, see: + * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + * @param response response or {@code null} for none + */ + public SSLHealthCheck setResponse(java.lang.String response) { + this.response = response; + return this; + } + + @Override + public SSLHealthCheck set(String fieldName, Object value) { + return (SSLHealthCheck) super.set(fieldName, value); + } + + @Override + public SSLHealthCheck clone() { + return (SSLHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java new file mode 100644 index 00000000000..200770cde8a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -0,0 +1,456 @@ +/* + * 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; + +/** + * DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk 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 SavedAttachedDisk extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoDelete; + + /** + * Indicates that this is a boot disk. The virtual machine will use the first partition of the + * disk for its root filesystem. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boot; + + /** + * Specifies the name of the disk attached to the source instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** + * The encryption key for the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey diskEncryptionKey; + + /** + * The size of the disk in base-2 GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Output only. [Output Only] URL of the disk type resource. For + * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String diskType; + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guestOsFeatures; + + static { + // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); + } + + /** + * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer index; + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("interface") + private java.lang.String interface__; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Any valid publicly visible licenses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * Specifies a URL of the disk attached to the source instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine + * image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long storageBytes; + + /** + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storageBytesStatus; + + /** + * Specifies the type of the attached disk, either SCRATCH orPERSISTENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoDelete() { + return autoDelete; + } + + /** + * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the + * disk is detached from the instance). + * @param autoDelete autoDelete or {@code null} for none + */ + public SavedAttachedDisk setAutoDelete(java.lang.Boolean autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * Indicates that this is a boot disk. The virtual machine will use the first partition of the + * disk for its root filesystem. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoot() { + return boot; + } + + /** + * Indicates that this is a boot disk. The virtual machine will use the first partition of the + * disk for its root filesystem. + * @param boot boot or {@code null} for none + */ + public SavedAttachedDisk setBoot(java.lang.Boolean boot) { + this.boot = boot; + return this; + } + + /** + * Specifies the name of the disk attached to the source instance. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * Specifies the name of the disk attached to the source instance. + * @param deviceName deviceName or {@code null} for none + */ + public SavedAttachedDisk setDeviceName(java.lang.String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * The encryption key for the disk. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getDiskEncryptionKey() { + return diskEncryptionKey; + } + + /** + * The encryption key for the disk. + * @param diskEncryptionKey diskEncryptionKey or {@code null} for none + */ + public SavedAttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { + this.diskEncryptionKey = diskEncryptionKey; + return this; + } + + /** + * The size of the disk in base-2 GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * The size of the disk in base-2 GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * Output only. [Output Only] URL of the disk type resource. For + * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd + * @return value or {@code null} for none + */ + public java.lang.String getDiskType() { + return diskType; + } + + /** + * Output only. [Output Only] URL of the disk type resource. For + * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd + * @param diskType diskType or {@code null} for none + */ + public SavedAttachedDisk setDiskType(java.lang.String diskType) { + this.diskType = diskType; + return this; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * @return value or {@code null} for none + */ + public java.util.List getGuestOsFeatures() { + return guestOsFeatures; + } + + /** + * A list of features to enable on the guest operating system. Applicable only for bootable + * images. Read Enabling guest operating system features to see a list of available options. + * @param guestOsFeatures guestOsFeatures or {@code null} for none + */ + public SavedAttachedDisk setGuestOsFeatures(java.util.List guestOsFeatures) { + this.guestOsFeatures = guestOsFeatures; + return this; + } + + /** + * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getIndex() { + return index; + } + + /** + * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * @param index index or {@code null} for none + */ + public SavedAttachedDisk setIndex(java.lang.Integer index) { + this.index = index; + return this; + } + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + * @return value or {@code null} for none + */ + public java.lang.String getInterface() { + return interface__; + } + + /** + * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + * @param interface__ interface__ or {@code null} for none + */ + public SavedAttachedDisk setInterface(java.lang.String interface__) { + this.interface__ = interface__; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * @param kind kind or {@code null} for none + */ + public SavedAttachedDisk setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Any valid publicly visible licenses. + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * Output only. [Output Only] Any valid publicly visible licenses. + * @param licenses licenses or {@code null} for none + */ + public SavedAttachedDisk setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. + * @param mode mode or {@code null} for none + */ + public SavedAttachedDisk setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + /** + * Specifies a URL of the disk attached to the source instance. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Specifies a URL of the disk attached to the source instance. + * @param source source or {@code null} for none + */ + public SavedAttachedDisk setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine + * image. + * @return value or {@code null} for none + */ + public java.lang.Long getStorageBytes() { + return storageBytes; + } + + /** + * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine + * image. + * @param storageBytes storageBytes or {@code null} for none + */ + public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { + this.storageBytes = storageBytes; + return this; + } + + /** + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. + * @return value or {@code null} for none + */ + public java.lang.String getStorageBytesStatus() { + return storageBytesStatus; + } + + /** + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. + * @param storageBytesStatus storageBytesStatus or {@code null} for none + */ + public SavedAttachedDisk setStorageBytesStatus(java.lang.String storageBytesStatus) { + this.storageBytesStatus = storageBytesStatus; + return this; + } + + /** + * Specifies the type of the attached disk, either SCRATCH orPERSISTENT. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Specifies the type of the attached disk, either SCRATCH orPERSISTENT. + * @param type type or {@code null} for none + */ + public SavedAttachedDisk setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public SavedAttachedDisk set(String fieldName, Object value) { + return (SavedAttachedDisk) super.set(fieldName, value); + } + + @Override + public SavedAttachedDisk clone() { + return (SavedAttachedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedDisk.java new file mode 100644 index 00000000000..aaed00e16f7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -0,0 +1,171 @@ +/* + * 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; + +/** + * An instance-attached disk 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 SavedDisk extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The architecture of the attached disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. Specifies a URL of the disk attached to the source instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long storageBytes; + + /** + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storageBytesStatus; + + /** + * Output only. [Output Only] The architecture of the attached disk. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * Output only. [Output Only] The architecture of the attached disk. + * @param architecture architecture or {@code null} for none + */ + public SavedDisk setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * @param kind kind or {@code null} for none + */ + public SavedDisk setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. Specifies a URL of the disk attached to the source instance. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * Output only. Specifies a URL of the disk attached to the source instance. + * @param sourceDisk sourceDisk or {@code null} for none + */ + public SavedDisk setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + /** + * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * @return value or {@code null} for none + */ + public java.lang.Long getStorageBytes() { + return storageBytes; + } + + /** + * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * @param storageBytes storageBytes or {@code null} for none + */ + public SavedDisk setStorageBytes(java.lang.Long storageBytes) { + this.storageBytes = storageBytes; + return this; + } + + /** + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. + * @return value or {@code null} for none + */ + public java.lang.String getStorageBytesStatus() { + return storageBytesStatus; + } + + /** + * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is + * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, + * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the + * snapshot is up-to-date. + * @param storageBytesStatus storageBytesStatus or {@code null} for none + */ + public SavedDisk setStorageBytesStatus(java.lang.String storageBytesStatus) { + this.storageBytesStatus = storageBytesStatus; + return this; + } + + @Override + public SavedDisk set(String fieldName, Object value) { + return (SavedDisk) super.set(fieldName, value); + } + + @Override + public SavedDisk clone() { + return (SavedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ScalingScheduleStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ScalingScheduleStatus.java new file mode 100644 index 00000000000..938998770a7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ScalingScheduleStatus.java @@ -0,0 +1,126 @@ +/* + * 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 ScalingScheduleStatus. + * + *

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 ScalingScheduleStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when + * a schedule actually became active, not when it was planned to do so. The timestamp is in + * RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastStartTime; + + /** + * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp + * when a schedule is planned to run, but the actual time might be slightly different. The + * timestamp is in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextStartTime; + + /** + * [Output Only] The current state of a scaling schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when + * a schedule actually became active, not when it was planned to do so. The timestamp is in + * RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastStartTime() { + return lastStartTime; + } + + /** + * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when + * a schedule actually became active, not when it was planned to do so. The timestamp is in + * RFC3339 text format. + * @param lastStartTime lastStartTime or {@code null} for none + */ + public ScalingScheduleStatus setLastStartTime(java.lang.String lastStartTime) { + this.lastStartTime = lastStartTime; + return this; + } + + /** + * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp + * when a schedule is planned to run, but the actual time might be slightly different. The + * timestamp is in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getNextStartTime() { + return nextStartTime; + } + + /** + * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp + * when a schedule is planned to run, but the actual time might be slightly different. The + * timestamp is in RFC3339 text format. + * @param nextStartTime nextStartTime or {@code null} for none + */ + public ScalingScheduleStatus setNextStartTime(java.lang.String nextStartTime) { + this.nextStartTime = nextStartTime; + return this; + } + + /** + * [Output Only] The current state of a scaling schedule. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * [Output Only] The current state of a scaling schedule. + * @param state state or {@code null} for none + */ + public ScalingScheduleStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public ScalingScheduleStatus set(String fieldName, Object value) { + return (ScalingScheduleStatus) super.set(fieldName, value); + } + + @Override + public ScalingScheduleStatus clone() { + return (ScalingScheduleStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Scheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Scheduling.java new file mode 100644 index 00000000000..d78dc57684d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Scheduling.java @@ -0,0 +1,540 @@ +/* + * 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; + +/** + * Sets the scheduling options for an Instance. + * + *

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 Scheduling extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether the instance should be automatically restarted if it is terminated by Compute + * Engine (not terminated by a user). You can only set the automatic restart option for standard + * instances.Preemptible instances cannot be automatically restarted. + * + * By default, this is set to true so an instance is automatically restarted if it is terminated + * by Compute Engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean automaticRestart; + + /** + * Specifies the availability domain to place the instance in. The value must be a number between + * 1 and the number of availability domains specified in the spread placement policy attached to + * the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer availabilityDomain; + + /** + * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the + * VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exposeHostTopology; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SchedulingGracefulShutdown gracefulShutdown; + + /** + * Specify the time in seconds for host error detection, the value must be within the range of + * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will + * be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer hostErrorTimeoutSeconds; + + /** + * Specifies the termination action for the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceTerminationAction; + + /** + * Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd + * state is attempted. Its value should be in between 0 and 168 hours with hour granularity and + * the default value being 1 hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration localSsdRecoveryTimeout; + + /** + * An opaque location hint used to place the instance close to other resources. This field is for + * use by internal tools that use the public API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationHint; + + /** + * Specifies the max run duration for the given instance. If specified, the instance termination + * action will be performed at the end of the run duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxRunDuration; + + /** + * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant + * node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minNodeCpus; + + /** + * A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for + * more information. Overrides reservationAffinity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List nodeAffinities; + + /** + * Defines the maintenance behavior for this instance. For standard instances, the default + * behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is + * TERMINATE. For more information, see Set VM host maintenance policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String onHostMaintenance; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SchedulingOnInstanceStopAction onInstanceStopAction; + + /** + * Defines whether the instance is preemptible. This can only be set during instance creation or + * while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for + * more information on the possible instance states. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean preemptible; + + /** + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration preemptionNoticeDuration; + + /** + * Specifies the provisioning model of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningModel; + + /** + * Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 + * Mechanical Off for Standard VMs and 30 seconds for Spot VMs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean skipGuestOsShutdown; + + /** + * Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If + * specified, the instance termination action will be performed at the termination time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String terminationTime; + + /** + * Specifies whether the instance should be automatically restarted if it is terminated by Compute + * Engine (not terminated by a user). You can only set the automatic restart option for standard + * instances.Preemptible instances cannot be automatically restarted. + * + * By default, this is set to true so an instance is automatically restarted if it is terminated + * by Compute Engine. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutomaticRestart() { + return automaticRestart; + } + + /** + * Specifies whether the instance should be automatically restarted if it is terminated by Compute + * Engine (not terminated by a user). You can only set the automatic restart option for standard + * instances.Preemptible instances cannot be automatically restarted. + * + * By default, this is set to true so an instance is automatically restarted if it is terminated + * by Compute Engine. + * @param automaticRestart automaticRestart or {@code null} for none + */ + public Scheduling setAutomaticRestart(java.lang.Boolean automaticRestart) { + this.automaticRestart = automaticRestart; + return this; + } + + /** + * Specifies the availability domain to place the instance in. The value must be a number between + * 1 and the number of availability domains specified in the spread placement policy attached to + * the instance. + * @return value or {@code null} for none + */ + public java.lang.Integer getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * Specifies the availability domain to place the instance in. The value must be a number between + * 1 and the number of availability domains specified in the spread placement policy attached to + * the instance. + * @param availabilityDomain availabilityDomain or {@code null} for none + */ + public Scheduling setAvailabilityDomain(java.lang.Integer availabilityDomain) { + this.availabilityDomain = availabilityDomain; + return this; + } + + /** + * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the + * VM. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExposeHostTopology() { + return exposeHostTopology; + } + + /** + * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the + * VM. + * @param exposeHostTopology exposeHostTopology or {@code null} for none + */ + public Scheduling setExposeHostTopology(java.lang.Boolean exposeHostTopology) { + this.exposeHostTopology = exposeHostTopology; + return this; + } + + /** + * @return value or {@code null} for none + */ + public SchedulingGracefulShutdown getGracefulShutdown() { + return gracefulShutdown; + } + + /** + * @param gracefulShutdown gracefulShutdown or {@code null} for none + */ + public Scheduling setGracefulShutdown(SchedulingGracefulShutdown gracefulShutdown) { + this.gracefulShutdown = gracefulShutdown; + return this; + } + + /** + * Specify the time in seconds for host error detection, the value must be within the range of + * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will + * be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getHostErrorTimeoutSeconds() { + return hostErrorTimeoutSeconds; + } + + /** + * Specify the time in seconds for host error detection, the value must be within the range of + * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will + * be used. + * @param hostErrorTimeoutSeconds hostErrorTimeoutSeconds or {@code null} for none + */ + public Scheduling setHostErrorTimeoutSeconds(java.lang.Integer hostErrorTimeoutSeconds) { + this.hostErrorTimeoutSeconds = hostErrorTimeoutSeconds; + return this; + } + + /** + * Specifies the termination action for the instance. + * @return value or {@code null} for none + */ + public java.lang.String getInstanceTerminationAction() { + return instanceTerminationAction; + } + + /** + * Specifies the termination action for the instance. + * @param instanceTerminationAction instanceTerminationAction or {@code null} for none + */ + public Scheduling setInstanceTerminationAction(java.lang.String instanceTerminationAction) { + this.instanceTerminationAction = instanceTerminationAction; + return this; + } + + /** + * Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd + * state is attempted. Its value should be in between 0 and 168 hours with hour granularity and + * the default value being 1 hour. + * @return value or {@code null} for none + */ + public Duration getLocalSsdRecoveryTimeout() { + return localSsdRecoveryTimeout; + } + + /** + * Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd + * state is attempted. Its value should be in between 0 and 168 hours with hour granularity and + * the default value being 1 hour. + * @param localSsdRecoveryTimeout localSsdRecoveryTimeout or {@code null} for none + */ + public Scheduling setLocalSsdRecoveryTimeout(Duration localSsdRecoveryTimeout) { + this.localSsdRecoveryTimeout = localSsdRecoveryTimeout; + return this; + } + + /** + * An opaque location hint used to place the instance close to other resources. This field is for + * use by internal tools that use the public API. + * @return value or {@code null} for none + */ + public java.lang.String getLocationHint() { + return locationHint; + } + + /** + * An opaque location hint used to place the instance close to other resources. This field is for + * use by internal tools that use the public API. + * @param locationHint locationHint or {@code null} for none + */ + public Scheduling setLocationHint(java.lang.String locationHint) { + this.locationHint = locationHint; + return this; + } + + /** + * Specifies the max run duration for the given instance. If specified, the instance termination + * action will be performed at the end of the run duration. + * @return value or {@code null} for none + */ + public Duration getMaxRunDuration() { + return maxRunDuration; + } + + /** + * Specifies the max run duration for the given instance. If specified, the instance termination + * action will be performed at the end of the run duration. + * @param maxRunDuration maxRunDuration or {@code null} for none + */ + public Scheduling setMaxRunDuration(Duration maxRunDuration) { + this.maxRunDuration = maxRunDuration; + return this; + } + + /** + * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant + * node. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinNodeCpus() { + return minNodeCpus; + } + + /** + * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant + * node. + * @param minNodeCpus minNodeCpus or {@code null} for none + */ + public Scheduling setMinNodeCpus(java.lang.Integer minNodeCpus) { + this.minNodeCpus = minNodeCpus; + return this; + } + + /** + * A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for + * more information. Overrides reservationAffinity. + * @return value or {@code null} for none + */ + public java.util.List getNodeAffinities() { + return nodeAffinities; + } + + /** + * A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for + * more information. Overrides reservationAffinity. + * @param nodeAffinities nodeAffinities or {@code null} for none + */ + public Scheduling setNodeAffinities(java.util.List nodeAffinities) { + this.nodeAffinities = nodeAffinities; + return this; + } + + /** + * Defines the maintenance behavior for this instance. For standard instances, the default + * behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is + * TERMINATE. For more information, see Set VM host maintenance policy. + * @return value or {@code null} for none + */ + public java.lang.String getOnHostMaintenance() { + return onHostMaintenance; + } + + /** + * Defines the maintenance behavior for this instance. For standard instances, the default + * behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is + * TERMINATE. For more information, see Set VM host maintenance policy. + * @param onHostMaintenance onHostMaintenance or {@code null} for none + */ + public Scheduling setOnHostMaintenance(java.lang.String onHostMaintenance) { + this.onHostMaintenance = onHostMaintenance; + return this; + } + + /** + * @return value or {@code null} for none + */ + public SchedulingOnInstanceStopAction getOnInstanceStopAction() { + return onInstanceStopAction; + } + + /** + * @param onInstanceStopAction onInstanceStopAction or {@code null} for none + */ + public Scheduling setOnInstanceStopAction(SchedulingOnInstanceStopAction onInstanceStopAction) { + this.onInstanceStopAction = onInstanceStopAction; + return this; + } + + /** + * Defines whether the instance is preemptible. This can only be set during instance creation or + * while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for + * more information on the possible instance states. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPreemptible() { + return preemptible; + } + + /** + * Defines whether the instance is preemptible. This can only be set during instance creation or + * while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for + * more information on the possible instance states. + * @param preemptible preemptible or {@code null} for none + */ + public Scheduling setPreemptible(java.lang.Boolean preemptible) { + this.preemptible = preemptible; + return this; + } + + /** + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. + * @return value or {@code null} for none + */ + public Duration getPreemptionNoticeDuration() { + return preemptionNoticeDuration; + } + + /** + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. + * @param preemptionNoticeDuration preemptionNoticeDuration or {@code null} for none + */ + public Scheduling setPreemptionNoticeDuration(Duration preemptionNoticeDuration) { + this.preemptionNoticeDuration = preemptionNoticeDuration; + return this; + } + + /** + * Specifies the provisioning model of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningModel() { + return provisioningModel; + } + + /** + * Specifies the provisioning model of the instance. + * @param provisioningModel provisioningModel or {@code null} for none + */ + public Scheduling setProvisioningModel(java.lang.String provisioningModel) { + this.provisioningModel = provisioningModel; + return this; + } + + /** + * Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 + * Mechanical Off for Standard VMs and 30 seconds for Spot VMs. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSkipGuestOsShutdown() { + return skipGuestOsShutdown; + } + + /** + * Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 + * Mechanical Off for Standard VMs and 30 seconds for Spot VMs. + * @param skipGuestOsShutdown skipGuestOsShutdown or {@code null} for none + */ + public Scheduling setSkipGuestOsShutdown(java.lang.Boolean skipGuestOsShutdown) { + this.skipGuestOsShutdown = skipGuestOsShutdown; + return this; + } + + /** + * Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If + * specified, the instance termination action will be performed at the termination time. + * @return value or {@code null} for none + */ + public java.lang.String getTerminationTime() { + return terminationTime; + } + + /** + * Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If + * specified, the instance termination action will be performed at the termination time. + * @param terminationTime terminationTime or {@code null} for none + */ + public Scheduling setTerminationTime(java.lang.String terminationTime) { + this.terminationTime = terminationTime; + return this; + } + + @Override + public Scheduling set(String fieldName, Object value) { + return (Scheduling) super.set(fieldName, value); + } + + @Override + public Scheduling clone() { + return (Scheduling) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java new file mode 100644 index 00000000000..d5e97fd0ae5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for gracefully shutting down the instance. + * + *

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 SchedulingGracefulShutdown extends com.google.api.client.json.GenericJson { + + /** + * Opts-in for graceful shutdown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't + * complete after this time, then the instance transitions to the STOPPING state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxDuration; + + /** + * Opts-in for graceful shutdown. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Opts-in for graceful shutdown. + * @param enabled enabled or {@code null} for none + */ + public SchedulingGracefulShutdown setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't + * complete after this time, then the instance transitions to the STOPPING state. + * @return value or {@code null} for none + */ + public Duration getMaxDuration() { + return maxDuration; + } + + /** + * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't + * complete after this time, then the instance transitions to the STOPPING state. + * @param maxDuration maxDuration or {@code null} for none + */ + public SchedulingGracefulShutdown setMaxDuration(Duration maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + @Override + public SchedulingGracefulShutdown set(String fieldName, Object value) { + return (SchedulingGracefulShutdown) super.set(fieldName, value); + } + + @Override + public SchedulingGracefulShutdown clone() { + return (SchedulingGracefulShutdown) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingNodeAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingNodeAffinity.java new file mode 100644 index 00000000000..bbb5e419360 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingNodeAffinity.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. + * + *

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 SchedulingNodeAffinity extends com.google.api.client.json.GenericJson { + + /** + * Corresponds to the label key of Node resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for + * anti-affinity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operator; + + /** + * Corresponds to the label values of Node resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Corresponds to the label key of Node resource. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * Corresponds to the label key of Node resource. + * @param key key or {@code null} for none + */ + public SchedulingNodeAffinity setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for + * anti-affinity. + * @return value or {@code null} for none + */ + public java.lang.String getOperator() { + return operator; + } + + /** + * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for + * anti-affinity. + * @param operator operator or {@code null} for none + */ + public SchedulingNodeAffinity setOperator(java.lang.String operator) { + this.operator = operator; + return this; + } + + /** + * Corresponds to the label values of Node resource. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Corresponds to the label values of Node resource. + * @param values values or {@code null} for none + */ + public SchedulingNodeAffinity setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public SchedulingNodeAffinity set(String fieldName, Object value) { + return (SchedulingNodeAffinity) super.set(fieldName, value); + } + + @Override + public SchedulingNodeAffinity clone() { + return (SchedulingNodeAffinity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingOnInstanceStopAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingOnInstanceStopAction.java new file mode 100644 index 00000000000..2f16fab3bcb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SchedulingOnInstanceStopAction.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines the behaviour for instances with the instance_termination_actionSTOP. + * + *

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 SchedulingOnInstanceStopAction extends com.google.api.client.json.GenericJson { + + /** + * If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD + * data will be preserved when the instance is stopped at the end of the run duration/termination + * time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** + * If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD + * data will be preserved when the instance is stopped at the end of the run duration/termination + * time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD + * data will be preserved when the instance is stopped at the end of the run duration/termination + * time. + * @param discardLocalSsd discardLocalSsd or {@code null} for none + */ + public SchedulingOnInstanceStopAction setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + return this; + } + + @Override + public SchedulingOnInstanceStopAction set(String fieldName, Object value) { + return (SchedulingOnInstanceStopAction) super.set(fieldName, value); + } + + @Override + public SchedulingOnInstanceStopAction clone() { + return (SchedulingOnInstanceStopAction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Screenshot.java new file mode 100644 index 00000000000..3aabd23a6e1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * An instance's screenshot. + * + *

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 Screenshot extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The Base64-encoded screenshot data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contents; + + /** + * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] The Base64-encoded screenshot data. + * @return value or {@code null} for none + */ + public java.lang.String getContents() { + return contents; + } + + /** + * [Output Only] The Base64-encoded screenshot data. + * @param contents contents or {@code null} for none + */ + public Screenshot setContents(java.lang.String contents) { + this.contents = contents; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * @param kind kind or {@code null} for none + */ + public Screenshot setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public Screenshot set(String fieldName, Object value) { + return (Screenshot) super.set(fieldName, value); + } + + @Override + public Screenshot clone() { + return (Screenshot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java new file mode 100644 index 00000000000..25109a660de --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -0,0 +1,425 @@ +/* + * 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 SecurityPoliciesAggregatedList. + * + *

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 SecurityPoliciesAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 SecurityPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for + * lists of Security Policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SecurityPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of SecurityPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public SecurityPoliciesAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for + * lists of Security Policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for + * lists of Security Policies. + * @param kind kind or {@code null} for none + */ + public SecurityPoliciesAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SecurityPoliciesAggregatedList set(String fieldName, Object value) { + return (SecurityPoliciesAggregatedList) super.set(fieldName, value); + } + + @Override + public SecurityPoliciesAggregatedList clone() { + return (SecurityPoliciesAggregatedList) 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 SecurityPoliciesAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java new file mode 100644 index 00000000000..5ca2cbe99d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java @@ -0,0 +1,63 @@ +/* + * 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 SecurityPoliciesListPreconfiguredExpressionSetsResponse. + * + *

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 SecurityPoliciesListPreconfiguredExpressionSetsResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPoliciesWafConfig preconfiguredExpressionSets; + + /** + * @return value or {@code null} for none + */ + public SecurityPoliciesWafConfig getPreconfiguredExpressionSets() { + return preconfiguredExpressionSets; + } + + /** + * @param preconfiguredExpressionSets preconfiguredExpressionSets or {@code null} for none + */ + public SecurityPoliciesListPreconfiguredExpressionSetsResponse setPreconfiguredExpressionSets(SecurityPoliciesWafConfig preconfiguredExpressionSets) { + this.preconfiguredExpressionSets = preconfiguredExpressionSets; + return this; + } + + @Override + public SecurityPoliciesListPreconfiguredExpressionSetsResponse set(String fieldName, Object value) { + return (SecurityPoliciesListPreconfiguredExpressionSetsResponse) super.set(fieldName, value); + } + + @Override + public SecurityPoliciesListPreconfiguredExpressionSetsResponse clone() { + return (SecurityPoliciesListPreconfiguredExpressionSetsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesScopedList.java new file mode 100644 index 00000000000..c4a314e0164 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 SecurityPoliciesScopedList. + * + *

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 SecurityPoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of SecurityPolicies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List securityPolicies; + + /** + * Informational warning which replaces the list of security policies when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of SecurityPolicies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getSecurityPolicies() { + return securityPolicies; + } + + /** + * A list of SecurityPolicies contained in this scope. + * @param securityPolicies securityPolicies or {@code null} for none + */ + public SecurityPoliciesScopedList setSecurityPolicies(java.util.List securityPolicies) { + this.securityPolicies = securityPolicies; + return this; + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + * @param warning warning or {@code null} for none + */ + public SecurityPoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SecurityPoliciesScopedList set(String fieldName, Object value) { + return (SecurityPoliciesScopedList) super.set(fieldName, value); + } + + @Override + public SecurityPoliciesScopedList clone() { + return (SecurityPoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of security policies when the list is empty. + */ + 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 SecurityPoliciesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesWafConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesWafConfig.java new file mode 100644 index 00000000000..5d87af7ff61 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPoliciesWafConfig.java @@ -0,0 +1,63 @@ +/* + * 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 SecurityPoliciesWafConfig. + * + *

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 SecurityPoliciesWafConfig extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PreconfiguredWafSet wafRules; + + /** + * @return value or {@code null} for none + */ + public PreconfiguredWafSet getWafRules() { + return wafRules; + } + + /** + * @param wafRules wafRules or {@code null} for none + */ + public SecurityPoliciesWafConfig setWafRules(PreconfiguredWafSet wafRules) { + this.wafRules = wafRules; + return this; + } + + @Override + public SecurityPoliciesWafConfig set(String fieldName, Object value) { + return (SecurityPoliciesWafConfig) super.set(fieldName, value); + } + + @Override + public SecurityPoliciesWafConfig clone() { + return (SecurityPoliciesWafConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java new file mode 100644 index 00000000000..bac489f3ca7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -0,0 +1,777 @@ +/* + * 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 Google Cloud Armor security policy resource. + * + * Only external backend services that use load balancers can reference a security policy. For more + * information, see Google Cloud Armor security policy overview. + * + *

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 SecurityPolicy extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyAdaptiveProtectionConfig adaptiveProtectionConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyAdvancedOptionsConfig advancedOptionsConfig; + + /** + * A list of associations that belong to this policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List associations; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyDdosProtectionConfig ddosProtectionConfig; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * 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] Type of the resource. Alwayscompute#securityPolicyfor security + * policies + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this security policy, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyParams params; + + /** + * Output only. [Output Only] The parent of the security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig; + + /** + * Output only. [Output Only] URL of the region where the regional security policy resides. This + * field is not applicable to global security policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * A list of rules that belong to this policy. There must always be a default rule which is a rule + * with priority 2147483647 and match all condition (for the match condition this means match "*" + * for srcIpRanges and for the networkMatch condition every field must be either match "*" or not + * set). If no rules are provided when creating a security policy, a default rule with action + * "allow" will be added. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + /** + * 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; + + /** + * User-provided name of the organization security policy. The name should be unique in the + * organization in which the security policy is created. This should only be used when + * SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with + * https://www.ietf.org/rfc/rfc1035.txt. 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 shortName; + + /** + * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor + * backend security policies can be configured to filter incoming HTTP requests targeting + * backend services. They filter requests before they hit the origin servers. - + * CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming + * HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend + * buckets (Cloud Storage). They filter requests before the request is served from Google's + * cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service + * policies can be configured to filter HTTP requests targeting services managed by Traffic + * Director in a service mesh. They filter requests before the request is served from the + * application. + * + * - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets + * targeting network load balancing resources such as backend services, target pools, target + * instances, and instances with external IPs. They filter requests before the request is served + * from the application. + * + * This field can be set only at resource creation time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field + * consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, + * IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify + * matching values for these fields. + * + * Example: + * + * userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 + * mask: "0x1fff" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userDefinedFields; + + /** + * @return value or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfig getAdaptiveProtectionConfig() { + return adaptiveProtectionConfig; + } + + /** + * @param adaptiveProtectionConfig adaptiveProtectionConfig or {@code null} for none + */ + public SecurityPolicy setAdaptiveProtectionConfig(SecurityPolicyAdaptiveProtectionConfig adaptiveProtectionConfig) { + this.adaptiveProtectionConfig = adaptiveProtectionConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig getAdvancedOptionsConfig() { + return advancedOptionsConfig; + } + + /** + * @param advancedOptionsConfig advancedOptionsConfig or {@code null} for none + */ + public SecurityPolicy setAdvancedOptionsConfig(SecurityPolicyAdvancedOptionsConfig advancedOptionsConfig) { + this.advancedOptionsConfig = advancedOptionsConfig; + return this; + } + + /** + * A list of associations that belong to this policy. + * @return value or {@code null} for none + */ + public java.util.List getAssociations() { + return associations; + } + + /** + * A list of associations that belong to this policy. + * @param associations associations or {@code null} for none + */ + public SecurityPolicy setAssociations(java.util.List associations) { + this.associations = associations; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * @return value or {@code null} for none + */ + public SecurityPolicyDdosProtectionConfig getDdosProtectionConfig() { + return ddosProtectionConfig; + } + + /** + * @param ddosProtectionConfig ddosProtectionConfig or {@code null} for none + */ + public SecurityPolicy setDdosProtectionConfig(SecurityPolicyDdosProtectionConfig ddosProtectionConfig) { + this.ddosProtectionConfig = ddosProtectionConfig; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public SecurityPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public SecurityPolicy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's + * contents and used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update metadata. You must always provide an + * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SecurityPolicy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + 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 SecurityPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies + * @param kind kind or {@code null} for none + */ + public SecurityPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this security policy, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this security policy, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this security policy, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public SecurityPolicy setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this security policy, which is essentially a hash + * of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels. + * + * To see the latest fingerprint, make get() request to the security policy. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SecurityPolicy encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public SecurityPolicy setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 SecurityPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public SecurityPolicyParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public SecurityPolicy setParams(SecurityPolicyParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] The parent of the security policy. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Output only. [Output Only] The parent of the security policy. + * @param parent parent or {@code null} for none + */ + public SecurityPolicy setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * @return value or {@code null} for none + */ + public SecurityPolicyRecaptchaOptionsConfig getRecaptchaOptionsConfig() { + return recaptchaOptionsConfig; + } + + /** + * @param recaptchaOptionsConfig recaptchaOptionsConfig or {@code null} for none + */ + public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig) { + this.recaptchaOptionsConfig = recaptchaOptionsConfig; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional security policy resides. This + * field is not applicable to global security policies. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional security policy resides. This + * field is not applicable to global security policies. + * @param region region or {@code null} for none + */ + public SecurityPolicy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * A list of rules that belong to this policy. There must always be a default rule which is a rule + * with priority 2147483647 and match all condition (for the match condition this means match "*" + * for srcIpRanges and for the networkMatch condition every field must be either match "*" or not + * set). If no rules are provided when creating a security policy, a default rule with action + * "allow" will be added. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * A list of rules that belong to this policy. There must always be a default rule which is a rule + * with priority 2147483647 and match all condition (for the match condition this means match "*" + * for srcIpRanges and for the networkMatch condition every field must be either match "*" or not + * set). If no rules are provided when creating a security policy, a default rule with action + * "allow" will be added. + * @param rules rules or {@code null} for none + */ + public SecurityPolicy setRules(java.util.List rules) { + this.rules = rules; + 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 SecurityPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * User-provided name of the organization security policy. The name should be unique in the + * organization in which the security policy is created. This should only be used when + * SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with + * https://www.ietf.org/rfc/rfc1035.txt. 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 getShortName() { + return shortName; + } + + /** + * User-provided name of the organization security policy. The name should be unique in the + * organization in which the security policy is created. This should only be used when + * SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with + * https://www.ietf.org/rfc/rfc1035.txt. 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 shortName shortName or {@code null} for none + */ + public SecurityPolicy setShortName(java.lang.String shortName) { + this.shortName = shortName; + return this; + } + + /** + * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor + * backend security policies can be configured to filter incoming HTTP requests targeting + * backend services. They filter requests before they hit the origin servers. - + * CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming + * HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend + * buckets (Cloud Storage). They filter requests before the request is served from Google's + * cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service + * policies can be configured to filter HTTP requests targeting services managed by Traffic + * Director in a service mesh. They filter requests before the request is served from the + * application. + * + * - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets + * targeting network load balancing resources such as backend services, target pools, target + * instances, and instances with external IPs. They filter requests before the request is served + * from the application. + * + * This field can be set only at resource creation time. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor + * backend security policies can be configured to filter incoming HTTP requests targeting + * backend services. They filter requests before they hit the origin servers. - + * CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming + * HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend + * buckets (Cloud Storage). They filter requests before the request is served from Google's + * cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service + * policies can be configured to filter HTTP requests targeting services managed by Traffic + * Director in a service mesh. They filter requests before the request is served from the + * application. + * + * - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets + * targeting network load balancing resources such as backend services, target pools, target + * instances, and instances with external IPs. They filter requests before the request is served + * from the application. + * + * This field can be set only at resource creation time. + * @param type type or {@code null} for none + */ + public SecurityPolicy setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field + * consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, + * IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify + * matching values for these fields. + * + * Example: + * + * userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 + * mask: "0x1fff" + * @return value or {@code null} for none + */ + public java.util.List getUserDefinedFields() { + return userDefinedFields; + } + + /** + * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field + * consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, + * IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify + * matching values for these fields. + * + * Example: + * + * userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 + * mask: "0x1fff" + * @param userDefinedFields userDefinedFields or {@code null} for none + */ + public SecurityPolicy setUserDefinedFields(java.util.List userDefinedFields) { + this.userDefinedFields = userDefinedFields; + return this; + } + + @Override + public SecurityPolicy set(String fieldName, Object value) { + return (SecurityPolicy) super.set(fieldName, value); + } + + @Override + public SecurityPolicy clone() { + return (SecurityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfig.java new file mode 100644 index 00000000000..368593aeeed --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfig.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; + +/** + * Configuration options for Cloud Armor Adaptive Protection (CAAP). + * + *

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 SecurityPolicyAdaptiveProtectionConfig extends com.google.api.client.json.GenericJson { + + /** + * If set to true, enables Cloud Armor Machine Learning. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7DdosDefenseConfig; + + /** + * If set to true, enables Cloud Armor Machine Learning. + * @return value or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig getLayer7DdosDefenseConfig() { + return layer7DdosDefenseConfig; + } + + /** + * If set to true, enables Cloud Armor Machine Learning. + * @param layer7DdosDefenseConfig layer7DdosDefenseConfig or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfig setLayer7DdosDefenseConfig(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7DdosDefenseConfig) { + this.layer7DdosDefenseConfig = layer7DdosDefenseConfig; + return this; + } + + @Override + public SecurityPolicyAdaptiveProtectionConfig set(String fieldName, Object value) { + return (SecurityPolicyAdaptiveProtectionConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAdaptiveProtectionConfig clone() { + return (SecurityPolicyAdaptiveProtectionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java new file mode 100644 index 00000000000..5c9da08ac49 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java @@ -0,0 +1,124 @@ +/* + * 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; + +/** + * Configuration options for L7 DDoS detection. This field is only supported in Global Security + * Policies of type CLOUD_ARMOR. + * + *

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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig extends com.google.api.client.json.GenericJson { + + /** + * If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global + * Security Policies of type CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enable; + + /** + * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - + * transparent rules. This field is only supported in Global Security Policies of type + * CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ruleVisibility; + + /** + * Configuration options for layer7 adaptive protection for various customizable thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List thresholdConfigs; + + /** + * If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global + * Security Policies of type CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnable() { + return enable; + } + + /** + * If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global + * Security Policies of type CLOUD_ARMOR. + * @param enable enable or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig setEnable(java.lang.Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - + * transparent rules. This field is only supported in Global Security Policies of type + * CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public java.lang.String getRuleVisibility() { + return ruleVisibility; + } + + /** + * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - + * transparent rules. This field is only supported in Global Security Policies of type + * CLOUD_ARMOR. + * @param ruleVisibility ruleVisibility or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig setRuleVisibility(java.lang.String ruleVisibility) { + this.ruleVisibility = ruleVisibility; + return this; + } + + /** + * Configuration options for layer7 adaptive protection for various customizable thresholds. + * @return value or {@code null} for none + */ + public java.util.List getThresholdConfigs() { + return thresholdConfigs; + } + + /** + * Configuration options for layer7 adaptive protection for various customizable thresholds. + * @param thresholdConfigs thresholdConfigs or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig setThresholdConfigs(java.util.List thresholdConfigs) { + this.thresholdConfigs = thresholdConfigs; + return this; + } + + @Override + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig set(String fieldName, Object value) { + return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig clone() { + return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java new file mode 100644 index 00000000000..0421c2ae454 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java @@ -0,0 +1,244 @@ +/* + * 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 + * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig. + * + *

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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float autoDeployConfidenceThreshold; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer autoDeployExpirationSec; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float autoDeployImpactedBaselineThreshold; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float autoDeployLoadThreshold; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float detectionAbsoluteQps; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float detectionLoadThreshold; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float detectionRelativeToBaselineQps; + + /** + * The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within + * the security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Configuration options for enabling Adaptive Protection to operate on specified granular traffic + * units. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List trafficGranularityConfigs; + + /** + * @return value or {@code null} for none + */ + public java.lang.Float getAutoDeployConfidenceThreshold() { + return autoDeployConfidenceThreshold; + } + + /** + * @param autoDeployConfidenceThreshold autoDeployConfidenceThreshold or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployConfidenceThreshold(java.lang.Float autoDeployConfidenceThreshold) { + this.autoDeployConfidenceThreshold = autoDeployConfidenceThreshold; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Integer getAutoDeployExpirationSec() { + return autoDeployExpirationSec; + } + + /** + * @param autoDeployExpirationSec autoDeployExpirationSec or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployExpirationSec(java.lang.Integer autoDeployExpirationSec) { + this.autoDeployExpirationSec = autoDeployExpirationSec; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Float getAutoDeployImpactedBaselineThreshold() { + return autoDeployImpactedBaselineThreshold; + } + + /** + * @param autoDeployImpactedBaselineThreshold autoDeployImpactedBaselineThreshold or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployImpactedBaselineThreshold(java.lang.Float autoDeployImpactedBaselineThreshold) { + this.autoDeployImpactedBaselineThreshold = autoDeployImpactedBaselineThreshold; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Float getAutoDeployLoadThreshold() { + return autoDeployLoadThreshold; + } + + /** + * @param autoDeployLoadThreshold autoDeployLoadThreshold or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployLoadThreshold(java.lang.Float autoDeployLoadThreshold) { + this.autoDeployLoadThreshold = autoDeployLoadThreshold; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Float getDetectionAbsoluteQps() { + return detectionAbsoluteQps; + } + + /** + * @param detectionAbsoluteQps detectionAbsoluteQps or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setDetectionAbsoluteQps(java.lang.Float detectionAbsoluteQps) { + this.detectionAbsoluteQps = detectionAbsoluteQps; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Float getDetectionLoadThreshold() { + return detectionLoadThreshold; + } + + /** + * @param detectionLoadThreshold detectionLoadThreshold or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setDetectionLoadThreshold(java.lang.Float detectionLoadThreshold) { + this.detectionLoadThreshold = detectionLoadThreshold; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Float getDetectionRelativeToBaselineQps() { + return detectionRelativeToBaselineQps; + } + + /** + * @param detectionRelativeToBaselineQps detectionRelativeToBaselineQps or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setDetectionRelativeToBaselineQps(java.lang.Float detectionRelativeToBaselineQps) { + this.detectionRelativeToBaselineQps = detectionRelativeToBaselineQps; + return this; + } + + /** + * The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within + * the security policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within + * the security policy. + * @param name name or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Configuration options for enabling Adaptive Protection to operate on specified granular traffic + * units. + * @return value or {@code null} for none + */ + public java.util.List getTrafficGranularityConfigs() { + return trafficGranularityConfigs; + } + + /** + * Configuration options for enabling Adaptive Protection to operate on specified granular traffic + * units. + * @param trafficGranularityConfigs trafficGranularityConfigs or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setTrafficGranularityConfigs(java.util.List trafficGranularityConfigs) { + this.trafficGranularityConfigs = trafficGranularityConfigs; + return this; + } + + @Override + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig set(String fieldName, Object value) { + return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig clone() { + return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java new file mode 100644 index 00000000000..826bc447f2f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Configurations to specifc granular traffic units processed by Adaptive Protection. + * + *

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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig extends com.google.api.client.json.GenericJson { + + /** + * If enabled, traffic matching each unique value for the specified type constitutes a separate + * traffic unit. It can only be set to true if `value` is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableEachUniqueValue; + + /** + * Type of this configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Requests that match this value constitute a granular traffic unit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * If enabled, traffic matching each unique value for the specified type constitutes a separate + * traffic unit. It can only be set to true if `value` is empty. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableEachUniqueValue() { + return enableEachUniqueValue; + } + + /** + * If enabled, traffic matching each unique value for the specified type constitutes a separate + * traffic unit. It can only be set to true if `value` is empty. + * @param enableEachUniqueValue enableEachUniqueValue or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig setEnableEachUniqueValue(java.lang.Boolean enableEachUniqueValue) { + this.enableEachUniqueValue = enableEachUniqueValue; + return this; + } + + /** + * Type of this configuration. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Type of this configuration. + * @param type type or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Requests that match this value constitute a granular traffic unit. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Requests that match this value constitute a granular traffic unit. + * @param value value or {@code null} for none + */ + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig set(String fieldName, Object value) { + return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig clone() { + return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java new file mode 100644 index 00000000000..a555297c576 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java @@ -0,0 +1,165 @@ +/* + * 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 SecurityPolicyAdvancedOptionsConfig. + * + *

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 SecurityPolicyAdvancedOptionsConfig extends com.google.api.client.json.GenericJson { + + /** + * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to + * STANDARD. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyAdvancedOptionsConfigJsonCustomConfig jsonCustomConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String jsonParsing; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logLevel; + + /** + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestBodyInspectionSize; + + /** + * An optional list of case-insensitive request header names to use for resolving the callers + * client IP address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userIpRequestHeaders; + + /** + * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to + * STANDARD. + * @return value or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig getJsonCustomConfig() { + return jsonCustomConfig; + } + + /** + * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to + * STANDARD. + * @param jsonCustomConfig jsonCustomConfig or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig setJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig jsonCustomConfig) { + this.jsonCustomConfig = jsonCustomConfig; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getJsonParsing() { + return jsonParsing; + } + + /** + * @param jsonParsing jsonParsing or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig setJsonParsing(java.lang.String jsonParsing) { + this.jsonParsing = jsonParsing; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getLogLevel() { + return logLevel; + } + + /** + * @param logLevel logLevel or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig setLogLevel(java.lang.String logLevel) { + this.logLevel = logLevel; + return this; + } + + /** + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + * @return value or {@code null} for none + */ + public java.lang.String getRequestBodyInspectionSize() { + return requestBodyInspectionSize; + } + + /** + * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", + * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. + * @param requestBodyInspectionSize requestBodyInspectionSize or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig setRequestBodyInspectionSize(java.lang.String requestBodyInspectionSize) { + this.requestBodyInspectionSize = requestBodyInspectionSize; + return this; + } + + /** + * An optional list of case-insensitive request header names to use for resolving the callers + * client IP address. + * @return value or {@code null} for none + */ + public java.util.List getUserIpRequestHeaders() { + return userIpRequestHeaders; + } + + /** + * An optional list of case-insensitive request header names to use for resolving the callers + * client IP address. + * @param userIpRequestHeaders userIpRequestHeaders or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfig setUserIpRequestHeaders(java.util.List userIpRequestHeaders) { + this.userIpRequestHeaders = userIpRequestHeaders; + return this; + } + + @Override + public SecurityPolicyAdvancedOptionsConfig set(String fieldName, Object value) { + return (SecurityPolicyAdvancedOptionsConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAdvancedOptionsConfig clone() { + return (SecurityPolicyAdvancedOptionsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java new file mode 100644 index 00000000000..58c15d64268 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java @@ -0,0 +1,87 @@ +/* + * 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 SecurityPolicyAdvancedOptionsConfigJsonCustomConfig. + * + *

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 SecurityPolicyAdvancedOptionsConfigJsonCustomConfig extends com.google.api.client.json.GenericJson { + + /** + * A list of custom Content-Type header values to apply the JSON parsing. + * + * As per RFC 1341, a Content-Type header value has the following format: + * + * Content-Type := type "/" subtype *[";" parameter] + * + * When configuring a custom Content-Type header value, only the type/subtype needs to be + * specified, and the parameters should be excluded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contentTypes; + + /** + * A list of custom Content-Type header values to apply the JSON parsing. + * + * As per RFC 1341, a Content-Type header value has the following format: + * + * Content-Type := type "/" subtype *[";" parameter] + * + * When configuring a custom Content-Type header value, only the type/subtype needs to be + * specified, and the parameters should be excluded. + * @return value or {@code null} for none + */ + public java.util.List getContentTypes() { + return contentTypes; + } + + /** + * A list of custom Content-Type header values to apply the JSON parsing. + * + * As per RFC 1341, a Content-Type header value has the following format: + * + * Content-Type := type "/" subtype *[";" parameter] + * + * When configuring a custom Content-Type header value, only the type/subtype needs to be + * specified, and the parameters should be excluded. + * @param contentTypes contentTypes or {@code null} for none + */ + public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig setContentTypes(java.util.List contentTypes) { + this.contentTypes = contentTypes; + return this; + } + + @Override + public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig set(String fieldName, Object value) { + return (SecurityPolicyAdvancedOptionsConfigJsonCustomConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig clone() { + return (SecurityPolicyAdvancedOptionsConfigJsonCustomConfig) super.clone(); + } + +} From ecea224a92db9a3e9f85379e43df3185e752273a Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:30 -0700 Subject: [PATCH 10/23] chore: regenerate compute client --- .../model/SecurityPolicyAssociation.java | 210 +++ .../SecurityPolicyDdosProtectionConfig.java | 141 ++ .../compute/model/SecurityPolicyList.java | 362 +++++ .../compute/model/SecurityPolicyParams.java | 87 ++ .../SecurityPolicyRecaptchaOptionsConfig.java | 78 ++ .../model/SecurityPolicyReference.java | 63 + .../compute/model/SecurityPolicyRule.java | 454 ++++++ .../SecurityPolicyRuleHttpHeaderAction.java | 66 + ...yRuleHttpHeaderActionHttpHeaderOption.java | 90 ++ .../model/SecurityPolicyRuleMatcher.java | 169 +++ .../SecurityPolicyRuleMatcherConfig.java | 66 + .../SecurityPolicyRuleMatcherExprOptions.java | 69 + ...uleMatcherExprOptionsRecaptchaOptions.java | 102 ++ .../SecurityPolicyRuleNetworkMatcher.java | 249 ++++ ...leNetworkMatcherUserDefinedFieldMatch.java | 93 ++ ...urityPolicyRulePreconfiguredWafConfig.java | 66 + ...cyRulePreconfiguredWafConfigExclusion.java | 234 ++++ ...nfiguredWafConfigExclusionFieldParams.java | 90 ++ .../SecurityPolicyRuleRateLimitOptions.java | 384 +++++ ...uleRateLimitOptionsEnforceOnKeyConfig.java | 165 +++ ...tyPolicyRuleRateLimitOptionsThreshold.java | 90 ++ .../SecurityPolicyRuleRedirectOptions.java | 99 ++ .../model/SecurityPolicyUserDefinedField.java | 189 +++ .../compute/model/SecuritySettings.java | 174 +++ .../compute/model/SerialPortOutput.java | 183 +++ .../services/compute/model/ServerBinding.java | 63 + .../compute/model/ServiceAccount.java | 90 ++ .../compute/model/ServiceAttachment.java | 748 ++++++++++ .../ServiceAttachmentAggregatedList.java | 401 ++++++ .../ServiceAttachmentConnectedEndpoint.java | 213 +++ ...ServiceAttachmentConsumerProjectLimit.java | 138 ++ .../compute/model/ServiceAttachmentList.java | 386 +++++ .../model/ServiceAttachmentsScopedList.java | 278 ++++ ...mmonInstanceMetadataOperationMetadata.java | 93 ++ ...ationMetadataPerLocationOperationInfo.java | 93 ++ .../services/compute/model/ShareSettings.java | 93 ++ .../model/ShareSettingsProjectConfig.java | 66 + .../compute/model/ShieldedInstanceConfig.java | 114 ++ .../model/ShieldedInstanceIdentity.java | 165 +++ .../model/ShieldedInstanceIdentityEntry.java | 90 ++ .../ShieldedInstanceIntegrityPolicy.java | 69 + .../services/compute/model/SignedUrlKey.java | 105 ++ .../api/services/compute/model/Snapshot.java | 1243 +++++++++++++++++ .../model/SnapshotGroupParameters.java | 132 ++ .../services/compute/model/SnapshotList.java | 383 +++++ .../compute/model/SnapshotParams.java | 78 ++ .../compute/model/SnapshotSettings.java | 93 ++ .../model/SnapshotSettingsAccessLocation.java | 90 ++ ...ccessLocationAccessLocationPreference.java | 66 + ...apshotSettingsStorageLocationSettings.java | 93 ++ ...tionSettingsStorageLocationPreference.java | 69 + .../model/SnapshotUpdateKmsKeyRequest.java | 78 ++ .../model/SourceDiskEncryptionKey.java | 102 ++ .../compute/model/SourceInstanceParams.java | 79 ++ .../model/SourceInstanceProperties.java | 475 +++++++ .../compute/model/SslCertificate.java | 429 ++++++ .../model/SslCertificateAggregatedList.java | 404 ++++++ .../compute/model/SslCertificateList.java | 383 +++++ .../SslCertificateManagedSslCertificate.java | 123 ++ ...lCertificateSelfManagedSslCertificate.java | 165 +++ .../model/SslCertificatesScopedList.java | 278 ++++ .../model/SslPoliciesAggregatedList.java | 425 ++++++ .../compute/model/SslPoliciesList.java | 380 +++++ ...PoliciesListAvailableFeaturesResponse.java | 63 + .../compute/model/SslPoliciesScopedList.java | 272 ++++ .../api/services/compute/model/SslPolicy.java | 681 +++++++++ .../compute/model/SslPolicyReference.java | 63 + .../compute/model/StatefulPolicy.java | 63 + .../model/StatefulPolicyPreservedState.java | 123 ++ ...tatefulPolicyPreservedStateDiskDevice.java | 75 + ...StatefulPolicyPreservedStateNetworkIp.java | 72 + .../api/services/compute/model/Status.java | 129 ++ .../services/compute/model/StoragePool.java | 667 +++++++++ .../model/StoragePoolAggregatedList.java | 425 ++++++ .../compute/model/StoragePoolDisk.java | 306 ++++ ...oragePoolExapoolProvisionedCapacityGb.java | 114 ++ .../compute/model/StoragePoolList.java | 434 ++++++ .../compute/model/StoragePoolListDisks.java | 434 ++++++ .../compute/model/StoragePoolParams.java | 78 ++ .../model/StoragePoolResourceStatus.java | 396 ++++++ .../model/StoragePoolShareSettings.java | 66 + ...StoragePoolShareSettingsProjectConfig.java | 66 + .../compute/model/StoragePoolType.java | 456 ++++++ .../model/StoragePoolTypeAggregatedList.java | 377 +++++ .../compute/model/StoragePoolTypeList.java | 386 +++++ .../model/StoragePoolTypesScopedList.java | 282 ++++ .../compute/model/StoragePoolsScopedList.java | 282 ++++ .../services/compute/model/Subnetwork.java | 1104 +++++++++++++++ .../model/SubnetworkAggregatedList.java | 404 ++++++ .../compute/model/SubnetworkList.java | 386 +++++ .../compute/model/SubnetworkLogConfig.java | 225 +++ .../compute/model/SubnetworkParams.java | 84 ++ .../model/SubnetworkSecondaryRange.java | 207 +++ .../model/SubnetworkUtilizationDetails.java | 139 ++ ...workUtilizationDetailsIPV4Utilization.java | 108 ++ ...workUtilizationDetailsIPV6Utilization.java | 84 ++ .../SubnetworksExpandIpCidrRangeRequest.java | 72 + .../compute/model/SubnetworksScopedList.java | 278 ++++ .../model/SubnetworksScopedWarning.java | 272 ++++ ...tworksSetPrivateIpGoogleAccessRequest.java | 63 + 100 files changed, 22482 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRecaptchaOptionsConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderAction.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcher.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptions.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcher.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptions.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsThreshold.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRedirectOptions.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyUserDefinedField.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecuritySettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServerBinding.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAccount.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadata.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettingsProjectConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentityEntry.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIntegrityPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SignedUrlKey.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Snapshot.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocationAccessLocationPreference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceDiskEncryptionKey.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificate.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateSelfManagedSslCertificate.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificatesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesListAvailableFeaturesResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPolicyReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedState.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateDiskDevice.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateNetworkIp.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Status.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePool.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolType.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subnetwork.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkLogConfig.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetails.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV4Utilization.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV6Utilization.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksExpandIpCidrRangeRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksSetPrivateIpGoogleAccessRequest.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java new file mode 100644 index 00000000000..9476b243de5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -0,0 +1,210 @@ +/* + * 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 SecurityPolicyAssociation. + * + *

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 SecurityPolicyAssociation extends com.google.api.client.json.GenericJson { + + /** + * The resource that the security policy is attached to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attachmentId; + + /** + * Output only. [Output Only] The display name of the security policy of the association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * A list of folders to exclude from the security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedFolders; + + /** + * A list of projects to exclude from the security policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedProjects; + + /** + * The name for an association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The security policy ID of the association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicyId; + + /** + * Output only. [Output Only] The short name of the security policy of the association. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String shortName; + + /** + * The resource that the security policy is attached to. + * @return value or {@code null} for none + */ + public java.lang.String getAttachmentId() { + return attachmentId; + } + + /** + * The resource that the security policy is attached to. + * @param attachmentId attachmentId or {@code null} for none + */ + public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** + * Output only. [Output Only] The display name of the security policy of the association. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. [Output Only] The display name of the security policy of the association. + * @param displayName displayName or {@code null} for none + */ + public SecurityPolicyAssociation setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A list of folders to exclude from the security policy. + * @return value or {@code null} for none + */ + public java.util.List getExcludedFolders() { + return excludedFolders; + } + + /** + * A list of folders to exclude from the security policy. + * @param excludedFolders excludedFolders or {@code null} for none + */ + public SecurityPolicyAssociation setExcludedFolders(java.util.List excludedFolders) { + this.excludedFolders = excludedFolders; + return this; + } + + /** + * A list of projects to exclude from the security policy. + * @return value or {@code null} for none + */ + public java.util.List getExcludedProjects() { + return excludedProjects; + } + + /** + * A list of projects to exclude from the security policy. + * @param excludedProjects excludedProjects or {@code null} for none + */ + public SecurityPolicyAssociation setExcludedProjects(java.util.List excludedProjects) { + this.excludedProjects = excludedProjects; + return this; + } + + /** + * The name for an association. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name for an association. + * @param name name or {@code null} for none + */ + public SecurityPolicyAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The security policy ID of the association. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicyId() { + return securityPolicyId; + } + + /** + * Output only. [Output Only] The security policy ID of the association. + * @param securityPolicyId securityPolicyId or {@code null} for none + */ + public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPolicyId) { + this.securityPolicyId = securityPolicyId; + return this; + } + + /** + * Output only. [Output Only] The short name of the security policy of the association. + * @return value or {@code null} for none + */ + public java.lang.String getShortName() { + return shortName; + } + + /** + * Output only. [Output Only] The short name of the security policy of the association. + * @param shortName shortName or {@code null} for none + */ + public SecurityPolicyAssociation setShortName(java.lang.String shortName) { + this.shortName = shortName; + return this; + } + + @Override + public SecurityPolicyAssociation set(String fieldName, Object value) { + return (SecurityPolicyAssociation) super.set(fieldName, value); + } + + @Override + public SecurityPolicyAssociation clone() { + return (SecurityPolicyAssociation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java new file mode 100644 index 00000000000..33873905536 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java @@ -0,0 +1,141 @@ +/* + * 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 SecurityPolicyDdosProtectionConfig. + * + *

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 SecurityPolicyDdosProtectionConfig extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ddosAdaptiveProtection; + + /** + * DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations + * that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline + * that's inadvertently blocked. + * + * Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using + * a lower value will prioritize keeping collateral damage low, possibly at the cost of its + * effectiveness in rate limiting some or all of the attack. It should typically be unset, so + * Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the + * threshold is advised if there are logs for false positive detections with high collateral + * damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies + * the constraint. If a suitable rule cannot be found, the system falls back to either no + * mitigation for smaller attacks or broader network throttles for larger ones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float ddosImpactedBaselineThreshold; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ddosProtection; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getDdosAdaptiveProtection() { + return ddosAdaptiveProtection; + } + + /** + * @param ddosAdaptiveProtection ddosAdaptiveProtection or {@code null} for none + */ + public SecurityPolicyDdosProtectionConfig setDdosAdaptiveProtection(java.lang.String ddosAdaptiveProtection) { + this.ddosAdaptiveProtection = ddosAdaptiveProtection; + return this; + } + + /** + * DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations + * that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline + * that's inadvertently blocked. + * + * Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using + * a lower value will prioritize keeping collateral damage low, possibly at the cost of its + * effectiveness in rate limiting some or all of the attack. It should typically be unset, so + * Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the + * threshold is advised if there are logs for false positive detections with high collateral + * damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies + * the constraint. If a suitable rule cannot be found, the system falls back to either no + * mitigation for smaller attacks or broader network throttles for larger ones. + * @return value or {@code null} for none + */ + public java.lang.Float getDdosImpactedBaselineThreshold() { + return ddosImpactedBaselineThreshold; + } + + /** + * DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations + * that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline + * that's inadvertently blocked. + * + * Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using + * a lower value will prioritize keeping collateral damage low, possibly at the cost of its + * effectiveness in rate limiting some or all of the attack. It should typically be unset, so + * Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the + * threshold is advised if there are logs for false positive detections with high collateral + * damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies + * the constraint. If a suitable rule cannot be found, the system falls back to either no + * mitigation for smaller attacks or broader network throttles for larger ones. + * @param ddosImpactedBaselineThreshold ddosImpactedBaselineThreshold or {@code null} for none + */ + public SecurityPolicyDdosProtectionConfig setDdosImpactedBaselineThreshold(java.lang.Float ddosImpactedBaselineThreshold) { + this.ddosImpactedBaselineThreshold = ddosImpactedBaselineThreshold; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getDdosProtection() { + return ddosProtection; + } + + /** + * @param ddosProtection ddosProtection or {@code null} for none + */ + public SecurityPolicyDdosProtectionConfig setDdosProtection(java.lang.String ddosProtection) { + this.ddosProtection = ddosProtection; + return this; + } + + @Override + public SecurityPolicyDdosProtectionConfig set(String fieldName, Object value) { + return (SecurityPolicyDdosProtectionConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyDdosProtectionConfig clone() { + return (SecurityPolicyDdosProtectionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java new file mode 100644 index 00000000000..470dbbedfe3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -0,0 +1,362 @@ +/* + * 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 SecurityPolicyList. + * + *

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 SecurityPolicyList extends com.google.api.client.json.GenericJson { + + /** + * [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 SecurityPolicy 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 SecurityPolicy 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(SecurityPolicy.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 SecurityPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SecurityPolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of SecurityPolicy resources. + * @param items items or {@code null} for none + */ + public SecurityPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies + * @param kind kind or {@code null} for none + */ + public SecurityPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SecurityPolicyList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + 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 SecurityPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SecurityPolicyList set(String fieldName, Object value) { + return (SecurityPolicyList) super.set(fieldName, value); + } + + @Override + public SecurityPolicyList clone() { + return (SecurityPolicyList) 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 SecurityPolicyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyParams.java new file mode 100644 index 00000000000..224adc592d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyParams.java @@ -0,0 +1,87 @@ +/* + * 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; + +/** + * Additional security policy parameters. + * + *

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 SecurityPolicyParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public SecurityPolicyParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public SecurityPolicyParams set(String fieldName, Object value) { + return (SecurityPolicyParams) super.set(fieldName, value); + } + + @Override + public SecurityPolicyParams clone() { + return (SecurityPolicyParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRecaptchaOptionsConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRecaptchaOptionsConfig.java new file mode 100644 index 00000000000..1c5e1369ee3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRecaptchaOptionsConfig.java @@ -0,0 +1,78 @@ +/* + * 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 SecurityPolicyRecaptchaOptionsConfig. + * + *

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 SecurityPolicyRecaptchaOptionsConfig extends com.google.api.client.json.GenericJson { + + /** + * An optional field to supply a reCAPTCHA site key to be used for all the rules using the + * redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site + * key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the + * specified site key. If not specified, a Google-managed site key is used. This field is only + * supported in Global Security Policies of type CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String redirectSiteKey; + + /** + * An optional field to supply a reCAPTCHA site key to be used for all the rules using the + * redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site + * key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the + * specified site key. If not specified, a Google-managed site key is used. This field is only + * supported in Global Security Policies of type CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public java.lang.String getRedirectSiteKey() { + return redirectSiteKey; + } + + /** + * An optional field to supply a reCAPTCHA site key to be used for all the rules using the + * redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site + * key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the + * specified site key. If not specified, a Google-managed site key is used. This field is only + * supported in Global Security Policies of type CLOUD_ARMOR. + * @param redirectSiteKey redirectSiteKey or {@code null} for none + */ + public SecurityPolicyRecaptchaOptionsConfig setRedirectSiteKey(java.lang.String redirectSiteKey) { + this.redirectSiteKey = redirectSiteKey; + return this; + } + + @Override + public SecurityPolicyRecaptchaOptionsConfig set(String fieldName, Object value) { + return (SecurityPolicyRecaptchaOptionsConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRecaptchaOptionsConfig clone() { + return (SecurityPolicyRecaptchaOptionsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyReference.java new file mode 100644 index 00000000000..e712b82c237 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyReference.java @@ -0,0 +1,63 @@ +/* + * 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 SecurityPolicyReference. + * + *

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 SecurityPolicyReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * @param securityPolicy securityPolicy or {@code null} for none + */ + public SecurityPolicyReference setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public SecurityPolicyReference set(String fieldName, Object value) { + return (SecurityPolicyReference) super.set(fieldName, value); + } + + @Override + public SecurityPolicyReference clone() { + return (SecurityPolicyReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java new file mode 100644 index 00000000000..56673681fcd --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -0,0 +1,454 @@ +/* + * 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 rule that describes one or more match conditions along with the action to be taken + * when traffic matches this condition (allow or deny). + * + *

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 SecurityPolicyRule extends com.google.api.client.json.GenericJson { + + /** + * The Action to perform when the rule is matched. The following are the valid actions: - + * allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP + * response code specified. Valid values for `STATUS` are 403, 404, and 502. - + * rate_based_ban: limit client traffic to the configured threshold and ban the client if the + * traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. + * Requires rate_limit_options to be set. - redirect: redirect to a different target. This + * can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 + * response. Parameters for this action can be configured via redirectOptions. This action is + * only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit + * client traffic to the configured threshold. Configure parameters for this action in + * rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview + * only): when traffic reaches the threshold limit, requests from the clients matching this + * rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed + * in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional, additional actions that are performed on headers. This field is only supported in + * Global Security Policies of type CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleHttpHeaderAction headerAction; + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security + * policy rules + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A match condition that incoming traffic is evaluated against. If it evaluates to true, the + * corresponding 'action' is enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleMatcher match; + + /** + * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security + * policies. If it matches, the corresponding 'action' is enforced. + * + * The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and + * potentially multiple user-defined match fields ('userDefinedFields'). + * + * Field values may be extracted directly from the packet or derived from it (e.g. + * 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user- + * defined field is only present if the base header is found in the packet and the entire field is + * in bounds. + * + * Each match field may specify which values can match it, listing one or more ranges, prefixes, + * or exact values that are considered a match for the field. A field value must be present in + * order to match a specified match field. If no match values are specified for a match field, + * then any field value is considered to match it, and it's not required to be present. For + * strings specifying '*' is also equivalent to match all. + * + * For a packet to match a rule, all specified match fields must match the corresponding field + * values derived from the packet. + * + * Example: + * + * networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - + * name: "ipv4_fragment_offset" values: - "1-0x1fff" + * + * The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 + * and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff + * inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleNetworkMatcher networkMatch; + + /** + * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate + * preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have + * no effect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRulePreconfiguredWafConfig preconfiguredWafConfig; + + /** + * If set to true, the specified action is not enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean preview; + + /** + * An integer indicating the priority of a rule in the list. The priority must be a positive value + * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the + * highest priority and 2147483647 is the lowest priority. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be + * specified for any other actions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleRateLimitOptions rateLimitOptions; + + /** + * Parameters defining the redirect action. Cannot be specified for any other actions. This field + * is only supported in Global Security Policies of type CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleRedirectOptions redirectOptions; + + /** + * The Action to perform when the rule is matched. The following are the valid actions: - + * allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP + * response code specified. Valid values for `STATUS` are 403, 404, and 502. - + * rate_based_ban: limit client traffic to the configured threshold and ban the client if the + * traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. + * Requires rate_limit_options to be set. - redirect: redirect to a different target. This + * can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 + * response. Parameters for this action can be configured via redirectOptions. This action is + * only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit + * client traffic to the configured threshold. Configure parameters for this action in + * rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview + * only): when traffic reaches the threshold limit, requests from the clients matching this + * rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed + * in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * The Action to perform when the rule is matched. The following are the valid actions: - + * allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP + * response code specified. Valid values for `STATUS` are 403, 404, and 502. - + * rate_based_ban: limit client traffic to the configured threshold and ban the client if the + * traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. + * Requires rate_limit_options to be set. - redirect: redirect to a different target. This + * can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 + * response. Parameters for this action can be configured via redirectOptions. This action is + * only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit + * client traffic to the configured threshold. Configure parameters for this action in + * rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview + * only): when traffic reaches the threshold limit, requests from the clients matching this + * rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed + * in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. + * @param action action or {@code null} for none + */ + public SecurityPolicyRule setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public SecurityPolicyRule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional, additional actions that are performed on headers. This field is only supported in + * Global Security Policies of type CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleHttpHeaderAction getHeaderAction() { + return headerAction; + } + + /** + * Optional, additional actions that are performed on headers. This field is only supported in + * Global Security Policies of type CLOUD_ARMOR. + * @param headerAction headerAction or {@code null} for none + */ + public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction headerAction) { + this.headerAction = headerAction; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security + * policy rules + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security + * policy rules + * @param kind kind or {@code null} for none + */ + public SecurityPolicyRule setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A match condition that incoming traffic is evaluated against. If it evaluates to true, the + * corresponding 'action' is enforced. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleMatcher getMatch() { + return match; + } + + /** + * A match condition that incoming traffic is evaluated against. If it evaluates to true, the + * corresponding 'action' is enforced. + * @param match match or {@code null} for none + */ + public SecurityPolicyRule setMatch(SecurityPolicyRuleMatcher match) { + this.match = match; + return this; + } + + /** + * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security + * policies. If it matches, the corresponding 'action' is enforced. + * + * The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and + * potentially multiple user-defined match fields ('userDefinedFields'). + * + * Field values may be extracted directly from the packet or derived from it (e.g. + * 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user- + * defined field is only present if the base header is found in the packet and the entire field is + * in bounds. + * + * Each match field may specify which values can match it, listing one or more ranges, prefixes, + * or exact values that are considered a match for the field. A field value must be present in + * order to match a specified match field. If no match values are specified for a match field, + * then any field value is considered to match it, and it's not required to be present. For + * strings specifying '*' is also equivalent to match all. + * + * For a packet to match a rule, all specified match fields must match the corresponding field + * values derived from the packet. + * + * Example: + * + * networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - + * name: "ipv4_fragment_offset" values: - "1-0x1fff" + * + * The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 + * and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff + * inclusive. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher getNetworkMatch() { + return networkMatch; + } + + /** + * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security + * policies. If it matches, the corresponding 'action' is enforced. + * + * The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and + * potentially multiple user-defined match fields ('userDefinedFields'). + * + * Field values may be extracted directly from the packet or derived from it (e.g. + * 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user- + * defined field is only present if the base header is found in the packet and the entire field is + * in bounds. + * + * Each match field may specify which values can match it, listing one or more ranges, prefixes, + * or exact values that are considered a match for the field. A field value must be present in + * order to match a specified match field. If no match values are specified for a match field, + * then any field value is considered to match it, and it's not required to be present. For + * strings specifying '*' is also equivalent to match all. + * + * For a packet to match a rule, all specified match fields must match the corresponding field + * values derived from the packet. + * + * Example: + * + * networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - + * name: "ipv4_fragment_offset" values: - "1-0x1fff" + * + * The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 + * and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff + * inclusive. + * @param networkMatch networkMatch or {@code null} for none + */ + public SecurityPolicyRule setNetworkMatch(SecurityPolicyRuleNetworkMatcher networkMatch) { + this.networkMatch = networkMatch; + return this; + } + + /** + * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate + * preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have + * no effect. + * @return value or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfig getPreconfiguredWafConfig() { + return preconfiguredWafConfig; + } + + /** + * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate + * preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have + * no effect. + * @param preconfiguredWafConfig preconfiguredWafConfig or {@code null} for none + */ + public SecurityPolicyRule setPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig preconfiguredWafConfig) { + this.preconfiguredWafConfig = preconfiguredWafConfig; + return this; + } + + /** + * If set to true, the specified action is not enforced. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPreview() { + return preview; + } + + /** + * If set to true, the specified action is not enforced. + * @param preview preview or {@code null} for none + */ + public SecurityPolicyRule setPreview(java.lang.Boolean preview) { + this.preview = preview; + return this; + } + + /** + * An integer indicating the priority of a rule in the list. The priority must be a positive value + * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the + * highest priority and 2147483647 is the lowest priority. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * An integer indicating the priority of a rule in the list. The priority must be a positive value + * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the + * highest priority and 2147483647 is the lowest priority. + * @param priority priority or {@code null} for none + */ + public SecurityPolicyRule setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be + * specified for any other actions. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions getRateLimitOptions() { + return rateLimitOptions; + } + + /** + * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be + * specified for any other actions. + * @param rateLimitOptions rateLimitOptions or {@code null} for none + */ + public SecurityPolicyRule setRateLimitOptions(SecurityPolicyRuleRateLimitOptions rateLimitOptions) { + this.rateLimitOptions = rateLimitOptions; + return this; + } + + /** + * Parameters defining the redirect action. Cannot be specified for any other actions. This field + * is only supported in Global Security Policies of type CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleRedirectOptions getRedirectOptions() { + return redirectOptions; + } + + /** + * Parameters defining the redirect action. Cannot be specified for any other actions. This field + * is only supported in Global Security Policies of type CLOUD_ARMOR. + * @param redirectOptions redirectOptions or {@code null} for none + */ + public SecurityPolicyRule setRedirectOptions(SecurityPolicyRuleRedirectOptions redirectOptions) { + this.redirectOptions = redirectOptions; + return this; + } + + @Override + public SecurityPolicyRule set(String fieldName, Object value) { + return (SecurityPolicyRule) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRule clone() { + return (SecurityPolicyRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderAction.java new file mode 100644 index 00000000000..b0c4be4f08b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderAction.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; + +/** + * Model definition for SecurityPolicyRuleHttpHeaderAction. + * + *

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 SecurityPolicyRuleHttpHeaderAction extends com.google.api.client.json.GenericJson { + + /** + * The list of request headers to add or overwrite if they're already present. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestHeadersToAdds; + + /** + * The list of request headers to add or overwrite if they're already present. + * @return value or {@code null} for none + */ + public java.util.List getRequestHeadersToAdds() { + return requestHeadersToAdds; + } + + /** + * The list of request headers to add or overwrite if they're already present. + * @param requestHeadersToAdds requestHeadersToAdds or {@code null} for none + */ + public SecurityPolicyRuleHttpHeaderAction setRequestHeadersToAdds(java.util.List requestHeadersToAdds) { + this.requestHeadersToAdds = requestHeadersToAdds; + return this; + } + + @Override + public SecurityPolicyRuleHttpHeaderAction set(String fieldName, Object value) { + return (SecurityPolicyRuleHttpHeaderAction) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleHttpHeaderAction clone() { + return (SecurityPolicyRuleHttpHeaderAction) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java new file mode 100644 index 00000000000..c488822aa00 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. + * + *

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 SecurityPolicyRuleHttpHeaderActionHttpHeaderOption extends com.google.api.client.json.GenericJson { + + /** + * The name of the header to set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The value to set the named header to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerValue; + + /** + * The name of the header to set. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The name of the header to set. + * @param headerName headerName or {@code null} for none + */ + public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + /** + * The value to set the named header to. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderValue() { + return headerValue; + } + + /** + * The value to set the named header to. + * @param headerValue headerValue or {@code null} for none + */ + public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption setHeaderValue(java.lang.String headerValue) { + this.headerValue = headerValue; + return this; + } + + @Override + public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption set(String fieldName, Object value) { + return (SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption clone() { + return (SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcher.java new file mode 100644 index 00000000000..db2850f8ca7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcher.java @@ -0,0 +1,169 @@ +/* + * 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 match condition that incoming traffic is evaluated against. Exactly one field must + * be specified. + * + *

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 SecurityPolicyRuleMatcher extends com.google.api.client.json.GenericJson { + + /** + * The configuration options available when specifying versioned_expr. This field must be + * specified if versioned_expr is specified and cannot be specified if versioned_expr is not + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleMatcherConfig config; + + /** + * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as + * origin.ip, source.region_code and contents in the request header. Expressions containing + * `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not + * supported in Edge Policies nor in Regional Policies. Expressions containing + * `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and + * are only supported in Global Security Policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Expr expr; + + /** + * The configuration options available when specifying a user defined CEVAL expression (i.e., + * 'expr'). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleMatcherExprOptions exprOptions; + + /** + * Preconfigured versioned expression. If this field is specified, config must also be specified. + * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must + * specify the corresponding src_ip_range field in config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String versionedExpr; + + /** + * The configuration options available when specifying versioned_expr. This field must be + * specified if versioned_expr is specified and cannot be specified if versioned_expr is not + * specified. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleMatcherConfig getConfig() { + return config; + } + + /** + * The configuration options available when specifying versioned_expr. This field must be + * specified if versioned_expr is specified and cannot be specified if versioned_expr is not + * specified. + * @param config config or {@code null} for none + */ + public SecurityPolicyRuleMatcher setConfig(SecurityPolicyRuleMatcherConfig config) { + this.config = config; + return this; + } + + /** + * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as + * origin.ip, source.region_code and contents in the request header. Expressions containing + * `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not + * supported in Edge Policies nor in Regional Policies. Expressions containing + * `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and + * are only supported in Global Security Policies. + * @return value or {@code null} for none + */ + public Expr getExpr() { + return expr; + } + + /** + * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as + * origin.ip, source.region_code and contents in the request header. Expressions containing + * `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not + * supported in Edge Policies nor in Regional Policies. Expressions containing + * `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and + * are only supported in Global Security Policies. + * @param expr expr or {@code null} for none + */ + public SecurityPolicyRuleMatcher setExpr(Expr expr) { + this.expr = expr; + return this; + } + + /** + * The configuration options available when specifying a user defined CEVAL expression (i.e., + * 'expr'). + * @return value or {@code null} for none + */ + public SecurityPolicyRuleMatcherExprOptions getExprOptions() { + return exprOptions; + } + + /** + * The configuration options available when specifying a user defined CEVAL expression (i.e., + * 'expr'). + * @param exprOptions exprOptions or {@code null} for none + */ + public SecurityPolicyRuleMatcher setExprOptions(SecurityPolicyRuleMatcherExprOptions exprOptions) { + this.exprOptions = exprOptions; + return this; + } + + /** + * Preconfigured versioned expression. If this field is specified, config must also be specified. + * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must + * specify the corresponding src_ip_range field in config. + * @return value or {@code null} for none + */ + public java.lang.String getVersionedExpr() { + return versionedExpr; + } + + /** + * Preconfigured versioned expression. If this field is specified, config must also be specified. + * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must + * specify the corresponding src_ip_range field in config. + * @param versionedExpr versionedExpr or {@code null} for none + */ + public SecurityPolicyRuleMatcher setVersionedExpr(java.lang.String versionedExpr) { + this.versionedExpr = versionedExpr; + return this; + } + + @Override + public SecurityPolicyRuleMatcher set(String fieldName, Object value) { + return (SecurityPolicyRuleMatcher) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleMatcher clone() { + return (SecurityPolicyRuleMatcher) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherConfig.java new file mode 100644 index 00000000000..d7b894af5f2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherConfig.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; + +/** + * Model definition for SecurityPolicyRuleMatcherConfig. + * + *

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 SecurityPolicyRuleMatcherConfig extends com.google.api.client.json.GenericJson { + + /** + * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcIpRanges; + + /** + * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. + * @return value or {@code null} for none + */ + public java.util.List getSrcIpRanges() { + return srcIpRanges; + } + + /** + * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. + * @param srcIpRanges srcIpRanges or {@code null} for none + */ + public SecurityPolicyRuleMatcherConfig setSrcIpRanges(java.util.List srcIpRanges) { + this.srcIpRanges = srcIpRanges; + return this; + } + + @Override + public SecurityPolicyRuleMatcherConfig set(String fieldName, Object value) { + return (SecurityPolicyRuleMatcherConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleMatcherConfig clone() { + return (SecurityPolicyRuleMatcherConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptions.java new file mode 100644 index 00000000000..705b61ff43a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptions.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; + +/** + * Model definition for SecurityPolicyRuleMatcherExprOptions. + * + *

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 SecurityPolicyRuleMatcherExprOptions extends com.google.api.client.json.GenericJson { + + /** + * reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate + * reCAPTCHA tokens, this field has no effect. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions recaptchaOptions; + + /** + * reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate + * reCAPTCHA tokens, this field has no effect. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions getRecaptchaOptions() { + return recaptchaOptions; + } + + /** + * reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate + * reCAPTCHA tokens, this field has no effect. + * @param recaptchaOptions recaptchaOptions or {@code null} for none + */ + public SecurityPolicyRuleMatcherExprOptions setRecaptchaOptions(SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions recaptchaOptions) { + this.recaptchaOptions = recaptchaOptions; + return this; + } + + @Override + public SecurityPolicyRuleMatcherExprOptions set(String fieldName, Object value) { + return (SecurityPolicyRuleMatcherExprOptions) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleMatcherExprOptions clone() { + return (SecurityPolicyRuleMatcherExprOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java new file mode 100644 index 00000000000..dcc27b9d964 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java @@ -0,0 +1,102 @@ +/* + * 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 SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. + * + *

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 SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions extends com.google.api.client.json.GenericJson { + + /** + * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided + * site keys need to be created from reCAPTCHA API under the same project where the security + * policy is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List actionTokenSiteKeys; + + /** + * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided + * site keys need to be created from reCAPTCHA API under the same project where the security + * policy is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sessionTokenSiteKeys; + + /** + * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided + * site keys need to be created from reCAPTCHA API under the same project where the security + * policy is created. + * @return value or {@code null} for none + */ + public java.util.List getActionTokenSiteKeys() { + return actionTokenSiteKeys; + } + + /** + * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided + * site keys need to be created from reCAPTCHA API under the same project where the security + * policy is created. + * @param actionTokenSiteKeys actionTokenSiteKeys or {@code null} for none + */ + public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions setActionTokenSiteKeys(java.util.List actionTokenSiteKeys) { + this.actionTokenSiteKeys = actionTokenSiteKeys; + return this; + } + + /** + * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided + * site keys need to be created from reCAPTCHA API under the same project where the security + * policy is created. + * @return value or {@code null} for none + */ + public java.util.List getSessionTokenSiteKeys() { + return sessionTokenSiteKeys; + } + + /** + * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided + * site keys need to be created from reCAPTCHA API under the same project where the security + * policy is created. + * @param sessionTokenSiteKeys sessionTokenSiteKeys or {@code null} for none + */ + public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions setSessionTokenSiteKeys(java.util.List sessionTokenSiteKeys) { + this.sessionTokenSiteKeys = sessionTokenSiteKeys; + return this; + } + + @Override + public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions set(String fieldName, Object value) { + return (SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions clone() { + return (SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcher.java new file mode 100644 index 00000000000..b5ddb15fa23 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcher.java @@ -0,0 +1,249 @@ +/* + * 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 match condition that incoming network traffic is evaluated against. + * + *

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 SecurityPolicyRuleNetworkMatcher extends com.google.api.client.json.GenericJson { + + /** + * Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destIpRanges; + + /** + * Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number + * (e.g. "80") or range (e.g. "0-1023"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List destPorts; + + /** + * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit + * unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol + * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ipProtocols; + + /** + * BGP Autonomous System Number associated with the source IP address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcAsns; + + /** + * Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcIpRanges; + + /** + * Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number + * (e.g. "80") or range (e.g. "0-1023"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcPorts; + + /** + * Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List srcRegionCodes; + + /** + * User-defined fields. Each element names a defined field and lists the matching values for that + * field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userDefinedFields; + + /** + * Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + * @return value or {@code null} for none + */ + public java.util.List getDestIpRanges() { + return destIpRanges; + } + + /** + * Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + * @param destIpRanges destIpRanges or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setDestIpRanges(java.util.List destIpRanges) { + this.destIpRanges = destIpRanges; + return this; + } + + /** + * Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number + * (e.g. "80") or range (e.g. "0-1023"). + * @return value or {@code null} for none + */ + public java.util.List getDestPorts() { + return destPorts; + } + + /** + * Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number + * (e.g. "80") or range (e.g. "0-1023"). + * @param destPorts destPorts or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setDestPorts(java.util.List destPorts) { + this.destPorts = destPorts; + return this; + } + + /** + * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit + * unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol + * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". + * @return value or {@code null} for none + */ + public java.util.List getIpProtocols() { + return ipProtocols; + } + + /** + * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit + * unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol + * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". + * @param ipProtocols ipProtocols or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setIpProtocols(java.util.List ipProtocols) { + this.ipProtocols = ipProtocols; + return this; + } + + /** + * BGP Autonomous System Number associated with the source IP address. + * @return value or {@code null} for none + */ + public java.util.List getSrcAsns() { + return srcAsns; + } + + /** + * BGP Autonomous System Number associated with the source IP address. + * @param srcAsns srcAsns or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setSrcAsns(java.util.List srcAsns) { + this.srcAsns = srcAsns; + return this; + } + + /** + * Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + * @return value or {@code null} for none + */ + public java.util.List getSrcIpRanges() { + return srcIpRanges; + } + + /** + * Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. + * @param srcIpRanges srcIpRanges or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setSrcIpRanges(java.util.List srcIpRanges) { + this.srcIpRanges = srcIpRanges; + return this; + } + + /** + * Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number + * (e.g. "80") or range (e.g. "0-1023"). + * @return value or {@code null} for none + */ + public java.util.List getSrcPorts() { + return srcPorts; + } + + /** + * Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number + * (e.g. "80") or range (e.g. "0-1023"). + * @param srcPorts srcPorts or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setSrcPorts(java.util.List srcPorts) { + this.srcPorts = srcPorts; + return this; + } + + /** + * Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. + * @return value or {@code null} for none + */ + public java.util.List getSrcRegionCodes() { + return srcRegionCodes; + } + + /** + * Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. + * @param srcRegionCodes srcRegionCodes or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setSrcRegionCodes(java.util.List srcRegionCodes) { + this.srcRegionCodes = srcRegionCodes; + return this; + } + + /** + * User-defined fields. Each element names a defined field and lists the matching values for that + * field. + * @return value or {@code null} for none + */ + public java.util.List getUserDefinedFields() { + return userDefinedFields; + } + + /** + * User-defined fields. Each element names a defined field and lists the matching values for that + * field. + * @param userDefinedFields userDefinedFields or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcher setUserDefinedFields(java.util.List userDefinedFields) { + this.userDefinedFields = userDefinedFields; + return this; + } + + @Override + public SecurityPolicyRuleNetworkMatcher set(String fieldName, Object value) { + return (SecurityPolicyRuleNetworkMatcher) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleNetworkMatcher clone() { + return (SecurityPolicyRuleNetworkMatcher) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java new file mode 100644 index 00000000000..f280cab3645 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java @@ -0,0 +1,93 @@ +/* + * 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 SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch. + * + *

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 SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch extends com.google.api.client.json.GenericJson { + + /** + * Name of the user-defined field, as given in the definition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal + * (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List values; + + /** + * Name of the user-defined field, as given in the definition. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the user-defined field, as given in the definition. + * @param name name or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal + * (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal + * (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). + * @param values values or {@code null} for none + */ + public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch set(String fieldName, Object value) { + return (SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch clone() { + return (SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfig.java new file mode 100644 index 00000000000..2da72f4449b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfig.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; + +/** + * Model definition for SecurityPolicyRulePreconfiguredWafConfig. + * + *

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 SecurityPolicyRulePreconfiguredWafConfig extends com.google.api.client.json.GenericJson { + + /** + * A list of exclusions to apply during preconfigured WAF evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List exclusions; + + /** + * A list of exclusions to apply during preconfigured WAF evaluation. + * @return value or {@code null} for none + */ + public java.util.List getExclusions() { + return exclusions; + } + + /** + * A list of exclusions to apply during preconfigured WAF evaluation. + * @param exclusions exclusions or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfig setExclusions(java.util.List exclusions) { + this.exclusions = exclusions; + return this; + } + + @Override + public SecurityPolicyRulePreconfiguredWafConfig set(String fieldName, Object value) { + return (SecurityPolicyRulePreconfiguredWafConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRulePreconfiguredWafConfig clone() { + return (SecurityPolicyRulePreconfiguredWafConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java new file mode 100644 index 00000000000..6ffbb122749 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java @@ -0,0 +1,234 @@ +/* + * 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 SecurityPolicyRulePreconfiguredWafConfigExclusion. + * + *

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 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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestCookiesToExclude; + + /** + * A list of request header names whose value will be excluded from inspection during + * preconfigured WAF evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestHeadersToExclude; + + /** + * A list of request query parameter names whose value will be excluded from inspection during + * preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST + * body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestQueryParamsToExclude; + + /** + * A list of request URIs from the request line to be excluded from inspection during + * preconfigured WAF evaluation. When specifying this field, the query or fragment part should be + * excluded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestUrisToExclude; + + /** + * A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If + * omitted, it refers to all the rule IDs under the WAF rule set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetRuleIds; + + /** + * Target WAF rule set to apply the preconfigured WAF exclusion. + * The value may be {@code null}. + */ + @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. + * @return value or {@code null} for none + */ + public java.util.List getRequestCookiesToExclude() { + return requestCookiesToExclude; + } + + /** + * A list of request cookie names whose value will be excluded from inspection during + * preconfigured WAF evaluation. + * @param requestCookiesToExclude requestCookiesToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestCookiesToExclude(java.util.List requestCookiesToExclude) { + this.requestCookiesToExclude = requestCookiesToExclude; + return this; + } + + /** + * A list of request header names whose value will be excluded from inspection during + * preconfigured WAF evaluation. + * @return value or {@code null} for none + */ + public java.util.List getRequestHeadersToExclude() { + return requestHeadersToExclude; + } + + /** + * A list of request header names whose value will be excluded from inspection during + * preconfigured WAF evaluation. + * @param requestHeadersToExclude requestHeadersToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestHeadersToExclude(java.util.List requestHeadersToExclude) { + this.requestHeadersToExclude = requestHeadersToExclude; + return this; + } + + /** + * A list of request query parameter names whose value will be excluded from inspection during + * preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST + * body. + * @return value or {@code null} for none + */ + public java.util.List getRequestQueryParamsToExclude() { + return requestQueryParamsToExclude; + } + + /** + * A list of request query parameter names whose value will be excluded from inspection during + * preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST + * body. + * @param requestQueryParamsToExclude requestQueryParamsToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestQueryParamsToExclude(java.util.List requestQueryParamsToExclude) { + this.requestQueryParamsToExclude = requestQueryParamsToExclude; + return this; + } + + /** + * A list of request URIs from the request line to be excluded from inspection during + * preconfigured WAF evaluation. When specifying this field, the query or fragment part should be + * excluded. + * @return value or {@code null} for none + */ + public java.util.List getRequestUrisToExclude() { + return requestUrisToExclude; + } + + /** + * A list of request URIs from the request line to be excluded from inspection during + * preconfigured WAF evaluation. When specifying this field, the query or fragment part should be + * excluded. + * @param requestUrisToExclude requestUrisToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestUrisToExclude(java.util.List requestUrisToExclude) { + this.requestUrisToExclude = requestUrisToExclude; + return this; + } + + /** + * A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If + * omitted, it refers to all the rule IDs under the WAF rule set. + * @return value or {@code null} for none + */ + public java.util.List getTargetRuleIds() { + return targetRuleIds; + } + + /** + * A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If + * omitted, it refers to all the rule IDs under the WAF rule set. + * @param targetRuleIds targetRuleIds or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setTargetRuleIds(java.util.List targetRuleIds) { + this.targetRuleIds = targetRuleIds; + return this; + } + + /** + * Target WAF rule set to apply the preconfigured WAF exclusion. + * @return value or {@code null} for none + */ + public java.lang.String getTargetRuleSet() { + return targetRuleSet; + } + + /** + * Target WAF rule set to apply the preconfigured WAF exclusion. + * @param targetRuleSet targetRuleSet or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setTargetRuleSet(java.lang.String targetRuleSet) { + this.targetRuleSet = targetRuleSet; + return this; + } + + @Override + public SecurityPolicyRulePreconfiguredWafConfigExclusion set(String fieldName, Object value) { + return (SecurityPolicyRulePreconfiguredWafConfigExclusion) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRulePreconfiguredWafConfigExclusion clone() { + return (SecurityPolicyRulePreconfiguredWafConfigExclusion) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java new file mode 100644 index 00000000000..c5638735d8d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. + * + *

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 SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams extends com.google.api.client.json.GenericJson { + + /** + * The match operator for the field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String op; + + /** + * The value of the field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String val; + + /** + * The match operator for the field. + * @return value or {@code null} for none + */ + public java.lang.String getOp() { + return op; + } + + /** + * The match operator for the field. + * @param op op or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams setOp(java.lang.String op) { + this.op = op; + return this; + } + + /** + * The value of the field. + * @return value or {@code null} for none + */ + public java.lang.String getVal() { + return val; + } + + /** + * The value of the field. + * @param val val or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams setVal(java.lang.String val) { + this.val = val; + return this; + } + + @Override + public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams set(String fieldName, Object value) { + return (SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams clone() { + return (SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptions.java new file mode 100644 index 00000000000..86b71bff7ff --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptions.java @@ -0,0 +1,384 @@ +/* + * 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 SecurityPolicyRuleRateLimitOptions. + * + *

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 SecurityPolicyRuleRateLimitOptions extends com.google.api.client.json.GenericJson { + + /** + * Can only be specified if the action for the rule is "rate_based_ban". If specified, determines + * the time (in seconds) the traffic will continue to be banned by the rate limit after the rate + * falls below the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer banDurationSec; + + /** + * Can only be specified if the action for the rule is "rate_based_ban". If specified, the key + * will be banned for the configured 'ban_duration_sec' when the number of requests that exceed + * the 'rate_limit_threshold' also exceed this 'ban_threshold'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleRateLimitOptionsThreshold banThreshold; + + /** + * Action to take for requests that are under the configured rate limit threshold. Valid option is + * "allow" only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conformAction; + + /** + * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A + * single rate limit threshold is applied to all the requests matching this rule. This is the + * default value if "enforceOnKey" is not configured. - IP: The source IP address of the + * request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value + * of the HTTP header whose name is configured under "enforceOnKeyName". The key value is + * truncated to the first 128 bytes of the header value. If no such header is present in the + * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the + * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP + * header. If no such header is present or the value is not a valid IP, the key defaults to the + * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP + * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the + * first 128 bytes of the cookie value. If no such cookie is present in the request, the key + * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is + * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the + * HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to + * ALL on a HTTP session. - REGION_CODE: The country/region from which the request + * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using + * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The + * IP address of the originating client, which is resolved based on "userIpRequestHeaders" + * configured with the security policy. If there is no "userIpRequestHeaders" configuration or + * an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The autonomous + * system number of the originating client. If not available, the key type defaults toALL. - + * TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or + * HTTP/3. If not available, the key type defaults to ALL. + * + * For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is + * enforced for all the requests matching the rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforceOnKey; + + /** + * If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated + * as the key on which ratelimit threshold/action is enforced. You can specify up to 3 + * enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List enforceOnKeyConfigs; + + /** + * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the + * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose + * value is taken as the key value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforceOnKeyName; + + /** + * Action to take for requests that are above the configured rate limit threshold, to either deny + * with a specified HTTP response code, or redirect to a different endpoint. Valid options are + * `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, + * where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is + * only supported in Global Security Policies of type CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exceedAction; + + /** + * Parameters defining the redirect action that is used as the exceed action. Cannot be specified + * if the exceed action is not redirect. This field is only supported in Global Security Policies + * of type CLOUD_ARMOR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleRedirectOptions exceedRedirectOptions; + + /** + * Threshold at which to begin ratelimiting. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold; + + /** + * Can only be specified if the action for the rule is "rate_based_ban". If specified, determines + * the time (in seconds) the traffic will continue to be banned by the rate limit after the rate + * falls below the threshold. + * @return value or {@code null} for none + */ + public java.lang.Integer getBanDurationSec() { + return banDurationSec; + } + + /** + * Can only be specified if the action for the rule is "rate_based_ban". If specified, determines + * the time (in seconds) the traffic will continue to be banned by the rate limit after the rate + * falls below the threshold. + * @param banDurationSec banDurationSec or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setBanDurationSec(java.lang.Integer banDurationSec) { + this.banDurationSec = banDurationSec; + return this; + } + + /** + * Can only be specified if the action for the rule is "rate_based_ban". If specified, the key + * will be banned for the configured 'ban_duration_sec' when the number of requests that exceed + * the 'rate_limit_threshold' also exceed this 'ban_threshold'. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptionsThreshold getBanThreshold() { + return banThreshold; + } + + /** + * Can only be specified if the action for the rule is "rate_based_ban". If specified, the key + * will be banned for the configured 'ban_duration_sec' when the number of requests that exceed + * the 'rate_limit_threshold' also exceed this 'ban_threshold'. + * @param banThreshold banThreshold or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold banThreshold) { + this.banThreshold = banThreshold; + return this; + } + + /** + * Action to take for requests that are under the configured rate limit threshold. Valid option is + * "allow" only. + * @return value or {@code null} for none + */ + public java.lang.String getConformAction() { + return conformAction; + } + + /** + * Action to take for requests that are under the configured rate limit threshold. Valid option is + * "allow" only. + * @param conformAction conformAction or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setConformAction(java.lang.String conformAction) { + this.conformAction = conformAction; + return this; + } + + /** + * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A + * single rate limit threshold is applied to all the requests matching this rule. This is the + * default value if "enforceOnKey" is not configured. - IP: The source IP address of the + * request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value + * of the HTTP header whose name is configured under "enforceOnKeyName". The key value is + * truncated to the first 128 bytes of the header value. If no such header is present in the + * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the + * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP + * header. If no such header is present or the value is not a valid IP, the key defaults to the + * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP + * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the + * first 128 bytes of the cookie value. If no such cookie is present in the request, the key + * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is + * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the + * HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to + * ALL on a HTTP session. - REGION_CODE: The country/region from which the request + * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using + * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The + * IP address of the originating client, which is resolved based on "userIpRequestHeaders" + * configured with the security policy. If there is no "userIpRequestHeaders" configuration or + * an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The autonomous + * system number of the originating client. If not available, the key type defaults toALL. - + * TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or + * HTTP/3. If not available, the key type defaults to ALL. + * + * For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is + * enforced for all the requests matching the rule. + * @return value or {@code null} for none + */ + public java.lang.String getEnforceOnKey() { + return enforceOnKey; + } + + /** + * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A + * single rate limit threshold is applied to all the requests matching this rule. This is the + * default value if "enforceOnKey" is not configured. - IP: The source IP address of the + * request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value + * of the HTTP header whose name is configured under "enforceOnKeyName". The key value is + * truncated to the first 128 bytes of the header value. If no such header is present in the + * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the + * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP + * header. If no such header is present or the value is not a valid IP, the key defaults to the + * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP + * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the + * first 128 bytes of the cookie value. If no such cookie is present in the request, the key + * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is + * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the + * HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to + * ALL on a HTTP session. - REGION_CODE: The country/region from which the request + * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using + * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The + * IP address of the originating client, which is resolved based on "userIpRequestHeaders" + * configured with the security policy. If there is no "userIpRequestHeaders" configuration or + * an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The autonomous + * system number of the originating client. If not available, the key type defaults toALL. - + * TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or + * HTTP/3. If not available, the key type defaults to ALL. + * + * For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is + * enforced for all the requests matching the rule. + * @param enforceOnKey enforceOnKey or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setEnforceOnKey(java.lang.String enforceOnKey) { + this.enforceOnKey = enforceOnKey; + return this; + } + + /** + * If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated + * as the key on which ratelimit threshold/action is enforced. You can specify up to 3 + * enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be + * specified. + * @return value or {@code null} for none + */ + public java.util.List getEnforceOnKeyConfigs() { + return enforceOnKeyConfigs; + } + + /** + * If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated + * as the key on which ratelimit threshold/action is enforced. You can specify up to 3 + * enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be + * specified. + * @param enforceOnKeyConfigs enforceOnKeyConfigs or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setEnforceOnKeyConfigs(java.util.List enforceOnKeyConfigs) { + this.enforceOnKeyConfigs = enforceOnKeyConfigs; + return this; + } + + /** + * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the + * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose + * value is taken as the key value. + * @return value or {@code null} for none + */ + public java.lang.String getEnforceOnKeyName() { + return enforceOnKeyName; + } + + /** + * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the + * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose + * value is taken as the key value. + * @param enforceOnKeyName enforceOnKeyName or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setEnforceOnKeyName(java.lang.String enforceOnKeyName) { + this.enforceOnKeyName = enforceOnKeyName; + return this; + } + + /** + * Action to take for requests that are above the configured rate limit threshold, to either deny + * with a specified HTTP response code, or redirect to a different endpoint. Valid options are + * `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, + * where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is + * only supported in Global Security Policies of type CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public java.lang.String getExceedAction() { + return exceedAction; + } + + /** + * Action to take for requests that are above the configured rate limit threshold, to either deny + * with a specified HTTP response code, or redirect to a different endpoint. Valid options are + * `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, + * where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is + * only supported in Global Security Policies of type CLOUD_ARMOR. + * @param exceedAction exceedAction or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setExceedAction(java.lang.String exceedAction) { + this.exceedAction = exceedAction; + return this; + } + + /** + * Parameters defining the redirect action that is used as the exceed action. Cannot be specified + * if the exceed action is not redirect. This field is only supported in Global Security Policies + * of type CLOUD_ARMOR. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleRedirectOptions getExceedRedirectOptions() { + return exceedRedirectOptions; + } + + /** + * Parameters defining the redirect action that is used as the exceed action. Cannot be specified + * if the exceed action is not redirect. This field is only supported in Global Security Policies + * of type CLOUD_ARMOR. + * @param exceedRedirectOptions exceedRedirectOptions or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setExceedRedirectOptions(SecurityPolicyRuleRedirectOptions exceedRedirectOptions) { + this.exceedRedirectOptions = exceedRedirectOptions; + return this; + } + + /** + * Threshold at which to begin ratelimiting. + * @return value or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptionsThreshold getRateLimitThreshold() { + return rateLimitThreshold; + } + + /** + * Threshold at which to begin ratelimiting. + * @param rateLimitThreshold rateLimitThreshold or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptions setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold) { + this.rateLimitThreshold = rateLimitThreshold; + return this; + } + + @Override + public SecurityPolicyRuleRateLimitOptions set(String fieldName, Object value) { + return (SecurityPolicyRuleRateLimitOptions) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleRateLimitOptions clone() { + return (SecurityPolicyRuleRateLimitOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java new file mode 100644 index 00000000000..fd26bb6b8df --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java @@ -0,0 +1,165 @@ +/* + * 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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig. + * + *

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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig extends com.google.api.client.json.GenericJson { + + /** + * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the + * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose + * value is taken as the key value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforceOnKeyName; + + /** + * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A + * single rate limit threshold is applied to all the requests matching this rule. This is the + * default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of + * the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The + * value of the HTTP header whose name is configured under "enforceOnKeyName". The key value + * is truncated to the first 128 bytes of the header value. If no such header is present in the + * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the + * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP + * header. If no such header is present or the value is not a valid IP, the key defaults to the + * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP + * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the + * first 128 bytes of the cookie value. If no such cookie is present in the request, the key + * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is + * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of + * the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults + * to ALL on a HTTP session. - REGION_CODE: The country/region from which the request + * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using + * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The + * IP address of the originating client, which is resolved based on "userIpRequestHeaders" + * configured with the security policy. If there is no "userIpRequestHeaders" configuration + * or an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The + * autonomous system number of the originating client. If not available, the key type defaults + * toALL. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, + * HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforceOnKeyType; + + /** + * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the + * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose + * value is taken as the key value. + * @return value or {@code null} for none + */ + public java.lang.String getEnforceOnKeyName() { + return enforceOnKeyName; + } + + /** + * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the + * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose + * value is taken as the key value. + * @param enforceOnKeyName enforceOnKeyName or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig setEnforceOnKeyName(java.lang.String enforceOnKeyName) { + this.enforceOnKeyName = enforceOnKeyName; + return this; + } + + /** + * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A + * single rate limit threshold is applied to all the requests matching this rule. This is the + * default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of + * the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The + * value of the HTTP header whose name is configured under "enforceOnKeyName". The key value + * is truncated to the first 128 bytes of the header value. If no such header is present in the + * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the + * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP + * header. If no such header is present or the value is not a valid IP, the key defaults to the + * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP + * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the + * first 128 bytes of the cookie value. If no such cookie is present in the request, the key + * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is + * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of + * the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults + * to ALL on a HTTP session. - REGION_CODE: The country/region from which the request + * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using + * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The + * IP address of the originating client, which is resolved based on "userIpRequestHeaders" + * configured with the security policy. If there is no "userIpRequestHeaders" configuration + * or an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The + * autonomous system number of the originating client. If not available, the key type defaults + * toALL. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, + * HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + * @return value or {@code null} for none + */ + public java.lang.String getEnforceOnKeyType() { + return enforceOnKeyType; + } + + /** + * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A + * single rate limit threshold is applied to all the requests matching this rule. This is the + * default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of + * the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The + * value of the HTTP header whose name is configured under "enforceOnKeyName". The key value + * is truncated to the first 128 bytes of the header value. If no such header is present in the + * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the + * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP + * header. If no such header is present or the value is not a valid IP, the key defaults to the + * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP + * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the + * first 128 bytes of the cookie value. If no such cookie is present in the request, the key + * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is + * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of + * the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults + * to ALL on a HTTP session. - REGION_CODE: The country/region from which the request + * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using + * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The + * IP address of the originating client, which is resolved based on "userIpRequestHeaders" + * configured with the security policy. If there is no "userIpRequestHeaders" configuration + * or an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The + * autonomous system number of the originating client. If not available, the key type defaults + * toALL. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, + * HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. + * @param enforceOnKeyType enforceOnKeyType or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig setEnforceOnKeyType(java.lang.String enforceOnKeyType) { + this.enforceOnKeyType = enforceOnKeyType; + return this; + } + + @Override + public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig set(String fieldName, Object value) { + return (SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig clone() { + return (SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsThreshold.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsThreshold.java new file mode 100644 index 00000000000..d19f04fab53 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRateLimitOptionsThreshold.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for SecurityPolicyRuleRateLimitOptionsThreshold. + * + *

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 SecurityPolicyRuleRateLimitOptionsThreshold extends com.google.api.client.json.GenericJson { + + /** + * Number of HTTP(S) requests for calculating the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer count; + + /** + * Interval over which the threshold is computed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer intervalSec; + + /** + * Number of HTTP(S) requests for calculating the threshold. + * @return value or {@code null} for none + */ + public java.lang.Integer getCount() { + return count; + } + + /** + * Number of HTTP(S) requests for calculating the threshold. + * @param count count or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptionsThreshold setCount(java.lang.Integer count) { + this.count = count; + return this; + } + + /** + * Interval over which the threshold is computed. + * @return value or {@code null} for none + */ + public java.lang.Integer getIntervalSec() { + return intervalSec; + } + + /** + * Interval over which the threshold is computed. + * @param intervalSec intervalSec or {@code null} for none + */ + public SecurityPolicyRuleRateLimitOptionsThreshold setIntervalSec(java.lang.Integer intervalSec) { + this.intervalSec = intervalSec; + return this; + } + + @Override + public SecurityPolicyRuleRateLimitOptionsThreshold set(String fieldName, Object value) { + return (SecurityPolicyRuleRateLimitOptionsThreshold) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleRateLimitOptionsThreshold clone() { + return (SecurityPolicyRuleRateLimitOptionsThreshold) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRedirectOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRedirectOptions.java new file mode 100644 index 00000000000..824f46c3aea --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyRuleRedirectOptions.java @@ -0,0 +1,99 @@ +/* + * 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 SecurityPolicyRuleRedirectOptions. + * + *

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 SecurityPolicyRuleRedirectOptions extends com.google.api.client.json.GenericJson { + + /** + * Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be + * specified for GOOGLE_RECAPTCHA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to + * reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL + * via a 302 response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be + * specified for GOOGLE_RECAPTCHA. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be + * specified for GOOGLE_RECAPTCHA. + * @param target target or {@code null} for none + */ + public SecurityPolicyRuleRedirectOptions setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to + * reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL + * via a 302 response. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to + * reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL + * via a 302 response. + * @param type type or {@code null} for none + */ + public SecurityPolicyRuleRedirectOptions setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public SecurityPolicyRuleRedirectOptions set(String fieldName, Object value) { + return (SecurityPolicyRuleRedirectOptions) super.set(fieldName, value); + } + + @Override + public SecurityPolicyRuleRedirectOptions clone() { + return (SecurityPolicyRuleRedirectOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyUserDefinedField.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyUserDefinedField.java new file mode 100644 index 00000000000..3260961ac78 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecurityPolicyUserDefinedField.java @@ -0,0 +1,189 @@ +/* + * 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 SecurityPolicyUserDefinedField. + * + *

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 SecurityPolicyUserDefinedField extends com.google.api.client.json.GenericJson { + + /** + * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to + * the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - + * TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 + * extension headers. Not present for non-first fragments. - UDP: Points to the beginning of + * the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for + * non-first fragments. + * + * required + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String base; + + /** + * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. + * Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network + * byte order) corresponds to the least significant byte of the mask. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mask; + + /** + * The name of this field. Must be unique within the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Offset of the first byte of the field (in network byte order) relative to 'base'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer offset; + + /** + * Size of the field in bytes. Valid values: 1-4. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** + * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to + * the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - + * TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 + * extension headers. Not present for non-first fragments. - UDP: Points to the beginning of + * the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for + * non-first fragments. + * + * required + * @return value or {@code null} for none + */ + public java.lang.String getBase() { + return base; + } + + /** + * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to + * the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - + * TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 + * extension headers. Not present for non-first fragments. - UDP: Points to the beginning of + * the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for + * non-first fragments. + * + * required + * @param base base or {@code null} for none + */ + public SecurityPolicyUserDefinedField setBase(java.lang.String base) { + this.base = base; + return this; + } + + /** + * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. + * Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network + * byte order) corresponds to the least significant byte of the mask. + * @return value or {@code null} for none + */ + public java.lang.String getMask() { + return mask; + } + + /** + * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. + * Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network + * byte order) corresponds to the least significant byte of the mask. + * @param mask mask or {@code null} for none + */ + public SecurityPolicyUserDefinedField setMask(java.lang.String mask) { + this.mask = mask; + return this; + } + + /** + * The name of this field. Must be unique within the policy. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of this field. Must be unique within the policy. + * @param name name or {@code null} for none + */ + public SecurityPolicyUserDefinedField setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Offset of the first byte of the field (in network byte order) relative to 'base'. + * @return value or {@code null} for none + */ + public java.lang.Integer getOffset() { + return offset; + } + + /** + * Offset of the first byte of the field (in network byte order) relative to 'base'. + * @param offset offset or {@code null} for none + */ + public SecurityPolicyUserDefinedField setOffset(java.lang.Integer offset) { + this.offset = offset; + return this; + } + + /** + * Size of the field in bytes. Valid values: 1-4. + * @return value or {@code null} for none + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * Size of the field in bytes. Valid values: 1-4. + * @param size size or {@code null} for none + */ + public SecurityPolicyUserDefinedField setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + @Override + public SecurityPolicyUserDefinedField set(String fieldName, Object value) { + return (SecurityPolicyUserDefinedField) super.set(fieldName, value); + } + + @Override + public SecurityPolicyUserDefinedField clone() { + return (SecurityPolicyUserDefinedField) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecuritySettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecuritySettings.java new file mode 100644 index 00000000000..f419045b261 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SecuritySettings.java @@ -0,0 +1,174 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The authentication and authorization settings for a BackendService. + * + *

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 SecuritySettings extends com.google.api.client.json.GenericJson { + + /** + * The configuration needed to generate a signature for access to private storage buckets that + * support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and + * INTERNET_FQDN_PORT NEG backends. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AWSV4Signature awsV4Authentication; + + /** + * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how + * clients should authenticate with this service's backends. + * + * clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set to + * INTERNAL_SELF_MANAGED. + * + * If left blank, communications are not encrypted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientTlsPolicy; + + /** + * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual + * TLS handshake with an server/endpoint for thisBackendService. When the server presents its + * X.509 certificate to the client, the client inspects the certificate'ssubjectAltName field. If + * the field contains one of the specified values, the communication continues. Otherwise, it + * fails. This additional check enables the client to verify that the server is authorized to run + * the requested service. + * + * Note that the contents of the server certificate's subjectAltName field are configured by the + * Public Key Infrastructure which provisions server identities. + * + * Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. + * Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS + * mode). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subjectAltNames; + + /** + * The configuration needed to generate a signature for access to private storage buckets that + * support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and + * INTERNET_FQDN_PORT NEG backends. + * @return value or {@code null} for none + */ + public AWSV4Signature getAwsV4Authentication() { + return awsV4Authentication; + } + + /** + * The configuration needed to generate a signature for access to private storage buckets that + * support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and + * INTERNET_FQDN_PORT NEG backends. + * @param awsV4Authentication awsV4Authentication or {@code null} for none + */ + public SecuritySettings setAwsV4Authentication(AWSV4Signature awsV4Authentication) { + this.awsV4Authentication = awsV4Authentication; + return this; + } + + /** + * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how + * clients should authenticate with this service's backends. + * + * clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set to + * INTERNAL_SELF_MANAGED. + * + * If left blank, communications are not encrypted. + * @return value or {@code null} for none + */ + public java.lang.String getClientTlsPolicy() { + return clientTlsPolicy; + } + + /** + * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how + * clients should authenticate with this service's backends. + * + * clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set to + * INTERNAL_SELF_MANAGED. + * + * If left blank, communications are not encrypted. + * @param clientTlsPolicy clientTlsPolicy or {@code null} for none + */ + public SecuritySettings setClientTlsPolicy(java.lang.String clientTlsPolicy) { + this.clientTlsPolicy = clientTlsPolicy; + return this; + } + + /** + * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual + * TLS handshake with an server/endpoint for thisBackendService. When the server presents its + * X.509 certificate to the client, the client inspects the certificate'ssubjectAltName field. If + * the field contains one of the specified values, the communication continues. Otherwise, it + * fails. This additional check enables the client to verify that the server is authorized to run + * the requested service. + * + * Note that the contents of the server certificate's subjectAltName field are configured by the + * Public Key Infrastructure which provisions server identities. + * + * Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. + * Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS + * mode). + * @return value or {@code null} for none + */ + public java.util.List getSubjectAltNames() { + return subjectAltNames; + } + + /** + * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual + * TLS handshake with an server/endpoint for thisBackendService. When the server presents its + * X.509 certificate to the client, the client inspects the certificate'ssubjectAltName field. If + * the field contains one of the specified values, the communication continues. Otherwise, it + * fails. This additional check enables the client to verify that the server is authorized to run + * the requested service. + * + * Note that the contents of the server certificate's subjectAltName field are configured by the + * Public Key Infrastructure which provisions server identities. + * + * Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. + * Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS + * mode). + * @param subjectAltNames subjectAltNames or {@code null} for none + */ + public SecuritySettings setSubjectAltNames(java.util.List subjectAltNames) { + this.subjectAltNames = subjectAltNames; + return this; + } + + @Override + public SecuritySettings set(String fieldName, Object value) { + return (SecuritySettings) super.set(fieldName, value); + } + + @Override + public SecuritySettings clone() { + return (SecuritySettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java new file mode 100644 index 00000000000..55658088fdb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -0,0 +1,183 @@ +/* + * 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; + +/** + * An instance serial console output. + * + *

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 SerialPortOutput extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The contents of the console output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contents; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port + * output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] The position of the next byte of content, regardless of whether the content + * exists, following the output returned in the `contents` property. Use this value in the next + * request as the start parameter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long next; + + /** + * 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; + + /** + * The starting byte position of the output that was returned. This should match the start + * parameter sent with the request. If the serial console output exceeds the size of the buffer (1 + * MB), older output is overwritten by newer content. The output start value will indicate the + * byte position of the output that was returned, which might be different than the `start` value + * that was specified in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long start; + + /** + * [Output Only] The contents of the console output. + * @return value or {@code null} for none + */ + public java.lang.String getContents() { + return contents; + } + + /** + * [Output Only] The contents of the console output. + * @param contents contents or {@code null} for none + */ + public SerialPortOutput setContents(java.lang.String contents) { + this.contents = contents; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port + * output. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port + * output. + * @param kind kind or {@code null} for none + */ + public SerialPortOutput setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] The position of the next byte of content, regardless of whether the content + * exists, following the output returned in the `contents` property. Use this value in the next + * request as the start parameter. + * @return value or {@code null} for none + */ + public java.lang.Long getNext() { + return next; + } + + /** + * [Output Only] The position of the next byte of content, regardless of whether the content + * exists, following the output returned in the `contents` property. Use this value in the next + * request as the start parameter. + * @param next next or {@code null} for none + */ + public SerialPortOutput setNext(java.lang.Long next) { + this.next = next; + 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 SerialPortOutput setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The starting byte position of the output that was returned. This should match the start + * parameter sent with the request. If the serial console output exceeds the size of the buffer (1 + * MB), older output is overwritten by newer content. The output start value will indicate the + * byte position of the output that was returned, which might be different than the `start` value + * that was specified in the request. + * @return value or {@code null} for none + */ + public java.lang.Long getStart() { + return start; + } + + /** + * The starting byte position of the output that was returned. This should match the start + * parameter sent with the request. If the serial console output exceeds the size of the buffer (1 + * MB), older output is overwritten by newer content. The output start value will indicate the + * byte position of the output that was returned, which might be different than the `start` value + * that was specified in the request. + * @param start start or {@code null} for none + */ + public SerialPortOutput setStart(java.lang.Long start) { + this.start = start; + return this; + } + + @Override + public SerialPortOutput set(String fieldName, Object value) { + return (SerialPortOutput) super.set(fieldName, value); + } + + @Override + public SerialPortOutput clone() { + return (SerialPortOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServerBinding.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServerBinding.java new file mode 100644 index 00000000000..51367ce25c7 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServerBinding.java @@ -0,0 +1,63 @@ +/* + * 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 ServerBinding. + * + *

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 ServerBinding extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * @param type type or {@code null} for none + */ + public ServerBinding setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public ServerBinding set(String fieldName, Object value) { + return (ServerBinding) super.set(fieldName, value); + } + + @Override + public ServerBinding clone() { + return (ServerBinding) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAccount.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAccount.java new file mode 100644 index 00000000000..676374a75fb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAccount.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A service account. + * + *

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 ServiceAccount extends com.google.api.client.json.GenericJson { + + /** + * Email address of the service account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * The list of scopes to be made available for this service account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Email address of the service account. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Email address of the service account. + * @param email email or {@code null} for none + */ + public ServiceAccount setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * The list of scopes to be made available for this service account. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * The list of scopes to be made available for this service account. + * @param scopes scopes or {@code null} for none + */ + public ServiceAccount setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + @Override + public ServiceAccount set(String fieldName, Object value) { + return (ServiceAccount) super.set(fieldName, value); + } + + @Override + public ServiceAccount clone() { + return (ServiceAccount) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java new file mode 100644 index 00000000000..c8b71d96bb6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -0,0 +1,748 @@ +/* + * 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 ServiceAttachment resource. + * + * A service attachment represents a service that a producer has exposed. It encapsulates the load + * balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to + * represent the consumers connecting to the service. + * + *

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 ServiceAttachment extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] An array of connections for all the consumers connected to this + * service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List connectedEndpoints; + + /** + * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An + * ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer + * forwarding rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connectionPreference; + + /** + * Specifies which consumer projects or networks are allowed to connect to the service attachment. + * Each project or network has a connection limit. A given service attachment can manage + * connections at either the project or network level. Therefore, both the accept and reject lists + * for a given service attachment must contain either only projects or only networks or only + * endpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List consumerAcceptLists; + + /** + * Specifies a list of projects or networks that are not allowed to connect to this service + * attachment. The project can be specified using its project ID or project number and the network + * can be specified using its URL. A given service attachment can manage connections at either the + * project or network level. Therefore, both the reject and accept lists for a given service + * attachment must contain either only projects or only networks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List consumerRejectLists; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * If specified, the domain name will be used during the integration between the PSC connected + * endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". + * Current max number of domain names supported is 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List domainNames; + + /** + * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP + * connections that traverse proxies on their way to destination servers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableProxyProtocol; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- + * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, + * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a + * get() request to retrieve the ServiceAttachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Metadata of the service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The number of NAT IP addresses to be allocated per connected endpoint. If not specified, the + * default value is 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long natIpsPerEndpoint; + + /** + * An array of URLs where each entry is the URL of a subnet provided by the service producer to + * use for NAT in this service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natSubnets; + + /** + * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint + * identified by this service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String producerForwardingRule; + + /** + * The number of consumer spokes that connected Private Service Connect endpoints can be + * propagated to through Network Connectivity Center. This limit lets the service producer limit + * how many propagated Private Service Connect connections can be established to this service + * attachment from a single consumer. + * + * If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to + * each project or network that is listed in the consumer accept list. If the connection + * preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project + * that contains a connected endpoint. + * + * If unspecified, the default propagated connection limit is 250. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long propagatedConnectionLimit; + + /** + * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Uint128 pscServiceAttachmentId; + + /** + * This flag determines whether a consumer accept/reject list change can reconcile the statuses of + * existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update + * will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will + * remain untouched regardless how the connection policy is modified . - If true, + * update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an + * ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. + * + * For newly created service attachment, this boolean defaults to false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean reconcileConnections; + + /** + * Output only. [Output Only] URL of the region where the service attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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; + + /** + * The URL of a service serving the endpoint identified by this service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetService; + + /** + * Output only. [Output Only] An array of connections for all the consumers connected to this + * service attachment. + * @return value or {@code null} for none + */ + public java.util.List getConnectedEndpoints() { + return connectedEndpoints; + } + + /** + * Output only. [Output Only] An array of connections for all the consumers connected to this + * service attachment. + * @param connectedEndpoints connectedEndpoints or {@code null} for none + */ + public ServiceAttachment setConnectedEndpoints(java.util.List connectedEndpoints) { + this.connectedEndpoints = connectedEndpoints; + return this; + } + + /** + * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An + * ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer + * forwarding rules. + * @return value or {@code null} for none + */ + public java.lang.String getConnectionPreference() { + return connectionPreference; + } + + /** + * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An + * ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer + * forwarding rules. + * @param connectionPreference connectionPreference or {@code null} for none + */ + public ServiceAttachment setConnectionPreference(java.lang.String connectionPreference) { + this.connectionPreference = connectionPreference; + return this; + } + + /** + * Specifies which consumer projects or networks are allowed to connect to the service attachment. + * Each project or network has a connection limit. A given service attachment can manage + * connections at either the project or network level. Therefore, both the accept and reject lists + * for a given service attachment must contain either only projects or only networks or only + * endpoints. + * @return value or {@code null} for none + */ + public java.util.List getConsumerAcceptLists() { + return consumerAcceptLists; + } + + /** + * Specifies which consumer projects or networks are allowed to connect to the service attachment. + * Each project or network has a connection limit. A given service attachment can manage + * connections at either the project or network level. Therefore, both the accept and reject lists + * for a given service attachment must contain either only projects or only networks or only + * endpoints. + * @param consumerAcceptLists consumerAcceptLists or {@code null} for none + */ + public ServiceAttachment setConsumerAcceptLists(java.util.List consumerAcceptLists) { + this.consumerAcceptLists = consumerAcceptLists; + return this; + } + + /** + * Specifies a list of projects or networks that are not allowed to connect to this service + * attachment. The project can be specified using its project ID or project number and the network + * can be specified using its URL. A given service attachment can manage connections at either the + * project or network level. Therefore, both the reject and accept lists for a given service + * attachment must contain either only projects or only networks. + * @return value or {@code null} for none + */ + public java.util.List getConsumerRejectLists() { + return consumerRejectLists; + } + + /** + * Specifies a list of projects or networks that are not allowed to connect to this service + * attachment. The project can be specified using its project ID or project number and the network + * can be specified using its URL. A given service attachment can manage connections at either the + * project or network level. Therefore, both the reject and accept lists for a given service + * attachment must contain either only projects or only networks. + * @param consumerRejectLists consumerRejectLists or {@code null} for none + */ + public ServiceAttachment setConsumerRejectLists(java.util.List consumerRejectLists) { + this.consumerRejectLists = consumerRejectLists; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public ServiceAttachment setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * If specified, the domain name will be used during the integration between the PSC connected + * endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". + * Current max number of domain names supported is 1. + * @return value or {@code null} for none + */ + public java.util.List getDomainNames() { + return domainNames; + } + + /** + * If specified, the domain name will be used during the integration between the PSC connected + * endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". + * Current max number of domain names supported is 1. + * @param domainNames domainNames or {@code null} for none + */ + public ServiceAttachment setDomainNames(java.util.List domainNames) { + this.domainNames = domainNames; + return this; + } + + /** + * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP + * connections that traverse proxies on their way to destination servers. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableProxyProtocol() { + return enableProxyProtocol; + } + + /** + * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP + * connections that traverse proxies on their way to destination servers. + * @param enableProxyProtocol enableProxyProtocol or {@code null} for none + */ + public ServiceAttachment setEnableProxyProtocol(java.lang.Boolean enableProxyProtocol) { + this.enableProxyProtocol = enableProxyProtocol; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- + * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, + * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a + * get() request to retrieve the ServiceAttachment. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- + * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, + * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a + * get() request to retrieve the ServiceAttachment. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- + * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, + * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a + * get() request to retrieve the ServiceAttachment. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public ServiceAttachment setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- + * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, + * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a + * get() request to retrieve the ServiceAttachment. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ServiceAttachment encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public ServiceAttachment setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. + * @param kind kind or {@code null} for none + */ + public ServiceAttachment setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Metadata of the service attachment. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Metadata of the service attachment. + * @param metadata metadata or {@code null} for none + */ + public ServiceAttachment setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 ServiceAttachment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The number of NAT IP addresses to be allocated per connected endpoint. If not specified, the + * default value is 1. + * @return value or {@code null} for none + */ + public java.lang.Long getNatIpsPerEndpoint() { + return natIpsPerEndpoint; + } + + /** + * The number of NAT IP addresses to be allocated per connected endpoint. If not specified, the + * default value is 1. + * @param natIpsPerEndpoint natIpsPerEndpoint or {@code null} for none + */ + public ServiceAttachment setNatIpsPerEndpoint(java.lang.Long natIpsPerEndpoint) { + this.natIpsPerEndpoint = natIpsPerEndpoint; + return this; + } + + /** + * An array of URLs where each entry is the URL of a subnet provided by the service producer to + * use for NAT in this service attachment. + * @return value or {@code null} for none + */ + public java.util.List getNatSubnets() { + return natSubnets; + } + + /** + * An array of URLs where each entry is the URL of a subnet provided by the service producer to + * use for NAT in this service attachment. + * @param natSubnets natSubnets or {@code null} for none + */ + public ServiceAttachment setNatSubnets(java.util.List natSubnets) { + this.natSubnets = natSubnets; + return this; + } + + /** + * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint + * identified by this service attachment. + * @return value or {@code null} for none + */ + public java.lang.String getProducerForwardingRule() { + return producerForwardingRule; + } + + /** + * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint + * identified by this service attachment. + * @param producerForwardingRule producerForwardingRule or {@code null} for none + */ + public ServiceAttachment setProducerForwardingRule(java.lang.String producerForwardingRule) { + this.producerForwardingRule = producerForwardingRule; + return this; + } + + /** + * The number of consumer spokes that connected Private Service Connect endpoints can be + * propagated to through Network Connectivity Center. This limit lets the service producer limit + * how many propagated Private Service Connect connections can be established to this service + * attachment from a single consumer. + * + * If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to + * each project or network that is listed in the consumer accept list. If the connection + * preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project + * that contains a connected endpoint. + * + * If unspecified, the default propagated connection limit is 250. + * @return value or {@code null} for none + */ + public java.lang.Long getPropagatedConnectionLimit() { + return propagatedConnectionLimit; + } + + /** + * The number of consumer spokes that connected Private Service Connect endpoints can be + * propagated to through Network Connectivity Center. This limit lets the service producer limit + * how many propagated Private Service Connect connections can be established to this service + * attachment from a single consumer. + * + * If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to + * each project or network that is listed in the consumer accept list. If the connection + * preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project + * that contains a connected endpoint. + * + * If unspecified, the default propagated connection limit is 250. + * @param propagatedConnectionLimit propagatedConnectionLimit or {@code null} for none + */ + public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedConnectionLimit) { + this.propagatedConnectionLimit = propagatedConnectionLimit; + return this; + } + + /** + * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * @return value or {@code null} for none + */ + public Uint128 getPscServiceAttachmentId() { + return pscServiceAttachmentId; + } + + /** + * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * @param pscServiceAttachmentId pscServiceAttachmentId or {@code null} for none + */ + public ServiceAttachment setPscServiceAttachmentId(Uint128 pscServiceAttachmentId) { + this.pscServiceAttachmentId = pscServiceAttachmentId; + return this; + } + + /** + * This flag determines whether a consumer accept/reject list change can reconcile the statuses of + * existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update + * will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will + * remain untouched regardless how the connection policy is modified . - If true, + * update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an + * ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. + * + * For newly created service attachment, this boolean defaults to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReconcileConnections() { + return reconcileConnections; + } + + /** + * This flag determines whether a consumer accept/reject list change can reconcile the statuses of + * existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update + * will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will + * remain untouched regardless how the connection policy is modified . - If true, + * update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an + * ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. + * + * For newly created service attachment, this boolean defaults to false. + * @param reconcileConnections reconcileConnections or {@code null} for none + */ + public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConnections) { + this.reconcileConnections = reconcileConnections; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the service attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the service attachment resides. This field + * applies only to the region resource. You must specify this field as part of the HTTP request + * URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public ServiceAttachment setRegion(java.lang.String region) { + this.region = region; + 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 ServiceAttachment setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The URL of a service serving the endpoint identified by this service attachment. + * @return value or {@code null} for none + */ + public java.lang.String getTargetService() { + return targetService; + } + + /** + * The URL of a service serving the endpoint identified by this service attachment. + * @param targetService targetService or {@code null} for none + */ + public ServiceAttachment setTargetService(java.lang.String targetService) { + this.targetService = targetService; + return this; + } + + @Override + public ServiceAttachment set(String fieldName, Object value) { + return (ServiceAttachment) super.set(fieldName, value); + } + + @Override + public ServiceAttachment clone() { + return (ServiceAttachment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java new file mode 100644 index 00000000000..ab60490e65b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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; + +/** + * Contains a list of ServiceAttachmentsScopedList. + * + *

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 ServiceAttachmentAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 ServiceAttachmentsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 ServiceAttachmentAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ServiceAttachmentsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of ServiceAttachmentsScopedList resources. + * @param items items or {@code null} for none + */ + public ServiceAttachmentAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public ServiceAttachmentAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ServiceAttachmentAggregatedList 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 ServiceAttachmentAggregatedList 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 ServiceAttachmentAggregatedList 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 ServiceAttachmentAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ServiceAttachmentAggregatedList set(String fieldName, Object value) { + return (ServiceAttachmentAggregatedList) super.set(fieldName, value); + } + + @Override + public ServiceAttachmentAggregatedList clone() { + return (ServiceAttachmentAggregatedList) 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 ServiceAttachmentAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java new file mode 100644 index 00000000000..b99a4029437 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] A connection connected to this service attachment. + * + *

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 ServiceAttachmentConnectedEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The url of the consumer network. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumerNetwork; + + /** + * The url of a connected endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** + * The url of a connected endpoint with resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpointWithId; + + /** + * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natIps; + + /** + * The number of consumer Network Connectivity Center spokes that the connected Private Service + * Connect endpoint has propagated to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long propagatedConnectionCount; + + /** + * The PSC connection id of the connected endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger pscConnectionId; + + /** + * The status of a connected endpoint to this service attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * The url of the consumer network. + * @return value or {@code null} for none + */ + public java.lang.String getConsumerNetwork() { + return consumerNetwork; + } + + /** + * The url of the consumer network. + * @param consumerNetwork consumerNetwork or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setConsumerNetwork(java.lang.String consumerNetwork) { + this.consumerNetwork = consumerNetwork; + return this; + } + + /** + * The url of a connected endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * The url of a connected endpoint. + * @param endpoint endpoint or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setEndpoint(java.lang.String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * The url of a connected endpoint with resource id. + * @return value or {@code null} for none + */ + public java.lang.String getEndpointWithId() { + return endpointWithId; + } + + /** + * The url of a connected endpoint with resource id. + * @param endpointWithId endpointWithId or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setEndpointWithId(java.lang.String endpointWithId) { + this.endpointWithId = endpointWithId; + return this; + } + + /** + * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. + * @return value or {@code null} for none + */ + public java.util.List getNatIps() { + return natIps; + } + + /** + * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. + * @param natIps natIps or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setNatIps(java.util.List natIps) { + this.natIps = natIps; + return this; + } + + /** + * The number of consumer Network Connectivity Center spokes that the connected Private Service + * Connect endpoint has propagated to. + * @return value or {@code null} for none + */ + public java.lang.Long getPropagatedConnectionCount() { + return propagatedConnectionCount; + } + + /** + * The number of consumer Network Connectivity Center spokes that the connected Private Service + * Connect endpoint has propagated to. + * @param propagatedConnectionCount propagatedConnectionCount or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setPropagatedConnectionCount(java.lang.Long propagatedConnectionCount) { + this.propagatedConnectionCount = propagatedConnectionCount; + return this; + } + + /** + * The PSC connection id of the connected endpoint. + * @return value or {@code null} for none + */ + public java.math.BigInteger getPscConnectionId() { + return pscConnectionId; + } + + /** + * The PSC connection id of the connected endpoint. + * @param pscConnectionId pscConnectionId or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setPscConnectionId(java.math.BigInteger pscConnectionId) { + this.pscConnectionId = pscConnectionId; + return this; + } + + /** + * The status of a connected endpoint to this service attachment. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * The status of a connected endpoint to this service attachment. + * @param status status or {@code null} for none + */ + public ServiceAttachmentConnectedEndpoint setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public ServiceAttachmentConnectedEndpoint set(String fieldName, Object value) { + return (ServiceAttachmentConnectedEndpoint) super.set(fieldName, value); + } + + @Override + public ServiceAttachmentConnectedEndpoint clone() { + return (ServiceAttachmentConnectedEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java new file mode 100644 index 00000000000..cac9b0c5638 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java @@ -0,0 +1,138 @@ +/* + * 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 ServiceAttachmentConsumerProjectLimit. + * + *

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 ServiceAttachmentConsumerProjectLimit extends com.google.api.client.json.GenericJson { + + /** + * The value of the limit to set. For endpoint_url, the limit should be no more than 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long connectionLimit; + + /** + * The URL for the PSC endpoint to accept + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpointUrl; + + /** + * The network URL for the network to set the limit for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkUrl; + + /** + * The project id or number for the project to set the limit for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String projectIdOrNum; + + /** + * The value of the limit to set. For endpoint_url, the limit should be no more than 1. + * @return value or {@code null} for none + */ + public java.lang.Long getConnectionLimit() { + return connectionLimit; + } + + /** + * The value of the limit to set. For endpoint_url, the limit should be no more than 1. + * @param connectionLimit connectionLimit or {@code null} for none + */ + public ServiceAttachmentConsumerProjectLimit setConnectionLimit(java.lang.Long connectionLimit) { + this.connectionLimit = connectionLimit; + return this; + } + + /** + * The URL for the PSC endpoint to accept + * @return value or {@code null} for none + */ + public java.lang.String getEndpointUrl() { + return endpointUrl; + } + + /** + * The URL for the PSC endpoint to accept + * @param endpointUrl endpointUrl or {@code null} for none + */ + public ServiceAttachmentConsumerProjectLimit setEndpointUrl(java.lang.String endpointUrl) { + this.endpointUrl = endpointUrl; + return this; + } + + /** + * The network URL for the network to set the limit for. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkUrl() { + return networkUrl; + } + + /** + * The network URL for the network to set the limit for. + * @param networkUrl networkUrl or {@code null} for none + */ + public ServiceAttachmentConsumerProjectLimit setNetworkUrl(java.lang.String networkUrl) { + this.networkUrl = networkUrl; + return this; + } + + /** + * The project id or number for the project to set the limit for. + * @return value or {@code null} for none + */ + public java.lang.String getProjectIdOrNum() { + return projectIdOrNum; + } + + /** + * The project id or number for the project to set the limit for. + * @param projectIdOrNum projectIdOrNum or {@code null} for none + */ + public ServiceAttachmentConsumerProjectLimit setProjectIdOrNum(java.lang.String projectIdOrNum) { + this.projectIdOrNum = projectIdOrNum; + return this; + } + + @Override + public ServiceAttachmentConsumerProjectLimit set(String fieldName, Object value) { + return (ServiceAttachmentConsumerProjectLimit) super.set(fieldName, value); + } + + @Override + public ServiceAttachmentConsumerProjectLimit clone() { + return (ServiceAttachmentConsumerProjectLimit) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java new file mode 100644 index 00000000000..2cdd3d8e4a1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -0,0 +1,386 @@ +/* + * 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 ServiceAttachmentList. + * + *

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 ServiceAttachmentList extends com.google.api.client.json.GenericJson { + + /** + * [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 ServiceAttachment 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 ServiceAttachment 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(ServiceAttachment.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 ServiceAttachmentList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ServiceAttachment resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of ServiceAttachment resources. + * @param items items or {@code null} for none + */ + public ServiceAttachmentList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service + * attachments. + * @param kind kind or {@code null} for none + */ + public ServiceAttachmentList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ServiceAttachmentList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ServiceAttachmentList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 ServiceAttachmentList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ServiceAttachmentList set(String fieldName, Object value) { + return (ServiceAttachmentList) super.set(fieldName, value); + } + + @Override + public ServiceAttachmentList clone() { + return (ServiceAttachmentList) 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 ServiceAttachmentListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentsScopedList.java new file mode 100644 index 00000000000..de630640678 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ServiceAttachmentsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 ServiceAttachmentsScopedList. + * + *

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 ServiceAttachmentsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of ServiceAttachments contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceAttachments; + + static { + // hack to force ProGuard to consider ServiceAttachment 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(ServiceAttachment.class); + } + + /** + * Informational warning which replaces the list of service attachments when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of ServiceAttachments contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getServiceAttachments() { + return serviceAttachments; + } + + /** + * A list of ServiceAttachments contained in this scope. + * @param serviceAttachments serviceAttachments or {@code null} for none + */ + public ServiceAttachmentsScopedList setServiceAttachments(java.util.List serviceAttachments) { + this.serviceAttachments = serviceAttachments; + return this; + } + + /** + * Informational warning which replaces the list of service attachments when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of service attachments when the list is empty. + * @param warning warning or {@code null} for none + */ + public ServiceAttachmentsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ServiceAttachmentsScopedList set(String fieldName, Object value) { + return (ServiceAttachmentsScopedList) super.set(fieldName, value); + } + + @Override + public ServiceAttachmentsScopedList clone() { + return (ServiceAttachmentsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of service attachments when the list is empty. + */ + 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 ServiceAttachmentsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadata.java new file mode 100644 index 00000000000..c8f80c3b601 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadata.java @@ -0,0 +1,93 @@ +/* + * 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 SetCommonInstanceMetadataOperationMetadata. + * + *

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 SetCommonInstanceMetadataOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] The client operation id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** + * [Output Only] Status information per location (location name is key). Example key: zones/us- + * central1-a + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map perLocationOperations; + + /** + * [Output Only] The client operation id. + * @return value or {@code null} for none + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * [Output Only] The client operation id. + * @param clientOperationId clientOperationId or {@code null} for none + */ + public SetCommonInstanceMetadataOperationMetadata setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + /** + * [Output Only] Status information per location (location name is key). Example key: zones/us- + * central1-a + * @return value or {@code null} for none + */ + public java.util.Map getPerLocationOperations() { + return perLocationOperations; + } + + /** + * [Output Only] Status information per location (location name is key). Example key: zones/us- + * central1-a + * @param perLocationOperations perLocationOperations or {@code null} for none + */ + public SetCommonInstanceMetadataOperationMetadata setPerLocationOperations(java.util.Map perLocationOperations) { + this.perLocationOperations = perLocationOperations; + return this; + } + + @Override + public SetCommonInstanceMetadataOperationMetadata set(String fieldName, Object value) { + return (SetCommonInstanceMetadataOperationMetadata) super.set(fieldName, value); + } + + @Override + public SetCommonInstanceMetadataOperationMetadata clone() { + return (SetCommonInstanceMetadataOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java new file mode 100644 index 00000000000..27decf3d326 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java @@ -0,0 +1,93 @@ +/* + * 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 SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo. + * + *

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 SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, + * `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. + * @param error error or {@code null} for none + */ + public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo setError(Status error) { + this.error = error; + return this; + } + + /** + * [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, + * `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, + * `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. + * @param state state or {@code null} for none + */ + public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo set(String fieldName, Object value) { + return (SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) super.set(fieldName, value); + } + + @Override + public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo clone() { + return (SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettings.java new file mode 100644 index 00000000000..4f4a3d95778 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettings.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The share setting for reservations and sole tenancy node groups. + * + *

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 ShareSettings extends com.google.api.client.json.GenericJson { + + /** + * A map of project id and project config. This is only valid when share_type's value is + * SPECIFIC_PROJECTS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map projectMap; + + /** + * Type of sharing for this shared-reservation + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String shareType; + + /** + * A map of project id and project config. This is only valid when share_type's value is + * SPECIFIC_PROJECTS. + * @return value or {@code null} for none + */ + public java.util.Map getProjectMap() { + return projectMap; + } + + /** + * A map of project id and project config. This is only valid when share_type's value is + * SPECIFIC_PROJECTS. + * @param projectMap projectMap or {@code null} for none + */ + public ShareSettings setProjectMap(java.util.Map projectMap) { + this.projectMap = projectMap; + return this; + } + + /** + * Type of sharing for this shared-reservation + * @return value or {@code null} for none + */ + public java.lang.String getShareType() { + return shareType; + } + + /** + * Type of sharing for this shared-reservation + * @param shareType shareType or {@code null} for none + */ + public ShareSettings setShareType(java.lang.String shareType) { + this.shareType = shareType; + return this; + } + + @Override + public ShareSettings set(String fieldName, Object value) { + return (ShareSettings) super.set(fieldName, value); + } + + @Override + public ShareSettings clone() { + return (ShareSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettingsProjectConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettingsProjectConfig.java new file mode 100644 index 00000000000..0429290b567 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShareSettingsProjectConfig.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; + +/** + * Config for each project in the share settings. + * + *

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 ShareSettingsProjectConfig extends com.google.api.client.json.GenericJson { + + /** + * The project ID, should be same as the key of this project config in the parent map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String projectId; + + /** + * The project ID, should be same as the key of this project config in the parent map. + * @return value or {@code null} for none + */ + public java.lang.String getProjectId() { + return projectId; + } + + /** + * The project ID, should be same as the key of this project config in the parent map. + * @param projectId projectId or {@code null} for none + */ + public ShareSettingsProjectConfig setProjectId(java.lang.String projectId) { + this.projectId = projectId; + return this; + } + + @Override + public ShareSettingsProjectConfig set(String fieldName, Object value) { + return (ShareSettingsProjectConfig) super.set(fieldName, value); + } + + @Override + public ShareSettingsProjectConfig clone() { + return (ShareSettingsProjectConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceConfig.java new file mode 100644 index 00000000000..8f8793dbd53 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceConfig.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A set of Shielded Instance options. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ShieldedInstanceConfig extends com.google.api.client.json.GenericJson { + + /** + * Defines whether the instance has integrity monitoring enabled.Enabled by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableIntegrityMonitoring; + + /** + * Defines whether the instance has Secure Boot enabled.Disabled by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableSecureBoot; + + /** + * Defines whether the instance has the vTPM enabled.Enabled by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableVtpm; + + /** + * Defines whether the instance has integrity monitoring enabled.Enabled by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring; + } + + /** + * Defines whether the instance has integrity monitoring enabled.Enabled by default. + * @param enableIntegrityMonitoring enableIntegrityMonitoring or {@code null} for none + */ + public ShieldedInstanceConfig setEnableIntegrityMonitoring(java.lang.Boolean enableIntegrityMonitoring) { + this.enableIntegrityMonitoring = enableIntegrityMonitoring; + return this; + } + + /** + * Defines whether the instance has Secure Boot enabled.Disabled by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableSecureBoot() { + return enableSecureBoot; + } + + /** + * Defines whether the instance has Secure Boot enabled.Disabled by default. + * @param enableSecureBoot enableSecureBoot or {@code null} for none + */ + public ShieldedInstanceConfig setEnableSecureBoot(java.lang.Boolean enableSecureBoot) { + this.enableSecureBoot = enableSecureBoot; + return this; + } + + /** + * Defines whether the instance has the vTPM enabled.Enabled by default. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableVtpm() { + return enableVtpm; + } + + /** + * Defines whether the instance has the vTPM enabled.Enabled by default. + * @param enableVtpm enableVtpm or {@code null} for none + */ + public ShieldedInstanceConfig setEnableVtpm(java.lang.Boolean enableVtpm) { + this.enableVtpm = enableVtpm; + return this; + } + + @Override + public ShieldedInstanceConfig set(String fieldName, Object value) { + return (ShieldedInstanceConfig) super.set(fieldName, value); + } + + @Override + public ShieldedInstanceConfig clone() { + return (ShieldedInstanceConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java new file mode 100644 index 00000000000..4381a64c967 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A Shielded Instance Identity. + * + *

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 ShieldedInstanceIdentity extends com.google.api.client.json.GenericJson { + + /** + * An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceIdentityEntry eccP256EncryptionKey; + + /** + * An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceIdentityEntry eccP256SigningKey; + + /** + * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceIdentityEntry encryptionKey; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for + * shielded Instance identity entry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ShieldedInstanceIdentityEntry signingKey; + + /** + * An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. + * @return value or {@code null} for none + */ + public ShieldedInstanceIdentityEntry getEccP256EncryptionKey() { + return eccP256EncryptionKey; + } + + /** + * An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. + * @param eccP256EncryptionKey eccP256EncryptionKey or {@code null} for none + */ + public ShieldedInstanceIdentity setEccP256EncryptionKey(ShieldedInstanceIdentityEntry eccP256EncryptionKey) { + this.eccP256EncryptionKey = eccP256EncryptionKey; + return this; + } + + /** + * An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. + * @return value or {@code null} for none + */ + public ShieldedInstanceIdentityEntry getEccP256SigningKey() { + return eccP256SigningKey; + } + + /** + * An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. + * @param eccP256SigningKey eccP256SigningKey or {@code null} for none + */ + public ShieldedInstanceIdentity setEccP256SigningKey(ShieldedInstanceIdentityEntry eccP256SigningKey) { + this.eccP256SigningKey = eccP256SigningKey; + return this; + } + + /** + * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + * @return value or {@code null} for none + */ + public ShieldedInstanceIdentityEntry getEncryptionKey() { + return encryptionKey; + } + + /** + * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + * @param encryptionKey encryptionKey or {@code null} for none + */ + public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry encryptionKey) { + this.encryptionKey = encryptionKey; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for + * shielded Instance identity entry. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for + * shielded Instance identity entry. + * @param kind kind or {@code null} for none + */ + public ShieldedInstanceIdentity setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + * @return value or {@code null} for none + */ + public ShieldedInstanceIdentityEntry getSigningKey() { + return signingKey; + } + + /** + * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. + * @param signingKey signingKey or {@code null} for none + */ + public ShieldedInstanceIdentity setSigningKey(ShieldedInstanceIdentityEntry signingKey) { + this.signingKey = signingKey; + return this; + } + + @Override + public ShieldedInstanceIdentity set(String fieldName, Object value) { + return (ShieldedInstanceIdentity) super.set(fieldName, value); + } + + @Override + public ShieldedInstanceIdentity clone() { + return (ShieldedInstanceIdentity) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentityEntry.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentityEntry.java new file mode 100644 index 00000000000..85245060329 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentityEntry.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A Shielded Instance Identity Entry. + * + *

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 ShieldedInstanceIdentityEntry extends com.google.api.client.json.GenericJson { + + /** + * A PEM-encoded X.509 certificate. This field can be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ekCert; + + /** + * A PEM-encoded public key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ekPub; + + /** + * A PEM-encoded X.509 certificate. This field can be empty. + * @return value or {@code null} for none + */ + public java.lang.String getEkCert() { + return ekCert; + } + + /** + * A PEM-encoded X.509 certificate. This field can be empty. + * @param ekCert ekCert or {@code null} for none + */ + public ShieldedInstanceIdentityEntry setEkCert(java.lang.String ekCert) { + this.ekCert = ekCert; + return this; + } + + /** + * A PEM-encoded public key. + * @return value or {@code null} for none + */ + public java.lang.String getEkPub() { + return ekPub; + } + + /** + * A PEM-encoded public key. + * @param ekPub ekPub or {@code null} for none + */ + public ShieldedInstanceIdentityEntry setEkPub(java.lang.String ekPub) { + this.ekPub = ekPub; + return this; + } + + @Override + public ShieldedInstanceIdentityEntry set(String fieldName, Object value) { + return (ShieldedInstanceIdentityEntry) super.set(fieldName, value); + } + + @Override + public ShieldedInstanceIdentityEntry clone() { + return (ShieldedInstanceIdentityEntry) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIntegrityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIntegrityPolicy.java new file mode 100644 index 00000000000..07d49cb16d4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIntegrityPolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The policy describes the baseline against which Instance boot integrity is measured. + * + *

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 ShieldedInstanceIntegrityPolicy extends com.google.api.client.json.GenericJson { + + /** + * Updates the integrity policy baseline using the measurements from the VM instance's most recent + * boot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean updateAutoLearnPolicy; + + /** + * Updates the integrity policy baseline using the measurements from the VM instance's most recent + * boot. + * @return value or {@code null} for none + */ + public java.lang.Boolean getUpdateAutoLearnPolicy() { + return updateAutoLearnPolicy; + } + + /** + * Updates the integrity policy baseline using the measurements from the VM instance's most recent + * boot. + * @param updateAutoLearnPolicy updateAutoLearnPolicy or {@code null} for none + */ + public ShieldedInstanceIntegrityPolicy setUpdateAutoLearnPolicy(java.lang.Boolean updateAutoLearnPolicy) { + this.updateAutoLearnPolicy = updateAutoLearnPolicy; + return this; + } + + @Override + public ShieldedInstanceIntegrityPolicy set(String fieldName, Object value) { + return (ShieldedInstanceIntegrityPolicy) super.set(fieldName, value); + } + + @Override + public ShieldedInstanceIntegrityPolicy clone() { + return (ShieldedInstanceIntegrityPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SignedUrlKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SignedUrlKey.java new file mode 100644 index 00000000000..3e7d188a5db --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SignedUrlKey.java @@ -0,0 +1,105 @@ +/* + * 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 customer-supplied Signing Key used by Cloud CDN Signed URLs + * + *

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 SignedUrlKey extends com.google.api.client.json.GenericJson { + + /** + * Name of the key. 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 keyName; + + /** + * 128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 + * base64url encoded string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyValue; + + /** + * Name of the key. 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 getKeyName() { + return keyName; + } + + /** + * Name of the key. 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 keyName keyName or {@code null} for none + */ + public SignedUrlKey setKeyName(java.lang.String keyName) { + this.keyName = keyName; + return this; + } + + /** + * 128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 + * base64url encoded string. + * @return value or {@code null} for none + */ + public java.lang.String getKeyValue() { + return keyValue; + } + + /** + * 128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 + * base64url encoded string. + * @param keyValue keyValue or {@code null} for none + */ + public SignedUrlKey setKeyValue(java.lang.String keyValue) { + this.keyValue = keyValue; + return this; + } + + @Override + public SignedUrlKey set(String fieldName, Object value) { + return (SignedUrlKey) super.set(fieldName, value); + } + + @Override + public SignedUrlKey clone() { + return (SignedUrlKey) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Snapshot.java new file mode 100644 index 00000000000..aadca6047e1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -0,0 +1,1243 @@ +/* + * 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 Persistent Disk Snapshot resource. + * + * You can use snapshots to back up data on a regular interval. For more information, read Creating + * persistent disk snapshots. + * + *

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 Snapshot extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String architecture; + + /** + * Output only. [Output Only] Set to true if snapshots are automatically created by applying + * resource policy on the target disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoCreated; + + /** + * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name + * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for + * advanced service owners who needs to create separate snapshot chains, for example, for + * chargeback tracking. When you describe your snapshot resource, this field is visible only if it + * has a non-empty value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chainName; + + /** + * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long creationSizeBytes; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskSizeGb; + + /** + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long downloadBytes; + + /** + * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableConfidentialCompute; + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean guestFlush; + + /** + * Output only. [Output Only] A list of features to enable on the guest operating system. + * Applicable only for bootable images. Read Enabling guest operating system features to see a + * list of available options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guestOsFeatures; + + static { + // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); + } + + /** + * 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] Type of the resource. Always compute#snapshot for Snapshot + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label + * values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List licenseCodes; + + /** + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This + * can be because the original image had licenses attached (such as a Windows image). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List licenses; + + /** + * An opaque location hint used to place the snapshot close to other resources. This field is for + * use by internal tools that use the public API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationHint; + + /** + * Name of the resource; provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotParams params; + + /** + * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for + * regional snapshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * 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; + + /** + * Encrypts the snapshot using acustomer-supplied encryption key. + * + * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if + * you use the snapshot later. For example, you must provide the encryption key when you create a + * disk from the encrypted snapshot in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then the snapshot will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * snapshot later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey snapshotEncryptionKey; + + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * The usage of snapshot group feature is restricted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotGroupId; + + /** + * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of + * snapshot group feature is restricted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotGroupName; + + /** + * Indicates the type of the snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String snapshotType; + + /** + * The source disk used to create this snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * The customer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceDiskEncryptionKey; + + /** + * The source disk whose recovery checkpoint will be used to create this snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskForRecoveryCheckpoint; + + /** + * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given disk name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDiskId; + + /** + * The source instant snapshot used to create this snapshot. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - https://w + * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + * - projects/project/zones/zone/instantSnapshots/instantSnapshot - + * zones/zone/instantSnapshots/instantSnapshot + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshot; + + /** + * Customer provided encryption key when creating Snapshot from Instant Snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; + + /** + * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. + * This value identifies the exact instant snapshot that was used to create this snapshot. For + * example, if you created the snapshot from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact instant + * snapshot that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotId; + + /** + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshotSchedulePolicy; + + /** + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshotSchedulePolicyId; + + /** + * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, + * FAILED,READY, or UPLOADING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share + * storage, this number is expected to change with snapshot creation/deletion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long storageBytes; + + /** + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storageBytesStatus; + + /** + * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storageLocations; + + /** + * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * @return value or {@code null} for none + */ + public java.lang.String getArchitecture() { + return architecture; + } + + /** + * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * @param architecture architecture or {@code null} for none + */ + public Snapshot setArchitecture(java.lang.String architecture) { + this.architecture = architecture; + return this; + } + + /** + * Output only. [Output Only] Set to true if snapshots are automatically created by applying + * resource policy on the target disk. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoCreated() { + return autoCreated; + } + + /** + * Output only. [Output Only] Set to true if snapshots are automatically created by applying + * resource policy on the target disk. + * @param autoCreated autoCreated or {@code null} for none + */ + public Snapshot setAutoCreated(java.lang.Boolean autoCreated) { + this.autoCreated = autoCreated; + return this; + } + + /** + * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name + * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for + * advanced service owners who needs to create separate snapshot chains, for example, for + * chargeback tracking. When you describe your snapshot resource, this field is visible only if it + * has a non-empty value. + * @return value or {@code null} for none + */ + public java.lang.String getChainName() { + return chainName; + } + + /** + * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name + * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for + * advanced service owners who needs to create separate snapshot chains, for example, for + * chargeback tracking. When you describe your snapshot resource, this field is visible only if it + * has a non-empty value. + * @param chainName chainName or {@code null} for none + */ + public Snapshot setChainName(java.lang.String chainName) { + this.chainName = chainName; + return this; + } + + /** + * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * @return value or {@code null} for none + */ + public java.lang.Long getCreationSizeBytes() { + return creationSizeBytes; + } + + /** + * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * @param creationSizeBytes creationSizeBytes or {@code null} for none + */ + public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { + this.creationSizeBytes = creationSizeBytes; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public Snapshot setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskSizeGb() { + return diskSizeGb; + } + + /** + * Output only. [Output Only] Size of the source disk, specified in GB. + * @param diskSizeGb diskSizeGb or {@code null} for none + */ + public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { + this.diskSizeGb = diskSizeGb; + return this; + } + + /** + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * @return value or {@code null} for none + */ + public java.lang.Long getDownloadBytes() { + return downloadBytes; + } + + /** + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * @param downloadBytes downloadBytes or {@code null} for none + */ + public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { + this.downloadBytes = downloadBytes; + return this; + } + + /** + * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableConfidentialCompute() { + return enableConfidentialCompute; + } + + /** + * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output + * Only]: This field is not set by user, but from source disk. + * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none + */ + public Snapshot setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { + this.enableConfidentialCompute = enableConfidentialCompute; + return this; + } + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGuestFlush() { + return guestFlush; + } + + /** + * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to + * prepare for the snapshot process. + * @param guestFlush guestFlush or {@code null} for none + */ + public Snapshot setGuestFlush(java.lang.Boolean guestFlush) { + this.guestFlush = guestFlush; + return this; + } + + /** + * Output only. [Output Only] A list of features to enable on the guest operating system. + * Applicable only for bootable images. Read Enabling guest operating system features to see a + * list of available options. + * @return value or {@code null} for none + */ + public java.util.List getGuestOsFeatures() { + return guestOsFeatures; + } + + /** + * Output only. [Output Only] A list of features to enable on the guest operating system. + * Applicable only for bootable images. Read Enabling guest operating system features to see a + * list of available options. + * @param guestOsFeatures guestOsFeatures or {@code null} for none + */ + public Snapshot setGuestOsFeatures(java.util.List guestOsFeatures) { + this.guestOsFeatures = guestOsFeatures; + 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 Snapshot setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot + * resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot + * resources. + * @param kind kind or {@code null} for none + */ + public Snapshot setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public Snapshot setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the + * labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a snapshot. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Snapshot encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label + * values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label + * values may be empty. + * @param labels labels or {@code null} for none + */ + public Snapshot setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. + * @return value or {@code null} for none + */ + public java.util.List getLicenseCodes() { + return licenseCodes; + } + + /** + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. + * @param licenseCodes licenseCodes or {@code null} for none + */ + public Snapshot setLicenseCodes(java.util.List licenseCodes) { + this.licenseCodes = licenseCodes; + return this; + } + + /** + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This + * can be because the original image had licenses attached (such as a Windows image). + * @return value or {@code null} for none + */ + public java.util.List getLicenses() { + return licenses; + } + + /** + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This + * can be because the original image had licenses attached (such as a Windows image). + * @param licenses licenses or {@code null} for none + */ + public Snapshot setLicenses(java.util.List licenses) { + this.licenses = licenses; + return this; + } + + /** + * An opaque location hint used to place the snapshot close to other resources. This field is for + * use by internal tools that use the public API. + * @return value or {@code null} for none + */ + public java.lang.String getLocationHint() { + return locationHint; + } + + /** + * An opaque location hint used to place the snapshot close to other resources. This field is for + * use by internal tools that use the public API. + * @param locationHint locationHint or {@code null} for none + */ + public Snapshot setLocationHint(java.lang.String locationHint) { + this.locationHint = locationHint; + return this; + } + + /** + * Name of the resource; provided by the client 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; provided by the client 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 Snapshot setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public SnapshotParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Snapshot setParams(SnapshotParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for + * regional snapshots. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for + * regional snapshots. + * @param region region or {@code null} for none + */ + public Snapshot setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. [Output Only] Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + 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 Snapshot setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Encrypts the snapshot using acustomer-supplied encryption key. + * + * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if + * you use the snapshot later. For example, you must provide the encryption key when you create a + * disk from the encrypted snapshot in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then the snapshot will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * snapshot later. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSnapshotEncryptionKey() { + return snapshotEncryptionKey; + } + + /** + * Encrypts the snapshot using acustomer-supplied encryption key. + * + * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if + * you use the snapshot later. For example, you must provide the encryption key when you create a + * disk from the encrypted snapshot in a future request. + * + * Customer-supplied encryption keys do not protect access to metadata of the snapshot. + * + * If you do not provide an encryption key when creating the snapshot, then the snapshot will be + * encrypted using an automatically generated key and you do not need to provide a key to use the + * snapshot later. + * @param snapshotEncryptionKey snapshotEncryptionKey or {@code null} for none + */ + public Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey) { + this.snapshotEncryptionKey = snapshotEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * The usage of snapshot group feature is restricted. + * @return value or {@code null} for none + */ + public java.lang.String getSnapshotGroupId() { + return snapshotGroupId; + } + + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * The usage of snapshot group feature is restricted. + * @param snapshotGroupId snapshotGroupId or {@code null} for none + */ + public Snapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of + * snapshot group feature is restricted. + * @return value or {@code null} for none + */ + public java.lang.String getSnapshotGroupName() { + return snapshotGroupName; + } + + /** + * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of + * snapshot group feature is restricted. + * @param snapshotGroupName snapshotGroupName or {@code null} for none + */ + public Snapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { + this.snapshotGroupName = snapshotGroupName; + return this; + } + + /** + * Indicates the type of the snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSnapshotType() { + return snapshotType; + } + + /** + * Indicates the type of the snapshot. + * @param snapshotType snapshotType or {@code null} for none + */ + public Snapshot setSnapshotType(java.lang.String snapshotType) { + this.snapshotType = snapshotType; + return this; + } + + /** + * The source disk used to create this snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * The source disk used to create this snapshot. + * @param sourceDisk sourceDisk or {@code null} for none + */ + public Snapshot setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + /** + * The customer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceDiskEncryptionKey() { + return sourceDiskEncryptionKey; + } + + /** + * The customer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @param sourceDiskEncryptionKey sourceDiskEncryptionKey or {@code null} for none + */ + public Snapshot setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey) { + this.sourceDiskEncryptionKey = sourceDiskEncryptionKey; + return this; + } + + /** + * The source disk whose recovery checkpoint will be used to create this snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskForRecoveryCheckpoint() { + return sourceDiskForRecoveryCheckpoint; + } + + /** + * The source disk whose recovery checkpoint will be used to create this snapshot. + * @param sourceDiskForRecoveryCheckpoint sourceDiskForRecoveryCheckpoint or {@code null} for none + */ + public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskForRecoveryCheckpoint) { + this.sourceDiskForRecoveryCheckpoint = sourceDiskForRecoveryCheckpoint; + return this; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given disk name. + * @return value or {@code null} for none + */ + public java.lang.String getSourceDiskId() { + return sourceDiskId; + } + + /** + * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value + * may be used to determine whether the snapshot was taken from the current or a previous instance + * of a given disk name. + * @param sourceDiskId sourceDiskId or {@code null} for none + */ + public Snapshot setSourceDiskId(java.lang.String sourceDiskId) { + this.sourceDiskId = sourceDiskId; + return this; + } + + /** + * The source instant snapshot used to create this snapshot. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - https://w + * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + * - projects/project/zones/zone/instantSnapshots/instantSnapshot - + * zones/zone/instantSnapshots/instantSnapshot + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshot() { + return sourceInstantSnapshot; + } + + /** + * The source instant snapshot used to create this snapshot. You can provide this as a partial or + * full URL to the resource. For example, the following are valid values: - https://w + * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + * - projects/project/zones/zone/instantSnapshots/instantSnapshot - + * zones/zone/instantSnapshots/instantSnapshot + * @param sourceInstantSnapshot sourceInstantSnapshot or {@code null} for none + */ + public Snapshot setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { + this.sourceInstantSnapshot = sourceInstantSnapshot; + return this; + } + + /** + * Customer provided encryption key when creating Snapshot from Instant Snapshot. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceInstantSnapshotEncryptionKey() { + return sourceInstantSnapshotEncryptionKey; + } + + /** + * Customer provided encryption key when creating Snapshot from Instant Snapshot. + * @param sourceInstantSnapshotEncryptionKey sourceInstantSnapshotEncryptionKey or {@code null} for none + */ + public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sourceInstantSnapshotEncryptionKey) { + this.sourceInstantSnapshotEncryptionKey = sourceInstantSnapshotEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. + * This value identifies the exact instant snapshot that was used to create this snapshot. For + * example, if you created the snapshot from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact instant + * snapshot that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotId() { + return sourceInstantSnapshotId; + } + + /** + * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. + * This value identifies the exact instant snapshot that was used to create this snapshot. For + * example, if you created the snapshot from an instant snapshot that was later deleted and + * recreated under the same name, the source instant snapshot ID would identify the exact instant + * snapshot that was used. + * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none + */ + public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { + this.sourceInstantSnapshotId = sourceInstantSnapshotId; + return this; + } + + /** + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshotSchedulePolicy() { + return sourceSnapshotSchedulePolicy; + } + + /** + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * @param sourceSnapshotSchedulePolicy sourceSnapshotSchedulePolicy or {@code null} for none + */ + public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotSchedulePolicy) { + this.sourceSnapshotSchedulePolicy = sourceSnapshotSchedulePolicy; + return this; + } + + /** + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshotSchedulePolicyId() { + return sourceSnapshotSchedulePolicyId; + } + + /** + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * @param sourceSnapshotSchedulePolicyId sourceSnapshotSchedulePolicyId or {@code null} for none + */ + public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapshotSchedulePolicyId) { + this.sourceSnapshotSchedulePolicyId = sourceSnapshotSchedulePolicyId; + return this; + } + + /** + * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, + * FAILED,READY, or UPLOADING. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, + * FAILED,READY, or UPLOADING. + * @param status status or {@code null} for none + */ + public Snapshot setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share + * storage, this number is expected to change with snapshot creation/deletion. + * @return value or {@code null} for none + */ + public java.lang.Long getStorageBytes() { + return storageBytes; + } + + /** + * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share + * storage, this number is expected to change with snapshot creation/deletion. + * @param storageBytes storageBytes or {@code null} for none + */ + public Snapshot setStorageBytes(java.lang.Long storageBytes) { + this.storageBytes = storageBytes; + return this; + } + + /** + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. + * @return value or {@code null} for none + */ + public java.lang.String getStorageBytesStatus() { + return storageBytesStatus; + } + + /** + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. + * @param storageBytesStatus storageBytesStatus or {@code null} for none + */ + public Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { + this.storageBytesStatus = storageBytesStatus; + return this; + } + + /** + * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + * @return value or {@code null} for none + */ + public java.util.List getStorageLocations() { + return storageLocations; + } + + /** + * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). + * @param storageLocations storageLocations or {@code null} for none + */ + public Snapshot setStorageLocations(java.util.List storageLocations) { + this.storageLocations = storageLocations; + return this; + } + + @Override + public Snapshot set(String fieldName, Object value) { + return (Snapshot) super.set(fieldName, value); + } + + @Override + public Snapshot clone() { + return (Snapshot) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java new file mode 100644 index 00000000000..3a9185d3108 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java @@ -0,0 +1,132 @@ +/* + * 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 SnapshotGroupParameters. + * + *

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 SnapshotGroupParameters extends com.google.api.client.json.GenericJson { + + /** + * URLs of the zones where disks should be replicated to. Only applicable for regional resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List replicaZones; + + /** + * The source snapshot group used to create disks. You can provide this as a partial or full URL + * to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup + * - projects/project/global/snapshotGroups/snapshotGroup - + * global/snapshotGroups/snapshotGroup + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceSnapshotGroup; + + /** + * URL of the disk type resource describing which disk type to use to create disks. Provide this + * when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See + * Persistent disk types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * URLs of the zones where disks should be replicated to. Only applicable for regional resources. + * @return value or {@code null} for none + */ + public java.util.List getReplicaZones() { + return replicaZones; + } + + /** + * URLs of the zones where disks should be replicated to. Only applicable for regional resources. + * @param replicaZones replicaZones or {@code null} for none + */ + public SnapshotGroupParameters setReplicaZones(java.util.List replicaZones) { + this.replicaZones = replicaZones; + return this; + } + + /** + * The source snapshot group used to create disks. You can provide this as a partial or full URL + * to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup + * - projects/project/global/snapshotGroups/snapshotGroup - + * global/snapshotGroups/snapshotGroup + * @return value or {@code null} for none + */ + public java.lang.String getSourceSnapshotGroup() { + return sourceSnapshotGroup; + } + + /** + * The source snapshot group used to create disks. You can provide this as a partial or full URL + * to the resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup + * - projects/project/global/snapshotGroups/snapshotGroup - + * global/snapshotGroups/snapshotGroup + * @param sourceSnapshotGroup sourceSnapshotGroup or {@code null} for none + */ + public SnapshotGroupParameters setSourceSnapshotGroup(java.lang.String sourceSnapshotGroup) { + this.sourceSnapshotGroup = sourceSnapshotGroup; + return this; + } + + /** + * URL of the disk type resource describing which disk type to use to create disks. Provide this + * when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See + * Persistent disk types. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * URL of the disk type resource describing which disk type to use to create disks. Provide this + * when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See + * Persistent disk types. + * @param type type or {@code null} for none + */ + public SnapshotGroupParameters setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public SnapshotGroupParameters set(String fieldName, Object value) { + return (SnapshotGroupParameters) super.set(fieldName, value); + } + + @Override + public SnapshotGroupParameters clone() { + return (SnapshotGroupParameters) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotList.java new file mode 100644 index 00000000000..ab7e29b566c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of Snapshot resources. + * + *

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 SnapshotList extends com.google.api.client.json.GenericJson { + + /** + * [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 Snapshot 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 Snapshot 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(Snapshot.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 SnapshotList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Snapshot resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Snapshot resources. + * @param items items or {@code null} for none + */ + public SnapshotList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public SnapshotList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SnapshotList 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 SnapshotList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 SnapshotList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SnapshotList set(String fieldName, Object value) { + return (SnapshotList) super.set(fieldName, value); + } + + @Override + public SnapshotList clone() { + return (SnapshotList) 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 SnapshotListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotParams.java new file mode 100644 index 00000000000..1780ac1f790 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional snapshot params. + * + *

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 SnapshotParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public SnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public SnapshotParams set(String fieldName, Object value) { + return (SnapshotParams) super.set(fieldName, value); + } + + @Override + public SnapshotParams clone() { + return (SnapshotParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettings.java new file mode 100644 index 00000000000..d44a5ab22d1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettings.java @@ -0,0 +1,93 @@ +/* + * 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 SnapshotSettings. + * + *

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 SnapshotSettings extends com.google.api.client.json.GenericJson { + + /** + * (Regional snapshots use only)Policy of which location is allowed to access snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotSettingsAccessLocation accessLocation; + + /** + * Policy of which storage location is going to be resolved, and additional data that + * particularizes how the policy is going to be carried out. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotSettingsStorageLocationSettings storageLocation; + + /** + * (Regional snapshots use only)Policy of which location is allowed to access snapshot. + * @return value or {@code null} for none + */ + public SnapshotSettingsAccessLocation getAccessLocation() { + return accessLocation; + } + + /** + * (Regional snapshots use only)Policy of which location is allowed to access snapshot. + * @param accessLocation accessLocation or {@code null} for none + */ + public SnapshotSettings setAccessLocation(SnapshotSettingsAccessLocation accessLocation) { + this.accessLocation = accessLocation; + return this; + } + + /** + * Policy of which storage location is going to be resolved, and additional data that + * particularizes how the policy is going to be carried out. + * @return value or {@code null} for none + */ + public SnapshotSettingsStorageLocationSettings getStorageLocation() { + return storageLocation; + } + + /** + * Policy of which storage location is going to be resolved, and additional data that + * particularizes how the policy is going to be carried out. + * @param storageLocation storageLocation or {@code null} for none + */ + public SnapshotSettings setStorageLocation(SnapshotSettingsStorageLocationSettings storageLocation) { + this.storageLocation = storageLocation; + return this; + } + + @Override + public SnapshotSettings set(String fieldName, Object value) { + return (SnapshotSettings) super.set(fieldName, value); + } + + @Override + public SnapshotSettings clone() { + return (SnapshotSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocation.java new file mode 100644 index 00000000000..344e04108c1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for SnapshotSettingsAccessLocation. + * + *

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 SnapshotSettingsAccessLocation extends com.google.api.client.json.GenericJson { + + /** + * List of regions that can restore a regional snapshot from the current region + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locations; + + /** + * Policy of which location is allowed to access snapshot. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * List of regions that can restore a regional snapshot from the current region + * @return value or {@code null} for none + */ + public java.util.Map getLocations() { + return locations; + } + + /** + * List of regions that can restore a regional snapshot from the current region + * @param locations locations or {@code null} for none + */ + public SnapshotSettingsAccessLocation setLocations(java.util.Map locations) { + this.locations = locations; + return this; + } + + /** + * Policy of which location is allowed to access snapshot. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * Policy of which location is allowed to access snapshot. + * @param policy policy or {@code null} for none + */ + public SnapshotSettingsAccessLocation setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public SnapshotSettingsAccessLocation set(String fieldName, Object value) { + return (SnapshotSettingsAccessLocation) super.set(fieldName, value); + } + + @Override + public SnapshotSettingsAccessLocation clone() { + return (SnapshotSettingsAccessLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocationAccessLocationPreference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocationAccessLocationPreference.java new file mode 100644 index 00000000000..de50b55731e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsAccessLocationAccessLocationPreference.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; + +/** + * A structure for specifying an allowed target region. + * + *

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 SnapshotSettingsAccessLocationAccessLocationPreference extends com.google.api.client.json.GenericJson { + + /** + * Accessible region name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Accessible region name + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Accessible region name + * @param region region or {@code null} for none + */ + public SnapshotSettingsAccessLocationAccessLocationPreference setRegion(java.lang.String region) { + this.region = region; + return this; + } + + @Override + public SnapshotSettingsAccessLocationAccessLocationPreference set(String fieldName, Object value) { + return (SnapshotSettingsAccessLocationAccessLocationPreference) super.set(fieldName, value); + } + + @Override + public SnapshotSettingsAccessLocationAccessLocationPreference clone() { + return (SnapshotSettingsAccessLocationAccessLocationPreference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettings.java new file mode 100644 index 00000000000..432cc63ec76 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettings.java @@ -0,0 +1,93 @@ +/* + * 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 SnapshotSettingsStorageLocationSettings. + * + *

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 SnapshotSettingsStorageLocationSettings extends com.google.api.client.json.GenericJson { + + /** + * When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this + * field. Keys are Cloud Storage bucket locations. Only one location can be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map locations; + + /** + * The chosen location policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this + * field. Keys are Cloud Storage bucket locations. Only one location can be specified. + * @return value or {@code null} for none + */ + public java.util.Map getLocations() { + return locations; + } + + /** + * When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this + * field. Keys are Cloud Storage bucket locations. Only one location can be specified. + * @param locations locations or {@code null} for none + */ + public SnapshotSettingsStorageLocationSettings setLocations(java.util.Map locations) { + this.locations = locations; + return this; + } + + /** + * The chosen location policy. + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * The chosen location policy. + * @param policy policy or {@code null} for none + */ + public SnapshotSettingsStorageLocationSettings setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public SnapshotSettingsStorageLocationSettings set(String fieldName, Object value) { + return (SnapshotSettingsStorageLocationSettings) super.set(fieldName, value); + } + + @Override + public SnapshotSettingsStorageLocationSettings clone() { + return (SnapshotSettingsStorageLocationSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java new file mode 100644 index 00000000000..b8f38abcd35 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.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; + +/** + * A structure for specifying storage locations. + * + *

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 SnapshotSettingsStorageLocationSettingsStorageLocationPreference extends com.google.api.client.json.GenericJson { + + /** + * Name of the location. It should be one of the Cloud Storage buckets. Only one location can be + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Name of the location. It should be one of the Cloud Storage buckets. Only one location can be + * specified. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the location. It should be one of the Cloud Storage buckets. Only one location can be + * specified. + * @param name name or {@code null} for none + */ + public SnapshotSettingsStorageLocationSettingsStorageLocationPreference setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public SnapshotSettingsStorageLocationSettingsStorageLocationPreference set(String fieldName, Object value) { + return (SnapshotSettingsStorageLocationSettingsStorageLocationPreference) super.set(fieldName, value); + } + + @Override + public SnapshotSettingsStorageLocationSettingsStorageLocationPreference clone() { + return (SnapshotSettingsStorageLocationSettingsStorageLocationPreference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java new file mode 100644 index 00000000000..cb75616e5a4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java @@ -0,0 +1,78 @@ +/* + * 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 SnapshotUpdateKmsKeyRequest. + * + *

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 SnapshotUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot + * will be re-encrypted using the primary version of the snapshot's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKeyName; + + /** + * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot + * will be re-encrypted using the primary version of the snapshot's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key + * @return value or {@code null} for none + */ + public java.lang.String getKmsKeyName() { + return kmsKeyName; + } + + /** + * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot + * will be re-encrypted using the primary version of the snapshot's current KMS key. + * + * The KMS key can be provided in the following formats: - + * projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key + * @param kmsKeyName kmsKeyName or {@code null} for none + */ + public SnapshotUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { + this.kmsKeyName = kmsKeyName; + return this; + } + + @Override + public SnapshotUpdateKmsKeyRequest set(String fieldName, Object value) { + return (SnapshotUpdateKmsKeyRequest) super.set(fieldName, value); + } + + @Override + public SnapshotUpdateKmsKeyRequest clone() { + return (SnapshotUpdateKmsKeyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceDiskEncryptionKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceDiskEncryptionKey.java new file mode 100644 index 00000000000..2a5fb6c4969 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceDiskEncryptionKey.java @@ -0,0 +1,102 @@ +/* + * 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 SourceDiskEncryptionKey. + * + *

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 SourceDiskEncryptionKey extends com.google.api.client.json.GenericJson { + + /** + * Thecustomer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey diskEncryptionKey; + + /** + * URL of the disk attached to the source instance. This can be a full or valid partial URL. For + * example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceDisk; + + /** + * Thecustomer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getDiskEncryptionKey() { + return diskEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source disk. Required if the source disk is + * protected by a customer-supplied encryption key. + * @param diskEncryptionKey diskEncryptionKey or {@code null} for none + */ + public SourceDiskEncryptionKey setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { + this.diskEncryptionKey = diskEncryptionKey; + return this; + } + + /** + * URL of the disk attached to the source instance. This can be a full or valid partial URL. For + * example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * @return value or {@code null} for none + */ + public java.lang.String getSourceDisk() { + return sourceDisk; + } + + /** + * URL of the disk attached to the source instance. This can be a full or valid partial URL. For + * example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - + * projects/project/zones/zone/disks/disk - zones/zone/disks/disk + * @param sourceDisk sourceDisk or {@code null} for none + */ + public SourceDiskEncryptionKey setSourceDisk(java.lang.String sourceDisk) { + this.sourceDisk = sourceDisk; + return this; + } + + @Override + public SourceDiskEncryptionKey set(String fieldName, Object value) { + return (SourceDiskEncryptionKey) super.set(fieldName, value); + } + + @Override + public SourceDiskEncryptionKey clone() { + return (SourceDiskEncryptionKey) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceParams.java new file mode 100644 index 00000000000..08ffdf3c60e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceParams.java @@ -0,0 +1,79 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A specification of the parameters to use when creating the instance template from a source + * instance. + * + *

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 SourceInstanceParams extends com.google.api.client.json.GenericJson { + + /** + * Attached disks configuration. If not provided, defaults are applied: For boot disk and any + * other R/W disks, the source images for each disk will be used. For read-only disks, they will + * be attached in read-only mode. Local SSD disks will be created as blank volumes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List diskConfigs; + + static { + // hack to force ProGuard to consider DiskInstantiationConfig 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(DiskInstantiationConfig.class); + } + + /** + * Attached disks configuration. If not provided, defaults are applied: For boot disk and any + * other R/W disks, the source images for each disk will be used. For read-only disks, they will + * be attached in read-only mode. Local SSD disks will be created as blank volumes. + * @return value or {@code null} for none + */ + public java.util.List getDiskConfigs() { + return diskConfigs; + } + + /** + * Attached disks configuration. If not provided, defaults are applied: For boot disk and any + * other R/W disks, the source images for each disk will be used. For read-only disks, they will + * be attached in read-only mode. Local SSD disks will be created as blank volumes. + * @param diskConfigs diskConfigs or {@code null} for none + */ + public SourceInstanceParams setDiskConfigs(java.util.List diskConfigs) { + this.diskConfigs = diskConfigs; + return this; + } + + @Override + public SourceInstanceParams set(String fieldName, Object value) { + return (SourceInstanceParams) super.set(fieldName, value); + } + + @Override + public SourceInstanceParams clone() { + return (SourceInstanceParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java new file mode 100644 index 00000000000..91de2bc023e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java @@ -0,0 +1,475 @@ +/* + * 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; + +/** + * DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to + * this field. + * + *

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 SourceInstanceProperties extends com.google.api.client.json.GenericJson { + + /** + * Enables instances created based on this machine image to send packets with source IP addresses + * other than their own and receive packets with destination IP addresses other than their own. If + * these instances will be used as an IP gateway or it will be set as the next-hop in a Route + * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + * documentation for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canIpForward; + + /** + * Whether the instance created from this machine image should be protected against deletion. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deletionProtection; + + /** + * An optional text description for the instances that are created from this machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * An array of disks that are associated with the instances that are created from this machine + * image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider SavedAttachedDisk 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(SavedAttachedDisk.class); + } + + /** + * A list of guest accelerator cards' type and count to use for instances created from this + * machine image. + * 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); + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyRevocationActionType; + + /** + * Labels to apply to instances that are created from this machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The machine type to use for instances that are created from this machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** + * The metadata key/value pairs to assign to instances that are created from this machine image. + * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata + * for more information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Metadata metadata; + + /** + * Minimum cpu/platform to be used by instances created from this machine image. The instance may + * be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names + * of CPU platforms, such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy + * Bridge". For more information, read Specifying a Minimum CPU Platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + + /** + * An array of network access configurations for this interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List networkInterfaces; + + static { + // hack to force ProGuard to consider NetworkInterface 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(NetworkInterface.class); + } + + /** + * PostKeyRevocationActionType of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String postKeyRevocationActionType; + + /** + * Specifies the scheduling options for the instances that are created from this machine image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Scheduling scheduling; + + /** + * A list of service accounts with specified scopes. Access tokens for these service accounts are + * available to the instances that are created from this machine image. Use metadata queries to + * obtain the access tokens for these instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serviceAccounts; + + static { + // hack to force ProGuard to consider ServiceAccount 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(ServiceAccount.class); + } + + /** + * A list of tags to apply to the instances that are created from this machine image. The tags + * identify valid sources or targets for network firewalls. The setTags method can modify this + * list of tags. Each tag within the list must comply withRFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Tags tags; + + /** + * Enables instances created based on this machine image to send packets with source IP addresses + * other than their own and receive packets with destination IP addresses other than their own. If + * these instances will be used as an IP gateway or it will be set as the next-hop in a Route + * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + * documentation for more information. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanIpForward() { + return canIpForward; + } + + /** + * Enables instances created based on this machine image to send packets with source IP addresses + * other than their own and receive packets with destination IP addresses other than their own. If + * these instances will be used as an IP gateway or it will be set as the next-hop in a Route + * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding + * documentation for more information. + * @param canIpForward canIpForward or {@code null} for none + */ + public SourceInstanceProperties setCanIpForward(java.lang.Boolean canIpForward) { + this.canIpForward = canIpForward; + return this; + } + + /** + * Whether the instance created from this machine image should be protected against deletion. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeletionProtection() { + return deletionProtection; + } + + /** + * Whether the instance created from this machine image should be protected against deletion. + * @param deletionProtection deletionProtection or {@code null} for none + */ + public SourceInstanceProperties setDeletionProtection(java.lang.Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + return this; + } + + /** + * An optional text description for the instances that are created from this machine image. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional text description for the instances that are created from this machine image. + * @param description description or {@code null} for none + */ + public SourceInstanceProperties setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * An array of disks that are associated with the instances that are created from this machine + * image. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * An array of disks that are associated with the instances that are created from this machine + * image. + * @param disks disks or {@code null} for none + */ + public SourceInstanceProperties setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * A list of guest accelerator cards' type and count to use for instances created from this + * machine image. + * @return value or {@code null} for none + */ + public java.util.List getGuestAccelerators() { + return guestAccelerators; + } + + /** + * A list of guest accelerator cards' type and count to use for instances created from this + * machine image. + * @param guestAccelerators guestAccelerators or {@code null} for none + */ + public SourceInstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * @return value or {@code null} for none + */ + public java.lang.String getKeyRevocationActionType() { + return keyRevocationActionType; + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default + * value is "NONE" if it is not specified. + * @param keyRevocationActionType keyRevocationActionType or {@code null} for none + */ + public SourceInstanceProperties setKeyRevocationActionType(java.lang.String keyRevocationActionType) { + this.keyRevocationActionType = keyRevocationActionType; + return this; + } + + /** + * Labels to apply to instances that are created from this machine image. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to instances that are created from this machine image. + * @param labels labels or {@code null} for none + */ + public SourceInstanceProperties setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The machine type to use for instances that are created from this machine image. + * @return value or {@code null} for none + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** + * The machine type to use for instances that are created from this machine image. + * @param machineType machineType or {@code null} for none + */ + public SourceInstanceProperties setMachineType(java.lang.String machineType) { + this.machineType = machineType; + return this; + } + + /** + * The metadata key/value pairs to assign to instances that are created from this machine image. + * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata + * for more information. + * @return value or {@code null} for none + */ + public Metadata getMetadata() { + return metadata; + } + + /** + * The metadata key/value pairs to assign to instances that are created from this machine image. + * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata + * for more information. + * @param metadata metadata or {@code null} for none + */ + public SourceInstanceProperties setMetadata(Metadata metadata) { + this.metadata = metadata; + return this; + } + + /** + * Minimum cpu/platform to be used by instances created from this machine image. The instance may + * be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names + * of CPU platforms, such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy + * Bridge". For more information, read Specifying a Minimum CPU Platform. + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Minimum cpu/platform to be used by instances created from this machine image. The instance may + * be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names + * of CPU platforms, such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy + * Bridge". For more information, read Specifying a Minimum CPU Platform. + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public SourceInstanceProperties setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + + /** + * An array of network access configurations for this interface. + * @return value or {@code null} for none + */ + public java.util.List getNetworkInterfaces() { + return networkInterfaces; + } + + /** + * An array of network access configurations for this interface. + * @param networkInterfaces networkInterfaces or {@code null} for none + */ + public SourceInstanceProperties setNetworkInterfaces(java.util.List networkInterfaces) { + this.networkInterfaces = networkInterfaces; + return this; + } + + /** + * PostKeyRevocationActionType of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getPostKeyRevocationActionType() { + return postKeyRevocationActionType; + } + + /** + * PostKeyRevocationActionType of the instance. + * @param postKeyRevocationActionType postKeyRevocationActionType or {@code null} for none + */ + public SourceInstanceProperties setPostKeyRevocationActionType(java.lang.String postKeyRevocationActionType) { + this.postKeyRevocationActionType = postKeyRevocationActionType; + return this; + } + + /** + * Specifies the scheduling options for the instances that are created from this machine image. + * @return value or {@code null} for none + */ + public Scheduling getScheduling() { + return scheduling; + } + + /** + * Specifies the scheduling options for the instances that are created from this machine image. + * @param scheduling scheduling or {@code null} for none + */ + public SourceInstanceProperties setScheduling(Scheduling scheduling) { + this.scheduling = scheduling; + return this; + } + + /** + * A list of service accounts with specified scopes. Access tokens for these service accounts are + * available to the instances that are created from this machine image. Use metadata queries to + * obtain the access tokens for these instances. + * @return value or {@code null} for none + */ + public java.util.List getServiceAccounts() { + return serviceAccounts; + } + + /** + * A list of service accounts with specified scopes. Access tokens for these service accounts are + * available to the instances that are created from this machine image. Use metadata queries to + * obtain the access tokens for these instances. + * @param serviceAccounts serviceAccounts or {@code null} for none + */ + public SourceInstanceProperties setServiceAccounts(java.util.List serviceAccounts) { + this.serviceAccounts = serviceAccounts; + return this; + } + + /** + * A list of tags to apply to the instances that are created from this machine image. The tags + * identify valid sources or targets for network firewalls. The setTags method can modify this + * list of tags. Each tag within the list must comply withRFC1035. + * @return value or {@code null} for none + */ + public Tags getTags() { + return tags; + } + + /** + * A list of tags to apply to the instances that are created from this machine image. The tags + * identify valid sources or targets for network firewalls. The setTags method can modify this + * list of tags. Each tag within the list must comply withRFC1035. + * @param tags tags or {@code null} for none + */ + public SourceInstanceProperties setTags(Tags tags) { + this.tags = tags; + return this; + } + + @Override + public SourceInstanceProperties set(String fieldName, Object value) { + return (SourceInstanceProperties) super.set(fieldName, value); + } + + @Override + public SourceInstanceProperties clone() { + return (SourceInstanceProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificate.java new file mode 100644 index 00000000000..a390980e80f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificate.java @@ -0,0 +1,429 @@ +/* + * 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 an SSL certificate resource. + * + * Google Compute Engine has two SSL certificate resources: + * + * * [Global](/compute/docs/reference/rest/v1/sslCertificates) * + * [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) + * + * The global SSL certificates (sslCertificates) are used by: - Global external Application + * Load Balancers - Classic Application Load Balancers - Proxy Network Load Balancers (with + * target SSL proxies) + * + * The regional SSL certificates (regionSslCertificates) are used by: - Regional external + * Application Load Balancers - Regional internal Application Load Balancers + * + * Optionally, certificate file contents that you upload can contain a set of up to five PEM-encoded + * certificates. The API call creates an object (sslCertificate) that holds this data. You can use + * SSL keys and certificates to secure connections to a load balancer. For more information, read + * Creating and using SSL certificates,SSL certificates quotas and limits, and Troubleshooting SSL + * certificates. + * + *

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 SslCertificate extends com.google.api.client.json.GenericJson { + + /** + * A value read into memory from a certificate file. The certificate file must be in PEM format. + * The certificate chain must be no greater than 5 certs long. The chain must include at least one + * intermediate cert. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificate; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] Expire time of the certificate. RFC3339 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expireTime; + + /** + * [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] Type of the resource. Alwayscompute#sslCertificate for SSL + * certificates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Configuration and status of a managed SSL certificate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SslCertificateManagedSslCertificate managed; + + /** + * Name of the resource. Provided by the client 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; + + /** + * A value read into memory from a write-only private key file. The private key file must be in + * PEM format. For security, only insert requests include this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateKey; + + /** + * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This + * field is not applicable to global SSL Certificate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * Configuration and status of a self-managed SSL certificate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SslCertificateSelfManagedSslCertificate selfManaged; + + /** + * Output only. [Output Only] Domains associated with the certificate via Subject Alternative + * Name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subjectAlternativeNames; + + /** + * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not + * specified, the certificate is self-managed and the fieldscertificate and private_key are used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * A value read into memory from a certificate file. The certificate file must be in PEM format. + * The certificate chain must be no greater than 5 certs long. The chain must include at least one + * intermediate cert. + * @return value or {@code null} for none + */ + public java.lang.String getCertificate() { + return certificate; + } + + /** + * A value read into memory from a certificate file. The certificate file must be in PEM format. + * The certificate chain must be no greater than 5 certs long. The chain must include at least one + * intermediate cert. + * @param certificate certificate or {@code null} for none + */ + public SslCertificate setCertificate(java.lang.String certificate) { + this.certificate = certificate; + return this; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public SslCertificate setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public SslCertificate setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] Expire time of the certificate. RFC3339 + * @return value or {@code null} for none + */ + public java.lang.String getExpireTime() { + return expireTime; + } + + /** + * Output only. [Output Only] Expire time of the certificate. RFC3339 + * @param expireTime expireTime or {@code null} for none + */ + public SslCertificate setExpireTime(java.lang.String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public SslCertificate setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL + * certificates. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL + * certificates. + * @param kind kind or {@code null} for none + */ + public SslCertificate setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Configuration and status of a managed SSL certificate. + * @return value or {@code null} for none + */ + public SslCertificateManagedSslCertificate getManaged() { + return managed; + } + + /** + * Configuration and status of a managed SSL certificate. + * @param managed managed or {@code null} for none + */ + public SslCertificate setManaged(SslCertificateManagedSslCertificate managed) { + this.managed = managed; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 SslCertificate setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * A value read into memory from a write-only private key file. The private key file must be in + * PEM format. For security, only insert requests include this field. + * @return value or {@code null} for none + */ + public java.lang.String getPrivateKey() { + return privateKey; + } + + /** + * A value read into memory from a write-only private key file. The private key file must be in + * PEM format. For security, only insert requests include this field. + * @param privateKey privateKey or {@code null} for none + */ + public SslCertificate setPrivateKey(java.lang.String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This + * field is not applicable to global SSL Certificate. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This + * field is not applicable to global SSL Certificate. + * @param region region or {@code null} for none + */ + public SslCertificate setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public SslCertificate setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Configuration and status of a self-managed SSL certificate. + * @return value or {@code null} for none + */ + public SslCertificateSelfManagedSslCertificate getSelfManaged() { + return selfManaged; + } + + /** + * Configuration and status of a self-managed SSL certificate. + * @param selfManaged selfManaged or {@code null} for none + */ + public SslCertificate setSelfManaged(SslCertificateSelfManagedSslCertificate selfManaged) { + this.selfManaged = selfManaged; + return this; + } + + /** + * Output only. [Output Only] Domains associated with the certificate via Subject Alternative + * Name. + * @return value or {@code null} for none + */ + public java.util.List getSubjectAlternativeNames() { + return subjectAlternativeNames; + } + + /** + * Output only. [Output Only] Domains associated with the certificate via Subject Alternative + * Name. + * @param subjectAlternativeNames subjectAlternativeNames or {@code null} for none + */ + public SslCertificate setSubjectAlternativeNames(java.util.List subjectAlternativeNames) { + this.subjectAlternativeNames = subjectAlternativeNames; + return this; + } + + /** + * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not + * specified, the certificate is self-managed and the fieldscertificate and private_key are used. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not + * specified, the certificate is self-managed and the fieldscertificate and private_key are used. + * @param type type or {@code null} for none + */ + public SslCertificate setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public SslCertificate set(String fieldName, Object value) { + return (SslCertificate) super.set(fieldName, value); + } + + @Override + public SslCertificate clone() { + return (SslCertificate) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java new file mode 100644 index 00000000000..ffa68baacf2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 SslCertificateAggregatedList. + * + *

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 SslCertificateAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 SslCertificatesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for + * lists of SSL Certificates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 SslCertificateAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SslCertificatesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of SslCertificatesScopedList resources. + * @param items items or {@code null} for none + */ + public SslCertificateAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for + * lists of SSL Certificates. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for + * lists of SSL Certificates. + * @param kind kind or {@code null} for none + */ + public SslCertificateAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SslCertificateAggregatedList 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 SslCertificateAggregatedList 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 SslCertificateAggregatedList 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 SslCertificateAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SslCertificateAggregatedList set(String fieldName, Object value) { + return (SslCertificateAggregatedList) super.set(fieldName, value); + } + + @Override + public SslCertificateAggregatedList clone() { + return (SslCertificateAggregatedList) 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 SslCertificateAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateList.java new file mode 100644 index 00000000000..f2624be99d6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of SslCertificate resources. + * + *

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 SslCertificateList extends com.google.api.client.json.GenericJson { + + /** + * [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 SslCertificate 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 SslCertificate 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(SslCertificate.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 SslCertificateList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SslCertificate resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of SslCertificate resources. + * @param items items or {@code null} for none + */ + public SslCertificateList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public SslCertificateList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SslCertificateList 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 SslCertificateList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 SslCertificateList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SslCertificateList set(String fieldName, Object value) { + return (SslCertificateList) super.set(fieldName, value); + } + + @Override + public SslCertificateList clone() { + return (SslCertificateList) 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 SslCertificateListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java new file mode 100644 index 00000000000..8897726891a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * Configuration and status of a managed SSL certificate. + * + *

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 SslCertificateManagedSslCertificate extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] Detailed statuses of the domains specified for managed certificate + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map domainStatus; + + /** + * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL + * certificate supports up to the [maximum number of domains per Google-managed SSL + * certificate](/load-balancing/docs/quotas#ssl_certificates). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List domains; + + /** + * Output only. [Output only] Status of the managed certificate resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output only] Detailed statuses of the domains specified for managed certificate + * resource. + * @return value or {@code null} for none + */ + public java.util.Map getDomainStatus() { + return domainStatus; + } + + /** + * Output only. [Output only] Detailed statuses of the domains specified for managed certificate + * resource. + * @param domainStatus domainStatus or {@code null} for none + */ + public SslCertificateManagedSslCertificate setDomainStatus(java.util.Map domainStatus) { + this.domainStatus = domainStatus; + return this; + } + + /** + * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL + * certificate supports up to the [maximum number of domains per Google-managed SSL + * certificate](/load-balancing/docs/quotas#ssl_certificates). + * @return value or {@code null} for none + */ + public java.util.List getDomains() { + return domains; + } + + /** + * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL + * certificate supports up to the [maximum number of domains per Google-managed SSL + * certificate](/load-balancing/docs/quotas#ssl_certificates). + * @param domains domains or {@code null} for none + */ + public SslCertificateManagedSslCertificate setDomains(java.util.List domains) { + this.domains = domains; + return this; + } + + /** + * Output only. [Output only] Status of the managed certificate resource. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output only] Status of the managed certificate resource. + * @param status status or {@code null} for none + */ + public SslCertificateManagedSslCertificate setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public SslCertificateManagedSslCertificate set(String fieldName, Object value) { + return (SslCertificateManagedSslCertificate) super.set(fieldName, value); + } + + @Override + public SslCertificateManagedSslCertificate clone() { + return (SslCertificateManagedSslCertificate) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateSelfManagedSslCertificate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateSelfManagedSslCertificate.java new file mode 100644 index 00000000000..38d8344c935 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificateSelfManagedSslCertificate.java @@ -0,0 +1,165 @@ +/* + * 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; + +/** + * Configuration and status of a self-managed SSL certificate. + * + *

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 SslCertificateSelfManagedSslCertificate extends com.google.api.client.json.GenericJson { + + /** + * A local certificate file. The certificate must be in PEM format. The certificate chain must be + * no greater than 5 certs long. The chain must include at least one intermediate cert. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificate; + + /** + * A value read into memory from a write-only private key file whose contents have been encrypted + * using the appropriate HPKE key distributed by Google. The underlying plaintext MUST be a PEM + * format private key. For security, only insert requests include this field. Exactly one of + * privateKey or encryptedPemPrivateKey MUST be specified when creating a self-managed + * certificate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String encryptedPemPrivateKey; + + /** + * A write-only private key in PEM format. Only insert requests will include this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateKey; + + /** + * A local certificate file. The certificate must be in PEM format. The certificate chain must be + * no greater than 5 certs long. The chain must include at least one intermediate cert. + * @return value or {@code null} for none + */ + public java.lang.String getCertificate() { + return certificate; + } + + /** + * A local certificate file. The certificate must be in PEM format. The certificate chain must be + * no greater than 5 certs long. The chain must include at least one intermediate cert. + * @param certificate certificate or {@code null} for none + */ + public SslCertificateSelfManagedSslCertificate setCertificate(java.lang.String certificate) { + this.certificate = certificate; + return this; + } + + /** + * A value read into memory from a write-only private key file whose contents have been encrypted + * using the appropriate HPKE key distributed by Google. The underlying plaintext MUST be a PEM + * format private key. For security, only insert requests include this field. Exactly one of + * privateKey or encryptedPemPrivateKey MUST be specified when creating a self-managed + * certificate. + * @see #decodeEncryptedPemPrivateKey() + * @return value or {@code null} for none + */ + public java.lang.String getEncryptedPemPrivateKey() { + return encryptedPemPrivateKey; + } + + /** + * A value read into memory from a write-only private key file whose contents have been encrypted + * using the appropriate HPKE key distributed by Google. The underlying plaintext MUST be a PEM + * format private key. For security, only insert requests include this field. Exactly one of + * privateKey or encryptedPemPrivateKey MUST be specified when creating a self-managed + * certificate. + * @see #getEncryptedPemPrivateKey() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEncryptedPemPrivateKey() { + return com.google.api.client.util.Base64.decodeBase64(encryptedPemPrivateKey); + } + + /** + * A value read into memory from a write-only private key file whose contents have been encrypted + * using the appropriate HPKE key distributed by Google. The underlying plaintext MUST be a PEM + * format private key. For security, only insert requests include this field. Exactly one of + * privateKey or encryptedPemPrivateKey MUST be specified when creating a self-managed + * certificate. + * @see #encodeEncryptedPemPrivateKey() + * @param encryptedPemPrivateKey encryptedPemPrivateKey or {@code null} for none + */ + public SslCertificateSelfManagedSslCertificate setEncryptedPemPrivateKey(java.lang.String encryptedPemPrivateKey) { + this.encryptedPemPrivateKey = encryptedPemPrivateKey; + return this; + } + + /** + * A value read into memory from a write-only private key file whose contents have been encrypted + * using the appropriate HPKE key distributed by Google. The underlying plaintext MUST be a PEM + * format private key. For security, only insert requests include this field. Exactly one of + * privateKey or encryptedPemPrivateKey MUST be specified when creating a self-managed + * certificate. + * @see #setEncryptedPemPrivateKey() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SslCertificateSelfManagedSslCertificate encodeEncryptedPemPrivateKey(byte[] encryptedPemPrivateKey) { + this.encryptedPemPrivateKey = com.google.api.client.util.Base64.encodeBase64URLSafeString(encryptedPemPrivateKey); + return this; + } + + /** + * A write-only private key in PEM format. Only insert requests will include this field. + * @return value or {@code null} for none + */ + public java.lang.String getPrivateKey() { + return privateKey; + } + + /** + * A write-only private key in PEM format. Only insert requests will include this field. + * @param privateKey privateKey or {@code null} for none + */ + public SslCertificateSelfManagedSslCertificate setPrivateKey(java.lang.String privateKey) { + this.privateKey = privateKey; + return this; + } + + @Override + public SslCertificateSelfManagedSslCertificate set(String fieldName, Object value) { + return (SslCertificateSelfManagedSslCertificate) super.set(fieldName, value); + } + + @Override + public SslCertificateSelfManagedSslCertificate clone() { + return (SslCertificateSelfManagedSslCertificate) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificatesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificatesScopedList.java new file mode 100644 index 00000000000..754b80bb19b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslCertificatesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 SslCertificatesScopedList. + * + *

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 SslCertificatesScopedList extends com.google.api.client.json.GenericJson { + + /** + * List of SslCertificates contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslCertificates; + + static { + // hack to force ProGuard to consider SslCertificate 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(SslCertificate.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * List of SslCertificates contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getSslCertificates() { + return sslCertificates; + } + + /** + * List of SslCertificates contained in this scope. + * @param sslCertificates sslCertificates or {@code null} for none + */ + public SslCertificatesScopedList setSslCertificates(java.util.List sslCertificates) { + this.sslCertificates = sslCertificates; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public SslCertificatesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SslCertificatesScopedList set(String fieldName, Object value) { + return (SslCertificatesScopedList) super.set(fieldName, value); + } + + @Override + public SslCertificatesScopedList clone() { + return (SslCertificatesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 SslCertificatesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesAggregatedList.java new file mode 100644 index 00000000000..685598cb8ca --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesAggregatedList.java @@ -0,0 +1,425 @@ +/* + * 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 SslPoliciesAggregatedList. + * + *

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 SslPoliciesAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 SslPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of + * SSL Policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public SslPoliciesAggregatedList 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 SslPoliciesAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SslPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of SslPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public SslPoliciesAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of + * SSL Policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of + * SSL Policies. + * @param kind kind or {@code null} for none + */ + public SslPoliciesAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SslPoliciesAggregatedList 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 SslPoliciesAggregatedList 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 SslPoliciesAggregatedList 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 SslPoliciesAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SslPoliciesAggregatedList set(String fieldName, Object value) { + return (SslPoliciesAggregatedList) super.set(fieldName, value); + } + + @Override + public SslPoliciesAggregatedList clone() { + return (SslPoliciesAggregatedList) 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 SslPoliciesAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java new file mode 100644 index 00000000000..0dcc808d0fa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -0,0 +1,380 @@ +/* + * 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 SslPoliciesList. + * + *

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 SslPoliciesList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [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; + + /** + * Output only. A list of SslPolicy resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of + * sslPolicies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public SslPoliciesList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. A list of SslPolicy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. A list of SslPolicy resources. + * @param items items or {@code null} for none + */ + public SslPoliciesList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of + * sslPolicies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of + * sslPolicies. + * @param kind kind or {@code null} for none + */ + public SslPoliciesList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SslPoliciesList 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 SslPoliciesList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 SslPoliciesList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SslPoliciesList set(String fieldName, Object value) { + return (SslPoliciesList) super.set(fieldName, value); + } + + @Override + public SslPoliciesList clone() { + return (SslPoliciesList) 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 SslPoliciesListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesListAvailableFeaturesResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesListAvailableFeaturesResponse.java new file mode 100644 index 00000000000..1b463d50826 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesListAvailableFeaturesResponse.java @@ -0,0 +1,63 @@ +/* + * 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 SslPoliciesListAvailableFeaturesResponse. + * + *

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 SslPoliciesListAvailableFeaturesResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List features; + + /** + * @return value or {@code null} for none + */ + public java.util.List getFeatures() { + return features; + } + + /** + * @param features features or {@code null} for none + */ + public SslPoliciesListAvailableFeaturesResponse setFeatures(java.util.List features) { + this.features = features; + return this; + } + + @Override + public SslPoliciesListAvailableFeaturesResponse set(String fieldName, Object value) { + return (SslPoliciesListAvailableFeaturesResponse) super.set(fieldName, value); + } + + @Override + public SslPoliciesListAvailableFeaturesResponse clone() { + return (SslPoliciesListAvailableFeaturesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesScopedList.java new file mode 100644 index 00000000000..b4ae5763e26 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPoliciesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 SslPoliciesScopedList. + * + *

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 SslPoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of SslPolicies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslPolicies; + + /** + * Informational warning which replaces the list of SSL policies when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of SslPolicies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getSslPolicies() { + return sslPolicies; + } + + /** + * A list of SslPolicies contained in this scope. + * @param sslPolicies sslPolicies or {@code null} for none + */ + public SslPoliciesScopedList setSslPolicies(java.util.List sslPolicies) { + this.sslPolicies = sslPolicies; + return this; + } + + /** + * Informational warning which replaces the list of SSL policies when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of SSL policies when the list is empty. + * @param warning warning or {@code null} for none + */ + public SslPoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SslPoliciesScopedList set(String fieldName, Object value) { + return (SslPoliciesScopedList) super.set(fieldName, value); + } + + @Override + public SslPoliciesScopedList clone() { + return (SslPoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of SSL policies when the list is empty. + */ + 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 SslPoliciesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPolicy.java new file mode 100644 index 00000000000..3ef520b5a95 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -0,0 +1,681 @@ +/* + * 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 an SSL Policy resource. + * + * Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by + * Application Load Balancers and proxy Network Load Balancers. For more information, read SSL + * policies overview. + * + *

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 SslPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * A list of features enabled when the selected profile is CUSTOM. The method returns the set of + * features that can be specified in this list. This field must be empty if the profile is + * notCUSTOM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List customFeatures; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] The list of features enabled in the SSL policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List enabledFeatures; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date + * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * 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] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The minimum version of SSL protocol that can be used by the clients to establish a connection + * with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to + * TLS_1_3, the profile field must be set to RESTRICTED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minTlsVersion; + + /** + * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. + * 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; + + /** + * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer negotiates + * X25519MLKEM768 key exchange when clients advertise support for it. When set to DEFAULT, or if + * no SSL Policy is attached to the target proxy, the load balancer disallows X25519MLKEM768 key + * exchange before October 2026, and allows it afterward. When set to ENABLED, the load balancer + * allows X25519MLKEM768 key exchange. When set toDEFERRED, the load balancer disallows + * X25519MLKEM768 key exchange until October 2027, and allows it afterward. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String postQuantumKeyExchange; + + /** + * Profile specifies the set of SSL features that can be used by the load balancer when + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or + * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the + * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profile; + + /** + * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field + * is not applicable to global SSL policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] If potential misconfigurations are detected for this SSL policy, + * this field will be populated with warning messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + static { + // hack to force ProGuard to consider Warnings 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(Warnings.class); + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * A list of features enabled when the selected profile is CUSTOM. The method returns the set of + * features that can be specified in this list. This field must be empty if the profile is + * notCUSTOM. + * @return value or {@code null} for none + */ + public java.util.List getCustomFeatures() { + return customFeatures; + } + + /** + * A list of features enabled when the selected profile is CUSTOM. The method returns the set of + * features that can be specified in this list. This field must be empty if the profile is + * notCUSTOM. + * @param customFeatures customFeatures or {@code null} for none + */ + public SslPolicy setCustomFeatures(java.util.List customFeatures) { + this.customFeatures = customFeatures; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public SslPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The list of features enabled in the SSL policy. + * @return value or {@code null} for none + */ + public java.util.List getEnabledFeatures() { + return enabledFeatures; + } + + /** + * Output only. [Output Only] The list of features enabled in the SSL policy. + * @param enabledFeatures enabledFeatures or {@code null} for none + */ + public SslPolicy setEnabledFeatures(java.util.List enabledFeatures) { + this.enabledFeatures = enabledFeatures; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date + * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date + * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date + * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public SslPolicy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date + * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SslPolicy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + 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 SslPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * @param kind kind or {@code null} for none + */ + public SslPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * The minimum version of SSL protocol that can be used by the clients to establish a connection + * with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to + * TLS_1_3, the profile field must be set to RESTRICTED. + * @return value or {@code null} for none + */ + public java.lang.String getMinTlsVersion() { + return minTlsVersion; + } + + /** + * The minimum version of SSL protocol that can be used by the clients to establish a connection + * with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to + * TLS_1_3, the profile field must be set to RESTRICTED. + * @param minTlsVersion minTlsVersion or {@code null} for none + */ + public SslPolicy setMinTlsVersion(java.lang.String minTlsVersion) { + this.minTlsVersion = minTlsVersion; + return this; + } + + /** + * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. + * 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. The name must be 1-63 characters long, and comply with RFC1035. + * 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 SslPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer negotiates + * X25519MLKEM768 key exchange when clients advertise support for it. When set to DEFAULT, or if + * no SSL Policy is attached to the target proxy, the load balancer disallows X25519MLKEM768 key + * exchange before October 2026, and allows it afterward. When set to ENABLED, the load balancer + * allows X25519MLKEM768 key exchange. When set toDEFERRED, the load balancer disallows + * X25519MLKEM768 key exchange until October 2027, and allows it afterward. + * @return value or {@code null} for none + */ + public java.lang.String getPostQuantumKeyExchange() { + return postQuantumKeyExchange; + } + + /** + * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer negotiates + * X25519MLKEM768 key exchange when clients advertise support for it. When set to DEFAULT, or if + * no SSL Policy is attached to the target proxy, the load balancer disallows X25519MLKEM768 key + * exchange before October 2026, and allows it afterward. When set to ENABLED, the load balancer + * allows X25519MLKEM768 key exchange. When set toDEFERRED, the load balancer disallows + * X25519MLKEM768 key exchange until October 2027, and allows it afterward. + * @param postQuantumKeyExchange postQuantumKeyExchange or {@code null} for none + */ + public SslPolicy setPostQuantumKeyExchange(java.lang.String postQuantumKeyExchange) { + this.postQuantumKeyExchange = postQuantumKeyExchange; + return this; + } + + /** + * Profile specifies the set of SSL features that can be used by the load balancer when + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or + * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the + * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. + * @return value or {@code null} for none + */ + public java.lang.String getProfile() { + return profile; + } + + /** + * Profile specifies the set of SSL features that can be used by the load balancer when + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or + * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the + * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. + * @param profile profile or {@code null} for none + */ + public SslPolicy setProfile(java.lang.String profile) { + this.profile = profile; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field + * is not applicable to global SSL policies. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field + * is not applicable to global SSL policies. + * @param region region or {@code null} for none + */ + public SslPolicy setRegion(java.lang.String region) { + this.region = region; + 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 SslPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, + * this field will be populated with warning messages. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, + * this field will be populated with warning messages. + * @param warnings warnings or {@code null} for none + */ + public SslPolicy setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + @Override + public SslPolicy set(String fieldName, Object value) { + return (SslPolicy) super.set(fieldName, value); + } + + @Override + public SslPolicy clone() { + return (SslPolicy) super.clone(); + } + + /** + * Model definition for SslPolicyWarnings. + */ + public static final class Warnings 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 Warnings 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 Warnings 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 Warnings setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warnings set(String fieldName, Object value) { + return (Warnings) super.set(fieldName, value); + } + + @Override + public Warnings clone() { + return (Warnings) super.clone(); + } + + /** + * Model definition for SslPolicyWarningsData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SslPolicyReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPolicyReference.java new file mode 100644 index 00000000000..bb1e5f85c2d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SslPolicyReference.java @@ -0,0 +1,63 @@ +/* + * 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 SslPolicyReference. + * + *

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 SslPolicyReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * @param sslPolicy sslPolicy or {@code null} for none + */ + public SslPolicyReference setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + return this; + } + + @Override + public SslPolicyReference set(String fieldName, Object value) { + return (SslPolicyReference) super.set(fieldName, value); + } + + @Override + public SslPolicyReference clone() { + return (SslPolicyReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicy.java new file mode 100644 index 00000000000..9445e224da5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicy.java @@ -0,0 +1,63 @@ +/* + * 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 StatefulPolicy. + * + *

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 StatefulPolicy extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StatefulPolicyPreservedState preservedState; + + /** + * @return value or {@code null} for none + */ + public StatefulPolicyPreservedState getPreservedState() { + return preservedState; + } + + /** + * @param preservedState preservedState or {@code null} for none + */ + public StatefulPolicy setPreservedState(StatefulPolicyPreservedState preservedState) { + this.preservedState = preservedState; + return this; + } + + @Override + public StatefulPolicy set(String fieldName, Object value) { + return (StatefulPolicy) super.set(fieldName, value); + } + + @Override + public StatefulPolicy clone() { + return (StatefulPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedState.java new file mode 100644 index 00000000000..bfd9757bdeb --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedState.java @@ -0,0 +1,123 @@ +/* + * 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; + +/** + * Configuration of preserved resources. + * + *

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 StatefulPolicyPreservedState extends com.google.api.client.json.GenericJson { + + /** + * Disks created on the instances that will be preserved on instance delete, update, etc. This map + * is keyed with the device names of the disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map disks; + + /** + * External network IPs assigned to the instances that will be preserved on instance delete, + * update, etc. This map is keyed with the network interface name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map externalIPs; + + /** + * Internal network IPs assigned to the instances that will be preserved on instance delete, + * update, etc. This map is keyed with the network interface name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map internalIPs; + + /** + * Disks created on the instances that will be preserved on instance delete, update, etc. This map + * is keyed with the device names of the disks. + * @return value or {@code null} for none + */ + public java.util.Map getDisks() { + return disks; + } + + /** + * Disks created on the instances that will be preserved on instance delete, update, etc. This map + * is keyed with the device names of the disks. + * @param disks disks or {@code null} for none + */ + public StatefulPolicyPreservedState setDisks(java.util.Map disks) { + this.disks = disks; + return this; + } + + /** + * External network IPs assigned to the instances that will be preserved on instance delete, + * update, etc. This map is keyed with the network interface name. + * @return value or {@code null} for none + */ + public java.util.Map getExternalIPs() { + return externalIPs; + } + + /** + * External network IPs assigned to the instances that will be preserved on instance delete, + * update, etc. This map is keyed with the network interface name. + * @param externalIPs externalIPs or {@code null} for none + */ + public StatefulPolicyPreservedState setExternalIPs(java.util.Map externalIPs) { + this.externalIPs = externalIPs; + return this; + } + + /** + * Internal network IPs assigned to the instances that will be preserved on instance delete, + * update, etc. This map is keyed with the network interface name. + * @return value or {@code null} for none + */ + public java.util.Map getInternalIPs() { + return internalIPs; + } + + /** + * Internal network IPs assigned to the instances that will be preserved on instance delete, + * update, etc. This map is keyed with the network interface name. + * @param internalIPs internalIPs or {@code null} for none + */ + public StatefulPolicyPreservedState setInternalIPs(java.util.Map internalIPs) { + this.internalIPs = internalIPs; + return this; + } + + @Override + public StatefulPolicyPreservedState set(String fieldName, Object value) { + return (StatefulPolicyPreservedState) super.set(fieldName, value); + } + + @Override + public StatefulPolicyPreservedState clone() { + return (StatefulPolicyPreservedState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateDiskDevice.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateDiskDevice.java new file mode 100644 index 00000000000..8d5afe462ec --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateDiskDevice.java @@ -0,0 +1,75 @@ +/* + * 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 StatefulPolicyPreservedStateDiskDevice. + * + *

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 StatefulPolicyPreservedStateDiskDevice extends com.google.api.client.json.GenericJson { + + /** + * These stateful disks will never be deleted during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the disk should be deleted after it is no longer + * used by the group, e.g. when the given instance or the whole group is deleted. Note: disks + * attached inREAD_ONLY mode cannot be auto-deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoDelete; + + /** + * These stateful disks will never be deleted during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the disk should be deleted after it is no longer + * used by the group, e.g. when the given instance or the whole group is deleted. Note: disks + * attached inREAD_ONLY mode cannot be auto-deleted. + * @return value or {@code null} for none + */ + public java.lang.String getAutoDelete() { + return autoDelete; + } + + /** + * These stateful disks will never be deleted during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the disk should be deleted after it is no longer + * used by the group, e.g. when the given instance or the whole group is deleted. Note: disks + * attached inREAD_ONLY mode cannot be auto-deleted. + * @param autoDelete autoDelete or {@code null} for none + */ + public StatefulPolicyPreservedStateDiskDevice setAutoDelete(java.lang.String autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + @Override + public StatefulPolicyPreservedStateDiskDevice set(String fieldName, Object value) { + return (StatefulPolicyPreservedStateDiskDevice) super.set(fieldName, value); + } + + @Override + public StatefulPolicyPreservedStateDiskDevice clone() { + return (StatefulPolicyPreservedStateDiskDevice) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateNetworkIp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateNetworkIp.java new file mode 100644 index 00000000000..6fccc53f220 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StatefulPolicyPreservedStateNetworkIp.java @@ -0,0 +1,72 @@ +/* + * 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 StatefulPolicyPreservedStateNetworkIp. + * + *

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 StatefulPolicyPreservedStateNetworkIp extends com.google.api.client.json.GenericJson { + + /** + * These stateful IPs will never be released during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the IP reservation should be deleted after it is + * no longer used by the group, e.g. when the given instance or the whole group is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String autoDelete; + + /** + * These stateful IPs will never be released during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the IP reservation should be deleted after it is + * no longer used by the group, e.g. when the given instance or the whole group is deleted. + * @return value or {@code null} for none + */ + public java.lang.String getAutoDelete() { + return autoDelete; + } + + /** + * These stateful IPs will never be released during autohealing, update or VM instance recreate + * operations. This flag is used to configure if the IP reservation should be deleted after it is + * no longer used by the group, e.g. when the given instance or the whole group is deleted. + * @param autoDelete autoDelete or {@code null} for none + */ + public StatefulPolicyPreservedStateNetworkIp setAutoDelete(java.lang.String autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + @Override + public StatefulPolicyPreservedStateNetworkIp set(String fieldName, Object value) { + return (StatefulPolicyPreservedStateNetworkIp) super.set(fieldName, value); + } + + @Override + public StatefulPolicyPreservedStateNetworkIp clone() { + return (StatefulPolicyPreservedStateNetworkIp) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Status.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Status.java new file mode 100644 index 00000000000..c4576f46ab0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Status.java @@ -0,0 +1,129 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. + * + * You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePool.java new file mode 100644 index 00000000000..96b445a343a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -0,0 +1,667 @@ +/* + * 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 zonal storage pool 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 StoragePool extends com.google.api.client.json.GenericJson { + + /** + * Provisioning type of the byte capacity of the pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String capacityProvisioningType; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Provisioned capacities for each SKU for this Exapool in GiB + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb; + + /** + * 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] Type of the resource. Always compute#storagePool for storage pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a storage pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels to apply to this storage pool. These can be later modified by the setLabels method. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolParams params; + + /** + * Provisioning type of the performance-related parameters of the pool, such as throughput and + * IOPS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String performanceProvisioningType; + + /** + * Size of the storage pool in GiB. For more information about the size limits, see + * https://cloud.google.com/compute/docs/disks/storage-pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolProvisionedCapacityGb; + + /** + * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- + * balanced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolProvisionedIops; + + /** + * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is + * hyperdisk-balanced or hyperdisk-throughput. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolProvisionedThroughput; + + /** + * Output only. [Output Only] Status information for the storage pool resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolResourceStatus resourceStatus; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Share settings for the storage pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolShareSettings shareSettings; + + /** + * Output only. [Output Only] The status of storage pool creation. - CREATING: + * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. + * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] Status information for the storage pool resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolResourceStatus status; + + /** + * Type of the storage pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String storagePoolType; + + /** + * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Provisioning type of the byte capacity of the pool. + * @return value or {@code null} for none + */ + public java.lang.String getCapacityProvisioningType() { + return capacityProvisioningType; + } + + /** + * Provisioning type of the byte capacity of the pool. + * @param capacityProvisioningType capacityProvisioningType or {@code null} for none + */ + public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisioningType) { + this.capacityProvisioningType = capacityProvisioningType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public StoragePool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Provisioned capacities for each SKU for this Exapool in GiB + * @return value or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { + return exapoolProvisionedCapacityGb; + } + + /** + * Provisioned capacities for each SKU for this Exapool in GiB + * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none + */ + public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { + this.exapoolProvisionedCapacityGb = exapoolProvisionedCapacityGb; + 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 StoragePool setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * @param kind kind or {@code null} for none + */ + public StoragePool setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a storage pool. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a storage pool. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a storage pool. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public StoragePool setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a storage pool. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public StoragePool encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels to apply to this storage pool. These can be later modified by the setLabels method. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels to apply to this storage pool. These can be later modified by the setLabels method. + * @param labels labels or {@code null} for none + */ + public StoragePool setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 StoragePool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @return value or {@code null} for none + */ + public StoragePoolParams getParams() { + return params; + } + + /** + * Input only. Additional params passed with the request, but not persisted as part of resource + * payload. + * @param params params or {@code null} for none + */ + public StoragePool setParams(StoragePoolParams params) { + this.params = params; + return this; + } + + /** + * Provisioning type of the performance-related parameters of the pool, such as throughput and + * IOPS. + * @return value or {@code null} for none + */ + public java.lang.String getPerformanceProvisioningType() { + return performanceProvisioningType; + } + + /** + * Provisioning type of the performance-related parameters of the pool, such as throughput and + * IOPS. + * @param performanceProvisioningType performanceProvisioningType or {@code null} for none + */ + public StoragePool setPerformanceProvisioningType(java.lang.String performanceProvisioningType) { + this.performanceProvisioningType = performanceProvisioningType; + return this; + } + + /** + * Size of the storage pool in GiB. For more information about the size limits, see + * https://cloud.google.com/compute/docs/disks/storage-pools. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolProvisionedCapacityGb() { + return poolProvisionedCapacityGb; + } + + /** + * Size of the storage pool in GiB. For more information about the size limits, see + * https://cloud.google.com/compute/docs/disks/storage-pools. + * @param poolProvisionedCapacityGb poolProvisionedCapacityGb or {@code null} for none + */ + public StoragePool setPoolProvisionedCapacityGb(java.lang.Long poolProvisionedCapacityGb) { + this.poolProvisionedCapacityGb = poolProvisionedCapacityGb; + return this; + } + + /** + * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- + * balanced. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolProvisionedIops() { + return poolProvisionedIops; + } + + /** + * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- + * balanced. + * @param poolProvisionedIops poolProvisionedIops or {@code null} for none + */ + public StoragePool setPoolProvisionedIops(java.lang.Long poolProvisionedIops) { + this.poolProvisionedIops = poolProvisionedIops; + return this; + } + + /** + * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is + * hyperdisk-balanced or hyperdisk-throughput. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolProvisionedThroughput() { + return poolProvisionedThroughput; + } + + /** + * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is + * hyperdisk-balanced or hyperdisk-throughput. + * @param poolProvisionedThroughput poolProvisionedThroughput or {@code null} for none + */ + public StoragePool setPoolProvisionedThroughput(java.lang.Long poolProvisionedThroughput) { + this.poolProvisionedThroughput = poolProvisionedThroughput; + return this; + } + + /** + * Output only. [Output Only] Status information for the storage pool resource. + * @return value or {@code null} for none + */ + public StoragePoolResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * Output only. [Output Only] Status information for the storage pool resource. + * @param resourceStatus resourceStatus or {@code null} for none + */ + public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public StoragePool setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Share settings for the storage pool. + * @return value or {@code null} for none + */ + public StoragePoolShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Share settings for the storage pool. + * @param shareSettings shareSettings or {@code null} for none + */ + public StoragePool setShareSettings(StoragePoolShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + + /** + * Output only. [Output Only] The status of storage pool creation. - CREATING: + * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. + * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The status of storage pool creation. - CREATING: + * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. + * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. + * @param state state or {@code null} for none + */ + public StoragePool setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] Status information for the storage pool resource. + * @return value or {@code null} for none + */ + public StoragePoolResourceStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] Status information for the storage pool resource. + * @param status status or {@code null} for none + */ + public StoragePool setStatus(StoragePoolResourceStatus status) { + this.status = status; + return this; + } + + /** + * Type of the storage pool. + * @return value or {@code null} for none + */ + public java.lang.String getStoragePoolType() { + return storagePoolType; + } + + /** + * Type of the storage pool. + * @param storagePoolType storagePoolType or {@code null} for none + */ + public StoragePool setStoragePoolType(java.lang.String storagePoolType) { + this.storagePoolType = storagePoolType; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public StoragePool setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public StoragePool set(String fieldName, Object value) { + return (StoragePool) super.set(fieldName, value); + } + + @Override + public StoragePool clone() { + return (StoragePool) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java new file mode 100644 index 00000000000..d6b419ef60e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -0,0 +1,425 @@ +/* + * 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 StoragePoolAggregatedList. + * + *

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 StoragePoolAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * 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 StoragePoolsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for + * aggregated lists of storage pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public StoragePoolAggregatedList 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 StoragePoolAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of StoragePoolsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of StoragePoolsScopedList resources. + * @param items items or {@code null} for none + */ + public StoragePoolAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for + * aggregated lists of storage pools. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for + * aggregated lists of storage pools. + * @param kind kind or {@code null} for none + */ + public StoragePoolAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public StoragePoolAggregatedList 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 StoragePoolAggregatedList 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 StoragePoolAggregatedList 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 StoragePoolAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolAggregatedList set(String fieldName, Object value) { + return (StoragePoolAggregatedList) super.set(fieldName, value); + } + + @Override + public StoragePoolAggregatedList clone() { + return (StoragePoolAggregatedList) 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 StoragePoolAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java new file mode 100644 index 00000000000..f4aedbc4874 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -0,0 +1,306 @@ +/* + * 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 StoragePoolDisk. + * + *

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 StoragePoolDisk extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Instances this disk is attached to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List attachedInstances; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] The URL of the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disk; + + /** + * Output only. [Output Only] The name of the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The number of IOPS provisioned for the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedIops; + + /** + * Output only. [Output Only] The throughput provisioned for the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedThroughput; + + /** + * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourcePolicies; + + /** + * Output only. [Output Only] The disk size, in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sizeGb; + + /** + * Output only. [Output Only] The disk status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. [Output Only] The disk type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. [Output Only] Amount of disk space used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long usedBytes; + + /** + * Output only. [Output Only] Instances this disk is attached to. + * @return value or {@code null} for none + */ + public java.util.List getAttachedInstances() { + return attachedInstances; + } + + /** + * Output only. [Output Only] Instances this disk is attached to. + * @param attachedInstances attachedInstances or {@code null} for none + */ + public StoragePoolDisk setAttachedInstances(java.util.List attachedInstances) { + this.attachedInstances = attachedInstances; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] The URL of the disk. + * @return value or {@code null} for none + */ + public java.lang.String getDisk() { + return disk; + } + + /** + * Output only. [Output Only] The URL of the disk. + * @param disk disk or {@code null} for none + */ + public StoragePoolDisk setDisk(java.lang.String disk) { + this.disk = disk; + return this; + } + + /** + * Output only. [Output Only] The name of the disk. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] The name of the disk. + * @param name name or {@code null} for none + */ + public StoragePoolDisk setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The number of IOPS provisioned for the disk. + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedIops() { + return provisionedIops; + } + + /** + * Output only. [Output Only] The number of IOPS provisioned for the disk. + * @param provisionedIops provisionedIops or {@code null} for none + */ + public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { + this.provisionedIops = provisionedIops; + return this; + } + + /** + * Output only. [Output Only] The throughput provisioned for the disk. + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedThroughput() { + return provisionedThroughput; + } + + /** + * Output only. [Output Only] The throughput provisioned for the disk. + * @param provisionedThroughput provisionedThroughput or {@code null} for none + */ + public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroughput) { + this.provisionedThroughput = provisionedThroughput; + return this; + } + + /** + * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * @return value or {@code null} for none + */ + public java.util.List getResourcePolicies() { + return resourcePolicies; + } + + /** + * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * @param resourcePolicies resourcePolicies or {@code null} for none + */ + public StoragePoolDisk setResourcePolicies(java.util.List resourcePolicies) { + this.resourcePolicies = resourcePolicies; + return this; + } + + /** + * Output only. [Output Only] The disk size, in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getSizeGb() { + return sizeGb; + } + + /** + * Output only. [Output Only] The disk size, in GB. + * @param sizeGb sizeGb or {@code null} for none + */ + public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { + this.sizeGb = sizeGb; + return this; + } + + /** + * Output only. [Output Only] The disk status. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. [Output Only] The disk status. + * @param status status or {@code null} for none + */ + public StoragePoolDisk setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] The disk type. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. [Output Only] The disk type. + * @param type type or {@code null} for none + */ + public StoragePoolDisk setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. [Output Only] Amount of disk space used. + * @return value or {@code null} for none + */ + public java.lang.Long getUsedBytes() { + return usedBytes; + } + + /** + * Output only. [Output Only] Amount of disk space used. + * @param usedBytes usedBytes or {@code null} for none + */ + public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { + this.usedBytes = usedBytes; + return this; + } + + @Override + public StoragePoolDisk set(String fieldName, Object value) { + return (StoragePoolDisk) super.set(fieldName, value); + } + + @Override + public StoragePoolDisk clone() { + return (StoragePoolDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java new file mode 100644 index 00000000000..cea8f8ace37 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java @@ -0,0 +1,114 @@ +/* + * 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; + +/** + * Exapool provisioned capacities for each SKU type + * + *

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 StoragePoolExapoolProvisionedCapacityGb extends com.google.api.client.json.GenericJson { + + /** + * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long capacityOptimized; + + /** + * Size, in GiB, of provisioned read-optimized capacity for this Exapool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long readOptimized; + + /** + * Size, in GiB, of provisioned write-optimized capacity for this Exapool + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long writeOptimized; + + /** + * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + * @return value or {@code null} for none + */ + public java.lang.Long getCapacityOptimized() { + return capacityOptimized; + } + + /** + * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + * @param capacityOptimized capacityOptimized or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb setCapacityOptimized(java.lang.Long capacityOptimized) { + this.capacityOptimized = capacityOptimized; + return this; + } + + /** + * Size, in GiB, of provisioned read-optimized capacity for this Exapool + * @return value or {@code null} for none + */ + public java.lang.Long getReadOptimized() { + return readOptimized; + } + + /** + * Size, in GiB, of provisioned read-optimized capacity for this Exapool + * @param readOptimized readOptimized or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb setReadOptimized(java.lang.Long readOptimized) { + this.readOptimized = readOptimized; + return this; + } + + /** + * Size, in GiB, of provisioned write-optimized capacity for this Exapool + * @return value or {@code null} for none + */ + public java.lang.Long getWriteOptimized() { + return writeOptimized; + } + + /** + * Size, in GiB, of provisioned write-optimized capacity for this Exapool + * @param writeOptimized writeOptimized or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb setWriteOptimized(java.lang.Long writeOptimized) { + this.writeOptimized = writeOptimized; + return this; + } + + @Override + public StoragePoolExapoolProvisionedCapacityGb set(String fieldName, Object value) { + return (StoragePoolExapoolProvisionedCapacityGb) super.set(fieldName, value); + } + + @Override + public StoragePoolExapoolProvisionedCapacityGb clone() { + return (StoragePoolExapoolProvisionedCapacityGb) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolList.java new file mode 100644 index 00000000000..fe0f5c5b641 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -0,0 +1,434 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of StoragePool resources. + * + *

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 StoragePoolList extends com.google.api.client.json.GenericJson { + + /** + * 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 StoragePool 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 StoragePool 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(StoragePool.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of + * storagePools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public StoragePoolList 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 StoragePoolList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of StoragePool resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of StoragePool resources. + * @param items items or {@code null} for none + */ + public StoragePoolList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of + * storagePools. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of + * storagePools. + * @param kind kind or {@code null} for none + */ + public StoragePoolList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public StoragePoolList 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 StoragePoolList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public StoragePoolList 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 StoragePoolList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolList set(String fieldName, Object value) { + return (StoragePoolList) super.set(fieldName, value); + } + + @Override + public StoragePoolList clone() { + return (StoragePoolList) 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 StoragePoolListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java new file mode 100644 index 00000000000..7207a63dc48 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -0,0 +1,434 @@ +/* + * 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 StoragePoolListDisks. + * + *

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 StoragePoolListDisks extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. [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 StoragePoolDisk 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 StoragePoolDisk 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(StoragePoolDisk.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of + * disks in a storagePool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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. end_interface: + * MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * Output only. [Output Only] Informational warning message. + * 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 getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public StoragePoolListDisks setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public StoragePoolListDisks setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of StoragePoolDisk resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of StoragePoolDisk resources. + * @param items items or {@code null} for none + */ + public StoragePoolListDisks setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of + * disks in a storagePool. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of + * disks in a storagePool. + * @param kind kind or {@code null} for none + */ + public StoragePoolListDisks setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public StoragePoolListDisks 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 StoragePoolListDisks setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public StoragePoolListDisks setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public StoragePoolListDisks setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolListDisks set(String fieldName, Object value) { + return (StoragePoolListDisks) super.set(fieldName, value); + } + + @Override + public StoragePoolListDisks clone() { + return (StoragePoolListDisks) super.clone(); + } + + /** + * Output only. [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 StoragePoolListDisksWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java new file mode 100644 index 00000000000..bc472791753 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * Additional storage pool params. + * + *

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 StoragePoolParams extends com.google.api.client.json.GenericJson { + + /** + * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the + * same definition as resource manager tags. Keys and values can be either in numeric format, such + * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as + * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored + * (both PUT & PATCH) when empty. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public StoragePoolParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public StoragePoolParams set(String fieldName, Object value) { + return (StoragePoolParams) super.set(fieldName, value); + } + + @Override + public StoragePoolParams clone() { + return (StoragePoolParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java new file mode 100644 index 00000000000..f0abcce09ab --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -0,0 +1,396 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] Contains output only fields. + * + *

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 StoragePoolResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Number of disks used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long diskCount; + + /** + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxReadIops; + + /** + * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxReadThroughput; + + /** + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxWriteIops; + + /** + * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long exapoolMaxWriteThroughput; + + /** + * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastResizeTimestamp; + + /** + * [Output Only] Maximum allowed aggregate disk size in GiB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxTotalProvisionedDiskCapacityGb; + + /** + * [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will + * reflect the total number of bytes written to the disks in the pool, in contrast to the capacity + * of those disks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolUsedCapacityBytes; + + /** + * [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per + * disk that is not counted towards pool's IOPS capacity. For more information, see + * https://cloud.google.com/compute/docs/disks/storage-pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolUsedIops; + + /** + * [Output Only] Sum of all the disks' provisioned throughput in MiB/s. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolUsedThroughput; + + /** + * [Output Only] Amount of data written into the pool, before it is compacted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long poolUserWrittenBytes; + + /** + * [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A + * disk's provisioned capacity is the same as its total capacity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalProvisionedDiskCapacityGb; + + /** + * [Output Only] Sum of all the disks' provisioned IOPS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalProvisionedDiskIops; + + /** + * [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is + * allowed per disk that is not counted towards pool's throughput capacity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalProvisionedDiskThroughput; + + /** + * [Output Only] Number of disks used. + * @return value or {@code null} for none + */ + public java.lang.Long getDiskCount() { + return diskCount; + } + + /** + * [Output Only] Number of disks used. + * @param diskCount diskCount or {@code null} for none + */ + public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { + this.diskCount = diskCount; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxReadIops() { + return exapoolMaxReadIops; + } + + /** + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * @param exapoolMaxReadIops exapoolMaxReadIops or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxReadIops(java.lang.Long exapoolMaxReadIops) { + this.exapoolMaxReadIops = exapoolMaxReadIops; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxReadThroughput() { + return exapoolMaxReadThroughput; + } + + /** + * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * @param exapoolMaxReadThroughput exapoolMaxReadThroughput or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxReadThroughput(java.lang.Long exapoolMaxReadThroughput) { + this.exapoolMaxReadThroughput = exapoolMaxReadThroughput; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxWriteIops() { + return exapoolMaxWriteIops; + } + + /** + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * @param exapoolMaxWriteIops exapoolMaxWriteIops or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxWriteIops(java.lang.Long exapoolMaxWriteIops) { + this.exapoolMaxWriteIops = exapoolMaxWriteIops; + return this; + } + + /** + * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * @return value or {@code null} for none + */ + public java.lang.Long getExapoolMaxWriteThroughput() { + return exapoolMaxWriteThroughput; + } + + /** + * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * @param exapoolMaxWriteThroughput exapoolMaxWriteThroughput or {@code null} for none + */ + public StoragePoolResourceStatus setExapoolMaxWriteThroughput(java.lang.Long exapoolMaxWriteThroughput) { + this.exapoolMaxWriteThroughput = exapoolMaxWriteThroughput; + return this; + } + + /** + * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getLastResizeTimestamp() { + return lastResizeTimestamp; + } + + /** + * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * @param lastResizeTimestamp lastResizeTimestamp or {@code null} for none + */ + public StoragePoolResourceStatus setLastResizeTimestamp(java.lang.String lastResizeTimestamp) { + this.lastResizeTimestamp = lastResizeTimestamp; + return this; + } + + /** + * [Output Only] Maximum allowed aggregate disk size in GiB. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxTotalProvisionedDiskCapacityGb() { + return maxTotalProvisionedDiskCapacityGb; + } + + /** + * [Output Only] Maximum allowed aggregate disk size in GiB. + * @param maxTotalProvisionedDiskCapacityGb maxTotalProvisionedDiskCapacityGb or {@code null} for none + */ + public StoragePoolResourceStatus setMaxTotalProvisionedDiskCapacityGb(java.lang.Long maxTotalProvisionedDiskCapacityGb) { + this.maxTotalProvisionedDiskCapacityGb = maxTotalProvisionedDiskCapacityGb; + return this; + } + + /** + * [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will + * reflect the total number of bytes written to the disks in the pool, in contrast to the capacity + * of those disks. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolUsedCapacityBytes() { + return poolUsedCapacityBytes; + } + + /** + * [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will + * reflect the total number of bytes written to the disks in the pool, in contrast to the capacity + * of those disks. + * @param poolUsedCapacityBytes poolUsedCapacityBytes or {@code null} for none + */ + public StoragePoolResourceStatus setPoolUsedCapacityBytes(java.lang.Long poolUsedCapacityBytes) { + this.poolUsedCapacityBytes = poolUsedCapacityBytes; + return this; + } + + /** + * [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per + * disk that is not counted towards pool's IOPS capacity. For more information, see + * https://cloud.google.com/compute/docs/disks/storage-pools. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolUsedIops() { + return poolUsedIops; + } + + /** + * [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per + * disk that is not counted towards pool's IOPS capacity. For more information, see + * https://cloud.google.com/compute/docs/disks/storage-pools. + * @param poolUsedIops poolUsedIops or {@code null} for none + */ + public StoragePoolResourceStatus setPoolUsedIops(java.lang.Long poolUsedIops) { + this.poolUsedIops = poolUsedIops; + return this; + } + + /** + * [Output Only] Sum of all the disks' provisioned throughput in MiB/s. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolUsedThroughput() { + return poolUsedThroughput; + } + + /** + * [Output Only] Sum of all the disks' provisioned throughput in MiB/s. + * @param poolUsedThroughput poolUsedThroughput or {@code null} for none + */ + public StoragePoolResourceStatus setPoolUsedThroughput(java.lang.Long poolUsedThroughput) { + this.poolUsedThroughput = poolUsedThroughput; + return this; + } + + /** + * [Output Only] Amount of data written into the pool, before it is compacted. + * @return value or {@code null} for none + */ + public java.lang.Long getPoolUserWrittenBytes() { + return poolUserWrittenBytes; + } + + /** + * [Output Only] Amount of data written into the pool, before it is compacted. + * @param poolUserWrittenBytes poolUserWrittenBytes or {@code null} for none + */ + public StoragePoolResourceStatus setPoolUserWrittenBytes(java.lang.Long poolUserWrittenBytes) { + this.poolUserWrittenBytes = poolUserWrittenBytes; + return this; + } + + /** + * [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A + * disk's provisioned capacity is the same as its total capacity. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalProvisionedDiskCapacityGb() { + return totalProvisionedDiskCapacityGb; + } + + /** + * [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A + * disk's provisioned capacity is the same as its total capacity. + * @param totalProvisionedDiskCapacityGb totalProvisionedDiskCapacityGb or {@code null} for none + */ + public StoragePoolResourceStatus setTotalProvisionedDiskCapacityGb(java.lang.Long totalProvisionedDiskCapacityGb) { + this.totalProvisionedDiskCapacityGb = totalProvisionedDiskCapacityGb; + return this; + } + + /** + * [Output Only] Sum of all the disks' provisioned IOPS. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalProvisionedDiskIops() { + return totalProvisionedDiskIops; + } + + /** + * [Output Only] Sum of all the disks' provisioned IOPS. + * @param totalProvisionedDiskIops totalProvisionedDiskIops or {@code null} for none + */ + public StoragePoolResourceStatus setTotalProvisionedDiskIops(java.lang.Long totalProvisionedDiskIops) { + this.totalProvisionedDiskIops = totalProvisionedDiskIops; + return this; + } + + /** + * [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is + * allowed per disk that is not counted towards pool's throughput capacity. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalProvisionedDiskThroughput() { + return totalProvisionedDiskThroughput; + } + + /** + * [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is + * allowed per disk that is not counted towards pool's throughput capacity. + * @param totalProvisionedDiskThroughput totalProvisionedDiskThroughput or {@code null} for none + */ + public StoragePoolResourceStatus setTotalProvisionedDiskThroughput(java.lang.Long totalProvisionedDiskThroughput) { + this.totalProvisionedDiskThroughput = totalProvisionedDiskThroughput; + return this; + } + + @Override + public StoragePoolResourceStatus set(String fieldName, Object value) { + return (StoragePoolResourceStatus) super.set(fieldName, value); + } + + @Override + public StoragePoolResourceStatus clone() { + return (StoragePoolResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.java new file mode 100644 index 00000000000..e2a24bc6940 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.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; + +/** + * Share settings for the storage pool. + * + *

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 StoragePoolShareSettings extends com.google.api.client.json.GenericJson { + + /** + * A map of project id and project config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map projectMap; + + /** + * A map of project id and project config. + * @return value or {@code null} for none + */ + public java.util.Map getProjectMap() { + return projectMap; + } + + /** + * A map of project id and project config. + * @param projectMap projectMap or {@code null} for none + */ + public StoragePoolShareSettings setProjectMap(java.util.Map projectMap) { + this.projectMap = projectMap; + return this; + } + + @Override + public StoragePoolShareSettings set(String fieldName, Object value) { + return (StoragePoolShareSettings) super.set(fieldName, value); + } + + @Override + public StoragePoolShareSettings clone() { + return (StoragePoolShareSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.java new file mode 100644 index 00000000000..63cba54eaaf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.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; + +/** + * Config for each project in the share settings. + * + *

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 StoragePoolShareSettingsProjectConfig extends com.google.api.client.json.GenericJson { + + /** + * The project ID, should be same as the key of this project config in the parent map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String projectId; + + /** + * The project ID, should be same as the key of this project config in the parent map. + * @return value or {@code null} for none + */ + public java.lang.String getProjectId() { + return projectId; + } + + /** + * The project ID, should be same as the key of this project config in the parent map. + * @param projectId projectId or {@code null} for none + */ + public StoragePoolShareSettingsProjectConfig setProjectId(java.lang.String projectId) { + this.projectId = projectId; + return this; + } + + @Override + public StoragePoolShareSettingsProjectConfig set(String fieldName, Object value) { + return (StoragePoolShareSettingsProjectConfig) super.set(fieldName, value); + } + + @Override + public StoragePoolShareSettingsProjectConfig clone() { + return (StoragePoolShareSettingsProjectConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolType.java new file mode 100644 index 00000000000..2abe154233a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -0,0 +1,456 @@ +/* + * 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 StoragePoolType. + * + *

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 StoragePoolType extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] The deprecation status associated with this storage pool type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeprecationStatus deprecated; + + /** + * [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] 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] Type of the resource. Alwayscompute#storagePoolType for storage pool + * types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] Maximum storage pool size in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxPoolProvisionedCapacityGb; + + /** + * [Output Only] Maximum provisioned IOPS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxPoolProvisionedIops; + + /** + * [Output Only] Maximum provisioned throughput. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxPoolProvisionedThroughput; + + /** + * [Output Only] Minimum storage pool size in GB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minPoolProvisionedCapacityGb; + + /** + * [Output Only] Minimum provisioned IOPS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minPoolProvisionedIops; + + /** + * [Output Only] Minimum provisioned throughput. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minPoolProvisionedThroughput; + + /** + * [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minSizeGb; + + /** + * [Output Only] Name of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * [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] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * [Output Only] The list of disk types supported in this storage pool type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedDiskTypes; + + /** + * [Output Only] URL of the zone where the storage pool type resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public StoragePoolType setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] The deprecation status associated with this storage pool type. + * @return value or {@code null} for none + */ + public DeprecationStatus getDeprecated() { + return deprecated; + } + + /** + * [Output Only] The deprecation status associated with this storage pool type. + * @param deprecated deprecated or {@code null} for none + */ + public StoragePoolType setDeprecated(DeprecationStatus deprecated) { + this.deprecated = deprecated; + 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 StoragePoolType setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public StoragePoolType setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool + * types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool + * types. + * @param kind kind or {@code null} for none + */ + public StoragePoolType setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] Maximum storage pool size in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxPoolProvisionedCapacityGb() { + return maxPoolProvisionedCapacityGb; + } + + /** + * [Output Only] Maximum storage pool size in GB. + * @param maxPoolProvisionedCapacityGb maxPoolProvisionedCapacityGb or {@code null} for none + */ + public StoragePoolType setMaxPoolProvisionedCapacityGb(java.lang.Long maxPoolProvisionedCapacityGb) { + this.maxPoolProvisionedCapacityGb = maxPoolProvisionedCapacityGb; + return this; + } + + /** + * [Output Only] Maximum provisioned IOPS. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxPoolProvisionedIops() { + return maxPoolProvisionedIops; + } + + /** + * [Output Only] Maximum provisioned IOPS. + * @param maxPoolProvisionedIops maxPoolProvisionedIops or {@code null} for none + */ + public StoragePoolType setMaxPoolProvisionedIops(java.lang.Long maxPoolProvisionedIops) { + this.maxPoolProvisionedIops = maxPoolProvisionedIops; + return this; + } + + /** + * [Output Only] Maximum provisioned throughput. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxPoolProvisionedThroughput() { + return maxPoolProvisionedThroughput; + } + + /** + * [Output Only] Maximum provisioned throughput. + * @param maxPoolProvisionedThroughput maxPoolProvisionedThroughput or {@code null} for none + */ + public StoragePoolType setMaxPoolProvisionedThroughput(java.lang.Long maxPoolProvisionedThroughput) { + this.maxPoolProvisionedThroughput = maxPoolProvisionedThroughput; + return this; + } + + /** + * [Output Only] Minimum storage pool size in GB. + * @return value or {@code null} for none + */ + public java.lang.Long getMinPoolProvisionedCapacityGb() { + return minPoolProvisionedCapacityGb; + } + + /** + * [Output Only] Minimum storage pool size in GB. + * @param minPoolProvisionedCapacityGb minPoolProvisionedCapacityGb or {@code null} for none + */ + public StoragePoolType setMinPoolProvisionedCapacityGb(java.lang.Long minPoolProvisionedCapacityGb) { + this.minPoolProvisionedCapacityGb = minPoolProvisionedCapacityGb; + return this; + } + + /** + * [Output Only] Minimum provisioned IOPS. + * @return value or {@code null} for none + */ + public java.lang.Long getMinPoolProvisionedIops() { + return minPoolProvisionedIops; + } + + /** + * [Output Only] Minimum provisioned IOPS. + * @param minPoolProvisionedIops minPoolProvisionedIops or {@code null} for none + */ + public StoragePoolType setMinPoolProvisionedIops(java.lang.Long minPoolProvisionedIops) { + this.minPoolProvisionedIops = minPoolProvisionedIops; + return this; + } + + /** + * [Output Only] Minimum provisioned throughput. + * @return value or {@code null} for none + */ + public java.lang.Long getMinPoolProvisionedThroughput() { + return minPoolProvisionedThroughput; + } + + /** + * [Output Only] Minimum provisioned throughput. + * @param minPoolProvisionedThroughput minPoolProvisionedThroughput or {@code null} for none + */ + public StoragePoolType setMinPoolProvisionedThroughput(java.lang.Long minPoolProvisionedThroughput) { + this.minPoolProvisionedThroughput = minPoolProvisionedThroughput; + return this; + } + + /** + * [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. + * @return value or {@code null} for none + */ + public java.lang.Long getMinSizeGb() { + return minSizeGb; + } + + /** + * [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. + * @param minSizeGb minSizeGb or {@code null} for none + */ + public StoragePoolType setMinSizeGb(java.lang.Long minSizeGb) { + this.minSizeGb = minSizeGb; + return this; + } + + /** + * [Output Only] Name of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * [Output Only] Name of the resource. + * @param name name or {@code null} for none + */ + public StoragePoolType setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public StoragePoolType setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public StoragePoolType setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * [Output Only] The list of disk types supported in this storage pool type. + * @return value or {@code null} for none + */ + public java.util.List getSupportedDiskTypes() { + return supportedDiskTypes; + } + + /** + * [Output Only] The list of disk types supported in this storage pool type. + * @param supportedDiskTypes supportedDiskTypes or {@code null} for none + */ + public StoragePoolType setSupportedDiskTypes(java.util.List supportedDiskTypes) { + this.supportedDiskTypes = supportedDiskTypes; + return this; + } + + /** + * [Output Only] URL of the zone where the storage pool type resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * [Output Only] URL of the zone where the storage pool type resides. You must specify this field + * as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public StoragePoolType setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public StoragePoolType set(String fieldName, Object value) { + return (StoragePoolType) super.set(fieldName, value); + } + + @Override + public StoragePoolType clone() { + return (StoragePoolType) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java new file mode 100644 index 00000000000..aaab522351a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -0,0 +1,377 @@ +/* + * 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 StoragePoolTypeAggregatedList. + * + *

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 StoragePoolTypeAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 StoragePoolTypesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 StoragePoolTypeAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of StoragePoolTypesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of StoragePoolTypesScopedList resources. + * @param items items or {@code null} for none + */ + public StoragePoolTypeAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * @param kind kind or {@code null} for none + */ + public StoragePoolTypeAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public StoragePoolTypeAggregatedList 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 StoragePoolTypeAggregatedList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 StoragePoolTypeAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolTypeAggregatedList set(String fieldName, Object value) { + return (StoragePoolTypeAggregatedList) super.set(fieldName, value); + } + + @Override + public StoragePoolTypeAggregatedList clone() { + return (StoragePoolTypeAggregatedList) 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 StoragePoolTypeAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeList.java new file mode 100644 index 00000000000..536df73d964 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypeList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of storage pool types. + * + *

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 StoragePoolTypeList extends com.google.api.client.json.GenericJson { + + /** + * [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 StoragePoolType 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 StoragePoolType 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(StoragePoolType.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool + * types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 StoragePoolTypeList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of StoragePoolType resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of StoragePoolType resources. + * @param items items or {@code null} for none + */ + public StoragePoolTypeList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool + * types. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool + * types. + * @param kind kind or {@code null} for none + */ + public StoragePoolTypeList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public StoragePoolTypeList 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 StoragePoolTypeList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 StoragePoolTypeList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolTypeList set(String fieldName, Object value) { + return (StoragePoolTypeList) super.set(fieldName, value); + } + + @Override + public StoragePoolTypeList clone() { + return (StoragePoolTypeList) 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 StoragePoolTypeListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypesScopedList.java new file mode 100644 index 00000000000..4aa24bfdb38 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolTypesScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 StoragePoolTypesScopedList. + * + *

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 StoragePoolTypesScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of storage pool types contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storagePoolTypes; + + static { + // hack to force ProGuard to consider StoragePoolType 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(StoragePoolType.class); + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool types when the list + * is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of storage pool types contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getStoragePoolTypes() { + return storagePoolTypes; + } + + /** + * [Output Only] A list of storage pool types contained in this scope. + * @param storagePoolTypes storagePoolTypes or {@code null} for none + */ + public StoragePoolTypesScopedList setStoragePoolTypes(java.util.List storagePoolTypes) { + this.storagePoolTypes = storagePoolTypes; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool types when the list + * is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool types when the list + * is empty. + * @param warning warning or {@code null} for none + */ + public StoragePoolTypesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolTypesScopedList set(String fieldName, Object value) { + return (StoragePoolTypesScopedList) super.set(fieldName, value); + } + + @Override + public StoragePoolTypesScopedList clone() { + return (StoragePoolTypesScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool types when the list + * is empty. + */ + 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 StoragePoolTypesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/StoragePoolsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolsScopedList.java new file mode 100644 index 00000000000..3c11dc5330f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/StoragePoolsScopedList.java @@ -0,0 +1,282 @@ +/* + * 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 StoragePoolsScopedList. + * + *

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 StoragePoolsScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of storage pool contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List storagePools; + + static { + // hack to force ProGuard to consider StoragePool 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(StoragePool.class); + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of storage pool contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getStoragePools() { + return storagePools; + } + + /** + * [Output Only] A list of storage pool contained in this scope. + * @param storagePools storagePools or {@code null} for none + */ + public StoragePoolsScopedList setStoragePools(java.util.List storagePools) { + this.storagePools = storagePools; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public StoragePoolsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public StoragePoolsScopedList set(String fieldName, Object value) { + return (StoragePoolsScopedList) super.set(fieldName, value); + } + + @Override + public StoragePoolsScopedList clone() { + return (StoragePoolsScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of storage pool when the list is + * empty. + */ + 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 StoragePoolsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subnetwork.java new file mode 100644 index 00000000000..ee23e5ea82b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -0,0 +1,1104 @@ +/* + * 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 Subnetwork resource. + * + * A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network + * with one primary IP range and zero or more secondary IP ranges. For more information, read + * Virtual Private Cloud (VPC) Network. + * + *

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 Subnetwork extends com.google.api.client.json.GenericJson { + + /** + * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom + * routes that have already been configured on the corresponding network. + * + * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be + * created if allow_conflicting_routes=true. + * + * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this + * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. + * + * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive + * data) are prevented from leaving the virtual network. Setting this field to true will disable + * this feature. + * + * The default value is false and applies to all existing subnetworks and automatically created + * subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowSubnetCidrRoutesOverlap; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * This field can be set only at resource creation time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it + * will not appear in get listings. If not set the default behavior is determined by the org + * policy, if there is no org policy specified, then it will default to disabled. This field isn't + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to + * uselogConfig.enable field instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableFlowLogs; + + /** + * The external IPv6 address range that is owned by this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalIpv6Prefix; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date + * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] The gateway address for default routes to reach destination + * addresses outside this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gatewayAddress; + + /** + * 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; + + /** + * The internal IPv6 address range that is owned by this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String internalIpv6Prefix; + + /** + * The range of internal addresses that are owned by this subnetwork. Provide this property when + * you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and + * non-overlapping within a network. Only IPv4 is supported. This field is set at resource + * creation time. The range can be any range listed in theValid ranges list. The range can be + * expanded after creation usingexpandIpCidrRange. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a + * sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode. + * + * Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only + * subnetwork with external access using BYOIP: - Full resource URL, as inhttps://www.g + * oogleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + * - Partial URL, as in - + * projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - + * regions/region/publicDelegatedPrefixes/sub-pdp-name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCollection; + + /** + * The access type of IPv6 address this subnet holds. It's immutable and can only be specified + * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6AccessType; + + /** + * Output only. [Output Only] This field is for internal use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6CidrRange; + + /** + * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the + * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 + * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public + * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used + * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 + * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from + * Google IP Pool directly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6GceEndpoint; + + /** + * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, + * logs are exported to Cloud Logging. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubnetworkLogConfig logConfig; + + /** + * The name of the resource, provided by the client when initially creating the resource. 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; + + /** + * The URL of the network to which this subnetwork belongs, provided by the client when initially + * creating the subnetwork. This field can be set only at resource creation time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubnetworkParams params; + + /** + * Whether the VMs in this subnet can access Google services without assigned external IP + * addresses. This field can be both set at resource creation time and updated using + * setPrivateIpGoogleAccess. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean privateIpGoogleAccess; + + /** + * This field is for internal use. + * + * This field can be both set at resource creation time and updated usingpatch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateIpv6GoogleAccess; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String purpose; + + /** + * URL of the region where the Subnetwork resides. This field can be set only at resource creation + * time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * The URL of the reserved internal range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reservedInternalRange; + + /** + * Configures subnet mask resolution for this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resolveSubnetMask; + + /** + * The role of subnetwork. Currently, this field is only used when purpose is set to + * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a + * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently + * draining. This field can be updated with a patch request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * An array of configurations for secondary IP ranges for VM instances contained in this + * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. + * The alias IPs may belong to either primary or secondary ranges. This field can be updated with + * apatch request. Supports both IPv4 and IPv6 ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List secondaryIpRanges; + + /** + * [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; + + /** + * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 + * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + * addresses. If not specified, IPV4_ONLY is used. + * + * This field can be both set at resource creation time and updated usingpatch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Output only. [Output Only] The state of the subnetwork, which can be one of the following + * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks + * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + * load balancer are being drained. A subnetwork that is draining cannot be used or modified until + * it reaches a status ofREADY + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedExternalIpv6Ranges; + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemReservedInternalIpv6Ranges; + + /** + * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the + * total number of allocated and free IPs in each range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubnetworkUtilizationDetails utilizationDetails; + + /** + * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom + * routes that have already been configured on the corresponding network. + * + * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be + * created if allow_conflicting_routes=true. + * + * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this + * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. + * + * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive + * data) are prevented from leaving the virtual network. Setting this field to true will disable + * this feature. + * + * The default value is false and applies to all existing subnetworks and automatically created + * subnetworks. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { + return allowSubnetCidrRoutesOverlap; + } + + /** + * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom + * routes that have already been configured on the corresponding network. + * + * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be + * created if allow_conflicting_routes=true. + * + * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this + * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. + * + * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive + * data) are prevented from leaving the virtual network. Setting this field to true will disable + * this feature. + * + * The default value is false and applies to all existing subnetworks and automatically created + * subnetworks. + * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none + */ + public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { + this.allowSubnetCidrRoutesOverlap = allowSubnetCidrRoutesOverlap; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * This field can be set only at resource creation time. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * This field can be set only at resource creation time. + * @param description description or {@code null} for none + */ + public Subnetwork setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it + * will not appear in get listings. If not set the default behavior is determined by the org + * policy, if there is no org policy specified, then it will default to disabled. This field isn't + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to + * uselogConfig.enable field instead. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableFlowLogs() { + return enableFlowLogs; + } + + /** + * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it + * will not appear in get listings. If not set the default behavior is determined by the org + * policy, if there is no org policy specified, then it will default to disabled. This field isn't + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to + * uselogConfig.enable field instead. + * @param enableFlowLogs enableFlowLogs or {@code null} for none + */ + public Subnetwork setEnableFlowLogs(java.lang.Boolean enableFlowLogs) { + this.enableFlowLogs = enableFlowLogs; + return this; + } + + /** + * The external IPv6 address range that is owned by this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getExternalIpv6Prefix() { + return externalIpv6Prefix; + } + + /** + * The external IPv6 address range that is owned by this subnetwork. + * @param externalIpv6Prefix externalIpv6Prefix or {@code null} for none + */ + public Subnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefix) { + this.externalIpv6Prefix = externalIpv6Prefix; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date + * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date + * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date + * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public Subnetwork setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date + * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail + * with error 412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Subnetwork encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] The gateway address for default routes to reach destination + * addresses outside this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getGatewayAddress() { + return gatewayAddress; + } + + /** + * Output only. [Output Only] The gateway address for default routes to reach destination + * addresses outside this subnetwork. + * @param gatewayAddress gatewayAddress or {@code null} for none + */ + public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { + this.gatewayAddress = gatewayAddress; + 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 Subnetwork setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * The internal IPv6 address range that is owned by this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getInternalIpv6Prefix() { + return internalIpv6Prefix; + } + + /** + * The internal IPv6 address range that is owned by this subnetwork. + * @param internalIpv6Prefix internalIpv6Prefix or {@code null} for none + */ + public Subnetwork setInternalIpv6Prefix(java.lang.String internalIpv6Prefix) { + this.internalIpv6Prefix = internalIpv6Prefix; + return this; + } + + /** + * The range of internal addresses that are owned by this subnetwork. Provide this property when + * you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and + * non-overlapping within a network. Only IPv4 is supported. This field is set at resource + * creation time. The range can be any range listed in theValid ranges list. The range can be + * expanded after creation usingexpandIpCidrRange. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The range of internal addresses that are owned by this subnetwork. Provide this property when + * you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and + * non-overlapping within a network. Only IPv4 is supported. This field is set at resource + * creation time. The range can be any range listed in theValid ranges list. The range can be + * expanded after creation usingexpandIpCidrRange. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public Subnetwork setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a + * sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode. + * + * Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only + * subnetwork with external access using BYOIP: - Full resource URL, as inhttps://www.g + * oogleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + * - Partial URL, as in - + * projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - + * regions/region/publicDelegatedPrefixes/sub-pdp-name + * @return value or {@code null} for none + */ + public java.lang.String getIpCollection() { + return ipCollection; + } + + /** + * Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a + * sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode. + * + * Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only + * subnetwork with external access using BYOIP: - Full resource URL, as inhttps://www.g + * oogleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + * - Partial URL, as in - + * projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - + * regions/region/publicDelegatedPrefixes/sub-pdp-name + * @param ipCollection ipCollection or {@code null} for none + */ + public Subnetwork setIpCollection(java.lang.String ipCollection) { + this.ipCollection = ipCollection; + return this; + } + + /** + * The access type of IPv6 address this subnet holds. It's immutable and can only be specified + * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6AccessType() { + return ipv6AccessType; + } + + /** + * The access type of IPv6 address this subnet holds. It's immutable and can only be specified + * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + * @param ipv6AccessType ipv6AccessType or {@code null} for none + */ + public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { + this.ipv6AccessType = ipv6AccessType; + return this; + } + + /** + * Output only. [Output Only] This field is for internal use. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6CidrRange() { + return ipv6CidrRange; + } + + /** + * Output only. [Output Only] This field is for internal use. + * @param ipv6CidrRange ipv6CidrRange or {@code null} for none + */ + public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { + this.ipv6CidrRange = ipv6CidrRange; + return this; + } + + /** + * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the + * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 + * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public + * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used + * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 + * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from + * Google IP Pool directly. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6GceEndpoint() { + return ipv6GceEndpoint; + } + + /** + * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the + * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 + * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public + * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used + * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 + * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from + * Google IP Pool directly. + * @param ipv6GceEndpoint ipv6GceEndpoint or {@code null} for none + */ + public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { + this.ipv6GceEndpoint = ipv6GceEndpoint; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + * resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + * resources. + * @param kind kind or {@code null} for none + */ + public Subnetwork setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, + * logs are exported to Cloud Logging. + * @return value or {@code null} for none + */ + public SubnetworkLogConfig getLogConfig() { + return logConfig; + } + + /** + * This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, + * logs are exported to Cloud Logging. + * @param logConfig logConfig or {@code null} for none + */ + public Subnetwork setLogConfig(SubnetworkLogConfig logConfig) { + this.logConfig = logConfig; + return this; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. 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; + } + + /** + * The name of the resource, provided by the client when initially creating the resource. 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 Subnetwork setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The URL of the network to which this subnetwork belongs, provided by the client when initially + * creating the subnetwork. This field can be set only at resource creation time. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * The URL of the network to which this subnetwork belongs, provided by the client when initially + * creating the subnetwork. This field can be set only at resource creation time. + * @param network network or {@code null} for none + */ + public Subnetwork setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public SubnetworkParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public Subnetwork setParams(SubnetworkParams params) { + this.params = params; + return this; + } + + /** + * Whether the VMs in this subnet can access Google services without assigned external IP + * addresses. This field can be both set at resource creation time and updated using + * setPrivateIpGoogleAccess. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPrivateIpGoogleAccess() { + return privateIpGoogleAccess; + } + + /** + * Whether the VMs in this subnet can access Google services without assigned external IP + * addresses. This field can be both set at resource creation time and updated using + * setPrivateIpGoogleAccess. + * @param privateIpGoogleAccess privateIpGoogleAccess or {@code null} for none + */ + public Subnetwork setPrivateIpGoogleAccess(java.lang.Boolean privateIpGoogleAccess) { + this.privateIpGoogleAccess = privateIpGoogleAccess; + return this; + } + + /** + * This field is for internal use. + * + * This field can be both set at resource creation time and updated usingpatch. + * @return value or {@code null} for none + */ + public java.lang.String getPrivateIpv6GoogleAccess() { + return privateIpv6GoogleAccess; + } + + /** + * This field is for internal use. + * + * This field can be both set at resource creation time and updated usingpatch. + * @param privateIpv6GoogleAccess privateIpv6GoogleAccess or {@code null} for none + */ + public Subnetwork setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess) { + this.privateIpv6GoogleAccess = privateIpv6GoogleAccess; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPurpose() { + return purpose; + } + + /** + * @param purpose purpose or {@code null} for none + */ + public Subnetwork setPurpose(java.lang.String purpose) { + this.purpose = purpose; + return this; + } + + /** + * URL of the region where the Subnetwork resides. This field can be set only at resource creation + * time. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * URL of the region where the Subnetwork resides. This field can be set only at resource creation + * time. + * @param region region or {@code null} for none + */ + public Subnetwork setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * The URL of the reserved internal range. + * @return value or {@code null} for none + */ + public java.lang.String getReservedInternalRange() { + return reservedInternalRange; + } + + /** + * The URL of the reserved internal range. + * @param reservedInternalRange reservedInternalRange or {@code null} for none + */ + public Subnetwork setReservedInternalRange(java.lang.String reservedInternalRange) { + this.reservedInternalRange = reservedInternalRange; + return this; + } + + /** + * Configures subnet mask resolution for this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getResolveSubnetMask() { + return resolveSubnetMask; + } + + /** + * Configures subnet mask resolution for this subnetwork. + * @param resolveSubnetMask resolveSubnetMask or {@code null} for none + */ + public Subnetwork setResolveSubnetMask(java.lang.String resolveSubnetMask) { + this.resolveSubnetMask = resolveSubnetMask; + return this; + } + + /** + * The role of subnetwork. Currently, this field is only used when purpose is set to + * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a + * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently + * draining. This field can be updated with a patch request. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * The role of subnetwork. Currently, this field is only used when purpose is set to + * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a + * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently + * draining. This field can be updated with a patch request. + * @param role role or {@code null} for none + */ + public Subnetwork setRole(java.lang.String role) { + this.role = role; + return this; + } + + /** + * An array of configurations for secondary IP ranges for VM instances contained in this + * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. + * The alias IPs may belong to either primary or secondary ranges. This field can be updated with + * apatch request. Supports both IPv4 and IPv6 ranges. + * @return value or {@code null} for none + */ + public java.util.List getSecondaryIpRanges() { + return secondaryIpRanges; + } + + /** + * An array of configurations for secondary IP ranges for VM instances contained in this + * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. + * The alias IPs may belong to either primary or secondary ranges. This field can be updated with + * apatch request. Supports both IPv4 and IPv6 ranges. + * @param secondaryIpRanges secondaryIpRanges or {@code null} for none + */ + public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { + this.secondaryIpRanges = secondaryIpRanges; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public Subnetwork setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 + * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + * addresses. If not specified, IPV4_ONLY is used. + * + * This field can be both set at resource creation time and updated usingpatch. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 + * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + * addresses. If not specified, IPV4_ONLY is used. + * + * This field can be both set at resource creation time and updated usingpatch. + * @param stackType stackType or {@code null} for none + */ + public Subnetwork setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + /** + * Output only. [Output Only] The state of the subnetwork, which can be one of the following + * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks + * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + * load balancer are being drained. A subnetwork that is draining cannot be used or modified until + * it reaches a status ofREADY + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output Only] The state of the subnetwork, which can be one of the following + * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks + * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + * load balancer are being drained. A subnetwork that is draining cannot be used or modified until + * it reaches a status ofREADY + * @param state state or {@code null} for none + */ + public Subnetwork setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedExternalIpv6Ranges() { + return systemReservedExternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of external IPv6 network ranges reserved from the + * subnetwork's external IPv6 range for system use. + * @param systemReservedExternalIpv6Ranges systemReservedExternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedExternalIpv6Ranges(java.util.List systemReservedExternalIpv6Ranges) { + this.systemReservedExternalIpv6Ranges = systemReservedExternalIpv6Ranges; + return this; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @return value or {@code null} for none + */ + public java.util.List getSystemReservedInternalIpv6Ranges() { + return systemReservedInternalIpv6Ranges; + } + + /** + * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the + * subnetwork's internal IPv6 range for system use. + * @param systemReservedInternalIpv6Ranges systemReservedInternalIpv6Ranges or {@code null} for none + */ + public Subnetwork setSystemReservedInternalIpv6Ranges(java.util.List systemReservedInternalIpv6Ranges) { + this.systemReservedInternalIpv6Ranges = systemReservedInternalIpv6Ranges; + return this; + } + + /** + * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the + * total number of allocated and free IPs in each range. + * @return value or {@code null} for none + */ + public SubnetworkUtilizationDetails getUtilizationDetails() { + return utilizationDetails; + } + + /** + * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the + * total number of allocated and free IPs in each range. + * @param utilizationDetails utilizationDetails or {@code null} for none + */ + public Subnetwork setUtilizationDetails(SubnetworkUtilizationDetails utilizationDetails) { + this.utilizationDetails = utilizationDetails; + return this; + } + + @Override + public Subnetwork set(String fieldName, Object value) { + return (Subnetwork) super.set(fieldName, value); + } + + @Override + public Subnetwork clone() { + return (Subnetwork) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java new file mode 100644 index 00000000000..6906086971d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 SubnetworkAggregatedList. + * + *

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 SubnetworkAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 SubnetworksScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for + * aggregated lists of subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 SubnetworkAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SubnetworksScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of SubnetworksScopedList resources. + * @param items items or {@code null} for none + */ + public SubnetworkAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for + * aggregated lists of subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for + * aggregated lists of subnetworks. + * @param kind kind or {@code null} for none + */ + public SubnetworkAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SubnetworkAggregatedList 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 SubnetworkAggregatedList 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 SubnetworkAggregatedList 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 SubnetworkAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SubnetworkAggregatedList set(String fieldName, Object value) { + return (SubnetworkAggregatedList) super.set(fieldName, value); + } + + @Override + public SubnetworkAggregatedList clone() { + return (SubnetworkAggregatedList) 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 SubnetworkAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkList.java new file mode 100644 index 00000000000..8415c1198d1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of Subnetwork resources. + * + *

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 SubnetworkList extends com.google.api.client.json.GenericJson { + + /** + * [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 Subnetwork 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 Subnetwork 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(Subnetwork.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of + * subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 SubnetworkList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Subnetwork resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Subnetwork resources. + * @param items items or {@code null} for none + */ + public SubnetworkList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of + * subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of + * subnetworks. + * @param kind kind or {@code null} for none + */ + public SubnetworkList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public SubnetworkList 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 SubnetworkList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 SubnetworkList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SubnetworkList set(String fieldName, Object value) { + return (SubnetworkList) super.set(fieldName, value); + } + + @Override + public SubnetworkList clone() { + return (SubnetworkList) 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 SubnetworkListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SubnetworkLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkLogConfig.java new file mode 100644 index 00000000000..178242aed89 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkLogConfig.java @@ -0,0 +1,225 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The available logging options for this subnetwork. + * + *

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 SubnetworkLogConfig extends com.google.api.client.json.GenericJson { + + /** + * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the + * aggregation interval for collecting flow logs. Increasing the interval time will reduce the + * amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds + * per connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String aggregationInterval; + + /** + * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it + * will not appear in get listings. If not set the default behavior is determined by the org + * policy, if there is no org policy specified, then it will default to disabled. Flow logging + * isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enable; + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is + * used to define which VPC flow logs should be exported to Cloud Logging. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filterExpr; + + /** + * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the + * field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 + * means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless + * otherwise specified by the org policy, which means half of all collected logs are reported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float flowSampling; + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, + * none or a subset of metadata fields should be added to the reported VPC flow logs. Default + * isEXCLUDE_ALL_METADATA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metadata; + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to + * CUSTOM_METADATA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metadataFields; + + /** + * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the + * aggregation interval for collecting flow logs. Increasing the interval time will reduce the + * amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds + * per connection. + * @return value or {@code null} for none + */ + public java.lang.String getAggregationInterval() { + return aggregationInterval; + } + + /** + * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the + * aggregation interval for collecting flow logs. Increasing the interval time will reduce the + * amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds + * per connection. + * @param aggregationInterval aggregationInterval or {@code null} for none + */ + public SubnetworkLogConfig setAggregationInterval(java.lang.String aggregationInterval) { + this.aggregationInterval = aggregationInterval; + return this; + } + + /** + * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it + * will not appear in get listings. If not set the default behavior is determined by the org + * policy, if there is no org policy specified, then it will default to disabled. Flow logging + * isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnable() { + return enable; + } + + /** + * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it + * will not appear in get listings. If not set the default behavior is determined by the org + * policy, if there is no org policy specified, then it will default to disabled. Flow logging + * isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + * @param enable enable or {@code null} for none + */ + public SubnetworkLogConfig setEnable(java.lang.Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is + * used to define which VPC flow logs should be exported to Cloud Logging. + * @return value or {@code null} for none + */ + public java.lang.String getFilterExpr() { + return filterExpr; + } + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is + * used to define which VPC flow logs should be exported to Cloud Logging. + * @param filterExpr filterExpr or {@code null} for none + */ + public SubnetworkLogConfig setFilterExpr(java.lang.String filterExpr) { + this.filterExpr = filterExpr; + return this; + } + + /** + * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the + * field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 + * means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless + * otherwise specified by the org policy, which means half of all collected logs are reported. + * @return value or {@code null} for none + */ + public java.lang.Float getFlowSampling() { + return flowSampling; + } + + /** + * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the + * field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 + * means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless + * otherwise specified by the org policy, which means half of all collected logs are reported. + * @param flowSampling flowSampling or {@code null} for none + */ + public SubnetworkLogConfig setFlowSampling(java.lang.Float flowSampling) { + this.flowSampling = flowSampling; + return this; + } + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, + * none or a subset of metadata fields should be added to the reported VPC flow logs. Default + * isEXCLUDE_ALL_METADATA. + * @return value or {@code null} for none + */ + public java.lang.String getMetadata() { + return metadata; + } + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, + * none or a subset of metadata fields should be added to the reported VPC flow logs. Default + * isEXCLUDE_ALL_METADATA. + * @param metadata metadata or {@code null} for none + */ + public SubnetworkLogConfig setMetadata(java.lang.String metadata) { + this.metadata = metadata; + return this; + } + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to + * CUSTOM_METADATA. + * @return value or {@code null} for none + */ + public java.util.List getMetadataFields() { + return metadataFields; + } + + /** + * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to + * CUSTOM_METADATA. + * @param metadataFields metadataFields or {@code null} for none + */ + public SubnetworkLogConfig setMetadataFields(java.util.List metadataFields) { + this.metadataFields = metadataFields; + return this; + } + + @Override + public SubnetworkLogConfig set(String fieldName, Object value) { + return (SubnetworkLogConfig) super.set(fieldName, value); + } + + @Override + public SubnetworkLogConfig clone() { + return (SubnetworkLogConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkParams.java new file mode 100644 index 00000000000..062b9b39579 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkParams.java @@ -0,0 +1,84 @@ +/* + * 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; + +/** + * Additional subnetwork parameters. + * + *

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 SubnetworkParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public SubnetworkParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public SubnetworkParams set(String fieldName, Object value) { + return (SubnetworkParams) super.set(fieldName, value); + } + + @Override + public SubnetworkParams clone() { + return (SubnetworkParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java new file mode 100644 index 00000000000..4f8af881a0b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -0,0 +1,207 @@ +/* + * 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 secondary IP range of a subnetwork. + * + *

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 SubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { + + /** + * The range of IP addresses belonging to this subnetwork secondary range. Provide this property + * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and + * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the + * range can be any range listed in theValid ranges list. + * + * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- + * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the + * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, + * the requested ip_cidr_range must lie within the range of the PDP referenced by the + * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is + * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * Reference to a Public Delegated Prefix (PDP) for BYOIP. This field should be specified for + * configuring BYOGUA internal IPv6 secondary range. When specified along with the ip_cidr_range, + * the ip_cidr_range must lie within the PDP referenced by the `ipCollection` field. When + * specified without the ip_cidr_range, the range is auto-allocated from the PDP referenced by the + * `ipCollection` field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCollection; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipVersion; + + /** + * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 + * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name + * must be unique within the subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rangeName; + + /** + * The URL of the reserved internal range. Only IPv4 is supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reservedInternalRange; + + /** + * The range of IP addresses belonging to this subnetwork secondary range. Provide this property + * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and + * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the + * range can be any range listed in theValid ranges list. + * + * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- + * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the + * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, + * the requested ip_cidr_range must lie within the range of the PDP referenced by the + * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is + * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The range of IP addresses belonging to this subnetwork secondary range. Provide this property + * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and + * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the + * range can be any range listed in theValid ranges list. + * + * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- + * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the + * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, + * the requested ip_cidr_range must lie within the range of the PDP referenced by the + * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is + * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * Reference to a Public Delegated Prefix (PDP) for BYOIP. This field should be specified for + * configuring BYOGUA internal IPv6 secondary range. When specified along with the ip_cidr_range, + * the ip_cidr_range must lie within the PDP referenced by the `ipCollection` field. When + * specified without the ip_cidr_range, the range is auto-allocated from the PDP referenced by the + * `ipCollection` field. + * @return value or {@code null} for none + */ + public java.lang.String getIpCollection() { + return ipCollection; + } + + /** + * Reference to a Public Delegated Prefix (PDP) for BYOIP. This field should be specified for + * configuring BYOGUA internal IPv6 secondary range. When specified along with the ip_cidr_range, + * the ip_cidr_range must lie within the PDP referenced by the `ipCollection` field. When + * specified without the ip_cidr_range, the range is auto-allocated from the PDP referenced by the + * `ipCollection` field. + * @param ipCollection ipCollection or {@code null} for none + */ + public SubnetworkSecondaryRange setIpCollection(java.lang.String ipCollection) { + this.ipCollection = ipCollection; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getIpVersion() { + return ipVersion; + } + + /** + * @param ipVersion ipVersion or {@code null} for none + */ + public SubnetworkSecondaryRange setIpVersion(java.lang.String ipVersion) { + this.ipVersion = ipVersion; + return this; + } + + /** + * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 + * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name + * must be unique within the subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getRangeName() { + return rangeName; + } + + /** + * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 + * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name + * must be unique within the subnetwork. + * @param rangeName rangeName or {@code null} for none + */ + public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { + this.rangeName = rangeName; + return this; + } + + /** + * The URL of the reserved internal range. Only IPv4 is supported. + * @return value or {@code null} for none + */ + public java.lang.String getReservedInternalRange() { + return reservedInternalRange; + } + + /** + * The URL of the reserved internal range. Only IPv4 is supported. + * @param reservedInternalRange reservedInternalRange or {@code null} for none + */ + public SubnetworkSecondaryRange setReservedInternalRange(java.lang.String reservedInternalRange) { + this.reservedInternalRange = reservedInternalRange; + return this; + } + + @Override + public SubnetworkSecondaryRange set(String fieldName, Object value) { + return (SubnetworkSecondaryRange) super.set(fieldName, value); + } + + @Override + public SubnetworkSecondaryRange clone() { + return (SubnetworkSecondaryRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetails.java new file mode 100644 index 00000000000..13ce535ab49 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetails.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The current IP utilization of all subnetwork ranges. Contains the total number of allocated and + * free IPs in each range. + * + *

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 SubnetworkUtilizationDetails extends com.google.api.client.json.GenericJson { + + /** + * Utilizations of external IPV6 IP range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubnetworkUtilizationDetailsIPV6Utilization externalIpv6InstanceUtilization; + + /** + * Utilizations of external IPV6 IP range for NetLB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubnetworkUtilizationDetailsIPV6Utilization externalIpv6LbUtilization; + + /** + * Utilizations of internal IPV6 IP range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubnetworkUtilizationDetailsIPV6Utilization internalIpv6Utilization; + + /** + * Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ipv4Utilizations; + + /** + * Utilizations of external IPV6 IP range. + * @return value or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV6Utilization getExternalIpv6InstanceUtilization() { + return externalIpv6InstanceUtilization; + } + + /** + * Utilizations of external IPV6 IP range. + * @param externalIpv6InstanceUtilization externalIpv6InstanceUtilization or {@code null} for none + */ + public SubnetworkUtilizationDetails setExternalIpv6InstanceUtilization(SubnetworkUtilizationDetailsIPV6Utilization externalIpv6InstanceUtilization) { + this.externalIpv6InstanceUtilization = externalIpv6InstanceUtilization; + return this; + } + + /** + * Utilizations of external IPV6 IP range for NetLB. + * @return value or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV6Utilization getExternalIpv6LbUtilization() { + return externalIpv6LbUtilization; + } + + /** + * Utilizations of external IPV6 IP range for NetLB. + * @param externalIpv6LbUtilization externalIpv6LbUtilization or {@code null} for none + */ + public SubnetworkUtilizationDetails setExternalIpv6LbUtilization(SubnetworkUtilizationDetailsIPV6Utilization externalIpv6LbUtilization) { + this.externalIpv6LbUtilization = externalIpv6LbUtilization; + return this; + } + + /** + * Utilizations of internal IPV6 IP range. + * @return value or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV6Utilization getInternalIpv6Utilization() { + return internalIpv6Utilization; + } + + /** + * Utilizations of internal IPV6 IP range. + * @param internalIpv6Utilization internalIpv6Utilization or {@code null} for none + */ + public SubnetworkUtilizationDetails setInternalIpv6Utilization(SubnetworkUtilizationDetailsIPV6Utilization internalIpv6Utilization) { + this.internalIpv6Utilization = internalIpv6Utilization; + return this; + } + + /** + * Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. + * @return value or {@code null} for none + */ + public java.util.List getIpv4Utilizations() { + return ipv4Utilizations; + } + + /** + * Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. + * @param ipv4Utilizations ipv4Utilizations or {@code null} for none + */ + public SubnetworkUtilizationDetails setIpv4Utilizations(java.util.List ipv4Utilizations) { + this.ipv4Utilizations = ipv4Utilizations; + return this; + } + + @Override + public SubnetworkUtilizationDetails set(String fieldName, Object value) { + return (SubnetworkUtilizationDetails) super.set(fieldName, value); + } + + @Override + public SubnetworkUtilizationDetails clone() { + return (SubnetworkUtilizationDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV4Utilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV4Utilization.java new file mode 100644 index 00000000000..987fdeee5f9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV4Utilization.java @@ -0,0 +1,108 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The IPV4 utilization of a single IP range. + * + *

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 SubnetworkUtilizationDetailsIPV4Utilization extends com.google.api.client.json.GenericJson { + + /** + * Will be set for secondary range. Empty for primary IPv4 range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rangeName; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalAllocatedIp; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalFreeIp; + + /** + * Will be set for secondary range. Empty for primary IPv4 range. + * @return value or {@code null} for none + */ + public java.lang.String getRangeName() { + return rangeName; + } + + /** + * Will be set for secondary range. Empty for primary IPv4 range. + * @param rangeName rangeName or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV4Utilization setRangeName(java.lang.String rangeName) { + this.rangeName = rangeName; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Long getTotalAllocatedIp() { + return totalAllocatedIp; + } + + /** + * @param totalAllocatedIp totalAllocatedIp or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV4Utilization setTotalAllocatedIp(java.lang.Long totalAllocatedIp) { + this.totalAllocatedIp = totalAllocatedIp; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Long getTotalFreeIp() { + return totalFreeIp; + } + + /** + * @param totalFreeIp totalFreeIp or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV4Utilization setTotalFreeIp(java.lang.Long totalFreeIp) { + this.totalFreeIp = totalFreeIp; + return this; + } + + @Override + public SubnetworkUtilizationDetailsIPV4Utilization set(String fieldName, Object value) { + return (SubnetworkUtilizationDetailsIPV4Utilization) super.set(fieldName, value); + } + + @Override + public SubnetworkUtilizationDetailsIPV4Utilization clone() { + return (SubnetworkUtilizationDetailsIPV4Utilization) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV6Utilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV6Utilization.java new file mode 100644 index 00000000000..5792eb60373 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworkUtilizationDetailsIPV6Utilization.java @@ -0,0 +1,84 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The IPV6 utilization of a single IP range. + * + *

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 SubnetworkUtilizationDetailsIPV6Utilization extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Uint128 totalAllocatedIp; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Uint128 totalFreeIp; + + /** + * @return value or {@code null} for none + */ + public Uint128 getTotalAllocatedIp() { + return totalAllocatedIp; + } + + /** + * @param totalAllocatedIp totalAllocatedIp or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV6Utilization setTotalAllocatedIp(Uint128 totalAllocatedIp) { + this.totalAllocatedIp = totalAllocatedIp; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Uint128 getTotalFreeIp() { + return totalFreeIp; + } + + /** + * @param totalFreeIp totalFreeIp or {@code null} for none + */ + public SubnetworkUtilizationDetailsIPV6Utilization setTotalFreeIp(Uint128 totalFreeIp) { + this.totalFreeIp = totalFreeIp; + return this; + } + + @Override + public SubnetworkUtilizationDetailsIPV6Utilization set(String fieldName, Object value) { + return (SubnetworkUtilizationDetailsIPV6Utilization) super.set(fieldName, value); + } + + @Override + public SubnetworkUtilizationDetailsIPV6Utilization clone() { + return (SubnetworkUtilizationDetailsIPV6Utilization) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksExpandIpCidrRangeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksExpandIpCidrRangeRequest.java new file mode 100644 index 00000000000..29dbd9a3c32 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksExpandIpCidrRangeRequest.java @@ -0,0 +1,72 @@ +/* + * 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 SubnetworksExpandIpCidrRangeRequest. + * + *

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 SubnetworksExpandIpCidrRangeRequest extends com.google.api.client.json.GenericJson { + + /** + * The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. + * This range should be disjoint from other subnetworks within this network. This range can only + * be larger than (i.e. a superset of) the range previously defined before the update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. + * This range should be disjoint from other subnetworks within this network. This range can only + * be larger than (i.e. a superset of) the range previously defined before the update. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. + * This range should be disjoint from other subnetworks within this network. This range can only + * be larger than (i.e. a superset of) the range previously defined before the update. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public SubnetworksExpandIpCidrRangeRequest setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + @Override + public SubnetworksExpandIpCidrRangeRequest set(String fieldName, Object value) { + return (SubnetworksExpandIpCidrRangeRequest) super.set(fieldName, value); + } + + @Override + public SubnetworksExpandIpCidrRangeRequest clone() { + return (SubnetworksExpandIpCidrRangeRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedList.java new file mode 100644 index 00000000000..ad9e8a63522 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 SubnetworksScopedList. + * + *

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 SubnetworksScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of subnetworks contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List subnetworks; + + static { + // hack to force ProGuard to consider Subnetwork 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(Subnetwork.class); + } + + /** + * An informational warning that appears when the list of addresses is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of subnetworks contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getSubnetworks() { + return subnetworks; + } + + /** + * A list of subnetworks contained in this scope. + * @param subnetworks subnetworks or {@code null} for none + */ + public SubnetworksScopedList setSubnetworks(java.util.List subnetworks) { + this.subnetworks = subnetworks; + return this; + } + + /** + * An informational warning that appears when the list of addresses is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning that appears when the list of addresses is empty. + * @param warning warning or {@code null} for none + */ + public SubnetworksScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SubnetworksScopedList set(String fieldName, Object value) { + return (SubnetworksScopedList) super.set(fieldName, value); + } + + @Override + public SubnetworksScopedList clone() { + return (SubnetworksScopedList) super.clone(); + } + + /** + * An informational warning that appears when the list of addresses is empty. + */ + 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 SubnetworksScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java new file mode 100644 index 00000000000..3156e847198 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksScopedWarning.java @@ -0,0 +1,272 @@ +/* + * 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 SubnetworksScopedWarning. + * + *

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 SubnetworksScopedWarning extends com.google.api.client.json.GenericJson { + + /** + * Name of the scope containing this set of Subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scopeName; + + /** + * An informational warning about unreachable scope + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Name of the scope containing this set of Subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getScopeName() { + return scopeName; + } + + /** + * Name of the scope containing this set of Subnetworks. + * @param scopeName scopeName or {@code null} for none + */ + public SubnetworksScopedWarning setScopeName(java.lang.String scopeName) { + this.scopeName = scopeName; + return this; + } + + /** + * An informational warning about unreachable scope + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning about unreachable scope + * @param warning warning or {@code null} for none + */ + public SubnetworksScopedWarning setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public SubnetworksScopedWarning set(String fieldName, Object value) { + return (SubnetworksScopedWarning) super.set(fieldName, value); + } + + @Override + public SubnetworksScopedWarning clone() { + return (SubnetworksScopedWarning) super.clone(); + } + + /** + * An informational warning about unreachable scope + */ + 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 SubnetworksScopedWarningWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/SubnetworksSetPrivateIpGoogleAccessRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksSetPrivateIpGoogleAccessRequest.java new file mode 100644 index 00000000000..9036b2d9063 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/SubnetworksSetPrivateIpGoogleAccessRequest.java @@ -0,0 +1,63 @@ +/* + * 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 SubnetworksSetPrivateIpGoogleAccessRequest. + * + *

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 SubnetworksSetPrivateIpGoogleAccessRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean privateIpGoogleAccess; + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getPrivateIpGoogleAccess() { + return privateIpGoogleAccess; + } + + /** + * @param privateIpGoogleAccess privateIpGoogleAccess or {@code null} for none + */ + public SubnetworksSetPrivateIpGoogleAccessRequest setPrivateIpGoogleAccess(java.lang.Boolean privateIpGoogleAccess) { + this.privateIpGoogleAccess = privateIpGoogleAccess; + return this; + } + + @Override + public SubnetworksSetPrivateIpGoogleAccessRequest set(String fieldName, Object value) { + return (SubnetworksSetPrivateIpGoogleAccessRequest) super.set(fieldName, value); + } + + @Override + public SubnetworksSetPrivateIpGoogleAccessRequest clone() { + return (SubnetworksSetPrivateIpGoogleAccessRequest) super.clone(); + } + +} From 9cd6c74a41da16aa58906d1bd460ab7ebf4bc904 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:31 -0700 Subject: [PATCH 11/23] chore: regenerate compute client --- .../services/compute/model/Subsetting.java | 64 ++ .../compute/model/TCPHealthCheck.java | 249 +++++ .../api/services/compute/model/Tags.java | 143 +++ .../compute/model/TargetGrpcProxy.java | 374 ++++++++ .../compute/model/TargetGrpcProxyList.java | 386 ++++++++ .../model/TargetHttpProxiesScopedList.java | 272 ++++++ .../compute/model/TargetHttpProxy.java | 435 +++++++++ .../model/TargetHttpProxyAggregatedList.java | 204 +++++ .../compute/model/TargetHttpProxyList.java | 386 ++++++++ .../model/TargetHttpsProxiesScopedList.java | 272 ++++++ ...tHttpsProxiesSetCertificateMapRequest.java | 75 ++ ...getHttpsProxiesSetQuicOverrideRequest.java | 66 ++ ...HttpsProxiesSetSslCertificatesRequest.java | 69 ++ .../compute/model/TargetHttpsProxy.java | 810 +++++++++++++++++ .../model/TargetHttpsProxyAggregatedList.java | 410 +++++++++ .../compute/model/TargetHttpsProxyList.java | 386 ++++++++ .../compute/model/TargetInstance.java | 346 +++++++ .../model/TargetInstanceAggregatedList.java | 401 ++++++++ .../compute/model/TargetInstanceList.java | 383 ++++++++ .../model/TargetInstancesScopedList.java | 278 ++++++ .../services/compute/model/TargetPool.java | 454 ++++++++++ .../model/TargetPoolAggregatedList.java | 404 +++++++++ .../model/TargetPoolInstanceHealth.java | 96 ++ .../compute/model/TargetPoolList.java | 386 ++++++++ .../TargetPoolsAddHealthCheckRequest.java | 72 ++ .../model/TargetPoolsAddInstanceRequest.java | 84 ++ .../TargetPoolsRemoveHealthCheckRequest.java | 84 ++ .../TargetPoolsRemoveInstanceRequest.java | 72 ++ .../compute/model/TargetPoolsScopedList.java | 278 ++++++ .../compute/model/TargetReference.java | 63 ++ ...getSslProxiesSetBackendServiceRequest.java | 66 ++ ...getSslProxiesSetCertificateMapRequest.java | 75 ++ ...TargetSslProxiesSetProxyHeaderRequest.java | 69 ++ ...etSslProxiesSetSslCertificatesRequest.java | 69 ++ .../compute/model/TargetSslProxy.java | 355 ++++++++ .../compute/model/TargetSslProxyList.java | 383 ++++++++ .../model/TargetTcpProxiesScopedList.java | 272 ++++++ ...getTcpProxiesSetBackendServiceRequest.java | 66 ++ ...TargetTcpProxiesSetProxyHeaderRequest.java | 69 ++ .../compute/model/TargetTcpProxy.java | 358 ++++++++ .../model/TargetTcpProxyAggregatedList.java | 410 +++++++++ .../compute/model/TargetTcpProxyList.java | 383 ++++++++ .../compute/model/TargetVpnGateway.java | 475 ++++++++++ .../model/TargetVpnGatewayAggregatedList.java | 404 +++++++++ .../compute/model/TargetVpnGatewayList.java | 386 ++++++++ .../compute/model/TargetVpnGatewayParams.java | 87 ++ .../model/TargetVpnGatewaysScopedList.java | 281 ++++++ .../services/compute/model/TestFailure.java | 264 ++++++ .../compute/model/TestPermissionsRequest.java | 69 ++ .../model/TestPermissionsResponse.java | 66 ++ .../api/services/compute/model/TimeZone.java | 90 ++ .../api/services/compute/model/Uint128.java | 84 ++ .../compute/model/UpcomingMaintenance.java | 240 +++++ .../api/services/compute/model/UrlMap.java | 724 +++++++++++++++ .../services/compute/model/UrlMapList.java | 383 ++++++++ .../compute/model/UrlMapReference.java | 63 ++ .../services/compute/model/UrlMapTest.java | 270 ++++++ .../compute/model/UrlMapTestHeader.java | 90 ++ .../compute/model/UrlMapValidationResult.java | 144 +++ .../compute/model/UrlMapsAggregatedList.java | 401 ++++++++ .../compute/model/UrlMapsScopedList.java | 278 ++++++ .../compute/model/UrlMapsValidateRequest.java | 129 +++ .../model/UrlMapsValidateResponse.java | 63 ++ .../services/compute/model/UrlRewrite.java | 207 +++++ .../compute/model/UsableSubnetwork.java | 306 +++++++ .../model/UsableSubnetworkSecondaryRange.java | 99 ++ .../UsableSubnetworksAggregatedList.java | 443 +++++++++ .../compute/model/UsageExportLocation.java | 112 +++ .../compute/model/VmEndpointNatMappings.java | 87 ++ ...dpointNatMappingsInterfaceNatMappings.java | 231 +++++ ...gsInterfaceNatMappingsNatRuleMappings.java | 180 ++++ .../model/VmEndpointNatMappingsList.java | 386 ++++++++ .../model/VmExtensionPoliciesScopedList.java | 272 ++++++ .../compute/model/VmExtensionPolicy.java | 414 +++++++++ ...ExtensionPolicyAggregatedListResponse.java | 431 +++++++++ .../VmExtensionPolicyExtensionPolicy.java | 93 ++ .../VmExtensionPolicyInstanceSelector.java | 66 ++ .../model/VmExtensionPolicyLabelSelector.java | 87 ++ .../compute/model/VmExtensionPolicyList.java | 449 +++++++++ .../services/compute/model/VpnGateway.java | 474 ++++++++++ .../model/VpnGatewayAggregatedList.java | 401 ++++++++ .../compute/model/VpnGatewayList.java | 383 ++++++++ .../compute/model/VpnGatewayParams.java | 87 ++ .../compute/model/VpnGatewayStatus.java | 66 ++ ...tatusHighAvailabilityRequirementState.java | 97 ++ .../compute/model/VpnGatewayStatusTunnel.java | 117 +++ .../model/VpnGatewayStatusVpnConnection.java | 151 ++++ .../model/VpnGatewayVpnGatewayInterface.java | 177 ++++ .../model/VpnGatewaysGetStatusResponse.java | 63 ++ .../compute/model/VpnGatewaysScopedList.java | 281 ++++++ .../api/services/compute/model/VpnTunnel.java | 855 ++++++++++++++++++ .../model/VpnTunnelAggregatedList.java | 401 ++++++++ .../compute/model/VpnTunnelCipherSuite.java | 84 ++ .../services/compute/model/VpnTunnelList.java | 383 ++++++++ .../compute/model/VpnTunnelParams.java | 87 ++ .../model/VpnTunnelPhase1Algorithms.java | 126 +++ .../model/VpnTunnelPhase2Algorithms.java | 105 +++ .../compute/model/VpnTunnelsScopedList.java | 278 ++++++ .../compute/model/WafExpressionSet.java | 120 +++ .../model/WafExpressionSetExpression.java | 102 +++ 100 files changed, 24269 insertions(+) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subsetting.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TCPHealthCheck.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Tags.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxiesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetCertificateMapRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetQuicOverrideRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetSslCertificatesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstance.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstancesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPool.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddHealthCheckRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddInstanceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveHealthCheckRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveInstanceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetBackendServiceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetCertificateMapRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetProxyHeaderRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetSslCertificatesRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetBackendServiceRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetProxyHeaderRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewaysScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestFailure.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TimeZone.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Uint128.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMap.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapReference.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTestHeader.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlRewrite.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsageExportLocation.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPoliciesScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyAggregatedListResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGateway.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusHighAvailabilityRequirementState.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysGetStatusResponse.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnel.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelCipherSuite.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase1Algorithms.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase2Algorithms.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelsScopedList.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSet.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSetExpression.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subsetting.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subsetting.java new file mode 100644 index 00000000000..b64640f6758 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Subsetting.java @@ -0,0 +1,64 @@ +/* + * 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; + +/** + * Subsetting configuration for this BackendService. Currently this is applicable only for Internal + * TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director. + * + *

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 Subsetting extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policy; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPolicy() { + return policy; + } + + /** + * @param policy policy or {@code null} for none + */ + public Subsetting setPolicy(java.lang.String policy) { + this.policy = policy; + return this; + } + + @Override + public Subsetting set(String fieldName, Object value) { + return (Subsetting) super.set(fieldName, value); + } + + @Override + public Subsetting clone() { + return (Subsetting) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TCPHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TCPHealthCheck.java new file mode 100644 index 00000000000..d908ca033f0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TCPHealthCheck.java @@ -0,0 +1,249 @@ +/* + * 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 TCPHealthCheck. + * + *

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 TCPHealthCheck extends com.google.api.client.json.GenericJson { + + /** + * The TCP port number to which the health check prober sends packets. The default value is 80. + * Valid values are 1 through65535. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer port; + + /** + * Not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portName; + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String portSpecification; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, + * after establishing the TCP connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String request; + + /** + * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can + * configure the health check to pass only when the backend sends this exact response ASCII + * string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load- + * balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String response; + + /** + * The TCP port number to which the health check prober sends packets. The default value is 80. + * Valid values are 1 through65535. + * @return value or {@code null} for none + */ + public java.lang.Integer getPort() { + return port; + } + + /** + * The TCP port number to which the health check prober sends packets. The default value is 80. + * Valid values are 1 through65535. + * @param port port or {@code null} for none + */ + public TCPHealthCheck setPort(java.lang.Integer port) { + this.port = port; + return this; + } + + /** + * Not supported. + * @return value or {@code null} for none + */ + public java.lang.String getPortName() { + return portName; + } + + /** + * Not supported. + * @param portName portName or {@code null} for none + */ + public TCPHealthCheck setPortName(java.lang.String portName) { + this.portName = portName; + return this; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @return value or {@code null} for none + */ + public java.lang.String getPortSpecification() { + return portSpecification; + } + + /** + * Specifies how a port is selected for health checking. Can be one of the following values: + * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. + * Supported by backend services for passthrough load balancers and backend services for proxy + * load balancers. Not supported by target pools. The health check supports all backends supported + * by the backend service provided the backend can be health checked. For example, GCE_VM_IP + * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. + * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the + * health check port by referring to the backend service. Only supported by backend services for + * proxy load balancers. Not supported by target pools. Not supported by backend services for + * passthrough load balancers. Supports all backends that can be health checked; for + * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. + * + * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number + * specified for each endpoint in the network endpoint group. For instance group backends, the + * health check uses the port number determined by looking up the backend service's named port in + * the instance group's list of named ports. + * @param portSpecification portSpecification or {@code null} for none + */ + public TCPHealthCheck setPortSpecification(java.lang.String portSpecification) { + this.portSpecification = portSpecification; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public TCPHealthCheck setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, + * after establishing the TCP connection. + * @return value or {@code null} for none + */ + public java.lang.String getRequest() { + return request; + } + + /** + * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, + * after establishing the TCP connection. + * @param request request or {@code null} for none + */ + public TCPHealthCheck setRequest(java.lang.String request) { + this.request = request; + return this; + } + + /** + * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can + * configure the health check to pass only when the backend sends this exact response ASCII + * string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load- + * balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + * @return value or {@code null} for none + */ + public java.lang.String getResponse() { + return response; + } + + /** + * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can + * configure the health check to pass only when the backend sends this exact response ASCII + * string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load- + * balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp + * @param response response or {@code null} for none + */ + public TCPHealthCheck setResponse(java.lang.String response) { + this.response = response; + return this; + } + + @Override + public TCPHealthCheck set(String fieldName, Object value) { + return (TCPHealthCheck) super.set(fieldName, value); + } + + @Override + public TCPHealthCheck clone() { + return (TCPHealthCheck) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Tags.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Tags.java new file mode 100644 index 00000000000..b3a3461b4e3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Tags.java @@ -0,0 +1,143 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A set of instance tags. + * + *

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 Tags extends com.google.api.client.json.GenericJson { + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and + * used for optimistic locking. The fingerprint is initially generated by Compute Engine and + * changes after every request to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. + * + * To see the latest fingerprint, make get() request to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and + * used for optimistic locking. The fingerprint is initially generated by Compute Engine and + * changes after every request to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and + * used for optimistic locking. The fingerprint is initially generated by Compute Engine and + * changes after every request to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and + * used for optimistic locking. The fingerprint is initially generated by Compute Engine and + * changes after every request to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public Tags setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and + * used for optimistic locking. The fingerprint is initially generated by Compute Engine and + * changes after every request to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. + * + * To see the latest fingerprint, make get() request to the instance. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Tags encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. + * @param items items or {@code null} for none + */ + public Tags setItems(java.util.List items) { + this.items = items; + return this; + } + + @Override + public Tags set(String fieldName, Object value) { + return (Tags) super.set(fieldName, value); + } + + @Override + public Tags clone() { + return (Tags) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java new file mode 100644 index 00000000000..e5b790d1254 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -0,0 +1,374 @@ +/* + * 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 Target gRPC Proxy resource. + * + * A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. + * Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a + * target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is + * routed to gRPC backend services. + * + *

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 TargetGrpcProxy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetGrpcProxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] 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] Server-defined URL with id for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The + * protocol field in the BackendService must be set to GRPC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** + * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC + * applications without using a sidecar proxy. This will enable configuration checks on urlMap and + * its referenced BackendServices to not allow unsupported features. A gRPC application must use + * "xds:" scheme in the target URI of the service it is connecting to. If false, indicates that + * the BackendServices referenced by the urlMap will be accessed by gRPC applications via a + * sidecar proxy. In this case, a gRPC application must not use "xds:" scheme in the target URI of + * the service it is connecting to + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateForProxyless; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetGrpcProxy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetGrpcProxy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetGrpcProxy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetGrpcProxy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public TargetGrpcProxy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetGrpcProxy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public TargetGrpcProxy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetGrpcProxy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetGrpcProxy 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 TargetGrpcProxy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL with id for the resource. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public TargetGrpcProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The + * protocol field in the BackendService must be set to GRPC. + * @return value or {@code null} for none + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** + * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The + * protocol field in the BackendService must be set to GRPC. + * @param urlMap urlMap or {@code null} for none + */ + public TargetGrpcProxy setUrlMap(java.lang.String urlMap) { + this.urlMap = urlMap; + return this; + } + + /** + * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC + * applications without using a sidecar proxy. This will enable configuration checks on urlMap and + * its referenced BackendServices to not allow unsupported features. A gRPC application must use + * "xds:" scheme in the target URI of the service it is connecting to. If false, indicates that + * the BackendServices referenced by the urlMap will be accessed by gRPC applications via a + * sidecar proxy. In this case, a gRPC application must not use "xds:" scheme in the target URI of + * the service it is connecting to + * @return value or {@code null} for none + */ + public java.lang.Boolean getValidateForProxyless() { + return validateForProxyless; + } + + /** + * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC + * applications without using a sidecar proxy. This will enable configuration checks on urlMap and + * its referenced BackendServices to not allow unsupported features. A gRPC application must use + * "xds:" scheme in the target URI of the service it is connecting to. If false, indicates that + * the BackendServices referenced by the urlMap will be accessed by gRPC applications via a + * sidecar proxy. In this case, a gRPC application must not use "xds:" scheme in the target URI of + * the service it is connecting to + * @param validateForProxyless validateForProxyless or {@code null} for none + */ + public TargetGrpcProxy setValidateForProxyless(java.lang.Boolean validateForProxyless) { + this.validateForProxyless = validateForProxyless; + return this; + } + + @Override + public TargetGrpcProxy set(String fieldName, Object value) { + return (TargetGrpcProxy) super.set(fieldName, value); + } + + @Override + public TargetGrpcProxy clone() { + return (TargetGrpcProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java new file mode 100644 index 00000000000..1371434f341 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -0,0 +1,386 @@ +/* + * 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 TargetGrpcProxyList. + * + *

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 TargetGrpcProxyList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetGrpcProxy 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 TargetGrpcProxy 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(TargetGrpcProxy.class); + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetGrpcProxyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetGrpcProxy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetGrpcProxy resources. + * @param items items or {@code null} for none + */ + public TargetGrpcProxyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetGrpcProxyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetGrpcProxyList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetGrpcProxyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetGrpcProxyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetGrpcProxyList set(String fieldName, Object value) { + return (TargetGrpcProxyList) super.set(fieldName, value); + } + + @Override + public TargetGrpcProxyList clone() { + return (TargetGrpcProxyList) 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 TargetGrpcProxyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxiesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxiesScopedList.java new file mode 100644 index 00000000000..f632ed535b0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxiesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 TargetHttpProxiesScopedList. + * + *

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 TargetHttpProxiesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of TargetHttpProxies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetHttpProxies; + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of TargetHttpProxies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getTargetHttpProxies() { + return targetHttpProxies; + } + + /** + * A list of TargetHttpProxies contained in this scope. + * @param targetHttpProxies targetHttpProxies or {@code null} for none + */ + public TargetHttpProxiesScopedList setTargetHttpProxies(java.util.List targetHttpProxies) { + this.targetHttpProxies = targetHttpProxies; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public TargetHttpProxiesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetHttpProxiesScopedList set(String fieldName, Object value) { + return (TargetHttpProxiesScopedList) super.set(fieldName, value); + } + + @Override + public TargetHttpProxiesScopedList clone() { + return (TargetHttpProxiesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 TargetHttpProxiesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java new file mode 100644 index 00000000000..d848ca9df49 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -0,0 +1,435 @@ +/* + * 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 Target HTTP Proxy resource. + * + * Google Compute Engine has two Target HTTP Proxy resources: + * + * * [Global](/compute/docs/reference/rest/v1/targetHttpProxies) * + * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) + * + * A target HTTP proxy is a component of Google Cloud HTTP load balancers. + * + * * targetHttpProxies are used by global external Application Load Balancers, classic Application + * Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * + * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional + * external Application Load Balancers. + * + * Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. + * For more information, readUsing Target Proxies and Forwarding rule concepts. + * + *

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 TargetHttpProxy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpProxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Specifies how long to keep a connection open, after completing a response, while there is no + * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 + * seconds) will be used. + * + * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the + * maximum allowed value is 1200 seconds. + * + * For classic Application Load Balancers, this option is not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer httpKeepAliveTimeoutSec; + + /** + * [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] Type of resource. Always compute#targetHttpProxy for target HTTP + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean proxyBind; + + /** + * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This + * field is not applicable to global Target HTTP Proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * URL to the UrlMap resource that defines the mapping from URL to the BackendService. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetHttpProxy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpProxy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpProxy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpProxy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public TargetHttpProxy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- + * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpProxy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TargetHttpProxy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Specifies how long to keep a connection open, after completing a response, while there is no + * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 + * seconds) will be used. + * + * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the + * maximum allowed value is 1200 seconds. + * + * For classic Application Load Balancers, this option is not supported. + * @return value or {@code null} for none + */ + public java.lang.Integer getHttpKeepAliveTimeoutSec() { + return httpKeepAliveTimeoutSec; + } + + /** + * Specifies how long to keep a connection open, after completing a response, while there is no + * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 + * seconds) will be used. + * + * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the + * maximum allowed value is 1200 seconds. + * + * For classic Application Load Balancers, this option is not supported. + * @param httpKeepAliveTimeoutSec httpKeepAliveTimeoutSec or {@code null} for none + */ + public TargetHttpProxy setHttpKeepAliveTimeoutSec(java.lang.Integer httpKeepAliveTimeoutSec) { + this.httpKeepAliveTimeoutSec = httpKeepAliveTimeoutSec; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetHttpProxy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetHttpProxy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetHttpProxy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getProxyBind() { + return proxyBind; + } + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * @param proxyBind proxyBind or {@code null} for none + */ + public TargetHttpProxy setProxyBind(java.lang.Boolean proxyBind) { + this.proxyBind = proxyBind; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This + * field is not applicable to global Target HTTP Proxies. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This + * field is not applicable to global Target HTTP Proxies. + * @param region region or {@code null} for none + */ + public TargetHttpProxy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetHttpProxy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * URL to the UrlMap resource that defines the mapping from URL to the BackendService. + * @return value or {@code null} for none + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** + * URL to the UrlMap resource that defines the mapping from URL to the BackendService. + * @param urlMap urlMap or {@code null} for none + */ + public TargetHttpProxy setUrlMap(java.lang.String urlMap) { + this.urlMap = urlMap; + return this; + } + + @Override + public TargetHttpProxy set(String fieldName, Object value) { + return (TargetHttpProxy) super.set(fieldName, value); + } + + @Override + public TargetHttpProxy clone() { + return (TargetHttpProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java new file mode 100644 index 00000000000..501e6223943 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -0,0 +1,204 @@ +/* + * 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 TargetHttpProxyAggregatedList. + * + *

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 TargetHttpProxyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetHttpProxiesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider TargetHttpProxiesScopedList 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(TargetHttpProxiesScopedList.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for + * lists of Target HTTP Proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] 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 TargetHttpProxyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetHttpProxiesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of TargetHttpProxiesScopedList resources. + * @param items items or {@code null} for none + */ + public TargetHttpProxyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for + * lists of Target HTTP Proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for + * lists of Target HTTP Proxies. + * @param kind kind or {@code null} for none + */ + public TargetHttpProxyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetHttpProxyAggregatedList 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 TargetHttpProxyAggregatedList 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 TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + @Override + public TargetHttpProxyAggregatedList set(String fieldName, Object value) { + return (TargetHttpProxyAggregatedList) super.set(fieldName, value); + } + + @Override + public TargetHttpProxyAggregatedList clone() { + return (TargetHttpProxyAggregatedList) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java new file mode 100644 index 00000000000..f4e7687c1c9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -0,0 +1,386 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A list of TargetHttpProxy resources. + * + *

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 TargetHttpProxyList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetHttpProxy 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 TargetHttpProxy 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(TargetHttpProxy.class); + } + + /** + * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetHttpProxyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetHttpProxy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetHttpProxy resources. + * @param items items or {@code null} for none + */ + public TargetHttpProxyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetHttpProxyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetHttpProxyList 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 TargetHttpProxyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetHttpProxyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetHttpProxyList set(String fieldName, Object value) { + return (TargetHttpProxyList) super.set(fieldName, value); + } + + @Override + public TargetHttpProxyList clone() { + return (TargetHttpProxyList) 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 TargetHttpProxyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesScopedList.java new file mode 100644 index 00000000000..42e5de2bbe8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 TargetHttpsProxiesScopedList. + * + *

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 TargetHttpsProxiesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of TargetHttpsProxies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetHttpsProxies; + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of TargetHttpsProxies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getTargetHttpsProxies() { + return targetHttpsProxies; + } + + /** + * A list of TargetHttpsProxies contained in this scope. + * @param targetHttpsProxies targetHttpsProxies or {@code null} for none + */ + public TargetHttpsProxiesScopedList setTargetHttpsProxies(java.util.List targetHttpsProxies) { + this.targetHttpsProxies = targetHttpsProxies; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public TargetHttpsProxiesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetHttpsProxiesScopedList set(String fieldName, Object value) { + return (TargetHttpsProxiesScopedList) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxiesScopedList clone() { + return (TargetHttpsProxiesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 TargetHttpsProxiesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetCertificateMapRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetCertificateMapRequest.java new file mode 100644 index 00000000000..48719d7ac0e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetCertificateMapRequest.java @@ -0,0 +1,75 @@ +/* + * 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 TargetHttpsProxiesSetCertificateMapRequest. + * + *

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 TargetHttpsProxiesSetCertificateMapRequest extends com.google.api.client.json.GenericJson { + + /** + * URL of the Certificate Map to associate with this TargetHttpsProxy. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificateMap; + + /** + * URL of the Certificate Map to associate with this TargetHttpsProxy. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @return value or {@code null} for none + */ + public java.lang.String getCertificateMap() { + return certificateMap; + } + + /** + * URL of the Certificate Map to associate with this TargetHttpsProxy. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @param certificateMap certificateMap or {@code null} for none + */ + public TargetHttpsProxiesSetCertificateMapRequest setCertificateMap(java.lang.String certificateMap) { + this.certificateMap = certificateMap; + return this; + } + + @Override + public TargetHttpsProxiesSetCertificateMapRequest set(String fieldName, Object value) { + return (TargetHttpsProxiesSetCertificateMapRequest) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxiesSetCertificateMapRequest clone() { + return (TargetHttpsProxiesSetCertificateMapRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetQuicOverrideRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetQuicOverrideRequest.java new file mode 100644 index 00000000000..94416f8740d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetQuicOverrideRequest.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; + +/** + * Model definition for TargetHttpsProxiesSetQuicOverrideRequest. + * + *

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 TargetHttpsProxiesSetQuicOverrideRequest extends com.google.api.client.json.GenericJson { + + /** + * QUIC policy for the TargetHttpsProxy resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String quicOverride; + + /** + * QUIC policy for the TargetHttpsProxy resource. + * @return value or {@code null} for none + */ + public java.lang.String getQuicOverride() { + return quicOverride; + } + + /** + * QUIC policy for the TargetHttpsProxy resource. + * @param quicOverride quicOverride or {@code null} for none + */ + public TargetHttpsProxiesSetQuicOverrideRequest setQuicOverride(java.lang.String quicOverride) { + this.quicOverride = quicOverride; + return this; + } + + @Override + public TargetHttpsProxiesSetQuicOverrideRequest set(String fieldName, Object value) { + return (TargetHttpsProxiesSetQuicOverrideRequest) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxiesSetQuicOverrideRequest clone() { + return (TargetHttpsProxiesSetQuicOverrideRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetSslCertificatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetSslCertificatesRequest.java new file mode 100644 index 00000000000..385c964f4cf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxiesSetSslCertificatesRequest.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; + +/** + * Model definition for TargetHttpsProxiesSetSslCertificatesRequest. + * + *

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 TargetHttpsProxiesSetSslCertificatesRequest extends com.google.api.client.json.GenericJson { + + /** + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least + * one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslCertificates; + + /** + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least + * one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + * @return value or {@code null} for none + */ + public java.util.List getSslCertificates() { + return sslCertificates; + } + + /** + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least + * one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + * @param sslCertificates sslCertificates or {@code null} for none + */ + public TargetHttpsProxiesSetSslCertificatesRequest setSslCertificates(java.util.List sslCertificates) { + this.sslCertificates = sslCertificates; + return this; + } + + @Override + public TargetHttpsProxiesSetSslCertificatesRequest set(String fieldName, Object value) { + return (TargetHttpsProxiesSetSslCertificatesRequest) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxiesSetSslCertificatesRequest clone() { + return (TargetHttpsProxiesSetSslCertificatesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java new file mode 100644 index 00000000000..d83defd4376 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -0,0 +1,810 @@ +/* + * 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 Target HTTPS Proxy resource. + * + * Google Compute Engine has two Target HTTPS Proxy resources: + * + * * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * + * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) + * + * A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. + * + * * targetHttpsProxies are used by global external Application Load Balancers, classic + * Application Load Balancers, cross-region internal Application Load Balancers, and Traffic + * Director. * regionTargetHttpsProxies are used by regional internal Application Load Balancers + * and regional external Application Load Balancers. + * + * Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. + * For more information, readUsing Target Proxies and Forwarding rule concepts. + * + *

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 TargetHttpsProxy extends com.google.api.client.json.GenericJson { + + /** + * Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how + * the proxy should authorize inbound traffic. If left blank, access will not be restricted by an + * authorization policy. + * + * Refer to the AuthorizationPolicy resource for additional details. + * + * authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules + * with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. + * + * Note: This field currently has no impact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationPolicy; + + /** + * URL of a certificate map that identifies a certificate map associated with the given target + * proxy. This field can only be set for Global external Application Load Balancer or Classic + * Application Load Balancer. For other products use Certificate Manager Certificates instead. + * + * If set, sslCertificates will be ignored. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificateMap; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- + * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpsProxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Specifies how long to keep a connection open, after completing a response, while there is no + * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 + * seconds) will be used. + * + * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the + * maximum allowed value is 1200 seconds. + * + * For classic Application Load Balancers, this option is not supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer httpKeepAliveTimeoutSec; + + /** + * [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] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean proxyBind; + + /** + * Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines + * whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, + * ENABLE, orDISABLE. - When quic-override is set to NONE, Google manages whether QUIC + * is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when + * possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. + * - If the quic-override flag is not specified,NONE is implied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String quicOverride; + + /** + * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This + * field is not applicable to global TargetHttpsProxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the + * proxy should authenticate inbound traffic. + * + * serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with + * theloadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED or + * INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional + * forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For + * details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with + * EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy + * documentation. + * + * If left blank, communications are not encrypted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverTlsPolicy; + + /** + * URLs to SslCertificate resources that are used to authenticate connections between users and + * the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply + * when the load balancing scheme is set to INTERNAL_SELF_MANAGED. + * + * The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate + * resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. + * Certificate Manager Certificates must include the certificatemanager API namespace. Using + * Certificate Manager Certificates in this field is not supported by Global external Application + * Load Balancer or Classic Application Load Balancer, use certificate_map instead. + * + * Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager + * Certificates. + * + * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis + * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific + * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour + * ceName}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslCertificates; + + /** + * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not + * set, the TargetHttpsProxy resource has no SSL policy configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** + * Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early + * Data allows a TLS resumption handshake to include the initial application payload (a HTTP + * request) alongside the handshake, reducing the effective round trips to "zero". This applies to + * TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). + * + * This can improve application performance, especially on networks where interruptions may be + * common, such as on mobile. + * + * Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a + * value of "1", to allow the backend to determine whether Early Data was included. + * + * Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend + * before the handshake has fully completed. Applications that allow idempotent HTTP methods to + * make non-idempotent changes, such as a GET request updating a database, should not accept Early + * Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a + * HTTP 425 (Too Early) status code, in order to remain RFC compliant. + * + * The default value is DISABLED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tlsEarlyData; + + /** + * A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL + * to the BackendService. For example, the following are all valid URLs for specifying a URL map: + * - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map - + * projects/project/global/urlMaps/url-map - global/urlMaps/url-map + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** + * Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how + * the proxy should authorize inbound traffic. If left blank, access will not be restricted by an + * authorization policy. + * + * Refer to the AuthorizationPolicy resource for additional details. + * + * authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules + * with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. + * + * Note: This field currently has no impact. + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationPolicy() { + return authorizationPolicy; + } + + /** + * Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how + * the proxy should authorize inbound traffic. If left blank, access will not be restricted by an + * authorization policy. + * + * Refer to the AuthorizationPolicy resource for additional details. + * + * authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules + * with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. + * + * Note: This field currently has no impact. + * @param authorizationPolicy authorizationPolicy or {@code null} for none + */ + public TargetHttpsProxy setAuthorizationPolicy(java.lang.String authorizationPolicy) { + this.authorizationPolicy = authorizationPolicy; + return this; + } + + /** + * URL of a certificate map that identifies a certificate map associated with the given target + * proxy. This field can only be set for Global external Application Load Balancer or Classic + * Application Load Balancer. For other products use Certificate Manager Certificates instead. + * + * If set, sslCertificates will be ignored. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @return value or {@code null} for none + */ + public java.lang.String getCertificateMap() { + return certificateMap; + } + + /** + * URL of a certificate map that identifies a certificate map associated with the given target + * proxy. This field can only be set for Global external Application Load Balancer or Classic + * Application Load Balancer. For other products use Certificate Manager Certificates instead. + * + * If set, sslCertificates will be ignored. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @param certificateMap certificateMap or {@code null} for none + */ + public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { + this.certificateMap = certificateMap; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetHttpsProxy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- + * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpsProxy. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- + * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpsProxy. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- + * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpsProxy. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public TargetHttpsProxy setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- + * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the + * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the TargetHttpsProxy. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TargetHttpsProxy encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Specifies how long to keep a connection open, after completing a response, while there is no + * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 + * seconds) will be used. + * + * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the + * maximum allowed value is 1200 seconds. + * + * For classic Application Load Balancers, this option is not supported. + * @return value or {@code null} for none + */ + public java.lang.Integer getHttpKeepAliveTimeoutSec() { + return httpKeepAliveTimeoutSec; + } + + /** + * Specifies how long to keep a connection open, after completing a response, while there is no + * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 + * seconds) will be used. + * + * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the + * maximum allowed value is 1200 seconds. + * + * For classic Application Load Balancers, this option is not supported. + * @param httpKeepAliveTimeoutSec httpKeepAliveTimeoutSec or {@code null} for none + */ + public TargetHttpsProxy setHttpKeepAliveTimeoutSec(java.lang.Integer httpKeepAliveTimeoutSec) { + this.httpKeepAliveTimeoutSec = httpKeepAliveTimeoutSec; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetHttpsProxy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetHttpsProxy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetHttpsProxy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getProxyBind() { + return proxyBind; + } + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * @param proxyBind proxyBind or {@code null} for none + */ + public TargetHttpsProxy setProxyBind(java.lang.Boolean proxyBind) { + this.proxyBind = proxyBind; + return this; + } + + /** + * Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines + * whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, + * ENABLE, orDISABLE. - When quic-override is set to NONE, Google manages whether QUIC + * is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when + * possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. + * - If the quic-override flag is not specified,NONE is implied. + * @return value or {@code null} for none + */ + public java.lang.String getQuicOverride() { + return quicOverride; + } + + /** + * Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines + * whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, + * ENABLE, orDISABLE. - When quic-override is set to NONE, Google manages whether QUIC + * is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when + * possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. + * - If the quic-override flag is not specified,NONE is implied. + * @param quicOverride quicOverride or {@code null} for none + */ + public TargetHttpsProxy setQuicOverride(java.lang.String quicOverride) { + this.quicOverride = quicOverride; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This + * field is not applicable to global TargetHttpsProxies. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This + * field is not applicable to global TargetHttpsProxies. + * @param region region or {@code null} for none + */ + public TargetHttpsProxy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetHttpsProxy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the + * proxy should authenticate inbound traffic. + * + * serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with + * theloadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED or + * INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional + * forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For + * details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with + * EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy + * documentation. + * + * If left blank, communications are not encrypted. + * @return value or {@code null} for none + */ + public java.lang.String getServerTlsPolicy() { + return serverTlsPolicy; + } + + /** + * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the + * proxy should authenticate inbound traffic. + * + * serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with + * theloadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED or + * INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional + * forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For + * details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with + * EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy + * documentation. + * + * If left blank, communications are not encrypted. + * @param serverTlsPolicy serverTlsPolicy or {@code null} for none + */ + public TargetHttpsProxy setServerTlsPolicy(java.lang.String serverTlsPolicy) { + this.serverTlsPolicy = serverTlsPolicy; + return this; + } + + /** + * URLs to SslCertificate resources that are used to authenticate connections between users and + * the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply + * when the load balancing scheme is set to INTERNAL_SELF_MANAGED. + * + * The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate + * resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. + * Certificate Manager Certificates must include the certificatemanager API namespace. Using + * Certificate Manager Certificates in this field is not supported by Global external Application + * Load Balancer or Classic Application Load Balancer, use certificate_map instead. + * + * Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager + * Certificates. + * + * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis + * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific + * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour + * ceName}. + * @return value or {@code null} for none + */ + public java.util.List getSslCertificates() { + return sslCertificates; + } + + /** + * URLs to SslCertificate resources that are used to authenticate connections between users and + * the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply + * when the load balancing scheme is set to INTERNAL_SELF_MANAGED. + * + * The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate + * resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. + * Certificate Manager Certificates must include the certificatemanager API namespace. Using + * Certificate Manager Certificates in this field is not supported by Global external Application + * Load Balancer or Classic Application Load Balancer, use certificate_map instead. + * + * Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager + * Certificates. + * + * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis + * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific + * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour + * ceName}. + * @param sslCertificates sslCertificates or {@code null} for none + */ + public TargetHttpsProxy setSslCertificates(java.util.List sslCertificates) { + this.sslCertificates = sslCertificates; + return this; + } + + /** + * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not + * set, the TargetHttpsProxy resource has no SSL policy configured. + * @return value or {@code null} for none + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not + * set, the TargetHttpsProxy resource has no SSL policy configured. + * @param sslPolicy sslPolicy or {@code null} for none + */ + public TargetHttpsProxy setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + return this; + } + + /** + * Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early + * Data allows a TLS resumption handshake to include the initial application payload (a HTTP + * request) alongside the handshake, reducing the effective round trips to "zero". This applies to + * TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). + * + * This can improve application performance, especially on networks where interruptions may be + * common, such as on mobile. + * + * Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a + * value of "1", to allow the backend to determine whether Early Data was included. + * + * Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend + * before the handshake has fully completed. Applications that allow idempotent HTTP methods to + * make non-idempotent changes, such as a GET request updating a database, should not accept Early + * Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a + * HTTP 425 (Too Early) status code, in order to remain RFC compliant. + * + * The default value is DISABLED. + * @return value or {@code null} for none + */ + public java.lang.String getTlsEarlyData() { + return tlsEarlyData; + } + + /** + * Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early + * Data allows a TLS resumption handshake to include the initial application payload (a HTTP + * request) alongside the handshake, reducing the effective round trips to "zero". This applies to + * TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). + * + * This can improve application performance, especially on networks where interruptions may be + * common, such as on mobile. + * + * Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a + * value of "1", to allow the backend to determine whether Early Data was included. + * + * Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend + * before the handshake has fully completed. Applications that allow idempotent HTTP methods to + * make non-idempotent changes, such as a GET request updating a database, should not accept Early + * Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a + * HTTP 425 (Too Early) status code, in order to remain RFC compliant. + * + * The default value is DISABLED. + * @param tlsEarlyData tlsEarlyData or {@code null} for none + */ + public TargetHttpsProxy setTlsEarlyData(java.lang.String tlsEarlyData) { + this.tlsEarlyData = tlsEarlyData; + return this; + } + + /** + * A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL + * to the BackendService. For example, the following are all valid URLs for specifying a URL map: + * - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map - + * projects/project/global/urlMaps/url-map - global/urlMaps/url-map + * @return value or {@code null} for none + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** + * A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL + * to the BackendService. For example, the following are all valid URLs for specifying a URL map: + * - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map - + * projects/project/global/urlMaps/url-map - global/urlMaps/url-map + * @param urlMap urlMap or {@code null} for none + */ + public TargetHttpsProxy setUrlMap(java.lang.String urlMap) { + this.urlMap = urlMap; + return this; + } + + @Override + public TargetHttpsProxy set(String fieldName, Object value) { + return (TargetHttpsProxy) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxy clone() { + return (TargetHttpsProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java new file mode 100644 index 00000000000..cadcf4a6b80 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -0,0 +1,410 @@ +/* + * 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 TargetHttpsProxyAggregatedList. + * + *

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 TargetHttpsProxyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetHttpsProxiesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider TargetHttpsProxiesScopedList 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(TargetHttpsProxiesScopedList.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for + * lists of Target HTTP Proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 TargetHttpsProxyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetHttpsProxiesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of TargetHttpsProxiesScopedList resources. + * @param items items or {@code null} for none + */ + public TargetHttpsProxyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for + * lists of Target HTTP Proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for + * lists of Target HTTP Proxies. + * @param kind kind or {@code null} for none + */ + public TargetHttpsProxyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetHttpsProxyAggregatedList 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 TargetHttpsProxyAggregatedList 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 TargetHttpsProxyAggregatedList 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 TargetHttpsProxyAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetHttpsProxyAggregatedList set(String fieldName, Object value) { + return (TargetHttpsProxyAggregatedList) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxyAggregatedList clone() { + return (TargetHttpsProxyAggregatedList) 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 TargetHttpsProxyAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java new file mode 100644 index 00000000000..e568ea504f9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of TargetHttpsProxy resources. + * + *

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 TargetHttpsProxyList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetHttpsProxy 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 TargetHttpsProxy 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(TargetHttpsProxy.class); + } + + /** + * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetHttpsProxyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetHttpsProxy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetHttpsProxy resources. + * @param items items or {@code null} for none + */ + public TargetHttpsProxyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetHttpsProxyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetHttpsProxyList 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 TargetHttpsProxyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetHttpsProxyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetHttpsProxyList set(String fieldName, Object value) { + return (TargetHttpsProxyList) super.set(fieldName, value); + } + + @Override + public TargetHttpsProxyList clone() { + return (TargetHttpsProxyList) 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 TargetHttpsProxyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstance.java new file mode 100644 index 00000000000..be7ee592ef0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -0,0 +1,346 @@ +/* + * 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 Target Instance resource. + * + * You can use a target instance to handle traffic for one or more forwarding rules, which is ideal + * for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or + * UDP. For more information, readTarget instances. + * + *

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 TargetInstance extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [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; + + /** + * A URL to the virtual machine instance that handles traffic for this target instance. When + * creating a target instance, you can provide the fully-qualified URL or a valid partial URL to + * the desired virtual machine. For example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance - zones/zone/instances/instance + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target + * instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the + * destination IP address of the forwarding rule referencing the target instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String natPolicy; + + /** + * The URL of the network this target instance uses to forward traffic. If not specified, the + * traffic will be forwarded to the network that the default network interface belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * [Output Only] The resource URL for the security policy associated with this target instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * [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] URL of the zone where the target instance resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetInstance setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetInstance setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * A URL to the virtual machine instance that handles traffic for this target instance. When + * creating a target instance, you can provide the fully-qualified URL or a valid partial URL to + * the desired virtual machine. For example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance - zones/zone/instances/instance + * @return value or {@code null} for none + */ + public java.lang.String getInstance() { + return instance; + } + + /** + * A URL to the virtual machine instance that handles traffic for this target instance. When + * creating a target instance, you can provide the fully-qualified URL or a valid partial URL to + * the desired virtual machine. For example, the following are all valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - + * projects/project/zones/zone/instances/instance - zones/zone/instances/instance + * @param instance instance or {@code null} for none + */ + public TargetInstance setInstance(java.lang.String instance) { + this.instance = instance; + return this; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target + * instances. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target + * instances. + * @param kind kind or {@code null} for none + */ + public TargetInstance setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetInstance setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the + * destination IP address of the forwarding rule referencing the target instance. + * @return value or {@code null} for none + */ + public java.lang.String getNatPolicy() { + return natPolicy; + } + + /** + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the + * destination IP address of the forwarding rule referencing the target instance. + * @param natPolicy natPolicy or {@code null} for none + */ + public TargetInstance setNatPolicy(java.lang.String natPolicy) { + this.natPolicy = natPolicy; + return this; + } + + /** + * The URL of the network this target instance uses to forward traffic. If not specified, the + * traffic will be forwarded to the network that the default network interface belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * The URL of the network this target instance uses to forward traffic. If not specified, the + * traffic will be forwarded to the network that the default network interface belongs to. + * @param network network or {@code null} for none + */ + public TargetInstance setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * [Output Only] The resource URL for the security policy associated with this target instance. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * [Output Only] The resource URL for the security policy associated with this target instance. + * @param securityPolicy securityPolicy or {@code null} for none + */ + public TargetInstance setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetInstance setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] URL of the zone where the target instance resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. [Output Only] URL of the zone where the target instance resides. You must specify + * this field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param zone zone or {@code null} for none + */ + public TargetInstance setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public TargetInstance set(String fieldName, Object value) { + return (TargetInstance) super.set(fieldName, value); + } + + @Override + public TargetInstance clone() { + return (TargetInstance) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java new file mode 100644 index 00000000000..2189db52aa8 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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 TargetInstanceAggregatedList. + * + *

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 TargetInstanceAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetInstance resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 TargetInstanceAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetInstance resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of TargetInstance resources. + * @param items items or {@code null} for none + */ + public TargetInstanceAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public TargetInstanceAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetInstanceAggregatedList 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 TargetInstanceAggregatedList 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 TargetInstanceAggregatedList 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 TargetInstanceAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetInstanceAggregatedList set(String fieldName, Object value) { + return (TargetInstanceAggregatedList) super.set(fieldName, value); + } + + @Override + public TargetInstanceAggregatedList clone() { + return (TargetInstanceAggregatedList) 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 TargetInstanceAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java new file mode 100644 index 00000000000..227be73cad1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of TargetInstance resources. + * + *

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 TargetInstanceList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetInstance 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 TargetInstance 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(TargetInstance.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetInstanceList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetInstance resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetInstance resources. + * @param items items or {@code null} for none + */ + public TargetInstanceList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public TargetInstanceList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetInstanceList 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 TargetInstanceList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetInstanceList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetInstanceList set(String fieldName, Object value) { + return (TargetInstanceList) super.set(fieldName, value); + } + + @Override + public TargetInstanceList clone() { + return (TargetInstanceList) 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 TargetInstanceListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetInstancesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstancesScopedList.java new file mode 100644 index 00000000000..74bc750f61e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetInstancesScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 TargetInstancesScopedList. + * + *

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 TargetInstancesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of target instances contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetInstances; + + static { + // hack to force ProGuard to consider TargetInstance 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(TargetInstance.class); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of target instances contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getTargetInstances() { + return targetInstances; + } + + /** + * A list of target instances contained in this scope. + * @param targetInstances targetInstances or {@code null} for none + */ + public TargetInstancesScopedList setTargetInstances(java.util.List targetInstances) { + this.targetInstances = targetInstances; + return this; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @param warning warning or {@code null} for none + */ + public TargetInstancesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetInstancesScopedList set(String fieldName, Object value) { + return (TargetInstancesScopedList) super.set(fieldName, value); + } + + @Override + public TargetInstancesScopedList clone() { + return (TargetInstancesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + */ + 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 TargetInstancesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPool.java new file mode 100644 index 00000000000..e921413c1b5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -0,0 +1,454 @@ +/* + * 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 Target Pool resource. + * + * Target pools are used with external passthrough Network Load Balancers. A target pool references + * member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target + * pool. For more information, readUsing target pools. + * + *

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 TargetPool extends com.google.api.client.json.GenericJson { + + /** + * The server-defined URL for the resource. This field is applicable only when the containing + * target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is + * properly set to a value between [0, 1]. backupPool and failoverRatio together define the + * fallback behavior of the primary target pool: if the ratio of the healthy instances in the + * primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be + * directed to the backup pool. + * + * In case where failoverRatio and backupPool are not set, or all the instances in the backup pool + * are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where + * traffic will be spread to the healthy instances with the best effort, or to all instances when + * no instance is healthy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backupPool; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * This field is applicable only when the containing target pool is serving a forwarding rule as + * the primary pool (i.e., not as a backup pool to some other target pool). The value of the field + * must be in [0, 1]. + * + * If set, backupPool must also be set. They together define the fallback behavior of the primary + * target pool: if the ratio of the healthy instances in the primary pool is at or below this + * number, traffic arriving at the load-balanced IP will be directed to the backup pool. + * + * In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, + * the traffic will be directed back to the primary pool in the "force" mode, where traffic will + * be spread to the healthy instances with the best effort, or to all instances when no instance + * is healthy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float failoverRatio; + + /** + * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy + * if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one + * health check may be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthChecks; + + /** + * [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; + + /** + * A list of resource URLs to the virtual machine instances serving this pool. They must live in + * zones contained in the same region as this pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + /** + * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] URL of the region where the target pool resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [Output Only] The resource URL for the security policy associated with this target pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** + * [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; + + /** + * Session affinity option, must be one of the following values: NONE: Connections from the same + * client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client + * IP will go to the same instance in the pool while that instance remains healthy. + * CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to + * the same instance in the pool while that instance remains healthy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionAffinity; + + /** + * The server-defined URL for the resource. This field is applicable only when the containing + * target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is + * properly set to a value between [0, 1]. backupPool and failoverRatio together define the + * fallback behavior of the primary target pool: if the ratio of the healthy instances in the + * primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be + * directed to the backup pool. + * + * In case where failoverRatio and backupPool are not set, or all the instances in the backup pool + * are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where + * traffic will be spread to the healthy instances with the best effort, or to all instances when + * no instance is healthy. + * @return value or {@code null} for none + */ + public java.lang.String getBackupPool() { + return backupPool; + } + + /** + * The server-defined URL for the resource. This field is applicable only when the containing + * target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is + * properly set to a value between [0, 1]. backupPool and failoverRatio together define the + * fallback behavior of the primary target pool: if the ratio of the healthy instances in the + * primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be + * directed to the backup pool. + * + * In case where failoverRatio and backupPool are not set, or all the instances in the backup pool + * are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where + * traffic will be spread to the healthy instances with the best effort, or to all instances when + * no instance is healthy. + * @param backupPool backupPool or {@code null} for none + */ + public TargetPool setBackupPool(java.lang.String backupPool) { + this.backupPool = backupPool; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetPool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * This field is applicable only when the containing target pool is serving a forwarding rule as + * the primary pool (i.e., not as a backup pool to some other target pool). The value of the field + * must be in [0, 1]. + * + * If set, backupPool must also be set. They together define the fallback behavior of the primary + * target pool: if the ratio of the healthy instances in the primary pool is at or below this + * number, traffic arriving at the load-balanced IP will be directed to the backup pool. + * + * In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, + * the traffic will be directed back to the primary pool in the "force" mode, where traffic will + * be spread to the healthy instances with the best effort, or to all instances when no instance + * is healthy. + * @return value or {@code null} for none + */ + public java.lang.Float getFailoverRatio() { + return failoverRatio; + } + + /** + * This field is applicable only when the containing target pool is serving a forwarding rule as + * the primary pool (i.e., not as a backup pool to some other target pool). The value of the field + * must be in [0, 1]. + * + * If set, backupPool must also be set. They together define the fallback behavior of the primary + * target pool: if the ratio of the healthy instances in the primary pool is at or below this + * number, traffic arriving at the load-balanced IP will be directed to the backup pool. + * + * In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, + * the traffic will be directed back to the primary pool in the "force" mode, where traffic will + * be spread to the healthy instances with the best effort, or to all instances when no instance + * is healthy. + * @param failoverRatio failoverRatio or {@code null} for none + */ + public TargetPool setFailoverRatio(java.lang.Float failoverRatio) { + this.failoverRatio = failoverRatio; + return this; + } + + /** + * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy + * if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one + * health check may be specified. + * @return value or {@code null} for none + */ + public java.util.List getHealthChecks() { + return healthChecks; + } + + /** + * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy + * if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one + * health check may be specified. + * @param healthChecks healthChecks or {@code null} for none + */ + public TargetPool setHealthChecks(java.util.List healthChecks) { + this.healthChecks = healthChecks; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetPool setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * A list of resource URLs to the virtual machine instances serving this pool. They must live in + * zones contained in the same region as this pool. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * A list of resource URLs to the virtual machine instances serving this pool. They must live in + * zones contained in the same region as this pool. + * @param instances instances or {@code null} for none + */ + public TargetPool setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * @param kind kind or {@code null} for none + */ + public TargetPool setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetPool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the target pool resides. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the target pool resides. + * @param region region or {@code null} for none + */ + public TargetPool setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] The resource URL for the security policy associated with this target pool. + * @return value or {@code null} for none + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** + * [Output Only] The resource URL for the security policy associated with this target pool. + * @param securityPolicy securityPolicy or {@code null} for none + */ + public TargetPool setSecurityPolicy(java.lang.String securityPolicy) { + this.securityPolicy = securityPolicy; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetPool setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Session affinity option, must be one of the following values: NONE: Connections from the same + * client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client + * IP will go to the same instance in the pool while that instance remains healthy. + * CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to + * the same instance in the pool while that instance remains healthy. + * @return value or {@code null} for none + */ + public java.lang.String getSessionAffinity() { + return sessionAffinity; + } + + /** + * Session affinity option, must be one of the following values: NONE: Connections from the same + * client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client + * IP will go to the same instance in the pool while that instance remains healthy. + * CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to + * the same instance in the pool while that instance remains healthy. + * @param sessionAffinity sessionAffinity or {@code null} for none + */ + public TargetPool setSessionAffinity(java.lang.String sessionAffinity) { + this.sessionAffinity = sessionAffinity; + return this; + } + + @Override + public TargetPool set(String fieldName, Object value) { + return (TargetPool) super.set(fieldName, value); + } + + @Override + public TargetPool clone() { + return (TargetPool) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java new file mode 100644 index 00000000000..f174801638f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 TargetPoolAggregatedList. + * + *

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 TargetPoolAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetPool resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for + * aggregated lists of target pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 TargetPoolAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetPool resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of TargetPool resources. + * @param items items or {@code null} for none + */ + public TargetPoolAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for + * aggregated lists of target pools. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for + * aggregated lists of target pools. + * @param kind kind or {@code null} for none + */ + public TargetPoolAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetPoolAggregatedList 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 TargetPoolAggregatedList 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 TargetPoolAggregatedList 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 TargetPoolAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetPoolAggregatedList set(String fieldName, Object value) { + return (TargetPoolAggregatedList) super.set(fieldName, value); + } + + @Override + public TargetPoolAggregatedList clone() { + return (TargetPoolAggregatedList) 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 TargetPoolAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java new file mode 100644 index 00000000000..e1930f67b71 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -0,0 +1,96 @@ +/* + * 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 TargetPoolInstanceHealth. + * + *

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 TargetPoolInstanceHealth extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthStatus; + + static { + // hack to force ProGuard to consider HealthStatus 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(HealthStatus.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when + * checking the health of an instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * @return value or {@code null} for none + */ + public java.util.List getHealthStatus() { + return healthStatus; + } + + /** + * @param healthStatus healthStatus or {@code null} for none + */ + public TargetPoolInstanceHealth setHealthStatus(java.util.List healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when + * checking the health of an instance. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when + * checking the health of an instance. + * @param kind kind or {@code null} for none + */ + public TargetPoolInstanceHealth setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + @Override + public TargetPoolInstanceHealth set(String fieldName, Object value) { + return (TargetPoolInstanceHealth) super.set(fieldName, value); + } + + @Override + public TargetPoolInstanceHealth clone() { + return (TargetPoolInstanceHealth) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolList.java new file mode 100644 index 00000000000..1c363a80f56 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of TargetPool resources. + * + *

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 TargetPoolList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetPool 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 TargetPool 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(TargetPool.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target + * pools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetPoolList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetPool resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetPool resources. + * @param items items or {@code null} for none + */ + public TargetPoolList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target + * pools. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target + * pools. + * @param kind kind or {@code null} for none + */ + public TargetPoolList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetPoolList 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 TargetPoolList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetPoolList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetPoolList set(String fieldName, Object value) { + return (TargetPoolList) super.set(fieldName, value); + } + + @Override + public TargetPoolList clone() { + return (TargetPoolList) 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 TargetPoolListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddHealthCheckRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddHealthCheckRequest.java new file mode 100644 index 00000000000..fc84e7cbe2d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddHealthCheckRequest.java @@ -0,0 +1,72 @@ +/* + * 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 TargetPoolsAddHealthCheckRequest. + * + *

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 TargetPoolsAddHealthCheckRequest extends com.google.api.client.json.GenericJson { + + /** + * The HttpHealthCheck to add to the target pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthChecks; + + static { + // hack to force ProGuard to consider HealthCheckReference 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(HealthCheckReference.class); + } + + /** + * The HttpHealthCheck to add to the target pool. + * @return value or {@code null} for none + */ + public java.util.List getHealthChecks() { + return healthChecks; + } + + /** + * The HttpHealthCheck to add to the target pool. + * @param healthChecks healthChecks or {@code null} for none + */ + public TargetPoolsAddHealthCheckRequest setHealthChecks(java.util.List healthChecks) { + this.healthChecks = healthChecks; + return this; + } + + @Override + public TargetPoolsAddHealthCheckRequest set(String fieldName, Object value) { + return (TargetPoolsAddHealthCheckRequest) super.set(fieldName, value); + } + + @Override + public TargetPoolsAddHealthCheckRequest clone() { + return (TargetPoolsAddHealthCheckRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddInstanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddInstanceRequest.java new file mode 100644 index 00000000000..90b63376a38 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsAddInstanceRequest.java @@ -0,0 +1,84 @@ +/* + * 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 TargetPoolsAddInstanceRequest. + * + *

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 TargetPoolsAddInstanceRequest extends com.google.api.client.json.GenericJson { + + /** + * A full or partial URL to an instance to add to this target pool. This can be a full or partial + * URL. For example, the following are valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name + * - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance- + * name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + static { + // hack to force ProGuard to consider InstanceReference 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(InstanceReference.class); + } + + /** + * A full or partial URL to an instance to add to this target pool. This can be a full or partial + * URL. For example, the following are valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name + * - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance- + * name + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * A full or partial URL to an instance to add to this target pool. This can be a full or partial + * URL. For example, the following are valid URLs: - + * https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name + * - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance- + * name + * @param instances instances or {@code null} for none + */ + public TargetPoolsAddInstanceRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public TargetPoolsAddInstanceRequest set(String fieldName, Object value) { + return (TargetPoolsAddInstanceRequest) super.set(fieldName, value); + } + + @Override + public TargetPoolsAddInstanceRequest clone() { + return (TargetPoolsAddInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveHealthCheckRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveHealthCheckRequest.java new file mode 100644 index 00000000000..95723da7a71 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveHealthCheckRequest.java @@ -0,0 +1,84 @@ +/* + * 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 TargetPoolsRemoveHealthCheckRequest. + * + *

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 TargetPoolsRemoveHealthCheckRequest extends com.google.api.client.json.GenericJson { + + /** + * Health check URL to be removed. This can be a full or valid partial URL. For example, the + * following are valid URLs: - + * https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check + * - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health- + * check + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List healthChecks; + + static { + // hack to force ProGuard to consider HealthCheckReference 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(HealthCheckReference.class); + } + + /** + * Health check URL to be removed. This can be a full or valid partial URL. For example, the + * following are valid URLs: - + * https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check + * - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health- + * check + * @return value or {@code null} for none + */ + public java.util.List getHealthChecks() { + return healthChecks; + } + + /** + * Health check URL to be removed. This can be a full or valid partial URL. For example, the + * following are valid URLs: - + * https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check + * - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health- + * check + * @param healthChecks healthChecks or {@code null} for none + */ + public TargetPoolsRemoveHealthCheckRequest setHealthChecks(java.util.List healthChecks) { + this.healthChecks = healthChecks; + return this; + } + + @Override + public TargetPoolsRemoveHealthCheckRequest set(String fieldName, Object value) { + return (TargetPoolsRemoveHealthCheckRequest) super.set(fieldName, value); + } + + @Override + public TargetPoolsRemoveHealthCheckRequest clone() { + return (TargetPoolsRemoveHealthCheckRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveInstanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveInstanceRequest.java new file mode 100644 index 00000000000..8edba57bddc --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsRemoveInstanceRequest.java @@ -0,0 +1,72 @@ +/* + * 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 TargetPoolsRemoveInstanceRequest. + * + *

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 TargetPoolsRemoveInstanceRequest extends com.google.api.client.json.GenericJson { + + /** + * URLs of the instances to be removed from target pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + static { + // hack to force ProGuard to consider InstanceReference 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(InstanceReference.class); + } + + /** + * URLs of the instances to be removed from target pool. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * URLs of the instances to be removed from target pool. + * @param instances instances or {@code null} for none + */ + public TargetPoolsRemoveInstanceRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public TargetPoolsRemoveInstanceRequest set(String fieldName, Object value) { + return (TargetPoolsRemoveInstanceRequest) super.set(fieldName, value); + } + + @Override + public TargetPoolsRemoveInstanceRequest clone() { + return (TargetPoolsRemoveInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsScopedList.java new file mode 100644 index 00000000000..15cdd761350 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetPoolsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 TargetPoolsScopedList. + * + *

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 TargetPoolsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of target pools contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetPools; + + static { + // hack to force ProGuard to consider TargetPool 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(TargetPool.class); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of target pools contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getTargetPools() { + return targetPools; + } + + /** + * A list of target pools contained in this scope. + * @param targetPools targetPools or {@code null} for none + */ + public TargetPoolsScopedList setTargetPools(java.util.List targetPools) { + this.targetPools = targetPools; + return this; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @param warning warning or {@code null} for none + */ + public TargetPoolsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetPoolsScopedList set(String fieldName, Object value) { + return (TargetPoolsScopedList) super.set(fieldName, value); + } + + @Override + public TargetPoolsScopedList clone() { + return (TargetPoolsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + */ + 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 TargetPoolsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetReference.java new file mode 100644 index 00000000000..993e1066af1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetReference.java @@ -0,0 +1,63 @@ +/* + * 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 TargetReference. + * + *

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 TargetReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * @param target target or {@code null} for none + */ + public TargetReference setTarget(java.lang.String target) { + this.target = target; + return this; + } + + @Override + public TargetReference set(String fieldName, Object value) { + return (TargetReference) super.set(fieldName, value); + } + + @Override + public TargetReference clone() { + return (TargetReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetBackendServiceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetBackendServiceRequest.java new file mode 100644 index 00000000000..25bd30ab64a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetBackendServiceRequest.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; + +/** + * Model definition for TargetSslProxiesSetBackendServiceRequest. + * + *

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 TargetSslProxiesSetBackendServiceRequest extends com.google.api.client.json.GenericJson { + + /** + * The URL of the new BackendService resource for the targetSslProxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * The URL of the new BackendService resource for the targetSslProxy. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * The URL of the new BackendService resource for the targetSslProxy. + * @param service service or {@code null} for none + */ + public TargetSslProxiesSetBackendServiceRequest setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public TargetSslProxiesSetBackendServiceRequest set(String fieldName, Object value) { + return (TargetSslProxiesSetBackendServiceRequest) super.set(fieldName, value); + } + + @Override + public TargetSslProxiesSetBackendServiceRequest clone() { + return (TargetSslProxiesSetBackendServiceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetCertificateMapRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetCertificateMapRequest.java new file mode 100644 index 00000000000..faed9705d6f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetCertificateMapRequest.java @@ -0,0 +1,75 @@ +/* + * 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 TargetSslProxiesSetCertificateMapRequest. + * + *

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 TargetSslProxiesSetCertificateMapRequest extends com.google.api.client.json.GenericJson { + + /** + * URL of the Certificate Map to associate with this TargetSslProxy. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificateMap; + + /** + * URL of the Certificate Map to associate with this TargetSslProxy. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @return value or {@code null} for none + */ + public java.lang.String getCertificateMap() { + return certificateMap; + } + + /** + * URL of the Certificate Map to associate with this TargetSslProxy. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @param certificateMap certificateMap or {@code null} for none + */ + public TargetSslProxiesSetCertificateMapRequest setCertificateMap(java.lang.String certificateMap) { + this.certificateMap = certificateMap; + return this; + } + + @Override + public TargetSslProxiesSetCertificateMapRequest set(String fieldName, Object value) { + return (TargetSslProxiesSetCertificateMapRequest) super.set(fieldName, value); + } + + @Override + public TargetSslProxiesSetCertificateMapRequest clone() { + return (TargetSslProxiesSetCertificateMapRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetProxyHeaderRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetProxyHeaderRequest.java new file mode 100644 index 00000000000..5ceb2d581fa --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetProxyHeaderRequest.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; + +/** + * Model definition for TargetSslProxiesSetProxyHeaderRequest. + * + *

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 TargetSslProxiesSetProxyHeaderRequest extends com.google.api.client.json.GenericJson { + + /** + * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 + * are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 + * are allowed. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 + * are allowed. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public TargetSslProxiesSetProxyHeaderRequest setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + @Override + public TargetSslProxiesSetProxyHeaderRequest set(String fieldName, Object value) { + return (TargetSslProxiesSetProxyHeaderRequest) super.set(fieldName, value); + } + + @Override + public TargetSslProxiesSetProxyHeaderRequest clone() { + return (TargetSslProxiesSetProxyHeaderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetSslCertificatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetSslCertificatesRequest.java new file mode 100644 index 00000000000..2ae710d9365 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxiesSetSslCertificatesRequest.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; + +/** + * Model definition for TargetSslProxiesSetSslCertificatesRequest. + * + *

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 TargetSslProxiesSetSslCertificatesRequest extends com.google.api.client.json.GenericJson { + + /** + * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one + * SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslCertificates; + + /** + * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one + * SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + * @return value or {@code null} for none + */ + public java.util.List getSslCertificates() { + return sslCertificates; + } + + /** + * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one + * SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. + * @param sslCertificates sslCertificates or {@code null} for none + */ + public TargetSslProxiesSetSslCertificatesRequest setSslCertificates(java.util.List sslCertificates) { + this.sslCertificates = sslCertificates; + return this; + } + + @Override + public TargetSslProxiesSetSslCertificatesRequest set(String fieldName, Object value) { + return (TargetSslProxiesSetSslCertificatesRequest) super.set(fieldName, value); + } + + @Override + public TargetSslProxiesSetSslCertificatesRequest clone() { + return (TargetSslProxiesSetSslCertificatesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java new file mode 100644 index 00000000000..0f34d06b101 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -0,0 +1,355 @@ +/* + * 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 Target SSL Proxy resource. + * + * A target SSL proxy is a component of a Proxy Network Load Balancer. The forwarding rule + * references the target SSL proxy, and the target proxy then references a backend service. For more + * information, readProxy Network Load Balancer overview. + * + *

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 TargetSslProxy extends com.google.api.client.json.GenericJson { + + /** + * URL of a certificate map that identifies a certificate map associated with the given target + * proxy. This field can only be set for global target proxies. If set, sslCertificates will be + * ignored. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificateMap; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [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] Type of the resource. Alwayscompute#targetSslProxy for target SSL + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * [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; + + /** + * URL to the BackendService resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * URLs to SslCertificate resources that are used to authenticate connections to Backends. At + * least one SSL certificate must be specified. Currently, you may specify up to 15 SSL + * certificates. sslCertificates do not apply when the load balancing scheme is set to + * INTERNAL_SELF_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sslCertificates; + + /** + * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, + * the TargetSslProxy resource will not have any SSL policy configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sslPolicy; + + /** + * URL of a certificate map that identifies a certificate map associated with the given target + * proxy. This field can only be set for global target proxies. If set, sslCertificates will be + * ignored. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @return value or {@code null} for none + */ + public java.lang.String getCertificateMap() { + return certificateMap; + } + + /** + * URL of a certificate map that identifies a certificate map associated with the given target + * proxy. This field can only be set for global target proxies. If set, sslCertificates will be + * ignored. + * + * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ + * certificateMaps/{resourceName}. + * @param certificateMap certificateMap or {@code null} for none + */ + public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { + this.certificateMap = certificateMap; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetSslProxy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetSslProxy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetSslProxy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetSslProxy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public TargetSslProxy setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetSslProxy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * URL to the BackendService resource. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * URL to the BackendService resource. + * @param service service or {@code null} for none + */ + public TargetSslProxy setService(java.lang.String service) { + this.service = service; + return this; + } + + /** + * URLs to SslCertificate resources that are used to authenticate connections to Backends. At + * least one SSL certificate must be specified. Currently, you may specify up to 15 SSL + * certificates. sslCertificates do not apply when the load balancing scheme is set to + * INTERNAL_SELF_MANAGED. + * @return value or {@code null} for none + */ + public java.util.List getSslCertificates() { + return sslCertificates; + } + + /** + * URLs to SslCertificate resources that are used to authenticate connections to Backends. At + * least one SSL certificate must be specified. Currently, you may specify up to 15 SSL + * certificates. sslCertificates do not apply when the load balancing scheme is set to + * INTERNAL_SELF_MANAGED. + * @param sslCertificates sslCertificates or {@code null} for none + */ + public TargetSslProxy setSslCertificates(java.util.List sslCertificates) { + this.sslCertificates = sslCertificates; + return this; + } + + /** + * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, + * the TargetSslProxy resource will not have any SSL policy configured. + * @return value or {@code null} for none + */ + public java.lang.String getSslPolicy() { + return sslPolicy; + } + + /** + * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, + * the TargetSslProxy resource will not have any SSL policy configured. + * @param sslPolicy sslPolicy or {@code null} for none + */ + public TargetSslProxy setSslPolicy(java.lang.String sslPolicy) { + this.sslPolicy = sslPolicy; + return this; + } + + @Override + public TargetSslProxy set(String fieldName, Object value) { + return (TargetSslProxy) super.set(fieldName, value); + } + + @Override + public TargetSslProxy clone() { + return (TargetSslProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java new file mode 100644 index 00000000000..a4bd594e575 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of TargetSslProxy resources. + * + *

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 TargetSslProxyList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetSslProxy 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 TargetSslProxy 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(TargetSslProxy.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetSslProxyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetSslProxy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetSslProxy resources. + * @param items items or {@code null} for none + */ + public TargetSslProxyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public TargetSslProxyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetSslProxyList 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 TargetSslProxyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetSslProxyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetSslProxyList set(String fieldName, Object value) { + return (TargetSslProxyList) super.set(fieldName, value); + } + + @Override + public TargetSslProxyList clone() { + return (TargetSslProxyList) 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 TargetSslProxyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesScopedList.java new file mode 100644 index 00000000000..154d51fa168 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 TargetTcpProxiesScopedList. + * + *

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 TargetTcpProxiesScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of TargetTcpProxies contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetTcpProxies; + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of TargetTcpProxies contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getTargetTcpProxies() { + return targetTcpProxies; + } + + /** + * A list of TargetTcpProxies contained in this scope. + * @param targetTcpProxies targetTcpProxies or {@code null} for none + */ + public TargetTcpProxiesScopedList setTargetTcpProxies(java.util.List targetTcpProxies) { + this.targetTcpProxies = targetTcpProxies; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public TargetTcpProxiesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetTcpProxiesScopedList set(String fieldName, Object value) { + return (TargetTcpProxiesScopedList) super.set(fieldName, value); + } + + @Override + public TargetTcpProxiesScopedList clone() { + return (TargetTcpProxiesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 TargetTcpProxiesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetBackendServiceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetBackendServiceRequest.java new file mode 100644 index 00000000000..46ae3bbff3a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetBackendServiceRequest.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; + +/** + * Model definition for TargetTcpProxiesSetBackendServiceRequest. + * + *

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 TargetTcpProxiesSetBackendServiceRequest extends com.google.api.client.json.GenericJson { + + /** + * The URL of the new BackendService resource for the targetTcpProxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * The URL of the new BackendService resource for the targetTcpProxy. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * The URL of the new BackendService resource for the targetTcpProxy. + * @param service service or {@code null} for none + */ + public TargetTcpProxiesSetBackendServiceRequest setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public TargetTcpProxiesSetBackendServiceRequest set(String fieldName, Object value) { + return (TargetTcpProxiesSetBackendServiceRequest) super.set(fieldName, value); + } + + @Override + public TargetTcpProxiesSetBackendServiceRequest clone() { + return (TargetTcpProxiesSetBackendServiceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetProxyHeaderRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetProxyHeaderRequest.java new file mode 100644 index 00000000000..2ac6532cee5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxiesSetProxyHeaderRequest.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; + +/** + * Model definition for TargetTcpProxiesSetProxyHeaderRequest. + * + *

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 TargetTcpProxiesSetProxyHeaderRequest extends com.google.api.client.json.GenericJson { + + /** + * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 + * are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 + * are allowed. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 + * are allowed. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public TargetTcpProxiesSetProxyHeaderRequest setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + @Override + public TargetTcpProxiesSetProxyHeaderRequest set(String fieldName, Object value) { + return (TargetTcpProxiesSetProxyHeaderRequest) super.set(fieldName, value); + } + + @Override + public TargetTcpProxiesSetProxyHeaderRequest clone() { + return (TargetTcpProxiesSetProxyHeaderRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java new file mode 100644 index 00000000000..86a88700008 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -0,0 +1,358 @@ +/* + * 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 Target TCP Proxy resource. + * + * A target TCP proxy is a component of a Proxy Network Load Balancer. The forwarding rule + * references the target TCP proxy, and the target proxy then references a backend service. For more + * information, readProxy Network Load Balancer overview. + * + *

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 TargetTcpProxy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [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] Type of the resource. Alwayscompute#targetTcpProxy for target TCP + * proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Specifies the type of load balancing scheme used by this target proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String loadBalancingScheme; + + /** + * Name of the resource. Provided by the client 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; + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean proxyBind; + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyHeader; + + /** + * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field + * is not applicable to global TCP proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * URL to the BackendService resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetTcpProxy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetTcpProxy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP + * proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP + * proxies. + * @param kind kind or {@code null} for none + */ + public TargetTcpProxy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Specifies the type of load balancing scheme used by this target proxy. + * @return value or {@code null} for none + */ + public java.lang.String getLoadBalancingScheme() { + return loadBalancingScheme; + } + + /** + * Specifies the type of load balancing scheme used by this target proxy. + * @param loadBalancingScheme loadBalancingScheme or {@code null} for none + */ + public TargetTcpProxy setLoadBalancingScheme(java.lang.String loadBalancingScheme) { + this.loadBalancingScheme = loadBalancingScheme; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetTcpProxy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getProxyBind() { + return proxyBind; + } + + /** + * This field only applies when the forwarding rule that references this target proxy has a + * loadBalancingScheme set toINTERNAL_SELF_MANAGED. + * + * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to + * the IP address and port specified in the forwarding rule. This is generally useful when using + * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar + * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives + * them. + * + * The default is false. + * @param proxyBind proxyBind or {@code null} for none + */ + public TargetTcpProxy setProxyBind(java.lang.Boolean proxyBind) { + this.proxyBind = proxyBind; + return this; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @return value or {@code null} for none + */ + public java.lang.String getProxyHeader() { + return proxyHeader; + } + + /** + * Specifies the type of proxy header to append before sending data to the backend, either NONE or + * PROXY_V1. The default is NONE. + * @param proxyHeader proxyHeader or {@code null} for none + */ + public TargetTcpProxy setProxyHeader(java.lang.String proxyHeader) { + this.proxyHeader = proxyHeader; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field + * is not applicable to global TCP proxy. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field + * is not applicable to global TCP proxy. + * @param region region or {@code null} for none + */ + public TargetTcpProxy setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetTcpProxy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * URL to the BackendService resource. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * URL to the BackendService resource. + * @param service service or {@code null} for none + */ + public TargetTcpProxy setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public TargetTcpProxy set(String fieldName, Object value) { + return (TargetTcpProxy) super.set(fieldName, value); + } + + @Override + public TargetTcpProxy clone() { + return (TargetTcpProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java new file mode 100644 index 00000000000..090b54be1c2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -0,0 +1,410 @@ +/* + * 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 TargetTcpProxyAggregatedList. + * + *

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 TargetTcpProxyAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetTcpProxiesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider TargetTcpProxiesScopedList 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(TargetTcpProxiesScopedList.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for + * lists of Target TCP Proxies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 TargetTcpProxyAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetTcpProxiesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of TargetTcpProxiesScopedList resources. + * @param items items or {@code null} for none + */ + public TargetTcpProxyAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for + * lists of Target TCP Proxies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for + * lists of Target TCP Proxies. + * @param kind kind or {@code null} for none + */ + public TargetTcpProxyAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetTcpProxyAggregatedList set(String fieldName, Object value) { + return (TargetTcpProxyAggregatedList) super.set(fieldName, value); + } + + @Override + public TargetTcpProxyAggregatedList clone() { + return (TargetTcpProxyAggregatedList) 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 TargetTcpProxyAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java new file mode 100644 index 00000000000..5324616562a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of TargetTcpProxy resources. + * + *

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 TargetTcpProxyList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetTcpProxy 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 TargetTcpProxy 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(TargetTcpProxy.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetTcpProxyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetTcpProxy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetTcpProxy resources. + * @param items items or {@code null} for none + */ + public TargetTcpProxyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public TargetTcpProxyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetTcpProxyList 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 TargetTcpProxyList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetTcpProxyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetTcpProxyList set(String fieldName, Object value) { + return (TargetTcpProxyList) super.set(fieldName, value); + } + + @Override + public TargetTcpProxyList clone() { + return (TargetTcpProxyList) 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 TargetTcpProxyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java new file mode 100644 index 00000000000..5447e2d91e4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -0,0 +1,475 @@ +/* + * 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 Target VPN Gateway resource. + * + * The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, + * read thethe Cloud VPN Overview. + * + *

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 TargetVpnGateway extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created + * usingcompute.forwardingRules.insert and associated with a VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List forwardingRules; + + /** + * [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] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource. Provided by the client 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; + + /** + * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN + * gateway is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TargetVpnGatewayParams params; + + /** + * [Output Only] URL of the region where the target VPN gateway resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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] The status of the VPN gateway, which can be one of the following: CREATING, + * READY, FAILED, or DELETING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tunnels; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public TargetVpnGateway setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created + * usingcompute.forwardingRules.insert and associated with a VPN gateway. + * @return value or {@code null} for none + */ + public java.util.List getForwardingRules() { + return forwardingRules; + } + + /** + * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created + * usingcompute.forwardingRules.insert and associated with a VPN gateway. + * @param forwardingRules forwardingRules or {@code null} for none + */ + public TargetVpnGateway setForwardingRules(java.util.List forwardingRules) { + this.forwardingRules = forwardingRules; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public TargetVpnGateway setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * @param kind kind or {@code null} for none + */ + public TargetVpnGateway setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public TargetVpnGateway setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a + * hash of the labels set used for optimistic locking. The fingerprint is initially generated by + * Compute Engine and changes after every request to modify or update labels. You must always + * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the + * request will fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TargetVpnGateway encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public TargetVpnGateway setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 TargetVpnGateway setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN + * gateway is created. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN + * gateway is created. + * @param network network or {@code null} for none + */ + public TargetVpnGateway setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public TargetVpnGatewayParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public TargetVpnGateway setParams(TargetVpnGatewayParams params) { + this.params = params; + return this; + } + + /** + * [Output Only] URL of the region where the target VPN gateway resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] URL of the region where the target VPN gateway resides. You must specify this + * field as part of the HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public TargetVpnGateway setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public TargetVpnGateway setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, + * READY, FAILED, or DELETING. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, + * READY, FAILED, or DELETING. + * @param status status or {@code null} for none + */ + public TargetVpnGateway setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. + * @return value or {@code null} for none + */ + public java.util.List getTunnels() { + return tunnels; + } + + /** + * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the + * compute.vpntunnels.insert method and associated with a VPN gateway. + * @param tunnels tunnels or {@code null} for none + */ + public TargetVpnGateway setTunnels(java.util.List tunnels) { + this.tunnels = tunnels; + return this; + } + + @Override + public TargetVpnGateway set(String fieldName, Object value) { + return (TargetVpnGateway) super.set(fieldName, value); + } + + @Override + public TargetVpnGateway clone() { + return (TargetVpnGateway) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java new file mode 100644 index 00000000000..09420465650 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -0,0 +1,404 @@ +/* + * 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 TargetVpnGatewayAggregatedList. + * + *

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 TargetVpnGatewayAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetVpnGateway resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 TargetVpnGatewayAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetVpnGateway resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of TargetVpnGateway resources. + * @param items items or {@code null} for none + */ + public TargetVpnGatewayAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * @param kind kind or {@code null} for none + */ + public TargetVpnGatewayAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetVpnGatewayAggregatedList 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 TargetVpnGatewayAggregatedList 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 TargetVpnGatewayAggregatedList 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 TargetVpnGatewayAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetVpnGatewayAggregatedList set(String fieldName, Object value) { + return (TargetVpnGatewayAggregatedList) super.set(fieldName, value); + } + + @Override + public TargetVpnGatewayAggregatedList clone() { + return (TargetVpnGatewayAggregatedList) 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 TargetVpnGatewayAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java new file mode 100644 index 00000000000..7d896ae2e68 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of TargetVpnGateway resources. + * + *

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 TargetVpnGatewayList extends com.google.api.client.json.GenericJson { + + /** + * [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 TargetVpnGateway 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 TargetVpnGateway 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(TargetVpnGateway.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 TargetVpnGatewayList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of TargetVpnGateway resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of TargetVpnGateway resources. + * @param items items or {@code null} for none + */ + public TargetVpnGatewayList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN + * gateways. + * @param kind kind or {@code null} for none + */ + public TargetVpnGatewayList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public TargetVpnGatewayList 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 TargetVpnGatewayList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 TargetVpnGatewayList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetVpnGatewayList set(String fieldName, Object value) { + return (TargetVpnGatewayList) super.set(fieldName, value); + } + + @Override + public TargetVpnGatewayList clone() { + return (TargetVpnGatewayList) 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 TargetVpnGatewayListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java new file mode 100644 index 00000000000..b920b6f704e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java @@ -0,0 +1,87 @@ +/* + * 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 TargetVpnGatewayParams. + * + *

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 TargetVpnGatewayParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public TargetVpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public TargetVpnGatewayParams set(String fieldName, Object value) { + return (TargetVpnGatewayParams) super.set(fieldName, value); + } + + @Override + public TargetVpnGatewayParams clone() { + return (TargetVpnGatewayParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewaysScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewaysScopedList.java new file mode 100644 index 00000000000..e214e56696c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TargetVpnGatewaysScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 TargetVpnGatewaysScopedList. + * + *

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 TargetVpnGatewaysScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of target VPN gateways contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetVpnGateways; + + static { + // hack to force ProGuard to consider TargetVpnGateway 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(TargetVpnGateway.class); + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of target VPN gateways contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getTargetVpnGateways() { + return targetVpnGateways; + } + + /** + * [Output Only] A list of target VPN gateways contained in this scope. + * @param targetVpnGateways targetVpnGateways or {@code null} for none + */ + public TargetVpnGatewaysScopedList setTargetVpnGateways(java.util.List targetVpnGateways) { + this.targetVpnGateways = targetVpnGateways; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public TargetVpnGatewaysScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public TargetVpnGatewaysScopedList set(String fieldName, Object value) { + return (TargetVpnGatewaysScopedList) super.set(fieldName, value); + } + + @Override + public TargetVpnGatewaysScopedList clone() { + return (TargetVpnGatewaysScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is empty. + */ + 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 TargetVpnGatewaysScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/TestFailure.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestFailure.java new file mode 100644 index 00000000000..ddd9670cf13 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestFailure.java @@ -0,0 +1,264 @@ +/* + * 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 TestFailure. + * + *

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 TestFailure extends com.google.api.client.json.GenericJson { + + /** + * The actual output URL evaluated by a load balancer containing the scheme, host, path and query + * parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String actualOutputUrl; + + /** + * Actual HTTP status code for rule with `urlRedirect` calculated by load balancer + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer actualRedirectResponseCode; + + /** + * BackendService or BackendBucket returned by load balancer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String actualService; + + /** + * The expected output URL evaluated by a load balancer containing the scheme, host, path and + * query parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expectedOutputUrl; + + /** + * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer expectedRedirectResponseCode; + + /** + * Expected BackendService or BackendBucket resource the given URL should be mapped to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expectedService; + + /** + * HTTP headers of the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List headers; + + /** + * Host portion of the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * Path portion including query parameters in the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * The actual output URL evaluated by a load balancer containing the scheme, host, path and query + * parameters. + * @return value or {@code null} for none + */ + public java.lang.String getActualOutputUrl() { + return actualOutputUrl; + } + + /** + * The actual output URL evaluated by a load balancer containing the scheme, host, path and query + * parameters. + * @param actualOutputUrl actualOutputUrl or {@code null} for none + */ + public TestFailure setActualOutputUrl(java.lang.String actualOutputUrl) { + this.actualOutputUrl = actualOutputUrl; + return this; + } + + /** + * Actual HTTP status code for rule with `urlRedirect` calculated by load balancer + * @return value or {@code null} for none + */ + public java.lang.Integer getActualRedirectResponseCode() { + return actualRedirectResponseCode; + } + + /** + * Actual HTTP status code for rule with `urlRedirect` calculated by load balancer + * @param actualRedirectResponseCode actualRedirectResponseCode or {@code null} for none + */ + public TestFailure setActualRedirectResponseCode(java.lang.Integer actualRedirectResponseCode) { + this.actualRedirectResponseCode = actualRedirectResponseCode; + return this; + } + + /** + * BackendService or BackendBucket returned by load balancer. + * @return value or {@code null} for none + */ + public java.lang.String getActualService() { + return actualService; + } + + /** + * BackendService or BackendBucket returned by load balancer. + * @param actualService actualService or {@code null} for none + */ + public TestFailure setActualService(java.lang.String actualService) { + this.actualService = actualService; + return this; + } + + /** + * The expected output URL evaluated by a load balancer containing the scheme, host, path and + * query parameters. + * @return value or {@code null} for none + */ + public java.lang.String getExpectedOutputUrl() { + return expectedOutputUrl; + } + + /** + * The expected output URL evaluated by a load balancer containing the scheme, host, path and + * query parameters. + * @param expectedOutputUrl expectedOutputUrl or {@code null} for none + */ + public TestFailure setExpectedOutputUrl(java.lang.String expectedOutputUrl) { + this.expectedOutputUrl = expectedOutputUrl; + return this; + } + + /** + * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer + * @return value or {@code null} for none + */ + public java.lang.Integer getExpectedRedirectResponseCode() { + return expectedRedirectResponseCode; + } + + /** + * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer + * @param expectedRedirectResponseCode expectedRedirectResponseCode or {@code null} for none + */ + public TestFailure setExpectedRedirectResponseCode(java.lang.Integer expectedRedirectResponseCode) { + this.expectedRedirectResponseCode = expectedRedirectResponseCode; + return this; + } + + /** + * Expected BackendService or BackendBucket resource the given URL should be mapped to. + * @return value or {@code null} for none + */ + public java.lang.String getExpectedService() { + return expectedService; + } + + /** + * Expected BackendService or BackendBucket resource the given URL should be mapped to. + * @param expectedService expectedService or {@code null} for none + */ + public TestFailure setExpectedService(java.lang.String expectedService) { + this.expectedService = expectedService; + return this; + } + + /** + * HTTP headers of the request. + * @return value or {@code null} for none + */ + public java.util.List getHeaders() { + return headers; + } + + /** + * HTTP headers of the request. + * @param headers headers or {@code null} for none + */ + public TestFailure setHeaders(java.util.List headers) { + this.headers = headers; + return this; + } + + /** + * Host portion of the URL. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * Host portion of the URL. + * @param host host or {@code null} for none + */ + public TestFailure setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * Path portion including query parameters in the URL. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Path portion including query parameters in the URL. + * @param path path or {@code null} for none + */ + public TestFailure setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public TestFailure set(String fieldName, Object value) { + return (TestFailure) super.set(fieldName, value); + } + + @Override + public TestFailure clone() { + return (TestFailure) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsRequest.java new file mode 100644 index 00000000000..d68f1833c27 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsRequest.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; + +/** + * Model definition for TestPermissionsRequest. + * + *

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 TestPermissionsRequest extends com.google.api.client.json.GenericJson { + + /** + * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or + * 'storage.*') are not allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or + * 'storage.*') are not allowed. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or + * 'storage.*') are not allowed. + * @param permissions permissions or {@code null} for none + */ + public TestPermissionsRequest setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestPermissionsRequest set(String fieldName, Object value) { + return (TestPermissionsRequest) super.set(fieldName, value); + } + + @Override + public TestPermissionsRequest clone() { + return (TestPermissionsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsResponse.java new file mode 100644 index 00000000000..4ffc44b918d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TestPermissionsResponse.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; + +/** + * Model definition for TestPermissionsResponse. + * + *

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 TestPermissionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + * @param permissions permissions or {@code null} for none + */ + public TestPermissionsResponse setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + @Override + public TestPermissionsResponse set(String fieldName, Object value) { + return (TestPermissionsResponse) super.set(fieldName, value); + } + + @Override + public TestPermissionsResponse clone() { + return (TestPermissionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TimeZone.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TimeZone.java new file mode 100644 index 00000000000..8cbf258d49b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/TimeZone.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). + * + *

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 TimeZone extends com.google.api.client.json.GenericJson { + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * @param id id or {@code null} for none + */ + public TimeZone setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * @param version version or {@code null} for none + */ + public TimeZone setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public TimeZone set(String fieldName, Object value) { + return (TimeZone) super.set(fieldName, value); + } + + @Override + public TimeZone clone() { + return (TimeZone) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Uint128.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Uint128.java new file mode 100644 index 00000000000..8fa3d5287f9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Uint128.java @@ -0,0 +1,84 @@ +/* + * 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 Uint128. + * + *

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 Uint128 extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger high; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger low; + + /** + * @return value or {@code null} for none + */ + public java.math.BigInteger getHigh() { + return high; + } + + /** + * @param high high or {@code null} for none + */ + public Uint128 setHigh(java.math.BigInteger high) { + this.high = high; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.math.BigInteger getLow() { + return low; + } + + /** + * @param low low or {@code null} for none + */ + public Uint128 setLow(java.math.BigInteger low) { + this.low = low; + return this; + } + + @Override + public Uint128 set(String fieldName, Object value) { + return (Uint128) super.set(fieldName, value); + } + + @Override + public Uint128 clone() { + return (Uint128) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java new file mode 100644 index 00000000000..7b0e2a981ea --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java @@ -0,0 +1,240 @@ +/* + * 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; + +/** + * Upcoming Maintenance notification information. + * + *

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 UpcomingMaintenance extends com.google.api.client.json.GenericJson { + + /** + * Indicates if the maintenance can be customer triggered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean canReschedule; + + /** + * The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 + * text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String latestWindowStartTime; + + /** + * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean maintenanceOnShutdown; + + /** + * The reasons for the maintenance. Only valid for vms. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List maintenanceReasons; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenanceStatus; + + /** + * Defines the type of maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The time by which the maintenance disruption will be completed. This timestamp value is in + * RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String windowEndTime; + + /** + * The current start time of the maintenance window. This timestamp value is in RFC3339 text + * format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String windowStartTime; + + /** + * Indicates if the maintenance can be customer triggered. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCanReschedule() { + return canReschedule; + } + + /** + * Indicates if the maintenance can be customer triggered. + * @param canReschedule canReschedule or {@code null} for none + */ + public UpcomingMaintenance setCanReschedule(java.lang.Boolean canReschedule) { + this.canReschedule = canReschedule; + return this; + } + + /** + * The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 + * text format. + * @return value or {@code null} for none + */ + public java.lang.String getLatestWindowStartTime() { + return latestWindowStartTime; + } + + /** + * The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 + * text format. + * @param latestWindowStartTime latestWindowStartTime or {@code null} for none + */ + public UpcomingMaintenance setLatestWindowStartTime(java.lang.String latestWindowStartTime) { + this.latestWindowStartTime = latestWindowStartTime; + return this; + } + + /** + * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. + * @return value or {@code null} for none + */ + public java.lang.Boolean getMaintenanceOnShutdown() { + return maintenanceOnShutdown; + } + + /** + * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. + * @param maintenanceOnShutdown maintenanceOnShutdown or {@code null} for none + */ + public UpcomingMaintenance setMaintenanceOnShutdown(java.lang.Boolean maintenanceOnShutdown) { + this.maintenanceOnShutdown = maintenanceOnShutdown; + return this; + } + + /** + * The reasons for the maintenance. Only valid for vms. + * @return value or {@code null} for none + */ + public java.util.List getMaintenanceReasons() { + return maintenanceReasons; + } + + /** + * The reasons for the maintenance. Only valid for vms. + * @param maintenanceReasons maintenanceReasons or {@code null} for none + */ + public UpcomingMaintenance setMaintenanceReasons(java.util.List maintenanceReasons) { + this.maintenanceReasons = maintenanceReasons; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMaintenanceStatus() { + return maintenanceStatus; + } + + /** + * @param maintenanceStatus maintenanceStatus or {@code null} for none + */ + public UpcomingMaintenance setMaintenanceStatus(java.lang.String maintenanceStatus) { + this.maintenanceStatus = maintenanceStatus; + return this; + } + + /** + * Defines the type of maintenance. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Defines the type of maintenance. + * @param type type or {@code null} for none + */ + public UpcomingMaintenance setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The time by which the maintenance disruption will be completed. This timestamp value is in + * RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getWindowEndTime() { + return windowEndTime; + } + + /** + * The time by which the maintenance disruption will be completed. This timestamp value is in + * RFC3339 text format. + * @param windowEndTime windowEndTime or {@code null} for none + */ + public UpcomingMaintenance setWindowEndTime(java.lang.String windowEndTime) { + this.windowEndTime = windowEndTime; + return this; + } + + /** + * The current start time of the maintenance window. This timestamp value is in RFC3339 text + * format. + * @return value or {@code null} for none + */ + public java.lang.String getWindowStartTime() { + return windowStartTime; + } + + /** + * The current start time of the maintenance window. This timestamp value is in RFC3339 text + * format. + * @param windowStartTime windowStartTime or {@code null} for none + */ + public UpcomingMaintenance setWindowStartTime(java.lang.String windowStartTime) { + this.windowStartTime = windowStartTime; + return this; + } + + @Override + public UpcomingMaintenance set(String fieldName, Object value) { + return (UpcomingMaintenance) super.set(fieldName, value); + } + + @Override + public UpcomingMaintenance clone() { + return (UpcomingMaintenance) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMap.java new file mode 100644 index 00000000000..513196be314 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -0,0 +1,724 @@ +/* + * 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 URL Map resource. + * + * Compute Engine has two URL Map resources: + * + * * [Global](/compute/docs/reference/rest/v1/urlMaps) * + * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) + * + * A URL map resource is a component of certain types of cloud load balancers and Traffic Director: + * + * * urlMaps are used by global external Application Load Balancers, classic Application Load + * Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by + * internal Application Load Balancers, regional external Application Load Balancers and regional + * internal Application Load Balancers. + * + * For a list of supported URL map features by the load balancer type, see the Load balancing + * features: Routing and traffic management table. + * + * For a list of supported URL map features for Traffic Director, see the Traffic Director features: + * Routing and traffic management table. + * + * This resource defines mappings from hostnames and URL paths to either a backend service or a + * backend bucket. + * + * To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either + * EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the + * backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more information, read + * URL Map Concepts. + * + *

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 UrlMap extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * This policy takes effect at the load balancer level and applies only when no policy has been + * defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this + * UrlMap. + * + * For example, consider a UrlMap with the following configuration: - + * defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors + * - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. + * + * If a request for http://www.example.com/ encounters a404, the policy + * inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for + * http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy + * will be enforced. When a request that does not match any host in *.example.com such as + * http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy takes + * effect. + * + * When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only once + * all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting a + * retry, if load balancer is successful in reaching the service, the + * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to + * the client. + * + * defaultCustomErrorResponsePolicy is supported only for global external Application Load + * Balancers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomErrorResponsePolicy defaultCustomErrorResponsePolicy; + + /** + * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs + * advanced routing actions, such as URL rewrites and header transformations, before forwarding + * the request to the selected backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within + * defaultRouteAction. + * + * defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRouteAction defaultRouteAction; + + /** + * The full or partial URL of the defaultService resource to which traffic is directed if none of + * the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as + * URL rewrites, take effect before sending the request to the backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * defaultService has no effect when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultService; + + /** + * When none of the specified hostRules match, the request is redirected to a URL specified by + * defaultUrlRedirect. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpRedirectAction defaultUrlRedirect; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint + * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 + * conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a UrlMap. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * The headerAction specified here take effect afterheaderAction specified under pathMatcher. + * + * headerAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpHeaderAction headerAction; + + /** + * The list of host rules to use against the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List hostRules; + + static { + // hack to force ProGuard to consider HostRule 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(HostRule.class); + } + + /** + * [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] Type of the resource. Always compute#urlMaps for url maps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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; + + /** + * The list of named PathMatchers to use against the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pathMatchers; + + static { + // hack to force ProGuard to consider PathMatcher 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(PathMatcher.class); + } + + /** + * Output only. [Output Only] URL of the region where the regional URL map resides. This field is + * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. + * It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * [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; + + /** + * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test + * cases pass. You can specify a maximum of 100 tests per UrlMap. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tests; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * This policy takes effect at the load balancer level and applies only when no policy has been + * defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this + * UrlMap. + * + * For example, consider a UrlMap with the following configuration: - + * defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors + * - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. + * + * If a request for http://www.example.com/ encounters a404, the policy + * inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for + * http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy + * will be enforced. When a request that does not match any host in *.example.com such as + * http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy takes + * effect. + * + * When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only once + * all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting a + * retry, if load balancer is successful in reaching the service, the + * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to + * the client. + * + * defaultCustomErrorResponsePolicy is supported only for global external Application Load + * Balancers. + * @return value or {@code null} for none + */ + public CustomErrorResponsePolicy getDefaultCustomErrorResponsePolicy() { + return defaultCustomErrorResponsePolicy; + } + + /** + * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when + * BackendServiceorBackendBucket responds with an error. + * + * This policy takes effect at the load balancer level and applies only when no policy has been + * defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this + * UrlMap. + * + * For example, consider a UrlMap with the following configuration: - + * defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors + * - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. + * + * If a request for http://www.example.com/ encounters a404, the policy + * inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for + * http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy + * will be enforced. When a request that does not match any host in *.example.com such as + * http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy takes + * effect. + * + * When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only once + * all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting a + * retry, if load balancer is successful in reaching the service, the + * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to + * the client. + * + * defaultCustomErrorResponsePolicy is supported only for global external Application Load + * Balancers. + * @param defaultCustomErrorResponsePolicy defaultCustomErrorResponsePolicy or {@code null} for none + */ + public UrlMap setDefaultCustomErrorResponsePolicy(CustomErrorResponsePolicy defaultCustomErrorResponsePolicy) { + this.defaultCustomErrorResponsePolicy = defaultCustomErrorResponsePolicy; + return this; + } + + /** + * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs + * advanced routing actions, such as URL rewrites and header transformations, before forwarding + * the request to the selected backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within + * defaultRouteAction. + * + * defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public HttpRouteAction getDefaultRouteAction() { + return defaultRouteAction; + } + + /** + * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs + * advanced routing actions, such as URL rewrites and header transformations, before forwarding + * the request to the selected backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * URL maps for classic Application Load Balancers only support the urlRewrite action within + * defaultRouteAction. + * + * defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @param defaultRouteAction defaultRouteAction or {@code null} for none + */ + public UrlMap setDefaultRouteAction(HttpRouteAction defaultRouteAction) { + this.defaultRouteAction = defaultRouteAction; + return this; + } + + /** + * The full or partial URL of the defaultService resource to which traffic is directed if none of + * the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as + * URL rewrites, take effect before sending the request to the backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * defaultService has no effect when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultService() { + return defaultService; + } + + /** + * The full or partial URL of the defaultService resource to which traffic is directed if none of + * the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as + * URL rewrites, take effect before sending the request to the backend. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * defaultService has no effect when the URL map is bound to a target gRPC proxy that has the + * validateForProxyless field set to true. + * @param defaultService defaultService or {@code null} for none + */ + public UrlMap setDefaultService(java.lang.String defaultService) { + this.defaultService = defaultService; + return this; + } + + /** + * When none of the specified hostRules match, the request is redirected to a URL specified by + * defaultUrlRedirect. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @return value or {@code null} for none + */ + public HttpRedirectAction getDefaultUrlRedirect() { + return defaultUrlRedirect; + } + + /** + * When none of the specified hostRules match, the request is redirected to a URL specified by + * defaultUrlRedirect. + * + * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can + * be set. + * + * Not supported when the URL map is bound to a target gRPC proxy. + * @param defaultUrlRedirect defaultUrlRedirect or {@code null} for none + */ + public UrlMap setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect) { + this.defaultUrlRedirect = defaultUrlRedirect; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public UrlMap setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint + * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 + * conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a UrlMap. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint + * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 + * conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a UrlMap. + * @see #getFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(fingerprint); + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint + * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 + * conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a UrlMap. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public UrlMap setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Fingerprint of this resource. A hash of the contents stored in this object. This field is used + * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint + * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 + * conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a UrlMap. + * @see #setFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public UrlMap encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * The headerAction specified here take effect afterheaderAction specified under pathMatcher. + * + * headerAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public HttpHeaderAction getHeaderAction() { + return headerAction; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * The headerAction specified here take effect afterheaderAction specified under pathMatcher. + * + * headerAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param headerAction headerAction or {@code null} for none + */ + public UrlMap setHeaderAction(HttpHeaderAction headerAction) { + this.headerAction = headerAction; + return this; + } + + /** + * The list of host rules to use against the URL. + * @return value or {@code null} for none + */ + public java.util.List getHostRules() { + return hostRules; + } + + /** + * The list of host rules to use against the URL. + * @param hostRules hostRules or {@code null} for none + */ + public UrlMap setHostRules(java.util.List hostRules) { + this.hostRules = hostRules; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public UrlMap setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * @param kind kind or {@code null} for none + */ + public UrlMap setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 UrlMap setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The list of named PathMatchers to use against the URL. + * @return value or {@code null} for none + */ + public java.util.List getPathMatchers() { + return pathMatchers; + } + + /** + * The list of named PathMatchers to use against the URL. + * @param pathMatchers pathMatchers or {@code null} for none + */ + public UrlMap setPathMatchers(java.util.List pathMatchers) { + this.pathMatchers = pathMatchers; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the regional URL map resides. This field is + * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. + * It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the regional URL map resides. This field is + * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. + * It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public UrlMap setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public UrlMap setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test + * cases pass. You can specify a maximum of 100 tests per UrlMap. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public java.util.List getTests() { + return tests; + } + + /** + * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test + * cases pass. You can specify a maximum of 100 tests per UrlMap. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param tests tests or {@code null} for none + */ + public UrlMap setTests(java.util.List tests) { + this.tests = tests; + return this; + } + + @Override + public UrlMap set(String fieldName, Object value) { + return (UrlMap) super.set(fieldName, value); + } + + @Override + public UrlMap clone() { + return (UrlMap) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapList.java new file mode 100644 index 00000000000..f303fa4ffa0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of UrlMap resources. + * + *

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 UrlMapList extends com.google.api.client.json.GenericJson { + + /** + * [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 UrlMap 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 UrlMap 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(UrlMap.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 UrlMapList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of UrlMap resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of UrlMap resources. + * @param items items or {@code null} for none + */ + public UrlMapList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public UrlMapList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public UrlMapList 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 UrlMapList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 UrlMapList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public UrlMapList set(String fieldName, Object value) { + return (UrlMapList) super.set(fieldName, value); + } + + @Override + public UrlMapList clone() { + return (UrlMapList) 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 UrlMapListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/UrlMapReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapReference.java new file mode 100644 index 00000000000..aa61b269673 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapReference.java @@ -0,0 +1,63 @@ +/* + * 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 UrlMapReference. + * + *

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 UrlMapReference extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String urlMap; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getUrlMap() { + return urlMap; + } + + /** + * @param urlMap urlMap or {@code null} for none + */ + public UrlMapReference setUrlMap(java.lang.String urlMap) { + this.urlMap = urlMap; + return this; + } + + @Override + public UrlMapReference set(String fieldName, Object value) { + return (UrlMapReference) super.set(fieldName, value); + } + + @Override + public UrlMapReference clone() { + return (UrlMapReference) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTest.java new file mode 100644 index 00000000000..e7275270bbf --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTest.java @@ -0,0 +1,270 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message for the expected URL mappings. + * + *

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 UrlMapTest extends com.google.api.client.json.GenericJson { + + /** + * Description of this test case. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The expected output URL evaluated by the load balancer containing the scheme, host, path and + * query parameters. + * + * For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches + * the request forwarded by the load balancer to backends. For rules with urlRewrite, the test + * verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite + * action. When service is specified,expectedOutputUrl`s scheme is ignored. + * + * For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the + * load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only + * if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, + * the test passes only if expectedOutputUrl does not contain any query parameters. + * + * expectedOutputUrl is optional whenservice is specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expectedOutputUrl; + + /** + * For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the + * HTTP status code in load balancer's redirect response. + * + * expectedRedirectResponseCode cannot be set whenservice is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer expectedRedirectResponseCode; + + /** + * HTTP headers for this request. If headers contains a host header, then host must also match the + * header value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List headers; + + /** + * Host portion of the URL. If headers contains a host header, then host must also match the + * header value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** + * Path portion of the URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * Expected BackendService or BackendBucket resource the given URL should be mapped to. + * + * The service field cannot be set if expectedRedirectResponseCode is set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Description of this test case. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Description of this test case. + * @param description description or {@code null} for none + */ + public UrlMapTest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The expected output URL evaluated by the load balancer containing the scheme, host, path and + * query parameters. + * + * For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches + * the request forwarded by the load balancer to backends. For rules with urlRewrite, the test + * verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite + * action. When service is specified,expectedOutputUrl`s scheme is ignored. + * + * For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the + * load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only + * if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, + * the test passes only if expectedOutputUrl does not contain any query parameters. + * + * expectedOutputUrl is optional whenservice is specified. + * @return value or {@code null} for none + */ + public java.lang.String getExpectedOutputUrl() { + return expectedOutputUrl; + } + + /** + * The expected output URL evaluated by the load balancer containing the scheme, host, path and + * query parameters. + * + * For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches + * the request forwarded by the load balancer to backends. For rules with urlRewrite, the test + * verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite + * action. When service is specified,expectedOutputUrl`s scheme is ignored. + * + * For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the + * load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only + * if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, + * the test passes only if expectedOutputUrl does not contain any query parameters. + * + * expectedOutputUrl is optional whenservice is specified. + * @param expectedOutputUrl expectedOutputUrl or {@code null} for none + */ + public UrlMapTest setExpectedOutputUrl(java.lang.String expectedOutputUrl) { + this.expectedOutputUrl = expectedOutputUrl; + return this; + } + + /** + * For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the + * HTTP status code in load balancer's redirect response. + * + * expectedRedirectResponseCode cannot be set whenservice is set. + * @return value or {@code null} for none + */ + public java.lang.Integer getExpectedRedirectResponseCode() { + return expectedRedirectResponseCode; + } + + /** + * For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the + * HTTP status code in load balancer's redirect response. + * + * expectedRedirectResponseCode cannot be set whenservice is set. + * @param expectedRedirectResponseCode expectedRedirectResponseCode or {@code null} for none + */ + public UrlMapTest setExpectedRedirectResponseCode(java.lang.Integer expectedRedirectResponseCode) { + this.expectedRedirectResponseCode = expectedRedirectResponseCode; + return this; + } + + /** + * HTTP headers for this request. If headers contains a host header, then host must also match the + * header value. + * @return value or {@code null} for none + */ + public java.util.List getHeaders() { + return headers; + } + + /** + * HTTP headers for this request. If headers contains a host header, then host must also match the + * header value. + * @param headers headers or {@code null} for none + */ + public UrlMapTest setHeaders(java.util.List headers) { + this.headers = headers; + return this; + } + + /** + * Host portion of the URL. If headers contains a host header, then host must also match the + * header value. + * @return value or {@code null} for none + */ + public java.lang.String getHost() { + return host; + } + + /** + * Host portion of the URL. If headers contains a host header, then host must also match the + * header value. + * @param host host or {@code null} for none + */ + public UrlMapTest setHost(java.lang.String host) { + this.host = host; + return this; + } + + /** + * Path portion of the URL. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * Path portion of the URL. + * @param path path or {@code null} for none + */ + public UrlMapTest setPath(java.lang.String path) { + this.path = path; + return this; + } + + /** + * Expected BackendService or BackendBucket resource the given URL should be mapped to. + * + * The service field cannot be set if expectedRedirectResponseCode is set. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Expected BackendService or BackendBucket resource the given URL should be mapped to. + * + * The service field cannot be set if expectedRedirectResponseCode is set. + * @param service service or {@code null} for none + */ + public UrlMapTest setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public UrlMapTest set(String fieldName, Object value) { + return (UrlMapTest) super.set(fieldName, value); + } + + @Override + public UrlMapTest clone() { + return (UrlMapTest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTestHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTestHeader.java new file mode 100644 index 00000000000..10cf1a6ac3d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapTestHeader.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * HTTP headers used in UrlMapTests. + * + *

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 UrlMapTestHeader extends com.google.api.client.json.GenericJson { + + /** + * Header name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Header value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Header name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Header name. + * @param name name or {@code null} for none + */ + public UrlMapTestHeader setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Header value. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Header value. + * @param value value or {@code null} for none + */ + public UrlMapTestHeader setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public UrlMapTestHeader set(String fieldName, Object value) { + return (UrlMapTestHeader) super.set(fieldName, value); + } + + @Override + public UrlMapTestHeader clone() { + return (UrlMapTestHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java new file mode 100644 index 00000000000..343efc87390 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java @@ -0,0 +1,144 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message representing the validation result for a UrlMap. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UrlMapValidationResult extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loadErrors; + + /** + * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the + * reasons. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean loadSucceeded; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List testFailures; + + static { + // hack to force ProGuard to consider TestFailure 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(TestFailure.class); + } + + /** + * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's + * indicate the reason of failure. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean testPassed; + + /** + * @return value or {@code null} for none + */ + public java.util.List getLoadErrors() { + return loadErrors; + } + + /** + * @param loadErrors loadErrors or {@code null} for none + */ + public UrlMapValidationResult setLoadErrors(java.util.List loadErrors) { + this.loadErrors = loadErrors; + return this; + } + + /** + * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the + * reasons. + * @return value or {@code null} for none + */ + public java.lang.Boolean getLoadSucceeded() { + return loadSucceeded; + } + + /** + * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the + * reasons. + * @param loadSucceeded loadSucceeded or {@code null} for none + */ + public UrlMapValidationResult setLoadSucceeded(java.lang.Boolean loadSucceeded) { + this.loadSucceeded = loadSucceeded; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getTestFailures() { + return testFailures; + } + + /** + * @param testFailures testFailures or {@code null} for none + */ + public UrlMapValidationResult setTestFailures(java.util.List testFailures) { + this.testFailures = testFailures; + return this; + } + + /** + * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's + * indicate the reason of failure. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTestPassed() { + return testPassed; + } + + /** + * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's + * indicate the reason of failure. + * @param testPassed testPassed or {@code null} for none + */ + public UrlMapValidationResult setTestPassed(java.lang.Boolean testPassed) { + this.testPassed = testPassed; + return this; + } + + @Override + public UrlMapValidationResult set(String fieldName, Object value) { + return (UrlMapValidationResult) super.set(fieldName, value); + } + + @Override + public UrlMapValidationResult clone() { + return (UrlMapValidationResult) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java new file mode 100644 index 00000000000..db7c44a20e2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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 UrlMapsAggregatedList. + * + *

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 UrlMapsAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 UrlMapsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 UrlMapsAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of UrlMapsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of UrlMapsScopedList resources. + * @param items items or {@code null} for none + */ + public UrlMapsAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public UrlMapsAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public UrlMapsAggregatedList 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 UrlMapsAggregatedList 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 UrlMapsAggregatedList 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 UrlMapsAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public UrlMapsAggregatedList set(String fieldName, Object value) { + return (UrlMapsAggregatedList) super.set(fieldName, value); + } + + @Override + public UrlMapsAggregatedList clone() { + return (UrlMapsAggregatedList) 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 UrlMapsAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/UrlMapsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsScopedList.java new file mode 100644 index 00000000000..a09ec2fe051 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 UrlMapsScopedList. + * + *

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 UrlMapsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of UrlMaps contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urlMaps; + + static { + // hack to force ProGuard to consider UrlMap 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(UrlMap.class); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of UrlMaps contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getUrlMaps() { + return urlMaps; + } + + /** + * A list of UrlMaps contained in this scope. + * @param urlMaps urlMaps or {@code null} for none + */ + public UrlMapsScopedList setUrlMaps(java.util.List urlMaps) { + this.urlMaps = urlMaps; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public UrlMapsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public UrlMapsScopedList set(String fieldName, Object value) { + return (UrlMapsScopedList) super.set(fieldName, value); + } + + @Override + public UrlMapsScopedList clone() { + return (UrlMapsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 UrlMapsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateRequest.java new file mode 100644 index 00000000000..cd985d74b21 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateRequest.java @@ -0,0 +1,129 @@ +/* + * 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 UrlMapsValidateRequest. + * + *

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 UrlMapsValidateRequest extends com.google.api.client.json.GenericJson { + + /** + * Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for + * global external Application Load Balancers and regional external Application Load Balancers. + * Use EXTERNAL for classic Application Load Balancers. + * + * Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to + * Choosing a load balancer. + * + * If unspecified, the load balancing scheme will be inferred from the backend service resources + * this URL map references. If that can not be inferred (for example, this URL map only references + * backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any + * backends),EXTERNAL will be used as the default type. + * + * If specified, the scheme(s) must not conflict with the load balancing scheme of the backend + * service resources this Url map references. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loadBalancingSchemes; + + /** + * Content of the UrlMap to be validated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlMap resource; + + /** + * Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for + * global external Application Load Balancers and regional external Application Load Balancers. + * Use EXTERNAL for classic Application Load Balancers. + * + * Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to + * Choosing a load balancer. + * + * If unspecified, the load balancing scheme will be inferred from the backend service resources + * this URL map references. If that can not be inferred (for example, this URL map only references + * backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any + * backends),EXTERNAL will be used as the default type. + * + * If specified, the scheme(s) must not conflict with the load balancing scheme of the backend + * service resources this Url map references. + * @return value or {@code null} for none + */ + public java.util.List getLoadBalancingSchemes() { + return loadBalancingSchemes; + } + + /** + * Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for + * global external Application Load Balancers and regional external Application Load Balancers. + * Use EXTERNAL for classic Application Load Balancers. + * + * Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to + * Choosing a load balancer. + * + * If unspecified, the load balancing scheme will be inferred from the backend service resources + * this URL map references. If that can not be inferred (for example, this URL map only references + * backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any + * backends),EXTERNAL will be used as the default type. + * + * If specified, the scheme(s) must not conflict with the load balancing scheme of the backend + * service resources this Url map references. + * @param loadBalancingSchemes loadBalancingSchemes or {@code null} for none + */ + public UrlMapsValidateRequest setLoadBalancingSchemes(java.util.List loadBalancingSchemes) { + this.loadBalancingSchemes = loadBalancingSchemes; + return this; + } + + /** + * Content of the UrlMap to be validated. + * @return value or {@code null} for none + */ + public UrlMap getResource() { + return resource; + } + + /** + * Content of the UrlMap to be validated. + * @param resource resource or {@code null} for none + */ + public UrlMapsValidateRequest setResource(UrlMap resource) { + this.resource = resource; + return this; + } + + @Override + public UrlMapsValidateRequest set(String fieldName, Object value) { + return (UrlMapsValidateRequest) super.set(fieldName, value); + } + + @Override + public UrlMapsValidateRequest clone() { + return (UrlMapsValidateRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateResponse.java new file mode 100644 index 00000000000..c9ec7b24e3a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlMapsValidateResponse.java @@ -0,0 +1,63 @@ +/* + * 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 UrlMapsValidateResponse. + * + *

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 UrlMapsValidateResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlMapValidationResult result; + + /** + * @return value or {@code null} for none + */ + public UrlMapValidationResult getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public UrlMapsValidateResponse setResult(UrlMapValidationResult result) { + this.result = result; + return this; + } + + @Override + public UrlMapsValidateResponse set(String fieldName, Object value) { + return (UrlMapsValidateResponse) super.set(fieldName, value); + } + + @Override + public UrlMapsValidateResponse clone() { + return (UrlMapsValidateResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlRewrite.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlRewrite.java new file mode 100644 index 00000000000..dd2f055a789 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UrlRewrite.java @@ -0,0 +1,207 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The spec for modifying the path before sending the request to the matched backend service. + * + *

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 UrlRewrite extends com.google.api.client.json.GenericJson { + + /** + * Before forwarding the request to the selected service, the request's host header is replaced + * with contents of hostRewrite. + * + * The value must be from 1 to 255 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostRewrite; + + /** + * Before forwarding the request to the selected backend service, the matching portion of the + * request's path is replaced bypathPrefixRewrite. + * + * The value must be from 1 to 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathPrefixRewrite; + + /** + * If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP + * template syntax. + * + * A corresponding path_template_match must be specified. Any template variables must exist in the + * path_template_match field. - -At least one variable must be specified in the + * path_template_match field - You can omit variables from the rewritten URL - The + * * and ** operators cannot be matched unless they have a corresponding variable name - + * e.g. {format=*} or {var=**}. + * + * For example, a path_template_match of /static/{format=**} could be rewritten as + * /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a + * rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as + * /content/{format}/{country}/{suffix}. + * + * At least one non-empty routeRules[].matchRules[].path_template_match is required. + * + * Only one of path_prefix_rewrite orpath_template_rewrite may be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathTemplateRewrite; + + /** + * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, + * orregexRewrite may be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RegexRewrite regexRewrite; + + /** + * Before forwarding the request to the selected service, the request's host header is replaced + * with contents of hostRewrite. + * + * The value must be from 1 to 255 characters. + * @return value or {@code null} for none + */ + public java.lang.String getHostRewrite() { + return hostRewrite; + } + + /** + * Before forwarding the request to the selected service, the request's host header is replaced + * with contents of hostRewrite. + * + * The value must be from 1 to 255 characters. + * @param hostRewrite hostRewrite or {@code null} for none + */ + public UrlRewrite setHostRewrite(java.lang.String hostRewrite) { + this.hostRewrite = hostRewrite; + return this; + } + + /** + * Before forwarding the request to the selected backend service, the matching portion of the + * request's path is replaced bypathPrefixRewrite. + * + * The value must be from 1 to 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getPathPrefixRewrite() { + return pathPrefixRewrite; + } + + /** + * Before forwarding the request to the selected backend service, the matching portion of the + * request's path is replaced bypathPrefixRewrite. + * + * The value must be from 1 to 1024 characters. + * @param pathPrefixRewrite pathPrefixRewrite or {@code null} for none + */ + public UrlRewrite setPathPrefixRewrite(java.lang.String pathPrefixRewrite) { + this.pathPrefixRewrite = pathPrefixRewrite; + return this; + } + + /** + * If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP + * template syntax. + * + * A corresponding path_template_match must be specified. Any template variables must exist in the + * path_template_match field. - -At least one variable must be specified in the + * path_template_match field - You can omit variables from the rewritten URL - The + * * and ** operators cannot be matched unless they have a corresponding variable name - + * e.g. {format=*} or {var=**}. + * + * For example, a path_template_match of /static/{format=**} could be rewritten as + * /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a + * rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as + * /content/{format}/{country}/{suffix}. + * + * At least one non-empty routeRules[].matchRules[].path_template_match is required. + * + * Only one of path_prefix_rewrite orpath_template_rewrite may be specified. + * @return value or {@code null} for none + */ + public java.lang.String getPathTemplateRewrite() { + return pathTemplateRewrite; + } + + /** + * If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP + * template syntax. + * + * A corresponding path_template_match must be specified. Any template variables must exist in the + * path_template_match field. - -At least one variable must be specified in the + * path_template_match field - You can omit variables from the rewritten URL - The + * * and ** operators cannot be matched unless they have a corresponding variable name - + * e.g. {format=*} or {var=**}. + * + * For example, a path_template_match of /static/{format=**} could be rewritten as + * /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a + * rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as + * /content/{format}/{country}/{suffix}. + * + * At least one non-empty routeRules[].matchRules[].path_template_match is required. + * + * Only one of path_prefix_rewrite orpath_template_rewrite may be specified. + * @param pathTemplateRewrite pathTemplateRewrite or {@code null} for none + */ + public UrlRewrite setPathTemplateRewrite(java.lang.String pathTemplateRewrite) { + this.pathTemplateRewrite = pathTemplateRewrite; + return this; + } + + /** + * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, + * orregexRewrite may be specified. + * @return value or {@code null} for none + */ + public RegexRewrite getRegexRewrite() { + return regexRewrite; + } + + /** + * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, + * orregexRewrite may be specified. + * @param regexRewrite regexRewrite or {@code null} for none + */ + public UrlRewrite setRegexRewrite(RegexRewrite regexRewrite) { + this.regexRewrite = regexRewrite; + return this; + } + + @Override + public UrlRewrite set(String fieldName, Object value) { + return (UrlRewrite) super.set(fieldName, value); + } + + @Override + public UrlRewrite clone() { + return (UrlRewrite) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java new file mode 100644 index 00000000000..05fe83d9ac0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -0,0 +1,306 @@ +/* + * 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; + +/** + * Subnetwork which the current user has compute.subnetworks.use permission on. + * + *

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 UsableSubnetwork extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalIpv6Prefix; + + /** + * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String internalIpv6Prefix; + + /** + * The range of internal addresses that are owned by this subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * The access type of IPv6 address this subnet holds. It's immutable and can only be specified + * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6AccessType; + + /** + * Network URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String purpose; + + /** + * The role of subnetwork. Currently, this field is only used when purpose is set to + * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a + * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently + * draining. This field can be updated with a patch request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Secondary IP ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List secondaryIpRanges; + + /** + * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 + * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + * addresses. If not specified, IPV4_ONLY is used. + * + * This field can be both set at resource creation time and updated usingpatch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * Subnetwork URL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getExternalIpv6Prefix() { + return externalIpv6Prefix; + } + + /** + * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * @param externalIpv6Prefix externalIpv6Prefix or {@code null} for none + */ + public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefix) { + this.externalIpv6Prefix = externalIpv6Prefix; + return this; + } + + /** + * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getInternalIpv6Prefix() { + return internalIpv6Prefix; + } + + /** + * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * @param internalIpv6Prefix internalIpv6Prefix or {@code null} for none + */ + public UsableSubnetwork setInternalIpv6Prefix(java.lang.String internalIpv6Prefix) { + this.internalIpv6Prefix = internalIpv6Prefix; + return this; + } + + /** + * The range of internal addresses that are owned by this subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The range of internal addresses that are owned by this subnetwork. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public UsableSubnetwork setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * The access type of IPv6 address this subnet holds. It's immutable and can only be specified + * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6AccessType() { + return ipv6AccessType; + } + + /** + * The access type of IPv6 address this subnet holds. It's immutable and can only be specified + * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. + * @param ipv6AccessType ipv6AccessType or {@code null} for none + */ + public UsableSubnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { + this.ipv6AccessType = ipv6AccessType; + return this; + } + + /** + * Network URL. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Network URL. + * @param network network or {@code null} for none + */ + public UsableSubnetwork setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getPurpose() { + return purpose; + } + + /** + * @param purpose purpose or {@code null} for none + */ + public UsableSubnetwork setPurpose(java.lang.String purpose) { + this.purpose = purpose; + return this; + } + + /** + * The role of subnetwork. Currently, this field is only used when purpose is set to + * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a + * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently + * draining. This field can be updated with a patch request. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * The role of subnetwork. Currently, this field is only used when purpose is set to + * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An + * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a + * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently + * draining. This field can be updated with a patch request. + * @param role role or {@code null} for none + */ + public UsableSubnetwork setRole(java.lang.String role) { + this.role = role; + return this; + } + + /** + * Secondary IP ranges. + * @return value or {@code null} for none + */ + public java.util.List getSecondaryIpRanges() { + return secondaryIpRanges; + } + + /** + * Secondary IP ranges. + * @param secondaryIpRanges secondaryIpRanges or {@code null} for none + */ + public UsableSubnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { + this.secondaryIpRanges = secondaryIpRanges; + return this; + } + + /** + * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 + * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + * addresses. If not specified, IPV4_ONLY is used. + * + * This field can be both set at resource creation time and updated usingpatch. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 + * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + * addresses. If not specified, IPV4_ONLY is used. + * + * This field can be both set at resource creation time and updated usingpatch. + * @param stackType stackType or {@code null} for none + */ + public UsableSubnetwork setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + /** + * Subnetwork URL. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * Subnetwork URL. + * @param subnetwork subnetwork or {@code null} for none + */ + public UsableSubnetwork setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + @Override + public UsableSubnetwork set(String fieldName, Object value) { + return (UsableSubnetwork) super.set(fieldName, value); + } + + @Override + public UsableSubnetwork clone() { + return (UsableSubnetwork) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java new file mode 100644 index 00000000000..44ad036dfd4 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,99 @@ +/* + * 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; + +/** + * Secondary IP range of a usable subnetwork. + * + *

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 UsableSubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { + + /** + * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 + * range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; + + /** + * The name associated with this subnetwork secondary range, used when adding an alias IP range to + * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be + * unique within the subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rangeName; + + /** + * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 + * range. + * @return value or {@code null} for none + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } + + /** + * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 + * range. + * @param ipCidrRange ipCidrRange or {@code null} for none + */ + public UsableSubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } + + /** + * The name associated with this subnetwork secondary range, used when adding an alias IP range to + * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be + * unique within the subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getRangeName() { + return rangeName; + } + + /** + * The name associated with this subnetwork secondary range, used when adding an alias IP range to + * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be + * unique within the subnetwork. + * @param rangeName rangeName or {@code null} for none + */ + public UsableSubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { + this.rangeName = rangeName; + return this; + } + + @Override + public UsableSubnetworkSecondaryRange set(String fieldName, Object value) { + return (UsableSubnetworkSecondaryRange) super.set(fieldName, value); + } + + @Override + public UsableSubnetworkSecondaryRange clone() { + return (UsableSubnetworkSecondaryRange) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java new file mode 100644 index 00000000000..4eae4813df3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -0,0 +1,443 @@ +/* + * 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 UsableSubnetworksAggregatedList. + * + *

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 UsableSubnetworksAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 + private java.lang.String id; + + /** + * [Output] A list of usable subnetwork URLs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider UsableSubnetwork 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(UsableSubnetwork.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for + * aggregated lists of usable subnetworks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. In special cases listUsable may return 0 + * subnetworks andnextPageToken which still should be used to get the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopedWarnings; + + static { + // hack to force ProGuard to consider SubnetworksScopedWarning 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(SubnetworksScopedWarning.class); + } + + /** + * 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; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public UsableSubnetworksAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * [Output] A list of usable subnetwork URLs. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * [Output] A list of usable subnetwork URLs. + * @param items items or {@code null} for none + */ + public UsableSubnetworksAggregatedList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for + * aggregated lists of usable subnetworks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for + * aggregated lists of usable subnetworks. + * @param kind kind or {@code null} for none + */ + public UsableSubnetworksAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. In special cases listUsable may return 0 + * subnetworks andnextPageToken which still should be used to get the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. In special cases listUsable may return 0 + * subnetworks andnextPageToken which still should be used to get the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * @return value or {@code null} for none + */ + public java.util.List getScopedWarnings() { + return scopedWarnings; + } + + /** + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * @param scopedWarnings scopedWarnings or {@code null} for none + */ + public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List scopedWarnings) { + this.scopedWarnings = scopedWarnings; + 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 UsableSubnetworksAggregatedList 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 UsableSubnetworksAggregatedList 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 UsableSubnetworksAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public UsableSubnetworksAggregatedList set(String fieldName, Object value) { + return (UsableSubnetworksAggregatedList) super.set(fieldName, value); + } + + @Override + public UsableSubnetworksAggregatedList clone() { + return (UsableSubnetworksAggregatedList) 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 UsableSubnetworksAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/UsageExportLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsageExportLocation.java new file mode 100644 index 00000000000..bd41895ea44 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/UsageExportLocation.java @@ -0,0 +1,112 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name + * and report_name prefix. + * + *

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 UsageExportLocation extends com.google.api.client.json.GenericJson { + + /** + * The name of an existing bucket in Cloud Storage where the usage report object is stored. The + * Google Service Account is granted write access to this bucket. This can either be the bucket + * name by itself, such asexample-bucket, or the bucket name with gs:// or + * https://storage.googleapis.com/ in front of it, such as gs://example-bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bucketName; + + /** + * An optional prefix for the name of the usage report object stored inbucketName. If not + * supplied, defaults tousage_gce. The report is stored as a CSV file + * namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to + * Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming + * conventions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reportNamePrefix; + + /** + * The name of an existing bucket in Cloud Storage where the usage report object is stored. The + * Google Service Account is granted write access to this bucket. This can either be the bucket + * name by itself, such asexample-bucket, or the bucket name with gs:// or + * https://storage.googleapis.com/ in front of it, such as gs://example-bucket. + * @return value or {@code null} for none + */ + public java.lang.String getBucketName() { + return bucketName; + } + + /** + * The name of an existing bucket in Cloud Storage where the usage report object is stored. The + * Google Service Account is granted write access to this bucket. This can either be the bucket + * name by itself, such asexample-bucket, or the bucket name with gs:// or + * https://storage.googleapis.com/ in front of it, such as gs://example-bucket. + * @param bucketName bucketName or {@code null} for none + */ + public UsageExportLocation setBucketName(java.lang.String bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * An optional prefix for the name of the usage report object stored inbucketName. If not + * supplied, defaults tousage_gce. The report is stored as a CSV file + * namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to + * Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming + * conventions. + * @return value or {@code null} for none + */ + public java.lang.String getReportNamePrefix() { + return reportNamePrefix; + } + + /** + * An optional prefix for the name of the usage report object stored inbucketName. If not + * supplied, defaults tousage_gce. The report is stored as a CSV file + * namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to + * Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming + * conventions. + * @param reportNamePrefix reportNamePrefix or {@code null} for none + */ + public UsageExportLocation setReportNamePrefix(java.lang.String reportNamePrefix) { + this.reportNamePrefix = reportNamePrefix; + return this; + } + + @Override + public UsageExportLocation set(String fieldName, Object value) { + return (UsageExportLocation) super.set(fieldName, value); + } + + @Override + public UsageExportLocation clone() { + return (UsageExportLocation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java new file mode 100644 index 00000000000..dba5c153b73 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -0,0 +1,87 @@ +/* + * 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; + +/** + * Contain information of Nat mapping for a VM endpoint (i.e., NIC). + * + *

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 VmEndpointNatMappings extends com.google.api.client.json.GenericJson { + + /** + * Output only. Name of the VM instance which the endpoint belongs to + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceName; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List interfaceNatMappings; + + /** + * Output only. Name of the VM instance which the endpoint belongs to + * @return value or {@code null} for none + */ + public java.lang.String getInstanceName() { + return instanceName; + } + + /** + * Output only. Name of the VM instance which the endpoint belongs to + * @param instanceName instanceName or {@code null} for none + */ + public VmEndpointNatMappings setInstanceName(java.lang.String instanceName) { + this.instanceName = instanceName; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getInterfaceNatMappings() { + return interfaceNatMappings; + } + + /** + * @param interfaceNatMappings interfaceNatMappings or {@code null} for none + */ + public VmEndpointNatMappings setInterfaceNatMappings(java.util.List interfaceNatMappings) { + this.interfaceNatMappings = interfaceNatMappings; + return this; + } + + @Override + public VmEndpointNatMappings set(String fieldName, Object value) { + return (VmEndpointNatMappings) super.set(fieldName, value); + } + + @Override + public VmEndpointNatMappings clone() { + return (VmEndpointNatMappings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java new file mode 100644 index 00000000000..69ee2a0bc82 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -0,0 +1,231 @@ +/* + * 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; + +/** + * Contain information of Nat mapping for an interface of this endpoint. + * + *

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 VmEndpointNatMappingsInterfaceNatMappings extends com.google.api.client.json.GenericJson { + + /** + * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges + * are inclusive, that is, both the first and the last ports can be used for NAT. Example: + * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List drainNatIpPortRanges; + + /** + * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are + * inclusive, that is, both the first and the last ports can be used for NAT. Example: + * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natIpPortRanges; + + /** + * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It + * equals to the aggregated port number in the field drain_nat_ip_port_ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numTotalDrainNatPorts; + + /** + * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to + * the aggregated port number in the field nat_ip_port_ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numTotalNatPorts; + + /** + * Output only. Information about mappings provided by rules in this NAT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ruleMappings; + + /** + * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP + * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceAliasIpRange; + + /** + * Output only. Primary IP of the VM for this NIC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceVirtualIp; + + /** + * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges + * are inclusive, that is, both the first and the last ports can be used for NAT. Example: + * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @return value or {@code null} for none + */ + public java.util.List getDrainNatIpPortRanges() { + return drainNatIpPortRanges; + } + + /** + * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges + * are inclusive, that is, both the first and the last ports can be used for NAT. Example: + * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @param drainNatIpPortRanges drainNatIpPortRanges or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.util.List drainNatIpPortRanges) { + this.drainNatIpPortRanges = drainNatIpPortRanges; + return this; + } + + /** + * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are + * inclusive, that is, both the first and the last ports can be used for NAT. Example: + * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @return value or {@code null} for none + */ + public java.util.List getNatIpPortRanges() { + return natIpPortRanges; + } + + /** + * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are + * inclusive, that is, both the first and the last ports can be used for NAT. Example: + * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @param natIpPortRanges natIpPortRanges or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.List natIpPortRanges) { + this.natIpPortRanges = natIpPortRanges; + return this; + } + + /** + * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It + * equals to the aggregated port number in the field drain_nat_ip_port_ranges. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumTotalDrainNatPorts() { + return numTotalDrainNatPorts; + } + + /** + * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It + * equals to the aggregated port number in the field drain_nat_ip_port_ranges. + * @param numTotalDrainNatPorts numTotalDrainNatPorts or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.lang.Integer numTotalDrainNatPorts) { + this.numTotalDrainNatPorts = numTotalDrainNatPorts; + return this; + } + + /** + * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to + * the aggregated port number in the field nat_ip_port_ranges. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumTotalNatPorts() { + return numTotalNatPorts; + } + + /** + * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to + * the aggregated port number in the field nat_ip_port_ranges. + * @param numTotalNatPorts numTotalNatPorts or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.Integer numTotalNatPorts) { + this.numTotalNatPorts = numTotalNatPorts; + return this; + } + + /** + * Output only. Information about mappings provided by rules in this NAT. + * @return value or {@code null} for none + */ + public java.util.List getRuleMappings() { + return ruleMappings; + } + + /** + * Output only. Information about mappings provided by rules in this NAT. + * @param ruleMappings ruleMappings or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List ruleMappings) { + this.ruleMappings = ruleMappings; + return this; + } + + /** + * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP + * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". + * @return value or {@code null} for none + */ + public java.lang.String getSourceAliasIpRange() { + return sourceAliasIpRange; + } + + /** + * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP + * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". + * @param sourceAliasIpRange sourceAliasIpRange or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang.String sourceAliasIpRange) { + this.sourceAliasIpRange = sourceAliasIpRange; + return this; + } + + /** + * Output only. Primary IP of the VM for this NIC. + * @return value or {@code null} for none + */ + public java.lang.String getSourceVirtualIp() { + return sourceVirtualIp; + } + + /** + * Output only. Primary IP of the VM for this NIC. + * @param sourceVirtualIp sourceVirtualIp or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappings setSourceVirtualIp(java.lang.String sourceVirtualIp) { + this.sourceVirtualIp = sourceVirtualIp; + return this; + } + + @Override + public VmEndpointNatMappingsInterfaceNatMappings set(String fieldName, Object value) { + return (VmEndpointNatMappingsInterfaceNatMappings) super.set(fieldName, value); + } + + @Override + public VmEndpointNatMappingsInterfaceNatMappings clone() { + return (VmEndpointNatMappingsInterfaceNatMappings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java new file mode 100644 index 00000000000..1b6a728406e --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -0,0 +1,180 @@ +/* + * 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; + +/** + * Contains information of NAT Mappings provided by a NAT Rule. + * + *

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 VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends com.google.api.client.json.GenericJson { + + /** + * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List drainNatIpPortRanges; + + /** + * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List natIpPortRanges; + + /** + * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this + * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numTotalDrainNatPorts; + + /** + * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. + * It equals the aggregated port number in the field nat_ip_port_ranges. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer numTotalNatPorts; + + /** + * Output only. Rule number of the NAT Rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ruleNumber; + + /** + * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @return value or {@code null} for none + */ + public java.util.List getDrainNatIpPortRanges() { + return drainNatIpPortRanges; + } + + /** + * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @param drainNatIpPortRanges drainNatIpPortRanges or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPortRanges(java.util.List drainNatIpPortRanges) { + this.drainNatIpPortRanges = drainNatIpPortRanges; + return this; + } + + /** + * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @return value or {@code null} for none + */ + public java.util.List getNatIpPortRanges() { + return natIpPortRanges; + } + + /** + * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. + * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. + * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @param natIpPortRanges natIpPortRanges or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRanges(java.util.List natIpPortRanges) { + this.natIpPortRanges = natIpPortRanges; + return this; + } + + /** + * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this + * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumTotalDrainNatPorts() { + return numTotalDrainNatPorts; + } + + /** + * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this + * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * @param numTotalDrainNatPorts numTotalDrainNatPorts or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrainNatPorts(java.lang.Integer numTotalDrainNatPorts) { + this.numTotalDrainNatPorts = numTotalDrainNatPorts; + return this; + } + + /** + * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. + * It equals the aggregated port number in the field nat_ip_port_ranges. + * @return value or {@code null} for none + */ + public java.lang.Integer getNumTotalNatPorts() { + return numTotalNatPorts; + } + + /** + * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. + * It equals the aggregated port number in the field nat_ip_port_ranges. + * @param numTotalNatPorts numTotalNatPorts or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPorts(java.lang.Integer numTotalNatPorts) { + this.numTotalNatPorts = numTotalNatPorts; + return this; + } + + /** + * Output only. Rule number of the NAT Rule. + * @return value or {@code null} for none + */ + public java.lang.Integer getRuleNumber() { + return ruleNumber; + } + + /** + * Output only. Rule number of the NAT Rule. + * @param ruleNumber ruleNumber or {@code null} for none + */ + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { + this.ruleNumber = ruleNumber; + return this; + } + + @Override + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings set(String fieldName, Object value) { + return (VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) super.set(fieldName, value); + } + + @Override + public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings clone() { + return (VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java new file mode 100644 index 00000000000..9fe497a1f6c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -0,0 +1,386 @@ +/* + * 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; + +/** + * Contains a list of VmEndpointNatMappings. + * + *

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 VmEndpointNatMappingsList extends com.google.api.client.json.GenericJson { + + /** + * [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 + private java.lang.String id; + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists + * of Nat mappings of VM endpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * [Output Only] A list of Nat mapping information of VM endpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List result; + + static { + // hack to force ProGuard to consider VmEndpointNatMappings 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(VmEndpointNatMappings.class); + } + + /** + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public VmEndpointNatMappingsList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists + * of Nat mappings of VM endpoints. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists + * of Nat mappings of VM endpoints. + * @param kind kind or {@code null} for none + */ + public VmEndpointNatMappingsList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VmEndpointNatMappingsList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * [Output Only] A list of Nat mapping information of VM endpoints. + * @return value or {@code null} for none + */ + public java.util.List getResult() { + return result; + } + + /** + * [Output Only] A list of Nat mapping information of VM endpoints. + * @param result result or {@code null} for none + */ + public VmEndpointNatMappingsList setResult(java.util.List result) { + this.result = result; + 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 VmEndpointNatMappingsList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 VmEndpointNatMappingsList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VmEndpointNatMappingsList set(String fieldName, Object value) { + return (VmEndpointNatMappingsList) super.set(fieldName, value); + } + + @Override + public VmEndpointNatMappingsList clone() { + return (VmEndpointNatMappingsList) 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 VmEndpointNatMappingsListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPoliciesScopedList.java new file mode 100644 index 00000000000..d18ca342b81 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPoliciesScopedList.java @@ -0,0 +1,272 @@ +/* + * 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 VmExtensionPoliciesScopedList. + * + *

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 VmExtensionPoliciesScopedList extends com.google.api.client.json.GenericJson { + + /** + * List of VmExtensionPolicy resources contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List vmExtensionPolicies; + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * List of VmExtensionPolicy resources contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getVmExtensionPolicies() { + return vmExtensionPolicies; + } + + /** + * List of VmExtensionPolicy resources contained in this scope. + * @param vmExtensionPolicies vmExtensionPolicies or {@code null} for none + */ + public VmExtensionPoliciesScopedList setVmExtensionPolicies(java.util.List vmExtensionPolicies) { + this.vmExtensionPolicies = vmExtensionPolicies; + return this; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + * @param warning warning or {@code null} for none + */ + public VmExtensionPoliciesScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VmExtensionPoliciesScopedList set(String fieldName, Object value) { + return (VmExtensionPoliciesScopedList) super.set(fieldName, value); + } + + @Override + public VmExtensionPoliciesScopedList clone() { + return (VmExtensionPoliciesScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of backend services when the list is empty. + */ + 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 VmExtensionPoliciesScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java new file mode 100644 index 00000000000..c33bf330196 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java @@ -0,0 +1,414 @@ +/* + * 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 VM extension policy. + * + *

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 VmExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * configurations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map extensionPolicies; + + /** + * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, + * if applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String globalResourceLink; + + /** + * 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; + + /** + * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the + * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instanceSelectors; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean managedByGlobal; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to + * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower + * integers indicate higher priorities. If you do not specify a priority when creating a rule, it + * is assigned a priority of 1000. If priorities are equal, the policy with the most recent + * creation timestamp takes precedence. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** + * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String updateTimestamp; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public VmExtensionPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * configurations. + * @return value or {@code null} for none + */ + public java.util.Map getExtensionPolicies() { + return extensionPolicies; + } + + /** + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * configurations. + * @param extensionPolicies extensionPolicies or {@code null} for none + */ + public VmExtensionPolicy setExtensionPolicies(java.util.Map extensionPolicies) { + this.extensionPolicies = extensionPolicies; + return this; + } + + /** + * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, + * if applicable. + * @return value or {@code null} for none + */ + public java.lang.String getGlobalResourceLink() { + return globalResourceLink; + } + + /** + * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, + * if applicable. + * @param globalResourceLink globalResourceLink or {@code null} for none + */ + public VmExtensionPolicy setGlobalResourceLink(java.lang.String globalResourceLink) { + this.globalResourceLink = globalResourceLink; + 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 VmExtensionPolicy setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the + * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. + * @return value or {@code null} for none + */ + public java.util.List getInstanceSelectors() { + return instanceSelectors; + } + + /** + * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the + * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. + * @param instanceSelectors instanceSelectors or {@code null} for none + */ + public VmExtensionPolicy setInstanceSelectors(java.util.List instanceSelectors) { + this.instanceSelectors = instanceSelectors; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * @param kind kind or {@code null} for none + */ + public VmExtensionPolicy setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getManagedByGlobal() { + return managedByGlobal; + } + + /** + * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. + * @param managedByGlobal managedByGlobal or {@code null} for none + */ + public VmExtensionPolicy setManagedByGlobal(java.lang.Boolean managedByGlobal) { + this.managedByGlobal = managedByGlobal; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 VmExtensionPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to + * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower + * integers indicate higher priorities. If you do not specify a priority when creating a rule, it + * is assigned a priority of 1000. If priorities are equal, the policy with the most recent + * creation timestamp takes precedence. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to + * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower + * integers indicate higher priorities. If you do not specify a priority when creating a rule, it + * is assigned a priority of 1000. If priorities are equal, the policy with the most recent + * creation timestamp takes precedence. + * @param priority priority or {@code null} for none + */ + public VmExtensionPolicy setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public VmExtensionPolicy setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource's resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public VmExtensionPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. + * @param state state or {@code null} for none + */ + public VmExtensionPolicy setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getUpdateTimestamp() { + return updateTimestamp; + } + + /** + * Output only. [Output Only] Update timestamp inRFC3339 text format. + * @param updateTimestamp updateTimestamp or {@code null} for none + */ + public VmExtensionPolicy setUpdateTimestamp(java.lang.String updateTimestamp) { + this.updateTimestamp = updateTimestamp; + return this; + } + + @Override + public VmExtensionPolicy set(String fieldName, Object value) { + return (VmExtensionPolicy) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicy clone() { + return (VmExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyAggregatedListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyAggregatedListResponse.java new file mode 100644 index 00000000000..a67a7e92719 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyAggregatedListResponse.java @@ -0,0 +1,431 @@ +/* + * 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 for the aggregated list of VM extension policies. + * + *

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 VmExtensionPolicyAggregatedListResponse extends com.google.api.client.json.GenericJson { + + /** + * 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 VmExtensionPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + static { + // hack to force ProGuard to consider VmExtensionPoliciesScopedList 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(VmExtensionPoliciesScopedList.class); + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for + * lists of VmExtensionPolicies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VmExtensionPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of VmExtensionPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public VmExtensionPolicyAggregatedListResponse setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for + * lists of VmExtensionPolicies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for + * lists of VmExtensionPolicies. + * @param kind kind or {@code null} for none + */ + public VmExtensionPolicyAggregatedListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VmExtensionPolicyAggregatedListResponse set(String fieldName, Object value) { + return (VmExtensionPolicyAggregatedListResponse) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyAggregatedListResponse clone() { + return (VmExtensionPolicyAggregatedListResponse) 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 VmExtensionPolicyAggregatedListResponseWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java new file mode 100644 index 00000000000..e7c963e89f3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java @@ -0,0 +1,93 @@ +/* + * 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; + +/** + * Configuration for a specific VM extension. + * + *

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 VmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. The specific version of the extension to install. If not set, the latest version is + * used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pinnedVersion; + + /** + * Optional. String-based configuration data for the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringConfig; + + /** + * Optional. The specific version of the extension to install. If not set, the latest version is + * used. + * @return value or {@code null} for none + */ + public java.lang.String getPinnedVersion() { + return pinnedVersion; + } + + /** + * Optional. The specific version of the extension to install. If not set, the latest version is + * used. + * @param pinnedVersion pinnedVersion or {@code null} for none + */ + public VmExtensionPolicyExtensionPolicy setPinnedVersion(java.lang.String pinnedVersion) { + this.pinnedVersion = pinnedVersion; + return this; + } + + /** + * Optional. String-based configuration data for the extension. + * @return value or {@code null} for none + */ + public java.lang.String getStringConfig() { + return stringConfig; + } + + /** + * Optional. String-based configuration data for the extension. + * @param stringConfig stringConfig or {@code null} for none + */ + public VmExtensionPolicyExtensionPolicy setStringConfig(java.lang.String stringConfig) { + this.stringConfig = stringConfig; + return this; + } + + @Override + public VmExtensionPolicyExtensionPolicy set(String fieldName, Object value) { + return (VmExtensionPolicyExtensionPolicy) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyExtensionPolicy clone() { + return (VmExtensionPolicyExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java new file mode 100644 index 00000000000..eb7dcf9ee1f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.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; + +/** + * Defines how to select VMs to apply a zone VM extension policy. + * + *

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 VmExtensionPolicyInstanceSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. LabelSelector selects VMs based on their labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VmExtensionPolicyLabelSelector labelSelector; + + /** + * Optional. LabelSelector selects VMs based on their labels. + * @return value or {@code null} for none + */ + public VmExtensionPolicyLabelSelector getLabelSelector() { + return labelSelector; + } + + /** + * Optional. LabelSelector selects VMs based on their labels. + * @param labelSelector labelSelector or {@code null} for none + */ + public VmExtensionPolicyInstanceSelector setLabelSelector(VmExtensionPolicyLabelSelector labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + @Override + public VmExtensionPolicyInstanceSelector set(String fieldName, Object value) { + return (VmExtensionPolicyInstanceSelector) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyInstanceSelector clone() { + return (VmExtensionPolicyInstanceSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java new file mode 100644 index 00000000000..f9234c51174 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java @@ -0,0 +1,87 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A LabelSelector is applied to a VM only if it matches all the specified labels. + * + *

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 VmExtensionPolicyLabelSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels + * specified in this map to be selected (logical AND). + * + * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must + * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are + * ("key1", "value1") and ("something", "else"), it will not be selected. + * + * If the map is empty, it's considered a match. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map inclusionLabels; + + /** + * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels + * specified in this map to be selected (logical AND). + * + * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must + * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are + * ("key1", "value1") and ("something", "else"), it will not be selected. + * + * If the map is empty, it's considered a match. + * @return value or {@code null} for none + */ + public java.util.Map getInclusionLabels() { + return inclusionLabels; + } + + /** + * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels + * specified in this map to be selected (logical AND). + * + * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must + * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are + * ("key1", "value1") and ("something", "else"), it will not be selected. + * + * If the map is empty, it's considered a match. + * @param inclusionLabels inclusionLabels or {@code null} for none + */ + public VmExtensionPolicyLabelSelector setInclusionLabels(java.util.Map inclusionLabels) { + this.inclusionLabels = inclusionLabels; + return this; + } + + @Override + public VmExtensionPolicyLabelSelector set(String fieldName, Object value) { + return (VmExtensionPolicyLabelSelector) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyLabelSelector clone() { + return (VmExtensionPolicyLabelSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java new file mode 100644 index 00000000000..3357ff16fc0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java @@ -0,0 +1,449 @@ +/* + * 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 VmExtensionPolicyList. + * + *

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 VmExtensionPolicyList extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this + * object. This field is used in optimistic locking. This field will be ignored when inserting a + * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the + * VmExtensionPolicy. + * + * To see the latest value of the fingerprint, make a get() request to retrieve a + * VmExtensionPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. [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; + + /** + * Output only. [Output Only] A list of VM extension policy 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 VmExtensionPolicy 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(VmExtensionPolicy.class); + } + + /** + * Output only. Type of resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * 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. [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this + * object. This field is used in optimistic locking. This field will be ignored when inserting a + * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the + * VmExtensionPolicy. + * + * To see the latest value of the fingerprint, make a get() request to retrieve a + * VmExtensionPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this + * object. This field is used in optimistic locking. This field will be ignored when inserting a + * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the + * VmExtensionPolicy. + * + * To see the latest value of the fingerprint, make a get() request to retrieve a + * VmExtensionPolicy. + * @param etag etag or {@code null} for none + */ + public VmExtensionPolicyList setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public VmExtensionPolicyList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] A list of VM extension policy resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. [Output Only] A list of VM extension policy resources. + * @param items items or {@code null} for none + */ + public VmExtensionPolicyList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of resource. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of resource. + * @param kind kind or {@code null} for none + */ + public VmExtensionPolicyList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VmExtensionPolicyList 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 VmExtensionPolicyList 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 VmExtensionPolicyList setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * Output only. [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Output only. [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public VmExtensionPolicyList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VmExtensionPolicyList set(String fieldName, Object value) { + return (VmExtensionPolicyList) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyList clone() { + return (VmExtensionPolicyList) super.clone(); + } + + /** + * Output only. [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 VmExtensionPolicyListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGateway.java new file mode 100644 index 00000000000..d8149f69b9b --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -0,0 +1,474 @@ +/* + * 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 HA VPN gateway. + * + * HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on- + * premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN + * connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN + * topologies . + * + *

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 VpnGateway extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will + * be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gatewayIpVersion; + + /** + * 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] Type of resource. Always compute#vpnGateway for VPN gateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Name of the resource. Provided by the client 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; + + /** + * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN + * gateway is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnGatewayParams params; + + /** + * Output only. [Output Only] URL of the region where the VPN gateway resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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; + + /** + * The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible + * values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway + * IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stackType; + + /** + * The list of VPN interfaces associated with this VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List vpnInterfaces; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public VpnGateway setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will + * be used. + * @return value or {@code null} for none + */ + public java.lang.String getGatewayIpVersion() { + return gatewayIpVersion; + } + + /** + * The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will + * be used. + * @param gatewayIpVersion gatewayIpVersion or {@code null} for none + */ + public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { + this.gatewayIpVersion = gatewayIpVersion; + 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 VpnGateway setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * @param kind kind or {@code null} for none + */ + public VpnGateway setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public VpnGateway setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public VpnGateway encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public VpnGateway setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 VpnGateway setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN + * gateway is created. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN + * gateway is created. + * @param network network or {@code null} for none + */ + public VpnGateway setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public VpnGatewayParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public VpnGateway setParams(VpnGatewayParams params) { + this.params = params; + return this; + } + + /** + * Output only. [Output Only] URL of the region where the VPN gateway resides. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] URL of the region where the VPN gateway resides. + * @param region region or {@code null} for none + */ + public VpnGateway setRegion(java.lang.String region) { + this.region = region; + 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 VpnGateway setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible + * values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway + * IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. + * @return value or {@code null} for none + */ + public java.lang.String getStackType() { + return stackType; + } + + /** + * The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible + * values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway + * IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. + * @param stackType stackType or {@code null} for none + */ + public VpnGateway setStackType(java.lang.String stackType) { + this.stackType = stackType; + return this; + } + + /** + * The list of VPN interfaces associated with this VPN gateway. + * @return value or {@code null} for none + */ + public java.util.List getVpnInterfaces() { + return vpnInterfaces; + } + + /** + * The list of VPN interfaces associated with this VPN gateway. + * @param vpnInterfaces vpnInterfaces or {@code null} for none + */ + public VpnGateway setVpnInterfaces(java.util.List vpnInterfaces) { + this.vpnInterfaces = vpnInterfaces; + return this; + } + + @Override + public VpnGateway set(String fieldName, Object value) { + return (VpnGateway) super.set(fieldName, value); + } + + @Override + public VpnGateway clone() { + return (VpnGateway) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java new file mode 100644 index 00000000000..e1e5c19b133 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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 VpnGatewayAggregatedList. + * + *

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 VpnGatewayAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 VpnGateway resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 VpnGatewayAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VpnGateway resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of VpnGateway resources. + * @param items items or {@code null} for none + */ + public VpnGatewayAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * @param kind kind or {@code null} for none + */ + public VpnGatewayAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VpnGatewayAggregatedList 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 VpnGatewayAggregatedList 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 VpnGatewayAggregatedList 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 VpnGatewayAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VpnGatewayAggregatedList set(String fieldName, Object value) { + return (VpnGatewayAggregatedList) super.set(fieldName, value); + } + + @Override + public VpnGatewayAggregatedList clone() { + return (VpnGatewayAggregatedList) 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 VpnGatewayAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java new file mode 100644 index 00000000000..28bc07bd31a --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of VpnGateway resources. + * + *

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 VpnGatewayList extends com.google.api.client.json.GenericJson { + + /** + * [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 VpnGateway 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 VpnGateway 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(VpnGateway.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 VpnGatewayList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VpnGateway resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of VpnGateway resources. + * @param items items or {@code null} for none + */ + public VpnGatewayList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * @param kind kind or {@code null} for none + */ + public VpnGatewayList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VpnGatewayList 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 VpnGatewayList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 VpnGatewayList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VpnGatewayList set(String fieldName, Object value) { + return (VpnGatewayList) super.set(fieldName, value); + } + + @Override + public VpnGatewayList clone() { + return (VpnGatewayList) 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 VpnGatewayListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java new file mode 100644 index 00000000000..385521140f5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java @@ -0,0 +1,87 @@ +/* + * 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 VpnGatewayParams. + * + *

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 VpnGatewayParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public VpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public VpnGatewayParams set(String fieldName, Object value) { + return (VpnGatewayParams) super.set(fieldName, value); + } + + @Override + public VpnGatewayParams clone() { + return (VpnGatewayParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java new file mode 100644 index 00000000000..e70f0cef786 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.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; + +/** + * Model definition for VpnGatewayStatus. + * + *

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 VpnGatewayStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. List of VPN connection for this VpnGateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List vpnConnections; + + /** + * Output only. List of VPN connection for this VpnGateway. + * @return value or {@code null} for none + */ + public java.util.List getVpnConnections() { + return vpnConnections; + } + + /** + * Output only. List of VPN connection for this VpnGateway. + * @param vpnConnections vpnConnections or {@code null} for none + */ + public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { + this.vpnConnections = vpnConnections; + return this; + } + + @Override + public VpnGatewayStatus set(String fieldName, Object value) { + return (VpnGatewayStatus) super.set(fieldName, value); + } + + @Override + public VpnGatewayStatus clone() { + return (VpnGatewayStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusHighAvailabilityRequirementState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusHighAvailabilityRequirementState.java new file mode 100644 index 00000000000..fd5481b56d5 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusHighAvailabilityRequirementState.java @@ -0,0 +1,97 @@ +/* + * 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; + +/** + * Describes the high availability requirement state for the VPN connection between this Cloud VPN + * gateway and a peer gateway. + * + *

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 VpnGatewayStatusHighAvailabilityRequirementState extends com.google.api.client.json.GenericJson { + + /** + * Indicates the high availability requirement state for the VPN connection. Valid values are + * CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Indicates the reason why the VPN connection does not meet the high availability redundancy + * criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String unsatisfiedReason; + + /** + * Indicates the high availability requirement state for the VPN connection. Valid values are + * CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Indicates the high availability requirement state for the VPN connection. Valid values are + * CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. + * @param state state or {@code null} for none + */ + public VpnGatewayStatusHighAvailabilityRequirementState setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Indicates the reason why the VPN connection does not meet the high availability redundancy + * criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. + * @return value or {@code null} for none + */ + public java.lang.String getUnsatisfiedReason() { + return unsatisfiedReason; + } + + /** + * Indicates the reason why the VPN connection does not meet the high availability redundancy + * criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. + * @param unsatisfiedReason unsatisfiedReason or {@code null} for none + */ + public VpnGatewayStatusHighAvailabilityRequirementState setUnsatisfiedReason(java.lang.String unsatisfiedReason) { + this.unsatisfiedReason = unsatisfiedReason; + return this; + } + + @Override + public VpnGatewayStatusHighAvailabilityRequirementState set(String fieldName, Object value) { + return (VpnGatewayStatusHighAvailabilityRequirementState) super.set(fieldName, value); + } + + @Override + public VpnGatewayStatusHighAvailabilityRequirementState clone() { + return (VpnGatewayStatusHighAvailabilityRequirementState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java new file mode 100644 index 00000000000..ff635e7b322 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -0,0 +1,117 @@ +/* + * 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; + +/** + * Contains some information about a VPN tunnel. + * + *

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 VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { + + /** + * Output only. The VPN gateway interface this VPN tunnel is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long localGatewayInterface; + + /** + * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could + * either be an external VPN gateway or a Google Cloud VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long peerGatewayInterface; + + /** + * Output only. URL reference to the VPN tunnel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tunnelUrl; + + /** + * Output only. The VPN gateway interface this VPN tunnel is associated with. + * @return value or {@code null} for none + */ + public java.lang.Long getLocalGatewayInterface() { + return localGatewayInterface; + } + + /** + * Output only. The VPN gateway interface this VPN tunnel is associated with. + * @param localGatewayInterface localGatewayInterface or {@code null} for none + */ + public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatewayInterface) { + this.localGatewayInterface = localGatewayInterface; + return this; + } + + /** + * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could + * either be an external VPN gateway or a Google Cloud VPN gateway. + * @return value or {@code null} for none + */ + public java.lang.Long getPeerGatewayInterface() { + return peerGatewayInterface; + } + + /** + * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could + * either be an external VPN gateway or a Google Cloud VPN gateway. + * @param peerGatewayInterface peerGatewayInterface or {@code null} for none + */ + public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGatewayInterface) { + this.peerGatewayInterface = peerGatewayInterface; + return this; + } + + /** + * Output only. URL reference to the VPN tunnel. + * @return value or {@code null} for none + */ + public java.lang.String getTunnelUrl() { + return tunnelUrl; + } + + /** + * Output only. URL reference to the VPN tunnel. + * @param tunnelUrl tunnelUrl or {@code null} for none + */ + public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { + this.tunnelUrl = tunnelUrl; + return this; + } + + @Override + public VpnGatewayStatusTunnel set(String fieldName, Object value) { + return (VpnGatewayStatusTunnel) super.set(fieldName, value); + } + + @Override + public VpnGatewayStatusTunnel clone() { + return (VpnGatewayStatusTunnel) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java new file mode 100644 index 00000000000..af1945dd5b6 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer + * gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway. + * + *

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 VpnGatewayStatusVpnConnection extends com.google.api.client.json.GenericJson { + + /** + * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this + * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerExternalGateway; + + /** + * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN + * connection are connected. This field is mutually exclusive with peer_gcp_gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerGcpGateway; + + /** + * HighAvailabilityRequirementState for the VPN connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnGatewayStatusHighAvailabilityRequirementState state; + + /** + * List of VPN tunnels that are in this VPN connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tunnels; + + static { + // hack to force ProGuard to consider VpnGatewayStatusTunnel 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(VpnGatewayStatusTunnel.class); + } + + /** + * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this + * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. + * @return value or {@code null} for none + */ + public java.lang.String getPeerExternalGateway() { + return peerExternalGateway; + } + + /** + * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this + * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. + * @param peerExternalGateway peerExternalGateway or {@code null} for none + */ + public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String peerExternalGateway) { + this.peerExternalGateway = peerExternalGateway; + return this; + } + + /** + * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN + * connection are connected. This field is mutually exclusive with peer_gcp_gateway. + * @return value or {@code null} for none + */ + public java.lang.String getPeerGcpGateway() { + return peerGcpGateway; + } + + /** + * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN + * connection are connected. This field is mutually exclusive with peer_gcp_gateway. + * @param peerGcpGateway peerGcpGateway or {@code null} for none + */ + public VpnGatewayStatusVpnConnection setPeerGcpGateway(java.lang.String peerGcpGateway) { + this.peerGcpGateway = peerGcpGateway; + return this; + } + + /** + * HighAvailabilityRequirementState for the VPN connection. + * @return value or {@code null} for none + */ + public VpnGatewayStatusHighAvailabilityRequirementState getState() { + return state; + } + + /** + * HighAvailabilityRequirementState for the VPN connection. + * @param state state or {@code null} for none + */ + public VpnGatewayStatusVpnConnection setState(VpnGatewayStatusHighAvailabilityRequirementState state) { + this.state = state; + return this; + } + + /** + * List of VPN tunnels that are in this VPN connection. + * @return value or {@code null} for none + */ + public java.util.List getTunnels() { + return tunnels; + } + + /** + * List of VPN tunnels that are in this VPN connection. + * @param tunnels tunnels or {@code null} for none + */ + public VpnGatewayStatusVpnConnection setTunnels(java.util.List tunnels) { + this.tunnels = tunnels; + return this; + } + + @Override + public VpnGatewayStatusVpnConnection set(String fieldName, Object value) { + return (VpnGatewayStatusVpnConnection) super.set(fieldName, value); + } + + @Override + public VpnGatewayStatusVpnConnection clone() { + return (VpnGatewayStatusVpnConnection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java new file mode 100644 index 00000000000..a0c47f43cf1 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -0,0 +1,177 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A VPN gateway interface. + * + *

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 VpnGatewayVpnGatewayInterface extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN + * gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long id; + + /** + * URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. + * When the value of this field is present, the VPN gateway is used for HA VPN over Cloud + * Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the + * specified VLAN attachment resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** + * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. + * The IP address could be either a regional external IP address or a regional internal IP + * address. The two IP addresses for a VPN gateway must be all regional external or regional + * internal IP addresses. There cannot be a mix of regional external IP addresses and regional + * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces + * could either be regional internal IP addresses or regional external IP addresses. For regular + * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external + * IP address. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. + * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. + * 2001:db8::2d9:51:0:0). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6Address; + + /** + * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN + * gateway. + * @return value or {@code null} for none + */ + public java.lang.Long getId() { + return id; + } + + /** + * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN + * gateway. + * @param id id or {@code null} for none + */ + public VpnGatewayVpnGatewayInterface setId(java.lang.Long id) { + this.id = id; + return this; + } + + /** + * URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. + * When the value of this field is present, the VPN gateway is used for HA VPN over Cloud + * Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the + * specified VLAN attachment resource. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** + * URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. + * When the value of this field is present, the VPN gateway is used for HA VPN over Cloud + * Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the + * specified VLAN attachment resource. + * @param interconnectAttachment interconnectAttachment or {@code null} for none + */ + public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String interconnectAttachment) { + this.interconnectAttachment = interconnectAttachment; + return this; + } + + /** + * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. + * The IP address could be either a regional external IP address or a regional internal IP + * address. The two IP addresses for a VPN gateway must be all regional external or regional + * internal IP addresses. There cannot be a mix of regional external IP addresses and regional + * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces + * could either be regional internal IP addresses or regional external IP addresses. For regular + * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external + * IP address. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. + * The IP address could be either a regional external IP address or a regional internal IP + * address. The two IP addresses for a VPN gateway must be all regional external or regional + * internal IP addresses. There cannot be a mix of regional external IP addresses and regional + * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces + * could either be regional internal IP addresses or regional external IP addresses. For regular + * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external + * IP address. + * @param ipAddress ipAddress or {@code null} for none + */ + public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. + * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. + * 2001:db8::2d9:51:0:0). + * @return value or {@code null} for none + */ + public java.lang.String getIpv6Address() { + return ipv6Address; + } + + /** + * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. + * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. + * 2001:db8::2d9:51:0:0). + * @param ipv6Address ipv6Address or {@code null} for none + */ + public VpnGatewayVpnGatewayInterface setIpv6Address(java.lang.String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + @Override + public VpnGatewayVpnGatewayInterface set(String fieldName, Object value) { + return (VpnGatewayVpnGatewayInterface) super.set(fieldName, value); + } + + @Override + public VpnGatewayVpnGatewayInterface clone() { + return (VpnGatewayVpnGatewayInterface) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysGetStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysGetStatusResponse.java new file mode 100644 index 00000000000..92377b697e3 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysGetStatusResponse.java @@ -0,0 +1,63 @@ +/* + * 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 VpnGatewaysGetStatusResponse. + * + *

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 VpnGatewaysGetStatusResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnGatewayStatus result; + + /** + * @return value or {@code null} for none + */ + public VpnGatewayStatus getResult() { + return result; + } + + /** + * @param result result or {@code null} for none + */ + public VpnGatewaysGetStatusResponse setResult(VpnGatewayStatus result) { + this.result = result; + return this; + } + + @Override + public VpnGatewaysGetStatusResponse set(String fieldName, Object value) { + return (VpnGatewaysGetStatusResponse) super.set(fieldName, value); + } + + @Override + public VpnGatewaysGetStatusResponse clone() { + return (VpnGatewaysGetStatusResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysScopedList.java new file mode 100644 index 00000000000..a7f7e565384 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnGatewaysScopedList.java @@ -0,0 +1,281 @@ +/* + * 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 VpnGatewaysScopedList. + * + *

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 VpnGatewaysScopedList extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A list of VPN gateways contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List vpnGateways; + + static { + // hack to force ProGuard to consider VpnGateway 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(VpnGateway.class); + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] A list of VPN gateways contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getVpnGateways() { + return vpnGateways; + } + + /** + * [Output Only] A list of VPN gateways contained in this scope. + * @param vpnGateways vpnGateways or {@code null} for none + */ + public VpnGatewaysScopedList setVpnGateways(java.util.List vpnGateways) { + this.vpnGateways = vpnGateways; + return this; + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is + * empty. + * @param warning warning or {@code null} for none + */ + public VpnGatewaysScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VpnGatewaysScopedList set(String fieldName, Object value) { + return (VpnGatewaysScopedList) super.set(fieldName, value); + } + + @Override + public VpnGatewaysScopedList clone() { + return (VpnGatewaysScopedList) super.clone(); + } + + /** + * [Output Only] Informational warning which replaces the list of addresses when the list is empty. + */ + 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 VpnGatewaysScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnel.java new file mode 100644 index 00000000000..03f6b807e23 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -0,0 +1,855 @@ +/* + * 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 Cloud VPN Tunnel resource. + * + * For more information about VPN, read the the Cloud VPN Overview. + * + *

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 VpnTunnel extends com.google.api.client.json.GenericJson { + + /** + * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnTunnelCipherSuite cipherSuite; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. Provide this property when you create the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] Detailed status message for the VPN tunnel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detailedStatus; + + /** + * [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; + + /** + * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. + * Acceptable IKE versions are 1 or 2. The default version is 2. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer ikeVersion; + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be + * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN + * tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List localTrafficSelector; + + /** + * Name of the resource. Provided by the client 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; + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnTunnelParams params; + + /** + * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by + * the client when the VPN tunnel is created. This field is exclusive with the field + * peerGcpGateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerExternalGateway; + + /** + * The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by + * the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number + * of IDs in use depends on the external VPN gateway redundancy type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer peerExternalGatewayInterface; + + /** + * URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the + * client when the VPN tunnel is created. This field can be used when creating highly available + * VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. + * If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer + * Google Cloud VPN gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerGcpGateway; + + /** + * IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for + * Classic VPN tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String peerIp; + + /** + * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as + * part of the HTTP request URL. It is not settable as a field in the request body. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be + * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN + * tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List remoteTrafficSelector; + + /** + * URL of the router resource to be used for dynamic routing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String router; + + /** + * [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; + + /** + * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN + * gateway. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sharedSecret; + + /** + * Hash of the shared secret. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sharedSecretHash; + + /** + * [Output Only] The status of the VPN tunnel, which can be one of the following: - + * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: + * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, + * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - + * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session + * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by + * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). + * - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated + * for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready + * to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel + * configuration was rejected, can be result of being denied access. - + * ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - + * STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels + * or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match + * peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing + * not allowed for an HA-VPN tunnel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client + * when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetVpnGateway; + + /** + * URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when + * the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High + * Availability VPN gateway resource is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpnGateway; + + /** + * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values + * are: `0`, `1`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer vpnGatewayInterface; + + /** + * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. + * @return value or {@code null} for none + */ + public VpnTunnelCipherSuite getCipherSuite() { + return cipherSuite; + } + + /** + * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. + * @param cipherSuite cipherSuite or {@code null} for none + */ + public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { + this.cipherSuite = cipherSuite; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. Provide this property when you create the resource. + * @param description description or {@code null} for none + */ + public VpnTunnel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] Detailed status message for the VPN tunnel. + * @return value or {@code null} for none + */ + public java.lang.String getDetailedStatus() { + return detailedStatus; + } + + /** + * [Output Only] Detailed status message for the VPN tunnel. + * @param detailedStatus detailedStatus or {@code null} for none + */ + public VpnTunnel setDetailedStatus(java.lang.String detailedStatus) { + this.detailedStatus = detailedStatus; + return this; + } + + /** + * [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] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public VpnTunnel setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. + * Acceptable IKE versions are 1 or 2. The default version is 2. + * @return value or {@code null} for none + */ + public java.lang.Integer getIkeVersion() { + return ikeVersion; + } + + /** + * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. + * Acceptable IKE versions are 1 or 2. The default version is 2. + * @param ikeVersion ikeVersion or {@code null} for none + */ + public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { + this.ikeVersion = ikeVersion; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * @param kind kind or {@code null} for none + */ + public VpnTunnel setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public VpnTunnel setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of + * the labels set used for optimistic locking. The fingerprint is initially generated by Compute + * Engine and changes after every request to modify or update labels. You must always provide an + * up-to-date fingerprint hash in order to update or change labels, otherwise the request will + * fail with error412 conditionNotMet. + * + * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public VpnTunnel encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Labels for this resource. These can only be added or modified by thesetLabels method. Each + * label key/value pair must comply withRFC1035. Label values may be empty. + * @param labels labels or {@code null} for none + */ + public VpnTunnel setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be + * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN + * tunnels. + * @return value or {@code null} for none + */ + public java.util.List getLocalTrafficSelector() { + return localTrafficSelector; + } + + /** + * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be + * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN + * tunnels. + * @param localTrafficSelector localTrafficSelector or {@code null} for none + */ + public VpnTunnel setLocalTrafficSelector(java.util.List localTrafficSelector) { + this.localTrafficSelector = localTrafficSelector; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 VpnTunnel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @return value or {@code null} for none + */ + public VpnTunnelParams getParams() { + return params; + } + + /** + * Input only. [Input Only] Additional params passed with the request, but not persisted as part + * of resource payload. + * @param params params or {@code null} for none + */ + public VpnTunnel setParams(VpnTunnelParams params) { + this.params = params; + return this; + } + + /** + * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by + * the client when the VPN tunnel is created. This field is exclusive with the field + * peerGcpGateway. + * @return value or {@code null} for none + */ + public java.lang.String getPeerExternalGateway() { + return peerExternalGateway; + } + + /** + * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by + * the client when the VPN tunnel is created. This field is exclusive with the field + * peerGcpGateway. + * @param peerExternalGateway peerExternalGateway or {@code null} for none + */ + public VpnTunnel setPeerExternalGateway(java.lang.String peerExternalGateway) { + this.peerExternalGateway = peerExternalGateway; + return this; + } + + /** + * The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by + * the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number + * of IDs in use depends on the external VPN gateway redundancy type. + * @return value or {@code null} for none + */ + public java.lang.Integer getPeerExternalGatewayInterface() { + return peerExternalGatewayInterface; + } + + /** + * The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by + * the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number + * of IDs in use depends on the external VPN gateway redundancy type. + * @param peerExternalGatewayInterface peerExternalGatewayInterface or {@code null} for none + */ + public VpnTunnel setPeerExternalGatewayInterface(java.lang.Integer peerExternalGatewayInterface) { + this.peerExternalGatewayInterface = peerExternalGatewayInterface; + return this; + } + + /** + * URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the + * client when the VPN tunnel is created. This field can be used when creating highly available + * VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. + * If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer + * Google Cloud VPN gateway. + * @return value or {@code null} for none + */ + public java.lang.String getPeerGcpGateway() { + return peerGcpGateway; + } + + /** + * URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the + * client when the VPN tunnel is created. This field can be used when creating highly available + * VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. + * If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer + * Google Cloud VPN gateway. + * @param peerGcpGateway peerGcpGateway or {@code null} for none + */ + public VpnTunnel setPeerGcpGateway(java.lang.String peerGcpGateway) { + this.peerGcpGateway = peerGcpGateway; + return this; + } + + /** + * IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for + * Classic VPN tunnels. + * @return value or {@code null} for none + */ + public java.lang.String getPeerIp() { + return peerIp; + } + + /** + * IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for + * Classic VPN tunnels. + * @param peerIp peerIp or {@code null} for none + */ + public VpnTunnel setPeerIp(java.lang.String peerIp) { + this.peerIp = peerIp; + return this; + } + + /** + * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as + * part of the HTTP request URL. It is not settable as a field in the request body. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as + * part of the HTTP request URL. It is not settable as a field in the request body. + * @param region region or {@code null} for none + */ + public VpnTunnel setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be + * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN + * tunnels. + * @return value or {@code null} for none + */ + public java.util.List getRemoteTrafficSelector() { + return remoteTrafficSelector; + } + + /** + * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The + * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be + * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN + * tunnels. + * @param remoteTrafficSelector remoteTrafficSelector or {@code null} for none + */ + public VpnTunnel setRemoteTrafficSelector(java.util.List remoteTrafficSelector) { + this.remoteTrafficSelector = remoteTrafficSelector; + return this; + } + + /** + * URL of the router resource to be used for dynamic routing. + * @return value or {@code null} for none + */ + public java.lang.String getRouter() { + return router; + } + + /** + * URL of the router resource to be used for dynamic routing. + * @param router router or {@code null} for none + */ + public VpnTunnel setRouter(java.lang.String router) { + this.router = router; + return this; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public VpnTunnel setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN + * gateway. + * @return value or {@code null} for none + */ + public java.lang.String getSharedSecret() { + return sharedSecret; + } + + /** + * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN + * gateway. + * @param sharedSecret sharedSecret or {@code null} for none + */ + public VpnTunnel setSharedSecret(java.lang.String sharedSecret) { + this.sharedSecret = sharedSecret; + return this; + } + + /** + * Hash of the shared secret. + * @return value or {@code null} for none + */ + public java.lang.String getSharedSecretHash() { + return sharedSecretHash; + } + + /** + * Hash of the shared secret. + * @param sharedSecretHash sharedSecretHash or {@code null} for none + */ + public VpnTunnel setSharedSecretHash(java.lang.String sharedSecretHash) { + this.sharedSecretHash = sharedSecretHash; + return this; + } + + /** + * [Output Only] The status of the VPN tunnel, which can be one of the following: - + * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: + * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, + * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - + * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session + * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by + * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). + * - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated + * for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready + * to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel + * configuration was rejected, can be result of being denied access. - + * ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - + * STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels + * or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match + * peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing + * not allowed for an HA-VPN tunnel. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] The status of the VPN tunnel, which can be one of the following: - + * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: + * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, + * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - + * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session + * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by + * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). + * - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated + * for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready + * to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel + * configuration was rejected, can be result of being denied access. - + * ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - + * STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels + * or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match + * peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing + * not allowed for an HA-VPN tunnel. + * @param status status or {@code null} for none + */ + public VpnTunnel setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client + * when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. + * @return value or {@code null} for none + */ + public java.lang.String getTargetVpnGateway() { + return targetVpnGateway; + } + + /** + * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client + * when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. + * @param targetVpnGateway targetVpnGateway or {@code null} for none + */ + public VpnTunnel setTargetVpnGateway(java.lang.String targetVpnGateway) { + this.targetVpnGateway = targetVpnGateway; + return this; + } + + /** + * URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when + * the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High + * Availability VPN gateway resource is created. + * @return value or {@code null} for none + */ + public java.lang.String getVpnGateway() { + return vpnGateway; + } + + /** + * URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when + * the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High + * Availability VPN gateway resource is created. + * @param vpnGateway vpnGateway or {@code null} for none + */ + public VpnTunnel setVpnGateway(java.lang.String vpnGateway) { + this.vpnGateway = vpnGateway; + return this; + } + + /** + * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values + * are: `0`, `1`. + * @return value or {@code null} for none + */ + public java.lang.Integer getVpnGatewayInterface() { + return vpnGatewayInterface; + } + + /** + * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values + * are: `0`, `1`. + * @param vpnGatewayInterface vpnGatewayInterface or {@code null} for none + */ + public VpnTunnel setVpnGatewayInterface(java.lang.Integer vpnGatewayInterface) { + this.vpnGatewayInterface = vpnGatewayInterface; + return this; + } + + @Override + public VpnTunnel set(String fieldName, Object value) { + return (VpnTunnel) super.set(fieldName, value); + } + + @Override + public VpnTunnel clone() { + return (VpnTunnel) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java new file mode 100644 index 00000000000..a67a6acfeac --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -0,0 +1,401 @@ +/* + * 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 VpnTunnelAggregatedList. + * + *

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 VpnTunnelAggregatedList extends com.google.api.client.json.GenericJson { + + /** + * [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 VpnTunnelsScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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; + + /** + * [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 VpnTunnelAggregatedList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VpnTunnelsScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of VpnTunnelsScopedList resources. + * @param items items or {@code null} for none + */ + public VpnTunnelAggregatedList setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * @param kind kind or {@code null} for none + */ + public VpnTunnelAggregatedList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VpnTunnelAggregatedList 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 VpnTunnelAggregatedList 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 VpnTunnelAggregatedList 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 VpnTunnelAggregatedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VpnTunnelAggregatedList set(String fieldName, Object value) { + return (VpnTunnelAggregatedList) super.set(fieldName, value); + } + + @Override + public VpnTunnelAggregatedList clone() { + return (VpnTunnelAggregatedList) 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 VpnTunnelAggregatedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelCipherSuite.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelCipherSuite.java new file mode 100644 index 00000000000..0383427f964 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelCipherSuite.java @@ -0,0 +1,84 @@ +/* + * 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 VpnTunnelCipherSuite. + * + *

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 VpnTunnelCipherSuite extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnTunnelPhase1Algorithms phase1; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VpnTunnelPhase2Algorithms phase2; + + /** + * @return value or {@code null} for none + */ + public VpnTunnelPhase1Algorithms getPhase1() { + return phase1; + } + + /** + * @param phase1 phase1 or {@code null} for none + */ + public VpnTunnelCipherSuite setPhase1(VpnTunnelPhase1Algorithms phase1) { + this.phase1 = phase1; + return this; + } + + /** + * @return value or {@code null} for none + */ + public VpnTunnelPhase2Algorithms getPhase2() { + return phase2; + } + + /** + * @param phase2 phase2 or {@code null} for none + */ + public VpnTunnelCipherSuite setPhase2(VpnTunnelPhase2Algorithms phase2) { + this.phase2 = phase2; + return this; + } + + @Override + public VpnTunnelCipherSuite set(String fieldName, Object value) { + return (VpnTunnelCipherSuite) super.set(fieldName, value); + } + + @Override + public VpnTunnelCipherSuite clone() { + return (VpnTunnelCipherSuite) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java new file mode 100644 index 00000000000..b3bc6470c3f --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -0,0 +1,383 @@ +/* + * 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; + +/** + * Contains a list of VpnTunnel resources. + * + *

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 VpnTunnelList extends com.google.api.client.json.GenericJson { + + /** + * [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 VpnTunnel 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 VpnTunnel 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(VpnTunnel.class); + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [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 VpnTunnelList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VpnTunnel resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of VpnTunnel resources. + * @param items items or {@code null} for none + */ + public VpnTunnelList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * @param kind kind or {@code null} for none + */ + public VpnTunnelList setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public VpnTunnelList 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 VpnTunnelList setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + 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 VpnTunnelList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VpnTunnelList set(String fieldName, Object value) { + return (VpnTunnelList) super.set(fieldName, value); + } + + @Override + public VpnTunnelList clone() { + return (VpnTunnelList) 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 VpnTunnelListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java new file mode 100644 index 00000000000..26bbf26ff78 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java @@ -0,0 +1,87 @@ +/* + * 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 VpnTunnelParams. + * + *

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 VpnTunnelParams extends com.google.api.client.json.GenericJson { + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map resourceManagerTags; + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @return value or {@code null} for none + */ + public java.util.Map getResourceManagerTags() { + return resourceManagerTags; + } + + /** + * Tag keys/values directly bound to this resource. Tag keys and values have the same definition + * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the + * resource should be specified in either ID { : } or Namespaced format { : }. For example the + * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid + * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : + * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: + * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + * @param resourceManagerTags resourceManagerTags or {@code null} for none + */ + public VpnTunnelParams setResourceManagerTags(java.util.Map resourceManagerTags) { + this.resourceManagerTags = resourceManagerTags; + return this; + } + + @Override + public VpnTunnelParams set(String fieldName, Object value) { + return (VpnTunnelParams) super.set(fieldName, value); + } + + @Override + public VpnTunnelParams clone() { + return (VpnTunnelParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase1Algorithms.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase1Algorithms.java new file mode 100644 index 00000000000..7c12d72c232 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase1Algorithms.java @@ -0,0 +1,126 @@ +/* + * 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 VpnTunnelPhase1Algorithms. + * + *

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 VpnTunnelPhase1Algorithms extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dh; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List encryption; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List integrity; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List prf; + + /** + * @return value or {@code null} for none + */ + public java.util.List getDh() { + return dh; + } + + /** + * @param dh dh or {@code null} for none + */ + public VpnTunnelPhase1Algorithms setDh(java.util.List dh) { + this.dh = dh; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getEncryption() { + return encryption; + } + + /** + * @param encryption encryption or {@code null} for none + */ + public VpnTunnelPhase1Algorithms setEncryption(java.util.List encryption) { + this.encryption = encryption; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntegrity() { + return integrity; + } + + /** + * @param integrity integrity or {@code null} for none + */ + public VpnTunnelPhase1Algorithms setIntegrity(java.util.List integrity) { + this.integrity = integrity; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getPrf() { + return prf; + } + + /** + * @param prf prf or {@code null} for none + */ + public VpnTunnelPhase1Algorithms setPrf(java.util.List prf) { + this.prf = prf; + return this; + } + + @Override + public VpnTunnelPhase1Algorithms set(String fieldName, Object value) { + return (VpnTunnelPhase1Algorithms) super.set(fieldName, value); + } + + @Override + public VpnTunnelPhase1Algorithms clone() { + return (VpnTunnelPhase1Algorithms) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase2Algorithms.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase2Algorithms.java new file mode 100644 index 00000000000..77410217c45 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelPhase2Algorithms.java @@ -0,0 +1,105 @@ +/* + * 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 VpnTunnelPhase2Algorithms. + * + *

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 VpnTunnelPhase2Algorithms extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List encryption; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List integrity; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pfs; + + /** + * @return value or {@code null} for none + */ + public java.util.List getEncryption() { + return encryption; + } + + /** + * @param encryption encryption or {@code null} for none + */ + public VpnTunnelPhase2Algorithms setEncryption(java.util.List encryption) { + this.encryption = encryption; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getIntegrity() { + return integrity; + } + + /** + * @param integrity integrity or {@code null} for none + */ + public VpnTunnelPhase2Algorithms setIntegrity(java.util.List integrity) { + this.integrity = integrity; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getPfs() { + return pfs; + } + + /** + * @param pfs pfs or {@code null} for none + */ + public VpnTunnelPhase2Algorithms setPfs(java.util.List pfs) { + this.pfs = pfs; + return this; + } + + @Override + public VpnTunnelPhase2Algorithms set(String fieldName, Object value) { + return (VpnTunnelPhase2Algorithms) super.set(fieldName, value); + } + + @Override + public VpnTunnelPhase2Algorithms clone() { + return (VpnTunnelPhase2Algorithms) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelsScopedList.java new file mode 100644 index 00000000000..d51f2fadf52 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/VpnTunnelsScopedList.java @@ -0,0 +1,278 @@ +/* + * 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 VpnTunnelsScopedList. + * + *

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 VpnTunnelsScopedList extends com.google.api.client.json.GenericJson { + + /** + * A list of VPN tunnels contained in this scope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List vpnTunnels; + + static { + // hack to force ProGuard to consider VpnTunnel 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(VpnTunnel.class); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * A list of VPN tunnels contained in this scope. + * @return value or {@code null} for none + */ + public java.util.List getVpnTunnels() { + return vpnTunnels; + } + + /** + * A list of VPN tunnels contained in this scope. + * @param vpnTunnels vpnTunnels or {@code null} for none + */ + public VpnTunnelsScopedList setVpnTunnels(java.util.List vpnTunnels) { + this.vpnTunnels = vpnTunnels; + return this; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + * @param warning warning or {@code null} for none + */ + public VpnTunnelsScopedList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public VpnTunnelsScopedList set(String fieldName, Object value) { + return (VpnTunnelsScopedList) super.set(fieldName, value); + } + + @Override + public VpnTunnelsScopedList clone() { + return (VpnTunnelsScopedList) super.clone(); + } + + /** + * Informational warning which replaces the list of addresses when the list is empty. + */ + 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 VpnTunnelsScopedListWarningData. + */ + 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/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSet.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSet.java new file mode 100644 index 00000000000..5f69cacd1b0 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSet.java @@ -0,0 +1,120 @@ +/* + * 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 WafExpressionSet. + * + *

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 WafExpressionSet extends com.google.api.client.json.GenericJson { + + /** + * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" + * is particularly useful if a policy likes to avail newer set of expressions without having to + * change the policy. A given alias name can't be used for more than one entity set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List aliases; + + /** + * List of available expressions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List expressions; + + /** + * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" + * is particularly useful if a policy likes to avail newer set of expressions without having to + * change the policy. A given alias name can't be used for more than one entity set. + * @return value or {@code null} for none + */ + public java.util.List getAliases() { + return aliases; + } + + /** + * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" + * is particularly useful if a policy likes to avail newer set of expressions without having to + * change the policy. A given alias name can't be used for more than one entity set. + * @param aliases aliases or {@code null} for none + */ + public WafExpressionSet setAliases(java.util.List aliases) { + this.aliases = aliases; + return this; + } + + /** + * List of available expressions. + * @return value or {@code null} for none + */ + public java.util.List getExpressions() { + return expressions; + } + + /** + * List of available expressions. + * @param expressions expressions or {@code null} for none + */ + public WafExpressionSet setExpressions(java.util.List expressions) { + this.expressions = expressions; + return this; + } + + /** + * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required + * @param id id or {@code null} for none + */ + public WafExpressionSet setId(java.lang.String id) { + this.id = id; + return this; + } + + @Override + public WafExpressionSet set(String fieldName, Object value) { + return (WafExpressionSet) super.set(fieldName, value); + } + + @Override + public WafExpressionSet clone() { + return (WafExpressionSet) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSetExpression.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSetExpression.java new file mode 100644 index 00000000000..f1b81494d16 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WafExpressionSetExpression.java @@ -0,0 +1,102 @@ +/* + * 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 WafExpressionSetExpression. + * + *

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 WafExpressionSetExpression extends com.google.api.client.json.GenericJson { + + /** + * Expression ID should uniquely identify the origin of the expression. E.g. owasp- + * crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could + * be used to determine the individual attack definition that has been detected. It could also be + * used to exclude it from the policy in case of false positive. required + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity + * paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sensitivity; + + /** + * Expression ID should uniquely identify the origin of the expression. E.g. owasp- + * crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could + * be used to determine the individual attack definition that has been detected. It could also be + * used to exclude it from the policy in case of false positive. required + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Expression ID should uniquely identify the origin of the expression. E.g. owasp- + * crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could + * be used to determine the individual attack definition that has been detected. It could also be + * used to exclude it from the policy in case of false positive. required + * @param id id or {@code null} for none + */ + public WafExpressionSetExpression setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity + * paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. + * @return value or {@code null} for none + */ + public java.lang.Integer getSensitivity() { + return sensitivity; + } + + /** + * The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity + * paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. + * @param sensitivity sensitivity or {@code null} for none + */ + public WafExpressionSetExpression setSensitivity(java.lang.Integer sensitivity) { + this.sensitivity = sensitivity; + return this; + } + + @Override + public WafExpressionSetExpression set(String fieldName, Object value) { + return (WafExpressionSetExpression) super.set(fieldName, value); + } + + @Override + public WafExpressionSetExpression clone() { + return (WafExpressionSetExpression) super.clone(); + } + +} From 3cfdb764096725c62c715933fece970f841e6666 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:33 -0700 Subject: [PATCH 12/23] chore: regenerate compute client --- .../compute/model/WeightedBackendService.java | 180 + .../api/services/compute/model/Wire.java | 159 + .../WireEndpoint.java} | 50 +- .../api/services/compute/model/WireGroup.java | 360 + .../compute/model/WireGroupEndpoint.java | 70 + .../model/WireGroupEndpointInterconnect.java | 123 + .../WireGroupList.java} | 82 +- .../WireGroupTopology.java} | 32 +- .../WireGroupTopologyEndpoint.java} | 48 +- .../compute/model/WireProperties.java | 165 + .../WorkloadIdentityConfig.java} | 50 +- .../XpnHostList.java} | 51 +- .../XpnResourceId.java} | 53 +- .../AcceleratorType.java => model/Zone.java} | 187 +- .../ZoneList.java} | 42 +- .../ZoneResourceStatus.java} | 38 +- .../compute/model/ZoneSetLabelsRequest.java | 133 + .../model/ZoneSetNestedPolicyRequest.java | 162 + .../compute/model/ZoneSetPolicyRequest.java | 162 + .../api/services/compute/preview/Compute.java | 272454 --------------- .../compute/preview/ComputeRequest.java | 284 - .../preview/ComputeRequestInitializer.java | 119 - .../compute/preview/ComputeScopes.java | 62 - .../compute/preview/model/AWSV4Signature.java | 161 - .../preview/model/AcceleratorConfig.java | 99 - ...TopologiesInfoAcceleratorTopologyInfo.java | 90 - .../model/AcceleratorTypeAggregatedList.java | 404 - .../preview/model/AcceleratorTypeList.java | 386 - .../model/AcceleratorTypesScopedList.java | 278 - .../compute/preview/model/AccessConfig.java | 358 - .../compute/preview/model/Address.java | 777 - .../preview/model/AddressAggregatedList.java | 404 - .../preview/model/AddressesScopedList.java | 281 - .../model/AdvancedMachineFeatures.java | 210 - .../compute/preview/model/AliasIpRange.java | 102 - .../model/AllocationAggregateReservation.java | 140 - ...vationReservedResourceInfoAccelerator.java | 93 - .../AllocationReservationSharingPolicy.java | 66 - .../model/AllocationResourceStatus.java | 138 - .../AllocationResourceStatusHealthInfo.java | 114 - ...onResourceStatusSpecificSKUAllocation.java | 90 - ...locatedInstancePropertiesReservedDisk.java | 93 - ...UAllocationReservedInstanceProperties.java | 183 - .../AllocationSpecificSKUReservation.java | 183 - .../compute/preview/model/AttachedDisk.java | 630 - .../model/AttachedDiskInitializeParams.java | 749 - .../compute/preview/model/AuditConfig.java | 118 - .../compute/preview/model/AuditLogConfig.java | 100 - .../compute/preview/model/Autoscaler.java | 462 - .../compute/preview/model/AutoscalerList.java | 386 - .../model/AutoscalerStatusDetails.java | 180 - .../preview/model/AutoscalersScopedList.java | 282 - .../preview/model/AutoscalingPolicy.java | 360 - .../AutoscalingPolicyCpuUtilization.java | 132 - ...oscalingPolicyCustomMetricUtilization.java | 288 - ...scalingPolicyLoadBalancingUtilization.java | 69 - .../AutoscalingPolicyScaleInControl.java | 100 - .../AutoscalingPolicyScalingSchedule.java | 221 - .../compute/preview/model/Backend.java | 678 - .../compute/preview/model/BackendBucket.java | 468 - .../model/BackendBucketAggregatedList.java | 377 - .../preview/model/BackendBucketCdnPolicy.java | 498 - ...etCdnPolicyBypassCacheOnRequestHeader.java | 68 - .../BackendBucketCdnPolicyCacheKeyPolicy.java | 93 - ...dBucketCdnPolicyNegativeCachingPolicy.java | 102 - .../model/BackendBucketListUsable.java | 386 - .../preview/model/BackendBucketParams.java | 84 - .../preview/model/BackendBucketUsedBy.java | 66 - .../model/BackendBucketsScopedList.java | 278 - .../preview/model/BackendCustomMetric.java | 138 - .../compute/preview/model/BackendService.java | 2082 - .../model/BackendServiceAggregatedList.java | 401 - .../model/BackendServiceCdnPolicy.java | 498 - ...ceCdnPolicyBypassCacheOnRequestHeader.java | 68 - ...ServiceCdnPolicyNegativeCachingPolicy.java | 102 - ...ackendServiceConnectionTrackingPolicy.java | 249 - .../model/BackendServiceCustomMetric.java | 108 - .../model/BackendServiceFailoverPolicy.java | 164 - .../model/BackendServiceGroupHealth.java | 120 - .../preview/model/BackendServiceHAPolicy.java | 255 - .../model/BackendServiceHAPolicyLeader.java | 114 - ...dServiceHAPolicyLeaderNetworkEndpoint.java | 78 - .../model/BackendServiceHttpCookie.java | 114 - .../preview/model/BackendServiceIAP.java | 150 - .../preview/model/BackendServiceList.java | 386 - .../model/BackendServiceListUsable.java | 386 - ...LoadBalancingPolicyConfigCustomPolicy.java | 120 - ...calityLoadBalancingPolicyConfigPolicy.java | 81 - .../model/BackendServiceLogConfig.java | 213 - ...viceNetworkPassThroughLbTrafficPolicy.java | 69 - 90 files changed, 1885 insertions(+), 290902 deletions(-) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WeightedBackendService.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Wire.java rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/BackendBackendOrchestrationInfo.java => model/WireEndpoint.java} (55%) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroup.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpoint.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpointInterconnect.java rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/AutoscalerAggregatedList.java => model/WireGroupList.java} (84%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/BackendServiceLogConfigLoggingHttpHeader.java => model/WireGroupTopology.java} (58%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/BackendServiceLocalityLoadBalancingPolicyConfig.java => model/WireGroupTopologyEndpoint.java} (51%) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireProperties.java rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/AllocationAggregateReservationReservedResourceInfo.java => model/WorkloadIdentityConfig.java} (51%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/AddressList.java => model/XpnHostList.java} (89%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java => model/XpnResourceId.java} (50%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/AcceleratorType.java => model/Zone.java} (50%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/BackendBucketList.java => model/ZoneList.java} (90%) rename clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/{preview/model/AcceleratorTopologiesInfo.java => model/ZoneResourceStatus.java} (50%) create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetLabelsRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetNestedPolicyRequest.java create mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetPolicyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/Compute.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequestInitializer.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeScopes.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AWSV4Signature.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AccessConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Address.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AdvancedMachineFeatures.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AliasIpRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationReservationSharingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusHealthInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusSpecificSKUAllocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUReservation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDiskInitializeParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditLogConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Autoscaler.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerStatusDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalersScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCpuUtilization.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCustomMetricUtilization.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyLoadBalancingUtilization.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScaleInControl.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScalingSchedule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Backend.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucket.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyCacheKeyPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyNegativeCachingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketListUsable.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketUsedBy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendCustomMetric.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendService.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyNegativeCachingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceConnectionTrackingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCustomMetric.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceFailoverPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceGroupHealth.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeader.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHttpCookie.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceIAP.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceListUsable.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WeightedBackendService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WeightedBackendService.java new file mode 100644 index 00000000000..4c41d148877 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WeightedBackendService.java @@ -0,0 +1,180 @@ +/* + * 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; + +/** + * In contrast to a single BackendService in HttpRouteAction to which all matching traffic is + * directed to,WeightedBackendService allows traffic to be split across multiple backend services. + * The volume of traffic for each backend service is proportional to the weight specified in each + * WeightedBackendService + * + *

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 WeightedBackendService extends com.google.api.client.json.GenericJson { + + /** + * The full or partial URL to the default BackendService resource. Before forwarding the request + * to backendService, the load balancer applies any relevant headerActions specified as part of + * thisbackendServiceWeight. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * headerAction specified here take effect beforeheaderAction in the enclosing + * HttpRouteRule,PathMatcher and UrlMap. + * + * headerAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HttpHeaderAction headerAction; + + /** + * Specifies the fraction of traffic sent to a backend service, computed asweight / (sum of all + * weightedBackendService weights in routeAction). + * + * The selection of a backend service is determined only for new traffic. Once a user's request + * has been directed to a backend service, subsequent requests are sent to the same backend + * service as determined by the backend service's session affinity policy. Don't configure session + * affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting + * configuration takes precedence. + * + * The value must be from 0 to 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Long weight; + + /** + * The full or partial URL to the default BackendService resource. Before forwarding the request + * to backendService, the load balancer applies any relevant headerActions specified as part of + * thisbackendServiceWeight. + * @return value or {@code null} for none + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * The full or partial URL to the default BackendService resource. Before forwarding the request + * to backendService, the load balancer applies any relevant headerActions specified as part of + * thisbackendServiceWeight. + * @param backendService backendService or {@code null} for none + */ + public WeightedBackendService setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * headerAction specified here take effect beforeheaderAction in the enclosing + * HttpRouteRule,PathMatcher and UrlMap. + * + * headerAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @return value or {@code null} for none + */ + public HttpHeaderAction getHeaderAction() { + return headerAction; + } + + /** + * Specifies changes to request and response headers that need to take effect for the selected + * backendService. + * + * headerAction specified here take effect beforeheaderAction in the enclosing + * HttpRouteRule,PathMatcher and UrlMap. + * + * headerAction is not supported for load balancers that have their loadBalancingScheme set to + * EXTERNAL. + * + * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless + * field set to true. + * @param headerAction headerAction or {@code null} for none + */ + public WeightedBackendService setHeaderAction(HttpHeaderAction headerAction) { + this.headerAction = headerAction; + return this; + } + + /** + * Specifies the fraction of traffic sent to a backend service, computed asweight / (sum of all + * weightedBackendService weights in routeAction). + * + * The selection of a backend service is determined only for new traffic. Once a user's request + * has been directed to a backend service, subsequent requests are sent to the same backend + * service as determined by the backend service's session affinity policy. Don't configure session + * affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting + * configuration takes precedence. + * + * The value must be from 0 to 1000. + * @return value or {@code null} for none + */ + public java.lang.Long getWeight() { + return weight; + } + + /** + * Specifies the fraction of traffic sent to a backend service, computed asweight / (sum of all + * weightedBackendService weights in routeAction). + * + * The selection of a backend service is determined only for new traffic. Once a user's request + * has been directed to a backend service, subsequent requests are sent to the same backend + * service as determined by the backend service's session affinity policy. Don't configure session + * affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting + * configuration takes precedence. + * + * The value must be from 0 to 1000. + * @param weight weight or {@code null} for none + */ + public WeightedBackendService setWeight(java.lang.Long weight) { + this.weight = weight; + return this; + } + + @Override + public WeightedBackendService set(String fieldName, Object value) { + return (WeightedBackendService) super.set(fieldName, value); + } + + @Override + public WeightedBackendService clone() { + return (WeightedBackendService) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Wire.java new file mode 100644 index 00000000000..d2d7f2d7532 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Wire.java @@ -0,0 +1,159 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A pseudowire that connects two Interconnect connections. + * + *

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 Wire extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is + * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. + * Defaults to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Output only. Wire endpoints are specific Interconnect connections. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List endpoints; + + /** + * Output only. [Output Only] A label that identifies the wire. The format of this label combines + * the existing labels of the wire group endpoints and Interconnect connections used by this wire + * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified + * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels + * that you entered as map keys when you specified the wire group Interconnect objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Output only. [Output Only] Properties of the wire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WireProperties wireProperties; + + /** + * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is + * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. + * Defaults to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is + * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. + * Defaults to true. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Output only. Wire endpoints are specific Interconnect connections. + * @return value or {@code null} for none + */ + public java.util.List getEndpoints() { + return endpoints; + } + + /** + * Output only. Wire endpoints are specific Interconnect connections. + * @param endpoints endpoints or {@code null} for none + */ + public Wire setEndpoints(java.util.List endpoints) { + this.endpoints = endpoints; + return this; + } + + /** + * Output only. [Output Only] A label that identifies the wire. The format of this label combines + * the existing labels of the wire group endpoints and Interconnect connections used by this wire + * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified + * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels + * that you entered as map keys when you specified the wire group Interconnect objects. + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * Output only. [Output Only] A label that identifies the wire. The format of this label combines + * the existing labels of the wire group endpoints and Interconnect connections used by this wire + * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: + * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified + * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels + * that you entered as map keys when you specified the wire group Interconnect objects. + * @param label label or {@code null} for none + */ + public Wire setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Output only. [Output Only] Properties of the wire. + * @return value or {@code null} for none + */ + public WireProperties getWireProperties() { + return wireProperties; + } + + /** + * Output only. [Output Only] Properties of the wire. + * @param wireProperties wireProperties or {@code null} for none + */ + public Wire setWireProperties(WireProperties wireProperties) { + this.wireProperties = wireProperties; + return this; + } + + @Override + public Wire set(String fieldName, Object value) { + return (Wire) super.set(fieldName, value); + } + + @Override + public Wire clone() { + return (Wire) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireEndpoint.java similarity index 55% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBackendOrchestrationInfo.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireEndpoint.java index 2dfe48bafbf..348cf1fb3a4 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBackendOrchestrationInfo.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireEndpoint.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * A message containing information about the resource or system that manages the backend. + * Wire endpoints are specific Interconnect connections. * *

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: @@ -27,40 +27,58 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class BackendBackendOrchestrationInfo extends com.google.api.client.json.GenericJson { +public final class WireEndpoint extends com.google.api.client.json.GenericJson { /** - * The URI of the resource or system that manages the backend. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String resourceUri; + private java.lang.String interconnect; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer vlanTag; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * @param interconnect interconnect or {@code null} for none + */ + public WireEndpoint setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } /** - * The URI of the resource or system that manages the backend. * @return value or {@code null} for none */ - public java.lang.String getResourceUri() { - return resourceUri; + public java.lang.Integer getVlanTag() { + return vlanTag; } /** - * The URI of the resource or system that manages the backend. - * @param resourceUri resourceUri or {@code null} for none + * @param vlanTag vlanTag or {@code null} for none */ - public BackendBackendOrchestrationInfo setResourceUri(java.lang.String resourceUri) { - this.resourceUri = resourceUri; + public WireEndpoint setVlanTag(java.lang.Integer vlanTag) { + this.vlanTag = vlanTag; return this; } @Override - public BackendBackendOrchestrationInfo set(String fieldName, Object value) { - return (BackendBackendOrchestrationInfo) super.set(fieldName, value); + public WireEndpoint set(String fieldName, Object value) { + return (WireEndpoint) super.set(fieldName, value); } @Override - public BackendBackendOrchestrationInfo clone() { - return (BackendBackendOrchestrationInfo) super.clone(); + public WireEndpoint clone() { + return (WireEndpoint) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroup.java new file mode 100644 index 00000000000..c894fd2ef5c --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -0,0 +1,360 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A resource that represents a group of redundant wires. + * + *

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 WireGroup extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether the wires in the wire group are enabled. When false, the wires in the wire + * group are disabled. When true and when there is simultaneously no wire-specific override of + * `adminEnabled` to false, a given wire is enabled. Defaults to true. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean adminEnabled; + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of the wire group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A map that contains the logical endpoints of the wire group. Specify key-value pairs for the + * map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map endpoints; + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * 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] Type of the resource. Alwayscompute#wireGroups for wire groups. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. Provided by the client 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] Indicates whether there are wire changes yet to be processed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean reconciling; + + /** + * 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. Topology details for the wire group configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WireGroupTopology topology; + + /** + * Properties for all wires in the wire group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WireProperties wireProperties; + + /** + * Output only. The single/redundant wire(s) managed by the wire group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List wires; + + static { + // hack to force ProGuard to consider Wire 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(Wire.class); + } + + /** + * Indicates whether the wires in the wire group are enabled. When false, the wires in the wire + * group are disabled. When true and when there is simultaneously no wire-specific override of + * `adminEnabled` to false, a given wire is enabled. Defaults to true. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAdminEnabled() { + return adminEnabled; + } + + /** + * Indicates whether the wires in the wire group are enabled. When false, the wires in the wire + * group are disabled. When true and when there is simultaneously no wire-specific override of + * `adminEnabled` to false, a given wire is enabled. Defaults to true. + * @param adminEnabled adminEnabled or {@code null} for none + */ + public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of the wire group. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of the wire group. + * @param description description or {@code null} for none + */ + public WireGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A map that contains the logical endpoints of the wire group. Specify key-value pairs for the + * map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. + * @return value or {@code null} for none + */ + public java.util.Map getEndpoints() { + return endpoints; + } + + /** + * A map that contains the logical endpoints of the wire group. Specify key-value pairs for the + * map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. + * @param endpoints endpoints or {@code null} for none + */ + public WireGroup setEndpoints(java.util.Map endpoints) { + this.endpoints = endpoints; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public WireGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * @param kind kind or {@code null} for none + */ + public WireGroup setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. Provided by the client 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. Provided by the client 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 WireGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReconciling() { + return reconciling; + } + + /** + * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * @param reconciling reconciling or {@code null} for none + */ + public WireGroup setReconciling(java.lang.Boolean reconciling) { + this.reconciling = reconciling; + 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 WireGroup setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. Topology details for the wire group configuration. + * @return value or {@code null} for none + */ + public WireGroupTopology getTopology() { + return topology; + } + + /** + * Output only. Topology details for the wire group configuration. + * @param topology topology or {@code null} for none + */ + public WireGroup setTopology(WireGroupTopology topology) { + this.topology = topology; + return this; + } + + /** + * Properties for all wires in the wire group. + * @return value or {@code null} for none + */ + public WireProperties getWireProperties() { + return wireProperties; + } + + /** + * Properties for all wires in the wire group. + * @param wireProperties wireProperties or {@code null} for none + */ + public WireGroup setWireProperties(WireProperties wireProperties) { + this.wireProperties = wireProperties; + return this; + } + + /** + * Output only. The single/redundant wire(s) managed by the wire group. + * @return value or {@code null} for none + */ + public java.util.List getWires() { + return wires; + } + + /** + * Output only. The single/redundant wire(s) managed by the wire group. + * @param wires wires or {@code null} for none + */ + public WireGroup setWires(java.util.List wires) { + this.wires = wires; + return this; + } + + @Override + public WireGroup set(String fieldName, Object value) { + return (WireGroup) super.set(fieldName, value); + } + + @Override + public WireGroup clone() { + return (WireGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpoint.java new file mode 100644 index 00000000000..e89967f041d --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpoint.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A logical endpoint for the wire group. An endpoint represents a metro that contains redundant + * Interconnect connections. A wire group is created between two endpoints. + * + *

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 WireGroupEndpoint extends com.google.api.client.json.GenericJson { + + /** + * A map that contains the redundant Interconnect connections. Specify key-value pairs for the map + * as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map interconnects; + + /** + * A map that contains the redundant Interconnect connections. Specify key-value pairs for the map + * as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. + * @return value or {@code null} for none + */ + public java.util.Map getInterconnects() { + return interconnects; + } + + /** + * A map that contains the redundant Interconnect connections. Specify key-value pairs for the map + * as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. + * @param interconnects interconnects or {@code null} for none + */ + public WireGroupEndpoint setInterconnects(java.util.Map interconnects) { + this.interconnects = interconnects; + return this; + } + + @Override + public WireGroupEndpoint set(String fieldName, Object value) { + return (WireGroupEndpoint) super.set(fieldName, value); + } + + @Override + public WireGroupEndpoint clone() { + return (WireGroupEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpointInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpointInterconnect.java new file mode 100644 index 00000000000..600118abf44 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupEndpointInterconnect.java @@ -0,0 +1,123 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The redundant Interconnect connections for this endpoint. + * + *

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 WireGroupEndpointInterconnect extends com.google.api.client.json.GenericJson { + + /** + * Required. An Interconnect connection. You can specify the connection as a partial or full URL. + * If the connection is in a different project from the cross-site network, use a format that + * specifies the project. See the following examples of partial and full URLs: + * global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME + * - https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** + * Required. To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from + * `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port + * mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an + * Interconnect connection across all attachments and wire groups. - Both endpoints of a + * wire must use the same VLAN tag value. - Single wire and redundant type wire groups must + * have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value + * of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The + * first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List vlanTags; + + /** + * Required. An Interconnect connection. You can specify the connection as a partial or full URL. + * If the connection is in a different project from the cross-site network, use a format that + * specifies the project. See the following examples of partial and full URLs: + * global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME + * - https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME + * @return value or {@code null} for none + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** + * Required. An Interconnect connection. You can specify the connection as a partial or full URL. + * If the connection is in a different project from the cross-site network, use a format that + * specifies the project. See the following examples of partial and full URLs: + * global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME + * - https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME + * @param interconnect interconnect or {@code null} for none + */ + public WireGroupEndpointInterconnect setInterconnect(java.lang.String interconnect) { + this.interconnect = interconnect; + return this; + } + + /** + * Required. To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from + * `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port + * mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an + * Interconnect connection across all attachments and wire groups. - Both endpoints of a + * wire must use the same VLAN tag value. - Single wire and redundant type wire groups must + * have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value + * of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The + * first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. + * @return value or {@code null} for none + */ + public java.util.List getVlanTags() { + return vlanTags; + } + + /** + * Required. To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from + * `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port + * mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an + * Interconnect connection across all attachments and wire groups. - Both endpoints of a + * wire must use the same VLAN tag value. - Single wire and redundant type wire groups must + * have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value + * of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The + * first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. + * @param vlanTags vlanTags or {@code null} for none + */ + public WireGroupEndpointInterconnect setVlanTags(java.util.List vlanTags) { + this.vlanTags = vlanTags; + return this; + } + + @Override + public WireGroupEndpointInterconnect set(String fieldName, Object value) { + return (WireGroupEndpointInterconnect) super.set(fieldName, value); + } + + @Override + public WireGroupEndpointInterconnect clone() { + return (WireGroupEndpointInterconnect) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupList.java similarity index 84% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerAggregatedList.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupList.java index 8cd8bcec684..49ef8716424 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Model definition for AutoscalerAggregatedList. + * Response for the list request. * *

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: @@ -27,7 +27,13 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class AutoscalerAggregatedList extends com.google.api.client.json.GenericJson { +public final class WireGroupList extends com.google.api.client.json.GenericJson { + + /** + * 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. @@ -37,15 +43,20 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.lang.String id; /** - * A list of AutoscalersScopedList resources. + * A list of wire group resources. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.Map items; + private java.util.List items; + + static { + // hack to force ProGuard to consider WireGroup 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(WireGroup.class); + } /** - * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for - * aggregated lists of autoscalers. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +73,7 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * Output only. [Output Only] Server-defined URL for this resource. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,6 +94,21 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G @com.google.api.client.util.Key private Warning warning; + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public WireGroupList 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 @@ -95,31 +121,30 @@ public java.lang.String getId() { * [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ - public AutoscalerAggregatedList setId(java.lang.String id) { + public WireGroupList setId(java.lang.String id) { this.id = id; return this; } /** - * A list of AutoscalersScopedList resources. + * A list of wire group resources. * @return value or {@code null} for none */ - public java.util.Map getItems() { + public java.util.List getItems() { return items; } /** - * A list of AutoscalersScopedList resources. + * A list of wire group resources. * @param items items or {@code null} for none */ - public AutoscalerAggregatedList setItems(java.util.Map items) { + public WireGroupList setItems(java.util.List items) { this.items = items; return this; } /** - * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for - * aggregated lists of autoscalers. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -127,11 +152,10 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for - * aggregated lists of autoscalers. + * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @param kind kind or {@code null} for none */ - public AutoscalerAggregatedList setKind(java.lang.String kind) { + public WireGroupList setKind(java.lang.String kind) { this.kind = kind; return this; } @@ -154,13 +178,13 @@ public java.lang.String getNextPageToken() { * nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ - public AutoscalerAggregatedList setNextPageToken(java.lang.String nextPageToken) { + public WireGroupList setNextPageToken(java.lang.String nextPageToken) { this.nextPageToken = nextPageToken; return this; } /** - * Output only. [Output Only] Server-defined URL for this resource. + * [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -168,10 +192,10 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for this resource. + * [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ - public AutoscalerAggregatedList setSelfLink(java.lang.String selfLink) { + public WireGroupList setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } @@ -190,7 +214,7 @@ public java.util.List getUnreachables() { * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ - public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { + public WireGroupList setUnreachables(java.util.List unreachables) { this.unreachables = unreachables; return this; } @@ -207,19 +231,19 @@ public Warning getWarning() { * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ - public AutoscalerAggregatedList setWarning(Warning warning) { + public WireGroupList setWarning(Warning warning) { this.warning = warning; return this; } @Override - public AutoscalerAggregatedList set(String fieldName, Object value) { - return (AutoscalerAggregatedList) super.set(fieldName, value); + public WireGroupList set(String fieldName, Object value) { + return (WireGroupList) super.set(fieldName, value); } @Override - public AutoscalerAggregatedList clone() { - return (AutoscalerAggregatedList) super.clone(); + public WireGroupList clone() { + return (WireGroupList) super.clone(); } /** @@ -325,7 +349,7 @@ public Warning clone() { } /** - * Model definition for AutoscalerAggregatedListWarningData. + * Model definition for WireGroupListWarningData. */ public static final class Data extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfigLoggingHttpHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java similarity index 58% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfigLoggingHttpHeader.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index 434938ddbec..9af850296af 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfigLoggingHttpHeader.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Determines which HTTP headers will be logged to Stackdriver. + * Topology details for the wire group. * *

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: @@ -27,40 +27,40 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class BackendServiceLogConfigLoggingHttpHeader extends com.google.api.client.json.GenericJson { +public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * The name of the header to be logged. + * Output only. Topology details for all endpoints in the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String headerName; + private java.util.List endpoints; /** - * The name of the header to be logged. + * Output only. Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ - public java.lang.String getHeaderName() { - return headerName; + public java.util.List getEndpoints() { + return endpoints; } /** - * The name of the header to be logged. - * @param headerName headerName or {@code null} for none + * Output only. Topology details for all endpoints in the wire group. + * @param endpoints endpoints or {@code null} for none */ - public BackendServiceLogConfigLoggingHttpHeader setHeaderName(java.lang.String headerName) { - this.headerName = headerName; + public WireGroupTopology setEndpoints(java.util.List endpoints) { + this.endpoints = endpoints; return this; } @Override - public BackendServiceLogConfigLoggingHttpHeader set(String fieldName, Object value) { - return (BackendServiceLogConfigLoggingHttpHeader) super.set(fieldName, value); + public WireGroupTopology set(String fieldName, Object value) { + return (WireGroupTopology) super.set(fieldName, value); } @Override - public BackendServiceLogConfigLoggingHttpHeader clone() { - return (BackendServiceLogConfigLoggingHttpHeader) super.clone(); + public WireGroupTopology clone() { + return (WireGroupTopology) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java similarity index 51% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfig.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index 482e4f8698a..78a82e14a9a 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfig.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -14,11 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented - * by the end user. + * Topology details for a single wire group endpoint. * *

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: @@ -28,58 +27,67 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class BackendServiceLocalityLoadBalancingPolicyConfig extends com.google.api.client.json.GenericJson { +public final class WireGroupTopologyEndpoint extends com.google.api.client.json.GenericJson { /** + * Output only. The InterconnectLocation.city (metropolitan area designator) that all + * interconnects are located in. * The value may be {@code null}. */ @com.google.api.client.util.Key - private BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy customPolicy; + private java.lang.String city; /** + * Output only. Endpoint label from the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key - private BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy; + private java.lang.String label; /** + * Output only. The InterconnectLocation.city (metropolitan area designator) that all + * interconnects are located in. * @return value or {@code null} for none */ - public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy getCustomPolicy() { - return customPolicy; + public java.lang.String getCity() { + return city; } /** - * @param customPolicy customPolicy or {@code null} for none + * Output only. The InterconnectLocation.city (metropolitan area designator) that all + * interconnects are located in. + * @param city city or {@code null} for none */ - public BackendServiceLocalityLoadBalancingPolicyConfig setCustomPolicy(BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy customPolicy) { - this.customPolicy = customPolicy; + public WireGroupTopologyEndpoint setCity(java.lang.String city) { + this.city = city; return this; } /** + * Output only. Endpoint label from the wire group. * @return value or {@code null} for none */ - public BackendServiceLocalityLoadBalancingPolicyConfigPolicy getPolicy() { - return policy; + public java.lang.String getLabel() { + return label; } /** - * @param policy policy or {@code null} for none + * Output only. Endpoint label from the wire group. + * @param label label or {@code null} for none */ - public BackendServiceLocalityLoadBalancingPolicyConfig setPolicy(BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy) { - this.policy = policy; + public WireGroupTopologyEndpoint setLabel(java.lang.String label) { + this.label = label; return this; } @Override - public BackendServiceLocalityLoadBalancingPolicyConfig set(String fieldName, Object value) { - return (BackendServiceLocalityLoadBalancingPolicyConfig) super.set(fieldName, value); + public WireGroupTopologyEndpoint set(String fieldName, Object value) { + return (WireGroupTopologyEndpoint) super.set(fieldName, value); } @Override - public BackendServiceLocalityLoadBalancingPolicyConfig clone() { - return (BackendServiceLocalityLoadBalancingPolicyConfig) super.clone(); + public WireGroupTopologyEndpoint clone() { + return (WireGroupTopologyEndpoint) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireProperties.java new file mode 100644 index 00000000000..b3fc6f4e6b9 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WireProperties.java @@ -0,0 +1,165 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The properties of a wire. + * + *

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 WireProperties extends com.google.api.client.json.GenericJson { + + /** + * The configuration of the bandwidth allocation, one of the following: - + * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated + * charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, + * which configures one unmetered bandwidth allocation for the wire group. The unmetered + * bandwidth is divided equally across each wire in the group, but dynamic throttling + * reallocates unused unmetered bandwidth from unused or underused wires to other wires in the + * group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bandwidthAllocation; + + /** + * The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is + * 100 Gbps. The bandwidth must be greater than 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long bandwidthUnmetered; + + /** + * Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: + * set the port line protocol down when inline probes detect a fault. This setting is only + * permitted on port mode pseudowires. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String faultResponse; + + /** + * The flow management configuration for the wire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String flowManagement; + + /** + * The configuration of the bandwidth allocation, one of the following: - + * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated + * charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, + * which configures one unmetered bandwidth allocation for the wire group. The unmetered + * bandwidth is divided equally across each wire in the group, but dynamic throttling + * reallocates unused unmetered bandwidth from unused or underused wires to other wires in the + * group. + * @return value or {@code null} for none + */ + public java.lang.String getBandwidthAllocation() { + return bandwidthAllocation; + } + + /** + * The configuration of the bandwidth allocation, one of the following: - + * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated + * charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, + * which configures one unmetered bandwidth allocation for the wire group. The unmetered + * bandwidth is divided equally across each wire in the group, but dynamic throttling + * reallocates unused unmetered bandwidth from unused or underused wires to other wires in the + * group. + * @param bandwidthAllocation bandwidthAllocation or {@code null} for none + */ + public WireProperties setBandwidthAllocation(java.lang.String bandwidthAllocation) { + this.bandwidthAllocation = bandwidthAllocation; + return this; + } + + /** + * The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is + * 100 Gbps. The bandwidth must be greater than 0. + * @return value or {@code null} for none + */ + public java.lang.Long getBandwidthUnmetered() { + return bandwidthUnmetered; + } + + /** + * The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is + * 100 Gbps. The bandwidth must be greater than 0. + * @param bandwidthUnmetered bandwidthUnmetered or {@code null} for none + */ + public WireProperties setBandwidthUnmetered(java.lang.Long bandwidthUnmetered) { + this.bandwidthUnmetered = bandwidthUnmetered; + return this; + } + + /** + * Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: + * set the port line protocol down when inline probes detect a fault. This setting is only + * permitted on port mode pseudowires. + * @return value or {@code null} for none + */ + public java.lang.String getFaultResponse() { + return faultResponse; + } + + /** + * Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: + * set the port line protocol down when inline probes detect a fault. This setting is only + * permitted on port mode pseudowires. + * @param faultResponse faultResponse or {@code null} for none + */ + public WireProperties setFaultResponse(java.lang.String faultResponse) { + this.faultResponse = faultResponse; + return this; + } + + /** + * The flow management configuration for the wire. + * @return value or {@code null} for none + */ + public java.lang.String getFlowManagement() { + return flowManagement; + } + + /** + * The flow management configuration for the wire. + * @param flowManagement flowManagement or {@code null} for none + */ + public WireProperties setFlowManagement(java.lang.String flowManagement) { + this.flowManagement = flowManagement; + return this; + } + + @Override + public WireProperties set(String fieldName, Object value) { + return (WireProperties) super.set(fieldName, value); + } + + @Override + public WireProperties clone() { + return (WireProperties) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java similarity index 51% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfo.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java index afff32f9aa1..7332c3016cf 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfo.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Model definition for AllocationAggregateReservationReservedResourceInfo. + * Model definition for WorkloadIdentityConfig. * *

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: @@ -27,40 +27,58 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class AllocationAggregateReservationReservedResourceInfo extends com.google.api.client.json.GenericJson { +public final class WorkloadIdentityConfig extends com.google.api.client.json.GenericJson { /** - * Properties of accelerator resources in this reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key - private AllocationAggregateReservationReservedResourceInfoAccelerator accelerator; + private java.lang.String identity; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean identityCertificateEnabled; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getIdentity() { + return identity; + } + + /** + * @param identity identity or {@code null} for none + */ + public WorkloadIdentityConfig setIdentity(java.lang.String identity) { + this.identity = identity; + return this; + } /** - * Properties of accelerator resources in this reservation. * @return value or {@code null} for none */ - public AllocationAggregateReservationReservedResourceInfoAccelerator getAccelerator() { - return accelerator; + public java.lang.Boolean getIdentityCertificateEnabled() { + return identityCertificateEnabled; } /** - * Properties of accelerator resources in this reservation. - * @param accelerator accelerator or {@code null} for none + * @param identityCertificateEnabled identityCertificateEnabled or {@code null} for none */ - public AllocationAggregateReservationReservedResourceInfo setAccelerator(AllocationAggregateReservationReservedResourceInfoAccelerator accelerator) { - this.accelerator = accelerator; + public WorkloadIdentityConfig setIdentityCertificateEnabled(java.lang.Boolean identityCertificateEnabled) { + this.identityCertificateEnabled = identityCertificateEnabled; return this; } @Override - public AllocationAggregateReservationReservedResourceInfo set(String fieldName, Object value) { - return (AllocationAggregateReservationReservedResourceInfo) super.set(fieldName, value); + public WorkloadIdentityConfig set(String fieldName, Object value) { + return (WorkloadIdentityConfig) super.set(fieldName, value); } @Override - public AllocationAggregateReservationReservedResourceInfo clone() { - return (AllocationAggregateReservationReservedResourceInfo) super.clone(); + public WorkloadIdentityConfig clone() { + return (WorkloadIdentityConfig) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/XpnHostList.java similarity index 89% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressList.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/XpnHostList.java index 37d75616629..53a53c31c94 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressList.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Contains a list of addresses. + * Model definition for XpnHostList. * *

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: @@ -27,7 +27,7 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class AddressList extends com.google.api.client.json.GenericJson { +public final class XpnHostList extends com.google.api.client.json.GenericJson { /** * [Output Only] Unique identifier for the resource; defined by the server. @@ -37,20 +37,21 @@ public final class AddressList extends com.google.api.client.json.GenericJson { private java.lang.String id; /** - * A list of Address resources. + * [Output Only] A list of shared VPC host project URLs. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.List

items; + private java.util.List items; static { - // hack to force ProGuard to consider Address used, since otherwise it would be stripped out + // hack to force ProGuard to consider Project 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(Address.class); + com.google.api.client.util.Data.nullOf(Project.class); } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC + * hosts. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,30 +93,31 @@ public java.lang.String getId() { * [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ - public AddressList setId(java.lang.String id) { + public XpnHostList setId(java.lang.String id) { this.id = id; return this; } /** - * A list of Address resources. + * [Output Only] A list of shared VPC host project URLs. * @return value or {@code null} for none */ - public java.util.List
getItems() { + public java.util.List getItems() { return items; } /** - * A list of Address resources. + * [Output Only] A list of shared VPC host project URLs. * @param items items or {@code null} for none */ - public AddressList setItems(java.util.List
items) { + public XpnHostList setItems(java.util.List items) { this.items = items; return this; } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC + * hosts. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,10 +125,11 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC + * hosts. * @param kind kind or {@code null} for none */ - public AddressList setKind(java.lang.String kind) { + public XpnHostList setKind(java.lang.String kind) { this.kind = kind; return this; } @@ -149,7 +152,7 @@ public java.lang.String getNextPageToken() { * nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ - public AddressList setNextPageToken(java.lang.String nextPageToken) { + public XpnHostList setNextPageToken(java.lang.String nextPageToken) { this.nextPageToken = nextPageToken; return this; } @@ -166,7 +169,7 @@ public java.lang.String getSelfLink() { * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ - public AddressList setSelfLink(java.lang.String selfLink) { + public XpnHostList setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } @@ -183,19 +186,19 @@ public Warning getWarning() { * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ - public AddressList setWarning(Warning warning) { + public XpnHostList setWarning(Warning warning) { this.warning = warning; return this; } @Override - public AddressList set(String fieldName, Object value) { - return (AddressList) super.set(fieldName, value); + public XpnHostList set(String fieldName, Object value) { + return (XpnHostList) super.set(fieldName, value); } @Override - public AddressList clone() { - return (AddressList) super.clone(); + public XpnHostList clone() { + return (XpnHostList) super.clone(); } /** @@ -301,7 +304,7 @@ public Warning clone() { } /** - * Model definition for AddressListWarningData. + * Model definition for XpnHostListWarningData. */ public static final class Data extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/XpnResourceId.java similarity index 50% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/XpnResourceId.java index 3f64bbd56c7..0b92e5eb678 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/XpnResourceId.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Info for each topology state. + * Service resource (a.k.a service project) ID. * *

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: @@ -27,64 +27,67 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState extends com.google.api.client.json.GenericJson { +public final class XpnResourceId extends com.google.api.client.json.GenericJson { /** - * The number of accelerator topologies in this state. + * The ID of the service resource. In the case of projects, this field supports project id (e.g., + * my-project-123) and project number (e.g. 12345678). * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.Integer count; + private java.lang.String id; /** - * The state of the accelerator topology. + * The type of the service resource. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String state; + private java.lang.String type; /** - * The number of accelerator topologies in this state. + * The ID of the service resource. In the case of projects, this field supports project id (e.g., + * my-project-123) and project number (e.g. 12345678). * @return value or {@code null} for none */ - public java.lang.Integer getCount() { - return count; + public java.lang.String getId() { + return id; } /** - * The number of accelerator topologies in this state. - * @param count count or {@code null} for none + * The ID of the service resource. In the case of projects, this field supports project id (e.g., + * my-project-123) and project number (e.g. 12345678). + * @param id id or {@code null} for none */ - public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState setCount(java.lang.Integer count) { - this.count = count; + public XpnResourceId setId(java.lang.String id) { + this.id = id; return this; } /** - * The state of the accelerator topology. + * The type of the service resource. * @return value or {@code null} for none */ - public java.lang.String getState() { - return state; + public java.lang.String getType() { + return type; } /** - * The state of the accelerator topology. - * @param state state or {@code null} for none + * The type of the service resource. + * @param type type or {@code null} for none */ - public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState setState(java.lang.String state) { - this.state = state; + public XpnResourceId setType(java.lang.String type) { + this.type = type; return this; } @Override - public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState set(String fieldName, Object value) { - return (AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState) super.set(fieldName, value); + public XpnResourceId set(String fieldName, Object value) { + return (XpnResourceId) super.set(fieldName, value); } @Override - public AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState clone() { - return (AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState) super.clone(); + public XpnResourceId clone() { + return (XpnResourceId) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Zone.java similarity index 50% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorType.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Zone.java index ae22985ae67..75ab725815c 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorType.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/Zone.java @@ -14,14 +14,13 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Represents an Accelerator Type resource. + * Represents a Zone resource. * - * Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM - * instances to improve or accelerate performance when working with intensive workloads. For more - * information, readGPUs on Compute Engine. + * A zone is a deployment area. These deployment areas are subsets of a region. For example the zone + * us-east1-b is located in theus-east1 region. For more information, readRegions and Zones. * *

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: @@ -31,7 +30,14 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class AcceleratorType extends com.google.api.client.json.GenericJson { +public final class Zone extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] Available cpu/platform selections for the zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List availableCpuPlatforms; /** * [Output Only] Creation timestamp inRFC3339 text format. @@ -41,14 +47,14 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String creationTimestamp; /** - * [Output Only] The deprecation status associated with this accelerator type. + * [Output Only] The deprecation status associated with this zone. * The value may be {@code null}. */ @com.google.api.client.util.Key private DeprecationStatus deprecated; /** - * [Output Only] An optional textual description of the resource. + * [Output Only] Textual description of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,51 +68,69 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * Output only. [Output Only] Type of the resource. Always compute#zone for zones. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] Maximum number of accelerator cards allowed per instance. + * [Output Only] Name of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.Integer maximumCardsPerInstance; + private java.lang.String name; /** - * [Output Only] Name of the resource. + * [Output Only] Full URL reference to the region which hosts the zone. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String region; /** - * Output only. Contains standard resource metadata for an AcceleratorType resource. It is - * populated for each instance of the AcceleratorType resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. * The value may be {@code null}. */ @com.google.api.client.util.Key - private ResourceMetadata resourceMetadata; + private ZoneResourceStatus resourceStatus; /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [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] The name of the zone where the accelerator type resides, such as us-central1-a. - * You must specify this field as part of the HTTP request URL. It is not settable as a field in - * the request body. + * [Output Only] Status of the zone, either UP orDOWN. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String status; + + /** + * Output only. [Output Only] Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean supportsPzs; + + /** + * [Output Only] Available cpu/platform selections for the zone. + * @return value or {@code null} for none + */ + public java.util.List getAvailableCpuPlatforms() { + return availableCpuPlatforms; + } + + /** + * [Output Only] Available cpu/platform selections for the zone. + * @param availableCpuPlatforms availableCpuPlatforms or {@code null} for none + */ + public Zone setAvailableCpuPlatforms(java.util.List availableCpuPlatforms) { + this.availableCpuPlatforms = availableCpuPlatforms; + return this; + } /** * [Output Only] Creation timestamp inRFC3339 text format. @@ -120,13 +144,13 @@ public java.lang.String getCreationTimestamp() { * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ - public AcceleratorType setCreationTimestamp(java.lang.String creationTimestamp) { + public Zone setCreationTimestamp(java.lang.String creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } /** - * [Output Only] The deprecation status associated with this accelerator type. + * [Output Only] The deprecation status associated with this zone. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -134,16 +158,16 @@ public DeprecationStatus getDeprecated() { } /** - * [Output Only] The deprecation status associated with this accelerator type. + * [Output Only] The deprecation status associated with this zone. * @param deprecated deprecated or {@code null} for none */ - public AcceleratorType setDeprecated(DeprecationStatus deprecated) { + public Zone setDeprecated(DeprecationStatus deprecated) { this.deprecated = deprecated; return this; } /** - * [Output Only] An optional textual description of the resource. + * [Output Only] Textual description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -151,10 +175,10 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional textual description of the resource. + * [Output Only] Textual description of the resource. * @param description description or {@code null} for none */ - public AcceleratorType setDescription(java.lang.String description) { + public Zone setDescription(java.lang.String description) { this.description = description; return this; } @@ -171,14 +195,13 @@ public java.math.BigInteger getId() { * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @param id id or {@code null} for none */ - public AcceleratorType setId(java.math.BigInteger id) { + public Zone setId(java.math.BigInteger id) { this.id = id; return this; } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * Output only. [Output Only] Type of the resource. Always compute#zone for zones. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -186,72 +209,65 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * Output only. [Output Only] Type of the resource. Always compute#zone for zones. * @param kind kind or {@code null} for none */ - public AcceleratorType setKind(java.lang.String kind) { + public Zone setKind(java.lang.String kind) { this.kind = kind; return this; } /** - * [Output Only] Maximum number of accelerator cards allowed per instance. + * [Output Only] Name of the resource. * @return value or {@code null} for none */ - public java.lang.Integer getMaximumCardsPerInstance() { - return maximumCardsPerInstance; + public java.lang.String getName() { + return name; } /** - * [Output Only] Maximum number of accelerator cards allowed per instance. - * @param maximumCardsPerInstance maximumCardsPerInstance or {@code null} for none + * [Output Only] Name of the resource. + * @param name name or {@code null} for none */ - public AcceleratorType setMaximumCardsPerInstance(java.lang.Integer maximumCardsPerInstance) { - this.maximumCardsPerInstance = maximumCardsPerInstance; + public Zone setName(java.lang.String name) { + this.name = name; return this; } /** - * [Output Only] Name of the resource. + * [Output Only] Full URL reference to the region which hosts the zone. * @return value or {@code null} for none */ - public java.lang.String getName() { - return name; + public java.lang.String getRegion() { + return region; } /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none + * [Output Only] Full URL reference to the region which hosts the zone. + * @param region region or {@code null} for none */ - public AcceleratorType setName(java.lang.String name) { - this.name = name; + public Zone setRegion(java.lang.String region) { + this.region = region; return this; } /** - * Output only. Contains standard resource metadata for an AcceleratorType resource. It is - * populated for each instance of the AcceleratorType resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. * @return value or {@code null} for none */ - public ResourceMetadata getResourceMetadata() { - return resourceMetadata; + public ZoneResourceStatus getResourceStatus() { + return resourceStatus; } /** - * Output only. Contains standard resource metadata for an AcceleratorType resource. It is - * populated for each instance of the AcceleratorType resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * @param resourceMetadata resourceMetadata or {@code null} for none + * @param resourceStatus resourceStatus or {@code null} for none */ - public AcceleratorType setResourceMetadata(ResourceMetadata resourceMetadata) { - this.resourceMetadata = resourceMetadata; + public Zone setResourceStatus(ZoneResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; return this; } /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -259,43 +275,56 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ - public AcceleratorType setSelfLink(java.lang.String selfLink) { + public Zone setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } /** - * [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. - * You must specify this field as part of the HTTP request URL. It is not settable as a field in - * the request body. + * [Output Only] Status of the zone, either UP orDOWN. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * [Output Only] Status of the zone, either UP orDOWN. + * @param status status or {@code null} for none + */ + public Zone setStatus(java.lang.String status) { + this.status = status; + return this; + } + + /** + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ - public java.lang.String getZone() { - return zone; + public java.lang.Boolean getSupportsPzs() { + return supportsPzs; } /** - * [Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. - * You must specify this field as part of the HTTP request URL. It is not settable as a field in - * the request body. - * @param zone zone or {@code null} for none + * Output only. [Output Only] Reserved for future use. + * @param supportsPzs supportsPzs or {@code null} for none */ - public AcceleratorType setZone(java.lang.String zone) { - this.zone = zone; + public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { + this.supportsPzs = supportsPzs; return this; } @Override - public AcceleratorType set(String fieldName, Object value) { - return (AcceleratorType) super.set(fieldName, value); + public Zone set(String fieldName, Object value) { + return (Zone) super.set(fieldName, value); } @Override - public AcceleratorType clone() { - return (AcceleratorType) super.clone(); + public Zone clone() { + return (Zone) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneList.java similarity index 90% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketList.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneList.java index baf590c7a6a..10d844a9a76 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketList.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Contains a list of BackendBucket resources. + * Contains a list of zone resources. * *

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: @@ -27,7 +27,7 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class BackendBucketList extends com.google.api.client.json.GenericJson { +public final class ZoneList extends com.google.api.client.json.GenericJson { /** * [Output Only] Unique identifier for the resource; defined by the server. @@ -37,16 +37,16 @@ public final class BackendBucketList extends com.google.api.client.json.GenericJ private java.lang.String id; /** - * A list of BackendBucket resources. + * A list of Zone resources. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.List items; + private java.util.List items; static { - // hack to force ProGuard to consider BackendBucket used, since otherwise it would be stripped out + // hack to force ProGuard to consider Zone 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(BackendBucket.class); + com.google.api.client.util.Data.nullOf(Zone.class); } /** @@ -92,24 +92,24 @@ public java.lang.String getId() { * [Output Only] Unique identifier for the resource; defined by the server. * @param id id or {@code null} for none */ - public BackendBucketList setId(java.lang.String id) { + public ZoneList setId(java.lang.String id) { this.id = id; return this; } /** - * A list of BackendBucket resources. + * A list of Zone resources. * @return value or {@code null} for none */ - public java.util.List getItems() { + public java.util.List getItems() { return items; } /** - * A list of BackendBucket resources. + * A list of Zone resources. * @param items items or {@code null} for none */ - public BackendBucketList setItems(java.util.List items) { + public ZoneList setItems(java.util.List items) { this.items = items; return this; } @@ -126,7 +126,7 @@ public java.lang.String getKind() { * Output only. Type of resource. * @param kind kind or {@code null} for none */ - public BackendBucketList setKind(java.lang.String kind) { + public ZoneList setKind(java.lang.String kind) { this.kind = kind; return this; } @@ -149,7 +149,7 @@ public java.lang.String getNextPageToken() { * nextPageToken to continue paging through the results. * @param nextPageToken nextPageToken or {@code null} for none */ - public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { + public ZoneList setNextPageToken(java.lang.String nextPageToken) { this.nextPageToken = nextPageToken; return this; } @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ - public BackendBucketList setSelfLink(java.lang.String selfLink) { + public ZoneList setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } @@ -183,19 +183,19 @@ public Warning getWarning() { * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ - public BackendBucketList setWarning(Warning warning) { + public ZoneList setWarning(Warning warning) { this.warning = warning; return this; } @Override - public BackendBucketList set(String fieldName, Object value) { - return (BackendBucketList) super.set(fieldName, value); + public ZoneList set(String fieldName, Object value) { + return (ZoneList) super.set(fieldName, value); } @Override - public BackendBucketList clone() { - return (BackendBucketList) super.clone(); + public ZoneList clone() { + return (ZoneList) super.clone(); } /** @@ -301,7 +301,7 @@ public Warning clone() { } /** - * Model definition for BackendBucketListWarningData. + * Model definition for ZoneListWarningData. */ public static final class Data extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java similarity index 50% rename from clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfo.java rename to clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java index a47835684cd..fa29c63261b 100644 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfo.java +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java @@ -14,10 +14,10 @@ * Modify at your own risk. */ -package com.google.api.services.compute.preview.model; +package com.google.api.services.compute.model; /** - * Info for accelerator topologies within a densely packed reservation. + * Model definition for ZoneResourceStatus. * *

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: @@ -27,40 +27,46 @@ * @author Google, Inc. */ @SuppressWarnings("javadoc") -public final class AcceleratorTopologiesInfo extends com.google.api.client.json.GenericJson { +public final class ZoneResourceStatus extends com.google.api.client.json.GenericJson { /** - * Info for each accelerator topology. + * Output only. [Output Only] The upcoming maintenance schedule. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.List acceleratorTopologyInfos; + private java.util.List upcomingMaintenances; + + static { + // hack to force ProGuard to consider PeriodicPartialMaintenanceSchedule 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(PeriodicPartialMaintenanceSchedule.class); + } /** - * Info for each accelerator topology. + * Output only. [Output Only] The upcoming maintenance schedule. * @return value or {@code null} for none */ - public java.util.List getAcceleratorTopologyInfos() { - return acceleratorTopologyInfos; + public java.util.List getUpcomingMaintenances() { + return upcomingMaintenances; } /** - * Info for each accelerator topology. - * @param acceleratorTopologyInfos acceleratorTopologyInfos or {@code null} for none + * Output only. [Output Only] The upcoming maintenance schedule. + * @param upcomingMaintenances upcomingMaintenances or {@code null} for none */ - public AcceleratorTopologiesInfo setAcceleratorTopologyInfos(java.util.List acceleratorTopologyInfos) { - this.acceleratorTopologyInfos = acceleratorTopologyInfos; + public ZoneResourceStatus setUpcomingMaintenances(java.util.List upcomingMaintenances) { + this.upcomingMaintenances = upcomingMaintenances; return this; } @Override - public AcceleratorTopologiesInfo set(String fieldName, Object value) { - return (AcceleratorTopologiesInfo) super.set(fieldName, value); + public ZoneResourceStatus set(String fieldName, Object value) { + return (ZoneResourceStatus) super.set(fieldName, value); } @Override - public AcceleratorTopologiesInfo clone() { - return (AcceleratorTopologiesInfo) super.clone(); + public ZoneResourceStatus clone() { + return (ZoneResourceStatus) super.clone(); } } diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetLabelsRequest.java new file mode 100644 index 00000000000..dcdd029e509 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetLabelsRequest.java @@ -0,0 +1,133 @@ +/* + * 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 ZoneSetLabelsRequest. + * + *

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 ZoneSetLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labelFingerprint; + + /** + * The labels to set for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #decodeLabelFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getLabelFingerprint() { + return labelFingerprint; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #getLabelFingerprint() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeLabelFingerprint() { + return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #encodeLabelFingerprint() + * @param labelFingerprint labelFingerprint or {@code null} for none + */ + public ZoneSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { + this.labelFingerprint = labelFingerprint; + return this; + } + + /** + * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The + * fingerprint is initially generated by Compute Engine and changes after every request to modify + * or update labels. You must always provide an up-to-date fingerprint hash in order to update or + * change labels. Make a get() request to the resource to get the latest fingerprint. + * @see #setLabelFingerprint() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ZoneSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { + this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); + return this; + } + + /** + * The labels to set for this resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * The labels to set for this resource. + * @param labels labels or {@code null} for none + */ + public ZoneSetLabelsRequest setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + @Override + public ZoneSetLabelsRequest set(String fieldName, Object value) { + return (ZoneSetLabelsRequest) super.set(fieldName, value); + } + + @Override + public ZoneSetLabelsRequest clone() { + return (ZoneSetLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetNestedPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetNestedPolicyRequest.java new file mode 100644 index 00000000000..513c7d537f2 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetNestedPolicyRequest.java @@ -0,0 +1,162 @@ +/* + * 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 ZoneSetNestedPolicyRequest. + * + *

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 ZoneSetNestedPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding 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(Binding.class); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @param bindings bindings or {@code null} for none + */ + public ZoneSetNestedPolicyRequest setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public ZoneSetNestedPolicyRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ZoneSetNestedPolicyRequest encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public ZoneSetNestedPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + @Override + public ZoneSetNestedPolicyRequest set(String fieldName, Object value) { + return (ZoneSetNestedPolicyRequest) super.set(fieldName, value); + } + + @Override + public ZoneSetNestedPolicyRequest clone() { + return (ZoneSetNestedPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetPolicyRequest.java new file mode 100644 index 00000000000..b6a78f0fb22 --- /dev/null +++ b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/model/ZoneSetPolicyRequest.java @@ -0,0 +1,162 @@ +/* + * 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 ZoneSetPolicyRequest. + * + *

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 ZoneSetPolicyRequest extends com.google.api.client.json.GenericJson { + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bindings; + + static { + // hack to force ProGuard to consider Binding 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(Binding.class); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Policy policy; + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @return value or {@code null} for none + */ + public java.util.List getBindings() { + return bindings; + } + + /** + * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify + * bindings. + * @param bindings bindings or {@code null} for none + */ + public ZoneSetPolicyRequest setBindings(java.util.List bindings) { + this.bindings = bindings; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #decodeEtag() + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #getEtag() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeEtag() { + return com.google.api.client.util.Base64.decodeBase64(etag); + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #encodeEtag() + * @param etag etag or {@code null} for none + */ + public ZoneSetPolicyRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify + * the etag. + * @see #setEtag() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ZoneSetPolicyRequest encodeEtag(byte[] etag) { + this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); + return this; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @return value or {@code null} for none + */ + public Policy getPolicy() { + return policy; + } + + /** + * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is + * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services + * (like Projects) might reject them. + * @param policy policy or {@code null} for none + */ + public ZoneSetPolicyRequest setPolicy(Policy policy) { + this.policy = policy; + return this; + } + + @Override + public ZoneSetPolicyRequest set(String fieldName, Object value) { + return (ZoneSetPolicyRequest) super.set(fieldName, value); + } + + @Override + public ZoneSetPolicyRequest clone() { + return (ZoneSetPolicyRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/Compute.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/Compute.java deleted file mode 100644 index 370a5dde6f4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/Compute.java +++ /dev/null @@ -1,272454 +0,0 @@ -/* - * 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.preview; - -/** - * Service definition for Compute (preview). - * - *

- * Creates and runs virtual machines on Google Cloud Platform. - *

- * - *

- * For more information about this service, see the - * API Documentation - *

- * - *

- * This service uses {@link ComputeRequestInitializer} to initialize global parameters via its - * {@link Builder}. - *

- * - * @since 1.3 - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public class Compute extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { - - // Note: Leave this static initializer at the top of the file. - static { - com.google.api.client.util.Preconditions.checkState( - (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && - (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || - (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && - com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || - com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, - "You are currently running with version %s of google-api-client. " + - "You need at least version 1.31.1 of google-api-client to run version " + - "2.0.0 of the Compute Engine API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); - } - - /** - * The default encoded root URL of the service. This is determined when the library is generated - * and normally should not be changed. - * - * @since 1.7 - */ - public static final String DEFAULT_ROOT_URL = "https://compute.googleapis.com/"; - - /** - * The default encoded mTLS root URL of the service. This is determined when the library is generated - * and normally should not be changed. - * - * @since 1.31 - */ - public static final String DEFAULT_MTLS_ROOT_URL = "https://compute.mtls.googleapis.com/"; - - /** - * The default encoded service path of the service. This is determined when the library is - * generated and normally should not be changed. - * - * @since 1.7 - */ - public static final String DEFAULT_SERVICE_PATH = "compute/v1/"; - - /** - * The default encoded batch path of the service. This is determined when the library is - * generated and normally should not be changed. - * - * @since 1.23 - */ - public static final String DEFAULT_BATCH_PATH = "batch/compute/v1"; - - /** - * The default encoded base URL of the service. This is determined when the library is generated - * and normally should not be changed. - */ - public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; - - /** - * Constructor. - * - *

- * Use {@link Builder} if you need to specify any of the optional parameters. - *

- * - * @param transport HTTP transport, which should normally be: - *
    - *
  • Google App Engine: - * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • - *
  • Android: {@code newCompatibleTransport} from - * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • - * - *
- * @param jsonFactory JSON factory, which may be: - *
    - *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • - *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • - *
  • Android Honeycomb or higher: - * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • - *
- * @param httpRequestInitializer HTTP request initializer or {@code null} for none - * @since 1.7 - */ - public Compute(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, - com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { - this(new Builder(transport, jsonFactory, httpRequestInitializer)); - } - - /** - * @param builder builder - */ - Compute(Builder builder) { - super(builder); - } - - @Override - protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { - super.initialize(httpClientRequest); - } - - /** - * An accessor for creating requests from the AcceleratorTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.AcceleratorTypes.List request = compute.acceleratorTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public AcceleratorTypes acceleratorTypes() { - return new AcceleratorTypes(); - } - - /** - * The "acceleratorTypes" collection of methods. - */ - public class AcceleratorTypes { - - /** - * Retrieves an aggregated list of accelerator types. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "acceleratorTypes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/acceleratorTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of accelerator types. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "acceleratorTypes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.AcceleratorTypeAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Returns the specified accelerator type. - * - * Create a request for the method "acceleratorTypes.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 zone The name of the zone for this request. - * @param acceleratorType Name of the accelerator type to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorType) throws java.io.IOException { - Get result = new Get(project, zone, acceleratorType); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern ACCELERATOR_TYPE_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 accelerator type. - * - * Create a request for the method "acceleratorTypes.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 zone The name of the zone for this request. - * @param acceleratorType Name of the accelerator type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.AcceleratorType.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])?"); - } - this.acceleratorType = com.google.api.client.util.Preconditions.checkNotNull(acceleratorType, "Required parameter acceleratorType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ACCELERATOR_TYPE_PATTERN.matcher(acceleratorType).matches(), - "Parameter acceleratorType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 accelerator type to return. */ - @com.google.api.client.util.Key - private java.lang.String acceleratorType; - - /** Name of the accelerator type to return. - */ - public java.lang.String getAcceleratorType() { - return acceleratorType; - } - - /** Name of the accelerator type to return. */ - public Get setAcceleratorType(java.lang.String acceleratorType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ACCELERATOR_TYPE_PATTERN.matcher(acceleratorType).matches(), - "Parameter acceleratorType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.acceleratorType = acceleratorType; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of accelerator types that are available to the specified project. - * - * Create a request for the method "acceleratorTypes.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}/acceleratorTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 accelerator types that are available to the specified project. - * - * Create a request for the method "acceleratorTypes.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.preview.model.AcceleratorTypeList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Addresses collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Addresses.List request = compute.addresses().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Addresses addresses() { - return new Addresses(); - } - - /** - * The "addresses" collection of methods. - */ - public class Addresses { - - /** - * Retrieves an aggregated list of addresses. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "addresses.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/addresses"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of addresses. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "addresses.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.AddressAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified address resource. - * - * Create a request for the method "addresses.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param address Name of the address resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String address) throws java.io.IOException { - Delete result = new Delete(project, region, address); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{address}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ADDRESS_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified address resource. - * - * Create a request for the method "addresses.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param address Name of the address resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String address) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 address resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to delete. - */ - public java.lang.String getAddress() { - return address; - } - - /** Name of the address resource to delete. */ - public Delete setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified address resource. - * - * Create a request for the method "addresses.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 region Name of the region for this request. - * @param address Name of the address resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String address) throws java.io.IOException { - Get result = new Get(project, region, address); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{address}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ADDRESS_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 address resource. - * - * Create a request for the method "addresses.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 region Name of the region for this request. - * @param address Name of the address resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String address) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Address.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 address resource to return. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to return. - */ - public java.lang.String getAddress() { - return address; - } - - /** Name of the address resource to return. */ - public Get setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an address resource in the specified project by using the data included in the request. - * - * Create a request for the method "addresses.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Address} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Address content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/addresses"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an address resource in the specified project by using the data included in the request. - * - * Create a request for the method "addresses.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Address} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Address content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of addresses contained within the specified region. - * - * Create a request for the method "addresses.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 region 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}/addresses"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of addresses contained within the specified region. - * - * Create a request for the method "addresses.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 region 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.preview.model.AddressList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Moves the specified address resource. - * - * Create a request for the method "addresses.move". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. - * - * @param project Source project ID which the Address is moved from. - * @param region Name of the region for this request. - * @param address Name of the address resource to move. - * @param content the {@link com.google.api.services.compute.preview.model.RegionAddressesMoveRequest} - * @return the request - */ - public Move move(java.lang.String project, java.lang.String region, java.lang.String address, com.google.api.services.compute.preview.model.RegionAddressesMoveRequest content) throws java.io.IOException { - Move result = new Move(project, region, address, content); - initialize(result); - return result; - } - - public class Move extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{address}/move"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ADDRESS_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Moves the specified address resource. - * - * Create a request for the method "addresses.move". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

- * - * @param project Source project ID which the Address is moved from. - * @param region Name of the region for this request. - * @param address Name of the address resource to move. - * @param content the {@link com.google.api.services.compute.preview.model.RegionAddressesMoveRequest} - * @since 1.13 - */ - protected Move(java.lang.String project, java.lang.String region, java.lang.String address, com.google.api.services.compute.preview.model.RegionAddressesMoveRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); - } - - @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); - } - - @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); - } - - @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); - } - - @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); - } - - @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); - } - - @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); - } - - @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); - } - - @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); - } - - @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); - } - - @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); - } - - /** Source project ID which the Address is moved from. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Source project ID which the Address is moved from. - */ - public java.lang.String getProject() { - return project; - } - - /** Source project ID which the Address is moved from. */ - public Move 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Move 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 address resource to move. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to move. - */ - public java.lang.String getAddress() { - return address; - } - - /** Name of the address resource to move. */ - public Move setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; - 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 Move setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); - } - } - /** - * Sets the labels on an Address. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "addresses.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/addresses/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on an Address. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "addresses.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Advice collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Advice.List request = compute.advice().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Advice advice() { - return new Advice(); - } - - /** - * The "advice" collection of methods. - */ - public class Advice { - - /** - * Advise how, where and when to create the requested amount of instances with specified - * accelerators, within the specified time and location limits. The method recommends creating - * future reservations for the requested resources. - * - * Create a request for the method "advice.calendarMode". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CalendarMode#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CalendarModeAdviceRequest} - * @return the request - */ - public CalendarMode calendarMode(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CalendarModeAdviceRequest content) throws java.io.IOException { - CalendarMode result = new CalendarMode(project, region, content); - initialize(result); - return result; - } - - public class CalendarMode extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/advice/calendarMode"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Advise how, where and when to create the requested amount of instances with specified - * accelerators, within the specified time and location limits. The method recommends creating - * future reservations for the requested resources. - * - * Create a request for the method "advice.calendarMode". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CalendarMode#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CalendarModeAdviceRequest} - * @since 1.13 - */ - protected CalendarMode(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CalendarModeAdviceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.CalendarModeAdviceResponse.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CalendarMode set$Xgafv(java.lang.String $Xgafv) { - return (CalendarMode) super.set$Xgafv($Xgafv); - } - - @Override - public CalendarMode setAccessToken(java.lang.String accessToken) { - return (CalendarMode) super.setAccessToken(accessToken); - } - - @Override - public CalendarMode setAlt(java.lang.String alt) { - return (CalendarMode) super.setAlt(alt); - } - - @Override - public CalendarMode setCallback(java.lang.String callback) { - return (CalendarMode) super.setCallback(callback); - } - - @Override - public CalendarMode setFields(java.lang.String fields) { - return (CalendarMode) super.setFields(fields); - } - - @Override - public CalendarMode setKey(java.lang.String key) { - return (CalendarMode) super.setKey(key); - } - - @Override - public CalendarMode setOauthToken(java.lang.String oauthToken) { - return (CalendarMode) super.setOauthToken(oauthToken); - } - - @Override - public CalendarMode setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CalendarMode) super.setPrettyPrint(prettyPrint); - } - - @Override - public CalendarMode setQuotaUser(java.lang.String quotaUser) { - return (CalendarMode) super.setQuotaUser(quotaUser); - } - - @Override - public CalendarMode setUploadType(java.lang.String uploadType) { - return (CalendarMode) super.setUploadType(uploadType); - } - - @Override - public CalendarMode setUploadProtocol(java.lang.String uploadProtocol) { - return (CalendarMode) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CalendarMode setUserIp(java.lang.String userIp) { - return (CalendarMode) 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 CalendarMode 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public CalendarMode 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; - } - - @Override - public CalendarMode set(String parameterName, Object value) { - return (CalendarMode) super.set(parameterName, value); - } - } - /** - * Advice on making real-time decisions (such as choosing zone or machine types) during deployment - * to maximize your chances of obtaining capacity. - * - * Create a request for the method "advice.capacity". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Capacity#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CapacityAdviceRequest} - * @return the request - */ - public Capacity capacity(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CapacityAdviceRequest content) throws java.io.IOException { - Capacity result = new Capacity(project, region, content); - initialize(result); - return result; - } - - public class Capacity extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/advice/capacity"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Advice on making real-time decisions (such as choosing zone or machine types) during deployment - * to maximize your chances of obtaining capacity. - * - * Create a request for the method "advice.capacity". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Capacity#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CapacityAdviceRequest} - * @since 1.13 - */ - protected Capacity(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CapacityAdviceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.CapacityAdviceResponse.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Capacity set$Xgafv(java.lang.String $Xgafv) { - return (Capacity) super.set$Xgafv($Xgafv); - } - - @Override - public Capacity setAccessToken(java.lang.String accessToken) { - return (Capacity) super.setAccessToken(accessToken); - } - - @Override - public Capacity setAlt(java.lang.String alt) { - return (Capacity) super.setAlt(alt); - } - - @Override - public Capacity setCallback(java.lang.String callback) { - return (Capacity) super.setCallback(callback); - } - - @Override - public Capacity setFields(java.lang.String fields) { - return (Capacity) super.setFields(fields); - } - - @Override - public Capacity setKey(java.lang.String key) { - return (Capacity) super.setKey(key); - } - - @Override - public Capacity setOauthToken(java.lang.String oauthToken) { - return (Capacity) super.setOauthToken(oauthToken); - } - - @Override - public Capacity setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Capacity) super.setPrettyPrint(prettyPrint); - } - - @Override - public Capacity setQuotaUser(java.lang.String quotaUser) { - return (Capacity) super.setQuotaUser(quotaUser); - } - - @Override - public Capacity setUploadType(java.lang.String uploadType) { - return (Capacity) super.setUploadType(uploadType); - } - - @Override - public Capacity setUploadProtocol(java.lang.String uploadProtocol) { - return (Capacity) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Capacity setUserIp(java.lang.String userIp) { - return (Capacity) 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 Capacity 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Capacity 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; - } - - @Override - public Capacity set(String parameterName, Object value) { - return (Capacity) super.set(parameterName, value); - } - } - /** - * Gets the capacity history. - * - * Create a request for the method "advice.capacityHistory". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CapacityHistory#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CapacityHistoryRequest} - * @return the request - */ - public CapacityHistory capacityHistory(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CapacityHistoryRequest content) throws java.io.IOException { - CapacityHistory result = new CapacityHistory(project, region, content); - initialize(result); - return result; - } - - public class CapacityHistory extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/advice/capacityHistory"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Gets the capacity history. - * - * Create a request for the method "advice.capacityHistory". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CapacityHistory#execute()} method to invoke the remote operation. - *

{@link CapacityHistory#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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 for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CapacityHistoryRequest} - * @since 1.13 - */ - protected CapacityHistory(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CapacityHistoryRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.CapacityHistoryResponse.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CapacityHistory set$Xgafv(java.lang.String $Xgafv) { - return (CapacityHistory) super.set$Xgafv($Xgafv); - } - - @Override - public CapacityHistory setAccessToken(java.lang.String accessToken) { - return (CapacityHistory) super.setAccessToken(accessToken); - } - - @Override - public CapacityHistory setAlt(java.lang.String alt) { - return (CapacityHistory) super.setAlt(alt); - } - - @Override - public CapacityHistory setCallback(java.lang.String callback) { - return (CapacityHistory) super.setCallback(callback); - } - - @Override - public CapacityHistory setFields(java.lang.String fields) { - return (CapacityHistory) super.setFields(fields); - } - - @Override - public CapacityHistory setKey(java.lang.String key) { - return (CapacityHistory) super.setKey(key); - } - - @Override - public CapacityHistory setOauthToken(java.lang.String oauthToken) { - return (CapacityHistory) super.setOauthToken(oauthToken); - } - - @Override - public CapacityHistory setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CapacityHistory) super.setPrettyPrint(prettyPrint); - } - - @Override - public CapacityHistory setQuotaUser(java.lang.String quotaUser) { - return (CapacityHistory) super.setQuotaUser(quotaUser); - } - - @Override - public CapacityHistory setUploadType(java.lang.String uploadType) { - return (CapacityHistory) super.setUploadType(uploadType); - } - - @Override - public CapacityHistory setUploadProtocol(java.lang.String uploadProtocol) { - return (CapacityHistory) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CapacityHistory setUserIp(java.lang.String userIp) { - return (CapacityHistory) 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 CapacityHistory 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public CapacityHistory 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; - } - - @Override - public CapacityHistory set(String parameterName, Object value) { - return (CapacityHistory) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Autoscalers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Autoscalers.List request = compute.autoscalers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Autoscalers autoscalers() { - return new Autoscalers(); - } - - /** - * The "autoscalers" collection of methods. - */ - public class Autoscalers { - - /** - * Retrieves an aggregated list of autoscalers. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "autoscalers.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of autoscalers. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "autoscalers.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.AutoscalerAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified autoscaler. - * - * Create a request for the method "autoscalers.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param autoscaler Name of the autoscaler to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) throws java.io.IOException { - Delete result = new Delete(project, zone, autoscaler); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{autoscaler}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern AUTOSCALER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified autoscaler. - * - * Create a request for the method "autoscalers.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 Name of the zone for this request. - * @param autoscaler Name of the autoscaler to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Delete 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 autoscaler to delete. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to delete. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to delete. */ - public Delete setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified autoscaler resource. - * - * Create a request for the method "autoscalers.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 zone Name of the zone for this request. - * @param autoscaler Name of the autoscaler to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) throws java.io.IOException { - Get result = new Get(project, zone, autoscaler); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{autoscaler}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern AUTOSCALER_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 autoscaler resource. - * - * Create a request for the method "autoscalers.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 zone Name of the zone for this request. - * @param autoscaler Name of the autoscaler to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String autoscaler) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Autoscaler.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])?"); - } - this.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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 autoscaler to return. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to return. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to return. */ - public Get setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an autoscaler in the specified project using the data included in the request. - * - * Create a request for the method "autoscalers.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Autoscaler content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an autoscaler in the specified project using the data included in the request. - * - * Create a request for the method "autoscalers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Autoscaler content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of autoscalers contained within the specified zone. - * - * Create a request for the method "autoscalers.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 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}/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 autoscalers contained within the specified zone. - * - * Create a request for the method "autoscalers.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 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.preview.model.AutoscalerList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an autoscaler in the specified project using the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "autoscalers.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 Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Autoscaler content) throws java.io.IOException { - Patch result = new Patch(project, zone, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern AUTOSCALER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates an autoscaler in the specified project using the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "autoscalers.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 Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Autoscaler content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Patch 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 autoscaler to patch. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to patch. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to patch. */ - public Patch setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "autoscalers.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "autoscalers.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

{@link - * Update#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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Autoscaler content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Update 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 autoscaler to update. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to update. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to update. */ - public Update setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the BackendBuckets collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.BackendBuckets.List request = compute.backendBuckets().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public BackendBuckets backendBuckets() { - return new BackendBuckets(); - } - - /** - * The "backendBuckets" collection of methods. - */ - public class BackendBuckets { - - /** - * Adds a key for validating requests with signed URLs for this backend bucket. - * - * Create a request for the method "backendBuckets.addSignedUrlKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SignedUrlKey} - * @return the request - */ - public AddSignedUrlKey addSignedUrlKey(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.SignedUrlKey content) throws java.io.IOException { - AddSignedUrlKey result = new AddSignedUrlKey(project, backendBucket, content); - initialize(result); - return result; - } - - public class AddSignedUrlKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Adds a key for validating requests with signed URLs for this backend bucket. - * - * Create a request for the method "backendBuckets.addSignedUrlKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. - *

{@link AddSignedUrlKey#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SignedUrlKey} - * @since 1.13 - */ - protected AddSignedUrlKey(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.SignedUrlKey content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { - return (AddSignedUrlKey) super.set$Xgafv($Xgafv); - } - - @Override - public AddSignedUrlKey setAccessToken(java.lang.String accessToken) { - return (AddSignedUrlKey) super.setAccessToken(accessToken); - } - - @Override - public AddSignedUrlKey setAlt(java.lang.String alt) { - return (AddSignedUrlKey) super.setAlt(alt); - } - - @Override - public AddSignedUrlKey setCallback(java.lang.String callback) { - return (AddSignedUrlKey) super.setCallback(callback); - } - - @Override - public AddSignedUrlKey setFields(java.lang.String fields) { - return (AddSignedUrlKey) super.setFields(fields); - } - - @Override - public AddSignedUrlKey setKey(java.lang.String key) { - return (AddSignedUrlKey) super.setKey(key); - } - - @Override - public AddSignedUrlKey setOauthToken(java.lang.String oauthToken) { - return (AddSignedUrlKey) super.setOauthToken(oauthToken); - } - - @Override - public AddSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddSignedUrlKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddSignedUrlKey setQuotaUser(java.lang.String quotaUser) { - return (AddSignedUrlKey) super.setQuotaUser(quotaUser); - } - - @Override - public AddSignedUrlKey setUploadType(java.lang.String uploadType) { - return (AddSignedUrlKey) super.setUploadType(uploadType); - } - - @Override - public AddSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { - return (AddSignedUrlKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddSignedUrlKey setUserIp(java.lang.String userIp) { - return (AddSignedUrlKey) 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 AddSignedUrlKey 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 BackendBucket resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to which the Signed URL Key should be added. The name should - conform to RFC1035. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** - * Name of the BackendBucket resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - public AddSignedUrlKey setBackendBucket(java.lang.String backendBucket) { - this.backendBucket = backendBucket; - 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 AddSignedUrlKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddSignedUrlKey set(String parameterName, Object value) { - return (AddSignedUrlKey) super.set(parameterName, value); - } - } - /** - * Retrieves the list of all BackendBucket resources, regional and global, available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "backendBuckets.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/backendBuckets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all BackendBucket resources, regional and global, available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "backendBuckets.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendBucketAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified BackendBucket resource. - * - * Create a request for the method "backendBuckets.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String backendBucket) throws java.io.IOException { - Delete result = new Delete(project, backendBucket); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_BUCKET_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified BackendBucket resource. - * - * Create a request for the method "backendBuckets.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 backendBucket Name of the BackendBucket resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String backendBucket) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 BackendBucket resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to delete. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to delete. */ - public Delete setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes a key for validating requests with signed URLs for this backend bucket. - * - * Create a request for the method "backendBuckets.deleteSignedUrlKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param keyName The name of the Signed URL Key to delete. - * @return the request - */ - public DeleteSignedUrlKey deleteSignedUrlKey(java.lang.String project, java.lang.String backendBucket, java.lang.String keyName) throws java.io.IOException { - DeleteSignedUrlKey result = new DeleteSignedUrlKey(project, backendBucket, keyName); - initialize(result); - return result; - } - - public class DeleteSignedUrlKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes a key for validating requests with signed URLs for this backend bucket. - * - * Create a request for the method "backendBuckets.deleteSignedUrlKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param keyName The name of the Signed URL Key to delete. - * @since 1.13 - */ - protected DeleteSignedUrlKey(java.lang.String project, java.lang.String backendBucket, java.lang.String keyName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - this.keyName = com.google.api.client.util.Preconditions.checkNotNull(keyName, "Required parameter keyName must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { - return (DeleteSignedUrlKey) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteSignedUrlKey setAccessToken(java.lang.String accessToken) { - return (DeleteSignedUrlKey) super.setAccessToken(accessToken); - } - - @Override - public DeleteSignedUrlKey setAlt(java.lang.String alt) { - return (DeleteSignedUrlKey) super.setAlt(alt); - } - - @Override - public DeleteSignedUrlKey setCallback(java.lang.String callback) { - return (DeleteSignedUrlKey) super.setCallback(callback); - } - - @Override - public DeleteSignedUrlKey setFields(java.lang.String fields) { - return (DeleteSignedUrlKey) super.setFields(fields); - } - - @Override - public DeleteSignedUrlKey setKey(java.lang.String key) { - return (DeleteSignedUrlKey) super.setKey(key); - } - - @Override - public DeleteSignedUrlKey setOauthToken(java.lang.String oauthToken) { - return (DeleteSignedUrlKey) super.setOauthToken(oauthToken); - } - - @Override - public DeleteSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteSignedUrlKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteSignedUrlKey setQuotaUser(java.lang.String quotaUser) { - return (DeleteSignedUrlKey) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteSignedUrlKey setUploadType(java.lang.String uploadType) { - return (DeleteSignedUrlKey) super.setUploadType(uploadType); - } - - @Override - public DeleteSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteSignedUrlKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteSignedUrlKey setUserIp(java.lang.String userIp) { - return (DeleteSignedUrlKey) 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 DeleteSignedUrlKey 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 BackendBucket resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to which the Signed URL Key should be added. The name should - conform to RFC1035. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** - * Name of the BackendBucket resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - public DeleteSignedUrlKey setBackendBucket(java.lang.String backendBucket) { - this.backendBucket = backendBucket; - return this; - } - - /** The name of the Signed URL Key to delete. */ - @com.google.api.client.util.Key - private java.lang.String keyName; - - /** The name of the Signed URL Key to delete. - */ - public java.lang.String getKeyName() { - return keyName; - } - - /** The name of the Signed URL Key to delete. */ - public DeleteSignedUrlKey setKeyName(java.lang.String keyName) { - this.keyName = keyName; - 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 DeleteSignedUrlKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteSignedUrlKey set(String parameterName, Object value) { - return (DeleteSignedUrlKey) super.set(parameterName, value); - } - } - /** - * Returns the specified BackendBucket resource. - * - * Create a request for the method "backendBuckets.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 backendBucket Name of the BackendBucket resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String backendBucket) throws java.io.IOException { - Get result = new Get(project, backendBucket); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_BUCKET_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 BackendBucket resource. - * - * Create a request for the method "backendBuckets.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 backendBucket Name of the BackendBucket resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String backendBucket) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendBucket.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 BackendBucket resource to return. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to return. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to return. */ - public Get setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "backendBuckets.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "backendBuckets.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.BackendBucket content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of BackendBucket resources available to the specified project. - * - * Create a request for the method "backendBuckets.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of BackendBucket resources available to the specified project. - * - * Create a request for the method "backendBuckets.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendBucketList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves a list of all usable backend buckets in the specified project. - * - * Create a request for the method "backendBuckets.listUsable". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public ListUsable listUsable(java.lang.String project) throws java.io.IOException { - ListUsable result = new ListUsable(project); - initialize(result); - return result; - } - - public class ListUsable extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/listUsable"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of all usable backend buckets in the specified project. - * - * Create a request for the method "backendBuckets.listUsable". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

- * {@link - * ListUsable#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. - * @since 1.13 - */ - protected ListUsable(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendBucketListUsable.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); - } - - @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); - } - - @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); - } - - @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); - } - - @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); - } - - @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); - } - - @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); - } - - @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); - } - - @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); - } - - @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) 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 ListUsable 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; - } - - /** - * 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); - } - } - /** - * Updates the specified BackendBucket resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "backendBuckets.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 Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.BackendBucket content) throws java.io.IOException { - Patch result = new Patch(project, backendBucket, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_BUCKET_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified BackendBucket resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "backendBuckets.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 Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.BackendBucket content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 BackendBucket resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to patch. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to patch. */ - public Patch setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the edge security policy for the specified backend bucket. - * - * Create a request for the method "backendBuckets.setEdgeSecurityPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to which the security policy should be - set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @return the request - */ - public SetEdgeSecurityPolicy setEdgeSecurityPolicy(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.SecurityPolicyReference content) throws java.io.IOException { - SetEdgeSecurityPolicy result = new SetEdgeSecurityPolicy(project, backendBucket, content); - initialize(result); - return result; - } - - public class SetEdgeSecurityPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the edge security policy for the specified backend bucket. - * - * Create a request for the method "backendBuckets.setEdgeSecurityPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote - * operation.

{@link SetEdgeSecurityPolicy#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param backendBucket Name of the BackendBucket resource to which the security policy should be - set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @since 1.13 - */ - protected SetEdgeSecurityPolicy(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.SecurityPolicyReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetEdgeSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetEdgeSecurityPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetEdgeSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetEdgeSecurityPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetEdgeSecurityPolicy setAlt(java.lang.String alt) { - return (SetEdgeSecurityPolicy) super.setAlt(alt); - } - - @Override - public SetEdgeSecurityPolicy setCallback(java.lang.String callback) { - return (SetEdgeSecurityPolicy) super.setCallback(callback); - } - - @Override - public SetEdgeSecurityPolicy setFields(java.lang.String fields) { - return (SetEdgeSecurityPolicy) super.setFields(fields); - } - - @Override - public SetEdgeSecurityPolicy setKey(java.lang.String key) { - return (SetEdgeSecurityPolicy) super.setKey(key); - } - - @Override - public SetEdgeSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetEdgeSecurityPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetEdgeSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetEdgeSecurityPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetEdgeSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetEdgeSecurityPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetEdgeSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetEdgeSecurityPolicy) super.setUploadType(uploadType); - } - - @Override - public SetEdgeSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetEdgeSecurityPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetEdgeSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetEdgeSecurityPolicy) 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 SetEdgeSecurityPolicy 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 BackendBucket resource to which the security policy should be set. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to which the security policy should be set. The name should - conform to RFC1035. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** - * Name of the BackendBucket resource to which the security policy should be set. The name - * should conform to RFC1035. - */ - public SetEdgeSecurityPolicy setBackendBucket(java.lang.String backendBucket) { - this.backendBucket = backendBucket; - 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 SetEdgeSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetEdgeSecurityPolicy set(String parameterName, Object value) { - return (SetEdgeSecurityPolicy) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "backendBuckets.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendBuckets/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "backendBuckets.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

{@link - * Update#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 backendBucket Name of the BackendBucket resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String backendBucket, com.google.api.services.compute.preview.model.BackendBucket content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 BackendBucket resource to update. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to update. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to update. */ - public Update setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the BackendServices collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.BackendServices.List request = compute.backendServices().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public BackendServices backendServices() { - return new BackendServices(); - } - - /** - * The "backendServices" collection of methods. - */ - public class BackendServices { - - /** - * Adds a key for validating requests with signed URLs for this backend service. - * - * Create a request for the method "backendServices.addSignedUrlKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SignedUrlKey} - * @return the request - */ - public AddSignedUrlKey addSignedUrlKey(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.SignedUrlKey content) throws java.io.IOException { - AddSignedUrlKey result = new AddSignedUrlKey(project, backendService, content); - initialize(result); - return result; - } - - public class AddSignedUrlKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/addSignedUrlKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Adds a key for validating requests with signed URLs for this backend service. - * - * Create a request for the method "backendServices.addSignedUrlKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddSignedUrlKey#execute()} method to invoke the remote operation. - *

{@link AddSignedUrlKey#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SignedUrlKey} - * @since 1.13 - */ - protected AddSignedUrlKey(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.SignedUrlKey content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { - return (AddSignedUrlKey) super.set$Xgafv($Xgafv); - } - - @Override - public AddSignedUrlKey setAccessToken(java.lang.String accessToken) { - return (AddSignedUrlKey) super.setAccessToken(accessToken); - } - - @Override - public AddSignedUrlKey setAlt(java.lang.String alt) { - return (AddSignedUrlKey) super.setAlt(alt); - } - - @Override - public AddSignedUrlKey setCallback(java.lang.String callback) { - return (AddSignedUrlKey) super.setCallback(callback); - } - - @Override - public AddSignedUrlKey setFields(java.lang.String fields) { - return (AddSignedUrlKey) super.setFields(fields); - } - - @Override - public AddSignedUrlKey setKey(java.lang.String key) { - return (AddSignedUrlKey) super.setKey(key); - } - - @Override - public AddSignedUrlKey setOauthToken(java.lang.String oauthToken) { - return (AddSignedUrlKey) super.setOauthToken(oauthToken); - } - - @Override - public AddSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddSignedUrlKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddSignedUrlKey setQuotaUser(java.lang.String quotaUser) { - return (AddSignedUrlKey) super.setQuotaUser(quotaUser); - } - - @Override - public AddSignedUrlKey setUploadType(java.lang.String uploadType) { - return (AddSignedUrlKey) super.setUploadType(uploadType); - } - - @Override - public AddSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { - return (AddSignedUrlKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddSignedUrlKey setUserIp(java.lang.String userIp) { - return (AddSignedUrlKey) 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 AddSignedUrlKey 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 BackendService resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to which the Signed URL Key should be added. The name should - conform to RFC1035. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * Name of the BackendService resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - public AddSignedUrlKey setBackendService(java.lang.String backendService) { - this.backendService = backendService; - 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 AddSignedUrlKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddSignedUrlKey set(String parameterName, Object value) { - return (AddSignedUrlKey) super.set(parameterName, value); - } - } - /** - * Retrieves the list of all BackendService resources, regional and global, available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "backendServices.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/backendServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all BackendService resources, regional and global, available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "backendServices.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendServiceAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified BackendService resource. - * - * Create a request for the method "backendServices.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String backendService) throws java.io.IOException { - Delete result = new Delete(project, backendService); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified BackendService resource. - * - * Create a request for the method "backendServices.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 backendService Name of the BackendService resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String backendService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 BackendService resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to delete. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to delete. */ - public Delete setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes a key for validating requests with signed URLs for this backend service. - * - * Create a request for the method "backendServices.deleteSignedUrlKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param keyName The name of the Signed URL Key to delete. - * @return the request - */ - public DeleteSignedUrlKey deleteSignedUrlKey(java.lang.String project, java.lang.String backendService, java.lang.String keyName) throws java.io.IOException { - DeleteSignedUrlKey result = new DeleteSignedUrlKey(project, backendService, keyName); - initialize(result); - return result; - } - - public class DeleteSignedUrlKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes a key for validating requests with signed URLs for this backend service. - * - * Create a request for the method "backendServices.deleteSignedUrlKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteSignedUrlKey#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to which the Signed URL Key should be - added. The name should - * conform to RFC1035. - * @param keyName The name of the Signed URL Key to delete. - * @since 1.13 - */ - protected DeleteSignedUrlKey(java.lang.String project, java.lang.String backendService, java.lang.String keyName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - this.keyName = com.google.api.client.util.Preconditions.checkNotNull(keyName, "Required parameter keyName must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteSignedUrlKey set$Xgafv(java.lang.String $Xgafv) { - return (DeleteSignedUrlKey) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteSignedUrlKey setAccessToken(java.lang.String accessToken) { - return (DeleteSignedUrlKey) super.setAccessToken(accessToken); - } - - @Override - public DeleteSignedUrlKey setAlt(java.lang.String alt) { - return (DeleteSignedUrlKey) super.setAlt(alt); - } - - @Override - public DeleteSignedUrlKey setCallback(java.lang.String callback) { - return (DeleteSignedUrlKey) super.setCallback(callback); - } - - @Override - public DeleteSignedUrlKey setFields(java.lang.String fields) { - return (DeleteSignedUrlKey) super.setFields(fields); - } - - @Override - public DeleteSignedUrlKey setKey(java.lang.String key) { - return (DeleteSignedUrlKey) super.setKey(key); - } - - @Override - public DeleteSignedUrlKey setOauthToken(java.lang.String oauthToken) { - return (DeleteSignedUrlKey) super.setOauthToken(oauthToken); - } - - @Override - public DeleteSignedUrlKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteSignedUrlKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteSignedUrlKey setQuotaUser(java.lang.String quotaUser) { - return (DeleteSignedUrlKey) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteSignedUrlKey setUploadType(java.lang.String uploadType) { - return (DeleteSignedUrlKey) super.setUploadType(uploadType); - } - - @Override - public DeleteSignedUrlKey setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteSignedUrlKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteSignedUrlKey setUserIp(java.lang.String userIp) { - return (DeleteSignedUrlKey) 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 DeleteSignedUrlKey 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 BackendService resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to which the Signed URL Key should be added. The name should - conform to RFC1035. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * Name of the BackendService resource to which the Signed URL Key should be added. The name - * should conform to RFC1035. - */ - public DeleteSignedUrlKey setBackendService(java.lang.String backendService) { - this.backendService = backendService; - return this; - } - - /** The name of the Signed URL Key to delete. */ - @com.google.api.client.util.Key - private java.lang.String keyName; - - /** The name of the Signed URL Key to delete. - */ - public java.lang.String getKeyName() { - return keyName; - } - - /** The name of the Signed URL Key to delete. */ - public DeleteSignedUrlKey setKeyName(java.lang.String keyName) { - this.keyName = keyName; - 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 DeleteSignedUrlKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteSignedUrlKey set(String parameterName, Object value) { - return (DeleteSignedUrlKey) super.set(parameterName, value); - } - } - /** - * Returns the specified BackendService resource. - * - * Create a request for the method "backendServices.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 backendService Name of the BackendService resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String backendService) throws java.io.IOException { - Get result = new Get(project, backendService); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_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 BackendService resource. - * - * Create a request for the method "backendServices.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 backendService Name of the BackendService resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String backendService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendService.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 BackendService resource to return. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to return. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to return. */ - public Get setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns effective security policies applied to this backend service. - * - * Create a request for the method "backendServices.getEffectiveSecurityPolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveSecurityPolicies#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param backendService Name of the Backend Service for this request. - * @return the request - */ - public GetEffectiveSecurityPolicies getEffectiveSecurityPolicies(java.lang.String project, java.lang.String backendService) throws java.io.IOException { - GetEffectiveSecurityPolicies result = new GetEffectiveSecurityPolicies(project, backendService); - initialize(result); - return result; - } - - public class GetEffectiveSecurityPolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Returns effective security policies applied to this backend service. - * - * Create a request for the method "backendServices.getEffectiveSecurityPolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveSecurityPolicies#execute()} method to invoke the remote - * operation.

{@link GetEffectiveSecurityPolicies#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 backendService Name of the Backend Service for this request. - * @since 1.13 - */ - protected GetEffectiveSecurityPolicies(java.lang.String project, java.lang.String backendService) { - super(Compute.this, "GET", REST_PATH, null, Void.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetEffectiveSecurityPolicies set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveSecurityPolicies) super.set$Xgafv($Xgafv); - } - - @Override - public GetEffectiveSecurityPolicies setAccessToken(java.lang.String accessToken) { - return (GetEffectiveSecurityPolicies) super.setAccessToken(accessToken); - } - - @Override - public GetEffectiveSecurityPolicies setAlt(java.lang.String alt) { - return (GetEffectiveSecurityPolicies) super.setAlt(alt); - } - - @Override - public GetEffectiveSecurityPolicies setCallback(java.lang.String callback) { - return (GetEffectiveSecurityPolicies) super.setCallback(callback); - } - - @Override - public GetEffectiveSecurityPolicies setFields(java.lang.String fields) { - return (GetEffectiveSecurityPolicies) super.setFields(fields); - } - - @Override - public GetEffectiveSecurityPolicies setKey(java.lang.String key) { - return (GetEffectiveSecurityPolicies) super.setKey(key); - } - - @Override - public GetEffectiveSecurityPolicies setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveSecurityPolicies) super.setOauthToken(oauthToken); - } - - @Override - public GetEffectiveSecurityPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveSecurityPolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetEffectiveSecurityPolicies setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveSecurityPolicies) super.setQuotaUser(quotaUser); - } - - @Override - public GetEffectiveSecurityPolicies setUploadType(java.lang.String uploadType) { - return (GetEffectiveSecurityPolicies) super.setUploadType(uploadType); - } - - @Override - public GetEffectiveSecurityPolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveSecurityPolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetEffectiveSecurityPolicies setUserIp(java.lang.String userIp) { - return (GetEffectiveSecurityPolicies) 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 GetEffectiveSecurityPolicies 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 Backend Service for this request. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the Backend Service for this request. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the Backend Service for this request. */ - public GetEffectiveSecurityPolicies setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.backendService = backendService; - return this; - } - - @Override - public GetEffectiveSecurityPolicies set(String parameterName, Object value) { - return (GetEffectiveSecurityPolicies) super.set(parameterName, value); - } - } - /** - * Gets the most recent health check results for this BackendService. - * - * Example request body: - * - * { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } - * - * Create a request for the method "backendServices.getHealth". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. - * - * @param project - * @param backendService Name of the BackendService resource to which the queried instance belongs. - * @param content the {@link com.google.api.services.compute.preview.model.ResourceGroupReference} - * @return the request - */ - public GetHealth getHealth(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.ResourceGroupReference content) throws java.io.IOException { - GetHealth result = new GetHealth(project, backendService, content); - initialize(result); - return result; - } - - public class GetHealth extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/getHealth"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the most recent health check results for this BackendService. - * - * Example request body: - * - * { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } - * - * Create a request for the method "backendServices.getHealth". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

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

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

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

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.BackendService} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.BackendService content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of BackendService resources available to the specified project. - * - * Create a request for the method "backendServices.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/backendServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of BackendService resources available to the specified project. - * - * Create a request for the method "backendServices.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendServiceList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves a list of all usable backend services for Application Load Balancers and Proxy Network - * Load Balancers in the specified project. Backend services for external and internal passthrough - * Network Load Balancers are not included in the response. - * - * Create a request for the method "backendServices.listUsable". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public ListUsable listUsable(java.lang.String project) throws java.io.IOException { - ListUsable result = new ListUsable(project); - initialize(result); - return result; - } - - public class ListUsable extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/listUsable"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of all usable backend services for Application Load Balancers and Proxy - * Network Load Balancers in the specified project. Backend services for external and internal - * passthrough Network Load Balancers are not included in the response. - * - * Create a request for the method "backendServices.listUsable". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

- * {@link - * ListUsable#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. - * @since 1.13 - */ - protected ListUsable(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendServiceListUsable.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); - } - - @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); - } - - @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); - } - - @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); - } - - @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); - } - - @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); - } - - @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); - } - - @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); - } - - @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); - } - - @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) 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 ListUsable 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; - } - - /** - * 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); - } - } - /** - * Patches the specified BackendService resource with the data included in the request. For more - * information, see Backend services overview. This method supports PATCH semantics and uses the - * JSON merge patch format and processing rules. - * - * Create a request for the method "backendServices.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 Project ID for this request. - * @param backendService Name of the BackendService resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.BackendService content) throws java.io.IOException { - Patch result = new Patch(project, backendService, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified BackendService resource with the data included in the request. For more - * information, see Backend services overview. This method supports PATCH semantics and uses the - * JSON merge patch format and processing rules. - * - * Create a request for the method "backendServices.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 Project ID for this request. - * @param backendService Name of the BackendService resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.BackendService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 BackendService resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to patch. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to patch. */ - public Patch setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the edge security policy for the specified backend service. - * - * Create a request for the method "backendServices.setEdgeSecurityPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to which the edge security policy - should be set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @return the request - */ - public SetEdgeSecurityPolicy setEdgeSecurityPolicy(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.SecurityPolicyReference content) throws java.io.IOException { - SetEdgeSecurityPolicy result = new SetEdgeSecurityPolicy(project, backendService, content); - initialize(result); - return result; - } - - public class SetEdgeSecurityPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the edge security policy for the specified backend service. - * - * Create a request for the method "backendServices.setEdgeSecurityPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetEdgeSecurityPolicy#execute()} method to invoke the remote - * operation.

{@link SetEdgeSecurityPolicy#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param backendService Name of the BackendService resource to which the edge security policy - should be set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @since 1.13 - */ - protected SetEdgeSecurityPolicy(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.SecurityPolicyReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetEdgeSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetEdgeSecurityPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetEdgeSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetEdgeSecurityPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetEdgeSecurityPolicy setAlt(java.lang.String alt) { - return (SetEdgeSecurityPolicy) super.setAlt(alt); - } - - @Override - public SetEdgeSecurityPolicy setCallback(java.lang.String callback) { - return (SetEdgeSecurityPolicy) super.setCallback(callback); - } - - @Override - public SetEdgeSecurityPolicy setFields(java.lang.String fields) { - return (SetEdgeSecurityPolicy) super.setFields(fields); - } - - @Override - public SetEdgeSecurityPolicy setKey(java.lang.String key) { - return (SetEdgeSecurityPolicy) super.setKey(key); - } - - @Override - public SetEdgeSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetEdgeSecurityPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetEdgeSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetEdgeSecurityPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetEdgeSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetEdgeSecurityPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetEdgeSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetEdgeSecurityPolicy) super.setUploadType(uploadType); - } - - @Override - public SetEdgeSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetEdgeSecurityPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetEdgeSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetEdgeSecurityPolicy) 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 SetEdgeSecurityPolicy 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 BackendService resource to which the edge security policy should be set. The - * name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to which the edge security policy should be set. The name - should conform to RFC1035. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * Name of the BackendService resource to which the edge security policy should be set. The - * name should conform to RFC1035. - */ - public SetEdgeSecurityPolicy setBackendService(java.lang.String backendService) { - this.backendService = backendService; - 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 SetEdgeSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetEdgeSecurityPolicy set(String parameterName, Object value) { - return (SetEdgeSecurityPolicy) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "backendServices.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/backendServices/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "backendServices.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

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

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

{@link - * Update#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 backendService Name of the BackendService resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String backendService, com.google.api.services.compute.preview.model.BackendService content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 BackendService resource to update. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to update. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to update. */ - public Update setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the CrossSiteNetworks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.CrossSiteNetworks.List request = compute.crossSiteNetworks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public CrossSiteNetworks crossSiteNetworks() { - return new CrossSiteNetworks(); - } - - /** - * The "crossSiteNetworks" collection of methods. - */ - public class CrossSiteNetworks { - - /** - * Deletes the specified cross-site network in the given scope. - * - * Create a request for the method "crossSiteNetworks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param crossSiteNetwork Name of the cross-site network to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { - Delete result = new Delete(project, crossSiteNetwork); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 CROSS_SITE_NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified cross-site network in the given scope. - * - * Create a request for the method "crossSiteNetworks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 crossSiteNetwork Name of the cross-site network to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String crossSiteNetwork) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), - "Parameter crossSiteNetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 cross-site network to delete. */ - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** Name of the cross-site network to delete. - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - /** Name of the cross-site network to delete. */ - public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), - "Parameter crossSiteNetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.crossSiteNetwork = crossSiteNetwork; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified cross-site network in the given scope. - * - * Create a request for the method "crossSiteNetworks.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 crossSiteNetwork Name of the cross-site network to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { - Get result = new Get(project, crossSiteNetwork); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 CROSS_SITE_NETWORK_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 cross-site network in the given scope. - * - * Create a request for the method "crossSiteNetworks.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 crossSiteNetwork Name of the cross-site network to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String crossSiteNetwork) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.CrossSiteNetwork.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), - "Parameter crossSiteNetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 cross-site network to return. */ - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** Name of the cross-site network to return. - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - /** Name of the cross-site network to return. */ - public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), - "Parameter crossSiteNetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a cross-site network in the specified project in the given scope using the parameters - * that are included in the request. - * - * Create a request for the method "crossSiteNetworks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.CrossSiteNetwork} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.CrossSiteNetwork content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a cross-site network in the specified project in the given scope using the parameters - * that are included in the request. - * - * Create a request for the method "crossSiteNetworks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.CrossSiteNetwork} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.CrossSiteNetwork content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** [Input Only] Validate the new configuration, but don't create it. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /**[ Input Only] Validate the new configuration, but don't create it. - [ - - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** [Input Only] Validate the new configuration, but don't create it. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the cross-site networks for a project in the given scope. - * - * Create a request for the method "crossSiteNetworks.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the cross-site networks for a project in the given scope. - * - * Create a request for the method "crossSiteNetworks.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.CrossSiteNetworkList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified cross-site network with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "crossSiteNetworks.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 Project ID for this request. - * @param crossSiteNetwork Name of the cross-site network to update. - * @param content the {@link com.google.api.services.compute.preview.model.CrossSiteNetwork} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.preview.model.CrossSiteNetwork content) throws java.io.IOException { - Patch result = new Patch(project, crossSiteNetwork, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 CROSS_SITE_NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified cross-site network with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "crossSiteNetworks.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 Project ID for this request. - * @param crossSiteNetwork Name of the cross-site network to update. - * @param content the {@link com.google.api.services.compute.preview.model.CrossSiteNetwork} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.preview.model.CrossSiteNetwork content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), - "Parameter crossSiteNetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 cross-site network to update. */ - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** Name of the cross-site network to update. - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - /** Name of the cross-site network to update. */ - public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CROSS_SITE_NETWORK_PATTERN.matcher(crossSiteNetwork).matches(), - "Parameter crossSiteNetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.crossSiteNetwork = crossSiteNetwork; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** [Input Only] Validate the new configuration, but don't update it. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /**[ Input Only] Validate the new configuration, but don't update it. - [ - - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** [Input Only] Validate the new configuration, but don't update it. */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the DiskTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.DiskTypes.List request = compute.diskTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public DiskTypes diskTypes() { - return new DiskTypes(); - } - - /** - * The "diskTypes" collection of methods. - */ - public class DiskTypes { - - /** - * Retrieves an aggregated list of disk types. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "diskTypes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/diskTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of disk types. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "diskTypes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.DiskTypeAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Returns the specified disk type. - * - * Create a request for the method "diskTypes.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 zone The name of the zone for this request. - * @param diskType Name of the disk type to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String diskType) throws java.io.IOException { - Get result = new Get(project, zone, diskType); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/diskTypes/{diskType}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_TYPE_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 disk type. - * - * Create a request for the method "diskTypes.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 zone The name of the zone for this request. - * @param diskType Name of the disk type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String diskType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.DiskType.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])?"); - } - this.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 disk type to return. */ - @com.google.api.client.util.Key - private java.lang.String diskType; - - /** Name of the disk type to return. - */ - public java.lang.String getDiskType() { - return diskType; - } - - /** Name of the disk type to return. */ - public Get setDiskType(java.lang.String diskType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.diskType = diskType; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of disk types available to the specified project. - * - * Create a request for the method "diskTypes.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}/diskTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 disk types available to the specified project. - * - * Create a request for the method "diskTypes.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.preview.model.DiskTypeList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Disks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Disks.List request = compute.disks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Disks disks() { - return new Disks(); - } - - /** - * The "disks" collection of methods. - */ - public class Disks { - - /** - * Adds existing resource policies to a disk. You can only add one policy which will be applied to - * this disk for scheduling snapshot creation. - * - * Create a request for the method "disks.addResourcePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.DisksAddResourcePoliciesRequest} - * @return the request - */ - public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksAddResourcePoliciesRequest content) throws java.io.IOException { - AddResourcePolicies result = new AddResourcePolicies(project, zone, disk, content); - initialize(result); - return result; - } - - public class AddResourcePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds existing resource policies to a disk. You can only add one policy which will be applied to - * this disk for scheduling snapshot creation. - * - * Create a request for the method "disks.addResourcePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote - * operation.

{@link AddResourcePolicies#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. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.DisksAddResourcePoliciesRequest} - * @since 1.13 - */ - protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksAddResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); - } - - @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); - } - - @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); - } - - @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); - } - - @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); - } - - @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); - } - - @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); - } - - @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) 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 AddResourcePolicies 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 AddResourcePolicies 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; - } - - /** The disk name for this request. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The disk name for this request. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The disk name for this request. */ - public AddResourcePolicies setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 AddResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of persistent disks. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "disks.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/disks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of persistent disks. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "disks.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.DiskAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Bulk create a set of disks. - * - * Create a request for the method "disks.bulkInsert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertDiskResource} - * @return the request - */ - public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.BulkInsertDiskResource content) throws java.io.IOException { - BulkInsert result = new BulkInsert(project, zone, content); - initialize(result); - return result; - } - - public class BulkInsert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkInsert"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Bulk create a set of disks. - * - * Create a request for the method "disks.bulkInsert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

- * {@link - * BulkInsert#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. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertDiskResource} - * @since 1.13 - */ - protected BulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.BulkInsertDiskResource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); - } - - @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); - } - - @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); - } - - @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); - } - - @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); - } - - @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); - } - - @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); - } - - @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); - } - - @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); - } - - @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); - } - - @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) 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 BulkInsert 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 BulkInsert 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; - } - - /** - * 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 BulkInsert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); - } - } - /** - * Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "disks.bulkSetLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkSetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkZoneSetLabelsRequest} - * @return the request - */ - public BulkSetLabels bulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.BulkZoneSetLabelsRequest content) throws java.io.IOException { - BulkSetLabels result = new BulkSetLabels(project, zone, content); - initialize(result); - return result; - } - - public class BulkSetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/bulkSetLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "disks.bulkSetLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link BulkSetLabels#execute()} method to invoke the remote operation.

- * {@link BulkSetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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. - * @param content the {@link com.google.api.services.compute.preview.model.BulkZoneSetLabelsRequest} - * @since 1.13 - */ - protected BulkSetLabels(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.BulkZoneSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public BulkSetLabels set$Xgafv(java.lang.String $Xgafv) { - return (BulkSetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public BulkSetLabels setAccessToken(java.lang.String accessToken) { - return (BulkSetLabels) super.setAccessToken(accessToken); - } - - @Override - public BulkSetLabels setAlt(java.lang.String alt) { - return (BulkSetLabels) super.setAlt(alt); - } - - @Override - public BulkSetLabels setCallback(java.lang.String callback) { - return (BulkSetLabels) super.setCallback(callback); - } - - @Override - public BulkSetLabels setFields(java.lang.String fields) { - return (BulkSetLabels) super.setFields(fields); - } - - @Override - public BulkSetLabels setKey(java.lang.String key) { - return (BulkSetLabels) super.setKey(key); - } - - @Override - public BulkSetLabels setOauthToken(java.lang.String oauthToken) { - return (BulkSetLabels) super.setOauthToken(oauthToken); - } - - @Override - public BulkSetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkSetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public BulkSetLabels setQuotaUser(java.lang.String quotaUser) { - return (BulkSetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public BulkSetLabels setUploadType(java.lang.String uploadType) { - return (BulkSetLabels) super.setUploadType(uploadType); - } - - @Override - public BulkSetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkSetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public BulkSetLabels setUserIp(java.lang.String userIp) { - return (BulkSetLabels) 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 BulkSetLabels 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 BulkSetLabels 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; - } - - /** - * 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 BulkSetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public BulkSetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public BulkSetLabels set(String parameterName, Object value) { - return (BulkSetLabels) super.set(parameterName, value); - } - } - /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using - * snapshots.insert instead, as that method supports more features, such as creating snapshots in a - * project different from the source disk project. - * - * Create a request for the method "disks.createSnapshot". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk Name of the persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @return the request - */ - public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.Snapshot content) throws java.io.IOException { - CreateSnapshot result = new CreateSnapshot(project, zone, disk, content); - initialize(result); - return result; - } - - public class CreateSnapshot extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/createSnapshot"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider - * using snapshots.insert instead, as that method supports more features, such as creating - * snapshots in a project different from the source disk project. - * - * Create a request for the method "disks.createSnapshot". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. - *

{@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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. - * @param disk Name of the persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @since 1.13 - */ - protected CreateSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.Snapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); - } - - @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); - } - - @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); - } - - @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); - } - - @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); - } - - @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); - } - - @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); - } - - @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); - } - - @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); - } - - @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); - } - - @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) 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 CreateSnapshot 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 CreateSnapshot 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 persistent disk to snapshot. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the persistent disk to snapshot. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the persistent disk to snapshot. */ - public CreateSnapshot setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - */ - @com.google.api.client.util.Key - private java.lang.Boolean guestFlush; - - /**[ Input Only] Whether to attempt an application consistent snapshot by informing the OS to prepare - [ for the snapshot process. - [ - - */ - public java.lang.Boolean getGuestFlush() { - return guestFlush; - } - - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - */ - public CreateSnapshot setGuestFlush(java.lang.Boolean guestFlush) { - this.guestFlush = guestFlush; - 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 CreateSnapshot setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public CreateSnapshot set(String parameterName, Object value) { - return (CreateSnapshot) super.set(parameterName, value); - } - } - /** - * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is - * irreversible. However, deleting a disk does not delete any snapshots previously made from the - * disk. You must separatelydelete snapshots. - * - * Create a request for the method "disks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk Name of the persistent disk to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { - Delete result = new Delete(project, zone, disk); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("\\S{1,66}"); - - /** - * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is - * irreversible. However, deleting a disk does not delete any snapshots previously made from the - * disk. You must separatelydelete snapshots. - * - * Create a request for the method "disks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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. - * @param disk Name of the persistent disk to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String disk) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 persistent disk to delete. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the persistent disk to delete. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the persistent disk to delete. */ - public Delete setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); - } - this.disk = disk; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified persistent disk. - * - * Create a request for the method "disks.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 zone The name of the zone for this request. - * @param disk Name of the persistent disk to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { - Get result = new Get(project, zone, disk); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_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 persistent disk. - * - * Create a request for the method "disks.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 zone The name of the zone for this request. - * @param disk Name of the persistent disk to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String disk) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Disk.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 persistent disk to return. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the persistent disk to return. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the persistent disk to return. */ - public Get setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "disks.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "disks.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 GetIamPolicy 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a persistent disk in the specified project using the data in the request. You can create - * a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data - * disk by omitting all properties. You can also create a disk that is larger than the default size - * by specifying the sizeGb property. - * - * Create a request for the method "disks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Disk} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Disk content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a persistent disk in the specified project using the data in the request. You can - * create a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 - * GB data disk by omitting all properties. You can also create a disk that is larger than the - * default size by specifying the sizeGb property. - * - * Create a request for the method "disks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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. - * @param content the {@link com.google.api.services.compute.preview.model.Disk} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Disk content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Source image to restore onto a disk. This field is optional. */ - @com.google.api.client.util.Key - private java.lang.String sourceImage; - - /** Source image to restore onto a disk. This field is optional. - */ - public java.lang.String getSourceImage() { - return sourceImage; - } - - /** Source image to restore onto a disk. This field is optional. */ - public Insert setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of persistent disks contained within the specified zone. - * - * Create a request for the method "disks.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}/disks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 persistent disks contained within the specified zone. - * - * Create a request for the method "disks.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.preview.model.DiskList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Removes resource policies from a disk. - * - * Create a request for the method "disks.removeResourcePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.DisksRemoveResourcePoliciesRequest} - * @return the request - */ - public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksRemoveResourcePoliciesRequest content) throws java.io.IOException { - RemoveResourcePolicies result = new RemoveResourcePolicies(project, zone, disk, content); - initialize(result); - return result; - } - - public class RemoveResourcePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes resource policies from a disk. - * - * Create a request for the method "disks.removeResourcePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote - * operation.

{@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.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. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.DisksRemoveResourcePoliciesRequest} - * @since 1.13 - */ - protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksRemoveResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); - } - - @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); - } - - @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); - } - - @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); - } - - @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); - } - - @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); - } - - @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); - } - - @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) 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 RemoveResourcePolicies 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 RemoveResourcePolicies 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; - } - - /** The disk name for this request. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The disk name for this request. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The disk name for this request. */ - public RemoveResourcePolicies setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); - } - } - /** - * Resizes the specified persistent disk. You can only increase the size of the disk. - * - * Create a request for the method "disks.resize". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.preview.model.DisksResizeRequest} - * @return the request - */ - public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksResizeRequest content) throws java.io.IOException { - Resize result = new Resize(project, zone, disk, content); - initialize(result); - return result; - } - - public class Resize extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/resize"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Resizes the specified persistent disk. You can only increase the size of the disk. - * - * Create a request for the method "disks.resize". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link - * Resize#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. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.preview.model.DisksResizeRequest} - * @since 1.13 - */ - protected Resize(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksResizeRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); - } - - @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); - } - - @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); - } - - @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); - } - - @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); - } - - @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); - } - - @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); - } - - @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); - } - - @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); - } - - @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) 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 Resize 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 Resize 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; - } - - /** The name of the persistent disk. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The name of the persistent disk. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The name of the persistent disk. */ - public Resize setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 Resize setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "disks.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "disks.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

{@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service - * s.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. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.preview.model.DisksStartAsyncReplicationRequest} - * @since 1.13 - */ - protected StartAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DisksStartAsyncReplicationRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StartAsyncReplication) super.set$Xgafv($Xgafv); - } - - @Override - public StartAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StartAsyncReplication) super.setAccessToken(accessToken); - } - - @Override - public StartAsyncReplication setAlt(java.lang.String alt) { - return (StartAsyncReplication) super.setAlt(alt); - } - - @Override - public StartAsyncReplication setCallback(java.lang.String callback) { - return (StartAsyncReplication) super.setCallback(callback); - } - - @Override - public StartAsyncReplication setFields(java.lang.String fields) { - return (StartAsyncReplication) super.setFields(fields); - } - - @Override - public StartAsyncReplication setKey(java.lang.String key) { - return (StartAsyncReplication) super.setKey(key); - } - - @Override - public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StartAsyncReplication) super.setOauthToken(oauthToken); - } - - @Override - public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); - } - - @Override - public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StartAsyncReplication) super.setQuotaUser(quotaUser); - } - - @Override - public StartAsyncReplication setUploadType(java.lang.String uploadType) { - return (StartAsyncReplication) super.setUploadType(uploadType); - } - - @Override - public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StartAsyncReplication setUserIp(java.lang.String userIp) { - return (StartAsyncReplication) 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 StartAsyncReplication 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 StartAsyncReplication 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; - } - - /** The name of the persistent disk. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The name of the persistent disk. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The name of the persistent disk. */ - public StartAsyncReplication setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 StartAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StartAsyncReplication set(String parameterName, Object value) { - return (StartAsyncReplication) super.set(parameterName, value); - } - } - /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. - * - * Create a request for the method "disks.stopAsyncReplication". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk The name of the persistent disk. - * @return the request - */ - public StopAsyncReplication stopAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException { - StopAsyncReplication result = new StopAsyncReplication(project, zone, disk); - initialize(result); - return result; - } - - public class StopAsyncReplication extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. - * - * Create a request for the method "disks.stopAsyncReplication". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote - * operation.

{@link StopAsyncReplication#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. - * @param disk The name of the persistent disk. - * @since 1.13 - */ - protected StopAsyncReplication(java.lang.String project, java.lang.String zone, java.lang.String disk) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopAsyncReplication) super.set$Xgafv($Xgafv); - } - - @Override - public StopAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopAsyncReplication) super.setAccessToken(accessToken); - } - - @Override - public StopAsyncReplication setAlt(java.lang.String alt) { - return (StopAsyncReplication) super.setAlt(alt); - } - - @Override - public StopAsyncReplication setCallback(java.lang.String callback) { - return (StopAsyncReplication) super.setCallback(callback); - } - - @Override - public StopAsyncReplication setFields(java.lang.String fields) { - return (StopAsyncReplication) super.setFields(fields); - } - - @Override - public StopAsyncReplication setKey(java.lang.String key) { - return (StopAsyncReplication) super.setKey(key); - } - - @Override - public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopAsyncReplication) super.setOauthToken(oauthToken); - } - - @Override - public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); - } - - @Override - public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopAsyncReplication) super.setQuotaUser(quotaUser); - } - - @Override - public StopAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopAsyncReplication) super.setUploadType(uploadType); - } - - @Override - public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StopAsyncReplication setUserIp(java.lang.String userIp) { - return (StopAsyncReplication) 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 StopAsyncReplication 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 StopAsyncReplication 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; - } - - /** The name of the persistent disk. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The name of the persistent disk. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The name of the persistent disk. */ - public StopAsyncReplication setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 StopAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StopAsyncReplication set(String parameterName, Object value) { - return (StopAsyncReplication) super.set(parameterName, value); - } - } - /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. - * - * Create a request for the method "disks.stopGroupAsyncReplication". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. This must be the zone of the primary - or secondary disks in - * the consistency group. - * @param content the {@link com.google.api.services.compute.preview.model.DisksStopGroupAsyncReplicationResource} - * @return the request - */ - public StopGroupAsyncReplication stopGroupAsyncReplication(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.DisksStopGroupAsyncReplicationResource content) throws java.io.IOException { - StopGroupAsyncReplication result = new StopGroupAsyncReplication(project, zone, content); - initialize(result); - return result; - } - - public class StopGroupAsyncReplication extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. - * - * Create a request for the method "disks.stopGroupAsyncReplication". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote - * operation.

{@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser - * vices.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. This must be the zone of the primary - or secondary disks in - * the consistency group. - * @param content the {@link com.google.api.services.compute.preview.model.DisksStopGroupAsyncReplicationResource} - * @since 1.13 - */ - protected StopGroupAsyncReplication(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.DisksStopGroupAsyncReplicationResource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); - } - - @Override - public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopGroupAsyncReplication) super.setAccessToken(accessToken); - } - - @Override - public StopGroupAsyncReplication setAlt(java.lang.String alt) { - return (StopGroupAsyncReplication) super.setAlt(alt); - } - - @Override - public StopGroupAsyncReplication setCallback(java.lang.String callback) { - return (StopGroupAsyncReplication) super.setCallback(callback); - } - - @Override - public StopGroupAsyncReplication setFields(java.lang.String fields) { - return (StopGroupAsyncReplication) super.setFields(fields); - } - - @Override - public StopGroupAsyncReplication setKey(java.lang.String key) { - return (StopGroupAsyncReplication) super.setKey(key); - } - - @Override - public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); - } - - @Override - public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); - } - - @Override - public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); - } - - @Override - public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopGroupAsyncReplication) super.setUploadType(uploadType); - } - - @Override - public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { - return (StopGroupAsyncReplication) 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 StopGroupAsyncReplication 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. This must be the zone of the primary or secondary - * disks in the consistency group. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. This must be the zone of the primary or secondary disks in - the consistency group. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone for this request. This must be the zone of the primary or secondary - * disks in the consistency group. - */ - public StopGroupAsyncReplication 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; - } - - /** - * 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 StopGroupAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StopGroupAsyncReplication set(String parameterName, Object value) { - return (StopGroupAsyncReplication) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "disks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "disks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

{@link - * Update#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. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Disk} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.Disk content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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; - } - - /** The disk name for this request. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The disk name for this request. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The disk name for this request. */ - public Update setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - - @com.google.api.client.util.Key - private java.util.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Update setPaths(java.util.List paths) { - this.paths = paths; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - /** - * Rotates the customer-managed encryption key to the latest version for the specified persistent - * disk. - * - * Create a request for the method "disks.updateKmsKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param disk Name of the Disk resource, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.DiskUpdateKmsKeyRequest} - * @return the request - */ - public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DiskUpdateKmsKeyRequest content) throws java.io.IOException { - UpdateKmsKey result = new UpdateKmsKey(project, zone, disk, content); - initialize(result); - return result; - } - - public class UpdateKmsKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Rotates the customer-managed encryption key to the latest version for the specified persistent - * disk. - * - * Create a request for the method "disks.updateKmsKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation.

- * {@link - * UpdateKmsKey#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. - * @param disk Name of the Disk resource, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.DiskUpdateKmsKeyRequest} - * @since 1.13 - */ - protected UpdateKmsKey(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.preview.model.DiskUpdateKmsKeyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { - return (UpdateKmsKey) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateKmsKey setAccessToken(java.lang.String accessToken) { - return (UpdateKmsKey) super.setAccessToken(accessToken); - } - - @Override - public UpdateKmsKey setAlt(java.lang.String alt) { - return (UpdateKmsKey) super.setAlt(alt); - } - - @Override - public UpdateKmsKey setCallback(java.lang.String callback) { - return (UpdateKmsKey) super.setCallback(callback); - } - - @Override - public UpdateKmsKey setFields(java.lang.String fields) { - return (UpdateKmsKey) super.setFields(fields); - } - - @Override - public UpdateKmsKey setKey(java.lang.String key) { - return (UpdateKmsKey) super.setKey(key); - } - - @Override - public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { - return (UpdateKmsKey) super.setOauthToken(oauthToken); - } - - @Override - public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { - return (UpdateKmsKey) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateKmsKey setUploadType(java.lang.String uploadType) { - return (UpdateKmsKey) super.setUploadType(uploadType); - } - - @Override - public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateKmsKey setUserIp(java.lang.String userIp) { - return (UpdateKmsKey) 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 UpdateKmsKey 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 UpdateKmsKey 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 Disk resource, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the Disk resource, should conform to RFC1035. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the Disk resource, should conform to RFC1035. */ - public UpdateKmsKey setDisk(java.lang.String disk) { - this.disk = disk; - 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 UpdateKmsKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateKmsKey set(String parameterName, Object value) { - return (UpdateKmsKey) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ExternalVpnGateways collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ExternalVpnGateways.List request = compute.externalVpnGateways().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ExternalVpnGateways externalVpnGateways() { - return new ExternalVpnGateways(); - } - - /** - * The "externalVpnGateways" collection of methods. - */ - public class ExternalVpnGateways { - - /** - * Deletes the specified externalVpnGateway. - * - * Create a request for the method "externalVpnGateways.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param externalVpnGateway Name of the externalVpnGateways to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String externalVpnGateway) throws java.io.IOException { - Delete result = new Delete(project, externalVpnGateway); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/externalVpnGateways/{externalVpnGateway}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 EXTERNAL_VPN_GATEWAY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Deletes the specified externalVpnGateway. - * - * Create a request for the method "externalVpnGateways.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 externalVpnGateway Name of the externalVpnGateways to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String externalVpnGateway) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.externalVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(externalVpnGateway, "Required parameter externalVpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), - "Parameter externalVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 externalVpnGateways to delete. */ - @com.google.api.client.util.Key - private java.lang.String externalVpnGateway; - - /** Name of the externalVpnGateways to delete. - */ - public java.lang.String getExternalVpnGateway() { - return externalVpnGateway; - } - - /** Name of the externalVpnGateways to delete. */ - public Delete setExternalVpnGateway(java.lang.String externalVpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), - "Parameter externalVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.externalVpnGateway = externalVpnGateway; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a - * list() request. - * - * Create a request for the method "externalVpnGateways.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 externalVpnGateway Name of the externalVpnGateway to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String externalVpnGateway) throws java.io.IOException { - Get result = new Get(project, externalVpnGateway); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/externalVpnGateways/{externalVpnGateway}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 EXTERNAL_VPN_GATEWAY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making - * a list() request. - * - * Create a request for the method "externalVpnGateways.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 externalVpnGateway Name of the externalVpnGateway to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String externalVpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ExternalVpnGateway.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.externalVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(externalVpnGateway, "Required parameter externalVpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), - "Parameter externalVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 externalVpnGateway to return. */ - @com.google.api.client.util.Key - private java.lang.String externalVpnGateway; - - /** Name of the externalVpnGateway to return. - */ - public java.lang.String getExternalVpnGateway() { - return externalVpnGateway; - } - - /** Name of the externalVpnGateway to return. */ - public Get setExternalVpnGateway(java.lang.String externalVpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTERNAL_VPN_GATEWAY_PATTERN.matcher(externalVpnGateway).matches(), - "Parameter externalVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.externalVpnGateway = externalVpnGateway; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a ExternalVpnGateway in the specified project using the data included in the request. - * - * Create a request for the method "externalVpnGateways.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ExternalVpnGateway} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.ExternalVpnGateway content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/externalVpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a ExternalVpnGateway in the specified project using the data included in the request. - * - * Create a request for the method "externalVpnGateways.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.ExternalVpnGateway} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.ExternalVpnGateway content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of ExternalVpnGateway available to the specified project. - * - * Create a request for the method "externalVpnGateways.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/externalVpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of ExternalVpnGateway available to the specified project. - * - * Create a request for the method "externalVpnGateways.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ExternalVpnGatewayList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "externalVpnGateways.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/externalVpnGateways/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "externalVpnGateways.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the FirewallPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.FirewallPolicies.List request = compute.firewallPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FirewallPolicies firewallPolicies() { - return new FirewallPolicies(); - } - - /** - * The "firewallPolicies" collection of methods. - */ - public class FirewallPolicies { - - /** - * Inserts an association for the specified firewall policy. - * - * Create a request for the method "firewallPolicies.addAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyAssociation} - * @return the request - */ - public AddAssociation addAssociation(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(firewallPolicy, content); - initialize(result); - return result; - } - - public class AddAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/addAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Inserts an association for the specified firewall policy. - * - * Create a request for the method "firewallPolicies.addAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyAssociation} - * @since 1.13 - */ - protected AddAssociation(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); - } - - @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); - } - - @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); - } - - @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); - } - - @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); - } - - @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); - } - - @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); - } - - @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); - } - - /** 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 AddAssociation 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; - - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. - */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; - 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 AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); - } - } - /** - * Inserts a rule into a firewall policy. - * - * Create a request for the method "firewallPolicies.addRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @return the request - */ - public AddRule addRule(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(firewallPolicy, content); - initialize(result); - return result; - } - - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/addRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Inserts a rule into a firewall policy. - * - * Create a request for the method "firewallPolicies.addRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected AddRule(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); - } - - @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); - } - - @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); - } - - @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); - } - - @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); - } - - @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); - } - - @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); - } - - @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); - } - - /** 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 AddRule 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - 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 AddRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } - /** - * Copies rules to the specified firewall policy. - * - * Create a request for the method "firewallPolicies.cloneRules". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public CloneRules cloneRules(java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(firewallPolicy); - initialize(result); - return result; - } - - public class CloneRules extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/cloneRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Copies rules to the specified firewall policy. - * - * Create a request for the method "firewallPolicies.cloneRules". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected CloneRules(java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); - } - - @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); - } - - @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); - } - - @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); - } - - @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); - } - - @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); - } - - @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); - } - - @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); - } - - @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); - } - - @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); - } - - @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); - } - - /** 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 CloneRules 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - 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 CloneRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** The firewall policy from which to copy rules. */ - @com.google.api.client.util.Key - private java.lang.String sourceFirewallPolicy; - - /** The firewall policy from which to copy rules. - */ - public java.lang.String getSourceFirewallPolicy() { - return sourceFirewallPolicy; - } - - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; - return this; - } - - @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Create a request for the method "firewallPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to delete. - * @return the request - */ - public Delete delete(java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(firewallPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Deletes the specified policy. - * - * Create a request for the method "firewallPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String firewallPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } - - /** Name of the firewall policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to delete. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to delete. */ - public Delete 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified firewall policy. - * - * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to get. - * @return the request - */ - public Get get(java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(firewallPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Returns the specified firewall policy. - * - * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to get. - * @since 1.13 - */ - protected Get(java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicy.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** Name of the firewall policy to get. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to get. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to get. */ - public Get 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets an association with the specified name. - * - * Create a request for the method "firewallPolicies.getAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @return the request - */ - public GetAssociation getAssociation(java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(firewallPolicy); - initialize(result); - return result; - } - - public class GetAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/getAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Gets an association with the specified name. - * - * Create a request for the method "firewallPolicies.getAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetAssociation(java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyAssociation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); - } - - @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); - } - - @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); - } - - @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); - } - - @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); - } - - @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); - } - - @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); - } - - @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); - } - - /** Name of the firewall policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried rule belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried rule belongs. */ - public GetAssociation 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** The name of the association to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the association to get from the firewall policy. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "firewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "firewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Gets a rule of the specified priority. - * - * Create a request for the method "firewallPolicies.getRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @return the request - */ - public GetRule getRule(java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(firewallPolicy); - initialize(result); - return result; - } - - public class GetRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/getRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Gets a rule of the specified priority. - * - * Create a request for the method "firewallPolicies.getRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetRule(java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyRule.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); - } - - @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); - } - - @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); - } - - @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); - } - - @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); - } - - @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); - } - - /** Name of the firewall policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried rule belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** The priority of the rule to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "firewallPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @return the request - */ - public Insert insert(com.google.api.services.compute.preview.model.FirewallPolicy content) throws java.io.IOException { - Insert result = new Insert(content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "firewallPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @since 1.13 - */ - protected Insert(com.google.api.services.compute.preview.model.FirewallPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder - or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public Insert setParentId(java.lang.String parentId) { - this.parentId = parentId; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all the policies that have been configured for the specified folder or organization. - * - * Create a request for the method "firewallPolicies.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. - * - * @return the request - */ - public List list() throws java.io.IOException { - List result = new List(); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Lists all the policies that have been configured for the specified folder or organization. - * - * Create a request for the method "firewallPolicies.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.

- * - * @since 1.13 - */ - protected List() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyList.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** - * 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; - } - - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder - or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists associations of a specified target, i.e., organization or folder. - * - * Create a request for the method "firewallPolicies.listAssociations". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. - * - * @return the request - */ - public ListAssociations listAssociations() throws java.io.IOException { - ListAssociations result = new ListAssociations(); - initialize(result); - return result; - } - - public class ListAssociations extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/listAssociations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Lists associations of a specified target, i.e., organization or folder. - * - * Create a request for the method "firewallPolicies.listAssociations". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. - *

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

- * - * @since 1.13 - */ - protected ListAssociations() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPoliciesListAssociationsResponse.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListAssociations set$Xgafv(java.lang.String $Xgafv) { - return (ListAssociations) super.set$Xgafv($Xgafv); - } - - @Override - public ListAssociations setAccessToken(java.lang.String accessToken) { - return (ListAssociations) super.setAccessToken(accessToken); - } - - @Override - public ListAssociations setAlt(java.lang.String alt) { - return (ListAssociations) super.setAlt(alt); - } - - @Override - public ListAssociations setCallback(java.lang.String callback) { - return (ListAssociations) super.setCallback(callback); - } - - @Override - public ListAssociations setFields(java.lang.String fields) { - return (ListAssociations) super.setFields(fields); - } - - @Override - public ListAssociations setKey(java.lang.String key) { - return (ListAssociations) super.setKey(key); - } - - @Override - public ListAssociations setOauthToken(java.lang.String oauthToken) { - return (ListAssociations) super.setOauthToken(oauthToken); - } - - @Override - public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAssociations) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListAssociations setQuotaUser(java.lang.String quotaUser) { - return (ListAssociations) super.setQuotaUser(quotaUser); - } - - @Override - public ListAssociations setUploadType(java.lang.String uploadType) { - return (ListAssociations) super.setUploadType(uploadType); - } - - @Override - public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAssociations) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListAssociations setUserIp(java.lang.String userIp) { - return (ListAssociations) super.setUserIp(userIp); - } - - /** - * If set to "true", the response will contain a list of all associations for the containing - * folders and the containing organization of the target. The parameter has no effect if the - * target is an organization. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeInheritedPolicies; - - /** If set to "true", the response will contain a list of all associations for the containing folders - and the containing organization of the target. The parameter has no effect if the target is an - organization. - */ - public java.lang.Boolean getIncludeInheritedPolicies() { - return includeInheritedPolicies; - } - - /** - * If set to "true", the response will contain a list of all associations for the containing - * folders and the containing organization of the target. The parameter has no effect if the - * target is an organization. - */ - public ListAssociations setIncludeInheritedPolicies(java.lang.Boolean includeInheritedPolicies) { - this.includeInheritedPolicies = includeInheritedPolicies; - return this; - } - - /** - * The target resource to list associations. It is an organization, or a folder. - */ - @com.google.api.client.util.Key - private java.lang.String targetResource; - - /** The target resource to list associations. It is an organization, or a folder. - */ - public java.lang.String getTargetResource() { - return targetResource; - } - - /** - * The target resource to list associations. It is an organization, or a folder. - */ - public ListAssociations setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; - return this; - } - - @Override - public ListAssociations set(String parameterName, Object value) { - return (ListAssociations) super.set(parameterName, value); - } - } - /** - * Moves the specified firewall policy. - * - * Create a request for the method "firewallPolicies.move". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public Move move(java.lang.String firewallPolicy) throws java.io.IOException { - Move result = new Move(firewallPolicy); - initialize(result); - return result; - } - - public class Move extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/move"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Moves the specified firewall policy. - * - * Create a request for the method "firewallPolicies.move". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected Move(java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); - } - - @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); - } - - @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); - } - - @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); - } - - @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); - } - - @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); - } - - @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); - } - - @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); - } - - @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); - } - - @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); - } - - @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); - } - - /** 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 Move 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** - * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the - * parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent - is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** - * The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the - * parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public Move setParentId(java.lang.String parentId) { - this.parentId = parentId; - 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 Move setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @return the request - */ - public Patch patch(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicy content) throws java.io.IOException { - Patch result = new Patch(firewallPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "firewallPolicies.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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Patches a rule of the specified priority. - * - * Create a request for the method "firewallPolicies.patchRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @return the request - */ - public PatchRule patchRule(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(firewallPolicy, content); - initialize(result); - return result; - } - - public class PatchRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/patchRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Patches a rule of the specified priority. - * - * Create a request for the method "firewallPolicies.patchRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected PatchRule(java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); - } - - @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); - } - - @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); - } - - @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); - } - - @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); - } - - @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); - } - - @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); - } - - /** 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 PatchRule 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 PatchRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); - } - } - /** - * Removes an association for the specified firewall policy. - * - * Create a request for the method "firewallPolicies.removeAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public RemoveAssociation removeAssociation(java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(firewallPolicy); - initialize(result); - return result; - } - - public class RemoveAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/removeAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Removes an association for the specified firewall policy. - * - * Create a request for the method "firewallPolicies.removeAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected RemoveAssociation(java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); - } - - @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); - } - - @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); - } - - @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); - } - - @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); - } - - @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); - } - - @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); - } - - @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); - } - - /** 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 RemoveAssociation 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** Name for the attachment that will be removed. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Name for the attachment that will be removed. - */ - public java.lang.String getName() { - return name; - } - - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; - 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 RemoveAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); - } - } - /** - * Deletes a rule of the specified priority. - * - * Create a request for the method "firewallPolicies.removeRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. - * - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public RemoveRule removeRule(java.lang.String firewallPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(firewallPolicy); - initialize(result); - return result; - } - - public class RemoveRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{firewallPolicy}/removeRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Deletes a rule of the specified priority. - * - * Create a request for the method "firewallPolicies.removeRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

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

- * - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected RemoveRule(java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); - } - - @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); - } - - @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); - } - - @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); - } - - @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); - } - - @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); - } - - @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); - } - - @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); - } - - /** 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 RemoveRule 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 " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** The priority of the rule to remove from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the firewall policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 RemoveRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "firewallPolicies.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalOrganizationSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.compute.preview.model.GlobalOrganizationSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "locations/global/firewallPolicies/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("(firewallPolicies/)?[0-9]{0,20}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "firewallPolicies.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "(firewallPolicies/)?[0-9]{0,20}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Firewalls collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Firewalls.List request = compute.firewalls().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Firewalls firewalls() { - return new Firewalls(); - } - - /** - * The "firewalls" collection of methods. - */ - public class Firewalls { - - /** - * Deletes the specified firewall. - * - * Create a request for the method "firewalls.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewall Name of the firewall rule to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String firewall) throws java.io.IOException { - Delete result = new Delete(project, firewall); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewalls/{firewall}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified firewall. - * - * Create a request for the method "firewalls.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 firewall Name of the firewall rule to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String firewall) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 firewall rule to delete. */ - @com.google.api.client.util.Key - private java.lang.String firewall; - - /** Name of the firewall rule to delete. - */ - public java.lang.String getFirewall() { - return firewall; - } - - /** Name of the firewall rule to delete. */ - public Delete setFirewall(java.lang.String firewall) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewall = firewall; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified firewall. - * - * Create a request for the method "firewalls.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 firewall Name of the firewall rule to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String firewall) throws java.io.IOException { - Get result = new Get(project, firewall); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewalls/{firewall}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_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 firewall. - * - * Create a request for the method "firewalls.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 firewall Name of the firewall rule to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String firewall) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Firewall.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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 firewall rule to return. */ - @com.google.api.client.util.Key - private java.lang.String firewall; - - /** Name of the firewall rule to return. - */ - public java.lang.String getFirewall() { - return firewall; - } - - /** Name of the firewall rule to return. */ - public Get setFirewall(java.lang.String firewall) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewall = firewall; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a firewall rule in the specified project using the data included in the request. - * - * Create a request for the method "firewalls.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Firewall} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.Firewall content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewalls"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a firewall rule in the specified project using the data included in the request. - * - * Create a request for the method "firewalls.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Firewall} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Firewall content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of firewall rules available to the specified project. - * - * Create a request for the method "firewalls.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/firewalls"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of firewall rules available to the specified project. - * - * Create a request for the method "firewalls.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified firewall rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "firewalls.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 Project ID for this request. - * @param firewall Name of the firewall rule to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Firewall} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String firewall, com.google.api.services.compute.preview.model.Firewall content) throws java.io.IOException { - Patch result = new Patch(project, firewall, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewalls/{firewall}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified firewall rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "firewalls.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 Project ID for this request. - * @param firewall Name of the firewall rule to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Firewall} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String firewall, com.google.api.services.compute.preview.model.Firewall content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 firewall rule to patch. */ - @com.google.api.client.util.Key - private java.lang.String firewall; - - /** Name of the firewall rule to patch. - */ - public java.lang.String getFirewall() { - return firewall; - } - - /** Name of the firewall rule to patch. */ - public Patch setFirewall(java.lang.String firewall) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewall = firewall; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "firewalls.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewalls/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "firewalls.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

{@link - * Update#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 firewall Name of the firewall rule to update. - * @param content the {@link com.google.api.services.compute.preview.model.Firewall} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String firewall, com.google.api.services.compute.preview.model.Firewall content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.firewall = com.google.api.client.util.Preconditions.checkNotNull(firewall, "Required parameter firewall must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 firewall rule to update. */ - @com.google.api.client.util.Key - private java.lang.String firewall; - - /** Name of the firewall rule to update. - */ - public java.lang.String getFirewall() { - return firewall; - } - - /** Name of the firewall rule to update. */ - public Update setFirewall(java.lang.String firewall) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_PATTERN.matcher(firewall).matches(), - "Parameter firewall must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewall = firewall; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ForwardingRules collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ForwardingRules.List request = compute.forwardingRules().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ForwardingRules forwardingRules() { - return new ForwardingRules(); - } - - /** - * The "forwardingRules" collection of methods. - */ - public class ForwardingRules { - - /** - * Retrieves an aggregated list of forwarding rules. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "forwardingRules.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/forwardingRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of forwarding rules. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "forwardingRules.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ForwardingRuleAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified ForwardingRule resource. - * - * Create a request for the method "forwardingRules.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { - Delete result = new Delete(project, region, forwardingRule); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified ForwardingRule resource. - * - * Create a request for the method "forwardingRules.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 ForwardingRule resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to delete. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource to delete. */ - public Delete setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified ForwardingRule resource. - * - * Create a request for the method "forwardingRules.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 region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { - Get result = new Get(project, region, forwardingRule); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_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 ForwardingRule resource. - * - * Create a request for the method "forwardingRules.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 region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ForwardingRule.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 ForwardingRule resource to return. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to return. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource to return. */ - public Get setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String view; - - /** - - */ - public java.lang.String getView() { - return view; - } - - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a ForwardingRule resource in the specified project and region using the data included in - * the request. - * - * Create a request for the method "forwardingRules.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.ForwardingRule content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a ForwardingRule resource in the specified project and region using the data included - * in the request. - * - * Create a request for the method "forwardingRules.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.ForwardingRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. - * - * Create a request for the method "forwardingRules.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 region Name of the region scoping 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}/forwardingRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. - * - * Create a request for the method "forwardingRules.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 region Name of the region scoping 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.preview.model.ForwardingRuleList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you - * can only patch the network_tier field. - * - * Create a request for the method "forwardingRules.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.ForwardingRule content) throws java.io.IOException { - Patch result = new Patch(project, region, forwardingRule, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, - * you can only patch the network_tier field. - * - * Create a request for the method "forwardingRules.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.ForwardingRule content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 ForwardingRule resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to patch. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource to patch. */ - public Patch setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "forwardingRules.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "forwardingRules.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - /** - * Changes target URL for forwarding rule. The new target should be of the same type as the old - * target. - * - * Create a request for the method "forwardingRules.setTarget". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetReference} - * @return the request - */ - public SetTarget setTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.TargetReference content) throws java.io.IOException { - SetTarget result = new SetTarget(project, region, forwardingRule, content); - initialize(result); - return result; - } - - public class SetTarget extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes target URL for forwarding rule. The new target should be of the same type as the old - * target. - * - * Create a request for the method "forwardingRules.setTarget". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetReference} - * @since 1.13 - */ - protected SetTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.TargetReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetTarget set$Xgafv(java.lang.String $Xgafv) { - return (SetTarget) super.set$Xgafv($Xgafv); - } - - @Override - public SetTarget setAccessToken(java.lang.String accessToken) { - return (SetTarget) super.setAccessToken(accessToken); - } - - @Override - public SetTarget setAlt(java.lang.String alt) { - return (SetTarget) super.setAlt(alt); - } - - @Override - public SetTarget setCallback(java.lang.String callback) { - return (SetTarget) super.setCallback(callback); - } - - @Override - public SetTarget setFields(java.lang.String fields) { - return (SetTarget) super.setFields(fields); - } - - @Override - public SetTarget setKey(java.lang.String key) { - return (SetTarget) super.setKey(key); - } - - @Override - public SetTarget setOauthToken(java.lang.String oauthToken) { - return (SetTarget) super.setOauthToken(oauthToken); - } - - @Override - public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTarget) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTarget setQuotaUser(java.lang.String quotaUser) { - return (SetTarget) super.setQuotaUser(quotaUser); - } - - @Override - public SetTarget setUploadType(java.lang.String uploadType) { - return (SetTarget) super.setUploadType(uploadType); - } - - @Override - public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTarget) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTarget setUserIp(java.lang.String userIp) { - return (SetTarget) 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 SetTarget 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 SetTarget 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 ForwardingRule resource in which target is to be set. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource in which target is to be set. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource in which target is to be set. */ - public SetTarget setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 SetTarget setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetTarget set(String parameterName, Object value) { - return (SetTarget) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the FutureReservations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.FutureReservations.List request = compute.futureReservations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FutureReservations futureReservations() { - return new FutureReservations(); - } - - /** - * The "futureReservations" collection of methods. - */ - public class FutureReservations { - - /** - * Retrieves an aggregated list of future reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "futureReservations.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/futureReservations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of future reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "futureReservations.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FutureReservationsAggregatedListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Cancel the specified future reservation. - * - * Create a request for the method "futureReservations.cancel". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @return the request - */ - public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { - Cancel result = new Cancel(project, zone, futureReservation); - initialize(result); - return result; - } - - public class Cancel extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Cancel the specified future reservation. - * - * Create a request for the method "futureReservations.cancel". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link - * Cancel#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 Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @since 1.13 - */ - protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) 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 Cancel 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 zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Cancel setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String futureReservation; - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. - */ - public java.lang.String getFutureReservation() { - return futureReservation; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Cancel setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; - 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 Cancel setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes the specified future reservation. - * - * Create a request for the method "futureReservations.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { - Delete result = new Delete(project, zone, futureReservation); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified future reservation. - * - * Create a request for the method "futureReservations.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String futureReservation; - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. - */ - public java.lang.String getFutureReservation() { - return futureReservation; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Delete setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves information about the specified future reservation. - * - * Create a request for the method "futureReservations.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 zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { - Get result = new Get(project, zone, futureReservation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves information about the specified future reservation. - * - * Create a request for the method "futureReservations.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 zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FutureReservation.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."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String futureReservation; - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. - */ - public java.lang.String getFutureReservation() { - return futureReservation; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Get setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new Future Reservation. - * - * Create a request for the method "futureReservations.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.FutureReservation} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.FutureReservation content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new Future Reservation. - * - * Create a request for the method "futureReservations.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 Name of the zone for this request. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.FutureReservation} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.FutureReservation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * A list of all the future reservations that have been configured for the specified project in - * specified zone. - * - * Create a request for the method "futureReservations.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 Name of the zone for this request. Name should conform to RFC1035. - * @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}/futureReservations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * A list of all the future reservations that have been configured for the specified project in - * specified zone. - * - * Create a request for the method "futureReservations.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 Name of the zone for this request. Name should conform to RFC1035. - * @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.preview.model.FutureReservationsListResponse.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public List setZone(java.lang.String zone) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified future reservation. - * - * Create a request for the method "futureReservations.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.FutureReservation} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.preview.model.FutureReservation content) throws java.io.IOException { - Update result = new Update(project, zone, futureReservation, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Updates the specified future reservation. - * - * Create a request for the method "futureReservations.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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 Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.FutureReservation} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.preview.model.FutureReservation content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Update setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** Name of the reservation to update. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String futureReservation; - - /** Name of the reservation to update. Name should conform to RFC1035. - */ - public java.lang.String getFutureReservation() { - return futureReservation; - } - - /** Name of the reservation to update. Name should conform to RFC1035. */ - public Update setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the GlobalAddresses collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalAddresses.List request = compute.globalAddresses().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalAddresses globalAddresses() { - return new GlobalAddresses(); - } - - /** - * The "globalAddresses" collection of methods. - */ - public class GlobalAddresses { - - /** - * Deletes the specified address resource. - * - * Create a request for the method "globalAddresses.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param address Name of the address resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String address) throws java.io.IOException { - Delete result = new Delete(project, address); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ADDRESS_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified address resource. - * - * Create a request for the method "globalAddresses.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 address Name of the address resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String address) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 address resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to delete. - */ - public java.lang.String getAddress() { - return address; - } - - /** Name of the address resource to delete. */ - public Delete setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified address resource. - * - * Create a request for the method "globalAddresses.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 address Name of the address resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String address) throws java.io.IOException { - Get result = new Get(project, address); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ADDRESS_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 address resource. - * - * Create a request for the method "globalAddresses.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 address Name of the address resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String address) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Address.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 address resource to return. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to return. - */ - public java.lang.String getAddress() { - return address; - } - - /** Name of the address resource to return. */ - public Get setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an address resource in the specified project by using the data included in the request. - * - * Create a request for the method "globalAddresses.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Address} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.Address content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/addresses"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates an address resource in the specified project by using the data included in the request. - * - * Create a request for the method "globalAddresses.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Address} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Address content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of global addresses. - * - * Create a request for the method "globalAddresses.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/addresses"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of global addresses. - * - * Create a request for the method "globalAddresses.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.AddressList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Moves the specified address resource from one project to another project. - * - * Create a request for the method "globalAddresses.move". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. - * - * @param project Source project ID which the Address is moved from. - * @param address Name of the address resource to move. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalAddressesMoveRequest} - * @return the request - */ - public Move move(java.lang.String project, java.lang.String address, com.google.api.services.compute.preview.model.GlobalAddressesMoveRequest content) throws java.io.IOException { - Move result = new Move(project, address, content); - initialize(result); - return result; - } - - public class Move extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/addresses/{address}/move"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ADDRESS_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Moves the specified address resource from one project to another project. - * - * Create a request for the method "globalAddresses.move". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

- * - * @param project Source project ID which the Address is moved from. - * @param address Name of the address resource to move. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalAddressesMoveRequest} - * @since 1.13 - */ - protected Move(java.lang.String project, java.lang.String address, com.google.api.services.compute.preview.model.GlobalAddressesMoveRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); - } - - @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); - } - - @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); - } - - @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); - } - - @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); - } - - @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); - } - - @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); - } - - @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); - } - - @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); - } - - @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); - } - - @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); - } - - /** Source project ID which the Address is moved from. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Source project ID which the Address is moved from. - */ - public java.lang.String getProject() { - return project; - } - - /** Source project ID which the Address is moved from. */ - public Move 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 address resource to move. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to move. - */ - public java.lang.String getAddress() { - return address; - } - - /** Name of the address resource to move. */ - public Move setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; - 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 Move setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); - } - } - /** - * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "globalAddresses.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/addresses/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "globalAddresses.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the GlobalForwardingRules collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalForwardingRules.List request = compute.globalForwardingRules().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalForwardingRules globalForwardingRules() { - return new GlobalForwardingRules(); - } - - /** - * The "globalForwardingRules" collection of methods. - */ - public class GlobalForwardingRules { - - /** - * Deletes the specified GlobalForwardingRule resource. - * - * Create a request for the method "globalForwardingRules.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { - Delete result = new Delete(project, forwardingRule); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified GlobalForwardingRule resource. - * - * Create a request for the method "globalForwardingRules.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 forwardingRule Name of the ForwardingRule resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String forwardingRule) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 ForwardingRule resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to delete. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource to delete. */ - public Delete setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by - * making a list() request. - * - * Create a request for the method "globalForwardingRules.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 forwardingRule Name of the ForwardingRule resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { - Get result = new Get(project, forwardingRule); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_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 GlobalForwardingRule resource. Gets a list of available forwarding rules - * by making a list() request. - * - * Create a request for the method "globalForwardingRules.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 forwardingRule Name of the ForwardingRule resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String forwardingRule) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ForwardingRule.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 ForwardingRule resource to return. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to return. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource to return. */ - public Get setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String view; - - /** - - */ - public java.lang.String getView() { - return view; - } - - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a GlobalForwardingRule resource in the specified project using the data included in the - * request. - * - * Create a request for the method "globalForwardingRules.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.ForwardingRule content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a GlobalForwardingRule resource in the specified project using the data included in the - * request. - * - * Create a request for the method "globalForwardingRules.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.ForwardingRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. - * - * Create a request for the method "globalForwardingRules.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. - * - * Create a request for the method "globalForwardingRules.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ForwardingRuleList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you - * can only patch the network_tier field. - * - * Create a request for the method "globalForwardingRules.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 Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.ForwardingRule content) throws java.io.IOException { - Patch result = new Patch(project, forwardingRule, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, - * you can only patch the network_tier field. - * - * Create a request for the method "globalForwardingRules.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 Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.ForwardingRule} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.ForwardingRule content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 ForwardingRule resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to patch. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource to patch. */ - public Patch setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * resources documentation. - * - * Create a request for the method "globalForwardingRules.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * resources documentation. - * - * Create a request for the method "globalForwardingRules.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

- * {@link - * SetTarget#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 forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetReference} - * @since 1.13 - */ - protected SetTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.preview.model.TargetReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetTarget set$Xgafv(java.lang.String $Xgafv) { - return (SetTarget) super.set$Xgafv($Xgafv); - } - - @Override - public SetTarget setAccessToken(java.lang.String accessToken) { - return (SetTarget) super.setAccessToken(accessToken); - } - - @Override - public SetTarget setAlt(java.lang.String alt) { - return (SetTarget) super.setAlt(alt); - } - - @Override - public SetTarget setCallback(java.lang.String callback) { - return (SetTarget) super.setCallback(callback); - } - - @Override - public SetTarget setFields(java.lang.String fields) { - return (SetTarget) super.setFields(fields); - } - - @Override - public SetTarget setKey(java.lang.String key) { - return (SetTarget) super.setKey(key); - } - - @Override - public SetTarget setOauthToken(java.lang.String oauthToken) { - return (SetTarget) super.setOauthToken(oauthToken); - } - - @Override - public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTarget) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTarget setQuotaUser(java.lang.String quotaUser) { - return (SetTarget) super.setQuotaUser(quotaUser); - } - - @Override - public SetTarget setUploadType(java.lang.String uploadType) { - return (SetTarget) super.setUploadType(uploadType); - } - - @Override - public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTarget) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTarget setUserIp(java.lang.String userIp) { - return (SetTarget) 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 SetTarget 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 ForwardingRule resource in which target is to be set. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource in which target is to be set. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource in which target is to be set. */ - public SetTarget setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 SetTarget setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetTarget set(String parameterName, Object value) { - return (SetTarget) super.set(parameterName, 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"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * 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.preview.model.GlobalFrontendSettings.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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.preview.model.GlobalFrontendSettings} - * @return the request - */ - public Patch patch(java.lang.String project, com.google.api.services.compute.preview.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"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * 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.preview.model.GlobalFrontendSettings} - * @since 1.13 - */ - protected Patch(java.lang.String project, com.google.api.services.compute.preview.model.GlobalFrontendSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.model.GlobalFrontendSettingsPatchResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalNetworkEndpointGroups.List request = compute.globalNetworkEndpointGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalNetworkEndpointGroups globalNetworkEndpointGroups() { - return new GlobalNetworkEndpointGroups(); - } - - /** - * The "globalNetworkEndpointGroups" collection of methods. - */ - public class GlobalNetworkEndpointGroups { - - /** - * Attach a network endpoint to the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} - * @return the request - */ - public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { - AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class AttachNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Attach a network endpoint to the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} - * @since 1.13 - */ - protected AttachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); - } - - @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); - } - - @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); - } - - @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); - } - - @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) 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 AttachNetworkEndpoints 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 network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are - * backend services referencing it. - * - * Create a request for the method "globalNetworkEndpointGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { - Delete result = new Delete(project, networkEndpointGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are - * backend services referencing it. - * - * Create a request for the method "globalNetworkEndpointGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String networkEndpointGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 network endpoint group to delete. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Detach the network endpoint from the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} - * @return the request - */ - public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { - DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class DetachNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Detach the network endpoint from the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} - * @since 1.13 - */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); - } - - @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); - } - - @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); - } - - @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); - } - - @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) 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 DetachNetworkEndpoints 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 network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 DetachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, networkEndpointGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroup.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with - * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage - * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service - * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet - * NEGs):global API - * - * Create a request for the method "globalNetworkEndpointGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroup} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.NetworkEndpointGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs - * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To - * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private - * Service Connect NEGs): regional API - To manage NEGs with global scope (such as - * global internet NEGs):global API - * - * Create a request for the method "globalNetworkEndpointGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.NetworkEndpointGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of network endpoint groups that are located in the specified project. - * - * Create a request for the method "globalNetworkEndpointGroups.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of network endpoint groups that are located in the specified project. - * - * Create a request for the method "globalNetworkEndpointGroups.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroupList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the network endpoints in the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @return the request - */ - public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { - ListNetworkEndpoints result = new ListNetworkEndpoints(project, networkEndpointGroup); - initialize(result); - return result; - } - - public class ListNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the network endpoints in the specified network endpoint group. - * - * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link ListNetworkEndpoints#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 networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @since 1.13 - */ - protected ListNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroupsListNetworkEndpoints.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); - } - - @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); - } - - @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); - } - - @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); - } - - @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) 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 ListNetworkEndpoints 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 network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group from which you want to generate a list of included network - endpoints. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the GlobalOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalOperations.List request = compute.globalOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalOperations globalOperations() { - return new GlobalOperations(); - } - - /** - * The "globalOperations" collection of methods. - */ - public class GlobalOperations { - - /** - * Retrieves an aggregated list of all operations. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "globalOperations.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/operations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of all operations. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "globalOperations.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.OperationAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified Operations resource. - * - * Create a request for the method "globalOperations.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(project, operation); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Operations resource. - * - * Create a request for the method "globalOperations.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Operations resource to delete, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to delete, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves the specified Operations resource. - * - * Create a request for the method "globalOperations.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 operation Name of the Operations resource to return, or its unique numeric - identifier. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String operation) throws java.io.IOException { - Get result = new Get(project, operation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves the specified Operations resource. - * - * Create a request for the method "globalOperations.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 operation Name of the Operations resource to return, or its unique numeric - identifier. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 Operations resource to return, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Get setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of Operation resources contained within the specified project. - * - * Create a request for the method "globalOperations.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/operations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of Operation resources contained within the specified project. - * - * Create a request for the method "globalOperations.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.OperationList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the - * 2 minute deadline, and retrieves the specified Operation resource. This method differs from the - * `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns - * the current state of the operation, which might be `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, when - * the server is overloaded, the request might return before the default deadline is reached, or - * might return after zero seconds. - If the default deadline is reached, there is no - * guarantee that the operation is actually done when the method returns. Be prepared to retry - * if the operation is not `DONE`. - * - * Create a request for the method "globalOperations.wait". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @return the request - */ - public Wait wait(java.lang.String project, java.lang.String operation) throws java.io.IOException { - Wait result = new Wait(project, operation); - initialize(result); - return result; - } - - public class Wait extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/operations/{operation}/wait"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach - * the 2 minute deadline, and retrieves the specified Operation resource. This method differs from - * the `GET` method in that it waits for no more than the default deadline (2 minutes) and then - * returns the current state of the operation, which might be `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, - * when the server is overloaded, the request might return before the default deadline is - * reached, or might return after zero seconds. - If the default deadline is reached, there - * is no guarantee that the operation is actually done when the method returns. Be prepared to - * retry if the operation is not `DONE`. - * - * Create a request for the method "globalOperations.wait". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

{@link - * Wait#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 operation Name of the Operations resource to return, or its unique numeric - identifier. - * @since 1.13 - */ - protected Wait(java.lang.String project, java.lang.String operation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) 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 Wait 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 Operations resource to return, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Wait setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the GlobalOrganizationOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalOrganizationOperations.List request = compute.globalOrganizationOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalOrganizationOperations globalOrganizationOperations() { - return new GlobalOrganizationOperations(); - } - - /** - * The "globalOrganizationOperations" collection of methods. - */ - public class GlobalOrganizationOperations { - - /** - * Deletes the specified Operations resource. - * - * Create a request for the method "globalOrganizationOperations.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @return the request - */ - public Delete delete(java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(operation); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "locations/global/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Operations resource. - * - * Create a request for the method "globalOrganizationOperations.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @since 1.13 - */ - protected Delete(java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.class); - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } - - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to delete, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. */ - public Delete setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` - * request. - * - * Create a request for the method "globalOrganizationOperations.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 operation Name of the Operations resource to return. Parent is derived from this - field. - * @return the request - */ - public Get get(java.lang.String operation) throws java.io.IOException { - Get result = new Get(operation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "locations/global/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` - * request. - * - * Create a request for the method "globalOrganizationOperations.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 operation Name of the Operations resource to return. Parent is derived from this - field. - * @since 1.13 - */ - protected Get(java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** - * Name of the Operations resource to return. Parent is derived from this field. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return. Parent is derived from this field. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return. Parent is derived from this field. - */ - public Get setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - /** Parent ID for this request. Not used. Parent is derived from resource_id. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. Not used. Parent is derived from resource_id. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. Not used. Parent is derived from resource_id. */ - public Get setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of Operation resources contained within the specified organization. - * - * Create a request for the method "globalOrganizationOperations.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. - * - * @return the request - */ - public List list() throws java.io.IOException { - List result = new List(); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "locations/global/operations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Retrieves a list of Operation resources contained within the specified organization. - * - * Create a request for the method "globalOrganizationOperations.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.

- * - * @since 1.13 - */ - protected List() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.OperationList.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** - * 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; - } - - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the GlobalPublicDelegatedPrefixes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalPublicDelegatedPrefixes.List request = compute.globalPublicDelegatedPrefixes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalPublicDelegatedPrefixes globalPublicDelegatedPrefixes() { - return new GlobalPublicDelegatedPrefixes(); - } - - /** - * The "globalPublicDelegatedPrefixes" collection of methods. - */ - public class GlobalPublicDelegatedPrefixes { - - /** - * Deletes the specified global PublicDelegatedPrefix. - * - * Create a request for the method "globalPublicDelegatedPrefixes.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Delete result = new Delete(project, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_DELEGATED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified global PublicDelegatedPrefix. - * - * Create a request for the method "globalPublicDelegatedPrefixes.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 PublicDelegatedPrefix resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to delete. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to delete. */ - public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified global PublicDelegatedPrefix resource. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Get result = new Get(project, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_DELEGATED_PREFIX_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 PublicDelegatedPrefix resource. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PublicDelegatedPrefix.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 PublicDelegatedPrefix resource to return. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to return. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to return. */ - public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are - * included in the request. - * - * Create a request for the method "globalPublicDelegatedPrefixes.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are - * included in the request. - * - * Create a request for the method "globalPublicDelegatedPrefixes.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the global PublicDelegatedPrefixes for a project. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the global PublicDelegatedPrefixes for a project. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PublicDelegatedPrefixList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified global PublicDelegatedPrefix resource with the data included in the - * request. This method supportsPATCH semantics and usesJSON merge patch format and processing - * rules. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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 Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) throws java.io.IOException { - Patch result = new Patch(project, publicDelegatedPrefix, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_DELEGATED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified global PublicDelegatedPrefix resource with the data included in the - * request. This method supportsPATCH semantics and usesJSON merge patch format and processing - * rules. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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 Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 PublicDelegatedPrefix resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to patch. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to patch. */ - public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the GlobalVmExtensionPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalVmExtensionPolicies.List request = compute.globalVmExtensionPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalVmExtensionPolicies globalVmExtensionPolicies() { - return new GlobalVmExtensionPolicies(); - } - - /** - * The "globalVmExtensionPolicies" collection of methods. - */ - public class GlobalVmExtensionPolicies { - - /** - * Retrieves the list of all VM Extension Policy resources available to the specified project. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. - * - * Create a request for the method "globalVmExtensionPolicies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/vmExtensionPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all VM Extension Policy resources available to the specified project. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "globalVmExtensionPolicies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VmExtensionPolicyAggregatedListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the - * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM - * extension policy deletion. The deletion of the global VM extension policy happens after the purge - * rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the - * backend. - * - * Create a request for the method "globalVmExtensionPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { - Delete result = new Delete(project, globalVmExtensionPolicy, content); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the - * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM - * extension policy deletion. The deletion of the global VM extension policy happens after the - * purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers - * in the backend. - * - * Create a request for the method "globalVmExtensionPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 global VM extension policy to purge scoped resources for. */ - @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; - - /** Name of the global VM extension policy to purge scoped resources for. - */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; - } - - /** Name of the global VM extension policy to purge scoped resources for. */ - public Delete setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - this.globalVmExtensionPolicy = globalVmExtensionPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets details of a global VM extension policy. - * - * Create a request for the method "globalVmExtensionPolicies.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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String globalVmExtensionPolicy) throws java.io.IOException { - Get result = new Get(project, globalVmExtensionPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 GLOBAL_VM_EXTENSION_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets details of a global VM extension policy. - * - * Create a request for the method "globalVmExtensionPolicies.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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String globalVmExtensionPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), - "Parameter globalVmExtensionPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 GlobalVmExtensionPolicy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; - - /** Name of the GlobalVmExtensionPolicy resource to return. - */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; - } - - /** Name of the GlobalVmExtensionPolicy resource to return. */ - public Get setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), - "Parameter globalVmExtensionPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.globalVmExtensionPolicy = globalVmExtensionPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new project level GlobalVmExtensionPolicy. - * - * Create a request for the method "globalVmExtensionPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new project level GlobalVmExtensionPolicy. - * - * Create a request for the method "globalVmExtensionPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists global VM extension policies. - * - * Create a request for the method "globalVmExtensionPolicies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists global VM extension policies. - * - * Create a request for the method "globalVmExtensionPolicies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a global VM extension policy. - * - * Create a request for the method "globalVmExtensionPolicies.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the global VM extension policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy content) throws java.io.IOException { - Update result = new Update(project, globalVmExtensionPolicy, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Updates a global VM extension policy. - * - * Create a request for the method "globalVmExtensionPolicies.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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 globalVmExtensionPolicy Name of the global VM extension policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.preview.model.GlobalVmExtensionPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 global VM extension policy to update. */ - @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; - - /** Name of the global VM extension policy to update. - */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; - } - - /** Name of the global VM extension policy to update. */ - public Update setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - this.globalVmExtensionPolicy = globalVmExtensionPolicy; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the HaControllers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HaControllers.List request = compute.haControllers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HaControllers haControllers() { - return new HaControllers(); - } - - /** - * The "haControllers" collection of methods. - */ - public class HaControllers { - - /** - * Retrieves an aggregated list of all of the HaControllers in the specified project across all - * regions. - * - * Create a request for the method "haControllers.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/haControllers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of all of the HaControllers in the specified project across all - * regions. - * - * Create a request for the method "haControllers.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HaControllersAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes an HaController in the specified project. - * - * Create a request for the method "haControllers.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController Name of the HaController resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { - Delete result = new Delete(project, region, haController); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Deletes an HaController in the specified project. - * - * Create a request for the method "haControllers.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController Name of the HaController resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String haController) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 HaController resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String haController; - - /** Name of the HaController resource to delete. - */ - public java.lang.String getHaController() { - return haController; - } - - /** Name of the HaController resource to delete. */ - public Delete setHaController(java.lang.String haController) { - this.haController = haController; - return this; - } - - /** - * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the - * moment will also be deleted. Can only be used against the HA Controller resource that is - * already being deleted. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the moment - will also be deleted. Can only be used against the HA Controller resource that is already being - deleted. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the - * moment will also be deleted. Can only be used against the HA Controller resource that is - * already being deleted. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - 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. - */ - @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. - */ - 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. - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Fails over a VM targeted by the specified HaController to the selected zone. - * - * Create a request for the method "haControllers.failover". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Failover#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HaControllersFailoverRequest} - * @return the request - */ - public Failover failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.preview.model.HaControllersFailoverRequest content) throws java.io.IOException { - Failover result = new Failover(project, region, haController, content); - initialize(result); - return result; - } - - public class Failover extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}/failover"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HA_CONTROLLER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Fails over a VM targeted by the specified HaController to the selected zone. - * - * Create a request for the method "haControllers.failover". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Failover#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HaControllersFailoverRequest} - * @since 1.13 - */ - protected Failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.preview.model.HaControllersFailoverRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Failover set$Xgafv(java.lang.String $Xgafv) { - return (Failover) super.set$Xgafv($Xgafv); - } - - @Override - public Failover setAccessToken(java.lang.String accessToken) { - return (Failover) super.setAccessToken(accessToken); - } - - @Override - public Failover setAlt(java.lang.String alt) { - return (Failover) super.setAlt(alt); - } - - @Override - public Failover setCallback(java.lang.String callback) { - return (Failover) super.setCallback(callback); - } - - @Override - public Failover setFields(java.lang.String fields) { - return (Failover) super.setFields(fields); - } - - @Override - public Failover setKey(java.lang.String key) { - return (Failover) super.setKey(key); - } - - @Override - public Failover setOauthToken(java.lang.String oauthToken) { - return (Failover) super.setOauthToken(oauthToken); - } - - @Override - public Failover setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Failover) super.setPrettyPrint(prettyPrint); - } - - @Override - public Failover setQuotaUser(java.lang.String quotaUser) { - return (Failover) super.setQuotaUser(quotaUser); - } - - @Override - public Failover setUploadType(java.lang.String uploadType) { - return (Failover) super.setUploadType(uploadType); - } - - @Override - public Failover setUploadProtocol(java.lang.String uploadProtocol) { - return (Failover) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Failover setUserIp(java.lang.String userIp) { - return (Failover) 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 Failover 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Failover 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; - } - - /** ID of the HaController resource to update. */ - @com.google.api.client.util.Key - private java.lang.String haController; - - /** ID of the HaController resource to update. - */ - public java.lang.String getHaController() { - return haController; - } - - /** ID of the HaController resource to update. */ - public Failover setHaController(java.lang.String haController) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.haController = haController; - 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. - */ - @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. - */ - 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. - */ - public Failover setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Failover set(String parameterName, Object value) { - return (Failover) super.set(parameterName, value); - } - } - /** - * Returns all the details of a specific HaController. - * - * Create a request for the method "haControllers.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 region Name of the region for this request. - * @param haController Name of the HaController resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { - Get result = new Get(project, region, haController); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HA_CONTROLLER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns all the details of a specific HaController. - * - * Create a request for the method "haControllers.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 region Name of the region for this request. - * @param haController Name of the HaController resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String haController) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HaController.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 HaController resource to return. */ - @com.google.api.client.util.Key - private java.lang.String haController; - - /** Name of the HaController resource to return. - */ - public java.lang.String getHaController() { - return haController; - } - - /** Name of the HaController resource to return. */ - public Get setHaController(java.lang.String haController) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.haController = haController; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates HaController in the specified project. - * - * Create a request for the method "haControllers.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.HaController} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HaController content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates HaController in the specified project. - * - * Create a request for the method "haControllers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.HaController} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HaController content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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. - */ - @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. - */ - 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. - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all HaControllers in the specified project in the specified region. - * - * Create a request for the method "haControllers.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 region 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}/haControllers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all HaControllers in the specified project in the specified region. - * - * Create a request for the method "haControllers.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 region 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.preview.model.HaControllersList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates HaController in the specified project. - * - * Create a request for the method "haControllers.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 Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HaController} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.preview.model.HaController content) throws java.io.IOException { - Patch result = new Patch(project, region, haController, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HA_CONTROLLER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates HaController in the specified project. - * - * Create a request for the method "haControllers.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 Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HaController} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.preview.model.HaController content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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; - } - - /** ID of the HaController resource to update. */ - @com.google.api.client.util.Key - private java.lang.String haController; - - /** ID of the HaController resource to update. - */ - public java.lang.String getHaController() { - return haController; - } - - /** ID of the HaController resource to update. */ - public Patch setHaController(java.lang.String haController) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.haController = haController; - 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. - */ - @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. - */ - 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. - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - 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 HealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HealthChecks.List request = compute.healthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HealthChecks healthChecks() { - return new HealthChecks(); - } - - /** - * The "healthChecks" collection of methods. - */ - public class HealthChecks { - - /** - * Retrieves the list of all HealthCheck resources, regional and global, available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "healthChecks.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/healthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all HealthCheck resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "healthChecks.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthChecksAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified HealthCheck resource. - * - * Create a request for the method "healthChecks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { - Delete result = new Delete(project, healthCheck); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified HealthCheck resource. - * - * Create a request for the method "healthChecks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 healthCheck Name of the HealthCheck resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String healthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 HealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to delete. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to delete. */ - public Delete setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HealthCheck resource. - * - * Create a request for the method "healthChecks.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 healthCheck Name of the HealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { - Get result = new Get(project, healthCheck); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_CHECK_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 HealthCheck resource. - * - * Create a request for the method "healthChecks.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 healthCheck Name of the HealthCheck resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String healthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthCheck.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 HealthCheck resource to return. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to return. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to return. */ - public Get setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a HealthCheck resource in the specified project using the data included in the request. - * - * Create a request for the method "healthChecks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.HealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/healthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a HealthCheck resource in the specified project using the data included in the request. - * - * Create a request for the method "healthChecks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.HealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of HealthCheck resources available to the specified project. - * - * Create a request for the method "healthChecks.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/healthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of HealthCheck resources available to the specified project. - * - * Create a request for the method "healthChecks.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthCheckList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "healthChecks.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 Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.preview.model.HealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, healthCheck, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "healthChecks.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 Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.preview.model.HealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 HealthCheck resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to patch. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to patch. */ - public Patch setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "healthChecks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/healthChecks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "healthChecks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

{@link - * Update#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 healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.preview.model.HealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 HealthCheck resource to update. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to update. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to update. */ - public Update setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Hosts collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Hosts.List request = compute.hosts().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Hosts hosts() { - return new Hosts(); - } - - /** - * The "hosts" collection of methods. - */ - public class Hosts { - - /** - * Retrieves information about the specified host. - * - * Create a request for the method "hosts.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) throws java.io.IOException { - Get result = new Get(project, zone, association, host); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Retrieves information about the specified host. - * - * Create a request for the method "hosts.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Host.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); - this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** The project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** The project ID for this request. */ - public Get setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ - @com.google.api.client.util.Key - private java.lang.String association; - - /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., - reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, - reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ - name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. - */ - public java.lang.String getAssociation() { - return association; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ - public Get setAssociation(java.lang.String association) { - this.association = association; - return this; - } - - /** - * The name of the host, formatted as RFC1035 or a resource ID number. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** The name of the host, formatted as RFC1035 or a resource ID number. - */ - public java.lang.String getHost() { - return host; - } - - /** - * The name of the host, formatted as RFC1035 or a resource ID number. - */ - public Get setHost(java.lang.String host) { - this.host = host; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Allows customers to get SBOM versions of a host. - * - * Create a request for the method "hosts.getVersion". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. - * @param content the {@link com.google.api.services.compute.preview.model.HostsGetVersionRequest} - * @return the request - */ - public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.preview.model.HostsGetVersionRequest content) throws java.io.IOException { - GetVersion result = new GetVersion(project, zone, association, host, content); - initialize(result); - return result; - } - - public class GetVersion extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}/getVersion"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Allows customers to get SBOM versions of a host. - * - * Create a request for the method "hosts.getVersion". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

- * {@link - * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. - * @param content the {@link com.google.api.services.compute.preview.model.HostsGetVersionRequest} - * @since 1.13 - */ - protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.preview.model.HostsGetVersionRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); - this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public GetVersion set$Xgafv(java.lang.String $Xgafv) { - return (GetVersion) super.set$Xgafv($Xgafv); - } - - @Override - public GetVersion setAccessToken(java.lang.String accessToken) { - return (GetVersion) super.setAccessToken(accessToken); - } - - @Override - public GetVersion setAlt(java.lang.String alt) { - return (GetVersion) super.setAlt(alt); - } - - @Override - public GetVersion setCallback(java.lang.String callback) { - return (GetVersion) super.setCallback(callback); - } - - @Override - public GetVersion setFields(java.lang.String fields) { - return (GetVersion) super.setFields(fields); - } - - @Override - public GetVersion setKey(java.lang.String key) { - return (GetVersion) super.setKey(key); - } - - @Override - public GetVersion setOauthToken(java.lang.String oauthToken) { - return (GetVersion) super.setOauthToken(oauthToken); - } - - @Override - public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVersion) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetVersion setQuotaUser(java.lang.String quotaUser) { - return (GetVersion) super.setQuotaUser(quotaUser); - } - - @Override - public GetVersion setUploadType(java.lang.String uploadType) { - return (GetVersion) super.setUploadType(uploadType); - } - - @Override - public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVersion) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetVersion setUserIp(java.lang.String userIp) { - return (GetVersion) 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 GetVersion setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public GetVersion setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. - */ - @com.google.api.client.util.Key - private java.lang.String association; - - /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., - reservation, block, sub-block) when accessing the host. - */ - public java.lang.String getAssociation() { - return association; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. - */ - public GetVersion setAssociation(java.lang.String association) { - this.association = association; - return this; - } - - /** - * The name of the host, formatted as RFC1035 or a resource ID number. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** The name of the host, formatted as RFC1035 or a resource ID number. - */ - public java.lang.String getHost() { - return host; - } - - /** - * The name of the host, formatted as RFC1035 or a resource ID number. - */ - public GetVersion setHost(java.lang.String host) { - this.host = host; - 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. - */ - @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. - */ - 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. - */ - public GetVersion setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); - } - } - /** - * Retrieves a list of hosts. - * - * Create a request for the method "hosts.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @return the request - */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String association) throws java.io.IOException { - List result = new List(project, zone, association); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Retrieves a list of hosts. - * - * Create a request for the method "hosts.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String association) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HostsListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** The project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** The project ID for this request. */ - public List setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ - @com.google.api.client.util.Key - private java.lang.String association; - - /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., - reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, - reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ - name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. - */ - public java.lang.String getAssociation() { - return association; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ - public List setAssociation(java.lang.String association) { - this.association = association; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the HttpHealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HttpHealthChecks httpHealthChecks() { - return new HttpHealthChecks(); - } - - /** - * The "httpHealthChecks" collection of methods. - */ - public class HttpHealthChecks { - - /** - * Deletes the specified HttpHealthCheck resource. - * - * Create a request for the method "httpHealthChecks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, httpHealthCheck); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HTTP_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified HttpHealthCheck resource. - * - * Create a request for the method "httpHealthChecks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 httpHealthCheck Name of the HttpHealthCheck resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String httpHealthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 HttpHealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; - - /** Name of the HttpHealthCheck resource to delete. - */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; - } - - /** Name of the HttpHealthCheck resource to delete. */ - public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpHealthCheck = httpHealthCheck; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HttpHealthCheck resource. - * - * Create a request for the method "httpHealthChecks.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 httpHealthCheck Name of the HttpHealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { - Get result = new Get(project, httpHealthCheck); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HTTP_HEALTH_CHECK_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 HttpHealthCheck resource. - * - * Create a request for the method "httpHealthChecks.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 httpHealthCheck Name of the HttpHealthCheck resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String httpHealthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HttpHealthCheck.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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 HttpHealthCheck resource to return. */ - @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; - - /** Name of the HttpHealthCheck resource to return. - */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; - } - - /** Name of the HttpHealthCheck resource to return. */ - public Get setHttpHealthCheck(java.lang.String httpHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpHealthCheck = httpHealthCheck; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a HttpHealthCheck resource in the specified project using the data included in the - * request. - * - * Create a request for the method "httpHealthChecks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.HttpHealthCheck} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.HttpHealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a HttpHealthCheck resource in the specified project using the data included in the - * request. - * - * Create a request for the method "httpHealthChecks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.HttpHealthCheck} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.HttpHealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of HttpHealthCheck resources available to the specified project. - * - * Create a request for the method "httpHealthChecks.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of HttpHealthCheck resources available to the specified project. - * - * Create a request for the method "httpHealthChecks.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HttpHealthCheckList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a HttpHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "httpHealthChecks.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 Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HttpHealthCheck} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.preview.model.HttpHealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, httpHealthCheck, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HTTP_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates a HttpHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "httpHealthChecks.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 Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HttpHealthCheck} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.preview.model.HttpHealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 HttpHealthCheck resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; - - /** Name of the HttpHealthCheck resource to patch. - */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; - } - - /** Name of the HttpHealthCheck resource to patch. */ - public Patch setHttpHealthCheck(java.lang.String httpHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpHealthCheck = httpHealthCheck; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "httpHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "httpHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

{@link - * Update#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 httpHealthCheck Name of the HttpHealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HttpHealthCheck} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.preview.model.HttpHealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 HttpHealthCheck resource to update. */ - @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; - - /** Name of the HttpHealthCheck resource to update. - */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; - } - - /** Name of the HttpHealthCheck resource to update. */ - public Update setHttpHealthCheck(java.lang.String httpHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpHealthCheck = httpHealthCheck; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the HttpsHealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HttpsHealthChecks.List request = compute.httpsHealthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HttpsHealthChecks httpsHealthChecks() { - return new HttpsHealthChecks(); - } - - /** - * The "httpsHealthChecks" collection of methods. - */ - public class HttpsHealthChecks { - - /** - * Deletes the specified HttpsHealthCheck resource. - * - * Create a request for the method "httpsHealthChecks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, httpsHealthCheck); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HTTPS_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified HttpsHealthCheck resource. - * - * Create a request for the method "httpsHealthChecks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 httpsHealthCheck Name of the HttpsHealthCheck resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String httpsHealthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 HttpsHealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; - - /** Name of the HttpsHealthCheck resource to delete. - */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; - } - - /** Name of the HttpsHealthCheck resource to delete. */ - public Delete setHttpsHealthCheck(java.lang.String httpsHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpsHealthCheck = httpsHealthCheck; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HttpsHealthCheck resource. - * - * Create a request for the method "httpsHealthChecks.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 httpsHealthCheck Name of the HttpsHealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { - Get result = new Get(project, httpsHealthCheck); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HTTPS_HEALTH_CHECK_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 HttpsHealthCheck resource. - * - * Create a request for the method "httpsHealthChecks.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 httpsHealthCheck Name of the HttpsHealthCheck resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String httpsHealthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HttpsHealthCheck.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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 HttpsHealthCheck resource to return. */ - @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; - - /** Name of the HttpsHealthCheck resource to return. - */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; - } - - /** Name of the HttpsHealthCheck resource to return. */ - public Get setHttpsHealthCheck(java.lang.String httpsHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpsHealthCheck = httpsHealthCheck; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a HttpsHealthCheck resource in the specified project using the data included in the - * request. - * - * Create a request for the method "httpsHealthChecks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.HttpsHealthCheck} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.HttpsHealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a HttpsHealthCheck resource in the specified project using the data included in the - * request. - * - * Create a request for the method "httpsHealthChecks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.HttpsHealthCheck} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.HttpsHealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of HttpsHealthCheck resources available to the specified project. - * - * Create a request for the method "httpsHealthChecks.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of HttpsHealthCheck resources available to the specified project. - * - * Create a request for the method "httpsHealthChecks.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HttpsHealthCheckList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a HttpsHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "httpsHealthChecks.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 Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HttpsHealthCheck} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.preview.model.HttpsHealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, httpsHealthCheck, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HTTPS_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates a HttpsHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "httpsHealthChecks.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 Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HttpsHealthCheck} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.preview.model.HttpsHealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 HttpsHealthCheck resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; - - /** Name of the HttpsHealthCheck resource to patch. - */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; - } - - /** Name of the HttpsHealthCheck resource to patch. */ - public Patch setHttpsHealthCheck(java.lang.String httpsHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpsHealthCheck = httpsHealthCheck; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "httpsHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "httpsHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

{@link - * Update#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 httpsHealthCheck Name of the HttpsHealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HttpsHealthCheck} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.preview.model.HttpsHealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 HttpsHealthCheck resource to update. */ - @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; - - /** Name of the HttpsHealthCheck resource to update. - */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; - } - - /** Name of the HttpsHealthCheck resource to update. */ - public Update setHttpsHealthCheck(java.lang.String httpsHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpsHealthCheck = httpsHealthCheck; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ImageFamilyViews collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ImageFamilyViews.List request = compute.imageFamilyViews().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ImageFamilyViews imageFamilyViews() { - return new ImageFamilyViews(); - } - - /** - * The "imageFamilyViews" collection of methods. - */ - public class ImageFamilyViews { - - /** - * Returns the latest image that is part of an image family, is not deprecated and is rolled out in - * the specified zone. - * - * Create a request for the method "imageFamilyViews.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 zone The name of the zone for this request. - * @param family Name of the image family to search for. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String family) throws java.io.IOException { - Get result = new Get(project, zone, family); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/imageFamilyViews/{family}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern FAMILY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the latest image that is part of an image family, is not deprecated and is rolled out - * in the specified zone. - * - * Create a request for the method "imageFamilyViews.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 zone The name of the zone for this request. - * @param family Name of the image family to search for. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String family) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ImageFamilyView.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])?"); - } - this.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 image family to search for. */ - @com.google.api.client.util.Key - private java.lang.String family; - - /** Name of the image family to search for. - */ - public java.lang.String getFamily() { - return family; - } - - /** Name of the image family to search for. */ - public Get setFamily(java.lang.String family) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.family = family; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, 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 static final String API_VERSION = "2026-10-01-preview"; - - 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.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 static final String API_VERSION = "2026-10-01-preview"; - - 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.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Images collection. - * - *

The typical use is:

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

{@link - * Delete#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 image Name of the image resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String image) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 image resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String image; - - /** Name of the image resource to delete. - */ - public java.lang.String getImage() { - return image; - } - - /** Name of the image resource to delete. */ - public Delete setImage(java.lang.String image) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.image = image; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Sets the deprecation status of an image. - * - * If an empty request body is given, clears the deprecation status instead. - * - * Create a request for the method "images.deprecate". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param image Image name. - * @param content the {@link com.google.api.services.compute.preview.model.DeprecationStatus} - * @return the request - */ - public Deprecate deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.preview.model.DeprecationStatus content) throws java.io.IOException { - Deprecate result = new Deprecate(project, image, content); - initialize(result); - return result; - } - - public class Deprecate extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/{image}/deprecate"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 IMAGE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the deprecation status of an image. - * - * If an empty request body is given, clears the deprecation status instead. - * - * Create a request for the method "images.deprecate". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation.

- * {@link - * Deprecate#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 image Image name. - * @param content the {@link com.google.api.services.compute.preview.model.DeprecationStatus} - * @since 1.13 - */ - protected Deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.preview.model.DeprecationStatus content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Deprecate set$Xgafv(java.lang.String $Xgafv) { - return (Deprecate) super.set$Xgafv($Xgafv); - } - - @Override - public Deprecate setAccessToken(java.lang.String accessToken) { - return (Deprecate) super.setAccessToken(accessToken); - } - - @Override - public Deprecate setAlt(java.lang.String alt) { - return (Deprecate) super.setAlt(alt); - } - - @Override - public Deprecate setCallback(java.lang.String callback) { - return (Deprecate) super.setCallback(callback); - } - - @Override - public Deprecate setFields(java.lang.String fields) { - return (Deprecate) super.setFields(fields); - } - - @Override - public Deprecate setKey(java.lang.String key) { - return (Deprecate) super.setKey(key); - } - - @Override - public Deprecate setOauthToken(java.lang.String oauthToken) { - return (Deprecate) super.setOauthToken(oauthToken); - } - - @Override - public Deprecate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deprecate) super.setPrettyPrint(prettyPrint); - } - - @Override - public Deprecate setQuotaUser(java.lang.String quotaUser) { - return (Deprecate) super.setQuotaUser(quotaUser); - } - - @Override - public Deprecate setUploadType(java.lang.String uploadType) { - return (Deprecate) super.setUploadType(uploadType); - } - - @Override - public Deprecate setUploadProtocol(java.lang.String uploadProtocol) { - return (Deprecate) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Deprecate setUserIp(java.lang.String userIp) { - return (Deprecate) 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 Deprecate 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; - } - - /** Image name. */ - @com.google.api.client.util.Key - private java.lang.String image; - - /** Image name. - */ - public java.lang.String getImage() { - return image; - } - - /** Image name. */ - public Deprecate setImage(java.lang.String image) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.image = image; - 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 Deprecate setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Deprecate set(String parameterName, Object value) { - return (Deprecate) super.set(parameterName, value); - } - } - /** - * Returns the specified image. - * - * Create a request for the method "images.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 image Name of the image resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String image) throws java.io.IOException { - Get result = new Get(project, image); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/{image}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 IMAGE_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 image. - * - * Create a request for the method "images.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 image Name of the image resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String image) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Image.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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 image resource to return. */ - @com.google.api.client.util.Key - private java.lang.String image; - - /** Name of the image resource to return. - */ - public java.lang.String getImage() { - return image; - } - - /** Name of the image resource to return. */ - public Get setImage(java.lang.String image) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.image = image; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the latest image that is part of an image family and is not deprecated. For more - * information on image families, seePublic image families documentation. - * - * Create a request for the method "images.getFromFamily". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation. - * - * @param project The image project that the image belongs to. For example, to get a CentOS - image, specify centos- - * cloud as the image project. - * @param family Name of the image family to search for. - * @return the request - */ - public GetFromFamily getFromFamily(java.lang.String project, java.lang.String family) throws java.io.IOException { - GetFromFamily result = new GetFromFamily(project, family); - initialize(result); - return result; - } - - public class GetFromFamily extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/family/{family}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FAMILY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the latest image that is part of an image family and is not deprecated. For more - * information on image families, seePublic image families documentation. - * - * Create a request for the method "images.getFromFamily". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation.

- * {@link GetFromFamily#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

- * - * @param project The image project that the image belongs to. For example, to get a CentOS - image, specify centos- - * cloud as the image project. - * @param family Name of the image family to search for. - * @since 1.13 - */ - protected GetFromFamily(java.lang.String project, java.lang.String family) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Image.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.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetFromFamily set$Xgafv(java.lang.String $Xgafv) { - return (GetFromFamily) super.set$Xgafv($Xgafv); - } - - @Override - public GetFromFamily setAccessToken(java.lang.String accessToken) { - return (GetFromFamily) super.setAccessToken(accessToken); - } - - @Override - public GetFromFamily setAlt(java.lang.String alt) { - return (GetFromFamily) super.setAlt(alt); - } - - @Override - public GetFromFamily setCallback(java.lang.String callback) { - return (GetFromFamily) super.setCallback(callback); - } - - @Override - public GetFromFamily setFields(java.lang.String fields) { - return (GetFromFamily) super.setFields(fields); - } - - @Override - public GetFromFamily setKey(java.lang.String key) { - return (GetFromFamily) super.setKey(key); - } - - @Override - public GetFromFamily setOauthToken(java.lang.String oauthToken) { - return (GetFromFamily) super.setOauthToken(oauthToken); - } - - @Override - public GetFromFamily setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetFromFamily) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetFromFamily setQuotaUser(java.lang.String quotaUser) { - return (GetFromFamily) super.setQuotaUser(quotaUser); - } - - @Override - public GetFromFamily setUploadType(java.lang.String uploadType) { - return (GetFromFamily) super.setUploadType(uploadType); - } - - @Override - public GetFromFamily setUploadProtocol(java.lang.String uploadProtocol) { - return (GetFromFamily) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetFromFamily setUserIp(java.lang.String userIp) { - return (GetFromFamily) super.setUserIp(userIp); - } - - /** - * The image project that the image belongs to. For example, to get a CentOS image, specify - * centos-cloud as the image project. - */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The image project that the image belongs to. For example, to get a CentOS image, specify centos- - cloud as the image project. - */ - public java.lang.String getProject() { - return project; - } - - /** - * The image project that the image belongs to. For example, to get a CentOS image, specify - * centos-cloud as the image project. - */ - public GetFromFamily 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 image family to search for. */ - @com.google.api.client.util.Key - private java.lang.String family; - - /** Name of the image family to search for. - */ - public java.lang.String getFamily() { - return family; - } - - /** Name of the image family to search for. */ - public GetFromFamily setFamily(java.lang.String family) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.family = family; - return this; - } - - @Override - public GetFromFamily set(String parameterName, Object value) { - return (GetFromFamily) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "images.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "images.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Image} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Image content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** Force image creation if true. */ - @com.google.api.client.util.Key - private java.lang.Boolean forceCreate; - - /** Force image creation if true. - */ - public java.lang.Boolean getForceCreate() { - return forceCreate; - } - - /** Force image creation if true. */ - public Insert setForceCreate(java.lang.Boolean forceCreate) { - this.forceCreate = forceCreate; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of custom images available to the specified project. Custom images are images - * you create that belong to your project. This method does not get any images that belong to other - * projects, including publicly-available images, like Debian 8. If you want to get a list of - * publicly-available images, use this method to make a request to the respective image project, - * such as debian-cloud or windows-cloud. - * - * Create a request for the method "images.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/images"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of custom images available to the specified project. Custom images are - * images you create that belong to your project. This method does not get any images that belong - * to other projects, including publicly-available images, like Debian 8. If you want to get a - * list of publicly-available images, use this method to make a request to the respective image - * project, such as debian-cloud or windows-cloud. - * - * Create a request for the method "images.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ImageList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified image with the data included in the request. Only the following fields can - * be modified: family, description, deprecation status. - * - * Create a request for the method "images.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 Project ID for this request. - * @param image Name of the image resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Image} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String image, com.google.api.services.compute.preview.model.Image content) throws java.io.IOException { - Patch result = new Patch(project, image, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/{image}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 IMAGE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified image with the data included in the request. Only the following fields - * can be modified: family, description, deprecation status. - * - * Create a request for the method "images.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 Project ID for this request. - * @param image Name of the image resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Image} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String image, com.google.api.services.compute.preview.model.Image content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 image resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String image; - - /** Name of the image resource to patch. - */ - public java.lang.String getImage() { - return image; - } - - /** Name of the image resource to patch. */ - public Patch setImage(java.lang.String image) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.image = image; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "images.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "images.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InstanceGroupManagerResizeRequests collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceGroupManagerResizeRequests.List request = compute.instanceGroupManagerResizeRequests().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceGroupManagerResizeRequests instanceGroupManagerResizeRequests() { - return new InstanceGroupManagerResizeRequests(); - } - - /** - * The "instanceGroupManagerResizeRequests" collection of methods. - */ - public class InstanceGroupManagerResizeRequests { - - /** - * Cancels the specified resize request and removes it from the queue. Cancelled resize request does - * no longer wait for the resources to be provisioned. Cancel is only possible for requests that are - * accepted in the queue. - * - * Create a request for the method "instanceGroupManagerResizeRequests.cancel". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to cancel. - The name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Cancel result = new Cancel(project, zone, instanceGroupManager, resizeRequest); - initialize(result); - return result; - } - - public class Cancel extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Cancels the specified resize request and removes it from the queue. Cancelled resize request - * does no longer wait for the resources to be provisioned. Cancel is only possible for requests - * that are accepted in the queue. - * - * Create a request for the method "instanceGroupManagerResizeRequests.cancel". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link - * Cancel#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 thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to cancel. - The name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) 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 Cancel 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 thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. The name should conform to - RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - public Cancel setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request to cancel. The name should conform to RFC1035 or be a - * resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; - - /** The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } - - /** - * The name of the resize request to cancel. The name should conform to RFC1035 or be a - * resource ID. - */ - public Cancel setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - 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 Cancel setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. - * Deleting request does not delete instances that were provisioned previously. - * - * Create a request for the method "instanceGroupManagerResizeRequests.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to delete. - The name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Delete result = new Delete(project, zone, instanceGroupManager, resizeRequest); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be - * deleted. Deleting request does not delete instances that were provisioned previously. - * - * Create a request for the method "instanceGroupManagerResizeRequests.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to delete. - The name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. The name should conform to - RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request to delete. The name should conform to RFC1035 or be a - * resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; - - /** The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } - - /** - * The name of the resize request to delete. The name should conform to RFC1035 or be a - * resource ID. - */ - public Delete setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns all of the details about the specified resize request. - * - * Create a request for the method "instanceGroupManagerResizeRequests.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 zone Name of the href="/compute/docs/regions-zones/#available">zone - scoping this request. Name should - * conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Get result = new Get(project, zone, instanceGroupManager, resizeRequest); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns all of the details about the specified resize request. - * - * Create a request for the method "instanceGroupManagerResizeRequests.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 zone Name of the href="/compute/docs/regions-zones/#available">zone - scoping this request. Name should - * conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 href="/compute/docs/regions-zones/#available">zone scoping this request. Name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should - conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name - * should conform to RFC1035. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; - - /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } - - /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - public Get setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. - * - * Create a request for the method "instanceGroupManagerResizeRequests.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located and where the resize request will be - * created. - Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group to which the resize request will - be added. - Name should - * conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { - Insert result = new Insert(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. - * - * Create a request for the method "instanceGroupManagerResizeRequests.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 thezone where the managed - instance group is located and where the resize request will be - * created. - Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group to which the resize request will - be added. - Name should - * conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 thezone where the managed instance group is located and where the resize - * request will be created. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located and where the resize request will - be created. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located and where the resize - * request will be created. Name should conform to RFC1035. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group to which the resize request will be added. Name - * should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group to which the resize request will be added. Name should - conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group to which the resize request will be added. Name - * should conform to RFC1035 or be a resource ID. - */ - public Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of resize requests that are contained in the managed instance group. - * - * Create a request for the method "instanceGroupManagerResizeRequests.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 thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. - * @return the request - */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - List result = new List(project, zone, instanceGroupManager); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of resize requests that are contained in the managed instance group. - * - * Create a request for the method "instanceGroupManagerResizeRequests.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 thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequestsListResponse.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. The name should conform to - RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. The name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. The name should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. The name should conform to RFC1035. */ - public List setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InstanceGroupManagers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceGroupManagers.List request = compute.instanceGroupManagers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceGroupManagers instanceGroupManagers() { - return new InstanceGroupManagers(); - } - - /** - * The "instanceGroupManagers" collection of methods. - */ - public class InstanceGroupManagers { - - /** - * Flags the specified instances to be removed from the managed instance group. Abandoning an - * instance does not delete the instance, but it does remove the instance from any target pools that - * are applied by the managed instance group. This method reduces thetargetSize of the managed - * instance group by the number of instances that you abandon. This operation is marked asDONE when - * the action is scheduled even if the instances have not yet been removed from the group. You must - * separately verify the status of the abandoning action with thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.abandonInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersAbandonInstancesRequest} - * @return the request - */ - public AbandonInstances abandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException { - AbandonInstances result = new AbandonInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class AbandonInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances to be removed from the managed instance group. Abandoning an - * instance does not delete the instance, but it does remove the instance from any target pools - * that are applied by the managed instance group. This method reduces thetargetSize of the - * managed instance group by the number of instances that you abandon. This operation is marked - * asDONE when the action is scheduled even if the instances have not yet been removed from the - * group. You must separately verify the status of the abandoning action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.abandonInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. - *

{@link AbandonInstances#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 zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersAbandonInstancesRequest} - * @since 1.13 - */ - protected AbandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersAbandonInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); - } - - @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); - } - - @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); - } - - @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); - } - - @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); - } - - @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); - } - - @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); - } - - @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); - } - - @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); - } - - @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) 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 AbandonInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public AbandonInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 AbandonInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); - } - } - /** - * Retrieves the list of managed instance groups and groups them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instanceGroupManagers.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/instanceGroupManagers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of managed instance groups and groups them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instanceGroupManagers.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagerAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Applies changes to selected instances on the managed instance group. This method can be used to - * apply new overrides and/or new versions. - * - * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. Should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersApplyUpdatesRequest} - * @return the request - */ - public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { - ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class ApplyUpdatesToInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Applies changes to selected instances on the managed instance group. This method can be used to - * apply new overrides and/or new versions. - * - * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation.

{@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi - * ces.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 thezone - where the managed instance group is located. Should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersApplyUpdatesRequest} - * @since 1.13 - */ - protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersApplyUpdatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { - return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { - return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); - } - - @Override - public ApplyUpdatesToInstances setAlt(java.lang.String alt) { - return (ApplyUpdatesToInstances) super.setAlt(alt); - } - - @Override - public ApplyUpdatesToInstances setCallback(java.lang.String callback) { - return (ApplyUpdatesToInstances) super.setCallback(callback); - } - - @Override - public ApplyUpdatesToInstances setFields(java.lang.String fields) { - return (ApplyUpdatesToInstances) super.setFields(fields); - } - - @Override - public ApplyUpdatesToInstances setKey(java.lang.String key) { - return (ApplyUpdatesToInstances) super.setKey(key); - } - - @Override - public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { - return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); - } - - @Override - public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { - return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { - return (ApplyUpdatesToInstances) super.setUploadType(uploadType); - } - - @Override - public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { - return (ApplyUpdatesToInstances) 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 ApplyUpdatesToInstances 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 thezone where the managed instance group is located. Should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. Should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. Should conform to RFC1035. - */ - public ApplyUpdatesToInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group, should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group, should conform to RFC1035. */ - public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public ApplyUpdatesToInstances set(String parameterName, Object value) { - return (ApplyUpdatesToInstances) super.set(parameterName, value); - } - } - /** - * Creates instances with per-instance configurations in this managed instance group. Instances are - * created using the current instance template. Thecreate instances operation is marked DONE if - * thecreateInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of thecreating or actions with the listmanagedinstances method. - * - * Create a request for the method "instanceGroupManagers.createInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersCreateInstancesRequest} - * @return the request - */ - public CreateInstances createInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { - CreateInstances result = new CreateInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class CreateInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates instances with per-instance configurations in this managed instance group. Instances - * are created using the current instance template. Thecreate instances operation is marked DONE - * if thecreateInstances request is successful. The underlying actions take additional time. You - * must separately verify the status of thecreating or actions with the listmanagedinstances - * method. - * - * Create a request for the method "instanceGroupManagers.createInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. - *

{@link CreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersCreateInstancesRequest} - * @since 1.13 - */ - protected CreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersCreateInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); - } - - @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); - } - - @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); - } - - @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); - } - - @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); - } - - @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); - } - - @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); - } - - @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); - } - - @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); - } - - @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) 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 CreateInstances 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 thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public CreateInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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. - * - * 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. - - 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. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public CreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); - } - } - /** - * Deletes the specified managed instance group and all of the instances in that group. Note that - * the instance group must not belong to a backend service. Read Deleting an instance group for more - * information. - * - * Create a request for the method "instanceGroupManagers.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - Delete result = new Delete(project, zone, instanceGroupManager); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified managed instance group and all of the instances in that group. Note that - * the instance group must not belong to a backend service. Read Deleting an instance group for - * more information. - * - * Create a request for the method "instanceGroupManagers.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group to delete. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group to delete. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group for immediate deletion. The instances - * are also removed from any target pools of which they were a member. This method reduces - * thetargetSize of the managed instance group by the number of instances that you delete. This - * operation is marked as DONE when the action is scheduled even if the instances are still being - * deleted. You must separately verify the status of the deleting action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.deleteInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersDeleteInstancesRequest} - * @return the request - */ - public DeleteInstances deleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException { - DeleteInstances result = new DeleteInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class DeleteInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group for immediate deletion. The - * instances are also removed from any target pools of which they were a member. This method - * reduces thetargetSize of the managed instance group by the number of instances that you delete. - * This operation is marked as DONE when the action is scheduled even if the instances are still - * being deleted. You must separately verify the status of the deleting action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.deleteInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. - *

{@link DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersDeleteInstancesRequest} - * @since 1.13 - */ - protected DeleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersDeleteInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); - } - - @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); - } - - @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); - } - - @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); - } - - @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); - } - - @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); - } - - @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); - } - - @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) 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 DeleteInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public DeleteInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - public DeleteInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 DeleteInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); - } - } - /** - * Deletes selected per-instance configurations for the managed instance group. - * - * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance - group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersDeletePerInstanceConfigsReq} - * @return the request - */ - public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersDeletePerInstanceConfigsReq content) throws java.io.IOException { - DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class DeletePerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes selected per-instance configurations for the managed instance group. - * - * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv - * ices.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 thezone - where the managed instance - group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersDeletePerInstanceConfigsReq} - * @since 1.13 - */ - protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersDeletePerInstanceConfigsReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); - } - - @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); - } - - @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); - } - - @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); - } - - @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) 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 DeletePerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public DeletePerInstanceConfigs setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); - } - } - /** - * Returns all of the details about the specified managed instance group. - * - * Create a request for the method "instanceGroupManagers.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 zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - Get result = new Get(project, zone, instanceGroupManager); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns all of the details about the specified managed instance group. - * - * Create a request for the method "instanceGroupManagers.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 zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManager.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * The name of thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a managed instance group using the information that you specify in the request. After the - * group is created, instances in the group are created using the specified instance template. This - * operation is marked as DONE when the group is created even if the instances in the group have not - * yet been created. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support - * if you need an increase in this limit. - * - * Create a request for the method "instanceGroupManagers.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where you want to create the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstanceGroupManager content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a managed instance group using the information that you specify in the request. After - * the group is created, instances in the group are created using the specified instance template. - * This operation is marked as DONE when the group is created even if the instances in the group - * have not yet been created. You must separately verify the status of the individual instances - * with thelistmanagedinstances method. - * - * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud - * Support if you need an increase in this limit. - * - * Create a request for the method "instanceGroupManagers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 - where you want to create the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstanceGroupManager content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 where you want to create the managed instance group. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where you want to create the managed instance group. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where you want to create the managed instance group. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of managed instance groups that are contained within the specified project and - * zone. - * - * Create a request for the method "instanceGroupManagers.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 thezone where the managed - instance group is located. - * @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}/instanceGroupManagers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of managed instance groups that are contained within the specified project and - * zone. - * - * Create a request for the method "instanceGroupManagers.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 thezone where the managed - instance group is located. - * @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.preview.model.InstanceGroupManagerList.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public List setZone(java.lang.String zone) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists all errors thrown by actions on instances for a given managed instance group. The filter - * and orderBy query parameters are not supported. - * - * Create a request for the method "instanceGroupManagers.listErrors". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - * @return the request - */ - public ListErrors listErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - ListErrors result = new ListErrors(project, zone, instanceGroupManager); - initialize(result); - return result; - } - - public class ListErrors extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all errors thrown by actions on instances for a given managed instance group. The filter - * and orderBy query parameters are not supported. - * - * Create a request for the method "instanceGroupManagers.listErrors". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

- * {@link - * ListErrors#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 thezone where the managed - instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - * @since 1.13 - */ - protected ListErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagersListErrorsResponse.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); - } - - @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); - } - - @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); - } - - @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); - } - - @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); - } - - @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); - } - - @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); - } - - @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); - } - - @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); - } - - @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) 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 ListErrors 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 thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public ListErrors setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035, or an unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035, - or an unsigned long integer: must match regexp pattern: - (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035, or an unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ - public ListErrors setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ListErrors 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 ListErrors 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 ListErrors 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 ListErrors setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListErrors set(String parameterName, Object value) { - return (ListErrors) super.set(parameterName, value); - } - } - /** - * Lists all of the instances in the managed instance group. Each instance in the list has a - * currentAction, which indicates the action that the managed instance group is performing on the - * instance. For example, if the group is still creating an instance, the currentAction is CREATING. - * If a previous action failed, the list displays the errors for that failed action. The orderBy - * query parameter is not supported. The `pageToken` query parameter is supported only if the - * group's `listManagedInstancesResults` field is set to `PAGINATED`. - * - * Create a request for the method "instanceGroupManagers.listManagedInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @return the request - */ - public ListManagedInstances listManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - ListManagedInstances result = new ListManagedInstances(project, zone, instanceGroupManager); - initialize(result); - return result; - } - - public class ListManagedInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all of the instances in the managed instance group. Each instance in the list has a - * currentAction, which indicates the action that the managed instance group is performing on the - * instance. For example, if the group is still creating an instance, the currentAction is - * CREATING. If a previous action failed, the list displays the errors for that failed action. The - * orderBy query parameter is not supported. The `pageToken` query parameter is supported only if - * the group's `listManagedInstancesResults` field is set to `PAGINATED`. - * - * Create a request for the method "instanceGroupManagers.listManagedInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote - * operation.

{@link ListManagedInstances#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 thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @since 1.13 - */ - protected ListManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagersListManagedInstancesResponse.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListManagedInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ListManagedInstances setAccessToken(java.lang.String accessToken) { - return (ListManagedInstances) super.setAccessToken(accessToken); - } - - @Override - public ListManagedInstances setAlt(java.lang.String alt) { - return (ListManagedInstances) super.setAlt(alt); - } - - @Override - public ListManagedInstances setCallback(java.lang.String callback) { - return (ListManagedInstances) super.setCallback(callback); - } - - @Override - public ListManagedInstances setFields(java.lang.String fields) { - return (ListManagedInstances) super.setFields(fields); - } - - @Override - public ListManagedInstances setKey(java.lang.String key) { - return (ListManagedInstances) super.setKey(key); - } - - @Override - public ListManagedInstances setOauthToken(java.lang.String oauthToken) { - return (ListManagedInstances) super.setOauthToken(oauthToken); - } - - @Override - public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListManagedInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { - return (ListManagedInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ListManagedInstances setUploadType(java.lang.String uploadType) { - return (ListManagedInstances) super.setUploadType(uploadType); - } - - @Override - public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListManagedInstances setUserIp(java.lang.String userIp) { - return (ListManagedInstances) 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 ListManagedInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public ListManagedInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListManagedInstances set(String parameterName, Object value) { - return (ListManagedInstances) super.set(parameterName, value); - } - } - /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy - * query parameter is not supported. - * - * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @return the request - */ - public ListPerInstanceConfigs listPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - ListPerInstanceConfigs result = new ListPerInstanceConfigs(project, zone, instanceGroupManager); - initialize(result); - return result; - } - - public class ListPerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all of the per-instance configurations defined for the managed instance group. The - * orderBy query parameter is not supported. - * - * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link ListPerInstanceConfigs#initialize(com.google.api.client.googleapis.servic - * es.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 thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @since 1.13 - */ - protected ListPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagersListPerInstanceConfigsResp.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (ListPerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public ListPerInstanceConfigs setAlt(java.lang.String alt) { - return (ListPerInstanceConfigs) super.setAlt(alt); - } - - @Override - public ListPerInstanceConfigs setCallback(java.lang.String callback) { - return (ListPerInstanceConfigs) super.setCallback(callback); - } - - @Override - public ListPerInstanceConfigs setFields(java.lang.String fields) { - return (ListPerInstanceConfigs) super.setFields(fields); - } - - @Override - public ListPerInstanceConfigs setKey(java.lang.String key) { - return (ListPerInstanceConfigs) super.setKey(key); - } - - @Override - public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (ListPerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (ListPerInstanceConfigs) 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 ListPerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public ListPerInstanceConfigs setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. It should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. It should conform to RFC1035. */ - public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListPerInstanceConfigs set(String parameterName, Object value) { - return (ListPerInstanceConfigs) super.set(parameterName, value); - } - } - /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is patched even if the instances in the group are - * still in the process of being patched. You must separately verify the status of the individual - * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses - * theJSON merge patch format and processing rules. - * - * If you update your group to specify a new template or instance configuration, it's possible that - * your intended specification for each VM in the group is different from the current state of that - * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in - * a MIG. - * - * Create a request for the method "instanceGroupManagers.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 Project ID for this request. - * @param zone The name of the zone where - you want to create the managed instance group. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManager content) throws java.io.IOException { - Patch result = new Patch(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is patched even if the instances in the group are - * still in the process of being patched. You must separately verify the status of the individual - * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses - * theJSON merge patch format and processing rules. - * - * If you update your group to specify a new template or instance configuration, it's possible - * that your intended specification for each VM in the group is different from the current state - * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating - * instances in a MIG. - * - * Create a request for the method "instanceGroupManagers.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 Project ID for this request. - * @param zone The name of the zone where - you want to create the managed instance group. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManager content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 where you want to create the managed instance group. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where you want to create the managed instance group. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where you want to create the managed instance group. - */ - public Patch setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the instance group manager. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the instance group manager. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the instance group manager. */ - public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Inserts or patches per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersPatchPerInstanceConfigsReq} - * @return the request - */ - public PatchPerInstanceConfigs patchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersPatchPerInstanceConfigsReq content) throws java.io.IOException { - PatchPerInstanceConfigs result = new PatchPerInstanceConfigs(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class PatchPerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Inserts or patches per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link PatchPerInstanceConfigs#initialize(com.google.api.client.googleapis.servi - * ces.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 thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersPatchPerInstanceConfigsReq} - * @since 1.13 - */ - protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersPatchPerInstanceConfigsReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public PatchPerInstanceConfigs setAlt(java.lang.String alt) { - return (PatchPerInstanceConfigs) super.setAlt(alt); - } - - @Override - public PatchPerInstanceConfigs setCallback(java.lang.String callback) { - return (PatchPerInstanceConfigs) super.setCallback(callback); - } - - @Override - public PatchPerInstanceConfigs setFields(java.lang.String fields) { - return (PatchPerInstanceConfigs) super.setFields(fields); - } - - @Override - public PatchPerInstanceConfigs setKey(java.lang.String key) { - return (PatchPerInstanceConfigs) super.setKey(key); - } - - @Override - public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (PatchPerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (PatchPerInstanceConfigs) 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 PatchPerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public PatchPerInstanceConfigs setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 PatchPerInstanceConfigs setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchPerInstanceConfigs set(String parameterName, Object value) { - return (PatchPerInstanceConfigs) super.set(parameterName, value); - } - } - /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. Each - * instance is recreated using the group's current configuration. This operation is marked as DONE - * when the flag is set even if the instances have not yet been recreated. You must separately - * verify the status of each instance by checking itscurrentAction field; for more information, see - * Checking the status of managed instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.recreateInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersRecreateInstancesRequest} - * @return the request - */ - public RecreateInstances recreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersRecreateInstancesRequest content) throws java.io.IOException { - RecreateInstances result = new RecreateInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class RecreateInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. - * Each instance is recreated using the group's current configuration. This operation is marked as - * DONE when the flag is set even if the instances have not yet been recreated. You must - * separately verify the status of each instance by checking itscurrentAction field; for more - * information, see Checking the status of managed instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.recreateInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. - *

{@link RecreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersRecreateInstancesRequest} - * @since 1.13 - */ - protected RecreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersRecreateInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (RecreateInstances) super.set$Xgafv($Xgafv); - } - - @Override - public RecreateInstances setAccessToken(java.lang.String accessToken) { - return (RecreateInstances) super.setAccessToken(accessToken); - } - - @Override - public RecreateInstances setAlt(java.lang.String alt) { - return (RecreateInstances) super.setAlt(alt); - } - - @Override - public RecreateInstances setCallback(java.lang.String callback) { - return (RecreateInstances) super.setCallback(callback); - } - - @Override - public RecreateInstances setFields(java.lang.String fields) { - return (RecreateInstances) super.setFields(fields); - } - - @Override - public RecreateInstances setKey(java.lang.String key) { - return (RecreateInstances) super.setKey(key); - } - - @Override - public RecreateInstances setOauthToken(java.lang.String oauthToken) { - return (RecreateInstances) super.setOauthToken(oauthToken); - } - - @Override - public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RecreateInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public RecreateInstances setQuotaUser(java.lang.String quotaUser) { - return (RecreateInstances) super.setQuotaUser(quotaUser); - } - - @Override - public RecreateInstances setUploadType(java.lang.String uploadType) { - return (RecreateInstances) super.setUploadType(uploadType); - } - - @Override - public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RecreateInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RecreateInstances setUserIp(java.lang.String userIp) { - return (RecreateInstances) 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 RecreateInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public RecreateInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance recreation even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance recreation even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance recreation even if it's configured for - * the instances. - */ - public RecreateInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance recreation even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 RecreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RecreateInstances set(String parameterName, Object value) { - return (RecreateInstances) super.set(parameterName, value); - } - } - /** - * Resizes the managed instance group. If you increase the size, the group creates new instances - * using the current instance template. If you decrease the size, the group deletes instances. The - * resize operation is markedDONE when the resize actions are scheduled even if the group has not - * yet added or deleted any instances. You must separately verify the status of the creating or - * deleting actions with thelistmanagedinstances method. - * - * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. - * The group takes into account some VM attributes when making the selection including: - * - * + The status of the VM instance. + The health of the VM instance. + The instance template version - * the VM is based on. + For regional managed instance groups, the location of the VM instance. - * - * This list is subject to change. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * Create a request for the method "instanceGroupManagers.resize". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param size The number of running instances that the managed instance group should - maintain at any given time. - * The group automatically adds or removes - instances to maintain the number of instances - * specified by this parameter. - * @return the request - */ - public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) throws java.io.IOException { - Resize result = new Resize(project, zone, instanceGroupManager, size); - initialize(result); - return result; - } - - public class Resize extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Resizes the managed instance group. If you increase the size, the group creates new instances - * using the current instance template. If you decrease the size, the group deletes instances. The - * resize operation is markedDONE when the resize actions are scheduled even if the group has not - * yet added or deleted any instances. You must separately verify the status of the creating or - * deleting actions with thelistmanagedinstances method. - * - * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. - * The group takes into account some VM attributes when making the selection including: - * - * + The status of the VM instance. + The health of the VM instance. + The instance template - * version the VM is based on. + For regional managed instance groups, the location of the VM - * instance. - * - * This list is subject to change. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * Create a request for the method "instanceGroupManagers.resize". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link - * Resize#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 thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param size The number of running instances that the managed instance group should - maintain at any given time. - * The group automatically adds or removes - instances to maintain the number of instances - * specified by this parameter. - * @since 1.13 - */ - protected Resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); - } - - @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); - } - - @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); - } - - @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); - } - - @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); - } - - @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); - } - - @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); - } - - @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); - } - - @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); - } - - @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) 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 Resize 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public Resize setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The number of running instances that the managed instance group should maintain at any - * given time. The group automatically adds or removes instances to maintain the number of - * instances specified by this parameter. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** The number of running instances that the managed instance group should maintain at any given time. - The group automatically adds or removes instances to maintain the number of instances specified by - this parameter. - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * The number of running instances that the managed instance group should maintain at any - * given time. The group automatically adds or removes instances to maintain the number of - * instances specified by this parameter. - */ - public Resize setSize(java.lang.Integer size) { - this.size = size; - 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 Resize setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be resumed. This method increases - * thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number - * of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances - * request is successful. The underlying actions take additional time. You must separately verify - * the status of theRESUMING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are suspended. For example, if an instance - * was previously suspended using the suspendInstances method, it can be resumed using the - * resumeInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are resumed. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.resumeInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersResumeInstancesRequest} - * @return the request - */ - public ResumeInstances resumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersResumeInstancesRequest content) throws java.io.IOException { - ResumeInstances result = new ResumeInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class ResumeInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be resumed. This method - * increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by - * the number of instances that you resume. The resumeInstances operation is marked DONE if the - * resumeInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of theRESUMING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are suspended. For example, if an instance - * was previously suspended using the suspendInstances method, it can be resumed using the - * resumeInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are resumed. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.resumeInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. - *

{@link ResumeInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersResumeInstancesRequest} - * @since 1.13 - */ - protected ResumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersResumeInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { - return (ResumeInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ResumeInstances setAccessToken(java.lang.String accessToken) { - return (ResumeInstances) super.setAccessToken(accessToken); - } - - @Override - public ResumeInstances setAlt(java.lang.String alt) { - return (ResumeInstances) super.setAlt(alt); - } - - @Override - public ResumeInstances setCallback(java.lang.String callback) { - return (ResumeInstances) super.setCallback(callback); - } - - @Override - public ResumeInstances setFields(java.lang.String fields) { - return (ResumeInstances) super.setFields(fields); - } - - @Override - public ResumeInstances setKey(java.lang.String key) { - return (ResumeInstances) super.setKey(key); - } - - @Override - public ResumeInstances setOauthToken(java.lang.String oauthToken) { - return (ResumeInstances) super.setOauthToken(oauthToken); - } - - @Override - public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResumeInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ResumeInstances setQuotaUser(java.lang.String quotaUser) { - return (ResumeInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ResumeInstances setUploadType(java.lang.String uploadType) { - return (ResumeInstances) super.setUploadType(uploadType); - } - - @Override - public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ResumeInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ResumeInstances setUserIp(java.lang.String userIp) { - return (ResumeInstances) 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 ResumeInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public ResumeInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ResumeInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public ResumeInstances set(String parameterName, Object value) { - return (ResumeInstances) super.set(parameterName, value); - } - } - /** - * Specifies the instance template to use when creating new instances in this group. The templates - * for existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * - * Create a request for the method "instanceGroupManagers.setInstanceTemplate". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersSetInstanceTemplateRequest} - * @return the request - */ - public SetInstanceTemplate setInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersSetInstanceTemplateRequest content) throws java.io.IOException { - SetInstanceTemplate result = new SetInstanceTemplate(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class SetInstanceTemplate extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Specifies the instance template to use when creating new instances in this group. The templates - * for existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * - * Create a request for the method "instanceGroupManagers.setInstanceTemplate". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote - * operation.

{@link SetInstanceTemplate#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 thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersSetInstanceTemplateRequest} - * @since 1.13 - */ - protected SetInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersSetInstanceTemplateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetInstanceTemplate) super.set$Xgafv($Xgafv); - } - - @Override - public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { - return (SetInstanceTemplate) super.setAccessToken(accessToken); - } - - @Override - public SetInstanceTemplate setAlt(java.lang.String alt) { - return (SetInstanceTemplate) super.setAlt(alt); - } - - @Override - public SetInstanceTemplate setCallback(java.lang.String callback) { - return (SetInstanceTemplate) super.setCallback(callback); - } - - @Override - public SetInstanceTemplate setFields(java.lang.String fields) { - return (SetInstanceTemplate) super.setFields(fields); - } - - @Override - public SetInstanceTemplate setKey(java.lang.String key) { - return (SetInstanceTemplate) super.setKey(key); - } - - @Override - public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { - return (SetInstanceTemplate) super.setOauthToken(oauthToken); - } - - @Override - public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetInstanceTemplate) super.setQuotaUser(quotaUser); - } - - @Override - public SetInstanceTemplate setUploadType(java.lang.String uploadType) { - return (SetInstanceTemplate) super.setUploadType(uploadType); - } - - @Override - public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetInstanceTemplate setUserIp(java.lang.String userIp) { - return (SetInstanceTemplate) 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 SetInstanceTemplate 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public SetInstanceTemplate setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 SetInstanceTemplate setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetInstanceTemplate set(String parameterName, Object value) { - return (SetInstanceTemplate) super.set(parameterName, value); - } - } - /** - * Modifies the target pools to which all instances in this managed instance group are assigned. The - * target pools automatically apply to all of the instances in the managed instance group. This - * operation is markedDONE when you make the request even if the instances have not yet been added - * to their target pools. The change might take some time to apply to all of the instances in the - * group depending on the size of the group. - * - * Create a request for the method "instanceGroupManagers.setTargetPools". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersSetTargetPoolsRequest} - * @return the request - */ - public SetTargetPools setTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersSetTargetPoolsRequest content) throws java.io.IOException { - SetTargetPools result = new SetTargetPools(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class SetTargetPools extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Modifies the target pools to which all instances in this managed instance group are assigned. - * The target pools automatically apply to all of the instances in the managed instance group. - * This operation is markedDONE when you make the request even if the instances have not yet been - * added to their target pools. The change might take some time to apply to all of the instances - * in the group depending on the size of the group. - * - * Create a request for the method "instanceGroupManagers.setTargetPools". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. - *

{@link SetTargetPools#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersSetTargetPoolsRequest} - * @since 1.13 - */ - protected SetTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersSetTargetPoolsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { - return (SetTargetPools) super.set$Xgafv($Xgafv); - } - - @Override - public SetTargetPools setAccessToken(java.lang.String accessToken) { - return (SetTargetPools) super.setAccessToken(accessToken); - } - - @Override - public SetTargetPools setAlt(java.lang.String alt) { - return (SetTargetPools) super.setAlt(alt); - } - - @Override - public SetTargetPools setCallback(java.lang.String callback) { - return (SetTargetPools) super.setCallback(callback); - } - - @Override - public SetTargetPools setFields(java.lang.String fields) { - return (SetTargetPools) super.setFields(fields); - } - - @Override - public SetTargetPools setKey(java.lang.String key) { - return (SetTargetPools) super.setKey(key); - } - - @Override - public SetTargetPools setOauthToken(java.lang.String oauthToken) { - return (SetTargetPools) super.setOauthToken(oauthToken); - } - - @Override - public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTargetPools) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTargetPools setQuotaUser(java.lang.String quotaUser) { - return (SetTargetPools) super.setQuotaUser(quotaUser); - } - - @Override - public SetTargetPools setUploadType(java.lang.String uploadType) { - return (SetTargetPools) super.setUploadType(uploadType); - } - - @Override - public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTargetPools) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTargetPools setUserIp(java.lang.String userIp) { - return (SetTargetPools) 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 SetTargetPools 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public SetTargetPools setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public SetTargetPools setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 SetTargetPools setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetTargetPools set(String parameterName, Object value) { - return (SetTargetPools) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be started. This method increases - * thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of - * instances that you start. The startInstances operation is marked DONE if the startInstances - * request is successful. The underlying actions take additional time. You must separately verify - * the status of theSTARTING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are stopped. For example, if an instance was - * previously stopped using the stopInstances method, it can be started using the startInstances - * method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are started. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.startInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersStartInstancesRequest} - * @return the request - */ - public StartInstances startInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersStartInstancesRequest content) throws java.io.IOException { - StartInstances result = new StartInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class StartInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be started. This method - * increases thetargetSize and decreases the targetStoppedSize of the managed instance group by - * the number of instances that you start. The startInstances operation is marked DONE if the - * startInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of theSTARTING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are stopped. For example, if an instance - * was previously stopped using the stopInstances method, it can be started using the - * startInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are started. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.startInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. - *

{@link StartInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersStartInstancesRequest} - * @since 1.13 - */ - protected StartInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersStartInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StartInstances set$Xgafv(java.lang.String $Xgafv) { - return (StartInstances) super.set$Xgafv($Xgafv); - } - - @Override - public StartInstances setAccessToken(java.lang.String accessToken) { - return (StartInstances) super.setAccessToken(accessToken); - } - - @Override - public StartInstances setAlt(java.lang.String alt) { - return (StartInstances) super.setAlt(alt); - } - - @Override - public StartInstances setCallback(java.lang.String callback) { - return (StartInstances) super.setCallback(callback); - } - - @Override - public StartInstances setFields(java.lang.String fields) { - return (StartInstances) super.setFields(fields); - } - - @Override - public StartInstances setKey(java.lang.String key) { - return (StartInstances) super.setKey(key); - } - - @Override - public StartInstances setOauthToken(java.lang.String oauthToken) { - return (StartInstances) super.setOauthToken(oauthToken); - } - - @Override - public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public StartInstances setQuotaUser(java.lang.String quotaUser) { - return (StartInstances) super.setQuotaUser(quotaUser); - } - - @Override - public StartInstances setUploadType(java.lang.String uploadType) { - return (StartInstances) super.setUploadType(uploadType); - } - - @Override - public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StartInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StartInstances setUserIp(java.lang.String userIp) { - return (StartInstances) 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 StartInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public StartInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 StartInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StartInstances set(String parameterName, Object value) { - return (StartInstances) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetStoppedSize of the managed instance group by the number of instances that you - * stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The - * underlying actions take additional time. You must separately verify the status of theSTOPPING - * action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until - * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was - * created). This delay gives your application time to set itself up and initialize on the instance. - * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method - * is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. - * - * Stopped instances can be started using the startInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.stopInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersStopInstancesRequest} - * @return the request - */ - public StopInstances stopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersStopInstancesRequest content) throws java.io.IOException { - StopInstances result = new StopInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class StopInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetStoppedSize of the managed instance group by the number of instances that - * you stop. The stopInstances operation is marked DONE if the stopInstances request is - * successful. The underlying actions take additional time. You must separately verify the status - * of theSTOPPING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance - * was created). This delay gives your application time to set itself up and initialize on the - * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when - * this method is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * stopped. - * - * Stopped instances can be started using the startInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.stopInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation.

- * {@link StopInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

- * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersStopInstancesRequest} - * @since 1.13 - */ - protected StopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersStopInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StopInstances set$Xgafv(java.lang.String $Xgafv) { - return (StopInstances) super.set$Xgafv($Xgafv); - } - - @Override - public StopInstances setAccessToken(java.lang.String accessToken) { - return (StopInstances) super.setAccessToken(accessToken); - } - - @Override - public StopInstances setAlt(java.lang.String alt) { - return (StopInstances) super.setAlt(alt); - } - - @Override - public StopInstances setCallback(java.lang.String callback) { - return (StopInstances) super.setCallback(callback); - } - - @Override - public StopInstances setFields(java.lang.String fields) { - return (StopInstances) super.setFields(fields); - } - - @Override - public StopInstances setKey(java.lang.String key) { - return (StopInstances) super.setKey(key); - } - - @Override - public StopInstances setOauthToken(java.lang.String oauthToken) { - return (StopInstances) super.setOauthToken(oauthToken); - } - - @Override - public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public StopInstances setQuotaUser(java.lang.String quotaUser) { - return (StopInstances) super.setQuotaUser(quotaUser); - } - - @Override - public StopInstances setUploadType(java.lang.String uploadType) { - return (StopInstances) super.setUploadType(uploadType); - } - - @Override - public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StopInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StopInstances setUserIp(java.lang.String userIp) { - return (StopInstances) 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 StopInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public StopInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public StopInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance stopping even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance stopping even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance stopping even if it's configured for - * the instances. - */ - public StopInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance stopping even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 StopInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StopInstances set(String parameterName, Object value) { - return (StopInstances) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be immediately suspended. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetSuspendedSize of the managed instance group by the number of instances that - * you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is - * successful. The underlying actions take additional time. You must separately verify the status of - * theSUSPENDING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was - * created). This delay gives your application time to set itself up and initialize on the instance. - * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method - * is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.suspendInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersSuspendInstancesRequest} - * @return the request - */ - public SuspendInstances suspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersSuspendInstancesRequest content) throws java.io.IOException { - SuspendInstances result = new SuspendInstances(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class SuspendInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be immediately suspended. You - * can only specify instances that are running in this request. This method reduces thetargetSize - * and increases the targetSuspendedSize of the managed instance group by the number of instances - * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request - * is successful. The underlying actions take additional time. You must separately verify the - * status of theSUSPENDING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance - * was created). This delay gives your application time to set itself up and initialize on the - * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when - * this method is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.suspendInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. - *

{@link SuspendInstances#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 zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersSuspendInstancesRequest} - * @since 1.13 - */ - protected SuspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersSuspendInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { - return (SuspendInstances) super.set$Xgafv($Xgafv); - } - - @Override - public SuspendInstances setAccessToken(java.lang.String accessToken) { - return (SuspendInstances) super.setAccessToken(accessToken); - } - - @Override - public SuspendInstances setAlt(java.lang.String alt) { - return (SuspendInstances) super.setAlt(alt); - } - - @Override - public SuspendInstances setCallback(java.lang.String callback) { - return (SuspendInstances) super.setCallback(callback); - } - - @Override - public SuspendInstances setFields(java.lang.String fields) { - return (SuspendInstances) super.setFields(fields); - } - - @Override - public SuspendInstances setKey(java.lang.String key) { - return (SuspendInstances) super.setKey(key); - } - - @Override - public SuspendInstances setOauthToken(java.lang.String oauthToken) { - return (SuspendInstances) super.setOauthToken(oauthToken); - } - - @Override - public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SuspendInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public SuspendInstances setQuotaUser(java.lang.String quotaUser) { - return (SuspendInstances) super.setQuotaUser(quotaUser); - } - - @Override - public SuspendInstances setUploadType(java.lang.String uploadType) { - return (SuspendInstances) super.setUploadType(uploadType); - } - - @Override - public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (SuspendInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SuspendInstances setUserIp(java.lang.String userIp) { - return (SuspendInstances) 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 SuspendInstances 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 thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public SuspendInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 SuspendInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SuspendInstances set(String parameterName, Object value) { - return (SuspendInstances) super.set(parameterName, value); - } - } - /** - * Inserts or updates per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} - * @return the request - */ - public UpdatePerInstanceConfigs updatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersUpdatePerInstanceConfigsReq content) throws java.io.IOException { - UpdatePerInstanceConfigs result = new UpdatePerInstanceConfigs(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class UpdatePerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Inserts or updates per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link UpdatePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv - * ices.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 thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} - * @since 1.13 - */ - protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagersUpdatePerInstanceConfigsReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { - return (UpdatePerInstanceConfigs) super.setAlt(alt); - } - - @Override - public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { - return (UpdatePerInstanceConfigs) super.setCallback(callback); - } - - @Override - public UpdatePerInstanceConfigs setFields(java.lang.String fields) { - return (UpdatePerInstanceConfigs) super.setFields(fields); - } - - @Override - public UpdatePerInstanceConfigs setKey(java.lang.String key) { - return (UpdatePerInstanceConfigs) super.setKey(key); - } - - @Override - public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (UpdatePerInstanceConfigs) 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 UpdatePerInstanceConfigs 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 thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public UpdatePerInstanceConfigs setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdatePerInstanceConfigs set(String parameterName, Object value) { - return (UpdatePerInstanceConfigs) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InstanceGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceGroups.List request = compute.instanceGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceGroups instanceGroups() { - return new InstanceGroups(); - } - - /** - * The "instanceGroups" collection of methods. - */ - public class InstanceGroups { - - /** - * Adds a list of instances to the specified instance group. All of the instances in the instance - * group must be in the same network/subnetwork. Read Adding instances for more information. - * - * Create a request for the method "instanceGroups.addInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where you are adding instances. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsAddInstancesRequest} - * @return the request - */ - public AddInstances addInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsAddInstancesRequest content) throws java.io.IOException { - AddInstances result = new AddInstances(project, zone, instanceGroup, content); - initialize(result); - return result; - } - - public class AddInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Adds a list of instances to the specified instance group. All of the instances in the instance - * group must be in the same network/subnetwork. Read Adding instances for more information. - * - * Create a request for the method "instanceGroups.addInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation.

- * {@link - * AddInstances#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 - where the instance group is located. - * @param instanceGroup The name of the instance group where you are adding instances. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsAddInstancesRequest} - * @since 1.13 - */ - protected AddInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsAddInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddInstances set$Xgafv(java.lang.String $Xgafv) { - return (AddInstances) super.set$Xgafv($Xgafv); - } - - @Override - public AddInstances setAccessToken(java.lang.String accessToken) { - return (AddInstances) super.setAccessToken(accessToken); - } - - @Override - public AddInstances setAlt(java.lang.String alt) { - return (AddInstances) super.setAlt(alt); - } - - @Override - public AddInstances setCallback(java.lang.String callback) { - return (AddInstances) super.setCallback(callback); - } - - @Override - public AddInstances setFields(java.lang.String fields) { - return (AddInstances) super.setFields(fields); - } - - @Override - public AddInstances setKey(java.lang.String key) { - return (AddInstances) super.setKey(key); - } - - @Override - public AddInstances setOauthToken(java.lang.String oauthToken) { - return (AddInstances) super.setOauthToken(oauthToken); - } - - @Override - public AddInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddInstances setQuotaUser(java.lang.String quotaUser) { - return (AddInstances) super.setQuotaUser(quotaUser); - } - - @Override - public AddInstances setUploadType(java.lang.String uploadType) { - return (AddInstances) super.setUploadType(uploadType); - } - - @Override - public AddInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AddInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddInstances setUserIp(java.lang.String userIp) { - return (AddInstances) 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 AddInstances 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 where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public AddInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the instance group where you are adding instances. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group where you are adding instances. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** The name of the instance group where you are adding instances. */ - public AddInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 AddInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddInstances set(String parameterName, Object value) { - return (AddInstances) super.set(parameterName, value); - } - } - /** - * Retrieves the list of instance groups and sorts them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instanceGroups.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/instanceGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of instance groups and sorts them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instanceGroups.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified instance group. The instances in the group are not deleted. Note that - * instance group must not belong to a backend service. Read Deleting an instance group for more - * information. - * - * Create a request for the method "instanceGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, instanceGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified instance group. The instances in the group are not deleted. Note that - * instance group must not belong to a backend service. Read Deleting an instance group for more - * information. - * - * Create a request for the method "instanceGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 - where the instance group is located. - * @param instanceGroup The name of the instance group to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the instance group to delete. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group to delete. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** The name of the instance group to delete. */ - public Delete setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified zonal instance group. Get a list of available zonal instance groups by - * making a list() request. - * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods - * instead. - * - * Create a request for the method "instanceGroups.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 zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { - Get result = new Get(project, zone, instanceGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified zonal instance group. Get a list of available zonal instance groups by - * making a list() request. - * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers - * methods instead. - * - * Create a request for the method "instanceGroups.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 zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroup.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."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * The name of the zone where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** The name of the instance group. */ - public Get setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an instance group in the specified project using the parameters that are included in the - * request. - * - * Create a request for the method "instanceGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where you want to create the instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstanceGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates an instance group in the specified project using the parameters that are included in - * the request. - * - * Create a request for the method "instanceGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 - where you want to create the instance group. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstanceGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 where you want to create the instance group. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where you want to create the instance group. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where you want to create the instance group. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of zonal instance group resources contained within the specified zone. - * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods - * instead. - * - * Create a request for the method "instanceGroups.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 thezone - where the instance group is located. - * @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}/instanceGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of zonal instance group resources contained within the specified zone. - * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers - * methods instead. - * - * Create a request for the method "instanceGroups.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 thezone - where the instance group is located. - * @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.preview.model.InstanceGroupList.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 thezone where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the instance group is located. - */ - public List setZone(java.lang.String zone) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the instances in the specified instance group. The orderBy query parameter is not - * supported. The filter query parameter is supported, but only for expressions that use `eq` - * (equal) or `ne` (not equal) operators. - * - * Create a request for the method "instanceGroups.listInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group from which you want to generate a list - of included instances. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsListInstancesRequest} - * @return the request - */ - public ListInstances listInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsListInstancesRequest content) throws java.io.IOException { - ListInstances result = new ListInstances(project, zone, instanceGroup, content); - initialize(result); - return result; - } - - public class ListInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the instances in the specified instance group. The orderBy query parameter is not - * supported. The filter query parameter is supported, but only for expressions that use `eq` - * (equal) or `ne` (not equal) operators. - * - * Create a request for the method "instanceGroups.listInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation.

- * {@link ListInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 - where the instance group is located. - * @param instanceGroup The name of the instance group from which you want to generate a list - of included instances. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsListInstancesRequest} - * @since 1.13 - */ - protected ListInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsListInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.InstanceGroupsListInstances.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."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ListInstances setAccessToken(java.lang.String accessToken) { - return (ListInstances) super.setAccessToken(accessToken); - } - - @Override - public ListInstances setAlt(java.lang.String alt) { - return (ListInstances) super.setAlt(alt); - } - - @Override - public ListInstances setCallback(java.lang.String callback) { - return (ListInstances) super.setCallback(callback); - } - - @Override - public ListInstances setFields(java.lang.String fields) { - return (ListInstances) super.setFields(fields); - } - - @Override - public ListInstances setKey(java.lang.String key) { - return (ListInstances) super.setKey(key); - } - - @Override - public ListInstances setOauthToken(java.lang.String oauthToken) { - return (ListInstances) super.setOauthToken(oauthToken); - } - - @Override - public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListInstances setQuotaUser(java.lang.String quotaUser) { - return (ListInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ListInstances setUploadType(java.lang.String uploadType) { - return (ListInstances) super.setUploadType(uploadType); - } - - @Override - public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListInstances setUserIp(java.lang.String userIp) { - return (ListInstances) 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 ListInstances 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 where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public ListInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the instance group from which you want to generate a list of included - * instances. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group from which you want to generate a list of included instances. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** - * The name of the instance group from which you want to generate a list of included - * instances. - */ - public ListInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 ListInstances 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 ListInstances 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 ListInstances 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 ListInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListInstances set(String parameterName, Object value) { - return (ListInstances) super.set(parameterName, value); - } - } - /** - * Removes one or more instances from the specified instance group, but does not delete those - * instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration before the VM instance is removed or deleted. - * - * Create a request for the method "instanceGroups.removeInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where the specified instances will be - removed. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsRemoveInstancesRequest} - * @return the request - */ - public RemoveInstances removeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsRemoveInstancesRequest content) throws java.io.IOException { - RemoveInstances result = new RemoveInstances(project, zone, instanceGroup, content); - initialize(result); - return result; - } - - public class RemoveInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Removes one or more instances from the specified instance group, but does not delete those - * instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration before the VM instance is removed or - * deleted. - * - * Create a request for the method "instanceGroups.removeInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. - *

{@link RemoveInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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 - where the instance group is located. - * @param instanceGroup The name of the instance group where the specified instances will be - removed. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsRemoveInstancesRequest} - * @since 1.13 - */ - protected RemoveInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsRemoveInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveInstances set$Xgafv(java.lang.String $Xgafv) { - return (RemoveInstances) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveInstances setAccessToken(java.lang.String accessToken) { - return (RemoveInstances) super.setAccessToken(accessToken); - } - - @Override - public RemoveInstances setAlt(java.lang.String alt) { - return (RemoveInstances) super.setAlt(alt); - } - - @Override - public RemoveInstances setCallback(java.lang.String callback) { - return (RemoveInstances) super.setCallback(callback); - } - - @Override - public RemoveInstances setFields(java.lang.String fields) { - return (RemoveInstances) super.setFields(fields); - } - - @Override - public RemoveInstances setKey(java.lang.String key) { - return (RemoveInstances) super.setKey(key); - } - - @Override - public RemoveInstances setOauthToken(java.lang.String oauthToken) { - return (RemoveInstances) super.setOauthToken(oauthToken); - } - - @Override - public RemoveInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveInstances setQuotaUser(java.lang.String quotaUser) { - return (RemoveInstances) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveInstances setUploadType(java.lang.String uploadType) { - return (RemoveInstances) super.setUploadType(uploadType); - } - - @Override - public RemoveInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveInstances setUserIp(java.lang.String userIp) { - return (RemoveInstances) 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 RemoveInstances 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 where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public RemoveInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the instance group where the specified instances will be removed. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group where the specified instances will be removed. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** - * The name of the instance group where the specified instances will be removed. - */ - public RemoveInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 RemoveInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveInstances set(String parameterName, Object value) { - return (RemoveInstances) super.set(parameterName, value); - } - } - /** - * Sets the named ports for the specified instance group. - * - * Create a request for the method "instanceGroups.setNamedPorts". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where the named ports are updated. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsSetNamedPortsRequest} - * @return the request - */ - public SetNamedPorts setNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsSetNamedPortsRequest content) throws java.io.IOException { - SetNamedPorts result = new SetNamedPorts(project, zone, instanceGroup, content); - initialize(result); - return result; - } - - public class SetNamedPorts extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the named ports for the specified instance group. - * - * Create a request for the method "instanceGroups.setNamedPorts". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation.

- * {@link SetNamedPorts#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 - where the instance group is located. - * @param instanceGroup The name of the instance group where the named ports are updated. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupsSetNamedPortsRequest} - * @since 1.13 - */ - protected SetNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.InstanceGroupsSetNamedPortsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { - return (SetNamedPorts) super.set$Xgafv($Xgafv); - } - - @Override - public SetNamedPorts setAccessToken(java.lang.String accessToken) { - return (SetNamedPorts) super.setAccessToken(accessToken); - } - - @Override - public SetNamedPorts setAlt(java.lang.String alt) { - return (SetNamedPorts) super.setAlt(alt); - } - - @Override - public SetNamedPorts setCallback(java.lang.String callback) { - return (SetNamedPorts) super.setCallback(callback); - } - - @Override - public SetNamedPorts setFields(java.lang.String fields) { - return (SetNamedPorts) super.setFields(fields); - } - - @Override - public SetNamedPorts setKey(java.lang.String key) { - return (SetNamedPorts) super.setKey(key); - } - - @Override - public SetNamedPorts setOauthToken(java.lang.String oauthToken) { - return (SetNamedPorts) super.setOauthToken(oauthToken); - } - - @Override - public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNamedPorts) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { - return (SetNamedPorts) super.setQuotaUser(quotaUser); - } - - @Override - public SetNamedPorts setUploadType(java.lang.String uploadType) { - return (SetNamedPorts) super.setUploadType(uploadType); - } - - @Override - public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetNamedPorts setUserIp(java.lang.String userIp) { - return (SetNamedPorts) 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 SetNamedPorts 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 where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public SetNamedPorts setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the instance group where the named ports are updated. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group where the named ports are updated. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** The name of the instance group where the named ports are updated. */ - public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 SetNamedPorts setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetNamedPorts set(String parameterName, Object value) { - return (SetNamedPorts) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "instanceGroups.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "instanceGroups.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InstanceSettings collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceSettings.List request = compute.instanceSettings().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceSettings instanceSettings() { - return new InstanceSettings(); - } - - /** - * The "instanceSettings" collection of methods. - */ - public class InstanceSettings { - - /** - * Get Instance settings. - * - * Create a request for the method "instanceSettings.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 zone Name of the zone for this request. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone) throws java.io.IOException { - Get result = new Get(project, zone); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Get Instance settings. - * - * Create a request for the method "instanceSettings.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 zone Name of the zone for this request. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceSettings.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Patch Instance settings - * - * Create a request for the method "instanceSettings.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 Project ID for this request. - * @param zone The zone scoping this request. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceSettings} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstanceSettings content) throws java.io.IOException { - Patch result = new Patch(project, zone, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Patch Instance settings - * - * Create a request for the method "instanceSettings.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 Project ID for this request. - * @param zone The zone scoping this request. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceSettings} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstanceSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 zone scoping this request. It should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The zone scoping this request. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The zone scoping this request. It should conform to RFC1035. */ - public Patch setZone(java.lang.String zone) { - this.zone = zone; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - 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 InstanceTemplates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceTemplates.List request = compute.instanceTemplates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceTemplates instanceTemplates() { - return new InstanceTemplates(); - } - - /** - * The "instanceTemplates" collection of methods. - */ - public class InstanceTemplates { - - /** - * Retrieves the list of all InstanceTemplates resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instanceTemplates.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/instanceTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all InstanceTemplates resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instanceTemplates.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceTemplateAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot be - * undone. It is not possible to delete templates that are already in use by a managed instance - * group. - * - * Create a request for the method "instanceTemplates.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param instanceTemplate The name of the instance template to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { - Delete result = new Delete(project, instanceTemplate); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANCE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot - * be undone. It is not possible to delete templates that are already in use by a managed instance - * group. - * - * Create a request for the method "instanceTemplates.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 instanceTemplate The name of the instance template to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String instanceTemplate) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 instance template to delete. */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** The name of the instance template to delete. - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** The name of the instance template to delete. */ - public Delete setInstanceTemplate(java.lang.String instanceTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instanceTemplate = instanceTemplate; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified instance template. - * - * Create a request for the method "instanceTemplates.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 instanceTemplate The name of the instance template. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { - Get result = new Get(project, instanceTemplate); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANCE_TEMPLATE_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 instance template. - * - * Create a request for the method "instanceTemplates.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 instanceTemplate The name of the instance template. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String instanceTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceTemplate.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** The name of the instance template. - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** The name of the instance template. */ - public Get setInstanceTemplate(java.lang.String instanceTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instanceTemplate = instanceTemplate; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "instanceTemplates.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "instanceTemplates.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates an instance template in the specified project using the data that is included in the - * request. If you are creating a new template to update an existing instance group, your new - * instance template must use the same network or, if applicable, the same subnetwork as the - * original template. - * - * Create a request for the method "instanceTemplates.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceTemplate} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.InstanceTemplate content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates an instance template in the specified project using the data that is included in the - * request. If you are creating a new template to update an existing instance group, your new - * instance template must use the same network or, if applicable, the same subnetwork as the - * original template. - * - * Create a request for the method "instanceTemplates.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.InstanceTemplate} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.InstanceTemplate content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of instance templates that are contained within the specified project. - * - * Create a request for the method "instanceTemplates.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of instance templates that are contained within the specified project. - * - * Create a request for the method "instanceTemplates.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceTemplateList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instanceTemplates.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instanceTemplates.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Instances collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Instances.List request = compute.instances().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Instances instances() { - return new Instances(); - } - - /** - * The "instances" collection of methods. - */ - public class Instances { - - /** - * Adds an access config to an instance's network interface. - * - * Create a request for the method "instances.addAccessConfig". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAccessConfig#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface to add to this instance. - * @param content the {@link com.google.api.services.compute.preview.model.AccessConfig} - * @return the request - */ - public AddAccessConfig addAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.preview.model.AccessConfig content) throws java.io.IOException { - AddAccessConfig result = new AddAccessConfig(project, zone, instance, networkInterface, content); - initialize(result); - return result; - } - - public class AddAccessConfig extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds an access config to an instance's network interface. - * - * Create a request for the method "instances.addAccessConfig". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAccessConfig#execute()} method to invoke the remote operation. - *

{@link AddAccessConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface to add to this instance. - * @param content the {@link com.google.api.services.compute.preview.model.AccessConfig} - * @since 1.13 - */ - protected AddAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.preview.model.AccessConfig content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddAccessConfig set$Xgafv(java.lang.String $Xgafv) { - return (AddAccessConfig) super.set$Xgafv($Xgafv); - } - - @Override - public AddAccessConfig setAccessToken(java.lang.String accessToken) { - return (AddAccessConfig) super.setAccessToken(accessToken); - } - - @Override - public AddAccessConfig setAlt(java.lang.String alt) { - return (AddAccessConfig) super.setAlt(alt); - } - - @Override - public AddAccessConfig setCallback(java.lang.String callback) { - return (AddAccessConfig) super.setCallback(callback); - } - - @Override - public AddAccessConfig setFields(java.lang.String fields) { - return (AddAccessConfig) super.setFields(fields); - } - - @Override - public AddAccessConfig setKey(java.lang.String key) { - return (AddAccessConfig) super.setKey(key); - } - - @Override - public AddAccessConfig setOauthToken(java.lang.String oauthToken) { - return (AddAccessConfig) super.setOauthToken(oauthToken); - } - - @Override - public AddAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAccessConfig) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddAccessConfig setQuotaUser(java.lang.String quotaUser) { - return (AddAccessConfig) super.setQuotaUser(quotaUser); - } - - @Override - public AddAccessConfig setUploadType(java.lang.String uploadType) { - return (AddAccessConfig) super.setUploadType(uploadType); - } - - @Override - public AddAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAccessConfig) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddAccessConfig setUserIp(java.lang.String userIp) { - return (AddAccessConfig) 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 AddAccessConfig 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 AddAccessConfig 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public AddAccessConfig setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** The name of the network interface to add to this instance. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface to add to this instance. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface to add to this instance. */ - public AddAccessConfig setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 AddAccessConfig setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddAccessConfig set(String parameterName, Object value) { - return (AddAccessConfig) super.set(parameterName, value); - } - } - /** - * Adds one dynamic network interface to an active instance. - * - * Create a request for the method "instances.addNetworkInterface". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkInterface} - * @return the request - */ - public AddNetworkInterface addNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.NetworkInterface content) throws java.io.IOException { - AddNetworkInterface result = new AddNetworkInterface(project, zone, instance, content); - initialize(result); - return result; - } - - public class AddNetworkInterface extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Adds one dynamic network interface to an active instance. - * - * Create a request for the method "instances.addNetworkInterface". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote - * operation.

{@link AddNetworkInterface#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. - * @param instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkInterface} - * @since 1.13 - */ - protected AddNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.NetworkInterface content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddNetworkInterface set$Xgafv(java.lang.String $Xgafv) { - return (AddNetworkInterface) super.set$Xgafv($Xgafv); - } - - @Override - public AddNetworkInterface setAccessToken(java.lang.String accessToken) { - return (AddNetworkInterface) super.setAccessToken(accessToken); - } - - @Override - public AddNetworkInterface setAlt(java.lang.String alt) { - return (AddNetworkInterface) super.setAlt(alt); - } - - @Override - public AddNetworkInterface setCallback(java.lang.String callback) { - return (AddNetworkInterface) super.setCallback(callback); - } - - @Override - public AddNetworkInterface setFields(java.lang.String fields) { - return (AddNetworkInterface) super.setFields(fields); - } - - @Override - public AddNetworkInterface setKey(java.lang.String key) { - return (AddNetworkInterface) super.setKey(key); - } - - @Override - public AddNetworkInterface setOauthToken(java.lang.String oauthToken) { - return (AddNetworkInterface) super.setOauthToken(oauthToken); - } - - @Override - public AddNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNetworkInterface) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddNetworkInterface setQuotaUser(java.lang.String quotaUser) { - return (AddNetworkInterface) super.setQuotaUser(quotaUser); - } - - @Override - public AddNetworkInterface setUploadType(java.lang.String uploadType) { - return (AddNetworkInterface) super.setUploadType(uploadType); - } - - @Override - public AddNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNetworkInterface) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddNetworkInterface setUserIp(java.lang.String userIp) { - return (AddNetworkInterface) 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 AddNetworkInterface 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 AddNetworkInterface 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; - } - - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an - unsigned long integer. - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - public AddNetworkInterface setInstance(java.lang.String instance) { - this.instance = instance; - 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 AddNetworkInterface setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddNetworkInterface set(String parameterName, Object value) { - return (AddNetworkInterface) super.set(parameterName, value); - } - } - /** - * Adds existing resource policies to an instance. You can only add one policy right now which will - * be applied to this instance for scheduling live migrations. - * - * Create a request for the method "instances.addResourcePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesAddResourcePoliciesRequest} - * @return the request - */ - public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesAddResourcePoliciesRequest content) throws java.io.IOException { - AddResourcePolicies result = new AddResourcePolicies(project, zone, instance, content); - initialize(result); - return result; - } - - public class AddResourcePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds existing resource policies to an instance. You can only add one policy right now which - * will be applied to this instance for scheduling live migrations. - * - * Create a request for the method "instances.addResourcePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote - * operation.

{@link AddResourcePolicies#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. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesAddResourcePoliciesRequest} - * @since 1.13 - */ - protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesAddResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); - } - - @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); - } - - @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); - } - - @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); - } - - @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); - } - - @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); - } - - @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); - } - - @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) 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 AddResourcePolicies 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 AddResourcePolicies 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public AddResourcePolicies setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 AddResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of all of the instances in your project across all regions and - * zones. - * - * The performance of this method degrades when a filter is specified on a project that has a very - * large number of instances. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instances.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/instances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of all of the instances in your project across all regions and - * zones. - * - * The performance of this method degrades when a filter is specified on a project that has a very - * large number of instances. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instances.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Attaches an existing Disk resource to an instance. You must first create the disk before you can - * attach it. It is not possible to create and attach a disk at the same time. For more information, - * readAdding a persistent disk to your instance. - * - * Create a request for the method "instances.attachDisk". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachDisk#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.AttachedDisk} - * @return the request - */ - public AttachDisk attachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.AttachedDisk content) throws java.io.IOException { - AttachDisk result = new AttachDisk(project, zone, instance, content); - initialize(result); - return result; - } - - public class AttachDisk extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/attachDisk"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Attaches an existing Disk resource to an instance. You must first create the disk before you - * can attach it. It is not possible to create and attach a disk at the same time. For more - * information, readAdding a persistent disk to your instance. - * - * Create a request for the method "instances.attachDisk". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachDisk#execute()} method to invoke the remote operation.

- * {@link - * AttachDisk#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. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.AttachedDisk} - * @since 1.13 - */ - protected AttachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.AttachedDisk content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AttachDisk set$Xgafv(java.lang.String $Xgafv) { - return (AttachDisk) super.set$Xgafv($Xgafv); - } - - @Override - public AttachDisk setAccessToken(java.lang.String accessToken) { - return (AttachDisk) super.setAccessToken(accessToken); - } - - @Override - public AttachDisk setAlt(java.lang.String alt) { - return (AttachDisk) super.setAlt(alt); - } - - @Override - public AttachDisk setCallback(java.lang.String callback) { - return (AttachDisk) super.setCallback(callback); - } - - @Override - public AttachDisk setFields(java.lang.String fields) { - return (AttachDisk) super.setFields(fields); - } - - @Override - public AttachDisk setKey(java.lang.String key) { - return (AttachDisk) super.setKey(key); - } - - @Override - public AttachDisk setOauthToken(java.lang.String oauthToken) { - return (AttachDisk) super.setOauthToken(oauthToken); - } - - @Override - public AttachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachDisk) super.setPrettyPrint(prettyPrint); - } - - @Override - public AttachDisk setQuotaUser(java.lang.String quotaUser) { - return (AttachDisk) super.setQuotaUser(quotaUser); - } - - @Override - public AttachDisk setUploadType(java.lang.String uploadType) { - return (AttachDisk) super.setUploadType(uploadType); - } - - @Override - public AttachDisk setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachDisk) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AttachDisk setUserIp(java.lang.String userIp) { - return (AttachDisk) 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 AttachDisk 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 AttachDisk 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public AttachDisk setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** - * Whether to force attach the regional disk even if it's currently attached to another - * instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceAttach; - - /** Whether to force attach the regional disk even if it's currently attached to another instance. If - you try to force attach a zonal disk to an instance, you will receive an error. - */ - public java.lang.Boolean getForceAttach() { - return forceAttach; - } - - /** - * Whether to force attach the regional disk even if it's currently attached to another - * instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - */ - public AttachDisk setForceAttach(java.lang.Boolean forceAttach) { - this.forceAttach = forceAttach; - 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 AttachDisk setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AttachDisk set(String parameterName, Object value) { - return (AttachDisk) super.set(parameterName, value); - } - } - /** - * Creates multiple instances. Count specifies the number of instances to create. For more - * information, seeAbout bulk creation of VMs. - * - * Create a request for the method "instances.bulkInsert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertInstanceResource} - * @return the request - */ - public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.BulkInsertInstanceResource content) throws java.io.IOException { - BulkInsert result = new BulkInsert(project, zone, content); - initialize(result); - return result; - } - - public class BulkInsert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/bulkInsert"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates multiple instances. Count specifies the number of instances to create. For more - * information, seeAbout bulk creation of VMs. - * - * Create a request for the method "instances.bulkInsert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

- * {@link - * BulkInsert#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. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertInstanceResource} - * @since 1.13 - */ - protected BulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.BulkInsertInstanceResource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); - } - - @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); - } - - @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); - } - - @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); - } - - @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); - } - - @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); - } - - @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); - } - - @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); - } - - @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); - } - - @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); - } - - @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) 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 BulkInsert 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 BulkInsert 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; - } - - /** - * 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 BulkInsert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); - } - } - /** - * Deletes the specified Instance resource. For more information, seeDeleting an instance. - * - * Create a request for the method "instances.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Delete result = new Delete(project, zone, instance); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Instance resource. For more information, seeDeleting an instance. - * - * Create a request for the method "instances.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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. - * @param instance Name of the instance resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 instance resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to delete. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to delete. */ - public Delete setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** If set to true, Graceful Shutdown is skipped. */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** If set to true, Graceful Shutdown is skipped. - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** If set to true, Graceful Shutdown is skipped. */ - public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes an access config from an instance's network interface. - * - * Create a request for the method "instances.deleteAccessConfig". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteAccessConfig#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param accessConfig The name of the access config to delete. - * @param networkInterface The name of the network interface. - * @return the request - */ - public DeleteAccessConfig deleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) throws java.io.IOException { - DeleteAccessConfig result = new DeleteAccessConfig(project, zone, instance, accessConfig, networkInterface); - initialize(result); - return result; - } - - public class DeleteAccessConfig extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes an access config from an instance's network interface. - * - * Create a request for the method "instances.deleteAccessConfig". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteAccessConfig#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param accessConfig The name of the access config to delete. - * @param networkInterface The name of the network interface. - * @since 1.13 - */ - protected DeleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.accessConfig = com.google.api.client.util.Preconditions.checkNotNull(accessConfig, "Required parameter accessConfig must be specified."); - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteAccessConfig set$Xgafv(java.lang.String $Xgafv) { - return (DeleteAccessConfig) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteAccessConfig setAccessToken(java.lang.String accessToken) { - return (DeleteAccessConfig) super.setAccessToken(accessToken); - } - - @Override - public DeleteAccessConfig setAlt(java.lang.String alt) { - return (DeleteAccessConfig) super.setAlt(alt); - } - - @Override - public DeleteAccessConfig setCallback(java.lang.String callback) { - return (DeleteAccessConfig) super.setCallback(callback); - } - - @Override - public DeleteAccessConfig setFields(java.lang.String fields) { - return (DeleteAccessConfig) super.setFields(fields); - } - - @Override - public DeleteAccessConfig setKey(java.lang.String key) { - return (DeleteAccessConfig) super.setKey(key); - } - - @Override - public DeleteAccessConfig setOauthToken(java.lang.String oauthToken) { - return (DeleteAccessConfig) super.setOauthToken(oauthToken); - } - - @Override - public DeleteAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteAccessConfig) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteAccessConfig setQuotaUser(java.lang.String quotaUser) { - return (DeleteAccessConfig) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteAccessConfig setUploadType(java.lang.String uploadType) { - return (DeleteAccessConfig) super.setUploadType(uploadType); - } - - @Override - public DeleteAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteAccessConfig) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteAccessConfig setUserIp(java.lang.String userIp) { - return (DeleteAccessConfig) 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 DeleteAccessConfig 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 DeleteAccessConfig 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public DeleteAccessConfig setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** The name of the access config to delete. */ - @com.google.api.client.util.Key - private java.lang.String accessConfig; - - /** The name of the access config to delete. - */ - public java.lang.String getAccessConfig() { - return accessConfig; - } - - /** The name of the access config to delete. */ - public DeleteAccessConfig setAccessConfig(java.lang.String accessConfig) { - this.accessConfig = accessConfig; - return this; - } - - /** The name of the network interface. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface. */ - public DeleteAccessConfig setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 DeleteAccessConfig setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteAccessConfig set(String parameterName, Object value) { - return (DeleteAccessConfig) super.set(parameterName, value); - } - } - /** - * Deletes one dynamic network interface from an active instance. - * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using - * project+zone+resource_id fields; - dynamic network interface to be deleted, using - * network_interface_name field; - * - * Create a request for the method "instances.deleteNetworkInterface". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteNetworkInterface#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. - * @return the request - */ - public DeleteNetworkInterface deleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) throws java.io.IOException { - DeleteNetworkInterface result = new DeleteNetworkInterface(project, zone, instance, networkInterfaceName); - initialize(result); - return result; - } - - public class DeleteNetworkInterface extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Deletes one dynamic network interface from an active instance. - * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using - * project+zone+resource_id fields; - dynamic network interface to be deleted, using - * network_interface_name field; - * - * Create a request for the method "instances.deleteNetworkInterface". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteNetworkInterface#execute()} method to invoke the remote - * operation.

{@link DeleteNetworkInterface#initialize(com.google.api.client.googleapis.servic - * es.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. - * @param instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. - * @since 1.13 - */ - protected DeleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - this.networkInterfaceName = com.google.api.client.util.Preconditions.checkNotNull(networkInterfaceName, "Required parameter networkInterfaceName must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteNetworkInterface set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNetworkInterface) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteNetworkInterface setAccessToken(java.lang.String accessToken) { - return (DeleteNetworkInterface) super.setAccessToken(accessToken); - } - - @Override - public DeleteNetworkInterface setAlt(java.lang.String alt) { - return (DeleteNetworkInterface) super.setAlt(alt); - } - - @Override - public DeleteNetworkInterface setCallback(java.lang.String callback) { - return (DeleteNetworkInterface) super.setCallback(callback); - } - - @Override - public DeleteNetworkInterface setFields(java.lang.String fields) { - return (DeleteNetworkInterface) super.setFields(fields); - } - - @Override - public DeleteNetworkInterface setKey(java.lang.String key) { - return (DeleteNetworkInterface) super.setKey(key); - } - - @Override - public DeleteNetworkInterface setOauthToken(java.lang.String oauthToken) { - return (DeleteNetworkInterface) super.setOauthToken(oauthToken); - } - - @Override - public DeleteNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNetworkInterface) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteNetworkInterface setQuotaUser(java.lang.String quotaUser) { - return (DeleteNetworkInterface) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteNetworkInterface setUploadType(java.lang.String uploadType) { - return (DeleteNetworkInterface) super.setUploadType(uploadType); - } - - @Override - public DeleteNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNetworkInterface) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteNetworkInterface setUserIp(java.lang.String userIp) { - return (DeleteNetworkInterface) 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 DeleteNetworkInterface 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 DeleteNetworkInterface 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; - } - - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an - unsigned long integer. - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - public DeleteNetworkInterface setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** The name of the dynamic network interface to be deleted from the instance. */ - @com.google.api.client.util.Key - private java.lang.String networkInterfaceName; - - /** The name of the dynamic network interface to be deleted from the instance. - */ - public java.lang.String getNetworkInterfaceName() { - return networkInterfaceName; - } - - /** The name of the dynamic network interface to be deleted from the instance. */ - public DeleteNetworkInterface setNetworkInterfaceName(java.lang.String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; - 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 DeleteNetworkInterface setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteNetworkInterface set(String parameterName, Object value) { - return (DeleteNetworkInterface) super.set(parameterName, value); - } - } - /** - * Detaches a disk from an instance. - * - * Create a request for the method "instances.detachDisk". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachDisk#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Instance name for this request. - * @param deviceName The device name of the disk to detach. Make a get() request on - the instance to view currently - * attached disks and device names. - * @return the request - */ - public DetachDisk detachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) throws java.io.IOException { - DetachDisk result = new DetachDisk(project, zone, instance, deviceName); - initialize(result); - return result; - } - - public class DetachDisk extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/detachDisk"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Detaches a disk from an instance. - * - * Create a request for the method "instances.detachDisk". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachDisk#execute()} method to invoke the remote operation.

- * {@link - * DetachDisk#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. - * @param instance Instance name for this request. - * @param deviceName The device name of the disk to detach. Make a get() request on - the instance to view currently - * attached disks and device names. - * @since 1.13 - */ - protected DetachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DetachDisk set$Xgafv(java.lang.String $Xgafv) { - return (DetachDisk) super.set$Xgafv($Xgafv); - } - - @Override - public DetachDisk setAccessToken(java.lang.String accessToken) { - return (DetachDisk) super.setAccessToken(accessToken); - } - - @Override - public DetachDisk setAlt(java.lang.String alt) { - return (DetachDisk) super.setAlt(alt); - } - - @Override - public DetachDisk setCallback(java.lang.String callback) { - return (DetachDisk) super.setCallback(callback); - } - - @Override - public DetachDisk setFields(java.lang.String fields) { - return (DetachDisk) super.setFields(fields); - } - - @Override - public DetachDisk setKey(java.lang.String key) { - return (DetachDisk) super.setKey(key); - } - - @Override - public DetachDisk setOauthToken(java.lang.String oauthToken) { - return (DetachDisk) super.setOauthToken(oauthToken); - } - - @Override - public DetachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachDisk) super.setPrettyPrint(prettyPrint); - } - - @Override - public DetachDisk setQuotaUser(java.lang.String quotaUser) { - return (DetachDisk) super.setQuotaUser(quotaUser); - } - - @Override - public DetachDisk setUploadType(java.lang.String uploadType) { - return (DetachDisk) super.setUploadType(uploadType); - } - - @Override - public DetachDisk setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachDisk) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DetachDisk setUserIp(java.lang.String userIp) { - return (DetachDisk) 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 DetachDisk 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 DetachDisk 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; - } - - /** Instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Instance name for this request. */ - public DetachDisk setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** - * The device name of the disk to detach. Make a get() request on the instance to view - * currently attached disks and device names. - */ - @com.google.api.client.util.Key - private java.lang.String deviceName; - - /** The device name of the disk to detach. Make a get() request on the instance to view currently - attached disks and device names. - */ - public java.lang.String getDeviceName() { - return deviceName; - } - - /** - * The device name of the disk to detach. Make a get() request on the instance to view - * currently attached disks and device names. - */ - public DetachDisk setDeviceName(java.lang.String deviceName) { - this.deviceName = deviceName; - 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 DetachDisk setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DetachDisk set(String parameterName, Object value) { - return (DetachDisk) super.set(parameterName, value); - } - } - /** - * Returns the specified Instance resource. - * - * Create a request for the method "instances.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 zone The name of the zone for this request. - * @param instance Name of the instance resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Get result = new Get(project, zone, instance); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_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 Instance resource. - * - * Create a request for the method "instances.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 zone The name of the zone for this request. - * @param instance Name of the instance resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Instance.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 instance resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to return. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to return. */ - public Get setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns effective firewalls applied to an interface of the instance. - * - * Create a request for the method "instances.getEffectiveFirewalls". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param networkInterface The name of the network interface to get the effective firewalls. - * @return the request - */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, zone, instance, networkInterface); - initialize(result); - return result; - } - - public class GetEffectiveFirewalls extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Returns effective firewalls applied to an interface of the instance. - * - * Create a request for the method "instances.getEffectiveFirewalls". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service - * s.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. - * @param instance Name of the instance scoping this request. - * @param networkInterface The name of the network interface to get the effective firewalls. - * @since 1.13 - */ - protected GetEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstancesGetEffectiveFirewallsResponse.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); - } - - @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); - } - - @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); - } - - @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); - } - - @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); - } - - @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); - } - - @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); - } - - @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); - } - - @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); - } - - @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) 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 GetEffectiveFirewalls 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 GetEffectiveFirewalls 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public GetEffectiveFirewalls setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.instance = instance; - return this; - } - - /** The name of the network interface to get the effective firewalls. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface to get the effective firewalls. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface to get the effective firewalls. */ - public GetEffectiveFirewalls setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - return this; - } - - @Override - public GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); - } - } - /** - * Returns the specified guest attributes entry. - * - * Create a request for the method "instances.getGuestAttributes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetGuestAttributes#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @return the request - */ - public GetGuestAttributes getGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetGuestAttributes result = new GetGuestAttributes(project, zone, instance); - initialize(result); - return result; - } - - public class GetGuestAttributes extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_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 guest attributes entry. - * - * Create a request for the method "instances.getGuestAttributes". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetGuestAttributes#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @since 1.13 - */ - protected GetGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.GuestAttributes.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetGuestAttributes set$Xgafv(java.lang.String $Xgafv) { - return (GetGuestAttributes) super.set$Xgafv($Xgafv); - } - - @Override - public GetGuestAttributes setAccessToken(java.lang.String accessToken) { - return (GetGuestAttributes) super.setAccessToken(accessToken); - } - - @Override - public GetGuestAttributes setAlt(java.lang.String alt) { - return (GetGuestAttributes) super.setAlt(alt); - } - - @Override - public GetGuestAttributes setCallback(java.lang.String callback) { - return (GetGuestAttributes) super.setCallback(callback); - } - - @Override - public GetGuestAttributes setFields(java.lang.String fields) { - return (GetGuestAttributes) super.setFields(fields); - } - - @Override - public GetGuestAttributes setKey(java.lang.String key) { - return (GetGuestAttributes) super.setKey(key); - } - - @Override - public GetGuestAttributes setOauthToken(java.lang.String oauthToken) { - return (GetGuestAttributes) super.setOauthToken(oauthToken); - } - - @Override - public GetGuestAttributes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetGuestAttributes) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetGuestAttributes setQuotaUser(java.lang.String quotaUser) { - return (GetGuestAttributes) super.setQuotaUser(quotaUser); - } - - @Override - public GetGuestAttributes setUploadType(java.lang.String uploadType) { - return (GetGuestAttributes) super.setUploadType(uploadType); - } - - @Override - public GetGuestAttributes setUploadProtocol(java.lang.String uploadProtocol) { - return (GetGuestAttributes) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetGuestAttributes setUserIp(java.lang.String userIp) { - return (GetGuestAttributes) 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 GetGuestAttributes 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 GetGuestAttributes 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public GetGuestAttributes setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** Specifies the guest attributes path to be queried. */ - @com.google.api.client.util.Key - private java.lang.String queryPath; - - /** Specifies the guest attributes path to be queried. - */ - public java.lang.String getQueryPath() { - return queryPath; - } - - /** Specifies the guest attributes path to be queried. */ - public GetGuestAttributes setQueryPath(java.lang.String queryPath) { - this.queryPath = queryPath; - return this; - } - - /** Specifies the key for the guest attributes entry. */ - @com.google.api.client.util.Key - private java.lang.String variableKey; - - /** Specifies the key for the guest attributes entry. - */ - public java.lang.String getVariableKey() { - return variableKey; - } - - /** Specifies the key for the guest attributes entry. */ - public GetGuestAttributes setVariableKey(java.lang.String variableKey) { - this.variableKey = variableKey; - return this; - } - - @Override - public GetGuestAttributes set(String parameterName, Object value) { - return (GetGuestAttributes) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "instances.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "instances.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

- * {@link GetScreenshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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. - * @param instance Name of the instance scoping this request. - * @since 1.13 - */ - protected GetScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Screenshot.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetScreenshot set$Xgafv(java.lang.String $Xgafv) { - return (GetScreenshot) super.set$Xgafv($Xgafv); - } - - @Override - public GetScreenshot setAccessToken(java.lang.String accessToken) { - return (GetScreenshot) super.setAccessToken(accessToken); - } - - @Override - public GetScreenshot setAlt(java.lang.String alt) { - return (GetScreenshot) super.setAlt(alt); - } - - @Override - public GetScreenshot setCallback(java.lang.String callback) { - return (GetScreenshot) super.setCallback(callback); - } - - @Override - public GetScreenshot setFields(java.lang.String fields) { - return (GetScreenshot) super.setFields(fields); - } - - @Override - public GetScreenshot setKey(java.lang.String key) { - return (GetScreenshot) super.setKey(key); - } - - @Override - public GetScreenshot setOauthToken(java.lang.String oauthToken) { - return (GetScreenshot) super.setOauthToken(oauthToken); - } - - @Override - public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetScreenshot) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetScreenshot setQuotaUser(java.lang.String quotaUser) { - return (GetScreenshot) super.setQuotaUser(quotaUser); - } - - @Override - public GetScreenshot setUploadType(java.lang.String uploadType) { - return (GetScreenshot) super.setUploadType(uploadType); - } - - @Override - public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { - return (GetScreenshot) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetScreenshot setUserIp(java.lang.String userIp) { - return (GetScreenshot) 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 GetScreenshot 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 GetScreenshot 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public GetScreenshot setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - @Override - public GetScreenshot set(String parameterName, Object value) { - return (GetScreenshot) super.set(parameterName, value); - } - } - /** - * Returns the last 1 MB of serial port output from the specified instance. - * - * Create a request for the method "instances.getSerialPortOutput". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance for this request. - * @return the request - */ - public GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetSerialPortOutput result = new GetSerialPortOutput(project, zone, instance); - initialize(result); - return result; - } - - public class GetSerialPortOutput extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the last 1 MB of serial port output from the specified instance. - * - * Create a request for the method "instances.getSerialPortOutput". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote - * operation.

{@link GetSerialPortOutput#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. - * @param instance Name of the instance for this request. - * @since 1.13 - */ - protected GetSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SerialPortOutput.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetSerialPortOutput set$Xgafv(java.lang.String $Xgafv) { - return (GetSerialPortOutput) super.set$Xgafv($Xgafv); - } - - @Override - public GetSerialPortOutput setAccessToken(java.lang.String accessToken) { - return (GetSerialPortOutput) super.setAccessToken(accessToken); - } - - @Override - public GetSerialPortOutput setAlt(java.lang.String alt) { - return (GetSerialPortOutput) super.setAlt(alt); - } - - @Override - public GetSerialPortOutput setCallback(java.lang.String callback) { - return (GetSerialPortOutput) super.setCallback(callback); - } - - @Override - public GetSerialPortOutput setFields(java.lang.String fields) { - return (GetSerialPortOutput) super.setFields(fields); - } - - @Override - public GetSerialPortOutput setKey(java.lang.String key) { - return (GetSerialPortOutput) super.setKey(key); - } - - @Override - public GetSerialPortOutput setOauthToken(java.lang.String oauthToken) { - return (GetSerialPortOutput) super.setOauthToken(oauthToken); - } - - @Override - public GetSerialPortOutput setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetSerialPortOutput) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetSerialPortOutput setQuotaUser(java.lang.String quotaUser) { - return (GetSerialPortOutput) super.setQuotaUser(quotaUser); - } - - @Override - public GetSerialPortOutput setUploadType(java.lang.String uploadType) { - return (GetSerialPortOutput) super.setUploadType(uploadType); - } - - @Override - public GetSerialPortOutput setUploadProtocol(java.lang.String uploadProtocol) { - return (GetSerialPortOutput) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetSerialPortOutput setUserIp(java.lang.String userIp) { - return (GetSerialPortOutput) 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 GetSerialPortOutput 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 GetSerialPortOutput 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 instance for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance for this request. */ - public GetSerialPortOutput setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** Specifies which COM or serial port to retrieve data from. */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** Specifies which COM or serial port to retrieve data from. [default: 1] [minimum: 1] [maximum: 4] - */ - public java.lang.Integer getPort() { - return port; - } - - /** Specifies which COM or serial port to retrieve data from. */ - public GetSerialPortOutput setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Specifies the starting byte position of the output to return. To start with the first byte - * of output to the specified port, omit this field or set it to `0`. - * - * If the output for that byte position is available, this field matches the `start` parameter - * sent with the request. If the amount of serial console output exceeds the size of the - * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested - * start position refers to discarded output, the start position is adjusted to the oldest - * output still available, and the adjusted start position is returned as the `start` property - * value. - * - * You can also provide a negative start position, which translates to the most recent number - * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 - * bytes written to the serial console. Note that the negative start is bounded by the - * retained buffer size, and the returned serial console output will not exceed the max buffer - * size. - */ - @com.google.api.client.util.Key - private java.lang.Long start; - - /** Specifies the starting byte position of the output to return. To start with the first byte of - output to the specified port, omit this field or set it to `0`. - - If the output for that byte position is available, this field matches the `start` parameter sent - with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the - oldest output is discarded and is no longer available. If the requested start position refers to - discarded output, the start position is adjusted to the oldest output still available, and the - adjusted start position is returned as the `start` property value. - - You can also provide a negative start position, which translates to the most recent number of bytes - written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to - the serial console. Note that the negative start is bounded by the retained buffer size, and the - returned serial console output will not exceed the max buffer size. - */ - public java.lang.Long getStart() { - return start; - } - - /** - * Specifies the starting byte position of the output to return. To start with the first byte - * of output to the specified port, omit this field or set it to `0`. - * - * If the output for that byte position is available, this field matches the `start` parameter - * sent with the request. If the amount of serial console output exceeds the size of the - * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested - * start position refers to discarded output, the start position is adjusted to the oldest - * output still available, and the adjusted start position is returned as the `start` property - * value. - * - * You can also provide a negative start position, which translates to the most recent number - * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 - * bytes written to the serial console. Note that the negative start is bounded by the - * retained buffer size, and the returned serial console output will not exceed the max buffer - * size. - */ - public GetSerialPortOutput setStart(java.lang.Long start) { - this.start = start; - return this; - } - - @Override - public GetSerialPortOutput set(String parameterName, Object value) { - return (GetSerialPortOutput) super.set(parameterName, value); - } - } - /** - * Returns the Shielded Instance Identity of an instance - * - * Create a request for the method "instances.getShieldedInstanceIdentity". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetShieldedInstanceIdentity#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name or id of the instance scoping this request. - * @return the request - */ - public GetShieldedInstanceIdentity getShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetShieldedInstanceIdentity result = new GetShieldedInstanceIdentity(project, zone, instance); - initialize(result); - return result; - } - - public class GetShieldedInstanceIdentity extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the Shielded Instance Identity of an instance - * - * Create a request for the method "instances.getShieldedInstanceIdentity". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetShieldedInstanceIdentity#execute()} method to invoke the remote - * operation.

{@link GetShieldedInstanceIdentity#initialize(com.google.api.client.googleapis.s - * ervices.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. - * @param instance Name or id of the instance scoping this request. - * @since 1.13 - */ - protected GetShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ShieldedInstanceIdentity.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetShieldedInstanceIdentity set$Xgafv(java.lang.String $Xgafv) { - return (GetShieldedInstanceIdentity) super.set$Xgafv($Xgafv); - } - - @Override - public GetShieldedInstanceIdentity setAccessToken(java.lang.String accessToken) { - return (GetShieldedInstanceIdentity) super.setAccessToken(accessToken); - } - - @Override - public GetShieldedInstanceIdentity setAlt(java.lang.String alt) { - return (GetShieldedInstanceIdentity) super.setAlt(alt); - } - - @Override - public GetShieldedInstanceIdentity setCallback(java.lang.String callback) { - return (GetShieldedInstanceIdentity) super.setCallback(callback); - } - - @Override - public GetShieldedInstanceIdentity setFields(java.lang.String fields) { - return (GetShieldedInstanceIdentity) super.setFields(fields); - } - - @Override - public GetShieldedInstanceIdentity setKey(java.lang.String key) { - return (GetShieldedInstanceIdentity) super.setKey(key); - } - - @Override - public GetShieldedInstanceIdentity setOauthToken(java.lang.String oauthToken) { - return (GetShieldedInstanceIdentity) super.setOauthToken(oauthToken); - } - - @Override - public GetShieldedInstanceIdentity setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetShieldedInstanceIdentity) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetShieldedInstanceIdentity setQuotaUser(java.lang.String quotaUser) { - return (GetShieldedInstanceIdentity) super.setQuotaUser(quotaUser); - } - - @Override - public GetShieldedInstanceIdentity setUploadType(java.lang.String uploadType) { - return (GetShieldedInstanceIdentity) super.setUploadType(uploadType); - } - - @Override - public GetShieldedInstanceIdentity setUploadProtocol(java.lang.String uploadProtocol) { - return (GetShieldedInstanceIdentity) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetShieldedInstanceIdentity setUserIp(java.lang.String userIp) { - return (GetShieldedInstanceIdentity) 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 GetShieldedInstanceIdentity 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 GetShieldedInstanceIdentity 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 or id of the instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name or id of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name or id of the instance scoping this request. */ - public GetShieldedInstanceIdentity setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - @Override - public GetShieldedInstanceIdentity set(String parameterName, Object value) { - return (GetShieldedInstanceIdentity) super.set(parameterName, value); - } - } - /** - * Creates an instance resource in the specified project using the data included in the request. - * - * Create a request for the method "instances.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Instance} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Instance content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an instance resource in the specified project using the data included in the request. - * - * Create a request for the method "instances.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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. - * @param content the {@link com.google.api.services.compute.preview.model.Instance} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Instance content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Specifies instance template to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT - * emplate - projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplate; - - /** Specifies instance template to create the instance. - - This field is optional. It can be a full or partial URL. For example, the following are all valid - URLs to an instance template: - - - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - - projects/project/global/instanceTemplates/instanceTemplate - - global/instanceTemplates/instanceTemplate - */ - public java.lang.String getSourceInstanceTemplate() { - return sourceInstanceTemplate; - } - - /** - * Specifies instance template to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT - * emplate - projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - */ - public Insert setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { - this.sourceInstanceTemplate = sourceInstanceTemplate; - return this; - } - - /** - * Specifies the machine image to use to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to a machine image: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin - * eImage - projects/project/global/global/machineImages/machineImage - - * global/machineImages/machineImage - */ - @com.google.api.client.util.Key - private java.lang.String sourceMachineImage; - - /** Specifies the machine image to use to create the instance. - - This field is optional. It can be a full or partial URL. For example, the following are all valid - URLs to a machine image: - - - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage - - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage - */ - public java.lang.String getSourceMachineImage() { - return sourceMachineImage; - } - - /** - * Specifies the machine image to use to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to a machine image: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin - * eImage - projects/project/global/global/machineImages/machineImage - - * global/machineImages/machineImage - */ - public Insert setSourceMachineImage(java.lang.String sourceMachineImage) { - this.sourceMachineImage = sourceMachineImage; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of instances contained within the specified zone. - * - * Create a request for the method "instances.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}/instances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 the list of instances contained within the specified zone. - * - * Create a request for the method "instances.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.preview.model.InstanceList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves a list of resources that refer to the VM instance specified in the request. For - * example, if the VM instance is part of a managed or unmanaged instance group, the referrers list - * includes the instance group. For more information, readViewing referrers to VM instances. - * - * Create a request for the method "instances.listReferrers". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListReferrers#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the target instance scoping this request, or '-' if the - request should span over all - * instances in the container. - * @return the request - */ - public ListReferrers listReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - ListReferrers result = new ListReferrers(project, zone, instance); - initialize(result); - return result; - } - - public class ListReferrers extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/referrers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves a list of resources that refer to the VM instance specified in the request. For - * example, if the VM instance is part of a managed or unmanaged instance group, the referrers - * list includes the instance group. For more information, readViewing referrers to VM instances. - * - * Create a request for the method "instances.listReferrers". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListReferrers#execute()} method to invoke the remote operation.

- * {@link ListReferrers#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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. - * @param instance Name of the target instance scoping this request, or '-' if the - request should span over all - * instances in the container. - * @since 1.13 - */ - protected ListReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceListReferrers.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListReferrers set$Xgafv(java.lang.String $Xgafv) { - return (ListReferrers) super.set$Xgafv($Xgafv); - } - - @Override - public ListReferrers setAccessToken(java.lang.String accessToken) { - return (ListReferrers) super.setAccessToken(accessToken); - } - - @Override - public ListReferrers setAlt(java.lang.String alt) { - return (ListReferrers) super.setAlt(alt); - } - - @Override - public ListReferrers setCallback(java.lang.String callback) { - return (ListReferrers) super.setCallback(callback); - } - - @Override - public ListReferrers setFields(java.lang.String fields) { - return (ListReferrers) super.setFields(fields); - } - - @Override - public ListReferrers setKey(java.lang.String key) { - return (ListReferrers) super.setKey(key); - } - - @Override - public ListReferrers setOauthToken(java.lang.String oauthToken) { - return (ListReferrers) super.setOauthToken(oauthToken); - } - - @Override - public ListReferrers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListReferrers) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListReferrers setQuotaUser(java.lang.String quotaUser) { - return (ListReferrers) super.setQuotaUser(quotaUser); - } - - @Override - public ListReferrers setUploadType(java.lang.String uploadType) { - return (ListReferrers) super.setUploadType(uploadType); - } - - @Override - public ListReferrers setUploadProtocol(java.lang.String uploadProtocol) { - return (ListReferrers) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListReferrers setUserIp(java.lang.String userIp) { - return (ListReferrers) 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 ListReferrers 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 ListReferrers 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 target instance scoping this request, or '-' if the request should span over - * all instances in the container. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the target instance scoping this request, or '-' if the request should span over all - instances in the container. - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Name of the target instance scoping this request, or '-' if the request should span over - * all instances in the container. - */ - public ListReferrers setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 ListReferrers 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 ListReferrers 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 ListReferrers 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 ListReferrers setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListReferrers set(String parameterName, Object value) { - return (ListReferrers) super.set(parameterName, value); - } - } - /** - * Perform a manual maintenance on the instance. - * - * Create a request for the method "instances.performMaintenance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @return the request - */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, instance); - initialize(result); - return result; - } - - public class PerformMaintenance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Perform a manual maintenance on the instance. - * - * Create a request for the method "instances.performMaintenance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @since 1.13 - */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); - } - - @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); - } - - @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); - } - - @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); - } - - @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); - } - - @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); - } - - @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); - } - - @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); - } - - @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); - } - - @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); - } - - @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) 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 PerformMaintenance 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 PerformMaintenance 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public PerformMaintenance setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 PerformMaintenance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); - } - } - /** - * Removes resource policies from an instance. - * - * Create a request for the method "instances.removeResourcePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesRemoveResourcePoliciesRequest} - * @return the request - */ - public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesRemoveResourcePoliciesRequest content) throws java.io.IOException { - RemoveResourcePolicies result = new RemoveResourcePolicies(project, zone, instance, content); - initialize(result); - return result; - } - - public class RemoveResourcePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes resource policies from an instance. - * - * Create a request for the method "instances.removeResourcePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote - * operation.

{@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.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. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesRemoveResourcePoliciesRequest} - * @since 1.13 - */ - protected RemoveResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesRemoveResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); - } - - @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); - } - - @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); - } - - @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); - } - - @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); - } - - @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); - } - - @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); - } - - @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) 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 RemoveResourcePolicies 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 RemoveResourcePolicies 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public RemoveResourcePolicies setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); - } - } - /** - * Mark the host as faulty and try to restart the instance on a new host. - * - * Create a request for the method "instances.reportHostAsFaulty". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ReportHostAsFaulty#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesReportHostAsFaultyRequest} - * @return the request - */ - public ReportHostAsFaulty reportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesReportHostAsFaultyRequest content) throws java.io.IOException { - ReportHostAsFaulty result = new ReportHostAsFaulty(project, zone, instance, content); - initialize(result); - return result; - } - - public class ReportHostAsFaulty extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Mark the host as faulty and try to restart the instance on a new host. - * - * Create a request for the method "instances.reportHostAsFaulty". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ReportHostAsFaulty#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesReportHostAsFaultyRequest} - * @since 1.13 - */ - protected ReportHostAsFaulty(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesReportHostAsFaultyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ReportHostAsFaulty set$Xgafv(java.lang.String $Xgafv) { - return (ReportHostAsFaulty) super.set$Xgafv($Xgafv); - } - - @Override - public ReportHostAsFaulty setAccessToken(java.lang.String accessToken) { - return (ReportHostAsFaulty) super.setAccessToken(accessToken); - } - - @Override - public ReportHostAsFaulty setAlt(java.lang.String alt) { - return (ReportHostAsFaulty) super.setAlt(alt); - } - - @Override - public ReportHostAsFaulty setCallback(java.lang.String callback) { - return (ReportHostAsFaulty) super.setCallback(callback); - } - - @Override - public ReportHostAsFaulty setFields(java.lang.String fields) { - return (ReportHostAsFaulty) super.setFields(fields); - } - - @Override - public ReportHostAsFaulty setKey(java.lang.String key) { - return (ReportHostAsFaulty) super.setKey(key); - } - - @Override - public ReportHostAsFaulty setOauthToken(java.lang.String oauthToken) { - return (ReportHostAsFaulty) super.setOauthToken(oauthToken); - } - - @Override - public ReportHostAsFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportHostAsFaulty) super.setPrettyPrint(prettyPrint); - } - - @Override - public ReportHostAsFaulty setQuotaUser(java.lang.String quotaUser) { - return (ReportHostAsFaulty) super.setQuotaUser(quotaUser); - } - - @Override - public ReportHostAsFaulty setUploadType(java.lang.String uploadType) { - return (ReportHostAsFaulty) super.setUploadType(uploadType); - } - - @Override - public ReportHostAsFaulty setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportHostAsFaulty) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ReportHostAsFaulty setUserIp(java.lang.String userIp) { - return (ReportHostAsFaulty) 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 ReportHostAsFaulty 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 ReportHostAsFaulty 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public ReportHostAsFaulty setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 ReportHostAsFaulty setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public ReportHostAsFaulty set(String parameterName, Object value) { - return (ReportHostAsFaulty) super.set(parameterName, value); - } - } - /** - * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. - * For more information, seeResetting an instance. - * - * Create a request for the method "instances.reset". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Reset#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @return the request - */ - public Reset reset(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Reset result = new Reset(project, zone, instance); - initialize(result); - return result; - } - - public class Reset extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reset"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. - * For more information, seeResetting an instance. - * - * Create a request for the method "instances.reset". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Reset#execute()} method to invoke the remote operation.

{@link - * Reset#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. - * @param instance Name of the instance scoping this request. - * @since 1.13 - */ - protected Reset(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Reset set$Xgafv(java.lang.String $Xgafv) { - return (Reset) super.set$Xgafv($Xgafv); - } - - @Override - public Reset setAccessToken(java.lang.String accessToken) { - return (Reset) super.setAccessToken(accessToken); - } - - @Override - public Reset setAlt(java.lang.String alt) { - return (Reset) super.setAlt(alt); - } - - @Override - public Reset setCallback(java.lang.String callback) { - return (Reset) super.setCallback(callback); - } - - @Override - public Reset setFields(java.lang.String fields) { - return (Reset) super.setFields(fields); - } - - @Override - public Reset setKey(java.lang.String key) { - return (Reset) super.setKey(key); - } - - @Override - public Reset setOauthToken(java.lang.String oauthToken) { - return (Reset) super.setOauthToken(oauthToken); - } - - @Override - public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Reset) super.setPrettyPrint(prettyPrint); - } - - @Override - public Reset setQuotaUser(java.lang.String quotaUser) { - return (Reset) super.setQuotaUser(quotaUser); - } - - @Override - public Reset setUploadType(java.lang.String uploadType) { - return (Reset) super.setUploadType(uploadType); - } - - @Override - public Reset setUploadProtocol(java.lang.String uploadProtocol) { - return (Reset) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Reset setUserIp(java.lang.String userIp) { - return (Reset) 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 Reset 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 Reset 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public Reset setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 Reset setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Reset set(String parameterName, Object value) { - return (Reset) super.set(parameterName, value); - } - } - /** - * Resumes an instance that was suspended using theinstances().suspend method. - * - * Create a request for the method "instances.resume". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resume#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to resume. - * @return the request - */ - public Resume resume(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Resume result = new Resume(project, zone, instance); - initialize(result); - return result; - } - - public class Resume extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/resume"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Resumes an instance that was suspended using theinstances().suspend method. - * - * Create a request for the method "instances.resume". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

{@link - * Resume#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. - * @param instance Name of the instance resource to resume. - * @since 1.13 - */ - protected Resume(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Resume set$Xgafv(java.lang.String $Xgafv) { - return (Resume) super.set$Xgafv($Xgafv); - } - - @Override - public Resume setAccessToken(java.lang.String accessToken) { - return (Resume) super.setAccessToken(accessToken); - } - - @Override - public Resume setAlt(java.lang.String alt) { - return (Resume) super.setAlt(alt); - } - - @Override - public Resume setCallback(java.lang.String callback) { - return (Resume) super.setCallback(callback); - } - - @Override - public Resume setFields(java.lang.String fields) { - return (Resume) super.setFields(fields); - } - - @Override - public Resume setKey(java.lang.String key) { - return (Resume) super.setKey(key); - } - - @Override - public Resume setOauthToken(java.lang.String oauthToken) { - return (Resume) super.setOauthToken(oauthToken); - } - - @Override - public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resume) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resume setQuotaUser(java.lang.String quotaUser) { - return (Resume) super.setQuotaUser(quotaUser); - } - - @Override - public Resume setUploadType(java.lang.String uploadType) { - return (Resume) super.setUploadType(uploadType); - } - - @Override - public Resume setUploadProtocol(java.lang.String uploadProtocol) { - return (Resume) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Resume setUserIp(java.lang.String userIp) { - return (Resume) 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 Resume 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 Resume 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 instance resource to resume. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to resume. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to resume. */ - public Resume setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 Resume setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resume set(String parameterName, Object value) { - return (Resume) super.set(parameterName, value); - } - } - /** - * Sends diagnostic interrupt to the instance. - * - * Create a request for the method "instances.sendDiagnosticInterrupt". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SendDiagnosticInterrupt#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @return the request - */ - public SendDiagnosticInterrupt sendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - SendDiagnosticInterrupt result = new SendDiagnosticInterrupt(project, zone, instance); - initialize(result); - return result; - } - - public class SendDiagnosticInterrupt extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sends diagnostic interrupt to the instance. - * - * Create a request for the method "instances.sendDiagnosticInterrupt". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SendDiagnosticInterrupt#execute()} method to invoke the remote - * operation.

{@link SendDiagnosticInterrupt#initialize(com.google.api.client.googleapis.servi - * ces.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. - * @param instance Name of the instance scoping this request. - * @since 1.13 - */ - protected SendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, Void.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SendDiagnosticInterrupt set$Xgafv(java.lang.String $Xgafv) { - return (SendDiagnosticInterrupt) super.set$Xgafv($Xgafv); - } - - @Override - public SendDiagnosticInterrupt setAccessToken(java.lang.String accessToken) { - return (SendDiagnosticInterrupt) super.setAccessToken(accessToken); - } - - @Override - public SendDiagnosticInterrupt setAlt(java.lang.String alt) { - return (SendDiagnosticInterrupt) super.setAlt(alt); - } - - @Override - public SendDiagnosticInterrupt setCallback(java.lang.String callback) { - return (SendDiagnosticInterrupt) super.setCallback(callback); - } - - @Override - public SendDiagnosticInterrupt setFields(java.lang.String fields) { - return (SendDiagnosticInterrupt) super.setFields(fields); - } - - @Override - public SendDiagnosticInterrupt setKey(java.lang.String key) { - return (SendDiagnosticInterrupt) super.setKey(key); - } - - @Override - public SendDiagnosticInterrupt setOauthToken(java.lang.String oauthToken) { - return (SendDiagnosticInterrupt) super.setOauthToken(oauthToken); - } - - @Override - public SendDiagnosticInterrupt setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SendDiagnosticInterrupt) super.setPrettyPrint(prettyPrint); - } - - @Override - public SendDiagnosticInterrupt setQuotaUser(java.lang.String quotaUser) { - return (SendDiagnosticInterrupt) super.setQuotaUser(quotaUser); - } - - @Override - public SendDiagnosticInterrupt setUploadType(java.lang.String uploadType) { - return (SendDiagnosticInterrupt) super.setUploadType(uploadType); - } - - @Override - public SendDiagnosticInterrupt setUploadProtocol(java.lang.String uploadProtocol) { - return (SendDiagnosticInterrupt) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SendDiagnosticInterrupt setUserIp(java.lang.String userIp) { - return (SendDiagnosticInterrupt) 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 SendDiagnosticInterrupt 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 SendDiagnosticInterrupt 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SendDiagnosticInterrupt setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - @Override - public SendDiagnosticInterrupt set(String parameterName, Object value) { - return (SendDiagnosticInterrupt) super.set(parameterName, value); - } - } - /** - * Sets deletion protection on the instance. - * - * Create a request for the method "instances.setDeletionProtection". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetDeletionProtection#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public SetDeletionProtection setDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - SetDeletionProtection result = new SetDeletionProtection(project, zone, resource); - initialize(result); - return result; - } - - public class SetDeletionProtection extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets deletion protection on the instance. - * - * Create a request for the method "instances.setDeletionProtection". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetDeletionProtection#execute()} method to invoke the remote - * operation.

{@link SetDeletionProtection#initialize(com.google.api.client.googleapis.service - * s.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. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected SetDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetDeletionProtection set$Xgafv(java.lang.String $Xgafv) { - return (SetDeletionProtection) super.set$Xgafv($Xgafv); - } - - @Override - public SetDeletionProtection setAccessToken(java.lang.String accessToken) { - return (SetDeletionProtection) super.setAccessToken(accessToken); - } - - @Override - public SetDeletionProtection setAlt(java.lang.String alt) { - return (SetDeletionProtection) super.setAlt(alt); - } - - @Override - public SetDeletionProtection setCallback(java.lang.String callback) { - return (SetDeletionProtection) super.setCallback(callback); - } - - @Override - public SetDeletionProtection setFields(java.lang.String fields) { - return (SetDeletionProtection) super.setFields(fields); - } - - @Override - public SetDeletionProtection setKey(java.lang.String key) { - return (SetDeletionProtection) super.setKey(key); - } - - @Override - public SetDeletionProtection setOauthToken(java.lang.String oauthToken) { - return (SetDeletionProtection) super.setOauthToken(oauthToken); - } - - @Override - public SetDeletionProtection setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDeletionProtection) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetDeletionProtection setQuotaUser(java.lang.String quotaUser) { - return (SetDeletionProtection) super.setQuotaUser(quotaUser); - } - - @Override - public SetDeletionProtection setUploadType(java.lang.String uploadType) { - return (SetDeletionProtection) super.setUploadType(uploadType); - } - - @Override - public SetDeletionProtection setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDeletionProtection) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetDeletionProtection setUserIp(java.lang.String userIp) { - return (SetDeletionProtection) 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 SetDeletionProtection 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 SetDeletionProtection 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetDeletionProtection setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Whether the resource should be protected against deletion. */ - @com.google.api.client.util.Key - private java.lang.Boolean deletionProtection; - - /** Whether the resource should be protected against deletion. [default: true] - */ - public java.lang.Boolean getDeletionProtection() { - return deletionProtection; - } - - /** Whether the resource should be protected against deletion. */ - public SetDeletionProtection setDeletionProtection(java.lang.Boolean deletionProtection) { - this.deletionProtection = deletionProtection; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * Whether the resource should be protected against deletion. - *

- */ - public boolean isDeletionProtection() { - if (deletionProtection == null || deletionProtection == com.google.api.client.util.Data.NULL_BOOLEAN) { - return true; - } - return deletionProtection; - } - - /** - * 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 SetDeletionProtection setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetDeletionProtection set(String parameterName, Object value) { - return (SetDeletionProtection) super.set(parameterName, value); - } - } - /** - * Sets the auto-delete flag for a disk attached to an instance. - * - * Create a request for the method "instances.setDiskAutoDelete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetDiskAutoDelete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param autoDelete Whether to auto-delete the disk when the instance is deleted. - * @param deviceName The device name of the disk to modify. Make a get() request - on the instance to view currently - * attached disks and device names. - * @return the request - */ - public SetDiskAutoDelete setDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) throws java.io.IOException { - SetDiskAutoDelete result = new SetDiskAutoDelete(project, zone, instance, autoDelete, deviceName); - initialize(result); - return result; - } - - public class SetDiskAutoDelete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - private final java.util.regex.Pattern DEVICE_NAME_PATTERN = - java.util.regex.Pattern.compile("\\w[\\w.-]{0,254}"); - - /** - * Sets the auto-delete flag for a disk attached to an instance. - * - * Create a request for the method "instances.setDiskAutoDelete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetDiskAutoDelete#execute()} method to invoke the remote operation. - *

{@link SetDiskAutoDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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. - * @param instance The instance name for this request. - * @param autoDelete Whether to auto-delete the disk when the instance is deleted. - * @param deviceName The device name of the disk to modify. Make a get() request - on the instance to view currently - * attached disks and device names. - * @since 1.13 - */ - protected SetDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoDelete = com.google.api.client.util.Preconditions.checkNotNull(autoDelete, "Required parameter autoDelete must be specified."); - this.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), - "Parameter deviceName must conform to the pattern " + - "\\w[\\w.-]{0,254}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetDiskAutoDelete set$Xgafv(java.lang.String $Xgafv) { - return (SetDiskAutoDelete) super.set$Xgafv($Xgafv); - } - - @Override - public SetDiskAutoDelete setAccessToken(java.lang.String accessToken) { - return (SetDiskAutoDelete) super.setAccessToken(accessToken); - } - - @Override - public SetDiskAutoDelete setAlt(java.lang.String alt) { - return (SetDiskAutoDelete) super.setAlt(alt); - } - - @Override - public SetDiskAutoDelete setCallback(java.lang.String callback) { - return (SetDiskAutoDelete) super.setCallback(callback); - } - - @Override - public SetDiskAutoDelete setFields(java.lang.String fields) { - return (SetDiskAutoDelete) super.setFields(fields); - } - - @Override - public SetDiskAutoDelete setKey(java.lang.String key) { - return (SetDiskAutoDelete) super.setKey(key); - } - - @Override - public SetDiskAutoDelete setOauthToken(java.lang.String oauthToken) { - return (SetDiskAutoDelete) super.setOauthToken(oauthToken); - } - - @Override - public SetDiskAutoDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDiskAutoDelete) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetDiskAutoDelete setQuotaUser(java.lang.String quotaUser) { - return (SetDiskAutoDelete) super.setQuotaUser(quotaUser); - } - - @Override - public SetDiskAutoDelete setUploadType(java.lang.String uploadType) { - return (SetDiskAutoDelete) super.setUploadType(uploadType); - } - - @Override - public SetDiskAutoDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDiskAutoDelete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetDiskAutoDelete setUserIp(java.lang.String userIp) { - return (SetDiskAutoDelete) 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 SetDiskAutoDelete 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 SetDiskAutoDelete 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public SetDiskAutoDelete setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** Whether to auto-delete the disk when the instance is deleted. */ - @com.google.api.client.util.Key - private java.lang.Boolean autoDelete; - - /** Whether to auto-delete the disk when the instance is deleted. - */ - public java.lang.Boolean getAutoDelete() { - return autoDelete; - } - - /** Whether to auto-delete the disk when the instance is deleted. */ - public SetDiskAutoDelete setAutoDelete(java.lang.Boolean autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - /** - * The device name of the disk to modify. Make a get() request on the instance to view - * currently attached disks and device names. - */ - @com.google.api.client.util.Key - private java.lang.String deviceName; - - /** The device name of the disk to modify. Make a get() request on the instance to view currently - attached disks and device names. - */ - public java.lang.String getDeviceName() { - return deviceName; - } - - /** - * The device name of the disk to modify. Make a get() request on the instance to view - * currently attached disks and device names. - */ - public SetDiskAutoDelete setDeviceName(java.lang.String deviceName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), - "Parameter deviceName must conform to the pattern " + - "\\w[\\w.-]{0,254}"); - } - this.deviceName = deviceName; - 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 SetDiskAutoDelete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetDiskAutoDelete set(String parameterName, Object value) { - return (SetDiskAutoDelete) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instances.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instances.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

- * {@link - * SetLabels#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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 SetLabels 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SetLabels setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - /** - * Changes the number and/or type of accelerator for a stopped instance to the values specified in - * the request. - * - * Create a request for the method "instances.setMachineResources". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetMachineResources#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetMachineResourcesRequest} - * @return the request - */ - public SetMachineResources setMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetMachineResourcesRequest content) throws java.io.IOException { - SetMachineResources result = new SetMachineResources(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetMachineResources extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineResources"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the number and/or type of accelerator for a stopped instance to the values specified in - * the request. - * - * Create a request for the method "instances.setMachineResources". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetMachineResources#execute()} method to invoke the remote - * operation.

{@link SetMachineResources#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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetMachineResourcesRequest} - * @since 1.13 - */ - protected SetMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetMachineResourcesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetMachineResources set$Xgafv(java.lang.String $Xgafv) { - return (SetMachineResources) super.set$Xgafv($Xgafv); - } - - @Override - public SetMachineResources setAccessToken(java.lang.String accessToken) { - return (SetMachineResources) super.setAccessToken(accessToken); - } - - @Override - public SetMachineResources setAlt(java.lang.String alt) { - return (SetMachineResources) super.setAlt(alt); - } - - @Override - public SetMachineResources setCallback(java.lang.String callback) { - return (SetMachineResources) super.setCallback(callback); - } - - @Override - public SetMachineResources setFields(java.lang.String fields) { - return (SetMachineResources) super.setFields(fields); - } - - @Override - public SetMachineResources setKey(java.lang.String key) { - return (SetMachineResources) super.setKey(key); - } - - @Override - public SetMachineResources setOauthToken(java.lang.String oauthToken) { - return (SetMachineResources) super.setOauthToken(oauthToken); - } - - @Override - public SetMachineResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMachineResources) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetMachineResources setQuotaUser(java.lang.String quotaUser) { - return (SetMachineResources) super.setQuotaUser(quotaUser); - } - - @Override - public SetMachineResources setUploadType(java.lang.String uploadType) { - return (SetMachineResources) super.setUploadType(uploadType); - } - - @Override - public SetMachineResources setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMachineResources) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetMachineResources setUserIp(java.lang.String userIp) { - return (SetMachineResources) 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 SetMachineResources 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 SetMachineResources 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SetMachineResources setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetMachineResources setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetMachineResources set(String parameterName, Object value) { - return (SetMachineResources) super.set(parameterName, value); - } - } - /** - * Changes the machine type for a stopped instance to the machine type specified in the request. - * - * Create a request for the method "instances.setMachineType". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetMachineType#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetMachineTypeRequest} - * @return the request - */ - public SetMachineType setMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetMachineTypeRequest content) throws java.io.IOException { - SetMachineType result = new SetMachineType(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetMachineType extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineType"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the machine type for a stopped instance to the machine type specified in the request. - * - * Create a request for the method "instances.setMachineType". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetMachineType#execute()} method to invoke the remote operation. - *

{@link SetMachineType#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetMachineTypeRequest} - * @since 1.13 - */ - protected SetMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetMachineTypeRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetMachineType set$Xgafv(java.lang.String $Xgafv) { - return (SetMachineType) super.set$Xgafv($Xgafv); - } - - @Override - public SetMachineType setAccessToken(java.lang.String accessToken) { - return (SetMachineType) super.setAccessToken(accessToken); - } - - @Override - public SetMachineType setAlt(java.lang.String alt) { - return (SetMachineType) super.setAlt(alt); - } - - @Override - public SetMachineType setCallback(java.lang.String callback) { - return (SetMachineType) super.setCallback(callback); - } - - @Override - public SetMachineType setFields(java.lang.String fields) { - return (SetMachineType) super.setFields(fields); - } - - @Override - public SetMachineType setKey(java.lang.String key) { - return (SetMachineType) super.setKey(key); - } - - @Override - public SetMachineType setOauthToken(java.lang.String oauthToken) { - return (SetMachineType) super.setOauthToken(oauthToken); - } - - @Override - public SetMachineType setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMachineType) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetMachineType setQuotaUser(java.lang.String quotaUser) { - return (SetMachineType) super.setQuotaUser(quotaUser); - } - - @Override - public SetMachineType setUploadType(java.lang.String uploadType) { - return (SetMachineType) super.setUploadType(uploadType); - } - - @Override - public SetMachineType setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMachineType) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetMachineType setUserIp(java.lang.String userIp) { - return (SetMachineType) 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 SetMachineType 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 SetMachineType 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SetMachineType setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetMachineType setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetMachineType set(String parameterName, Object value) { - return (SetMachineType) super.set(parameterName, value); - } - } - /** - * Sets metadata for the specified instance to the data included in the request. - * - * Create a request for the method "instances.setMetadata". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetMetadata#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Metadata} - * @return the request - */ - public SetMetadata setMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Metadata content) throws java.io.IOException { - SetMetadata result = new SetMetadata(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetMetadata extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMetadata"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets metadata for the specified instance to the data included in the request. - * - * Create a request for the method "instances.setMetadata". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetMetadata#execute()} method to invoke the remote operation.

- * {@link - * SetMetadata#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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Metadata} - * @since 1.13 - */ - protected SetMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Metadata content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetMetadata set$Xgafv(java.lang.String $Xgafv) { - return (SetMetadata) super.set$Xgafv($Xgafv); - } - - @Override - public SetMetadata setAccessToken(java.lang.String accessToken) { - return (SetMetadata) super.setAccessToken(accessToken); - } - - @Override - public SetMetadata setAlt(java.lang.String alt) { - return (SetMetadata) super.setAlt(alt); - } - - @Override - public SetMetadata setCallback(java.lang.String callback) { - return (SetMetadata) super.setCallback(callback); - } - - @Override - public SetMetadata setFields(java.lang.String fields) { - return (SetMetadata) super.setFields(fields); - } - - @Override - public SetMetadata setKey(java.lang.String key) { - return (SetMetadata) super.setKey(key); - } - - @Override - public SetMetadata setOauthToken(java.lang.String oauthToken) { - return (SetMetadata) super.setOauthToken(oauthToken); - } - - @Override - public SetMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMetadata) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetMetadata setQuotaUser(java.lang.String quotaUser) { - return (SetMetadata) super.setQuotaUser(quotaUser); - } - - @Override - public SetMetadata setUploadType(java.lang.String uploadType) { - return (SetMetadata) super.setUploadType(uploadType); - } - - @Override - public SetMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMetadata) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetMetadata setUserIp(java.lang.String userIp) { - return (SetMetadata) 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 SetMetadata 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 SetMetadata 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SetMetadata setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetMetadata setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetMetadata set(String parameterName, Object value) { - return (SetMetadata) super.set(parameterName, value); - } - } - /** - * Changes the minimum CPU platform that this instance should use. This method can only be called on - * a stopped instance. For more information, readSpecifying a Minimum CPU Platform. - * - * Create a request for the method "instances.setMinCpuPlatform". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetMinCpuPlatform#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetMinCpuPlatformRequest} - * @return the request - */ - public SetMinCpuPlatform setMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetMinCpuPlatformRequest content) throws java.io.IOException { - SetMinCpuPlatform result = new SetMinCpuPlatform(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetMinCpuPlatform extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the minimum CPU platform that this instance should use. This method can only be called - * on a stopped instance. For more information, readSpecifying a Minimum CPU Platform. - * - * Create a request for the method "instances.setMinCpuPlatform". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetMinCpuPlatform#execute()} method to invoke the remote operation. - *

{@link SetMinCpuPlatform#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetMinCpuPlatformRequest} - * @since 1.13 - */ - protected SetMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetMinCpuPlatformRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetMinCpuPlatform set$Xgafv(java.lang.String $Xgafv) { - return (SetMinCpuPlatform) super.set$Xgafv($Xgafv); - } - - @Override - public SetMinCpuPlatform setAccessToken(java.lang.String accessToken) { - return (SetMinCpuPlatform) super.setAccessToken(accessToken); - } - - @Override - public SetMinCpuPlatform setAlt(java.lang.String alt) { - return (SetMinCpuPlatform) super.setAlt(alt); - } - - @Override - public SetMinCpuPlatform setCallback(java.lang.String callback) { - return (SetMinCpuPlatform) super.setCallback(callback); - } - - @Override - public SetMinCpuPlatform setFields(java.lang.String fields) { - return (SetMinCpuPlatform) super.setFields(fields); - } - - @Override - public SetMinCpuPlatform setKey(java.lang.String key) { - return (SetMinCpuPlatform) super.setKey(key); - } - - @Override - public SetMinCpuPlatform setOauthToken(java.lang.String oauthToken) { - return (SetMinCpuPlatform) super.setOauthToken(oauthToken); - } - - @Override - public SetMinCpuPlatform setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMinCpuPlatform) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetMinCpuPlatform setQuotaUser(java.lang.String quotaUser) { - return (SetMinCpuPlatform) super.setQuotaUser(quotaUser); - } - - @Override - public SetMinCpuPlatform setUploadType(java.lang.String uploadType) { - return (SetMinCpuPlatform) super.setUploadType(uploadType); - } - - @Override - public SetMinCpuPlatform setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMinCpuPlatform) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetMinCpuPlatform setUserIp(java.lang.String userIp) { - return (SetMinCpuPlatform) 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 SetMinCpuPlatform 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 SetMinCpuPlatform 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SetMinCpuPlatform setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetMinCpuPlatform setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetMinCpuPlatform set(String parameterName, Object value) { - return (SetMinCpuPlatform) super.set(parameterName, value); - } - } - /** - * Sets name of an instance. - * - * Create a request for the method "instances.setName". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetName#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetNameRequest} - * @return the request - */ - public SetName setName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetNameRequest content) throws java.io.IOException { - SetName result = new SetName(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetName extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setName"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets name of an instance. - * - * Create a request for the method "instances.setName". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetName#execute()} method to invoke the remote operation.

- * {@link - * SetName#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. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetNameRequest} - * @since 1.13 - */ - protected SetName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetNameRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetName set$Xgafv(java.lang.String $Xgafv) { - return (SetName) super.set$Xgafv($Xgafv); - } - - @Override - public SetName setAccessToken(java.lang.String accessToken) { - return (SetName) super.setAccessToken(accessToken); - } - - @Override - public SetName setAlt(java.lang.String alt) { - return (SetName) super.setAlt(alt); - } - - @Override - public SetName setCallback(java.lang.String callback) { - return (SetName) super.setCallback(callback); - } - - @Override - public SetName setFields(java.lang.String fields) { - return (SetName) super.setFields(fields); - } - - @Override - public SetName setKey(java.lang.String key) { - return (SetName) super.setKey(key); - } - - @Override - public SetName setOauthToken(java.lang.String oauthToken) { - return (SetName) super.setOauthToken(oauthToken); - } - - @Override - public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetName) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetName setQuotaUser(java.lang.String quotaUser) { - return (SetName) super.setQuotaUser(quotaUser); - } - - @Override - public SetName setUploadType(java.lang.String uploadType) { - return (SetName) super.setUploadType(uploadType); - } - - @Override - public SetName setUploadProtocol(java.lang.String uploadProtocol) { - return (SetName) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetName setUserIp(java.lang.String userIp) { - return (SetName) 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 SetName 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 SetName 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public SetName setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetName setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetName set(String parameterName, Object value) { - return (SetName) super.set(parameterName, value); - } - } - /** - * Sets an instance's scheduling options. You can only call this method on astopped instance, that - * is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on - * the possible instance states. For more information about setting scheduling options for a VM, - * seeSet VM host maintenance policy. - * - * Create a request for the method "instances.setScheduling". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetScheduling#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Scheduling} - * @return the request - */ - public SetScheduling setScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Scheduling content) throws java.io.IOException { - SetScheduling result = new SetScheduling(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetScheduling extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setScheduling"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets an instance's scheduling options. You can only call this method on astopped instance, that - * is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information - * on the possible instance states. For more information about setting scheduling options for a - * VM, seeSet VM host maintenance policy. - * - * Create a request for the method "instances.setScheduling". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetScheduling#execute()} method to invoke the remote operation.

- * {@link SetScheduling#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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. - * @param instance Instance name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Scheduling} - * @since 1.13 - */ - protected SetScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Scheduling content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetScheduling set$Xgafv(java.lang.String $Xgafv) { - return (SetScheduling) super.set$Xgafv($Xgafv); - } - - @Override - public SetScheduling setAccessToken(java.lang.String accessToken) { - return (SetScheduling) super.setAccessToken(accessToken); - } - - @Override - public SetScheduling setAlt(java.lang.String alt) { - return (SetScheduling) super.setAlt(alt); - } - - @Override - public SetScheduling setCallback(java.lang.String callback) { - return (SetScheduling) super.setCallback(callback); - } - - @Override - public SetScheduling setFields(java.lang.String fields) { - return (SetScheduling) super.setFields(fields); - } - - @Override - public SetScheduling setKey(java.lang.String key) { - return (SetScheduling) super.setKey(key); - } - - @Override - public SetScheduling setOauthToken(java.lang.String oauthToken) { - return (SetScheduling) super.setOauthToken(oauthToken); - } - - @Override - public SetScheduling setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetScheduling) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetScheduling setQuotaUser(java.lang.String quotaUser) { - return (SetScheduling) super.setQuotaUser(quotaUser); - } - - @Override - public SetScheduling setUploadType(java.lang.String uploadType) { - return (SetScheduling) super.setUploadType(uploadType); - } - - @Override - public SetScheduling setUploadProtocol(java.lang.String uploadProtocol) { - return (SetScheduling) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetScheduling setUserIp(java.lang.String userIp) { - return (SetScheduling) 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 SetScheduling 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 SetScheduling 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; - } - - /** Instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Instance name for this request. */ - public SetScheduling setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetScheduling setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetScheduling set(String parameterName, Object value) { - return (SetScheduling) super.set(parameterName, value); - } - } - /** - * Sets the Google Cloud Armor security policy for the specified instance. For more information, - * seeGoogle Cloud Armor Overview - * - * Create a request for the method "instances.setSecurityPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param instance Name of the Instance resource to which the security policy should be - set. The name should conform to - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetSecurityPolicyRequest} - * @return the request - */ - public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetSecurityPolicyRequest content) throws java.io.IOException { - SetSecurityPolicy result = new SetSecurityPolicy(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetSecurityPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Sets the Google Cloud Armor security policy for the specified instance. For more information, - * seeGoogle Cloud Armor Overview - * - * Create a request for the method "instances.setSecurityPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. - *

{@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param instance Name of the Instance resource to which the security policy should be - set. The name should conform to - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetSecurityPolicyRequest} - * @since 1.13 - */ - protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetSecurityPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); - } - - @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); - } - - @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); - } - - @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); - } - - @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); - } - - @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) 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 SetSecurityPolicy 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 zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping this request. */ - public SetSecurityPolicy 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 Instance resource to which the security policy should be set. The name should - * conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the Instance resource to which the security policy should be set. The name should conform - to RFC1035. - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Name of the Instance resource to which the security policy should be set. The name should - * conform to RFC1035. - */ - public SetSecurityPolicy setInstance(java.lang.String instance) { - this.instance = instance; - 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); - } - } - /** - * Sets the service account on the instance. For more information, readChanging the service account - * and access scopes for an instance. - * - * Create a request for the method "instances.setServiceAccount". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetServiceAccount#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to start. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetServiceAccountRequest} - * @return the request - */ - public SetServiceAccount setServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetServiceAccountRequest content) throws java.io.IOException { - SetServiceAccount result = new SetServiceAccount(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetServiceAccount extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the service account on the instance. For more information, readChanging the service - * account and access scopes for an instance. - * - * Create a request for the method "instances.setServiceAccount". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetServiceAccount#execute()} method to invoke the remote operation. - *

{@link SetServiceAccount#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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. - * @param instance Name of the instance resource to start. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesSetServiceAccountRequest} - * @since 1.13 - */ - protected SetServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesSetServiceAccountRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetServiceAccount set$Xgafv(java.lang.String $Xgafv) { - return (SetServiceAccount) super.set$Xgafv($Xgafv); - } - - @Override - public SetServiceAccount setAccessToken(java.lang.String accessToken) { - return (SetServiceAccount) super.setAccessToken(accessToken); - } - - @Override - public SetServiceAccount setAlt(java.lang.String alt) { - return (SetServiceAccount) super.setAlt(alt); - } - - @Override - public SetServiceAccount setCallback(java.lang.String callback) { - return (SetServiceAccount) super.setCallback(callback); - } - - @Override - public SetServiceAccount setFields(java.lang.String fields) { - return (SetServiceAccount) super.setFields(fields); - } - - @Override - public SetServiceAccount setKey(java.lang.String key) { - return (SetServiceAccount) super.setKey(key); - } - - @Override - public SetServiceAccount setOauthToken(java.lang.String oauthToken) { - return (SetServiceAccount) super.setOauthToken(oauthToken); - } - - @Override - public SetServiceAccount setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetServiceAccount) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetServiceAccount setQuotaUser(java.lang.String quotaUser) { - return (SetServiceAccount) super.setQuotaUser(quotaUser); - } - - @Override - public SetServiceAccount setUploadType(java.lang.String uploadType) { - return (SetServiceAccount) super.setUploadType(uploadType); - } - - @Override - public SetServiceAccount setUploadProtocol(java.lang.String uploadProtocol) { - return (SetServiceAccount) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetServiceAccount setUserIp(java.lang.String userIp) { - return (SetServiceAccount) 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 SetServiceAccount 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 SetServiceAccount 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 instance resource to start. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to start. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to start. */ - public SetServiceAccount setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetServiceAccount setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetServiceAccount set(String parameterName, Object value) { - return (SetServiceAccount) super.set(parameterName, value); - } - } - /** - * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a - * running instance. This method supports PATCH semantics and uses the JSON merge patch format and - * processing rules. - * - * Create a request for the method "instances.setShieldedInstanceIntegrityPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetShieldedInstanceIntegrityPolicy#execute()} method to invoke the - * remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.ShieldedInstanceIntegrityPolicy} - * @return the request - */ - public SetShieldedInstanceIntegrityPolicy setShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.ShieldedInstanceIntegrityPolicy content) throws java.io.IOException { - SetShieldedInstanceIntegrityPolicy result = new SetShieldedInstanceIntegrityPolicy(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetShieldedInstanceIntegrityPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a - * running instance. This method supports PATCH semantics and uses the JSON merge patch format and - * processing rules. - * - * Create a request for the method "instances.setShieldedInstanceIntegrityPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetShieldedInstanceIntegrityPolicy#execute()} method to invoke the - * remote operation.

{@link SetShieldedInstanceIntegrityPolicy#initialize(com.google.api.clien - * t.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. - * @param instance Name or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.ShieldedInstanceIntegrityPolicy} - * @since 1.13 - */ - protected SetShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.ShieldedInstanceIntegrityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetShieldedInstanceIntegrityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetShieldedInstanceIntegrityPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setAccessToken(java.lang.String accessToken) { - return (SetShieldedInstanceIntegrityPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setAlt(java.lang.String alt) { - return (SetShieldedInstanceIntegrityPolicy) super.setAlt(alt); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setCallback(java.lang.String callback) { - return (SetShieldedInstanceIntegrityPolicy) super.setCallback(callback); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setFields(java.lang.String fields) { - return (SetShieldedInstanceIntegrityPolicy) super.setFields(fields); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setKey(java.lang.String key) { - return (SetShieldedInstanceIntegrityPolicy) super.setKey(key); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetShieldedInstanceIntegrityPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetShieldedInstanceIntegrityPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetShieldedInstanceIntegrityPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setUploadType(java.lang.String uploadType) { - return (SetShieldedInstanceIntegrityPolicy) super.setUploadType(uploadType); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetShieldedInstanceIntegrityPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetShieldedInstanceIntegrityPolicy setUserIp(java.lang.String userIp) { - return (SetShieldedInstanceIntegrityPolicy) 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 SetShieldedInstanceIntegrityPolicy 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 SetShieldedInstanceIntegrityPolicy 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 or id of the instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name or id of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name or id of the instance scoping this request. */ - public SetShieldedInstanceIntegrityPolicy setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetShieldedInstanceIntegrityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetShieldedInstanceIntegrityPolicy set(String parameterName, Object value) { - return (SetShieldedInstanceIntegrityPolicy) super.set(parameterName, value); - } - } - /** - * Sets network tags for the specified instance to the data included in the request. - * - * Create a request for the method "instances.setTags". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTags#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Tags} - * @return the request - */ - public SetTags setTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Tags content) throws java.io.IOException { - SetTags result = new SetTags(project, zone, instance, content); - initialize(result); - return result; - } - - public class SetTags extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setTags"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets network tags for the specified instance to the data included in the request. - * - * Create a request for the method "instances.setTags". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTags#execute()} method to invoke the remote operation.

- * {@link - * SetTags#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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Tags} - * @since 1.13 - */ - protected SetTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Tags content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetTags set$Xgafv(java.lang.String $Xgafv) { - return (SetTags) super.set$Xgafv($Xgafv); - } - - @Override - public SetTags setAccessToken(java.lang.String accessToken) { - return (SetTags) super.setAccessToken(accessToken); - } - - @Override - public SetTags setAlt(java.lang.String alt) { - return (SetTags) super.setAlt(alt); - } - - @Override - public SetTags setCallback(java.lang.String callback) { - return (SetTags) super.setCallback(callback); - } - - @Override - public SetTags setFields(java.lang.String fields) { - return (SetTags) super.setFields(fields); - } - - @Override - public SetTags setKey(java.lang.String key) { - return (SetTags) super.setKey(key); - } - - @Override - public SetTags setOauthToken(java.lang.String oauthToken) { - return (SetTags) super.setOauthToken(oauthToken); - } - - @Override - public SetTags setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTags) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTags setQuotaUser(java.lang.String quotaUser) { - return (SetTags) super.setQuotaUser(quotaUser); - } - - @Override - public SetTags setUploadType(java.lang.String uploadType) { - return (SetTags) super.setUploadType(uploadType); - } - - @Override - public SetTags setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTags) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTags setUserIp(java.lang.String userIp) { - return (SetTags) 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 SetTags 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 SetTags 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SetTags setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SetTags setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetTags set(String parameterName, Object value) { - return (SetTags) super.set(parameterName, value); - } - } - /** - * Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance - * event. - * - * Create a request for the method "instances.simulateMaintenanceEvent". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @return the request - */ - public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, instance); - initialize(result); - return result; - } - - public class SimulateMaintenanceEvent extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Simulates a host maintenance event on a VM. For more information, see Simulate a host - * maintenance event. - * - * Create a request for the method "instances.simulateMaintenanceEvent". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation.

{@link SimulateMaintenanceEvent#initialize(com.google.api.client.googleapis.serv - * ices.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. - * @param instance Name of the instance scoping this request. - * @since 1.13 - */ - protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { - return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); - } - - @Override - public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { - return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); - } - - @Override - public SimulateMaintenanceEvent setAlt(java.lang.String alt) { - return (SimulateMaintenanceEvent) super.setAlt(alt); - } - - @Override - public SimulateMaintenanceEvent setCallback(java.lang.String callback) { - return (SimulateMaintenanceEvent) super.setCallback(callback); - } - - @Override - public SimulateMaintenanceEvent setFields(java.lang.String fields) { - return (SimulateMaintenanceEvent) super.setFields(fields); - } - - @Override - public SimulateMaintenanceEvent setKey(java.lang.String key) { - return (SimulateMaintenanceEvent) super.setKey(key); - } - - @Override - public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { - return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); - } - - @Override - public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); - } - - @Override - public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { - return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); - } - - @Override - public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { - return (SimulateMaintenanceEvent) super.setUploadType(uploadType); - } - - @Override - public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { - return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { - return (SimulateMaintenanceEvent) 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 SimulateMaintenanceEvent 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 SimulateMaintenanceEvent 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public SimulateMaintenanceEvent setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Determines whether the customers receive notifications before migration. Only applicable to - * SF vms. - */ - @com.google.api.client.util.Key - private java.lang.Boolean withExtendedNotifications; - - /** Determines whether the customers receive notifications before migration. Only applicable to SF vms. - */ - public java.lang.Boolean getWithExtendedNotifications() { - return withExtendedNotifications; - } - - /** - * Determines whether the customers receive notifications before migration. Only applicable to - * SF vms. - */ - public SimulateMaintenanceEvent setWithExtendedNotifications(java.lang.Boolean withExtendedNotifications) { - this.withExtendedNotifications = withExtendedNotifications; - return this; - } - - @Override - public SimulateMaintenanceEvent set(String parameterName, Object value) { - return (SimulateMaintenanceEvent) super.set(parameterName, value); - } - } - /** - * Starts an instance that was stopped using theinstances().stop method. For more information, - * seeRestart an instance. - * - * Create a request for the method "instances.start". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Start#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to start. - * @return the request - */ - public Start start(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Start result = new Start(project, zone, instance); - initialize(result); - return result; - } - - public class Start extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/start"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Starts an instance that was stopped using theinstances().stop method. For more information, - * seeRestart an instance. - * - * Create a request for the method "instances.start". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Start#execute()} method to invoke the remote operation.

{@link - * Start#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. - * @param instance Name of the instance resource to start. - * @since 1.13 - */ - protected Start(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Start set$Xgafv(java.lang.String $Xgafv) { - return (Start) super.set$Xgafv($Xgafv); - } - - @Override - public Start setAccessToken(java.lang.String accessToken) { - return (Start) super.setAccessToken(accessToken); - } - - @Override - public Start setAlt(java.lang.String alt) { - return (Start) super.setAlt(alt); - } - - @Override - public Start setCallback(java.lang.String callback) { - return (Start) super.setCallback(callback); - } - - @Override - public Start setFields(java.lang.String fields) { - return (Start) super.setFields(fields); - } - - @Override - public Start setKey(java.lang.String key) { - return (Start) super.setKey(key); - } - - @Override - public Start setOauthToken(java.lang.String oauthToken) { - return (Start) super.setOauthToken(oauthToken); - } - - @Override - public Start setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Start) super.setPrettyPrint(prettyPrint); - } - - @Override - public Start setQuotaUser(java.lang.String quotaUser) { - return (Start) super.setQuotaUser(quotaUser); - } - - @Override - public Start setUploadType(java.lang.String uploadType) { - return (Start) super.setUploadType(uploadType); - } - - @Override - public Start setUploadProtocol(java.lang.String uploadProtocol) { - return (Start) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Start setUserIp(java.lang.String userIp) { - return (Start) 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 Start 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 Start 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 instance resource to start. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to start. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to start. */ - public Start setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 Start setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Start set(String parameterName, Object value) { - return (Start) super.set(parameterName, value); - } - } - /** - * Starts an instance that was stopped using theinstances().stop method. For more information, - * seeRestart an instance. - * - * Create a request for the method "instances.startWithEncryptionKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StartWithEncryptionKey#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to start. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesStartWithEncryptionKeyRequest} - * @return the request - */ - public StartWithEncryptionKey startWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesStartWithEncryptionKeyRequest content) throws java.io.IOException { - StartWithEncryptionKey result = new StartWithEncryptionKey(project, zone, instance, content); - initialize(result); - return result; - } - - public class StartWithEncryptionKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Starts an instance that was stopped using theinstances().stop method. For more information, - * seeRestart an instance. - * - * Create a request for the method "instances.startWithEncryptionKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StartWithEncryptionKey#execute()} method to invoke the remote - * operation.

{@link StartWithEncryptionKey#initialize(com.google.api.client.googleapis.servic - * es.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. - * @param instance Name of the instance resource to start. - * @param content the {@link com.google.api.services.compute.preview.model.InstancesStartWithEncryptionKeyRequest} - * @since 1.13 - */ - protected StartWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.InstancesStartWithEncryptionKeyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StartWithEncryptionKey set$Xgafv(java.lang.String $Xgafv) { - return (StartWithEncryptionKey) super.set$Xgafv($Xgafv); - } - - @Override - public StartWithEncryptionKey setAccessToken(java.lang.String accessToken) { - return (StartWithEncryptionKey) super.setAccessToken(accessToken); - } - - @Override - public StartWithEncryptionKey setAlt(java.lang.String alt) { - return (StartWithEncryptionKey) super.setAlt(alt); - } - - @Override - public StartWithEncryptionKey setCallback(java.lang.String callback) { - return (StartWithEncryptionKey) super.setCallback(callback); - } - - @Override - public StartWithEncryptionKey setFields(java.lang.String fields) { - return (StartWithEncryptionKey) super.setFields(fields); - } - - @Override - public StartWithEncryptionKey setKey(java.lang.String key) { - return (StartWithEncryptionKey) super.setKey(key); - } - - @Override - public StartWithEncryptionKey setOauthToken(java.lang.String oauthToken) { - return (StartWithEncryptionKey) super.setOauthToken(oauthToken); - } - - @Override - public StartWithEncryptionKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartWithEncryptionKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public StartWithEncryptionKey setQuotaUser(java.lang.String quotaUser) { - return (StartWithEncryptionKey) super.setQuotaUser(quotaUser); - } - - @Override - public StartWithEncryptionKey setUploadType(java.lang.String uploadType) { - return (StartWithEncryptionKey) super.setUploadType(uploadType); - } - - @Override - public StartWithEncryptionKey setUploadProtocol(java.lang.String uploadProtocol) { - return (StartWithEncryptionKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StartWithEncryptionKey setUserIp(java.lang.String userIp) { - return (StartWithEncryptionKey) 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 StartWithEncryptionKey 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 StartWithEncryptionKey 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 instance resource to start. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to start. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to start. */ - public StartWithEncryptionKey setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 StartWithEncryptionKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StartWithEncryptionKey set(String parameterName, Object value) { - return (StartWithEncryptionKey) super.set(parameterName, value); - } - } - /** - * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a - * later time. Stopped instances do not incur VM usage charges while they are stopped. However, - * resources that the VM is using, such as persistent disks and static IP addresses, will continue - * to be charged until they are deleted. For more information, seeStopping an instance. - * - * Create a request for the method "instances.stop". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Stop#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to stop. - * @return the request - */ - public Stop stop(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Stop result = new Stop(project, zone, instance); - initialize(result); - return result; - } - - public class Stop extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/stop"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a - * later time. Stopped instances do not incur VM usage charges while they are stopped. However, - * resources that the VM is using, such as persistent disks and static IP addresses, will continue - * to be charged until they are deleted. For more information, seeStopping an instance. - * - * Create a request for the method "instances.stop". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Stop#execute()} method to invoke the remote operation.

{@link - * Stop#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. - * @param instance Name of the instance resource to stop. - * @since 1.13 - */ - protected Stop(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Stop set$Xgafv(java.lang.String $Xgafv) { - return (Stop) super.set$Xgafv($Xgafv); - } - - @Override - public Stop setAccessToken(java.lang.String accessToken) { - return (Stop) super.setAccessToken(accessToken); - } - - @Override - public Stop setAlt(java.lang.String alt) { - return (Stop) super.setAlt(alt); - } - - @Override - public Stop setCallback(java.lang.String callback) { - return (Stop) super.setCallback(callback); - } - - @Override - public Stop setFields(java.lang.String fields) { - return (Stop) super.setFields(fields); - } - - @Override - public Stop setKey(java.lang.String key) { - return (Stop) super.setKey(key); - } - - @Override - public Stop setOauthToken(java.lang.String oauthToken) { - return (Stop) super.setOauthToken(oauthToken); - } - - @Override - public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Stop) super.setPrettyPrint(prettyPrint); - } - - @Override - public Stop setQuotaUser(java.lang.String quotaUser) { - return (Stop) super.setQuotaUser(quotaUser); - } - - @Override - public Stop setUploadType(java.lang.String uploadType) { - return (Stop) super.setUploadType(uploadType); - } - - @Override - public Stop setUploadProtocol(java.lang.String uploadProtocol) { - return (Stop) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Stop setUserIp(java.lang.String userIp) { - return (Stop) 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 Stop 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 Stop 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 instance resource to stop. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to stop. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to stop. */ - public Stop setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD - data will be preserved when the instance is suspended. If true, the contents of any attached Local - SSD disks will be discarded. - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - public Stop setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - return this; - } - - /** If set to true, Graceful Shutdown is skipped. */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** If set to true, Graceful Shutdown is skipped. - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** If set to true, Graceful Shutdown is skipped. */ - public Stop setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - 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 Stop setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Stop set(String parameterName, Object value) { - return (Stop) super.set(parameterName, value); - } - } - /** - * This method suspends a running instance, saving its state to persistent storage, and allows you - * to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), - * and incur only storage charges for the saved VM memory and localSSD data. Any charged resources - * the virtual machine was using, such as persistent disks and static IP addresses, will continue to - * be charged while the instance is suspended. For more information, see Suspending and resuming an - * instance. - * - * Create a request for the method "instances.suspend". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Suspend#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to suspend. - * @return the request - */ - public Suspend suspend(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Suspend result = new Suspend(project, zone, instance); - initialize(result); - return result; - } - - public class Suspend extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/suspend"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * This method suspends a running instance, saving its state to persistent storage, and allows you - * to resume the instance at a later time. Suspended instances have no compute costs (cores or - * RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged - * resources the virtual machine was using, such as persistent disks and static IP addresses, will - * continue to be charged while the instance is suspended. For more information, see Suspending - * and resuming an instance. - * - * Create a request for the method "instances.suspend". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Suspend#execute()} method to invoke the remote operation.

- * {@link - * Suspend#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. - * @param instance Name of the instance resource to suspend. - * @since 1.13 - */ - protected Suspend(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Suspend set$Xgafv(java.lang.String $Xgafv) { - return (Suspend) super.set$Xgafv($Xgafv); - } - - @Override - public Suspend setAccessToken(java.lang.String accessToken) { - return (Suspend) super.setAccessToken(accessToken); - } - - @Override - public Suspend setAlt(java.lang.String alt) { - return (Suspend) super.setAlt(alt); - } - - @Override - public Suspend setCallback(java.lang.String callback) { - return (Suspend) super.setCallback(callback); - } - - @Override - public Suspend setFields(java.lang.String fields) { - return (Suspend) super.setFields(fields); - } - - @Override - public Suspend setKey(java.lang.String key) { - return (Suspend) super.setKey(key); - } - - @Override - public Suspend setOauthToken(java.lang.String oauthToken) { - return (Suspend) super.setOauthToken(oauthToken); - } - - @Override - public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Suspend) super.setPrettyPrint(prettyPrint); - } - - @Override - public Suspend setQuotaUser(java.lang.String quotaUser) { - return (Suspend) super.setQuotaUser(quotaUser); - } - - @Override - public Suspend setUploadType(java.lang.String uploadType) { - return (Suspend) super.setUploadType(uploadType); - } - - @Override - public Suspend setUploadProtocol(java.lang.String uploadProtocol) { - return (Suspend) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Suspend setUserIp(java.lang.String userIp) { - return (Suspend) 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 Suspend 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 Suspend 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 instance resource to suspend. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to suspend. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to suspend. */ - public Suspend setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD - data will be preserved when the instance is suspended. If true, the contents of any attached Local - SSD disks will be discarded. - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - public Suspend setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - 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 Suspend setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Suspend set(String parameterName, Object value) { - return (Suspend) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "instances.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "instances.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Updates an instance only if the necessary resources are available. This method can update only a - * specific set of instance properties. See Updating a running instance for a list of updatable - * instance properties. - * - * Create a request for the method "instances.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.Instance} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Instance content) throws java.io.IOException { - Update result = new Update(project, zone, instance, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates an instance only if the necessary resources are available. This method can update only - * a specific set of instance properties. See Updating a running instance for a list of updatable - * instance properties. - * - * Create a request for the method "instances.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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. - * @param instance Name of the instance resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.Instance} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.Instance content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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 instance resource to update. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to update. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to update. */ - public Update setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** - * Whether to discard local SSDs from the instance during restart default value is false. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** Whether to discard local SSDs from the instance during restart default value is false. - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * Whether to discard local SSDs from the instance during restart default value is false. - */ - public Update setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - return this; - } - - /** - * Specifies the action to take when updating an instance even if the updated properties do - * not require it. If not specified, then Compute Engine acts based on the minimum action that - * the updated properties require. - */ - @com.google.api.client.util.Key - private java.lang.String minimalAction; - - /** Specifies the action to take when updating an instance even if the updated properties do not - require it. If not specified, then Compute Engine acts based on the minimum action that the updated - properties require. - */ - public java.lang.String getMinimalAction() { - return minimalAction; - } - - /** - * Specifies the action to take when updating an instance even if the updated properties do - * not require it. If not specified, then Compute Engine acts based on the minimum action that - * the updated properties require. - */ - public Update setMinimalAction(java.lang.String minimalAction) { - this.minimalAction = minimalAction; - return this; - } - - /** - * Specifies the most disruptive action that can be taken on the instance as part of the - * update. Compute Engine returns an error if the instance properties require a more - * disruptive action as part of the instance update. Valid options from lowest to highest are - * NO_EFFECT, REFRESH, and RESTART. - */ - @com.google.api.client.util.Key - private java.lang.String mostDisruptiveAllowedAction; - - /** Specifies the most disruptive action that can be taken on the instance as part of the update. - Compute Engine returns an error if the instance properties require a more disruptive action as part - of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. - */ - public java.lang.String getMostDisruptiveAllowedAction() { - return mostDisruptiveAllowedAction; - } - - /** - * Specifies the most disruptive action that can be taken on the instance as part of the - * update. Compute Engine returns an error if the instance properties require a more - * disruptive action as part of the instance update. Valid options from lowest to highest are - * NO_EFFECT, REFRESH, and RESTART. - */ - public Update setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { - this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - /** - * Updates the specified access config from an instance's network interface with the data included - * in the request. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. - * - * Create a request for the method "instances.updateAccessConfig". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface where the access config is attached. - * @param content the {@link com.google.api.services.compute.preview.model.AccessConfig} - * @return the request - */ - public UpdateAccessConfig updateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.preview.model.AccessConfig content) throws java.io.IOException { - UpdateAccessConfig result = new UpdateAccessConfig(project, zone, instance, networkInterface, content); - initialize(result); - return result; - } - - public class UpdateAccessConfig extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified access config from an instance's network interface with the data included - * in the request. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. - * - * Create a request for the method "instances.updateAccessConfig". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface where the access config is attached. - * @param content the {@link com.google.api.services.compute.preview.model.AccessConfig} - * @since 1.13 - */ - protected UpdateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.preview.model.AccessConfig content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateAccessConfig set$Xgafv(java.lang.String $Xgafv) { - return (UpdateAccessConfig) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateAccessConfig setAccessToken(java.lang.String accessToken) { - return (UpdateAccessConfig) super.setAccessToken(accessToken); - } - - @Override - public UpdateAccessConfig setAlt(java.lang.String alt) { - return (UpdateAccessConfig) super.setAlt(alt); - } - - @Override - public UpdateAccessConfig setCallback(java.lang.String callback) { - return (UpdateAccessConfig) super.setCallback(callback); - } - - @Override - public UpdateAccessConfig setFields(java.lang.String fields) { - return (UpdateAccessConfig) super.setFields(fields); - } - - @Override - public UpdateAccessConfig setKey(java.lang.String key) { - return (UpdateAccessConfig) super.setKey(key); - } - - @Override - public UpdateAccessConfig setOauthToken(java.lang.String oauthToken) { - return (UpdateAccessConfig) super.setOauthToken(oauthToken); - } - - @Override - public UpdateAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateAccessConfig) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateAccessConfig setQuotaUser(java.lang.String quotaUser) { - return (UpdateAccessConfig) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateAccessConfig setUploadType(java.lang.String uploadType) { - return (UpdateAccessConfig) super.setUploadType(uploadType); - } - - @Override - public UpdateAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateAccessConfig) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateAccessConfig setUserIp(java.lang.String userIp) { - return (UpdateAccessConfig) 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 UpdateAccessConfig 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 UpdateAccessConfig 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public UpdateAccessConfig setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** The name of the network interface where the access config is attached. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface where the access config is attached. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface where the access config is attached. */ - public UpdateAccessConfig setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 UpdateAccessConfig setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateAccessConfig set(String parameterName, Object value) { - return (UpdateAccessConfig) super.set(parameterName, value); - } - } - /** - * Updates the Display config for a VM instance. You can only use this method on a stopped VM - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "instances.updateDisplayDevice". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateDisplayDevice#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.DisplayDevice} - * @return the request - */ - public UpdateDisplayDevice updateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.DisplayDevice content) throws java.io.IOException { - UpdateDisplayDevice result = new UpdateDisplayDevice(project, zone, instance, content); - initialize(result); - return result; - } - - public class UpdateDisplayDevice extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Updates the Display config for a VM instance. You can only use this method on a stopped VM - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. - * - * Create a request for the method "instances.updateDisplayDevice". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateDisplayDevice#execute()} method to invoke the remote - * operation.

{@link UpdateDisplayDevice#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. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.DisplayDevice} - * @since 1.13 - */ - protected UpdateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.DisplayDevice content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateDisplayDevice set$Xgafv(java.lang.String $Xgafv) { - return (UpdateDisplayDevice) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateDisplayDevice setAccessToken(java.lang.String accessToken) { - return (UpdateDisplayDevice) super.setAccessToken(accessToken); - } - - @Override - public UpdateDisplayDevice setAlt(java.lang.String alt) { - return (UpdateDisplayDevice) super.setAlt(alt); - } - - @Override - public UpdateDisplayDevice setCallback(java.lang.String callback) { - return (UpdateDisplayDevice) super.setCallback(callback); - } - - @Override - public UpdateDisplayDevice setFields(java.lang.String fields) { - return (UpdateDisplayDevice) super.setFields(fields); - } - - @Override - public UpdateDisplayDevice setKey(java.lang.String key) { - return (UpdateDisplayDevice) super.setKey(key); - } - - @Override - public UpdateDisplayDevice setOauthToken(java.lang.String oauthToken) { - return (UpdateDisplayDevice) super.setOauthToken(oauthToken); - } - - @Override - public UpdateDisplayDevice setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateDisplayDevice) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateDisplayDevice setQuotaUser(java.lang.String quotaUser) { - return (UpdateDisplayDevice) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateDisplayDevice setUploadType(java.lang.String uploadType) { - return (UpdateDisplayDevice) super.setUploadType(uploadType); - } - - @Override - public UpdateDisplayDevice setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateDisplayDevice) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateDisplayDevice setUserIp(java.lang.String userIp) { - return (UpdateDisplayDevice) 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 UpdateDisplayDevice 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 UpdateDisplayDevice 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 instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance scoping this request. */ - public UpdateDisplayDevice setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.instance = instance; - 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 UpdateDisplayDevice setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateDisplayDevice set(String parameterName, Object value) { - return (UpdateDisplayDevice) super.set(parameterName, value); - } - } - /** - * Updates an instance's network interface. This method can only update an interface's alias IP - * range and attached network. See Modifying alias IP ranges for an existing instance for - * instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on - * migrating an interface. This method follows PATCH semantics. - * - * Create a request for the method "instances.updateNetworkInterface". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateNetworkInterface#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface to update. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkInterface} - * @return the request - */ - public UpdateNetworkInterface updateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.preview.model.NetworkInterface content) throws java.io.IOException { - UpdateNetworkInterface result = new UpdateNetworkInterface(project, zone, instance, networkInterface, content); - initialize(result); - return result; - } - - public class UpdateNetworkInterface extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates an instance's network interface. This method can only update an interface's alias IP - * range and attached network. See Modifying alias IP ranges for an existing instance for - * instructions on changing alias IP ranges. See Migrating a VM between networks for instructions - * on migrating an interface. This method follows PATCH semantics. - * - * Create a request for the method "instances.updateNetworkInterface". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateNetworkInterface#execute()} method to invoke the remote - * operation.

{@link UpdateNetworkInterface#initialize(com.google.api.client.googleapis.servic - * es.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. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface to update. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkInterface} - * @since 1.13 - */ - protected UpdateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.preview.model.NetworkInterface content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateNetworkInterface set$Xgafv(java.lang.String $Xgafv) { - return (UpdateNetworkInterface) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateNetworkInterface setAccessToken(java.lang.String accessToken) { - return (UpdateNetworkInterface) super.setAccessToken(accessToken); - } - - @Override - public UpdateNetworkInterface setAlt(java.lang.String alt) { - return (UpdateNetworkInterface) super.setAlt(alt); - } - - @Override - public UpdateNetworkInterface setCallback(java.lang.String callback) { - return (UpdateNetworkInterface) super.setCallback(callback); - } - - @Override - public UpdateNetworkInterface setFields(java.lang.String fields) { - return (UpdateNetworkInterface) super.setFields(fields); - } - - @Override - public UpdateNetworkInterface setKey(java.lang.String key) { - return (UpdateNetworkInterface) super.setKey(key); - } - - @Override - public UpdateNetworkInterface setOauthToken(java.lang.String oauthToken) { - return (UpdateNetworkInterface) super.setOauthToken(oauthToken); - } - - @Override - public UpdateNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateNetworkInterface) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateNetworkInterface setQuotaUser(java.lang.String quotaUser) { - return (UpdateNetworkInterface) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateNetworkInterface setUploadType(java.lang.String uploadType) { - return (UpdateNetworkInterface) super.setUploadType(uploadType); - } - - @Override - public UpdateNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateNetworkInterface) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateNetworkInterface setUserIp(java.lang.String userIp) { - return (UpdateNetworkInterface) 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 UpdateNetworkInterface 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 UpdateNetworkInterface 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public UpdateNetworkInterface setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; - } - - /** The name of the network interface to update. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface to update. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface to update. */ - public UpdateNetworkInterface setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 UpdateNetworkInterface setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateNetworkInterface set(String parameterName, Object value) { - return (UpdateNetworkInterface) super.set(parameterName, value); - } - } - /** - * Updates the Shielded Instance config for an instance. You can only use this method on a stopped - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "instances.updateShieldedInstanceConfig". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateShieldedInstanceConfig#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.ShieldedInstanceConfig} - * @return the request - */ - public UpdateShieldedInstanceConfig updateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.ShieldedInstanceConfig content) throws java.io.IOException { - UpdateShieldedInstanceConfig result = new UpdateShieldedInstanceConfig(project, zone, instance, content); - initialize(result); - return result; - } - - public class UpdateShieldedInstanceConfig extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the Shielded Instance config for an instance. You can only use this method on a stopped - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. - * - * Create a request for the method "instances.updateShieldedInstanceConfig". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateShieldedInstanceConfig#execute()} method to invoke the remote - * operation.

{@link UpdateShieldedInstanceConfig#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. - * @param instance Name or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.ShieldedInstanceConfig} - * @since 1.13 - */ - protected UpdateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.preview.model.ShieldedInstanceConfig content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateShieldedInstanceConfig set$Xgafv(java.lang.String $Xgafv) { - return (UpdateShieldedInstanceConfig) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateShieldedInstanceConfig setAccessToken(java.lang.String accessToken) { - return (UpdateShieldedInstanceConfig) super.setAccessToken(accessToken); - } - - @Override - public UpdateShieldedInstanceConfig setAlt(java.lang.String alt) { - return (UpdateShieldedInstanceConfig) super.setAlt(alt); - } - - @Override - public UpdateShieldedInstanceConfig setCallback(java.lang.String callback) { - return (UpdateShieldedInstanceConfig) super.setCallback(callback); - } - - @Override - public UpdateShieldedInstanceConfig setFields(java.lang.String fields) { - return (UpdateShieldedInstanceConfig) super.setFields(fields); - } - - @Override - public UpdateShieldedInstanceConfig setKey(java.lang.String key) { - return (UpdateShieldedInstanceConfig) super.setKey(key); - } - - @Override - public UpdateShieldedInstanceConfig setOauthToken(java.lang.String oauthToken) { - return (UpdateShieldedInstanceConfig) super.setOauthToken(oauthToken); - } - - @Override - public UpdateShieldedInstanceConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateShieldedInstanceConfig) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateShieldedInstanceConfig setQuotaUser(java.lang.String quotaUser) { - return (UpdateShieldedInstanceConfig) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateShieldedInstanceConfig setUploadType(java.lang.String uploadType) { - return (UpdateShieldedInstanceConfig) super.setUploadType(uploadType); - } - - @Override - public UpdateShieldedInstanceConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateShieldedInstanceConfig) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateShieldedInstanceConfig setUserIp(java.lang.String userIp) { - return (UpdateShieldedInstanceConfig) 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 UpdateShieldedInstanceConfig 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 UpdateShieldedInstanceConfig 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 or id of the instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name or id of the instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name or id of the instance scoping this request. */ - public UpdateShieldedInstanceConfig setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - 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 UpdateShieldedInstanceConfig setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateShieldedInstanceConfig set(String parameterName, Object value) { - return (UpdateShieldedInstanceConfig) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InstantSnapshotGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstantSnapshotGroups.List request = compute.instantSnapshotGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstantSnapshotGroups instantSnapshotGroups() { - return new InstantSnapshotGroups(); - } - - /** - * The "instantSnapshotGroups" collection of methods. - */ - public class InstantSnapshotGroups { - - /** - * deletes a Zonal InstantSnapshotGroup resource - * - * Create a request for the method "instantSnapshotGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, instantSnapshotGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANT_SNAPSHOT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * deletes a Zonal InstantSnapshotGroup resource - * - * Create a request for the method "instantSnapshotGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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. - * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 InstantSnapshot resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; - - /** Name of the InstantSnapshot resource to delete. - */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; - } - - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshotGroup = instantSnapshotGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * returns the specified InstantSnapshotGroup resource in the specified zone. - * - * Create a request for the method "instantSnapshotGroups.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 zone The name of the zone for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { - Get result = new Get(project, zone, instantSnapshotGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANT_SNAPSHOT_GROUP_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 InstantSnapshotGroup resource in the specified zone. - * - * Create a request for the method "instantSnapshotGroups.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 zone The name of the zone for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstantSnapshotGroup.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])?"); - } - this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 InstantSnapshotGroup resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; - - /** Name of the InstantSnapshotGroup resource to return. - */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; - } - - /** Name of the InstantSnapshotGroup resource to return. */ - public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshotGroup = instantSnapshotGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "instantSnapshotGroups.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "instantSnapshotGroups.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link - * Insert#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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstantSnapshotGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstantSnapshotGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** begin_interface: MixerMutationRequestBuilder */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroup; - - /** begin_interface: MixerMutationRequestBuilder - */ - public java.lang.String getSourceConsistencyGroup() { - return sourceConsistencyGroup; - } - - /** begin_interface: MixerMutationRequestBuilder */ - public Insert setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { - this.sourceConsistencyGroup = sourceConsistencyGroup; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. - * - * Create a request for the method "instantSnapshotGroups.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}/instantSnapshotGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 the list of InstantSnapshotGroup resources contained within the specified zone. - * - * Create a request for the method "instantSnapshotGroups.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.preview.model.ListInstantSnapshotGroups.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instantSnapshotGroups.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instantSnapshotGroups.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InstantSnapshots collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstantSnapshots.List request = compute.instantSnapshots().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstantSnapshots instantSnapshots() { - return new InstantSnapshots(); - } - - /** - * The "instantSnapshots" collection of methods. - */ - public class InstantSnapshots { - - /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instantSnapshots.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/instantSnapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "instantSnapshots.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstantSnapshotAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single - * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on - * the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the - * data will be moved to the next corresponding instantSnapshot. - * - * For more information, seeDeleting instantSnapshots. - * - * Create a request for the method "instantSnapshots.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { - Delete result = new Delete(project, zone, instantSnapshot); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANT_SNAPSHOT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single - * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data - * on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, - * the data will be moved to the next corresponding instantSnapshot. - * - * For more information, seeDeleting instantSnapshots. - * - * Create a request for the method "instantSnapshots.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 InstantSnapshot resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshot; - - /** Name of the InstantSnapshot resource to delete. - */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; - } - - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshot(java.lang.String instantSnapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshot = instantSnapshot; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified InstantSnapshot resource in the specified zone. - * - * Create a request for the method "instantSnapshots.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 zone The name of the zone for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { - Get result = new Get(project, zone, instantSnapshot); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern INSTANT_SNAPSHOT_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 InstantSnapshot resource in the specified zone. - * - * Create a request for the method "instantSnapshots.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 zone The name of the zone for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstantSnapshot.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])?"); - } - this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 InstantSnapshot resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshot; - - /** Name of the InstantSnapshot resource to return. - */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; - } - - /** Name of the InstantSnapshot resource to return. */ - public Get setInstantSnapshot(java.lang.String instantSnapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshot = instantSnapshot; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "instantSnapshots.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "instantSnapshots.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link - * Insert#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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstantSnapshot} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.InstantSnapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of InstantSnapshot resources contained within the specified zone. - * - * Create a request for the method "instantSnapshots.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}/instantSnapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 the list of InstantSnapshot resources contained within the specified zone. - * - * Create a request for the method "instantSnapshots.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.preview.model.InstantSnapshotList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instantSnapshots.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instantSnapshots.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InterconnectAttachmentGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectAttachmentGroups interconnectAttachmentGroups() { - return new InterconnectAttachmentGroups(); - } - - /** - * The "interconnectAttachmentGroups" collection of methods. - */ - public class InterconnectAttachmentGroups { - - /** - * Deletes the specified InterconnectAttachmentGroup in the given scope - * - * Create a request for the method "interconnectAttachmentGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - Delete result = new Delete(project, interconnectAttachmentGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_ATTACHMENT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified InterconnectAttachmentGroup in the given scope - * - * Create a request for the method "interconnectAttachmentGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 InterconnectAttachmentGroup resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; - - /** Name of the InterconnectAttachmentGroup resource to delete. - */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; - } - - /** Name of the InterconnectAttachmentGroup resource to delete. */ - public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified InterconnectAttachmentGroup resource in the given scope. - * - * Create a request for the method "interconnectAttachmentGroups.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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - Get result = new Get(project, interconnectAttachmentGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_ATTACHMENT_GROUP_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 InterconnectAttachmentGroup resource in the given scope. - * - * Create a request for the method "interconnectAttachmentGroups.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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String interconnectAttachmentGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectAttachmentGroup.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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 InterconnectAttachmentGroup resource to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; - - /** Name of the InterconnectAttachmentGroup resource to return. - */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; - } - - /** Name of the InterconnectAttachmentGroup resource to return. */ - public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link GetOperationalStatus#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 interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. - * @since 1.13 - */ - protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectAttachmentGroupsGetOperationalStatusResponse.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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); - } - - @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); - } - - @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); - } - - @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); - } - - @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); - } - - @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); - } - - @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); - } - - @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); - } - - @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); - } - - @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) 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 GetOperationalStatus 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 interconnectAttachmentGroup resource to query. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; - - /** Name of the interconnectAttachmentGroup resource to query. - */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; - } - - /** Name of the interconnectAttachmentGroup resource to query. */ - public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; - return this; - } - - @Override - public GetOperationalStatus set(String parameterName, Object value) { - return (GetOperationalStatus) super.set(parameterName, value); - } - } - /** - * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the - * parameters that are included in the request. - * - * Create a request for the method "interconnectAttachmentGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachmentGroup} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.InterconnectAttachmentGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the - * parameters that are included in the request. - * - * Create a request for the method "interconnectAttachmentGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.InterconnectAttachmentGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.InterconnectAttachmentGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the InterconnectAttachmentGroups for a project in the given scope. - * - * Create a request for the method "interconnectAttachmentGroups.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the InterconnectAttachmentGroups for a project in the given scope. - * - * Create a request for the method "interconnectAttachmentGroups.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectAttachmentGroupsListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. - * This method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "interconnectAttachmentGroups.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 Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachmentGroup} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.preview.model.InterconnectAttachmentGroup content) throws java.io.IOException { - Patch result = new Patch(project, interconnectAttachmentGroup, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_ATTACHMENT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified InterconnectAttachmentGroup resource with the data included in the - * request. This method supports PATCH semantics and usesJSON merge patch format and processing - * rules. - * - * Create a request for the method "interconnectAttachmentGroups.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 Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachmentGroup} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.preview.model.InterconnectAttachmentGroup content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 InterconnectAttachmentGroup resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; - - /** Name of the InterconnectAttachmentGroup resource to patch. - */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; - } - - /** Name of the InterconnectAttachmentGroup resource to patch. */ - public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InterconnectAttachments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectAttachments interconnectAttachments() { - return new InterconnectAttachments(); - } - - /** - * The "interconnectAttachments" collection of methods. - */ - public class InterconnectAttachments { - - /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "interconnectAttachments.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "interconnectAttachments.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectAttachmentAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified interconnect attachment. - * - * Create a request for the method "interconnectAttachments.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, interconnectAttachment); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified interconnect attachment. - * - * Create a request for the method "interconnectAttachments.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 interconnect attachment to delete. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; - - /** Name of the interconnect attachment to delete. - */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; - } - - /** Name of the interconnect attachment to delete. */ - public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachment = interconnectAttachment; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified interconnect attachment. - * - * Create a request for the method "interconnectAttachments.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 region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Get result = new Get(project, region, interconnectAttachment); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_ATTACHMENT_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 interconnect attachment. - * - * Create a request for the method "interconnectAttachments.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 region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectAttachment.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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 interconnect attachment to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; - - /** Name of the interconnect attachment to return. - */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; - } - - /** Name of the interconnect attachment to return. */ - public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachment = interconnectAttachment; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. - * - * Create a request for the method "interconnectAttachments.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachment} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InterconnectAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. - * - * Create a request for the method "interconnectAttachments.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachment} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InterconnectAttachment content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of interconnect attachments contained within the specified region. - * - * Create a request for the method "interconnectAttachments.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 region 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}/interconnectAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of interconnect attachments contained within the specified region. - * - * Create a request for the method "interconnectAttachments.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 region 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.preview.model.InterconnectAttachmentList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified interconnect attachment with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "interconnectAttachments.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachment} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.preview.model.InterconnectAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, interconnectAttachment, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified interconnect attachment with the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "interconnectAttachments.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectAttachment} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.preview.model.InterconnectAttachment content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 interconnect attachment to patch. */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; - - /** Name of the interconnect attachment to patch. - */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; - } - - /** Name of the interconnect attachment to patch. */ - public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachment = interconnectAttachment; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "interconnectAttachments.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "interconnectAttachments.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InterconnectGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectGroups interconnectGroups() { - return new InterconnectGroups(); - } - - /** - * The "interconnectGroups" collection of methods. - */ - public class InterconnectGroups { - - /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. - * - * Create a request for the method "interconnectGroups.createMembers". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnectGroup Name of the group resource to create members for. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectGroupsCreateMembersRequest} - * @return the request - */ - public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.preview.model.InterconnectGroupsCreateMembersRequest content) throws java.io.IOException { - CreateMembers result = new CreateMembers(project, interconnectGroup, content); - initialize(result); - return result; - } - - public class CreateMembers extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. - * - * Create a request for the method "interconnectGroups.createMembers". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation.

- * {@link CreateMembers#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

- * - * @param project Project ID for this request. - * @param interconnectGroup Name of the group resource to create members for. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectGroupsCreateMembersRequest} - * @since 1.13 - */ - protected CreateMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.preview.model.InterconnectGroupsCreateMembersRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CreateMembers set$Xgafv(java.lang.String $Xgafv) { - return (CreateMembers) super.set$Xgafv($Xgafv); - } - - @Override - public CreateMembers setAccessToken(java.lang.String accessToken) { - return (CreateMembers) super.setAccessToken(accessToken); - } - - @Override - public CreateMembers setAlt(java.lang.String alt) { - return (CreateMembers) super.setAlt(alt); - } - - @Override - public CreateMembers setCallback(java.lang.String callback) { - return (CreateMembers) super.setCallback(callback); - } - - @Override - public CreateMembers setFields(java.lang.String fields) { - return (CreateMembers) super.setFields(fields); - } - - @Override - public CreateMembers setKey(java.lang.String key) { - return (CreateMembers) super.setKey(key); - } - - @Override - public CreateMembers setOauthToken(java.lang.String oauthToken) { - return (CreateMembers) super.setOauthToken(oauthToken); - } - - @Override - public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateMembers) super.setPrettyPrint(prettyPrint); - } - - @Override - public CreateMembers setQuotaUser(java.lang.String quotaUser) { - return (CreateMembers) super.setQuotaUser(quotaUser); - } - - @Override - public CreateMembers setUploadType(java.lang.String uploadType) { - return (CreateMembers) super.setUploadType(uploadType); - } - - @Override - public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateMembers) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CreateMembers setUserIp(java.lang.String userIp) { - return (CreateMembers) 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 CreateMembers 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 group resource to create members for. */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** Name of the group resource to create members for. - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** Name of the group resource to create members for. */ - public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; - return this; - } - - @Override - public CreateMembers set(String parameterName, Object value) { - return (CreateMembers) super.set(parameterName, value); - } - } - /** - * Deletes the specified InterconnectGroup in the given scope - * - * Create a request for the method "interconnectGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - Delete result = new Delete(project, interconnectGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified InterconnectGroup in the given scope - * - * Create a request for the method "interconnectGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 interconnectGroup Name of the InterconnectGroup resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String interconnectGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 InterconnectGroup resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** Name of the InterconnectGroup resource to delete. - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** Name of the InterconnectGroup resource to delete. */ - public Delete setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified InterconnectGroup resource in the given scope. - * - * Create a request for the method "interconnectGroups.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 interconnectGroup Name of the InterconnectGroup resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - Get result = new Get(project, interconnectGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_GROUP_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 InterconnectGroup resource in the given scope. - * - * Create a request for the method "interconnectGroups.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 interconnectGroup Name of the InterconnectGroup resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String interconnectGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectGroup.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 InterconnectGroup resource to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** Name of the InterconnectGroup resource to return. - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** Name of the InterconnectGroup resource to return. */ - public Get setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "interconnectGroups.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "interconnectGroups.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link GetOperationalStatus#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 interconnectGroup Name of the interconnectGroup resource to query. - * @since 1.13 - */ - protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectGroupsGetOperationalStatusResponse.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); - } - - @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); - } - - @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); - } - - @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); - } - - @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); - } - - @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); - } - - @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); - } - - @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); - } - - @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); - } - - @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) 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 GetOperationalStatus 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 interconnectGroup resource to query. */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** Name of the interconnectGroup resource to query. - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** Name of the interconnectGroup resource to query. */ - public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; - return this; - } - - @Override - public GetOperationalStatus set(String parameterName, Object value) { - return (GetOperationalStatus) super.set(parameterName, value); - } - } - /** - * Creates a InterconnectGroup in the specified project in the given scope using the parameters that - * are included in the request. - * - * Create a request for the method "interconnectGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectGroup} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.InterconnectGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a InterconnectGroup in the specified project in the given scope using the parameters - * that are included in the request. - * - * Create a request for the method "interconnectGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.InterconnectGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.InterconnectGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the InterconnectGroups for a project in the given scope. - * - * Create a request for the method "interconnectGroups.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the InterconnectGroups for a project in the given scope. - * - * Create a request for the method "interconnectGroups.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectGroupsListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified InterconnectGroup resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "interconnectGroups.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 Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectGroup} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.preview.model.InterconnectGroup content) throws java.io.IOException { - Patch result = new Patch(project, interconnectGroup, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified InterconnectGroup resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "interconnectGroups.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 Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.InterconnectGroup} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.preview.model.InterconnectGroup content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 InterconnectGroup resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** Name of the InterconnectGroup resource to patch. - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** Name of the InterconnectGroup resource to patch. */ - public Patch setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "interconnectGroups.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "interconnectGroups.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InterconnectLocations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectLocations interconnectLocations() { - return new InterconnectLocations(); - } - - /** - * The "interconnectLocations" collection of methods. - */ - public class InterconnectLocations { - - /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. - * - * Create a request for the method "interconnectLocations.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 interconnectLocation Name of the interconnect location to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { - Get result = new Get(project, interconnectLocation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_LOCATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. - * - * Create a request for the method "interconnectLocations.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 interconnectLocation Name of the interconnect location to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String interconnectLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectLocation.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.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 interconnect location to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnectLocation; - - /** Name of the interconnect location to return. - */ - public java.lang.String getInterconnectLocation() { - return interconnectLocation; - } - - /** Name of the interconnect location to return. */ - public Get setInterconnectLocation(java.lang.String interconnectLocation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectLocation = interconnectLocation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of interconnect locations available to the specified project. - * - * Create a request for the method "interconnectLocations.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of interconnect locations available to the specified project. - * - * Create a request for the method "interconnectLocations.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectLocationList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InterconnectRemoteLocations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectRemoteLocations.List request = compute.interconnectRemoteLocations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectRemoteLocations interconnectRemoteLocations() { - return new InterconnectRemoteLocations(); - } - - /** - * The "interconnectRemoteLocations" collection of methods. - */ - public class InterconnectRemoteLocations { - - /** - * Returns the details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making alist() request. - * - * Create a request for the method "interconnectRemoteLocations.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 interconnectRemoteLocation Name of the interconnect remote location to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { - Get result = new Get(project, interconnectRemoteLocation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_REMOTE_LOCATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making alist() request. - * - * Create a request for the method "interconnectRemoteLocations.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 interconnectRemoteLocation Name of the interconnect remote location to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String interconnectRemoteLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectRemoteLocation.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.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 interconnect remote location to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnectRemoteLocation; - - /** Name of the interconnect remote location to return. - */ - public java.lang.String getInterconnectRemoteLocation() { - return interconnectRemoteLocation; - } - - /** Name of the interconnect remote location to return. */ - public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectRemoteLocation = interconnectRemoteLocation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of interconnect remote locations available to the specified project. - * - * Create a request for the method "interconnectRemoteLocations.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of interconnect remote locations available to the specified project. - * - * Create a request for the method "interconnectRemoteLocations.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectRemoteLocationList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Interconnects collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Interconnects interconnects() { - return new Interconnects(); - } - - /** - * The "interconnects" collection of methods. - */ - public class Interconnects { - - /** - * Deletes the specified Interconnect. - * - * Create a request for the method "interconnects.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnect Name of the interconnect to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Delete result = new Delete(project, interconnect); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Interconnect. - * - * Create a request for the method "interconnects.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 interconnect Name of the interconnect to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 interconnect to delete. */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** Name of the interconnect to delete. - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** Name of the interconnect to delete. */ - public Delete setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. - * - * Create a request for the method "interconnects.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 interconnect Name of the interconnect to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Get result = new Get(project, interconnect); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_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 Interconnect. Get a list of available Interconnects by making a list() - * request. - * - * Create a request for the method "interconnects.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 interconnect Name of the interconnect to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Interconnect.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 interconnect to return. */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** Name of the interconnect to return. - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** Name of the interconnect to return. */ - public Get setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the interconnectDiagnostics for the specified Interconnect. - * - * In the event of a global outage, do not use this API to make decisions about where to redirect - * your network traffic. - * - * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global - * resource. A global outage can prevent this API from functioning properly. - * - * Create a request for the method "interconnects.getDiagnostics". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. - * @return the request - */ - public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetDiagnostics result = new GetDiagnostics(project, interconnect); - initialize(result); - return result; - } - - public class GetDiagnostics extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the interconnectDiagnostics for the specified Interconnect. - * - * In the event of a global outage, do not use this API to make decisions about where to redirect - * your network traffic. - * - * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global - * resource. A global outage can prevent this API from functioning properly. - * - * Create a request for the method "interconnects.getDiagnostics". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. - *

{@link GetDiagnostics#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. - * @since 1.13 - */ - protected GetDiagnostics(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectsGetDiagnosticsResponse.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { - return (GetDiagnostics) super.set$Xgafv($Xgafv); - } - - @Override - public GetDiagnostics setAccessToken(java.lang.String accessToken) { - return (GetDiagnostics) super.setAccessToken(accessToken); - } - - @Override - public GetDiagnostics setAlt(java.lang.String alt) { - return (GetDiagnostics) super.setAlt(alt); - } - - @Override - public GetDiagnostics setCallback(java.lang.String callback) { - return (GetDiagnostics) super.setCallback(callback); - } - - @Override - public GetDiagnostics setFields(java.lang.String fields) { - return (GetDiagnostics) super.setFields(fields); - } - - @Override - public GetDiagnostics setKey(java.lang.String key) { - return (GetDiagnostics) super.setKey(key); - } - - @Override - public GetDiagnostics setOauthToken(java.lang.String oauthToken) { - return (GetDiagnostics) super.setOauthToken(oauthToken); - } - - @Override - public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetDiagnostics) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { - return (GetDiagnostics) super.setQuotaUser(quotaUser); - } - - @Override - public GetDiagnostics setUploadType(java.lang.String uploadType) { - return (GetDiagnostics) super.setUploadType(uploadType); - } - - @Override - public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { - return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetDiagnostics setUserIp(java.lang.String userIp) { - return (GetDiagnostics) 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 GetDiagnostics 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 interconnect resource to query. */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** Name of the interconnect resource to query. - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** Name of the interconnect resource to query. */ - public GetDiagnostics setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; - return this; - } - - @Override - public GetDiagnostics set(String parameterName, Object value) { - return (GetDiagnostics) super.set(parameterName, value); - } - } - /** - * Returns the interconnectMacsecConfig for the specified Interconnect. - * - * Create a request for the method "interconnects.getMacsecConfig". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. - * @return the request - */ - public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetMacsecConfig result = new GetMacsecConfig(project, interconnect); - initialize(result); - return result; - } - - public class GetMacsecConfig extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the interconnectMacsecConfig for the specified Interconnect. - * - * Create a request for the method "interconnects.getMacsecConfig". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. - *

{@link GetMacsecConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. - * @since 1.13 - */ - protected GetMacsecConfig(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectsGetMacsecConfigResponse.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { - return (GetMacsecConfig) super.set$Xgafv($Xgafv); - } - - @Override - public GetMacsecConfig setAccessToken(java.lang.String accessToken) { - return (GetMacsecConfig) super.setAccessToken(accessToken); - } - - @Override - public GetMacsecConfig setAlt(java.lang.String alt) { - return (GetMacsecConfig) super.setAlt(alt); - } - - @Override - public GetMacsecConfig setCallback(java.lang.String callback) { - return (GetMacsecConfig) super.setCallback(callback); - } - - @Override - public GetMacsecConfig setFields(java.lang.String fields) { - return (GetMacsecConfig) super.setFields(fields); - } - - @Override - public GetMacsecConfig setKey(java.lang.String key) { - return (GetMacsecConfig) super.setKey(key); - } - - @Override - public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { - return (GetMacsecConfig) super.setOauthToken(oauthToken); - } - - @Override - public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { - return (GetMacsecConfig) super.setQuotaUser(quotaUser); - } - - @Override - public GetMacsecConfig setUploadType(java.lang.String uploadType) { - return (GetMacsecConfig) super.setUploadType(uploadType); - } - - @Override - public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetMacsecConfig setUserIp(java.lang.String userIp) { - return (GetMacsecConfig) 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 GetMacsecConfig 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 interconnect resource to query. */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** Name of the interconnect resource to query. - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** Name of the interconnect resource to query. */ - public GetMacsecConfig setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; - return this; - } - - @Override - public GetMacsecConfig set(String parameterName, Object value) { - return (GetMacsecConfig) super.set(parameterName, value); - } - } - /** - * Creates an Interconnect in the specified project using the data included in the request. - * - * Create a request for the method "interconnects.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Interconnect} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.Interconnect content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates an Interconnect in the specified project using the data included in the request. - * - * Create a request for the method "interconnects.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Interconnect} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Interconnect content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of Interconnects available to the specified project. - * - * Create a request for the method "interconnects.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/interconnects"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of Interconnects available to the specified project. - * - * Create a request for the method "interconnects.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InterconnectList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified Interconnect with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "interconnects.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 Project ID for this request. - * @param interconnect Name of the interconnect to update. - * @param content the {@link com.google.api.services.compute.preview.model.Interconnect} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.preview.model.Interconnect content) throws java.io.IOException { - Patch result = new Patch(project, interconnect, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified Interconnect with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "interconnects.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 Project ID for this request. - * @param interconnect Name of the interconnect to update. - * @param content the {@link com.google.api.services.compute.preview.model.Interconnect} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.preview.model.Interconnect content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 interconnect to update. */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** Name of the interconnect to update. - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** Name of the interconnect to update. */ - public Patch setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "interconnects.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "interconnects.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the LicenseCodes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.LicenseCodes.List request = compute.licenseCodes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public LicenseCodes licenseCodes() { - return new LicenseCodes(); - } - - /** - * The "licenseCodes" collection of methods. - */ - public class LicenseCodes { - - /** - * Return a specified license code. License codes are mirrored across all projects that have - * permissions to read the License Code. Caution* This resource is intended for use only by third- - * party partners who are creatingCloud Marketplace images. - * - * Create a request for the method "licenseCodes.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 licenseCode Number corresponding to the License code resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { - Get result = new Get(project, licenseCode); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 LICENSE_CODE_PATTERN = - java.util.regex.Pattern.compile("[0-9]{0,61}?"); - - /** - * Return a specified license code. License codes are mirrored across all projects that have - * permissions to read the License Code. *Caution* This resource is intended for use only by - * third-party partners who are creatingCloud Marketplace images. - * - * Create a request for the method "licenseCodes.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 licenseCode Number corresponding to the License code resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String licenseCode) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.LicenseCode.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.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Number corresponding to the License code resource to return. */ - @com.google.api.client.util.Key - private java.lang.String licenseCode; - - /** Number corresponding to the License code resource to return. - */ - public java.lang.String getLicenseCode() { - return licenseCode; - } - - /** Number corresponding to the License code resource to return. */ - public Get setLicenseCode(java.lang.String licenseCode) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); - } - this.licenseCode = licenseCode; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. - * - * Create a request for the method "licenseCodes.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. *Caution* This resource is intended for use only by third-party partners who are - * creatingCloud Marketplace images. - * - * Create a request for the method "licenseCodes.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Licenses collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Licenses licenses() { - return new Licenses(); - } - - /** - * The "licenses" collection of methods. - */ - public class Licenses { - - /** - * Deletes the specified license. Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. - * - * Create a request for the method "licenses.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param license Name of the license resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String license) throws java.io.IOException { - Delete result = new Delete(project, license); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 LICENSE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified license. *Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. - * - * Create a request for the method "licenses.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 license Name of the license resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String license) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 license resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String license; - - /** Name of the license resource to delete. - */ - public java.lang.String getLicense() { - return license; - } - - /** Name of the license resource to delete. */ - public Delete setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified License resource. Caution* This resource is intended for use only by third- - * party partners who are creatingCloud Marketplace images. - * - * Create a request for the method "licenses.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 license Name of the License resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { - Get result = new Get(project, license); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 LICENSE_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 License resource. *Caution* This resource is intended for use only by - * third-party partners who are creatingCloud Marketplace images. - * - * Create a request for the method "licenses.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 license Name of the License resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String license) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.License.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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 License resource to return. */ - @com.google.api.client.util.Key - private java.lang.String license; - - /** Name of the License resource to return. - */ - public java.lang.String getLicense() { - return license; - } - - /** Name of the License resource to return. */ - public Get setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. - * - * Create a request for the method "licenses.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. *Caution* This resource is intended for use only by third-party partners who are - * creatingCloud Marketplace images. - * - * Create a request for the method "licenses.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.License} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.License content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of licenses available in the specified project. This method does not get any - * licenses that belong to other projects, including licenses attached to publicly-available images, - * like Debian 9. If you want to get a list of publicly-available licenses, use this method to make - * a request to the respective image project, such as debian-cloud orwindows-cloud. Caution* This - * resource is intended for use only by third-party partners who are creatingCloud Marketplace - * images. - * - * Create a request for the method "licenses.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/licenses"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of licenses available in the specified project. This method does not get any - * licenses that belong to other projects, including licenses attached to publicly-available - * images, like Debian 9. If you want to get a list of publicly-available licenses, use this - * method to make a request to the respective image project, such as debian-cloud orwindows-cloud. - * *Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. - * - * Create a request for the method "licenses.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.LicensesListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Caution* - * This resource is intended for use only by third-party partners who are creatingCloud Marketplace - * images. - * - * Create a request for the method "licenses.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * *Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. - * - * Create a request for the method "licenses.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

{@link - * Update#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 license The license name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.License} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String license, com.google.api.services.compute.preview.model.License content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 license name for this request. */ - @com.google.api.client.util.Key - private java.lang.String license; - - /** The license name for this request. - */ - public java.lang.String getLicense() { - return license; - } - - /** The license name for this request. */ - public Update setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the MachineImages collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public MachineImages machineImages() { - return new MachineImages(); - } - - /** - * The "machineImages" collection of methods. - */ - public class MachineImages { - - /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. - * - * Create a request for the method "machineImages.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param machineImage The name of the machine image to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Delete result = new Delete(project, machineImage); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 MACHINE_IMAGE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be - * undone. - * - * Create a request for the method "machineImages.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 machineImage The name of the machine image to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String machineImage) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 machine image to delete. */ - @com.google.api.client.util.Key - private java.lang.String machineImage; - - /** The name of the machine image to delete. - */ - public java.lang.String getMachineImage() { - return machineImage; - } - - /** The name of the machine image to delete. */ - public Delete setMachineImage(java.lang.String machineImage) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.machineImage = machineImage; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified machine image. - * - * Create a request for the method "machineImages.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 machineImage The name of the machine image. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Get result = new Get(project, machineImage); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 MACHINE_IMAGE_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 machine image. - * - * Create a request for the method "machineImages.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 machineImage The name of the machine image. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String machineImage) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.MachineImage.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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the machine image. */ - @com.google.api.client.util.Key - private java.lang.String machineImage; - - /** The name of the machine image. - */ - public java.lang.String getMachineImage() { - return machineImage; - } - - /** The name of the machine image. */ - public Get setMachineImage(java.lang.String machineImage) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.machineImage = machineImage; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "machineImages.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "machineImages.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a machine image in the specified project using the data that is included in the request. - * If you are creating a new machine image to update an existing instance, your new machine image - * should use the same network or, if applicable, the same subnetwork as the original instance. - * - * Create a request for the method "machineImages.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.MachineImage} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.MachineImage content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/machineImages"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a machine image in the specified project using the data that is included in the - * request. If you are creating a new machine image to update an existing instance, your new - * machine image should use the same network or, if applicable, the same subnetwork as the - * original instance. - * - * Create a request for the method "machineImages.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.MachineImage} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.MachineImage content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Required. Source instance that is used to create the machine image from. */ - @com.google.api.client.util.Key - private java.lang.String sourceInstance; - - /** Required. Source instance that is used to create the machine image from. - */ - public java.lang.String getSourceInstance() { - return sourceInstance; - } - - /** Required. Source instance that is used to create the machine image from. */ - public Insert setSourceInstance(java.lang.String sourceInstance) { - this.sourceInstance = sourceInstance; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of machine images that are contained within the specified project. - * - * Create a request for the method "machineImages.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/machineImages"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of machine images that are contained within the specified project. - * - * Create a request for the method "machineImages.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.MachineImageList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "machineImages.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "machineImages.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the MachineTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public MachineTypes machineTypes() { - return new MachineTypes(); - } - - /** - * The "machineTypes" collection of methods. - */ - public class MachineTypes { - - /** - * Retrieves an aggregated list of machine types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "machineTypes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of machine types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "machineTypes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.MachineTypeAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Returns the specified machine type. - * - * Create a request for the method "machineTypes.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 zone The name of the zone for this request. - * @param machineType Name of the machine type to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String machineType) throws java.io.IOException { - Get result = new Get(project, zone, machineType); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern MACHINE_TYPE_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 machine type. - * - * Create a request for the method "machineTypes.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 zone The name of the zone for this request. - * @param machineType Name of the machine type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String machineType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.MachineType.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])?"); - } - this.machineType = com.google.api.client.util.Preconditions.checkNotNull(machineType, "Required parameter machineType must be specified."); - 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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 static final String API_VERSION = "2026-10-01-preview"; - - 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.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @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 static final String API_VERSION = "2026-10-01-preview"; - - 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.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 managedRuleset; - - /** Name of the managed ruleset to return. - */ - public java.lang.String getManagedRuleset() { - return managedRuleset; - } - - /** Name of the managed ruleset to return. */ - public Get setManagedRuleset(java.lang.String managedRuleset) { - 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}"); - } - this.managedRuleset = managedRuleset; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of all the managed rulesets available. - * - * 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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/managedRulesets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all the managed rulesets available. - * - * 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 - * 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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NetworkAttachments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkAttachments networkAttachments() { - return new NetworkAttachments(); - } - - /** - * The "networkAttachments" collection of methods. - */ - public class NetworkAttachments { - - /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkAttachments.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkAttachments.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkAttachmentAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified NetworkAttachment in the given scope - * - * Create a request for the method "networkAttachments.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, networkAttachment); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified NetworkAttachment in the given scope - * - * Create a request for the method "networkAttachments.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Delete 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 NetworkAttachment resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String networkAttachment; - - /** Name of the NetworkAttachment resource to delete. - */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; - } - - /** Name of the NetworkAttachment resource to delete. */ - public Delete setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified NetworkAttachment resource in the given scope. - * - * Create a request for the method "networkAttachments.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 region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { - Get result = new Get(project, region, networkAttachment); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_ATTACHMENT_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 NetworkAttachment resource in the given scope. - * - * Create a request for the method "networkAttachments.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 region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkAttachment.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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 NetworkAttachment resource to return. */ - @com.google.api.client.util.Key - private java.lang.String networkAttachment; - - /** Name of the NetworkAttachment resource to return. - */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; - } - - /** Name of the NetworkAttachment resource to return. */ - public Get setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "networkAttachments.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "networkAttachments.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkAttachment} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NetworkAttachment content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Insert 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; - } - - /** - * 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the NetworkAttachments for a project in the given scope. - * - * Create a request for the method "networkAttachments.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 region Name of the region of 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}/networkAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the NetworkAttachments for a project in the given scope. - * - * Create a request for the method "networkAttachments.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 region Name of the region of 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.preview.model.NetworkAttachmentList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified NetworkAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "networkAttachments.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 Project ID for this request. - * @param region Name of the region for this request. - * @param networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkAttachment} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.preview.model.NetworkAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, networkAttachment, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified NetworkAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "networkAttachments.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 Project ID for this request. - * @param region Name of the region for this request. - * @param networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkAttachment} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.preview.model.NetworkAttachment content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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 NetworkAttachment resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String networkAttachment; - - /** Name of the NetworkAttachment resource to patch. - */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; - } - - /** Name of the NetworkAttachment resource to patch. */ - public Patch setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "networkAttachments.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "networkAttachments.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NetworkEdgeSecurityServices collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkEdgeSecurityServices networkEdgeSecurityServices() { - return new NetworkEdgeSecurityServices(); - } - - /** - * The "networkEdgeSecurityServices" collection of methods. - */ - public class NetworkEdgeSecurityServices { - - /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEdgeSecurityServiceAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified service. - * - * Create a request for the method "networkEdgeSecurityServices.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { - Delete result = new Delete(project, region, networkEdgeSecurityService); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_EDGE_SECURITY_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified service. - * - * Create a request for the method "networkEdgeSecurityServices.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 network edge security service to delete. */ - @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; - - /** Name of the network edge security service to delete. - */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } - - /** Name of the network edge security service to delete. */ - public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a specified NetworkEdgeSecurityService. - * - * Create a request for the method "networkEdgeSecurityServices.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 region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { - Get result = new Get(project, region, networkEdgeSecurityService); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_EDGE_SECURITY_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets a specified NetworkEdgeSecurityService. - * - * Create a request for the method "networkEdgeSecurityServices.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 region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEdgeSecurityService.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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 network edge security service to get. */ - @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; - - /** Name of the network edge security service to get. - */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } - - /** Name of the network edge security service to get. */ - public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new service in the specified project using the data included in the request. - * - * Create a request for the method "networkEdgeSecurityServices.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEdgeSecurityService} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NetworkEdgeSecurityService content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new service in the specified project using the data included in the request. - * - * Create a request for the method "networkEdgeSecurityServices.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEdgeSecurityService} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NetworkEdgeSecurityService content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "networkEdgeSecurityServices.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to update. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEdgeSecurityService} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.preview.model.NetworkEdgeSecurityService content) throws java.io.IOException { - Patch result = new Patch(project, region, networkEdgeSecurityService, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_EDGE_SECURITY_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "networkEdgeSecurityServices.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to update. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEdgeSecurityService} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.preview.model.NetworkEdgeSecurityService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 network edge security service to update. */ - @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; - - /** Name of the network edge security service to update. - */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } - - /** Name of the network edge security service to update. */ - public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; - return this; - } - - @com.google.api.client.util.Key - private java.util.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Patch setPaths(java.util.List paths) { - this.paths = paths; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Indicates fields to be updated as part of this request. */ - 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 NetworkEndpointGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkEndpointGroups networkEndpointGroups() { - return new NetworkEndpointGroups(); - } - - /** - * The "networkEndpointGroups" collection of methods. - */ - public class NetworkEndpointGroups { - - /** - * Retrieves the list of network endpoint groups and sorts them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkEndpointGroups.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of network endpoint groups and sorts them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkEndpointGroups.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroupAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Attach a list of network endpoints to the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroupsAttachEndpointsRequest} - * @return the request - */ - public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.NetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { - AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, zone, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class AttachNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Attach a list of network endpoints to the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.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 where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroupsAttachEndpointsRequest} - * @since 1.13 - */ - protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.NetworkEndpointGroupsAttachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); - } - - @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); - } - - @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); - } - - @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); - } - - @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) 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 AttachNetworkEndpoints 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 where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public AttachNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM - * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be - * deleted if there are backend services referencing it. - * - * Create a request for the method "networkEndpointGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, networkEndpointGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM - * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot - * be deleted if there are backend services referencing it. - * - * Create a request for the method "networkEndpointGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Detach a list of network endpoints from the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroupsDetachEndpointsRequest} - * @return the request - */ - public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.NetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { - DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, zone, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class DetachNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Detach a list of network endpoints from the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.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 where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroupsDetachEndpointsRequest} - * @since 1.13 - */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.NetworkEndpointGroupsDetachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); - } - - @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); - } - - @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); - } - - @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); - } - - @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) 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 DetachNetworkEndpoints 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 where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public DetachNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 DetachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.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 zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, zone, networkEndpointGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.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 zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroup.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with - * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage - * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service - * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet - * NEGs):global API - * - * Create a request for the method "networkEndpointGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.NetworkEndpointGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs - * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To - * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private - * Service Connect NEGs): regional API - To manage NEGs with global scope (such as - * global internet NEGs):global API - * - * Create a request for the method "networkEndpointGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.NetworkEndpointGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 where you want to create the network endpoint group. It should comply - * with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where you want to create the network endpoint group. It should comply with - RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of network endpoint groups that are located in the specified project and zone. - * - * Create a request for the method "networkEndpointGroups.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 thezone - where the network endpoint group is located. It should comply with RFC1035. - * @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}/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of network endpoint groups that are located in the specified project and - * zone. - * - * Create a request for the method "networkEndpointGroups.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 thezone - where the network endpoint group is located. It should comply with RFC1035. - * @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.preview.model.NetworkEndpointGroupList.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 thezone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public List setZone(java.lang.String zone) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the network endpoints in the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroupsListEndpointsRequest} - * @return the request - */ - public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.NetworkEndpointGroupsListEndpointsRequest content) throws java.io.IOException { - ListNetworkEndpoints result = new ListNetworkEndpoints(project, zone, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class ListNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the network endpoints in the specified network endpoint group. - * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link ListNetworkEndpoints#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 where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroupsListEndpointsRequest} - * @since 1.13 - */ - protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.NetworkEndpointGroupsListEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.NetworkEndpointGroupsListNetworkEndpoints.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); - } - - @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); - } - - @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); - } - - @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); - } - - @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) 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 ListNetworkEndpoints 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 where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public ListNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group from which you want to generate a list of included network - endpoints. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networkEndpointGroups.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networkEndpointGroups.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NetworkFirewallPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkFirewallPolicies.List request = compute.networkFirewallPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkFirewallPolicies networkFirewallPolicies() { - return new NetworkFirewallPolicies(); - } - - /** - * The "networkFirewallPolicies" collection of methods. - */ - public class NetworkFirewallPolicies { - - /** - * Inserts an association for the specified firewall policy. - * - * Create a request for the method "networkFirewallPolicies.addAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyAssociation} - * @return the request - */ - public AddAssociation addAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(project, firewallPolicy, content); - initialize(result); - return result; - } - - public class AddAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Inserts an association for the specified firewall policy. - * - * Create a request for the method "networkFirewallPolicies.addAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyAssociation} - * @since 1.13 - */ - protected AddAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); - } - - @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); - } - - @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); - } - - @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); - } - - @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); - } - - @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); - } - - @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); - } - - @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) 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 AddAssociation 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 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 AddAssociation 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; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; - - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. - */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; - 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 AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); - } - } - /** - * Inserts a packet mirroring rule into a firewall policy. - * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @return the request - */ - public AddPacketMirroringRule addPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - AddPacketMirroringRule result = new AddPacketMirroringRule(project, firewallPolicy, content); - initialize(result); - return result; - } - - public class AddPacketMirroringRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Inserts a packet mirroring rule into a firewall policy. - * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote - * operation.

{@link AddPacketMirroringRule#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected AddPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (AddPacketMirroringRule) super.setAccessToken(accessToken); - } - - @Override - public AddPacketMirroringRule setAlt(java.lang.String alt) { - return (AddPacketMirroringRule) super.setAlt(alt); - } - - @Override - public AddPacketMirroringRule setCallback(java.lang.String callback) { - return (AddPacketMirroringRule) super.setCallback(callback); - } - - @Override - public AddPacketMirroringRule setFields(java.lang.String fields) { - return (AddPacketMirroringRule) super.setFields(fields); - } - - @Override - public AddPacketMirroringRule setKey(java.lang.String key) { - return (AddPacketMirroringRule) super.setKey(key); - } - - @Override - public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (AddPacketMirroringRule) super.setOauthToken(oauthToken); - } - - @Override - public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (AddPacketMirroringRule) super.setUploadType(uploadType); - } - - @Override - public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddPacketMirroringRule setUserIp(java.lang.String userIp) { - return (AddPacketMirroringRule) 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 AddPacketMirroringRule 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 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 AddPacketMirroringRule 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; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMaxPriority() { - return maxPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; - return this; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer minPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMinPriority() { - return minPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; - 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 AddPacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddPacketMirroringRule set(String parameterName, Object value) { - return (AddPacketMirroringRule) super.set(parameterName, value); - } - } - /** - * Inserts a rule into a firewall policy. - * - * Create a request for the method "networkFirewallPolicies.addRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @return the request - */ - public AddRule addRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(project, firewallPolicy, content); - initialize(result); - return result; - } - - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Inserts a rule into a firewall policy. - * - * Create a request for the method "networkFirewallPolicies.addRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

- * {@link - * AddRule#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); - } - - @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); - } - - @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); - } - - @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); - } - - @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); - } - - @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); - } - - @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); - } - - @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) 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 AddRule 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 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 AddRule 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; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMaxPriority() { - return maxPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; - return this; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer minPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMinPriority() { - return minPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; - 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 AddRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies from - * all applicable scopes (global and regional) and grouping the results per scope. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkFirewallPolicies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies - * from all applicable scopes (global and regional) and grouping the results per scope. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "networkFirewallPolicies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkFirewallPolicyAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Copies rules to the specified firewall policy. - * - * Create a request for the method "networkFirewallPolicies.cloneRules". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(project, firewallPolicy); - initialize(result); - return result; - } - - public class CloneRules extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Copies rules to the specified firewall policy. - * - * Create a request for the method "networkFirewallPolicies.cloneRules". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

- * {@link - * CloneRules#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 firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); - } - - @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); - } - - @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); - } - - @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); - } - - @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); - } - - @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); - } - - @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); - } - - @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); - } - - @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); - } - - @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); - } - - @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) 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 CloneRules 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 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 CloneRules 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 CloneRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** The firewall policy from which to copy rules. */ - @com.google.api.client.util.Key - private java.lang.String sourceFirewallPolicy; - - /** The firewall policy from which to copy rules. - */ - public java.lang.String getSourceFirewallPolicy() { - return sourceFirewallPolicy; - } - - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; - return this; - } - - @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Create a request for the method "networkFirewallPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(project, firewallPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified policy. - * - * Create a request for the method "networkFirewallPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 firewallPolicy Name of the firewall policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 firewall policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to delete. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to delete. */ - public Delete 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified network firewall policy. - * - * Create a request for the method "networkFirewallPolicies.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 firewallPolicy Name of the firewall policy to get. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(project, firewallPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_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 network firewall policy. - * - * Create a request for the method "networkFirewallPolicies.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 firewallPolicy Name of the firewall policy to get. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicy.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 firewall policy to get. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to get. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to get. */ - public Get 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets an association with the specified name. - * - * Create a request for the method "networkFirewallPolicies.getAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. - * @return the request - */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, firewallPolicy); - initialize(result); - return result; - } - - public class GetAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets an association with the specified name. - * - * Create a request for the method "networkFirewallPolicies.getAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. - * @since 1.13 - */ - protected GetAssociation(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyAssociation.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); - } - - @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); - } - - @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); - } - - @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); - } - - @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); - } - - @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); - } - - @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); - } - - @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) 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 GetAssociation 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 firewall policy to which the queried association belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried association belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried association belongs. */ - public GetAssociation 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; - } - - /** The name of the association to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the association to get from the firewall policy. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link GetPacketMirroringRule#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyRule.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (GetPacketMirroringRule) super.setAccessToken(accessToken); - } - - @Override - public GetPacketMirroringRule setAlt(java.lang.String alt) { - return (GetPacketMirroringRule) super.setAlt(alt); - } - - @Override - public GetPacketMirroringRule setCallback(java.lang.String callback) { - return (GetPacketMirroringRule) super.setCallback(callback); - } - - @Override - public GetPacketMirroringRule setFields(java.lang.String fields) { - return (GetPacketMirroringRule) super.setFields(fields); - } - - @Override - public GetPacketMirroringRule setKey(java.lang.String key) { - return (GetPacketMirroringRule) super.setKey(key); - } - - @Override - public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (GetPacketMirroringRule) super.setOauthToken(oauthToken); - } - - @Override - public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (GetPacketMirroringRule) super.setUploadType(uploadType); - } - - @Override - public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetPacketMirroringRule setUserIp(java.lang.String userIp) { - return (GetPacketMirroringRule) 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 GetPacketMirroringRule 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 firewall policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried rule belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried rule belongs. */ - public GetPacketMirroringRule 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; - } - - /** The priority of the rule to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the firewall policy. */ - public GetPacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetPacketMirroringRule set(String parameterName, Object value) { - return (GetPacketMirroringRule) super.set(parameterName, value); - } - } - /** - * Gets a rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.getRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @return the request - */ - public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, firewallPolicy); - initialize(result); - return result; - } - - public class GetRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets a rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.getRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

- * {@link - * GetRule#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 firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyRule.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); - } - - @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); - } - - @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); - } - - @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); - } - - @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); - } - - @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) 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 GetRule 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 firewall policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried rule belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule 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; - } - - /** The priority of the rule to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.FirewallPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.FirewallPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all the policies that have been configured for the specified project. - * - * Create a request for the method "networkFirewallPolicies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all the policies that have been configured for the specified project. - * - * Create a request for the method "networkFirewallPolicies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.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 Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicy content) throws java.io.IOException { - Patch result = new Patch(project, firewallPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified policy with the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.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 Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 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 Patch 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Patches a packet mirroring rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @return the request - */ - public PatchPacketMirroringRule patchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - PatchPacketMirroringRule result = new PatchPacketMirroringRule(project, firewallPolicy, content); - initialize(result); - return result; - } - - public class PatchPacketMirroringRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches a packet mirroring rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote - * operation.

{@link PatchPacketMirroringRule#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected PatchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (PatchPacketMirroringRule) super.setAccessToken(accessToken); - } - - @Override - public PatchPacketMirroringRule setAlt(java.lang.String alt) { - return (PatchPacketMirroringRule) super.setAlt(alt); - } - - @Override - public PatchPacketMirroringRule setCallback(java.lang.String callback) { - return (PatchPacketMirroringRule) super.setCallback(callback); - } - - @Override - public PatchPacketMirroringRule setFields(java.lang.String fields) { - return (PatchPacketMirroringRule) super.setFields(fields); - } - - @Override - public PatchPacketMirroringRule setKey(java.lang.String key) { - return (PatchPacketMirroringRule) super.setKey(key); - } - - @Override - public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (PatchPacketMirroringRule) super.setUploadType(uploadType); - } - - @Override - public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { - return (PatchPacketMirroringRule) 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 PatchPacketMirroringRule 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 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 PatchPacketMirroringRule 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; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchPacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 PatchPacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchPacketMirroringRule set(String parameterName, Object value) { - return (PatchPacketMirroringRule) super.set(parameterName, value); - } - } - /** - * Patches a rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.patchRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @return the request - */ - public PatchRule patchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(project, firewallPolicy, content); - initialize(result); - return result; - } - - public class PatchRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches a rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.patchRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

- * {@link - * PatchRule#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); - } - - @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); - } - - @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); - } - - @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); - } - - @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); - } - - @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); - } - - @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) 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 PatchRule 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 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 PatchRule 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; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 PatchRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); - } - } - /** - * Removes an association for the specified firewall policy. - * - * Create a request for the method "networkFirewallPolicies.removeAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); - initialize(result); - return result; - } - - public class RemoveAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes an association for the specified firewall policy. - * - * Create a request for the method "networkFirewallPolicies.removeAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected RemoveAssociation(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); - } - - @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); - } - - @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); - } - - @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); - } - - @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); - } - - @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); - } - - @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); - } - - @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) 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 RemoveAssociation 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 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 RemoveAssociation 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; - } - - /** Name for the attachment that will be removed. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Name for the attachment that will be removed. - */ - public java.lang.String getName() { - return name; - } - - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; - 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 RemoveAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); - } - } - /** - * Deletes a packet mirroring rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); - initialize(result); - return result; - } - - public class RemovePacketMirroringRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes a packet mirroring rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote - * operation.

{@link RemovePacketMirroringRule#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

- * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected RemovePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (RemovePacketMirroringRule) super.setAccessToken(accessToken); - } - - @Override - public RemovePacketMirroringRule setAlt(java.lang.String alt) { - return (RemovePacketMirroringRule) super.setAlt(alt); - } - - @Override - public RemovePacketMirroringRule setCallback(java.lang.String callback) { - return (RemovePacketMirroringRule) super.setCallback(callback); - } - - @Override - public RemovePacketMirroringRule setFields(java.lang.String fields) { - return (RemovePacketMirroringRule) super.setFields(fields); - } - - @Override - public RemovePacketMirroringRule setKey(java.lang.String key) { - return (RemovePacketMirroringRule) super.setKey(key); - } - - @Override - public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); - } - - @Override - public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { - return (RemovePacketMirroringRule) super.setUploadType(uploadType); - } - - @Override - public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { - return (RemovePacketMirroringRule) 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 RemovePacketMirroringRule 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 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 RemovePacketMirroringRule 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; - } - - /** The priority of the rule to remove from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the firewall policy. */ - public RemovePacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 RemovePacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemovePacketMirroringRule set(String parameterName, Object value) { - return (RemovePacketMirroringRule) super.set(parameterName, value); - } - } - /** - * Deletes a rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.removeRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @return the request - */ - public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, firewallPolicy); - initialize(result); - return result; - } - - public class RemoveRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes a rule of the specified priority. - * - * Create a request for the method "networkFirewallPolicies.removeRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

- * {@link - * RemoveRule#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 firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); - } - - @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); - } - - @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); - } - - @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); - } - - @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); - } - - @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); - } - - @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); - } - - @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) 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 RemoveRule 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 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 RemoveRule 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; - } - - /** The priority of the rule to remove from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the firewall policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 RemoveRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NetworkProfiles collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkProfiles.List request = compute.networkProfiles().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkProfiles networkProfiles() { - return new NetworkProfiles(); - } - - /** - * The "networkProfiles" collection of methods. - */ - public class NetworkProfiles { - - /** - * Returns the specified network profile. - * - * Create a request for the method "networkProfiles.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 networkProfile Name of the network profile to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { - Get result = new Get(project, networkProfile); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PROFILE_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 network profile. - * - * Create a request for the method "networkProfiles.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 networkProfile Name of the network profile to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String networkProfile) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkProfile.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.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), - "Parameter networkProfile must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 network profile to return. */ - @com.google.api.client.util.Key - private java.lang.String networkProfile; - - /** Name of the network profile to return. - */ - public java.lang.String getNetworkProfile() { - return networkProfile; - } - - /** Name of the network profile to return. */ - public Get setNetworkProfile(java.lang.String networkProfile) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), - "Parameter networkProfile must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkProfile = networkProfile; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of network profiles available to the specified project. - * - * Create a request for the method "networkProfiles.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/networkProfiles"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of network profiles available to the specified project. - * - * Create a request for the method "networkProfiles.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkProfilesListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Networks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Networks.List request = compute.networks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Networks networks() { - return new Networks(); - } - - /** - * The "networks" collection of methods. - */ - public class Networks { - - /** - * Adds a peering to the specified network. - * - * Create a request for the method "networks.addPeering". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network resource to add peering to. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksAddPeeringRequest} - * @return the request - */ - public AddPeering addPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksAddPeeringRequest content) throws java.io.IOException { - AddPeering result = new AddPeering(project, network, content); - initialize(result); - return result; - } - - public class AddPeering extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds a peering to the specified network. - * - * Create a request for the method "networks.addPeering". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation.

- * {@link - * AddPeering#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 network Name of the network resource to add peering to. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksAddPeeringRequest} - * @since 1.13 - */ - protected AddPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksAddPeeringRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddPeering set$Xgafv(java.lang.String $Xgafv) { - return (AddPeering) super.set$Xgafv($Xgafv); - } - - @Override - public AddPeering setAccessToken(java.lang.String accessToken) { - return (AddPeering) super.setAccessToken(accessToken); - } - - @Override - public AddPeering setAlt(java.lang.String alt) { - return (AddPeering) super.setAlt(alt); - } - - @Override - public AddPeering setCallback(java.lang.String callback) { - return (AddPeering) super.setCallback(callback); - } - - @Override - public AddPeering setFields(java.lang.String fields) { - return (AddPeering) super.setFields(fields); - } - - @Override - public AddPeering setKey(java.lang.String key) { - return (AddPeering) super.setKey(key); - } - - @Override - public AddPeering setOauthToken(java.lang.String oauthToken) { - return (AddPeering) super.setOauthToken(oauthToken); - } - - @Override - public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPeering) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddPeering setQuotaUser(java.lang.String quotaUser) { - return (AddPeering) super.setQuotaUser(quotaUser); - } - - @Override - public AddPeering setUploadType(java.lang.String uploadType) { - return (AddPeering) super.setUploadType(uploadType); - } - - @Override - public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPeering) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddPeering setUserIp(java.lang.String userIp) { - return (AddPeering) 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 AddPeering 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 network resource to add peering to. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network resource to add peering to. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network resource to add peering to. */ - public AddPeering setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 AddPeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddPeering set(String parameterName, Object value) { - return (AddPeering) super.set(parameterName, value); - } - } - /** - * Cancel requests to remove a peering from the specified network. Applicable only for - * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the - * specified network. - * - * Create a request for the method "networks.cancelRequestRemovePeering". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksCancelRequestRemovePeeringRequest} - * @return the request - */ - public CancelRequestRemovePeering cancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksCancelRequestRemovePeeringRequest content) throws java.io.IOException { - CancelRequestRemovePeering result = new CancelRequestRemovePeering(project, network, content); - initialize(result); - return result; - } - - public class CancelRequestRemovePeering extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Cancel requests to remove a peering from the specified network. Applicable only for - * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from - * the specified network. - * - * Create a request for the method "networks.cancelRequestRemovePeering". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote - * operation.

{@link CancelRequestRemovePeering#initialize(com.google.api.client.googleapis.se - * rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

{@link - * Delete#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 network Name of the network to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String network) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 network to delete. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network to delete. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network to delete. */ - public Delete setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified network. - * - * Create a request for the method "networks.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 network Name of the network to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { - Get result = new Get(project, network); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_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 network. - * - * Create a request for the method "networks.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 network Name of the network to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Network.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 network to return. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network to return. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network to return. */ - public Get setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the effective firewalls on a given network. - * - * Create a request for the method "networks.getEffectiveFirewalls". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param network Name of the network for this request. - * @return the request - */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); - initialize(result); - return result; - } - - public class GetEffectiveFirewalls extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Returns the effective firewalls on a given network. - * - * Create a request for the method "networks.getEffectiveFirewalls". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param network Name of the network for this request. - * @since 1.13 - */ - protected GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworksGetEffectiveFirewallsResponse.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); - } - - @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); - } - - @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); - } - - @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); - } - - @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); - } - - @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); - } - - @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); - } - - @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); - } - - @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); - } - - @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) 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 GetEffectiveFirewalls 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 network for this request. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network for this request. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network for this request. */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.network = network; - return this; - } - - @Override - public GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); - } - } - /** - * Creates a network in the specified project using the data included in the request. - * - * Create a request for the method "networks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Network} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.Network content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a network in the specified project using the data included in the request. - * - * Create a request for the method "networks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Network} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Network content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of networks available to the specified project. - * - * Create a request for the method "networks.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/networks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of networks available to the specified project. - * - * Create a request for the method "networks.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the peering routes exchanged over peering connection. - * - * Create a request for the method "networks.listPeeringRoutes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network for this request. - * @return the request - */ - public ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { - ListPeeringRoutes result = new ListPeeringRoutes(project, network); - initialize(result); - return result; - } - - public class ListPeeringRoutes extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Lists the peering routes exchanged over peering connection. - * - * Create a request for the method "networks.listPeeringRoutes". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. - *

{@link ListPeeringRoutes#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param network Name of the network for this request. - * @since 1.13 - */ - protected ListPeeringRoutes(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ExchangedPeeringRoutesList.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListPeeringRoutes) super.set$Xgafv($Xgafv); - } - - @Override - public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { - return (ListPeeringRoutes) super.setAccessToken(accessToken); - } - - @Override - public ListPeeringRoutes setAlt(java.lang.String alt) { - return (ListPeeringRoutes) super.setAlt(alt); - } - - @Override - public ListPeeringRoutes setCallback(java.lang.String callback) { - return (ListPeeringRoutes) super.setCallback(callback); - } - - @Override - public ListPeeringRoutes setFields(java.lang.String fields) { - return (ListPeeringRoutes) super.setFields(fields); - } - - @Override - public ListPeeringRoutes setKey(java.lang.String key) { - return (ListPeeringRoutes) super.setKey(key); - } - - @Override - public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { - return (ListPeeringRoutes) super.setOauthToken(oauthToken); - } - - @Override - public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListPeeringRoutes) super.setQuotaUser(quotaUser); - } - - @Override - public ListPeeringRoutes setUploadType(java.lang.String uploadType) { - return (ListPeeringRoutes) super.setUploadType(uploadType); - } - - @Override - public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListPeeringRoutes setUserIp(java.lang.String userIp) { - return (ListPeeringRoutes) 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 ListPeeringRoutes 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 network for this request. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network for this request. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network for this request. */ - public ListPeeringRoutes setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.network = network; - return this; - } - - /** The direction of the exchanged routes. */ - @com.google.api.client.util.Key - private java.lang.String direction; - - /** The direction of the exchanged routes. - */ - public java.lang.String getDirection() { - return direction; - } - - /** The direction of the exchanged routes. */ - public ListPeeringRoutes setDirection(java.lang.String direction) { - this.direction = direction; - 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 ListPeeringRoutes 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 ListPeeringRoutes 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 ListPeeringRoutes 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 ListPeeringRoutes setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** The response will show routes exchanged over the given peering connection. */ - @com.google.api.client.util.Key - private java.lang.String peeringName; - - /** The response will show routes exchanged over the given peering connection. - */ - public java.lang.String getPeeringName() { - return peeringName; - } - - /** The response will show routes exchanged over the given peering connection. */ - public ListPeeringRoutes setPeeringName(java.lang.String peeringName) { - this.peeringName = peeringName; - return this; - } - - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region of the request. The response will include all subnet routes, static routes and dynamic - routes in the region. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. - */ - public ListPeeringRoutes setRegion(java.lang.String region) { - this.region = region; - return this; - } - - @Override - public ListPeeringRoutes set(String parameterName, Object value) { - return (ListPeeringRoutes) super.set(parameterName, value); - } - } - /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. - * - * Create a request for the method "networks.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 Project ID for this request. - * @param network Name of the network to update. - * @param content the {@link com.google.api.services.compute.preview.model.Network} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.Network content) throws java.io.IOException { - Patch result = new Patch(project, network, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. - * - * Create a request for the method "networks.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 Project ID for this request. - * @param network Name of the network to update. - * @param content the {@link com.google.api.services.compute.preview.model.Network} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.Network content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 network to update. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network to update. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network to update. */ - public Patch setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Removes a peering from the specified network. - * - * Create a request for the method "networks.removePeering". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksRemovePeeringRequest} - * @return the request - */ - public RemovePeering removePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksRemovePeeringRequest content) throws java.io.IOException { - RemovePeering result = new RemovePeering(project, network, content); - initialize(result); - return result; - } - - public class RemovePeering extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes a peering from the specified network. - * - * Create a request for the method "networks.removePeering". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemovePeering#execute()} method to invoke the remote operation.

- * {@link RemovePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

- * - * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksRemovePeeringRequest} - * @since 1.13 - */ - protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksRemovePeeringRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RemovePeering) super.set$Xgafv($Xgafv); - } - - @Override - public RemovePeering setAccessToken(java.lang.String accessToken) { - return (RemovePeering) super.setAccessToken(accessToken); - } - - @Override - public RemovePeering setAlt(java.lang.String alt) { - return (RemovePeering) super.setAlt(alt); - } - - @Override - public RemovePeering setCallback(java.lang.String callback) { - return (RemovePeering) super.setCallback(callback); - } - - @Override - public RemovePeering setFields(java.lang.String fields) { - return (RemovePeering) super.setFields(fields); - } - - @Override - public RemovePeering setKey(java.lang.String key) { - return (RemovePeering) super.setKey(key); - } - - @Override - public RemovePeering setOauthToken(java.lang.String oauthToken) { - return (RemovePeering) super.setOauthToken(oauthToken); - } - - @Override - public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePeering) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RemovePeering) super.setQuotaUser(quotaUser); - } - - @Override - public RemovePeering setUploadType(java.lang.String uploadType) { - return (RemovePeering) super.setUploadType(uploadType); - } - - @Override - public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePeering) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemovePeering setUserIp(java.lang.String userIp) { - return (RemovePeering) 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 RemovePeering 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 network resource to remove peering from. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network resource to remove peering from. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network resource to remove peering from. */ - public RemovePeering setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 RemovePeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemovePeering set(String parameterName, Object value) { - return (RemovePeering) super.set(parameterName, value); - } - } - /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. - * - * Create a request for the method "networks.requestRemovePeering". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksRequestRemovePeeringRequest} - * @return the request - */ - public RequestRemovePeering requestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksRequestRemovePeeringRequest content) throws java.io.IOException { - RequestRemovePeering result = new RequestRemovePeering(project, network, content); - initialize(result); - return result; - } - - public class RequestRemovePeering extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. - * - * Create a request for the method "networks.requestRemovePeering". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote - * operation.

{@link RequestRemovePeering#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 network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksRequestRemovePeeringRequest} - * @since 1.13 - */ - protected RequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksRequestRemovePeeringRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RequestRemovePeering) super.set$Xgafv($Xgafv); - } - - @Override - public RequestRemovePeering setAccessToken(java.lang.String accessToken) { - return (RequestRemovePeering) super.setAccessToken(accessToken); - } - - @Override - public RequestRemovePeering setAlt(java.lang.String alt) { - return (RequestRemovePeering) super.setAlt(alt); - } - - @Override - public RequestRemovePeering setCallback(java.lang.String callback) { - return (RequestRemovePeering) super.setCallback(callback); - } - - @Override - public RequestRemovePeering setFields(java.lang.String fields) { - return (RequestRemovePeering) super.setFields(fields); - } - - @Override - public RequestRemovePeering setKey(java.lang.String key) { - return (RequestRemovePeering) super.setKey(key); - } - - @Override - public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { - return (RequestRemovePeering) super.setOauthToken(oauthToken); - } - - @Override - public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); - } - - @Override - public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RequestRemovePeering) super.setQuotaUser(quotaUser); - } - - @Override - public RequestRemovePeering setUploadType(java.lang.String uploadType) { - return (RequestRemovePeering) super.setUploadType(uploadType); - } - - @Override - public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RequestRemovePeering setUserIp(java.lang.String userIp) { - return (RequestRemovePeering) 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 RequestRemovePeering 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 network resource to remove peering from. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network resource to remove peering from. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network resource to remove peering from. */ - public RequestRemovePeering setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 RequestRemovePeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RequestRemovePeering set(String parameterName, Object value) { - return (RequestRemovePeering) super.set(parameterName, value); - } - } - /** - * Switches the network mode from auto subnet mode to custom subnet mode. - * - * Create a request for the method "networks.switchToCustomMode". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network to be updated. - * @return the request - */ - public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { - SwitchToCustomMode result = new SwitchToCustomMode(project, network); - initialize(result); - return result; - } - - public class SwitchToCustomMode extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Switches the network mode from auto subnet mode to custom subnet mode. - * - * Create a request for the method "networks.switchToCustomMode". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param network Name of the network to be updated. - * @since 1.13 - */ - protected SwitchToCustomMode(java.lang.String project, java.lang.String network) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { - return (SwitchToCustomMode) super.set$Xgafv($Xgafv); - } - - @Override - public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { - return (SwitchToCustomMode) super.setAccessToken(accessToken); - } - - @Override - public SwitchToCustomMode setAlt(java.lang.String alt) { - return (SwitchToCustomMode) super.setAlt(alt); - } - - @Override - public SwitchToCustomMode setCallback(java.lang.String callback) { - return (SwitchToCustomMode) super.setCallback(callback); - } - - @Override - public SwitchToCustomMode setFields(java.lang.String fields) { - return (SwitchToCustomMode) super.setFields(fields); - } - - @Override - public SwitchToCustomMode setKey(java.lang.String key) { - return (SwitchToCustomMode) super.setKey(key); - } - - @Override - public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { - return (SwitchToCustomMode) super.setOauthToken(oauthToken); - } - - @Override - public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); - } - - @Override - public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { - return (SwitchToCustomMode) super.setQuotaUser(quotaUser); - } - - @Override - public SwitchToCustomMode setUploadType(java.lang.String uploadType) { - return (SwitchToCustomMode) super.setUploadType(uploadType); - } - - @Override - public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { - return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SwitchToCustomMode setUserIp(java.lang.String userIp) { - return (SwitchToCustomMode) 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 SwitchToCustomMode 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 network to be updated. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network to be updated. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network to be updated. */ - public SwitchToCustomMode setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 SwitchToCustomMode setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SwitchToCustomMode set(String parameterName, Object value) { - return (SwitchToCustomMode) super.set(parameterName, value); - } - } - /** - * Updates the specified network peering with the data included in the request. You can only modify - * the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. - * - * Create a request for the method "networks.updatePeering". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network resource which the updated peering is belonging to. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksUpdatePeeringRequest} - * @return the request - */ - public UpdatePeering updatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksUpdatePeeringRequest content) throws java.io.IOException { - UpdatePeering result = new UpdatePeering(project, network, content); - initialize(result); - return result; - } - - public class UpdatePeering extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networks/{network}/updatePeering"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified network peering with the data included in the request. You can only - * modify the NetworkPeering.export_custom_routes field and the - * NetworkPeering.import_custom_routes field. - * - * Create a request for the method "networks.updatePeering". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation.

- * {@link UpdatePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

- * - * @param project Project ID for this request. - * @param network Name of the network resource which the updated peering is belonging to. - * @param content the {@link com.google.api.services.compute.preview.model.NetworksUpdatePeeringRequest} - * @since 1.13 - */ - protected UpdatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.preview.model.NetworksUpdatePeeringRequest content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePeering) super.set$Xgafv($Xgafv); - } - - @Override - public UpdatePeering setAccessToken(java.lang.String accessToken) { - return (UpdatePeering) super.setAccessToken(accessToken); - } - - @Override - public UpdatePeering setAlt(java.lang.String alt) { - return (UpdatePeering) super.setAlt(alt); - } - - @Override - public UpdatePeering setCallback(java.lang.String callback) { - return (UpdatePeering) super.setCallback(callback); - } - - @Override - public UpdatePeering setFields(java.lang.String fields) { - return (UpdatePeering) super.setFields(fields); - } - - @Override - public UpdatePeering setKey(java.lang.String key) { - return (UpdatePeering) super.setKey(key); - } - - @Override - public UpdatePeering setOauthToken(java.lang.String oauthToken) { - return (UpdatePeering) super.setOauthToken(oauthToken); - } - - @Override - public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePeering) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdatePeering setQuotaUser(java.lang.String quotaUser) { - return (UpdatePeering) super.setQuotaUser(quotaUser); - } - - @Override - public UpdatePeering setUploadType(java.lang.String uploadType) { - return (UpdatePeering) super.setUploadType(uploadType); - } - - @Override - public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePeering) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdatePeering setUserIp(java.lang.String userIp) { - return (UpdatePeering) 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 UpdatePeering 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 network resource which the updated peering is belonging to. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network resource which the updated peering is belonging to. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network resource which the updated peering is belonging to. */ - public UpdatePeering setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 UpdatePeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdatePeering set(String parameterName, Object value) { - return (UpdatePeering) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NodeGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeGroups.List request = compute.nodeGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeGroups nodeGroups() { - return new NodeGroups(); - } - - /** - * The "nodeGroups" collection of methods. - */ - public class NodeGroups { - - /** - * Adds specified number of nodes to the node group. - * - * Create a request for the method "nodeGroups.addNodes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsAddNodesRequest} - * @return the request - */ - public AddNodes addNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsAddNodesRequest content) throws java.io.IOException { - AddNodes result = new AddNodes(project, zone, nodeGroup, content); - initialize(result); - return result; - } - - public class AddNodes extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds specified number of nodes to the node group. - * - * Create a request for the method "nodeGroups.addNodes". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation.

- * {@link - * AddNodes#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. - * @param nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsAddNodesRequest} - * @since 1.13 - */ - protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsAddNodesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddNodes set$Xgafv(java.lang.String $Xgafv) { - return (AddNodes) super.set$Xgafv($Xgafv); - } - - @Override - public AddNodes setAccessToken(java.lang.String accessToken) { - return (AddNodes) super.setAccessToken(accessToken); - } - - @Override - public AddNodes setAlt(java.lang.String alt) { - return (AddNodes) super.setAlt(alt); - } - - @Override - public AddNodes setCallback(java.lang.String callback) { - return (AddNodes) super.setCallback(callback); - } - - @Override - public AddNodes setFields(java.lang.String fields) { - return (AddNodes) super.setFields(fields); - } - - @Override - public AddNodes setKey(java.lang.String key) { - return (AddNodes) super.setKey(key); - } - - @Override - public AddNodes setOauthToken(java.lang.String oauthToken) { - return (AddNodes) super.setOauthToken(oauthToken); - } - - @Override - public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNodes) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddNodes setQuotaUser(java.lang.String quotaUser) { - return (AddNodes) super.setQuotaUser(quotaUser); - } - - @Override - public AddNodes setUploadType(java.lang.String uploadType) { - return (AddNodes) super.setUploadType(uploadType); - } - - @Override - public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNodes) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddNodes setUserIp(java.lang.String userIp) { - return (AddNodes) 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 AddNodes 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 AddNodes 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 NodeGroup resource. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource. */ - public AddNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 AddNodes setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddNodes set(String parameterName, Object value) { - return (AddNodes) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details - * about each group. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeGroups.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details - * about each group. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeGroups.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NodeGroupAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified NodeGroup resource. - * - * Create a request for the method "nodeGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, nodeGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified NodeGroup resource. - * - * Create a request for the method "nodeGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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. - * @param nodeGroup Name of the NodeGroup resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 NodeGroup resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource to delete. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource to delete. */ - public Delete setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes specified nodes from the node group. - * - * Create a request for the method "nodeGroups.deleteNodes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsDeleteNodesRequest} - * @return the request - */ - public DeleteNodes deleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsDeleteNodesRequest content) throws java.io.IOException { - DeleteNodes result = new DeleteNodes(project, zone, nodeGroup, content); - initialize(result); - return result; - } - - public class DeleteNodes extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes specified nodes from the node group. - * - * Create a request for the method "nodeGroups.deleteNodes". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation.

- * {@link - * DeleteNodes#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. - * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsDeleteNodesRequest} - * @since 1.13 - */ - protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsDeleteNodesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNodes) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteNodes setAccessToken(java.lang.String accessToken) { - return (DeleteNodes) super.setAccessToken(accessToken); - } - - @Override - public DeleteNodes setAlt(java.lang.String alt) { - return (DeleteNodes) super.setAlt(alt); - } - - @Override - public DeleteNodes setCallback(java.lang.String callback) { - return (DeleteNodes) super.setCallback(callback); - } - - @Override - public DeleteNodes setFields(java.lang.String fields) { - return (DeleteNodes) super.setFields(fields); - } - - @Override - public DeleteNodes setKey(java.lang.String key) { - return (DeleteNodes) super.setKey(key); - } - - @Override - public DeleteNodes setOauthToken(java.lang.String oauthToken) { - return (DeleteNodes) super.setOauthToken(oauthToken); - } - - @Override - public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNodes) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteNodes setQuotaUser(java.lang.String quotaUser) { - return (DeleteNodes) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteNodes setUploadType(java.lang.String uploadType) { - return (DeleteNodes) super.setUploadType(uploadType); - } - - @Override - public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNodes) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteNodes setUserIp(java.lang.String userIp) { - return (DeleteNodes) 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 DeleteNodes 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 DeleteNodes 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 NodeGroup resource whose nodes will be deleted. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource whose nodes will be deleted. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource whose nodes will be deleted. */ - public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 DeleteNodes setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteNodes set(String parameterName, Object value) { - return (DeleteNodes) super.set(parameterName, value); - } - } - /** - * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. - * - * Create a request for the method "nodeGroups.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 zone The name of the zone for this request. - * @param nodeGroup Name of the node group to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - Get result = new Get(project, zone, nodeGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_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 NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. - * - * Create a request for the method "nodeGroups.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 zone The name of the zone for this request. - * @param nodeGroup Name of the node group to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NodeGroup.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 node group to return. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the node group to return. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the node group to return. */ - public Get setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "nodeGroups.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "nodeGroups.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link - * Insert#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. - * @param initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.preview.model.NodeGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** Initial count of nodes in the node group. */ - @com.google.api.client.util.Key - private java.lang.Integer initialNodeCount; - - /** Initial count of nodes in the node group. - */ - public java.lang.Integer getInitialNodeCount() { - return initialNodeCount; - } - - /** Initial count of nodes in the node group. */ - public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { - this.initialNodeCount = initialNodeCount; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. - * - * Create a request for the method "nodeGroups.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}/nodeGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. - * - * Create a request for the method "nodeGroups.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.preview.model.NodeGroupList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists nodes in the node group. - * - * Create a request for the method "nodeGroups.listNodes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. - * @return the request - */ - public ListNodes listNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - ListNodes result = new ListNodes(project, zone, nodeGroup); - initialize(result); - return result; - } - - public class ListNodes extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Lists nodes in the node group. - * - * Create a request for the method "nodeGroups.listNodes". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation.

- * {@link - * ListNodes#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. - * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. - * @since 1.13 - */ - protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.NodeGroupsListNodes.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListNodes set$Xgafv(java.lang.String $Xgafv) { - return (ListNodes) super.set$Xgafv($Xgafv); - } - - @Override - public ListNodes setAccessToken(java.lang.String accessToken) { - return (ListNodes) super.setAccessToken(accessToken); - } - - @Override - public ListNodes setAlt(java.lang.String alt) { - return (ListNodes) super.setAlt(alt); - } - - @Override - public ListNodes setCallback(java.lang.String callback) { - return (ListNodes) super.setCallback(callback); - } - - @Override - public ListNodes setFields(java.lang.String fields) { - return (ListNodes) super.setFields(fields); - } - - @Override - public ListNodes setKey(java.lang.String key) { - return (ListNodes) super.setKey(key); - } - - @Override - public ListNodes setOauthToken(java.lang.String oauthToken) { - return (ListNodes) super.setOauthToken(oauthToken); - } - - @Override - public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNodes) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListNodes setQuotaUser(java.lang.String quotaUser) { - return (ListNodes) super.setQuotaUser(quotaUser); - } - - @Override - public ListNodes setUploadType(java.lang.String uploadType) { - return (ListNodes) super.setUploadType(uploadType); - } - - @Override - public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNodes) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListNodes setUserIp(java.lang.String userIp) { - return (ListNodes) 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 ListNodes 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 ListNodes 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 NodeGroup resource whose nodes you want to list. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource whose nodes you want to list. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource whose nodes you want to list. */ - public ListNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 ListNodes 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 ListNodes 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 ListNodes 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 ListNodes setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListNodes set(String parameterName, Object value) { - return (ListNodes) super.set(parameterName, value); - } - } - /** - * Updates the specified node group. - * - * Create a request for the method "nodeGroups.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 Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroup} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroup content) throws java.io.IOException { - Patch result = new Patch(project, zone, nodeGroup, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified node group. - * - * Create a request for the method "nodeGroups.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 Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroup} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroup content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 NodeGroup resource to update. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource to update. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource to update. */ - public Patch setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Perform maintenance on a subset of nodes in the node group. - * - * Create a request for the method "nodeGroups.performMaintenance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsPerformMaintenanceRequest} - * @return the request - */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsPerformMaintenanceRequest content) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, nodeGroup, content); - initialize(result); - return result; - } - - public class PerformMaintenance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Perform maintenance on a subset of nodes in the node group. - * - * Create a request for the method "nodeGroups.performMaintenance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsPerformMaintenanceRequest} - * @since 1.13 - */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsPerformMaintenanceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); - } - - @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); - } - - @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); - } - - @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); - } - - @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); - } - - @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); - } - - @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); - } - - @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); - } - - @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); - } - - @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); - } - - @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) 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 PerformMaintenance 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 PerformMaintenance 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 node group scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the node group scoping this request. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the node group scoping this request. */ - public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 PerformMaintenance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "nodeGroups.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "nodeGroups.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

{@link SetNodeTemplate#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsSetNodeTemplateRequest} - * @since 1.13 - */ - protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsSetNodeTemplateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetNodeTemplate) super.set$Xgafv($Xgafv); - } - - @Override - public SetNodeTemplate setAccessToken(java.lang.String accessToken) { - return (SetNodeTemplate) super.setAccessToken(accessToken); - } - - @Override - public SetNodeTemplate setAlt(java.lang.String alt) { - return (SetNodeTemplate) super.setAlt(alt); - } - - @Override - public SetNodeTemplate setCallback(java.lang.String callback) { - return (SetNodeTemplate) super.setCallback(callback); - } - - @Override - public SetNodeTemplate setFields(java.lang.String fields) { - return (SetNodeTemplate) super.setFields(fields); - } - - @Override - public SetNodeTemplate setKey(java.lang.String key) { - return (SetNodeTemplate) super.setKey(key); - } - - @Override - public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { - return (SetNodeTemplate) super.setOauthToken(oauthToken); - } - - @Override - public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetNodeTemplate) super.setQuotaUser(quotaUser); - } - - @Override - public SetNodeTemplate setUploadType(java.lang.String uploadType) { - return (SetNodeTemplate) super.setUploadType(uploadType); - } - - @Override - public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetNodeTemplate setUserIp(java.lang.String userIp) { - return (SetNodeTemplate) 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 SetNodeTemplate 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 SetNodeTemplate 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 NodeGroup resource to update. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource to update. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource to update. */ - public SetNodeTemplate setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - 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 SetNodeTemplate setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetNodeTemplate set(String parameterName, Object value) { - return (SetNodeTemplate) super.set(parameterName, value); - } - } - /** - * Simulates maintenance event on specified nodes from the node group. - * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance - simulation. - * @param content the {@link com.google.api.services.compute.preview.model.NodeGroupsSimulateMaintenanceEventRequest} - * @return the request - */ - public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.preview.model.NodeGroupsSimulateMaintenanceEventRequest content) throws java.io.IOException { - SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, nodeGroup, content); - initialize(result); - return result; - } - - public class SimulateMaintenanceEvent extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Simulates maintenance event on specified nodes from the node group. - * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation.

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

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NodeTemplates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeTemplates nodeTemplates() { - return new NodeTemplates(); - } - - /** - * The "nodeTemplates" collection of methods. - */ - public class NodeTemplates { - - /** - * Retrieves an aggregated list of node templates. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeTemplates.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of node templates. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeTemplates.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NodeTemplateAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified NodeTemplate resource. - * - * Create a request for the method "nodeTemplates.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the NodeTemplate resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { - Delete result = new Delete(project, region, nodeTemplate); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NODE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified NodeTemplate resource. - * - * Create a request for the method "nodeTemplates.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the NodeTemplate resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Delete 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 NodeTemplate resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String nodeTemplate; - - /** Name of the NodeTemplate resource to delete. - */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; - } - - /** Name of the NodeTemplate resource to delete. */ - public Delete setNodeTemplate(java.lang.String nodeTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeTemplate = nodeTemplate; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified node template. - * - * Create a request for the method "nodeTemplates.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 region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { - Get result = new Get(project, region, nodeTemplate); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NODE_TEMPLATE_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 node template. - * - * Create a request for the method "nodeTemplates.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 region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NodeTemplate.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.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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 node template to return. */ - @com.google.api.client.util.Key - private java.lang.String nodeTemplate; - - /** Name of the node template to return. - */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; - } - - /** Name of the node template to return. */ - public Get setNodeTemplate(java.lang.String nodeTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeTemplate = nodeTemplate; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "nodeTemplates.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "nodeTemplates.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.NodeTemplate} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NodeTemplate content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of node templates available to the specified project. - * - * Create a request for the method "nodeTemplates.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 region The 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}/nodeTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of node templates available to the specified project. - * - * Create a request for the method "nodeTemplates.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 region The 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.preview.model.NodeTemplateList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "nodeTemplates.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "nodeTemplates.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the NodeTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeTypes nodeTypes() { - return new NodeTypes(); - } - - /** - * The "nodeTypes" collection of methods. - */ - public class NodeTypes { - - /** - * Retrieves an aggregated list of node types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeTypes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of node types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeTypes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NodeTypeAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Returns the specified node type. - * - * Create a request for the method "nodeTypes.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 zone The name of the zone for this request. - * @param nodeType Name of the node type to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) throws java.io.IOException { - Get result = new Get(project, zone, nodeType); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern NODE_TYPE_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 node type. - * - * Create a request for the method "nodeTypes.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 zone The name of the zone for this request. - * @param nodeType Name of the node type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NodeType.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])?"); - } - this.nodeType = com.google.api.client.util.Preconditions.checkNotNull(nodeType, "Required parameter nodeType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 node type to return. */ - @com.google.api.client.util.Key - private java.lang.String nodeType; - - /** Name of the node type to return. - */ - public java.lang.String getNodeType() { - return nodeType; - } - - /** Name of the node type to return. */ - public Get setNodeType(java.lang.String nodeType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeType = nodeType; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of node types available to the specified project. - * - * Create a request for the method "nodeTypes.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}/nodeTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 node types available to the specified project. - * - * Create a request for the method "nodeTypes.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.preview.model.NodeTypeList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the OrganizationSecurityPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.OrganizationSecurityPolicies.List request = compute.organizationSecurityPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public OrganizationSecurityPolicies organizationSecurityPolicies() { - return new OrganizationSecurityPolicies(); - } - - /** - * The "organizationSecurityPolicies" collection of methods. - */ - public class OrganizationSecurityPolicies { - - /** - * Inserts an association for the specified security policy. - * - * This has billing implications. Projects in the hierarchy with effective hierarchical security - * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addAssociation instead. - * - * Create a request for the method "organizationSecurityPolicies.addAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyAssociation} - * @return the request - */ - public AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(securityPolicy, content); - initialize(result); - return result; - } - - public class AddAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Inserts an association for the specified security policy. - * - * This has billing implications. Projects in the hierarchy with effective hierarchical security - * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addAssociation instead. - * - * Create a request for the method "organizationSecurityPolicies.addAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyAssociation} - * @since 1.13 - */ - protected AddAssociation(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); - } - - @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); - } - - @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); - } - - @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); - } - - @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); - } - - @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); - } - - @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); - } - - @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; - - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. - */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; - 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 AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); - } - } - /** - * Inserts a rule into a security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addRule instead. - * - * Create a request for the method "organizationSecurityPolicies.addRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @return the request - */ - public AddRule addRule(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(securityPolicy, content); - initialize(result); - return result; - } - - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Inserts a rule into a security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addRule instead. - * - * Create a request for the method "organizationSecurityPolicies.addRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @since 1.13 - */ - protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); - } - - @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); - } - - @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); - } - - @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); - } - - @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); - } - - @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); - } - - @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); - } - - @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - 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 AddRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } - /** - * Copies rules to the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.cloneRules instead. - * - * Create a request for the method "organizationSecurityPolicies.copyRules". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { - CopyRules result = new CopyRules(securityPolicy); - initialize(result); - return result; - } - - public class CopyRules extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Copies rules to the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.cloneRules instead. - * - * Create a request for the method "organizationSecurityPolicies.copyRules". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected CopyRules(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CopyRules set$Xgafv(java.lang.String $Xgafv) { - return (CopyRules) super.set$Xgafv($Xgafv); - } - - @Override - public CopyRules setAccessToken(java.lang.String accessToken) { - return (CopyRules) super.setAccessToken(accessToken); - } - - @Override - public CopyRules setAlt(java.lang.String alt) { - return (CopyRules) super.setAlt(alt); - } - - @Override - public CopyRules setCallback(java.lang.String callback) { - return (CopyRules) super.setCallback(callback); - } - - @Override - public CopyRules setFields(java.lang.String fields) { - return (CopyRules) super.setFields(fields); - } - - @Override - public CopyRules setKey(java.lang.String key) { - return (CopyRules) super.setKey(key); - } - - @Override - public CopyRules setOauthToken(java.lang.String oauthToken) { - return (CopyRules) super.setOauthToken(oauthToken); - } - - @Override - public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CopyRules) super.setPrettyPrint(prettyPrint); - } - - @Override - public CopyRules setQuotaUser(java.lang.String quotaUser) { - return (CopyRules) super.setQuotaUser(quotaUser); - } - - @Override - public CopyRules setUploadType(java.lang.String uploadType) { - return (CopyRules) super.setUploadType(uploadType); - } - - @Override - public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CopyRules) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CopyRules setUserIp(java.lang.String userIp) { - return (CopyRules) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - 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 CopyRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** The security policy from which to copy rules. */ - @com.google.api.client.util.Key - private java.lang.String sourceSecurityPolicy; - - /** The security policy from which to copy rules. - */ - public java.lang.String getSourceSecurityPolicy() { - return sourceSecurityPolicy; - } - - /** The security policy from which to copy rules. */ - public CopyRules setSourceSecurityPolicy(java.lang.String sourceSecurityPolicy) { - this.sourceSecurityPolicy = sourceSecurityPolicy; - return this; - } - - @Override - public CopyRules set(String parameterName, Object value) { - return (CopyRules) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to remove firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.delete instead. - * - * Create a request for the method "organizationSecurityPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to delete. - * @return the request - */ - public Delete delete(java.lang.String securityPolicy) throws java.io.IOException { - Delete result = new Delete(securityPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Deletes the specified policy. - * - * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to remove firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.delete instead. - * - * Create a request for the method "organizationSecurityPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String securityPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } - - /** Name of the security policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to delete. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * List all of the ordered rules present in a single specified policy. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.get instead. - * - * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to get. - * @return the request - */ - public Get get(java.lang.String securityPolicy) throws java.io.IOException { - Get result = new Get(securityPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * List all of the ordered rules present in a single specified policy. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.get instead. - * - * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to get. - * @since 1.13 - */ - protected Get(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicy.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** Name of the security policy to get. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to get. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets an association with the specified name. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getAssociation instead. - * - * Create a request for the method "organizationSecurityPolicies.getAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @return the request - */ - public GetAssociation getAssociation(java.lang.String securityPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(securityPolicy); - initialize(result); - return result; - } - - public class GetAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Gets an association with the specified name. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getAssociation instead. - * - * Create a request for the method "organizationSecurityPolicies.getAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetAssociation(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicyAssociation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); - } - - @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); - } - - @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); - } - - @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); - } - - @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); - } - - @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); - } - - @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); - } - - @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); - } - - /** Name of the security policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to which the queried rule belongs. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to which the queried rule belongs. */ - public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The name of the association to get from the security policy. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the association to get from the security policy. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the association to get from the security policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); - } - } - /** - * Gets a rule at the specified priority. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getRule instead. - * - * Create a request for the method "organizationSecurityPolicies.getRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @return the request - */ - public GetRule getRule(java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(securityPolicy); - initialize(result); - return result; - } - - public class GetRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Gets a rule at the specified priority. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getRule instead. - * - * Create a request for the method "organizationSecurityPolicies.getRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetRule(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicyRule.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); - } - - @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); - } - - @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); - } - - @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); - } - - @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); - } - - @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); - } - - /** Name of the security policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to which the queried rule belongs. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to get from the security policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the security policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified organization using the data included in the request. - * - * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to add firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.insert instead. - * - * Create a request for the method "organizationSecurityPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @return the request - */ - public Insert insert(com.google.api.services.compute.preview.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Creates a new policy in the specified organization using the data included in the request. - * - * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to add firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.insert instead. - * - * Create a request for the method "organizationSecurityPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @since 1.13 - */ - protected Insert(com.google.api.services.compute.preview.model.SecurityPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder - or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public Insert setParentId(java.lang.String parentId) { - this.parentId = parentId; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * List all the policies that have been configured for the specified organization. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.list instead. - * - * Create a request for the method "organizationSecurityPolicies.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. - * - * @return the request - */ - public List list() throws java.io.IOException { - List result = new List(); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * List all the policies that have been configured for the specified organization. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.list instead. - * - * Create a request for the method "organizationSecurityPolicies.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.

- * - * @since 1.13 - */ - protected List() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicyList.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** - * 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; - } - - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists associations of a specified target, i.e., organization or folder. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.listAssociations instead. - * - * Create a request for the method "organizationSecurityPolicies.listAssociations". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. - * - * @return the request - */ - public ListAssociations listAssociations() throws java.io.IOException { - ListAssociations result = new ListAssociations(); - initialize(result); - return result; - } - - public class ListAssociations extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Lists associations of a specified target, i.e., organization or folder. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.listAssociations instead. - * - * Create a request for the method "organizationSecurityPolicies.listAssociations". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. - *

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

- * - * @since 1.13 - */ - protected ListAssociations() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.OrganizationSecurityPoliciesListAssociationsResponse.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListAssociations set$Xgafv(java.lang.String $Xgafv) { - return (ListAssociations) super.set$Xgafv($Xgafv); - } - - @Override - public ListAssociations setAccessToken(java.lang.String accessToken) { - return (ListAssociations) super.setAccessToken(accessToken); - } - - @Override - public ListAssociations setAlt(java.lang.String alt) { - return (ListAssociations) super.setAlt(alt); - } - - @Override - public ListAssociations setCallback(java.lang.String callback) { - return (ListAssociations) super.setCallback(callback); - } - - @Override - public ListAssociations setFields(java.lang.String fields) { - return (ListAssociations) super.setFields(fields); - } - - @Override - public ListAssociations setKey(java.lang.String key) { - return (ListAssociations) super.setKey(key); - } - - @Override - public ListAssociations setOauthToken(java.lang.String oauthToken) { - return (ListAssociations) super.setOauthToken(oauthToken); - } - - @Override - public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAssociations) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListAssociations setQuotaUser(java.lang.String quotaUser) { - return (ListAssociations) super.setQuotaUser(quotaUser); - } - - @Override - public ListAssociations setUploadType(java.lang.String uploadType) { - return (ListAssociations) super.setUploadType(uploadType); - } - - @Override - public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAssociations) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListAssociations setUserIp(java.lang.String userIp) { - return (ListAssociations) super.setUserIp(userIp); - } - - /** - * The target resource to list associations. It is an organization, or a folder. - */ - @com.google.api.client.util.Key - private java.lang.String targetResource; - - /** The target resource to list associations. It is an organization, or a folder. - */ - public java.lang.String getTargetResource() { - return targetResource; - } - - /** - * The target resource to list associations. It is an organization, or a folder. - */ - public ListAssociations setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; - return this; - } - - @Override - public ListAssociations set(String parameterName, Object value) { - return (ListAssociations) super.set(parameterName, value); - } - } - /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. - * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation. - * - * @return the request - */ - public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { - ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); - initialize(result); - return result; - } - - public class ListPreconfiguredExpressionSets extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. - * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation.

{@link ListPreconfiguredExpressionSets#initialize(com.google.api.client.g - * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

- * - * @since 1.13 - */ - protected ListPreconfiguredExpressionSets() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { - return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); - } - - @Override - public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { - return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); - } - - @Override - public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { - return (ListPreconfiguredExpressionSets) super.setAlt(alt); - } - - @Override - public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { - return (ListPreconfiguredExpressionSets) super.setCallback(callback); - } - - @Override - public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { - return (ListPreconfiguredExpressionSets) super.setFields(fields); - } - - @Override - public ListPreconfiguredExpressionSets setKey(java.lang.String key) { - return (ListPreconfiguredExpressionSets) super.setKey(key); - } - - @Override - public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { - return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); - } - - @Override - public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { - return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); - } - - @Override - public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { - return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); - } - - @Override - public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { - return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); - } - - /** - * 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. */ - public ListPreconfiguredExpressionSets setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - - @Override - public ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); - } - } - /** - * Moves the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.move instead. - * - * Create a request for the method "organizationSecurityPolicies.move". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public Move move(java.lang.String securityPolicy) throws java.io.IOException { - Move result = new Move(securityPolicy); - initialize(result); - return result; - } - - public class Move extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Moves the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.move instead. - * - * Create a request for the method "organizationSecurityPolicies.move". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected Move(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); - } - - @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); - } - - @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); - } - - @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); - } - - @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); - } - - @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); - } - - @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); - } - - @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); - } - - @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); - } - - @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); - } - - @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public Move setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The new parent of the security policy. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** The new parent of the security policy. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** The new parent of the security policy. */ - public Move setParentId(java.lang.String parentId) { - this.parentId = parentId; - 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 Move setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patch instead. - * - * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @return the request - */ - public Patch patch(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(securityPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Patches the specified policy with the data included in the request. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patch instead. - * - * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public Patch setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Patches a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patchRule instead. - * - * Create a request for the method "organizationSecurityPolicies.patchRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @return the request - */ - public PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(securityPolicy, content); - initialize(result); - return result; - } - - public class PatchRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Patches a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patchRule instead. - * - * Create a request for the method "organizationSecurityPolicies.patchRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @since 1.13 - */ - protected PatchRule(java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); - } - - @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); - } - - @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); - } - - @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); - } - - @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); - } - - @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); - } - - @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 PatchRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); - } - } - /** - * Removes an association for the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeAssociation instead. - * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(securityPolicy); - initialize(result); - return result; - } - - public class RemoveAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Removes an association for the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeAssociation instead. - * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected RemoveAssociation(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); - } - - @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); - } - - @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); - } - - @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); - } - - @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); - } - - @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); - } - - @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); - } - - @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** Name for the attachment that will be removed. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Name for the attachment that will be removed. - */ - public java.lang.String getName() { - return name; - } - - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; - 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 RemoveAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); - } - } - /** - * Deletes a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeRule instead. - * - * Create a request for the method "organizationSecurityPolicies.removeRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. - * - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(securityPolicy); - initialize(result); - return result; - } - - public class RemoveRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - - /** - * Deletes a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeRule instead. - * - * Create a request for the method "organizationSecurityPolicies.removeRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

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

- * - * @param securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected RemoveRule(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); - } - - @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); - } - - @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); - } - - @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); - } - - @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); - } - - @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); - } - - @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); - } - - @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); - } - - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to remove from the security policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the security policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 RemoveRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the PacketMirrorings collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PacketMirrorings.List request = compute.packetMirrorings().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PacketMirrorings packetMirrorings() { - return new PacketMirrorings(); - } - - /** - * The "packetMirrorings" collection of methods. - */ - public class PacketMirrorings { - - /** - * Retrieves an aggregated list of packetMirrorings. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "packetMirrorings.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of packetMirrorings. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "packetMirrorings.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PacketMirroringAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified PacketMirroring resource. - * - * Create a request for the method "packetMirrorings.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { - Delete result = new Delete(project, region, packetMirroring); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PACKET_MIRRORING_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified PacketMirroring resource. - * - * Create a request for the method "packetMirrorings.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 PacketMirroring resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String packetMirroring; - - /** Name of the PacketMirroring resource to delete. - */ - public java.lang.String getPacketMirroring() { - return packetMirroring; - } - - /** Name of the PacketMirroring resource to delete. */ - public Delete setPacketMirroring(java.lang.String packetMirroring) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.packetMirroring = packetMirroring; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified PacketMirroring resource. - * - * Create a request for the method "packetMirrorings.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 region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) throws java.io.IOException { - Get result = new Get(project, region, packetMirroring); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PACKET_MIRRORING_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 PacketMirroring resource. - * - * Create a request for the method "packetMirrorings.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 region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String packetMirroring) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PacketMirroring.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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 PacketMirroring resource to return. */ - @com.google.api.client.util.Key - private java.lang.String packetMirroring; - - /** Name of the PacketMirroring resource to return. - */ - public java.lang.String getPacketMirroring() { - return packetMirroring; - } - - /** Name of the PacketMirroring resource to return. */ - public Get setPacketMirroring(java.lang.String packetMirroring) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.packetMirroring = packetMirroring; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a PacketMirroring resource in the specified project and region using the data included in - * the request. - * - * Create a request for the method "packetMirrorings.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.PacketMirroring} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.PacketMirroring content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a PacketMirroring resource in the specified project and region using the data included - * in the request. - * - * Create a request for the method "packetMirrorings.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.PacketMirroring} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.PacketMirroring content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of PacketMirroring resources available to the specified project and region. - * - * Create a request for the method "packetMirrorings.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 region 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}/packetMirrorings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of PacketMirroring resources available to the specified project and region. - * - * Create a request for the method "packetMirrorings.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 region 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.preview.model.PacketMirroringList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified PacketMirroring resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "packetMirrorings.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 Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PacketMirroring} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.preview.model.PacketMirroring content) throws java.io.IOException { - Patch result = new Patch(project, region, packetMirroring, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PACKET_MIRRORING_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified PacketMirroring resource with the data included in the request. This - * method supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "packetMirrorings.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 Project ID for this request. - * @param region Name of the region for this request. - * @param packetMirroring Name of the PacketMirroring resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PacketMirroring} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String packetMirroring, com.google.api.services.compute.preview.model.PacketMirroring content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.packetMirroring = com.google.api.client.util.Preconditions.checkNotNull(packetMirroring, "Required parameter packetMirroring must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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 PacketMirroring resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String packetMirroring; - - /** Name of the PacketMirroring resource to patch. - */ - public java.lang.String getPacketMirroring() { - return packetMirroring; - } - - /** Name of the PacketMirroring resource to patch. */ - public Patch setPacketMirroring(java.lang.String packetMirroring) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.packetMirroring = packetMirroring; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "packetMirrorings.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "packetMirrorings.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the PreviewFeatures collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PreviewFeatures.List request = compute.previewFeatures().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PreviewFeatures previewFeatures() { - return new PreviewFeatures(); - } - - /** - * The "previewFeatures" collection of methods. - */ - public class PreviewFeatures { - - /** - * Returns the details of the given PreviewFeature. - * - * Create a request for the method "previewFeatures.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 previewFeature Name of the PreviewFeature for this request. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String previewFeature) throws java.io.IOException { - Get result = new Get(project, previewFeature); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PREVIEW_FEATURE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the details of the given PreviewFeature. - * - * Create a request for the method "previewFeatures.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 previewFeature Name of the PreviewFeature for this request. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String previewFeature) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PreviewFeature.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.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), - "Parameter previewFeature must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 PreviewFeature for this request. */ - @com.google.api.client.util.Key - private java.lang.String previewFeature; - - /** Name of the PreviewFeature for this request. - */ - public java.lang.String getPreviewFeature() { - return previewFeature; - } - - /** Name of the PreviewFeature for this request. */ - public Get setPreviewFeature(java.lang.String previewFeature) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), - "Parameter previewFeature must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.previewFeature = previewFeature; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the details of the given PreviewFeature. - * - * Create a request for the method "previewFeatures.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/previewFeatures"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the details of the given PreviewFeature. - * - * Create a request for the method "previewFeatures.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PreviewFeatureList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. - * - * Create a request for the method "previewFeatures.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param previewFeature Name of the PreviewFeature for this request. - * @param content the {@link com.google.api.services.compute.preview.model.PreviewFeature} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.preview.model.PreviewFeature content) throws java.io.IOException { - Update result = new Update(project, previewFeature, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PREVIEW_FEATURE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. - * - * Create a request for the method "previewFeatures.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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 previewFeature Name of the PreviewFeature for this request. - * @param content the {@link com.google.api.services.compute.preview.model.PreviewFeature} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String previewFeature, com.google.api.services.compute.preview.model.PreviewFeature content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), - "Parameter previewFeature must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 PreviewFeature for this request. */ - @com.google.api.client.util.Key - private java.lang.String previewFeature; - - /** Name of the PreviewFeature for this request. - */ - public java.lang.String getPreviewFeature() { - return previewFeature; - } - - /** Name of the PreviewFeature for this request. */ - public Update setPreviewFeature(java.lang.String previewFeature) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), - "Parameter previewFeature must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.previewFeature = previewFeature; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ProjectViews collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ProjectViews.List request = compute.projectViews().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ProjectViews projectViews() { - return new ProjectViews(); - } - - /** - * The "projectViews" collection of methods. - */ - public class ProjectViews { - - /** - * Returns the specified global ProjectViews resource, with a regional context. This regional API - * endpoint reads resource metadata from regional read-only replicas. Because changes are copied to - * these regional replicas asynchronously, for real-time resource reads or any write operations - * (creating, updating, or deleting resources), use the global - * [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) endpoint. - * - * Create a request for the method "projectViews.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. This is part of the URL path. - * @param region Required. Name of the region for this request. This is part of the URL path. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/projectViews"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 the specified global ProjectViews resource, with a regional context. This regional API - * endpoint reads resource metadata from regional read-only replicas. Because changes are copied - * to these regional replicas asynchronously, for real-time resource reads or any write operations - * (creating, updating, or deleting resources), use the global - * [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) endpoint. - * - * Create a request for the method "projectViews.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. This is part of the URL path. - * @param region Required. Name of the region for this request. This is part of the URL path. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ProjectView.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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. This is part of the URL path. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Required. Project ID for this request. This is part of the URL path. - */ - public java.lang.String getProject() { - return project; - } - - /** Required. Project ID for this request. This is part of the URL path. */ - 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. This is part of the URL path. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Required. Name of the region for this request. This is part of the URL path. - */ - public java.lang.String getRegion() { - return region; - } - - /** Required. Name of the region for this request. This is part of the URL path. */ - 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Projects collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Projects.List request = compute.projects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } - - /** - * The "projects" collection of methods. - */ - public class Projects { - - /** - * Disable this project as a shared VPC host project. - * - * Create a request for the method "projects.disableXpnHost". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DisableXpnHost#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public DisableXpnHost disableXpnHost(java.lang.String project) throws java.io.IOException { - DisableXpnHost result = new DisableXpnHost(project); - initialize(result); - return result; - } - - public class DisableXpnHost extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/disableXpnHost"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Disable this project as a shared VPC host project. - * - * Create a request for the method "projects.disableXpnHost". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DisableXpnHost#execute()} method to invoke the remote operation. - *

{@link DisableXpnHost#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected DisableXpnHost(java.lang.String project) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DisableXpnHost set$Xgafv(java.lang.String $Xgafv) { - return (DisableXpnHost) super.set$Xgafv($Xgafv); - } - - @Override - public DisableXpnHost setAccessToken(java.lang.String accessToken) { - return (DisableXpnHost) super.setAccessToken(accessToken); - } - - @Override - public DisableXpnHost setAlt(java.lang.String alt) { - return (DisableXpnHost) super.setAlt(alt); - } - - @Override - public DisableXpnHost setCallback(java.lang.String callback) { - return (DisableXpnHost) super.setCallback(callback); - } - - @Override - public DisableXpnHost setFields(java.lang.String fields) { - return (DisableXpnHost) super.setFields(fields); - } - - @Override - public DisableXpnHost setKey(java.lang.String key) { - return (DisableXpnHost) super.setKey(key); - } - - @Override - public DisableXpnHost setOauthToken(java.lang.String oauthToken) { - return (DisableXpnHost) super.setOauthToken(oauthToken); - } - - @Override - public DisableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DisableXpnHost) super.setPrettyPrint(prettyPrint); - } - - @Override - public DisableXpnHost setQuotaUser(java.lang.String quotaUser) { - return (DisableXpnHost) super.setQuotaUser(quotaUser); - } - - @Override - public DisableXpnHost setUploadType(java.lang.String uploadType) { - return (DisableXpnHost) super.setUploadType(uploadType); - } - - @Override - public DisableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { - return (DisableXpnHost) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DisableXpnHost setUserIp(java.lang.String userIp) { - return (DisableXpnHost) 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 DisableXpnHost 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; - } - - /** - * 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 DisableXpnHost setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DisableXpnHost set(String parameterName, Object value) { - return (DisableXpnHost) super.set(parameterName, value); - } - } - /** - * Disable a service resource (also known as service project) associated with this host project. - * - * Create a request for the method "projects.disableXpnResource". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DisableXpnResource#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsDisableXpnResourceRequest} - * @return the request - */ - public DisableXpnResource disableXpnResource(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsDisableXpnResourceRequest content) throws java.io.IOException { - DisableXpnResource result = new DisableXpnResource(project, content); - initialize(result); - return result; - } - - public class DisableXpnResource extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/disableXpnResource"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Disable a service resource (also known as service project) associated with this host project. - * - * Create a request for the method "projects.disableXpnResource". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DisableXpnResource#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsDisableXpnResourceRequest} - * @since 1.13 - */ - protected DisableXpnResource(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsDisableXpnResourceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DisableXpnResource set$Xgafv(java.lang.String $Xgafv) { - return (DisableXpnResource) super.set$Xgafv($Xgafv); - } - - @Override - public DisableXpnResource setAccessToken(java.lang.String accessToken) { - return (DisableXpnResource) super.setAccessToken(accessToken); - } - - @Override - public DisableXpnResource setAlt(java.lang.String alt) { - return (DisableXpnResource) super.setAlt(alt); - } - - @Override - public DisableXpnResource setCallback(java.lang.String callback) { - return (DisableXpnResource) super.setCallback(callback); - } - - @Override - public DisableXpnResource setFields(java.lang.String fields) { - return (DisableXpnResource) super.setFields(fields); - } - - @Override - public DisableXpnResource setKey(java.lang.String key) { - return (DisableXpnResource) super.setKey(key); - } - - @Override - public DisableXpnResource setOauthToken(java.lang.String oauthToken) { - return (DisableXpnResource) super.setOauthToken(oauthToken); - } - - @Override - public DisableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DisableXpnResource) super.setPrettyPrint(prettyPrint); - } - - @Override - public DisableXpnResource setQuotaUser(java.lang.String quotaUser) { - return (DisableXpnResource) super.setQuotaUser(quotaUser); - } - - @Override - public DisableXpnResource setUploadType(java.lang.String uploadType) { - return (DisableXpnResource) super.setUploadType(uploadType); - } - - @Override - public DisableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { - return (DisableXpnResource) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DisableXpnResource setUserIp(java.lang.String userIp) { - return (DisableXpnResource) 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 DisableXpnResource 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; - } - - /** - * 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 DisableXpnResource setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DisableXpnResource set(String parameterName, Object value) { - return (DisableXpnResource) super.set(parameterName, value); - } - } - /** - * Enable this project as a shared VPC host project. - * - * Create a request for the method "projects.enableXpnHost". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link EnableXpnHost#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public EnableXpnHost enableXpnHost(java.lang.String project) throws java.io.IOException { - EnableXpnHost result = new EnableXpnHost(project); - initialize(result); - return result; - } - - public class EnableXpnHost extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/enableXpnHost"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Enable this project as a shared VPC host project. - * - * Create a request for the method "projects.enableXpnHost". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link EnableXpnHost#execute()} method to invoke the remote operation.

- * {@link EnableXpnHost#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected EnableXpnHost(java.lang.String project) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public EnableXpnHost set$Xgafv(java.lang.String $Xgafv) { - return (EnableXpnHost) super.set$Xgafv($Xgafv); - } - - @Override - public EnableXpnHost setAccessToken(java.lang.String accessToken) { - return (EnableXpnHost) super.setAccessToken(accessToken); - } - - @Override - public EnableXpnHost setAlt(java.lang.String alt) { - return (EnableXpnHost) super.setAlt(alt); - } - - @Override - public EnableXpnHost setCallback(java.lang.String callback) { - return (EnableXpnHost) super.setCallback(callback); - } - - @Override - public EnableXpnHost setFields(java.lang.String fields) { - return (EnableXpnHost) super.setFields(fields); - } - - @Override - public EnableXpnHost setKey(java.lang.String key) { - return (EnableXpnHost) super.setKey(key); - } - - @Override - public EnableXpnHost setOauthToken(java.lang.String oauthToken) { - return (EnableXpnHost) super.setOauthToken(oauthToken); - } - - @Override - public EnableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableXpnHost) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableXpnHost setQuotaUser(java.lang.String quotaUser) { - return (EnableXpnHost) super.setQuotaUser(quotaUser); - } - - @Override - public EnableXpnHost setUploadType(java.lang.String uploadType) { - return (EnableXpnHost) super.setUploadType(uploadType); - } - - @Override - public EnableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableXpnHost) super.setUploadProtocol(uploadProtocol); - } - - @Override - public EnableXpnHost setUserIp(java.lang.String userIp) { - return (EnableXpnHost) 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 EnableXpnHost 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; - } - - /** - * 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 EnableXpnHost setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public EnableXpnHost set(String parameterName, Object value) { - return (EnableXpnHost) super.set(parameterName, value); - } - } - /** - * Enable service resource (a.k.a service project) for a host project, so that subnets in the host - * project can be used by instances in the service project. - * - * Create a request for the method "projects.enableXpnResource". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link EnableXpnResource#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsEnableXpnResourceRequest} - * @return the request - */ - public EnableXpnResource enableXpnResource(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsEnableXpnResourceRequest content) throws java.io.IOException { - EnableXpnResource result = new EnableXpnResource(project, content); - initialize(result); - return result; - } - - public class EnableXpnResource extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/enableXpnResource"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Enable service resource (a.k.a service project) for a host project, so that subnets in the host - * project can be used by instances in the service project. - * - * Create a request for the method "projects.enableXpnResource". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link EnableXpnResource#execute()} method to invoke the remote operation. - *

{@link EnableXpnResource#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsEnableXpnResourceRequest} - * @since 1.13 - */ - protected EnableXpnResource(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsEnableXpnResourceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public EnableXpnResource set$Xgafv(java.lang.String $Xgafv) { - return (EnableXpnResource) super.set$Xgafv($Xgafv); - } - - @Override - public EnableXpnResource setAccessToken(java.lang.String accessToken) { - return (EnableXpnResource) super.setAccessToken(accessToken); - } - - @Override - public EnableXpnResource setAlt(java.lang.String alt) { - return (EnableXpnResource) super.setAlt(alt); - } - - @Override - public EnableXpnResource setCallback(java.lang.String callback) { - return (EnableXpnResource) super.setCallback(callback); - } - - @Override - public EnableXpnResource setFields(java.lang.String fields) { - return (EnableXpnResource) super.setFields(fields); - } - - @Override - public EnableXpnResource setKey(java.lang.String key) { - return (EnableXpnResource) super.setKey(key); - } - - @Override - public EnableXpnResource setOauthToken(java.lang.String oauthToken) { - return (EnableXpnResource) super.setOauthToken(oauthToken); - } - - @Override - public EnableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableXpnResource) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableXpnResource setQuotaUser(java.lang.String quotaUser) { - return (EnableXpnResource) super.setQuotaUser(quotaUser); - } - - @Override - public EnableXpnResource setUploadType(java.lang.String uploadType) { - return (EnableXpnResource) super.setUploadType(uploadType); - } - - @Override - public EnableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableXpnResource) super.setUploadProtocol(uploadProtocol); - } - - @Override - public EnableXpnResource setUserIp(java.lang.String userIp) { - return (EnableXpnResource) 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 EnableXpnResource 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; - } - - /** - * 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 EnableXpnResource setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public EnableXpnResource set(String parameterName, Object value) { - return (EnableXpnResource) super.set(parameterName, value); - } - } - /** - * Returns the specified Project resource. - * - * To decrease latency for this method, you can optionally omit any unneeded information from the - * response by using a field mask. This practice is especially recommended for unused quota - * information (the `quotas` field). To exclude one or more fields, set your request's `fields` - * query parameter to only include the fields you need. For example, to only include the `id` and - * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. - * - * Create a request for the method "projects.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. - * @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}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified Project resource. - * - * To decrease latency for this method, you can optionally omit any unneeded information from the - * response by using a field mask. This practice is especially recommended for unused quota - * information (the `quotas` field). To exclude one or more fields, set your request's `fields` - * query parameter to only include the fields you need. For example, to only include the `id` and - * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. - * - * Create a request for the method "projects.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. - * @since 1.13 - */ - protected Get(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Project.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the shared VPC host project that this project links to. May be empty if no link exists. - * - * Create a request for the method "projects.getXpnHost". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetXpnHost#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public GetXpnHost getXpnHost(java.lang.String project) throws java.io.IOException { - GetXpnHost result = new GetXpnHost(project); - initialize(result); - return result; - } - - public class GetXpnHost extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/getXpnHost"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Gets the shared VPC host project that this project links to. May be empty if no link exists. - * - * Create a request for the method "projects.getXpnHost". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetXpnHost#execute()} method to invoke the remote operation.

- * {@link - * GetXpnHost#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. - * @since 1.13 - */ - protected GetXpnHost(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Project.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetXpnHost set$Xgafv(java.lang.String $Xgafv) { - return (GetXpnHost) super.set$Xgafv($Xgafv); - } - - @Override - public GetXpnHost setAccessToken(java.lang.String accessToken) { - return (GetXpnHost) super.setAccessToken(accessToken); - } - - @Override - public GetXpnHost setAlt(java.lang.String alt) { - return (GetXpnHost) super.setAlt(alt); - } - - @Override - public GetXpnHost setCallback(java.lang.String callback) { - return (GetXpnHost) super.setCallback(callback); - } - - @Override - public GetXpnHost setFields(java.lang.String fields) { - return (GetXpnHost) super.setFields(fields); - } - - @Override - public GetXpnHost setKey(java.lang.String key) { - return (GetXpnHost) super.setKey(key); - } - - @Override - public GetXpnHost setOauthToken(java.lang.String oauthToken) { - return (GetXpnHost) super.setOauthToken(oauthToken); - } - - @Override - public GetXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetXpnHost) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetXpnHost setQuotaUser(java.lang.String quotaUser) { - return (GetXpnHost) super.setQuotaUser(quotaUser); - } - - @Override - public GetXpnHost setUploadType(java.lang.String uploadType) { - return (GetXpnHost) super.setUploadType(uploadType); - } - - @Override - public GetXpnHost setUploadProtocol(java.lang.String uploadProtocol) { - return (GetXpnHost) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetXpnHost setUserIp(java.lang.String userIp) { - return (GetXpnHost) 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 GetXpnHost 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; - } - - @Override - public GetXpnHost set(String parameterName, Object value) { - return (GetXpnHost) super.set(parameterName, value); - } - } - /** - * Gets service resources (a.k.a service project) associated with this host project. - * - * Create a request for the method "projects.getXpnResources". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetXpnResources#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public GetXpnResources getXpnResources(java.lang.String project) throws java.io.IOException { - GetXpnResources result = new GetXpnResources(project); - initialize(result); - return result; - } - - public class GetXpnResources extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/getXpnResources"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Gets service resources (a.k.a service project) associated with this host project. - * - * Create a request for the method "projects.getXpnResources". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetXpnResources#execute()} method to invoke the remote operation. - *

{@link GetXpnResources#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected GetXpnResources(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ProjectsGetXpnResources.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetXpnResources set$Xgafv(java.lang.String $Xgafv) { - return (GetXpnResources) super.set$Xgafv($Xgafv); - } - - @Override - public GetXpnResources setAccessToken(java.lang.String accessToken) { - return (GetXpnResources) super.setAccessToken(accessToken); - } - - @Override - public GetXpnResources setAlt(java.lang.String alt) { - return (GetXpnResources) super.setAlt(alt); - } - - @Override - public GetXpnResources setCallback(java.lang.String callback) { - return (GetXpnResources) super.setCallback(callback); - } - - @Override - public GetXpnResources setFields(java.lang.String fields) { - return (GetXpnResources) super.setFields(fields); - } - - @Override - public GetXpnResources setKey(java.lang.String key) { - return (GetXpnResources) super.setKey(key); - } - - @Override - public GetXpnResources setOauthToken(java.lang.String oauthToken) { - return (GetXpnResources) super.setOauthToken(oauthToken); - } - - @Override - public GetXpnResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetXpnResources) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetXpnResources setQuotaUser(java.lang.String quotaUser) { - return (GetXpnResources) super.setQuotaUser(quotaUser); - } - - @Override - public GetXpnResources setUploadType(java.lang.String uploadType) { - return (GetXpnResources) super.setUploadType(uploadType); - } - - @Override - public GetXpnResources setUploadProtocol(java.lang.String uploadProtocol) { - return (GetXpnResources) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetXpnResources setUserIp(java.lang.String userIp) { - return (GetXpnResources) 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 GetXpnResources 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; - } - - /** - * 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 GetXpnResources 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 GetXpnResources 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 GetXpnResources 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 GetXpnResources setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public GetXpnResources set(String parameterName, Object value) { - return (GetXpnResources) super.set(parameterName, value); - } - } - /** - * Lists all shared VPC host projects visible to the user in an organization. - * - * Create a request for the method "projects.listXpnHosts". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListXpnHosts#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsListXpnHostsRequest} - * @return the request - */ - public ListXpnHosts listXpnHosts(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsListXpnHostsRequest content) throws java.io.IOException { - ListXpnHosts result = new ListXpnHosts(project, content); - initialize(result); - return result; - } - - public class ListXpnHosts extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/listXpnHosts"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all shared VPC host projects visible to the user in an organization. - * - * Create a request for the method "projects.listXpnHosts". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListXpnHosts#execute()} method to invoke the remote operation.

- * {@link - * ListXpnHosts#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 content the {@link com.google.api.services.compute.preview.model.ProjectsListXpnHostsRequest} - * @since 1.13 - */ - protected ListXpnHosts(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsListXpnHostsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.XpnHostList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListXpnHosts set$Xgafv(java.lang.String $Xgafv) { - return (ListXpnHosts) super.set$Xgafv($Xgafv); - } - - @Override - public ListXpnHosts setAccessToken(java.lang.String accessToken) { - return (ListXpnHosts) super.setAccessToken(accessToken); - } - - @Override - public ListXpnHosts setAlt(java.lang.String alt) { - return (ListXpnHosts) super.setAlt(alt); - } - - @Override - public ListXpnHosts setCallback(java.lang.String callback) { - return (ListXpnHosts) super.setCallback(callback); - } - - @Override - public ListXpnHosts setFields(java.lang.String fields) { - return (ListXpnHosts) super.setFields(fields); - } - - @Override - public ListXpnHosts setKey(java.lang.String key) { - return (ListXpnHosts) super.setKey(key); - } - - @Override - public ListXpnHosts setOauthToken(java.lang.String oauthToken) { - return (ListXpnHosts) super.setOauthToken(oauthToken); - } - - @Override - public ListXpnHosts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListXpnHosts) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListXpnHosts setQuotaUser(java.lang.String quotaUser) { - return (ListXpnHosts) super.setQuotaUser(quotaUser); - } - - @Override - public ListXpnHosts setUploadType(java.lang.String uploadType) { - return (ListXpnHosts) super.setUploadType(uploadType); - } - - @Override - public ListXpnHosts setUploadProtocol(java.lang.String uploadProtocol) { - return (ListXpnHosts) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListXpnHosts setUserIp(java.lang.String userIp) { - return (ListXpnHosts) 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 ListXpnHosts 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; - } - - /** - * 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 ListXpnHosts 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 ListXpnHosts 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 ListXpnHosts 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 ListXpnHosts setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListXpnHosts set(String parameterName, Object value) { - return (ListXpnHosts) super.set(parameterName, value); - } - } - /** - * Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated on - * September 29, 2026. - * - * Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a - * different region or zone, follow the steps in [Change the location of a - * disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). - * - * Projects that already use the moveDisk API can continue usage until September 29, 2026. - * - * Starting November 1, 2025, API responses will include a warning message in the response body - * about the upcoming deprecation. You can skip the message to continue using the service without - * interruption. - * - * Create a request for the method "projects.moveDisk". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link MoveDisk#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.DiskMoveRequest} - * @return the request - */ - public MoveDisk moveDisk(java.lang.String project, com.google.api.services.compute.preview.model.DiskMoveRequest content) throws java.io.IOException { - MoveDisk result = new MoveDisk(project, content); - initialize(result); - return result; - } - - public class MoveDisk extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/moveDisk"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated - * on September 29, 2026. - * - * Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to - * a different region or zone, follow the steps in [Change the location of a - * disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). - * - * Projects that already use the moveDisk API can continue usage until September 29, 2026. - * - * Starting November 1, 2025, API responses will include a warning message in the response body - * about the upcoming deprecation. You can skip the message to continue using the service without - * interruption. - * - * Create a request for the method "projects.moveDisk". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link MoveDisk#execute()} method to invoke the remote operation.

- * {@link - * MoveDisk#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 content the {@link com.google.api.services.compute.preview.model.DiskMoveRequest} - * @since 1.13 - */ - protected MoveDisk(java.lang.String project, com.google.api.services.compute.preview.model.DiskMoveRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public MoveDisk set$Xgafv(java.lang.String $Xgafv) { - return (MoveDisk) super.set$Xgafv($Xgafv); - } - - @Override - public MoveDisk setAccessToken(java.lang.String accessToken) { - return (MoveDisk) super.setAccessToken(accessToken); - } - - @Override - public MoveDisk setAlt(java.lang.String alt) { - return (MoveDisk) super.setAlt(alt); - } - - @Override - public MoveDisk setCallback(java.lang.String callback) { - return (MoveDisk) super.setCallback(callback); - } - - @Override - public MoveDisk setFields(java.lang.String fields) { - return (MoveDisk) super.setFields(fields); - } - - @Override - public MoveDisk setKey(java.lang.String key) { - return (MoveDisk) super.setKey(key); - } - - @Override - public MoveDisk setOauthToken(java.lang.String oauthToken) { - return (MoveDisk) super.setOauthToken(oauthToken); - } - - @Override - public MoveDisk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MoveDisk) super.setPrettyPrint(prettyPrint); - } - - @Override - public MoveDisk setQuotaUser(java.lang.String quotaUser) { - return (MoveDisk) super.setQuotaUser(quotaUser); - } - - @Override - public MoveDisk setUploadType(java.lang.String uploadType) { - return (MoveDisk) super.setUploadType(uploadType); - } - - @Override - public MoveDisk setUploadProtocol(java.lang.String uploadProtocol) { - return (MoveDisk) super.setUploadProtocol(uploadProtocol); - } - - @Override - public MoveDisk setUserIp(java.lang.String userIp) { - return (MoveDisk) 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 MoveDisk 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; - } - - /** - * 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 MoveDisk setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public MoveDisk set(String parameterName, Object value) { - return (MoveDisk) super.set(parameterName, value); - } - } - /** - * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs - * or disks by using this method might cause unexpected behavior. For more information, see the - * [known issue](/compute/docs/troubleshooting/known- - * issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). - * [Deprecated] This method is deprecated. See [moving instance across - * zones](/compute/docs/instances/moving-instance-across-zones) instead. - * - * Create a request for the method "projects.moveInstance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link MoveInstance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceMoveRequest} - * @return the request - */ - public MoveInstance moveInstance(java.lang.String project, com.google.api.services.compute.preview.model.InstanceMoveRequest content) throws java.io.IOException { - MoveInstance result = new MoveInstance(project, content); - initialize(result); - return result; - } - - public class MoveInstance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/moveInstance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving - * VMs or disks by using this method might cause unexpected behavior. For more information, see - * the [known issue](/compute/docs/troubleshooting/known- - * issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). - * [Deprecated] This method is deprecated. See [moving instance across - * zones](/compute/docs/instances/moving-instance-across-zones) instead. - * - * Create a request for the method "projects.moveInstance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link MoveInstance#execute()} method to invoke the remote operation.

- * {@link - * MoveInstance#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 content the {@link com.google.api.services.compute.preview.model.InstanceMoveRequest} - * @since 1.13 - */ - protected MoveInstance(java.lang.String project, com.google.api.services.compute.preview.model.InstanceMoveRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public MoveInstance set$Xgafv(java.lang.String $Xgafv) { - return (MoveInstance) super.set$Xgafv($Xgafv); - } - - @Override - public MoveInstance setAccessToken(java.lang.String accessToken) { - return (MoveInstance) super.setAccessToken(accessToken); - } - - @Override - public MoveInstance setAlt(java.lang.String alt) { - return (MoveInstance) super.setAlt(alt); - } - - @Override - public MoveInstance setCallback(java.lang.String callback) { - return (MoveInstance) super.setCallback(callback); - } - - @Override - public MoveInstance setFields(java.lang.String fields) { - return (MoveInstance) super.setFields(fields); - } - - @Override - public MoveInstance setKey(java.lang.String key) { - return (MoveInstance) super.setKey(key); - } - - @Override - public MoveInstance setOauthToken(java.lang.String oauthToken) { - return (MoveInstance) super.setOauthToken(oauthToken); - } - - @Override - public MoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MoveInstance) super.setPrettyPrint(prettyPrint); - } - - @Override - public MoveInstance setQuotaUser(java.lang.String quotaUser) { - return (MoveInstance) super.setQuotaUser(quotaUser); - } - - @Override - public MoveInstance setUploadType(java.lang.String uploadType) { - return (MoveInstance) super.setUploadType(uploadType); - } - - @Override - public MoveInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (MoveInstance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public MoveInstance setUserIp(java.lang.String userIp) { - return (MoveInstance) 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 MoveInstance 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; - } - - /** - * 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 MoveInstance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public MoveInstance set(String parameterName, Object value) { - return (MoveInstance) super.set(parameterName, value); - } - } - /** - * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the - * project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise - * for more information. - * - * Create a request for the method "projects.setCloudArmorTier". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetCloudArmorTier#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsSetCloudArmorTierRequest} - * @return the request - */ - public SetCloudArmorTier setCloudArmorTier(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsSetCloudArmorTierRequest content) throws java.io.IOException { - SetCloudArmorTier result = new SetCloudArmorTier(project, content); - initialize(result); - return result; - } - - public class SetCloudArmorTier extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/setCloudArmorTier"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the - * project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise - * for more information. - * - * Create a request for the method "projects.setCloudArmorTier". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetCloudArmorTier#execute()} method to invoke the remote operation. - *

{@link SetCloudArmorTier#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsSetCloudArmorTierRequest} - * @since 1.13 - */ - protected SetCloudArmorTier(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsSetCloudArmorTierRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetCloudArmorTier set$Xgafv(java.lang.String $Xgafv) { - return (SetCloudArmorTier) super.set$Xgafv($Xgafv); - } - - @Override - public SetCloudArmorTier setAccessToken(java.lang.String accessToken) { - return (SetCloudArmorTier) super.setAccessToken(accessToken); - } - - @Override - public SetCloudArmorTier setAlt(java.lang.String alt) { - return (SetCloudArmorTier) super.setAlt(alt); - } - - @Override - public SetCloudArmorTier setCallback(java.lang.String callback) { - return (SetCloudArmorTier) super.setCallback(callback); - } - - @Override - public SetCloudArmorTier setFields(java.lang.String fields) { - return (SetCloudArmorTier) super.setFields(fields); - } - - @Override - public SetCloudArmorTier setKey(java.lang.String key) { - return (SetCloudArmorTier) super.setKey(key); - } - - @Override - public SetCloudArmorTier setOauthToken(java.lang.String oauthToken) { - return (SetCloudArmorTier) super.setOauthToken(oauthToken); - } - - @Override - public SetCloudArmorTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCloudArmorTier) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetCloudArmorTier setQuotaUser(java.lang.String quotaUser) { - return (SetCloudArmorTier) super.setQuotaUser(quotaUser); - } - - @Override - public SetCloudArmorTier setUploadType(java.lang.String uploadType) { - return (SetCloudArmorTier) super.setUploadType(uploadType); - } - - @Override - public SetCloudArmorTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCloudArmorTier) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetCloudArmorTier setUserIp(java.lang.String userIp) { - return (SetCloudArmorTier) 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 SetCloudArmorTier 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; - } - - /** - * 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 SetCloudArmorTier setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetCloudArmorTier set(String parameterName, Object value) { - return (SetCloudArmorTier) super.set(parameterName, value); - } - } - /** - * Sets metadata common to all instances within the specified project using the data included in the - * request. - * - * Create a request for the method "projects.setCommonInstanceMetadata". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetCommonInstanceMetadata#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Metadata} - * @return the request - */ - public SetCommonInstanceMetadata setCommonInstanceMetadata(java.lang.String project, com.google.api.services.compute.preview.model.Metadata content) throws java.io.IOException { - SetCommonInstanceMetadata result = new SetCommonInstanceMetadata(project, content); - initialize(result); - return result; - } - - public class SetCommonInstanceMetadata extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/setCommonInstanceMetadata"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets metadata common to all instances within the specified project using the data included in - * the request. - * - * Create a request for the method "projects.setCommonInstanceMetadata". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetCommonInstanceMetadata#execute()} method to invoke the remote - * operation.

{@link SetCommonInstanceMetadata#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Metadata} - * @since 1.13 - */ - protected SetCommonInstanceMetadata(java.lang.String project, com.google.api.services.compute.preview.model.Metadata content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetCommonInstanceMetadata set$Xgafv(java.lang.String $Xgafv) { - return (SetCommonInstanceMetadata) super.set$Xgafv($Xgafv); - } - - @Override - public SetCommonInstanceMetadata setAccessToken(java.lang.String accessToken) { - return (SetCommonInstanceMetadata) super.setAccessToken(accessToken); - } - - @Override - public SetCommonInstanceMetadata setAlt(java.lang.String alt) { - return (SetCommonInstanceMetadata) super.setAlt(alt); - } - - @Override - public SetCommonInstanceMetadata setCallback(java.lang.String callback) { - return (SetCommonInstanceMetadata) super.setCallback(callback); - } - - @Override - public SetCommonInstanceMetadata setFields(java.lang.String fields) { - return (SetCommonInstanceMetadata) super.setFields(fields); - } - - @Override - public SetCommonInstanceMetadata setKey(java.lang.String key) { - return (SetCommonInstanceMetadata) super.setKey(key); - } - - @Override - public SetCommonInstanceMetadata setOauthToken(java.lang.String oauthToken) { - return (SetCommonInstanceMetadata) super.setOauthToken(oauthToken); - } - - @Override - public SetCommonInstanceMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCommonInstanceMetadata) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetCommonInstanceMetadata setQuotaUser(java.lang.String quotaUser) { - return (SetCommonInstanceMetadata) super.setQuotaUser(quotaUser); - } - - @Override - public SetCommonInstanceMetadata setUploadType(java.lang.String uploadType) { - return (SetCommonInstanceMetadata) super.setUploadType(uploadType); - } - - @Override - public SetCommonInstanceMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCommonInstanceMetadata) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetCommonInstanceMetadata setUserIp(java.lang.String userIp) { - return (SetCommonInstanceMetadata) 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 SetCommonInstanceMetadata 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; - } - - /** - * 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 SetCommonInstanceMetadata setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetCommonInstanceMetadata set(String parameterName, Object value) { - return (SetCommonInstanceMetadata) super.set(parameterName, value); - } - } - /** - * Sets the default network tier of the project. The default network tier is used when an - * address/forwardingRule/instance is created without specifying the network tier field. - * - * Create a request for the method "projects.setDefaultNetworkTier". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsSetDefaultNetworkTierRequest} - * @return the request - */ - public SetDefaultNetworkTier setDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsSetDefaultNetworkTierRequest content) throws java.io.IOException { - SetDefaultNetworkTier result = new SetDefaultNetworkTier(project, content); - initialize(result); - return result; - } - - public class SetDefaultNetworkTier extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/setDefaultNetworkTier"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the default network tier of the project. The default network tier is used when an - * address/forwardingRule/instance is created without specifying the network tier field. - * - * Create a request for the method "projects.setDefaultNetworkTier". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetDefaultNetworkTier#execute()} method to invoke the remote - * operation.

{@link SetDefaultNetworkTier#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ProjectsSetDefaultNetworkTierRequest} - * @since 1.13 - */ - protected SetDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.preview.model.ProjectsSetDefaultNetworkTierRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { - return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); - } - - @Override - public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { - return (SetDefaultNetworkTier) super.setAccessToken(accessToken); - } - - @Override - public SetDefaultNetworkTier setAlt(java.lang.String alt) { - return (SetDefaultNetworkTier) super.setAlt(alt); - } - - @Override - public SetDefaultNetworkTier setCallback(java.lang.String callback) { - return (SetDefaultNetworkTier) super.setCallback(callback); - } - - @Override - public SetDefaultNetworkTier setFields(java.lang.String fields) { - return (SetDefaultNetworkTier) super.setFields(fields); - } - - @Override - public SetDefaultNetworkTier setKey(java.lang.String key) { - return (SetDefaultNetworkTier) super.setKey(key); - } - - @Override - public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { - return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); - } - - @Override - public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { - return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); - } - - @Override - public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { - return (SetDefaultNetworkTier) super.setUploadType(uploadType); - } - - @Override - public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { - return (SetDefaultNetworkTier) 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 SetDefaultNetworkTier 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; - } - - /** - * 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 SetDefaultNetworkTier setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetDefaultNetworkTier set(String parameterName, Object value) { - return (SetDefaultNetworkTier) super.set(parameterName, value); - } - } - /** - * Enables the usage export feature and sets theusage export bucket where reports are stored. If you - * provide an empty request body using this method, the usage export feature will be disabled. - * - * Create a request for the method "projects.setUsageExportBucket". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.UsageExportLocation} - * @return the request - */ - public SetUsageExportBucket setUsageExportBucket(java.lang.String project, com.google.api.services.compute.preview.model.UsageExportLocation content) throws java.io.IOException { - SetUsageExportBucket result = new SetUsageExportBucket(project, content); - initialize(result); - return result; - } - - public class SetUsageExportBucket extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/setUsageExportBucket"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Enables the usage export feature and sets theusage export bucket where reports are stored. If - * you provide an empty request body using this method, the usage export feature will be disabled. - * - * Create a request for the method "projects.setUsageExportBucket". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUsageExportBucket#execute()} method to invoke the remote - * operation.

{@link SetUsageExportBucket#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 content the {@link com.google.api.services.compute.preview.model.UsageExportLocation} - * @since 1.13 - */ - protected SetUsageExportBucket(java.lang.String project, com.google.api.services.compute.preview.model.UsageExportLocation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { - return (SetUsageExportBucket) super.set$Xgafv($Xgafv); - } - - @Override - public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { - return (SetUsageExportBucket) super.setAccessToken(accessToken); - } - - @Override - public SetUsageExportBucket setAlt(java.lang.String alt) { - return (SetUsageExportBucket) super.setAlt(alt); - } - - @Override - public SetUsageExportBucket setCallback(java.lang.String callback) { - return (SetUsageExportBucket) super.setCallback(callback); - } - - @Override - public SetUsageExportBucket setFields(java.lang.String fields) { - return (SetUsageExportBucket) super.setFields(fields); - } - - @Override - public SetUsageExportBucket setKey(java.lang.String key) { - return (SetUsageExportBucket) super.setKey(key); - } - - @Override - public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { - return (SetUsageExportBucket) super.setOauthToken(oauthToken); - } - - @Override - public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { - return (SetUsageExportBucket) super.setQuotaUser(quotaUser); - } - - @Override - public SetUsageExportBucket setUploadType(java.lang.String uploadType) { - return (SetUsageExportBucket) super.setUploadType(uploadType); - } - - @Override - public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetUsageExportBucket setUserIp(java.lang.String userIp) { - return (SetUsageExportBucket) 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 SetUsageExportBucket 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; - } - - /** - * 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 SetUsageExportBucket setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetUsageExportBucket set(String parameterName, Object value) { - return (SetUsageExportBucket) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the PublicAdvertisedPrefixes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PublicAdvertisedPrefixes.List request = compute.publicAdvertisedPrefixes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PublicAdvertisedPrefixes publicAdvertisedPrefixes() { - return new PublicAdvertisedPrefixes(); - } - - /** - * The "publicAdvertisedPrefixes" collection of methods. - */ - public class PublicAdvertisedPrefixes { - - /** - * Announces the specified PublicAdvertisedPrefix - * - * Create a request for the method "publicAdvertisedPrefixes.announce". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Announce#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. - * @return the request - */ - public Announce announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Announce result = new Announce(project, publicAdvertisedPrefix); - initialize(result); - return result; - } - - public class Announce extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Announces the specified PublicAdvertisedPrefix - * - * Create a request for the method "publicAdvertisedPrefixes.announce". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

- * {@link - * Announce#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 publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. - * @since 1.13 - */ - protected Announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Announce set$Xgafv(java.lang.String $Xgafv) { - return (Announce) super.set$Xgafv($Xgafv); - } - - @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) super.setAccessToken(accessToken); - } - - @Override - public Announce setAlt(java.lang.String alt) { - return (Announce) super.setAlt(alt); - } - - @Override - public Announce setCallback(java.lang.String callback) { - return (Announce) super.setCallback(callback); - } - - @Override - public Announce setFields(java.lang.String fields) { - return (Announce) super.setFields(fields); - } - - @Override - public Announce setKey(java.lang.String key) { - return (Announce) super.setKey(key); - } - - @Override - public Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) super.setOauthToken(oauthToken); - } - - @Override - public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); - } - - @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); - } - - @Override - public Announce setUploadType(java.lang.String uploadType) { - return (Announce) super.setUploadType(uploadType); - } - - @Override - public Announce setUploadProtocol(java.lang.String uploadProtocol) { - return (Announce) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Announce setUserIp(java.lang.String userIp) { - return (Announce) 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 Announce 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 public advertised prefix. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; - - /** The name of the public advertised prefix. It should comply with RFC1035. - */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; - } - - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Announce setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - 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 Announce setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Announce set(String parameterName, Object value) { - return (Announce) super.set(parameterName, value); - } - } - /** - * Deletes the specified PublicAdvertisedPrefix - * - * Create a request for the method "publicAdvertisedPrefixes.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Delete result = new Delete(project, publicAdvertisedPrefix); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_ADVERTISED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified PublicAdvertisedPrefix - * - * Create a request for the method "publicAdvertisedPrefixes.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 PublicAdvertisedPrefix resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; - - /** Name of the PublicAdvertisedPrefix resource to delete. - */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; - } - - /** Name of the PublicAdvertisedPrefix resource to delete. */ - public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified PublicAdvertisedPrefix resource. - * - * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Get result = new Get(project, publicAdvertisedPrefix); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_ADVERTISED_PREFIX_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 PublicAdvertisedPrefix resource. - * - * Create a request for the method "publicAdvertisedPrefixes.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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PublicAdvertisedPrefix.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 PublicAdvertisedPrefix resource to return. */ - @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; - - /** Name of the PublicAdvertisedPrefix resource to return. - */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; - } - - /** Name of the PublicAdvertisedPrefix resource to return. */ - public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included - * in the request. - * - * Create a request for the method "publicAdvertisedPrefixes.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.PublicAdvertisedPrefix} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.PublicAdvertisedPrefix content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are - * included in the request. - * - * Create a request for the method "publicAdvertisedPrefixes.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.PublicAdvertisedPrefix} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.PublicAdvertisedPrefix content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the PublicAdvertisedPrefixes for a project. - * - * Create a request for the method "publicAdvertisedPrefixes.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the PublicAdvertisedPrefixes for a project. - * - * Create a request for the method "publicAdvertisedPrefixes.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PublicAdvertisedPrefixList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "publicAdvertisedPrefixes.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 Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PublicAdvertisedPrefix} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.preview.model.PublicAdvertisedPrefix content) throws java.io.IOException { - Patch result = new Patch(project, publicAdvertisedPrefix, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_ADVERTISED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "publicAdvertisedPrefixes.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 Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PublicAdvertisedPrefix} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String publicAdvertisedPrefix, com.google.api.services.compute.preview.model.PublicAdvertisedPrefix content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 PublicAdvertisedPrefix resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; - - /** Name of the PublicAdvertisedPrefix resource to patch. - */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; - } - - /** Name of the PublicAdvertisedPrefix resource to patch. */ - public Patch setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Withdraws the specified PublicAdvertisedPrefix - * - * Create a request for the method "publicAdvertisedPrefixes.withdraw". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. - * @return the request - */ - public Withdraw withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Withdraw result = new Withdraw(project, publicAdvertisedPrefix); - initialize(result); - return result; - } - - public class Withdraw extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Withdraws the specified PublicAdvertisedPrefix - * - * Create a request for the method "publicAdvertisedPrefixes.withdraw". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.

- * {@link - * Withdraw#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 publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. - * @since 1.13 - */ - protected Withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Withdraw set$Xgafv(java.lang.String $Xgafv) { - return (Withdraw) super.set$Xgafv($Xgafv); - } - - @Override - public Withdraw setAccessToken(java.lang.String accessToken) { - return (Withdraw) super.setAccessToken(accessToken); - } - - @Override - public Withdraw setAlt(java.lang.String alt) { - return (Withdraw) super.setAlt(alt); - } - - @Override - public Withdraw setCallback(java.lang.String callback) { - return (Withdraw) super.setCallback(callback); - } - - @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); - } - - @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); - } - - @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); - } - - @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); - } - - @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); - } - - @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); - } - - @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Withdraw setUserIp(java.lang.String userIp) { - return (Withdraw) 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 Withdraw 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 public advertised prefix. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; - - /** The name of the public advertised prefix. It should comply with RFC1035. - */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; - } - - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - 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 Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the PublicDelegatedPrefixes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.PublicDelegatedPrefixes.List request = compute.publicDelegatedPrefixes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public PublicDelegatedPrefixes publicDelegatedPrefixes() { - return new PublicDelegatedPrefixes(); - } - - /** - * The "publicDelegatedPrefixes" collection of methods. - */ - public class PublicDelegatedPrefixes { - - /** - * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "publicDelegatedPrefixes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "publicDelegatedPrefixes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PublicDelegatedPrefixAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Announces the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.announce". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Announce#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. - * @return the request - */ - public Announce announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Announce result = new Announce(project, region, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Announce extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Announces the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.announce". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The name of theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. - * @since 1.13 - */ - protected Announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Announce set$Xgafv(java.lang.String $Xgafv) { - return (Announce) super.set$Xgafv($Xgafv); - } - - @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) super.setAccessToken(accessToken); - } - - @Override - public Announce setAlt(java.lang.String alt) { - return (Announce) super.setAlt(alt); - } - - @Override - public Announce setCallback(java.lang.String callback) { - return (Announce) super.setCallback(callback); - } - - @Override - public Announce setFields(java.lang.String fields) { - return (Announce) super.setFields(fields); - } - - @Override - public Announce setKey(java.lang.String key) { - return (Announce) super.setKey(key); - } - - @Override - public Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) super.setOauthToken(oauthToken); - } - - @Override - public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); - } - - @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); - } - - @Override - public Announce setUploadType(java.lang.String uploadType) { - return (Announce) super.setUploadType(uploadType); - } - - @Override - public Announce setUploadProtocol(java.lang.String uploadProtocol) { - return (Announce) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Announce setUserIp(java.lang.String userIp) { - return (Announce) 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 Announce 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 theregion where the public delegated prefix is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. - */ - public Announce setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the public delegated prefix. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** The name of the public delegated prefix. It should comply with RFC1035. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Announce setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - this.publicDelegatedPrefix = publicDelegatedPrefix; - 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 Announce setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Announce set(String parameterName, Object value) { - return (Announce) super.set(parameterName, value); - } - } - /** - * Deletes the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Delete result = new Delete(project, region, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_DELEGATED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Delete 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 PublicDelegatedPrefix resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to delete. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to delete. */ - public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified PublicDelegatedPrefix resource in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Get result = new Get(project, region, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_DELEGATED_PREFIX_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 PublicDelegatedPrefix resource in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.PublicDelegatedPrefix.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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 PublicDelegatedPrefix resource to return. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to return. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to return. */ - public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters - * that are included in the request. - * - * Create a request for the method "publicDelegatedPrefixes.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the - * parameters that are included in the request. - * - * Create a request for the method "publicDelegatedPrefixes.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the PublicDelegatedPrefixes for a project in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of 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}/publicDelegatedPrefixes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the PublicDelegatedPrefixes for a project in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.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 region Name of the region of 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.preview.model.PublicDelegatedPrefixList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified PublicDelegatedPrefix resource with the data included in the request. This - * method supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "publicDelegatedPrefixes.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 Project ID for this request. - * @param region Name of the region for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) throws java.io.IOException { - Patch result = new Patch(project, region, publicDelegatedPrefix, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 PUBLIC_DELEGATED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified PublicDelegatedPrefix resource with the data included in the request. - * This method supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "publicDelegatedPrefixes.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 Project ID for this request. - * @param region Name of the region for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.PublicDelegatedPrefix} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.preview.model.PublicDelegatedPrefix content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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 PublicDelegatedPrefix resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to patch. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to patch. */ - public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Withdraws the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.withdraw". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. - * @return the request - */ - public Withdraw withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Withdraw result = new Withdraw(project, region, publicDelegatedPrefix); - initialize(result); - return result; - } - - public class Withdraw extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Withdraws the specified PublicDelegatedPrefix in the given region. - * - * Create a request for the method "publicDelegatedPrefixes.withdraw". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Withdraw#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The name of theregion where - the public delegated prefix is located. It should comply with RFC1035. - * @param publicDelegatedPrefix The name of the public delegated prefix. It should comply with RFC1035. - * @since 1.13 - */ - protected Withdraw(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Withdraw set$Xgafv(java.lang.String $Xgafv) { - return (Withdraw) super.set$Xgafv($Xgafv); - } - - @Override - public Withdraw setAccessToken(java.lang.String accessToken) { - return (Withdraw) super.setAccessToken(accessToken); - } - - @Override - public Withdraw setAlt(java.lang.String alt) { - return (Withdraw) super.setAlt(alt); - } - - @Override - public Withdraw setCallback(java.lang.String callback) { - return (Withdraw) super.setCallback(callback); - } - - @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); - } - - @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); - } - - @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); - } - - @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); - } - - @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); - } - - @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); - } - - @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Withdraw setUserIp(java.lang.String userIp) { - return (Withdraw) 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 Withdraw 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 theregion where the public delegated prefix is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. - */ - public Withdraw setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the public delegated prefix. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** The name of the public delegated prefix. It should comply with RFC1035. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - this.publicDelegatedPrefix = publicDelegatedPrefix; - 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 Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionAutoscalers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionAutoscalers.List request = compute.regionAutoscalers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionAutoscalers regionAutoscalers() { - return new RegionAutoscalers(); - } - - /** - * The "regionAutoscalers" collection of methods. - */ - public class RegionAutoscalers { - - /** - * Deletes the specified autoscaler. - * - * Create a request for the method "regionAutoscalers.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param autoscaler Name of the autoscaler to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String autoscaler) throws java.io.IOException { - Delete result = new Delete(project, region, autoscaler); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 AUTOSCALER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified autoscaler. - * - * Create a request for the method "regionAutoscalers.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param autoscaler Name of the autoscaler to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String autoscaler) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 autoscaler to delete. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to delete. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to delete. */ - public Delete setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified autoscaler. - * - * Create a request for the method "regionAutoscalers.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 region Name of the region scoping this request. - * @param autoscaler Name of the autoscaler to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String autoscaler) throws java.io.IOException { - Get result = new Get(project, region, autoscaler); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 AUTOSCALER_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 autoscaler. - * - * Create a request for the method "regionAutoscalers.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 region Name of the region scoping this request. - * @param autoscaler Name of the autoscaler to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String autoscaler) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Autoscaler.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.autoscaler = com.google.api.client.util.Preconditions.checkNotNull(autoscaler, "Required parameter autoscaler must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 autoscaler to return. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to return. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to return. */ - public Get setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an autoscaler in the specified project using the data included in the request. - * - * Create a request for the method "regionAutoscalers.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Autoscaler content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an autoscaler in the specified project using the data included in the request. - * - * Create a request for the method "regionAutoscalers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Autoscaler content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of autoscalers contained within the specified region. - * - * Create a request for the method "regionAutoscalers.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 region Name of the region scoping 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}/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of autoscalers contained within the specified region. - * - * Create a request for the method "regionAutoscalers.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 region Name of the region scoping 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.preview.model.RegionAutoscalerList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an autoscaler in the specified project using the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionAutoscalers.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Autoscaler content) throws java.io.IOException { - Patch result = new Patch(project, region, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 AUTOSCALER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates an autoscaler in the specified project using the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionAutoscalers.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Autoscaler content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 autoscaler to patch. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to patch. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to patch. */ - public Patch setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionAutoscalers.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionAutoscalers.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Autoscaler} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Autoscaler content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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 autoscaler to update. */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** Name of the autoscaler to update. - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** Name of the autoscaler to update. */ - public Update setAutoscaler(java.lang.String autoscaler) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.autoscaler = autoscaler; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionBackendBuckets collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionBackendBuckets.List request = compute.regionBackendBuckets().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionBackendBuckets regionBackendBuckets() { - return new RegionBackendBuckets(); - } - - /** - * The "regionBackendBuckets" collection of methods. - */ - public class RegionBackendBuckets { - - /** - * Deletes the specified regional BackendBucket resource. - * - * Create a request for the method "regionBackendBuckets.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendBucket) throws java.io.IOException { - Delete result = new Delete(project, region, backendBucket); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_BUCKET_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified regional BackendBucket resource. - * - * Create a request for the method "regionBackendBuckets.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendBucket) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 BackendBucket resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to delete. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to delete. */ - public Delete setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified regional BackendBucket resource. - * - * Create a request for the method "regionBackendBuckets.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 region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String backendBucket) throws java.io.IOException { - Get result = new Get(project, region, backendBucket); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_BUCKET_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 regional BackendBucket resource. - * - * Create a request for the method "regionBackendBuckets.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 region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String backendBucket) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendBucket.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 BackendBucket resource to return. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to return. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to return. */ - public Get setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "regionBackendBuckets.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "regionBackendBuckets.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.BackendBucket content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of BackendBucket resources available to the specified project in the given - * region. - * - * Create a request for the method "regionBackendBuckets.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 region Name of the region of 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}/backendBuckets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of BackendBucket resources available to the specified project in the given - * region. - * - * Create a request for the method "regionBackendBuckets.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 region Name of the region of 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.preview.model.BackendBucketList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves a list of all usable backend buckets in the specified project in the given region. - * - * Create a request for the method "regionBackendBuckets.listUsable". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - It must be a string that meets the requirements in RFC1035. - * @return the request - */ - public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { - ListUsable result = new ListUsable(project, region); - initialize(result); - return result; - } - - public class ListUsable extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/listUsable"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of all usable backend buckets in the specified project in the given region. - * - * Create a request for the method "regionBackendBuckets.listUsable". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - It must be a string that meets the requirements in RFC1035. - * @since 1.13 - */ - protected ListUsable(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendBucketListUsable.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); - } - - @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); - } - - @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); - } - - @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); - } - - @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); - } - - @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); - } - - @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); - } - - @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); - } - - @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); - } - - @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) 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 ListUsable 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. It must be a string that meets the requirements in - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. It must be a string that meets the requirements in - RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. - */ - public ListUsable 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); - } - } - /** - * Updates the specified BackendBucket resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionBackendBuckets.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String backendBucket, com.google.api.services.compute.preview.model.BackendBucket content) throws java.io.IOException { - Patch result = new Patch(project, region, backendBucket, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_BUCKET_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified BackendBucket resource with the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionBackendBuckets.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendBucket} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String backendBucket, com.google.api.services.compute.preview.model.BackendBucket content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.backendBucket = com.google.api.client.util.Preconditions.checkNotNull(backendBucket, "Required parameter backendBucket must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 BackendBucket resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; - - /** Name of the BackendBucket resource to patch. - */ - public java.lang.String getBackendBucket() { - return backendBucket; - } - - /** Name of the BackendBucket resource to patch. */ - public Patch setBackendBucket(java.lang.String backendBucket) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendBucket = backendBucket; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionBackendBuckets.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionBackendBuckets.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionBackendServices collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionBackendServices.List request = compute.regionBackendServices().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionBackendServices regionBackendServices() { - return new RegionBackendServices(); - } - - /** - * The "regionBackendServices" collection of methods. - */ - public class RegionBackendServices { - - /** - * Deletes the specified regional BackendService resource. - * - * Create a request for the method "regionBackendServices.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String backendService) throws java.io.IOException { - Delete result = new Delete(project, region, backendService); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified regional BackendService resource. - * - * Create a request for the method "regionBackendServices.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String backendService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 BackendService resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to delete. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to delete. */ - public Delete setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified regional BackendService resource. - * - * Create a request for the method "regionBackendServices.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 region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String backendService) throws java.io.IOException { - Get result = new Get(project, region, backendService); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_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 regional BackendService resource. - * - * Create a request for the method "regionBackendServices.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 region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String backendService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendService.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 BackendService resource to return. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to return. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to return. */ - public Get setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the most recent health check results for this regional BackendService. - * - * Create a request for the method "regionBackendServices.getHealth". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. - * - * @param project - * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource for which to get health. - * @param content the {@link com.google.api.services.compute.preview.model.ResourceGroupReference} - * @return the request - */ - public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.preview.model.ResourceGroupReference content) throws java.io.IOException { - GetHealth result = new GetHealth(project, region, backendService, content); - initialize(result); - return result; - } - - public class GetHealth extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/getHealth"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the most recent health check results for this regional BackendService. - * - * Create a request for the method "regionBackendServices.getHealth". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

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

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.BackendService content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of regional BackendService resources available to the specified project in the - * given region. - * - * Create a request for the method "regionBackendServices.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 region Name of the region scoping 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}/backendServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of regional BackendService resources available to the specified project in - * the given region. - * - * Create a request for the method "regionBackendServices.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 region Name of the region scoping 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.preview.model.BackendServiceList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves a list of all usable backend services for Application Load Balancers and Proxy Network - * Load Balancers in the specified project in the given region. Backend services for external and - * internal passthrough Network Load Balancers are not included in the response. - * - * Create a request for the method "regionBackendServices.listUsable". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - It must be a string that meets the requirements in RFC1035. - * @return the request - */ - public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { - ListUsable result = new ListUsable(project, region); - initialize(result); - return result; - } - - public class ListUsable extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/listUsable"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of all usable backend services for Application Load Balancers and Proxy - * Network Load Balancers in the specified project in the given region. Backend services for - * external and internal passthrough Network Load Balancers are not included in the response. - * - * Create a request for the method "regionBackendServices.listUsable". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - It must be a string that meets the requirements in RFC1035. - * @since 1.13 - */ - protected ListUsable(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.BackendServiceListUsable.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); - } - - @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); - } - - @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); - } - - @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); - } - - @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); - } - - @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); - } - - @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); - } - - @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); - } - - @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); - } - - @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) 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 ListUsable 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. It must be a string that meets the requirements in - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. It must be a string that meets the requirements in - RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. - */ - public ListUsable setRegion(java.lang.String region) { - 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); - } - } - /** - * Updates the specified regional BackendService resource with the data included in the request. For - * more information, see Understanding backend services This method supports PATCH semantics and - * uses the JSON merge patch format and processing rules. - * - * Create a request for the method "regionBackendServices.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.preview.model.BackendService content) throws java.io.IOException { - Patch result = new Patch(project, region, backendService, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 BACKEND_SERVICE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified regional BackendService resource with the data included in the request. - * For more information, see Understanding backend services This method supports PATCH semantics - * and uses the JSON merge patch format and processing rules. - * - * Create a request for the method "regionBackendServices.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.preview.model.BackendService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 BackendService resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to patch. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to patch. */ - public Patch setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionBackendServices.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionBackendServices.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.BackendService} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.preview.model.BackendService content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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 BackendService resource to update. */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** Name of the BackendService resource to update. - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** Name of the BackendService resource to update. */ - public Update setBackendService(java.lang.String backendService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.backendService = backendService; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionCommitments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionCommitments.List request = compute.regionCommitments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionCommitments regionCommitments() { - return new RegionCommitments(); - } - - /** - * The "regionCommitments" collection of methods. - */ - public class RegionCommitments { - - /** - * Retrieves an aggregated list of commitments by region. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionCommitments.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/commitments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of commitments by region. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionCommitments.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.CommitmentAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Returns the specified commitment resource. - * - * Create a request for the method "regionCommitments.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 region Name of the region for this request. - * @param commitment Name of the commitment to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String commitment) throws java.io.IOException { - Get result = new Get(project, region, commitment); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 COMMITMENT_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 commitment resource. - * - * Create a request for the method "regionCommitments.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 region Name of the region for this request. - * @param commitment Name of the commitment to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String commitment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Commitment.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.commitment = com.google.api.client.util.Preconditions.checkNotNull(commitment, "Required parameter commitment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 commitment to return. */ - @com.google.api.client.util.Key - private java.lang.String commitment; - - /** Name of the commitment to return. - */ - public java.lang.String getCommitment() { - return commitment; - } - - /** Name of the commitment to return. */ - public Get setCommitment(java.lang.String commitment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.commitment = commitment; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a commitment in the specified project using the data included in the request. - * - * Create a request for the method "regionCommitments.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Commitment} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Commitment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a commitment in the specified project using the data included in the request. - * - * Create a request for the method "regionCommitments.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Commitment} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Commitment content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of commitments contained within the specified region. - * - * Create a request for the method "regionCommitments.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 region 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}/commitments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of commitments contained within the specified region. - * - * Create a request for the method "regionCommitments.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 region 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.preview.model.CommitmentList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified commitment with the data included in the request. Update is performed only - * on selected fields included as part of update-mask. Only the following fields can be updated: - * auto_renew and plan. - * - * Create a request for the method "regionCommitments.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param commitment Name of the commitment that you want to update. - * @param content the {@link com.google.api.services.compute.preview.model.Commitment} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.preview.model.Commitment content) throws java.io.IOException { - Update result = new Update(project, region, commitment, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 COMMITMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified commitment with the data included in the request. Update is performed - * only on selected fields included as part of update-mask. Only the following fields can be - * updated: auto_renew and plan. - * - * Create a request for the method "regionCommitments.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param commitment Name of the commitment that you want to update. - * @param content the {@link com.google.api.services.compute.preview.model.Commitment} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.preview.model.Commitment content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.commitment = com.google.api.client.util.Preconditions.checkNotNull(commitment, "Required parameter commitment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Update 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 commitment that you want to update. */ - @com.google.api.client.util.Key - private java.lang.String commitment; - - /** Name of the commitment that you want to update. - */ - public java.lang.String getCommitment() { - return commitment; - } - - /** Name of the commitment that you want to update. */ - public Update setCommitment(java.lang.String commitment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.commitment = commitment; - return this; - } - - @com.google.api.client.util.Key - private java.util.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Update setPaths(java.util.List paths) { - this.paths = paths; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionCompositeHealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionCompositeHealthChecks.List request = compute.regionCompositeHealthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionCompositeHealthChecks regionCompositeHealthChecks() { - return new RegionCompositeHealthChecks(); - } - - /** - * The "regionCompositeHealthChecks" collection of methods. - */ - public class RegionCompositeHealthChecks { - - /** - * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionCompositeHealthChecks.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/compositeHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionCompositeHealthChecks.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.CompositeHealthCheckAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified CompositeHealthCheck in the given region - * - * Create a request for the method "regionCompositeHealthChecks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, region, compositeHealthCheck); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 COMPOSITE_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified CompositeHealthCheck in the given region - * - * Create a request for the method "regionCompositeHealthChecks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), - "Parameter compositeHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 CompositeHealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String compositeHealthCheck; - - /** Name of the CompositeHealthCheck resource to delete. - */ - public java.lang.String getCompositeHealthCheck() { - return compositeHealthCheck; - } - - /** Name of the CompositeHealthCheck resource to delete. */ - public Delete setCompositeHealthCheck(java.lang.String compositeHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), - "Parameter compositeHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.compositeHealthCheck = compositeHealthCheck; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified CompositeHealthCheck resource in the given region. - * - * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { - Get result = new Get(project, region, compositeHealthCheck); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 COMPOSITE_HEALTH_CHECK_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 CompositeHealthCheck resource in the given region. - * - * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.CompositeHealthCheck.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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), - "Parameter compositeHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 CompositeHealthCheck resource to return. */ - @com.google.api.client.util.Key - private java.lang.String compositeHealthCheck; - - /** Name of the CompositeHealthCheck resource to return. - */ - public java.lang.String getCompositeHealthCheck() { - return compositeHealthCheck; - } - - /** Name of the CompositeHealthCheck resource to return. */ - public Get setCompositeHealthCheck(java.lang.String compositeHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), - "Parameter compositeHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.compositeHealthCheck = compositeHealthCheck; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the most recent health check results for this regional CompositeHealthCheck. - * - * Create a request for the method "regionCompositeHealthChecks.getHealth". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @param region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck resource to get health for. - * @return the request - */ - public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) throws java.io.IOException { - GetHealth result = new GetHealth(project, region, compositeHealthCheck); - initialize(result); - return result; - } - - public class GetHealth extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}/getHealth"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 COMPOSITE_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the most recent health check results for this regional CompositeHealthCheck. - * - * Create a request for the method "regionCompositeHealthChecks.getHealth". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

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

- * - * @param project Name of the project scoping this request. - * @param region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck resource to get health for. - * @since 1.13 - */ - protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.CompositeHealthCheckHealth.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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), - "Parameter compositeHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); - } - - @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); - } - - @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); - } - - @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); - } - - @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); - } - - @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); - } - - @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); - } - - @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); - } - - @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); - } - - @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public GetHealth 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 GetHealth 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 CompositeHealthCheck resource to get health for. */ - @com.google.api.client.util.Key - private java.lang.String compositeHealthCheck; - - /** Name of the CompositeHealthCheck resource to get health for. - */ - public java.lang.String getCompositeHealthCheck() { - return compositeHealthCheck; - } - - /** Name of the CompositeHealthCheck resource to get health for. */ - public GetHealth setCompositeHealthCheck(java.lang.String compositeHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMPOSITE_HEALTH_CHECK_PATTERN.matcher(compositeHealthCheck).matches(), - "Parameter compositeHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.compositeHealthCheck = compositeHealthCheck; - return this; - } - - @Override - public GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); - } - } - /** - * Create a CompositeHealthCheck in the specified project in the given region using the parameters - * that are included in the request. - * - * Create a request for the method "regionCompositeHealthChecks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.CompositeHealthCheck} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CompositeHealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Create a CompositeHealthCheck in the specified project in the given region using the parameters - * that are included in the request. - * - * Create a request for the method "regionCompositeHealthChecks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.CompositeHealthCheck} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.CompositeHealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the CompositeHealthChecks for a project in the given region. - * - * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping 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}/compositeHealthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the CompositeHealthChecks for a project in the given region. - * - * Create a request for the method "regionCompositeHealthChecks.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 region Name of the region scoping 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.preview.model.CompositeHealthCheckList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified regional CompositeHealthCheck resource with the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "regionCompositeHealthChecks.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.CompositeHealthCheck} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck, com.google.api.services.compute.preview.model.CompositeHealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, region, compositeHealthCheck, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Updates the specified regional CompositeHealthCheck resource with the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. - * - * Create a request for the method "regionCompositeHealthChecks.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param compositeHealthCheck Name of the CompositeHealthCheck to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.CompositeHealthCheck} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String compositeHealthCheck, com.google.api.services.compute.preview.model.CompositeHealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 CompositeHealthCheck to update. The name must be 1-63 characters long, and - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String compositeHealthCheck; - - /** Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and comply with - RFC1035. - */ - public java.lang.String getCompositeHealthCheck() { - return compositeHealthCheck; - } - - /** - * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and - * comply with RFC1035. - */ - public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { - this.compositeHealthCheck = compositeHealthCheck; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionCompositeHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionCompositeHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionDiskTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionDiskTypes.List request = compute.regionDiskTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionDiskTypes regionDiskTypes() { - return new RegionDiskTypes(); - } - - /** - * The "regionDiskTypes" collection of methods. - */ - public class RegionDiskTypes { - - /** - * Returns the specified regional disk type. - * - * Create a request for the method "regionDiskTypes.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 region The name of the region for this request. - * @param diskType Name of the disk type to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String diskType) throws java.io.IOException { - Get result = new Get(project, region, diskType); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_TYPE_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 regional disk type. - * - * Create a request for the method "regionDiskTypes.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 region The name of the region for this request. - * @param diskType Name of the disk type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String diskType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.DiskType.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.diskType = com.google.api.client.util.Preconditions.checkNotNull(diskType, "Required parameter diskType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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 disk type to return. */ - @com.google.api.client.util.Key - private java.lang.String diskType; - - /** Name of the disk type to return. - */ - public java.lang.String getDiskType() { - return diskType; - } - - /** Name of the disk type to return. */ - public Get setDiskType(java.lang.String diskType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_TYPE_PATTERN.matcher(diskType).matches(), - "Parameter diskType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.diskType = diskType; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of regional disk types available to the specified project. - * - * Create a request for the method "regionDiskTypes.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 region The 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}/diskTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of regional disk types available to the specified project. - * - * Create a request for the method "regionDiskTypes.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 region The 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.preview.model.RegionDiskTypeList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionDisks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionDisks.List request = compute.regionDisks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionDisks regionDisks() { - return new RegionDisks(); - } - - /** - * The "regionDisks" collection of methods. - */ - public class RegionDisks { - - /** - * Adds existing resource policies to a regional disk. You can only add one policy which will be - * applied to this disk for scheduling snapshot creation. - * - * Create a request for the method "regionDisks.addResourcePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDisksAddResourcePoliciesRequest} - * @return the request - */ - public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDisksAddResourcePoliciesRequest content) throws java.io.IOException { - AddResourcePolicies result = new AddResourcePolicies(project, region, disk, content); - initialize(result); - return result; - } - - public class AddResourcePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds existing resource policies to a regional disk. You can only add one policy which will be - * applied to this disk for scheduling snapshot creation. - * - * Create a request for the method "regionDisks.addResourcePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddResourcePolicies#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDisksAddResourcePoliciesRequest} - * @since 1.13 - */ - protected AddResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDisksAddResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); - } - - @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); - } - - @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); - } - - @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); - } - - @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); - } - - @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); - } - - @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); - } - - @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) 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 AddResourcePolicies setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public AddResourcePolicies 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; - } - - /** The disk name for this request. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The disk name for this request. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The disk name for this request. */ - public AddResourcePolicies setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 AddResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); - } - } - /** - * Bulk create a set of disks. - * - * Create a request for the method "regionDisks.bulkInsert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertDiskResource} - * @return the request - */ - public BulkInsert bulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.BulkInsertDiskResource content) throws java.io.IOException { - BulkInsert result = new BulkInsert(project, region, content); - initialize(result); - return result; - } - - public class BulkInsert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Bulk create a set of disks. - * - * Create a request for the method "regionDisks.bulkInsert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertDiskResource} - * @since 1.13 - */ - protected BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.BulkInsertDiskResource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); - } - - @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); - } - - @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); - } - - @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); - } - - @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); - } - - @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); - } - - @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); - } - - @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); - } - - @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); - } - - @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); - } - - @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) 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 BulkInsert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public BulkInsert 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; - } - - /** - * 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 BulkInsert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); - } - } - /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using - * snapshots.insert instead, as that method supports more features, such as creating snapshots in a - * project different from the source disk project. - * - * Create a request for the method "regionDisks.createSnapshot". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @return the request - */ - public CreateSnapshot createSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.Snapshot content) throws java.io.IOException { - CreateSnapshot result = new CreateSnapshot(project, region, disk, content); - initialize(result); - return result; - } - - public class CreateSnapshot extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider - * using snapshots.insert instead, as that method supports more features, such as creating - * snapshots in a project different from the source disk project. - * - * Create a request for the method "regionDisks.createSnapshot". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateSnapshot#execute()} method to invoke the remote operation. - *

{@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 for this request. - * @param disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @since 1.13 - */ - protected CreateSnapshot(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.Snapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); - } - - @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); - } - - @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); - } - - @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); - } - - @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); - } - - @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); - } - - @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); - } - - @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); - } - - @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); - } - - @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); - } - - @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) 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 CreateSnapshot 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public CreateSnapshot 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 regional persistent disk to snapshot. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the regional persistent disk to snapshot. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the regional persistent disk to snapshot. */ - public CreateSnapshot setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 CreateSnapshot setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public CreateSnapshot set(String parameterName, Object value) { - return (CreateSnapshot) super.set(parameterName, value); - } - } - /** - * Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas - * of its data permanently and is irreversible. However, deleting a disk does not delete - * anysnapshots previously made from the disk. You must separatelydelete snapshots. - * - * Create a request for the method "regionDisks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { - Delete result = new Delete(project, region, disk); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("\\S{1,66}"); - - /** - * Deletes the specified regional persistent disk. Deleting a regional disk removes all the - * replicas of its data permanently and is irreversible. However, deleting a disk does not delete - * anysnapshots previously made from the disk. You must separatelydelete snapshots. - * - * Create a request for the method "regionDisks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String disk) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 regional persistent disk to delete. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the regional persistent disk to delete. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the regional persistent disk to delete. */ - public Delete setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); - } - this.disk = disk; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns a specified regional persistent disk. - * - * Create a request for the method "regionDisks.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 region Name of the region for this request. - * @param disk Name of the regional persistent disk to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { - Get result = new Get(project, region, disk); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns a specified regional persistent disk. - * - * Create a request for the method "regionDisks.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 region Name of the region for this request. - * @param disk Name of the regional persistent disk to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String disk) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Disk.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 regional persistent disk to return. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the regional persistent disk to return. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the regional persistent disk to return. */ - public Get setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "regionDisks.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "regionDisks.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Disk} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Disk content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Source image to restore onto a disk. This field is optional. */ - @com.google.api.client.util.Key - private java.lang.String sourceImage; - - /** Source image to restore onto a disk. This field is optional. - */ - public java.lang.String getSourceImage() { - return sourceImage; - } - - /** Source image to restore onto a disk. This field is optional. */ - public Insert setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of persistent disks contained within the specified region. - * - * Create a request for the method "regionDisks.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 region 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}/disks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of persistent disks contained within the specified region. - * - * Create a request for the method "regionDisks.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 region 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.preview.model.DiskList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Removes resource policies from a regional disk. - * - * Create a request for the method "regionDisks.removeResourcePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDisksRemoveResourcePoliciesRequest} - * @return the request - */ - public RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDisksRemoveResourcePoliciesRequest content) throws java.io.IOException { - RemoveResourcePolicies result = new RemoveResourcePolicies(project, region, disk, content); - initialize(result); - return result; - } - - public class RemoveResourcePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes resource policies from a regional disk. - * - * Create a request for the method "regionDisks.removeResourcePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveResourcePolicies#execute()} method to invoke the remote - * operation.

{@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDisksRemoveResourcePoliciesRequest} - * @since 1.13 - */ - protected RemoveResourcePolicies(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDisksRemoveResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); - } - - @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); - } - - @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); - } - - @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); - } - - @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); - } - - @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); - } - - @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); - } - - @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) 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 RemoveResourcePolicies setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public RemoveResourcePolicies 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; - } - - /** The disk name for this request. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The disk name for this request. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The disk name for this request. */ - public RemoveResourcePolicies setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 RemoveResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); - } - } - /** - * Resizes the specified regional persistent disk. - * - * Create a request for the method "regionDisks.resize". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. - * - * @param project The project ID for this request. - * @param region Name of the region for this request. - * @param disk Name of the regional persistent disk. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDisksResizeRequest} - * @return the request - */ - public Resize resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDisksResizeRequest content) throws java.io.IOException { - Resize result = new Resize(project, region, disk, content); - initialize(result); - return result; - } - - public class Resize extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Resizes the specified regional persistent disk. - * - * Create a request for the method "regionDisks.resize". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

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

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

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

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

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

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

{@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDisksStartAsyncReplicationRequest} - * @since 1.13 - */ - protected StartAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDisksStartAsyncReplicationRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StartAsyncReplication) super.set$Xgafv($Xgafv); - } - - @Override - public StartAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StartAsyncReplication) super.setAccessToken(accessToken); - } - - @Override - public StartAsyncReplication setAlt(java.lang.String alt) { - return (StartAsyncReplication) super.setAlt(alt); - } - - @Override - public StartAsyncReplication setCallback(java.lang.String callback) { - return (StartAsyncReplication) super.setCallback(callback); - } - - @Override - public StartAsyncReplication setFields(java.lang.String fields) { - return (StartAsyncReplication) super.setFields(fields); - } - - @Override - public StartAsyncReplication setKey(java.lang.String key) { - return (StartAsyncReplication) super.setKey(key); - } - - @Override - public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StartAsyncReplication) super.setOauthToken(oauthToken); - } - - @Override - public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); - } - - @Override - public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StartAsyncReplication) super.setQuotaUser(quotaUser); - } - - @Override - public StartAsyncReplication setUploadType(java.lang.String uploadType) { - return (StartAsyncReplication) super.setUploadType(uploadType); - } - - @Override - public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StartAsyncReplication setUserIp(java.lang.String userIp) { - return (StartAsyncReplication) 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 StartAsyncReplication setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public StartAsyncReplication 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; - } - - /** The name of the persistent disk. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The name of the persistent disk. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The name of the persistent disk. */ - public StartAsyncReplication setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 StartAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StartAsyncReplication set(String parameterName, Object value) { - return (StartAsyncReplication) super.set(parameterName, value); - } - } - /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. - * - * Create a request for the method "regionDisks.stopAsyncReplication". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The name of the persistent disk. - * @return the request - */ - public StopAsyncReplication stopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) throws java.io.IOException { - StopAsyncReplication result = new StopAsyncReplication(project, region, disk); - initialize(result); - return result; - } - - public class StopAsyncReplication extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 DISK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. - * - * Create a request for the method "regionDisks.stopAsyncReplication". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopAsyncReplication#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The name of the persistent disk. - * @since 1.13 - */ - protected StopAsyncReplication(java.lang.String project, java.lang.String region, java.lang.String disk) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopAsyncReplication) super.set$Xgafv($Xgafv); - } - - @Override - public StopAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopAsyncReplication) super.setAccessToken(accessToken); - } - - @Override - public StopAsyncReplication setAlt(java.lang.String alt) { - return (StopAsyncReplication) super.setAlt(alt); - } - - @Override - public StopAsyncReplication setCallback(java.lang.String callback) { - return (StopAsyncReplication) super.setCallback(callback); - } - - @Override - public StopAsyncReplication setFields(java.lang.String fields) { - return (StopAsyncReplication) super.setFields(fields); - } - - @Override - public StopAsyncReplication setKey(java.lang.String key) { - return (StopAsyncReplication) super.setKey(key); - } - - @Override - public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopAsyncReplication) super.setOauthToken(oauthToken); - } - - @Override - public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); - } - - @Override - public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopAsyncReplication) super.setQuotaUser(quotaUser); - } - - @Override - public StopAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopAsyncReplication) super.setUploadType(uploadType); - } - - @Override - public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StopAsyncReplication setUserIp(java.lang.String userIp) { - return (StopAsyncReplication) 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 StopAsyncReplication setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public StopAsyncReplication 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; - } - - /** The name of the persistent disk. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The name of the persistent disk. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The name of the persistent disk. */ - public StopAsyncReplication setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - 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 StopAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StopAsyncReplication set(String parameterName, Object value) { - return (StopAsyncReplication) super.set(parameterName, value); - } - } - /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. - * - * Create a request for the method "regionDisks.stopGroupAsyncReplication". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. This must be the region of the - primary or secondary disks - * in the consistency group. - * @param content the {@link com.google.api.services.compute.preview.model.DisksStopGroupAsyncReplicationResource} - * @return the request - */ - public StopGroupAsyncReplication stopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.DisksStopGroupAsyncReplicationResource content) throws java.io.IOException { - StopGroupAsyncReplication result = new StopGroupAsyncReplication(project, region, content); - initialize(result); - return result; - } - - public class StopGroupAsyncReplication extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. - * - * Create a request for the method "regionDisks.stopGroupAsyncReplication". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote - * operation.

{@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

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

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

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Disk} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.Disk content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Update 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; - } - - /** The disk name for this request. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** The disk name for this request. - */ - public java.lang.String getDisk() { - return disk; - } - - /** The disk name for this request. */ - public Update setDisk(java.lang.String disk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.disk = disk; - return this; - } - - @com.google.api.client.util.Key - private java.util.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Update setPaths(java.util.List paths) { - this.paths = paths; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - /** - * Rotates the customer-managed encryption key to the latest version for the specified persistent - * disk. - * - * Create a request for the method "regionDisks.updateKmsKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk Name of the Disk resource, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDiskUpdateKmsKeyRequest} - * @return the request - */ - public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDiskUpdateKmsKeyRequest content) throws java.io.IOException { - UpdateKmsKey result = new UpdateKmsKey(project, region, disk, content); - initialize(result); - return result; - } - - public class UpdateKmsKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/updateKmsKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Rotates the customer-managed encryption key to the latest version for the specified persistent - * disk. - * - * Create a request for the method "regionDisks.updateKmsKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param disk Name of the Disk resource, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionDiskUpdateKmsKeyRequest} - * @since 1.13 - */ - protected UpdateKmsKey(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.preview.model.RegionDiskUpdateKmsKeyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { - return (UpdateKmsKey) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateKmsKey setAccessToken(java.lang.String accessToken) { - return (UpdateKmsKey) super.setAccessToken(accessToken); - } - - @Override - public UpdateKmsKey setAlt(java.lang.String alt) { - return (UpdateKmsKey) super.setAlt(alt); - } - - @Override - public UpdateKmsKey setCallback(java.lang.String callback) { - return (UpdateKmsKey) super.setCallback(callback); - } - - @Override - public UpdateKmsKey setFields(java.lang.String fields) { - return (UpdateKmsKey) super.setFields(fields); - } - - @Override - public UpdateKmsKey setKey(java.lang.String key) { - return (UpdateKmsKey) super.setKey(key); - } - - @Override - public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { - return (UpdateKmsKey) super.setOauthToken(oauthToken); - } - - @Override - public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { - return (UpdateKmsKey) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateKmsKey setUploadType(java.lang.String uploadType) { - return (UpdateKmsKey) super.setUploadType(uploadType); - } - - @Override - public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateKmsKey setUserIp(java.lang.String userIp) { - return (UpdateKmsKey) 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 UpdateKmsKey setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public UpdateKmsKey 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 Disk resource, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** Name of the Disk resource, should conform to RFC1035. - */ - public java.lang.String getDisk() { - return disk; - } - - /** Name of the Disk resource, should conform to RFC1035. */ - public UpdateKmsKey setDisk(java.lang.String disk) { - this.disk = disk; - 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 UpdateKmsKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateKmsKey set(String parameterName, Object value) { - return (UpdateKmsKey) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionHealthAggregationPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionHealthAggregationPolicies.List request = compute.regionHealthAggregationPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionHealthAggregationPolicies regionHealthAggregationPolicies() { - return new RegionHealthAggregationPolicies(); - } - - /** - * The "regionHealthAggregationPolicies" collection of methods. - */ - public class RegionHealthAggregationPolicies { - - /** - * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to - * the specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionHealthAggregationPolicies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/healthAggregationPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to - * the specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionHealthAggregationPolicies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthAggregationPolicyAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified HealthAggregationPolicy in the given region. - * - * Create a request for the method "regionHealthAggregationPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, healthAggregationPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_AGGREGATION_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified HealthAggregationPolicy in the given region. - * - * Create a request for the method "regionHealthAggregationPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), - "Parameter healthAggregationPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 HealthAggregationPolicy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String healthAggregationPolicy; - - /** Name of the HealthAggregationPolicy resource to delete. - */ - public java.lang.String getHealthAggregationPolicy() { - return healthAggregationPolicy; - } - - /** Name of the HealthAggregationPolicy resource to delete. */ - public Delete setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), - "Parameter healthAggregationPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthAggregationPolicy = healthAggregationPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HealthAggregationPolicy resource in the given region. - * - * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) throws java.io.IOException { - Get result = new Get(project, region, healthAggregationPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_AGGREGATION_POLICY_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 HealthAggregationPolicy resource in the given region. - * - * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthAggregationPolicy.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.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), - "Parameter healthAggregationPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 HealthAggregationPolicy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String healthAggregationPolicy; - - /** Name of the HealthAggregationPolicy resource to return. - */ - public java.lang.String getHealthAggregationPolicy() { - return healthAggregationPolicy; - } - - /** Name of the HealthAggregationPolicy resource to return. */ - public Get setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_AGGREGATION_POLICY_PATTERN.matcher(healthAggregationPolicy).matches(), - "Parameter healthAggregationPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthAggregationPolicy = healthAggregationPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Create a HealthAggregationPolicy in the specified project in the given region using the - * parameters that are included in the request. - * - * Create a request for the method "regionHealthAggregationPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthAggregationPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthAggregationPolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Create a HealthAggregationPolicy in the specified project in the given region using the - * parameters that are included in the request. - * - * Create a request for the method "regionHealthAggregationPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthAggregationPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthAggregationPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the HealthAggregationPolicies for a project in the given region. - * - * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping 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}/healthAggregationPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the HealthAggregationPolicies for a project in the given region. - * - * Create a request for the method "regionHealthAggregationPolicies.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 region Name of the region scoping 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.preview.model.HealthAggregationPolicyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified regional HealthAggregationPolicy resource with the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "regionHealthAggregationPolicies.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy to update. The name - must be 1-63 characters long, and comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.HealthAggregationPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy, com.google.api.services.compute.preview.model.HealthAggregationPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, healthAggregationPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Updates the specified regional HealthAggregationPolicy resource with the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "regionHealthAggregationPolicies.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy to update. The name - must be 1-63 characters long, and comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.HealthAggregationPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthAggregationPolicy, com.google.api.services.compute.preview.model.HealthAggregationPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.healthAggregationPolicy = com.google.api.client.util.Preconditions.checkNotNull(healthAggregationPolicy, "Required parameter healthAggregationPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 HealthAggregationPolicy to update. The name must be 1-63 characters long, and - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String healthAggregationPolicy; - - /** Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply - with RFC1035. - */ - public java.lang.String getHealthAggregationPolicy() { - return healthAggregationPolicy; - } - - /** - * Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and - * comply with RFC1035. - */ - public Patch setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { - this.healthAggregationPolicy = healthAggregationPolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthAggregationPolicies.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthAggregationPolicies.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionHealthCheckServices collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionHealthCheckServices.List request = compute.regionHealthCheckServices().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionHealthCheckServices regionHealthCheckServices() { - return new RegionHealthCheckServices(); - } - - /** - * The "regionHealthCheckServices" collection of methods. - */ - public class RegionHealthCheckServices { - - /** - * Retrieves the list of all HealthCheckService resources, regional and global, available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionHealthCheckServices.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/healthCheckServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all HealthCheckService resources, regional and global, available to the - * specified project. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionHealthCheckServices.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthCheckServiceAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified regional HealthCheckService. - * - * Create a request for the method "regionHealthCheckServices.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { - Delete result = new Delete(project, region, healthCheckService); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Deletes the specified regional HealthCheckService. - * - * Create a request for the method "regionHealthCheckServices.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheckService; - - /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with - RFC1035. - */ - public java.lang.String getHealthCheckService() { - return healthCheckService; - } - - /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - public Delete setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified regional HealthCheckService resource. - * - * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) throws java.io.IOException { - Get result = new Get(project, region, healthCheckService); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 the specified regional HealthCheckService resource. - * - * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String healthCheckService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthCheckService.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.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheckService; - - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. - */ - public java.lang.String getHealthCheckService() { - return healthCheckService; - } - - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - public Get setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a regional HealthCheckService resource in the specified project and region using the data - * included in the request. - * - * Create a request for the method "regionHealthCheckServices.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheckService} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthCheckService content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a regional HealthCheckService resource in the specified project and region using the - * data included in the request. - * - * Create a request for the method "regionHealthCheckServices.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheckService} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthCheckService content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all the HealthCheckService resources that have been configured for the specified project in - * the given region. - * - * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping 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}/healthCheckServices"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all the HealthCheckService resources that have been configured for the specified project - * in the given region. - * - * Create a request for the method "regionHealthCheckServices.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 region Name of the region scoping 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.preview.model.HealthCheckServicesList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified regional HealthCheckService resource with the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionHealthCheckServices.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheckService} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthCheckService, com.google.api.services.compute.preview.model.HealthCheckService content) throws java.io.IOException { - Patch result = new Patch(project, region, healthCheckService, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Updates the specified regional HealthCheckService resource with the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. - * - * Create a request for the method "regionHealthCheckServices.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheckService Name of the HealthCheckService to update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheckService} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthCheckService, com.google.api.services.compute.preview.model.HealthCheckService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.healthCheckService = com.google.api.client.util.Preconditions.checkNotNull(healthCheckService, "Required parameter healthCheckService must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheckService; - - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. - */ - public java.lang.String getHealthCheckService() { - return healthCheckService; - } - - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ - public Patch setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthCheckServices.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthCheckServices.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionHealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionHealthChecks.List request = compute.regionHealthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionHealthChecks regionHealthChecks() { - return new RegionHealthChecks(); - } - - /** - * The "regionHealthChecks" collection of methods. - */ - public class RegionHealthChecks { - - /** - * Deletes the specified HealthCheck resource. - * - * Create a request for the method "regionHealthChecks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException { - Delete result = new Delete(project, region, healthCheck); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified HealthCheck resource. - * - * Create a request for the method "regionHealthChecks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 HealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to delete. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to delete. */ - public Delete setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HealthCheck resource. - * - * Create a request for the method "regionHealthChecks.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 region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String healthCheck) throws java.io.IOException { - Get result = new Get(project, region, healthCheck); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_CHECK_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 HealthCheck resource. - * - * Create a request for the method "regionHealthChecks.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 region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String healthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthCheck.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 HealthCheck resource to return. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to return. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to return. */ - public Get setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a HealthCheck resource in the specified project using the data included in the request. - * - * Create a request for the method "regionHealthChecks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a HealthCheck resource in the specified project using the data included in the request. - * - * Create a request for the method "regionHealthChecks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of HealthCheck resources available to the specified project. - * - * Create a request for the method "regionHealthChecks.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 region Name of the region scoping 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}/healthChecks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of HealthCheck resources available to the specified project. - * - * Create a request for the method "regionHealthChecks.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 region Name of the region scoping 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.preview.model.HealthCheckList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionHealthChecks.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.preview.model.HealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, region, healthCheck, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionHealthChecks.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.preview.model.HealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 HealthCheck resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to patch. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to patch. */ - public Patch setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthChecks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.HealthCheck} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String healthCheck, com.google.api.services.compute.preview.model.HealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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 HealthCheck resource to update. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to update. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to update. */ - public Update setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionHealthSources collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionHealthSources.List request = compute.regionHealthSources().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionHealthSources regionHealthSources() { - return new RegionHealthSources(); - } - - /** - * The "regionHealthSources" collection of methods. - */ - public class RegionHealthSources { - - /** - * Retrieves the list of all HealthSource resources (all regional) available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionHealthSources.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all HealthSource resources (all regional) available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "regionHealthSources.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthSourceAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified HealthSource in the given region - * - * Create a request for the method "regionHealthSources.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { - Delete result = new Delete(project, region, healthSource); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_SOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified HealthSource in the given region - * - * Create a request for the method "regionHealthSources.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String healthSource) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 HealthSource resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String healthSource; - - /** Name of the HealthSource resource to delete. - */ - public java.lang.String getHealthSource() { - return healthSource; - } - - /** Name of the HealthSource resource to delete. */ - public Delete setHealthSource(java.lang.String healthSource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthSource = healthSource; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HealthSource resource in the given region. - * - * Create a request for the method "regionHealthSources.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 region Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { - Get result = new Get(project, region, healthSource); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_SOURCE_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 HealthSource resource in the given region. - * - * Create a request for the method "regionHealthSources.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 region Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String healthSource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthSource.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 HealthSource resource to return. */ - @com.google.api.client.util.Key - private java.lang.String healthSource; - - /** Name of the HealthSource resource to return. - */ - public java.lang.String getHealthSource() { - return healthSource; - } - - /** Name of the HealthSource resource to return. */ - public Get setHealthSource(java.lang.String healthSource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthSource = healthSource; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the most recent health check results for this regional HealthSource. - * - * Create a request for the method "regionHealthSources.getHealth". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @param region Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to get health for. - * @return the request - */ - public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String healthSource) throws java.io.IOException { - GetHealth result = new GetHealth(project, region, healthSource); - initialize(result); - return result; - } - - public class GetHealth extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}/getHealth"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 HEALTH_SOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the most recent health check results for this regional HealthSource. - * - * Create a request for the method "regionHealthSources.getHealth". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

- * {@link - * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Name of the project scoping this request. - * @param region Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to get health for. - * @since 1.13 - */ - protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String healthSource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.HealthSourceHealth.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); - } - - @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); - } - - @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); - } - - @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); - } - - @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); - } - - @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); - } - - @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); - } - - @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); - } - - @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); - } - - @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public GetHealth 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 GetHealth 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 HealthSource resource to get health for. */ - @com.google.api.client.util.Key - private java.lang.String healthSource; - - /** Name of the HealthSource resource to get health for. - */ - public java.lang.String getHealthSource() { - return healthSource; - } - - /** Name of the HealthSource resource to get health for. */ - public GetHealth setHealthSource(java.lang.String healthSource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthSource = healthSource; - return this; - } - - @Override - public GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); - } - } - /** - * Create a HealthSource in the specified project in the given region using the parameters that are - * included in the request. - * - * Create a request for the method "regionHealthSources.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthSource} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthSource content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Create a HealthSource in the specified project in the given region using the parameters that - * are included in the request. - * - * Create a request for the method "regionHealthSources.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.HealthSource} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.HealthSource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the HealthSources for a project in the given region. - * - * Create a request for the method "regionHealthSources.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 region Name of the region scoping 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}/healthSources"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the HealthSources for a project in the given region. - * - * Create a request for the method "regionHealthSources.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 region Name of the region scoping 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.preview.model.HealthSourceList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified regional HealthSource resource with the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionHealthSources.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthSource Name of the HealthSource to update. The name - must be 1-63 characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.HealthSource} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String healthSource, com.google.api.services.compute.preview.model.HealthSource content) throws java.io.IOException { - Patch result = new Patch(project, region, healthSource, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Updates the specified regional HealthSource resource with the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "regionHealthSources.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param healthSource Name of the HealthSource to update. The name - must be 1-63 characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.HealthSource} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String healthSource, com.google.api.services.compute.preview.model.HealthSource content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.healthSource = com.google.api.client.util.Preconditions.checkNotNull(healthSource, "Required parameter healthSource must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 HealthSource to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String healthSource; - - /** Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getHealthSource() { - return healthSource; - } - - /** - * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Patch setHealthSource(java.lang.String healthSource) { - this.healthSource = healthSource; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthSources.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionHealthSources.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstanceGroupManagerResizeRequests collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstanceGroupManagerResizeRequests.List request = compute.regionInstanceGroupManagerResizeRequests().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstanceGroupManagerResizeRequests regionInstanceGroupManagerResizeRequests() { - return new RegionInstanceGroupManagerResizeRequests(); - } - - /** - * The "regionInstanceGroupManagerResizeRequests" collection of methods. - */ - public class RegionInstanceGroupManagerResizeRequests { - - /** - * Cancels the specified resize request. Cancelled resize request no longer waits for the resources - * to be provisioned. Cancel is only possible for requests that are in accepted state. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to cancel. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Cancel cancel(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Cancel result = new Cancel(project, region, instanceGroupManager, resizeRequest); - initialize(result); - return result; - } - - public class Cancel extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Cancels the specified resize request. Cancelled resize request no longer waits for the - * resources to be provisioned. Cancel is only possible for requests that are in accepted state. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to cancel. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Cancel(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) 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 Cancel setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region scoping this request. Name should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ - public Cancel setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource - * ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; - - /** The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } - - /** - * The name of the resize request to cancel. Name should conform to RFC1035 or be a resource - * ID. - */ - public Cancel setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - 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 Cancel setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. - * Deleting request does not delete instances that were provisioned previously. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to delete. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Delete result = new Delete(project, region, instanceGroupManager, resizeRequest); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be - * deleted. Deleting request does not delete instances that were provisioned previously. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to delete. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region scoping this request. Name should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ - public Delete setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request to delete. Name should conform to RFC1035 or be a resource - * ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; - - /** The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } - - /** - * The name of the resize request to delete. Name should conform to RFC1035 or be a resource - * ID. - */ - public Delete setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns all of the details about the specified resize request. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region The name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Get result = new Get(project, region, instanceGroupManager, resizeRequest); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns all of the details about the specified resize request. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region The name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region scoping this request. Name should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ - public Get setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; - - /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } - - /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - public Get setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager Name of the managed instance group to which the resize request is scoped. - Name should conform to - * RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { - Insert result = new Insert(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager Name of the managed instance group to which the resize request is scoped. - Name should conform to - * RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManagerResizeRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. Name should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ - public Insert setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Name of the managed instance group to which the resize request is scoped. Name should - * conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group to which the resize request is scoped. Name should conform to - RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * Name of the managed instance group to which the resize request is scoped. Name should - * conform to RFC1035 or be a resource ID. - */ - public Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of Resize Requests that are contained in the managed instance group. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region Name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. - * @return the request - */ - public List list(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - List result = new List(project, region, instanceGroupManager); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves a list of Resize Requests that are contained in the managed instance group. - * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.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 region Name of the region - scoping this request. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerResizeRequestsListResponse.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. Name should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ - public List setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group. The name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. The name should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. The name should conform to RFC1035. */ - public List setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstanceGroupManagers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstanceGroupManagers.List request = compute.regionInstanceGroupManagers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstanceGroupManagers regionInstanceGroupManagers() { - return new RegionInstanceGroupManagers(); - } - - /** - * The "regionInstanceGroupManagers" collection of methods. - */ - public class RegionInstanceGroupManagers { - - /** - * Flags the specified instances to be immediately removed from the managed instance group. - * Abandoning an instance does not delete the instance, but it does remove the instance from any - * target pools that are applied by the managed instance group. This method reduces thetargetSize of - * the managed instance group by the number of instances that you abandon. This operation is marked - * asDONE when the action is scheduled even if the instances have not yet been removed from the - * group. You must separately verify the status of the abandoning action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.abandonInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersAbandonInstancesRequest} - * @return the request - */ - public AbandonInstances abandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException { - AbandonInstances result = new AbandonInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class AbandonInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances to be immediately removed from the managed instance group. - * Abandoning an instance does not delete the instance, but it does remove the instance from any - * target pools that are applied by the managed instance group. This method reduces thetargetSize - * of the managed instance group by the number of instances that you abandon. This operation is - * marked asDONE when the action is scheduled even if the instances have not yet been removed from - * the group. You must separately verify the status of the abandoning action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.abandonInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. - *

{@link AbandonInstances#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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersAbandonInstancesRequest} - * @since 1.13 - */ - protected AbandonInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersAbandonInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); - } - - @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); - } - - @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); - } - - @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); - } - - @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); - } - - @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); - } - - @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); - } - - @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); - } - - @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); - } - - @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) 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 AbandonInstances 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 AbandonInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 AbandonInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); - } - } - /** - * Apply updates to selected instances the managed instance group. - * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersApplyUpdatesRequest} - * @return the request - */ - public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { - ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class ApplyUpdatesToInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Apply updates to selected instances the managed instance group. - * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation.

{@link ApplyUpdatesToInstances#initialize(com.google.api.client.googleapis.servi - * ces.AbstractGoogleClientRequest)} 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersApplyUpdatesRequest} - * @since 1.13 - */ - protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersApplyUpdatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { - return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { - return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); - } - - @Override - public ApplyUpdatesToInstances setAlt(java.lang.String alt) { - return (ApplyUpdatesToInstances) super.setAlt(alt); - } - - @Override - public ApplyUpdatesToInstances setCallback(java.lang.String callback) { - return (ApplyUpdatesToInstances) super.setCallback(callback); - } - - @Override - public ApplyUpdatesToInstances setFields(java.lang.String fields) { - return (ApplyUpdatesToInstances) super.setFields(fields); - } - - @Override - public ApplyUpdatesToInstances setKey(java.lang.String key) { - return (ApplyUpdatesToInstances) super.setKey(key); - } - - @Override - public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { - return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); - } - - @Override - public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { - return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { - return (ApplyUpdatesToInstances) super.setUploadType(uploadType); - } - - @Override - public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { - return (ApplyUpdatesToInstances) 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 ApplyUpdatesToInstances 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, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request, should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request, should conform to RFC1035. */ - public ApplyUpdatesToInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group, should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group, should conform to RFC1035. */ - public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public ApplyUpdatesToInstances set(String parameterName, Object value) { - return (ApplyUpdatesToInstances) super.set(parameterName, value); - } - } - /** - * Creates instances with per-instance configurations in this regional managed instance group. - * Instances are created using the current instance template. The create instances operation is - * marked DONE if the createInstances request is successful. The underlying actions take additional - * time. You must separately verify the status of thecreating or actions with the - * listmanagedinstances method. - * - * Create a request for the method "regionInstanceGroupManagers.createInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of theregion - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersCreateInstancesRequest} - * @return the request - */ - public CreateInstances createInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { - CreateInstances result = new CreateInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class CreateInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates instances with per-instance configurations in this regional managed instance group. - * Instances are created using the current instance template. The create instances operation is - * marked DONE if the createInstances request is successful. The underlying actions take - * additional time. You must separately verify the status of thecreating or actions with the - * listmanagedinstances method. - * - * Create a request for the method "regionInstanceGroupManagers.createInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. - *

{@link CreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param region The name of theregion - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersCreateInstancesRequest} - * @since 1.13 - */ - protected CreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersCreateInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); - } - - @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); - } - - @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); - } - - @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); - } - - @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); - } - - @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); - } - - @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); - } - - @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); - } - - @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); - } - - @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) 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 CreateInstances 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 theregion where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of theregion where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. - */ - public CreateInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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. - * - * 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. - - 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. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public CreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); - } - } - /** - * Deletes the specified managed instance group and all of the instances in that group. - * - * Create a request for the method "regionInstanceGroupManagers.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - Delete result = new Delete(project, region, instanceGroupManager); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified managed instance group and all of the instances in that group. - * - * Create a request for the method "regionInstanceGroupManagers.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group to delete. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group to delete. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be immediately deleted. The - * instances are also removed from any target pools of which they were a member. This method reduces - * thetargetSize of the managed instance group by the number of instances that you delete. The - * deleteInstances operation is marked DONE if the deleteInstances request is successful. The - * underlying actions take additional time. You must separately verify the status of thedeleting - * action with thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersDeleteInstancesRequest} - * @return the request - */ - public DeleteInstances deleteInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException { - DeleteInstances result = new DeleteInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class DeleteInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be immediately deleted. The - * instances are also removed from any target pools of which they were a member. This method - * reduces thetargetSize of the managed instance group by the number of instances that you delete. - * The deleteInstances operation is marked DONE if the deleteInstances request is successful. The - * underlying actions take additional time. You must separately verify the status of thedeleting - * action with thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. - *

{@link DeleteInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersDeleteInstancesRequest} - * @since 1.13 - */ - protected DeleteInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersDeleteInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); - } - - @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); - } - - @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); - } - - @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); - } - - @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); - } - - @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); - } - - @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); - } - - @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) 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 DeleteInstances 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 DeleteInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. - */ - public DeleteInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 DeleteInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); - } - } - /** - * Deletes selected per-instance configurations for the managed instance group. - * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagerDeleteInstanceConfigReq} - * @return the request - */ - public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerDeleteInstanceConfigReq content) throws java.io.IOException { - DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class DeletePerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes selected per-instance configurations for the managed instance group. - * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link DeletePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagerDeleteInstanceConfigReq} - * @since 1.13 - */ - protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerDeleteInstanceConfigReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); - } - - @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); - } - - @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); - } - - @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); - } - - @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) 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 DeletePerInstanceConfigs 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, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request, should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request, should conform to RFC1035. */ - public DeletePerInstanceConfigs setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group. It should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. It should conform to RFC1035. */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); - } - } - /** - * Returns all of the details about the specified managed instance group. - * - * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - Get result = new Get(project, region, instanceGroupManager); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns all of the details about the specified managed instance group. - * - * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroupManager.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 Get setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group to return. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group to return. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group to return. */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a managed instance group using the information that you specify in the request. After the - * group is created, instances in the group are created using the specified instance template. This - * operation is marked as DONE when the group is created even if the instances in the group have not - * yet been created. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * A regional managed instance group can contain up to 2000 instances. - * - * Create a request for the method "regionInstanceGroupManagers.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstanceGroupManager content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a managed instance group using the information that you specify in the request. After - * the group is created, instances in the group are created using the specified instance template. - * This operation is marked as DONE when the group is created even if the instances in the group - * have not yet been created. You must separately verify the status of the individual instances - * with thelistmanagedinstances method. - * - * A regional managed instance group can contain up to 2000 instances. - * - * Create a request for the method "regionInstanceGroupManagers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstanceGroupManager content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert setRegion(java.lang.String region) { - this.region = region; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of managed instance groups that are contained within the specified region. - * - * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping 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}/instanceGroupManagers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of managed instance groups that are contained within the specified region. - * - * Create a request for the method "regionInstanceGroupManagers.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 region Name of the region scoping 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.preview.model.RegionInstanceGroupManagerList.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 List setRegion(java.lang.String region) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists all errors thrown by actions on instances for a given regional managed instance group. The - * filter andorderBy query parameters are not supported. - * - * Create a request for the method "regionInstanceGroupManagers.listErrors". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - This should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - * @return the request - */ - public ListErrors listErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - ListErrors result = new ListErrors(project, region, instanceGroupManager); - initialize(result); - return result; - } - - public class ListErrors extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all errors thrown by actions on instances for a given regional managed instance group. - * The filter andorderBy query parameters are not supported. - * - * Create a request for the method "regionInstanceGroupManagers.listErrors". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

- * {@link - * ListErrors#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - This should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - * @since 1.13 - */ - protected ListErrors(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersListErrorsResponse.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); - } - - @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); - } - - @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); - } - - @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); - } - - @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); - } - - @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); - } - - @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); - } - - @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); - } - - @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); - } - - @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) 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 ListErrors 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. This should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. This should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Name of the region scoping this request. This should conform to RFC1035. - */ - public ListErrors setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035, or an unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035, - or an unsigned long integer: must match regexp pattern: - (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035, or an unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ - public ListErrors setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ListErrors 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 ListErrors 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 ListErrors 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 ListErrors setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListErrors set(String parameterName, Object value) { - return (ListErrors) super.set(parameterName, value); - } - } - /** - * Lists the instances in the managed instance group and instances that are scheduled to be created. - * The list includes any current actions that the group has scheduled for its instances. The orderBy - * query parameter is not supported. The `pageToken` query parameter is supported only if the - * group's `listManagedInstancesResults` field is set to `PAGINATED`. - * - * Create a request for the method "regionInstanceGroupManagers.listManagedInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the managed instance group. - * @return the request - */ - public ListManagedInstances listManagedInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - ListManagedInstances result = new ListManagedInstances(project, region, instanceGroupManager); - initialize(result); - return result; - } - - public class ListManagedInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the instances in the managed instance group and instances that are scheduled to be - * created. The list includes any current actions that the group has scheduled for its instances. - * The orderBy query parameter is not supported. The `pageToken` query parameter is supported - * only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. - * - * Create a request for the method "regionInstanceGroupManagers.listManagedInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote - * operation.

{@link ListManagedInstances#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the managed instance group. - * @since 1.13 - */ - protected ListManagedInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersListInstancesResponse.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListManagedInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ListManagedInstances setAccessToken(java.lang.String accessToken) { - return (ListManagedInstances) super.setAccessToken(accessToken); - } - - @Override - public ListManagedInstances setAlt(java.lang.String alt) { - return (ListManagedInstances) super.setAlt(alt); - } - - @Override - public ListManagedInstances setCallback(java.lang.String callback) { - return (ListManagedInstances) super.setCallback(callback); - } - - @Override - public ListManagedInstances setFields(java.lang.String fields) { - return (ListManagedInstances) super.setFields(fields); - } - - @Override - public ListManagedInstances setKey(java.lang.String key) { - return (ListManagedInstances) super.setKey(key); - } - - @Override - public ListManagedInstances setOauthToken(java.lang.String oauthToken) { - return (ListManagedInstances) super.setOauthToken(oauthToken); - } - - @Override - public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListManagedInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { - return (ListManagedInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ListManagedInstances setUploadType(java.lang.String uploadType) { - return (ListManagedInstances) super.setUploadType(uploadType); - } - - @Override - public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListManagedInstances setUserIp(java.lang.String userIp) { - return (ListManagedInstances) 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 ListManagedInstances 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 ListManagedInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListManagedInstances set(String parameterName, Object value) { - return (ListManagedInstances) super.set(parameterName, value); - } - } - /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy - * query parameter is not supported. - * - * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @return the request - */ - public ListPerInstanceConfigs listPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) throws java.io.IOException { - ListPerInstanceConfigs result = new ListPerInstanceConfigs(project, region, instanceGroupManager); - initialize(result); - return result; - } - - public class ListPerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all of the per-instance configurations defined for the managed instance group. The - * orderBy query parameter is not supported. - * - * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link ListPerInstanceConfigs#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @since 1.13 - */ - protected ListPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersListInstanceConfigsResp.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (ListPerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public ListPerInstanceConfigs setAlt(java.lang.String alt) { - return (ListPerInstanceConfigs) super.setAlt(alt); - } - - @Override - public ListPerInstanceConfigs setCallback(java.lang.String callback) { - return (ListPerInstanceConfigs) super.setCallback(callback); - } - - @Override - public ListPerInstanceConfigs setFields(java.lang.String fields) { - return (ListPerInstanceConfigs) super.setFields(fields); - } - - @Override - public ListPerInstanceConfigs setKey(java.lang.String key) { - return (ListPerInstanceConfigs) super.setKey(key); - } - - @Override - public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (ListPerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (ListPerInstanceConfigs) 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 ListPerInstanceConfigs 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, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request, should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request, should conform to RFC1035. */ - public ListPerInstanceConfigs setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group. It should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. It should conform to RFC1035. */ - public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListPerInstanceConfigs set(String parameterName, Object value) { - return (ListPerInstanceConfigs) super.set(parameterName, value); - } - } - /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is patched even if the instances in the group are - * still in the process of being patched. You must separately verify the status of the individual - * instances with the listmanagedinstances method. This method supportsPATCH semantics and uses - * theJSON merge patch format and processing rules. - * - * If you update your group to specify a new template or instance configuration, it's possible that - * your intended specification for each VM in the group is different from the current state of that - * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in - * a MIG. - * - * Create a request for the method "regionInstanceGroupManagers.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManager content) throws java.io.IOException { - Patch result = new Patch(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is patched even if the instances in the group are - * still in the process of being patched. You must separately verify the status of the individual - * instances with the listmanagedinstances method. This method supportsPATCH semantics and uses - * theJSON merge patch format and processing rules. - * - * If you update your group to specify a new template or instance configuration, it's possible - * that your intended specification for each VM in the group is different from the current state - * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating - * instances in a MIG. - * - * Create a request for the method "regionInstanceGroupManagers.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceGroupManager} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.InstanceGroupManager content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the instance group manager. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the instance group manager. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the instance group manager. */ - public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Inserts or patches per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagerPatchInstanceConfigReq} - * @return the request - */ - public PatchPerInstanceConfigs patchPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerPatchInstanceConfigReq content) throws java.io.IOException { - PatchPerInstanceConfigs result = new PatchPerInstanceConfigs(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class PatchPerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Inserts or patches per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link PatchPerInstanceConfigs#initialize(com.google.api.client.googleapis.servi - * ces.AbstractGoogleClientRequest)} 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagerPatchInstanceConfigReq} - * @since 1.13 - */ - protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerPatchInstanceConfigReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public PatchPerInstanceConfigs setAlt(java.lang.String alt) { - return (PatchPerInstanceConfigs) super.setAlt(alt); - } - - @Override - public PatchPerInstanceConfigs setCallback(java.lang.String callback) { - return (PatchPerInstanceConfigs) super.setCallback(callback); - } - - @Override - public PatchPerInstanceConfigs setFields(java.lang.String fields) { - return (PatchPerInstanceConfigs) super.setFields(fields); - } - - @Override - public PatchPerInstanceConfigs setKey(java.lang.String key) { - return (PatchPerInstanceConfigs) super.setKey(key); - } - - @Override - public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (PatchPerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (PatchPerInstanceConfigs) 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 PatchPerInstanceConfigs 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, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request, should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request, should conform to RFC1035. */ - public PatchPerInstanceConfigs setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 PatchPerInstanceConfigs setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchPerInstanceConfigs set(String parameterName, Object value) { - return (PatchPerInstanceConfigs) super.set(parameterName, value); - } - } - /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. Each - * instance is recreated using the group's current configuration. This operation is marked as DONE - * when the flag is set even if the instances have not yet been recreated. You must separately - * verify the status of each instance by checking itscurrentAction field; for more information, see - * Checking the status of managed instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.recreateInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersRecreateRequest} - * @return the request - */ - public RecreateInstances recreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersRecreateRequest content) throws java.io.IOException { - RecreateInstances result = new RecreateInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class RecreateInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. - * Each instance is recreated using the group's current configuration. This operation is marked as - * DONE when the flag is set even if the instances have not yet been recreated. You must - * separately verify the status of each instance by checking itscurrentAction field; for more - * information, see Checking the status of managed instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.recreateInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. - *

{@link RecreateInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersRecreateRequest} - * @since 1.13 - */ - protected RecreateInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersRecreateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (RecreateInstances) super.set$Xgafv($Xgafv); - } - - @Override - public RecreateInstances setAccessToken(java.lang.String accessToken) { - return (RecreateInstances) super.setAccessToken(accessToken); - } - - @Override - public RecreateInstances setAlt(java.lang.String alt) { - return (RecreateInstances) super.setAlt(alt); - } - - @Override - public RecreateInstances setCallback(java.lang.String callback) { - return (RecreateInstances) super.setCallback(callback); - } - - @Override - public RecreateInstances setFields(java.lang.String fields) { - return (RecreateInstances) super.setFields(fields); - } - - @Override - public RecreateInstances setKey(java.lang.String key) { - return (RecreateInstances) super.setKey(key); - } - - @Override - public RecreateInstances setOauthToken(java.lang.String oauthToken) { - return (RecreateInstances) super.setOauthToken(oauthToken); - } - - @Override - public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RecreateInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public RecreateInstances setQuotaUser(java.lang.String quotaUser) { - return (RecreateInstances) super.setQuotaUser(quotaUser); - } - - @Override - public RecreateInstances setUploadType(java.lang.String uploadType) { - return (RecreateInstances) super.setUploadType(uploadType); - } - - @Override - public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RecreateInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RecreateInstances setUserIp(java.lang.String userIp) { - return (RecreateInstances) 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 RecreateInstances 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 RecreateInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance recreation even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance recreation even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance recreation even if it's configured for - * the instances. - */ - public RecreateInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance recreation even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 RecreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RecreateInstances set(String parameterName, Object value) { - return (RecreateInstances) super.set(parameterName, value); - } - } - /** - * Changes the intended size of the managed instance group. If you increase the size, the group - * creates new instances using the current instance template. If you decrease the size, the group - * deletes one or more instances. - * - * The resize operation is marked DONE if theresize request is successful. The underlying actions - * take additional time. You must separately verify the status of thecreating or deleting actions - * with thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * Create a request for the method "regionInstanceGroupManagers.resize". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param size Number of instances that should exist in this instance group - manager. - [minimum: 0] - * @return the request - */ - public Resize resize(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.Integer size) throws java.io.IOException { - Resize result = new Resize(project, region, instanceGroupManager, size); - initialize(result); - return result; - } - - public class Resize extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Changes the intended size of the managed instance group. If you increase the size, the group - * creates new instances using the current instance template. If you decrease the size, the group - * deletes one or more instances. - * - * The resize operation is marked DONE if theresize request is successful. The underlying actions - * take additional time. You must separately verify the status of thecreating or deleting actions - * with thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * Create a request for the method "regionInstanceGroupManagers.resize". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link - * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param size Number of instances that should exist in this instance group - manager. - [minimum: 0] - * @since 1.13 - */ - protected Resize(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, java.lang.Integer size) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); - } - - @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); - } - - @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); - } - - @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); - } - - @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); - } - - @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); - } - - @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); - } - - @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); - } - - @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); - } - - @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) 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 Resize 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 Resize setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * Number of instances that should exist in this instance group manager. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** Number of instances that should exist in this instance group manager. - - [minimum: 0] - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * Number of instances that should exist in this instance group manager. - */ - public Resize setSize(java.lang.Integer size) { - this.size = size; - 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 Resize setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be resumed. This method increases - * thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number - * of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances - * request is successful. The underlying actions take additional time. You must separately verify - * the status of theRESUMING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are suspended. For example, if an instance - * was previously suspended using the suspendInstances method, it can be resumed using the - * resumeInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are resumed. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.resumeInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersResumeInstancesRequest} - * @return the request - */ - public ResumeInstances resumeInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersResumeInstancesRequest content) throws java.io.IOException { - ResumeInstances result = new ResumeInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class ResumeInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be resumed. This method - * increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by - * the number of instances that you resume. The resumeInstances operation is marked DONE if the - * resumeInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of theRESUMING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are suspended. For example, if an instance - * was previously suspended using the suspendInstances method, it can be resumed using the - * resumeInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are resumed. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.resumeInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. - *

{@link ResumeInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersResumeInstancesRequest} - * @since 1.13 - */ - protected ResumeInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersResumeInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { - return (ResumeInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ResumeInstances setAccessToken(java.lang.String accessToken) { - return (ResumeInstances) super.setAccessToken(accessToken); - } - - @Override - public ResumeInstances setAlt(java.lang.String alt) { - return (ResumeInstances) super.setAlt(alt); - } - - @Override - public ResumeInstances setCallback(java.lang.String callback) { - return (ResumeInstances) super.setCallback(callback); - } - - @Override - public ResumeInstances setFields(java.lang.String fields) { - return (ResumeInstances) super.setFields(fields); - } - - @Override - public ResumeInstances setKey(java.lang.String key) { - return (ResumeInstances) super.setKey(key); - } - - @Override - public ResumeInstances setOauthToken(java.lang.String oauthToken) { - return (ResumeInstances) super.setOauthToken(oauthToken); - } - - @Override - public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResumeInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ResumeInstances setQuotaUser(java.lang.String quotaUser) { - return (ResumeInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ResumeInstances setUploadType(java.lang.String uploadType) { - return (ResumeInstances) super.setUploadType(uploadType); - } - - @Override - public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ResumeInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ResumeInstances setUserIp(java.lang.String userIp) { - return (ResumeInstances) 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 ResumeInstances 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 ResumeInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 ResumeInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public ResumeInstances set(String parameterName, Object value) { - return (ResumeInstances) super.set(parameterName, value); - } - } - /** - * Sets the instance template to use when creating new instances or recreating instances in this - * group. Existing instances are not affected. - * - * Create a request for the method "regionInstanceGroupManagers.setInstanceTemplate". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTemplateRequest} - * @return the request - */ - public SetInstanceTemplate setInstanceTemplate(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTemplateRequest content) throws java.io.IOException { - SetInstanceTemplate result = new SetInstanceTemplate(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class SetInstanceTemplate extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the instance template to use when creating new instances or recreating instances in this - * group. Existing instances are not affected. - * - * Create a request for the method "regionInstanceGroupManagers.setInstanceTemplate". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote - * operation.

{@link SetInstanceTemplate#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTemplateRequest} - * @since 1.13 - */ - protected SetInstanceTemplate(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTemplateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetInstanceTemplate) super.set$Xgafv($Xgafv); - } - - @Override - public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { - return (SetInstanceTemplate) super.setAccessToken(accessToken); - } - - @Override - public SetInstanceTemplate setAlt(java.lang.String alt) { - return (SetInstanceTemplate) super.setAlt(alt); - } - - @Override - public SetInstanceTemplate setCallback(java.lang.String callback) { - return (SetInstanceTemplate) super.setCallback(callback); - } - - @Override - public SetInstanceTemplate setFields(java.lang.String fields) { - return (SetInstanceTemplate) super.setFields(fields); - } - - @Override - public SetInstanceTemplate setKey(java.lang.String key) { - return (SetInstanceTemplate) super.setKey(key); - } - - @Override - public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { - return (SetInstanceTemplate) super.setOauthToken(oauthToken); - } - - @Override - public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetInstanceTemplate) super.setQuotaUser(quotaUser); - } - - @Override - public SetInstanceTemplate setUploadType(java.lang.String uploadType) { - return (SetInstanceTemplate) super.setUploadType(uploadType); - } - - @Override - public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetInstanceTemplate setUserIp(java.lang.String userIp) { - return (SetInstanceTemplate) 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 SetInstanceTemplate 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 SetInstanceTemplate setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 SetInstanceTemplate setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetInstanceTemplate set(String parameterName, Object value) { - return (SetInstanceTemplate) super.set(parameterName, value); - } - } - /** - * Modifies the target pools to which all new instances in this group are assigned. Existing - * instances in the group are not affected. - * - * Create a request for the method "regionInstanceGroupManagers.setTargetPools". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTargetPoolsRequest} - * @return the request - */ - public SetTargetPools setTargetPools(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTargetPoolsRequest content) throws java.io.IOException { - SetTargetPools result = new SetTargetPools(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class SetTargetPools extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Modifies the target pools to which all new instances in this group are assigned. Existing - * instances in the group are not affected. - * - * Create a request for the method "regionInstanceGroupManagers.setTargetPools". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. - *

{@link SetTargetPools#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTargetPoolsRequest} - * @since 1.13 - */ - protected SetTargetPools(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSetTargetPoolsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { - return (SetTargetPools) super.set$Xgafv($Xgafv); - } - - @Override - public SetTargetPools setAccessToken(java.lang.String accessToken) { - return (SetTargetPools) super.setAccessToken(accessToken); - } - - @Override - public SetTargetPools setAlt(java.lang.String alt) { - return (SetTargetPools) super.setAlt(alt); - } - - @Override - public SetTargetPools setCallback(java.lang.String callback) { - return (SetTargetPools) super.setCallback(callback); - } - - @Override - public SetTargetPools setFields(java.lang.String fields) { - return (SetTargetPools) super.setFields(fields); - } - - @Override - public SetTargetPools setKey(java.lang.String key) { - return (SetTargetPools) super.setKey(key); - } - - @Override - public SetTargetPools setOauthToken(java.lang.String oauthToken) { - return (SetTargetPools) super.setOauthToken(oauthToken); - } - - @Override - public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTargetPools) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTargetPools setQuotaUser(java.lang.String quotaUser) { - return (SetTargetPools) super.setQuotaUser(quotaUser); - } - - @Override - public SetTargetPools setUploadType(java.lang.String uploadType) { - return (SetTargetPools) super.setUploadType(uploadType); - } - - @Override - public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTargetPools) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTargetPools setUserIp(java.lang.String userIp) { - return (SetTargetPools) 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 SetTargetPools 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 SetTargetPools setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public SetTargetPools setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 SetTargetPools setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetTargetPools set(String parameterName, Object value) { - return (SetTargetPools) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be started. This method increases - * thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of - * instances that you start. The startInstances operation is marked DONE if the startInstances - * request is successful. The underlying actions take additional time. You must separately verify - * the status of theSTARTING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are stopped. For example, if an instance was - * previously stopped using the stopInstances method, it can be started using the startInstances - * method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are started. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.startInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStartInstancesRequest} - * @return the request - */ - public StartInstances startInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStartInstancesRequest content) throws java.io.IOException { - StartInstances result = new StartInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class StartInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be started. This method - * increases thetargetSize and decreases the targetStoppedSize of the managed instance group by - * the number of instances that you start. The startInstances operation is marked DONE if the - * startInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of theSTARTING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are stopped. For example, if an instance - * was previously stopped using the stopInstances method, it can be started using the - * startInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are started. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.startInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. - *

{@link StartInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStartInstancesRequest} - * @since 1.13 - */ - protected StartInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStartInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StartInstances set$Xgafv(java.lang.String $Xgafv) { - return (StartInstances) super.set$Xgafv($Xgafv); - } - - @Override - public StartInstances setAccessToken(java.lang.String accessToken) { - return (StartInstances) super.setAccessToken(accessToken); - } - - @Override - public StartInstances setAlt(java.lang.String alt) { - return (StartInstances) super.setAlt(alt); - } - - @Override - public StartInstances setCallback(java.lang.String callback) { - return (StartInstances) super.setCallback(callback); - } - - @Override - public StartInstances setFields(java.lang.String fields) { - return (StartInstances) super.setFields(fields); - } - - @Override - public StartInstances setKey(java.lang.String key) { - return (StartInstances) super.setKey(key); - } - - @Override - public StartInstances setOauthToken(java.lang.String oauthToken) { - return (StartInstances) super.setOauthToken(oauthToken); - } - - @Override - public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public StartInstances setQuotaUser(java.lang.String quotaUser) { - return (StartInstances) super.setQuotaUser(quotaUser); - } - - @Override - public StartInstances setUploadType(java.lang.String uploadType) { - return (StartInstances) super.setUploadType(uploadType); - } - - @Override - public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StartInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StartInstances setUserIp(java.lang.String userIp) { - return (StartInstances) 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 StartInstances 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 StartInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 StartInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StartInstances set(String parameterName, Object value) { - return (StartInstances) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetStoppedSize of the managed instance group by the number of instances that you - * stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The - * underlying actions take additional time. You must separately verify the status of theSTOPPING - * action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until - * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was - * created). This delay gives your application time to set itself up and initialize on the instance. - * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method - * is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. - * - * Stopped instances can be started using the startInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.stopInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStopInstancesRequest} - * @return the request - */ - public StopInstances stopInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStopInstancesRequest content) throws java.io.IOException { - StopInstances result = new StopInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class StopInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetStoppedSize of the managed instance group by the number of instances that - * you stop. The stopInstances operation is marked DONE if the stopInstances request is - * successful. The underlying actions take additional time. You must separately verify the status - * of theSTOPPING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance - * was created). This delay gives your application time to set itself up and initialize on the - * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when - * this method is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * stopped. - * - * Stopped instances can be started using the startInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.stopInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation.

- * {@link StopInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStopInstancesRequest} - * @since 1.13 - */ - protected StopInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersStopInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public StopInstances set$Xgafv(java.lang.String $Xgafv) { - return (StopInstances) super.set$Xgafv($Xgafv); - } - - @Override - public StopInstances setAccessToken(java.lang.String accessToken) { - return (StopInstances) super.setAccessToken(accessToken); - } - - @Override - public StopInstances setAlt(java.lang.String alt) { - return (StopInstances) super.setAlt(alt); - } - - @Override - public StopInstances setCallback(java.lang.String callback) { - return (StopInstances) super.setCallback(callback); - } - - @Override - public StopInstances setFields(java.lang.String fields) { - return (StopInstances) super.setFields(fields); - } - - @Override - public StopInstances setKey(java.lang.String key) { - return (StopInstances) super.setKey(key); - } - - @Override - public StopInstances setOauthToken(java.lang.String oauthToken) { - return (StopInstances) super.setOauthToken(oauthToken); - } - - @Override - public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public StopInstances setQuotaUser(java.lang.String quotaUser) { - return (StopInstances) super.setQuotaUser(quotaUser); - } - - @Override - public StopInstances setUploadType(java.lang.String uploadType) { - return (StopInstances) super.setUploadType(uploadType); - } - - @Override - public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StopInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public StopInstances setUserIp(java.lang.String userIp) { - return (StopInstances) 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 StopInstances 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 StopInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public StopInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance stopping even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance stopping even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance stopping even if it's configured for - * the instances. - */ - public StopInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance stopping even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * 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 StopInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public StopInstances set(String parameterName, Object value) { - return (StopInstances) super.set(parameterName, value); - } - } - /** - * Flags the specified instances in the managed instance group to be immediately suspended. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetSuspendedSize of the managed instance group by the number of instances that - * you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is - * successful. The underlying actions take additional time. You must separately verify the status of - * theSUSPENDING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was - * created). This delay gives your application time to set itself up and initialize on the instance. - * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method - * is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.suspendInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSuspendInstancesRequest} - * @return the request - */ - public SuspendInstances suspendInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSuspendInstancesRequest content) throws java.io.IOException { - SuspendInstances result = new SuspendInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class SuspendInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Flags the specified instances in the managed instance group to be immediately suspended. You - * can only specify instances that are running in this request. This method reduces thetargetSize - * and increases the targetSuspendedSize of the managed instance group by the number of instances - * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request - * is successful. The underlying actions take additional time. You must separately verify the - * status of theSUSPENDING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance - * was created). This delay gives your application time to set itself up and initialize on the - * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when - * this method is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.suspendInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. - *

{@link SuspendInstances#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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSuspendInstancesRequest} - * @since 1.13 - */ - protected SuspendInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagersSuspendInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { - return (SuspendInstances) super.set$Xgafv($Xgafv); - } - - @Override - public SuspendInstances setAccessToken(java.lang.String accessToken) { - return (SuspendInstances) super.setAccessToken(accessToken); - } - - @Override - public SuspendInstances setAlt(java.lang.String alt) { - return (SuspendInstances) super.setAlt(alt); - } - - @Override - public SuspendInstances setCallback(java.lang.String callback) { - return (SuspendInstances) super.setCallback(callback); - } - - @Override - public SuspendInstances setFields(java.lang.String fields) { - return (SuspendInstances) super.setFields(fields); - } - - @Override - public SuspendInstances setKey(java.lang.String key) { - return (SuspendInstances) super.setKey(key); - } - - @Override - public SuspendInstances setOauthToken(java.lang.String oauthToken) { - return (SuspendInstances) super.setOauthToken(oauthToken); - } - - @Override - public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SuspendInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public SuspendInstances setQuotaUser(java.lang.String quotaUser) { - return (SuspendInstances) super.setQuotaUser(quotaUser); - } - - @Override - public SuspendInstances setUploadType(java.lang.String uploadType) { - return (SuspendInstances) super.setUploadType(uploadType); - } - - @Override - public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (SuspendInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SuspendInstances setUserIp(java.lang.String userIp) { - return (SuspendInstances) 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 SuspendInstances 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 SuspendInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** Name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** Name of the managed instance group. */ - public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 SuspendInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SuspendInstances set(String parameterName, Object value) { - return (SuspendInstances) super.set(parameterName, value); - } - } - /** - * Inserts or updates per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagerUpdateInstanceConfigReq} - * @return the request - */ - public UpdatePerInstanceConfigs updatePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerUpdateInstanceConfigReq content) throws java.io.IOException { - UpdatePerInstanceConfigs result = new UpdatePerInstanceConfigs(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class UpdatePerInstanceConfigs extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Inserts or updates per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. - * - * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation.

{@link UpdatePerInstanceConfigs#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupManagerUpdateInstanceConfigReq} - * @since 1.13 - */ - protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.preview.model.RegionInstanceGroupManagerUpdateInstanceConfigReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); - } - - @Override - public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); - } - - @Override - public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { - return (UpdatePerInstanceConfigs) super.setAlt(alt); - } - - @Override - public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { - return (UpdatePerInstanceConfigs) super.setCallback(callback); - } - - @Override - public UpdatePerInstanceConfigs setFields(java.lang.String fields) { - return (UpdatePerInstanceConfigs) super.setFields(fields); - } - - @Override - public UpdatePerInstanceConfigs setKey(java.lang.String key) { - return (UpdatePerInstanceConfigs) super.setKey(key); - } - - @Override - public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); - } - - @Override - public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); - } - - @Override - public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); - } - - @Override - public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (UpdatePerInstanceConfigs) 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 UpdatePerInstanceConfigs 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, should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request, should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request, should conform to RFC1035. */ - public UpdatePerInstanceConfigs setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - 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 UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdatePerInstanceConfigs set(String parameterName, Object value) { - return (UpdatePerInstanceConfigs) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstanceGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstanceGroups.List request = compute.regionInstanceGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstanceGroups regionInstanceGroups() { - return new RegionInstanceGroups(); - } - - /** - * The "regionInstanceGroups" collection of methods. - */ - public class RegionInstanceGroups { - - /** - * Returns the specified instance group resource. - * - * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping this request. - * @param instanceGroup Name of the instance group resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceGroup) throws java.io.IOException { - Get result = new Get(project, region, instanceGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified instance group resource. - * - * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping this request. - * @param instanceGroup Name of the instance group resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceGroup.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."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 Get setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** Name of the instance group resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** Name of the instance group resource to return. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** Name of the instance group resource to return. */ - public Get setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of instance group resources contained within the specified region. - * - * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping 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}/instanceGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of instance group resources contained within the specified region. - * - * Create a request for the method "regionInstanceGroups.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 region Name of the region scoping 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.preview.model.RegionInstanceGroupList.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 List setRegion(java.lang.String region) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the instances in the specified instance group and displays information about the named - * ports. Depending on the specified options, this method can list all instances or only the - * instances that are running. The orderBy query parameter is not supported. - * - * Create a request for the method "regionInstanceGroups.listInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroup Name of the regional instance group for which we want to list the - instances. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupsListInstancesRequest} - * @return the request - */ - public ListInstances listInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.RegionInstanceGroupsListInstancesRequest content) throws java.io.IOException { - ListInstances result = new ListInstances(project, region, instanceGroup, content); - initialize(result); - return result; - } - - public class ListInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the instances in the specified instance group and displays information about the named - * ports. Depending on the specified options, this method can list all instances or only the - * instances that are running. The orderBy query parameter is not supported. - * - * Create a request for the method "regionInstanceGroups.listInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation.

- * {@link ListInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 instanceGroup Name of the regional instance group for which we want to list the - instances. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupsListInstancesRequest} - * @since 1.13 - */ - protected ListInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.RegionInstanceGroupsListInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.RegionInstanceGroupsListInstances.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."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListInstances) super.set$Xgafv($Xgafv); - } - - @Override - public ListInstances setAccessToken(java.lang.String accessToken) { - return (ListInstances) super.setAccessToken(accessToken); - } - - @Override - public ListInstances setAlt(java.lang.String alt) { - return (ListInstances) super.setAlt(alt); - } - - @Override - public ListInstances setCallback(java.lang.String callback) { - return (ListInstances) super.setCallback(callback); - } - - @Override - public ListInstances setFields(java.lang.String fields) { - return (ListInstances) super.setFields(fields); - } - - @Override - public ListInstances setKey(java.lang.String key) { - return (ListInstances) super.setKey(key); - } - - @Override - public ListInstances setOauthToken(java.lang.String oauthToken) { - return (ListInstances) super.setOauthToken(oauthToken); - } - - @Override - public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListInstances setQuotaUser(java.lang.String quotaUser) { - return (ListInstances) super.setQuotaUser(quotaUser); - } - - @Override - public ListInstances setUploadType(java.lang.String uploadType) { - return (ListInstances) super.setUploadType(uploadType); - } - - @Override - public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListInstances setUserIp(java.lang.String userIp) { - return (ListInstances) 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 ListInstances 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 ListInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Name of the regional instance group for which we want to list the instances. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** Name of the regional instance group for which we want to list the instances. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** - * Name of the regional instance group for which we want to list the instances. - */ - public ListInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 ListInstances 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 ListInstances 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 ListInstances 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 ListInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListInstances set(String parameterName, Object value) { - return (ListInstances) super.set(parameterName, value); - } - } - /** - * Sets the named ports for the specified regional instance group. - * - * Create a request for the method "regionInstanceGroups.setNamedPorts". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param instanceGroup The name of the regional instance group where the named ports are updated. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupsSetNamedPortsRequest} - * @return the request - */ - public SetNamedPorts setNamedPorts(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.RegionInstanceGroupsSetNamedPortsRequest content) throws java.io.IOException { - SetNamedPorts result = new SetNamedPorts(project, region, instanceGroup, content); - initialize(result); - return result; - } - - public class SetNamedPorts extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the named ports for the specified regional instance group. - * - * Create a request for the method "regionInstanceGroups.setNamedPorts". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation.

- * {@link SetNamedPorts#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 instanceGroup The name of the regional instance group where the named ports are updated. - * @param content the {@link com.google.api.services.compute.preview.model.RegionInstanceGroupsSetNamedPortsRequest} - * @since 1.13 - */ - protected SetNamedPorts(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.preview.model.RegionInstanceGroupsSetNamedPortsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { - return (SetNamedPorts) super.set$Xgafv($Xgafv); - } - - @Override - public SetNamedPorts setAccessToken(java.lang.String accessToken) { - return (SetNamedPorts) super.setAccessToken(accessToken); - } - - @Override - public SetNamedPorts setAlt(java.lang.String alt) { - return (SetNamedPorts) super.setAlt(alt); - } - - @Override - public SetNamedPorts setCallback(java.lang.String callback) { - return (SetNamedPorts) super.setCallback(callback); - } - - @Override - public SetNamedPorts setFields(java.lang.String fields) { - return (SetNamedPorts) super.setFields(fields); - } - - @Override - public SetNamedPorts setKey(java.lang.String key) { - return (SetNamedPorts) super.setKey(key); - } - - @Override - public SetNamedPorts setOauthToken(java.lang.String oauthToken) { - return (SetNamedPorts) super.setOauthToken(oauthToken); - } - - @Override - public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNamedPorts) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { - return (SetNamedPorts) super.setQuotaUser(quotaUser); - } - - @Override - public SetNamedPorts setUploadType(java.lang.String uploadType) { - return (SetNamedPorts) super.setUploadType(uploadType); - } - - @Override - public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetNamedPorts setUserIp(java.lang.String userIp) { - return (SetNamedPorts) 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 SetNamedPorts 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 SetNamedPorts setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the regional instance group where the named ports are updated. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the regional instance group where the named ports are updated. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** The name of the regional instance group where the named ports are updated. */ - public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 SetNamedPorts setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetNamedPorts set(String parameterName, Object value) { - return (SetNamedPorts) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionInstanceGroups.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionInstanceGroups.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstanceTemplates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstanceTemplates.List request = compute.regionInstanceTemplates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstanceTemplates regionInstanceTemplates() { - return new RegionInstanceTemplates(); - } - - /** - * The "regionInstanceTemplates" collection of methods. - */ - public class RegionInstanceTemplates { - - /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot be - * undone. - * - * Create a request for the method "regionInstanceTemplates.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param instanceTemplate The name of the instance template to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) throws java.io.IOException { - Delete result = new Delete(project, region, instanceTemplate); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANCE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot - * be undone. - * - * Create a request for the method "regionInstanceTemplates.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param instanceTemplate The name of the instance template to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Delete 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; - } - - /** The name of the instance template to delete. */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** The name of the instance template to delete. - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** The name of the instance template to delete. */ - public Delete setInstanceTemplate(java.lang.String instanceTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instanceTemplate = instanceTemplate; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified instance template. - * - * Create a request for the method "regionInstanceTemplates.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 region The name of the region for this request. - * @param instanceTemplate The name of the instance template. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) throws java.io.IOException { - Get result = new Get(project, region, instanceTemplate); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANCE_TEMPLATE_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 instance template. - * - * Create a request for the method "regionInstanceTemplates.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 region The name of the region for this request. - * @param instanceTemplate The name of the instance template. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String instanceTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstanceTemplate.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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; - } - - /** The name of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** The name of the instance template. - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** The name of the instance template. */ - public Get setInstanceTemplate(java.lang.String instanceTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instanceTemplate = instanceTemplate; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates an instance template in the specified project and region using the global instance - * template whose URL is included in the request. - * - * Create a request for the method "regionInstanceTemplates.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceTemplate} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstanceTemplate content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an instance template in the specified project and region using the global instance - * template whose URL is included in the request. - * - * Create a request for the method "regionInstanceTemplates.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceTemplate} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstanceTemplate content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of instance templates that are contained within the specified project and - * region. - * - * Create a request for the method "regionInstanceTemplates.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 region The name of the regions 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}/instanceTemplates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of instance templates that are contained within the specified project and - * region. - * - * Create a request for the method "regionInstanceTemplates.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 region The name of the regions 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.preview.model.InstanceTemplateList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 regions for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the regions for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the regions 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstances collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstances.List request = compute.regionInstances().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstances regionInstances() { - return new RegionInstances(); - } - - /** - * The "regionInstances" collection of methods. - */ - public class RegionInstances { - - /** - * Creates multiple instances in a given region. Count specifies the number of instances to create. - * - * Create a request for the method "regionInstances.bulkInsert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertInstanceResource} - * @return the request - */ - public BulkInsert bulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.BulkInsertInstanceResource content) throws java.io.IOException { - BulkInsert result = new BulkInsert(project, region, content); - initialize(result); - return result; - } - - public class BulkInsert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instances/bulkInsert"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates multiple instances in a given region. Count specifies the number of instances to - * create. - * - * Create a request for the method "regionInstances.bulkInsert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

- * {@link - * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.BulkInsertInstanceResource} - * @since 1.13 - */ - protected BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.BulkInsertInstanceResource content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); - } - - @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); - } - - @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); - } - - @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); - } - - @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); - } - - @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); - } - - @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); - } - - @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); - } - - @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); - } - - @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); - } - - @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) 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 BulkInsert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public BulkInsert 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; - } - - /** - * 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 BulkInsert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstantSnapshotGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstantSnapshotGroups.List request = compute.regionInstantSnapshotGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstantSnapshotGroups regionInstantSnapshotGroups() { - return new RegionInstantSnapshotGroups(); - } - - /** - * The "regionInstantSnapshotGroups" collection of methods. - */ - public class RegionInstantSnapshotGroups { - - /** - * deletes a Regional InstantSnapshotGroup resource - * - * Create a request for the method "regionInstantSnapshotGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) throws java.io.IOException { - Delete result = new Delete(project, region, instantSnapshotGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANT_SNAPSHOT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * deletes a Regional InstantSnapshotGroup resource - * - * Create a request for the method "regionInstantSnapshotGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Delete 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 InstantSnapshotGroup resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; - - /** Name of the InstantSnapshotGroup resource to delete. - */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; - } - - /** Name of the InstantSnapshotGroup resource to delete. */ - public Delete setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshotGroup = instantSnapshotGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * returns the specified InstantSnapshotGroup resource in the specified region. - * - * Create a request for the method "regionInstantSnapshotGroups.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 region The name of the region for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) throws java.io.IOException { - Get result = new Get(project, region, instantSnapshotGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANT_SNAPSHOT_GROUP_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 InstantSnapshotGroup resource in the specified region. - * - * Create a request for the method "regionInstantSnapshotGroups.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 region The name of the region for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstantSnapshotGroup.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.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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 InstantSnapshotGroup resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; - - /** Name of the InstantSnapshotGroup resource to return. - */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; - } - - /** Name of the InstantSnapshotGroup resource to return. */ - public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshotGroup = instantSnapshotGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "regionInstantSnapshotGroups.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "regionInstantSnapshotGroups.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * creates a Regional InstantSnapshotGroup resource - * - * Create a request for the method "regionInstantSnapshotGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstantSnapshotGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstantSnapshotGroup content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * creates a Regional InstantSnapshotGroup resource - * - * Create a request for the method "regionInstantSnapshotGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstantSnapshotGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstantSnapshotGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** begin_interface: MixerMutationRequestBuilder */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroup; - - /** begin_interface: MixerMutationRequestBuilder - */ - public java.lang.String getSourceConsistencyGroup() { - return sourceConsistencyGroup; - } - - /** begin_interface: MixerMutationRequestBuilder */ - public Insert setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { - this.sourceConsistencyGroup = sourceConsistencyGroup; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * retrieves the list of InstantSnapshotGroup resources contained within the specified region. - * - * Create a request for the method "regionInstantSnapshotGroups.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 region The 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}/instantSnapshotGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * retrieves the list of InstantSnapshotGroup resources contained within the specified region. - * - * Create a request for the method "regionInstantSnapshotGroups.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 region The 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.preview.model.ListInstantSnapshotGroups.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionInstantSnapshotGroups.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionInstantSnapshotGroups.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionInstantSnapshotGroups.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionInstantSnapshotGroups.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionInstantSnapshots collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionInstantSnapshots.List request = compute.regionInstantSnapshots().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionInstantSnapshots regionInstantSnapshots() { - return new RegionInstantSnapshots(); - } - - /** - * The "regionInstantSnapshots" collection of methods. - */ - public class RegionInstantSnapshots { - - /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single - * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on - * the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the - * data will be moved to the next corresponding instantSnapshot. - * - * For more information, seeDeleting instantSnapshots. - * - * Create a request for the method "regionInstantSnapshots.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) throws java.io.IOException { - Delete result = new Delete(project, region, instantSnapshot); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANT_SNAPSHOT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single - * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data - * on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, - * the data will be moved to the next corresponding instantSnapshot. - * - * For more information, seeDeleting instantSnapshots. - * - * Create a request for the method "regionInstantSnapshots.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Delete 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 InstantSnapshot resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshot; - - /** Name of the InstantSnapshot resource to delete. - */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; - } - - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshot(java.lang.String instantSnapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshot = instantSnapshot; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified InstantSnapshot resource in the specified region. - * - * Create a request for the method "regionInstantSnapshots.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 region The name of the region for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) throws java.io.IOException { - Get result = new Get(project, region, instantSnapshot); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 INSTANT_SNAPSHOT_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 InstantSnapshot resource in the specified region. - * - * Create a request for the method "regionInstantSnapshots.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 region The name of the region for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.InstantSnapshot.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.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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 InstantSnapshot resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshot; - - /** Name of the InstantSnapshot resource to return. - */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; - } - - /** Name of the InstantSnapshot resource to return. */ - public Get setInstantSnapshot(java.lang.String instantSnapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instantSnapshot = instantSnapshot; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "regionInstantSnapshots.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "regionInstantSnapshots.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates an instant snapshot in the specified region. - * - * Create a request for the method "regionInstantSnapshots.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstantSnapshot} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstantSnapshot content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates an instant snapshot in the specified region. - * - * Create a request for the method "regionInstantSnapshots.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.InstantSnapshot} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.InstantSnapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of InstantSnapshot resources contained within the specified region. - * - * Create a request for the method "regionInstantSnapshots.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 region The 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}/instantSnapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of InstantSnapshot resources contained within the specified region. - * - * Create a request for the method "regionInstantSnapshots.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 region The 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.preview.model.InstantSnapshotList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionInstantSnapshots.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionInstantSnapshots.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the - * Labeling Resources documentation. - * - * Create a request for the method "regionInstantSnapshots.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the - * Labeling Resources documentation. - * - * Create a request for the method "regionInstantSnapshots.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionInstantSnapshots.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionInstantSnapshots.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionNetworkEndpointGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionNetworkEndpointGroups.List request = compute.regionNetworkEndpointGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionNetworkEndpointGroups regionNetworkEndpointGroups() { - return new RegionNetworkEndpointGroups(); - } - - /** - * The "regionNetworkEndpointGroups" collection of methods. - */ - public class RegionNetworkEndpointGroups { - - /** - * Attach a list of network endpoints to the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region The name of the region where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsAttachEndpointsRequest} - * @return the request - */ - public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { - AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, region, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class AttachNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Attach a list of network endpoints to the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsAttachEndpointsRequest} - * @since 1.13 - */ - protected AttachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsAttachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); - } - - @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); - } - - @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); - } - - @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); - } - - @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) 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 AttachNetworkEndpoints setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region where you want to create the network endpoint group. It should comply with - RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ - public AttachNetworkEndpoints setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is - * configured as a backend of a backend service. - * - * Create a request for the method "regionNetworkEndpointGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) throws java.io.IOException { - Delete result = new Delete(project, region, networkEndpointGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is - * configured as a backend of a backend service. - * - * Create a request for the method "regionNetworkEndpointGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Delete setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Detach the network endpoint from the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region The name of the region where - the network endpoint group is located. It should comply with - RFC1035. - * @param networkEndpointGroup The name of the network endpoint group you are detaching network - endpoints from. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsDetachEndpointsRequest} - * @return the request - */ - public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { - DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, region, networkEndpointGroup, content); - initialize(result); - return result; - } - - public class DetachNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Detach the network endpoint from the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region where - the network endpoint group is located. It should comply with - RFC1035. - * @param networkEndpointGroup The name of the network endpoint group you are detaching network - endpoints from. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsDetachEndpointsRequest} - * @since 1.13 - */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.preview.model.RegionNetworkEndpointGroupsDetachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); - } - - @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); - } - - @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); - } - - @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); - } - - @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) 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 DetachNetworkEndpoints setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ - public DetachNetworkEndpoints setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the network endpoint group you are detaching network endpoints from. It should - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group you are detaching network endpoints from. It should comply - with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group you are detaching network endpoints from. It should - * comply with RFC1035. - */ - public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.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 region The name of the region where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, region, networkEndpointGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.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 region The name of the region where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroup.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Get setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with - * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage - * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service - * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet - * NEGs):global API - * - * Create a request for the method "regionNetworkEndpointGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NetworkEndpointGroup content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs - * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To - * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private - * Service Connect NEGs): regional API - To manage NEGs with global scope (such as - * global internet NEGs):global API - * - * Create a request for the method "regionNetworkEndpointGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.NetworkEndpointGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NetworkEndpointGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region where you want to create the network endpoint group. It should comply with - RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ - public Insert setRegion(java.lang.String region) { - this.region = region; - 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of regional network endpoint groups available to the specified project in the - * given region. - * - * Create a request for the method "regionNetworkEndpointGroups.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 region The name of theregion - where the network endpoint group is located. It should comply with RFC1035. - * @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}/networkEndpointGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of regional network endpoint groups available to the specified project in - * the given region. - * - * Create a request for the method "regionNetworkEndpointGroups.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 region The name of theregion - where the network endpoint group is located. It should comply with RFC1035. - * @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.preview.model.NetworkEndpointGroupList.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."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of theregion where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ - public List setRegion(java.lang.String region) { - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the network endpoints in the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region The name of theregion - where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @return the request - */ - public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) throws java.io.IOException { - ListNetworkEndpoints result = new ListNetworkEndpoints(project, region, networkEndpointGroup); - initialize(result); - return result; - } - - public class ListNetworkEndpoints extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the network endpoints in the specified network endpoint group. - * - * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link ListNetworkEndpoints#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of theregion - where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @since 1.13 - */ - protected ListNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.NetworkEndpointGroupsListNetworkEndpoints.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."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); - } - - @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); - } - - @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); - } - - @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); - } - - @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); - } - - @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); - } - - @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); - } - - @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); - } - - @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); - } - - @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) 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 ListNetworkEndpoints 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 theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of theregion where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The name of theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ - public ListNetworkEndpoints setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group from which you want to generate a list of included network - endpoints. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionNetworkFirewallPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionNetworkFirewallPolicies.List request = compute.regionNetworkFirewallPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionNetworkFirewallPolicies regionNetworkFirewallPolicies() { - return new RegionNetworkFirewallPolicies(); - } - - /** - * The "regionNetworkFirewallPolicies" collection of methods. - */ - public class RegionNetworkFirewallPolicies { - - /** - * Inserts an association for the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.addAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - * - * @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.preview.model.FirewallPolicyAssociation} - * @return the request - */ - public AddAssociation addAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(project, region, firewallPolicy, content); - initialize(result); - return result; - } - - public class AddAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - private final java.util.regex.Pattern ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Inserts an association for the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.addAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

{@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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.preview.model.FirewallPolicyAssociation} - * @since 1.13 - */ - protected AddAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); - } - - @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); - } - - @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); - } - - @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); - } - - @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); - } - - @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); - } - - @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); - } - - @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) 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 AddAssociation 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 AddAssociation 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 AddAssociation 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; - } - - /** - * Name of the firewall policy associated with the target network to swap association with. - * This field is mutually exclusive with 'replace_existing_association'. - */ - @com.google.api.client.util.Key - private java.lang.String associatedPolicyToBeReplaced; - - /** Name of the firewall policy associated with the target network to swap association with. This field - is mutually exclusive with 'replace_existing_association'. - */ - public java.lang.String getAssociatedPolicyToBeReplaced() { - return associatedPolicyToBeReplaced; - } - - /** - * Name of the firewall policy associated with the target network to swap association with. - * This field is mutually exclusive with 'replace_existing_association'. - */ - public AddAssociation setAssociatedPolicyToBeReplaced(java.lang.String associatedPolicyToBeReplaced) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN.matcher(associatedPolicyToBeReplaced).matches(), - "Parameter associatedPolicyToBeReplaced must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.associatedPolicyToBeReplaced = associatedPolicyToBeReplaced; - return this; - } - - /** - * Indicates whether or not to replace it if an association already exists. This is false by - * default, in which case an error will be returned if an association already exists. - */ - @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; - - /** Indicates whether or not to replace it if an association already exists. This is false by default, - in which case an error will be returned if an association already exists. - */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; - } - - /** - * Indicates whether or not to replace it if an association already exists. This is false by - * default, in which case an error will be returned if an association already exists. - */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; - 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 AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); - } - } - /** - * Inserts a rule into a network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.addRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. - * - * @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.preview.model.FirewallPolicyRule} - * @return the request - */ - public AddRule addRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(project, region, firewallPolicy, content); - initialize(result); - return result; - } - - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Inserts a rule into a network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.addRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

- * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region 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.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected AddRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); - } - - @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); - } - - @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); - } - - @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); - } - - @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); - } - - @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); - } - - @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); - } - - @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) 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 AddRule 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 AddRule 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 AddRule 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; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMaxPriority() { - return maxPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; - return this; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer minPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMinPriority() { - return minPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; - 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 AddRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } - /** - * Copies rules to the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.cloneRules". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. - * - * @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. - * @return the request - */ - public CloneRules cloneRules(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class CloneRules extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Copies rules to the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.cloneRules". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

- * {@link - * CloneRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected CloneRules(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); - } - - @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); - } - - @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); - } - - @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); - } - - @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); - } - - @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); - } - - @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); - } - - @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); - } - - @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); - } - - @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); - } - - @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); - } - - @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) 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 CloneRules 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 CloneRules 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 CloneRules 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 CloneRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** The firewall policy from which to copy rules. */ - @com.google.api.client.util.Key - private java.lang.String sourceFirewallPolicy; - - /** The firewall policy from which to copy rules. - */ - public java.lang.String getSourceFirewallPolicy() { - return sourceFirewallPolicy; - } - - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; - return this; - } - - @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); - } - } - /** - * Deletes the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Deletes the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 delete. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to delete. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to delete. */ - public Delete 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to get. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Returns the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to get. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicy.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 firewall policy to get. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to get. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to get. */ - public Get 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets an association with the specified name. - * - * Create a request for the method "regionNetworkFirewallPolicies.getAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. - * @return the request - */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class GetAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Gets an association with the specified name. - * - * Create a request for the method "regionNetworkFirewallPolicies.getAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

{@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 which the queried association belongs. - * @since 1.13 - */ - protected GetAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyAssociation.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); - } - - @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); - } - - @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); - } - - @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); - } - - @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); - } - - @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); - } - - @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); - } - - @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) 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 GetAssociation 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 GetAssociation 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 which the queried association belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried association belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried association belongs. */ - public GetAssociation 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; - } - - /** The name of the association to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the association to get from the firewall policy. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); - } - } - /** - * Returns the effective firewalls on a given network. - * - * Create a request for the method "regionNetworkFirewallPolicies.getEffectiveFirewalls". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param network Network reference - * @return the request - */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String region, java.lang.String network) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, region, network); - initialize(result); - return result; - } - - public class GetEffectiveFirewalls extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 the effective firewalls on a given network. - * - * Create a request for the method "regionNetworkFirewallPolicies.getEffectiveFirewalls". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation.

{@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} 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 network Network reference - * @since 1.13 - */ - protected GetEffectiveFirewalls(java.lang.String project, java.lang.String region, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); - } - - @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); - } - - @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); - } - - @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); - } - - @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); - } - - @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); - } - - @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); - } - - @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); - } - - @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); - } - - @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) 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 GetEffectiveFirewalls 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 GetEffectiveFirewalls 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; - } - - /** Network reference */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Network reference - */ - public java.lang.String getNetwork() { - return network; - } - - /** Network reference */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - @Override - public GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "regionNetworkFirewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "regionNetworkFirewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Gets a rule of the specified priority. - * - * Create a request for the method "regionNetworkFirewallPolicies.getRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @return the request - */ - public GetRule getRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class GetRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Gets a rule of the specified priority. - * - * Create a request for the method "regionNetworkFirewallPolicies.getRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

- * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.FirewallPolicyRule.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); - } - - @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); - } - - @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); - } - - @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); - } - - @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); - } - - @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) 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 GetRule 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 GetRule 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 which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to which the queried rule belongs. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule 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; - } - - /** The priority of the rule to get from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new network firewall policy in the specified project and region. - * - * Create a request for the method "regionNetworkFirewallPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.FirewallPolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new network firewall policy in the specified project and region. - * - * Create a request for the method "regionNetworkFirewallPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.FirewallPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.FirewallPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all the network firewall policies that have been configured for the specified project in - * the given region. - * - * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping 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}/firewallPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all the network firewall policies that have been configured for the specified project in - * the given region. - * - * Create a request for the method "regionNetworkFirewallPolicies.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 region Name of the region scoping 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.preview.model.FirewallPolicyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.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 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.preview.model.FirewallPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, firewallPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Patches the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.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 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.preview.model.FirewallPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 Patch 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * 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 compute server. After setting any optional - * parameters, call the {@link PatchAssociation#execute()} method to invoke the remote operation. - * - * @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.preview.model.FirewallPolicyAssociation} - * @return the request - */ - public PatchAssociation patchAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) throws java.io.IOException { - PatchAssociation result = new PatchAssociation(project, region, firewallPolicy, content); - initialize(result); - return result; - } - - public class PatchAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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.preview.model.FirewallPolicyAssociation} - * @since 1.13 - */ - protected PatchAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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. - * - * Create a request for the method "regionNetworkFirewallPolicies.patchRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. - * - * @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.preview.model.FirewallPolicyRule} - * @return the request - */ - public PatchRule patchRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(project, region, firewallPolicy, content); - initialize(result); - return result; - } - - public class PatchRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Patches a rule of the specified priority. - * - * Create a request for the method "regionNetworkFirewallPolicies.patchRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

- * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region 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.preview.model.FirewallPolicyRule} - * @since 1.13 - */ - protected PatchRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.preview.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); - } - - @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); - } - - @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); - } - - @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); - } - - @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); - } - - @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); - } - - @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) 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 PatchRule 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 PatchRule 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 PatchRule 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; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 PatchRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); - } - } - /** - * Removes an association for the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.removeAssociation". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - * - * @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. - * @return the request - */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class RemoveAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Removes an association for the specified network firewall policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.removeAssociation". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

{@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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. - * @since 1.13 - */ - protected RemoveAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); - } - - @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); - } - - @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); - } - - @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); - } - - @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); - } - - @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); - } - - @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); - } - - @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) 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 RemoveAssociation 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 RemoveAssociation 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 RemoveAssociation 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; - } - - /** Name for the association that will be removed. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Name for the association that will be removed. - */ - public java.lang.String getName() { - return name; - } - - /** Name for the association that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; - 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 RemoveAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); - } - } - /** - * Deletes a rule of the specified priority. - * - * Create a request for the method "regionNetworkFirewallPolicies.removeRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. - * - * @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. - * @return the request - */ - public RemoveRule removeRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, region, firewallPolicy); - initialize(result); - return result; - } - - public class RemoveRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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}"); - - /** - * Deletes a rule of the specified priority. - * - * Create a request for the method "regionNetworkFirewallPolicies.removeRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

- * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to update. - * @since 1.13 - */ - protected RemoveRule(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); - } - - @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); - } - - @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); - } - - @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); - } - - @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); - } - - @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); - } - - @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); - } - - @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) 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 RemoveRule 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 RemoveRule 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 RemoveRule 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; - } - - /** The priority of the rule to remove from the firewall policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the firewall policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the firewall policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 RemoveRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionNetworkFirewallPolicies.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionNetworkFirewallPolicies.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionNotificationEndpoints collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionNotificationEndpoints.List request = compute.regionNotificationEndpoints().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionNotificationEndpoints regionNotificationEndpoints() { - return new RegionNotificationEndpoints(); - } - - /** - * The "regionNotificationEndpoints" collection of methods. - */ - public class RegionNotificationEndpoints { - - /** - * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the - * specified project. - * - * Create a request for the method "regionNotificationEndpoints.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/notificationEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the - * specified project. - * - * Create a request for the method "regionNotificationEndpoints.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NotificationEndpointAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified NotificationEndpoint in the given region - * - * Create a request for the method "regionNotificationEndpoints.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) throws java.io.IOException { - Delete result = new Delete(project, region, notificationEndpoint); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NOTIFICATION_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified NotificationEndpoint in the given region - * - * Create a request for the method "regionNotificationEndpoints.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.notificationEndpoint = com.google.api.client.util.Preconditions.checkNotNull(notificationEndpoint, "Required parameter notificationEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 NotificationEndpoint resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String notificationEndpoint; - - /** Name of the NotificationEndpoint resource to delete. - */ - public java.lang.String getNotificationEndpoint() { - return notificationEndpoint; - } - - /** Name of the NotificationEndpoint resource to delete. */ - public Delete setNotificationEndpoint(java.lang.String notificationEndpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.notificationEndpoint = notificationEndpoint; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified NotificationEndpoint resource in the given region. - * - * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping this request. - * @param notificationEndpoint Name of the NotificationEndpoint resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) throws java.io.IOException { - Get result = new Get(project, region, notificationEndpoint); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 NOTIFICATION_ENDPOINT_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 NotificationEndpoint resource in the given region. - * - * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping this request. - * @param notificationEndpoint Name of the NotificationEndpoint resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String notificationEndpoint) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NotificationEndpoint.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.notificationEndpoint = com.google.api.client.util.Preconditions.checkNotNull(notificationEndpoint, "Required parameter notificationEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 NotificationEndpoint resource to return. */ - @com.google.api.client.util.Key - private java.lang.String notificationEndpoint; - - /** Name of the NotificationEndpoint resource to return. - */ - public java.lang.String getNotificationEndpoint() { - return notificationEndpoint; - } - - /** Name of the NotificationEndpoint resource to return. */ - public Get setNotificationEndpoint(java.lang.String notificationEndpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.notificationEndpoint = notificationEndpoint; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Create a NotificationEndpoint in the specified project in the given region using the parameters - * that are included in the request. - * - * Create a request for the method "regionNotificationEndpoints.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.NotificationEndpoint} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NotificationEndpoint content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Create a NotificationEndpoint in the specified project in the given region using the parameters - * that are included in the request. - * - * Create a request for the method "regionNotificationEndpoints.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.NotificationEndpoint} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.NotificationEndpoint content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the NotificationEndpoints for a project in the given region. - * - * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping 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}/notificationEndpoints"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the NotificationEndpoints for a project in the given region. - * - * Create a request for the method "regionNotificationEndpoints.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 region Name of the region scoping 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.preview.model.NotificationEndpointList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionNotificationEndpoints.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionNotificationEndpoints.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionOperations regionOperations() { - return new RegionOperations(); - } - - /** - * The "regionOperations" collection of methods. - */ - public class RegionOperations { - - /** - * Deletes the specified region-specific Operations resource. - * - * Create a request for the method "regionOperations.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(project, region, operation); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified region-specific Operations resource. - * - * Create a request for the method "regionOperations.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 Operations resource to delete, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to delete, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves the specified region-specific Operations resource. - * - * Create a request for the method "regionOperations.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 region Name of the region for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String operation) throws java.io.IOException { - Get result = new Get(project, region, operation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves the specified region-specific Operations resource. - * - * Create a request for the method "regionOperations.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 region Name of the region for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 Operations resource to return, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Get setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of Operation resources contained within the specified region. - * - * Create a request for the method "regionOperations.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 region 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}/operations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of Operation resources contained within the specified region. - * - * Create a request for the method "regionOperations.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 region 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.preview.model.OperationList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the - * 2 minute deadline, and retrieves the specified Operation resource. This method differs from the - * `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns - * the current state of the operation, which might be `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, when - * the server is overloaded, the request might return before the default deadline is reached, or - * might return after zero seconds. - If the default deadline is reached, there is no - * guarantee that the operation is actually done when the method returns. Be prepared to retry - * if the operation is not `DONE`. - * - * Create a request for the method "regionOperations.wait". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @return the request - */ - public Wait wait(java.lang.String project, java.lang.String region, java.lang.String operation) throws java.io.IOException { - Wait result = new Wait(project, region, operation); - initialize(result); - return result; - } - - public class Wait extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}/wait"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach - * the 2 minute deadline, and retrieves the specified Operation resource. This method differs from - * the `GET` method in that it waits for no more than the default deadline (2 minutes) and then - * returns the current state of the operation, which might be `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, - * when the server is overloaded, the request might return before the default deadline is - * reached, or might return after zero seconds. - If the default deadline is reached, there - * is no guarantee that the operation is actually done when the method returns. Be prepared to - * retry if the operation is not `DONE`. - * - * Create a request for the method "regionOperations.wait". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

{@link - * Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @since 1.13 - */ - protected Wait(java.lang.String project, java.lang.String region, java.lang.String operation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) 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 Wait 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Wait 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 Operations resource to return, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Wait setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionSecurityPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionSecurityPolicies.List request = compute.regionSecurityPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionSecurityPolicies regionSecurityPolicies() { - return new RegionSecurityPolicies(); - } - - /** - * The "regionSecurityPolicies" collection of methods. - */ - public class RegionSecurityPolicies { - - /** - * Inserts a rule into a security policy. - * - * Create a request for the method "regionSecurityPolicies.addRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @return the request - */ - public AddRule addRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(project, region, securityPolicy, content); - initialize(result); - return result; - } - - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Inserts a rule into a security policy. - * - * Create a request for the method "regionSecurityPolicies.addRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

- * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @since 1.13 - */ - protected AddRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); - } - - @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); - } - - @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); - } - - @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); - } - - @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); - } - - @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); - } - - @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); - } - - @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) 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 AddRule 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 AddRule 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public AddRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Create a request for the method "regionSecurityPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, securityPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified policy. - * - * Create a request for the method "regionSecurityPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 security policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to delete. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * List all of the ordered rules present in a single specified policy. - * - * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to get. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { - Get result = new Get(project, region, securityPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * List all of the ordered rules present in a single specified policy. - * - * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to get. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicy.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 security policy to get. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to get. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets a rule at the specified priority. - * - * Create a request for the method "regionSecurityPolicies.getRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @return the request - */ - public GetRule getRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, region, securityPolicy); - initialize(result); - return result; - } - - public class GetRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets a rule at the specified priority. - * - * Create a request for the method "regionSecurityPolicies.getRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

- * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicyRule.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); - } - - @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); - } - - @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); - } - - @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); - } - - @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); - } - - @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) 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 GetRule 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 GetRule 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 security policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to which the queried rule belongs. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to get from the security policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the security policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "regionSecurityPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "regionSecurityPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SecurityPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * List all the policies that have been configured for the specified project and region. - * - * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping 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}/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * List all the policies that have been configured for the specified project and region. - * - * Create a request for the method "regionSecurityPolicies.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 region Name of the region scoping 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.preview.model.SecurityPolicyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. To clear fields in the - * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be - * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and - * removeRule instead. - * - * Create a request for the method "regionSecurityPolicies.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, securityPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified policy with the data included in the request. To clear fields in the - * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be - * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and - * removeRule instead. - * - * Create a request for the method "regionSecurityPolicies.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public Patch setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Indicates fields to be cleared as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Indicates fields to be cleared as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and - * specify them in the updateMask. - * - * Create a request for the method "regionSecurityPolicies.patchRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @return the request - */ - public PatchRule patchRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(project, region, securityPolicy, content); - initialize(result); - return result; - } - - public class PatchRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty - * and specify them in the updateMask. - * - * Create a request for the method "regionSecurityPolicies.patchRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

- * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @since 1.13 - */ - protected PatchRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); - } - - @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); - } - - @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); - } - - @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); - } - - @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); - } - - @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); - } - - @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) 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 PatchRule 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 PatchRule 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** Indicates fields to be cleared as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Indicates fields to be cleared as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); - } - } - /** - * Deletes a rule at the specified priority. - * - * Create a request for the method "regionSecurityPolicies.removeRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public RemoveRule removeRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, region, securityPolicy); - initialize(result); - return result; - } - - public class RemoveRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes a rule at the specified priority. - * - * Create a request for the method "regionSecurityPolicies.removeRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

- * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected RemoveRule(java.lang.String project, java.lang.String region, java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); - } - - @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); - } - - @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); - } - - @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); - } - - @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); - } - - @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); - } - - @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); - } - - @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) 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 RemoveRule 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 RemoveRule 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to remove from the security policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the security policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); - } - } - /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "regionSecurityPolicies.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "regionSecurityPolicies.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionSnapshotSettings collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionSnapshotSettings.List request = compute.regionSnapshotSettings().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionSnapshotSettings regionSnapshotSettings() { - return new RegionSnapshotSettings(); - } - - /** - * The "regionSnapshotSettings" collection of methods. - */ - public class RegionSnapshotSettings { - - /** - * Get region snapshot settings. - * - * Create a request for the method "regionSnapshotSettings.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 region Name of the region for this request. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Get region snapshot settings. - * - * Create a request for the method "regionSnapshotSettings.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 region Name of the region for this request. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SnapshotSettings.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Patch region snapshot settings. - * - * Create a request for the method "regionSnapshotSettings.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 Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SnapshotSettings} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SnapshotSettings content) throws java.io.IOException { - Patch result = new Patch(project, region, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Patch region snapshot settings. - * - * Create a request for the method "regionSnapshotSettings.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 Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SnapshotSettings} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SnapshotSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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; - } - - /** - * 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - 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 RegionSnapshots collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionSnapshots.List request = compute.regionSnapshots().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionSnapshots regionSnapshots() { - return new RegionSnapshots(); - } - - /** - * The "regionSnapshots" collection of methods. - */ - public class RegionSnapshots { - - /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not - * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for - * deletion is needed for subsequent snapshots, the data will be moved to the next corresponding - * snapshot. - * - * For more information, seeDeleting snapshots. - * - * Create a request for the method "regionSnapshots.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param snapshot Name of the snapshot resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String snapshot) throws java.io.IOException { - Delete result = new Delete(project, region, snapshot); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SNAPSHOT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not - * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked - * for deletion is needed for subsequent snapshots, the data will be moved to the next - * corresponding snapshot. - * - * For more information, seeDeleting snapshots. - * - * Create a request for the method "regionSnapshots.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param snapshot Name of the snapshot resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String snapshot) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Delete 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 snapshot resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the snapshot resource to delete. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the snapshot resource to delete. */ - public Delete setSnapshot(java.lang.String snapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.snapshot = snapshot; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified Snapshot resource. - * - * Create a request for the method "regionSnapshots.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 region Name of the region for this request. - * @param snapshot Name of the Snapshot resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String snapshot) throws java.io.IOException { - Get result = new Get(project, region, snapshot); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SNAPSHOT_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 Snapshot resource. - * - * Create a request for the method "regionSnapshots.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 region Name of the region for this request. - * @param snapshot Name of the Snapshot resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String snapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Snapshot.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 Snapshot resource to return. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the Snapshot resource to return. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the Snapshot resource to return. */ - public Get setSnapshot(java.lang.String snapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.snapshot = snapshot; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "regionSnapshots.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "regionSnapshots.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a snapshot in the specified region using the data included in the request. - * - * Create a request for the method "regionSnapshots.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Snapshot content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a snapshot in the specified region using the data included in the request. - * - * Create a request for the method "regionSnapshots.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Snapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of Snapshot resources contained within the specified region. - * - * Create a request for the method "regionSnapshots.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 region 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}/snapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of Snapshot resources contained within the specified region. - * - * Create a request for the method "regionSnapshots.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 region 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.preview.model.SnapshotList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionSnapshots.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "regionSnapshots.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "regionSnapshots.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "regionSnapshots.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionSnapshots.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionSnapshots.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Rotates the customer-managed encryption key to the latest version for the specified snapshot. - * - * Create a request for the method "regionSnapshots.updateKmsKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param snapshot Name of the snapshot resource to update. Should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSnapshotUpdateKmsKeyRequest} - * @return the request - */ - public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String region, java.lang.String snapshot, com.google.api.services.compute.preview.model.RegionSnapshotUpdateKmsKeyRequest content) throws java.io.IOException { - UpdateKmsKey result = new UpdateKmsKey(project, region, snapshot, content); - initialize(result); - return result; - } - - public class UpdateKmsKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SNAPSHOT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Rotates the customer-managed encryption key to the latest version for the specified snapshot. - * - * Create a request for the method "regionSnapshots.updateKmsKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation.

- * {@link - * UpdateKmsKey#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param snapshot Name of the snapshot resource to update. Should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSnapshotUpdateKmsKeyRequest} - * @since 1.13 - */ - protected UpdateKmsKey(java.lang.String project, java.lang.String region, java.lang.String snapshot, com.google.api.services.compute.preview.model.RegionSnapshotUpdateKmsKeyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { - return (UpdateKmsKey) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateKmsKey setAccessToken(java.lang.String accessToken) { - return (UpdateKmsKey) super.setAccessToken(accessToken); - } - - @Override - public UpdateKmsKey setAlt(java.lang.String alt) { - return (UpdateKmsKey) super.setAlt(alt); - } - - @Override - public UpdateKmsKey setCallback(java.lang.String callback) { - return (UpdateKmsKey) super.setCallback(callback); - } - - @Override - public UpdateKmsKey setFields(java.lang.String fields) { - return (UpdateKmsKey) super.setFields(fields); - } - - @Override - public UpdateKmsKey setKey(java.lang.String key) { - return (UpdateKmsKey) super.setKey(key); - } - - @Override - public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { - return (UpdateKmsKey) super.setOauthToken(oauthToken); - } - - @Override - public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { - return (UpdateKmsKey) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateKmsKey setUploadType(java.lang.String uploadType) { - return (UpdateKmsKey) super.setUploadType(uploadType); - } - - @Override - public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateKmsKey setUserIp(java.lang.String userIp) { - return (UpdateKmsKey) 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 UpdateKmsKey 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public UpdateKmsKey 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 snapshot resource to update. Should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the snapshot resource to update. Should conform to RFC1035. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the snapshot resource to update. Should conform to RFC1035. */ - public UpdateKmsKey setSnapshot(java.lang.String snapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.snapshot = snapshot; - 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 UpdateKmsKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateKmsKey set(String parameterName, Object value) { - return (UpdateKmsKey) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionSslCertificates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionSslCertificates.List request = compute.regionSslCertificates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionSslCertificates regionSslCertificates() { - return new RegionSslCertificates(); - } - - /** - * The "regionSslCertificates" collection of methods. - */ - public class RegionSslCertificates { - - /** - * Deletes the specified SslCertificate resource in the region. - * - * Create a request for the method "regionSslCertificates.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param sslCertificate Name of the SslCertificate resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) throws java.io.IOException { - Delete result = new Delete(project, region, sslCertificate); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SSL_CERTIFICATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified SslCertificate resource in the region. - * - * Create a request for the method "regionSslCertificates.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param sslCertificate Name of the SslCertificate resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 SslCertificate resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String sslCertificate; - - /** Name of the SslCertificate resource to delete. - */ - public java.lang.String getSslCertificate() { - return sslCertificate; - } - - /** Name of the SslCertificate resource to delete. */ - public Delete setSslCertificate(java.lang.String sslCertificate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.sslCertificate = sslCertificate; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified SslCertificate resource in the specified region. Get a list of available - * SSL certificates by making a list() request. - * - * Create a request for the method "regionSslCertificates.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 region Name of the region scoping this request. - * @param sslCertificate Name of the SslCertificate resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) throws java.io.IOException { - Get result = new Get(project, region, sslCertificate); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SSL_CERTIFICATE_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 SslCertificate resource in the specified region. Get a list of available - * SSL certificates by making a list() request. - * - * Create a request for the method "regionSslCertificates.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 region Name of the region scoping this request. - * @param sslCertificate Name of the SslCertificate resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String sslCertificate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslCertificate.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 SslCertificate resource to return. */ - @com.google.api.client.util.Key - private java.lang.String sslCertificate; - - /** Name of the SslCertificate resource to return. - */ - public java.lang.String getSslCertificate() { - return sslCertificate; - } - - /** Name of the SslCertificate resource to return. */ - public Get setSslCertificate(java.lang.String sslCertificate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.sslCertificate = sslCertificate; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a SslCertificate resource in the specified project and region using the data included in - * the request - * - * Create a request for the method "regionSslCertificates.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.SslCertificate} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SslCertificate content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a SslCertificate resource in the specified project and region using the data included - * in the request - * - * Create a request for the method "regionSslCertificates.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.SslCertificate} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SslCertificate content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of SslCertificate resources available to the specified project in the - * specified region. - * - * Create a request for the method "regionSslCertificates.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 region Name of the region scoping 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}/sslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of SslCertificate resources available to the specified project in the - * specified region. - * - * Create a request for the method "regionSslCertificates.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 region Name of the region scoping 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.preview.model.SslCertificateList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionSslPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionSslPolicies.List request = compute.regionSslPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionSslPolicies regionSslPolicies() { - return new RegionSslPolicies(); - } - - /** - * The "regionSslPolicies" collection of methods. - */ - public class RegionSslPolicies { - - /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use - * by any TargetHttpsProxy or TargetSslProxy resources. - * - * Create a request for the method "regionSslPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, sslPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in - * use by any TargetHttpsProxy or TargetSslProxy resources. - * - * Create a request for the method "regionSslPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 SSL policy to delete. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Delete setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists all of the ordered rules present in a single specified policy. - * - * Create a request for the method "regionSslPolicies.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 region Name of the region scoping this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) throws java.io.IOException { - Get result = new Get(project, region, sslPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all of the ordered rules present in a single specified policy. - * - * Create a request for the method "regionSslPolicies.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 region Name of the region scoping this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String sslPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslPolicy.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Get setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified project and region using the data included in the request. - * - * Create a request for the method "regionSslPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SslPolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new policy in the specified project and region using the data included in the - * request. - * - * Create a request for the method "regionSslPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.SslPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all the SSL policies that have been configured for the specified project and region. - * - * Create a request for the method "regionSslPolicies.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 region Name of the region scoping 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}/sslPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all the SSL policies that have been configured for the specified project and region. - * - * Create a request for the method "regionSslPolicies.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 region Name of the region scoping 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.preview.model.SslPoliciesList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists all features that can be specified in the SSL policy when using custom profile. - * - * Create a request for the method "regionSslPolicies.listAvailableFeatures". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @return the request - */ - public ListAvailableFeatures listAvailableFeatures(java.lang.String project, java.lang.String region) throws java.io.IOException { - ListAvailableFeatures result = new ListAvailableFeatures(project, region); - initialize(result); - return result; - } - - public class ListAvailableFeatures extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all features that can be specified in the SSL policy when using custom profile. - * - * Create a request for the method "regionSslPolicies.listAvailableFeatures". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote - * operation.

{@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} 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. - * @since 1.13 - */ - protected ListAvailableFeatures(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslPoliciesListAvailableFeaturesResponse.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { - return (ListAvailableFeatures) super.set$Xgafv($Xgafv); - } - - @Override - public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { - return (ListAvailableFeatures) super.setAccessToken(accessToken); - } - - @Override - public ListAvailableFeatures setAlt(java.lang.String alt) { - return (ListAvailableFeatures) super.setAlt(alt); - } - - @Override - public ListAvailableFeatures setCallback(java.lang.String callback) { - return (ListAvailableFeatures) super.setCallback(callback); - } - - @Override - public ListAvailableFeatures setFields(java.lang.String fields) { - return (ListAvailableFeatures) super.setFields(fields); - } - - @Override - public ListAvailableFeatures setKey(java.lang.String key) { - return (ListAvailableFeatures) super.setKey(key); - } - - @Override - public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { - return (ListAvailableFeatures) super.setOauthToken(oauthToken); - } - - @Override - public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { - return (ListAvailableFeatures) super.setQuotaUser(quotaUser); - } - - @Override - public ListAvailableFeatures setUploadType(java.lang.String uploadType) { - return (ListAvailableFeatures) super.setUploadType(uploadType); - } - - @Override - public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListAvailableFeatures setUserIp(java.lang.String userIp) { - return (ListAvailableFeatures) 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListAvailableFeatures set(String parameterName, Object value) { - return (ListAvailableFeatures) super.set(parameterName, value); - } - } - /** - * Patches the specified SSL policy with the data included in the request. - * - * Create a request for the method "regionSslPolicies.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String sslPolicy, com.google.api.services.compute.preview.model.SslPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, sslPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Patches the specified SSL policy with the data included in the request. - * - * Create a request for the method "regionSslPolicies.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String sslPolicy, com.google.api.services.compute.preview.model.SslPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Patch setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionTargetHttpProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionTargetHttpProxies.List request = compute.regionTargetHttpProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionTargetHttpProxies regionTargetHttpProxies() { - return new RegionTargetHttpProxies(); - } - - /** - * The "regionTargetHttpProxies" collection of methods. - */ - public class RegionTargetHttpProxies { - - /** - * Deletes the specified TargetHttpProxy resource. - * - * Create a request for the method "regionTargetHttpProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) throws java.io.IOException { - Delete result = new Delete(project, region, targetHttpProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetHttpProxy resource. - * - * Create a request for the method "regionTargetHttpProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 TargetHttpProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy resource to delete. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy resource to delete. */ - public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetHttpProxy resource in the specified region. - * - * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) throws java.io.IOException { - Get result = new Get(project, region, targetHttpProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_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 TargetHttpProxy resource in the specified region. - * - * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpProxy.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 TargetHttpProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy resource to return. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy resource to return. */ - public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetHttpProxy resource in the specified project and region using the data included in - * the request. - * - * Create a request for the method "regionTargetHttpProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpProxy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetHttpProxy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a TargetHttpProxy resource in the specified project and region using the data included - * in the request. - * - * Create a request for the method "regionTargetHttpProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetHttpProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of TargetHttpProxy resources available to the specified project in the - * specified region. - * - * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping 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}/targetHttpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of TargetHttpProxy resources available to the specified project in the - * specified region. - * - * Create a request for the method "regionTargetHttpProxies.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 region Name of the region scoping 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.preview.model.TargetHttpProxyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Changes the URL map for TargetHttpProxy. - * - * Create a request for the method "regionTargetHttpProxies.setUrlMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @return the request - */ - public SetUrlMap setUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy, com.google.api.services.compute.preview.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, region, targetHttpProxy, content); - initialize(result); - return result; - } - - public class SetUrlMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the URL map for TargetHttpProxy. - * - * Create a request for the method "regionTargetHttpProxies.setUrlMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

- * {@link - * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @since 1.13 - */ - protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpProxy, com.google.api.services.compute.preview.model.UrlMapReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); - } - - @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); - } - - @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); - } - - @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); - } - - @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); - } - - @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); - } - - @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); - } - - @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) 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 SetUrlMap 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 SetUrlMap 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 TargetHttpProxy to set a URL map for. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy to set a URL map for. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy to set a URL map for. */ - public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - 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 SetUrlMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionTargetHttpsProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionTargetHttpsProxies.List request = compute.regionTargetHttpsProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionTargetHttpsProxies regionTargetHttpsProxies() { - return new RegionTargetHttpsProxies(); - } - - /** - * The "regionTargetHttpsProxies" collection of methods. - */ - public class RegionTargetHttpsProxies { - - /** - * Deletes the specified TargetHttpsProxy resource. - * - * Create a request for the method "regionTargetHttpsProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) throws java.io.IOException { - Delete result = new Delete(project, region, targetHttpsProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetHttpsProxy resource. - * - * Create a request for the method "regionTargetHttpsProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 TargetHttpsProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to delete. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to delete. */ - public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetHttpsProxy resource in the specified region. - * - * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) throws java.io.IOException { - Get result = new Get(project, region, targetHttpsProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_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 TargetHttpsProxy resource in the specified region. - * - * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpsProxy.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 TargetHttpsProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to return. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to return. */ - public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetHttpsProxy resource in the specified project and region using the data included - * in the request. - * - * Create a request for the method "regionTargetHttpsProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetHttpsProxy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a TargetHttpsProxy resource in the specified project and region using the data included - * in the request. - * - * Create a request for the method "regionTargetHttpsProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetHttpsProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project in the - * specified region. - * - * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping 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}/targetHttpsProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project in the - * specified region. - * - * Create a request for the method "regionTargetHttpsProxies.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 region Name of the region scoping 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.preview.model.TargetHttpsProxyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified regional TargetHttpsProxy resource with the data included in the request. - * This method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "regionTargetHttpsProxies.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 Project ID for this request. - * @param region Name of the region for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxy content) throws java.io.IOException { - Patch result = new Patch(project, region, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified regional TargetHttpsProxy resource with the data included in the request. - * This method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "regionTargetHttpsProxies.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 Project ID for this request. - * @param region Name of the region for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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 TargetHttpsProxy resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to patch. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to patch. */ - public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Replaces SslCertificates for TargetHttpsProxy. - * - * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.preview.model.RegionTargetHttpsProxiesSetSslCertificatesRequest} - * @return the request - */ - public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.RegionTargetHttpsProxiesSetSslCertificatesRequest content) throws java.io.IOException { - SetSslCertificates result = new SetSslCertificates(project, region, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetSslCertificates extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Replaces SslCertificates for TargetHttpsProxy. - * - * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote - * operation.

{@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.preview.model.RegionTargetHttpsProxiesSetSslCertificatesRequest} - * @since 1.13 - */ - protected SetSslCertificates(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.RegionTargetHttpsProxiesSetSslCertificatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); - } - - @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); - } - - @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); - } - - @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); - } - - @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); - } - - @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); - } - - @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); - } - - @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) 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 SetSslCertificates 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 SetSslCertificates 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 TargetHttpsProxy resource to set an SslCertificates resource for. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 SetSslCertificates setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); - } - } - /** - * Changes the URL map for TargetHttpsProxy. - * - * Create a request for the method "regionTargetHttpsProxies.setUrlMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @return the request - */ - public SetUrlMap setUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, region, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetUrlMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the URL map for TargetHttpsProxy. - * - * Create a request for the method "regionTargetHttpsProxies.setUrlMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

- * {@link - * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @since 1.13 - */ - protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.UrlMapReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); - } - - @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); - } - - @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); - } - - @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); - } - - @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); - } - - @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); - } - - @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); - } - - @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) 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 SetUrlMap 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 SetUrlMap 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 TargetHttpsProxy to set a URL map for. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy to set a URL map for. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy to set a URL map for. */ - public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 SetUrlMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionTargetTcpProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionTargetTcpProxies.List request = compute.regionTargetTcpProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionTargetTcpProxies regionTargetTcpProxies() { - return new RegionTargetTcpProxies(); - } - - /** - * The "regionTargetTcpProxies" collection of methods. - */ - public class RegionTargetTcpProxies { - - /** - * Deletes the specified TargetTcpProxy resource. - * - * Create a request for the method "regionTargetTcpProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) throws java.io.IOException { - Delete result = new Delete(project, region, targetTcpProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_TCP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetTcpProxy resource. - * - * Create a request for the method "regionTargetTcpProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 TargetTcpProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource to delete. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** Name of the TargetTcpProxy resource to delete. */ - public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetTcpProxy resource. - * - * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) throws java.io.IOException { - Get result = new Get(project, region, targetTcpProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_TCP_PROXY_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 TargetTcpProxy resource. - * - * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String targetTcpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetTcpProxy.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 TargetTcpProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource to return. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** Name of the TargetTcpProxy resource to return. */ - public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetTcpProxy resource in the specified project and region using the data included in - * the request. - * - * Create a request for the method "regionTargetTcpProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetTcpProxy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a TargetTcpProxy resource in the specified project and region using the data included - * in the request. - * - * Create a request for the method "regionTargetTcpProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetTcpProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of TargetTcpProxy resources available to the specified project in a given - * region. - * - * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping 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}/targetTcpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of TargetTcpProxy resources available to the specified project in a given - * region. - * - * Create a request for the method "regionTargetTcpProxies.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 region Name of the region scoping 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.preview.model.TargetTcpProxyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionUrlMaps collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionUrlMaps.List request = compute.regionUrlMaps().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionUrlMaps regionUrlMaps() { - return new RegionUrlMaps(); - } - - /** - * The "regionUrlMaps" collection of methods. - */ - public class RegionUrlMaps { - - /** - * Deletes the specified UrlMap resource. - * - * Create a request for the method "regionUrlMaps.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String urlMap) throws java.io.IOException { - Delete result = new Delete(project, region, urlMap); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified UrlMap resource. - * - * Create a request for the method "regionUrlMaps.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String urlMap) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 UrlMap resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to delete. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to delete. */ - public Delete setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified UrlMap resource. - * - * Create a request for the method "regionUrlMaps.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 region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String urlMap) throws java.io.IOException { - Get result = new Get(project, region, urlMap); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_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 UrlMap resource. - * - * Create a request for the method "regionUrlMaps.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 region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String urlMap) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.UrlMap.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 UrlMap resource to return. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to return. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to return. */ - public Get setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a UrlMap resource in the specified project using the data included in the request. - * - * Create a request for the method "regionUrlMaps.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.UrlMap content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a UrlMap resource in the specified project using the data included in the request. - * - * Create a request for the method "regionUrlMaps.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.UrlMap content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of UrlMap resources available to the specified project in the specified - * region. - * - * Create a request for the method "regionUrlMaps.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 region Name of the region scoping 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}/urlMaps"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of UrlMap resources available to the specified project in the specified - * region. - * - * Create a request for the method "regionUrlMaps.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 region Name of the region scoping 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.preview.model.UrlMapList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "regionUrlMaps.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) throws java.io.IOException { - Patch result = new Patch(project, region, urlMap, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "regionUrlMaps.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 UrlMap resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to patch. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to patch. */ - public Patch setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Updates the specified UrlMap resource with the data included in the request. - * - * Create a request for the method "regionUrlMaps.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) throws java.io.IOException { - Update result = new Update(project, region, urlMap, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified UrlMap resource with the data included in the request. - * - * Create a request for the method "regionUrlMaps.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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 UrlMap resource to update. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to update. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to update. */ - public Update setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be - * run. Calling this method does NOT create the UrlMap. - * - * Create a request for the method "regionUrlMaps.validate". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Validate#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.preview.model.RegionUrlMapsValidateRequest} - * @return the request - */ - public Validate validate(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.preview.model.RegionUrlMapsValidateRequest content) throws java.io.IOException { - Validate result = new Validate(project, region, urlMap, content); - initialize(result); - return result; - } - - public class Validate extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/validate"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be - * run. Calling this method does NOT create the UrlMap. - * - * Create a request for the method "regionUrlMaps.validate". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Validate#execute()} method to invoke the remote operation.

- * {@link - * Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.preview.model.RegionUrlMapsValidateRequest} - * @since 1.13 - */ - protected Validate(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.preview.model.RegionUrlMapsValidateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.UrlMapsValidateResponse.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); - } - - @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); - } - - @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); - } - - @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); - } - - @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); - } - - @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); - } - - @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); - } - - @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); - } - - @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); - } - - @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); - } - - @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Validate setUserIp(java.lang.String userIp) { - return (Validate) 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 Validate 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 Validate 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 UrlMap resource to be validated as. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to be validated as. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to be validated as. */ - public Validate setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - @Override - public Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RegionZones collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RegionZones.List request = compute.regionZones().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RegionZones regionZones() { - return new RegionZones(); - } - - /** - * The "regionZones" collection of methods. - */ - public class RegionZones { - - /** - * Retrieves the list of Zone resources under the specific region available to the specified - * project. - * - * Create a request for the method "regionZones.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 region 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}/zones"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves the list of Zone resources under the specific region available to the specified - * project. - * - * Create a request for the method "regionZones.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 region 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.preview.model.ZoneList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Regions collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Regions.List request = compute.regions().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Regions regions() { - return new Regions(); - } - - /** - * The "regions" collection of methods. - */ - public class Regions { - - /** - * Returns the specified Region resource. - * - * To decrease latency for this method, you can optionally omit any unneeded information from the - * response by using a field mask. This practice is especially recommended for unused quota - * information (the `quotas` field). To exclude one or more fields, set your request's `fields` - * query parameter to only include the fields you need. For example, to only include the `id` and - * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. - * - * This method fails if the quota information is unavailable for the region and if the organization - * policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when - * enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is - * unavailable for the region. It is recommended to use the default setting for the constraint - * unless your application requires the fail-closed behaviour for this method. - * - * Create a request for the method "regions.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 region Name of the region resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?|[1-9][0-9]{0,19}"); - - /** - * Returns the specified Region resource. - * - * To decrease latency for this method, you can optionally omit any unneeded information from the - * response by using a field mask. This practice is especially recommended for unused quota - * information (the `quotas` field). To exclude one or more fields, set your request's `fields` - * query parameter to only include the fields you need. For example, to only include the `id` and - * `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. - * - * This method fails if the quota information is unavailable for the region and if the - * organization policy constraint compute.requireBasicQuotaInResponse is enforced. This - * constraint, when enforced, disables the fail-open behaviour when quota information (the - * `items.quotas` field) is unavailable for the region. It is recommended to use the default - * setting for the constraint unless your application requires the fail-closed behaviour for this - * method. - * - * Create a request for the method "regions.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 region Name of the region resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Region.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])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region resource to return. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region resource to return. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region resource to return. */ - 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])?|[1-9][0-9]{0,19}"); - } - this.region = region; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of region resources available to the specified project. - * - * To decrease latency for this method, you can optionally omit any unneeded information from the - * response by using a field mask. This practice is especially recommended for unused quota - * information (the `items.quotas` field). To exclude one or more fields, set your request's - * `fields` query parameter to only include the fields you need. For example, to only include the - * `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. - * - * This method fails if the quota information is unavailable for the region and if the organization - * policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when - * enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is - * unavailable for the region. It is recommended to use the default setting for the constraint - * unless your application requires the fail-closed behaviour for this method. - * - * Create a request for the method "regions.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/regions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of region resources available to the specified project. - * - * To decrease latency for this method, you can optionally omit any unneeded information from the - * response by using a field mask. This practice is especially recommended for unused quota - * information (the `items.quotas` field). To exclude one or more fields, set your request's - * `fields` query parameter to only include the fields you need. For example, to only include the - * `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. - * - * This method fails if the quota information is unavailable for the region and if the - * organization policy constraint compute.requireBasicQuotaInResponse is enforced. This - * constraint, when enforced, disables the fail-open behaviour when quota information (the - * `items.quotas` field) is unavailable for the region. It is recommended to use the default - * setting for the constraint unless your application requires the fail-closed behaviour for this - * method. - * - * Create a request for the method "regions.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RegionList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ReliabilityRisks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ReliabilityRisks.List request = compute.reliabilityRisks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ReliabilityRisks reliabilityRisks() { - return new ReliabilityRisks(); - } - - /** - * The "reliabilityRisks" collection of methods. - */ - public class ReliabilityRisks { - - /** - * Returns the specified ReliabilityRisk resource. - * - * Create a request for the method "reliabilityRisks.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 reliabilityRisk Name of the ReliabilityRisk resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String reliabilityRisk) throws java.io.IOException { - Get result = new Get(project, reliabilityRisk); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/reliabilityRisks/{reliabilityRisk}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 RELIABILITY_RISK_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 ReliabilityRisk resource. - * - * Create a request for the method "reliabilityRisks.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 reliabilityRisk Name of the ReliabilityRisk resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String reliabilityRisk) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReliabilityRisk.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.reliabilityRisk = com.google.api.client.util.Preconditions.checkNotNull(reliabilityRisk, "Required parameter reliabilityRisk must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RELIABILITY_RISK_PATTERN.matcher(reliabilityRisk).matches(), - "Parameter reliabilityRisk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 ReliabilityRisk resource to return. */ - @com.google.api.client.util.Key - private java.lang.String reliabilityRisk; - - /** Name of the ReliabilityRisk resource to return. - */ - public java.lang.String getReliabilityRisk() { - return reliabilityRisk; - } - - /** Name of the ReliabilityRisk resource to return. */ - public Get setReliabilityRisk(java.lang.String reliabilityRisk) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RELIABILITY_RISK_PATTERN.matcher(reliabilityRisk).matches(), - "Parameter reliabilityRisk must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.reliabilityRisk = reliabilityRisk; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of reliabilityRisks available in the specified project. - * - * Create a request for the method "reliabilityRisks.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/reliabilityRisks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of reliabilityRisks available in the specified project. - * - * Create a request for the method "reliabilityRisks.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReliabilityRisksListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ReservationBlocks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ReservationBlocks.List request = compute.reservationBlocks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ReservationBlocks reservationBlocks() { - return new ReservationBlocks(); - } - - /** - * The "reservationBlocks" collection of methods. - */ - public class ReservationBlocks { - - /** - * Retrieves information about the specified reservation block. - * - * Create a request for the method "reservationBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @param reservationBlock The name of the reservation block. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock) throws java.io.IOException { - Get result = new Get(project, zone, reservation, reservationBlock); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Retrieves information about the specified reservation block. - * - * Create a request for the method "reservationBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @param reservationBlock The name of the reservation block. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationBlocksGetResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - this.reservationBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationBlock, "Required parameter reservationBlock must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public Get setReservation(java.lang.String reservation) { - this.reservation = reservation; - return this; - } - - /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationBlock; - - /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationBlock() { - return reservationBlock; - } - - /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. - */ - public Get setReservationBlock(java.lang.String reservationBlock) { - this.reservationBlock = reservationBlock; - return this; - } - - /** View of the Block. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** View of the Block. - */ - public java.lang.String getView() { - return view; - } - - /** View of the Block. */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "reservationBlocks.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, parentResource, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "reservationBlocks.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 GetIamPolicy 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 or id of parent resource of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentResource; - - /** Name or id of parent resource of the resource for this request. - */ - public java.lang.String getParentResource() { - return parentResource; - } - - /** Name or id of parent resource of the resource for this request. */ - public GetIamPolicy setParentResource(java.lang.String parentResource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.parentResource = parentResource; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Retrieves a list of reservation blocks under a single reservation. - * - * Create a request for the method "reservationBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String reservation) throws java.io.IOException { - List result = new List(project, zone, reservation); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Retrieves a list of reservation blocks under a single reservation. - * - * Create a request for the method "reservationBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String reservation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationBlocksListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public List setReservation(java.lang.String reservation) { - this.reservation = reservation; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Allows customers to perform maintenance on a reservation block - * - * Create a request for the method "reservationBlocks.performMaintenance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @param reservationBlock The name of the reservation block. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationsBlocksPerformMaintenanceRequest} - * @return the request - */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock, com.google.api.services.compute.preview.model.ReservationsBlocksPerformMaintenanceRequest content) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, reservation, reservationBlock, content); - initialize(result); - return result; - } - - public class PerformMaintenance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - /** - * Allows customers to perform maintenance on a reservation block - * - * Create a request for the method "reservationBlocks.performMaintenance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote - * operation.

{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @param reservationBlock The name of the reservation block. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationsBlocksPerformMaintenanceRequest} - * @since 1.13 - */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, java.lang.String reservationBlock, com.google.api.services.compute.preview.model.ReservationsBlocksPerformMaintenanceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - this.reservationBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationBlock, "Required parameter reservationBlock must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); - } - - @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); - } - - @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); - } - - @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); - } - - @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); - } - - @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); - } - - @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); - } - - @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); - } - - @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); - } - - @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); - } - - @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) 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 PerformMaintenance setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public PerformMaintenance setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public PerformMaintenance setReservation(java.lang.String reservation) { - this.reservation = reservation; - return this; - } - - /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationBlock; - - /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationBlock() { - return reservationBlock; - } - - /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. - */ - public PerformMaintenance setReservationBlock(java.lang.String reservationBlock) { - this.reservationBlock = reservationBlock; - 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 PerformMaintenance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "reservationBlocks.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, parentResource, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "reservationBlocks.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 SetIamPolicy 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 or id of parent resource of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentResource; - - /** Name or id of parent resource of the resource for this request. - */ - public java.lang.String getParentResource() { - return parentResource; - } - - /** Name or id of parent resource of the resource for this request. */ - public SetIamPolicy setParentResource(java.lang.String parentResource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.parentResource = parentResource; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "reservationBlocks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, parentResource, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "reservationBlocks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of parent resource of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentResource; - - /** Name or id of parent resource of the resource for this request. - */ - public java.lang.String getParentResource() { - return parentResource; - } - - /** Name or id of parent resource of the resource for this request. */ - public TestIamPermissions setParentResource(java.lang.String parentResource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.parentResource = parentResource; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ReservationSlots collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ReservationSlots reservationSlots() { - return new ReservationSlots(); - } - - /** - * The "reservationSlots" collection of methods. - */ - public class ReservationSlots { - - /** - * Retrieves information about the specified reservation slot. - * - * Create a request for the method "reservationSlots.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param parentName The name of the parent reservation and parent block, formatted as - reservations/{reservation_name}/re - * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - * @param reservationSlot The name of the reservation slot, formatted as RFC1035 or a resource ID - number. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { - Get result = new Get(project, zone, parentName, reservationSlot); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - - /** - * Retrieves information about the specified reservation slot. - * - * Create a request for the method "reservationSlots.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param parentName The name of the parent reservation and parent block, formatted as - reservations/{reservation_name}/re - * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - * @param reservationSlot The name of the reservation slot, formatted as RFC1035 or a resource ID - number. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationSlotsGetResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** The project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** The project ID for this request. */ - public Get setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block, formatted as reservations/{reservation - * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo - * ck_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r - eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block, formatted as reservations/{reservation - * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo - * ck_name} - */ - public Get setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation slot, formatted as RFC1035 or a resource ID number. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSlot; - - /** The name of the reservation slot, formatted as RFC1035 or a resource ID number. - */ - public java.lang.String getReservationSlot() { - return reservationSlot; - } - - /** - * The name of the reservation slot, formatted as RFC1035 or a resource ID number. - */ - public Get setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Get health info on a reservation slot. - * - * Create a request for the method "reservationSlots.getHealth". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation, parent block and parent sub-block. In - the format of - reservations - * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser - * vation_sub_block_name} - * @param reservationSlot The name of the reservation slot. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public GetHealth getHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { - GetHealth result = new GetHealth(project, zone, parentName, reservationSlot); - initialize(result); - return result; - } - - public class GetHealth extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getHealth"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - - /** - * Get health info on a reservation slot. - * - * Create a request for the method "reservationSlots.getHealth". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

- * {@link - * GetHealth#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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation, parent block and parent sub-block. In - the format of - reservations - * /{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reser - * vation_sub_block_name} - * @param reservationSlot The name of the reservation slot. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected GetHealth(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); - } - - @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); - } - - @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); - } - - @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); - } - - @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); - } - - @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); - } - - @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); - } - - @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); - } - - @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); - } - - @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) 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 GetHealth setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public GetHealth setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation, parent block and parent sub-block. In the format of res - * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock - * s/{reservation_sub_block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation, parent block and parent sub-block. In the format of reservation - s/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_s - ub_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation, parent block and parent sub-block. In the format of res - * ervations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlock - * s/{reservation_sub_block_name} - */ - public GetHealth setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSlot; - - /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationSlot() { - return reservationSlot; - } - - /** - * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. - */ - public GetHealth setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; - 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 GetHealth setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); - } - } - /** - * Allows customers to get SBOM versions of a reservation slot. - * - * Create a request for the method "reservationSlots.getVersion". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - reservations/{reservation_name - * }/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_n - * ame} - * @param reservationSlot The name of the reservation slot. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSlotsGetVersionRequest} - * @return the request - */ - public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.preview.model.ReservationSlotsGetVersionRequest content) throws java.io.IOException { - GetVersion result = new GetVersion(project, zone, parentName, reservationSlot, content); - initialize(result); - return result; - } - - public class GetVersion extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getVersion"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - - /** - * Allows customers to get SBOM versions of a reservation slot. - * - * Create a request for the method "reservationSlots.getVersion". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

- * {@link - * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - reservations/{reservation_name - * }/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_n - * ame} - * @param reservationSlot The name of the reservation slot. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSlotsGetVersionRequest} - * @since 1.13 - */ - protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.preview.model.ReservationSlotsGetVersionRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public GetVersion set$Xgafv(java.lang.String $Xgafv) { - return (GetVersion) super.set$Xgafv($Xgafv); - } - - @Override - public GetVersion setAccessToken(java.lang.String accessToken) { - return (GetVersion) super.setAccessToken(accessToken); - } - - @Override - public GetVersion setAlt(java.lang.String alt) { - return (GetVersion) super.setAlt(alt); - } - - @Override - public GetVersion setCallback(java.lang.String callback) { - return (GetVersion) super.setCallback(callback); - } - - @Override - public GetVersion setFields(java.lang.String fields) { - return (GetVersion) super.setFields(fields); - } - - @Override - public GetVersion setKey(java.lang.String key) { - return (GetVersion) super.setKey(key); - } - - @Override - public GetVersion setOauthToken(java.lang.String oauthToken) { - return (GetVersion) super.setOauthToken(oauthToken); - } - - @Override - public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVersion) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetVersion setQuotaUser(java.lang.String quotaUser) { - return (GetVersion) super.setQuotaUser(quotaUser); - } - - @Override - public GetVersion setUploadType(java.lang.String uploadType) { - return (GetVersion) super.setUploadType(uploadType); - } - - @Override - public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVersion) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetVersion setUserIp(java.lang.String userIp) { - return (GetVersion) 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 GetVersion setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public GetVersion setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block. In the format of reservations/{reserva - * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub - * _block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block. In the format of reservations/{reservation_nam - e}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block. In the format of reservations/{reserva - * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub - * _block_name} - */ - public GetVersion setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSlot; - - /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationSlot() { - return reservationSlot; - } - - /** - * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. - */ - public GetVersion setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; - 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 GetVersion setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); - } - } - /** - * Retrieves a list of reservation slots under a single reservation. - * - * Create a request for the method "reservationSlots.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param parentName The name of the parent reservation and parent block, formatted as - reservations/{reservation_name}/re - * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - * @return the request - */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String parentName) throws java.io.IOException { - List result = new List(project, zone, parentName); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - - /** - * Retrieves a list of reservation slots under a single reservation. - * - * Create a request for the method "reservationSlots.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 The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param parentName The name of the parent reservation and parent block, formatted as - reservations/{reservation_name}/re - * servationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String parentName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationSlotsListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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); - } - - /** The project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** The project ID for this request. */ - public List setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block, formatted as reservations/{reservation - * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo - * ck_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r - eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block, formatted as reservations/{reservation - * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo - * ck_name} - */ - public List setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.parentName = parentName; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Update a reservation slot in the specified sub-block. - * - * Create a request for the method "reservationSlots.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param parentName The name of the sub-block resource. - * @param reservationSlot The name of the slot resource. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSlot} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.preview.model.ReservationSlot content) throws java.io.IOException { - Update result = new Update(project, zone, parentName, reservationSlot, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - - /** - * Update a reservation slot in the specified sub-block. - * - * Create a request for the method "reservationSlots.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param parentName The name of the sub-block resource. - * @param reservationSlot The name of the slot resource. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSlot} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSlot, com.google.api.services.compute.preview.model.ReservationSlot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); - } - - /** The project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** The project ID for this request. */ - public Update setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public Update setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the sub-block resource. */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the sub-block resource. - */ - public java.lang.String getParentName() { - return parentName; - } - - /** The name of the sub-block resource. */ - public Update setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "reservations/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})/reservationSubBlocks/([a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19})"); - } - this.parentName = parentName; - return this; - } - - /** The name of the slot resource. */ - @com.google.api.client.util.Key - private java.lang.String reservationSlot; - - /** The name of the slot resource. - */ - public java.lang.String getReservationSlot() { - return reservationSlot; - } - - /** The name of the slot resource. */ - public Update setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; - return this; - } - - /** The fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** The fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** The fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ReservationSubBlocks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ReservationSubBlocks.List request = compute.reservationSubBlocks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ReservationSubBlocks reservationSubBlocks() { - return new ReservationSubBlocks(); - } - - /** - * The "reservationSubBlocks" collection of methods. - */ - public class ReservationSubBlocks { - - /** - * Retrieves information about the specified reservation subBlock. - * - * Create a request for the method "reservationSubBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException { - Get result = new Get(project, zone, parentName, reservationSubBlock); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); - - /** - * Retrieves information about the specified reservation subBlock. - * - * Create a request for the method "reservationSubBlocks.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 zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationSubBlocksGetResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public Get setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; - - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public Get setReservationSubBlock(java.lang.String reservationSubBlock) { - this.reservationSubBlock = reservationSubBlock; - return this; - } - - /** View of the subBlock. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** View of the subBlock. - */ - public java.lang.String getView() { - return view; - } - - /** View of the subBlock. */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "reservationSubBlocks.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, parentResource, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "reservationSubBlocks.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 GetIamPolicy 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 or id of parent resource of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentResource; - - /** Name or id of parent resource of the resource for this request. - */ - public java.lang.String getParentResource() { - return parentResource; - } - - /** Name or id of parent resource of the resource for this request. */ - public GetIamPolicy setParentResource(java.lang.String parentResource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.parentResource = parentResource; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Allows customers to get SBOM versions of a reservation subBlock. - * - * Create a request for the method "reservationSubBlocks.getVersion". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSubBlocksGetVersionRequest} - * @return the request - */ - public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.preview.model.ReservationSubBlocksGetVersionRequest content) throws java.io.IOException { - GetVersion result = new GetVersion(project, zone, parentName, reservationSubBlock, content); - initialize(result); - return result; - } - - public class GetVersion extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); - - /** - * Allows customers to get SBOM versions of a reservation subBlock. - * - * Create a request for the method "reservationSubBlocks.getVersion". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

- * {@link - * GetVersion#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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSubBlocksGetVersionRequest} - * @since 1.13 - */ - protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.preview.model.ReservationSubBlocksGetVersionRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public GetVersion set$Xgafv(java.lang.String $Xgafv) { - return (GetVersion) super.set$Xgafv($Xgafv); - } - - @Override - public GetVersion setAccessToken(java.lang.String accessToken) { - return (GetVersion) super.setAccessToken(accessToken); - } - - @Override - public GetVersion setAlt(java.lang.String alt) { - return (GetVersion) super.setAlt(alt); - } - - @Override - public GetVersion setCallback(java.lang.String callback) { - return (GetVersion) super.setCallback(callback); - } - - @Override - public GetVersion setFields(java.lang.String fields) { - return (GetVersion) super.setFields(fields); - } - - @Override - public GetVersion setKey(java.lang.String key) { - return (GetVersion) super.setKey(key); - } - - @Override - public GetVersion setOauthToken(java.lang.String oauthToken) { - return (GetVersion) super.setOauthToken(oauthToken); - } - - @Override - public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVersion) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetVersion setQuotaUser(java.lang.String quotaUser) { - return (GetVersion) super.setQuotaUser(quotaUser); - } - - @Override - public GetVersion setUploadType(java.lang.String uploadType) { - return (GetVersion) super.setUploadType(uploadType); - } - - @Override - public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVersion) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetVersion setUserIp(java.lang.String userIp) { - return (GetVersion) 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 GetVersion setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public GetVersion setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public GetVersion setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; - - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public GetVersion setReservationSubBlock(java.lang.String reservationSubBlock) { - this.reservationSubBlock = reservationSubBlock; - 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 GetVersion setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); - } - } - /** - * Retrieves a list of reservation subBlocks under a single reservation. - * - * Create a request for the method "reservationSubBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @return the request - */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String parentName) throws java.io.IOException { - List result = new List(project, zone, parentName); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); - - /** - * Retrieves a list of reservation subBlocks under a single reservation. - * - * Create a request for the method "reservationSubBlocks.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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String parentName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationSubBlocksListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public List setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.parentName = parentName; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Allows customers to perform maintenance on a reservation subBlock - * - * Create a request for the method "reservationSubBlocks.performMaintenance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, parentName, reservationSubBlock); - initialize(result); - return result; - } - - public class PerformMaintenance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); - - /** - * Allows customers to perform maintenance on a reservation subBlock - * - * Create a request for the method "reservationSubBlocks.performMaintenance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote - * operation.

{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); - } - - @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); - } - - @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); - } - - @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); - } - - @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); - } - - @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); - } - - @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); - } - - @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); - } - - @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); - } - - @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); - } - - @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) 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 PerformMaintenance setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public PerformMaintenance setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public PerformMaintenance setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; - - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public PerformMaintenance setReservationSubBlock(java.lang.String reservationSubBlock) { - this.reservationSubBlock = reservationSubBlock; - 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 PerformMaintenance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); - } - } - /** - * Allows customers to report a faulty subBlock. - * - * Create a request for the method "reservationSubBlocks.reportFaulty". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ReportFaulty#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSubBlocksReportFaultyRequest} - * @return the request - */ - public ReportFaulty reportFaulty(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.preview.model.ReservationSubBlocksReportFaultyRequest content) throws java.io.IOException { - ReportFaulty result = new ReportFaulty(project, zone, parentName, reservationSubBlock, content); - initialize(result); - return result; - } - - public class ReportFaulty extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); - - /** - * Allows customers to report a faulty subBlock. - * - * Create a request for the method "reservationSubBlocks.reportFaulty". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ReportFaulty#execute()} method to invoke the remote operation.

- * {@link - * ReportFaulty#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 Name of the zone for this request. Zone name should conform to RFC1035. - * @param parentName The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - * @param reservationSubBlock The name of the reservation subBlock. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationSubBlocksReportFaultyRequest} - * @since 1.13 - */ - protected ReportFaulty(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.preview.model.ReservationSubBlocksReportFaultyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ReportFaulty set$Xgafv(java.lang.String $Xgafv) { - return (ReportFaulty) super.set$Xgafv($Xgafv); - } - - @Override - public ReportFaulty setAccessToken(java.lang.String accessToken) { - return (ReportFaulty) super.setAccessToken(accessToken); - } - - @Override - public ReportFaulty setAlt(java.lang.String alt) { - return (ReportFaulty) super.setAlt(alt); - } - - @Override - public ReportFaulty setCallback(java.lang.String callback) { - return (ReportFaulty) super.setCallback(callback); - } - - @Override - public ReportFaulty setFields(java.lang.String fields) { - return (ReportFaulty) super.setFields(fields); - } - - @Override - public ReportFaulty setKey(java.lang.String key) { - return (ReportFaulty) super.setKey(key); - } - - @Override - public ReportFaulty setOauthToken(java.lang.String oauthToken) { - return (ReportFaulty) super.setOauthToken(oauthToken); - } - - @Override - public ReportFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportFaulty) super.setPrettyPrint(prettyPrint); - } - - @Override - public ReportFaulty setQuotaUser(java.lang.String quotaUser) { - return (ReportFaulty) super.setQuotaUser(quotaUser); - } - - @Override - public ReportFaulty setUploadType(java.lang.String uploadType) { - return (ReportFaulty) super.setUploadType(uploadType); - } - - @Override - public ReportFaulty setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportFaulty) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ReportFaulty setUserIp(java.lang.String userIp) { - return (ReportFaulty) 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 ReportFaulty setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public ReportFaulty setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - @com.google.api.client.util.Key - private java.lang.String parentName; - - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public java.lang.String getParentName() { - return parentName; - } - - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ - public ReportFaulty setParentName(java.lang.String parentName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); - } - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; - - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ - public ReportFaulty setReservationSubBlock(java.lang.String reservationSubBlock) { - this.reservationSubBlock = reservationSubBlock; - 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 ReportFaulty setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public ReportFaulty set(String parameterName, Object value) { - return (ReportFaulty) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "reservationSubBlocks.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, parentResource, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "reservationSubBlocks.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetNestedPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 SetIamPolicy 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 or id of parent resource of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentResource; - - /** Name or id of parent resource of the resource for this request. - */ - public java.lang.String getParentResource() { - return parentResource; - } - - /** Name or id of parent resource of the resource for this request. */ - public SetIamPolicy setParentResource(java.lang.String parentResource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.parentResource = parentResource; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "reservationSubBlocks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, parentResource, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern PARENT_RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "reservationSubBlocks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param parentResource Name or id of parent resource of the resource for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.parentResource = com.google.api.client.util.Preconditions.checkNotNull(parentResource, "Required parameter parentResource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of parent resource of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentResource; - - /** Name or id of parent resource of the resource for this request. - */ - public java.lang.String getParentResource() { - return parentResource; - } - - /** Name or id of parent resource of the resource for this request. */ - public TestIamPermissions setParentResource(java.lang.String parentResource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_RESOURCE_PATTERN.matcher(parentResource).matches(), - "Parameter parentResource must conform to the pattern " + - "[a-z](?:[-a-zA-Z0-9/]{0,255}[a-zA-Z0-9])?"); - } - this.parentResource = parentResource; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Reservations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Reservations.List request = compute.reservations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Reservations reservations() { - return new Reservations(); - } - - /** - * The "reservations" collection of methods. - */ - public class Reservations { - - /** - * Retrieves an aggregated list of reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "reservations.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/reservations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "reservations.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ReservationAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified reservation. - * - * Create a request for the method "reservations.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param reservation Name of the reservation to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String reservation) throws java.io.IOException { - Delete result = new Delete(project, zone, reservation); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESERVATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified reservation. - * - * Create a request for the method "reservations.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 Name of the zone for this request. - * @param reservation Name of the reservation to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String reservation) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Delete 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 reservation to delete. */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** Name of the reservation to delete. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** Name of the reservation to delete. */ - public Delete setReservation(java.lang.String reservation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.reservation = reservation; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves information about the specified reservation. - * - * Create a request for the method "reservations.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 zone Name of the zone for this request. - * @param reservation Name of the reservation to retrieve. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String reservation) throws java.io.IOException { - Get result = new Get(project, zone, reservation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESERVATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves information about the specified reservation. - * - * Create a request for the method "reservations.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 zone Name of the zone for this request. - * @param reservation Name of the reservation to retrieve. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String reservation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Reservation.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])?"); - } - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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 reservation to retrieve. */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** Name of the reservation to retrieve. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** Name of the reservation to retrieve. */ - public Get setReservation(java.lang.String reservation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.reservation = reservation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "reservations.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "reservations.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 GetIamPolicy 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a new reservation. For more information, readReserving zonal resources. - * - * Create a request for the method "reservations.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Reservation} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Reservation content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new reservation. For more information, readReserving zonal resources. - * - * Create a request for the method "reservations.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Reservation} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.Reservation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * A list of all the reservations that have been configured for the specified project in specified - * zone. - * - * Create a request for the method "reservations.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 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}/reservations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * A list of all the reservations that have been configured for the specified project in specified - * zone. - * - * Create a request for the method "reservations.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 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.preview.model.ReservationList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Perform maintenance on an extended reservation - * - * Create a request for the method "reservations.performMaintenance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationsPerformMaintenanceRequest} - * @return the request - */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.preview.model.ReservationsPerformMaintenanceRequest content) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, reservation, content); - initialize(result); - return result; - } - - public class PerformMaintenance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern RESERVATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Perform maintenance on an extended reservation - * - * Create a request for the method "reservations.performMaintenance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote - * operation.

{@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationsPerformMaintenanceRequest} - * @since 1.13 - */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.preview.model.ReservationsPerformMaintenanceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); - } - - @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); - } - - @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); - } - - @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); - } - - @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); - } - - @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); - } - - @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); - } - - @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); - } - - @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); - } - - @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); - } - - @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) 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 PerformMaintenance setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public PerformMaintenance setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public PerformMaintenance setReservation(java.lang.String reservation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.reservation = reservation; - 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 PerformMaintenance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); - } - } - /** - * Resizes the reservation (applicable to standalone reservations only). For more information, - * readModifying reservations. - * - * Create a request for the method "reservations.resize". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param reservation Name of the reservation to update. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationsResizeRequest} - * @return the request - */ - public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.preview.model.ReservationsResizeRequest content) throws java.io.IOException { - Resize result = new Resize(project, zone, reservation, content); - initialize(result); - return result; - } - - public class Resize extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/resize"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESERVATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Resizes the reservation (applicable to standalone reservations only). For more information, - * readModifying reservations. - * - * Create a request for the method "reservations.resize". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

{@link - * Resize#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 Name of the zone for this request. - * @param reservation Name of the reservation to update. - * @param content the {@link com.google.api.services.compute.preview.model.ReservationsResizeRequest} - * @since 1.13 - */ - protected Resize(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.preview.model.ReservationsResizeRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); - } - - @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); - } - - @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); - } - - @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); - } - - @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); - } - - @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); - } - - @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); - } - - @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); - } - - @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); - } - - @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) 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 Resize 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Resize 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 reservation to update. */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** Name of the reservation to update. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** Name of the reservation to update. */ - public Resize setReservation(java.lang.String reservation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.reservation = reservation; - 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 Resize setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "reservations.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "reservations.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 SetIamPolicy 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "reservations.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "reservations.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Update share settings of the reservation. - * - * Create a request for the method "reservations.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param reservation Name of the reservation to update. - * @param content the {@link com.google.api.services.compute.preview.model.Reservation} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.preview.model.Reservation content) throws java.io.IOException { - Update result = new Update(project, zone, reservation, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESERVATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Update share settings of the reservation. - * - * Create a request for the method "reservations.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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 Name of the zone for this request. - * @param reservation Name of the reservation to update. - * @param content the {@link com.google.api.services.compute.preview.model.Reservation} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String reservation, com.google.api.services.compute.preview.model.Reservation content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Update 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 reservation to update. */ - @com.google.api.client.util.Key - private java.lang.String reservation; - - /** Name of the reservation to update. - */ - public java.lang.String getReservation() { - return reservation; - } - - /** Name of the reservation to update. */ - public Update setReservation(java.lang.String reservation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.reservation = reservation; - return this; - } - - @com.google.api.client.util.Key - private java.util.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Update setPaths(java.util.List paths) { - this.paths = paths; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ResourcePolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ResourcePolicies.List request = compute.resourcePolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ResourcePolicies resourcePolicies() { - return new ResourcePolicies(); - } - - /** - * The "resourcePolicies" collection of methods. - */ - public class ResourcePolicies { - - /** - * Retrieves an aggregated list of resource policies. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "resourcePolicies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/resourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of resource policies. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "resourcePolicies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ResourcePolicyAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified resource policy. - * - * Create a request for the method "resourcePolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param resourcePolicy Name of the resource policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) throws java.io.IOException { - Delete result = new Delete(project, region, resourcePolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified resource policy. - * - * Create a request for the method "resourcePolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param resourcePolicy Name of the resource policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.resourcePolicy = com.google.api.client.util.Preconditions.checkNotNull(resourcePolicy, "Required parameter resourcePolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 resource policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String resourcePolicy; - - /** Name of the resource policy to delete. - */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; - } - - /** Name of the resource policy to delete. */ - public Delete setResourcePolicy(java.lang.String resourcePolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resourcePolicy = resourcePolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves all information of the specified resource policy. - * - * Create a request for the method "resourcePolicies.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 region Name of the region for this request. - * @param resourcePolicy Name of the resource policy to retrieve. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) throws java.io.IOException { - Get result = new Get(project, region, resourcePolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves all information of the specified resource policy. - * - * Create a request for the method "resourcePolicies.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 region Name of the region for this request. - * @param resourcePolicy Name of the resource policy to retrieve. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ResourcePolicy.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.resourcePolicy = com.google.api.client.util.Preconditions.checkNotNull(resourcePolicy, "Required parameter resourcePolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 resource policy to retrieve. */ - @com.google.api.client.util.Key - private java.lang.String resourcePolicy; - - /** Name of the resource policy to retrieve. - */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; - } - - /** Name of the resource policy to retrieve. */ - public Get setResourcePolicy(java.lang.String resourcePolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resourcePolicy = resourcePolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "resourcePolicies.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "resourcePolicies.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a new resource policy. - * - * Create a request for the method "resourcePolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ResourcePolicy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.ResourcePolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new resource policy. - * - * Create a request for the method "resourcePolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ResourcePolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.ResourcePolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * A list all the resource policies that have been configured for the specified project in specified - * region. - * - * Create a request for the method "resourcePolicies.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 region 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}/resourcePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * A list all the resource policies that have been configured for the specified project in - * specified region. - * - * Create a request for the method "resourcePolicies.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 region 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.preview.model.ResourcePolicyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Modify the specified resource policy. - * - * Create a request for the method "resourcePolicies.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 Project ID for this request. - * @param region Name of the region for this request. - * @param resourcePolicy Id of the resource policy to patch. - * @param content the {@link com.google.api.services.compute.preview.model.ResourcePolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy, com.google.api.services.compute.preview.model.ResourcePolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, resourcePolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Modify the specified resource policy. - * - * Create a request for the method "resourcePolicies.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 Project ID for this request. - * @param region Name of the region for this request. - * @param resourcePolicy Id of the resource policy to patch. - * @param content the {@link com.google.api.services.compute.preview.model.ResourcePolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String resourcePolicy, com.google.api.services.compute.preview.model.ResourcePolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.resourcePolicy = com.google.api.client.util.Preconditions.checkNotNull(resourcePolicy, "Required parameter resourcePolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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; - } - - /** Id of the resource policy to patch. */ - @com.google.api.client.util.Key - private java.lang.String resourcePolicy; - - /** Id of the resource policy to patch. - */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; - } - - /** Id of the resource policy to patch. */ - public Patch setResourcePolicy(java.lang.String resourcePolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resourcePolicy = resourcePolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "resourcePolicies.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "resourcePolicies.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "resourcePolicies.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "resourcePolicies.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the RolloutPlans collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.RolloutPlans.List request = compute.rolloutPlans().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public RolloutPlans rolloutPlans() { - return new RolloutPlans(); - } - - /** - * The "rolloutPlans" collection of methods. - */ - public class RolloutPlans { - - /** - * Deletes a RolloutPlan. - * - * Create a request for the method "rolloutPlans.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param rolloutPlan Name of the RolloutPlan resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { - Delete result = new Delete(project, rolloutPlan); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PLAN_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes a RolloutPlan. - * - * Create a request for the method "rolloutPlans.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 rolloutPlan Name of the RolloutPlan resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String rolloutPlan) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), - "Parameter rolloutPlan must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 RolloutPlan resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String rolloutPlan; - - /** Name of the RolloutPlan resource to delete. - */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; - } - - /** Name of the RolloutPlan resource to delete. */ - public Delete setRolloutPlan(java.lang.String rolloutPlan) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), - "Parameter rolloutPlan must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rolloutPlan = rolloutPlan; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets details of a single project-scoped RolloutPlan. - * - * Create a request for the method "rolloutPlans.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 rolloutPlan Name of the persistent rollout plan to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { - Get result = new Get(project, rolloutPlan); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PLAN_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets details of a single project-scoped RolloutPlan. - * - * Create a request for the method "rolloutPlans.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 rolloutPlan Name of the persistent rollout plan to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String rolloutPlan) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RolloutPlan.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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), - "Parameter rolloutPlan must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 persistent rollout plan to return. */ - @com.google.api.client.util.Key - private java.lang.String rolloutPlan; - - /** Name of the persistent rollout plan to return. - */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; - } - - /** Name of the persistent rollout plan to return. */ - public Get setRolloutPlan(java.lang.String rolloutPlan) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), - "Parameter rolloutPlan must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rolloutPlan = rolloutPlan; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new RolloutPlan in a given project and location. - * - * Create a request for the method "rolloutPlans.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RolloutPlan} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.RolloutPlan content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new RolloutPlan in a given project and location. - * - * Create a request for the method "rolloutPlans.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.RolloutPlan} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.RolloutPlan content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists RolloutPlans in a given project and location. - * - * Create a request for the method "rolloutPlans.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists RolloutPlans in a given project and location. - * - * Create a request for the method "rolloutPlans.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RolloutPlansListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Rollouts collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Rollouts.List request = compute.rollouts().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Rollouts rollouts() { - return new Rollouts(); - } - - /** - * The "rollouts" collection of methods. - */ - public class Rollouts { - - /** - * Advances a Rollout to the next wave, or completes it if no waves remain. - * - * Create a request for the method "rollouts.advance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Advance#execute()} method to invoke the remote operation. - * - * @param project Required. Project ID for this request. - * @param rollout Required. Name of the Rollout resource to advance. - * @return the request - */ - public Advance advance(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Advance result = new Advance(project, rollout); - initialize(result); - return result; - } - - public class Advance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}/advance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Advances a Rollout to the next wave, or completes it if no waves remain. - * - * Create a request for the method "rollouts.advance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Advance#execute()} method to invoke the remote operation.

- * {@link - * Advance#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 rollout Required. Name of the Rollout resource to advance. - * @since 1.13 - */ - protected Advance(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Advance set$Xgafv(java.lang.String $Xgafv) { - return (Advance) super.set$Xgafv($Xgafv); - } - - @Override - public Advance setAccessToken(java.lang.String accessToken) { - return (Advance) super.setAccessToken(accessToken); - } - - @Override - public Advance setAlt(java.lang.String alt) { - return (Advance) super.setAlt(alt); - } - - @Override - public Advance setCallback(java.lang.String callback) { - return (Advance) super.setCallback(callback); - } - - @Override - public Advance setFields(java.lang.String fields) { - return (Advance) super.setFields(fields); - } - - @Override - public Advance setKey(java.lang.String key) { - return (Advance) super.setKey(key); - } - - @Override - public Advance setOauthToken(java.lang.String oauthToken) { - return (Advance) super.setOauthToken(oauthToken); - } - - @Override - public Advance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Advance) super.setPrettyPrint(prettyPrint); - } - - @Override - public Advance setQuotaUser(java.lang.String quotaUser) { - return (Advance) super.setQuotaUser(quotaUser); - } - - @Override - public Advance setUploadType(java.lang.String uploadType) { - return (Advance) super.setUploadType(uploadType); - } - - @Override - public Advance setUploadProtocol(java.lang.String uploadProtocol) { - return (Advance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Advance setUserIp(java.lang.String userIp) { - return (Advance) 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 Advance 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 Rollout resource to advance. */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** Required. Name of the Rollout resource to advance. - */ - public java.lang.String getRollout() { - return rollout; - } - - /** Required. Name of the Rollout resource to advance. */ - public Advance setRollout(java.lang.String rollout) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rollout = rollout; - return this; - } - - /** Required. Wave number of the current wave. */ - @com.google.api.client.util.Key - private java.lang.Long currentWaveNumber; - - /** Required. Wave number of the current wave. - */ - public java.lang.Long getCurrentWaveNumber() { - return currentWaveNumber; - } - - /** Required. Wave number of the current wave. */ - public Advance setCurrentWaveNumber(java.lang.Long currentWaveNumber) { - this.currentWaveNumber = currentWaveNumber; - 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 Advance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Advance set(String parameterName, Object value) { - return (Advance) super.set(parameterName, value); - } - } - /** - * Cancels a Rollout. - * - * Create a request for the method "rollouts.cancel". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param rollout Name of the Rollout resource to cancel. - * @return the request - */ - public Cancel cancel(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Cancel result = new Cancel(project, rollout); - initialize(result); - return result; - } - - public class Cancel extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Cancels a Rollout. - * - * Create a request for the method "rollouts.cancel". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link - * Cancel#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 rollout Name of the Rollout resource to cancel. - * @since 1.13 - */ - protected Cancel(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "PATCH", REST_PATH, null, com.google.api.services.compute.preview.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) 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 Cancel 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 Rollout resource to cancel. */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** Name of the Rollout resource to cancel. - */ - public java.lang.String getRollout() { - return rollout; - } - - /** Name of the Rollout resource to cancel. */ - public Cancel setRollout(java.lang.String rollout) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rollout = rollout; - 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 Cancel setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** - * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the - * rollout without taking any further actions. Note that products must support at least one of - * these options, however, it does not need to support both. - */ - @com.google.api.client.util.Key - private java.lang.Boolean rollback; - - /** Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the rollout - without taking any further actions. Note that products must support at least one of these options, - however, it does not need to support both. - */ - public java.lang.Boolean getRollback() { - return rollback; - } - - /** - * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the - * rollout without taking any further actions. Note that products must support at least one of - * these options, however, it does not need to support both. - */ - public Cancel setRollback(java.lang.Boolean rollback) { - this.rollback = rollback; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes a Rollout. - * - * Create a request for the method "rollouts.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param rollout Name of the Rollout resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Delete result = new Delete(project, rollout); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes a Rollout. - * - * Create a request for the method "rollouts.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 rollout Name of the Rollout resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Rollout resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** Name of the Rollout resource to delete. - */ - public java.lang.String getRollout() { - return rollout; - } - - /** Name of the Rollout resource to delete. */ - public Delete setRollout(java.lang.String rollout) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rollout = rollout; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets details of a single project-scoped Rollout. - * - * Create a request for the method "rollouts.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 rollout Name of the persistent rollout to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Get result = new Get(project, rollout); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets details of a single project-scoped Rollout. - * - * Create a request for the method "rollouts.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 rollout Name of the persistent rollout to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Rollout.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 persistent rollout to return. */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** Name of the persistent rollout to return. - */ - public java.lang.String getRollout() { - return rollout; - } - - /** Name of the persistent rollout to return. */ - public Get setRollout(java.lang.String rollout) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rollout = rollout; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists Rollouts in a given project and location. - * - * Create a request for the method "rollouts.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/rollouts"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists Rollouts in a given project and location. - * - * Create a request for the method "rollouts.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RolloutsListResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Pauses a Rollout. - * - * Create a request for the method "rollouts.pause". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Pause#execute()} method to invoke the remote operation. - * - * @param project Required. Project ID for this request. - * @param rollout Required. Name of the Rollout resource to pause. - * @return the request - */ - public Pause pause(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Pause result = new Pause(project, rollout); - initialize(result); - return result; - } - - public class Pause extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}/pause"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Pauses a Rollout. - * - * Create a request for the method "rollouts.pause". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Pause#execute()} method to invoke the remote operation.

{@link - * Pause#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 rollout Required. Name of the Rollout resource to pause. - * @since 1.13 - */ - protected Pause(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Pause set$Xgafv(java.lang.String $Xgafv) { - return (Pause) super.set$Xgafv($Xgafv); - } - - @Override - public Pause setAccessToken(java.lang.String accessToken) { - return (Pause) super.setAccessToken(accessToken); - } - - @Override - public Pause setAlt(java.lang.String alt) { - return (Pause) super.setAlt(alt); - } - - @Override - public Pause setCallback(java.lang.String callback) { - return (Pause) super.setCallback(callback); - } - - @Override - public Pause setFields(java.lang.String fields) { - return (Pause) super.setFields(fields); - } - - @Override - public Pause setKey(java.lang.String key) { - return (Pause) super.setKey(key); - } - - @Override - public Pause setOauthToken(java.lang.String oauthToken) { - return (Pause) super.setOauthToken(oauthToken); - } - - @Override - public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Pause) super.setPrettyPrint(prettyPrint); - } - - @Override - public Pause setQuotaUser(java.lang.String quotaUser) { - return (Pause) super.setQuotaUser(quotaUser); - } - - @Override - public Pause setUploadType(java.lang.String uploadType) { - return (Pause) super.setUploadType(uploadType); - } - - @Override - public Pause setUploadProtocol(java.lang.String uploadProtocol) { - return (Pause) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Pause setUserIp(java.lang.String userIp) { - return (Pause) 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 Pause 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 Rollout resource to pause. */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** Required. Name of the Rollout resource to pause. - */ - public java.lang.String getRollout() { - return rollout; - } - - /** Required. Name of the Rollout resource to pause. */ - public Pause setRollout(java.lang.String rollout) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rollout = rollout; - return this; - } - - /** - * The etag of the Rollout. If this is provided, the request will only succeed if the etag - * matches the current etag of the Rollout. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the - current etag of the Rollout. - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * The etag of the Rollout. If this is provided, the request will only succeed if the etag - * matches the current etag of the Rollout. - */ - public Pause 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 - * 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 Pause setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Pause set(String parameterName, Object value) { - return (Pause) super.set(parameterName, value); - } - } - /** - * Resumes a Rollout. - * - * Create a request for the method "rollouts.resume". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resume#execute()} method to invoke the remote operation. - * - * @param project Required. Project ID for this request. - * @param rollout Required. Name of the Rollout resource to resume. - * @return the request - */ - public Resume resume(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Resume result = new Resume(project, rollout); - initialize(result); - return result; - } - - public class Resume extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}/resume"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROLLOUT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Resumes a Rollout. - * - * Create a request for the method "rollouts.resume". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

{@link - * Resume#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 rollout Required. Name of the Rollout resource to resume. - * @since 1.13 - */ - protected Resume(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Resume set$Xgafv(java.lang.String $Xgafv) { - return (Resume) super.set$Xgafv($Xgafv); - } - - @Override - public Resume setAccessToken(java.lang.String accessToken) { - return (Resume) super.setAccessToken(accessToken); - } - - @Override - public Resume setAlt(java.lang.String alt) { - return (Resume) super.setAlt(alt); - } - - @Override - public Resume setCallback(java.lang.String callback) { - return (Resume) super.setCallback(callback); - } - - @Override - public Resume setFields(java.lang.String fields) { - return (Resume) super.setFields(fields); - } - - @Override - public Resume setKey(java.lang.String key) { - return (Resume) super.setKey(key); - } - - @Override - public Resume setOauthToken(java.lang.String oauthToken) { - return (Resume) super.setOauthToken(oauthToken); - } - - @Override - public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resume) super.setPrettyPrint(prettyPrint); - } - - @Override - public Resume setQuotaUser(java.lang.String quotaUser) { - return (Resume) super.setQuotaUser(quotaUser); - } - - @Override - public Resume setUploadType(java.lang.String uploadType) { - return (Resume) super.setUploadType(uploadType); - } - - @Override - public Resume setUploadProtocol(java.lang.String uploadProtocol) { - return (Resume) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Resume setUserIp(java.lang.String userIp) { - return (Resume) 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 Resume 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 Rollout resource to resume. */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** Required. Name of the Rollout resource to resume. - */ - public java.lang.String getRollout() { - return rollout; - } - - /** Required. Name of the Rollout resource to resume. */ - public Resume setRollout(java.lang.String rollout) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.rollout = rollout; - return this; - } - - /** - * The etag of the Rollout. If this is provided, the request will only succeed if the etag - * matches the current etag of the Rollout. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the - current etag of the Rollout. - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * The etag of the Rollout. If this is provided, the request will only succeed if the etag - * matches the current etag of the Rollout. - */ - public Resume 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 - * 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 Resume setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resume set(String parameterName, Object value) { - return (Resume) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Routers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Routers.List request = compute.routers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Routers routers() { - return new Routers(); - } - - /** - * The "routers" collection of methods. - */ - public class Routers { - - /** - * Retrieves an aggregated list of routers. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "routers.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/routers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of routers. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "routers.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RouterAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified Router resource. - * - * Create a request for the method "routers.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - Delete result = new Delete(project, region, router); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Router resource. - * - * Create a request for the method "routers.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 Router resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to delete. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource to delete. */ - public Delete setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes Named Set - * - * Create a request for the method "routers.deleteNamedSet". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteNamedSet#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource where Named Set is defined. - * @return the request - */ - public DeleteNamedSet deleteNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - DeleteNamedSet result = new DeleteNamedSet(project, region, router); - initialize(result); - return result; - } - - public class DeleteNamedSet extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteNamedSet"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes Named Set - * - * Create a request for the method "routers.deleteNamedSet". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteNamedSet#execute()} method to invoke the remote operation. - *

{@link DeleteNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 for this request. - * @param router Name of the Router resource where Named Set is defined. - * @since 1.13 - */ - protected DeleteNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNamedSet) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteNamedSet setAccessToken(java.lang.String accessToken) { - return (DeleteNamedSet) super.setAccessToken(accessToken); - } - - @Override - public DeleteNamedSet setAlt(java.lang.String alt) { - return (DeleteNamedSet) super.setAlt(alt); - } - - @Override - public DeleteNamedSet setCallback(java.lang.String callback) { - return (DeleteNamedSet) super.setCallback(callback); - } - - @Override - public DeleteNamedSet setFields(java.lang.String fields) { - return (DeleteNamedSet) super.setFields(fields); - } - - @Override - public DeleteNamedSet setKey(java.lang.String key) { - return (DeleteNamedSet) super.setKey(key); - } - - @Override - public DeleteNamedSet setOauthToken(java.lang.String oauthToken) { - return (DeleteNamedSet) super.setOauthToken(oauthToken); - } - - @Override - public DeleteNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNamedSet) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteNamedSet setQuotaUser(java.lang.String quotaUser) { - return (DeleteNamedSet) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteNamedSet setUploadType(java.lang.String uploadType) { - return (DeleteNamedSet) super.setUploadType(uploadType); - } - - @Override - public DeleteNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNamedSet) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteNamedSet setUserIp(java.lang.String userIp) { - return (DeleteNamedSet) 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 DeleteNamedSet 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public DeleteNamedSet 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 Router resource where Named Set is defined. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource where Named Set is defined. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource where Named Set is defined. */ - public DeleteNamedSet setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - return this; - } - - /** The Named Set name for this request. Name must conform to RFC1035 */ - @com.google.api.client.util.Key - private java.lang.String namedSet; - - /** The Named Set name for this request. Name must conform to RFC1035 - */ - public java.lang.String getNamedSet() { - return namedSet; - } - - /** The Named Set name for this request. Name must conform to RFC1035 */ - public DeleteNamedSet setNamedSet(java.lang.String namedSet) { - this.namedSet = namedSet; - 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 DeleteNamedSet setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteNamedSet set(String parameterName, Object value) { - return (DeleteNamedSet) super.set(parameterName, value); - } - } - /** - * Deletes Route Policy - * - * Create a request for the method "routers.deleteRoutePolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteRoutePolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource where Route Policy is defined. - * @return the request - */ - public DeleteRoutePolicy deleteRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - DeleteRoutePolicy result = new DeleteRoutePolicy(project, region, router); - initialize(result); - return result; - } - - public class DeleteRoutePolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes Route Policy - * - * Create a request for the method "routers.deleteRoutePolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteRoutePolicy#execute()} method to invoke the remote operation. - *

{@link DeleteRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 for this request. - * @param router Name of the Router resource where Route Policy is defined. - * @since 1.13 - */ - protected DeleteRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public DeleteRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (DeleteRoutePolicy) super.set$Xgafv($Xgafv); - } - - @Override - public DeleteRoutePolicy setAccessToken(java.lang.String accessToken) { - return (DeleteRoutePolicy) super.setAccessToken(accessToken); - } - - @Override - public DeleteRoutePolicy setAlt(java.lang.String alt) { - return (DeleteRoutePolicy) super.setAlt(alt); - } - - @Override - public DeleteRoutePolicy setCallback(java.lang.String callback) { - return (DeleteRoutePolicy) super.setCallback(callback); - } - - @Override - public DeleteRoutePolicy setFields(java.lang.String fields) { - return (DeleteRoutePolicy) super.setFields(fields); - } - - @Override - public DeleteRoutePolicy setKey(java.lang.String key) { - return (DeleteRoutePolicy) super.setKey(key); - } - - @Override - public DeleteRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (DeleteRoutePolicy) super.setOauthToken(oauthToken); - } - - @Override - public DeleteRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteRoutePolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeleteRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (DeleteRoutePolicy) super.setQuotaUser(quotaUser); - } - - @Override - public DeleteRoutePolicy setUploadType(java.lang.String uploadType) { - return (DeleteRoutePolicy) super.setUploadType(uploadType); - } - - @Override - public DeleteRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteRoutePolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public DeleteRoutePolicy setUserIp(java.lang.String userIp) { - return (DeleteRoutePolicy) 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 DeleteRoutePolicy 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public DeleteRoutePolicy 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 Router resource where Route Policy is defined. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource where Route Policy is defined. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource where Route Policy is defined. */ - public DeleteRoutePolicy setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - return this; - } - - /** The Policy name for this request. Name must conform to RFC1035 */ - @com.google.api.client.util.Key - private java.lang.String policy; - - /** The Policy name for this request. Name must conform to RFC1035 - */ - public java.lang.String getPolicy() { - return policy; - } - - /** The Policy name for this request. Name must conform to RFC1035 */ - public DeleteRoutePolicy setPolicy(java.lang.String policy) { - this.policy = policy; - 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 DeleteRoutePolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public DeleteRoutePolicy set(String parameterName, Object value) { - return (DeleteRoutePolicy) super.set(parameterName, value); - } - } - /** - * Returns the specified Router resource. - * - * Create a request for the method "routers.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 region Name of the region for this request. - * @param router Name of the Router resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - Get result = new Get(project, region, router); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_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 Router resource. - * - * Create a request for the method "routers.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 region Name of the region for this request. - * @param router Name of the Router resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Router.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 Router resource to return. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to return. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource to return. */ - public Get setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns specified Named Set - * - * Create a request for the method "routers.getNamedSet". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetNamedSet#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query for the named set. The name should - conform to RFC1035. - * @return the request - */ - public GetNamedSet getNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - GetNamedSet result = new GetNamedSet(project, region, router); - initialize(result); - return result; - } - - public class GetNamedSet extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNamedSet"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 specified Named Set - * - * Create a request for the method "routers.getNamedSet". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetNamedSet#execute()} method to invoke the remote operation.

- * {@link - * GetNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query for the named set. The name should - conform to RFC1035. - * @since 1.13 - */ - protected GetNamedSet(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RoutersGetNamedSetResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (GetNamedSet) super.set$Xgafv($Xgafv); - } - - @Override - public GetNamedSet setAccessToken(java.lang.String accessToken) { - return (GetNamedSet) super.setAccessToken(accessToken); - } - - @Override - public GetNamedSet setAlt(java.lang.String alt) { - return (GetNamedSet) super.setAlt(alt); - } - - @Override - public GetNamedSet setCallback(java.lang.String callback) { - return (GetNamedSet) super.setCallback(callback); - } - - @Override - public GetNamedSet setFields(java.lang.String fields) { - return (GetNamedSet) super.setFields(fields); - } - - @Override - public GetNamedSet setKey(java.lang.String key) { - return (GetNamedSet) super.setKey(key); - } - - @Override - public GetNamedSet setOauthToken(java.lang.String oauthToken) { - return (GetNamedSet) super.setOauthToken(oauthToken); - } - - @Override - public GetNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNamedSet) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetNamedSet setQuotaUser(java.lang.String quotaUser) { - return (GetNamedSet) super.setQuotaUser(quotaUser); - } - - @Override - public GetNamedSet setUploadType(java.lang.String uploadType) { - return (GetNamedSet) super.setUploadType(uploadType); - } - - @Override - public GetNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNamedSet) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetNamedSet setUserIp(java.lang.String userIp) { - return (GetNamedSet) 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 GetNamedSet 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetNamedSet 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 Router resource to query for the named set. The name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to query for the named set. The name should conform to RFC1035. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name of the Router resource to query for the named set. The name should conform to RFC1035. - */ - public GetNamedSet setRouter(java.lang.String router) { - this.router = router; - return this; - } - - /** The Named Set name for this request. Name must conform to RFC1035 */ - @com.google.api.client.util.Key - private java.lang.String namedSet; - - /** The Named Set name for this request. Name must conform to RFC1035 - */ - public java.lang.String getNamedSet() { - return namedSet; - } - - /** The Named Set name for this request. Name must conform to RFC1035 */ - public GetNamedSet setNamedSet(java.lang.String namedSet) { - this.namedSet = namedSet; - return this; - } - - @Override - public GetNamedSet set(String parameterName, Object value) { - return (GetNamedSet) super.set(parameterName, value); - } - } - /** - * Retrieves runtime NAT IP information. - * - * Create a request for the method "routers.getNatIpInfo". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetNatIpInfo#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query for Nat IP information. The name - should conform to RFC1035. - * @return the request - */ - public GetNatIpInfo getNatIpInfo(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - GetNatIpInfo result = new GetNatIpInfo(project, region, router); - initialize(result); - return result; - } - - public class GetNatIpInfo extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves runtime NAT IP information. - * - * Create a request for the method "routers.getNatIpInfo". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetNatIpInfo#execute()} method to invoke the remote operation.

- * {@link - * GetNatIpInfo#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query for Nat IP information. The name - should conform to RFC1035. - * @since 1.13 - */ - protected GetNatIpInfo(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.NatIpInfoResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetNatIpInfo set$Xgafv(java.lang.String $Xgafv) { - return (GetNatIpInfo) super.set$Xgafv($Xgafv); - } - - @Override - public GetNatIpInfo setAccessToken(java.lang.String accessToken) { - return (GetNatIpInfo) super.setAccessToken(accessToken); - } - - @Override - public GetNatIpInfo setAlt(java.lang.String alt) { - return (GetNatIpInfo) super.setAlt(alt); - } - - @Override - public GetNatIpInfo setCallback(java.lang.String callback) { - return (GetNatIpInfo) super.setCallback(callback); - } - - @Override - public GetNatIpInfo setFields(java.lang.String fields) { - return (GetNatIpInfo) super.setFields(fields); - } - - @Override - public GetNatIpInfo setKey(java.lang.String key) { - return (GetNatIpInfo) super.setKey(key); - } - - @Override - public GetNatIpInfo setOauthToken(java.lang.String oauthToken) { - return (GetNatIpInfo) super.setOauthToken(oauthToken); - } - - @Override - public GetNatIpInfo setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNatIpInfo) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetNatIpInfo setQuotaUser(java.lang.String quotaUser) { - return (GetNatIpInfo) super.setQuotaUser(quotaUser); - } - - @Override - public GetNatIpInfo setUploadType(java.lang.String uploadType) { - return (GetNatIpInfo) super.setUploadType(uploadType); - } - - @Override - public GetNatIpInfo setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNatIpInfo) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetNatIpInfo setUserIp(java.lang.String userIp) { - return (GetNatIpInfo) 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 GetNatIpInfo 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetNatIpInfo 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 Router resource to query for Nat IP information. The name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name of the Router resource to query for Nat IP information. The name should conform to - * RFC1035. - */ - public GetNatIpInfo setRouter(java.lang.String router) { - this.router = router; - return this; - } - - /** - * Name of the nat service to filter the NAT IP information. If it is omitted, all nats for - * this router will be returned. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String natName; - - /** Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this - router will be returned. Name should conform to RFC1035. - */ - public java.lang.String getNatName() { - return natName; - } - - /** - * Name of the nat service to filter the NAT IP information. If it is omitted, all nats for - * this router will be returned. Name should conform to RFC1035. - */ - public GetNatIpInfo setNatName(java.lang.String natName) { - this.natName = natName; - return this; - } - - @Override - public GetNatIpInfo set(String parameterName, Object value) { - return (GetNatIpInfo) super.set(parameterName, value); - } - } - /** - * Retrieves runtime Nat mapping information of VM endpoints. - * - * Create a request for the method "routers.getNatMappingInfo". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetNatMappingInfo#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query for Nat Mapping information of - VM endpoints. - * @return the request - */ - public GetNatMappingInfo getNatMappingInfo(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - GetNatMappingInfo result = new GetNatMappingInfo(project, region, router); - initialize(result); - return result; - } - - public class GetNatMappingInfo extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves runtime Nat mapping information of VM endpoints. - * - * Create a request for the method "routers.getNatMappingInfo". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetNatMappingInfo#execute()} method to invoke the remote operation. - *

{@link GetNatMappingInfo#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 for this request. - * @param router Name of the Router resource to query for Nat Mapping information of - VM endpoints. - * @since 1.13 - */ - protected GetNatMappingInfo(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VmEndpointNatMappingsList.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetNatMappingInfo set$Xgafv(java.lang.String $Xgafv) { - return (GetNatMappingInfo) super.set$Xgafv($Xgafv); - } - - @Override - public GetNatMappingInfo setAccessToken(java.lang.String accessToken) { - return (GetNatMappingInfo) super.setAccessToken(accessToken); - } - - @Override - public GetNatMappingInfo setAlt(java.lang.String alt) { - return (GetNatMappingInfo) super.setAlt(alt); - } - - @Override - public GetNatMappingInfo setCallback(java.lang.String callback) { - return (GetNatMappingInfo) super.setCallback(callback); - } - - @Override - public GetNatMappingInfo setFields(java.lang.String fields) { - return (GetNatMappingInfo) super.setFields(fields); - } - - @Override - public GetNatMappingInfo setKey(java.lang.String key) { - return (GetNatMappingInfo) super.setKey(key); - } - - @Override - public GetNatMappingInfo setOauthToken(java.lang.String oauthToken) { - return (GetNatMappingInfo) super.setOauthToken(oauthToken); - } - - @Override - public GetNatMappingInfo setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNatMappingInfo) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetNatMappingInfo setQuotaUser(java.lang.String quotaUser) { - return (GetNatMappingInfo) super.setQuotaUser(quotaUser); - } - - @Override - public GetNatMappingInfo setUploadType(java.lang.String uploadType) { - return (GetNatMappingInfo) super.setUploadType(uploadType); - } - - @Override - public GetNatMappingInfo setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNatMappingInfo) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetNatMappingInfo setUserIp(java.lang.String userIp) { - return (GetNatMappingInfo) 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 GetNatMappingInfo 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetNatMappingInfo 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 Router resource to query for Nat Mapping information of VM endpoints. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to query for Nat Mapping information of VM endpoints. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name of the Router resource to query for Nat Mapping information of VM endpoints. - */ - public GetNatMappingInfo setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 GetNatMappingInfo 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 GetNatMappingInfo setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats - * for this router will be returned. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String natName; - - /** Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this - router will be returned. Name should conform to RFC1035. - */ - public java.lang.String getNatName() { - return natName; - } - - /** - * Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats - * for this router will be returned. Name should conform to RFC1035. - */ - public GetNatMappingInfo setNatName(java.lang.String natName) { - this.natName = natName; - 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 GetNatMappingInfo 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 GetNatMappingInfo setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public GetNatMappingInfo set(String parameterName, Object value) { - return (GetNatMappingInfo) super.set(parameterName, value); - } - } - /** - * Returns specified Route Policy - * - * Create a request for the method "routers.getRoutePolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRoutePolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query for the route policy. The name should - conform to RFC1035. - * @return the request - */ - public GetRoutePolicy getRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - GetRoutePolicy result = new GetRoutePolicy(project, region, router); - initialize(result); - return result; - } - - public class GetRoutePolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 specified Route Policy - * - * Create a request for the method "routers.getRoutePolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRoutePolicy#execute()} method to invoke the remote operation. - *

{@link GetRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 for this request. - * @param router Name of the Router resource to query for the route policy. The name should - conform to RFC1035. - * @since 1.13 - */ - protected GetRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RoutersGetRoutePolicyResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetRoutePolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetRoutePolicy setAccessToken(java.lang.String accessToken) { - return (GetRoutePolicy) super.setAccessToken(accessToken); - } - - @Override - public GetRoutePolicy setAlt(java.lang.String alt) { - return (GetRoutePolicy) super.setAlt(alt); - } - - @Override - public GetRoutePolicy setCallback(java.lang.String callback) { - return (GetRoutePolicy) super.setCallback(callback); - } - - @Override - public GetRoutePolicy setFields(java.lang.String fields) { - return (GetRoutePolicy) super.setFields(fields); - } - - @Override - public GetRoutePolicy setKey(java.lang.String key) { - return (GetRoutePolicy) super.setKey(key); - } - - @Override - public GetRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (GetRoutePolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRoutePolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (GetRoutePolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetRoutePolicy setUploadType(java.lang.String uploadType) { - return (GetRoutePolicy) super.setUploadType(uploadType); - } - - @Override - public GetRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRoutePolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRoutePolicy setUserIp(java.lang.String userIp) { - return (GetRoutePolicy) 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 GetRoutePolicy 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetRoutePolicy 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 Router resource to query for the route policy. The name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to query for the route policy. The name should conform to RFC1035. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name of the Router resource to query for the route policy. The name should conform to - * RFC1035. - */ - public GetRoutePolicy setRouter(java.lang.String router) { - this.router = router; - return this; - } - - /** The Policy name for this request. Name must conform to RFC1035 */ - @com.google.api.client.util.Key - private java.lang.String policy; - - /** The Policy name for this request. Name must conform to RFC1035 - */ - public java.lang.String getPolicy() { - return policy; - } - - /** The Policy name for this request. Name must conform to RFC1035 */ - public GetRoutePolicy setPolicy(java.lang.String policy) { - this.policy = policy; - return this; - } - - @Override - public GetRoutePolicy set(String parameterName, Object value) { - return (GetRoutePolicy) super.set(parameterName, value); - } - } - /** - * Retrieves runtime information of the specified router. - * - * Create a request for the method "routers.getRouterStatus". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRouterStatus#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query. - * @return the request - */ - public GetRouterStatus getRouterStatus(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - GetRouterStatus result = new GetRouterStatus(project, region, router); - initialize(result); - return result; - } - - public class GetRouterStatus extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRouterStatus"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves runtime information of the specified router. - * - * Create a request for the method "routers.getRouterStatus". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRouterStatus#execute()} method to invoke the remote operation. - *

{@link GetRouterStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} 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 for this request. - * @param router Name of the Router resource to query. - * @since 1.13 - */ - protected GetRouterStatus(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RouterStatusResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRouterStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetRouterStatus) super.set$Xgafv($Xgafv); - } - - @Override - public GetRouterStatus setAccessToken(java.lang.String accessToken) { - return (GetRouterStatus) super.setAccessToken(accessToken); - } - - @Override - public GetRouterStatus setAlt(java.lang.String alt) { - return (GetRouterStatus) super.setAlt(alt); - } - - @Override - public GetRouterStatus setCallback(java.lang.String callback) { - return (GetRouterStatus) super.setCallback(callback); - } - - @Override - public GetRouterStatus setFields(java.lang.String fields) { - return (GetRouterStatus) super.setFields(fields); - } - - @Override - public GetRouterStatus setKey(java.lang.String key) { - return (GetRouterStatus) super.setKey(key); - } - - @Override - public GetRouterStatus setOauthToken(java.lang.String oauthToken) { - return (GetRouterStatus) super.setOauthToken(oauthToken); - } - - @Override - public GetRouterStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRouterStatus) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRouterStatus setQuotaUser(java.lang.String quotaUser) { - return (GetRouterStatus) super.setQuotaUser(quotaUser); - } - - @Override - public GetRouterStatus setUploadType(java.lang.String uploadType) { - return (GetRouterStatus) super.setUploadType(uploadType); - } - - @Override - public GetRouterStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRouterStatus) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRouterStatus setUserIp(java.lang.String userIp) { - return (GetRouterStatus) 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 GetRouterStatus 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetRouterStatus 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 Router resource to query. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to query. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource to query. */ - public GetRouterStatus setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - return this; - } - - @Override - public GetRouterStatus set(String parameterName, Object value) { - return (GetRouterStatus) super.set(parameterName, value); - } - } - /** - * Creates a Router resource in the specified project and region using the data included in the - * request. - * - * Create a request for the method "routers.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Router content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a Router resource in the specified project and region using the data included in the - * request. - * - * Create a request for the method "routers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Router content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of Router resources available to the specified project. - * - * Create a request for the method "routers.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 region 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}/routers"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of Router resources available to the specified project. - * - * Create a request for the method "routers.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 region 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.preview.model.RouterList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves a list of router bgp routes available to the specified project. - * - * Create a request for the method "routers.listBgpRoutes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListBgpRoutes#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name or id of the resource for this request. - Name should conform to RFC1035. - * @return the request - */ - public ListBgpRoutes listBgpRoutes(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - ListBgpRoutes result = new ListBgpRoutes(project, region, router); - initialize(result); - return result; - } - - public class ListBgpRoutes extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves a list of router bgp routes available to the specified project. - * - * Create a request for the method "routers.listBgpRoutes". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListBgpRoutes#execute()} method to invoke the remote operation.

- * {@link ListBgpRoutes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 for this request. - * @param router Name or id of the resource for this request. - Name should conform to RFC1035. - * @since 1.13 - */ - protected ListBgpRoutes(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RoutersListBgpRoutes.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListBgpRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListBgpRoutes) super.set$Xgafv($Xgafv); - } - - @Override - public ListBgpRoutes setAccessToken(java.lang.String accessToken) { - return (ListBgpRoutes) super.setAccessToken(accessToken); - } - - @Override - public ListBgpRoutes setAlt(java.lang.String alt) { - return (ListBgpRoutes) super.setAlt(alt); - } - - @Override - public ListBgpRoutes setCallback(java.lang.String callback) { - return (ListBgpRoutes) super.setCallback(callback); - } - - @Override - public ListBgpRoutes setFields(java.lang.String fields) { - return (ListBgpRoutes) super.setFields(fields); - } - - @Override - public ListBgpRoutes setKey(java.lang.String key) { - return (ListBgpRoutes) super.setKey(key); - } - - @Override - public ListBgpRoutes setOauthToken(java.lang.String oauthToken) { - return (ListBgpRoutes) super.setOauthToken(oauthToken); - } - - @Override - public ListBgpRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListBgpRoutes) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListBgpRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListBgpRoutes) super.setQuotaUser(quotaUser); - } - - @Override - public ListBgpRoutes setUploadType(java.lang.String uploadType) { - return (ListBgpRoutes) super.setUploadType(uploadType); - } - - @Override - public ListBgpRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListBgpRoutes) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListBgpRoutes setUserIp(java.lang.String userIp) { - return (ListBgpRoutes) 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 ListBgpRoutes 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public ListBgpRoutes setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name or id of the resource for this request. Name should conform to RFC1035. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - public ListBgpRoutes setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - return this; - } - - /** (Required) limit results to this address family (either IPv4 or IPv6) */ - @com.google.api.client.util.Key - private java.lang.String addressFamily; - - /**( Required) limit results to this address family (either IPv4 or IPv6) [default: - ( UNSPECIFIED_IP_VERSION] - ( - - */ - public java.lang.String getAddressFamily() { - return addressFamily; - } - - /** (Required) limit results to this address family (either IPv4 or IPv6) */ - public ListBgpRoutes setAddressFamily(java.lang.String addressFamily) { - this.addressFamily = addressFamily; - return this; - } - - /** Limit results to destinations that are subnets of this CIDR range */ - @com.google.api.client.util.Key - private java.lang.String destinationPrefix; - - /** Limit results to destinations that are subnets of this CIDR range - */ - public java.lang.String getDestinationPrefix() { - return destinationPrefix; - } - - /** Limit results to destinations that are subnets of this CIDR range */ - public ListBgpRoutes setDestinationPrefix(java.lang.String destinationPrefix) { - this.destinationPrefix = destinationPrefix; - 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 ListBgpRoutes 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 ListBgpRoutes 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 ListBgpRoutes 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 ListBgpRoutes setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * (Required) limit results to the BGP peer with the given name. Name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String peer; - - /**( Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. - ( - - */ - public java.lang.String getPeer() { - return peer; - } - - /** - * (Required) limit results to the BGP peer with the given name. Name should conform to - * RFC1035. - */ - public ListBgpRoutes setPeer(java.lang.String peer) { - this.peer = peer; - return this; - } - - /** - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. - */ - @com.google.api.client.util.Key - private java.lang.Boolean policyApplied; - - /** When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. - [default: true] - */ - public java.lang.Boolean getPolicyApplied() { - return policyApplied; - } - - /** - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. - */ - public ListBgpRoutes setPolicyApplied(java.lang.Boolean policyApplied) { - this.policyApplied = policyApplied; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. - *

- */ - public boolean isPolicyApplied() { - if (policyApplied == null || policyApplied == com.google.api.client.util.Data.NULL_BOOLEAN) { - return true; - } - return policyApplied; - } - - /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) - */ - @com.google.api.client.util.Key - private java.lang.String routeType; - - /**( Required) limit results to this type of route (either LEARNED or ADVERTISED) [default: - ( UNSPECIFIED_ROUTE_TYPE] - ( - - */ - public java.lang.String getRouteType() { - return routeType; - } - - /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) - */ - public ListBgpRoutes setRouteType(java.lang.String routeType) { - this.routeType = routeType; - return this; - } - - @Override - public ListBgpRoutes set(String parameterName, Object value) { - return (ListBgpRoutes) super.set(parameterName, value); - } - } - /** - * Retrieves a list of router named set subresources available to the specified project. - * - * Create a request for the method "routers.listNamedSets". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNamedSets#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name or id of the resource for this request. - Name should conform to RFC1035. - * @return the request - */ - public ListNamedSets listNamedSets(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - ListNamedSets result = new ListNamedSets(project, region, router); - initialize(result); - return result; - } - - public class ListNamedSets extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listNamedSets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves a list of router named set subresources available to the specified project. - * - * Create a request for the method "routers.listNamedSets". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNamedSets#execute()} method to invoke the remote operation.

- * {@link ListNamedSets#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 for this request. - * @param router Name or id of the resource for this request. - Name should conform to RFC1035. - * @since 1.13 - */ - protected ListNamedSets(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RoutersListNamedSets.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListNamedSets set$Xgafv(java.lang.String $Xgafv) { - return (ListNamedSets) super.set$Xgafv($Xgafv); - } - - @Override - public ListNamedSets setAccessToken(java.lang.String accessToken) { - return (ListNamedSets) super.setAccessToken(accessToken); - } - - @Override - public ListNamedSets setAlt(java.lang.String alt) { - return (ListNamedSets) super.setAlt(alt); - } - - @Override - public ListNamedSets setCallback(java.lang.String callback) { - return (ListNamedSets) super.setCallback(callback); - } - - @Override - public ListNamedSets setFields(java.lang.String fields) { - return (ListNamedSets) super.setFields(fields); - } - - @Override - public ListNamedSets setKey(java.lang.String key) { - return (ListNamedSets) super.setKey(key); - } - - @Override - public ListNamedSets setOauthToken(java.lang.String oauthToken) { - return (ListNamedSets) super.setOauthToken(oauthToken); - } - - @Override - public ListNamedSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNamedSets) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListNamedSets setQuotaUser(java.lang.String quotaUser) { - return (ListNamedSets) super.setQuotaUser(quotaUser); - } - - @Override - public ListNamedSets setUploadType(java.lang.String uploadType) { - return (ListNamedSets) super.setUploadType(uploadType); - } - - @Override - public ListNamedSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNamedSets) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListNamedSets setUserIp(java.lang.String userIp) { - return (ListNamedSets) 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 ListNamedSets 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public ListNamedSets setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name or id of the resource for this request. Name should conform to RFC1035. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - public ListNamedSets setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 ListNamedSets 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 ListNamedSets 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 ListNamedSets 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 ListNamedSets setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListNamedSets set(String parameterName, Object value) { - return (ListNamedSets) super.set(parameterName, value); - } - } - /** - * Retrieves a list of router route policy subresources available to the specified project. - * - * Create a request for the method "routers.listRoutePolicies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListRoutePolicies#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name or id of the resource for this request. - Name should conform to RFC1035. - * @return the request - */ - public ListRoutePolicies listRoutePolicies(java.lang.String project, java.lang.String region, java.lang.String router) throws java.io.IOException { - ListRoutePolicies result = new ListRoutePolicies(project, region, router); - initialize(result); - return result; - } - - public class ListRoutePolicies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves a list of router route policy subresources available to the specified project. - * - * Create a request for the method "routers.listRoutePolicies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListRoutePolicies#execute()} method to invoke the remote operation. - *

{@link ListRoutePolicies#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 for this request. - * @param router Name or id of the resource for this request. - Name should conform to RFC1035. - * @since 1.13 - */ - protected ListRoutePolicies(java.lang.String project, java.lang.String region, java.lang.String router) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RoutersListRoutePolicies.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListRoutePolicies set$Xgafv(java.lang.String $Xgafv) { - return (ListRoutePolicies) super.set$Xgafv($Xgafv); - } - - @Override - public ListRoutePolicies setAccessToken(java.lang.String accessToken) { - return (ListRoutePolicies) super.setAccessToken(accessToken); - } - - @Override - public ListRoutePolicies setAlt(java.lang.String alt) { - return (ListRoutePolicies) super.setAlt(alt); - } - - @Override - public ListRoutePolicies setCallback(java.lang.String callback) { - return (ListRoutePolicies) super.setCallback(callback); - } - - @Override - public ListRoutePolicies setFields(java.lang.String fields) { - return (ListRoutePolicies) super.setFields(fields); - } - - @Override - public ListRoutePolicies setKey(java.lang.String key) { - return (ListRoutePolicies) super.setKey(key); - } - - @Override - public ListRoutePolicies setOauthToken(java.lang.String oauthToken) { - return (ListRoutePolicies) super.setOauthToken(oauthToken); - } - - @Override - public ListRoutePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListRoutePolicies) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListRoutePolicies setQuotaUser(java.lang.String quotaUser) { - return (ListRoutePolicies) super.setQuotaUser(quotaUser); - } - - @Override - public ListRoutePolicies setUploadType(java.lang.String uploadType) { - return (ListRoutePolicies) super.setUploadType(uploadType); - } - - @Override - public ListRoutePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (ListRoutePolicies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListRoutePolicies setUserIp(java.lang.String userIp) { - return (ListRoutePolicies) 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 ListRoutePolicies 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public ListRoutePolicies setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name or id of the resource for this request. Name should conform to RFC1035. - */ - public java.lang.String getRouter() { - return router; - } - - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - public ListRoutePolicies setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 ListRoutePolicies 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 ListRoutePolicies 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 ListRoutePolicies 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 ListRoutePolicies setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListRoutePolicies set(String parameterName, Object value) { - return (ListRoutePolicies) super.set(parameterName, value); - } - } - /** - * Patches the specified Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "routers.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 Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.Router content) throws java.io.IOException { - Patch result = new Patch(project, region, router, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "routers.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 Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.Router content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch 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 Router resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to patch. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource to patch. */ - public Patch setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Patches Named Set - * - * Create a request for the method "routers.patchNamedSet". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchNamedSet#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource where Named Set is defined. - * @param content the {@link com.google.api.services.compute.preview.model.NamedSet} - * @return the request - */ - public PatchNamedSet patchNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.NamedSet content) throws java.io.IOException { - PatchNamedSet result = new PatchNamedSet(project, region, router, content); - initialize(result); - return result; - } - - public class PatchNamedSet extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchNamedSet"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches Named Set - * - * Create a request for the method "routers.patchNamedSet". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchNamedSet#execute()} method to invoke the remote operation.

- * {@link PatchNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} 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 for this request. - * @param router Name of the Router resource where Named Set is defined. - * @param content the {@link com.google.api.services.compute.preview.model.NamedSet} - * @since 1.13 - */ - protected PatchNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.NamedSet content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (PatchNamedSet) super.set$Xgafv($Xgafv); - } - - @Override - public PatchNamedSet setAccessToken(java.lang.String accessToken) { - return (PatchNamedSet) super.setAccessToken(accessToken); - } - - @Override - public PatchNamedSet setAlt(java.lang.String alt) { - return (PatchNamedSet) super.setAlt(alt); - } - - @Override - public PatchNamedSet setCallback(java.lang.String callback) { - return (PatchNamedSet) super.setCallback(callback); - } - - @Override - public PatchNamedSet setFields(java.lang.String fields) { - return (PatchNamedSet) super.setFields(fields); - } - - @Override - public PatchNamedSet setKey(java.lang.String key) { - return (PatchNamedSet) super.setKey(key); - } - - @Override - public PatchNamedSet setOauthToken(java.lang.String oauthToken) { - return (PatchNamedSet) super.setOauthToken(oauthToken); - } - - @Override - public PatchNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchNamedSet) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchNamedSet setQuotaUser(java.lang.String quotaUser) { - return (PatchNamedSet) super.setQuotaUser(quotaUser); - } - - @Override - public PatchNamedSet setUploadType(java.lang.String uploadType) { - return (PatchNamedSet) super.setUploadType(uploadType); - } - - @Override - public PatchNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchNamedSet) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchNamedSet setUserIp(java.lang.String userIp) { - return (PatchNamedSet) 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 PatchNamedSet 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public PatchNamedSet 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 Router resource where Named Set is defined. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource where Named Set is defined. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource where Named Set is defined. */ - public PatchNamedSet setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 PatchNamedSet setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchNamedSet set(String parameterName, Object value) { - return (PatchNamedSet) super.set(parameterName, value); - } - } - /** - * Patches Route Policy - * - * Create a request for the method "routers.patchRoutePolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRoutePolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.preview.model.RoutePolicy} - * @return the request - */ - public PatchRoutePolicy patchRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.RoutePolicy content) throws java.io.IOException { - PatchRoutePolicy result = new PatchRoutePolicy(project, region, router, content); - initialize(result); - return result; - } - - public class PatchRoutePolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches Route Policy - * - * Create a request for the method "routers.patchRoutePolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRoutePolicy#execute()} method to invoke the remote operation. - *

{@link PatchRoutePolicy#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 for this request. - * @param router Name of the Router resource where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.preview.model.RoutePolicy} - * @since 1.13 - */ - protected PatchRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.RoutePolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (PatchRoutePolicy) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRoutePolicy setAccessToken(java.lang.String accessToken) { - return (PatchRoutePolicy) super.setAccessToken(accessToken); - } - - @Override - public PatchRoutePolicy setAlt(java.lang.String alt) { - return (PatchRoutePolicy) super.setAlt(alt); - } - - @Override - public PatchRoutePolicy setCallback(java.lang.String callback) { - return (PatchRoutePolicy) super.setCallback(callback); - } - - @Override - public PatchRoutePolicy setFields(java.lang.String fields) { - return (PatchRoutePolicy) super.setFields(fields); - } - - @Override - public PatchRoutePolicy setKey(java.lang.String key) { - return (PatchRoutePolicy) super.setKey(key); - } - - @Override - public PatchRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (PatchRoutePolicy) super.setOauthToken(oauthToken); - } - - @Override - public PatchRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRoutePolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (PatchRoutePolicy) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRoutePolicy setUploadType(java.lang.String uploadType) { - return (PatchRoutePolicy) super.setUploadType(uploadType); - } - - @Override - public PatchRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRoutePolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRoutePolicy setUserIp(java.lang.String userIp) { - return (PatchRoutePolicy) 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 PatchRoutePolicy 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public PatchRoutePolicy 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 Router resource where Route Policy is defined. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource where Route Policy is defined. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource where Route Policy is defined. */ - public PatchRoutePolicy setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 PatchRoutePolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public PatchRoutePolicy set(String parameterName, Object value) { - return (PatchRoutePolicy) super.set(parameterName, value); - } - } - /** - * Preview fields auto-generated during router create andupdate operations. Calling this method does - * NOT create or update the router. - * - * Create a request for the method "routers.preview". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Preview#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @return the request - */ - public Preview preview(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.Router content) throws java.io.IOException { - Preview result = new Preview(project, region, router, content); - initialize(result); - return result; - } - - public class Preview extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/preview"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Preview fields auto-generated during router create andupdate operations. Calling this method - * does NOT create or update the router. - * - * Create a request for the method "routers.preview". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Preview#execute()} method to invoke the remote operation.

- * {@link - * Preview#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to query. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @since 1.13 - */ - protected Preview(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.Router content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.RoutersPreviewResponse.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Preview set$Xgafv(java.lang.String $Xgafv) { - return (Preview) super.set$Xgafv($Xgafv); - } - - @Override - public Preview setAccessToken(java.lang.String accessToken) { - return (Preview) super.setAccessToken(accessToken); - } - - @Override - public Preview setAlt(java.lang.String alt) { - return (Preview) super.setAlt(alt); - } - - @Override - public Preview setCallback(java.lang.String callback) { - return (Preview) super.setCallback(callback); - } - - @Override - public Preview setFields(java.lang.String fields) { - return (Preview) super.setFields(fields); - } - - @Override - public Preview setKey(java.lang.String key) { - return (Preview) super.setKey(key); - } - - @Override - public Preview setOauthToken(java.lang.String oauthToken) { - return (Preview) super.setOauthToken(oauthToken); - } - - @Override - public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Preview) super.setPrettyPrint(prettyPrint); - } - - @Override - public Preview setQuotaUser(java.lang.String quotaUser) { - return (Preview) super.setQuotaUser(quotaUser); - } - - @Override - public Preview setUploadType(java.lang.String uploadType) { - return (Preview) super.setUploadType(uploadType); - } - - @Override - public Preview setUploadProtocol(java.lang.String uploadProtocol) { - return (Preview) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Preview setUserIp(java.lang.String userIp) { - return (Preview) 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 Preview 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Preview 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 Router resource to query. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to query. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource to query. */ - public Preview setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - return this; - } - - @Override - public Preview set(String parameterName, Object value) { - return (Preview) super.set(parameterName, value); - } - } - /** - * Updates the specified Router resource with the data included in the request. This method - * conforms toPUT semantics, which requests that the state of the target resource be created or - * replaced with the state defined by the representation enclosed in the request message payload. - * - * Create a request for the method "routers.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.Router content) throws java.io.IOException { - Update result = new Update(project, region, router, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified Router resource with the data included in the request. This method - * conforms toPUT semantics, which requests that the state of the target resource be created or - * replaced with the state defined by the representation enclosed in the request message payload. - * - * Create a request for the method "routers.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.Router} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.Router content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Update 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 Router resource to update. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource to update. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource to update. */ - public Update setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - /** - * Updates or creates new Named Set - * - * Create a request for the method "routers.updateNamedSet". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateNamedSet#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource where Named Set is defined. - * @param content the {@link com.google.api.services.compute.preview.model.NamedSet} - * @return the request - */ - public UpdateNamedSet updateNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.NamedSet content) throws java.io.IOException { - UpdateNamedSet result = new UpdateNamedSet(project, region, router, content); - initialize(result); - return result; - } - - public class UpdateNamedSet extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateNamedSet"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates or creates new Named Set - * - * Create a request for the method "routers.updateNamedSet". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateNamedSet#execute()} method to invoke the remote operation. - *

{@link UpdateNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 for this request. - * @param router Name of the Router resource where Named Set is defined. - * @param content the {@link com.google.api.services.compute.preview.model.NamedSet} - * @since 1.13 - */ - protected UpdateNamedSet(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.NamedSet content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (UpdateNamedSet) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateNamedSet setAccessToken(java.lang.String accessToken) { - return (UpdateNamedSet) super.setAccessToken(accessToken); - } - - @Override - public UpdateNamedSet setAlt(java.lang.String alt) { - return (UpdateNamedSet) super.setAlt(alt); - } - - @Override - public UpdateNamedSet setCallback(java.lang.String callback) { - return (UpdateNamedSet) super.setCallback(callback); - } - - @Override - public UpdateNamedSet setFields(java.lang.String fields) { - return (UpdateNamedSet) super.setFields(fields); - } - - @Override - public UpdateNamedSet setKey(java.lang.String key) { - return (UpdateNamedSet) super.setKey(key); - } - - @Override - public UpdateNamedSet setOauthToken(java.lang.String oauthToken) { - return (UpdateNamedSet) super.setOauthToken(oauthToken); - } - - @Override - public UpdateNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateNamedSet) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateNamedSet setQuotaUser(java.lang.String quotaUser) { - return (UpdateNamedSet) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateNamedSet setUploadType(java.lang.String uploadType) { - return (UpdateNamedSet) super.setUploadType(uploadType); - } - - @Override - public UpdateNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateNamedSet) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateNamedSet setUserIp(java.lang.String userIp) { - return (UpdateNamedSet) 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 UpdateNamedSet 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public UpdateNamedSet 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 Router resource where Named Set is defined. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource where Named Set is defined. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource where Named Set is defined. */ - public UpdateNamedSet setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 UpdateNamedSet setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateNamedSet set(String parameterName, Object value) { - return (UpdateNamedSet) super.set(parameterName, value); - } - } - /** - * Updates or creates new Route Policy - * - * Create a request for the method "routers.updateRoutePolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateRoutePolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param router Name of the Router resource where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.preview.model.RoutePolicy} - * @return the request - */ - public UpdateRoutePolicy updateRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.RoutePolicy content) throws java.io.IOException { - UpdateRoutePolicy result = new UpdateRoutePolicy(project, region, router, content); - initialize(result); - return result; - } - - public class UpdateRoutePolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates or creates new Route Policy - * - * Create a request for the method "routers.updateRoutePolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateRoutePolicy#execute()} method to invoke the remote operation. - *

{@link UpdateRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 for this request. - * @param router Name of the Router resource where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.preview.model.RoutePolicy} - * @since 1.13 - */ - protected UpdateRoutePolicy(java.lang.String project, java.lang.String region, java.lang.String router, com.google.api.services.compute.preview.model.RoutePolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (UpdateRoutePolicy) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateRoutePolicy setAccessToken(java.lang.String accessToken) { - return (UpdateRoutePolicy) super.setAccessToken(accessToken); - } - - @Override - public UpdateRoutePolicy setAlt(java.lang.String alt) { - return (UpdateRoutePolicy) super.setAlt(alt); - } - - @Override - public UpdateRoutePolicy setCallback(java.lang.String callback) { - return (UpdateRoutePolicy) super.setCallback(callback); - } - - @Override - public UpdateRoutePolicy setFields(java.lang.String fields) { - return (UpdateRoutePolicy) super.setFields(fields); - } - - @Override - public UpdateRoutePolicy setKey(java.lang.String key) { - return (UpdateRoutePolicy) super.setKey(key); - } - - @Override - public UpdateRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (UpdateRoutePolicy) super.setOauthToken(oauthToken); - } - - @Override - public UpdateRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateRoutePolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (UpdateRoutePolicy) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateRoutePolicy setUploadType(java.lang.String uploadType) { - return (UpdateRoutePolicy) super.setUploadType(uploadType); - } - - @Override - public UpdateRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateRoutePolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateRoutePolicy setUserIp(java.lang.String userIp) { - return (UpdateRoutePolicy) 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 UpdateRoutePolicy 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public UpdateRoutePolicy 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 Router resource where Route Policy is defined. */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** Name of the Router resource where Route Policy is defined. - */ - public java.lang.String getRouter() { - return router; - } - - /** Name of the Router resource where Route Policy is defined. */ - public UpdateRoutePolicy setRouter(java.lang.String router) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.router = router; - 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 UpdateRoutePolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateRoutePolicy set(String parameterName, Object value) { - return (UpdateRoutePolicy) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Routes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Routes.List request = compute.routes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Routes routes() { - return new Routes(); - } - - /** - * The "routes" collection of methods. - */ - public class Routes { - - /** - * Deletes the specified Route resource. - * - * Create a request for the method "routes.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param route Name of the Route resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String route) throws java.io.IOException { - Delete result = new Delete(project, route); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/routes/{route}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Route resource. - * - * Create a request for the method "routes.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 route Name of the Route resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String route) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.route = com.google.api.client.util.Preconditions.checkNotNull(route, "Required parameter route must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Route resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String route; - - /** Name of the Route resource to delete. - */ - public java.lang.String getRoute() { - return route; - } - - /** Name of the Route resource to delete. */ - public Delete setRoute(java.lang.String route) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.route = route; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified Route resource. - * - * Create a request for the method "routes.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 route Name of the Route resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String route) throws java.io.IOException { - Get result = new Get(project, route); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/routes/{route}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 ROUTE_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 Route resource. - * - * Create a request for the method "routes.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 route Name of the Route resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String route) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Route.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.route = com.google.api.client.util.Preconditions.checkNotNull(route, "Required parameter route must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 Route resource to return. */ - @com.google.api.client.util.Key - private java.lang.String route; - - /** Name of the Route resource to return. - */ - public java.lang.String getRoute() { - return route; - } - - /** Name of the Route resource to return. */ - public Get setRoute(java.lang.String route) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.route = route; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a Route resource in the specified project using the data included in the request. - * - * Create a request for the method "routes.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Route} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.Route content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/routes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a Route resource in the specified project using the data included in the request. - * - * Create a request for the method "routes.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Route} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Route content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of Route resources available to the specified project. - * - * Create a request for the method "routes.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/routes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of Route resources available to the specified project. - * - * Create a request for the method "routes.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.RouteList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "routes.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "routes.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the SecurityPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.SecurityPolicies.List request = compute.securityPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public SecurityPolicies securityPolicies() { - return new SecurityPolicies(); - } - - /** - * The "securityPolicies" collection of methods. - */ - public class SecurityPolicies { - - /** - * Inserts a rule into a security policy. - * - * Create a request for the method "securityPolicies.addRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @return the request - */ - public AddRule addRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(project, securityPolicy, content); - initialize(result); - return result; - } - - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/addRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Inserts a rule into a security policy. - * - * Create a request for the method "securityPolicies.addRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

- * {@link - * AddRule#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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @since 1.13 - */ - protected AddRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); - } - - @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); - } - - @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); - } - - @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); - } - - @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); - } - - @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); - } - - @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); - } - - @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); - } - - @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); - } - - @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) 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 AddRule 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public AddRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } - /** - * Retrieves the list of all SecurityPolicy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "securityPolicies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all SecurityPolicy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "securityPolicies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPoliciesAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Create a request for the method "securityPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - Delete result = new Delete(project, securityPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified policy. - * - * Create a request for the method "securityPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 securityPolicy Name of the security policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 security policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to delete. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * List all of the ordered rules present in a single specified policy. - * - * Create a request for the method "securityPolicies.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 securityPolicy Name of the security policy to get. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - Get result = new Get(project, securityPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * List all of the ordered rules present in a single specified policy. - * - * Create a request for the method "securityPolicies.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 securityPolicy Name of the security policy to get. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicy.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 security policy to get. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to get. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets a rule at the specified priority. - * - * Create a request for the method "securityPolicies.getRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @return the request - */ - public GetRule getRule(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, securityPolicy); - initialize(result); - return result; - } - - public class GetRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/getRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets a rule at the specified priority. - * - * Create a request for the method "securityPolicies.getRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

- * {@link - * GetRule#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 securityPolicy Name of the security policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetRule(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicyRule.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); - } - - @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); - } - - @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); - } - - @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); - } - - @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); - } - - @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); - } - - @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); - } - - @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) 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 GetRule 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 security policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to which the queried rule belongs. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to get from the security policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to get from the security policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "securityPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "securityPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.SecurityPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * List all the policies that have been configured for the specified project. - * - * Create a request for the method "securityPolicies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * List all the policies that have been configured for the specified project. - * - * Create a request for the method "securityPolicies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPolicyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. - * - * Create a request for the method "securityPolicies.listPreconfiguredExpressionSets". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets(java.lang.String project) throws java.io.IOException { - ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(project); - initialize(result); - return result; - } - - public class ListPreconfiguredExpressionSets extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. - * - * Create a request for the method "securityPolicies.listPreconfiguredExpressionSets". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation.

{@link ListPreconfiguredExpressionSets#initialize(com.google.api.client.g - * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected ListPreconfiguredExpressionSets(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { - return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); - } - - @Override - public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { - return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); - } - - @Override - public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { - return (ListPreconfiguredExpressionSets) super.setAlt(alt); - } - - @Override - public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { - return (ListPreconfiguredExpressionSets) super.setCallback(callback); - } - - @Override - public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { - return (ListPreconfiguredExpressionSets) super.setFields(fields); - } - - @Override - public ListPreconfiguredExpressionSets setKey(java.lang.String key) { - return (ListPreconfiguredExpressionSets) super.setKey(key); - } - - @Override - public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { - return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); - } - - @Override - public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { - return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); - } - - @Override - public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { - return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); - } - - @Override - public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { - return (ListPreconfiguredExpressionSets) 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 ListPreconfiguredExpressionSets 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; - } - - /** - * 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); - } - } - /** - * Patches the specified policy with the data included in the request. To clear fields in the - * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be - * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and - * removeRule instead. - * - * Create a request for the method "securityPolicies.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 Project ID for this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(project, securityPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified policy with the data included in the request. To clear fields in the - * policy, leave the fields empty and specify them in the updateMask. This cannot be used to be - * update the rules in the policy. Please use the per rule methods like addRule, patchRule, and - * removeRule instead. - * - * Create a request for the method "securityPolicies.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 Project ID for this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public Patch setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** Indicates fields to be cleared as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Indicates fields to be cleared as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and - * specify them in the updateMask. - * - * Create a request for the method "securityPolicies.patchRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @return the request - */ - public PatchRule patchRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(project, securityPolicy, content); - initialize(result); - return result; - } - - public class PatchRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty - * and specify them in the updateMask. - * - * Create a request for the method "securityPolicies.patchRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

- * {@link - * PatchRule#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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyRule} - * @since 1.13 - */ - protected PatchRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.preview.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); - } - - @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); - } - - @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); - } - - @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); - } - - @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); - } - - @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); - } - - @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); - } - - @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); - } - - @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); - } - - @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) 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 PatchRule 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** Indicates fields to be cleared as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Indicates fields to be cleared as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); - } - } - /** - * Deletes a rule at the specified priority. - * - * Create a request for the method "securityPolicies.removeRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to update. - * @return the request - */ - public RemoveRule removeRule(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, securityPolicy); - initialize(result); - return result; - } - - public class RemoveRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/removeRule"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes a rule at the specified priority. - * - * Create a request for the method "securityPolicies.removeRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

- * {@link - * RemoveRule#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 securityPolicy Name of the security policy to update. - * @since 1.13 - */ - protected RemoveRule(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); - } - - @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); - } - - @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); - } - - @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); - } - - @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); - } - - @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); - } - - @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); - } - - @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) 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 RemoveRule 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 security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.securityPolicy = securityPolicy; - return this; - } - - /** The priority of the rule to remove from the security policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the security policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); - } - } - /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "securityPolicies.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "securityPolicies.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ServiceAttachments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ServiceAttachments.List request = compute.serviceAttachments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ServiceAttachments serviceAttachments() { - return new ServiceAttachments(); - } - - /** - * The "serviceAttachments" collection of methods. - */ - public class ServiceAttachments { - - /** - * Retrieves the list of all ServiceAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "serviceAttachments.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/serviceAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all ServiceAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "serviceAttachments.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ServiceAttachmentAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified ServiceAttachment in the given scope - * - * Create a request for the method "serviceAttachments.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param serviceAttachment Name of the ServiceAttachment resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, serviceAttachment); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SERVICE_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified ServiceAttachment in the given scope - * - * Create a request for the method "serviceAttachments.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param serviceAttachment Name of the ServiceAttachment resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.serviceAttachment = com.google.api.client.util.Preconditions.checkNotNull(serviceAttachment, "Required parameter serviceAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Delete 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 ServiceAttachment resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String serviceAttachment; - - /** Name of the ServiceAttachment resource to delete. - */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; - } - - /** Name of the ServiceAttachment resource to delete. */ - public Delete setServiceAttachment(java.lang.String serviceAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.serviceAttachment = serviceAttachment; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified ServiceAttachment resource in the given scope. - * - * Create a request for the method "serviceAttachments.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 region Name of the region of this request. - * @param serviceAttachment Name of the ServiceAttachment resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) throws java.io.IOException { - Get result = new Get(project, region, serviceAttachment); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SERVICE_ATTACHMENT_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 ServiceAttachment resource in the given scope. - * - * Create a request for the method "serviceAttachments.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 region Name of the region of this request. - * @param serviceAttachment Name of the ServiceAttachment resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ServiceAttachment.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.serviceAttachment = com.google.api.client.util.Preconditions.checkNotNull(serviceAttachment, "Required parameter serviceAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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 ServiceAttachment resource to return. */ - @com.google.api.client.util.Key - private java.lang.String serviceAttachment; - - /** Name of the ServiceAttachment resource to return. - */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; - } - - /** Name of the ServiceAttachment resource to return. */ - public Get setServiceAttachment(java.lang.String serviceAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.serviceAttachment = serviceAttachment; - return this; - } - - /** Indicates whether NAT IPs should be included in the response. */ - @com.google.api.client.util.Key - private java.lang.Boolean showNatIps; - - /** Indicates whether NAT IPs should be included in the response. - */ - public java.lang.Boolean getShowNatIps() { - return showNatIps; - } - - /** Indicates whether NAT IPs should be included in the response. */ - public Get setShowNatIps(java.lang.Boolean showNatIps) { - this.showNatIps = showNatIps; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "serviceAttachments.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "serviceAttachments.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a ServiceAttachment in the specified project in the given scope using the parameters that - * are included in the request. - * - * Create a request for the method "serviceAttachments.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.preview.model.ServiceAttachment} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.ServiceAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a ServiceAttachment in the specified project in the given scope using the parameters - * that are included in the request. - * - * Create a request for the method "serviceAttachments.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.preview.model.ServiceAttachment} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.ServiceAttachment content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the ServiceAttachments for a project in the given scope. - * - * Create a request for the method "serviceAttachments.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 region Name of the region of 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}/serviceAttachments"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists the ServiceAttachments for a project in the given scope. - * - * Create a request for the method "serviceAttachments.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 region Name of the region of 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.preview.model.ServiceAttachmentList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region of this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region of 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified ServiceAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "serviceAttachments.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 Project ID for this request. - * @param region The region scoping this request and should conform to RFC1035. - * @param serviceAttachment The resource id of the ServiceAttachment to patch. It should conform to - RFC1035 resource name or be - * a string form on an unsigned long number. - * @param content the {@link com.google.api.services.compute.preview.model.ServiceAttachment} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment, com.google.api.services.compute.preview.model.ServiceAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, serviceAttachment, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Patches the specified ServiceAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "serviceAttachments.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 Project ID for this request. - * @param region The region scoping this request and should conform to RFC1035. - * @param serviceAttachment The resource id of the ServiceAttachment to patch. It should conform to - RFC1035 resource name or be - * a string form on an unsigned long number. - * @param content the {@link com.google.api.services.compute.preview.model.ServiceAttachment} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment, com.google.api.services.compute.preview.model.ServiceAttachment content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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."); - this.serviceAttachment = com.google.api.client.util.Preconditions.checkNotNull(serviceAttachment, "Required parameter serviceAttachment must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 region scoping this request and should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region scoping this request and should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region scoping this request and should conform to RFC1035. */ - public Patch setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource - * name or be a string form on an unsigned long number. - */ - @com.google.api.client.util.Key - private java.lang.String serviceAttachment; - - /** The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be - a string form on an unsigned long number. - */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; - } - - /** - * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource - * name or be a string form on an unsigned long number. - */ - public Patch setServiceAttachment(java.lang.String serviceAttachment) { - this.serviceAttachment = serviceAttachment; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "serviceAttachments.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "serviceAttachments.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "serviceAttachments.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "serviceAttachments.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the SnapshotSettings collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.SnapshotSettings.List request = compute.snapshotSettings().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public SnapshotSettings snapshotSettings() { - return new SnapshotSettings(); - } - - /** - * The "snapshotSettings" collection of methods. - */ - public class SnapshotSettings { - - /** - * Get snapshot settings. - * - * Create a request for the method "snapshotSettings.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. - * @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/snapshotSettings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Get snapshot settings. - * - * Create a request for the method "snapshotSettings.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. - * @since 1.13 - */ - protected Get(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SnapshotSettings.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Patch snapshot settings. - * - * Create a request for the method "snapshotSettings.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 Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SnapshotSettings} - * @return the request - */ - public Patch patch(java.lang.String project, com.google.api.services.compute.preview.model.SnapshotSettings 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/snapshotSettings"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Patch snapshot settings. - * - * Create a request for the method "snapshotSettings.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 Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SnapshotSettings} - * @since 1.13 - */ - protected Patch(java.lang.String project, com.google.api.services.compute.preview.model.SnapshotSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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; - } - - /** - * 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - 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 Snapshots collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Snapshots.List request = compute.snapshots().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Snapshots snapshots() { - return new Snapshots(); - } - - /** - * The "snapshots" collection of methods. - */ - public class Snapshots { - - /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not - * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for - * deletion is needed for subsequent snapshots, the data will be moved to the next corresponding - * snapshot. - * - * For more information, seeDeleting snapshots. - * - * Create a request for the method "snapshots.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param snapshot Name of the Snapshot resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { - Delete result = new Delete(project, snapshot); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SNAPSHOT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not - * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked - * for deletion is needed for subsequent snapshots, the data will be moved to the next - * corresponding snapshot. - * - * For more information, seeDeleting snapshots. - * - * Create a request for the method "snapshots.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 snapshot Name of the Snapshot resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String snapshot) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Snapshot resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the Snapshot resource to delete. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the Snapshot resource to delete. */ - public Delete setSnapshot(java.lang.String snapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.snapshot = snapshot; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified Snapshot resource. - * - * Create a request for the method "snapshots.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 snapshot Name of the Snapshot resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { - Get result = new Get(project, snapshot); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SNAPSHOT_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 Snapshot resource. - * - * Create a request for the method "snapshots.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 snapshot Name of the Snapshot resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String snapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Snapshot.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 Snapshot resource to return. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the Snapshot resource to return. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the Snapshot resource to return. */ - public Get setSnapshot(java.lang.String snapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.snapshot = snapshot; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "snapshots.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "snapshots.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a snapshot in the specified project using the data included in the request. For regular - * snapshot creation, consider using this method instead of disks.createSnapshot, as this method - * supports more features, such as creating snapshots in a project different from the source disk - * project. - * - * Create a request for the method "snapshots.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.Snapshot content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a snapshot in the specified project using the data included in the request. For regular - * snapshot creation, consider using this method instead of disks.createSnapshot, as this method - * supports more features, such as creating snapshots in a project different from the source disk - * project. - * - * Create a request for the method "snapshots.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.Snapshot} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.Snapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of Snapshot resources contained within the specified project. - * - * Create a request for the method "snapshots.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/snapshots"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of Snapshot resources contained within the specified project. - * - * Create a request for the method "snapshots.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SnapshotList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "snapshots.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "snapshots.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "snapshots.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "snapshots.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.GlobalSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "snapshots.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "snapshots.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Rotates the customer-managed encryption key to the latest version for the specified snapshot. - * - * Create a request for the method "snapshots.updateKmsKey". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param snapshot Name of the snapshot resource to update. Should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SnapshotUpdateKmsKeyRequest} - * @return the request - */ - public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String snapshot, com.google.api.services.compute.preview.model.SnapshotUpdateKmsKeyRequest content) throws java.io.IOException { - UpdateKmsKey result = new UpdateKmsKey(project, snapshot, content); - initialize(result); - return result; - } - - public class UpdateKmsKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}/updateKmsKey"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SNAPSHOT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Rotates the customer-managed encryption key to the latest version for the specified snapshot. - * - * Create a request for the method "snapshots.updateKmsKey". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateKmsKey#execute()} method to invoke the remote operation.

- * {@link - * UpdateKmsKey#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 snapshot Name of the snapshot resource to update. Should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SnapshotUpdateKmsKeyRequest} - * @since 1.13 - */ - protected UpdateKmsKey(java.lang.String project, java.lang.String snapshot, com.google.api.services.compute.preview.model.SnapshotUpdateKmsKeyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public UpdateKmsKey set$Xgafv(java.lang.String $Xgafv) { - return (UpdateKmsKey) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateKmsKey setAccessToken(java.lang.String accessToken) { - return (UpdateKmsKey) super.setAccessToken(accessToken); - } - - @Override - public UpdateKmsKey setAlt(java.lang.String alt) { - return (UpdateKmsKey) super.setAlt(alt); - } - - @Override - public UpdateKmsKey setCallback(java.lang.String callback) { - return (UpdateKmsKey) super.setCallback(callback); - } - - @Override - public UpdateKmsKey setFields(java.lang.String fields) { - return (UpdateKmsKey) super.setFields(fields); - } - - @Override - public UpdateKmsKey setKey(java.lang.String key) { - return (UpdateKmsKey) super.setKey(key); - } - - @Override - public UpdateKmsKey setOauthToken(java.lang.String oauthToken) { - return (UpdateKmsKey) super.setOauthToken(oauthToken); - } - - @Override - public UpdateKmsKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateKmsKey) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateKmsKey setQuotaUser(java.lang.String quotaUser) { - return (UpdateKmsKey) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateKmsKey setUploadType(java.lang.String uploadType) { - return (UpdateKmsKey) super.setUploadType(uploadType); - } - - @Override - public UpdateKmsKey setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateKmsKey) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateKmsKey setUserIp(java.lang.String userIp) { - return (UpdateKmsKey) 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 UpdateKmsKey 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 snapshot resource to update. Should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the snapshot resource to update. Should conform to RFC1035. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the snapshot resource to update. Should conform to RFC1035. */ - public UpdateKmsKey setSnapshot(java.lang.String snapshot) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.snapshot = snapshot; - 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 UpdateKmsKey setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateKmsKey set(String parameterName, Object value) { - return (UpdateKmsKey) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the SslCertificates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.SslCertificates.List request = compute.sslCertificates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public SslCertificates sslCertificates() { - return new SslCertificates(); - } - - /** - * The "sslCertificates" collection of methods. - */ - public class SslCertificates { - - /** - * Retrieves the list of all SslCertificate resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "sslCertificates.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/sslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all SslCertificate resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "sslCertificates.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslCertificateAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified SslCertificate resource. - * - * Create a request for the method "sslCertificates.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param sslCertificate Name of the SslCertificate resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String sslCertificate) throws java.io.IOException { - Delete result = new Delete(project, sslCertificate); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SSL_CERTIFICATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified SslCertificate resource. - * - * Create a request for the method "sslCertificates.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 sslCertificate Name of the SslCertificate resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String sslCertificate) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 SslCertificate resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String sslCertificate; - - /** Name of the SslCertificate resource to delete. - */ - public java.lang.String getSslCertificate() { - return sslCertificate; - } - - /** Name of the SslCertificate resource to delete. */ - public Delete setSslCertificate(java.lang.String sslCertificate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.sslCertificate = sslCertificate; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified SslCertificate resource. - * - * Create a request for the method "sslCertificates.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 sslCertificate Name of the SslCertificate resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String sslCertificate) throws java.io.IOException { - Get result = new Get(project, sslCertificate); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SSL_CERTIFICATE_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 SslCertificate resource. - * - * Create a request for the method "sslCertificates.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 sslCertificate Name of the SslCertificate resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String sslCertificate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslCertificate.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.sslCertificate = com.google.api.client.util.Preconditions.checkNotNull(sslCertificate, "Required parameter sslCertificate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 SslCertificate resource to return. */ - @com.google.api.client.util.Key - private java.lang.String sslCertificate; - - /** Name of the SslCertificate resource to return. - */ - public java.lang.String getSslCertificate() { - return sslCertificate; - } - - /** Name of the SslCertificate resource to return. */ - public Get setSslCertificate(java.lang.String sslCertificate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.sslCertificate = sslCertificate; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a SslCertificate resource in the specified project using the data included in the - * request. - * - * Create a request for the method "sslCertificates.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SslCertificate} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.SslCertificate content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a SslCertificate resource in the specified project using the data included in the - * request. - * - * Create a request for the method "sslCertificates.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.SslCertificate} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.SslCertificate content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of SslCertificate resources available to the specified project. - * - * Create a request for the method "sslCertificates.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/sslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of SslCertificate resources available to the specified project. - * - * Create a request for the method "sslCertificates.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslCertificateList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the SslPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.SslPolicies.List request = compute.sslPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public SslPolicies sslPolicies() { - return new SslPolicies(); - } - - /** - * The "sslPolicies" collection of methods. - */ - public class SslPolicies { - - /** - * Retrieves the list of all SslPolicy resources, regional and global, available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "sslPolicies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/sslPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all SslPolicy resources, regional and global, available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "sslPolicies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslPoliciesAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use - * by any TargetHttpsProxy or TargetSslProxy resources. - * - * Create a request for the method "sslPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, sslPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in - * use by any TargetHttpsProxy or TargetSslProxy resources. - * - * Create a request for the method "sslPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String sslPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 SSL policy to delete. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Delete setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists all of the ordered rules present in a single specified policy. - * - * Create a request for the method "sslPolicies.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 sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { - Get result = new Get(project, sslPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all of the ordered rules present in a single specified policy. - * - * Create a request for the method "sslPolicies.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 sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String sslPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslPolicy.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Get setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the specified SSL policy resource. - * - * Create a request for the method "sslPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.SslPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Returns the specified SSL policy resource. - * - * Create a request for the method "sslPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.SslPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all the SSL policies that have been configured for the specified project. - * - * Create a request for the method "sslPolicies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all the SSL policies that have been configured for the specified project. - * - * Create a request for the method "sslPolicies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslPoliciesList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists all features that can be specified in the SSL policy when using custom profile. - * - * Create a request for the method "sslPolicies.listAvailableFeatures". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @return the request - */ - public ListAvailableFeatures listAvailableFeatures(java.lang.String project) throws java.io.IOException { - ListAvailableFeatures result = new ListAvailableFeatures(project); - initialize(result); - return result; - } - - public class ListAvailableFeatures extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies/listAvailableFeatures"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists all features that can be specified in the SSL policy when using custom profile. - * - * Create a request for the method "sslPolicies.listAvailableFeatures". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListAvailableFeatures#execute()} method to invoke the remote - * operation.

{@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected ListAvailableFeatures(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SslPoliciesListAvailableFeaturesResponse.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { - return (ListAvailableFeatures) super.set$Xgafv($Xgafv); - } - - @Override - public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { - return (ListAvailableFeatures) super.setAccessToken(accessToken); - } - - @Override - public ListAvailableFeatures setAlt(java.lang.String alt) { - return (ListAvailableFeatures) super.setAlt(alt); - } - - @Override - public ListAvailableFeatures setCallback(java.lang.String callback) { - return (ListAvailableFeatures) super.setCallback(callback); - } - - @Override - public ListAvailableFeatures setFields(java.lang.String fields) { - return (ListAvailableFeatures) super.setFields(fields); - } - - @Override - public ListAvailableFeatures setKey(java.lang.String key) { - return (ListAvailableFeatures) super.setKey(key); - } - - @Override - public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { - return (ListAvailableFeatures) super.setOauthToken(oauthToken); - } - - @Override - public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { - return (ListAvailableFeatures) super.setQuotaUser(quotaUser); - } - - @Override - public ListAvailableFeatures setUploadType(java.lang.String uploadType) { - return (ListAvailableFeatures) super.setUploadType(uploadType); - } - - @Override - public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListAvailableFeatures setUserIp(java.lang.String userIp) { - return (ListAvailableFeatures) 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 ListAvailableFeatures 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; - } - - /** - * 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures 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 ListAvailableFeatures setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListAvailableFeatures set(String parameterName, Object value) { - return (ListAvailableFeatures) super.set(parameterName, value); - } - } - /** - * Patches the specified SSL policy with the data included in the request. - * - * Create a request for the method "sslPolicies.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 Project ID for this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.preview.model.SslPolicy content) throws java.io.IOException { - Patch result = new Patch(project, sslPolicy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Patches the specified SSL policy with the data included in the request. - * - * Create a request for the method "sslPolicies.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 Project ID for this request. - * @param sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String sslPolicy, com.google.api.services.compute.preview.model.SslPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ - public Patch setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the StoragePoolTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.StoragePoolTypes.List request = compute.storagePoolTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public StoragePoolTypes storagePoolTypes() { - return new StoragePoolTypes(); - } - - /** - * The "storagePoolTypes" collection of methods. - */ - public class StoragePoolTypes { - - /** - * Retrieves an aggregated list of storage pool types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "storagePoolTypes.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/storagePoolTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of storage pool types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "storagePoolTypes.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.StoragePoolTypeAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Returns the specified storage pool type. - * - * Create a request for the method "storagePoolTypes.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 zone The name of the zone for this request. - * @param storagePoolType Name of the storage pool type to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) throws java.io.IOException { - Get result = new Get(project, zone, storagePoolType); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern STORAGE_POOL_TYPE_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 storage pool type. - * - * Create a request for the method "storagePoolTypes.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 zone The name of the zone for this request. - * @param storagePoolType Name of the storage pool type to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePoolType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.StoragePoolType.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])?"); - } - this.storagePoolType = com.google.api.client.util.Preconditions.checkNotNull(storagePoolType, "Required parameter storagePoolType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), - "Parameter storagePoolType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 storage pool type to return. */ - @com.google.api.client.util.Key - private java.lang.String storagePoolType; - - /** Name of the storage pool type to return. - */ - public java.lang.String getStoragePoolType() { - return storagePoolType; - } - - /** Name of the storage pool type to return. */ - public Get setStoragePoolType(java.lang.String storagePoolType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_TYPE_PATTERN.matcher(storagePoolType).matches(), - "Parameter storagePoolType must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePoolType = storagePoolType; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of storage pool types available to the specified project. - * - * Create a request for the method "storagePoolTypes.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}/storagePoolTypes"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 storage pool types available to the specified project. - * - * Create a request for the method "storagePoolTypes.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.preview.model.StoragePoolTypeList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the StoragePools collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.StoragePools.List request = compute.storagePools().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public StoragePools storagePools() { - return new StoragePools(); - } - - /** - * The "storagePools" collection of methods. - */ - public class StoragePools { - - /** - * Retrieves an aggregated list of storage pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "storagePools.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/storagePools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of storage pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "storagePools.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.StoragePoolAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is - * irreversible. However, deleting a storagePool does not delete any snapshots previously made from - * the storagePool. You must separately delete snapshots. - * - * Create a request for the method "storagePools.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param storagePool Name of the storage pool to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { - Delete result = new Delete(project, zone, storagePool); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is - * irreversible. However, deleting a storagePool does not delete any snapshots previously made - * from the storagePool. You must separately delete snapshots. - * - * Create a request for the method "storagePools.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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. - * @param storagePool Name of the storage pool to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 storage pool to delete. */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** Name of the storage pool to delete. - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** Name of the storage pool to delete. */ - public Delete setStoragePool(java.lang.String storagePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePool = storagePool; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns a specified storage pool. Gets a list of available storage pools by making a list() - * request. - * - * Create a request for the method "storagePools.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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { - Get result = new Get(project, zone, storagePool); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns a specified storage pool. Gets a list of available storage pools by making a list() - * request. - * - * Create a request for the method "storagePools.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 zone The name of the zone for this request. - * @param storagePool Name of the storage pool to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.StoragePool.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])?"); - } - this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 storage pool to return. */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** Name of the storage pool to return. - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** Name of the storage pool to return. */ - public Get setStoragePool(java.lang.String storagePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePool = storagePool; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "storagePools.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, zone, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "storagePools.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 GetIamPolicy 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a storage pool in the specified project using the data in the request. - * - * Create a request for the method "storagePools.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.StoragePool} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.StoragePool content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a storage pool in the specified project using the data in the request. - * - * Create a request for the method "storagePools.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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. - * @param content the {@link com.google.api.services.compute.preview.model.StoragePool} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.StoragePool content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of storage pools contained within the specified zone. - * - * Create a request for the method "storagePools.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}/storagePools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 storage pools contained within the specified zone. - * - * Create a request for the method "storagePools.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.preview.model.StoragePoolList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists the disks in a specified storage pool. - * - * Create a request for the method "storagePools.listDisks". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param storagePool Name of the storage pool to list disks of. - * @return the request - */ - public ListDisks listDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) throws java.io.IOException { - ListDisks result = new ListDisks(project, zone, storagePool); - initialize(result); - return result; - } - - public class ListDisks extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Lists the disks in a specified storage pool. - * - * Create a request for the method "storagePools.listDisks". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListDisks#execute()} method to invoke the remote operation.

- * {@link - * ListDisks#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. - * @param storagePool Name of the storage pool to list disks of. - * @since 1.13 - */ - protected ListDisks(java.lang.String project, java.lang.String zone, java.lang.String storagePool) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.StoragePoolListDisks.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])?"); - } - this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListDisks set$Xgafv(java.lang.String $Xgafv) { - return (ListDisks) super.set$Xgafv($Xgafv); - } - - @Override - public ListDisks setAccessToken(java.lang.String accessToken) { - return (ListDisks) super.setAccessToken(accessToken); - } - - @Override - public ListDisks setAlt(java.lang.String alt) { - return (ListDisks) super.setAlt(alt); - } - - @Override - public ListDisks setCallback(java.lang.String callback) { - return (ListDisks) super.setCallback(callback); - } - - @Override - public ListDisks setFields(java.lang.String fields) { - return (ListDisks) super.setFields(fields); - } - - @Override - public ListDisks setKey(java.lang.String key) { - return (ListDisks) super.setKey(key); - } - - @Override - public ListDisks setOauthToken(java.lang.String oauthToken) { - return (ListDisks) super.setOauthToken(oauthToken); - } - - @Override - public ListDisks setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListDisks) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListDisks setQuotaUser(java.lang.String quotaUser) { - return (ListDisks) super.setQuotaUser(quotaUser); - } - - @Override - public ListDisks setUploadType(java.lang.String uploadType) { - return (ListDisks) super.setUploadType(uploadType); - } - - @Override - public ListDisks setUploadProtocol(java.lang.String uploadProtocol) { - return (ListDisks) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListDisks setUserIp(java.lang.String userIp) { - return (ListDisks) 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 ListDisks 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 ListDisks 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 storage pool to list disks of. */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** Name of the storage pool to list disks of. - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** Name of the storage pool to list disks of. */ - public ListDisks setStoragePool(java.lang.String storagePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePool = storagePool; - 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 ListDisks 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 ListDisks 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 ListDisks 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 ListDisks setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public ListDisks set(String parameterName, Object value) { - return (ListDisks) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "storagePools.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "storagePools.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.ZoneSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 SetIamPolicy 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "storagePools.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "storagePools.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Updates the specified storagePool with the data included in the request. The update is performed - * only on selected fields included as part of update-mask. Only the following fields can be - * modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput. - * - * Create a request for the method "storagePools.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param storagePool The storagePool name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.StoragePool} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.preview.model.StoragePool content) throws java.io.IOException { - Update result = new Update(project, zone, storagePool, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern STORAGE_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified storagePool with the data included in the request. The update is - * performed only on selected fields included as part of update-mask. Only the following fields - * can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and - * pool_provisioned_throughput. - * - * Create a request for the method "storagePools.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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. - * @param storagePool The storagePool name for this request. - * @param content the {@link com.google.api.services.compute.preview.model.StoragePool} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String storagePool, com.google.api.services.compute.preview.model.StoragePool content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.storagePool = com.google.api.client.util.Preconditions.checkNotNull(storagePool, "Required parameter storagePool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 Update 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; - } - - /** The storagePool name for this request. */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** The storagePool name for this request. - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** The storagePool name for this request. */ - public Update setStoragePool(java.lang.String storagePool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.storagePool = storagePool; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Subnetworks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Subnetworks.List request = compute.subnetworks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Subnetworks subnetworks() { - return new Subnetworks(); - } - - /** - * The "subnetworks" collection of methods. - */ - public class Subnetworks { - - /** - * Retrieves an aggregated list of subnetworks. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "subnetworks.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/subnetworks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of subnetworks. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "subnetworks.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.SubnetworkAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. - */ - @com.google.api.client.util.Key - private java.util.List views; - - /** Defines the extra views returned back in the subnetwork resource. Supported values: - - - WITH_UTILIZATION: Utilization data is included in the response. - */ - public java.util.List getViews() { - return views; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. - */ - public AggregatedList setViews(java.util.List views) { - this.views = views; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified subnetwork. - * - * Create a request for the method "subnetworks.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { - Delete result = new Delete(project, region, subnetwork); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SUBNETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified subnetwork. - * - * Create a request for the method "subnetworks.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 Subnetwork resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource to delete. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource to delete. */ - public Delete setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Expands the IP CIDR range of the subnetwork to a specified value. - * - * Create a request for the method "subnetworks.expandIpCidrRange". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ExpandIpCidrRange#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.SubnetworksExpandIpCidrRangeRequest} - * @return the request - */ - public ExpandIpCidrRange expandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.preview.model.SubnetworksExpandIpCidrRangeRequest content) throws java.io.IOException { - ExpandIpCidrRange result = new ExpandIpCidrRange(project, region, subnetwork, content); - initialize(result); - return result; - } - - public class ExpandIpCidrRange extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SUBNETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Expands the IP CIDR range of the subnetwork to a specified value. - * - * Create a request for the method "subnetworks.expandIpCidrRange". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ExpandIpCidrRange#execute()} method to invoke the remote operation. - *

{@link ExpandIpCidrRange#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 subnetwork Name of the Subnetwork resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.SubnetworksExpandIpCidrRangeRequest} - * @since 1.13 - */ - protected ExpandIpCidrRange(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.preview.model.SubnetworksExpandIpCidrRangeRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public ExpandIpCidrRange set$Xgafv(java.lang.String $Xgafv) { - return (ExpandIpCidrRange) super.set$Xgafv($Xgafv); - } - - @Override - public ExpandIpCidrRange setAccessToken(java.lang.String accessToken) { - return (ExpandIpCidrRange) super.setAccessToken(accessToken); - } - - @Override - public ExpandIpCidrRange setAlt(java.lang.String alt) { - return (ExpandIpCidrRange) super.setAlt(alt); - } - - @Override - public ExpandIpCidrRange setCallback(java.lang.String callback) { - return (ExpandIpCidrRange) super.setCallback(callback); - } - - @Override - public ExpandIpCidrRange setFields(java.lang.String fields) { - return (ExpandIpCidrRange) super.setFields(fields); - } - - @Override - public ExpandIpCidrRange setKey(java.lang.String key) { - return (ExpandIpCidrRange) super.setKey(key); - } - - @Override - public ExpandIpCidrRange setOauthToken(java.lang.String oauthToken) { - return (ExpandIpCidrRange) super.setOauthToken(oauthToken); - } - - @Override - public ExpandIpCidrRange setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ExpandIpCidrRange) super.setPrettyPrint(prettyPrint); - } - - @Override - public ExpandIpCidrRange setQuotaUser(java.lang.String quotaUser) { - return (ExpandIpCidrRange) super.setQuotaUser(quotaUser); - } - - @Override - public ExpandIpCidrRange setUploadType(java.lang.String uploadType) { - return (ExpandIpCidrRange) super.setUploadType(uploadType); - } - - @Override - public ExpandIpCidrRange setUploadProtocol(java.lang.String uploadProtocol) { - return (ExpandIpCidrRange) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ExpandIpCidrRange setUserIp(java.lang.String userIp) { - return (ExpandIpCidrRange) 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 ExpandIpCidrRange 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 ExpandIpCidrRange 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 Subnetwork resource to update. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource to update. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource to update. */ - public ExpandIpCidrRange setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - 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 ExpandIpCidrRange setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public ExpandIpCidrRange set(String parameterName, Object value) { - return (ExpandIpCidrRange) super.set(parameterName, value); - } - } - /** - * Returns the specified subnetwork. - * - * Create a request for the method "subnetworks.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 region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String subnetwork) throws java.io.IOException { - Get result = new Get(project, region, subnetwork); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SUBNETWORK_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 subnetwork. - * - * Create a request for the method "subnetworks.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 region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String subnetwork) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Subnetwork.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 Subnetwork resource to return. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource to return. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource to return. */ - public Get setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - return this; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. - */ - @com.google.api.client.util.Key - private java.util.List views; - - /** Defines the extra views returned back in the subnetwork resource. Supported values: - - - WITH_UTILIZATION: Utilization data is included in the response. - */ - public java.util.List getViews() { - return views; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. - */ - public Get setViews(java.util.List views) { - this.views = views; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "subnetworks.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "subnetworks.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Creates a subnetwork in the specified project using the data included in the request. - * - * Create a request for the method "subnetworks.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Subnetwork} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Subnetwork content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a subnetwork in the specified project using the data included in the request. - * - * Create a request for the method "subnetworks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.Subnetwork} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.Subnetwork content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of subnetworks available to the specified project. - * - * Create a request for the method "subnetworks.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 region Name of the region scoping 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}/subnetworks"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of subnetworks available to the specified project. - * - * Create a request for the method "subnetworks.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 region Name of the region scoping 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.preview.model.SubnetworkList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. - */ - @com.google.api.client.util.Key - private java.util.List views; - - /** Defines the extra views returned back in the subnetwork resource. Supported values: - - - WITH_UTILIZATION: Utilization data is included in the response. - */ - public java.util.List getViews() { - return views; - } - - /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. - */ - public List setViews(java.util.List views) { - this.views = views; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of all usable subnetworks in the project. - * - * Create a request for the method "subnetworks.listUsable". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public ListUsable listUsable(java.lang.String project) throws java.io.IOException { - ListUsable result = new ListUsable(project); - initialize(result); - return result; - } - - public class ListUsable extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/subnetworks/listUsable"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of all usable subnetworks in the project. - * - * Create a request for the method "subnetworks.listUsable". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListUsable#execute()} method to invoke the remote operation.

- * {@link - * ListUsable#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. - * @since 1.13 - */ - protected ListUsable(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.UsableSubnetworksAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); - } - - @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); - } - - @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); - } - - @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); - } - - @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); - } - - @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); - } - - @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); - } - - @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); - } - - @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); - } - - @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) 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 ListUsable 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; - } - - /** - * 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 ListUsable 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 ListUsable 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 ListUsable 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 ListUsable setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The project id or project number in which the subnetwork is intended to be used. Only - * applied for Shared VPC. See [Shared VPC - * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) - */ - @com.google.api.client.util.Key - private java.lang.String serviceProject; - - /** The project id or project number in which the subnetwork is intended to be used. Only applied for - Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/) - */ - public java.lang.String getServiceProject() { - return serviceProject; - } - - /** - * The project id or project number in which the subnetwork is intended to be used. Only - * applied for Shared VPC. See [Shared VPC - * documentation](https://cloud.google.com/vpc/docs/shared-vpc/) - */ - public ListUsable setServiceProject(java.lang.String serviceProject) { - this.serviceProject = serviceProject; - return this; - } - - @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); - } - } - /** - * Patches the specified subnetwork with the data included in the request. Only certain fields can - * be updated with a patch request as indicated in the field descriptions. You must specify the - * current fingerprint of the subnetwork resource being patched. - * - * Create a request for the method "subnetworks.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Subnetwork} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.preview.model.Subnetwork content) throws java.io.IOException { - Patch result = new Patch(project, region, subnetwork, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SUBNETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified subnetwork with the data included in the request. Only certain fields can - * be updated with a patch request as indicated in the field descriptions. You must specify the - * current fingerprint of the subnetwork resource being patched. - * - * Create a request for the method "subnetworks.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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.Subnetwork} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.preview.model.Subnetwork content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 Patch 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 Subnetwork resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource to patch. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource to patch. */ - public Patch setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - return this; - } - - /** - * The drain timeout specifies the upper bound in seconds on the amount of time allowed to - * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The - * drain timeout is only applicable when the following conditions are true: - the subnetwork - * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has - * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch - * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. - */ - @com.google.api.client.util.Key - private java.lang.Integer drainTimeoutSeconds; - - /** The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain - connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout - is only applicable when the following conditions are true: - the subnetwork being patched has - purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch - request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE - and BACKUP subnetworks will be swapped. - */ - public java.lang.Integer getDrainTimeoutSeconds() { - return drainTimeoutSeconds; - } - - /** - * The drain timeout specifies the upper bound in seconds on the amount of time allowed to - * drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The - * drain timeout is only applicable when the following conditions are true: - the subnetwork - * being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has - * role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch - * operation the roles of the ACTIVE and BACKUP subnetworks will be swapped. - */ - public Patch setDrainTimeoutSeconds(java.lang.Integer drainTimeoutSeconds) { - this.drainTimeoutSeconds = drainTimeoutSeconds; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "subnetworks.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "subnetworks.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Set whether VMs in this subnet can access Google services without assigning external IP addresses - * through Private Google Access. - * - * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetPrivateIpGoogleAccess#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource. - * @param content the {@link com.google.api.services.compute.preview.model.SubnetworksSetPrivateIpGoogleAccessRequest} - * @return the request - */ - public SetPrivateIpGoogleAccess setPrivateIpGoogleAccess(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.preview.model.SubnetworksSetPrivateIpGoogleAccessRequest content) throws java.io.IOException { - SetPrivateIpGoogleAccess result = new SetPrivateIpGoogleAccess(project, region, subnetwork, content); - initialize(result); - return result; - } - - public class SetPrivateIpGoogleAccess extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 SUBNETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Set whether VMs in this subnet can access Google services without assigning external IP - * addresses through Private Google Access. - * - * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetPrivateIpGoogleAccess#execute()} method to invoke the remote - * operation.

{@link SetPrivateIpGoogleAccess#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} 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 subnetwork Name of the Subnetwork resource. - * @param content the {@link com.google.api.services.compute.preview.model.SubnetworksSetPrivateIpGoogleAccessRequest} - * @since 1.13 - */ - protected SetPrivateIpGoogleAccess(java.lang.String project, java.lang.String region, java.lang.String subnetwork, com.google.api.services.compute.preview.model.SubnetworksSetPrivateIpGoogleAccessRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.subnetwork = com.google.api.client.util.Preconditions.checkNotNull(subnetwork, "Required parameter subnetwork must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetPrivateIpGoogleAccess set$Xgafv(java.lang.String $Xgafv) { - return (SetPrivateIpGoogleAccess) super.set$Xgafv($Xgafv); - } - - @Override - public SetPrivateIpGoogleAccess setAccessToken(java.lang.String accessToken) { - return (SetPrivateIpGoogleAccess) super.setAccessToken(accessToken); - } - - @Override - public SetPrivateIpGoogleAccess setAlt(java.lang.String alt) { - return (SetPrivateIpGoogleAccess) super.setAlt(alt); - } - - @Override - public SetPrivateIpGoogleAccess setCallback(java.lang.String callback) { - return (SetPrivateIpGoogleAccess) super.setCallback(callback); - } - - @Override - public SetPrivateIpGoogleAccess setFields(java.lang.String fields) { - return (SetPrivateIpGoogleAccess) super.setFields(fields); - } - - @Override - public SetPrivateIpGoogleAccess setKey(java.lang.String key) { - return (SetPrivateIpGoogleAccess) super.setKey(key); - } - - @Override - public SetPrivateIpGoogleAccess setOauthToken(java.lang.String oauthToken) { - return (SetPrivateIpGoogleAccess) super.setOauthToken(oauthToken); - } - - @Override - public SetPrivateIpGoogleAccess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetPrivateIpGoogleAccess) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetPrivateIpGoogleAccess setQuotaUser(java.lang.String quotaUser) { - return (SetPrivateIpGoogleAccess) super.setQuotaUser(quotaUser); - } - - @Override - public SetPrivateIpGoogleAccess setUploadType(java.lang.String uploadType) { - return (SetPrivateIpGoogleAccess) super.setUploadType(uploadType); - } - - @Override - public SetPrivateIpGoogleAccess setUploadProtocol(java.lang.String uploadProtocol) { - return (SetPrivateIpGoogleAccess) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetPrivateIpGoogleAccess setUserIp(java.lang.String userIp) { - return (SetPrivateIpGoogleAccess) 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 SetPrivateIpGoogleAccess 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 SetPrivateIpGoogleAccess 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 Subnetwork resource. */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** Name of the Subnetwork resource. - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** Name of the Subnetwork resource. */ - public SetPrivateIpGoogleAccess setSubnetwork(java.lang.String subnetwork) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.subnetwork = subnetwork; - 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 SetPrivateIpGoogleAccess setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetPrivateIpGoogleAccess set(String parameterName, Object value) { - return (SetPrivateIpGoogleAccess) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "subnetworks.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "subnetworks.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetGrpcProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetGrpcProxies.List request = compute.targetGrpcProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetGrpcProxies targetGrpcProxies() { - return new TargetGrpcProxies(); - } - - /** - * The "targetGrpcProxies" collection of methods. - */ - public class TargetGrpcProxies { - - /** - * Deletes the specified TargetGrpcProxy in the given scope - * - * Create a request for the method "targetGrpcProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { - Delete result = new Delete(project, targetGrpcProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_GRPC_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetGrpcProxy in the given scope - * - * Create a request for the method "targetGrpcProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 targetGrpcProxy Name of the TargetGrpcProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String targetGrpcProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 TargetGrpcProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; - - /** Name of the TargetGrpcProxy resource to delete. - */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; - } - - /** Name of the TargetGrpcProxy resource to delete. */ - public Delete setTargetGrpcProxy(java.lang.String targetGrpcProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetGrpcProxy = targetGrpcProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetGrpcProxy resource in the given scope. - * - * Create a request for the method "targetGrpcProxies.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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { - Get result = new Get(project, targetGrpcProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_GRPC_PROXY_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 TargetGrpcProxy resource in the given scope. - * - * Create a request for the method "targetGrpcProxies.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 targetGrpcProxy Name of the TargetGrpcProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String targetGrpcProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetGrpcProxy.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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 TargetGrpcProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; - - /** Name of the TargetGrpcProxy resource to return. - */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; - } - - /** Name of the TargetGrpcProxy resource to return. */ - public Get setTargetGrpcProxy(java.lang.String targetGrpcProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetGrpcProxy = targetGrpcProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that - * are included in the request. - * - * Create a request for the method "targetGrpcProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetGrpcProxy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetGrpcProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that - * are included in the request. - * - * Create a request for the method "targetGrpcProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.TargetGrpcProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetGrpcProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the TargetGrpcProxies for a project in the given scope. - * - * Create a request for the method "targetGrpcProxies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the TargetGrpcProxies for a project in the given scope. - * - * Create a request for the method "targetGrpcProxies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetGrpcProxyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified TargetGrpcProxy resource with the data included in the request. This method - * supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetGrpcProxies.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 Project ID for this request. - * @param targetGrpcProxy Name of the TargetGrpcProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetGrpcProxy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.preview.model.TargetGrpcProxy content) throws java.io.IOException { - Patch result = new Patch(project, targetGrpcProxy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_GRPC_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified TargetGrpcProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetGrpcProxies.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 Project ID for this request. - * @param targetGrpcProxy Name of the TargetGrpcProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetGrpcProxy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String targetGrpcProxy, com.google.api.services.compute.preview.model.TargetGrpcProxy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 TargetGrpcProxy resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; - - /** Name of the TargetGrpcProxy resource to patch. - */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; - } - - /** Name of the TargetGrpcProxy resource to patch. */ - public Patch setTargetGrpcProxy(java.lang.String targetGrpcProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetGrpcProxy = targetGrpcProxy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetHttpProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetHttpProxies.List request = compute.targetHttpProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetHttpProxies targetHttpProxies() { - return new TargetHttpProxies(); - } - - /** - * The "targetHttpProxies" collection of methods. - */ - public class TargetHttpProxies { - - /** - * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetHttpProxies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/targetHttpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetHttpProxies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpProxyAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified TargetHttpProxy resource. - * - * Create a request for the method "targetHttpProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { - Delete result = new Delete(project, targetHttpProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetHttpProxy resource. - * - * Create a request for the method "targetHttpProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 targetHttpProxy Name of the TargetHttpProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String targetHttpProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 TargetHttpProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy resource to delete. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy resource to delete. */ - public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetHttpProxy resource. - * - * Create a request for the method "targetHttpProxies.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 targetHttpProxy Name of the TargetHttpProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { - Get result = new Get(project, targetHttpProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_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 TargetHttpProxy resource. - * - * Create a request for the method "targetHttpProxies.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 targetHttpProxy Name of the TargetHttpProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String targetHttpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpProxy.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 TargetHttpProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy resource to return. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy resource to return. */ - public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetHttpProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetHttpProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpProxy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetHttpProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a TargetHttpProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetHttpProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.TargetHttpProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetHttpProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. - * - * Create a request for the method "targetHttpProxies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. - * - * Create a request for the method "targetHttpProxies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpProxyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified TargetHttpProxy resource with the data included in the request. This method - * supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetHttpProxies.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 Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpProxy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.preview.model.TargetHttpProxy content) throws java.io.IOException { - Patch result = new Patch(project, targetHttpProxy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified TargetHttpProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetHttpProxies.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 Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpProxy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.preview.model.TargetHttpProxy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 TargetHttpProxy resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy resource to patch. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy resource to patch. */ - public Patch setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Changes the URL map for TargetHttpProxy. - * - * Create a request for the method "targetHttpProxies.setUrlMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @return the request - */ - public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.preview.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, targetHttpProxy, content); - initialize(result); - return result; - } - - public class SetUrlMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the URL map for TargetHttpProxy. - * - * Create a request for the method "targetHttpProxies.setUrlMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

- * {@link - * SetUrlMap#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 targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @since 1.13 - */ - protected SetUrlMap(java.lang.String project, java.lang.String targetHttpProxy, com.google.api.services.compute.preview.model.UrlMapReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); - } - - @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); - } - - @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); - } - - @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); - } - - @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); - } - - @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); - } - - @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); - } - - @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) 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 SetUrlMap 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 TargetHttpProxy to set a URL map for. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; - - /** Name of the TargetHttpProxy to set a URL map for. - */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; - } - - /** Name of the TargetHttpProxy to set a URL map for. */ - public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpProxy = targetHttpProxy; - 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 SetUrlMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetHttpsProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetHttpsProxies.List request = compute.targetHttpsProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetHttpsProxies targetHttpsProxies() { - return new TargetHttpsProxies(); - } - - /** - * The "targetHttpsProxies" collection of methods. - */ - public class TargetHttpsProxies { - - /** - * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetHttpsProxies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/targetHttpsProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetHttpsProxies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpsProxyAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified TargetHttpsProxy resource. - * - * Create a request for the method "targetHttpsProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { - Delete result = new Delete(project, targetHttpsProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetHttpsProxy resource. - * - * Create a request for the method "targetHttpsProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 targetHttpsProxy Name of the TargetHttpsProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String targetHttpsProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 TargetHttpsProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to delete. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to delete. */ - public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetHttpsProxy resource. - * - * Create a request for the method "targetHttpsProxies.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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String targetHttpsProxy) throws java.io.IOException { - Get result = new Get(project, targetHttpsProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_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 TargetHttpsProxy resource. - * - * Create a request for the method "targetHttpsProxies.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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String targetHttpsProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpsProxy.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 TargetHttpsProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to return. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to return. */ - public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetHttpsProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetHttpsProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetHttpsProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a TargetHttpsProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetHttpsProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetHttpsProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project. - * - * Create a request for the method "targetHttpsProxies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project. - * - * Create a request for the method "targetHttpsProxies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetHttpsProxyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified TargetHttpsProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetHttpsProxies.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 Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxy content) throws java.io.IOException { - Patch result = new Patch(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified TargetHttpsProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "targetHttpsProxies.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 Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxy} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 TargetHttpsProxy resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to patch. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** Name of the TargetHttpsProxy resource to patch. */ - public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Changes the Certificate Map for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setCertificateMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap is - to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxiesSetCertificateMapRequest} - * @return the request - */ - public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxiesSetCertificateMapRequest content) throws java.io.IOException { - SetCertificateMap result = new SetCertificateMap(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetCertificateMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Changes the Certificate Map for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setCertificateMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - *

{@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose CertificateMap is - to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxiesSetCertificateMapRequest} - * @since 1.13 - */ - protected SetCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxiesSetCertificateMapRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { - return (SetCertificateMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetCertificateMap setAccessToken(java.lang.String accessToken) { - return (SetCertificateMap) super.setAccessToken(accessToken); - } - - @Override - public SetCertificateMap setAlt(java.lang.String alt) { - return (SetCertificateMap) super.setAlt(alt); - } - - @Override - public SetCertificateMap setCallback(java.lang.String callback) { - return (SetCertificateMap) super.setCallback(callback); - } - - @Override - public SetCertificateMap setFields(java.lang.String fields) { - return (SetCertificateMap) super.setFields(fields); - } - - @Override - public SetCertificateMap setKey(java.lang.String key) { - return (SetCertificateMap) super.setKey(key); - } - - @Override - public SetCertificateMap setOauthToken(java.lang.String oauthToken) { - return (SetCertificateMap) super.setOauthToken(oauthToken); - } - - @Override - public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCertificateMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { - return (SetCertificateMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetCertificateMap setUploadType(java.lang.String uploadType) { - return (SetCertificateMap) super.setUploadType(uploadType); - } - - @Override - public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetCertificateMap setUserIp(java.lang.String userIp) { - return (SetCertificateMap) 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 SetCertificateMap 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 TargetHttpsProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be 1-63 - characters long, and comply with RFC1035. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - public SetCertificateMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; - 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 SetCertificateMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetCertificateMap set(String parameterName, Object value) { - return (SetCertificateMap) super.set(parameterName, value); - } - } - /** - * Sets the QUIC override policy for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setQuicOverride". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. - The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxiesSetQuicOverrideRequest} - * @return the request - */ - public SetQuicOverride setQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxiesSetQuicOverrideRequest content) throws java.io.IOException { - SetQuicOverride result = new SetQuicOverride(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetQuicOverride extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the QUIC override policy for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setQuicOverride". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetQuicOverride#execute()} method to invoke the remote operation. - *

{@link SetQuicOverride#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. - The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxiesSetQuicOverrideRequest} - * @since 1.13 - */ - protected SetQuicOverride(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxiesSetQuicOverrideRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetQuicOverride set$Xgafv(java.lang.String $Xgafv) { - return (SetQuicOverride) super.set$Xgafv($Xgafv); - } - - @Override - public SetQuicOverride setAccessToken(java.lang.String accessToken) { - return (SetQuicOverride) super.setAccessToken(accessToken); - } - - @Override - public SetQuicOverride setAlt(java.lang.String alt) { - return (SetQuicOverride) super.setAlt(alt); - } - - @Override - public SetQuicOverride setCallback(java.lang.String callback) { - return (SetQuicOverride) super.setCallback(callback); - } - - @Override - public SetQuicOverride setFields(java.lang.String fields) { - return (SetQuicOverride) super.setFields(fields); - } - - @Override - public SetQuicOverride setKey(java.lang.String key) { - return (SetQuicOverride) super.setKey(key); - } - - @Override - public SetQuicOverride setOauthToken(java.lang.String oauthToken) { - return (SetQuicOverride) super.setOauthToken(oauthToken); - } - - @Override - public SetQuicOverride setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetQuicOverride) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetQuicOverride setQuotaUser(java.lang.String quotaUser) { - return (SetQuicOverride) super.setQuotaUser(quotaUser); - } - - @Override - public SetQuicOverride setUploadType(java.lang.String uploadType) { - return (SetQuicOverride) super.setUploadType(uploadType); - } - - @Override - public SetQuicOverride setUploadProtocol(java.lang.String uploadProtocol) { - return (SetQuicOverride) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetQuicOverride setUserIp(java.lang.String userIp) { - return (SetQuicOverride) 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 SetQuicOverride 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 TargetHttpsProxy resource to set the QUIC override policy for. The name should - * conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform - to RFC1035. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should - * conform to RFC1035. - */ - public SetQuicOverride setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; - 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 SetQuicOverride setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetQuicOverride set(String parameterName, Object value) { - return (SetQuicOverride) super.set(parameterName, value); - } - } - /** - * Replaces SslCertificates for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setSslCertificates". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxiesSetSslCertificatesRequest} - * @return the request - */ - public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxiesSetSslCertificatesRequest content) throws java.io.IOException { - SetSslCertificates result = new SetSslCertificates(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetSslCertificates extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Replaces SslCertificates for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setSslCertificates". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote - * operation.

{@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.preview.model.TargetHttpsProxiesSetSslCertificatesRequest} - * @since 1.13 - */ - protected SetSslCertificates(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.TargetHttpsProxiesSetSslCertificatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); - } - - @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); - } - - @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); - } - - @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); - } - - @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); - } - - @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); - } - - @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); - } - - @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) 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 SetSslCertificates 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 TargetHttpsProxy resource to set an SslCertificates resource for. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 SetSslCertificates setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); - } - } - /** - * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for - * SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do - * not affect the connection between the load balancer and the backends. - * - * Create a request for the method "targetHttpsProxies.setSslPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is - to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicyReference} - * @return the request - */ - public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.SslPolicyReference content) throws java.io.IOException { - SetSslPolicy result = new SetSslPolicy(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetSslPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for - * SSL features. This affects connections between clients and the HTTPS proxy load balancer. They - * do not affect the connection between the load balancer and the backends. - * - * Create a request for the method "targetHttpsProxies.setSslPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetSslPolicy#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 targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is - to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicyReference} - * @since 1.13 - */ - protected SetSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.SslPolicyReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSslPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslPolicy setAccessToken(java.lang.String accessToken) { - return (SetSslPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetSslPolicy setAlt(java.lang.String alt) { - return (SetSslPolicy) super.setAlt(alt); - } - - @Override - public SetSslPolicy setCallback(java.lang.String callback) { - return (SetSslPolicy) super.setCallback(callback); - } - - @Override - public SetSslPolicy setFields(java.lang.String fields) { - return (SetSslPolicy) super.setFields(fields); - } - - @Override - public SetSslPolicy setKey(java.lang.String key) { - return (SetSslPolicy) super.setKey(key); - } - - @Override - public SetSslPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSslPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSslPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslPolicy setUploadType(java.lang.String uploadType) { - return (SetSslPolicy) super.setUploadType(uploadType); - } - - @Override - public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslPolicy setUserIp(java.lang.String userIp) { - return (SetSslPolicy) 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 SetSslPolicy 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 TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - characters long, and comply with RFC1035. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ - public SetSslPolicy setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; - 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 SetSslPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSslPolicy set(String parameterName, Object value) { - return (SetSslPolicy) super.set(parameterName, value); - } - } - /** - * Changes the URL map for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setUrlMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is - to be set. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @return the request - */ - public SetUrlMap setUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, targetHttpsProxy, content); - initialize(result); - return result; - } - - public class SetUrlMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_HTTPS_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the URL map for TargetHttpsProxy. - * - * Create a request for the method "targetHttpsProxies.setUrlMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

- * {@link - * SetUrlMap#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 targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is - to be set. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapReference} - * @since 1.13 - */ - protected SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.preview.model.UrlMapReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); - } - - @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); - } - - @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); - } - - @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); - } - - @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); - } - - @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); - } - - @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); - } - - @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) 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 SetUrlMap 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 TargetHttpsProxy resource whose URL map is to be set. - */ - @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; - - /** Name of the TargetHttpsProxy resource whose URL map is to be set. - */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; - } - - /** - * Name of the TargetHttpsProxy resource whose URL map is to be set. - */ - public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetHttpsProxy = targetHttpsProxy; - 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 SetUrlMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetInstances collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetInstances.List request = compute.targetInstances().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetInstances targetInstances() { - return new TargetInstances(); - } - - /** - * The "targetInstances" collection of methods. - */ - public class TargetInstances { - - /** - * Retrieves an aggregated list of target instances. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetInstances.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/targetInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of target instances. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetInstances.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetInstanceAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified TargetInstance resource. - * - * Create a request for the method "targetInstances.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { - Delete result = new Delete(project, zone, targetInstance); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern TARGET_INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetInstance resource. - * - * Create a request for the method "targetInstances.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping this request. */ - public Delete 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 TargetInstance resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetInstance; - - /** Name of the TargetInstance resource to delete. - */ - public java.lang.String getTargetInstance() { - return targetInstance; - } - - /** Name of the TargetInstance resource to delete. */ - public Delete setTargetInstance(java.lang.String targetInstance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetInstance = targetInstance; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetInstance resource. - * - * Create a request for the method "targetInstances.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 zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) throws java.io.IOException { - Get result = new Get(project, zone, targetInstance); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern TARGET_INSTANCE_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 TargetInstance resource. - * - * Create a request for the method "targetInstances.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 zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String targetInstance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetInstance.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])?"); - } - this.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping 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 TargetInstance resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetInstance; - - /** Name of the TargetInstance resource to return. - */ - public java.lang.String getTargetInstance() { - return targetInstance; - } - - /** Name of the TargetInstance resource to return. */ - public Get setTargetInstance(java.lang.String targetInstance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetInstance = targetInstance; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetInstance resource in the specified project and zone using the data included in - * the request. - * - * Create a request for the method "targetInstances.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetInstance} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.TargetInstance content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a TargetInstance resource in the specified project and zone using the data included in - * the request. - * - * Create a request for the method "targetInstances.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 Name of the zone scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetInstance} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.TargetInstance content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of TargetInstance resources available to the specified project and zone. - * - * Create a request for the method "targetInstances.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 Name of the zone scoping 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}/targetInstances"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TargetInstance resources available to the specified project and zone. - * - * Create a request for the method "targetInstances.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 Name of the zone scoping 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.preview.model.TargetInstanceList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the Google Cloud Armor security policy for the specified target instance. For more - * information, seeGoogle Cloud Armor Overview - * - * Create a request for the method "targetInstances.setSecurityPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to which the security policy should be - set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @return the request - */ - public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.preview.model.SecurityPolicyReference content) throws java.io.IOException { - SetSecurityPolicy result = new SetSecurityPolicy(project, zone, targetInstance, content); - initialize(result); - return result; - } - - public class SetSecurityPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Sets the Google Cloud Armor security policy for the specified target instance. For more - * information, seeGoogle Cloud Armor Overview - * - * Create a request for the method "targetInstances.setSecurityPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. - *

{@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to which the security policy should be - set. The name should - * conform to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @since 1.13 - */ - protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String targetInstance, com.google.api.services.compute.preview.model.SecurityPolicyReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.targetInstance = com.google.api.client.util.Preconditions.checkNotNull(targetInstance, "Required parameter targetInstance must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); - } - - @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); - } - - @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); - } - - @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); - } - - @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); - } - - @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) 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 SetSecurityPolicy 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 zone scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone scoping this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone scoping this request. */ - public SetSecurityPolicy 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 TargetInstance resource to which the security policy should be set. The name - * should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetInstance; - - /** Name of the TargetInstance resource to which the security policy should be set. The name should - conform to RFC1035. - */ - public java.lang.String getTargetInstance() { - return targetInstance; - } - - /** - * Name of the TargetInstance resource to which the security policy should be set. The name - * should conform to RFC1035. - */ - public SetSecurityPolicy setTargetInstance(java.lang.String targetInstance) { - this.targetInstance = targetInstance; - 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetInstances.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetInstances.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the 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 TestIamPermissions 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 or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetPools collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetPools.List request = compute.targetPools().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetPools targetPools() { - return new TargetPools(); - } - - /** - * The "targetPools" collection of methods. - */ - public class TargetPools { - - /** - * Adds health check URLs to a target pool. - * - * Create a request for the method "targetPools.addHealthCheck". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the target pool to add a health check to. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsAddHealthCheckRequest} - * @return the request - */ - public AddHealthCheck addHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsAddHealthCheckRequest content) throws java.io.IOException { - AddHealthCheck result = new AddHealthCheck(project, region, targetPool, content); - initialize(result); - return result; - } - - public class AddHealthCheck extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds health check URLs to a target pool. - * - * Create a request for the method "targetPools.addHealthCheck". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddHealthCheck#execute()} method to invoke the remote operation. - *

{@link AddHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 targetPool Name of the target pool to add a health check to. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsAddHealthCheckRequest} - * @since 1.13 - */ - protected AddHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsAddHealthCheckRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddHealthCheck set$Xgafv(java.lang.String $Xgafv) { - return (AddHealthCheck) super.set$Xgafv($Xgafv); - } - - @Override - public AddHealthCheck setAccessToken(java.lang.String accessToken) { - return (AddHealthCheck) super.setAccessToken(accessToken); - } - - @Override - public AddHealthCheck setAlt(java.lang.String alt) { - return (AddHealthCheck) super.setAlt(alt); - } - - @Override - public AddHealthCheck setCallback(java.lang.String callback) { - return (AddHealthCheck) super.setCallback(callback); - } - - @Override - public AddHealthCheck setFields(java.lang.String fields) { - return (AddHealthCheck) super.setFields(fields); - } - - @Override - public AddHealthCheck setKey(java.lang.String key) { - return (AddHealthCheck) super.setKey(key); - } - - @Override - public AddHealthCheck setOauthToken(java.lang.String oauthToken) { - return (AddHealthCheck) super.setOauthToken(oauthToken); - } - - @Override - public AddHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddHealthCheck) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddHealthCheck setQuotaUser(java.lang.String quotaUser) { - return (AddHealthCheck) super.setQuotaUser(quotaUser); - } - - @Override - public AddHealthCheck setUploadType(java.lang.String uploadType) { - return (AddHealthCheck) super.setUploadType(uploadType); - } - - @Override - public AddHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { - return (AddHealthCheck) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddHealthCheck setUserIp(java.lang.String userIp) { - return (AddHealthCheck) 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 AddHealthCheck 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 AddHealthCheck 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 target pool to add a health check to. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the target pool to add a health check to. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the target pool to add a health check to. */ - public AddHealthCheck setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - 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 AddHealthCheck setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddHealthCheck set(String parameterName, Object value) { - return (AddHealthCheck) super.set(parameterName, value); - } - } - /** - * Adds an instance to a target pool. - * - * Create a request for the method "targetPools.addInstance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to add instances to. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsAddInstanceRequest} - * @return the request - */ - public AddInstance addInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsAddInstanceRequest content) throws java.io.IOException { - AddInstance result = new AddInstance(project, region, targetPool, content); - initialize(result); - return result; - } - - public class AddInstance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Adds an instance to a target pool. - * - * Create a request for the method "targetPools.addInstance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation.

- * {@link - * AddInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to add instances to. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsAddInstanceRequest} - * @since 1.13 - */ - protected AddInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsAddInstanceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public AddInstance set$Xgafv(java.lang.String $Xgafv) { - return (AddInstance) super.set$Xgafv($Xgafv); - } - - @Override - public AddInstance setAccessToken(java.lang.String accessToken) { - return (AddInstance) super.setAccessToken(accessToken); - } - - @Override - public AddInstance setAlt(java.lang.String alt) { - return (AddInstance) super.setAlt(alt); - } - - @Override - public AddInstance setCallback(java.lang.String callback) { - return (AddInstance) super.setCallback(callback); - } - - @Override - public AddInstance setFields(java.lang.String fields) { - return (AddInstance) super.setFields(fields); - } - - @Override - public AddInstance setKey(java.lang.String key) { - return (AddInstance) super.setKey(key); - } - - @Override - public AddInstance setOauthToken(java.lang.String oauthToken) { - return (AddInstance) super.setOauthToken(oauthToken); - } - - @Override - public AddInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddInstance) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddInstance setQuotaUser(java.lang.String quotaUser) { - return (AddInstance) super.setQuotaUser(quotaUser); - } - - @Override - public AddInstance setUploadType(java.lang.String uploadType) { - return (AddInstance) super.setUploadType(uploadType); - } - - @Override - public AddInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (AddInstance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AddInstance setUserIp(java.lang.String userIp) { - return (AddInstance) 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 AddInstance 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 AddInstance 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 TargetPool resource to add instances to. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to add instances to. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the TargetPool resource to add instances to. */ - public AddInstance setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - 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 AddInstance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddInstance set(String parameterName, Object value) { - return (AddInstance) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of target pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetPools.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/targetPools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of target pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetPools.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetPoolAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified target pool. - * - * Create a request for the method "targetPools.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) throws java.io.IOException { - Delete result = new Delete(project, region, targetPool); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified target pool. - * - * Create a request for the method "targetPools.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetPool) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 Delete 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 TargetPool resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to delete. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the TargetPool resource to delete. */ - public Delete setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified target pool. - * - * Create a request for the method "targetPools.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 region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String targetPool) throws java.io.IOException { - Get result = new Get(project, region, targetPool); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_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 target pool. - * - * Create a request for the method "targetPools.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 region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String targetPool) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetPool.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 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 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 TargetPool resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to return. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the TargetPool resource to return. */ - public Get setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the most recent health check results for each IP for the instance that is referenced by the - * given target pool. - * - * Create a request for the method "targetPools.getHealth". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to which the queried instance belongs. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceReference} - * @return the request - */ - public GetHealth getHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.InstanceReference content) throws java.io.IOException { - GetHealth result = new GetHealth(project, region, targetPool, content); - initialize(result); - return result; - } - - public class GetHealth extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Gets the most recent health check results for each IP for the instance that is referenced by - * the given target pool. - * - * Create a request for the method "targetPools.getHealth". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetHealth#execute()} method to invoke the remote operation.

- * {@link - * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to which the queried instance belongs. - * @param content the {@link com.google.api.services.compute.preview.model.InstanceReference} - * @since 1.13 - */ - protected GetHealth(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.InstanceReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TargetPoolInstanceHealth.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); - } - - @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); - } - - @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); - } - - @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); - } - - @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); - } - - @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); - } - - @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); - } - - @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); - } - - @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); - } - - @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) 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 GetHealth 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 GetHealth 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 TargetPool resource to which the queried instance belongs. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to which the queried instance belongs. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the TargetPool resource to which the queried instance belongs. */ - public GetHealth setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - return this; - } - - @Override - public GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); - } - } - /** - * Creates a target pool in the specified project and region using the data included in the request. - * - * Create a request for the method "targetPools.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPool} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetPool content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a target pool in the specified project and region using the data included in the - * request. - * - * Create a request for the method "targetPools.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPool} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetPool content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of target pools available to the specified project and region. - * - * Create a request for the method "targetPools.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 region Name of the region scoping 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}/targetPools"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of target pools available to the specified project and region. - * - * Create a request for the method "targetPools.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 region Name of the region scoping 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.preview.model.TargetPoolList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** 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 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Removes health check URL from a target pool. - * - * Create a request for the method "targetPools.removeHealthCheck". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param targetPool Name of the target pool to remove health checks from. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsRemoveHealthCheckRequest} - * @return the request - */ - public RemoveHealthCheck removeHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsRemoveHealthCheckRequest content) throws java.io.IOException { - RemoveHealthCheck result = new RemoveHealthCheck(project, region, targetPool, content); - initialize(result); - return result; - } - - public class RemoveHealthCheck extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes health check URL from a target pool. - * - * Create a request for the method "targetPools.removeHealthCheck". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveHealthCheck#execute()} method to invoke the remote operation. - *

{@link RemoveHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 for this request. - * @param targetPool Name of the target pool to remove health checks from. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsRemoveHealthCheckRequest} - * @since 1.13 - */ - protected RemoveHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsRemoveHealthCheckRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveHealthCheck set$Xgafv(java.lang.String $Xgafv) { - return (RemoveHealthCheck) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveHealthCheck setAccessToken(java.lang.String accessToken) { - return (RemoveHealthCheck) super.setAccessToken(accessToken); - } - - @Override - public RemoveHealthCheck setAlt(java.lang.String alt) { - return (RemoveHealthCheck) super.setAlt(alt); - } - - @Override - public RemoveHealthCheck setCallback(java.lang.String callback) { - return (RemoveHealthCheck) super.setCallback(callback); - } - - @Override - public RemoveHealthCheck setFields(java.lang.String fields) { - return (RemoveHealthCheck) super.setFields(fields); - } - - @Override - public RemoveHealthCheck setKey(java.lang.String key) { - return (RemoveHealthCheck) super.setKey(key); - } - - @Override - public RemoveHealthCheck setOauthToken(java.lang.String oauthToken) { - return (RemoveHealthCheck) super.setOauthToken(oauthToken); - } - - @Override - public RemoveHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveHealthCheck) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveHealthCheck setQuotaUser(java.lang.String quotaUser) { - return (RemoveHealthCheck) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveHealthCheck setUploadType(java.lang.String uploadType) { - return (RemoveHealthCheck) super.setUploadType(uploadType); - } - - @Override - public RemoveHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveHealthCheck) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveHealthCheck setUserIp(java.lang.String userIp) { - return (RemoveHealthCheck) 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 RemoveHealthCheck 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public RemoveHealthCheck 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 target pool to remove health checks from. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the target pool to remove health checks from. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the target pool to remove health checks from. */ - public RemoveHealthCheck setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - 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 RemoveHealthCheck setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveHealthCheck set(String parameterName, Object value) { - return (RemoveHealthCheck) super.set(parameterName, value); - } - } - /** - * Removes instance URL from a target pool. - * - * Create a request for the method "targetPools.removeInstance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to remove instances from. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsRemoveInstanceRequest} - * @return the request - */ - public RemoveInstance removeInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsRemoveInstanceRequest content) throws java.io.IOException { - RemoveInstance result = new RemoveInstance(project, region, targetPool, content); - initialize(result); - return result; - } - - public class RemoveInstance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Removes instance URL from a target pool. - * - * Create a request for the method "targetPools.removeInstance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveInstance#execute()} method to invoke the remote operation. - *

{@link RemoveInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 targetPool Name of the TargetPool resource to remove instances from. - * @param content the {@link com.google.api.services.compute.preview.model.TargetPoolsRemoveInstanceRequest} - * @since 1.13 - */ - protected RemoveInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetPoolsRemoveInstanceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public RemoveInstance set$Xgafv(java.lang.String $Xgafv) { - return (RemoveInstance) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveInstance setAccessToken(java.lang.String accessToken) { - return (RemoveInstance) super.setAccessToken(accessToken); - } - - @Override - public RemoveInstance setAlt(java.lang.String alt) { - return (RemoveInstance) super.setAlt(alt); - } - - @Override - public RemoveInstance setCallback(java.lang.String callback) { - return (RemoveInstance) super.setCallback(callback); - } - - @Override - public RemoveInstance setFields(java.lang.String fields) { - return (RemoveInstance) super.setFields(fields); - } - - @Override - public RemoveInstance setKey(java.lang.String key) { - return (RemoveInstance) super.setKey(key); - } - - @Override - public RemoveInstance setOauthToken(java.lang.String oauthToken) { - return (RemoveInstance) super.setOauthToken(oauthToken); - } - - @Override - public RemoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveInstance) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveInstance setQuotaUser(java.lang.String quotaUser) { - return (RemoveInstance) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveInstance setUploadType(java.lang.String uploadType) { - return (RemoveInstance) super.setUploadType(uploadType); - } - - @Override - public RemoveInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveInstance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveInstance setUserIp(java.lang.String userIp) { - return (RemoveInstance) 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 RemoveInstance 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 RemoveInstance 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 TargetPool resource to remove instances from. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to remove instances from. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the TargetPool resource to remove instances from. */ - public RemoveInstance setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - 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 RemoveInstance setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveInstance set(String parameterName, Object value) { - return (RemoveInstance) super.set(parameterName, value); - } - } - /** - * Changes a backup target pool's configurations. - * - * Create a request for the method "targetPools.setBackup". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to set a backup pool for. - * @param content the {@link com.google.api.services.compute.preview.model.TargetReference} - * @return the request - */ - public SetBackup setBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetReference content) throws java.io.IOException { - SetBackup result = new SetBackup(project, region, targetPool, content); - initialize(result); - return result; - } - - public class SetBackup extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_POOL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes a backup target pool's configurations. - * - * Create a request for the method "targetPools.setBackup". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetBackup#execute()} method to invoke the remote operation.

- * {@link - * SetBackup#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to set a backup pool for. - * @param content the {@link com.google.api.services.compute.preview.model.TargetReference} - * @since 1.13 - */ - protected SetBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.TargetReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetBackup set$Xgafv(java.lang.String $Xgafv) { - return (SetBackup) super.set$Xgafv($Xgafv); - } - - @Override - public SetBackup setAccessToken(java.lang.String accessToken) { - return (SetBackup) super.setAccessToken(accessToken); - } - - @Override - public SetBackup setAlt(java.lang.String alt) { - return (SetBackup) super.setAlt(alt); - } - - @Override - public SetBackup setCallback(java.lang.String callback) { - return (SetBackup) super.setCallback(callback); - } - - @Override - public SetBackup setFields(java.lang.String fields) { - return (SetBackup) super.setFields(fields); - } - - @Override - public SetBackup setKey(java.lang.String key) { - return (SetBackup) super.setKey(key); - } - - @Override - public SetBackup setOauthToken(java.lang.String oauthToken) { - return (SetBackup) super.setOauthToken(oauthToken); - } - - @Override - public SetBackup setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackup) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetBackup setQuotaUser(java.lang.String quotaUser) { - return (SetBackup) super.setQuotaUser(quotaUser); - } - - @Override - public SetBackup setUploadType(java.lang.String uploadType) { - return (SetBackup) super.setUploadType(uploadType); - } - - @Override - public SetBackup setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackup) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetBackup setUserIp(java.lang.String userIp) { - return (SetBackup) 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 SetBackup 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 SetBackup 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 TargetPool resource to set a backup pool for. */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to set a backup pool for. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** Name of the TargetPool resource to set a backup pool for. */ - public SetBackup setTargetPool(java.lang.String targetPool) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetPool = targetPool; - return this; - } - - /** New failoverRatio value for the target pool. */ - @com.google.api.client.util.Key - private java.lang.Float failoverRatio; - - /** New failoverRatio value for the target pool. - */ - public java.lang.Float getFailoverRatio() { - return failoverRatio; - } - - /** New failoverRatio value for the target pool. */ - public SetBackup setFailoverRatio(java.lang.Float failoverRatio) { - this.failoverRatio = failoverRatio; - 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 SetBackup setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetBackup set(String parameterName, Object value) { - return (SetBackup) super.set(parameterName, value); - } - } - /** - * Sets the Google Cloud Armor security policy for the specified target pool. For more information, - * seeGoogle Cloud Armor Overview - * - * Create a request for the method "targetPools.setSecurityPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to which the security policy should be - set. The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @return the request - */ - public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.SecurityPolicyReference content) throws java.io.IOException { - SetSecurityPolicy result = new SetSecurityPolicy(project, region, targetPool, content); - initialize(result); - return result; - } - - public class SetSecurityPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Sets the Google Cloud Armor security policy for the specified target pool. For more - * information, seeGoogle Cloud Armor Overview - * - * Create a request for the method "targetPools.setSecurityPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. - *

{@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 targetPool Name of the TargetPool resource to which the security policy should be - set. The name should conform - * to RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SecurityPolicyReference} - * @since 1.13 - */ - protected SetSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.preview.model.SecurityPolicyReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); - } - - @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); - } - - @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); - } - - @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); - } - - @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); - } - - @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) 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 SetSecurityPolicy 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 SetSecurityPolicy 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 TargetPool resource to which the security policy should be set. The name should - * conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetPool; - - /** Name of the TargetPool resource to which the security policy should be set. The name should conform - to RFC1035. - */ - public java.lang.String getTargetPool() { - return targetPool; - } - - /** - * Name of the TargetPool resource to which the security policy should be set. The name should - * conform to RFC1035. - */ - public SetSecurityPolicy setTargetPool(java.lang.String targetPool) { - this.targetPool = targetPool; - 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetPools.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetPools.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetSslProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetSslProxies.List request = compute.targetSslProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetSslProxies targetSslProxies() { - return new TargetSslProxies(); - } - - /** - * The "targetSslProxies" collection of methods. - */ - public class TargetSslProxies { - - /** - * Deletes the specified TargetSslProxy resource. - * - * Create a request for the method "targetSslProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException { - Delete result = new Delete(project, targetSslProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_SSL_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetSslProxy resource. - * - * Create a request for the method "targetSslProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 targetSslProxy Name of the TargetSslProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String targetSslProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 TargetSslProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource to delete. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** Name of the TargetSslProxy resource to delete. */ - public Delete setTargetSslProxy(java.lang.String targetSslProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetSslProxy = targetSslProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetSslProxy resource. - * - * Create a request for the method "targetSslProxies.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 targetSslProxy Name of the TargetSslProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String targetSslProxy) throws java.io.IOException { - Get result = new Get(project, targetSslProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_SSL_PROXY_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 TargetSslProxy resource. - * - * Create a request for the method "targetSslProxies.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 targetSslProxy Name of the TargetSslProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String targetSslProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetSslProxy.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 TargetSslProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource to return. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** Name of the TargetSslProxy resource to return. */ - public Get setTargetSslProxy(java.lang.String targetSslProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetSslProxy = targetSslProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetSslProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetSslProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetSslProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a TargetSslProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetSslProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.TargetSslProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetSslProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of TargetSslProxy resources available to the specified project. - * - * Create a request for the method "targetSslProxies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of TargetSslProxy resources available to the specified project. - * - * Create a request for the method "targetSslProxies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetSslProxyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Changes the BackendService for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setBackendService". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetBackendServiceRequest} - * @return the request - */ - public SetBackendService setBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetBackendServiceRequest content) throws java.io.IOException { - SetBackendService result = new SetBackendService(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetBackendService extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_SSL_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the BackendService for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setBackendService". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. - *

{@link SetBackendService#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetBackendServiceRequest} - * @since 1.13 - */ - protected SetBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetBackendServiceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetBackendService set$Xgafv(java.lang.String $Xgafv) { - return (SetBackendService) super.set$Xgafv($Xgafv); - } - - @Override - public SetBackendService setAccessToken(java.lang.String accessToken) { - return (SetBackendService) super.setAccessToken(accessToken); - } - - @Override - public SetBackendService setAlt(java.lang.String alt) { - return (SetBackendService) super.setAlt(alt); - } - - @Override - public SetBackendService setCallback(java.lang.String callback) { - return (SetBackendService) super.setCallback(callback); - } - - @Override - public SetBackendService setFields(java.lang.String fields) { - return (SetBackendService) super.setFields(fields); - } - - @Override - public SetBackendService setKey(java.lang.String key) { - return (SetBackendService) super.setKey(key); - } - - @Override - public SetBackendService setOauthToken(java.lang.String oauthToken) { - return (SetBackendService) super.setOauthToken(oauthToken); - } - - @Override - public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackendService) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetBackendService setQuotaUser(java.lang.String quotaUser) { - return (SetBackendService) super.setQuotaUser(quotaUser); - } - - @Override - public SetBackendService setUploadType(java.lang.String uploadType) { - return (SetBackendService) super.setUploadType(uploadType); - } - - @Override - public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackendService) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetBackendService setUserIp(java.lang.String userIp) { - return (SetBackendService) 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 SetBackendService 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 TargetSslProxy resource whose BackendService resource is to be set. - */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose BackendService resource is to be set. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** - * Name of the TargetSslProxy resource whose BackendService resource is to be set. - */ - public SetBackendService setTargetSslProxy(java.lang.String targetSslProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetSslProxy = targetSslProxy; - 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 SetBackendService setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetBackendService set(String parameterName, Object value) { - return (SetBackendService) super.set(parameterName, value); - } - } - /** - * Changes the Certificate Map for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setCertificateMap". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap is - to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetCertificateMapRequest} - * @return the request - */ - public SetCertificateMap setCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetCertificateMapRequest content) throws java.io.IOException { - SetCertificateMap result = new SetCertificateMap(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetCertificateMap extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Changes the Certificate Map for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setCertificateMap". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. - *

{@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose CertificateMap is - to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetCertificateMapRequest} - * @since 1.13 - */ - protected SetCertificateMap(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetCertificateMapRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { - return (SetCertificateMap) super.set$Xgafv($Xgafv); - } - - @Override - public SetCertificateMap setAccessToken(java.lang.String accessToken) { - return (SetCertificateMap) super.setAccessToken(accessToken); - } - - @Override - public SetCertificateMap setAlt(java.lang.String alt) { - return (SetCertificateMap) super.setAlt(alt); - } - - @Override - public SetCertificateMap setCallback(java.lang.String callback) { - return (SetCertificateMap) super.setCallback(callback); - } - - @Override - public SetCertificateMap setFields(java.lang.String fields) { - return (SetCertificateMap) super.setFields(fields); - } - - @Override - public SetCertificateMap setKey(java.lang.String key) { - return (SetCertificateMap) super.setKey(key); - } - - @Override - public SetCertificateMap setOauthToken(java.lang.String oauthToken) { - return (SetCertificateMap) super.setOauthToken(oauthToken); - } - - @Override - public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCertificateMap) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { - return (SetCertificateMap) super.setQuotaUser(quotaUser); - } - - @Override - public SetCertificateMap setUploadType(java.lang.String uploadType) { - return (SetCertificateMap) super.setUploadType(uploadType); - } - - @Override - public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetCertificateMap setUserIp(java.lang.String userIp) { - return (SetCertificateMap) 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 SetCertificateMap 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 TargetSslProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be 1-63 - characters long, and comply with RFC1035. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** - * Name of the TargetSslProxy resource whose CertificateMap is to be set. The name must be - * 1-63 characters long, and comply with RFC1035. - */ - public SetCertificateMap setTargetSslProxy(java.lang.String targetSslProxy) { - this.targetSslProxy = targetSslProxy; - 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 SetCertificateMap setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetCertificateMap set(String parameterName, Object value) { - return (SetCertificateMap) super.set(parameterName, value); - } - } - /** - * Changes the ProxyHeaderType for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setProxyHeader". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetProxyHeaderRequest} - * @return the request - */ - public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetProxyHeaderRequest content) throws java.io.IOException { - SetProxyHeader result = new SetProxyHeader(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetProxyHeader extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_SSL_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the ProxyHeaderType for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setProxyHeader". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. - *

{@link SetProxyHeader#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetProxyHeaderRequest} - * @since 1.13 - */ - protected SetProxyHeader(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetProxyHeaderRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetProxyHeader set$Xgafv(java.lang.String $Xgafv) { - return (SetProxyHeader) super.set$Xgafv($Xgafv); - } - - @Override - public SetProxyHeader setAccessToken(java.lang.String accessToken) { - return (SetProxyHeader) super.setAccessToken(accessToken); - } - - @Override - public SetProxyHeader setAlt(java.lang.String alt) { - return (SetProxyHeader) super.setAlt(alt); - } - - @Override - public SetProxyHeader setCallback(java.lang.String callback) { - return (SetProxyHeader) super.setCallback(callback); - } - - @Override - public SetProxyHeader setFields(java.lang.String fields) { - return (SetProxyHeader) super.setFields(fields); - } - - @Override - public SetProxyHeader setKey(java.lang.String key) { - return (SetProxyHeader) super.setKey(key); - } - - @Override - public SetProxyHeader setOauthToken(java.lang.String oauthToken) { - return (SetProxyHeader) super.setOauthToken(oauthToken); - } - - @Override - public SetProxyHeader setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetProxyHeader) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetProxyHeader setQuotaUser(java.lang.String quotaUser) { - return (SetProxyHeader) super.setQuotaUser(quotaUser); - } - - @Override - public SetProxyHeader setUploadType(java.lang.String uploadType) { - return (SetProxyHeader) super.setUploadType(uploadType); - } - - @Override - public SetProxyHeader setUploadProtocol(java.lang.String uploadProtocol) { - return (SetProxyHeader) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetProxyHeader setUserIp(java.lang.String userIp) { - return (SetProxyHeader) 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 SetProxyHeader 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 TargetSslProxy resource whose ProxyHeader is to be set. */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ - public SetProxyHeader setTargetSslProxy(java.lang.String targetSslProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetSslProxy = targetSslProxy; - 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 SetProxyHeader setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetProxyHeader set(String parameterName, Object value) { - return (SetProxyHeader) super.set(parameterName, value); - } - } - /** - * Changes SslCertificates for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setSslCertificates". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource - is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetSslCertificatesRequest} - * @return the request - */ - public SetSslCertificates setSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetSslCertificatesRequest content) throws java.io.IOException { - SetSslCertificates result = new SetSslCertificates(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetSslCertificates extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_SSL_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes SslCertificates for TargetSslProxy. - * - * Create a request for the method "targetSslProxies.setSslCertificates". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslCertificates#execute()} method to invoke the remote - * operation.

{@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource - is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetSslProxiesSetSslCertificatesRequest} - * @since 1.13 - */ - protected SetSslCertificates(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.TargetSslProxiesSetSslCertificatesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); - } - - @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); - } - - @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); - } - - @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); - } - - @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); - } - - @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); - } - - @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); - } - - @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) 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 SetSslCertificates 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 TargetSslProxy resource whose SslCertificate resource is to be set. - */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** - * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - */ - public SetSslCertificates setTargetSslProxy(java.lang.String targetSslProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetSslProxy = targetSslProxy; - 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 SetSslCertificates setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); - } - } - /** - * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL - * features. This affects connections between clients and the load balancer. They do not affect the - * connection between the load balancer and the backends. - * - * Create a request for the method "targetSslProxies.setSslPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose SSL policy is - to be set. The name must be 1-63 characters - * long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicyReference} - * @return the request - */ - public SetSslPolicy setSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.SslPolicyReference content) throws java.io.IOException { - SetSslPolicy result = new SetSslPolicy(project, targetSslProxy, content); - initialize(result); - return result; - } - - public class SetSslPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for - * SSL features. This affects connections between clients and the load balancer. They do not - * affect the connection between the load balancer and the backends. - * - * Create a request for the method "targetSslProxies.setSslPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetSslPolicy#execute()} method to invoke the remote operation.

- * {@link - * SetSslPolicy#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 targetSslProxy Name of the TargetSslProxy resource whose SSL policy is - to be set. The name must be 1-63 characters - * long, and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.preview.model.SslPolicyReference} - * @since 1.13 - */ - protected SetSslPolicy(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.preview.model.SslPolicyReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSslPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetSslPolicy setAccessToken(java.lang.String accessToken) { - return (SetSslPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetSslPolicy setAlt(java.lang.String alt) { - return (SetSslPolicy) super.setAlt(alt); - } - - @Override - public SetSslPolicy setCallback(java.lang.String callback) { - return (SetSslPolicy) super.setCallback(callback); - } - - @Override - public SetSslPolicy setFields(java.lang.String fields) { - return (SetSslPolicy) super.setFields(fields); - } - - @Override - public SetSslPolicy setKey(java.lang.String key) { - return (SetSslPolicy) super.setKey(key); - } - - @Override - public SetSslPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSslPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSslPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetSslPolicy setUploadType(java.lang.String uploadType) { - return (SetSslPolicy) super.setUploadType(uploadType); - } - - @Override - public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetSslPolicy setUserIp(java.lang.String userIp) { - return (SetSslPolicy) 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 SetSslPolicy 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 TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String targetSslProxy; - - /** Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters - long, and comply with RFC1035. - */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; - } - - /** - * Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. - */ - public SetSslPolicy setTargetSslProxy(java.lang.String targetSslProxy) { - this.targetSslProxy = targetSslProxy; - 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 SetSslPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetSslPolicy set(String parameterName, Object value) { - return (SetSslPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetSslProxies.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetSslProxies.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetTcpProxies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetTcpProxies.List request = compute.targetTcpProxies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetTcpProxies targetTcpProxies() { - return new TargetTcpProxies(); - } - - /** - * The "targetTcpProxies" collection of methods. - */ - public class TargetTcpProxies { - - /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetTcpProxies.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/targetTcpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetTcpProxies.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetTcpProxyAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified TargetTcpProxy resource. - * - * Create a request for the method "targetTcpProxies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { - Delete result = new Delete(project, targetTcpProxy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_TCP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified TargetTcpProxy resource. - * - * Create a request for the method "targetTcpProxies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 targetTcpProxy Name of the TargetTcpProxy resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String targetTcpProxy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 TargetTcpProxy resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource to delete. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** Name of the TargetTcpProxy resource to delete. */ - public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified TargetTcpProxy resource. - * - * Create a request for the method "targetTcpProxies.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 targetTcpProxy Name of the TargetTcpProxy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String targetTcpProxy) throws java.io.IOException { - Get result = new Get(project, targetTcpProxy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_TCP_PROXY_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 TargetTcpProxy resource. - * - * Create a request for the method "targetTcpProxies.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 targetTcpProxy Name of the TargetTcpProxy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String targetTcpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetTcpProxy.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 TargetTcpProxy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource to return. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** Name of the TargetTcpProxy resource to return. */ - public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a TargetTcpProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetTcpProxies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetTcpProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a TargetTcpProxy resource in the specified project using the data included in the - * request. - * - * Create a request for the method "targetTcpProxies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.TargetTcpProxy} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.TargetTcpProxy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of TargetTcpProxy resources available to the specified project. - * - * Create a request for the method "targetTcpProxies.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of TargetTcpProxy resources available to the specified project. - * - * Create a request for the method "targetTcpProxies.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetTcpProxyList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Changes the BackendService for TargetTcpProxy. - * - * Create a request for the method "targetTcpProxies.setBackendService". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxiesSetBackendServiceRequest} - * @return the request - */ - public SetBackendService setBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.preview.model.TargetTcpProxiesSetBackendServiceRequest content) throws java.io.IOException { - SetBackendService result = new SetBackendService(project, targetTcpProxy, content); - initialize(result); - return result; - } - - public class SetBackendService extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_TCP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the BackendService for TargetTcpProxy. - * - * Create a request for the method "targetTcpProxies.setBackendService". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetBackendService#execute()} method to invoke the remote operation. - *

{@link SetBackendService#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxiesSetBackendServiceRequest} - * @since 1.13 - */ - protected SetBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.preview.model.TargetTcpProxiesSetBackendServiceRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetBackendService set$Xgafv(java.lang.String $Xgafv) { - return (SetBackendService) super.set$Xgafv($Xgafv); - } - - @Override - public SetBackendService setAccessToken(java.lang.String accessToken) { - return (SetBackendService) super.setAccessToken(accessToken); - } - - @Override - public SetBackendService setAlt(java.lang.String alt) { - return (SetBackendService) super.setAlt(alt); - } - - @Override - public SetBackendService setCallback(java.lang.String callback) { - return (SetBackendService) super.setCallback(callback); - } - - @Override - public SetBackendService setFields(java.lang.String fields) { - return (SetBackendService) super.setFields(fields); - } - - @Override - public SetBackendService setKey(java.lang.String key) { - return (SetBackendService) super.setKey(key); - } - - @Override - public SetBackendService setOauthToken(java.lang.String oauthToken) { - return (SetBackendService) super.setOauthToken(oauthToken); - } - - @Override - public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackendService) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetBackendService setQuotaUser(java.lang.String quotaUser) { - return (SetBackendService) super.setQuotaUser(quotaUser); - } - - @Override - public SetBackendService setUploadType(java.lang.String uploadType) { - return (SetBackendService) super.setUploadType(uploadType); - } - - @Override - public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackendService) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetBackendService setUserIp(java.lang.String userIp) { - return (SetBackendService) 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 SetBackendService 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 TargetTcpProxy resource whose BackendService resource is to be set. - */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource whose BackendService resource is to be set. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** - * Name of the TargetTcpProxy resource whose BackendService resource is to be set. - */ - public SetBackendService setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - 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 SetBackendService setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetBackendService set(String parameterName, Object value) { - return (SetBackendService) super.set(parameterName, value); - } - } - /** - * Changes the ProxyHeaderType for TargetTcpProxy. - * - * Create a request for the method "targetTcpProxies.setProxyHeader". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxiesSetProxyHeaderRequest} - * @return the request - */ - public SetProxyHeader setProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.preview.model.TargetTcpProxiesSetProxyHeaderRequest content) throws java.io.IOException { - SetProxyHeader result = new SetProxyHeader(project, targetTcpProxy, content); - initialize(result); - return result; - } - - public class SetProxyHeader extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_TCP_PROXY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes the ProxyHeaderType for TargetTcpProxy. - * - * Create a request for the method "targetTcpProxies.setProxyHeader". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetProxyHeader#execute()} method to invoke the remote operation. - *

{@link SetProxyHeader#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.preview.model.TargetTcpProxiesSetProxyHeaderRequest} - * @since 1.13 - */ - protected SetProxyHeader(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.preview.model.TargetTcpProxiesSetProxyHeaderRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetProxyHeader set$Xgafv(java.lang.String $Xgafv) { - return (SetProxyHeader) super.set$Xgafv($Xgafv); - } - - @Override - public SetProxyHeader setAccessToken(java.lang.String accessToken) { - return (SetProxyHeader) super.setAccessToken(accessToken); - } - - @Override - public SetProxyHeader setAlt(java.lang.String alt) { - return (SetProxyHeader) super.setAlt(alt); - } - - @Override - public SetProxyHeader setCallback(java.lang.String callback) { - return (SetProxyHeader) super.setCallback(callback); - } - - @Override - public SetProxyHeader setFields(java.lang.String fields) { - return (SetProxyHeader) super.setFields(fields); - } - - @Override - public SetProxyHeader setKey(java.lang.String key) { - return (SetProxyHeader) super.setKey(key); - } - - @Override - public SetProxyHeader setOauthToken(java.lang.String oauthToken) { - return (SetProxyHeader) super.setOauthToken(oauthToken); - } - - @Override - public SetProxyHeader setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetProxyHeader) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetProxyHeader setQuotaUser(java.lang.String quotaUser) { - return (SetProxyHeader) super.setQuotaUser(quotaUser); - } - - @Override - public SetProxyHeader setUploadType(java.lang.String uploadType) { - return (SetProxyHeader) super.setUploadType(uploadType); - } - - @Override - public SetProxyHeader setUploadProtocol(java.lang.String uploadProtocol) { - return (SetProxyHeader) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetProxyHeader setUserIp(java.lang.String userIp) { - return (SetProxyHeader) 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 SetProxyHeader 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 TargetTcpProxy resource whose ProxyHeader is to be set. */ - @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; - - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; - } - - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ - public SetProxyHeader setTargetTcpProxy(java.lang.String targetTcpProxy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetTcpProxy = targetTcpProxy; - 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 SetProxyHeader setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetProxyHeader set(String parameterName, Object value) { - return (SetProxyHeader) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetTcpProxies.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "targetTcpProxies.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the TargetVpnGateways collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public TargetVpnGateways targetVpnGateways() { - return new TargetVpnGateways(); - } - - /** - * The "targetVpnGateways" collection of methods. - */ - public class TargetVpnGateways { - - /** - * Retrieves an aggregated list of target VPN gateways. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetVpnGateways.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/targetVpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of target VPN gateways. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "targetVpnGateways.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetVpnGatewayAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified target VPN gateway. - * - * Create a request for the method "targetVpnGateways.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { - Delete result = new Delete(project, region, targetVpnGateway); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_VPN_GATEWAY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified target VPN gateway. - * - * Create a request for the method "targetVpnGateways.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 target VPN gateway to delete. */ - @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; - - /** Name of the target VPN gateway to delete. - */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; - } - - /** Name of the target VPN gateway to delete. */ - public Delete setTargetVpnGateway(java.lang.String targetVpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetVpnGateway = targetVpnGateway; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified target VPN gateway. - * - * Create a request for the method "targetVpnGateways.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 region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) throws java.io.IOException { - Get result = new Get(project, region, targetVpnGateway); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 TARGET_VPN_GATEWAY_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 target VPN gateway. - * - * Create a request for the method "targetVpnGateways.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 region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String targetVpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.TargetVpnGateway.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.targetVpnGateway = com.google.api.client.util.Preconditions.checkNotNull(targetVpnGateway, "Required parameter targetVpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 target VPN gateway to return. */ - @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; - - /** Name of the target VPN gateway to return. - */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; - } - - /** Name of the target VPN gateway to return. */ - public Get setTargetVpnGateway(java.lang.String targetVpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.targetVpnGateway = targetVpnGateway; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. - * - * Create a request for the method "targetVpnGateways.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetVpnGateway} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetVpnGateway content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. - * - * Create a request for the method "targetVpnGateways.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TargetVpnGateway} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.TargetVpnGateway content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of target VPN gateways available to the specified project and region. - * - * Create a request for the method "targetVpnGateways.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 region 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}/targetVpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of target VPN gateways available to the specified project and region. - * - * Create a request for the method "targetVpnGateways.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 region 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.preview.model.TargetVpnGatewayList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "targetVpnGateways.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "targetVpnGateways.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the UrlMaps collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public UrlMaps urlMaps() { - return new UrlMaps(); - } - - /** - * The "urlMaps" collection of methods. - */ - public class UrlMaps { - - /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "urlMaps.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Name of the project scoping this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/urlMaps"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "urlMaps.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Name of the project scoping this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.UrlMapsAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); - } - - /** Name of the project scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Name of the project scoping this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Name of the project scoping this request. */ - public AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified UrlMap resource. - * - * Create a request for the method "urlMaps.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { - Delete result = new Delete(project, urlMap); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified UrlMap resource. - * - * Create a request for the method "urlMaps.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 urlMap Name of the UrlMap resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String urlMap) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 UrlMap resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to delete. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to delete. */ - public Delete setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified UrlMap resource. - * - * Create a request for the method "urlMaps.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 urlMap Name of the UrlMap resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String urlMap) throws java.io.IOException { - Get result = new Get(project, urlMap); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_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 UrlMap resource. - * - * Create a request for the method "urlMaps.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 urlMap Name of the UrlMap resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String urlMap) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.UrlMap.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 UrlMap resource to return. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to return. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to return. */ - public Get setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a UrlMap resource in the specified project using the data included in the request. - * - * Create a request for the method "urlMaps.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.preview.model.UrlMap content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a UrlMap resource in the specified project using the data included in the request. - * - * Create a request for the method "urlMaps.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.preview.model.UrlMap content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Initiates a cache invalidation operation, invalidating the specified path, scoped to the - * specified UrlMap. - * - * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). - * - * Create a request for the method "urlMaps.invalidateCache". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param urlMap Name of the UrlMap scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.CacheInvalidationRule} - * @return the request - */ - public InvalidateCache invalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.CacheInvalidationRule content) throws java.io.IOException { - InvalidateCache result = new InvalidateCache(project, urlMap, content); - initialize(result); - return result; - } - - public class InvalidateCache extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Initiates a cache invalidation operation, invalidating the specified path, scoped to the - * specified UrlMap. - * - * For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content). - * - * Create a request for the method "urlMaps.invalidateCache". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link InvalidateCache#execute()} method to invoke the remote operation. - *

{@link InvalidateCache#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @param urlMap Name of the UrlMap scoping this request. - * @param content the {@link com.google.api.services.compute.preview.model.CacheInvalidationRule} - * @since 1.13 - */ - protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.CacheInvalidationRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { - return (InvalidateCache) super.set$Xgafv($Xgafv); - } - - @Override - public InvalidateCache setAccessToken(java.lang.String accessToken) { - return (InvalidateCache) super.setAccessToken(accessToken); - } - - @Override - public InvalidateCache setAlt(java.lang.String alt) { - return (InvalidateCache) super.setAlt(alt); - } - - @Override - public InvalidateCache setCallback(java.lang.String callback) { - return (InvalidateCache) super.setCallback(callback); - } - - @Override - public InvalidateCache setFields(java.lang.String fields) { - return (InvalidateCache) super.setFields(fields); - } - - @Override - public InvalidateCache setKey(java.lang.String key) { - return (InvalidateCache) super.setKey(key); - } - - @Override - public InvalidateCache setOauthToken(java.lang.String oauthToken) { - return (InvalidateCache) super.setOauthToken(oauthToken); - } - - @Override - public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvalidateCache) super.setPrettyPrint(prettyPrint); - } - - @Override - public InvalidateCache setQuotaUser(java.lang.String quotaUser) { - return (InvalidateCache) super.setQuotaUser(quotaUser); - } - - @Override - public InvalidateCache setUploadType(java.lang.String uploadType) { - return (InvalidateCache) super.setUploadType(uploadType); - } - - @Override - public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { - return (InvalidateCache) super.setUploadProtocol(uploadProtocol); - } - - @Override - public InvalidateCache setUserIp(java.lang.String userIp) { - return (InvalidateCache) 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 InvalidateCache 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 UrlMap scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap scoping this request. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap scoping this request. */ - public InvalidateCache setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - 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 InvalidateCache setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public InvalidateCache set(String parameterName, Object value) { - return (InvalidateCache) super.set(parameterName, value); - } - } - /** - * Retrieves the list of UrlMap resources available to the specified project. - * - * Create a request for the method "urlMaps.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/global/urlMaps"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of UrlMap resources available to the specified project. - * - * Create a request for the method "urlMaps.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.UrlMapList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "urlMaps.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 Project ID for this request. - * @param urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) throws java.io.IOException { - Patch result = new Patch(project, urlMap, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. - * - * Create a request for the method "urlMaps.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 Project ID for this request. - * @param urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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 UrlMap resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to patch. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to patch. */ - public Patch setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "urlMaps.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "urlMaps.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Updates the specified UrlMap resource with the data included in the request. - * - * Create a request for the method "urlMaps.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) throws java.io.IOException { - Update result = new Update(project, urlMap, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified UrlMap resource with the data included in the request. - * - * Create a request for the method "urlMaps.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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 urlMap Name of the UrlMap resource to update. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMap} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMap content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.preview.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 UrlMap resource to update. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to update. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to update. */ - public Update setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be - * run. Calling this method does NOT create the UrlMap. - * - * Create a request for the method "urlMaps.validate". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Validate#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapsValidateRequest} - * @return the request - */ - public Validate validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMapsValidateRequest content) throws java.io.IOException { - Validate result = new Validate(project, urlMap, content); - initialize(result); - return result; - } - - public class Validate extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/validate"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 URL_MAP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be - * run. Calling this method does NOT create the UrlMap. - * - * Create a request for the method "urlMaps.validate". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Validate#execute()} method to invoke the remote operation.

- * {@link - * Validate#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 urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.preview.model.UrlMapsValidateRequest} - * @since 1.13 - */ - protected Validate(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.preview.model.UrlMapsValidateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.UrlMapsValidateResponse.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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); - } - - @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); - } - - @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); - } - - @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); - } - - @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); - } - - @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); - } - - @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); - } - - @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); - } - - @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); - } - - @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); - } - - @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Validate setUserIp(java.lang.String userIp) { - return (Validate) 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 Validate 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 UrlMap resource to be validated as. */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** Name of the UrlMap resource to be validated as. - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** Name of the UrlMap resource to be validated as. */ - public Validate setUrlMap(java.lang.String urlMap) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.urlMap = urlMap; - return this; - } - - @Override - public Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the VpnGateways collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.VpnGateways.List request = compute.vpnGateways().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public VpnGateways vpnGateways() { - return new VpnGateways(); - } - - /** - * The "vpnGateways" collection of methods. - */ - public class VpnGateways { - - /** - * Retrieves an aggregated list of VPN gateways. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "vpnGateways.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/vpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of VPN gateways. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "vpnGateways.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VpnGatewayAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified VPN gateway. - * - * Create a request for the method "vpnGateways.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnGateway Name of the VPN gateway to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { - Delete result = new Delete(project, region, vpnGateway); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 VPN_GATEWAY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified VPN gateway. - * - * Create a request for the method "vpnGateways.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnGateway Name of the VPN gateway to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 VPN gateway to delete. */ - @com.google.api.client.util.Key - private java.lang.String vpnGateway; - - /** Name of the VPN gateway to delete. - */ - public java.lang.String getVpnGateway() { - return vpnGateway; - } - - /** Name of the VPN gateway to delete. */ - public Delete setVpnGateway(java.lang.String vpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnGateway = vpnGateway; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified VPN gateway. - * - * Create a request for the method "vpnGateways.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 region Name of the region for this request. - * @param vpnGateway Name of the VPN gateway to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { - Get result = new Get(project, region, vpnGateway); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 VPN_GATEWAY_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 VPN gateway. - * - * Create a request for the method "vpnGateways.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 region Name of the region for this request. - * @param vpnGateway Name of the VPN gateway to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VpnGateway.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 VPN gateway to return. */ - @com.google.api.client.util.Key - private java.lang.String vpnGateway; - - /** Name of the VPN gateway to return. - */ - public java.lang.String getVpnGateway() { - return vpnGateway; - } - - /** Name of the VPN gateway to return. */ - public Get setVpnGateway(java.lang.String vpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnGateway = vpnGateway; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the status for the specified VPN gateway. - * - * Create a request for the method "vpnGateways.getStatus". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetStatus#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnGateway Name of the VPN gateway to return. - * @return the request - */ - public GetStatus getStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) throws java.io.IOException { - GetStatus result = new GetStatus(project, region, vpnGateway); - initialize(result); - return result; - } - - public class GetStatus extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 VPN_GATEWAY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the status for the specified VPN gateway. - * - * Create a request for the method "vpnGateways.getStatus". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetStatus#execute()} method to invoke the remote operation.

- * {@link - * GetStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnGateway Name of the VPN gateway to return. - * @since 1.13 - */ - protected GetStatus(java.lang.String project, java.lang.String region, java.lang.String vpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VpnGatewaysGetStatusResponse.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.vpnGateway = com.google.api.client.util.Preconditions.checkNotNull(vpnGateway, "Required parameter vpnGateway must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetStatus) super.set$Xgafv($Xgafv); - } - - @Override - public GetStatus setAccessToken(java.lang.String accessToken) { - return (GetStatus) super.setAccessToken(accessToken); - } - - @Override - public GetStatus setAlt(java.lang.String alt) { - return (GetStatus) super.setAlt(alt); - } - - @Override - public GetStatus setCallback(java.lang.String callback) { - return (GetStatus) super.setCallback(callback); - } - - @Override - public GetStatus setFields(java.lang.String fields) { - return (GetStatus) super.setFields(fields); - } - - @Override - public GetStatus setKey(java.lang.String key) { - return (GetStatus) super.setKey(key); - } - - @Override - public GetStatus setOauthToken(java.lang.String oauthToken) { - return (GetStatus) super.setOauthToken(oauthToken); - } - - @Override - public GetStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetStatus) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetStatus setQuotaUser(java.lang.String quotaUser) { - return (GetStatus) super.setQuotaUser(quotaUser); - } - - @Override - public GetStatus setUploadType(java.lang.String uploadType) { - return (GetStatus) super.setUploadType(uploadType); - } - - @Override - public GetStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetStatus) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetStatus setUserIp(java.lang.String userIp) { - return (GetStatus) 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 GetStatus 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public GetStatus 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 VPN gateway to return. */ - @com.google.api.client.util.Key - private java.lang.String vpnGateway; - - /** Name of the VPN gateway to return. - */ - public java.lang.String getVpnGateway() { - return vpnGateway; - } - - /** Name of the VPN gateway to return. */ - public GetStatus setVpnGateway(java.lang.String vpnGateway) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_GATEWAY_PATTERN.matcher(vpnGateway).matches(), - "Parameter vpnGateway must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnGateway = vpnGateway; - return this; - } - - @Override - public GetStatus set(String parameterName, Object value) { - return (GetStatus) super.set(parameterName, value); - } - } - /** - * Creates a VPN gateway in the specified project and region using the data included in the request. - * - * Create a request for the method "vpnGateways.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.VpnGateway} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.VpnGateway content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a VPN gateway in the specified project and region using the data included in the - * request. - * - * Create a request for the method "vpnGateways.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.VpnGateway} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.VpnGateway content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of VPN gateways available to the specified project and region. - * - * Create a request for the method "vpnGateways.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 region 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}/vpnGateways"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of VPN gateways available to the specified project and region. - * - * Create a request for the method "vpnGateways.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 region 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.preview.model.VpnGatewayList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "vpnGateways.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "vpnGateways.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "vpnGateways.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "vpnGateways.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the VpnTunnels collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.VpnTunnels.List request = compute.vpnTunnels().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public VpnTunnels vpnTunnels() { - return new VpnTunnels(); - } - - /** - * The "vpnTunnels" collection of methods. - */ - public class VpnTunnels { - - /** - * Retrieves an aggregated list of VPN tunnels. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "vpnTunnels.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/vpnTunnels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves an aggregated list of VPN tunnels. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "vpnTunnels.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VpnTunnelAggregatedList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); - } - - @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); - } - - @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); - } - - @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); - } - - @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); - } - - @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); - } - - @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); - } - - @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); - } - - @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } - - @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); - } - - @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) 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 AggregatedList 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; - } - - /** - * 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 AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - 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 AggregatedList 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 AggregatedList 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 AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } - /** - * Deletes the specified VpnTunnel resource. - * - * Create a request for the method "vpnTunnels.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) throws java.io.IOException { - Delete result = new Delete(project, region, vpnTunnel); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 VPN_TUNNEL_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified VpnTunnel resource. - * - * Create a request for the method "vpnTunnels.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.vpnTunnel = com.google.api.client.util.Preconditions.checkNotNull(vpnTunnel, "Required parameter vpnTunnel must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Delete 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 VpnTunnel resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String vpnTunnel; - - /** Name of the VpnTunnel resource to delete. - */ - public java.lang.String getVpnTunnel() { - return vpnTunnel; - } - - /** Name of the VpnTunnel resource to delete. */ - public Delete setVpnTunnel(java.lang.String vpnTunnel) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnTunnel = vpnTunnel; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified VpnTunnel resource. - * - * Create a request for the method "vpnTunnels.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 region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) throws java.io.IOException { - Get result = new Get(project, region, vpnTunnel); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 VPN_TUNNEL_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 VpnTunnel resource. - * - * Create a request for the method "vpnTunnels.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 region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VpnTunnel.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.vpnTunnel = com.google.api.client.util.Preconditions.checkNotNull(vpnTunnel, "Required parameter vpnTunnel must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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 VpnTunnel resource to return. */ - @com.google.api.client.util.Key - private java.lang.String vpnTunnel; - - /** Name of the VpnTunnel resource to return. - */ - public java.lang.String getVpnTunnel() { - return vpnTunnel; - } - - /** Name of the VpnTunnel resource to return. */ - public Get setVpnTunnel(java.lang.String vpnTunnel) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VPN_TUNNEL_PATTERN.matcher(vpnTunnel).matches(), - "Parameter vpnTunnel must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vpnTunnel = vpnTunnel; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a VpnTunnel resource in the specified project and region using the data included in the - * request. - * - * Create a request for the method "vpnTunnels.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.VpnTunnel} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.VpnTunnel content) throws java.io.IOException { - Insert result = new Insert(project, region, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a VpnTunnel resource in the specified project and region using the data included in the - * request. - * - * Create a request for the method "vpnTunnels.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.preview.model.VpnTunnel} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.preview.model.VpnTunnel content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves a list of VpnTunnel resources contained in the specified project and region. - * - * Create a request for the method "vpnTunnels.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 region 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}/vpnTunnels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Retrieves a list of VpnTunnel resources contained in the specified project and region. - * - * Create a request for the method "vpnTunnels.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 region 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.preview.model.VpnTunnelList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "vpnTunnels.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels"; - - private static final String API_VERSION = "2026-10-01-preview"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources - * documentation. - * - * Create a request for the method "vpnTunnels.setLabels". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

- * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.preview.model.RegionSetLabelsRequest} - * @since 1.13 - */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.preview.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } - - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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 SetLabels 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 region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - /** - * 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 SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the WireGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.WireGroups.List request = compute.wireGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public WireGroups wireGroups() { - return new WireGroups(); - } - - /** - * The "wireGroups" collection of methods. - */ - public class WireGroups { - - /** - * Deletes the specified wire group in the given scope. - * - * Create a request for the method "wireGroups.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the wire group resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { - Delete result = new Delete(project, crossSiteNetwork, wireGroup); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Deletes the specified wire group in the given scope. - * - * Create a request for the method "wireGroups.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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; - } - - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - /** Name of the wire group resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String wireGroup; - - /** Name of the wire group resource to delete. - */ - public java.lang.String getWireGroup() { - return wireGroup; - } - - /** Name of the wire group resource to delete. */ - public Delete setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the specified wire group resource in the given scope. - * - * Create a request for the method "wireGroups.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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { - Get result = new Get(project, crossSiteNetwork, wireGroup); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Gets the specified wire group resource in the given scope. - * - * Create a request for the method "wireGroups.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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.WireGroup.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - /** Name of the wire group resource to return. */ - @com.google.api.client.util.Key - private java.lang.String wireGroup; - - /** Name of the wire group resource to return. - */ - public java.lang.String getWireGroup() { - return wireGroup; - } - - /** Name of the wire group resource to return. */ - public Get setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a wire group in the specified project in the given scope using the parameters that are - * included in the request. - * - * Create a request for the method "wireGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param crossSiteNetwork - * @param content the {@link com.google.api.services.compute.preview.model.WireGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.preview.model.WireGroup content) throws java.io.IOException { - Insert result = new Insert(project, crossSiteNetwork, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Creates a wire group in the specified project in the given scope using the parameters that are - * included in the request. - * - * Create a request for the method "wireGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 crossSiteNetwork - * @param content the {@link com.google.api.services.compute.preview.model.WireGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String crossSiteNetwork, com.google.api.services.compute.preview.model.WireGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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; - } - - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Insert setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** [Input Only] Validate the new configuration, but don't create it. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /**[ Input Only] Validate the new configuration, but don't create it. - [ - - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** [Input Only] Validate the new configuration, but don't create it. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists the wire groups for a project in the given scope. - * - * Create a request for the method "wireGroups.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 crossSiteNetwork - * @return the request - */ - public List list(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { - List result = new List(project, crossSiteNetwork); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Lists the wire groups for a project in the given scope. - * - * Create a request for the method "wireGroups.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 crossSiteNetwork - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String crossSiteNetwork) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.WireGroupList.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public List setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the specified wire group resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "wireGroups.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 Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the WireGroups resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.WireGroup} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.preview.model.WireGroup content) throws java.io.IOException { - Patch result = new Patch(project, crossSiteNetwork, wireGroup, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Updates the specified wire group resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. - * - * Create a request for the method "wireGroups.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 Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the WireGroups resource to patch. - * @param content the {@link com.google.api.services.compute.preview.model.WireGroup} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String crossSiteNetwork, java.lang.String wireGroup, com.google.api.services.compute.preview.model.WireGroup content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); - this.wireGroup = com.google.api.client.util.Preconditions.checkNotNull(wireGroup, "Required parameter wireGroup must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public 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); - } - - /** 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 Patch 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; - } - - @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** - - */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; - } - - public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; - return this; - } - - /** Name of the WireGroups resource to patch. */ - @com.google.api.client.util.Key - private java.lang.String wireGroup; - - /** Name of the WireGroups resource to patch. - */ - public java.lang.String getWireGroup() { - return wireGroup; - } - - /** Name of the WireGroups resource to patch. */ - public Patch setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; - 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). end_interface: MixerMutationRequestBuilder - */ - @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). end_interface: MixerMutationRequestBuilder - */ - 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). end_interface: MixerMutationRequestBuilder - */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - /** [Input Only] Validate the new configuration, but don't update it. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /**[ Input Only] Validate the new configuration, but don't update it. - [ - - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** [Input Only] Validate the new configuration, but don't update it. */ - public Patch setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ZoneOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ZoneOperations zoneOperations() { - return new ZoneOperations(); - } - - /** - * The "zoneOperations" collection of methods. - */ - public class ZoneOperations { - - /** - * Deletes the specified zone-specific Operations resource. - * - * Create a request for the method "zoneOperations.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(project, zone, operation); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified zone-specific Operations resource. - * - * Create a request for the method "zoneOperations.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 Name of the zone for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.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])?"); - } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Delete 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 Operations resource to delete, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to delete, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves the specified zone-specific Operations resource. - * - * Create a request for the method "zoneOperations.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 zone Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { - Get result = new Get(project, zone, operation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves the specified zone-specific Operations resource. - * - * Create a request for the method "zoneOperations.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 zone Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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 Operations resource to return, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Get setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of Operation resources contained within the specified zone. - * - * Create a request for the method "zoneOperations.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 Name of the zone for 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}/operations"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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 Operation resources contained within the specified zone. - * - * Create a request for the method "zoneOperations.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 Name of the zone for 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.preview.model.OperationList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the zone for request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the - * 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more - * than the 2 minutes and then returns the current state of the operation, which might be `DONE` or - * still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, when - * the server is overloaded, the request might return before the default deadline is reached, or - * might return after zero seconds. - If the default deadline is reached, there is no - * guarantee that the operation is actually done when the method returns. Be prepared to retry - * if the operation is not `DONE`. - * - * Create a request for the method "zoneOperations.wait". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @return the request - */ - public Wait wait(java.lang.String project, java.lang.String zone, java.lang.String operation) throws java.io.IOException { - Wait result = new Wait(project, zone, operation); - initialize(result); - return result; - } - - public class Wait extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}/wait"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach - * the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no - * more than the 2 minutes and then returns the current state of the operation, which might be - * `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, - * when the server is overloaded, the request might return before the default deadline is - * reached, or might return after zero seconds. - If the default deadline is reached, there - * is no guarantee that the operation is actually done when the method returns. Be prepared to - * retry if the operation is not `DONE`. - * - * Create a request for the method "zoneOperations.wait". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

{@link - * Wait#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 Name of the zone for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. - * @since 1.13 - */ - protected Wait(java.lang.String project, java.lang.String zone, java.lang.String operation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } - - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } - - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } - - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } - - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } - - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } - - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } - - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } - - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } - - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } - - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) 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 Wait 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Wait 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 Operations resource to return, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Wait setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; - return this; - } - - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ZoneVmExtensionPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ZoneVmExtensionPolicies.List request = compute.zoneVmExtensionPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ZoneVmExtensionPolicies zoneVmExtensionPolicies() { - return new ZoneVmExtensionPolicies(); - } - - /** - * The "zoneVmExtensionPolicies" collection of methods. - */ - public class ZoneVmExtensionPolicies { - - /** - * Deletes a specified zone VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param vmExtensionPolicy Name of the zone VM extension policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { - Delete result = new Delete(project, zone, vmExtensionPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Deletes a specified zone VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link - * Delete#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 Name of the zone for this request. - * @param vmExtensionPolicy Name of the zone VM extension policy to delete. - * @since 1.13 - */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.preview.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.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])?"); - } - this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Delete 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 zone VM extension policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String vmExtensionPolicy; - - /** Name of the zone VM extension policy to delete. - */ - public java.lang.String getVmExtensionPolicy() { - return vmExtensionPolicy; - } - - /** Name of the zone VM extension policy to delete. */ - public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { - this.vmExtensionPolicy = vmExtensionPolicy; - 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves details of a specific zone VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for this request. - * @param vmExtensionPolicy Name of the VM extension policy resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { - Get result = new Get(project, zone, vmExtensionPolicy); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - private final java.util.regex.Pattern VM_EXTENSION_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Retrieves details of a specific zone VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.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 zone Name of the zone for this request. - * @param vmExtensionPolicy Name of the VM extension policy resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.VmExtensionPolicy.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])?"); - } - this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), - "Parameter vmExtensionPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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 VM extension policy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String vmExtensionPolicy; - - /** Name of the VM extension policy resource to return. - */ - public java.lang.String getVmExtensionPolicy() { - return vmExtensionPolicy; - } - - /** Name of the VM extension policy resource to return. */ - public Get setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), - "Parameter vmExtensionPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.vmExtensionPolicy = vmExtensionPolicy; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a new zone-level VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.VmExtensionPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.VmExtensionPolicy content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Creates a new zone-level VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.preview.model.VmExtensionPolicy} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.preview.model.VmExtensionPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 Insert 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Insert 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; - } - - /** - * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Lists all VM extension policies within a specific zone for a project. - * - * Create a request for the method "zoneVmExtensionPolicies.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 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}/vmExtensionPolicies"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Lists all VM extension policies within a specific zone for a project. - * - * Create a request for the method "zoneVmExtensionPolicies.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 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.preview.model.VmExtensionPolicyList.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])?"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** Name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Modifies an existing zone VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.update". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param vmExtensionPolicy Name of the zone VM extension policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.VmExtensionPolicy} - * @return the request - */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.preview.model.VmExtensionPolicy content) throws java.io.IOException { - Update result = new Update(project, zone, vmExtensionPolicy, content); - initialize(result); - return result; - } - - public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?"); - - /** - * Modifies an existing zone VM extension policy within a project. - * - * Create a request for the method "zoneVmExtensionPolicies.update". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#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 Name of the zone for this request. - * @param vmExtensionPolicy Name of the zone VM extension policy to update. - * @param content the {@link com.google.api.services.compute.preview.model.VmExtensionPolicy} - * @since 1.13 - */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.preview.model.VmExtensionPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.preview.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.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])?"); - } - this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } - - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } - - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } - - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } - - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } - - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } - - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } - - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } - - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } - - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } - - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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 Update 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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Update 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 zone VM extension policy to update. */ - @com.google.api.client.util.Key - private java.lang.String vmExtensionPolicy; - - /** Name of the zone VM extension policy to update. - */ - public java.lang.String getVmExtensionPolicy() { - return vmExtensionPolicy; - } - - /** Name of the zone VM extension policy to update. */ - public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { - this.vmExtensionPolicy = vmExtensionPolicy; - 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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the Zones collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Zones.List request = compute.zones().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Zones zones() { - return new Zones(); - } - - /** - * The "zones" collection of methods. - */ - public class Zones { - - /** - * Returns the specified Zone resource. - * - * Create a request for the method "zones.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 zone Name of the zone resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone) throws java.io.IOException { - Get result = new Get(project, zone); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?|[1-9][0-9]{0,19}"); - - /** - * Returns the specified Zone resource. - * - * Create a request for the method "zones.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 zone Name of the zone resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.Zone.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])?|[1-9][0-9]{0,19}"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 zone resource to return. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone resource to return. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone resource to return. */ - 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])?|[1-9][0-9]{0,19}"); - } - this.zone = zone; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of Zone resources available to the specified project. - * - * Create a request for the method "zones.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. - * @return the request - */ - 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 { - - private static final String REST_PATH = "projects/{project}/zones"; - - private static final String API_VERSION = "2026-10-01-preview"; - - 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])?))"); - - /** - * Retrieves the list of Zone resources available to the specified project. - * - * Create a request for the method "zones.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. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.preview.model.ZoneList.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])?))"); - } - // Does not override the API_VERSION if already configured - com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); - if (headers.get(API_VERSION_HEADER) == null) { - headers.set(API_VERSION_HEADER, API_VERSION); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; - } - - /** - * 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; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * Builder for {@link Compute}. - * - *

- * Implementation is not thread-safe. - *

- * - * @since 1.3.0 - */ - public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { - - private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { - // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. - // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. - // Use the regular endpoint for all other cases. - String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); - useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; - if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { - return DEFAULT_MTLS_ROOT_URL; - } - return DEFAULT_ROOT_URL; - } - - /** - * Returns an instance of a new builder. - * - * @param transport HTTP transport, which should normally be: - *
    - *
  • Google App Engine: - * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • - *
  • Android: {@code newCompatibleTransport} from - * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • - *
- * @param jsonFactory JSON factory, which may be: - *
    - *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • - *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • - *
  • Android Honeycomb or higher: - * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • - *
- * @param httpRequestInitializer HTTP request initializer or {@code null} for none - * @since 1.7 - */ - public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, - com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { - super( - transport, - jsonFactory, - Builder.chooseEndpoint(transport), - DEFAULT_SERVICE_PATH, - httpRequestInitializer, - false); - setBatchPath(DEFAULT_BATCH_PATH); - } - - /** Builds a new instance of {@link Compute}. */ - @Override - public Compute build() { - return new Compute(this); - } - - @Override - public Builder setRootUrl(String rootUrl) { - return (Builder) super.setRootUrl(rootUrl); - } - - @Override - public Builder setServicePath(String servicePath) { - return (Builder) super.setServicePath(servicePath); - } - - @Override - public Builder setBatchPath(String batchPath) { - return (Builder) super.setBatchPath(batchPath); - } - - @Override - public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { - return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); - } - - @Override - public Builder setApplicationName(String applicationName) { - return (Builder) super.setApplicationName(applicationName); - } - - @Override - public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { - return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); - } - - @Override - public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { - return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); - } - - @Override - public Builder setSuppressAllChecks(boolean suppressAllChecks) { - return (Builder) super.setSuppressAllChecks(suppressAllChecks); - } - - /** - * Set the {@link ComputeRequestInitializer}. - * - * @since 1.12 - */ - public Builder setComputeRequestInitializer( - ComputeRequestInitializer computeRequestInitializer) { - return (Builder) super.setGoogleClientRequestInitializer(computeRequestInitializer); - } - - @Override - public Builder setGoogleClientRequestInitializer( - com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { - return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); - } - - @Override - public Builder setUniverseDomain(String universeDomain) { - return (Builder) super.setUniverseDomain(universeDomain); - } - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequest.java deleted file mode 100644 index e976f7de603..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequest.java +++ /dev/null @@ -1,284 +0,0 @@ -/* - * 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.preview; - -/** - * Compute request. - * - * @since 1.3 - */ -@SuppressWarnings("javadoc") -public abstract class ComputeRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { - - /** - * @param client Google client - * @param method HTTP Method - * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" - * the base path from the base URL will be stripped out. The URI template can also be a - * full URL. URI template expansion is done using - * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} - * @param content A POJO that can be serialized into JSON or {@code null} for none - * @param responseClass response class to parse into - */ - public ComputeRequest( - Compute client, String method, String uriTemplate, Object content, Class responseClass) { - super( - client, - method, - uriTemplate, - content, - responseClass); - } - - /** V1 error format. */ - @com.google.api.client.util.Key("$.xgafv") - private java.lang.String $Xgafv; - - /** - * V1 error format. - */ - public java.lang.String get$Xgafv() { - return $Xgafv; - } - - /** V1 error format. */ - public ComputeRequest set$Xgafv(java.lang.String $Xgafv) { - this.$Xgafv = $Xgafv; - return this; - } - - /** OAuth access token. */ - @com.google.api.client.util.Key("access_token") - private java.lang.String accessToken; - - /** - * OAuth access token. - */ - public java.lang.String getAccessToken() { - return accessToken; - } - - /** OAuth access token. */ - public ComputeRequest setAccessToken(java.lang.String accessToken) { - this.accessToken = accessToken; - return this; - } - - /** Data format for response. */ - @com.google.api.client.util.Key - private java.lang.String alt; - - /** - * Data format for response. [default: json] - */ - public java.lang.String getAlt() { - return alt; - } - - /** Data format for response. */ - public ComputeRequest setAlt(java.lang.String alt) { - this.alt = alt; - return this; - } - - /** JSONP */ - @com.google.api.client.util.Key - private java.lang.String callback; - - /** - * JSONP - */ - public java.lang.String getCallback() { - return callback; - } - - /** JSONP */ - public ComputeRequest setCallback(java.lang.String callback) { - this.callback = callback; - return this; - } - - /** Selector specifying which fields to include in a partial response. */ - @com.google.api.client.util.Key - private java.lang.String fields; - - /** - * Selector specifying which fields to include in a partial response. - */ - public java.lang.String getFields() { - return fields; - } - - /** Selector specifying which fields to include in a partial response. */ - public ComputeRequest setFields(java.lang.String fields) { - this.fields = fields; - return this; - } - - /** - * API key. Your API key identifies your project and provides you with API access, quota, and - * reports. Required unless you provide an OAuth 2.0 token. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * API key. Your API key identifies your project and provides you with API access, quota, and - * reports. Required unless you provide an OAuth 2.0 token. - */ - public java.lang.String getKey() { - return key; - } - - /** - * API key. Your API key identifies your project and provides you with API access, quota, and - * reports. Required unless you provide an OAuth 2.0 token. - */ - public ComputeRequest setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** OAuth 2.0 token for the current user. */ - @com.google.api.client.util.Key("oauth_token") - private java.lang.String oauthToken; - - /** - * OAuth 2.0 token for the current user. - */ - public java.lang.String getOauthToken() { - return oauthToken; - } - - /** OAuth 2.0 token for the current user. */ - public ComputeRequest setOauthToken(java.lang.String oauthToken) { - this.oauthToken = oauthToken; - return this; - } - - /** Returns response with indentations and line breaks. */ - @com.google.api.client.util.Key - private java.lang.Boolean prettyPrint; - - /** - * Returns response with indentations and line breaks. [default: true] - */ - public java.lang.Boolean getPrettyPrint() { - return prettyPrint; - } - - /** Returns response with indentations and line breaks. */ - public ComputeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - return this; - } - - /** - * Available to use for quota purposes for server-side applications. Can be any arbitrary string - * assigned to a user, but should not exceed 40 characters. - */ - @com.google.api.client.util.Key - private java.lang.String quotaUser; - - /** - * Available to use for quota purposes for server-side applications. Can be any arbitrary string - * assigned to a user, but should not exceed 40 characters. - */ - public java.lang.String getQuotaUser() { - return quotaUser; - } - - /** - * Available to use for quota purposes for server-side applications. Can be any arbitrary string - * assigned to a user, but should not exceed 40 characters. - */ - public ComputeRequest setQuotaUser(java.lang.String quotaUser) { - this.quotaUser = quotaUser; - return this; - } - - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - @com.google.api.client.util.Key - private java.lang.String uploadType; - - /** - * Legacy upload protocol for media (e.g. "media", "multipart"). - */ - public java.lang.String getUploadType() { - return uploadType; - } - - /** Legacy upload protocol for media (e.g. "media", "multipart"). */ - public ComputeRequest setUploadType(java.lang.String uploadType) { - this.uploadType = uploadType; - return this; - } - - /** Upload protocol for media (e.g. "raw", "multipart"). */ - @com.google.api.client.util.Key("upload_protocol") - private java.lang.String uploadProtocol; - - /** - * Upload protocol for media (e.g. "raw", "multipart"). - */ - public java.lang.String getUploadProtocol() { - return uploadProtocol; - } - - /** Upload protocol for media (e.g. "raw", "multipart"). */ - public ComputeRequest setUploadProtocol(java.lang.String uploadProtocol) { - this.uploadProtocol = uploadProtocol; - return this; - } - - /** Legacy name for parameter that has been superseded by `quotaUser`. */ - @com.google.api.client.util.Key - private java.lang.String userIp; - - /** - * Legacy name for parameter that has been superseded by `quotaUser`. - */ - public java.lang.String getUserIp() { - return userIp; - } - - /** Legacy name for parameter that has been superseded by `quotaUser`. */ - public ComputeRequest setUserIp(java.lang.String userIp) { - this.userIp = userIp; - return this; - } - - @Override - public final Compute getAbstractGoogleClient() { - return (Compute) super.getAbstractGoogleClient(); - } - - @Override - public ComputeRequest setDisableGZipContent(boolean disableGZipContent) { - return (ComputeRequest) super.setDisableGZipContent(disableGZipContent); - } - - @Override - public ComputeRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { - return (ComputeRequest) super.setRequestHeaders(headers); - } - - @Override - public ComputeRequest set(String parameterName, Object value) { - return (ComputeRequest) super.set(parameterName, value); - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequestInitializer.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequestInitializer.java deleted file mode 100644 index f4ebabe5806..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeRequestInitializer.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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.preview; - -/** - * Compute request initializer for setting properties like key and userIp. - * - *

- * The simplest usage is to use it to set the key parameter: - *

- * - *
-  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
-      new ComputeRequestInitializer(KEY);
- * 
- * - *

- * There is also a constructor to set both the key and userIp parameters: - *

- * - *
-  public static final GoogleClientRequestInitializer INITIALIZER =
-      new ComputeRequestInitializer(KEY, USER_IP);
- * 
- * - *

- * If you want to implement custom logic, extend it like this: - *

- * - *
-  public static class MyRequestInitializer extends ComputeRequestInitializer {
-
-    {@literal @}Override
-    public void initializeComputeRequest(ComputeRequest{@literal <}?{@literal >} request)
-        throws IOException {
-      // custom logic
-    }
-  }
- * 
- * - *

- * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: - *

- * - *
-  public static class MyRequestInitializer2 extends ComputeRequestInitializer {
-
-    public MyKeyRequestInitializer() {
-      super(KEY, USER_IP);
-    }
-
-    {@literal @}Override
-    public void initializeComputeRequest(ComputeRequest{@literal <}?{@literal >} request)
-        throws IOException {
-      // custom logic
-    }
-  }
- * 
- * - *

- * Subclasses should be thread-safe. - *

- * - * @since 1.12 - */ -public class ComputeRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { - - public ComputeRequestInitializer() { - super(); - } - - /** - * @param key API key or {@code null} to leave it unchanged - */ - public ComputeRequestInitializer(String key) { - super(key); - } - - /** - * @param key API key or {@code null} to leave it unchanged - * @param userIp user IP or {@code null} to leave it unchanged - */ - public ComputeRequestInitializer(String key, String userIp) { - super(key, userIp); - } - - @Override - public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { - super.initializeJsonRequest(request); - initializeComputeRequest((ComputeRequest) request); - } - - /** - * Initializes Compute request. - * - *

- * Default implementation does nothing. Called from - * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. - *

- * - * @throws java.io.IOException I/O exception - */ - protected void initializeComputeRequest(ComputeRequest request) throws java.io.IOException { - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeScopes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeScopes.java deleted file mode 100644 index 23654a723b1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/ComputeScopes.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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.preview; - -/** - * Available OAuth 2.0 scopes for use with the Compute Engine API. - * - * @since 1.4 - */ -public class ComputeScopes { - - /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ - public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - - /** View and manage your Google Compute Engine resources. */ - public static final String COMPUTE = "https://www.googleapis.com/auth/compute"; - - /** View your Google Compute Engine resources. */ - public static final String COMPUTE_READONLY = "https://www.googleapis.com/auth/compute.readonly"; - - /** Manage your data and permissions in Cloud Storage and see the email address for your Google Account. */ - public static final String DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; - - /** View your data in Google Cloud Storage. */ - public static final String DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; - - /** Manage your data in Cloud Storage and see the email address of your Google Account. */ - public static final String DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; - - /** - * Returns an unmodifiable set that contains all scopes declared by this class. - * - * @since 1.16 - */ - public static java.util.Set all() { - java.util.Set set = new java.util.HashSet(); - set.add(CLOUD_PLATFORM); - set.add(COMPUTE); - set.add(COMPUTE_READONLY); - set.add(DEVSTORAGE_FULL_CONTROL); - set.add(DEVSTORAGE_READ_ONLY); - set.add(DEVSTORAGE_READ_WRITE); - return java.util.Collections.unmodifiableSet(set); - } - - private ComputeScopes() { - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AWSV4Signature.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AWSV4Signature.java deleted file mode 100644 index 719b501aac5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AWSV4Signature.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains the configurations necessary to generate a signature for access to private storage - * buckets that support Signature Version 4 for authentication. The service name for generating the - * authentication header will always default to 's3'. - * - *

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 AWSV4Signature extends com.google.api.client.json.GenericJson { - - /** - * The access key used for s3 bucket authentication. Required for updating or creating a backend - * that uses AWS v4 signature authentication, but will not be returned as part of the - * configuration when queried with a REST API GET request. - * - * @InputOnly - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String accessKey; - - /** - * The identifier of an access key used for s3 bucket authentication. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String accessKeyId; - - /** - * The optional version identifier for the access key. You can use this to keep track of different - * iterations of your access key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String accessKeyVersion; - - /** - * The name of the cloud region of your origin. This is a free-form field with the name of the - * region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" - * for OCI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String originRegion; - - /** - * The access key used for s3 bucket authentication. Required for updating or creating a backend - * that uses AWS v4 signature authentication, but will not be returned as part of the - * configuration when queried with a REST API GET request. - * - * @InputOnly - * @return value or {@code null} for none - */ - public java.lang.String getAccessKey() { - return accessKey; - } - - /** - * The access key used for s3 bucket authentication. Required for updating or creating a backend - * that uses AWS v4 signature authentication, but will not be returned as part of the - * configuration when queried with a REST API GET request. - * - * @InputOnly - * @param accessKey accessKey or {@code null} for none - */ - public AWSV4Signature setAccessKey(java.lang.String accessKey) { - this.accessKey = accessKey; - return this; - } - - /** - * The identifier of an access key used for s3 bucket authentication. - * @return value or {@code null} for none - */ - public java.lang.String getAccessKeyId() { - return accessKeyId; - } - - /** - * The identifier of an access key used for s3 bucket authentication. - * @param accessKeyId accessKeyId or {@code null} for none - */ - public AWSV4Signature setAccessKeyId(java.lang.String accessKeyId) { - this.accessKeyId = accessKeyId; - return this; - } - - /** - * The optional version identifier for the access key. You can use this to keep track of different - * iterations of your access key. - * @return value or {@code null} for none - */ - public java.lang.String getAccessKeyVersion() { - return accessKeyVersion; - } - - /** - * The optional version identifier for the access key. You can use this to keep track of different - * iterations of your access key. - * @param accessKeyVersion accessKeyVersion or {@code null} for none - */ - public AWSV4Signature setAccessKeyVersion(java.lang.String accessKeyVersion) { - this.accessKeyVersion = accessKeyVersion; - return this; - } - - /** - * The name of the cloud region of your origin. This is a free-form field with the name of the - * region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" - * for OCI. - * @return value or {@code null} for none - */ - public java.lang.String getOriginRegion() { - return originRegion; - } - - /** - * The name of the cloud region of your origin. This is a free-form field with the name of the - * region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" - * for OCI. - * @param originRegion originRegion or {@code null} for none - */ - public AWSV4Signature setOriginRegion(java.lang.String originRegion) { - this.originRegion = originRegion; - return this; - } - - @Override - public AWSV4Signature set(String fieldName, Object value) { - return (AWSV4Signature) super.set(fieldName, value); - } - - @Override - public AWSV4Signature clone() { - return (AWSV4Signature) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorConfig.java deleted file mode 100644 index 4102b6515c5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorConfig.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * A specification of the type and number of accelerator cards attached to the instance. - * - *

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 AcceleratorConfig extends com.google.api.client.json.GenericJson { - - /** - * The number of the guest accelerator cards exposed to this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer acceleratorCount; - - /** - * Full or partial URL of the accelerator type resource to attach to this instance. For - * example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are - * creating an instance template, specify only the accelerator name. See GPUs on Compute Engine - * for a full list of accelerator types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorType; - - /** - * The number of the guest accelerator cards exposed to this instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getAcceleratorCount() { - return acceleratorCount; - } - - /** - * The number of the guest accelerator cards exposed to this instance. - * @param acceleratorCount acceleratorCount or {@code null} for none - */ - public AcceleratorConfig setAcceleratorCount(java.lang.Integer acceleratorCount) { - this.acceleratorCount = acceleratorCount; - return this; - } - - /** - * Full or partial URL of the accelerator type resource to attach to this instance. For - * example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are - * creating an instance template, specify only the accelerator name. See GPUs on Compute Engine - * for a full list of accelerator types. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorType() { - return acceleratorType; - } - - /** - * Full or partial URL of the accelerator type resource to attach to this instance. For - * example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are - * creating an instance template, specify only the accelerator name. See GPUs on Compute Engine - * for a full list of accelerator types. - * @param acceleratorType acceleratorType or {@code null} for none - */ - public AcceleratorConfig setAcceleratorType(java.lang.String acceleratorType) { - this.acceleratorType = acceleratorType; - return this; - } - - @Override - public AcceleratorConfig set(String fieldName, Object value) { - return (AcceleratorConfig) super.set(fieldName, value); - } - - @Override - public AcceleratorConfig clone() { - return (AcceleratorConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java deleted file mode 100644 index af83eae16d5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTopologiesInfoAcceleratorTopologyInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Info for a slice of a given topology. - * - *

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 AcceleratorTopologiesInfoAcceleratorTopologyInfo extends com.google.api.client.json.GenericJson { - - /** - * The accelerator topology. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorTopology; - - /** - * Info for each topology state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List infoPerTopologyStates; - - /** - * The accelerator topology. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorTopology() { - return acceleratorTopology; - } - - /** - * The accelerator topology. - * @param acceleratorTopology acceleratorTopology or {@code null} for none - */ - public AcceleratorTopologiesInfoAcceleratorTopologyInfo setAcceleratorTopology(java.lang.String acceleratorTopology) { - this.acceleratorTopology = acceleratorTopology; - return this; - } - - /** - * Info for each topology state. - * @return value or {@code null} for none - */ - public java.util.List getInfoPerTopologyStates() { - return infoPerTopologyStates; - } - - /** - * Info for each topology state. - * @param infoPerTopologyStates infoPerTopologyStates or {@code null} for none - */ - public AcceleratorTopologiesInfoAcceleratorTopologyInfo setInfoPerTopologyStates(java.util.List infoPerTopologyStates) { - this.infoPerTopologyStates = infoPerTopologyStates; - return this; - } - - @Override - public AcceleratorTopologiesInfoAcceleratorTopologyInfo set(String fieldName, Object value) { - return (AcceleratorTopologiesInfoAcceleratorTopologyInfo) super.set(fieldName, value); - } - - @Override - public AcceleratorTopologiesInfoAcceleratorTopologyInfo clone() { - return (AcceleratorTopologiesInfoAcceleratorTopologyInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeAggregatedList.java deleted file mode 100644 index e5947ab1c56..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AcceleratorTypeAggregatedList. - * - *

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 AcceleratorTypeAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 AcceleratorTypesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for - * aggregated lists of accelerator types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 AcceleratorTypeAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of AcceleratorTypesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of AcceleratorTypesScopedList resources. - * @param items items or {@code null} for none - */ - public AcceleratorTypeAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for - * aggregated lists of accelerator types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for - * aggregated lists of accelerator types. - * @param kind kind or {@code null} for none - */ - public AcceleratorTypeAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public AcceleratorTypeAggregatedList 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 AcceleratorTypeAggregatedList 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 AcceleratorTypeAggregatedList 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 AcceleratorTypeAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AcceleratorTypeAggregatedList set(String fieldName, Object value) { - return (AcceleratorTypeAggregatedList) super.set(fieldName, value); - } - - @Override - public AcceleratorTypeAggregatedList clone() { - return (AcceleratorTypeAggregatedList) 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 AcceleratorTypeAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeList.java deleted file mode 100644 index d300d2274da..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypeList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of accelerator types. - * - *

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 AcceleratorTypeList extends com.google.api.client.json.GenericJson { - - /** - * [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 AcceleratorType 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 AcceleratorType 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(AcceleratorType.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 AcceleratorTypeList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of AcceleratorType resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of AcceleratorType resources. - * @param items items or {@code null} for none - */ - public AcceleratorTypeList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. - * @param kind kind or {@code null} for none - */ - public AcceleratorTypeList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public AcceleratorTypeList 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 AcceleratorTypeList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 AcceleratorTypeList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AcceleratorTypeList set(String fieldName, Object value) { - return (AcceleratorTypeList) super.set(fieldName, value); - } - - @Override - public AcceleratorTypeList clone() { - return (AcceleratorTypeList) 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 AcceleratorTypeListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypesScopedList.java deleted file mode 100644 index d9ca096c4be..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AcceleratorTypesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AcceleratorTypesScopedList. - * - *

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 AcceleratorTypesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of accelerator types contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List acceleratorTypes; - - static { - // hack to force ProGuard to consider AcceleratorType 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(AcceleratorType.class); - } - - /** - * [Output Only] An informational warning that appears when the accelerator types list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of accelerator types contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getAcceleratorTypes() { - return acceleratorTypes; - } - - /** - * [Output Only] A list of accelerator types contained in this scope. - * @param acceleratorTypes acceleratorTypes or {@code null} for none - */ - public AcceleratorTypesScopedList setAcceleratorTypes(java.util.List acceleratorTypes) { - this.acceleratorTypes = acceleratorTypes; - return this; - } - - /** - * [Output Only] An informational warning that appears when the accelerator types list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] An informational warning that appears when the accelerator types list is empty. - * @param warning warning or {@code null} for none - */ - public AcceleratorTypesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AcceleratorTypesScopedList set(String fieldName, Object value) { - return (AcceleratorTypesScopedList) super.set(fieldName, value); - } - - @Override - public AcceleratorTypesScopedList clone() { - return (AcceleratorTypesScopedList) super.clone(); - } - - /** - * [Output Only] An informational warning that appears when the accelerator types list is empty. - */ - 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 AcceleratorTypesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AccessConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AccessConfig.java deleted file mode 100644 index ee560fa0956..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AccessConfig.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * 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.preview.model; - -/** - * An access configuration attached to an instance's network interface. Only one access config per - * instance is supported. - * - *

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 AccessConfig extends com.google.api.client.json.GenericJson { - - /** - * Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated - * with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To - * use a static external IP address, it must be unused and in the same region as the instance's - * zone. If not specified, Google Cloud will automatically assign an external IPv6 address from - * the instance's subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalIpv6; - - /** - * Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer externalIpv6PrefixLength; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The name of this access configuration. In accessConfigs (IPv4), the default and recommended - * name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork - * Access. In ipv6AccessConfigs, the recommend name is External IPv6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. - * Specify an unused static external IP address available to the project or leave this field - * undefined to use an IP from a shared ephemeral IP address pool. If you specify a static - * external IP address, it must live in the same region as the zone of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natIP; - - /** - * This signifies the networking tier used for configuring this access configuration and can only - * take the following values: PREMIUM,STANDARD. - * - * If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be - * created with this networkTier. - * - * If an AccessConfig with a valid external IP address is specified, it must match that of the - * networkTier associated with the Address resource owning that IP. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkTier; - - /** - * The DNS domain name for the public PTR record. - * - * You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this - * field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in - * associated external IPv6 range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String publicPtrDomainName; - - /** - * The resource URL for the security policy associated with this access config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of - * the instance to a DNS domain name. - * - * This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has - * external IPv6 range associated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean setPublicPtr; - - /** - * The type of configuration. In accessConfigs (IPv4), the default and only option is - * ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated - * with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To - * use a static external IP address, it must be unused and in the same region as the instance's - * zone. If not specified, Google Cloud will automatically assign an external IPv6 address from - * the instance's subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getExternalIpv6() { - return externalIpv6; - } - - /** - * Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated - * with this instance, prefix length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To - * use a static external IP address, it must be unused and in the same region as the instance's - * zone. If not specified, Google Cloud will automatically assign an external IPv6 address from - * the instance's subnetwork. - * @param externalIpv6 externalIpv6 or {@code null} for none - */ - public AccessConfig setExternalIpv6(java.lang.String externalIpv6) { - this.externalIpv6 = externalIpv6; - return this; - } - - /** - * Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. - * @return value or {@code null} for none - */ - public java.lang.Integer getExternalIpv6PrefixLength() { - return externalIpv6PrefixLength; - } - - /** - * Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range. - * @param externalIpv6PrefixLength externalIpv6PrefixLength or {@code null} for none - */ - public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6PrefixLength) { - this.externalIpv6PrefixLength = externalIpv6PrefixLength; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. - * @param kind kind or {@code null} for none - */ - public AccessConfig setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The name of this access configuration. In accessConfigs (IPv4), the default and recommended - * name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork - * Access. In ipv6AccessConfigs, the recommend name is External IPv6. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of this access configuration. In accessConfigs (IPv4), the default and recommended - * name is External NAT, but you can use any arbitrary string, such as My external IP orNetwork - * Access. In ipv6AccessConfigs, the recommend name is External IPv6. - * @param name name or {@code null} for none - */ - public AccessConfig setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. - * Specify an unused static external IP address available to the project or leave this field - * undefined to use an IP from a shared ephemeral IP address pool. If you specify a static - * external IP address, it must live in the same region as the zone of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getNatIP() { - return natIP; - } - - /** - * Applies to accessConfigs (IPv4) only. Anexternal IP address associated with this instance. - * Specify an unused static external IP address available to the project or leave this field - * undefined to use an IP from a shared ephemeral IP address pool. If you specify a static - * external IP address, it must live in the same region as the zone of the instance. - * @param natIP natIP or {@code null} for none - */ - public AccessConfig setNatIP(java.lang.String natIP) { - this.natIP = natIP; - return this; - } - - /** - * This signifies the networking tier used for configuring this access configuration and can only - * take the following values: PREMIUM,STANDARD. - * - * If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be - * created with this networkTier. - * - * If an AccessConfig with a valid external IP address is specified, it must match that of the - * networkTier associated with the Address resource owning that IP. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkTier() { - return networkTier; - } - - /** - * This signifies the networking tier used for configuring this access configuration and can only - * take the following values: PREMIUM,STANDARD. - * - * If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be - * created with this networkTier. - * - * If an AccessConfig with a valid external IP address is specified, it must match that of the - * networkTier associated with the Address resource owning that IP. - * @param networkTier networkTier or {@code null} for none - */ - public AccessConfig setNetworkTier(java.lang.String networkTier) { - this.networkTier = networkTier; - return this; - } - - /** - * The DNS domain name for the public PTR record. - * - * You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this - * field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in - * associated external IPv6 range. - * @return value or {@code null} for none - */ - public java.lang.String getPublicPtrDomainName() { - return publicPtrDomainName; - } - - /** - * The DNS domain name for the public PTR record. - * - * You can set this field only if the `setPublicPtr` field is enabled inaccessConfig. If this - * field is unspecified inipv6AccessConfig, a default PTR record will be created for first IP in - * associated external IPv6 range. - * @param publicPtrDomainName publicPtrDomainName or {@code null} for none - */ - public AccessConfig setPublicPtrDomainName(java.lang.String publicPtrDomainName) { - this.publicPtrDomainName = publicPtrDomainName; - return this; - } - - /** - * The resource URL for the security policy associated with this access config. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * The resource URL for the security policy associated with this access config. - * @param securityPolicy securityPolicy or {@code null} for none - */ - public AccessConfig setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - return this; - } - - /** - * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of - * the instance to a DNS domain name. - * - * This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has - * external IPv6 range associated. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSetPublicPtr() { - return setPublicPtr; - } - - /** - * Specifies whether a public DNS 'PTR' record should be created to map the external IP address of - * the instance to a DNS domain name. - * - * This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has - * external IPv6 range associated. - * @param setPublicPtr setPublicPtr or {@code null} for none - */ - public AccessConfig setSetPublicPtr(java.lang.Boolean setPublicPtr) { - this.setPublicPtr = setPublicPtr; - return this; - } - - /** - * The type of configuration. In accessConfigs (IPv4), the default and only option is - * ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of configuration. In accessConfigs (IPv4), the default and only option is - * ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option isDIRECT_IPV6. - * @param type type or {@code null} for none - */ - public AccessConfig setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public AccessConfig set(String fieldName, Object value) { - return (AccessConfig) super.set(fieldName, value); - } - - @Override - public AccessConfig clone() { - return (AccessConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Address.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Address.java deleted file mode 100644 index 72560db0463..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Address.java +++ /dev/null @@ -1,777 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an IP Address resource. - * - * Google Compute Engine has two IP Address resources: - * - * * [Global (external and - * internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) * [Regional - * (external and internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * - * For more information, see Reserving a static external IP address. - * - *

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 Address extends com.google.api.client.json.GenericJson { - - /** - * The static IP address represented by this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** - * The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to - * EXTERNAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String addressType; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this field when you create the 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; - - /** - * Reference to the source of IP addresses. - * - * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP - * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 - * allocations. If an IPv6 PDP is used, the PDP must be in - * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global - * internal addresses. - * - * Use one of the following formats to specify the resource: - * - * For a Public Delegated Prefix: - Full resource URL:https://www.googleapis.com/comput - * e/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp - Partial URL: - - * projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - - * regions/region/publicDelegatedPrefixes/pdp-name - * - * For an Internal Range: - Full URL:https://networkconnectivity.googleapis.com/v1/projects - * /project/locations/global/internalRanges/internal-range - Partial - * URL:projects/project/locations/global/internalRanges/internal-range - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCollection; - - /** - * The IP version that will be used by this address. Valid options areIPV4 or IPV6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipVersion; - - /** - * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which - * type of endpoint this address can be used after the external IPv6 address reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6EndpointType; - - /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this Address, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The URL of the network in which to reserve the address. This field can only be used with - * INTERNAL type with theVPC_PEERING purpose. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * This signifies the networking tier used for configuring this address and can only take the - * following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global - * external IP addresses are always Premium Tier; regional external IP addresses can be either - * Standard or Premium Tier. - * - * If this field is not specified, it is assumed to be PREMIUM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkTier; - - /** - * The prefix length if the resource represents an IP range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer prefixLength; - - /** - * The purpose of this resource, which can be one of the following values: - - * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, - * and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork - * for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a - * subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for - * private services access allocated ranges. - NAT_AUTO for the regional external IP - * addresses used by Cloud NAT when allocating addresses using - * automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a - * private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud - * Interconnect* configuration. These addresses are regional resources. - - * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal - * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is - * used to configure Private Service Connect. Only global internal addresses can use this - * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can - * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as - * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for - * addresses that can only be assigned to global external Passthrough Network Load Balancer - * forwarding rules, as an Availability Group 1 address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String purpose; - - /** - * Output only. [Output Only] The URL of the region where a regional address resides. For regional - * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field - * is not applicable to global addresses.* - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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 status of the address, which can be one ofRESERVING, RESERVED, - * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A - * RESERVED address is currently reserved and available to use. An IN_USE address is currently - * being used by another resource and is not available. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it - * must be within the subnetwork's IP range. This field can only be used with INTERNAL type with - * aGCE_ENDPOINT or DNS_RESOLVER purpose. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * [Output Only] The URLs of the resources that are using this address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List users; - - /** - * The static IP address represented by this resource. - * @return value or {@code null} for none - */ - public java.lang.String getAddress() { - return address; - } - - /** - * The static IP address represented by this resource. - * @param address address or {@code null} for none - */ - public Address setAddress(java.lang.String address) { - this.address = address; - return this; - } - - /** - * The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to - * EXTERNAL. - * @return value or {@code null} for none - */ - public java.lang.String getAddressType() { - return addressType; - } - - /** - * The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to - * EXTERNAL. - * @param addressType addressType or {@code null} for none - */ - public Address setAddressType(java.lang.String addressType) { - this.addressType = addressType; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Address setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @param description description or {@code null} for none - */ - public Address 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 Address setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Reference to the source of IP addresses. - * - * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP - * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 - * allocations. If an IPv6 PDP is used, the PDP must be in - * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global - * internal addresses. - * - * Use one of the following formats to specify the resource: - * - * For a Public Delegated Prefix: - Full resource URL:https://www.googleapis.com/comput - * e/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp - Partial URL: - - * projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - - * regions/region/publicDelegatedPrefixes/pdp-name - * - * For an Internal Range: - Full URL:https://networkconnectivity.googleapis.com/v1/projects - * /project/locations/global/internalRanges/internal-range - Partial - * URL:projects/project/locations/global/internalRanges/internal-range - * @return value or {@code null} for none - */ - public java.lang.String getIpCollection() { - return ipCollection; - } - - /** - * Reference to the source of IP addresses. - * - * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP - * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 - * allocations. If an IPv6 PDP is used, the PDP must be in - * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global - * internal addresses. - * - * Use one of the following formats to specify the resource: - * - * For a Public Delegated Prefix: - Full resource URL:https://www.googleapis.com/comput - * e/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp - Partial URL: - - * projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - - * regions/region/publicDelegatedPrefixes/pdp-name - * - * For an Internal Range: - Full URL:https://networkconnectivity.googleapis.com/v1/projects - * /project/locations/global/internalRanges/internal-range - Partial - * URL:projects/project/locations/global/internalRanges/internal-range - * @param ipCollection ipCollection or {@code null} for none - */ - public Address setIpCollection(java.lang.String ipCollection) { - this.ipCollection = ipCollection; - return this; - } - - /** - * The IP version that will be used by this address. Valid options areIPV4 or IPV6. - * @return value or {@code null} for none - */ - public java.lang.String getIpVersion() { - return ipVersion; - } - - /** - * The IP version that will be used by this address. Valid options areIPV4 or IPV6. - * @param ipVersion ipVersion or {@code null} for none - */ - public Address setIpVersion(java.lang.String ipVersion) { - this.ipVersion = ipVersion; - return this; - } - - /** - * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which - * type of endpoint this address can be used after the external IPv6 address reservation. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6EndpointType() { - return ipv6EndpointType; - } - - /** - * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which - * type of endpoint this address can be used after the external IPv6 address reservation. - * @param ipv6EndpointType ipv6EndpointType or {@code null} for none - */ - public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { - this.ipv6EndpointType = ipv6EndpointType; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. - * @param kind kind or {@code null} for none - */ - public Address setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this Address, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Address. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this Address, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Address. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this Address, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Address. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public Address setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this Address, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Address. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Address encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public Address setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @param name name or {@code null} for none - */ - public Address setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The URL of the network in which to reserve the address. This field can only be used with - * INTERNAL type with theVPC_PEERING purpose. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * The URL of the network in which to reserve the address. This field can only be used with - * INTERNAL type with theVPC_PEERING purpose. - * @param network network or {@code null} for none - */ - public Address setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * This signifies the networking tier used for configuring this address and can only take the - * following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global - * external IP addresses are always Premium Tier; regional external IP addresses can be either - * Standard or Premium Tier. - * - * If this field is not specified, it is assumed to be PREMIUM. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkTier() { - return networkTier; - } - - /** - * This signifies the networking tier used for configuring this address and can only take the - * following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global - * external IP addresses are always Premium Tier; regional external IP addresses can be either - * Standard or Premium Tier. - * - * If this field is not specified, it is assumed to be PREMIUM. - * @param networkTier networkTier or {@code null} for none - */ - public Address setNetworkTier(java.lang.String networkTier) { - this.networkTier = networkTier; - return this; - } - - /** - * The prefix length if the resource represents an IP range. - * @return value or {@code null} for none - */ - public java.lang.Integer getPrefixLength() { - return prefixLength; - } - - /** - * The prefix length if the resource represents an IP range. - * @param prefixLength prefixLength or {@code null} for none - */ - public Address setPrefixLength(java.lang.Integer prefixLength) { - this.prefixLength = prefixLength; - return this; - } - - /** - * The purpose of this resource, which can be one of the following values: - - * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, - * and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork - * for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a - * subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for - * private services access allocated ranges. - NAT_AUTO for the regional external IP - * addresses used by Cloud NAT when allocating addresses using - * automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a - * private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud - * Interconnect* configuration. These addresses are regional resources. - - * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal - * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is - * used to configure Private Service Connect. Only global internal addresses can use this - * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can - * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as - * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for - * addresses that can only be assigned to global external Passthrough Network Load Balancer - * forwarding rules, as an Availability Group 1 address. - * @return value or {@code null} for none - */ - public java.lang.String getPurpose() { - return purpose; - } - - /** - * The purpose of this resource, which can be one of the following values: - - * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, - * and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork - * for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a - * subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for - * private services access allocated ranges. - NAT_AUTO for the regional external IP - * addresses used by Cloud NAT when allocating addresses using - * automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a - * private IP range that are reserved for a VLAN attachment in an *HA VPN over Cloud - * Interconnect* configuration. These addresses are regional resources. - - * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal - * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is - * used to configure Private Service Connect. Only global internal addresses can use this - * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can - * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as - * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for - * addresses that can only be assigned to global external Passthrough Network Load Balancer - * forwarding rules, as an Availability Group 1 address. - * @param purpose purpose or {@code null} for none - */ - public Address setPurpose(java.lang.String purpose) { - this.purpose = purpose; - return this; - } - - /** - * Output only. [Output Only] The URL of the region where a regional address resides. For regional - * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field - * is not applicable to global addresses.* - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The URL of the region where a regional address resides. For regional - * addresses, you must specify the region as a path parameter in the HTTP request URL. *This field - * is not applicable to global addresses.* - * @param region region or {@code null} for none - */ - public Address setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Address setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, - * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A - * RESERVED address is currently reserved and available to use. An IN_USE address is currently - * being used by another resource and is not available. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, - * or IN_USE. An address that is RESERVING is currently in the process of being reserved. A - * RESERVED address is currently reserved and available to use. An IN_USE address is currently - * being used by another resource and is not available. - * @param status status or {@code null} for none - */ - public Address setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it - * must be within the subnetwork's IP range. This field can only be used with INTERNAL type with - * aGCE_ENDPOINT or DNS_RESOLVER purpose. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it - * must be within the subnetwork's IP range. This field can only be used with INTERNAL type with - * aGCE_ENDPOINT or DNS_RESOLVER purpose. - * @param subnetwork subnetwork or {@code null} for none - */ - public Address setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - /** - * [Output Only] The URLs of the resources that are using this address. - * @return value or {@code null} for none - */ - public java.util.List getUsers() { - return users; - } - - /** - * [Output Only] The URLs of the resources that are using this address. - * @param users users or {@code null} for none - */ - public Address setUsers(java.util.List users) { - this.users = users; - return this; - } - - @Override - public Address set(String fieldName, Object value) { - return (Address) super.set(fieldName, value); - } - - @Override - public Address clone() { - return (Address) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressAggregatedList.java deleted file mode 100644 index a3e2bd82a4d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AddressAggregatedList. - * - *

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 AddressAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 AddressesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 AddressAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of AddressesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of AddressesScopedList resources. - * @param items items or {@code null} for none - */ - public AddressAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. - * @param kind kind or {@code null} for none - */ - public AddressAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public AddressAggregatedList 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 AddressAggregatedList 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 AddressAggregatedList 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 AddressAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AddressAggregatedList set(String fieldName, Object value) { - return (AddressAggregatedList) super.set(fieldName, value); - } - - @Override - public AddressAggregatedList clone() { - return (AddressAggregatedList) 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 AddressAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AddressesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressesScopedList.java deleted file mode 100644 index 27996ddb0dc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AddressesScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AddressesScopedList. - * - *

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 AddressesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of addresses contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List
addresses; - - static { - // hack to force ProGuard to consider Address 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(Address.class); - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of addresses contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List
getAddresses() { - return addresses; - } - - /** - * [Output Only] A list of addresses contained in this scope. - * @param addresses addresses or {@code null} for none - */ - public AddressesScopedList setAddresses(java.util.List
addresses) { - this.addresses = addresses; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public AddressesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AddressesScopedList set(String fieldName, Object value) { - return (AddressesScopedList) super.set(fieldName, value); - } - - @Override - public AddressesScopedList clone() { - return (AddressesScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is empty. - */ - 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 AddressesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AdvancedMachineFeatures.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AdvancedMachineFeatures.java deleted file mode 100644 index d9562f36adc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AdvancedMachineFeatures.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies options for controlling advanced machine features. Options that would traditionally be - * configured in a BIOS belong here. Features that require operating system support may have - * corresponding entries in the GuestOsFeatures of anImage (e.g., whether or not the OS in theImage - * supports nested virtualization being enabled or disabled). - * - *

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 AdvancedMachineFeatures extends com.google.api.client.json.GenericJson { - - /** - * Whether to enable nested virtualization or not (default is false). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableNestedVirtualization; - - /** - * Whether to enable UEFI networking for instance creation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableUefiNetworking; - - /** - * Type of Performance Monitoring Unit requested on instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String performanceMonitoringUnit; - - /** - * The number of threads per physical core. To disable simultaneous multithreading (SMT) set this - * to 1. If unset, the maximum number of threads supported per core by the underlying processor is - * assumed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer threadsPerCore; - - /** - * Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX - * - * Using empty string or not setting this field will use the platform-specific default turbo mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String turboMode; - - /** - * The number of physical cores to expose to an instance. Multiply by the number of threads per - * core to compute the total number of virtual CPUs to expose to the instance. If unset, the - * number of cores is inferred from the instance's nominal CPU count and the underlying platform's - * SMT width. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer visibleCoreCount; - - /** - * Whether to enable nested virtualization or not (default is false). - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableNestedVirtualization() { - return enableNestedVirtualization; - } - - /** - * Whether to enable nested virtualization or not (default is false). - * @param enableNestedVirtualization enableNestedVirtualization or {@code null} for none - */ - public AdvancedMachineFeatures setEnableNestedVirtualization(java.lang.Boolean enableNestedVirtualization) { - this.enableNestedVirtualization = enableNestedVirtualization; - return this; - } - - /** - * Whether to enable UEFI networking for instance creation. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableUefiNetworking() { - return enableUefiNetworking; - } - - /** - * Whether to enable UEFI networking for instance creation. - * @param enableUefiNetworking enableUefiNetworking or {@code null} for none - */ - public AdvancedMachineFeatures setEnableUefiNetworking(java.lang.Boolean enableUefiNetworking) { - this.enableUefiNetworking = enableUefiNetworking; - return this; - } - - /** - * Type of Performance Monitoring Unit requested on instance. - * @return value or {@code null} for none - */ - public java.lang.String getPerformanceMonitoringUnit() { - return performanceMonitoringUnit; - } - - /** - * Type of Performance Monitoring Unit requested on instance. - * @param performanceMonitoringUnit performanceMonitoringUnit or {@code null} for none - */ - public AdvancedMachineFeatures setPerformanceMonitoringUnit(java.lang.String performanceMonitoringUnit) { - this.performanceMonitoringUnit = performanceMonitoringUnit; - return this; - } - - /** - * The number of threads per physical core. To disable simultaneous multithreading (SMT) set this - * to 1. If unset, the maximum number of threads supported per core by the underlying processor is - * assumed. - * @return value or {@code null} for none - */ - public java.lang.Integer getThreadsPerCore() { - return threadsPerCore; - } - - /** - * The number of threads per physical core. To disable simultaneous multithreading (SMT) set this - * to 1. If unset, the maximum number of threads supported per core by the underlying processor is - * assumed. - * @param threadsPerCore threadsPerCore or {@code null} for none - */ - public AdvancedMachineFeatures setThreadsPerCore(java.lang.Integer threadsPerCore) { - this.threadsPerCore = threadsPerCore; - return this; - } - - /** - * Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX - * - * Using empty string or not setting this field will use the platform-specific default turbo mode. - * @return value or {@code null} for none - */ - public java.lang.String getTurboMode() { - return turboMode; - } - - /** - * Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX - * - * Using empty string or not setting this field will use the platform-specific default turbo mode. - * @param turboMode turboMode or {@code null} for none - */ - public AdvancedMachineFeatures setTurboMode(java.lang.String turboMode) { - this.turboMode = turboMode; - return this; - } - - /** - * The number of physical cores to expose to an instance. Multiply by the number of threads per - * core to compute the total number of virtual CPUs to expose to the instance. If unset, the - * number of cores is inferred from the instance's nominal CPU count and the underlying platform's - * SMT width. - * @return value or {@code null} for none - */ - public java.lang.Integer getVisibleCoreCount() { - return visibleCoreCount; - } - - /** - * The number of physical cores to expose to an instance. Multiply by the number of threads per - * core to compute the total number of virtual CPUs to expose to the instance. If unset, the - * number of cores is inferred from the instance's nominal CPU count and the underlying platform's - * SMT width. - * @param visibleCoreCount visibleCoreCount or {@code null} for none - */ - public AdvancedMachineFeatures setVisibleCoreCount(java.lang.Integer visibleCoreCount) { - this.visibleCoreCount = visibleCoreCount; - return this; - } - - @Override - public AdvancedMachineFeatures set(String fieldName, Object value) { - return (AdvancedMachineFeatures) super.set(fieldName, value); - } - - @Override - public AdvancedMachineFeatures clone() { - return (AdvancedMachineFeatures) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AliasIpRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AliasIpRange.java deleted file mode 100644 index 240639203c0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AliasIpRange.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * An alias IP range attached to an instance's network interface. - * - *

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 AliasIpRange extends com.google.api.client.json.GenericJson { - - /** - * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the - * specified subnetwork and cannot contain IP addresses reserved by system or used by other - * network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such - * as/24) or a CIDR-formatted string (such as10.1.2.0/24). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not - * specified, the primary range of the subnetwork is used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetworkRangeName; - - /** - * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the - * specified subnetwork and cannot contain IP addresses reserved by system or used by other - * network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such - * as/24) or a CIDR-formatted string (such as10.1.2.0/24). - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the - * specified subnetwork and cannot contain IP addresses reserved by system or used by other - * network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such - * as/24) or a CIDR-formatted string (such as10.1.2.0/24). - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public AliasIpRange setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not - * specified, the primary range of the subnetwork is used. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetworkRangeName() { - return subnetworkRangeName; - } - - /** - * The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not - * specified, the primary range of the subnetwork is used. - * @param subnetworkRangeName subnetworkRangeName or {@code null} for none - */ - public AliasIpRange setSubnetworkRangeName(java.lang.String subnetworkRangeName) { - this.subnetworkRangeName = subnetworkRangeName; - return this; - } - - @Override - public AliasIpRange set(String fieldName, Object value) { - return (AliasIpRange) super.set(fieldName, value); - } - - @Override - public AliasIpRange clone() { - return (AliasIpRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservation.java deleted file mode 100644 index a2fcb958f52..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservation.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * 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.preview.model; - -/** - * This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can - * account for multiple instance SKUs. In other words, one can create instances of varying shapes - * against this reservation. - * - *

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 AllocationAggregateReservation extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] List of resources currently in use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List inUseResources; - - /** - * List of reserved resources (CPUs, memory, accelerators). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List reservedResources; - - /** - * The VM family that all instances scheduled against this reservation must belong to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vmFamily; - - /** - * The workload type of the instances that will target this reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String workloadType; - - /** - * Output only. [Output only] List of resources currently in use. - * @return value or {@code null} for none - */ - public java.util.List getInUseResources() { - return inUseResources; - } - - /** - * Output only. [Output only] List of resources currently in use. - * @param inUseResources inUseResources or {@code null} for none - */ - public AllocationAggregateReservation setInUseResources(java.util.List inUseResources) { - this.inUseResources = inUseResources; - return this; - } - - /** - * List of reserved resources (CPUs, memory, accelerators). - * @return value or {@code null} for none - */ - public java.util.List getReservedResources() { - return reservedResources; - } - - /** - * List of reserved resources (CPUs, memory, accelerators). - * @param reservedResources reservedResources or {@code null} for none - */ - public AllocationAggregateReservation setReservedResources(java.util.List reservedResources) { - this.reservedResources = reservedResources; - return this; - } - - /** - * The VM family that all instances scheduled against this reservation must belong to. - * @return value or {@code null} for none - */ - public java.lang.String getVmFamily() { - return vmFamily; - } - - /** - * The VM family that all instances scheduled against this reservation must belong to. - * @param vmFamily vmFamily or {@code null} for none - */ - public AllocationAggregateReservation setVmFamily(java.lang.String vmFamily) { - this.vmFamily = vmFamily; - return this; - } - - /** - * The workload type of the instances that will target this reservation. - * @return value or {@code null} for none - */ - public java.lang.String getWorkloadType() { - return workloadType; - } - - /** - * The workload type of the instances that will target this reservation. - * @param workloadType workloadType or {@code null} for none - */ - public AllocationAggregateReservation setWorkloadType(java.lang.String workloadType) { - this.workloadType = workloadType; - return this; - } - - @Override - public AllocationAggregateReservation set(String fieldName, Object value) { - return (AllocationAggregateReservation) super.set(fieldName, value); - } - - @Override - public AllocationAggregateReservation clone() { - return (AllocationAggregateReservation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java deleted file mode 100644 index b258a864c4f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationAggregateReservationReservedResourceInfoAccelerator.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AllocationAggregateReservationReservedResourceInfoAccelerator. - * - *

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 AllocationAggregateReservationReservedResourceInfoAccelerator extends com.google.api.client.json.GenericJson { - - /** - * Number of accelerators of specified type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer acceleratorCount; - - /** - * Full or partial URL to accelerator type. e.g. - * "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorType; - - /** - * Number of accelerators of specified type. - * @return value or {@code null} for none - */ - public java.lang.Integer getAcceleratorCount() { - return acceleratorCount; - } - - /** - * Number of accelerators of specified type. - * @param acceleratorCount acceleratorCount or {@code null} for none - */ - public AllocationAggregateReservationReservedResourceInfoAccelerator setAcceleratorCount(java.lang.Integer acceleratorCount) { - this.acceleratorCount = acceleratorCount; - return this; - } - - /** - * Full or partial URL to accelerator type. e.g. - * "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorType() { - return acceleratorType; - } - - /** - * Full or partial URL to accelerator type. e.g. - * "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" - * @param acceleratorType acceleratorType or {@code null} for none - */ - public AllocationAggregateReservationReservedResourceInfoAccelerator setAcceleratorType(java.lang.String acceleratorType) { - this.acceleratorType = acceleratorType; - return this; - } - - @Override - public AllocationAggregateReservationReservedResourceInfoAccelerator set(String fieldName, Object value) { - return (AllocationAggregateReservationReservedResourceInfoAccelerator) super.set(fieldName, value); - } - - @Override - public AllocationAggregateReservationReservedResourceInfoAccelerator clone() { - return (AllocationAggregateReservationReservedResourceInfoAccelerator) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationReservationSharingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationReservationSharingPolicy.java deleted file mode 100644 index 66bb98e5394..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationReservationSharingPolicy.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AllocationReservationSharingPolicy. - * - *

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 AllocationReservationSharingPolicy extends com.google.api.client.json.GenericJson { - - /** - * Sharing config for all Google Cloud services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceShareType; - - /** - * Sharing config for all Google Cloud services. - * @return value or {@code null} for none - */ - public java.lang.String getServiceShareType() { - return serviceShareType; - } - - /** - * Sharing config for all Google Cloud services. - * @param serviceShareType serviceShareType or {@code null} for none - */ - public AllocationReservationSharingPolicy setServiceShareType(java.lang.String serviceShareType) { - this.serviceShareType = serviceShareType; - return this; - } - - @Override - public AllocationReservationSharingPolicy set(String fieldName, Object value) { - return (AllocationReservationSharingPolicy) super.set(fieldName, value); - } - - @Override - public AllocationReservationSharingPolicy clone() { - return (AllocationReservationSharingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatus.java deleted file mode 100644 index a89ef13ade7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatus.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Contains output only fields. - * - *

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 AllocationResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output only] Health information for the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationResourceStatusHealthInfo healthInfo; - - /** - * The number of reservation blocks associated with this reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer reservationBlockCount; - - /** - * Maintenance information for this reservation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GroupMaintenanceInfo reservationMaintenance; - - /** - * Allocation Properties of this reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationResourceStatusSpecificSKUAllocation specificSkuAllocation; - - /** - * [Output only] Health information for the reservation. - * @return value or {@code null} for none - */ - public AllocationResourceStatusHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * [Output only] Health information for the reservation. - * @param healthInfo healthInfo or {@code null} for none - */ - public AllocationResourceStatus setHealthInfo(AllocationResourceStatusHealthInfo healthInfo) { - this.healthInfo = healthInfo; - return this; - } - - /** - * The number of reservation blocks associated with this reservation. - * @return value or {@code null} for none - */ - public java.lang.Integer getReservationBlockCount() { - return reservationBlockCount; - } - - /** - * The number of reservation blocks associated with this reservation. - * @param reservationBlockCount reservationBlockCount or {@code null} for none - */ - public AllocationResourceStatus setReservationBlockCount(java.lang.Integer reservationBlockCount) { - this.reservationBlockCount = reservationBlockCount; - return this; - } - - /** - * Maintenance information for this reservation - * @return value or {@code null} for none - */ - public GroupMaintenanceInfo getReservationMaintenance() { - return reservationMaintenance; - } - - /** - * Maintenance information for this reservation - * @param reservationMaintenance reservationMaintenance or {@code null} for none - */ - public AllocationResourceStatus setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { - this.reservationMaintenance = reservationMaintenance; - return this; - } - - /** - * Allocation Properties of this reservation. - * @return value or {@code null} for none - */ - public AllocationResourceStatusSpecificSKUAllocation getSpecificSkuAllocation() { - return specificSkuAllocation; - } - - /** - * Allocation Properties of this reservation. - * @param specificSkuAllocation specificSkuAllocation or {@code null} for none - */ - public AllocationResourceStatus setSpecificSkuAllocation(AllocationResourceStatusSpecificSKUAllocation specificSkuAllocation) { - this.specificSkuAllocation = specificSkuAllocation; - return this; - } - - @Override - public AllocationResourceStatus set(String fieldName, Object value) { - return (AllocationResourceStatus) super.set(fieldName, value); - } - - @Override - public AllocationResourceStatus clone() { - return (AllocationResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusHealthInfo.java deleted file mode 100644 index 5be43a1eacc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusHealthInfo.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Health information for the reservation. - * - *

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 AllocationResourceStatusHealthInfo extends com.google.api.client.json.GenericJson { - - /** - * The number of reservation blocks that are degraded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer degradedBlockCount; - - /** - * The health status of the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatus; - - /** - * The number of reservation blocks that are healthy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyBlockCount; - - /** - * The number of reservation blocks that are degraded. - * @return value or {@code null} for none - */ - public java.lang.Integer getDegradedBlockCount() { - return degradedBlockCount; - } - - /** - * The number of reservation blocks that are degraded. - * @param degradedBlockCount degradedBlockCount or {@code null} for none - */ - public AllocationResourceStatusHealthInfo setDegradedBlockCount(java.lang.Integer degradedBlockCount) { - this.degradedBlockCount = degradedBlockCount; - return this; - } - - /** - * The health status of the reservation. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatus() { - return healthStatus; - } - - /** - * The health status of the reservation. - * @param healthStatus healthStatus or {@code null} for none - */ - public AllocationResourceStatusHealthInfo setHealthStatus(java.lang.String healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * The number of reservation blocks that are healthy. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyBlockCount() { - return healthyBlockCount; - } - - /** - * The number of reservation blocks that are healthy. - * @param healthyBlockCount healthyBlockCount or {@code null} for none - */ - public AllocationResourceStatusHealthInfo setHealthyBlockCount(java.lang.Integer healthyBlockCount) { - this.healthyBlockCount = healthyBlockCount; - return this; - } - - @Override - public AllocationResourceStatusHealthInfo set(String fieldName, Object value) { - return (AllocationResourceStatusHealthInfo) super.set(fieldName, value); - } - - @Override - public AllocationResourceStatusHealthInfo clone() { - return (AllocationResourceStatusHealthInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusSpecificSKUAllocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusSpecificSKUAllocation.java deleted file mode 100644 index 471b280d183..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationResourceStatusSpecificSKUAllocation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains Properties set for the reservation. - * - *

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 AllocationResourceStatusSpecificSKUAllocation extends com.google.api.client.json.GenericJson { - - /** - * ID of the instance template used to populate reservation properties. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplateId; - - /** - * Per service utilization breakdown. The Key is the Google Cloud managed service name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.util.Map utilizations; - - /** - * ID of the instance template used to populate reservation properties. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstanceTemplateId() { - return sourceInstanceTemplateId; - } - - /** - * ID of the instance template used to populate reservation properties. - * @param sourceInstanceTemplateId sourceInstanceTemplateId or {@code null} for none - */ - public AllocationResourceStatusSpecificSKUAllocation setSourceInstanceTemplateId(java.lang.String sourceInstanceTemplateId) { - this.sourceInstanceTemplateId = sourceInstanceTemplateId; - return this; - } - - /** - * Per service utilization breakdown. The Key is the Google Cloud managed service name. - * @return value or {@code null} for none - */ - public java.util.Map getUtilizations() { - return utilizations; - } - - /** - * Per service utilization breakdown. The Key is the Google Cloud managed service name. - * @param utilizations utilizations or {@code null} for none - */ - public AllocationResourceStatusSpecificSKUAllocation setUtilizations(java.util.Map utilizations) { - this.utilizations = utilizations; - return this; - } - - @Override - public AllocationResourceStatusSpecificSKUAllocation set(String fieldName, Object value) { - return (AllocationResourceStatusSpecificSKUAllocation) super.set(fieldName, value); - } - - @Override - public AllocationResourceStatusSpecificSKUAllocation clone() { - return (AllocationResourceStatusSpecificSKUAllocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java deleted file mode 100644 index 930a40dd86f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk. - * - *

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 AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk extends com.google.api.client.json.GenericJson { - - /** - * Specifies the size of the disk in base-2 GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The - * default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("interface") - private java.lang.String interface__; - - /** - * Specifies the size of the disk in base-2 GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * Specifies the size of the disk in base-2 GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The - * default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance. - * @return value or {@code null} for none - */ - public java.lang.String getInterface() { - return interface__; - } - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The - * default isSCSI. For performance characteristics of SCSI over NVMe, seeLocal SSD performance. - * @param interface__ interface__ or {@code null} for none - */ - public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk setInterface(java.lang.String interface__) { - this.interface__ = interface__; - return this; - } - - @Override - public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk set(String fieldName, Object value) { - return (AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) super.set(fieldName, value); - } - - @Override - public AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk clone() { - return (AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java deleted file mode 100644 index 15b7ca7c128..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * 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.preview.model; - -/** - * Properties of the SKU instances being reserved. Next ID: 10 - * - *

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 AllocationSpecificSKUAllocationReservedInstanceProperties extends com.google.api.client.json.GenericJson { - - /** - * Specifies accelerator type and count. - * 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); - } - - /** - * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List localSsds; - - static { - // hack to force ProGuard to consider AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk 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(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk.class); - } - - /** - * An opaque location hint used to place the allocation close to other resources. This field is - * for use by internal tools that use the public API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationHint; - - /** - * Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of - * memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS- - * AMOUNT_OF_MEMORY pattern. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * Minimum cpu platform the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minCpuPlatform; - - /** - * Specifies accelerator type and count. - * @return value or {@code null} for none - */ - public java.util.List getGuestAccelerators() { - return guestAccelerators; - } - - /** - * Specifies accelerator type and count. - * @param guestAccelerators guestAccelerators or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { - this.guestAccelerators = guestAccelerators; - return this; - } - - /** - * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. - * @return value or {@code null} for none - */ - public java.util.List getLocalSsds() { - return localSsds; - } - - /** - * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. - * @param localSsds localSsds or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties setLocalSsds(java.util.List localSsds) { - this.localSsds = localSsds; - return this; - } - - /** - * An opaque location hint used to place the allocation close to other resources. This field is - * for use by internal tools that use the public API. - * @return value or {@code null} for none - */ - public java.lang.String getLocationHint() { - return locationHint; - } - - /** - * An opaque location hint used to place the allocation close to other resources. This field is - * for use by internal tools that use the public API. - * @param locationHint locationHint or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties setLocationHint(java.lang.String locationHint) { - this.locationHint = locationHint; - return this; - } - - /** - * Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of - * memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS- - * AMOUNT_OF_MEMORY pattern. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of - * memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS- - * AMOUNT_OF_MEMORY pattern. - * @param machineType machineType or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * Minimum cpu platform the reservation. - * @return value or {@code null} for none - */ - public java.lang.String getMinCpuPlatform() { - return minCpuPlatform; - } - - /** - * Minimum cpu platform the reservation. - * @param minCpuPlatform minCpuPlatform or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties setMinCpuPlatform(java.lang.String minCpuPlatform) { - this.minCpuPlatform = minCpuPlatform; - return this; - } - - @Override - public AllocationSpecificSKUAllocationReservedInstanceProperties set(String fieldName, Object value) { - return (AllocationSpecificSKUAllocationReservedInstanceProperties) super.set(fieldName, value); - } - - @Override - public AllocationSpecificSKUAllocationReservedInstanceProperties clone() { - return (AllocationSpecificSKUAllocationReservedInstanceProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUReservation.java deleted file mode 100644 index 003d4beaa67..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AllocationSpecificSKUReservation.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * 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.preview.model; - -/** - * This reservation type allows to pre allocate specific instance configuration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long assuredCount; - - /** - * Specifies the number of resources that are allocated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long count; - - /** - * Output only. [Output Only] Indicates how many instances are in use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long inUseCount; - - /** - * The instance properties for the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties; - - /** - * Specifies the instance template to create the reservation. If you use this field, you must - * exclude the instanceProperties field. - * - * This field is optional, and it can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - https://www.googleapis.com/compute/v1/proj - * ects/project/global/instanceTemplates/instanceTemplate - - * projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplate; - - /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. - * @return value or {@code null} for none - */ - public java.lang.Long getAssuredCount() { - return assuredCount; - } - - /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. - * @param assuredCount assuredCount or {@code null} for none - */ - public AllocationSpecificSKUReservation setAssuredCount(java.lang.Long assuredCount) { - this.assuredCount = assuredCount; - return this; - } - - /** - * Specifies the number of resources that are allocated. - * @return value or {@code null} for none - */ - public java.lang.Long getCount() { - return count; - } - - /** - * Specifies the number of resources that are allocated. - * @param count count or {@code null} for none - */ - public AllocationSpecificSKUReservation setCount(java.lang.Long count) { - this.count = count; - return this; - } - - /** - * Output only. [Output Only] Indicates how many instances are in use. - * @return value or {@code null} for none - */ - public java.lang.Long getInUseCount() { - return inUseCount; - } - - /** - * Output only. [Output Only] Indicates how many instances are in use. - * @param inUseCount inUseCount or {@code null} for none - */ - public AllocationSpecificSKUReservation setInUseCount(java.lang.Long inUseCount) { - this.inUseCount = inUseCount; - return this; - } - - /** - * The instance properties for the reservation. - * @return value or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties() { - return instanceProperties; - } - - /** - * The instance properties for the reservation. - * @param instanceProperties instanceProperties or {@code null} for none - */ - public AllocationSpecificSKUReservation setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties) { - this.instanceProperties = instanceProperties; - return this; - } - - /** - * Specifies the instance template to create the reservation. If you use this field, you must - * exclude the instanceProperties field. - * - * This field is optional, and it can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - https://www.googleapis.com/compute/v1/proj - * ects/project/global/instanceTemplates/instanceTemplate - - * projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstanceTemplate() { - return sourceInstanceTemplate; - } - - /** - * Specifies the instance template to create the reservation. If you use this field, you must - * exclude the instanceProperties field. - * - * This field is optional, and it can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - https://www.googleapis.com/compute/v1/proj - * ects/project/global/instanceTemplates/instanceTemplate - - * projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - * @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none - */ - public AllocationSpecificSKUReservation setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { - this.sourceInstanceTemplate = sourceInstanceTemplate; - return this; - } - - @Override - public AllocationSpecificSKUReservation set(String fieldName, Object value) { - return (AllocationSpecificSKUReservation) super.set(fieldName, value); - } - - @Override - public AllocationSpecificSKUReservation clone() { - return (AllocationSpecificSKUReservation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDisk.java deleted file mode 100644 index 21ea9bfd41a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDisk.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * 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.preview.model; - -/** - * An instance-attached disk 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 AttachedDisk extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoDelete; - - /** - * Indicates that this is a boot disk. The virtual machine will use the first partition of the - * disk for its root filesystem. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean boot; - - /** - * Specifies a unique device name of your choice that is reflected into the/dev/disk/by- - * id/google-* tree of a Linux operating system running within the instance. This name can be used - * to reference the device for mounting, resizing, and so on, from within the instance. - * - * If not specified, the server chooses a default device name to apply to this disk, in the form - * persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only - * applicable for persistent disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deviceName; - - /** - * Encrypts or decrypts a disk using acustomer-supplied encryption key. - * - * If you are creating a new disk, this field encrypts the new disk using an encryption key that - * you provide. If you are attaching an existing disk that is already encrypted, this field - * decrypts the disk using the customer-supplied encryption key. - * - * If you encrypt a disk using a customer-supplied key, you must provide the same key again when - * you attempt to use this resource at a later time. For example, you must provide the key when - * you create a snapshot or an image from the disk or when you attach the disk to a virtual - * machine instance. - * - * If you do not provide an encryption key, then the disk will be encrypted using an automatically - * generated key and you do not need to provide a key to use the disk later. - * - * Note: - * - * Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own - * keys to encrypt disks in amanaged instance group. - * - * You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey diskEncryptionKey; - - /** - * The size of the disk in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * [Input Only] Whether to force attach the regional disk even if it's currently attached to - * another instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceAttach; - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List guestOsFeatures; - - /** - * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot - * disk. If you have many disks attached to an instance, each disk would have a unique index - * number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer index; - - /** - * [Input Only] Specifies the parameters for a new disk that will be created alongside the new - * instance. Use initialization parameters to create boot disks or local SSDs attached to the new - * instance. - * - * This property is mutually exclusive with the source property; you can only define one or the - * other, but not both. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AttachedDiskInitializeParams initializeParams; - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For - * most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain - * configurations, persistent disks can use NVMe. For more information, seeAbout persistent disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("interface") - private java.lang.String interface__; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Any valid publicly visible licenses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenses; - - /** - * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the - * default is to attach the disk in READ_WRITE mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is - * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer - * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String savedState; - - /** - * Output only. [Output Only] shielded vm initial state stored on disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InitialStateConfig shieldedInstanceInitialState; - - /** - * Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a - * new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or - * disks.source is required. - * - * If desired, you can also attach existing non-root persistent disks using this property. This - * field is only applicable for persistent disks. - * - * Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional - * disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default - * isPERSISTENT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. - * @param architecture architecture or {@code null} for none - */ - public AttachedDisk setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoDelete() { - return autoDelete; - } - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * @param autoDelete autoDelete or {@code null} for none - */ - public AttachedDisk setAutoDelete(java.lang.Boolean autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - /** - * Indicates that this is a boot disk. The virtual machine will use the first partition of the - * disk for its root filesystem. - * @return value or {@code null} for none - */ - public java.lang.Boolean getBoot() { - return boot; - } - - /** - * Indicates that this is a boot disk. The virtual machine will use the first partition of the - * disk for its root filesystem. - * @param boot boot or {@code null} for none - */ - public AttachedDisk setBoot(java.lang.Boolean boot) { - this.boot = boot; - return this; - } - - /** - * Specifies a unique device name of your choice that is reflected into the/dev/disk/by- - * id/google-* tree of a Linux operating system running within the instance. This name can be used - * to reference the device for mounting, resizing, and so on, from within the instance. - * - * If not specified, the server chooses a default device name to apply to this disk, in the form - * persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only - * applicable for persistent disks. - * @return value or {@code null} for none - */ - public java.lang.String getDeviceName() { - return deviceName; - } - - /** - * Specifies a unique device name of your choice that is reflected into the/dev/disk/by- - * id/google-* tree of a Linux operating system running within the instance. This name can be used - * to reference the device for mounting, resizing, and so on, from within the instance. - * - * If not specified, the server chooses a default device name to apply to this disk, in the form - * persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only - * applicable for persistent disks. - * @param deviceName deviceName or {@code null} for none - */ - public AttachedDisk setDeviceName(java.lang.String deviceName) { - this.deviceName = deviceName; - return this; - } - - /** - * Encrypts or decrypts a disk using acustomer-supplied encryption key. - * - * If you are creating a new disk, this field encrypts the new disk using an encryption key that - * you provide. If you are attaching an existing disk that is already encrypted, this field - * decrypts the disk using the customer-supplied encryption key. - * - * If you encrypt a disk using a customer-supplied key, you must provide the same key again when - * you attempt to use this resource at a later time. For example, you must provide the key when - * you create a snapshot or an image from the disk or when you attach the disk to a virtual - * machine instance. - * - * If you do not provide an encryption key, then the disk will be encrypted using an automatically - * generated key and you do not need to provide a key to use the disk later. - * - * Note: - * - * Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own - * keys to encrypt disks in amanaged instance group. - * - * You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getDiskEncryptionKey() { - return diskEncryptionKey; - } - - /** - * Encrypts or decrypts a disk using acustomer-supplied encryption key. - * - * If you are creating a new disk, this field encrypts the new disk using an encryption key that - * you provide. If you are attaching an existing disk that is already encrypted, this field - * decrypts the disk using the customer-supplied encryption key. - * - * If you encrypt a disk using a customer-supplied key, you must provide the same key again when - * you attempt to use this resource at a later time. For example, you must provide the key when - * you create a snapshot or an image from the disk or when you attach the disk to a virtual - * machine instance. - * - * If you do not provide an encryption key, then the disk will be encrypted using an automatically - * generated key and you do not need to provide a key to use the disk later. - * - * Note: - * - * Instance templates do not storecustomer-supplied encryption keys, so you cannot use your own - * keys to encrypt disks in amanaged instance group. - * - * You cannot create VMs that have disks with customer-supplied keys using the bulk insert method. - * @param diskEncryptionKey diskEncryptionKey or {@code null} for none - */ - public AttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { - this.diskEncryptionKey = diskEncryptionKey; - return this; - } - - /** - * The size of the disk in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * The size of the disk in GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public AttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * [Input Only] Whether to force attach the regional disk even if it's currently attached to - * another instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - * @return value or {@code null} for none - */ - public java.lang.Boolean getForceAttach() { - return forceAttach; - } - - /** - * [Input Only] Whether to force attach the regional disk even if it's currently attached to - * another instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - * @param forceAttach forceAttach or {@code null} for none - */ - public AttachedDisk setForceAttach(java.lang.Boolean forceAttach) { - this.forceAttach = forceAttach; - return this; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * @return value or {@code null} for none - */ - public java.util.List getGuestOsFeatures() { - return guestOsFeatures; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * @param guestOsFeatures guestOsFeatures or {@code null} for none - */ - public AttachedDisk setGuestOsFeatures(java.util.List guestOsFeatures) { - this.guestOsFeatures = guestOsFeatures; - return this; - } - - /** - * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot - * disk. If you have many disks attached to an instance, each disk would have a unique index - * number. - * @return value or {@code null} for none - */ - public java.lang.Integer getIndex() { - return index; - } - - /** - * Output only. [Output Only] A zero-based index to this disk, where 0 is reserved for the boot - * disk. If you have many disks attached to an instance, each disk would have a unique index - * number. - * @param index index or {@code null} for none - */ - public AttachedDisk setIndex(java.lang.Integer index) { - this.index = index; - return this; - } - - /** - * [Input Only] Specifies the parameters for a new disk that will be created alongside the new - * instance. Use initialization parameters to create boot disks or local SSDs attached to the new - * instance. - * - * This property is mutually exclusive with the source property; you can only define one or the - * other, but not both. - * @return value or {@code null} for none - */ - public AttachedDiskInitializeParams getInitializeParams() { - return initializeParams; - } - - /** - * [Input Only] Specifies the parameters for a new disk that will be created alongside the new - * instance. Use initialization parameters to create boot disks or local SSDs attached to the new - * instance. - * - * This property is mutually exclusive with the source property; you can only define one or the - * other, but not both. - * @param initializeParams initializeParams or {@code null} for none - */ - public AttachedDisk setInitializeParams(AttachedDiskInitializeParams initializeParams) { - this.initializeParams = initializeParams; - return this; - } - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For - * most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain - * configurations, persistent disks can use NVMe. For more information, seeAbout persistent disks. - * @return value or {@code null} for none - */ - public java.lang.String getInterface() { - return interface__; - } - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For - * most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In certain - * configurations, persistent disks can use NVMe. For more information, seeAbout persistent disks. - * @param interface__ interface__ or {@code null} for none - */ - public AttachedDisk setInterface(java.lang.String interface__) { - this.interface__ = interface__; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. - * @param kind kind or {@code null} for none - */ - public AttachedDisk setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Any valid publicly visible licenses. - * @return value or {@code null} for none - */ - public java.util.List getLicenses() { - return licenses; - } - - /** - * Output only. [Output Only] Any valid publicly visible licenses. - * @param licenses licenses or {@code null} for none - */ - public AttachedDisk setLicenses(java.util.List licenses) { - this.licenses = licenses; - return this; - } - - /** - * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the - * default is to attach the disk in READ_WRITE mode. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the - * default is to attach the disk in READ_WRITE mode. - * @param mode mode or {@code null} for none - */ - public AttachedDisk setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is - * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer - * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. - * @return value or {@code null} for none - */ - public java.lang.String getSavedState() { - return savedState; - } - - /** - * Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field is - * set to PRESERVED if the LocalSSD data has been saved to a persistent location by customer - * request. (see the discard_local_ssd option on Stop/Suspend). Read-only in the api. - * @param savedState savedState or {@code null} for none - */ - public AttachedDisk setSavedState(java.lang.String savedState) { - this.savedState = savedState; - return this; - } - - /** - * Output only. [Output Only] shielded vm initial state stored on disk - * @return value or {@code null} for none - */ - public InitialStateConfig getShieldedInstanceInitialState() { - return shieldedInstanceInitialState; - } - - /** - * Output only. [Output Only] shielded vm initial state stored on disk - * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none - */ - public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { - this.shieldedInstanceInitialState = shieldedInstanceInitialState; - return this; - } - - /** - * Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a - * new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or - * disks.source is required. - * - * If desired, you can also attach existing non-root persistent disks using this property. This - * field is only applicable for persistent disks. - * - * Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional - * disk. - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a - * new instance boot disk, one ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or - * disks.source is required. - * - * If desired, you can also attach existing non-root persistent disks using this property. This - * field is only applicable for persistent disks. - * - * Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional - * disk. - * @param source source or {@code null} for none - */ - public AttachedDisk setSource(java.lang.String source) { - this.source = source; - return this; - } - - /** - * Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default - * isPERSISTENT. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Specifies the type of the disk, either SCRATCH orPERSISTENT. If not specified, the default - * isPERSISTENT. - * @param type type or {@code null} for none - */ - public AttachedDisk setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public AttachedDisk set(String fieldName, Object value) { - return (AttachedDisk) super.set(fieldName, value); - } - - @Override - public AttachedDisk clone() { - return (AttachedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDiskInitializeParams.java deleted file mode 100644 index 87258bc7e2b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AttachedDiskInitializeParams.java +++ /dev/null @@ -1,749 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Input Only] Specifies the parameters for a new disk that will be created alongside the new - * instance. Use initialization parameters to create boot disks or local SSDs attached to the new - * instance. - * - * This field is persisted and returned for instanceTemplate and not returned in the context of - * instance. - * - * This property is mutually exclusive with the source property; you can only define one or the - * other, but not both. - * - *

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 AttachedDiskInitializeParams extends com.google.api.client.json.GenericJson { - - /** - * The architecture of the attached disk. Valid values are arm64 or x86_64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * An optional description. Provide this property when creating the disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Specifies the disk name. If not specified, the default is to use the name of the instance. If a - * disk with the same name already exists in the given region, the existing disk is attached to - * the new instance and the new disk is not created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diskName; - - /** - * Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a - * sourceImage, which is required for boot disks, the default size is the size of the sourceImage. - * If you do not specify a sourceImage, the default disk size is 500 GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type - * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. - * - * When creating a single instance, you must provide either the full or partial URL of the disk - * type. For example, the following values are valid: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - - * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType - * - * When creating an instance template, instance flexibility policy, or when creating or updating - * an all-instances configuration, you specify the disk type without a URL, for example, - * hyperdisk-balanced. - * - * If you omit this field for a disk, the default disk type depends on the instance's machine - * series, as follows. - For first- and second-generation machine series like N1, N2, - * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). - * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For - * other third-generation machine series like A3, H3, Z3, all fourth-generation types - * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced - * (hyperdisk-balanced). - * - * The disk type you specify must be compatible with the instance's machine series. For a list of - * machine series that support Persistent Disk, see Machine series support for Persistent Disk. - * - * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diskType; - - /** - * Whether this disk is using confidential compute mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableConfidentialCompute; - - /** - * Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This - * field is only applicable for persistent disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * A list of publicly visible licenses. Reserved for Google's use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenses; - - /** - * Specifies which action to take on instance update with this disk. Default is to use the - * existing disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String onUpdateAction; - - /** - * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per - * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - * see theExtreme persistent disk documentation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedIops; - - /** - * Indicates how much throughput to provision for the disk. This sets the number of throughput mb - * per second that the disk can handle. Values must greater than or equal to 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedThroughput; - - /** - * Required for each regional disk associated with the instance. Specify the URLs of the zones - * where the disk should be replicated to. You must provide exactly two replica zones, and one - * zone must be the same as the instance zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List replicaZones; - - /** - * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Resource policies applied to this disk for automatic snapshot creations. Specified using the - * full or partial URL. For instance template, specify only the resource policy name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * The source image to create this disk. When creating a new instance boot disk, one of - * initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. - * - * To create a disk with one of the public operating system images, specify the image by its - * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: - * - * projects/debian-cloud/global/images/family/debian-9 - * - * Alternatively, use a specific version of a public operating system image: - * - * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - * - * To create a disk with a custom image that you created, specify the image name in the following - * format: - * - * global/images/my-custom-image - * - * You can also specify a custom image by its image family, which returns the latest version of - * the image in that family. Replace the image name with family/family-name: - * - * global/images/family/my-image-family - * - * If the source image is deleted later, this field will not be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceImage; - - /** - * Thecustomer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * - * InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied encryption keys, so - * you cannot create disks for instances in a managed instance group if the source images are - * encrypted with your own keys. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceImageEncryptionKey; - - /** - * The source snapshot to create this disk. When creating a new instance boot disk, one of - * initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source is required. - * - * To create a disk with a snapshot that you created, specify the snapshot name in the following - * format: - * - * global/snapshots/my-backup - * - * If the source snapshot is deleted later, this field will not be set. - * - * Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when - * you create VMs using the bulk insert method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshot; - - /** - * Thecustomer-supplied encryption key of the source snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceSnapshotEncryptionKey; - - /** - * The storage pool in which the new disk is created. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool - * - projects/project/zones/zone/storagePools/storagePool - - * zones/zone/storagePools/storagePool - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** - * The architecture of the attached disk. Valid values are arm64 or x86_64. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * The architecture of the attached disk. Valid values are arm64 or x86_64. - * @param architecture architecture or {@code null} for none - */ - public AttachedDiskInitializeParams setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * An optional description. Provide this property when creating the disk. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description. Provide this property when creating the disk. - * @param description description or {@code null} for none - */ - public AttachedDiskInitializeParams setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Specifies the disk name. If not specified, the default is to use the name of the instance. If a - * disk with the same name already exists in the given region, the existing disk is attached to - * the new instance and the new disk is not created. - * @return value or {@code null} for none - */ - public java.lang.String getDiskName() { - return diskName; - } - - /** - * Specifies the disk name. If not specified, the default is to use the name of the instance. If a - * disk with the same name already exists in the given region, the existing disk is attached to - * the new instance and the new disk is not created. - * @param diskName diskName or {@code null} for none - */ - public AttachedDiskInitializeParams setDiskName(java.lang.String diskName) { - this.diskName = diskName; - return this; - } - - /** - * Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a - * sourceImage, which is required for boot disks, the default size is the size of the sourceImage. - * If you do not specify a sourceImage, the default disk size is 500 GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a - * sourceImage, which is required for boot disks, the default size is the size of the sourceImage. - * If you do not specify a sourceImage, the default disk size is 500 GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public AttachedDiskInitializeParams setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type - * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. - * - * When creating a single instance, you must provide either the full or partial URL of the disk - * type. For example, the following values are valid: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - - * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType - * - * When creating an instance template, instance flexibility policy, or when creating or updating - * an all-instances configuration, you specify the disk type without a URL, for example, - * hyperdisk-balanced. - * - * If you omit this field for a disk, the default disk type depends on the instance's machine - * series, as follows. - For first- and second-generation machine series like N1, N2, - * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). - * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For - * other third-generation machine series like A3, H3, Z3, all fourth-generation types - * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced - * (hyperdisk-balanced). - * - * The disk type you specify must be compatible with the instance's machine series. For a list of - * machine series that support Persistent Disk, see Machine series support for Persistent Disk. - * - * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. - * @return value or {@code null} for none - */ - public java.lang.String getDiskType() { - return diskType; - } - - /** - * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type - * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. - * - * When creating a single instance, you must provide either the full or partial URL of the disk - * type. For example, the following values are valid: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - - * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType - * - * When creating an instance template, instance flexibility policy, or when creating or updating - * an all-instances configuration, you specify the disk type without a URL, for example, - * hyperdisk-balanced. - * - * If you omit this field for a disk, the default disk type depends on the instance's machine - * series, as follows. - For first- and second-generation machine series like N1, N2, - * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). - * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For - * other third-generation machine series like A3, H3, Z3, all fourth-generation types - * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced - * (hyperdisk-balanced). - * - * The disk type you specify must be compatible with the instance's machine series. For a list of - * machine series that support Persistent Disk, see Machine series support for Persistent Disk. - * - * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. - * @param diskType diskType or {@code null} for none - */ - public AttachedDiskInitializeParams setDiskType(java.lang.String diskType) { - this.diskType = diskType; - return this; - } - - /** - * Whether this disk is using confidential compute mode. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableConfidentialCompute() { - return enableConfidentialCompute; - } - - /** - * Whether this disk is using confidential compute mode. - * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none - */ - public AttachedDiskInitializeParams setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { - this.enableConfidentialCompute = enableConfidentialCompute; - return this; - } - - /** - * Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This - * field is only applicable for persistent disks. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this disk. These can be later modified by thedisks.setLabels method. This - * field is only applicable for persistent disks. - * @param labels labels or {@code null} for none - */ - public AttachedDiskInitializeParams setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * A list of publicly visible licenses. Reserved for Google's use. - * @return value or {@code null} for none - */ - public java.util.List getLicenses() { - return licenses; - } - - /** - * A list of publicly visible licenses. Reserved for Google's use. - * @param licenses licenses or {@code null} for none - */ - public AttachedDiskInitializeParams setLicenses(java.util.List licenses) { - this.licenses = licenses; - return this; - } - - /** - * Specifies which action to take on instance update with this disk. Default is to use the - * existing disk. - * @return value or {@code null} for none - */ - public java.lang.String getOnUpdateAction() { - return onUpdateAction; - } - - /** - * Specifies which action to take on instance update with this disk. Default is to use the - * existing disk. - * @param onUpdateAction onUpdateAction or {@code null} for none - */ - public AttachedDiskInitializeParams setOnUpdateAction(java.lang.String onUpdateAction) { - this.onUpdateAction = onUpdateAction; - return this; - } - - /** - * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per - * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - * see theExtreme persistent disk documentation. - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedIops() { - return provisionedIops; - } - - /** - * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per - * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - * see theExtreme persistent disk documentation. - * @param provisionedIops provisionedIops or {@code null} for none - */ - public AttachedDiskInitializeParams setProvisionedIops(java.lang.Long provisionedIops) { - this.provisionedIops = provisionedIops; - return this; - } - - /** - * Indicates how much throughput to provision for the disk. This sets the number of throughput mb - * per second that the disk can handle. Values must greater than or equal to 1. - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedThroughput() { - return provisionedThroughput; - } - - /** - * Indicates how much throughput to provision for the disk. This sets the number of throughput mb - * per second that the disk can handle. Values must greater than or equal to 1. - * @param provisionedThroughput provisionedThroughput or {@code null} for none - */ - public AttachedDiskInitializeParams setProvisionedThroughput(java.lang.Long provisionedThroughput) { - this.provisionedThroughput = provisionedThroughput; - return this; - } - - /** - * Required for each regional disk associated with the instance. Specify the URLs of the zones - * where the disk should be replicated to. You must provide exactly two replica zones, and one - * zone must be the same as the instance zone. - * @return value or {@code null} for none - */ - public java.util.List getReplicaZones() { - return replicaZones; - } - - /** - * Required for each regional disk associated with the instance. Specify the URLs of the zones - * where the disk should be replicated to. You must provide exactly two replica zones, and one - * zone must be the same as the instance zone. - * @param replicaZones replicaZones or {@code null} for none - */ - public AttachedDiskInitializeParams setReplicaZones(java.util.List replicaZones) { - this.replicaZones = replicaZones; - return this; - } - - /** - * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public AttachedDiskInitializeParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - /** - * Resource policies applied to this disk for automatic snapshot creations. Specified using the - * full or partial URL. For instance template, specify only the resource policy name. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies applied to this disk for automatic snapshot creations. Specified using the - * full or partial URL. For instance template, specify only the resource policy name. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public AttachedDiskInitializeParams setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * The source image to create this disk. When creating a new instance boot disk, one of - * initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. - * - * To create a disk with one of the public operating system images, specify the image by its - * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: - * - * projects/debian-cloud/global/images/family/debian-9 - * - * Alternatively, use a specific version of a public operating system image: - * - * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - * - * To create a disk with a custom image that you created, specify the image name in the following - * format: - * - * global/images/my-custom-image - * - * You can also specify a custom image by its image family, which returns the latest version of - * the image in that family. Replace the image name with family/family-name: - * - * global/images/family/my-image-family - * - * If the source image is deleted later, this field will not be set. - * @return value or {@code null} for none - */ - public java.lang.String getSourceImage() { - return sourceImage; - } - - /** - * The source image to create this disk. When creating a new instance boot disk, one of - * initializeParams.sourceImage orinitializeParams.sourceSnapshot or disks.source is required. - * - * To create a disk with one of the public operating system images, specify the image by its - * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: - * - * projects/debian-cloud/global/images/family/debian-9 - * - * Alternatively, use a specific version of a public operating system image: - * - * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - * - * To create a disk with a custom image that you created, specify the image name in the following - * format: - * - * global/images/my-custom-image - * - * You can also specify a custom image by its image family, which returns the latest version of - * the image in that family. Replace the image name with family/family-name: - * - * global/images/family/my-image-family - * - * If the source image is deleted later, this field will not be set. - * @param sourceImage sourceImage or {@code null} for none - */ - public AttachedDiskInitializeParams setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; - return this; - } - - /** - * Thecustomer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * - * InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied encryption keys, so - * you cannot create disks for instances in a managed instance group if the source images are - * encrypted with your own keys. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceImageEncryptionKey() { - return sourceImageEncryptionKey; - } - - /** - * Thecustomer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * - * InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied encryption keys, so - * you cannot create disks for instances in a managed instance group if the source images are - * encrypted with your own keys. - * @param sourceImageEncryptionKey sourceImageEncryptionKey or {@code null} for none - */ - public AttachedDiskInitializeParams setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey) { - this.sourceImageEncryptionKey = sourceImageEncryptionKey; - return this; - } - - /** - * The source snapshot to create this disk. When creating a new instance boot disk, one of - * initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source is required. - * - * To create a disk with a snapshot that you created, specify the snapshot name in the following - * format: - * - * global/snapshots/my-backup - * - * If the source snapshot is deleted later, this field will not be set. - * - * Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when - * you create VMs using the bulk insert method. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshot() { - return sourceSnapshot; - } - - /** - * The source snapshot to create this disk. When creating a new instance boot disk, one of - * initializeParams.sourceSnapshot orinitializeParams.sourceImage or disks.source is required. - * - * To create a disk with a snapshot that you created, specify the snapshot name in the following - * format: - * - * global/snapshots/my-backup - * - * If the source snapshot is deleted later, this field will not be set. - * - * Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when - * you create VMs using the bulk insert method. - * @param sourceSnapshot sourceSnapshot or {@code null} for none - */ - public AttachedDiskInitializeParams setSourceSnapshot(java.lang.String sourceSnapshot) { - this.sourceSnapshot = sourceSnapshot; - return this; - } - - /** - * Thecustomer-supplied encryption key of the source snapshot. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceSnapshotEncryptionKey() { - return sourceSnapshotEncryptionKey; - } - - /** - * Thecustomer-supplied encryption key of the source snapshot. - * @param sourceSnapshotEncryptionKey sourceSnapshotEncryptionKey or {@code null} for none - */ - public AttachedDiskInitializeParams setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey) { - this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey; - return this; - } - - /** - * The storage pool in which the new disk is created. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool - * - projects/project/zones/zone/storagePools/storagePool - - * zones/zone/storagePools/storagePool - * @return value or {@code null} for none - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** - * The storage pool in which the new disk is created. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool - * - projects/project/zones/zone/storagePools/storagePool - - * zones/zone/storagePools/storagePool - * @param storagePool storagePool or {@code null} for none - */ - public AttachedDiskInitializeParams setStoragePool(java.lang.String storagePool) { - this.storagePool = storagePool; - return this; - } - - @Override - public AttachedDiskInitializeParams set(String fieldName, Object value) { - return (AttachedDiskInitializeParams) super.set(fieldName, value); - } - - @Override - public AttachedDiskInitializeParams clone() { - return (AttachedDiskInitializeParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditConfig.java deleted file mode 100644 index ec743708c6e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditConfig.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies the audit configuration for a service. The configuration determines which permission - * types are logged, and what identities, if any, are exempted from logging. An AuditConfig must - * have one or more AuditLogConfigs. - * - * If there are AuditConfigs for both `allServices` and a specific service, the union of the two - * AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, - * and the exempted_members in each AuditLogConfig are exempted. - * - * Example Policy with multiple AuditConfigs: - * - * { "audit_configs": [ { "service": "allServices", - * "audit_log_configs": [ { "log_type": "DATA_READ", - * "exempted_members": [ "user:jose@example.com" ] }, - * { "log_type": "DATA_WRITE" }, { "log_type": - * "ADMIN_READ" } ] }, { "service": - * "sampleservice.googleapis.com", "audit_log_configs": [ { - * "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", - * "exempted_members": [ "user:aliya@example.com" ] } - * ] } ] } - * - * For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also - * exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE - * logging. - * - *

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 AuditConfig extends com.google.api.client.json.GenericJson { - - /** - * The configuration for logging of each type of permission. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List auditLogConfigs; - - /** - * Specifies a service that will be enabled for audit logging. For example, - * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that - * covers all services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * The configuration for logging of each type of permission. - * @return value or {@code null} for none - */ - public java.util.List getAuditLogConfigs() { - return auditLogConfigs; - } - - /** - * The configuration for logging of each type of permission. - * @param auditLogConfigs auditLogConfigs or {@code null} for none - */ - public AuditConfig setAuditLogConfigs(java.util.List auditLogConfigs) { - this.auditLogConfigs = auditLogConfigs; - return this; - } - - /** - * Specifies a service that will be enabled for audit logging. For example, - * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that - * covers all services. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * Specifies a service that will be enabled for audit logging. For example, - * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that - * covers all services. - * @param service service or {@code null} for none - */ - public AuditConfig setService(java.lang.String service) { - this.service = service; - return this; - } - - @Override - public AuditConfig set(String fieldName, Object value) { - return (AuditConfig) super.set(fieldName, value); - } - - @Override - public AuditConfig clone() { - return (AuditConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditLogConfig.java deleted file mode 100644 index 7df82ee99f6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AuditLogConfig.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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.preview.model; - -/** - * Provides the configuration for logging a type of permissions. Example: - * - * { "audit_log_configs": [ { "log_type": "DATA_READ", - * "exempted_members": [ "user:jose@example.com" ] }, { - * "log_type": "DATA_WRITE" } ] } - * - * This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from - * DATA_READ logging. - * - *

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 AuditLogConfig extends com.google.api.client.json.GenericJson { - - /** - * Specifies the identities that do not cause logging for this type of permission. Follows the - * same format of Binding.members. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List exemptedMembers; - - /** - * The log type that this config enables. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String logType; - - /** - * Specifies the identities that do not cause logging for this type of permission. Follows the - * same format of Binding.members. - * @return value or {@code null} for none - */ - public java.util.List getExemptedMembers() { - return exemptedMembers; - } - - /** - * Specifies the identities that do not cause logging for this type of permission. Follows the - * same format of Binding.members. - * @param exemptedMembers exemptedMembers or {@code null} for none - */ - public AuditLogConfig setExemptedMembers(java.util.List exemptedMembers) { - this.exemptedMembers = exemptedMembers; - return this; - } - - /** - * The log type that this config enables. - * @return value or {@code null} for none - */ - public java.lang.String getLogType() { - return logType; - } - - /** - * The log type that this config enables. - * @param logType logType or {@code null} for none - */ - public AuditLogConfig setLogType(java.lang.String logType) { - this.logType = logType; - return this; - } - - @Override - public AuditLogConfig set(String fieldName, Object value) { - return (AuditLogConfig) super.set(fieldName, value); - } - - @Override - public AuditLogConfig clone() { - return (AuditLogConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Autoscaler.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Autoscaler.java deleted file mode 100644 index 089de8257a6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Autoscaler.java +++ /dev/null @@ -1,462 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Autoscaler resource. - * - * Google Compute Engine has two Autoscaler resources: - * - * * [Zonal](/compute/docs/reference/rest/v1/autoscalers) * - * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) - * - * Use autoscalers to automatically add or delete instances from a managed instance group according - * to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. - * - * For zonal managed instance groups resource, use the autoscaler resource. - * - * For regional managed instance groups, use theregionAutoscalers 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 Autoscaler extends com.google.api.client.json.GenericJson { - - /** - * The configuration parameters for the autoscaling algorithm. You can define one or more signals - * for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. - * - * If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 - * or 60%. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AutoscalingPolicy autoscalingPolicy; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the 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; - - /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] Target recommended MIG size (number of instances) computed by - * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy - * mode is different from ON. This field is empty when autoscaler is not connected to an existing - * managed instance group or autoscaler did not generate its prediction. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer recommendedSize; - - /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] Status information of existing scaling schedules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map scalingScheduleStatus; - - /** - * [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] The status of the autoscaler configuration. Current set of possible values: - * - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: - * Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be - * effective. Some warnings might be present in the statusDetails field. - ERROR: - * Configuration has errors. Actionable for users. Details are present in the statusDetails - * field. - * - * New values might be added in the future. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * [Output Only] Human-readable details about the current state of the autoscaler. Read the - * documentation forCommonly returned status messages for examples of status messages you might - * encounter. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List statusDetails; - - /** - * URL of the managed instance group that this autoscaler will scale. This field is required when - * creating an autoscaler. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String target; - - /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * The configuration parameters for the autoscaling algorithm. You can define one or more signals - * for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. - * - * If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 - * or 60%. - * @return value or {@code null} for none - */ - public AutoscalingPolicy getAutoscalingPolicy() { - return autoscalingPolicy; - } - - /** - * The configuration parameters for the autoscaling algorithm. You can define one or more signals - * for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. - * - * If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 - * or 60%. - * @param autoscalingPolicy autoscalingPolicy or {@code null} for none - */ - public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { - this.autoscalingPolicy = autoscalingPolicy; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Autoscaler 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 Autoscaler setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. - * @param kind kind or {@code null} for none - */ - public Autoscaler setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 Autoscaler setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Target recommended MIG size (number of instances) computed by - * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy - * mode is different from ON. This field is empty when autoscaler is not connected to an existing - * managed instance group or autoscaler did not generate its prediction. - * @return value or {@code null} for none - */ - public java.lang.Integer getRecommendedSize() { - return recommendedSize; - } - - /** - * Output only. [Output Only] Target recommended MIG size (number of instances) computed by - * autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy - * mode is different from ON. This field is empty when autoscaler is not connected to an existing - * managed instance group or autoscaler did not generate its prediction. - * @param recommendedSize recommendedSize or {@code null} for none - */ - public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { - this.recommendedSize = recommendedSize; - return this; - } - - /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). - * @param region region or {@code null} for none - */ - public Autoscaler setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] Status information of existing scaling schedules. - * @return value or {@code null} for none - */ - public java.util.Map getScalingScheduleStatus() { - return scalingScheduleStatus; - } - - /** - * Output only. [Output Only] Status information of existing scaling schedules. - * @param scalingScheduleStatus scalingScheduleStatus or {@code null} for none - */ - public Autoscaler setScalingScheduleStatus(java.util.Map scalingScheduleStatus) { - this.scalingScheduleStatus = scalingScheduleStatus; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Autoscaler setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] The status of the autoscaler configuration. Current set of possible values: - * - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: - * Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be - * effective. Some warnings might be present in the statusDetails field. - ERROR: - * Configuration has errors. Actionable for users. Details are present in the statusDetails - * field. - * - * New values might be added in the future. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] The status of the autoscaler configuration. Current set of possible values: - * - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: - * Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be - * effective. Some warnings might be present in the statusDetails field. - ERROR: - * Configuration has errors. Actionable for users. Details are present in the statusDetails - * field. - * - * New values might be added in the future. - * @param status status or {@code null} for none - */ - public Autoscaler setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * [Output Only] Human-readable details about the current state of the autoscaler. Read the - * documentation forCommonly returned status messages for examples of status messages you might - * encounter. - * @return value or {@code null} for none - */ - public java.util.List getStatusDetails() { - return statusDetails; - } - - /** - * [Output Only] Human-readable details about the current state of the autoscaler. Read the - * documentation forCommonly returned status messages for examples of status messages you might - * encounter. - * @param statusDetails statusDetails or {@code null} for none - */ - public Autoscaler setStatusDetails(java.util.List statusDetails) { - this.statusDetails = statusDetails; - return this; - } - - /** - * URL of the managed instance group that this autoscaler will scale. This field is required when - * creating an autoscaler. - * @return value or {@code null} for none - */ - public java.lang.String getTarget() { - return target; - } - - /** - * URL of the managed instance group that this autoscaler will scale. This field is required when - * creating an autoscaler. - * @param target target or {@code null} for none - */ - public Autoscaler setTarget(java.lang.String target) { - this.target = target; - return this; - } - - /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). - * @param zone zone or {@code null} for none - */ - public Autoscaler setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public Autoscaler set(String fieldName, Object value) { - return (Autoscaler) super.set(fieldName, value); - } - - @Override - public Autoscaler clone() { - return (Autoscaler) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerList.java deleted file mode 100644 index 29132c738f1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Autoscaler resources. - * - *

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 AutoscalerList extends com.google.api.client.json.GenericJson { - - /** - * [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 Autoscaler 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 Autoscaler 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(Autoscaler.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 AutoscalerList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Autoscaler resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Autoscaler resources. - * @param items items or {@code null} for none - */ - public AutoscalerList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. - * @param kind kind or {@code null} for none - */ - public AutoscalerList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public AutoscalerList 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 AutoscalerList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 AutoscalerList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AutoscalerList set(String fieldName, Object value) { - return (AutoscalerList) super.set(fieldName, value); - } - - @Override - public AutoscalerList clone() { - return (AutoscalerList) 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 AutoscalerListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerStatusDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerStatusDetails.java deleted file mode 100644 index 8255214c6d8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalerStatusDetails.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AutoscalerStatusDetails. - * - *

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 AutoscalerStatusDetails extends com.google.api.client.json.GenericJson { - - /** - * The status message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * The type of error, warning, or notice returned. Current set of possible values: - - * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not - * in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend - * service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): - * Autoscaler recommends a size greater than maxNumReplicas. - - * CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported - * often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): - * The custom metric that was specified does not exist or does not have the necessary labels. - * - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the - * autoscaler cannot add or remove instances from the instance group. - - * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from - * the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS - * (WARNING): The autoscaler is configured to scale based on a load balancing signal but - * the instance group has not received any requests from the load balancer. - MODE_OFF - * (WARNING): Autoscaling is turned off. The number of instances in the group won't - * change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): - * Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not - * remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be - * autoscaled because it has more than one backend service attached to it. - - * NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary - * resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): - * Shown only for regional autoscalers: there is a resource stockout in the chosen region. - * - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - - * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with - * an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT - * (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For - * regional autoscalers: in at least one of the zones you're using there is a resource - * stockout. - * - * New values might be added in the future. Some of the values might not be available in all API - * versions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The status message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * The status message. - * @param message message or {@code null} for none - */ - public AutoscalerStatusDetails setMessage(java.lang.String message) { - this.message = message; - return this; - } - - /** - * The type of error, warning, or notice returned. Current set of possible values: - - * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not - * in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend - * service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): - * Autoscaler recommends a size greater than maxNumReplicas. - - * CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported - * often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): - * The custom metric that was specified does not exist or does not have the necessary labels. - * - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the - * autoscaler cannot add or remove instances from the instance group. - - * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from - * the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS - * (WARNING): The autoscaler is configured to scale based on a load balancing signal but - * the instance group has not received any requests from the load balancer. - MODE_OFF - * (WARNING): Autoscaling is turned off. The number of instances in the group won't - * change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): - * Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not - * remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be - * autoscaled because it has more than one backend service attached to it. - - * NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary - * resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): - * Shown only for regional autoscalers: there is a resource stockout in the chosen region. - * - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - - * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with - * an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT - * (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For - * regional autoscalers: in at least one of the zones you're using there is a resource - * stockout. - * - * New values might be added in the future. Some of the values might not be available in all API - * versions. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of error, warning, or notice returned. Current set of possible values: - - * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not - * in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend - * service attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): - * Autoscaler recommends a size greater than maxNumReplicas. - - * CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported - * often enough to be a credible base for autoscaling. - CUSTOM_METRIC_INVALID (ERROR): - * The custom metric that was specified does not exist or does not have the necessary labels. - * - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the - * autoscaler cannot add or remove instances from the instance group. - - * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from - * the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS - * (WARNING): The autoscaler is configured to scale based on a load balancing signal but - * the instance group has not received any requests from the load balancer. - MODE_OFF - * (WARNING): Autoscaling is turned off. The number of instances in the group won't - * change automatically. The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): - * Autoscaling is in the "Autoscale only out" mode. The autoscaler can add instances but not - * remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be - * autoscaled because it has more than one backend service attached to it. - - * NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient quota for the necessary - * resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): - * Shown only for regional autoscalers: there is a resource stockout in the chosen region. - * - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. - - * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with - * an HTTP/S load balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT - * (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For - * regional autoscalers: in at least one of the zones you're using there is a resource - * stockout. - * - * New values might be added in the future. Some of the values might not be available in all API - * versions. - * @param type type or {@code null} for none - */ - public AutoscalerStatusDetails setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public AutoscalerStatusDetails set(String fieldName, Object value) { - return (AutoscalerStatusDetails) super.set(fieldName, value); - } - - @Override - public AutoscalerStatusDetails clone() { - return (AutoscalerStatusDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalersScopedList.java deleted file mode 100644 index 509519d1db4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalersScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for AutoscalersScopedList. - * - *

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 AutoscalersScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of autoscalers contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List autoscalers; - - static { - // hack to force ProGuard to consider Autoscaler 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(Autoscaler.class); - } - - /** - * [Output Only] Informational warning which replaces the list of autoscalers when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of autoscalers contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getAutoscalers() { - return autoscalers; - } - - /** - * [Output Only] A list of autoscalers contained in this scope. - * @param autoscalers autoscalers or {@code null} for none - */ - public AutoscalersScopedList setAutoscalers(java.util.List autoscalers) { - this.autoscalers = autoscalers; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of autoscalers when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of autoscalers when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public AutoscalersScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public AutoscalersScopedList set(String fieldName, Object value) { - return (AutoscalersScopedList) super.set(fieldName, value); - } - - @Override - public AutoscalersScopedList clone() { - return (AutoscalersScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of autoscalers when the list is - * empty. - */ - 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 AutoscalersScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicy.java deleted file mode 100644 index b403be404e2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicy.java +++ /dev/null @@ -1,360 +0,0 @@ -/* - * 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.preview.model; - -/** - * Cloud Autoscaler policy. - * - *

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 AutoscalingPolicy extends com.google.api.client.json.GenericJson { - - /** - * The number of seconds that your application takes to initialize on a VM instance. This is - * referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). - * Specifying an accurate initialization period improves autoscaler decisions. For example, when - * scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs - * might not yet represent normal usage of your application. The default initialization period is - * 60 seconds. - * - * Initialization periods might vary because of numerous factors. We recommend that you test how - * long your application takes to initialize. To do this, create a VM and time your application's - * startup process. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer coolDownPeriodSec; - - /** - * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU - * utilization of a managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AutoscalingPolicyCpuUtilization cpuUtilization; - - /** - * Configuration parameters of autoscaling based on a custom metric. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customMetricUtilizations; - - /** - * Configuration parameters of autoscaling based on load balancer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization; - - /** - * The maximum number of instances that the autoscaler can scale out to. This is required when - * creating or updating an autoscaler. The maximum number of replicas must not be lower than - * minimal number of replicas. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxNumReplicas; - - /** - * The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. - * If not provided, autoscaler chooses a default value depending on maximum number of instances - * allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minNumReplicas; - - /** - * Defines the operating mode for this policy. The following modes are available: - OFF: - * Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the - * autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to - * its policy. - * - * For more information, see "Turning off or restricting an autoscaler" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AutoscalingPolicyScaleInControl scaleInControl; - - /** - * Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, - * and they can overlap. During overlapping periods the greatest min_required_replicas of all - * scaling schedules is applied. Up to 128 scaling schedules are allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map scalingSchedules; - - /** - * The number of seconds that autoscaler waits for load stabilization before making scale-in - * decisions. This is referred to as the [stabilization - * period](/compute/docs/autoscaler#stabilization_period). This might appear as a delay in scaling - * in but it is an important mechanism for your application to not have fluctuating size due to - * short term load fluctuations. - * - * The default stabilization period is 600 seconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer stabilizationPeriodSec; - - /** - * The number of seconds that your application takes to initialize on a VM instance. This is - * referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). - * Specifying an accurate initialization period improves autoscaler decisions. For example, when - * scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs - * might not yet represent normal usage of your application. The default initialization period is - * 60 seconds. - * - * Initialization periods might vary because of numerous factors. We recommend that you test how - * long your application takes to initialize. To do this, create a VM and time your application's - * startup process. - * @return value or {@code null} for none - */ - public java.lang.Integer getCoolDownPeriodSec() { - return coolDownPeriodSec; - } - - /** - * The number of seconds that your application takes to initialize on a VM instance. This is - * referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). - * Specifying an accurate initialization period improves autoscaler decisions. For example, when - * scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs - * might not yet represent normal usage of your application. The default initialization period is - * 60 seconds. - * - * Initialization periods might vary because of numerous factors. We recommend that you test how - * long your application takes to initialize. To do this, create a VM and time your application's - * startup process. - * @param coolDownPeriodSec coolDownPeriodSec or {@code null} for none - */ - public AutoscalingPolicy setCoolDownPeriodSec(java.lang.Integer coolDownPeriodSec) { - this.coolDownPeriodSec = coolDownPeriodSec; - return this; - } - - /** - * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU - * utilization of a managed instance group. - * @return value or {@code null} for none - */ - public AutoscalingPolicyCpuUtilization getCpuUtilization() { - return cpuUtilization; - } - - /** - * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU - * utilization of a managed instance group. - * @param cpuUtilization cpuUtilization or {@code null} for none - */ - public AutoscalingPolicy setCpuUtilization(AutoscalingPolicyCpuUtilization cpuUtilization) { - this.cpuUtilization = cpuUtilization; - return this; - } - - /** - * Configuration parameters of autoscaling based on a custom metric. - * @return value or {@code null} for none - */ - public java.util.List getCustomMetricUtilizations() { - return customMetricUtilizations; - } - - /** - * Configuration parameters of autoscaling based on a custom metric. - * @param customMetricUtilizations customMetricUtilizations or {@code null} for none - */ - public AutoscalingPolicy setCustomMetricUtilizations(java.util.List customMetricUtilizations) { - this.customMetricUtilizations = customMetricUtilizations; - return this; - } - - /** - * Configuration parameters of autoscaling based on load balancer. - * @return value or {@code null} for none - */ - public AutoscalingPolicyLoadBalancingUtilization getLoadBalancingUtilization() { - return loadBalancingUtilization; - } - - /** - * Configuration parameters of autoscaling based on load balancer. - * @param loadBalancingUtilization loadBalancingUtilization or {@code null} for none - */ - public AutoscalingPolicy setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization) { - this.loadBalancingUtilization = loadBalancingUtilization; - return this; - } - - /** - * The maximum number of instances that the autoscaler can scale out to. This is required when - * creating or updating an autoscaler. The maximum number of replicas must not be lower than - * minimal number of replicas. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxNumReplicas() { - return maxNumReplicas; - } - - /** - * The maximum number of instances that the autoscaler can scale out to. This is required when - * creating or updating an autoscaler. The maximum number of replicas must not be lower than - * minimal number of replicas. - * @param maxNumReplicas maxNumReplicas or {@code null} for none - */ - public AutoscalingPolicy setMaxNumReplicas(java.lang.Integer maxNumReplicas) { - this.maxNumReplicas = maxNumReplicas; - return this; - } - - /** - * The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. - * If not provided, autoscaler chooses a default value depending on maximum number of instances - * allowed. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinNumReplicas() { - return minNumReplicas; - } - - /** - * The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. - * If not provided, autoscaler chooses a default value depending on maximum number of instances - * allowed. - * @param minNumReplicas minNumReplicas or {@code null} for none - */ - public AutoscalingPolicy setMinNumReplicas(java.lang.Integer minNumReplicas) { - this.minNumReplicas = minNumReplicas; - return this; - } - - /** - * Defines the operating mode for this policy. The following modes are available: - OFF: - * Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the - * autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to - * its policy. - * - * For more information, see "Turning off or restricting an autoscaler" - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * Defines the operating mode for this policy. The following modes are available: - OFF: - * Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the - * autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to - * its policy. - * - * For more information, see "Turning off or restricting an autoscaler" - * @param mode mode or {@code null} for none - */ - public AutoscalingPolicy setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * @return value or {@code null} for none - */ - public AutoscalingPolicyScaleInControl getScaleInControl() { - return scaleInControl; - } - - /** - * @param scaleInControl scaleInControl or {@code null} for none - */ - public AutoscalingPolicy setScaleInControl(AutoscalingPolicyScaleInControl scaleInControl) { - this.scaleInControl = scaleInControl; - return this; - } - - /** - * Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, - * and they can overlap. During overlapping periods the greatest min_required_replicas of all - * scaling schedules is applied. Up to 128 scaling schedules are allowed. - * @return value or {@code null} for none - */ - public java.util.Map getScalingSchedules() { - return scalingSchedules; - } - - /** - * Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, - * and they can overlap. During overlapping periods the greatest min_required_replicas of all - * scaling schedules is applied. Up to 128 scaling schedules are allowed. - * @param scalingSchedules scalingSchedules or {@code null} for none - */ - public AutoscalingPolicy setScalingSchedules(java.util.Map scalingSchedules) { - this.scalingSchedules = scalingSchedules; - return this; - } - - /** - * The number of seconds that autoscaler waits for load stabilization before making scale-in - * decisions. This is referred to as the [stabilization - * period](/compute/docs/autoscaler#stabilization_period). This might appear as a delay in scaling - * in but it is an important mechanism for your application to not have fluctuating size due to - * short term load fluctuations. - * - * The default stabilization period is 600 seconds. - * @return value or {@code null} for none - */ - public java.lang.Integer getStabilizationPeriodSec() { - return stabilizationPeriodSec; - } - - /** - * The number of seconds that autoscaler waits for load stabilization before making scale-in - * decisions. This is referred to as the [stabilization - * period](/compute/docs/autoscaler#stabilization_period). This might appear as a delay in scaling - * in but it is an important mechanism for your application to not have fluctuating size due to - * short term load fluctuations. - * - * The default stabilization period is 600 seconds. - * @param stabilizationPeriodSec stabilizationPeriodSec or {@code null} for none - */ - public AutoscalingPolicy setStabilizationPeriodSec(java.lang.Integer stabilizationPeriodSec) { - this.stabilizationPeriodSec = stabilizationPeriodSec; - return this; - } - - @Override - public AutoscalingPolicy set(String fieldName, Object value) { - return (AutoscalingPolicy) super.set(fieldName, value); - } - - @Override - public AutoscalingPolicy clone() { - return (AutoscalingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCpuUtilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCpuUtilization.java deleted file mode 100644 index f51024a517d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCpuUtilization.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * CPU utilization policy. - * - *

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 AutoscalingPolicyCpuUtilization extends com.google.api.client.json.GenericJson { - - /** - * Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: - * - * * NONE (default). No predictive method is used. The autoscaler scales the group to meet current - * demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves - * availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated - * demand. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String predictiveMethod; - - /** - * The target CPU utilization that the autoscaler maintains. Must be a float value in the range - * (0, 1]. If not specified, the default is0.6. - * - * If the CPU level is below the target utilization, the autoscaler scales in the number of - * instances until it reaches the minimum number of instances you specified or until the average - * CPU of your instances reaches the target utilization. - * - * If the average CPU is above the target utilization, the autoscaler scales out until it reaches - * the maximum number of instances you specified or until the average utilization reaches the - * target utilization. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double utilizationTarget; - - /** - * Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: - * - * * NONE (default). No predictive method is used. The autoscaler scales the group to meet current - * demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves - * availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated - * demand. - * @return value or {@code null} for none - */ - public java.lang.String getPredictiveMethod() { - return predictiveMethod; - } - - /** - * Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are: - * - * * NONE (default). No predictive method is used. The autoscaler scales the group to meet current - * demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves - * availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated - * demand. - * @param predictiveMethod predictiveMethod or {@code null} for none - */ - public AutoscalingPolicyCpuUtilization setPredictiveMethod(java.lang.String predictiveMethod) { - this.predictiveMethod = predictiveMethod; - return this; - } - - /** - * The target CPU utilization that the autoscaler maintains. Must be a float value in the range - * (0, 1]. If not specified, the default is0.6. - * - * If the CPU level is below the target utilization, the autoscaler scales in the number of - * instances until it reaches the minimum number of instances you specified or until the average - * CPU of your instances reaches the target utilization. - * - * If the average CPU is above the target utilization, the autoscaler scales out until it reaches - * the maximum number of instances you specified or until the average utilization reaches the - * target utilization. - * @return value or {@code null} for none - */ - public java.lang.Double getUtilizationTarget() { - return utilizationTarget; - } - - /** - * The target CPU utilization that the autoscaler maintains. Must be a float value in the range - * (0, 1]. If not specified, the default is0.6. - * - * If the CPU level is below the target utilization, the autoscaler scales in the number of - * instances until it reaches the minimum number of instances you specified or until the average - * CPU of your instances reaches the target utilization. - * - * If the average CPU is above the target utilization, the autoscaler scales out until it reaches - * the maximum number of instances you specified or until the average utilization reaches the - * target utilization. - * @param utilizationTarget utilizationTarget or {@code null} for none - */ - public AutoscalingPolicyCpuUtilization setUtilizationTarget(java.lang.Double utilizationTarget) { - this.utilizationTarget = utilizationTarget; - return this; - } - - @Override - public AutoscalingPolicyCpuUtilization set(String fieldName, Object value) { - return (AutoscalingPolicyCpuUtilization) super.set(fieldName, value); - } - - @Override - public AutoscalingPolicyCpuUtilization clone() { - return (AutoscalingPolicyCpuUtilization) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCustomMetricUtilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCustomMetricUtilization.java deleted file mode 100644 index e7531c1e98f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyCustomMetricUtilization.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * 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.preview.model; - -/** - * Custom utilization metric policy. - * - *

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 AutoscalingPolicyCustomMetricUtilization extends com.google.api.client.json.GenericJson { - - /** - * A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API - * call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to - * determine whether the metric is exporting per-instance or per-group data. - * - * For the filter to be valid for autoscaling purposes, the following rules apply: - - * You can only use the AND operator for joining selectors. - You can only use direct - * equality comparison operator (=) without any functions for each selector. - You can - * specify the metric in both the filter string and in the metric field. However, if - * specified in both places, the metric must be identical. - The monitored resource - * type determines what kind of values are expected for the metric. If it is a - * gce_instance, the autoscaler expects the metric to include a separate TimeSeries for - * each instance in a group. In such a case, you cannot filter on resource labels. - * If the resource type is any other value, the autoscaler expects this metric to contain - * values that apply to the entire autoscaled instance group and resource label filtering - * can be performed to point autoscaler at the correct TimeSeries to scale upon. This is - * called a *per-group metric* for the purpose of autoscaling. If not specified, the - * type defaults to gce_instance. - * - * Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled - * group or for each of the instances (if you are using gce_instance resource type). If multiple - * TimeSeries are returned upon the query execution, the autoscaler will sum their respective - * values to obtain its scaling value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** - * The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative - * values. - * - * The metric must have a value type of INT64 orDOUBLE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metric; - - /** - * If scaling is based on a per-group metric value that represents the total amount of work to be - * done or resource usage, set this value to an amount assigned for a single instance of the - * scaled group. Autoscaler keeps the number of instances proportional to the value of this - * metric. The metric itself does not change value due to group resizing. - * - * A good metric to use with the target is for - * examplepubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting - * the total number of requests coming to your instances. - * - * A bad example would be a metric exporting an average or median latency, since this value can't - * include a chunk assignable to a single instance, it could be better used with - * utilization_target instead. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double singleInstanceAssignment; - - /** - * The target value of the metric that autoscaler maintains. This must be a positive value. A - * utilization metric scales number of virtual machines handling requests to increase or decrease - * proportionally to the metric. - * - * For example, a good metric to use as a utilization_target - * ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler - * works to keep this value constant for each of the instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double utilizationTarget; - - /** - * Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either - * GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String utilizationTargetType; - - /** - * A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API - * call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to - * determine whether the metric is exporting per-instance or per-group data. - * - * For the filter to be valid for autoscaling purposes, the following rules apply: - - * You can only use the AND operator for joining selectors. - You can only use direct - * equality comparison operator (=) without any functions for each selector. - You can - * specify the metric in both the filter string and in the metric field. However, if - * specified in both places, the metric must be identical. - The monitored resource - * type determines what kind of values are expected for the metric. If it is a - * gce_instance, the autoscaler expects the metric to include a separate TimeSeries for - * each instance in a group. In such a case, you cannot filter on resource labels. - * If the resource type is any other value, the autoscaler expects this metric to contain - * values that apply to the entire autoscaled instance group and resource label filtering - * can be performed to point autoscaler at the correct TimeSeries to scale upon. This is - * called a *per-group metric* for the purpose of autoscaling. If not specified, the - * type defaults to gce_instance. - * - * Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled - * group or for each of the instances (if you are using gce_instance resource type). If multiple - * TimeSeries are returned upon the query execution, the autoscaler will sum their respective - * values to obtain its scaling value. - * @return value or {@code null} for none - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter string, compatible with a Stackdriver Monitoringfilter string forTimeSeries.list API - * call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to - * determine whether the metric is exporting per-instance or per-group data. - * - * For the filter to be valid for autoscaling purposes, the following rules apply: - - * You can only use the AND operator for joining selectors. - You can only use direct - * equality comparison operator (=) without any functions for each selector. - You can - * specify the metric in both the filter string and in the metric field. However, if - * specified in both places, the metric must be identical. - The monitored resource - * type determines what kind of values are expected for the metric. If it is a - * gce_instance, the autoscaler expects the metric to include a separate TimeSeries for - * each instance in a group. In such a case, you cannot filter on resource labels. - * If the resource type is any other value, the autoscaler expects this metric to contain - * values that apply to the entire autoscaled instance group and resource label filtering - * can be performed to point autoscaler at the correct TimeSeries to scale upon. This is - * called a *per-group metric* for the purpose of autoscaling. If not specified, the - * type defaults to gce_instance. - * - * Try to provide a filter that is selective enough to pick just one TimeSeries for the autoscaled - * group or for each of the instances (if you are using gce_instance resource type). If multiple - * TimeSeries are returned upon the query execution, the autoscaler will sum their respective - * values to obtain its scaling value. - * @param filter filter or {@code null} for none - */ - public AutoscalingPolicyCustomMetricUtilization setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative - * values. - * - * The metric must have a value type of INT64 orDOUBLE. - * @return value or {@code null} for none - */ - public java.lang.String getMetric() { - return metric; - } - - /** - * The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative - * values. - * - * The metric must have a value type of INT64 orDOUBLE. - * @param metric metric or {@code null} for none - */ - public AutoscalingPolicyCustomMetricUtilization setMetric(java.lang.String metric) { - this.metric = metric; - return this; - } - - /** - * If scaling is based on a per-group metric value that represents the total amount of work to be - * done or resource usage, set this value to an amount assigned for a single instance of the - * scaled group. Autoscaler keeps the number of instances proportional to the value of this - * metric. The metric itself does not change value due to group resizing. - * - * A good metric to use with the target is for - * examplepubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting - * the total number of requests coming to your instances. - * - * A bad example would be a metric exporting an average or median latency, since this value can't - * include a chunk assignable to a single instance, it could be better used with - * utilization_target instead. - * @return value or {@code null} for none - */ - public java.lang.Double getSingleInstanceAssignment() { - return singleInstanceAssignment; - } - - /** - * If scaling is based on a per-group metric value that represents the total amount of work to be - * done or resource usage, set this value to an amount assigned for a single instance of the - * scaled group. Autoscaler keeps the number of instances proportional to the value of this - * metric. The metric itself does not change value due to group resizing. - * - * A good metric to use with the target is for - * examplepubsub.googleapis.com/subscription/num_undelivered_messages or a custom metric exporting - * the total number of requests coming to your instances. - * - * A bad example would be a metric exporting an average or median latency, since this value can't - * include a chunk assignable to a single instance, it could be better used with - * utilization_target instead. - * @param singleInstanceAssignment singleInstanceAssignment or {@code null} for none - */ - public AutoscalingPolicyCustomMetricUtilization setSingleInstanceAssignment(java.lang.Double singleInstanceAssignment) { - this.singleInstanceAssignment = singleInstanceAssignment; - return this; - } - - /** - * The target value of the metric that autoscaler maintains. This must be a positive value. A - * utilization metric scales number of virtual machines handling requests to increase or decrease - * proportionally to the metric. - * - * For example, a good metric to use as a utilization_target - * ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler - * works to keep this value constant for each of the instances. - * @return value or {@code null} for none - */ - public java.lang.Double getUtilizationTarget() { - return utilizationTarget; - } - - /** - * The target value of the metric that autoscaler maintains. This must be a positive value. A - * utilization metric scales number of virtual machines handling requests to increase or decrease - * proportionally to the metric. - * - * For example, a good metric to use as a utilization_target - * ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. The autoscaler - * works to keep this value constant for each of the instances. - * @param utilizationTarget utilizationTarget or {@code null} for none - */ - public AutoscalingPolicyCustomMetricUtilization setUtilizationTarget(java.lang.Double utilizationTarget) { - this.utilizationTarget = utilizationTarget; - return this; - } - - /** - * Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either - * GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. - * @return value or {@code null} for none - */ - public java.lang.String getUtilizationTargetType() { - return utilizationTargetType; - } - - /** - * Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either - * GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. - * @param utilizationTargetType utilizationTargetType or {@code null} for none - */ - public AutoscalingPolicyCustomMetricUtilization setUtilizationTargetType(java.lang.String utilizationTargetType) { - this.utilizationTargetType = utilizationTargetType; - return this; - } - - @Override - public AutoscalingPolicyCustomMetricUtilization set(String fieldName, Object value) { - return (AutoscalingPolicyCustomMetricUtilization) super.set(fieldName, value); - } - - @Override - public AutoscalingPolicyCustomMetricUtilization clone() { - return (AutoscalingPolicyCustomMetricUtilization) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyLoadBalancingUtilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyLoadBalancingUtilization.java deleted file mode 100644 index a1dcdd4153e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyLoadBalancingUtilization.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration parameters of autoscaling based on load balancing. - * - *

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 AutoscalingPolicyLoadBalancingUtilization extends com.google.api.client.json.GenericJson { - - /** - * Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the - * autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double utilizationTarget; - - /** - * Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the - * autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. - * @return value or {@code null} for none - */ - public java.lang.Double getUtilizationTarget() { - return utilizationTarget; - } - - /** - * Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that the - * autoscaler maintains. Must be a positive float value. If not defined, the default is 0.8. - * @param utilizationTarget utilizationTarget or {@code null} for none - */ - public AutoscalingPolicyLoadBalancingUtilization setUtilizationTarget(java.lang.Double utilizationTarget) { - this.utilizationTarget = utilizationTarget; - return this; - } - - @Override - public AutoscalingPolicyLoadBalancingUtilization set(String fieldName, Object value) { - return (AutoscalingPolicyLoadBalancingUtilization) super.set(fieldName, value); - } - - @Override - public AutoscalingPolicyLoadBalancingUtilization clone() { - return (AutoscalingPolicyLoadBalancingUtilization) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScaleInControl.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScaleInControl.java deleted file mode 100644 index 69ca6447289..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScaleInControl.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt - * scale in of a MIG, it will be throttled as specified by the parameters below. - * - *

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 AutoscalingPolicyScaleInControl extends com.google.api.client.json.GenericJson { - - /** - * Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during - * the window autoscaler looks at when computing recommendations. Possibly all these VMs can be - * deleted at once so user service needs to be prepared to lose that many VMs in one step. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FixedOrPercent maxScaledInReplicas; - - /** - * How far back autoscaling looks when computing recommendations to include directives regarding - * slower scale in, as described above. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer timeWindowSec; - - /** - * Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during - * the window autoscaler looks at when computing recommendations. Possibly all these VMs can be - * deleted at once so user service needs to be prepared to lose that many VMs in one step. - * @return value or {@code null} for none - */ - public FixedOrPercent getMaxScaledInReplicas() { - return maxScaledInReplicas; - } - - /** - * Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during - * the window autoscaler looks at when computing recommendations. Possibly all these VMs can be - * deleted at once so user service needs to be prepared to lose that many VMs in one step. - * @param maxScaledInReplicas maxScaledInReplicas or {@code null} for none - */ - public AutoscalingPolicyScaleInControl setMaxScaledInReplicas(FixedOrPercent maxScaledInReplicas) { - this.maxScaledInReplicas = maxScaledInReplicas; - return this; - } - - /** - * How far back autoscaling looks when computing recommendations to include directives regarding - * slower scale in, as described above. - * @return value or {@code null} for none - */ - public java.lang.Integer getTimeWindowSec() { - return timeWindowSec; - } - - /** - * How far back autoscaling looks when computing recommendations to include directives regarding - * slower scale in, as described above. - * @param timeWindowSec timeWindowSec or {@code null} for none - */ - public AutoscalingPolicyScaleInControl setTimeWindowSec(java.lang.Integer timeWindowSec) { - this.timeWindowSec = timeWindowSec; - return this; - } - - @Override - public AutoscalingPolicyScaleInControl set(String fieldName, Object value) { - return (AutoscalingPolicyScaleInControl) super.set(fieldName, value); - } - - @Override - public AutoscalingPolicyScaleInControl clone() { - return (AutoscalingPolicyScaleInControl) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScalingSchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScalingSchedule.java deleted file mode 100644 index 53b11ad3189..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/AutoscalingPolicyScalingSchedule.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * 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.preview.model; - -/** - * Scaling based on user-defined schedule. The message describes a single scaling schedule. A - * scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which - * can trigger scaling out. - * - *

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 AutoscalingPolicyScalingSchedule extends com.google.api.client.json.GenericJson { - - /** - * A description of a scaling schedule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A boolean value that specifies whether a scaling schedule can influence autoscaler - * recommendations. If set to true, then a scaling schedule has no effect. This field is optional, - * and its value is false by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean disabled; - - /** - * The duration of time intervals, in seconds, for which this scaling schedule is to run. The - * minimum allowed value is 300. This field is required. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer durationSec; - - /** - * The minimum number of VM instances that the autoscaler will recommend in time intervals - * starting according to schedule. This field is required. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minRequiredReplicas; - - /** - * The start timestamps of time intervals when this scaling schedule is to provide a scaling - * signal. This field uses the extended cron format (with an optional year field). The expression - * can describe a single timestamp if the optional year is set, in which case the scaling schedule - * runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: - * These timestamps only describe when autoscaler starts providing the scaling signal. The VMs - * need additional time to become serving. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String schedule; - - /** - * The time zone to use when interpreting the schedule. The value of this field must be a time - * zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is - * assigned a default value of "UTC" if left empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String timeZone; - - /** - * A description of a scaling schedule. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * A description of a scaling schedule. - * @param description description or {@code null} for none - */ - public AutoscalingPolicyScalingSchedule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A boolean value that specifies whether a scaling schedule can influence autoscaler - * recommendations. If set to true, then a scaling schedule has no effect. This field is optional, - * and its value is false by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDisabled() { - return disabled; - } - - /** - * A boolean value that specifies whether a scaling schedule can influence autoscaler - * recommendations. If set to true, then a scaling schedule has no effect. This field is optional, - * and its value is false by default. - * @param disabled disabled or {@code null} for none - */ - public AutoscalingPolicyScalingSchedule setDisabled(java.lang.Boolean disabled) { - this.disabled = disabled; - return this; - } - - /** - * The duration of time intervals, in seconds, for which this scaling schedule is to run. The - * minimum allowed value is 300. This field is required. - * @return value or {@code null} for none - */ - public java.lang.Integer getDurationSec() { - return durationSec; - } - - /** - * The duration of time intervals, in seconds, for which this scaling schedule is to run. The - * minimum allowed value is 300. This field is required. - * @param durationSec durationSec or {@code null} for none - */ - public AutoscalingPolicyScalingSchedule setDurationSec(java.lang.Integer durationSec) { - this.durationSec = durationSec; - return this; - } - - /** - * The minimum number of VM instances that the autoscaler will recommend in time intervals - * starting according to schedule. This field is required. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinRequiredReplicas() { - return minRequiredReplicas; - } - - /** - * The minimum number of VM instances that the autoscaler will recommend in time intervals - * starting according to schedule. This field is required. - * @param minRequiredReplicas minRequiredReplicas or {@code null} for none - */ - public AutoscalingPolicyScalingSchedule setMinRequiredReplicas(java.lang.Integer minRequiredReplicas) { - this.minRequiredReplicas = minRequiredReplicas; - return this; - } - - /** - * The start timestamps of time intervals when this scaling schedule is to provide a scaling - * signal. This field uses the extended cron format (with an optional year field). The expression - * can describe a single timestamp if the optional year is set, in which case the scaling schedule - * runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: - * These timestamps only describe when autoscaler starts providing the scaling signal. The VMs - * need additional time to become serving. - * @return value or {@code null} for none - */ - public java.lang.String getSchedule() { - return schedule; - } - - /** - * The start timestamps of time intervals when this scaling schedule is to provide a scaling - * signal. This field uses the extended cron format (with an optional year field). The expression - * can describe a single timestamp if the optional year is set, in which case the scaling schedule - * runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: - * These timestamps only describe when autoscaler starts providing the scaling signal. The VMs - * need additional time to become serving. - * @param schedule schedule or {@code null} for none - */ - public AutoscalingPolicyScalingSchedule setSchedule(java.lang.String schedule) { - this.schedule = schedule; - return this; - } - - /** - * The time zone to use when interpreting the schedule. The value of this field must be a time - * zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is - * assigned a default value of "UTC" if left empty. - * @return value or {@code null} for none - */ - public java.lang.String getTimeZone() { - return timeZone; - } - - /** - * The time zone to use when interpreting the schedule. The value of this field must be a time - * zone name from the tz database: https://en.wikipedia.org/wiki/Tz_database. This field is - * assigned a default value of "UTC" if left empty. - * @param timeZone timeZone or {@code null} for none - */ - public AutoscalingPolicyScalingSchedule setTimeZone(java.lang.String timeZone) { - this.timeZone = timeZone; - return this; - } - - @Override - public AutoscalingPolicyScalingSchedule set(String fieldName, Object value) { - return (AutoscalingPolicyScalingSchedule) super.set(fieldName, value); - } - - @Override - public AutoscalingPolicyScalingSchedule clone() { - return (AutoscalingPolicyScalingSchedule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Backend.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Backend.java deleted file mode 100644 index a83c6c6108e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Backend.java +++ /dev/null @@ -1,678 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing information of one individual backend. - * - *

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 Backend extends com.google.api.client.json.GenericJson { - - /** - * Specifies how to determine whether the backend of a load balancer can handle additional traffic - * or is fully loaded. For usage guidelines, see Connection balancing mode. - * - * Backends must use compatible balancing modes. Backends of a backend service may use different - * balancing modes. For more information, see Supported balancing modes and target capacity - * settings and Restrictions and guidance for instance groups. - * - * Note: Currently, if you use the API to configure incompatible balancing modes, the - * configuration might be accepted even though it has no impact and is ignored. Specifically, - * Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this - * incompatible combination will be rejected. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String balancingMode; - - /** - * A multiplier applied to the backend's target capacity of its balancing mode. The default value - * is 1, which means the group serves up to 100% of its configured capacity (depending - * onbalancingMode). A setting of 0 means the group is completely drained, offering 0% of its - * available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting - * larger than 0 and smaller than0.1. You cannot configure a setting of 0 when there is only one - * backend attached to the backend service. - * - * Not available with backends that don't support using abalancingMode. This includes backends - * such as global internet NEGs, regional serverless NEGs, and PSC NEGs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float capacityScaler; - - /** - * List of custom metrics that are used for CUSTOM_METRICS BalancingMode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customMetrics; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * This field designates whether this is a failover backend. More than one failover backend can be - * configured for a given BackendService. - * - * This field can only be used for a regional external Passthrough Network Load Balancer or a - * regional internal Passthrough Network Load Balancer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean failover; - - /** - * The fully-qualified URL of aninstance group or network endpoint group (NEG) resource. To - * determine what types of backends a load balancer supports, see the [Backend services - * overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). - * - * You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify - * the instance group or NEG. Partial URLs are not supported. - * - * If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String group; - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. Not available if the - * backend'sbalancingMode is RATE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxConnections; - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isRATE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxConnectionsPerEndpoint; - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isRATE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxConnectionsPerInstance; - - /** - * Defines a maximum number of in-flight requests for the whole NEG or instance group. Not - * available if backend's balancingMode isRATE or CONNECTION. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxInFlightRequests; - - /** - * Defines a maximum number of in-flight requests for a single endpoint. Not available if - * backend's balancingMode is RATE or CONNECTION. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxInFlightRequestsPerEndpoint; - - /** - * Defines a maximum number of in-flight requests for a single VM. Not available if backend's - * balancingMode is RATE or CONNECTION. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxInFlightRequestsPerInstance; - - /** - * Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, seeRate - * balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxRate; - - /** - * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing - * mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float maxRatePerEndpoint; - - /** - * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing - * mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float maxRatePerInstance; - - /** - * Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid - * range is[0.0, 1.0]. - * - * For usage guidelines, seeUtilization balancing mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float maxUtilization; - - /** - * Information about the resource or system that manages the backend. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendBackendOrchestrationInfo orchestrationInfo; - - /** - * This field indicates whether this backend should be fully utilized before sending traffic to - * backends with default preference. The possible values are: - PREFERRED: Backends with - * this preference level will be filled up to their capacity limits first, based on RTT. - - * DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be - * used and traffic would be assigned based on the load balancing algorithm you use. This is - * the default - * - * For global external Passthrough Network Load Balancers, the following restrictions apply: - * - At most one backend can be marked as PREFERRED. - PREFERRED and DEFAULT backends cannot - * reside in the same Cloud region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String preference; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String trafficDuration; - - /** - * Specifies how to determine whether the backend of a load balancer can handle additional traffic - * or is fully loaded. For usage guidelines, see Connection balancing mode. - * - * Backends must use compatible balancing modes. Backends of a backend service may use different - * balancing modes. For more information, see Supported balancing modes and target capacity - * settings and Restrictions and guidance for instance groups. - * - * Note: Currently, if you use the API to configure incompatible balancing modes, the - * configuration might be accepted even though it has no impact and is ignored. Specifically, - * Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this - * incompatible combination will be rejected. - * @return value or {@code null} for none - */ - public java.lang.String getBalancingMode() { - return balancingMode; - } - - /** - * Specifies how to determine whether the backend of a load balancer can handle additional traffic - * or is fully loaded. For usage guidelines, see Connection balancing mode. - * - * Backends must use compatible balancing modes. Backends of a backend service may use different - * balancing modes. For more information, see Supported balancing modes and target capacity - * settings and Restrictions and guidance for instance groups. - * - * Note: Currently, if you use the API to configure incompatible balancing modes, the - * configuration might be accepted even though it has no impact and is ignored. Specifically, - * Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this - * incompatible combination will be rejected. - * @param balancingMode balancingMode or {@code null} for none - */ - public Backend setBalancingMode(java.lang.String balancingMode) { - this.balancingMode = balancingMode; - return this; - } - - /** - * A multiplier applied to the backend's target capacity of its balancing mode. The default value - * is 1, which means the group serves up to 100% of its configured capacity (depending - * onbalancingMode). A setting of 0 means the group is completely drained, offering 0% of its - * available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting - * larger than 0 and smaller than0.1. You cannot configure a setting of 0 when there is only one - * backend attached to the backend service. - * - * Not available with backends that don't support using abalancingMode. This includes backends - * such as global internet NEGs, regional serverless NEGs, and PSC NEGs. - * @return value or {@code null} for none - */ - public java.lang.Float getCapacityScaler() { - return capacityScaler; - } - - /** - * A multiplier applied to the backend's target capacity of its balancing mode. The default value - * is 1, which means the group serves up to 100% of its configured capacity (depending - * onbalancingMode). A setting of 0 means the group is completely drained, offering 0% of its - * available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting - * larger than 0 and smaller than0.1. You cannot configure a setting of 0 when there is only one - * backend attached to the backend service. - * - * Not available with backends that don't support using abalancingMode. This includes backends - * such as global internet NEGs, regional serverless NEGs, and PSC NEGs. - * @param capacityScaler capacityScaler or {@code null} for none - */ - public Backend setCapacityScaler(java.lang.Float capacityScaler) { - this.capacityScaler = capacityScaler; - return this; - } - - /** - * List of custom metrics that are used for CUSTOM_METRICS BalancingMode. - * @return value or {@code null} for none - */ - public java.util.List getCustomMetrics() { - return customMetrics; - } - - /** - * List of custom metrics that are used for CUSTOM_METRICS BalancingMode. - * @param customMetrics customMetrics or {@code null} for none - */ - public Backend setCustomMetrics(java.util.List customMetrics) { - this.customMetrics = customMetrics; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Backend setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * This field designates whether this is a failover backend. More than one failover backend can be - * configured for a given BackendService. - * - * This field can only be used for a regional external Passthrough Network Load Balancer or a - * regional internal Passthrough Network Load Balancer. - * @return value or {@code null} for none - */ - public java.lang.Boolean getFailover() { - return failover; - } - - /** - * This field designates whether this is a failover backend. More than one failover backend can be - * configured for a given BackendService. - * - * This field can only be used for a regional external Passthrough Network Load Balancer or a - * regional internal Passthrough Network Load Balancer. - * @param failover failover or {@code null} for none - */ - public Backend setFailover(java.lang.Boolean failover) { - this.failover = failover; - return this; - } - - /** - * The fully-qualified URL of aninstance group or network endpoint group (NEG) resource. To - * determine what types of backends a load balancer supports, see the [Backend services - * overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). - * - * You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify - * the instance group or NEG. Partial URLs are not supported. - * - * If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. - * @return value or {@code null} for none - */ - public java.lang.String getGroup() { - return group; - } - - /** - * The fully-qualified URL of aninstance group or network endpoint group (NEG) resource. To - * determine what types of backends a load balancer supports, see the [Backend services - * overview](https://cloud.google.com/load-balancing/docs/backend-service#backends). - * - * You must use the *fully-qualified* URL (starting withhttps://www.googleapis.com/) to specify - * the instance group or NEG. Partial URLs are not supported. - * - * If haPolicy is specified, backends must refer to NEG resources of type GCE_VM_IP. - * @param group group or {@code null} for none - */ - public Backend setGroup(java.lang.String group) { - this.group = group; - return this; - } - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. Not available if the - * backend'sbalancingMode is RATE. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxConnections() { - return maxConnections; - } - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. Not available if the - * backend'sbalancingMode is RATE. - * @param maxConnections maxConnections or {@code null} for none - */ - public Backend setMaxConnections(java.lang.Integer maxConnections) { - this.maxConnections = maxConnections; - return this; - } - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isRATE. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxConnectionsPerEndpoint() { - return maxConnectionsPerEndpoint; - } - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isRATE. - * @param maxConnectionsPerEndpoint maxConnectionsPerEndpoint or {@code null} for none - */ - public Backend setMaxConnectionsPerEndpoint(java.lang.Integer maxConnectionsPerEndpoint) { - this.maxConnectionsPerEndpoint = maxConnectionsPerEndpoint; - return this; - } - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isRATE. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxConnectionsPerInstance() { - return maxConnectionsPerInstance; - } - - /** - * Defines a target maximum number of simultaneous connections. For usage guidelines, - * seeConnection balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isRATE. - * @param maxConnectionsPerInstance maxConnectionsPerInstance or {@code null} for none - */ - public Backend setMaxConnectionsPerInstance(java.lang.Integer maxConnectionsPerInstance) { - this.maxConnectionsPerInstance = maxConnectionsPerInstance; - return this; - } - - /** - * Defines a maximum number of in-flight requests for the whole NEG or instance group. Not - * available if backend's balancingMode isRATE or CONNECTION. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxInFlightRequests() { - return maxInFlightRequests; - } - - /** - * Defines a maximum number of in-flight requests for the whole NEG or instance group. Not - * available if backend's balancingMode isRATE or CONNECTION. - * @param maxInFlightRequests maxInFlightRequests or {@code null} for none - */ - public Backend setMaxInFlightRequests(java.lang.Integer maxInFlightRequests) { - this.maxInFlightRequests = maxInFlightRequests; - return this; - } - - /** - * Defines a maximum number of in-flight requests for a single endpoint. Not available if - * backend's balancingMode is RATE or CONNECTION. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxInFlightRequestsPerEndpoint() { - return maxInFlightRequestsPerEndpoint; - } - - /** - * Defines a maximum number of in-flight requests for a single endpoint. Not available if - * backend's balancingMode is RATE or CONNECTION. - * @param maxInFlightRequestsPerEndpoint maxInFlightRequestsPerEndpoint or {@code null} for none - */ - public Backend setMaxInFlightRequestsPerEndpoint(java.lang.Integer maxInFlightRequestsPerEndpoint) { - this.maxInFlightRequestsPerEndpoint = maxInFlightRequestsPerEndpoint; - return this; - } - - /** - * Defines a maximum number of in-flight requests for a single VM. Not available if backend's - * balancingMode is RATE or CONNECTION. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxInFlightRequestsPerInstance() { - return maxInFlightRequestsPerInstance; - } - - /** - * Defines a maximum number of in-flight requests for a single VM. Not available if backend's - * balancingMode is RATE or CONNECTION. - * @param maxInFlightRequestsPerInstance maxInFlightRequestsPerInstance or {@code null} for none - */ - public Backend setMaxInFlightRequestsPerInstance(java.lang.Integer maxInFlightRequestsPerInstance) { - this.maxInFlightRequestsPerInstance = maxInFlightRequestsPerInstance; - return this; - } - - /** - * Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, seeRate - * balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxRate() { - return maxRate; - } - - /** - * Defines a maximum number of HTTP requests per second (RPS). For usage guidelines, seeRate - * balancing mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * @param maxRate maxRate or {@code null} for none - */ - public Backend setMaxRate(java.lang.Integer maxRate) { - this.maxRate = maxRate; - return this; - } - - /** - * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing - * mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * @return value or {@code null} for none - */ - public java.lang.Float getMaxRatePerEndpoint() { - return maxRatePerEndpoint; - } - - /** - * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing - * mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * @param maxRatePerEndpoint maxRatePerEndpoint or {@code null} for none - */ - public Backend setMaxRatePerEndpoint(java.lang.Float maxRatePerEndpoint) { - this.maxRatePerEndpoint = maxRatePerEndpoint; - return this; - } - - /** - * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing - * mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * @return value or {@code null} for none - */ - public java.lang.Float getMaxRatePerInstance() { - return maxRatePerInstance; - } - - /** - * Defines a maximum target for requests per second (RPS). For usage guidelines, seeRate balancing - * mode and Utilization balancing mode. - * - * Not available if the backend's balancingMode isCONNECTION. - * @param maxRatePerInstance maxRatePerInstance or {@code null} for none - */ - public Backend setMaxRatePerInstance(java.lang.Float maxRatePerInstance) { - this.maxRatePerInstance = maxRatePerInstance; - return this; - } - - /** - * Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid - * range is[0.0, 1.0]. - * - * For usage guidelines, seeUtilization balancing mode. - * @return value or {@code null} for none - */ - public java.lang.Float getMaxUtilization() { - return maxUtilization; - } - - /** - * Optional parameter to define a target capacity for theUTILIZATION balancing mode. The valid - * range is[0.0, 1.0]. - * - * For usage guidelines, seeUtilization balancing mode. - * @param maxUtilization maxUtilization or {@code null} for none - */ - public Backend setMaxUtilization(java.lang.Float maxUtilization) { - this.maxUtilization = maxUtilization; - return this; - } - - /** - * Information about the resource or system that manages the backend. - * @return value or {@code null} for none - */ - public BackendBackendOrchestrationInfo getOrchestrationInfo() { - return orchestrationInfo; - } - - /** - * Information about the resource or system that manages the backend. - * @param orchestrationInfo orchestrationInfo or {@code null} for none - */ - public Backend setOrchestrationInfo(BackendBackendOrchestrationInfo orchestrationInfo) { - this.orchestrationInfo = orchestrationInfo; - return this; - } - - /** - * This field indicates whether this backend should be fully utilized before sending traffic to - * backends with default preference. The possible values are: - PREFERRED: Backends with - * this preference level will be filled up to their capacity limits first, based on RTT. - - * DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be - * used and traffic would be assigned based on the load balancing algorithm you use. This is - * the default - * - * For global external Passthrough Network Load Balancers, the following restrictions apply: - * - At most one backend can be marked as PREFERRED. - PREFERRED and DEFAULT backends cannot - * reside in the same Cloud region. - * @return value or {@code null} for none - */ - public java.lang.String getPreference() { - return preference; - } - - /** - * This field indicates whether this backend should be fully utilized before sending traffic to - * backends with default preference. The possible values are: - PREFERRED: Backends with - * this preference level will be filled up to their capacity limits first, based on RTT. - - * DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be - * used and traffic would be assigned based on the load balancing algorithm you use. This is - * the default - * - * For global external Passthrough Network Load Balancers, the following restrictions apply: - * - At most one backend can be marked as PREFERRED. - PREFERRED and DEFAULT backends cannot - * reside in the same Cloud region. - * @param preference preference or {@code null} for none - */ - public Backend setPreference(java.lang.String preference) { - this.preference = preference; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getTrafficDuration() { - return trafficDuration; - } - - /** - * @param trafficDuration trafficDuration or {@code null} for none - */ - public Backend setTrafficDuration(java.lang.String trafficDuration) { - this.trafficDuration = trafficDuration; - return this; - } - - @Override - public Backend set(String fieldName, Object value) { - return (Backend) super.set(fieldName, value); - } - - @Override - public Backend clone() { - return (Backend) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucket.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucket.java deleted file mode 100644 index 9afce8f0ba1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucket.java +++ /dev/null @@ -1,468 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Cloud Storage Bucket resource. - * - * This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more - * information, readBackend Buckets. - * - *

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 BackendBucket extends com.google.api.client.json.GenericJson { - - /** - * Cloud Storage bucket name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bucketName; - - /** - * Cloud CDN configuration for this BackendBucket. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendBucketCdnPolicy cdnPolicy; - - /** - * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding - * header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String compressionMode; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Headers that the Application Load Balancer should add to proxied responses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customResponseHeaders; - - /** - * An optional textual description of the resource; provided by the client when the resource is - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] The resource URL for the edge security policy associated with this backend - * bucket. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String edgeSecurityPolicy; - - /** - * If true, enable Cloud CDN for this BackendBucket. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableCdn; - - /** - * [Output Only] Unique identifier for the resource; 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. Type of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. - * - * If loadBalancingScheme is not specified, the backend bucket can be used by classic global - * external load balancers, or global application external load balancers, or both. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String loadBalancingScheme; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendBucketParams params; - - /** - * Output only. [Output Only] URL of the region where the regional backend bucket resides. This - * field is not applicable to global backend buckets. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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] List of resources referencing that backend bucket. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List usedBy; - - /** - * Cloud Storage bucket name. - * @return value or {@code null} for none - */ - public java.lang.String getBucketName() { - return bucketName; - } - - /** - * Cloud Storage bucket name. - * @param bucketName bucketName or {@code null} for none - */ - public BackendBucket setBucketName(java.lang.String bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * Cloud CDN configuration for this BackendBucket. - * @return value or {@code null} for none - */ - public BackendBucketCdnPolicy getCdnPolicy() { - return cdnPolicy; - } - - /** - * Cloud CDN configuration for this BackendBucket. - * @param cdnPolicy cdnPolicy or {@code null} for none - */ - public BackendBucket setCdnPolicy(BackendBucketCdnPolicy cdnPolicy) { - this.cdnPolicy = cdnPolicy; - return this; - } - - /** - * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding - * header. - * @return value or {@code null} for none - */ - public java.lang.String getCompressionMode() { - return compressionMode; - } - - /** - * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding - * header. - * @param compressionMode compressionMode or {@code null} for none - */ - public BackendBucket setCompressionMode(java.lang.String compressionMode) { - this.compressionMode = compressionMode; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public BackendBucket setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Headers that the Application Load Balancer should add to proxied responses. - * @return value or {@code null} for none - */ - public java.util.List getCustomResponseHeaders() { - return customResponseHeaders; - } - - /** - * Headers that the Application Load Balancer should add to proxied responses. - * @param customResponseHeaders customResponseHeaders or {@code null} for none - */ - public BackendBucket setCustomResponseHeaders(java.util.List customResponseHeaders) { - this.customResponseHeaders = customResponseHeaders; - return this; - } - - /** - * An optional textual description of the resource; provided by the client when the resource is - * created. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional textual description of the resource; provided by the client when the resource is - * created. - * @param description description or {@code null} for none - */ - public BackendBucket setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] The resource URL for the edge security policy associated with this backend - * bucket. - * @return value or {@code null} for none - */ - public java.lang.String getEdgeSecurityPolicy() { - return edgeSecurityPolicy; - } - - /** - * [Output Only] The resource URL for the edge security policy associated with this backend - * bucket. - * @param edgeSecurityPolicy edgeSecurityPolicy or {@code null} for none - */ - public BackendBucket setEdgeSecurityPolicy(java.lang.String edgeSecurityPolicy) { - this.edgeSecurityPolicy = edgeSecurityPolicy; - return this; - } - - /** - * If true, enable Cloud CDN for this BackendBucket. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableCdn() { - return enableCdn; - } - - /** - * If true, enable Cloud CDN for this BackendBucket. - * @param enableCdn enableCdn or {@code null} for none - */ - public BackendBucket setEnableCdn(java.lang.Boolean enableCdn) { - this.enableCdn = enableCdn; - return this; - } - - /** - * [Output Only] Unique identifier for the resource; defined by the server. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public BackendBucket setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. Type of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. - * @param kind kind or {@code null} for none - */ - public BackendBucket setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. - * - * If loadBalancingScheme is not specified, the backend bucket can be used by classic global - * external load balancers, or global application external load balancers, or both. - * @return value or {@code null} for none - */ - public java.lang.String getLoadBalancingScheme() { - return loadBalancingScheme; - } - - /** - * The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. - * - * If loadBalancingScheme is not specified, the backend bucket can be used by classic global - * external load balancers, or global application external load balancers, or both. - * @param loadBalancingScheme loadBalancingScheme or {@code null} for none - */ - public BackendBucket setLoadBalancingScheme(java.lang.String loadBalancingScheme) { - this.loadBalancingScheme = loadBalancingScheme; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 BackendBucket setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public BackendBucketParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public BackendBucket setParams(BackendBucketParams params) { - this.params = params; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional backend bucket resides. This - * field is not applicable to global backend buckets. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional backend bucket resides. This - * field is not applicable to global backend buckets. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public BackendBucket setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public BackendBucket setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] List of resources referencing that backend bucket. - * @return value or {@code null} for none - */ - public java.util.List getUsedBy() { - return usedBy; - } - - /** - * Output only. [Output Only] List of resources referencing that backend bucket. - * @param usedBy usedBy or {@code null} for none - */ - public BackendBucket setUsedBy(java.util.List usedBy) { - this.usedBy = usedBy; - return this; - } - - @Override - public BackendBucket set(String fieldName, Object value) { - return (BackendBucket) super.set(fieldName, value); - } - - @Override - public BackendBucket clone() { - return (BackendBucket) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketAggregatedList.java deleted file mode 100644 index 487cf226e1a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketAggregatedList.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendBucketAggregatedList. - * - *

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 BackendBucketAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 BackendBucketsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 BackendBucketAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of BackendBucketsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of BackendBucketsScopedList resources. - * @param items items or {@code null} for none - */ - public BackendBucketAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public BackendBucketAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public BackendBucketAggregatedList 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 BackendBucketAggregatedList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 BackendBucketAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendBucketAggregatedList set(String fieldName, Object value) { - return (BackendBucketAggregatedList) super.set(fieldName, value); - } - - @Override - public BackendBucketAggregatedList clone() { - return (BackendBucketAggregatedList) 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 BackendBucketAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicy.java deleted file mode 100644 index a946ac49a5a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicy.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing Cloud CDN configuration for a backend bucket. - * - *

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 BackendBucketCdnPolicy extends com.google.api.client.json.GenericJson { - - /** - * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization - * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode - * settings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bypassCacheOnRequestHeaders; - - /** - * The CacheKeyPolicy for this CdnPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendBucketCdnPolicyCacheKeyPolicy cacheKeyPolicy; - - /** - * Specifies the cache setting for all responses from this backend. The possible values are: - * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses - * without these headers will not be cached at Google's edge, and will require a full trip to the - * origin on every request, potentially impacting performance and increasing load on the origin - * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" - * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching - * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static - * content, including common image formats, media (video and audio), and web assets (JavaScript - * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content - * (including HTML), will not be cached. - * - * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cacheMode; - - /** - * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- - * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and - * default_ttl is used for the response max-age directive, along with a "public" directive. For - * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if - * specified), or else sets the response max-age directive to the lesser of the client_ttl and - * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is - * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s - * (1 year). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer clientTtl; - - /** - * Specifies the default TTL for cached content served by this origin for responses that do not - * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always - * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but - * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the - * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that - * infrequently accessed objects may be evicted from the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer defaultTtl; - - /** - * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives - * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than - * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of - * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a - * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting - * that infrequently accessed objects may be evicted from the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxTtl; - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or - * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that - * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to - * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, - * and override any caching headers. By default, Cloud CDN will apply the following default TTLs - * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), - * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean negativeCaching; - - /** - * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to - * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * negative_caching_policy, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List negativeCachingPolicy; - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean requestCoalescing; - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer serveWhileStale; - - /** - * Maximum number of seconds the response to a signed URL request will be considered fresh. After - * this time period, the response will be revalidated before being served. Defaults to 1hr - * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as - * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, - * regardless of any existing Cache-Control header. The actual headers served in responses will - * not be altered. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long signedUrlCacheMaxAgeSec; - - /** - * [Output Only] Names of the keys for signing request URLs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List signedUrlKeyNames; - - /** - * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization - * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode - * settings. - * @return value or {@code null} for none - */ - public java.util.List getBypassCacheOnRequestHeaders() { - return bypassCacheOnRequestHeaders; - } - - /** - * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization - * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode - * settings. - * @param bypassCacheOnRequestHeaders bypassCacheOnRequestHeaders or {@code null} for none - */ - public BackendBucketCdnPolicy setBypassCacheOnRequestHeaders(java.util.List bypassCacheOnRequestHeaders) { - this.bypassCacheOnRequestHeaders = bypassCacheOnRequestHeaders; - return this; - } - - /** - * The CacheKeyPolicy for this CdnPolicy. - * @return value or {@code null} for none - */ - public BackendBucketCdnPolicyCacheKeyPolicy getCacheKeyPolicy() { - return cacheKeyPolicy; - } - - /** - * The CacheKeyPolicy for this CdnPolicy. - * @param cacheKeyPolicy cacheKeyPolicy or {@code null} for none - */ - public BackendBucketCdnPolicy setCacheKeyPolicy(BackendBucketCdnPolicyCacheKeyPolicy cacheKeyPolicy) { - this.cacheKeyPolicy = cacheKeyPolicy; - return this; - } - - /** - * Specifies the cache setting for all responses from this backend. The possible values are: - * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses - * without these headers will not be cached at Google's edge, and will require a full trip to the - * origin on every request, potentially impacting performance and increasing load on the origin - * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" - * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching - * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static - * content, including common image formats, media (video and audio), and web assets (JavaScript - * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content - * (including HTML), will not be cached. - * - * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - * @return value or {@code null} for none - */ - public java.lang.String getCacheMode() { - return cacheMode; - } - - /** - * Specifies the cache setting for all responses from this backend. The possible values are: - * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses - * without these headers will not be cached at Google's edge, and will require a full trip to the - * origin on every request, potentially impacting performance and increasing load on the origin - * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" - * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching - * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static - * content, including common image formats, media (video and audio), and web assets (JavaScript - * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content - * (including HTML), will not be cached. - * - * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - * @param cacheMode cacheMode or {@code null} for none - */ - public BackendBucketCdnPolicy setCacheMode(java.lang.String cacheMode) { - this.cacheMode = cacheMode; - return this; - } - - /** - * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- - * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and - * default_ttl is used for the response max-age directive, along with a "public" directive. For - * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if - * specified), or else sets the response max-age directive to the lesser of the client_ttl and - * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is - * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s - * (1 year). - * @return value or {@code null} for none - */ - public java.lang.Integer getClientTtl() { - return clientTtl; - } - - /** - * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- - * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and - * default_ttl is used for the response max-age directive, along with a "public" directive. For - * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if - * specified), or else sets the response max-age directive to the lesser of the client_ttl and - * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is - * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s - * (1 year). - * @param clientTtl clientTtl or {@code null} for none - */ - public BackendBucketCdnPolicy setClientTtl(java.lang.Integer clientTtl) { - this.clientTtl = clientTtl; - return this; - } - - /** - * Specifies the default TTL for cached content served by this origin for responses that do not - * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always - * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but - * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the - * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that - * infrequently accessed objects may be evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public java.lang.Integer getDefaultTtl() { - return defaultTtl; - } - - /** - * Specifies the default TTL for cached content served by this origin for responses that do not - * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always - * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but - * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the - * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that - * infrequently accessed objects may be evicted from the cache before the defined TTL. - * @param defaultTtl defaultTtl or {@code null} for none - */ - public BackendBucketCdnPolicy setDefaultTtl(java.lang.Integer defaultTtl) { - this.defaultTtl = defaultTtl; - return this; - } - - /** - * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives - * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than - * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of - * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a - * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting - * that infrequently accessed objects may be evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxTtl() { - return maxTtl; - } - - /** - * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives - * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than - * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of - * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a - * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting - * that infrequently accessed objects may be evicted from the cache before the defined TTL. - * @param maxTtl maxTtl or {@code null} for none - */ - public BackendBucketCdnPolicy setMaxTtl(java.lang.Integer maxTtl) { - this.maxTtl = maxTtl; - return this; - } - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or - * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that - * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to - * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, - * and override any caching headers. By default, Cloud CDN will apply the following default TTLs - * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), - * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * @return value or {@code null} for none - */ - public java.lang.Boolean getNegativeCaching() { - return negativeCaching; - } - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or - * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that - * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to - * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, - * and override any caching headers. By default, Cloud CDN will apply the following default TTLs - * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), - * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * @param negativeCaching negativeCaching or {@code null} for none - */ - public BackendBucketCdnPolicy setNegativeCaching(java.lang.Boolean negativeCaching) { - this.negativeCaching = negativeCaching; - return this; - } - - /** - * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to - * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * negative_caching_policy, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * @return value or {@code null} for none - */ - public java.util.List getNegativeCachingPolicy() { - return negativeCachingPolicy; - } - - /** - * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to - * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * negative_caching_policy, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * @param negativeCachingPolicy negativeCachingPolicy or {@code null} for none - */ - public BackendBucketCdnPolicy setNegativeCachingPolicy(java.util.List negativeCachingPolicy) { - this.negativeCachingPolicy = negativeCachingPolicy; - return this; - } - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. - * @return value or {@code null} for none - */ - public java.lang.Boolean getRequestCoalescing() { - return requestCoalescing; - } - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. - * @param requestCoalescing requestCoalescing or {@code null} for none - */ - public BackendBucketCdnPolicy setRequestCoalescing(java.lang.Boolean requestCoalescing) { - this.requestCoalescing = requestCoalescing; - return this; - } - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * @return value or {@code null} for none - */ - public java.lang.Integer getServeWhileStale() { - return serveWhileStale; - } - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * @param serveWhileStale serveWhileStale or {@code null} for none - */ - public BackendBucketCdnPolicy setServeWhileStale(java.lang.Integer serveWhileStale) { - this.serveWhileStale = serveWhileStale; - return this; - } - - /** - * Maximum number of seconds the response to a signed URL request will be considered fresh. After - * this time period, the response will be revalidated before being served. Defaults to 1hr - * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as - * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, - * regardless of any existing Cache-Control header. The actual headers served in responses will - * not be altered. - * @return value or {@code null} for none - */ - public java.lang.Long getSignedUrlCacheMaxAgeSec() { - return signedUrlCacheMaxAgeSec; - } - - /** - * Maximum number of seconds the response to a signed URL request will be considered fresh. After - * this time period, the response will be revalidated before being served. Defaults to 1hr - * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as - * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, - * regardless of any existing Cache-Control header. The actual headers served in responses will - * not be altered. - * @param signedUrlCacheMaxAgeSec signedUrlCacheMaxAgeSec or {@code null} for none - */ - public BackendBucketCdnPolicy setSignedUrlCacheMaxAgeSec(java.lang.Long signedUrlCacheMaxAgeSec) { - this.signedUrlCacheMaxAgeSec = signedUrlCacheMaxAgeSec; - return this; - } - - /** - * [Output Only] Names of the keys for signing request URLs. - * @return value or {@code null} for none - */ - public java.util.List getSignedUrlKeyNames() { - return signedUrlKeyNames; - } - - /** - * [Output Only] Names of the keys for signing request URLs. - * @param signedUrlKeyNames signedUrlKeyNames or {@code null} for none - */ - public BackendBucketCdnPolicy setSignedUrlKeyNames(java.util.List signedUrlKeyNames) { - this.signedUrlKeyNames = signedUrlKeyNames; - return this; - } - - @Override - public BackendBucketCdnPolicy set(String fieldName, Object value) { - return (BackendBucketCdnPolicy) super.set(fieldName, value); - } - - @Override - public BackendBucketCdnPolicy clone() { - return (BackendBucketCdnPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java deleted file mode 100644 index ba1f777a826..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyBypassCacheOnRequestHeader.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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.preview.model; - -/** - * Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization - * headers. Values are case insensitive. The presence of such a header overrides the cache_mode - * setting. - * - *

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 BackendBucketCdnPolicyBypassCacheOnRequestHeader extends com.google.api.client.json.GenericJson { - - /** - * The header field name to match on when bypassing cache. Values are case-insensitive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerName; - - /** - * The header field name to match on when bypassing cache. Values are case-insensitive. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderName() { - return headerName; - } - - /** - * The header field name to match on when bypassing cache. Values are case-insensitive. - * @param headerName headerName or {@code null} for none - */ - public BackendBucketCdnPolicyBypassCacheOnRequestHeader setHeaderName(java.lang.String headerName) { - this.headerName = headerName; - return this; - } - - @Override - public BackendBucketCdnPolicyBypassCacheOnRequestHeader set(String fieldName, Object value) { - return (BackendBucketCdnPolicyBypassCacheOnRequestHeader) super.set(fieldName, value); - } - - @Override - public BackendBucketCdnPolicyBypassCacheOnRequestHeader clone() { - return (BackendBucketCdnPolicyBypassCacheOnRequestHeader) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyCacheKeyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyCacheKeyPolicy.java deleted file mode 100644 index f6b413a658b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyCacheKeyPolicy.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing what to include in the cache key for a request for Cloud CDN. - * - *

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 BackendBucketCdnPolicyCacheKeyPolicy extends com.google.api.client.json.GenericJson { - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includeHttpHeaders; - - /** - * Names of query string parameters to include in cache keys. Default parameters are always - * included. '&' and '=' will be percent encoded and not treated as delimiters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List queryStringWhitelist; - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * @return value or {@code null} for none - */ - public java.util.List getIncludeHttpHeaders() { - return includeHttpHeaders; - } - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * @param includeHttpHeaders includeHttpHeaders or {@code null} for none - */ - public BackendBucketCdnPolicyCacheKeyPolicy setIncludeHttpHeaders(java.util.List includeHttpHeaders) { - this.includeHttpHeaders = includeHttpHeaders; - return this; - } - - /** - * Names of query string parameters to include in cache keys. Default parameters are always - * included. '&' and '=' will be percent encoded and not treated as delimiters. - * @return value or {@code null} for none - */ - public java.util.List getQueryStringWhitelist() { - return queryStringWhitelist; - } - - /** - * Names of query string parameters to include in cache keys. Default parameters are always - * included. '&' and '=' will be percent encoded and not treated as delimiters. - * @param queryStringWhitelist queryStringWhitelist or {@code null} for none - */ - public BackendBucketCdnPolicyCacheKeyPolicy setQueryStringWhitelist(java.util.List queryStringWhitelist) { - this.queryStringWhitelist = queryStringWhitelist; - return this; - } - - @Override - public BackendBucketCdnPolicyCacheKeyPolicy set(String fieldName, Object value) { - return (BackendBucketCdnPolicyCacheKeyPolicy) super.set(fieldName, value); - } - - @Override - public BackendBucketCdnPolicyCacheKeyPolicy clone() { - return (BackendBucketCdnPolicyCacheKeyPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyNegativeCachingPolicy.java deleted file mode 100644 index 7930c8f7de5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketCdnPolicyNegativeCachingPolicy.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specify CDN TTLs for response error codes. - * - *

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 BackendBucketCdnPolicyNegativeCachingPolicy extends com.google.api.client.json.GenericJson { - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer code; - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be - * evicted from the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ttl; - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * @return value or {@code null} for none - */ - public java.lang.Integer getCode() { - return code; - } - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * @param code code or {@code null} for none - */ - public BackendBucketCdnPolicyNegativeCachingPolicy setCode(java.lang.Integer code) { - this.code = code; - return this; - } - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be - * evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public java.lang.Integer getTtl() { - return ttl; - } - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be - * evicted from the cache before the defined TTL. - * @param ttl ttl or {@code null} for none - */ - public BackendBucketCdnPolicyNegativeCachingPolicy setTtl(java.lang.Integer ttl) { - this.ttl = ttl; - return this; - } - - @Override - public BackendBucketCdnPolicyNegativeCachingPolicy set(String fieldName, Object value) { - return (BackendBucketCdnPolicyNegativeCachingPolicy) super.set(fieldName, value); - } - - @Override - public BackendBucketCdnPolicyNegativeCachingPolicy clone() { - return (BackendBucketCdnPolicyNegativeCachingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketListUsable.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketListUsable.java deleted file mode 100644 index 0e81b1f7bd2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketListUsable.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendBucketListUsable. - * - *

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 BackendBucketListUsable extends com.google.api.client.json.GenericJson { - - /** - * [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 BackendBucket 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 BackendBucket 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(BackendBucket.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 BackendBucketListUsable setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of BackendBucket resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of BackendBucket resources. - * @param items items or {@code null} for none - */ - public BackendBucketListUsable setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. - * @param kind kind or {@code null} for none - */ - public BackendBucketListUsable setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public BackendBucketListUsable 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 BackendBucketListUsable setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 BackendBucketListUsable setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendBucketListUsable set(String fieldName, Object value) { - return (BackendBucketListUsable) super.set(fieldName, value); - } - - @Override - public BackendBucketListUsable clone() { - return (BackendBucketListUsable) 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 BackendBucketListUsableWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketParams.java deleted file mode 100644 index 9519c43adb4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional Backend Bucket parameters. - * - *

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 BackendBucketParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public BackendBucketParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public BackendBucketParams set(String fieldName, Object value) { - return (BackendBucketParams) super.set(fieldName, value); - } - - @Override - public BackendBucketParams clone() { - return (BackendBucketParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketUsedBy.java deleted file mode 100644 index bd91407441e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketUsedBy.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendBucketUsedBy. - * - *

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 BackendBucketUsedBy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reference; - - /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. - * @return value or {@code null} for none - */ - public java.lang.String getReference() { - return reference; - } - - /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. - * @param reference reference or {@code null} for none - */ - public BackendBucketUsedBy setReference(java.lang.String reference) { - this.reference = reference; - return this; - } - - @Override - public BackendBucketUsedBy set(String fieldName, Object value) { - return (BackendBucketUsedBy) super.set(fieldName, value); - } - - @Override - public BackendBucketUsedBy clone() { - return (BackendBucketUsedBy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketsScopedList.java deleted file mode 100644 index 5781a774a32..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendBucketsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendBucketsScopedList. - * - *

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 BackendBucketsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of BackendBuckets contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List backendBuckets; - - static { - // hack to force ProGuard to consider BackendBucket 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(BackendBucket.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of BackendBuckets contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getBackendBuckets() { - return backendBuckets; - } - - /** - * A list of BackendBuckets contained in this scope. - * @param backendBuckets backendBuckets or {@code null} for none - */ - public BackendBucketsScopedList setBackendBuckets(java.util.List backendBuckets) { - this.backendBuckets = backendBuckets; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public BackendBucketsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendBucketsScopedList set(String fieldName, Object value) { - return (BackendBucketsScopedList) super.set(fieldName, value); - } - - @Override - public BackendBucketsScopedList clone() { - return (BackendBucketsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 BackendBucketsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BackendCustomMetric.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendCustomMetric.java deleted file mode 100644 index 381f45b0846..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendCustomMetric.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Custom Metrics are used for CUSTOM_METRICS balancing_mode. - * - *

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 BackendCustomMetric extends com.google.api.client.json.GenericJson { - - /** - * If true, the metric data is collected and reported to Cloud Monitoring, but is not used for - * load balancing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean dryRun; - - /** - * Optional parameter to define a target utilization for the Custom Metrics balancing mode. The - * valid range is [0.0, 1.0]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float maxUtilization; - - /** - * Name of a custom utilization signal. The name must be 1-64 characters long and match the - * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be - * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase - * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For - * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global - * or regional backend service with the loadBalancingScheme set to - * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * If true, the metric data is collected and reported to Cloud Monitoring, but is not used for - * load balancing. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDryRun() { - return dryRun; - } - - /** - * If true, the metric data is collected and reported to Cloud Monitoring, but is not used for - * load balancing. - * @param dryRun dryRun or {@code null} for none - */ - public BackendCustomMetric setDryRun(java.lang.Boolean dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Optional parameter to define a target utilization for the Custom Metrics balancing mode. The - * valid range is [0.0, 1.0]. - * @return value or {@code null} for none - */ - public java.lang.Float getMaxUtilization() { - return maxUtilization; - } - - /** - * Optional parameter to define a target utilization for the Custom Metrics balancing mode. The - * valid range is [0.0, 1.0]. - * @param maxUtilization maxUtilization or {@code null} for none - */ - public BackendCustomMetric setMaxUtilization(java.lang.Float maxUtilization) { - this.maxUtilization = maxUtilization; - return this; - } - - /** - * Name of a custom utilization signal. The name must be 1-64 characters long and match the - * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be - * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase - * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For - * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global - * or regional backend service with the loadBalancingScheme set to - * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of a custom utilization signal. The name must be 1-64 characters long and match the - * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be - * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase - * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For - * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global - * or regional backend service with the loadBalancingScheme set to - * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. - * @param name name or {@code null} for none - */ - public BackendCustomMetric setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public BackendCustomMetric set(String fieldName, Object value) { - return (BackendCustomMetric) super.set(fieldName, value); - } - - @Override - public BackendCustomMetric clone() { - return (BackendCustomMetric) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendService.java deleted file mode 100644 index fa684f6360e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendService.java +++ /dev/null @@ -1,2082 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Backend Service resource. - * - * A backend service defines how Google Cloud load balancers distribute traffic. The backend service - * configuration contains a set of values, such as the protocol used to connect to backends, various - * distribution and session settings, health checks, and timeouts. These settings provide fine- - * grained control over how your load balancer behaves. Most of the settings have default values - * that allow for easy configuration if you need to get started quickly. - * - * Backend services in Google Compute Engine can be either regionally or globally scoped. - * - * * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) * - * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) - * - * For more information, seeBackend Services. - * - *

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 BackendService extends com.google.api.client.json.GenericJson { - - /** - * Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and - * Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. - * - * If set to 0, the cookie is non-persistent and lasts only until the end of the browser session - * (or equivalent). The maximum allowed value is two weeks (1,209,600). - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer affinityCookieTtlSec; - - /** - * The list of backends that serve this BackendService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List backends; - - static { - // hack to force ProGuard to consider Backend 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(Backend.class); - } - - /** - * Cloud CDN configuration for this BackendService. Only available for specified load balancer - * types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceCdnPolicy cdnPolicy; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CircuitBreakers circuitBreakers; - - /** - * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding - * header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String compressionMode; - - /** - * connectionDraining cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ConnectionDraining connectionDraining; - - /** - * Connection Tracking configuration for this BackendService. Connection tracking policy settings - * are only available for external passthrough Network Load Balancers and internal passthrough - * Network Load Balancers. - * - * connectionTrackingPolicy cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceConnectionTrackingPolicy connectionTrackingPolicy; - - /** - * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP - * headers, cookies or other properties. This load balancing policy is applicable only for HTTP - * connections. The affinity to a particular destination host will be lost when one or more hosts - * are added/removed from the destination service. This field specifies parameters that control - * consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV - * orRING_HASH. - * - * This field is applicable to either: - A regional backend service with the service - * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ConsistentHashLoadBalancerSettings consistentHash; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customMetrics; - - /** - * Headers that the load balancer adds to proxied requests. See [Creating custom - * headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customRequestHeaders; - - /** - * Headers that the load balancer adds to proxied responses. See [Creating custom - * headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customResponseHeaders; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] The resource URL for the edge security policy associated with this backend - * service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String edgeSecurityPolicy; - - /** - * If true, enables Cloud CDN for the backend service of a global external Application Load - * Balancer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableCDN; - - /** - * Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and - * TEST_ALL_TRAFFIC. - * - * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. - * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to - * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by - * percentage using externalManagedMigrationTestingPercentage. - * - * Rolling back a migration requires the states to be set in reverse order. So changing the scheme - * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same - * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to - * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalManagedMigrationState; - - /** - * Determines the fraction of requests that should be processed by the Global external Application - * Load Balancer. - * - * The value of this field must be in the range [0, 100]. - * - * Session affinity options will slightly affect this routing behavior, for more details, - * see:Session Affinity. - * - * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL - * (when using the classic Application Load Balancer) and the migration state is - * TEST_BY_PERCENTAGE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float externalManagedMigrationTestingPercentage; - - /** - * Requires at least one backend instance group to be defined as a backup (failover) backend. For - * load balancers that have configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with - * haPolicy.failoverPolicy cannot be used by global external Passthrough Network Load Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceFailoverPolicy failoverPolicy; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- - * date fingerprint must be provided in order to update the BackendService, otherwise the request - * will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a BackendService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. - * - * The backends of this regional backend service must only specify zonal network endpoint groups - * (NEGs) of type GCE_VM_IP. - * - * When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend - * service must set the network field. All zonal NEGs must belong to the same network. However, - * individual NEGs can belong to different subnetworks of that network. - * - * When haPolicy is specified, the set of attached network endpoints across all backends comprise - * an High Availability domain from which one endpoint is selected as the active endpoint (the - * leader) that receives all traffic. - * - * haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. - * - * Note that haPolicy is not for load balancing, and therefore cannot be specified with - * sessionAffinity, connectionTrackingPolicy, and failoverPolicy. - * - * haPolicy requires customers to be responsible for tracking backend endpoint health and electing - * a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with - * healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers - * and Internal Passthrough Network Load Balancers.haPolicy cannot be used by global external - * Passthrough Network Load Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceHAPolicy haPolicy; - - /** - * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) - * resource for health checking this backend service. Not all backend services support legacy - * health checks. See Load balancer guide. Currently, at most one health check can be specified - * for each backend service. Backend services with instance group or zonal NEG backends must have - * a health check unless haPolicy is specified. Backend services with internet or serverless NEG - * backends must not have a health check. - * - * healthChecks[] cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthChecks; - - /** - * The configurations for Identity-Aware Proxy on this resource. Not available for internal - * passthrough Network Load Balancers and external passthrough Network Load Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceIAP iap; - - /** - * [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; - - /** - * Specifies a preference for traffic sent from the proxy to the backend (or from the client to - * the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 - * traffic to the backends of the backend service (Instance Group, Managed Instance Group, - * Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 - * health checks are used to check the health of the backends. This is the default setting. - * - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 - * address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic - * to the backends of the backend service (Instance Group, Managed Instance Group, Network - * Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health - * checks are used to check the health of the backends. - * - * This field is applicable to either: - Advanced global external Application Load - * Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load - * Balancer, - Internal proxy Network Load Balancer (load balancing scheme - * INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme - * INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load - * balancing scheme INTERNAL_SELF_MANAGED). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddressSelectionPolicy; - - /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Specifies the load balancer type. A backend service created for one type of load balancer - * cannot be used with another. For more information, refer to Backend services product and scheme - * table. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String loadBalancingScheme; - - /** - * A list of locality load-balancing policies to be used in order of preference. When you use - * localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy - * or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in - * the localityLbPolicy field. - * - * For an example of how to use this field, seeDefine a list of preferred policies. - * - * Caution: This field and its children are intended for use in a service mesh that includes gRPC - * clients only. Envoy proxies can't use backend services that have this configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List localityLbPolicies; - - /** - * The load balancing algorithm used within the scope of the locality. The possible values are: - * - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round - * robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two - * random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The - * ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has - * the property that the addition/removal of a host from a set of N hosts only affects 1/N of - * the requests. - RANDOM: The load balancer selects a random healthy host. - - * ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, - * i.e., connections are opened to the same address as the destination address of the incoming - * connection before the connection was redirected to the load balancer. - MAGLEV: used as a - * drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash - * but has faster table lookup build times and host selection times. For more information about - * Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - - * WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights - * computed from Backend reported Custom Metrics. If set, the Backend Service responses are - * expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The - * reported metrics to use for computing the weights are specified via thecustomMetrics field. - * - WEIGHTED_MAGLEV: Per-endpoint weighted load balancing via health check reported weights. - * If set, the backend service must configure an HTTP-based Health Check, and health check - * replies are expected to contain the non-standard HTTP response header fieldX-Load-Balancing- - * Endpoint-Weight to specify the per-endpoint weights. If set, load balancing is weighted - * based on the per-endpoint weights reported in the last processed health check replies, as - * long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. - * Otherwise, load balancing remains equal-weight. - * - * This field is applicable to either: - A regional backend service with the service - * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. - * - * If sessionAffinity is not configured—that is, if session affinity remains at the default value - * of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set - * to a value other than NONE, then the default value for localityLbPolicy isMAGLEV. - * - * Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL - * map that is bound to target gRPC proxy that has validateForProxyless field set to true. - * - * localityLbPolicy cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String localityLbPolicy; - - /** - * This field denotes the logging options for the load balancer traffic served by this backend - * service. If logging is enabled, logs will be exported to Stackdriver. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceLogConfig logConfig; - - /** - * Specifies the default maximum duration (timeout) for streams to this service. Duration is - * computed from the beginning of the stream until the response has been completely processed, - * including all retries. A stream that does not complete in this duration is closed. - * - * If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. - * - * This value can be overridden in the PathMatcher configuration of the UrlMap that references - * this backend service. - * - * This field is only allowed when the loadBalancingScheme of the backend service is - * INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxStreamDuration; - - /** - * Deployment metadata associated with the resource to be set by a GKE hub controller and read by - * the backend RCTH - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map metadatas; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The URL of the network to which this backend service belongs. - * - * This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is - * enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is - * enabled. - * - * This field can only be specified when the load balancing scheme is set toINTERNAL, or when the - * load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Configures traffic steering properties of internal passthrough Network Load Balancers. - * - * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy; - - /** - * Information about the resource or system that manages the backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceOrchestrationInfo orchestrationInfo; - - /** - * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool - * of each individual proxy instance that processes the traffic for the given backend service. If - * not set, this feature is considered disabled. - * - * Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool - * and returning them back to the pool) are executed independently by each proxy instance of the - * load balancer. In most cases, more than one proxy instance handles the traffic received by a - * backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by - * only some of the proxies, and while this happens, other proxies may continue to send requests - * to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. - * - * Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints - * in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG - * (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud - * Functions Services - Private Service Connect NEGs, that resolve to Google-managed - * regional API endpoints or managed services published using Private Service Connect - * - * Applicable backend service types can be: - A global backend service with the - * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional - * backend service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and - * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for - * Serverless NEGs. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private OutlierDetection outlierDetection; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceParams params; - - /** - * Deprecated in favor of portName. The TCP port to connect on the backend. The default value is - * 80. For internal passthrough Network Load Balancers and external passthrough Network Load - * Balancers, omit port. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * A named port on a backend instance group representing the port for communication to the backend - * VMs in that group. The named port must be [defined on each backend instance - * group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This - * parameter has no meaning if the backends are NEGs. For internal passthrough Network Load - * Balancers and external passthrough Network Load Balancers, omit port_name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * The protocol this BackendService uses to communicate with backends. - * - * Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP, GRPC, or UNSPECIFIED, depending on - * the chosen load balancer or Traffic Director configuration. Refer to Load balancing features - * for more information. - * - * Must be set to GRPC when the backend service is referenced by a URL map that is bound to target - * gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String protocol; - - /** - * Output only. [Output Only] URL of the region where the regional backend service resides. This - * field is not applicable to global backend services. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [Output Only] The resource URL for the security policy associated with this backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * This field specifies the security settings that apply to this backend service. This field is - * applicable to a global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecuritySettings securitySettings; - - /** - * [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; - - /** - * URLs of networkservices.ServiceBinding resources. - * - * Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends - * and health checks must be both empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List serviceBindings; - - /** - * URL to networkservices.ServiceLbPolicy resource. - * - * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED - * for a regional backend service. For a global backend service, the service lb policy must be - * global. For a regional backend service, the service lb policy must be regional and in the same - * region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceLbPolicy; - - /** - * Type of session affinity to use. The default is NONE. - * - * Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map - * that is bound to target gRPC proxy that has validateForProxyless field set to true. - * - * For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend- - * service#session_affinity). - * - * sessionAffinity cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sessionAffinity; - - /** - * Describes the HTTP cookie used for stateful session affinity. This field is applicable and - * required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceHttpCookie strongSessionAffinityCookie; - - /** - * subsetting cannot be specified with haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Subsetting subsetting; - - /** - * The backend service timeout has a different meaning depending on the type of load balancer. For - * more information see, Backend service settings. The default is 30 seconds. The full range of - * timeout values allowed goes from 1 through 2,147,483,647 seconds. - * - * This value can be overridden in the PathMatcher configuration of the UrlMap that references - * this backend service. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer timeoutSec; - - /** - * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend - * protocol is SSL, HTTPS or HTTP2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceTlsSettings tlsSettings; - - /** - * Output only. [Output Only] List of resources referencing given backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List usedBy; - - /** - * Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and - * Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. - * - * If set to 0, the cookie is non-persistent and lasts only until the end of the browser session - * (or equivalent). The maximum allowed value is two weeks (1,209,600). - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.lang.Integer getAffinityCookieTtlSec() { - return affinityCookieTtlSec; - } - - /** - * Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and - * Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. - * - * If set to 0, the cookie is non-persistent and lasts only until the end of the browser session - * (or equivalent). The maximum allowed value is two weeks (1,209,600). - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param affinityCookieTtlSec affinityCookieTtlSec or {@code null} for none - */ - public BackendService setAffinityCookieTtlSec(java.lang.Integer affinityCookieTtlSec) { - this.affinityCookieTtlSec = affinityCookieTtlSec; - return this; - } - - /** - * The list of backends that serve this BackendService. - * @return value or {@code null} for none - */ - public java.util.List getBackends() { - return backends; - } - - /** - * The list of backends that serve this BackendService. - * @param backends backends or {@code null} for none - */ - public BackendService setBackends(java.util.List backends) { - this.backends = backends; - return this; - } - - /** - * Cloud CDN configuration for this BackendService. Only available for specified load balancer - * types. - * @return value or {@code null} for none - */ - public BackendServiceCdnPolicy getCdnPolicy() { - return cdnPolicy; - } - - /** - * Cloud CDN configuration for this BackendService. Only available for specified load balancer - * types. - * @param cdnPolicy cdnPolicy or {@code null} for none - */ - public BackendService setCdnPolicy(BackendServiceCdnPolicy cdnPolicy) { - this.cdnPolicy = cdnPolicy; - return this; - } - - /** - * @return value or {@code null} for none - */ - public CircuitBreakers getCircuitBreakers() { - return circuitBreakers; - } - - /** - * @param circuitBreakers circuitBreakers or {@code null} for none - */ - public BackendService setCircuitBreakers(CircuitBreakers circuitBreakers) { - this.circuitBreakers = circuitBreakers; - return this; - } - - /** - * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding - * header. - * @return value or {@code null} for none - */ - public java.lang.String getCompressionMode() { - return compressionMode; - } - - /** - * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding - * header. - * @param compressionMode compressionMode or {@code null} for none - */ - public BackendService setCompressionMode(java.lang.String compressionMode) { - this.compressionMode = compressionMode; - return this; - } - - /** - * connectionDraining cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public ConnectionDraining getConnectionDraining() { - return connectionDraining; - } - - /** - * connectionDraining cannot be specified with haPolicy. - * @param connectionDraining connectionDraining or {@code null} for none - */ - public BackendService setConnectionDraining(ConnectionDraining connectionDraining) { - this.connectionDraining = connectionDraining; - return this; - } - - /** - * Connection Tracking configuration for this BackendService. Connection tracking policy settings - * are only available for external passthrough Network Load Balancers and internal passthrough - * Network Load Balancers. - * - * connectionTrackingPolicy cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public BackendServiceConnectionTrackingPolicy getConnectionTrackingPolicy() { - return connectionTrackingPolicy; - } - - /** - * Connection Tracking configuration for this BackendService. Connection tracking policy settings - * are only available for external passthrough Network Load Balancers and internal passthrough - * Network Load Balancers. - * - * connectionTrackingPolicy cannot be specified with haPolicy. - * @param connectionTrackingPolicy connectionTrackingPolicy or {@code null} for none - */ - public BackendService setConnectionTrackingPolicy(BackendServiceConnectionTrackingPolicy connectionTrackingPolicy) { - this.connectionTrackingPolicy = connectionTrackingPolicy; - return this; - } - - /** - * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP - * headers, cookies or other properties. This load balancing policy is applicable only for HTTP - * connections. The affinity to a particular destination host will be lost when one or more hosts - * are added/removed from the destination service. This field specifies parameters that control - * consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV - * orRING_HASH. - * - * This field is applicable to either: - A regional backend service with the service - * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public ConsistentHashLoadBalancerSettings getConsistentHash() { - return consistentHash; - } - - /** - * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP - * headers, cookies or other properties. This load balancing policy is applicable only for HTTP - * connections. The affinity to a particular destination host will be lost when one or more hosts - * are added/removed from the destination service. This field specifies parameters that control - * consistent hashing. This field is only applicable whenlocalityLbPolicy is set to MAGLEV - * orRING_HASH. - * - * This field is applicable to either: - A regional backend service with the service - * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED. - * @param consistentHash consistentHash or {@code null} for none - */ - public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consistentHash) { - this.consistentHash = consistentHash; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. - * @return value or {@code null} for none - */ - public java.util.List getCustomMetrics() { - return customMetrics; - } - - /** - * List of custom metrics that are used for theWEIGHTED_ROUND_ROBIN locality_lb_policy. - * @param customMetrics customMetrics or {@code null} for none - */ - public BackendService setCustomMetrics(java.util.List customMetrics) { - this.customMetrics = customMetrics; - return this; - } - - /** - * Headers that the load balancer adds to proxied requests. See [Creating custom - * headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * @return value or {@code null} for none - */ - public java.util.List getCustomRequestHeaders() { - return customRequestHeaders; - } - - /** - * Headers that the load balancer adds to proxied requests. See [Creating custom - * headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * @param customRequestHeaders customRequestHeaders or {@code null} for none - */ - public BackendService setCustomRequestHeaders(java.util.List customRequestHeaders) { - this.customRequestHeaders = customRequestHeaders; - return this; - } - - /** - * Headers that the load balancer adds to proxied responses. See [Creating custom - * headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * @return value or {@code null} for none - */ - public java.util.List getCustomResponseHeaders() { - return customResponseHeaders; - } - - /** - * Headers that the load balancer adds to proxied responses. See [Creating custom - * headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * @param customResponseHeaders customResponseHeaders or {@code null} for none - */ - public BackendService setCustomResponseHeaders(java.util.List customResponseHeaders) { - this.customResponseHeaders = customResponseHeaders; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public BackendService setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] The resource URL for the edge security policy associated with this backend - * service. - * @return value or {@code null} for none - */ - public java.lang.String getEdgeSecurityPolicy() { - return edgeSecurityPolicy; - } - - /** - * [Output Only] The resource URL for the edge security policy associated with this backend - * service. - * @param edgeSecurityPolicy edgeSecurityPolicy or {@code null} for none - */ - public BackendService setEdgeSecurityPolicy(java.lang.String edgeSecurityPolicy) { - this.edgeSecurityPolicy = edgeSecurityPolicy; - return this; - } - - /** - * If true, enables Cloud CDN for the backend service of a global external Application Load - * Balancer. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableCDN() { - return enableCDN; - } - - /** - * If true, enables Cloud CDN for the backend service of a global external Application Load - * Balancer. - * @param enableCDN enableCDN or {@code null} for none - */ - public BackendService setEnableCDN(java.lang.Boolean enableCDN) { - this.enableCDN = enableCDN; - return this; - } - - /** - * Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and - * TEST_ALL_TRAFFIC. - * - * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. - * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to - * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by - * percentage using externalManagedMigrationTestingPercentage. - * - * Rolling back a migration requires the states to be set in reverse order. So changing the scheme - * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same - * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to - * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. - * @return value or {@code null} for none - */ - public java.lang.String getExternalManagedMigrationState() { - return externalManagedMigrationState; - } - - /** - * Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and - * TEST_ALL_TRAFFIC. - * - * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. - * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to - * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by - * percentage using externalManagedMigrationTestingPercentage. - * - * Rolling back a migration requires the states to be set in reverse order. So changing the scheme - * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same - * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to - * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. - * @param externalManagedMigrationState externalManagedMigrationState or {@code null} for none - */ - public BackendService setExternalManagedMigrationState(java.lang.String externalManagedMigrationState) { - this.externalManagedMigrationState = externalManagedMigrationState; - return this; - } - - /** - * Determines the fraction of requests that should be processed by the Global external Application - * Load Balancer. - * - * The value of this field must be in the range [0, 100]. - * - * Session affinity options will slightly affect this routing behavior, for more details, - * see:Session Affinity. - * - * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL - * (when using the classic Application Load Balancer) and the migration state is - * TEST_BY_PERCENTAGE. - * @return value or {@code null} for none - */ - public java.lang.Float getExternalManagedMigrationTestingPercentage() { - return externalManagedMigrationTestingPercentage; - } - - /** - * Determines the fraction of requests that should be processed by the Global external Application - * Load Balancer. - * - * The value of this field must be in the range [0, 100]. - * - * Session affinity options will slightly affect this routing behavior, for more details, - * see:Session Affinity. - * - * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL - * (when using the classic Application Load Balancer) and the migration state is - * TEST_BY_PERCENTAGE. - * @param externalManagedMigrationTestingPercentage externalManagedMigrationTestingPercentage or {@code null} for none - */ - public BackendService setExternalManagedMigrationTestingPercentage(java.lang.Float externalManagedMigrationTestingPercentage) { - this.externalManagedMigrationTestingPercentage = externalManagedMigrationTestingPercentage; - return this; - } - - /** - * Requires at least one backend instance group to be defined as a backup (failover) backend. For - * load balancers that have configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with - * haPolicy.failoverPolicy cannot be used by global external Passthrough Network Load Balancers. - * @return value or {@code null} for none - */ - public BackendServiceFailoverPolicy getFailoverPolicy() { - return failoverPolicy; - } - - /** - * Requires at least one backend instance group to be defined as a backup (failover) backend. For - * load balancers that have configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). failoverPolicy cannot be specified with - * haPolicy.failoverPolicy cannot be used by global external Passthrough Network Load Balancers. - * @param failoverPolicy failoverPolicy or {@code null} for none - */ - public BackendService setFailoverPolicy(BackendServiceFailoverPolicy failoverPolicy) { - this.failoverPolicy = failoverPolicy; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- - * date fingerprint must be provided in order to update the BackendService, otherwise the request - * will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a BackendService. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- - * date fingerprint must be provided in order to update the BackendService, otherwise the request - * will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a BackendService. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- - * date fingerprint must be provided in order to update the BackendService, otherwise the request - * will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a BackendService. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public BackendService setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a BackendService. An up-to- - * date fingerprint must be provided in order to update the BackendService, otherwise the request - * will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a BackendService. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public BackendService encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. - * - * The backends of this regional backend service must only specify zonal network endpoint groups - * (NEGs) of type GCE_VM_IP. - * - * When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend - * service must set the network field. All zonal NEGs must belong to the same network. However, - * individual NEGs can belong to different subnetworks of that network. - * - * When haPolicy is specified, the set of attached network endpoints across all backends comprise - * an High Availability domain from which one endpoint is selected as the active endpoint (the - * leader) that receives all traffic. - * - * haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. - * - * Note that haPolicy is not for load balancing, and therefore cannot be specified with - * sessionAffinity, connectionTrackingPolicy, and failoverPolicy. - * - * haPolicy requires customers to be responsible for tracking backend endpoint health and electing - * a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with - * healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers - * and Internal Passthrough Network Load Balancers.haPolicy cannot be used by global external - * Passthrough Network Load Balancers. - * @return value or {@code null} for none - */ - public BackendServiceHAPolicy getHaPolicy() { - return haPolicy; - } - - /** - * Configures self-managed High Availability (HA) for External and Internal Protocol Forwarding. - * - * The backends of this regional backend service must only specify zonal network endpoint groups - * (NEGs) of type GCE_VM_IP. - * - * When haPolicy is set for an Internal Passthrough Network Load Balancer, the regional backend - * service must set the network field. All zonal NEGs must belong to the same network. However, - * individual NEGs can belong to different subnetworks of that network. - * - * When haPolicy is specified, the set of attached network endpoints across all backends comprise - * an High Availability domain from which one endpoint is selected as the active endpoint (the - * leader) that receives all traffic. - * - * haPolicy can be added only at backend service creation time. Once set up, it cannot be deleted. - * - * Note that haPolicy is not for load balancing, and therefore cannot be specified with - * sessionAffinity, connectionTrackingPolicy, and failoverPolicy. - * - * haPolicy requires customers to be responsible for tracking backend endpoint health and electing - * a leader among the healthy endpoints. Therefore, haPolicy cannot be specified with - * healthChecks. haPolicy can only be specified for External Passthrough Network Load Balancers - * and Internal Passthrough Network Load Balancers.haPolicy cannot be used by global external - * Passthrough Network Load Balancers. - * @param haPolicy haPolicy or {@code null} for none - */ - public BackendService setHaPolicy(BackendServiceHAPolicy haPolicy) { - this.haPolicy = haPolicy; - return this; - } - - /** - * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) - * resource for health checking this backend service. Not all backend services support legacy - * health checks. See Load balancer guide. Currently, at most one health check can be specified - * for each backend service. Backend services with instance group or zonal NEG backends must have - * a health check unless haPolicy is specified. Backend services with internet or serverless NEG - * backends must not have a health check. - * - * healthChecks[] cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public java.util.List getHealthChecks() { - return healthChecks; - } - - /** - * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) - * resource for health checking this backend service. Not all backend services support legacy - * health checks. See Load balancer guide. Currently, at most one health check can be specified - * for each backend service. Backend services with instance group or zonal NEG backends must have - * a health check unless haPolicy is specified. Backend services with internet or serverless NEG - * backends must not have a health check. - * - * healthChecks[] cannot be specified with haPolicy. - * @param healthChecks healthChecks or {@code null} for none - */ - public BackendService setHealthChecks(java.util.List healthChecks) { - this.healthChecks = healthChecks; - return this; - } - - /** - * The configurations for Identity-Aware Proxy on this resource. Not available for internal - * passthrough Network Load Balancers and external passthrough Network Load Balancers. - * @return value or {@code null} for none - */ - public BackendServiceIAP getIap() { - return iap; - } - - /** - * The configurations for Identity-Aware Proxy on this resource. Not available for internal - * passthrough Network Load Balancers and external passthrough Network Load Balancers. - * @param iap iap or {@code null} for none - */ - public BackendService setIap(BackendServiceIAP iap) { - this.iap = iap; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public BackendService setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Specifies a preference for traffic sent from the proxy to the backend (or from the client to - * the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 - * traffic to the backends of the backend service (Instance Group, Managed Instance Group, - * Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 - * health checks are used to check the health of the backends. This is the default setting. - * - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 - * address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic - * to the backends of the backend service (Instance Group, Managed Instance Group, Network - * Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health - * checks are used to check the health of the backends. - * - * This field is applicable to either: - Advanced global external Application Load - * Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load - * Balancer, - Internal proxy Network Load Balancer (load balancing scheme - * INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme - * INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load - * balancing scheme INTERNAL_SELF_MANAGED). - * @return value or {@code null} for none - */ - public java.lang.String getIpAddressSelectionPolicy() { - return ipAddressSelectionPolicy; - } - - /** - * Specifies a preference for traffic sent from the proxy to the backend (or from the client to - * the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 - * traffic to the backends of the backend service (Instance Group, Managed Instance Group, - * Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 - * health checks are used to check the health of the backends. This is the default setting. - * - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 - * address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic - * to the backends of the backend service (Instance Group, Managed Instance Group, Network - * Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health - * checks are used to check the health of the backends. - * - * This field is applicable to either: - Advanced global external Application Load - * Balancer (load balancing scheme EXTERNAL_MANAGED), - Regional external Application Load - * Balancer, - Internal proxy Network Load Balancer (load balancing scheme - * INTERNAL_MANAGED), - Regional internal Application Load Balancer (load balancing scheme - * INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load - * balancing scheme INTERNAL_SELF_MANAGED). - * @param ipAddressSelectionPolicy ipAddressSelectionPolicy or {@code null} for none - */ - public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSelectionPolicy) { - this.ipAddressSelectionPolicy = ipAddressSelectionPolicy; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. - * @param kind kind or {@code null} for none - */ - public BackendService setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Specifies the load balancer type. A backend service created for one type of load balancer - * cannot be used with another. For more information, refer to Backend services product and scheme - * table. - * @return value or {@code null} for none - */ - public java.lang.String getLoadBalancingScheme() { - return loadBalancingScheme; - } - - /** - * Specifies the load balancer type. A backend service created for one type of load balancer - * cannot be used with another. For more information, refer to Backend services product and scheme - * table. - * @param loadBalancingScheme loadBalancingScheme or {@code null} for none - */ - public BackendService setLoadBalancingScheme(java.lang.String loadBalancingScheme) { - this.loadBalancingScheme = loadBalancingScheme; - return this; - } - - /** - * A list of locality load-balancing policies to be used in order of preference. When you use - * localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy - * or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in - * the localityLbPolicy field. - * - * For an example of how to use this field, seeDefine a list of preferred policies. - * - * Caution: This field and its children are intended for use in a service mesh that includes gRPC - * clients only. Envoy proxies can't use backend services that have this configuration. - * @return value or {@code null} for none - */ - public java.util.List getLocalityLbPolicies() { - return localityLbPolicies; - } - - /** - * A list of locality load-balancing policies to be used in order of preference. When you use - * localityLbPolicies, you must set at least one value for either the localityLbPolicies[].policy - * or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in - * the localityLbPolicy field. - * - * For an example of how to use this field, seeDefine a list of preferred policies. - * - * Caution: This field and its children are intended for use in a service mesh that includes gRPC - * clients only. Envoy proxies can't use backend services that have this configuration. - * @param localityLbPolicies localityLbPolicies or {@code null} for none - */ - public BackendService setLocalityLbPolicies(java.util.List localityLbPolicies) { - this.localityLbPolicies = localityLbPolicies; - return this; - } - - /** - * The load balancing algorithm used within the scope of the locality. The possible values are: - * - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round - * robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two - * random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The - * ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has - * the property that the addition/removal of a host from a set of N hosts only affects 1/N of - * the requests. - RANDOM: The load balancer selects a random healthy host. - - * ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, - * i.e., connections are opened to the same address as the destination address of the incoming - * connection before the connection was redirected to the load balancer. - MAGLEV: used as a - * drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash - * but has faster table lookup build times and host selection times. For more information about - * Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - - * WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights - * computed from Backend reported Custom Metrics. If set, the Backend Service responses are - * expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The - * reported metrics to use for computing the weights are specified via thecustomMetrics field. - * - WEIGHTED_MAGLEV: Per-endpoint weighted load balancing via health check reported weights. - * If set, the backend service must configure an HTTP-based Health Check, and health check - * replies are expected to contain the non-standard HTTP response header fieldX-Load-Balancing- - * Endpoint-Weight to specify the per-endpoint weights. If set, load balancing is weighted - * based on the per-endpoint weights reported in the last processed health check replies, as - * long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. - * Otherwise, load balancing remains equal-weight. - * - * This field is applicable to either: - A regional backend service with the service - * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. - * - * If sessionAffinity is not configured—that is, if session affinity remains at the default value - * of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set - * to a value other than NONE, then the default value for localityLbPolicy isMAGLEV. - * - * Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL - * map that is bound to target gRPC proxy that has validateForProxyless field set to true. - * - * localityLbPolicy cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public java.lang.String getLocalityLbPolicy() { - return localityLbPolicy; - } - - /** - * The load balancing algorithm used within the scope of the locality. The possible values are: - * - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round - * robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two - * random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The - * ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has - * the property that the addition/removal of a host from a set of N hosts only affects 1/N of - * the requests. - RANDOM: The load balancer selects a random healthy host. - - * ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, - * i.e., connections are opened to the same address as the destination address of the incoming - * connection before the connection was redirected to the load balancer. - MAGLEV: used as a - * drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash - * but has faster table lookup build times and host selection times. For more information about - * Maglev, see Maglev: A Fast and Reliable Software Network Load Balancer. - - * WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load Balancing using weights - * computed from Backend reported Custom Metrics. If set, the Backend Service responses are - * expected to contain non-standard HTTP response header field Endpoint-Load-Metrics. The - * reported metrics to use for computing the weights are specified via thecustomMetrics field. - * - WEIGHTED_MAGLEV: Per-endpoint weighted load balancing via health check reported weights. - * If set, the backend service must configure an HTTP-based Health Check, and health check - * replies are expected to contain the non-standard HTTP response header fieldX-Load-Balancing- - * Endpoint-Weight to specify the per-endpoint weights. If set, load balancing is weighted - * based on the per-endpoint weights reported in the last processed health check replies, as - * long as every instance either reported a valid weight or had UNAVAILABLE_WEIGHT. - * Otherwise, load balancing remains equal-weight. - * - * This field is applicable to either: - A regional backend service with the service - * protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - * INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. - * - * If sessionAffinity is not configured—that is, if session affinity remains at the default value - * of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set - * to a value other than NONE, then the default value for localityLbPolicy isMAGLEV. - * - * Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL - * map that is bound to target gRPC proxy that has validateForProxyless field set to true. - * - * localityLbPolicy cannot be specified with haPolicy. - * @param localityLbPolicy localityLbPolicy or {@code null} for none - */ - public BackendService setLocalityLbPolicy(java.lang.String localityLbPolicy) { - this.localityLbPolicy = localityLbPolicy; - return this; - } - - /** - * This field denotes the logging options for the load balancer traffic served by this backend - * service. If logging is enabled, logs will be exported to Stackdriver. - * @return value or {@code null} for none - */ - public BackendServiceLogConfig getLogConfig() { - return logConfig; - } - - /** - * This field denotes the logging options for the load balancer traffic served by this backend - * service. If logging is enabled, logs will be exported to Stackdriver. - * @param logConfig logConfig or {@code null} for none - */ - public BackendService setLogConfig(BackendServiceLogConfig logConfig) { - this.logConfig = logConfig; - return this; - } - - /** - * Specifies the default maximum duration (timeout) for streams to this service. Duration is - * computed from the beginning of the stream until the response has been completely processed, - * including all retries. A stream that does not complete in this duration is closed. - * - * If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. - * - * This value can be overridden in the PathMatcher configuration of the UrlMap that references - * this backend service. - * - * This field is only allowed when the loadBalancingScheme of the backend service is - * INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public Duration getMaxStreamDuration() { - return maxStreamDuration; - } - - /** - * Specifies the default maximum duration (timeout) for streams to this service. Duration is - * computed from the beginning of the stream until the response has been completely processed, - * including all retries. A stream that does not complete in this duration is closed. - * - * If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. - * - * This value can be overridden in the PathMatcher configuration of the UrlMap that references - * this backend service. - * - * This field is only allowed when the loadBalancingScheme of the backend service is - * INTERNAL_SELF_MANAGED. - * @param maxStreamDuration maxStreamDuration or {@code null} for none - */ - public BackendService setMaxStreamDuration(Duration maxStreamDuration) { - this.maxStreamDuration = maxStreamDuration; - return this; - } - - /** - * Deployment metadata associated with the resource to be set by a GKE hub controller and read by - * the backend RCTH - * @return value or {@code null} for none - */ - public java.util.Map getMetadatas() { - return metadatas; - } - - /** - * Deployment metadata associated with the resource to be set by a GKE hub controller and read by - * the backend RCTH - * @param metadatas metadatas or {@code null} for none - */ - public BackendService setMetadatas(java.util.Map metadatas) { - this.metadatas = metadatas; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 BackendService setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The URL of the network to which this backend service belongs. - * - * This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is - * enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is - * enabled. - * - * This field can only be specified when the load balancing scheme is set toINTERNAL, or when the - * load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * The URL of the network to which this backend service belongs. - * - * This field must be set for Internal Passthrough Network Load Balancers when the haPolicy is - * enabled, and for External Passthrough Network Load Balancers when the haPolicy fastIpMove is - * enabled. - * - * This field can only be specified when the load balancing scheme is set toINTERNAL, or when the - * load balancing scheme is set toEXTERNAL and haPolicy fastIpMove is enabled. - * @param network network or {@code null} for none - */ - public BackendService setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Configures traffic steering properties of internal passthrough Network Load Balancers. - * - * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public BackendServiceNetworkPassThroughLbTrafficPolicy getNetworkPassThroughLbTrafficPolicy() { - return networkPassThroughLbTrafficPolicy; - } - - /** - * Configures traffic steering properties of internal passthrough Network Load Balancers. - * - * networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. - * @param networkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy or {@code null} for none - */ - public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy) { - this.networkPassThroughLbTrafficPolicy = networkPassThroughLbTrafficPolicy; - return this; - } - - /** - * Information about the resource or system that manages the backend service. - * @return value or {@code null} for none - */ - public BackendServiceOrchestrationInfo getOrchestrationInfo() { - return orchestrationInfo; - } - - /** - * Information about the resource or system that manages the backend service. - * @param orchestrationInfo orchestrationInfo or {@code null} for none - */ - public BackendService setOrchestrationInfo(BackendServiceOrchestrationInfo orchestrationInfo) { - this.orchestrationInfo = orchestrationInfo; - return this; - } - - /** - * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool - * of each individual proxy instance that processes the traffic for the given backend service. If - * not set, this feature is considered disabled. - * - * Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool - * and returning them back to the pool) are executed independently by each proxy instance of the - * load balancer. In most cases, more than one proxy instance handles the traffic received by a - * backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by - * only some of the proxies, and while this happens, other proxies may continue to send requests - * to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. - * - * Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints - * in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG - * (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud - * Functions Services - Private Service Connect NEGs, that resolve to Google-managed - * regional API endpoints or managed services published using Private Service Connect - * - * Applicable backend service types can be: - A global backend service with the - * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional - * backend service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and - * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for - * Serverless NEGs. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public OutlierDetection getOutlierDetection() { - return outlierDetection; - } - - /** - * Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool - * of each individual proxy instance that processes the traffic for the given backend service. If - * not set, this feature is considered disabled. - * - * Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool - * and returning them back to the pool) are executed independently by each proxy instance of the - * load balancer. In most cases, more than one proxy instance handles the traffic received by a - * backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by - * only some of the proxies, and while this happens, other proxies may continue to send requests - * to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. - * - * Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints - * in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG - * (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud - * Functions Services - Private Service Connect NEGs, that resolve to Google-managed - * regional API endpoints or managed services published using Private Service Connect - * - * Applicable backend service types can be: - A global backend service with the - * loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional - * backend service with the service protocol set to HTTP, HTTPS, HTTP2 or H2C, and - * loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for - * Serverless NEGs. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param outlierDetection outlierDetection or {@code null} for none - */ - public BackendService setOutlierDetection(OutlierDetection outlierDetection) { - this.outlierDetection = outlierDetection; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public BackendServiceParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public BackendService setParams(BackendServiceParams params) { - this.params = params; - return this; - } - - /** - * Deprecated in favor of portName. The TCP port to connect on the backend. The default value is - * 80. For internal passthrough Network Load Balancers and external passthrough Network Load - * Balancers, omit port. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * Deprecated in favor of portName. The TCP port to connect on the backend. The default value is - * 80. For internal passthrough Network Load Balancers and external passthrough Network Load - * Balancers, omit port. - * @param port port or {@code null} for none - */ - public BackendService setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * A named port on a backend instance group representing the port for communication to the backend - * VMs in that group. The named port must be [defined on each backend instance - * group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This - * parameter has no meaning if the backends are NEGs. For internal passthrough Network Load - * Balancers and external passthrough Network Load Balancers, omit port_name. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * A named port on a backend instance group representing the port for communication to the backend - * VMs in that group. The named port must be [defined on each backend instance - * group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This - * parameter has no meaning if the backends are NEGs. For internal passthrough Network Load - * Balancers and external passthrough Network Load Balancers, omit port_name. - * @param portName portName or {@code null} for none - */ - public BackendService setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * The protocol this BackendService uses to communicate with backends. - * - * Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP, GRPC, or UNSPECIFIED, depending on - * the chosen load balancer or Traffic Director configuration. Refer to Load balancing features - * for more information. - * - * Must be set to GRPC when the backend service is referenced by a URL map that is bound to target - * gRPC proxy. - * @return value or {@code null} for none - */ - public java.lang.String getProtocol() { - return protocol; - } - - /** - * The protocol this BackendService uses to communicate with backends. - * - * Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP, GRPC, or UNSPECIFIED, depending on - * the chosen load balancer or Traffic Director configuration. Refer to Load balancing features - * for more information. - * - * Must be set to GRPC when the backend service is referenced by a URL map that is bound to target - * gRPC proxy. - * @param protocol protocol or {@code null} for none - */ - public BackendService setProtocol(java.lang.String protocol) { - this.protocol = protocol; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional backend service resides. This - * field is not applicable to global backend services. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional backend service resides. This - * field is not applicable to global backend services. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public BackendService setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] The resource URL for the security policy associated with this backend service. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * [Output Only] The resource URL for the security policy associated with this backend service. - * @param securityPolicy securityPolicy or {@code null} for none - */ - public BackendService setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - return this; - } - - /** - * This field specifies the security settings that apply to this backend service. This field is - * applicable to a global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public SecuritySettings getSecuritySettings() { - return securitySettings; - } - - /** - * This field specifies the security settings that apply to this backend service. This field is - * applicable to a global backend service with the load_balancing_scheme set to - * INTERNAL_SELF_MANAGED. - * @param securitySettings securitySettings or {@code null} for none - */ - public BackendService setSecuritySettings(SecuritySettings securitySettings) { - this.securitySettings = securitySettings; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public BackendService setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * URLs of networkservices.ServiceBinding resources. - * - * Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends - * and health checks must be both empty. - * @return value or {@code null} for none - */ - public java.util.List getServiceBindings() { - return serviceBindings; - } - - /** - * URLs of networkservices.ServiceBinding resources. - * - * Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends - * and health checks must be both empty. - * @param serviceBindings serviceBindings or {@code null} for none - */ - public BackendService setServiceBindings(java.util.List serviceBindings) { - this.serviceBindings = serviceBindings; - return this; - } - - /** - * URL to networkservices.ServiceLbPolicy resource. - * - * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED - * for a regional backend service. For a global backend service, the service lb policy must be - * global. For a regional backend service, the service lb policy must be regional and in the same - * region. - * @return value or {@code null} for none - */ - public java.lang.String getServiceLbPolicy() { - return serviceLbPolicy; - } - - /** - * URL to networkservices.ServiceLbPolicy resource. - * - * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED - * for a regional backend service. For a global backend service, the service lb policy must be - * global. For a regional backend service, the service lb policy must be regional and in the same - * region. - * @param serviceLbPolicy serviceLbPolicy or {@code null} for none - */ - public BackendService setServiceLbPolicy(java.lang.String serviceLbPolicy) { - this.serviceLbPolicy = serviceLbPolicy; - return this; - } - - /** - * Type of session affinity to use. The default is NONE. - * - * Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map - * that is bound to target gRPC proxy that has validateForProxyless field set to true. - * - * For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend- - * service#session_affinity). - * - * sessionAffinity cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public java.lang.String getSessionAffinity() { - return sessionAffinity; - } - - /** - * Type of session affinity to use. The default is NONE. - * - * Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map - * that is bound to target gRPC proxy that has validateForProxyless field set to true. - * - * For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend- - * service#session_affinity). - * - * sessionAffinity cannot be specified with haPolicy. - * @param sessionAffinity sessionAffinity or {@code null} for none - */ - public BackendService setSessionAffinity(java.lang.String sessionAffinity) { - this.sessionAffinity = sessionAffinity; - return this; - } - - /** - * Describes the HTTP cookie used for stateful session affinity. This field is applicable and - * required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. - * @return value or {@code null} for none - */ - public BackendServiceHttpCookie getStrongSessionAffinityCookie() { - return strongSessionAffinityCookie; - } - - /** - * Describes the HTTP cookie used for stateful session affinity. This field is applicable and - * required if the sessionAffinity is set toSTRONG_COOKIE_AFFINITY. - * @param strongSessionAffinityCookie strongSessionAffinityCookie or {@code null} for none - */ - public BackendService setStrongSessionAffinityCookie(BackendServiceHttpCookie strongSessionAffinityCookie) { - this.strongSessionAffinityCookie = strongSessionAffinityCookie; - return this; - } - - /** - * subsetting cannot be specified with haPolicy. - * @return value or {@code null} for none - */ - public Subsetting getSubsetting() { - return subsetting; - } - - /** - * subsetting cannot be specified with haPolicy. - * @param subsetting subsetting or {@code null} for none - */ - public BackendService setSubsetting(Subsetting subsetting) { - this.subsetting = subsetting; - return this; - } - - /** - * The backend service timeout has a different meaning depending on the type of load balancer. For - * more information see, Backend service settings. The default is 30 seconds. The full range of - * timeout values allowed goes from 1 through 2,147,483,647 seconds. - * - * This value can be overridden in the PathMatcher configuration of the UrlMap that references - * this backend service. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. - * @return value or {@code null} for none - */ - public java.lang.Integer getTimeoutSec() { - return timeoutSec; - } - - /** - * The backend service timeout has a different meaning depending on the type of load balancer. For - * more information see, Backend service settings. The default is 30 seconds. The full range of - * timeout values allowed goes from 1 through 2,147,483,647 seconds. - * - * This value can be overridden in the PathMatcher configuration of the UrlMap that references - * this backend service. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. - * @param timeoutSec timeoutSec or {@code null} for none - */ - public BackendService setTimeoutSec(java.lang.Integer timeoutSec) { - this.timeoutSec = timeoutSec; - return this; - } - - /** - * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend - * protocol is SSL, HTTPS or HTTP2. - * @return value or {@code null} for none - */ - public BackendServiceTlsSettings getTlsSettings() { - return tlsSettings; - } - - /** - * Configuration for Backend Authenticated TLS and mTLS. May only be specified when the backend - * protocol is SSL, HTTPS or HTTP2. - * @param tlsSettings tlsSettings or {@code null} for none - */ - public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { - this.tlsSettings = tlsSettings; - return this; - } - - /** - * Output only. [Output Only] List of resources referencing given backend service. - * @return value or {@code null} for none - */ - public java.util.List getUsedBy() { - return usedBy; - } - - /** - * Output only. [Output Only] List of resources referencing given backend service. - * @param usedBy usedBy or {@code null} for none - */ - public BackendService setUsedBy(java.util.List usedBy) { - this.usedBy = usedBy; - return this; - } - - @Override - public BackendService set(String fieldName, Object value) { - return (BackendService) super.set(fieldName, value); - } - - @Override - public BackendService clone() { - return (BackendService) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceAggregatedList.java deleted file mode 100644 index 7ec50c7eeb4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of BackendServicesScopedList. - * - *

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 BackendServiceAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 BackendServicesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 BackendServiceAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of BackendServicesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of BackendServicesScopedList resources. - * @param items items or {@code null} for none - */ - public BackendServiceAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public BackendServiceAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public BackendServiceAggregatedList 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 BackendServiceAggregatedList 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 BackendServiceAggregatedList 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 BackendServiceAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendServiceAggregatedList set(String fieldName, Object value) { - return (BackendServiceAggregatedList) super.set(fieldName, value); - } - - @Override - public BackendServiceAggregatedList clone() { - return (BackendServiceAggregatedList) 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 BackendServiceAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicy.java deleted file mode 100644 index d160c104dd6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicy.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing Cloud CDN configuration for a backend service. - * - *

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 BackendServiceCdnPolicy extends com.google.api.client.json.GenericJson { - - /** - * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization - * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode - * settings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bypassCacheOnRequestHeaders; - - /** - * The CacheKeyPolicy for this CdnPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CacheKeyPolicy cacheKeyPolicy; - - /** - * Specifies the cache setting for all responses from this backend. The possible values are: - * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses - * without these headers will not be cached at Google's edge, and will require a full trip to the - * origin on every request, potentially impacting performance and increasing load on the origin - * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" - * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching - * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static - * content, including common image formats, media (video and audio), and web assets (JavaScript - * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content - * (including HTML), will not be cached. - * - * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cacheMode; - - /** - * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- - * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and - * default_ttl is used for the response max-age directive, along with a "public" directive. For - * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if - * specified), or else sets the response max-age directive to the lesser of the client_ttl and - * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is - * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s - * (1 year). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer clientTtl; - - /** - * Specifies the default TTL for cached content served by this origin for responses that do not - * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always - * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but - * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the - * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that - * infrequently accessed objects may be evicted from the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer defaultTtl; - - /** - * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives - * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than - * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of - * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a - * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting - * that infrequently accessed objects may be evicted from the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxTtl; - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or - * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that - * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to - * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, - * and override any caching headers. By default, Cloud CDN will apply the following default TTLs - * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), - * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean negativeCaching; - - /** - * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to - * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * negative_caching_policy, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List negativeCachingPolicy; - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean requestCoalescing; - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer serveWhileStale; - - /** - * Maximum number of seconds the response to a signed URL request will be considered fresh. After - * this time period, the response will be revalidated before being served. Defaults to 1hr - * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as - * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, - * regardless of any existing Cache-Control header. The actual headers served in responses will - * not be altered. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long signedUrlCacheMaxAgeSec; - - /** - * [Output Only] Names of the keys for signing request URLs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List signedUrlKeyNames; - - /** - * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization - * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode - * settings. - * @return value or {@code null} for none - */ - public java.util.List getBypassCacheOnRequestHeaders() { - return bypassCacheOnRequestHeaders; - } - - /** - * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization - * headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode - * settings. - * @param bypassCacheOnRequestHeaders bypassCacheOnRequestHeaders or {@code null} for none - */ - public BackendServiceCdnPolicy setBypassCacheOnRequestHeaders(java.util.List bypassCacheOnRequestHeaders) { - this.bypassCacheOnRequestHeaders = bypassCacheOnRequestHeaders; - return this; - } - - /** - * The CacheKeyPolicy for this CdnPolicy. - * @return value or {@code null} for none - */ - public CacheKeyPolicy getCacheKeyPolicy() { - return cacheKeyPolicy; - } - - /** - * The CacheKeyPolicy for this CdnPolicy. - * @param cacheKeyPolicy cacheKeyPolicy or {@code null} for none - */ - public BackendServiceCdnPolicy setCacheKeyPolicy(CacheKeyPolicy cacheKeyPolicy) { - this.cacheKeyPolicy = cacheKeyPolicy; - return this; - } - - /** - * Specifies the cache setting for all responses from this backend. The possible values are: - * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses - * without these headers will not be cached at Google's edge, and will require a full trip to the - * origin on every request, potentially impacting performance and increasing load on the origin - * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" - * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching - * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static - * content, including common image formats, media (video and audio), and web assets (JavaScript - * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content - * (including HTML), will not be cached. - * - * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - * @return value or {@code null} for none - */ - public java.lang.String getCacheMode() { - return cacheMode; - } - - /** - * Specifies the cache setting for all responses from this backend. The possible values are: - * USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses - * without these headers will not be cached at Google's edge, and will require a full trip to the - * origin on every request, potentially impacting performance and increasing load on the origin - * server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" - * directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching - * private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static - * content, including common image formats, media (video and audio), and web assets (JavaScript - * and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content - * (including HTML), will not be cached. - * - * If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - * @param cacheMode cacheMode or {@code null} for none - */ - public BackendServiceCdnPolicy setCacheMode(java.lang.String cacheMode) { - this.cacheMode = cacheMode; - return this; - } - - /** - * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- - * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and - * default_ttl is used for the response max-age directive, along with a "public" directive. For - * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if - * specified), or else sets the response max-age directive to the lesser of the client_ttl and - * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is - * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s - * (1 year). - * @return value or {@code null} for none - */ - public java.lang.Integer getClientTtl() { - return clientTtl; - } - - /** - * Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max- - * age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and - * default_ttl is used for the response max-age directive, along with a "public" directive. For - * cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if - * specified), or else sets the response max-age directive to the lesser of the client_ttl and - * default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is - * not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s - * (1 year). - * @param clientTtl clientTtl or {@code null} for none - */ - public BackendServiceCdnPolicy setClientTtl(java.lang.Integer clientTtl) { - this.clientTtl = clientTtl; - return this; - } - - /** - * Specifies the default TTL for cached content served by this origin for responses that do not - * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always - * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but - * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the - * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that - * infrequently accessed objects may be evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public java.lang.Integer getDefaultTtl() { - return defaultTtl; - } - - /** - * Specifies the default TTL for cached content served by this origin for responses that do not - * have an existing valid TTL (max-age or s-maxage). Setting a TTL of "0" means "always - * revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but - * can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the - * TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that - * infrequently accessed objects may be evicted from the cache before the defined TTL. - * @param defaultTtl defaultTtl or {@code null} for none - */ - public BackendServiceCdnPolicy setDefaultTtl(java.lang.Integer defaultTtl) { - this.defaultTtl = defaultTtl; - return this; - } - - /** - * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives - * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than - * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of - * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a - * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting - * that infrequently accessed objects may be evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxTtl() { - return maxTtl; - } - - /** - * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives - * that attempt to set a max-age or s-maxage higher than this, or an Expires header more than - * maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of - * an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a - * TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting - * that infrequently accessed objects may be evicted from the cache before the defined TTL. - * @param maxTtl maxTtl or {@code null} for none - */ - public BackendServiceCdnPolicy setMaxTtl(java.lang.Integer maxTtl) { - this.maxTtl = maxTtl; - return this; - } - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or - * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that - * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to - * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, - * and override any caching headers. By default, Cloud CDN will apply the following default TTLs - * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), - * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * @return value or {@code null} for none - */ - public java.lang.Boolean getNegativeCaching() { - return negativeCaching; - } - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or - * USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that - * lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to - * FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, - * and override any caching headers. By default, Cloud CDN will apply the following default TTLs - * to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 - * (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), - * 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * @param negativeCaching negativeCaching or {@code null} for none - */ - public BackendServiceCdnPolicy setNegativeCaching(java.lang.Boolean negativeCaching) { - this.negativeCaching = negativeCaching; - return this; - } - - /** - * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to - * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * negative_caching_policy, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * @return value or {@code null} for none - */ - public java.util.List getNegativeCachingPolicy() { - return negativeCachingPolicy; - } - - /** - * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to - * configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * negative_caching_policy, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * @param negativeCachingPolicy negativeCachingPolicy or {@code null} for none - */ - public BackendServiceCdnPolicy setNegativeCachingPolicy(java.util.List negativeCachingPolicy) { - this.negativeCachingPolicy = negativeCachingPolicy; - return this; - } - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. - * @return value or {@code null} for none - */ - public java.lang.Boolean getRequestCoalescing() { - return requestCoalescing; - } - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. - * @param requestCoalescing requestCoalescing or {@code null} for none - */ - public BackendServiceCdnPolicy setRequestCoalescing(java.lang.Boolean requestCoalescing) { - this.requestCoalescing = requestCoalescing; - return this; - } - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * @return value or {@code null} for none - */ - public java.lang.Integer getServeWhileStale() { - return serveWhileStale; - } - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * @param serveWhileStale serveWhileStale or {@code null} for none - */ - public BackendServiceCdnPolicy setServeWhileStale(java.lang.Integer serveWhileStale) { - this.serveWhileStale = serveWhileStale; - return this; - } - - /** - * Maximum number of seconds the response to a signed URL request will be considered fresh. After - * this time period, the response will be revalidated before being served. Defaults to 1hr - * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as - * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, - * regardless of any existing Cache-Control header. The actual headers served in responses will - * not be altered. - * @return value or {@code null} for none - */ - public java.lang.Long getSignedUrlCacheMaxAgeSec() { - return signedUrlCacheMaxAgeSec; - } - - /** - * Maximum number of seconds the response to a signed URL request will be considered fresh. After - * this time period, the response will be revalidated before being served. Defaults to 1hr - * (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as - * though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, - * regardless of any existing Cache-Control header. The actual headers served in responses will - * not be altered. - * @param signedUrlCacheMaxAgeSec signedUrlCacheMaxAgeSec or {@code null} for none - */ - public BackendServiceCdnPolicy setSignedUrlCacheMaxAgeSec(java.lang.Long signedUrlCacheMaxAgeSec) { - this.signedUrlCacheMaxAgeSec = signedUrlCacheMaxAgeSec; - return this; - } - - /** - * [Output Only] Names of the keys for signing request URLs. - * @return value or {@code null} for none - */ - public java.util.List getSignedUrlKeyNames() { - return signedUrlKeyNames; - } - - /** - * [Output Only] Names of the keys for signing request URLs. - * @param signedUrlKeyNames signedUrlKeyNames or {@code null} for none - */ - public BackendServiceCdnPolicy setSignedUrlKeyNames(java.util.List signedUrlKeyNames) { - this.signedUrlKeyNames = signedUrlKeyNames; - return this; - } - - @Override - public BackendServiceCdnPolicy set(String fieldName, Object value) { - return (BackendServiceCdnPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceCdnPolicy clone() { - return (BackendServiceCdnPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java deleted file mode 100644 index 05a219c47aa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyBypassCacheOnRequestHeader.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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.preview.model; - -/** - * Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization - * headers. Values are case insensitive. The presence of such a header overrides the cache_mode - * setting. - * - *

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 BackendServiceCdnPolicyBypassCacheOnRequestHeader extends com.google.api.client.json.GenericJson { - - /** - * The header field name to match on when bypassing cache. Values are case-insensitive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerName; - - /** - * The header field name to match on when bypassing cache. Values are case-insensitive. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderName() { - return headerName; - } - - /** - * The header field name to match on when bypassing cache. Values are case-insensitive. - * @param headerName headerName or {@code null} for none - */ - public BackendServiceCdnPolicyBypassCacheOnRequestHeader setHeaderName(java.lang.String headerName) { - this.headerName = headerName; - return this; - } - - @Override - public BackendServiceCdnPolicyBypassCacheOnRequestHeader set(String fieldName, Object value) { - return (BackendServiceCdnPolicyBypassCacheOnRequestHeader) super.set(fieldName, value); - } - - @Override - public BackendServiceCdnPolicyBypassCacheOnRequestHeader clone() { - return (BackendServiceCdnPolicyBypassCacheOnRequestHeader) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyNegativeCachingPolicy.java deleted file mode 100644 index d71ed489da1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCdnPolicyNegativeCachingPolicy.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specify CDN TTLs for response error codes. - * - *

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 BackendServiceCdnPolicyNegativeCachingPolicy extends com.google.api.client.json.GenericJson { - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer code; - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be - * evicted from the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ttl; - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * @return value or {@code null} for none - */ - public java.lang.Integer getCode() { - return code; - } - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * @param code code or {@code null} for none - */ - public BackendServiceCdnPolicyNegativeCachingPolicy setCode(java.lang.Integer code) { - this.code = code; - return this; - } - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be - * evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public java.lang.Integer getTtl() { - return ttl; - } - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be - * evicted from the cache before the defined TTL. - * @param ttl ttl or {@code null} for none - */ - public BackendServiceCdnPolicyNegativeCachingPolicy setTtl(java.lang.Integer ttl) { - this.ttl = ttl; - return this; - } - - @Override - public BackendServiceCdnPolicyNegativeCachingPolicy set(String fieldName, Object value) { - return (BackendServiceCdnPolicyNegativeCachingPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceCdnPolicyNegativeCachingPolicy clone() { - return (BackendServiceCdnPolicyNegativeCachingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceConnectionTrackingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceConnectionTrackingPolicy.java deleted file mode 100644 index 68ad9d572fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceConnectionTrackingPolicy.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * 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.preview.model; - -/** - * Connection Tracking configuration for this BackendService. - * - *

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 BackendServiceConnectionTrackingPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies connection persistence when backends are unhealthy. The default value is - * DEFAULT_FOR_PROTOCOL. - * - * If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for - * connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION - * (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist - * forUDP. - * - * If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the - * unhealthy backend are never persisted on the unhealthy backend. They are always diverted to - * newly selected healthy backends (unless all backends are unhealthy). - * - * If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless - * of protocol and session affinity. It is generally not recommended to use this mode overriding - * the default. - * - * For more details, see [Connection Persistence for Network Load - * Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend- - * service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load - * Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String connectionPersistenceOnUnhealthyBackends; - - /** - * Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is - * not available publicly. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableStrongAffinity; - - /** - * Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in - * seconds). - * - * For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes - * and the maximum is 16 hours. - It can be set only if Connection Tracking is less than - * 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and - * Tracking Mode is PER_SESSION). - * - * For external passthrough Network Load Balancers the default is 60 seconds. This option is not - * available publicly. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer idleTimeoutSec; - - /** - * Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: - * This is the default mode. The Connection Tracking is performed as per the Connection Key - * (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking - * is performed as per the configured Session Affinity. It matches the configured Session - * Affinity. - * - * For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load- - * balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal - * TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String trackingMode; - - /** - * Specifies connection persistence when backends are unhealthy. The default value is - * DEFAULT_FOR_PROTOCOL. - * - * If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for - * connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION - * (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist - * forUDP. - * - * If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the - * unhealthy backend are never persisted on the unhealthy backend. They are always diverted to - * newly selected healthy backends (unless all backends are unhealthy). - * - * If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless - * of protocol and session affinity. It is generally not recommended to use this mode overriding - * the default. - * - * For more details, see [Connection Persistence for Network Load - * Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend- - * service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load - * Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). - * @return value or {@code null} for none - */ - public java.lang.String getConnectionPersistenceOnUnhealthyBackends() { - return connectionPersistenceOnUnhealthyBackends; - } - - /** - * Specifies connection persistence when backends are unhealthy. The default value is - * DEFAULT_FOR_PROTOCOL. - * - * If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for - * connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode isPER_CONNECTION - * (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist - * forUDP. - * - * If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the - * unhealthy backend are never persisted on the unhealthy backend. They are always diverted to - * newly selected healthy backends (unless all backends are unhealthy). - * - * If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless - * of protocol and session affinity. It is generally not recommended to use this mode overriding - * the default. - * - * For more details, see [Connection Persistence for Network Load - * Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend- - * service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load - * Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). - * @param connectionPersistenceOnUnhealthyBackends connectionPersistenceOnUnhealthyBackends or {@code null} for none - */ - public BackendServiceConnectionTrackingPolicy setConnectionPersistenceOnUnhealthyBackends(java.lang.String connectionPersistenceOnUnhealthyBackends) { - this.connectionPersistenceOnUnhealthyBackends = connectionPersistenceOnUnhealthyBackends; - return this; - } - - /** - * Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is - * not available publicly. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableStrongAffinity() { - return enableStrongAffinity; - } - - /** - * Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is - * not available publicly. - * @param enableStrongAffinity enableStrongAffinity or {@code null} for none - */ - public BackendServiceConnectionTrackingPolicy setEnableStrongAffinity(java.lang.Boolean enableStrongAffinity) { - this.enableStrongAffinity = enableStrongAffinity; - return this; - } - - /** - * Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in - * seconds). - * - * For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes - * and the maximum is 16 hours. - It can be set only if Connection Tracking is less than - * 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and - * Tracking Mode is PER_SESSION). - * - * For external passthrough Network Load Balancers the default is 60 seconds. This option is not - * available publicly. - * @return value or {@code null} for none - */ - public java.lang.Integer getIdleTimeoutSec() { - return idleTimeoutSec; - } - - /** - * Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in - * seconds). - * - * For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes - * and the maximum is 16 hours. - It can be set only if Connection Tracking is less than - * 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and - * Tracking Mode is PER_SESSION). - * - * For external passthrough Network Load Balancers the default is 60 seconds. This option is not - * available publicly. - * @param idleTimeoutSec idleTimeoutSec or {@code null} for none - */ - public BackendServiceConnectionTrackingPolicy setIdleTimeoutSec(java.lang.Integer idleTimeoutSec) { - this.idleTimeoutSec = idleTimeoutSec; - return this; - } - - /** - * Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: - * This is the default mode. The Connection Tracking is performed as per the Connection Key - * (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking - * is performed as per the configured Session Affinity. It matches the configured Session - * Affinity. - * - * For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load- - * balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal - * TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). - * @return value or {@code null} for none - */ - public java.lang.String getTrackingMode() { - return trackingMode; - } - - /** - * Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: - * This is the default mode. The Connection Tracking is performed as per the Connection Key - * (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking - * is performed as per the configured Session Affinity. It matches the configured Session - * Affinity. - * - * For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load- - * balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal - * TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). - * @param trackingMode trackingMode or {@code null} for none - */ - public BackendServiceConnectionTrackingPolicy setTrackingMode(java.lang.String trackingMode) { - this.trackingMode = trackingMode; - return this; - } - - @Override - public BackendServiceConnectionTrackingPolicy set(String fieldName, Object value) { - return (BackendServiceConnectionTrackingPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceConnectionTrackingPolicy clone() { - return (BackendServiceConnectionTrackingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCustomMetric.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCustomMetric.java deleted file mode 100644 index b7dc17c47d2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceCustomMetric.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Custom Metrics are used for WEIGHTED_ROUND_ROBIN locality_lb_policy. - * - *

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 BackendServiceCustomMetric extends com.google.api.client.json.GenericJson { - - /** - * If true, the metric data is not used for load balancing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean dryRun; - - /** - * Name of a custom utilization signal. The name must be 1-64 characters long and match the - * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be - * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase - * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For - * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global - * or regional backend service with the loadBalancingScheme set to - * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * If true, the metric data is not used for load balancing. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDryRun() { - return dryRun; - } - - /** - * If true, the metric data is not used for load balancing. - * @param dryRun dryRun or {@code null} for none - */ - public BackendServiceCustomMetric setDryRun(java.lang.Boolean dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Name of a custom utilization signal. The name must be 1-64 characters long and match the - * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be - * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase - * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For - * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global - * or regional backend service with the loadBalancingScheme set to - * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of a custom utilization signal. The name must be 1-64 characters long and match the - * regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means that the first character must be - * a lowercase letter, and all following characters must be a dash, period, underscore, lowercase - * letter, or digit, except the last character, which cannot be a dash, period, or underscore. For - * usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global - * or regional backend service with the loadBalancingScheme set to - * EXTERNAL_MANAGED,INTERNAL_MANAGED INTERNAL_SELF_MANAGED. - * @param name name or {@code null} for none - */ - public BackendServiceCustomMetric setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public BackendServiceCustomMetric set(String fieldName, Object value) { - return (BackendServiceCustomMetric) super.set(fieldName, value); - } - - @Override - public BackendServiceCustomMetric clone() { - return (BackendServiceCustomMetric) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceFailoverPolicy.java deleted file mode 100644 index 010bcebd13b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceFailoverPolicy.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * 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.preview.model; - -/** - * For load balancers that have configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external - * passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). On failover or failback, this field - * indicates whether connection draining will be honored. Google Cloud has a fixed connection - * draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the - * active pool during failover and failback, immediately draining traffic. A setting of false allows - * existing TCP connections to persist, even on VMs no longer in the active pool, for up to the - * duration of the connection draining timeout (10 minutes). - * - *

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 BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { - - /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. - * - * The default is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean disableConnectionDrainOnFailover; - - /** - * If set to true, connections to the load balancer are dropped when all primary and all backup - * backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs - * when all primary and all backup backend VMs are unhealthy. For load balancers that have - * configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). The default is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean dropTrafficIfUnhealthy; - - /** - * The value of the field must be in the range[0, 1]. If the value is 0, the load balancer - * performs a failover when the number of healthy primary VMs equals zero. For all other values, - * the load balancer performs a failover when the total number of healthy primary VMs is less than - * this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load - * Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external TCP/UDP Load Balancing](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float failoverRatio; - - /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. - * - * The default is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDisableConnectionDrainOnFailover() { - return disableConnectionDrainOnFailover; - } - - /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. - * - * The default is false. - * @param disableConnectionDrainOnFailover disableConnectionDrainOnFailover or {@code null} for none - */ - public BackendServiceFailoverPolicy setDisableConnectionDrainOnFailover(java.lang.Boolean disableConnectionDrainOnFailover) { - this.disableConnectionDrainOnFailover = disableConnectionDrainOnFailover; - return this; - } - - /** - * If set to true, connections to the load balancer are dropped when all primary and all backup - * backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs - * when all primary and all backup backend VMs are unhealthy. For load balancers that have - * configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). The default is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDropTrafficIfUnhealthy() { - return dropTrafficIfUnhealthy; - } - - /** - * If set to true, connections to the load balancer are dropped when all primary and all backup - * backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs - * when all primary and all backup backend VMs are unhealthy. For load balancers that have - * configurable failover: [Internal passthrough Network Load - * Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external passthrough Network Load Balancers](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). The default is false. - * @param dropTrafficIfUnhealthy dropTrafficIfUnhealthy or {@code null} for none - */ - public BackendServiceFailoverPolicy setDropTrafficIfUnhealthy(java.lang.Boolean dropTrafficIfUnhealthy) { - this.dropTrafficIfUnhealthy = dropTrafficIfUnhealthy; - return this; - } - - /** - * The value of the field must be in the range[0, 1]. If the value is 0, the load balancer - * performs a failover when the number of healthy primary VMs equals zero. For all other values, - * the load balancer performs a failover when the total number of healthy primary VMs is less than - * this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load - * Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external TCP/UDP Load Balancing](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). - * @return value or {@code null} for none - */ - public java.lang.Float getFailoverRatio() { - return failoverRatio; - } - - /** - * The value of the field must be in the range[0, 1]. If the value is 0, the load balancer - * performs a failover when the number of healthy primary VMs equals zero. For all other values, - * the load balancer performs a failover when the total number of healthy primary VMs is less than - * this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load - * Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and - * [external TCP/UDP Load Balancing](https://cloud.google.com/load- - * balancing/docs/network/networklb-failover-overview). - * @param failoverRatio failoverRatio or {@code null} for none - */ - public BackendServiceFailoverPolicy setFailoverRatio(java.lang.Float failoverRatio) { - this.failoverRatio = failoverRatio; - return this; - } - - @Override - public BackendServiceFailoverPolicy set(String fieldName, Object value) { - return (BackendServiceFailoverPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceFailoverPolicy clone() { - return (BackendServiceFailoverPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceGroupHealth.java deleted file mode 100644 index e95beed0e48..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceGroupHealth.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceGroupHealth. - * - *

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 BackendServiceGroupHealth extends com.google.api.client.json.GenericJson { - - /** - * Metadata defined as annotations on the network endpoint group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map annotations; - - /** - * Health state of the backend instances or endpoints in requested instance or network endpoint - * group, determined based on configured health checks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthStatus; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Metadata defined as annotations on the network endpoint group. - * @return value or {@code null} for none - */ - public java.util.Map getAnnotations() { - return annotations; - } - - /** - * Metadata defined as annotations on the network endpoint group. - * @param annotations annotations or {@code null} for none - */ - public BackendServiceGroupHealth setAnnotations(java.util.Map annotations) { - this.annotations = annotations; - return this; - } - - /** - * Health state of the backend instances or endpoints in requested instance or network endpoint - * group, determined based on configured health checks. - * @return value or {@code null} for none - */ - public java.util.List getHealthStatus() { - return healthStatus; - } - - /** - * Health state of the backend instances or endpoints in requested instance or network endpoint - * group, determined based on configured health checks. - * @param healthStatus healthStatus or {@code null} for none - */ - public BackendServiceGroupHealth setHealthStatus(java.util.List healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. - * @param kind kind or {@code null} for none - */ - public BackendServiceGroupHealth setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public BackendServiceGroupHealth set(String fieldName, Object value) { - return (BackendServiceGroupHealth) super.set(fieldName, value); - } - - @Override - public BackendServiceGroupHealth clone() { - return (BackendServiceGroupHealth) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicy.java deleted file mode 100644 index a1d0b3d86c0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicy.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceHAPolicy. - * - *

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 BackendServiceHAPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. - * - * Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the - * haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly - * define a new network endpoint as the leader. This method is faster than updating the leader - * using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network - * endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet - * (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but - * temporarily associates the forwarding rule IP address with that VM, and both new and in- - * flight packets are quickly delivered to that VM. - * - * Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated - * re-routing stays active for approximately 20 minutes. After triggering fast failover, you - * must also appropriately set the haPolicy.leader. - The new leader instance should - * continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes - * after updating the haPolicy.leader (but stop immediately if it is no longer the leader). - * - After triggering a fast failover, we recommend that you wait at least 3 seconds before - * sending another GARP/RA packet from a different VM instance to avoid race conditions. - - * Don't send GARP/RA packets from different VM instances at the same time. If multiple - * instances continue to send GARP/RA packets, traffic might be routed to different - * destinations in an alternating order. This condition ceases when a single instance issues - * a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using - * the haPolicy.leader API to change the leader to a different instance will have no effect - * until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the - * GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional - * backend service, you need only send a GARP or RA packet for a single forwarding rule - * virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will - * also be moved to the sender of the GARP or RA packet. - * - * The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): - * - Multiple forwarding rules cannot use the same IP address if one of them refers to a - * regional backend service with fastIPMove. - The regional backend service must set the - * network field, and all NEGs must belong to that network. However, individual NEGs can - * belong to different subnetworks of that network. - The maximum number of network endpoints - * across all backends of a backend service with fastIPMove is 32. - The maximum number of - * backend services with fastIPMove that can have the same network endpoint attached to one of - * its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a - * region is 64. - The network endpoints that are attached to a backend of a backend service - * with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader - * by a static route next hop will not be redirected to a new leader by fast failover. Such - * traffic will only be redirected once an haPolicy.leader update has taken effect. Only - * traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast - * failover. - * - * haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be - * updated. - * - * By default, fastIpMove is set to DISABLED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fastIPMove; - - /** - * Selects one of the network endpoints attached to the backend NEGs of this service as the active - * endpoint (the leader) that receives all traffic. - * - * When the leader changes, there is no connection draining to persist existing connections on the - * old leader. - * - * You are responsible for selecting a suitable endpoint as the leader. For example, preferring a - * healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint - * health, and selects the configured leader unconditionally. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceHAPolicyLeader leader; - - /** - * Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. - * - * Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the - * haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly - * define a new network endpoint as the leader. This method is faster than updating the leader - * using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network - * endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet - * (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but - * temporarily associates the forwarding rule IP address with that VM, and both new and in- - * flight packets are quickly delivered to that VM. - * - * Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated - * re-routing stays active for approximately 20 minutes. After triggering fast failover, you - * must also appropriately set the haPolicy.leader. - The new leader instance should - * continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes - * after updating the haPolicy.leader (but stop immediately if it is no longer the leader). - * - After triggering a fast failover, we recommend that you wait at least 3 seconds before - * sending another GARP/RA packet from a different VM instance to avoid race conditions. - - * Don't send GARP/RA packets from different VM instances at the same time. If multiple - * instances continue to send GARP/RA packets, traffic might be routed to different - * destinations in an alternating order. This condition ceases when a single instance issues - * a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using - * the haPolicy.leader API to change the leader to a different instance will have no effect - * until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the - * GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional - * backend service, you need only send a GARP or RA packet for a single forwarding rule - * virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will - * also be moved to the sender of the GARP or RA packet. - * - * The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): - * - Multiple forwarding rules cannot use the same IP address if one of them refers to a - * regional backend service with fastIPMove. - The regional backend service must set the - * network field, and all NEGs must belong to that network. However, individual NEGs can - * belong to different subnetworks of that network. - The maximum number of network endpoints - * across all backends of a backend service with fastIPMove is 32. - The maximum number of - * backend services with fastIPMove that can have the same network endpoint attached to one of - * its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a - * region is 64. - The network endpoints that are attached to a backend of a backend service - * with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader - * by a static route next hop will not be redirected to a new leader by fast failover. Such - * traffic will only be redirected once an haPolicy.leader update has taken effect. Only - * traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast - * failover. - * - * haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be - * updated. - * - * By default, fastIpMove is set to DISABLED. - * @return value or {@code null} for none - */ - public java.lang.String getFastIPMove() { - return fastIPMove; - } - - /** - * Specifies whether fast IP move is enabled, and if so, the mechanism to achieve it. - * - * Supported values are: - DISABLED: Fast IP Move is disabled. You can only use the - * haPolicy.leader API to update the leader. - >GARP_RA: Provides a method to very quickly - * define a new network endpoint as the leader. This method is faster than updating the leader - * using the haPolicy.leader API. Fast IP move works as follows: The VM hosting the network - * endpoint that should become the new leader sends either a Gratuitous ARP (GARP) packet - * (IPv4) or an ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud immediately but - * temporarily associates the forwarding rule IP address with that VM, and both new and in- - * flight packets are quickly delivered to that VM. - * - * Note the important properties of the Fast IP Move functionality: - The GARP/RA-initiated - * re-routing stays active for approximately 20 minutes. After triggering fast failover, you - * must also appropriately set the haPolicy.leader. - The new leader instance should - * continue to send GARP/RA packets periodically every 10 seconds until at least 10 minutes - * after updating the haPolicy.leader (but stop immediately if it is no longer the leader). - * - After triggering a fast failover, we recommend that you wait at least 3 seconds before - * sending another GARP/RA packet from a different VM instance to avoid race conditions. - - * Don't send GARP/RA packets from different VM instances at the same time. If multiple - * instances continue to send GARP/RA packets, traffic might be routed to different - * destinations in an alternating order. This condition ceases when a single instance issues - * a GARP/RA packet. - The GARP/RA request always takes priority over the leader API. Using - * the haPolicy.leader API to change the leader to a different instance will have no effect - * until the GARP/RA request becomes inactive. - The GARP/RA packets should follow the - * GARP/RA Packet Specifications.. - When multiple forwarding rules refer to a regional - * backend service, you need only send a GARP or RA packet for a single forwarding rule - * virtual IP. The virtual IPs for all forwarding rules targeting the same backend service will - * also be moved to the sender of the GARP or RA packet. - * - * The following are the Fast IP Move limitations (that is, when fastIPMove is not DISABLED): - * - Multiple forwarding rules cannot use the same IP address if one of them refers to a - * regional backend service with fastIPMove. - The regional backend service must set the - * network field, and all NEGs must belong to that network. However, individual NEGs can - * belong to different subnetworks of that network. - The maximum number of network endpoints - * across all backends of a backend service with fastIPMove is 32. - The maximum number of - * backend services with fastIPMove that can have the same network endpoint attached to one of - * its backends is 64. - The maximum number of backend services with fastIPMove in a VPC in a - * region is 64. - The network endpoints that are attached to a backend of a backend service - * with fastIPMove cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the leader - * by a static route next hop will not be redirected to a new leader by fast failover. Such - * traffic will only be redirected once an haPolicy.leader update has taken effect. Only - * traffic to the forwarding rule's virtual IP will be redirected to a new leader by fast - * failover. - * - * haPolicy.fastIPMove can be set only at backend service creation time. Once set, it cannot be - * updated. - * - * By default, fastIpMove is set to DISABLED. - * @param fastIPMove fastIPMove or {@code null} for none - */ - public BackendServiceHAPolicy setFastIPMove(java.lang.String fastIPMove) { - this.fastIPMove = fastIPMove; - return this; - } - - /** - * Selects one of the network endpoints attached to the backend NEGs of this service as the active - * endpoint (the leader) that receives all traffic. - * - * When the leader changes, there is no connection draining to persist existing connections on the - * old leader. - * - * You are responsible for selecting a suitable endpoint as the leader. For example, preferring a - * healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint - * health, and selects the configured leader unconditionally. - * @return value or {@code null} for none - */ - public BackendServiceHAPolicyLeader getLeader() { - return leader; - } - - /** - * Selects one of the network endpoints attached to the backend NEGs of this service as the active - * endpoint (the leader) that receives all traffic. - * - * When the leader changes, there is no connection draining to persist existing connections on the - * old leader. - * - * You are responsible for selecting a suitable endpoint as the leader. For example, preferring a - * healthy endpoint over unhealthy ones. Note that this service does not track backend endpoint - * health, and selects the configured leader unconditionally. - * @param leader leader or {@code null} for none - */ - public BackendServiceHAPolicy setLeader(BackendServiceHAPolicyLeader leader) { - this.leader = leader; - return this; - } - - @Override - public BackendServiceHAPolicy set(String fieldName, Object value) { - return (BackendServiceHAPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceHAPolicy clone() { - return (BackendServiceHAPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeader.java deleted file mode 100644 index 2a70119049c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeader.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceHAPolicyLeader. - * - *

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 BackendServiceHAPolicyLeader extends com.google.api.client.json.GenericJson { - - /** - * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint - * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. - * - * The leader's backendGroup must already be specified as a backend of this backend service. - * Removing a backend that is designated as the leader's backendGroup is not permitted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backendGroup; - - /** - * The network endpoint within the leader.backendGroup that is designated as the leader. - * - * This network endpoint cannot be detached from the NEG specified in the - * haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the - * leader is removed from the haPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint; - - /** - * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint - * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. - * - * The leader's backendGroup must already be specified as a backend of this backend service. - * Removing a backend that is designated as the leader's backendGroup is not permitted. - * @return value or {@code null} for none - */ - public java.lang.String getBackendGroup() { - return backendGroup; - } - - /** - * A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint - * Group (NEG) with `GCE_VM_IP` endpoints that the leader is attached to. - * - * The leader's backendGroup must already be specified as a backend of this backend service. - * Removing a backend that is designated as the leader's backendGroup is not permitted. - * @param backendGroup backendGroup or {@code null} for none - */ - public BackendServiceHAPolicyLeader setBackendGroup(java.lang.String backendGroup) { - this.backendGroup = backendGroup; - return this; - } - - /** - * The network endpoint within the leader.backendGroup that is designated as the leader. - * - * This network endpoint cannot be detached from the NEG specified in the - * haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the - * leader is removed from the haPolicy. - * @return value or {@code null} for none - */ - public BackendServiceHAPolicyLeaderNetworkEndpoint getNetworkEndpoint() { - return networkEndpoint; - } - - /** - * The network endpoint within the leader.backendGroup that is designated as the leader. - * - * This network endpoint cannot be detached from the NEG specified in the - * haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the - * leader is removed from the haPolicy. - * @param networkEndpoint networkEndpoint or {@code null} for none - */ - public BackendServiceHAPolicyLeader setNetworkEndpoint(BackendServiceHAPolicyLeaderNetworkEndpoint networkEndpoint) { - this.networkEndpoint = networkEndpoint; - return this; - } - - @Override - public BackendServiceHAPolicyLeader set(String fieldName, Object value) { - return (BackendServiceHAPolicyLeader) super.set(fieldName, value); - } - - @Override - public BackendServiceHAPolicyLeader clone() { - return (BackendServiceHAPolicyLeader) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java deleted file mode 100644 index a8a79c09b15..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHAPolicyLeaderNetworkEndpoint.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceHAPolicyLeaderNetworkEndpoint. - * - *

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 BackendServiceHAPolicyLeaderNetworkEndpoint extends com.google.api.client.json.GenericJson { - - /** - * The name of the VM instance of the leader network endpoint. The instance must already be - * attached to the NEG specified in the haPolicy.leader.backendGroup. - * - * The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization - * requires the following IAM permission on the specified resource instance: compute.instances.use - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * The name of the VM instance of the leader network endpoint. The instance must already be - * attached to the NEG specified in the haPolicy.leader.backendGroup. - * - * The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization - * requires the following IAM permission on the specified resource instance: compute.instances.use - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * The name of the VM instance of the leader network endpoint. The instance must already be - * attached to the NEG specified in the haPolicy.leader.backendGroup. - * - * The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization - * requires the following IAM permission on the specified resource instance: compute.instances.use - * @param instance instance or {@code null} for none - */ - public BackendServiceHAPolicyLeaderNetworkEndpoint setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - @Override - public BackendServiceHAPolicyLeaderNetworkEndpoint set(String fieldName, Object value) { - return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.set(fieldName, value); - } - - @Override - public BackendServiceHAPolicyLeaderNetworkEndpoint clone() { - return (BackendServiceHAPolicyLeaderNetworkEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHttpCookie.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHttpCookie.java deleted file mode 100644 index f338b981396..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceHttpCookie.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * The HTTP cookie used for stateful session affinity. - * - *

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 BackendServiceHttpCookie extends com.google.api.client.json.GenericJson { - - /** - * Name of the cookie. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Path to set for the cookie. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** - * Lifetime of the cookie. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration ttl; - - /** - * Name of the cookie. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the cookie. - * @param name name or {@code null} for none - */ - public BackendServiceHttpCookie setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Path to set for the cookie. - * @return value or {@code null} for none - */ - public java.lang.String getPath() { - return path; - } - - /** - * Path to set for the cookie. - * @param path path or {@code null} for none - */ - public BackendServiceHttpCookie setPath(java.lang.String path) { - this.path = path; - return this; - } - - /** - * Lifetime of the cookie. - * @return value or {@code null} for none - */ - public Duration getTtl() { - return ttl; - } - - /** - * Lifetime of the cookie. - * @param ttl ttl or {@code null} for none - */ - public BackendServiceHttpCookie setTtl(Duration ttl) { - this.ttl = ttl; - return this; - } - - @Override - public BackendServiceHttpCookie set(String fieldName, Object value) { - return (BackendServiceHttpCookie) super.set(fieldName, value); - } - - @Override - public BackendServiceHttpCookie clone() { - return (BackendServiceHttpCookie) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceIAP.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceIAP.java deleted file mode 100644 index 91d3fedbf28..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceIAP.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * 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.preview.model; - -/** - * Identity-Aware Proxy - * - *

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 BackendServiceIAP extends com.google.api.client.json.GenericJson { - - /** - * Whether the serving infrastructure will authenticate and authorize all incoming requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enabled; - - /** - * OAuth2 client ID to use for the authentication flow. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String oauth2ClientId; - - /** - * OAuth2 client secret to use for the authentication flow. For security reasons, this value - * cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the - * oauth2ClientSecretSha256 field. - * - * @InputOnly - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String oauth2ClientSecret; - - /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String oauth2ClientSecretSha256; - - /** - * Whether the serving infrastructure will authenticate and authorize all incoming requests. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnabled() { - return enabled; - } - - /** - * Whether the serving infrastructure will authenticate and authorize all incoming requests. - * @param enabled enabled or {@code null} for none - */ - public BackendServiceIAP setEnabled(java.lang.Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * OAuth2 client ID to use for the authentication flow. - * @return value or {@code null} for none - */ - public java.lang.String getOauth2ClientId() { - return oauth2ClientId; - } - - /** - * OAuth2 client ID to use for the authentication flow. - * @param oauth2ClientId oauth2ClientId or {@code null} for none - */ - public BackendServiceIAP setOauth2ClientId(java.lang.String oauth2ClientId) { - this.oauth2ClientId = oauth2ClientId; - return this; - } - - /** - * OAuth2 client secret to use for the authentication flow. For security reasons, this value - * cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the - * oauth2ClientSecretSha256 field. - * - * @InputOnly - * @return value or {@code null} for none - */ - public java.lang.String getOauth2ClientSecret() { - return oauth2ClientSecret; - } - - /** - * OAuth2 client secret to use for the authentication flow. For security reasons, this value - * cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the - * oauth2ClientSecretSha256 field. - * - * @InputOnly - * @param oauth2ClientSecret oauth2ClientSecret or {@code null} for none - */ - public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecret) { - this.oauth2ClientSecret = oauth2ClientSecret; - return this; - } - - /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. - * @return value or {@code null} for none - */ - public java.lang.String getOauth2ClientSecretSha256() { - return oauth2ClientSecretSha256; - } - - /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. - * @param oauth2ClientSecretSha256 oauth2ClientSecretSha256 or {@code null} for none - */ - public BackendServiceIAP setOauth2ClientSecretSha256(java.lang.String oauth2ClientSecretSha256) { - this.oauth2ClientSecretSha256 = oauth2ClientSecretSha256; - return this; - } - - @Override - public BackendServiceIAP set(String fieldName, Object value) { - return (BackendServiceIAP) super.set(fieldName, value); - } - - @Override - public BackendServiceIAP clone() { - return (BackendServiceIAP) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceList.java deleted file mode 100644 index e7338fdbfaa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of BackendService resources. - * - *

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 BackendServiceList extends com.google.api.client.json.GenericJson { - - /** - * [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 BackendService 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 BackendService 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(BackendService.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 BackendServiceList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of BackendService resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of BackendService resources. - * @param items items or {@code null} for none - */ - public BackendServiceList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. - * @param kind kind or {@code null} for none - */ - public BackendServiceList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public BackendServiceList 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 BackendServiceList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 BackendServiceList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendServiceList set(String fieldName, Object value) { - return (BackendServiceList) super.set(fieldName, value); - } - - @Override - public BackendServiceList clone() { - return (BackendServiceList) 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 BackendServiceListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceListUsable.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceListUsable.java deleted file mode 100644 index 6098dee7175..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceListUsable.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of usable BackendService resources. - * - *

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 BackendServiceListUsable extends com.google.api.client.json.GenericJson { - - /** - * [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 BackendService 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 BackendService 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(BackendService.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 BackendServiceListUsable setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of BackendService resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of BackendService resources. - * @param items items or {@code null} for none - */ - public BackendServiceListUsable setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. - * @param kind kind or {@code null} for none - */ - public BackendServiceListUsable setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public BackendServiceListUsable 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 BackendServiceListUsable setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 BackendServiceListUsable setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendServiceListUsable set(String fieldName, Object value) { - return (BackendServiceListUsable) super.set(fieldName, value); - } - - @Override - public BackendServiceListUsable clone() { - return (BackendServiceListUsable) 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 BackendServiceListUsableWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java deleted file mode 100644 index 8a374399c1c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * The configuration for a custom policy implemented by the user and deployed with the client. - * - *

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 BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy extends com.google.api.client.json.GenericJson { - - /** - * An optional, arbitrary JSON object with configuration data, understood by a locally installed - * custom policy implementation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String data; - - /** - * Identifies the custom policy. - * - * The value should match the name of a custom implementation registered on the gRPC clients. It - * should follow protocol buffer message naming conventions and include the full path (for - * example, myorg.CustomLbPolicy). The maximum length is 256 characters. - * - * Do not specify the same custom policy more than once for a backend. If you do, the - * configuration is rejected. - * - * For an example of how to use this field, seeUse a custom policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * An optional, arbitrary JSON object with configuration data, understood by a locally installed - * custom policy implementation. - * @return value or {@code null} for none - */ - public java.lang.String getData() { - return data; - } - - /** - * An optional, arbitrary JSON object with configuration data, understood by a locally installed - * custom policy implementation. - * @param data data or {@code null} for none - */ - public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy setData(java.lang.String data) { - this.data = data; - return this; - } - - /** - * Identifies the custom policy. - * - * The value should match the name of a custom implementation registered on the gRPC clients. It - * should follow protocol buffer message naming conventions and include the full path (for - * example, myorg.CustomLbPolicy). The maximum length is 256 characters. - * - * Do not specify the same custom policy more than once for a backend. If you do, the - * configuration is rejected. - * - * For an example of how to use this field, seeUse a custom policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifies the custom policy. - * - * The value should match the name of a custom implementation registered on the gRPC clients. It - * should follow protocol buffer message naming conventions and include the full path (for - * example, myorg.CustomLbPolicy). The maximum length is 256 characters. - * - * Do not specify the same custom policy more than once for a backend. If you do, the - * configuration is rejected. - * - * For an example of how to use this field, seeUse a custom policy. - * @param name name or {@code null} for none - */ - public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy set(String fieldName, Object value) { - return (BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy clone() { - return (BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java deleted file mode 100644 index 2e319376295..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLocalityLoadBalancingPolicyConfigPolicy.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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.preview.model; - -/** - * The configuration for a built-in load balancing policy. - * - *

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 BackendServiceLocalityLoadBalancingPolicyConfigPolicy extends com.google.api.client.json.GenericJson { - - /** - * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java - * clients, LEAST_REQUEST. For information about these values, see the description of - * localityLbPolicy. - * - * Do not specify the same policy more than once for a backend. If you do, the configuration is - * rejected. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java - * clients, LEAST_REQUEST. For information about these values, see the description of - * localityLbPolicy. - * - * Do not specify the same policy more than once for a backend. If you do, the configuration is - * rejected. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java - * clients, LEAST_REQUEST. For information about these values, see the description of - * localityLbPolicy. - * - * Do not specify the same policy more than once for a backend. If you do, the configuration is - * rejected. - * @param name name or {@code null} for none - */ - public BackendServiceLocalityLoadBalancingPolicyConfigPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public BackendServiceLocalityLoadBalancingPolicyConfigPolicy set(String fieldName, Object value) { - return (BackendServiceLocalityLoadBalancingPolicyConfigPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceLocalityLoadBalancingPolicyConfigPolicy clone() { - return (BackendServiceLocalityLoadBalancingPolicyConfigPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfig.java deleted file mode 100644 index 8496b10af2f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceLogConfig.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * 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.preview.model; - -/** - * The available logging options for the load balancer traffic served by this backend service. - * - *

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 BackendServiceLogConfig extends com.google.api.client.json.GenericJson { - - /** - * Denotes whether to enable logging for the load balancer traffic served by this backend service. - * The default value is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - - /** - * The list of request headers that will be logged to Stackdriver. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List loggingHttpRequestHeaders; - - /** - * The list of response headers that will be logged to Stackdriver. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List loggingHttpResponseHeaders; - - /** - * This field can only be specified if logging is enabled for this backend service and - * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to - * include in the logs. For example: serverInstance, serverGkeDetails.cluster, - * serverGkeDetails.pod.podNamespace - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List optionalFields; - - /** - * This field can only be specified if logging is enabled for this backend service. Configures - * whether all, none or a subset of optional fields should be added to the reported logs. One of - * [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String optionalMode; - - /** - * This field can only be specified if logging is enabled for this backend service. The value of - * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer - * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. - * The default value is 1.0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float sampleRate; - - /** - * Denotes whether to enable logging for the load balancer traffic served by this backend service. - * The default value is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * Denotes whether to enable logging for the load balancer traffic served by this backend service. - * The default value is false. - * @param enable enable or {@code null} for none - */ - public BackendServiceLogConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - - /** - * The list of request headers that will be logged to Stackdriver. - * @return value or {@code null} for none - */ - public java.util.List getLoggingHttpRequestHeaders() { - return loggingHttpRequestHeaders; - } - - /** - * The list of request headers that will be logged to Stackdriver. - * @param loggingHttpRequestHeaders loggingHttpRequestHeaders or {@code null} for none - */ - public BackendServiceLogConfig setLoggingHttpRequestHeaders(java.util.List loggingHttpRequestHeaders) { - this.loggingHttpRequestHeaders = loggingHttpRequestHeaders; - return this; - } - - /** - * The list of response headers that will be logged to Stackdriver. - * @return value or {@code null} for none - */ - public java.util.List getLoggingHttpResponseHeaders() { - return loggingHttpResponseHeaders; - } - - /** - * The list of response headers that will be logged to Stackdriver. - * @param loggingHttpResponseHeaders loggingHttpResponseHeaders or {@code null} for none - */ - public BackendServiceLogConfig setLoggingHttpResponseHeaders(java.util.List loggingHttpResponseHeaders) { - this.loggingHttpResponseHeaders = loggingHttpResponseHeaders; - return this; - } - - /** - * This field can only be specified if logging is enabled for this backend service and - * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to - * include in the logs. For example: serverInstance, serverGkeDetails.cluster, - * serverGkeDetails.pod.podNamespace - * @return value or {@code null} for none - */ - public java.util.List getOptionalFields() { - return optionalFields; - } - - /** - * This field can only be specified if logging is enabled for this backend service and - * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to - * include in the logs. For example: serverInstance, serverGkeDetails.cluster, - * serverGkeDetails.pod.podNamespace - * @param optionalFields optionalFields or {@code null} for none - */ - public BackendServiceLogConfig setOptionalFields(java.util.List optionalFields) { - this.optionalFields = optionalFields; - return this; - } - - /** - * This field can only be specified if logging is enabled for this backend service. Configures - * whether all, none or a subset of optional fields should be added to the reported logs. One of - * [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. - * @return value or {@code null} for none - */ - public java.lang.String getOptionalMode() { - return optionalMode; - } - - /** - * This field can only be specified if logging is enabled for this backend service. Configures - * whether all, none or a subset of optional fields should be added to the reported logs. One of - * [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. - * @param optionalMode optionalMode or {@code null} for none - */ - public BackendServiceLogConfig setOptionalMode(java.lang.String optionalMode) { - this.optionalMode = optionalMode; - return this; - } - - /** - * This field can only be specified if logging is enabled for this backend service. The value of - * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer - * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. - * The default value is 1.0. - * @return value or {@code null} for none - */ - public java.lang.Float getSampleRate() { - return sampleRate; - } - - /** - * This field can only be specified if logging is enabled for this backend service. The value of - * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer - * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. - * The default value is 1.0. - * @param sampleRate sampleRate or {@code null} for none - */ - public BackendServiceLogConfig setSampleRate(java.lang.Float sampleRate) { - this.sampleRate = sampleRate; - return this; - } - - @Override - public BackendServiceLogConfig set(String fieldName, Object value) { - return (BackendServiceLogConfig) super.set(fieldName, value); - } - - @Override - public BackendServiceLogConfig clone() { - return (BackendServiceLogConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java deleted file mode 100644 index 539b0de4296..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceNetworkPassThroughLbTrafficPolicy. - * - *

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 BackendServiceNetworkPassThroughLbTrafficPolicy extends com.google.api.client.json.GenericJson { - - /** - * When configured, new connections are load balanced across healthy backend endpoints in the - * local zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity; - - /** - * When configured, new connections are load balanced across healthy backend endpoints in the - * local zone. - * @return value or {@code null} for none - */ - public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getZonalAffinity() { - return zonalAffinity; - } - - /** - * When configured, new connections are load balanced across healthy backend endpoints in the - * local zone. - * @param zonalAffinity zonalAffinity or {@code null} for none - */ - public BackendServiceNetworkPassThroughLbTrafficPolicy setZonalAffinity(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity) { - this.zonalAffinity = zonalAffinity; - return this; - } - - @Override - public BackendServiceNetworkPassThroughLbTrafficPolicy set(String fieldName, Object value) { - return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.set(fieldName, value); - } - - @Override - public BackendServiceNetworkPassThroughLbTrafficPolicy clone() { - return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.clone(); - } - -} From ba6aa4eb3235014cb267a518d88516c8485942d5 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:34 -0700 Subject: [PATCH 13/23] chore: regenerate compute client --- ...ssThroughLbTrafficPolicyZonalAffinity.java | 135 -- .../BackendServiceOrchestrationInfo.java | 66 - .../preview/model/BackendServiceParams.java | 84 - .../model/BackendServiceReference.java | 63 - .../model/BackendServiceTlsSettings.java | 246 --- ...ckendServiceTlsSettingsSubjectAltName.java | 92 - .../preview/model/BackendServiceUsedBy.java | 69 - .../model/BackendServicesScopedList.java | 278 --- .../compute/preview/model/BfdPacket.java | 441 ----- .../compute/preview/model/BfdStatus.java | 300 --- .../preview/model/BfdStatusPacketCounts.java | 144 -- .../compute/preview/model/BgpRoute.java | 162 -- .../compute/preview/model/BgpRouteAsPath.java | 120 -- ...teNetworkLayerReachabilityInformation.java | 90 - .../compute/preview/model/Binding.java | 375 ---- .../preview/model/BulkInsertDiskResource.java | 127 -- .../model/BulkInsertInstanceResource.java | 298 --- ...InstanceResourcePerInstanceProperties.java | 93 - .../model/BulkInsertOperationStatus.java | 165 -- .../preview/model/BulkSetLabelsRequest.java | 133 -- .../model/BulkZoneSetLabelsRequest.java | 69 - .../preview/model/BundledLocalSsds.java | 90 - .../preview/model/CacheInvalidationRule.java | 132 -- .../compute/preview/model/CacheKeyPolicy.java | 231 --- .../compute/preview/model/CachePolicy.java | 441 ----- .../model/CachePolicyCacheKeyPolicy.java | 307 --- .../CachePolicyNegativeCachingPolicy.java | 102 - .../model/CalendarModeAdviceRequest.java | 72 - .../model/CalendarModeAdviceResponse.java | 71 - .../model/CalendarModeRecommendation.java | 70 - .../preview/model/CapacityAdviceRequest.java | 139 -- ...pacityAdviceRequestDistributionPolicy.java | 93 - ...stDistributionPolicyZoneConfiguration.java | 72 - ...dviceRequestInstanceFlexibilityPolicy.java | 69 - ...nceFlexibilityPolicyInstanceSelection.java | 147 -- ...tyPolicyInstanceSelectionAttachedDisk.java | 66 - ...pacityAdviceRequestInstanceProperties.java | 66 - ...ceRequestInstancePropertiesScheduling.java | 66 - .../preview/model/CapacityAdviceResponse.java | 69 - .../CapacityAdviceResponseRecommendation.java | 90 - ...ityAdviceResponseRecommendationScores.java | 96 - ...cityAdviceResponseRecommendationShard.java | 139 -- .../preview/model/CapacityHistoryRequest.java | 114 -- ...acityHistoryRequestInstanceProperties.java | 144 -- ...RequestInstancePropertiesAttachedDisk.java | 66 - ...ryRequestInstancePropertiesScheduling.java | 72 - .../CapacityHistoryRequestLocationPolicy.java | 84 - .../model/CapacityHistoryResponse.java | 144 -- ...pacityHistoryResponsePreemptionRecord.java | 96 - .../CapacityHistoryResponsePriceRecord.java | 90 - .../preview/model/CircuitBreakers.java | 213 --- .../compute/preview/model/Commitment.java | 764 -------- .../model/CommitmentAggregatedList.java | 404 ---- .../compute/preview/model/CommitmentList.java | 386 ---- .../preview/model/CommitmentParams.java | 78 - .../model/CommitmentResourceStatus.java | 72 - .../preview/model/CommitmentsScopedList.java | 282 --- .../preview/model/CompositeHealthCheck.java | 397 ---- .../CompositeHealthCheckAggregatedList.java | 401 ---- .../model/CompositeHealthCheckHealth.java | 117 -- .../model/CompositeHealthCheckList.java | 386 ---- ...ksGetHealthResponseHealthSourceHealth.java | 90 - .../CompositeHealthChecksScopedList.java | 281 --- .../model/ConfidentialInstanceConfig.java | 90 - .../preview/model/ConnectionDraining.java | 69 - .../ConsistentHashLoadBalancerSettings.java | 138 -- ...entHashLoadBalancerSettingsHttpCookie.java | 115 -- .../compute/preview/model/CorsPolicy.java | 280 --- .../preview/model/CrossSiteNetwork.java | 207 --- .../preview/model/CrossSiteNetworkList.java | 434 ----- .../model/CustomErrorResponsePolicy.java | 151 -- ...ResponsePolicyCustomErrorResponseRule.java | 166 -- .../preview/model/CustomerEncryptionKey.java | 249 --- .../CustomerEncryptionKeyProtectedDisk.java | 99 - .../services/compute/preview/model/Date.java | 127 -- .../compute/preview/model/DateTime.java | 290 --- .../preview/model/DeprecationStatus.java | 195 -- .../services/compute/preview/model/Disk.java | 1645 ----------------- .../preview/model/DiskAggregatedList.java | 404 ---- .../preview/model/DiskAsyncReplication.java | 165 -- .../model/DiskAsyncReplicationList.java | 63 - .../model/DiskInstantiationConfig.java | 172 -- .../compute/preview/model/DiskList.java | 383 ---- .../preview/model/DiskMoveRequest.java | 108 -- .../compute/preview/model/DiskParams.java | 78 - .../preview/model/DiskResourceStatus.java | 87 - ...kResourceStatusAsyncReplicationStatus.java | 63 - .../compute/preview/model/DiskType.java | 329 ---- .../preview/model/DiskTypeAggregatedList.java | 401 ---- .../compute/preview/model/DiskTypeList.java | 383 ---- .../preview/model/DiskTypesScopedList.java | 281 --- .../model/DiskUpdateKmsKeyRequest.java | 84 - .../DisksAddResourcePoliciesRequest.java | 69 - .../DisksRemoveResourcePoliciesRequest.java | 66 - .../preview/model/DisksResizeRequest.java | 66 - .../preview/model/DisksScopedList.java | 278 --- .../DisksStartAsyncReplicationRequest.java | 84 - ...isksStopGroupAsyncReplicationResource.java | 80 - .../compute/preview/model/DisplayDevice.java | 66 - .../preview/model/DistributionPolicy.java | 105 -- 100 files changed, 18929 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceOrchestrationInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettingsSubjectAltName.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceUsedBy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServicesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdPacket.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatusPacketCounts.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRoute.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteAsPath.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteNetworkLayerReachabilityInformation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Binding.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertDiskResource.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResource.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResourcePerInstanceProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertOperationStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkSetLabelsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkZoneSetLabelsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BundledLocalSsds.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheInvalidationRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheKeyPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyCacheKeyPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyNegativeCachingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeRecommendation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstancePropertiesScheduling.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationScores.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationShard.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstanceProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesScheduling.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestLocationPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePreemptionRecord.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePriceRecord.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CircuitBreakers.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Commitment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckHealth.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConfidentialInstanceConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConnectionDraining.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettingsHttpCookie.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CorsPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetwork.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetworkList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicyCustomErrorResponseRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKey.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKeyProtectedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Date.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DateTime.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DeprecationStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Disk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplication.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplicationList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskInstantiationConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskMoveRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatusAsyncReplicationStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskType.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksAddResourcePoliciesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksRemoveResourcePoliciesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksResizeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStartAsyncReplicationRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStopGroupAsyncReplicationResource.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisplayDevice.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicy.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java deleted file mode 100644 index a3b1fd8c7f4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity. - * - *

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 BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity extends com.google.api.client.json.GenericJson { - - /** - * This field indicates whether zonal affinity is enabled or not. The possible values are: - * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer - * distributes new connections to all healthy backend endpoints across all zones. - - * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes - * new connections to all healthy backend endpoints in the local zone only. If there are no - * healthy backend endpoints in the local zone, the load balancer distributes new - * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: - * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy - * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints - * in the local zone, the load balancer distributes new connections to all healthy backend - * endpoints across all zones. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String spillover; - - /** - * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend - * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above - * this threshold, the load balancer distributes new connections to all healthy endpoints in the - * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the - * count of backend endpoints in that same zone is below this threshold, the load balancer - * distributes all new connections to all healthy endpoints across all zones. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float spilloverRatio; - - /** - * This field indicates whether zonal affinity is enabled or not. The possible values are: - * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer - * distributes new connections to all healthy backend endpoints across all zones. - - * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes - * new connections to all healthy backend endpoints in the local zone only. If there are no - * healthy backend endpoints in the local zone, the load balancer distributes new - * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: - * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy - * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints - * in the local zone, the load balancer distributes new connections to all healthy backend - * endpoints across all zones. - * @return value or {@code null} for none - */ - public java.lang.String getSpillover() { - return spillover; - } - - /** - * This field indicates whether zonal affinity is enabled or not. The possible values are: - * - ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer - * distributes new connections to all healthy backend endpoints across all zones. - - * ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes - * new connections to all healthy backend endpoints in the local zone only. If there are no - * healthy backend endpoints in the local zone, the load balancer distributes new - * connections to all backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: - * Zonal Affinity is enabled. The load balancer distributes new connections to all healthy - * backend endpoints in the local zone only. If there aren't enough healthy backend endpoints - * in the local zone, the load balancer distributes new connections to all healthy backend - * endpoints across all zones. - * @param spillover spillover or {@code null} for none - */ - public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpillover(java.lang.String spillover) { - this.spillover = spillover; - return this; - } - - /** - * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend - * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above - * this threshold, the load balancer distributes new connections to all healthy endpoints in the - * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the - * count of backend endpoints in that same zone is below this threshold, the load balancer - * distributes all new connections to all healthy endpoints across all zones. - * @return value or {@code null} for none - */ - public java.lang.Float getSpilloverRatio() { - return spilloverRatio; - } - - /** - * The value of the field must be in [0, 1]. When the ratio of the count of healthy backend - * endpoints in a zone to the count of backend endpoints in that same zone is equal to or above - * this threshold, the load balancer distributes new connections to all healthy endpoints in the - * local zone only. When the ratio of the count of healthy backend endpoints in a zone to the - * count of backend endpoints in that same zone is below this threshold, the load balancer - * distributes all new connections to all healthy endpoints across all zones. - * @param spilloverRatio spilloverRatio or {@code null} for none - */ - public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpilloverRatio(java.lang.Float spilloverRatio) { - this.spilloverRatio = spilloverRatio; - return this; - } - - @Override - public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity set(String fieldName, Object value) { - return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.set(fieldName, value); - } - - @Override - public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity clone() { - return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceOrchestrationInfo.java deleted file mode 100644 index 88717193082..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceOrchestrationInfo.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * A message containing information about the resource or system that manages the backend service. - * - *

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 BackendServiceOrchestrationInfo extends com.google.api.client.json.GenericJson { - - /** - * The resource URI of the resource or system that manages the backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String resourceUri; - - /** - * The resource URI of the resource or system that manages the backend service. - * @return value or {@code null} for none - */ - public java.lang.String getResourceUri() { - return resourceUri; - } - - /** - * The resource URI of the resource or system that manages the backend service. - * @param resourceUri resourceUri or {@code null} for none - */ - public BackendServiceOrchestrationInfo setResourceUri(java.lang.String resourceUri) { - this.resourceUri = resourceUri; - return this; - } - - @Override - public BackendServiceOrchestrationInfo set(String fieldName, Object value) { - return (BackendServiceOrchestrationInfo) super.set(fieldName, value); - } - - @Override - public BackendServiceOrchestrationInfo clone() { - return (BackendServiceOrchestrationInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceParams.java deleted file mode 100644 index a175bf6fa72..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional Backend Service parameters. - * - *

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 BackendServiceParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public BackendServiceParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public BackendServiceParams set(String fieldName, Object value) { - return (BackendServiceParams) super.set(fieldName, value); - } - - @Override - public BackendServiceParams clone() { - return (BackendServiceParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceReference.java deleted file mode 100644 index b2958307c13..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceReference.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceReference. - * - *

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 BackendServiceReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * @param backendService backendService or {@code null} for none - */ - public BackendServiceReference setBackendService(java.lang.String backendService) { - this.backendService = backendService; - return this; - } - - @Override - public BackendServiceReference set(String fieldName, Object value) { - return (BackendServiceReference) super.set(fieldName, value); - } - - @Override - public BackendServiceReference clone() { - return (BackendServiceReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettings.java deleted file mode 100644 index f062325ca0c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettings.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceTlsSettings. - * - *

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 BackendServiceTlsSettings extends com.google.api.client.json.GenericJson { - - /** - * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com - * namespace. Can be used in authenticating TLS connections to the backend, as specified by the - * authenticationMode field. Can only be specified if authenticationMode is not NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String authenticationConfig; - - /** - * Assigns the Managed Identity for the BackendService Workload. - * - * Use this property to configure the load balancer back-end to use certificates and roots of - * trust provisioned by the Managed Workload Identity system. - * - * The `identity` property is the fully-specified SPIFFE ID to use in the SVID presented by the - * Load Balancer Workload. - * - * The SPIFFE ID must be a resource starting with the `trustDomain` property value, followed by - * the path to the Managed Workload Identity. - * - * Supported SPIFFE ID format: - ns//sa/ - * - * The Trust Domain within the Managed Identity must refer to a valid Workload Identity Pool. The - * TrustConfig and CertificateIssuanceConfig will be inherited from the Workload Identity Pool. - * - * Restrictions: - If you set the `identity` property, you cannot manually set the - * following fields: - tlsSettings.sni - tlsSettings.subjectAltNames - - * tlsSettings.authenticationConfig - * - * When defining a `identity` for a RegionBackendServices, the corresponding Workload Identity - * Pool must have a ca_pool configured in the same region. - * - * The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String identity; - - /** - * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string - * as the SNI hostname in the TLS connection to the backend, and requires that this string match a - * Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet - * NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the - * Regional Internet NEG is specified with FQDN or IP address and port. When both sni and - * subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only - * to subjectAltNames[]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sni; - - /** - * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS - * handshake with the backend. When the server presents its X.509 certificate to the Load - * Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least - * one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When - * both sni and subjectAltNames[] are specified, the load balancer matches the backend - * certificate's SAN only to subjectAltNames[]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subjectAltNames; - - /** - * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com - * namespace. Can be used in authenticating TLS connections to the backend, as specified by the - * authenticationMode field. Can only be specified if authenticationMode is not NONE. - * @return value or {@code null} for none - */ - public java.lang.String getAuthenticationConfig() { - return authenticationConfig; - } - - /** - * Reference to the BackendAuthenticationConfig resource from the networksecurity.googleapis.com - * namespace. Can be used in authenticating TLS connections to the backend, as specified by the - * authenticationMode field. Can only be specified if authenticationMode is not NONE. - * @param authenticationConfig authenticationConfig or {@code null} for none - */ - public BackendServiceTlsSettings setAuthenticationConfig(java.lang.String authenticationConfig) { - this.authenticationConfig = authenticationConfig; - return this; - } - - /** - * Assigns the Managed Identity for the BackendService Workload. - * - * Use this property to configure the load balancer back-end to use certificates and roots of - * trust provisioned by the Managed Workload Identity system. - * - * The `identity` property is the fully-specified SPIFFE ID to use in the SVID presented by the - * Load Balancer Workload. - * - * The SPIFFE ID must be a resource starting with the `trustDomain` property value, followed by - * the path to the Managed Workload Identity. - * - * Supported SPIFFE ID format: - ns//sa/ - * - * The Trust Domain within the Managed Identity must refer to a valid Workload Identity Pool. The - * TrustConfig and CertificateIssuanceConfig will be inherited from the Workload Identity Pool. - * - * Restrictions: - If you set the `identity` property, you cannot manually set the - * following fields: - tlsSettings.sni - tlsSettings.subjectAltNames - - * tlsSettings.authenticationConfig - * - * When defining a `identity` for a RegionBackendServices, the corresponding Workload Identity - * Pool must have a ca_pool configured in the same region. - * - * The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. - * @return value or {@code null} for none - */ - public java.lang.String getIdentity() { - return identity; - } - - /** - * Assigns the Managed Identity for the BackendService Workload. - * - * Use this property to configure the load balancer back-end to use certificates and roots of - * trust provisioned by the Managed Workload Identity system. - * - * The `identity` property is the fully-specified SPIFFE ID to use in the SVID presented by the - * Load Balancer Workload. - * - * The SPIFFE ID must be a resource starting with the `trustDomain` property value, followed by - * the path to the Managed Workload Identity. - * - * Supported SPIFFE ID format: - ns//sa/ - * - * The Trust Domain within the Managed Identity must refer to a valid Workload Identity Pool. The - * TrustConfig and CertificateIssuanceConfig will be inherited from the Workload Identity Pool. - * - * Restrictions: - If you set the `identity` property, you cannot manually set the - * following fields: - tlsSettings.sni - tlsSettings.subjectAltNames - - * tlsSettings.authenticationConfig - * - * When defining a `identity` for a RegionBackendServices, the corresponding Workload Identity - * Pool must have a ca_pool configured in the same region. - * - * The system will set up a read-onlytlsSettings.authenticationConfig for the Managed Identity. - * @param identity identity or {@code null} for none - */ - public BackendServiceTlsSettings setIdentity(java.lang.String identity) { - this.identity = identity; - return this; - } - - /** - * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string - * as the SNI hostname in the TLS connection to the backend, and requires that this string match a - * Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet - * NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the - * Regional Internet NEG is specified with FQDN or IP address and port. When both sni and - * subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only - * to subjectAltNames[]. - * @return value or {@code null} for none - */ - public java.lang.String getSni() { - return sni; - } - - /** - * Server Name Indication - see RFC3546 section 3.1. If set, the load balancer sends this string - * as the SNI hostname in the TLS connection to the backend, and requires that this string match a - * Subject Alternative Name (SAN) in the backend's server certificate. With a Regional Internet - * NEG backend, if the SNI is specified here, the load balancer uses it regardless of whether the - * Regional Internet NEG is specified with FQDN or IP address and port. When both sni and - * subjectAltNames[] are specified, the load balancer matches the backend certificate's SAN only - * to subjectAltNames[]. - * @param sni sni or {@code null} for none - */ - public BackendServiceTlsSettings setSni(java.lang.String sni) { - this.sni = sni; - return this; - } - - /** - * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS - * handshake with the backend. When the server presents its X.509 certificate to the Load - * Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least - * one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When - * both sni and subjectAltNames[] are specified, the load balancer matches the backend - * certificate's SAN only to subjectAltNames[]. - * @return value or {@code null} for none - */ - public java.util.List getSubjectAltNames() { - return subjectAltNames; - } - - /** - * A list of Subject Alternative Names (SANs) that the Load Balancer verifies during a TLS - * handshake with the backend. When the server presents its X.509 certificate to the Load - * Balancer, the Load Balancer inspects the certificate's SAN field, and requires that at least - * one SAN match one of the subjectAltNames in the list. This field is limited to 5 entries. When - * both sni and subjectAltNames[] are specified, the load balancer matches the backend - * certificate's SAN only to subjectAltNames[]. - * @param subjectAltNames subjectAltNames or {@code null} for none - */ - public BackendServiceTlsSettings setSubjectAltNames(java.util.List subjectAltNames) { - this.subjectAltNames = subjectAltNames; - return this; - } - - @Override - public BackendServiceTlsSettings set(String fieldName, Object value) { - return (BackendServiceTlsSettings) super.set(fieldName, value); - } - - @Override - public BackendServiceTlsSettings clone() { - return (BackendServiceTlsSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettingsSubjectAltName.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettingsSubjectAltName.java deleted file mode 100644 index 0df07762960..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceTlsSettingsSubjectAltName.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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.preview.model; - -/** - * A Subject Alternative Name that the load balancer matches against the SAN field in the TLS - * certificate provided by the backend, specified as either a DNS name or a URI, in accordance with - * RFC 5280 4.2.1.6 - * - *

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 BackendServiceTlsSettingsSubjectAltName extends com.google.api.client.json.GenericJson { - - /** - * The SAN specified as a DNS Name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String dnsName; - - /** - * The SAN specified as a URI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String uniformResourceIdentifier; - - /** - * The SAN specified as a DNS Name. - * @return value or {@code null} for none - */ - public java.lang.String getDnsName() { - return dnsName; - } - - /** - * The SAN specified as a DNS Name. - * @param dnsName dnsName or {@code null} for none - */ - public BackendServiceTlsSettingsSubjectAltName setDnsName(java.lang.String dnsName) { - this.dnsName = dnsName; - return this; - } - - /** - * The SAN specified as a URI. - * @return value or {@code null} for none - */ - public java.lang.String getUniformResourceIdentifier() { - return uniformResourceIdentifier; - } - - /** - * The SAN specified as a URI. - * @param uniformResourceIdentifier uniformResourceIdentifier or {@code null} for none - */ - public BackendServiceTlsSettingsSubjectAltName setUniformResourceIdentifier(java.lang.String uniformResourceIdentifier) { - this.uniformResourceIdentifier = uniformResourceIdentifier; - return this; - } - - @Override - public BackendServiceTlsSettingsSubjectAltName set(String fieldName, Object value) { - return (BackendServiceTlsSettingsSubjectAltName) super.set(fieldName, value); - } - - @Override - public BackendServiceTlsSettingsSubjectAltName clone() { - return (BackendServiceTlsSettingsSubjectAltName) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceUsedBy.java deleted file mode 100644 index af43784808f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServiceUsedBy.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServiceUsedBy. - * - *

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 BackendServiceUsedBy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Server-defined URL for resources referencing given BackendService - * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reference; - - /** - * Output only. [Output Only] Server-defined URL for resources referencing given BackendService - * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. - * @return value or {@code null} for none - */ - public java.lang.String getReference() { - return reference; - } - - /** - * Output only. [Output Only] Server-defined URL for resources referencing given BackendService - * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. - * @param reference reference or {@code null} for none - */ - public BackendServiceUsedBy setReference(java.lang.String reference) { - this.reference = reference; - return this; - } - - @Override - public BackendServiceUsedBy set(String fieldName, Object value) { - return (BackendServiceUsedBy) super.set(fieldName, value); - } - - @Override - public BackendServiceUsedBy clone() { - return (BackendServiceUsedBy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServicesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServicesScopedList.java deleted file mode 100644 index bd015dfc557..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BackendServicesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BackendServicesScopedList. - * - *

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 BackendServicesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of BackendServices contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List backendServices; - - static { - // hack to force ProGuard to consider BackendService 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(BackendService.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of BackendServices contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getBackendServices() { - return backendServices; - } - - /** - * A list of BackendServices contained in this scope. - * @param backendServices backendServices or {@code null} for none - */ - public BackendServicesScopedList setBackendServices(java.util.List backendServices) { - this.backendServices = backendServices; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public BackendServicesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public BackendServicesScopedList set(String fieldName, Object value) { - return (BackendServicesScopedList) super.set(fieldName, value); - } - - @Override - public BackendServicesScopedList clone() { - return (BackendServicesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 BackendServicesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/BfdPacket.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdPacket.java deleted file mode 100644 index 3a1250899d5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdPacket.java +++ /dev/null @@ -1,441 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BfdPacket. - * - *

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 BfdPacket extends com.google.api.client.json.GenericJson { - - /** - * The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean authenticationPresent; - - /** - * The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean controlPlaneIndependent; - - /** - * The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean demand; - - /** - * The diagnostic code specifies the local system's reason for the last change in session state. - * This allows remote systems to determine the reason that the previous session failed, for - * example. These diagnostic codes are specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diagnostic; - - /** - * The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("final") - private java.lang.Boolean final__; - - /** - * The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long length; - - /** - * The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 - * ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long minEchoRxIntervalMs; - - /** - * The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 - * ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long minRxIntervalMs; - - /** - * The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long minTxIntervalMs; - - /** - * The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long multiplier; - - /** - * The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean multipoint; - - /** - * The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long myDiscriminator; - - /** - * The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean poll; - - /** - * The current BFD session state as seen by the transmitting system. These states are specified in - * section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long version; - - /** - * The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long yourDiscriminator; - - /** - * The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Boolean getAuthenticationPresent() { - return authenticationPresent; - } - - /** - * The Authentication Present bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param authenticationPresent authenticationPresent or {@code null} for none - */ - public BfdPacket setAuthenticationPresent(java.lang.Boolean authenticationPresent) { - this.authenticationPresent = authenticationPresent; - return this; - } - - /** - * The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Boolean getControlPlaneIndependent() { - return controlPlaneIndependent; - } - - /** - * The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param controlPlaneIndependent controlPlaneIndependent or {@code null} for none - */ - public BfdPacket setControlPlaneIndependent(java.lang.Boolean controlPlaneIndependent) { - this.controlPlaneIndependent = controlPlaneIndependent; - return this; - } - - /** - * The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Boolean getDemand() { - return demand; - } - - /** - * The demand bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param demand demand or {@code null} for none - */ - public BfdPacket setDemand(java.lang.Boolean demand) { - this.demand = demand; - return this; - } - - /** - * The diagnostic code specifies the local system's reason for the last change in session state. - * This allows remote systems to determine the reason that the previous session failed, for - * example. These diagnostic codes are specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.String getDiagnostic() { - return diagnostic; - } - - /** - * The diagnostic code specifies the local system's reason for the last change in session state. - * This allows remote systems to determine the reason that the previous session failed, for - * example. These diagnostic codes are specified in section 4.1 ofRFC5880 - * @param diagnostic diagnostic or {@code null} for none - */ - public BfdPacket setDiagnostic(java.lang.String diagnostic) { - this.diagnostic = diagnostic; - return this; - } - - /** - * The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Boolean getFinal() { - return final__; - } - - /** - * The Final bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param final__ final__ or {@code null} for none - */ - public BfdPacket setFinal(java.lang.Boolean final__) { - this.final__ = final__; - return this; - } - - /** - * The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getLength() { - return length; - } - - /** - * The length of the BFD Control packet in bytes. This is specified in section 4.1 ofRFC5880 - * @param length length or {@code null} for none - */ - public BfdPacket setLength(java.lang.Long length) { - this.length = length; - return this; - } - - /** - * The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 - * ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getMinEchoRxIntervalMs() { - return minEchoRxIntervalMs; - } - - /** - * The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 - * ofRFC5880 - * @param minEchoRxIntervalMs minEchoRxIntervalMs or {@code null} for none - */ - public BfdPacket setMinEchoRxIntervalMs(java.lang.Long minEchoRxIntervalMs) { - this.minEchoRxIntervalMs = minEchoRxIntervalMs; - return this; - } - - /** - * The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 - * ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getMinRxIntervalMs() { - return minRxIntervalMs; - } - - /** - * The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 - * ofRFC5880 - * @param minRxIntervalMs minRxIntervalMs or {@code null} for none - */ - public BfdPacket setMinRxIntervalMs(java.lang.Long minRxIntervalMs) { - this.minRxIntervalMs = minRxIntervalMs; - return this; - } - - /** - * The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getMinTxIntervalMs() { - return minTxIntervalMs; - } - - /** - * The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param minTxIntervalMs minTxIntervalMs or {@code null} for none - */ - public BfdPacket setMinTxIntervalMs(java.lang.Long minTxIntervalMs) { - this.minTxIntervalMs = minTxIntervalMs; - return this; - } - - /** - * The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getMultiplier() { - return multiplier; - } - - /** - * The detection time multiplier of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param multiplier multiplier or {@code null} for none - */ - public BfdPacket setMultiplier(java.lang.Long multiplier) { - this.multiplier = multiplier; - return this; - } - - /** - * The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Boolean getMultipoint() { - return multipoint; - } - - /** - * The multipoint bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param multipoint multipoint or {@code null} for none - */ - public BfdPacket setMultipoint(java.lang.Boolean multipoint) { - this.multipoint = multipoint; - return this; - } - - /** - * The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getMyDiscriminator() { - return myDiscriminator; - } - - /** - * The My Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param myDiscriminator myDiscriminator or {@code null} for none - */ - public BfdPacket setMyDiscriminator(java.lang.Long myDiscriminator) { - this.myDiscriminator = myDiscriminator; - return this; - } - - /** - * The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Boolean getPoll() { - return poll; - } - - /** - * The Poll bit of the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param poll poll or {@code null} for none - */ - public BfdPacket setPoll(java.lang.Boolean poll) { - this.poll = poll; - return this; - } - - /** - * The current BFD session state as seen by the transmitting system. These states are specified in - * section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * The current BFD session state as seen by the transmitting system. These states are specified in - * section 4.1 ofRFC5880 - * @param state state or {@code null} for none - */ - public BfdPacket setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. - * @return value or {@code null} for none - */ - public java.lang.Long getVersion() { - return version; - } - - /** - * The version number of the BFD protocol, as specified in section 4.1 ofRFC5880. - * @param version version or {@code null} for none - */ - public BfdPacket setVersion(java.lang.Long version) { - this.version = version; - return this; - } - - /** - * The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.Long getYourDiscriminator() { - return yourDiscriminator; - } - - /** - * The Your Discriminator value in the BFD packet. This is specified in section 4.1 ofRFC5880 - * @param yourDiscriminator yourDiscriminator or {@code null} for none - */ - public BfdPacket setYourDiscriminator(java.lang.Long yourDiscriminator) { - this.yourDiscriminator = yourDiscriminator; - return this; - } - - @Override - public BfdPacket set(String fieldName, Object value) { - return (BfdPacket) super.set(fieldName, value); - } - - @Override - public BfdPacket clone() { - return (BfdPacket) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatus.java deleted file mode 100644 index 77a06760bd6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatus.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * 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.preview.model; - -/** - * Next free: 15 - * - *

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 BfdStatus extends com.google.api.client.json.GenericJson { - - /** - * The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will - * initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for - * the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is - * disabled for this BGP peer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bfdSessionInitializationMode; - - /** - * Unix timestamp of the most recent config update. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long configUpdateTimestampMicros; - - /** - * Control packet counts for the current BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BfdStatusPacketCounts controlPacketCounts; - - /** - * Inter-packet time interval statistics for control packets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List controlPacketIntervals; - - /** - * The diagnostic code specifies the local system's reason for the last change in session state. - * This allows remote systems to determine the reason that the previous session failed, for - * example. These diagnostic codes are specified in section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String localDiagnostic; - - /** - * The current BFD session state as seen by the transmitting system. These states are specified in - * section 4.1 ofRFC5880 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String localState; - - /** - * Negotiated transmit interval for control packets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long negotiatedLocalControlTxIntervalMs; - - /** - * The most recent Rx control packet for this BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BfdPacket rxPacket; - - /** - * The most recent Tx control packet for this BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BfdPacket txPacket; - - /** - * Session uptime in milliseconds. Value will be 0 if session is not up. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long uptimeMs; - - /** - * The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will - * initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for - * the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is - * disabled for this BGP peer. - * @return value or {@code null} for none - */ - public java.lang.String getBfdSessionInitializationMode() { - return bfdSessionInitializationMode; - } - - /** - * The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will - * initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for - * the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is - * disabled for this BGP peer. - * @param bfdSessionInitializationMode bfdSessionInitializationMode or {@code null} for none - */ - public BfdStatus setBfdSessionInitializationMode(java.lang.String bfdSessionInitializationMode) { - this.bfdSessionInitializationMode = bfdSessionInitializationMode; - return this; - } - - /** - * Unix timestamp of the most recent config update. - * @return value or {@code null} for none - */ - public java.lang.Long getConfigUpdateTimestampMicros() { - return configUpdateTimestampMicros; - } - - /** - * Unix timestamp of the most recent config update. - * @param configUpdateTimestampMicros configUpdateTimestampMicros or {@code null} for none - */ - public BfdStatus setConfigUpdateTimestampMicros(java.lang.Long configUpdateTimestampMicros) { - this.configUpdateTimestampMicros = configUpdateTimestampMicros; - return this; - } - - /** - * Control packet counts for the current BFD session. - * @return value or {@code null} for none - */ - public BfdStatusPacketCounts getControlPacketCounts() { - return controlPacketCounts; - } - - /** - * Control packet counts for the current BFD session. - * @param controlPacketCounts controlPacketCounts or {@code null} for none - */ - public BfdStatus setControlPacketCounts(BfdStatusPacketCounts controlPacketCounts) { - this.controlPacketCounts = controlPacketCounts; - return this; - } - - /** - * Inter-packet time interval statistics for control packets. - * @return value or {@code null} for none - */ - public java.util.List getControlPacketIntervals() { - return controlPacketIntervals; - } - - /** - * Inter-packet time interval statistics for control packets. - * @param controlPacketIntervals controlPacketIntervals or {@code null} for none - */ - public BfdStatus setControlPacketIntervals(java.util.List controlPacketIntervals) { - this.controlPacketIntervals = controlPacketIntervals; - return this; - } - - /** - * The diagnostic code specifies the local system's reason for the last change in session state. - * This allows remote systems to determine the reason that the previous session failed, for - * example. These diagnostic codes are specified in section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.String getLocalDiagnostic() { - return localDiagnostic; - } - - /** - * The diagnostic code specifies the local system's reason for the last change in session state. - * This allows remote systems to determine the reason that the previous session failed, for - * example. These diagnostic codes are specified in section 4.1 ofRFC5880 - * @param localDiagnostic localDiagnostic or {@code null} for none - */ - public BfdStatus setLocalDiagnostic(java.lang.String localDiagnostic) { - this.localDiagnostic = localDiagnostic; - return this; - } - - /** - * The current BFD session state as seen by the transmitting system. These states are specified in - * section 4.1 ofRFC5880 - * @return value or {@code null} for none - */ - public java.lang.String getLocalState() { - return localState; - } - - /** - * The current BFD session state as seen by the transmitting system. These states are specified in - * section 4.1 ofRFC5880 - * @param localState localState or {@code null} for none - */ - public BfdStatus setLocalState(java.lang.String localState) { - this.localState = localState; - return this; - } - - /** - * Negotiated transmit interval for control packets. - * @return value or {@code null} for none - */ - public java.lang.Long getNegotiatedLocalControlTxIntervalMs() { - return negotiatedLocalControlTxIntervalMs; - } - - /** - * Negotiated transmit interval for control packets. - * @param negotiatedLocalControlTxIntervalMs negotiatedLocalControlTxIntervalMs or {@code null} for none - */ - public BfdStatus setNegotiatedLocalControlTxIntervalMs(java.lang.Long negotiatedLocalControlTxIntervalMs) { - this.negotiatedLocalControlTxIntervalMs = negotiatedLocalControlTxIntervalMs; - return this; - } - - /** - * The most recent Rx control packet for this BFD session. - * @return value or {@code null} for none - */ - public BfdPacket getRxPacket() { - return rxPacket; - } - - /** - * The most recent Rx control packet for this BFD session. - * @param rxPacket rxPacket or {@code null} for none - */ - public BfdStatus setRxPacket(BfdPacket rxPacket) { - this.rxPacket = rxPacket; - return this; - } - - /** - * The most recent Tx control packet for this BFD session. - * @return value or {@code null} for none - */ - public BfdPacket getTxPacket() { - return txPacket; - } - - /** - * The most recent Tx control packet for this BFD session. - * @param txPacket txPacket or {@code null} for none - */ - public BfdStatus setTxPacket(BfdPacket txPacket) { - this.txPacket = txPacket; - return this; - } - - /** - * Session uptime in milliseconds. Value will be 0 if session is not up. - * @return value or {@code null} for none - */ - public java.lang.Long getUptimeMs() { - return uptimeMs; - } - - /** - * Session uptime in milliseconds. Value will be 0 if session is not up. - * @param uptimeMs uptimeMs or {@code null} for none - */ - public BfdStatus setUptimeMs(java.lang.Long uptimeMs) { - this.uptimeMs = uptimeMs; - return this; - } - - @Override - public BfdStatus set(String fieldName, Object value) { - return (BfdStatus) super.set(fieldName, value); - } - - @Override - public BfdStatus clone() { - return (BfdStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatusPacketCounts.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatusPacketCounts.java deleted file mode 100644 index ff1e6244183..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BfdStatusPacketCounts.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BfdStatusPacketCounts. - * - *

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 BfdStatusPacketCounts extends com.google.api.client.json.GenericJson { - - /** - * Number of packets received since the beginning of the current BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long numRx; - - /** - * Number of packets received that were rejected because of errors since the beginning of the - * current BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long numRxRejected; - - /** - * Number of packets received that were successfully processed since the beginning of the current - * BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long numRxSuccessful; - - /** - * Number of packets transmitted since the beginning of the current BFD session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long numTx; - - /** - * Number of packets received since the beginning of the current BFD session. - * @return value or {@code null} for none - */ - public java.lang.Long getNumRx() { - return numRx; - } - - /** - * Number of packets received since the beginning of the current BFD session. - * @param numRx numRx or {@code null} for none - */ - public BfdStatusPacketCounts setNumRx(java.lang.Long numRx) { - this.numRx = numRx; - return this; - } - - /** - * Number of packets received that were rejected because of errors since the beginning of the - * current BFD session. - * @return value or {@code null} for none - */ - public java.lang.Long getNumRxRejected() { - return numRxRejected; - } - - /** - * Number of packets received that were rejected because of errors since the beginning of the - * current BFD session. - * @param numRxRejected numRxRejected or {@code null} for none - */ - public BfdStatusPacketCounts setNumRxRejected(java.lang.Long numRxRejected) { - this.numRxRejected = numRxRejected; - return this; - } - - /** - * Number of packets received that were successfully processed since the beginning of the current - * BFD session. - * @return value or {@code null} for none - */ - public java.lang.Long getNumRxSuccessful() { - return numRxSuccessful; - } - - /** - * Number of packets received that were successfully processed since the beginning of the current - * BFD session. - * @param numRxSuccessful numRxSuccessful or {@code null} for none - */ - public BfdStatusPacketCounts setNumRxSuccessful(java.lang.Long numRxSuccessful) { - this.numRxSuccessful = numRxSuccessful; - return this; - } - - /** - * Number of packets transmitted since the beginning of the current BFD session. - * @return value or {@code null} for none - */ - public java.lang.Long getNumTx() { - return numTx; - } - - /** - * Number of packets transmitted since the beginning of the current BFD session. - * @param numTx numTx or {@code null} for none - */ - public BfdStatusPacketCounts setNumTx(java.lang.Long numTx) { - this.numTx = numTx; - return this; - } - - @Override - public BfdStatusPacketCounts set(String fieldName, Object value) { - return (BfdStatusPacketCounts) super.set(fieldName, value); - } - - @Override - public BfdStatusPacketCounts clone() { - return (BfdStatusPacketCounts) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRoute.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRoute.java deleted file mode 100644 index 6632caa8aeb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRoute.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BgpRoute. - * - *

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 BgpRoute extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] AS-PATH for the route - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List asPaths; - - /** - * Output only. [Output only] BGP communities in human-readable A:B format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List communities; - - /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BgpRouteNetworkLayerReachabilityInformation destination; - - /** - * Output only. [Output only] BGP multi-exit discriminator - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long med; - - /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String origin; - - /** - * Output only. [Output only] AS-PATH for the route - * @return value or {@code null} for none - */ - public java.util.List getAsPaths() { - return asPaths; - } - - /** - * Output only. [Output only] AS-PATH for the route - * @param asPaths asPaths or {@code null} for none - */ - public BgpRoute setAsPaths(java.util.List asPaths) { - this.asPaths = asPaths; - return this; - } - - /** - * Output only. [Output only] BGP communities in human-readable A:B format. - * @return value or {@code null} for none - */ - public java.util.List getCommunities() { - return communities; - } - - /** - * Output only. [Output only] BGP communities in human-readable A:B format. - * @param communities communities or {@code null} for none - */ - public BgpRoute setCommunities(java.util.List communities) { - this.communities = communities; - return this; - } - - /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format - * @return value or {@code null} for none - */ - public BgpRouteNetworkLayerReachabilityInformation getDestination() { - return destination; - } - - /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format - * @param destination destination or {@code null} for none - */ - public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation destination) { - this.destination = destination; - return this; - } - - /** - * Output only. [Output only] BGP multi-exit discriminator - * @return value or {@code null} for none - */ - public java.lang.Long getMed() { - return med; - } - - /** - * Output only. [Output only] BGP multi-exit discriminator - * @param med med or {@code null} for none - */ - public BgpRoute setMed(java.lang.Long med) { - this.med = med; - return this; - } - - /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) - * @return value or {@code null} for none - */ - public java.lang.String getOrigin() { - return origin; - } - - /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) - * @param origin origin or {@code null} for none - */ - public BgpRoute setOrigin(java.lang.String origin) { - this.origin = origin; - return this; - } - - @Override - public BgpRoute set(String fieldName, Object value) { - return (BgpRoute) super.set(fieldName, value); - } - - @Override - public BgpRoute clone() { - return (BgpRoute) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteAsPath.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteAsPath.java deleted file mode 100644 index 09eeb387cc1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteAsPath.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BgpRouteAsPath. - * - *

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 BgpRouteAsPath extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List asns; - - /** - * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit - * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is - * SEQUENCE, these are ordered. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List asns32; - - /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. - * @return value or {@code null} for none - */ - public java.util.List getAsns() { - return asns; - } - - /** - * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. - * @param asns asns or {@code null} for none - */ - public BgpRouteAsPath setAsns(java.util.List asns) { - this.asns = asns; - return this; - } - - /** - * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit - * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is - * SEQUENCE, these are ordered. - * @return value or {@code null} for none - */ - public java.util.List getAsns32() { - return asns32; - } - - /** - * Output only. [Output only] ASNs in the path segment. This field is for better support of 32 bit - * ASNs as the other asns field suffers from overflow when the ASN is larger. When type is - * SEQUENCE, these are ordered. - * @param asns32 asns32 or {@code null} for none - */ - public BgpRouteAsPath setAsns32(java.util.List asns32) { - this.asns32 = asns32; - return this; - } - - /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) - * @param type type or {@code null} for none - */ - public BgpRouteAsPath setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public BgpRouteAsPath set(String fieldName, Object value) { - return (BgpRouteAsPath) super.set(fieldName, value); - } - - @Override - public BgpRouteAsPath clone() { - return (BgpRouteAsPath) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteNetworkLayerReachabilityInformation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteNetworkLayerReachabilityInformation.java deleted file mode 100644 index 08023418368..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BgpRouteNetworkLayerReachabilityInformation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Network Layer Reachability Information (NLRI) for a route. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class BgpRouteNetworkLayerReachabilityInformation extends com.google.api.client.json.GenericJson { - - /** - * If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long pathId; - - /** - * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String prefix; - - /** - * If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. - * @return value or {@code null} for none - */ - public java.lang.Long getPathId() { - return pathId; - } - - /** - * If the BGP session supports multiple paths (RFC 7911), the path identifier for this route. - * @param pathId pathId or {@code null} for none - */ - public BgpRouteNetworkLayerReachabilityInformation setPathId(java.lang.Long pathId) { - this.pathId = pathId; - return this; - } - - /** - * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. - * @return value or {@code null} for none - */ - public java.lang.String getPrefix() { - return prefix; - } - - /** - * Human readable CIDR notation for a prefix. E.g. 10.42.0.0/16. - * @param prefix prefix or {@code null} for none - */ - public BgpRouteNetworkLayerReachabilityInformation setPrefix(java.lang.String prefix) { - this.prefix = prefix; - return this; - } - - @Override - public BgpRouteNetworkLayerReachabilityInformation set(String fieldName, Object value) { - return (BgpRouteNetworkLayerReachabilityInformation) super.set(fieldName, value); - } - - @Override - public BgpRouteNetworkLayerReachabilityInformation clone() { - return (BgpRouteNetworkLayerReachabilityInformation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Binding.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Binding.java deleted file mode 100644 index 98dce5398a2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Binding.java +++ /dev/null @@ -1,375 +0,0 @@ -/* - * 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.preview.model; - -/** - * Associates `members`, or principals, with a `role`. - * - *

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 Binding extends com.google.api.client.json.GenericJson { - - /** - * The condition that is associated with this binding. - * - * If the condition evaluates to `true`, then this binding applies to the current request. - * - * If the condition evaluates to `false`, then this binding does not apply to the current request. - * However, a different role binding might grant the same role to one or more of the principals in - * this binding. - * - * To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Expr condition; - - /** - * Specifies the principals requesting access for a Google Cloud resource. `members` can have the - * following values: - * - * * `allUsers`: A special identifier that represents anyone who is on the internet; with or - * without a Google account. - * - * * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated - * with a Google account or a service account. Does not include identities that come from - * external identity providers (IdPs) through identity federation. - * - * * `user:{emailid}`: An email address that represents a specific Google account. For example, - * `alice@example.com` . - * - * * `serviceAccount:{emailid}`: An email address that represents a Google service account. For - * example, `my-other-app@appspot.gserviceaccount.com`. - * - * * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a - * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how- - * to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my- - * kubernetes-sa]`. - * - * * `group:{emailid}`: An email address that represents a Google group. For example, - * `admins@example.com`. - * - * * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that - * domain. For example, `google.com` or `example.com`. - * - * * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_at - * tribute_value}`: A single identity in a workforce identity pool. - * - * * - * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: - * All workforce identities in a group. - * - * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attri - * bute_name}/{attribute_value}`: All workforce identities with a specific attribute value. - * - * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All - * identities in a workforce identity pool. - * - * * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPo - * ols/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity - * pool. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}/group/{group_id}`: A workload identity pool group. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload - * identity pool with a certain attribute. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}`: All identities in a workload identity pool. - * - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) - * representing a user that has been recently deleted. For example, - * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts - * to `user:{emailid}` and the recovered user retains the role in the binding. - * - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a service account that has been recently deleted. For example, - * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account - * is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service - * account retains the role in the binding. - * - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) - * representing a Google group that has been recently deleted. For example, - * `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value - * reverts to `group:{emailid}` and the recovered group retains the role in the binding. - * - * * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{su - * bject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, - * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- - * subject-attribute-value`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List members; - - /** - * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, - * `roles/editor`, or `roles/owner`. - * - * For an overview of the IAM roles and permissions, see the [IAM - * documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available - * pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String role; - - /** - * The condition that is associated with this binding. - * - * If the condition evaluates to `true`, then this binding applies to the current request. - * - * If the condition evaluates to `false`, then this binding does not apply to the current request. - * However, a different role binding might grant the same role to one or more of the principals in - * this binding. - * - * To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @return value or {@code null} for none - */ - public Expr getCondition() { - return condition; - } - - /** - * The condition that is associated with this binding. - * - * If the condition evaluates to `true`, then this binding applies to the current request. - * - * If the condition evaluates to `false`, then this binding does not apply to the current request. - * However, a different role binding might grant the same role to one or more of the principals in - * this binding. - * - * To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @param condition condition or {@code null} for none - */ - public Binding setCondition(Expr condition) { - this.condition = condition; - return this; - } - - /** - * Specifies the principals requesting access for a Google Cloud resource. `members` can have the - * following values: - * - * * `allUsers`: A special identifier that represents anyone who is on the internet; with or - * without a Google account. - * - * * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated - * with a Google account or a service account. Does not include identities that come from - * external identity providers (IdPs) through identity federation. - * - * * `user:{emailid}`: An email address that represents a specific Google account. For example, - * `alice@example.com` . - * - * * `serviceAccount:{emailid}`: An email address that represents a Google service account. For - * example, `my-other-app@appspot.gserviceaccount.com`. - * - * * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a - * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how- - * to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my- - * kubernetes-sa]`. - * - * * `group:{emailid}`: An email address that represents a Google group. For example, - * `admins@example.com`. - * - * * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that - * domain. For example, `google.com` or `example.com`. - * - * * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_at - * tribute_value}`: A single identity in a workforce identity pool. - * - * * - * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: - * All workforce identities in a group. - * - * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attri - * bute_name}/{attribute_value}`: All workforce identities with a specific attribute value. - * - * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All - * identities in a workforce identity pool. - * - * * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPo - * ols/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity - * pool. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}/group/{group_id}`: A workload identity pool group. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload - * identity pool with a certain attribute. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}`: All identities in a workload identity pool. - * - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) - * representing a user that has been recently deleted. For example, - * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts - * to `user:{emailid}` and the recovered user retains the role in the binding. - * - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a service account that has been recently deleted. For example, - * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account - * is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service - * account retains the role in the binding. - * - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) - * representing a Google group that has been recently deleted. For example, - * `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value - * reverts to `group:{emailid}` and the recovered group retains the role in the binding. - * - * * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{su - * bject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, - * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- - * subject-attribute-value`. - * @return value or {@code null} for none - */ - public java.util.List getMembers() { - return members; - } - - /** - * Specifies the principals requesting access for a Google Cloud resource. `members` can have the - * following values: - * - * * `allUsers`: A special identifier that represents anyone who is on the internet; with or - * without a Google account. - * - * * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated - * with a Google account or a service account. Does not include identities that come from - * external identity providers (IdPs) through identity federation. - * - * * `user:{emailid}`: An email address that represents a specific Google account. For example, - * `alice@example.com` . - * - * * `serviceAccount:{emailid}`: An email address that represents a Google service account. For - * example, `my-other-app@appspot.gserviceaccount.com`. - * - * * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a - * [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how- - * to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my- - * kubernetes-sa]`. - * - * * `group:{emailid}`: An email address that represents a Google group. For example, - * `admins@example.com`. - * - * * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that - * domain. For example, `google.com` or `example.com`. - * - * * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_at - * tribute_value}`: A single identity in a workforce identity pool. - * - * * - * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: - * All workforce identities in a group. - * - * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attri - * bute_name}/{attribute_value}`: All workforce identities with a specific attribute value. - * - * * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`: All - * identities in a workforce identity pool. - * - * * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPo - * ols/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity - * pool. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}/group/{group_id}`: A workload identity pool group. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload - * identity pool with a certain attribute. - * - * * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentit - * yPools/{pool_id}`: All identities in a workload identity pool. - * - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) - * representing a user that has been recently deleted. For example, - * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts - * to `user:{emailid}` and the recovered user retains the role in the binding. - * - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a service account that has been recently deleted. For example, - * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account - * is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service - * account retains the role in the binding. - * - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) - * representing a Google group that has been recently deleted. For example, - * `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value - * reverts to `group:{emailid}` and the recovered group retains the role in the binding. - * - * * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{su - * bject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, - * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my- - * subject-attribute-value`. - * @param members members or {@code null} for none - */ - public Binding setMembers(java.util.List members) { - this.members = members; - return this; - } - - /** - * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, - * `roles/editor`, or `roles/owner`. - * - * For an overview of the IAM roles and permissions, see the [IAM - * documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available - * pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). - * @return value or {@code null} for none - */ - public java.lang.String getRole() { - return role; - } - - /** - * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, - * `roles/editor`, or `roles/owner`. - * - * For an overview of the IAM roles and permissions, see the [IAM - * documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available - * pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). - * @param role role or {@code null} for none - */ - public Binding setRole(java.lang.String role) { - this.role = role; - return this; - } - - @Override - public Binding set(String fieldName, Object value) { - return (Binding) super.set(fieldName, value); - } - - @Override - public Binding clone() { - return (Binding) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertDiskResource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertDiskResource.java deleted file mode 100644 index d56cb4653b7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertDiskResource.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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.preview.model; - -/** - * A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is - * only used to process requests and is not persisted. - * - *

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 BulkInsertDiskResource extends com.google.api.client.json.GenericJson { - - /** - * The parameters for the instant snapshot group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstantSnapshotGroupParameters instantSnapshotGroupParameters; - - /** - * The parameters for the snapshot group. The usage of snapshot group feature is restricted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotGroupParameters snapshotGroupParameters; - - /** - * The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full - * or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/ - * project/regions/region/resourcePolicies/resourcePolicy - - * projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroupPolicy; - - /** - * The parameters for the instant snapshot group. - * @return value or {@code null} for none - */ - public InstantSnapshotGroupParameters getInstantSnapshotGroupParameters() { - return instantSnapshotGroupParameters; - } - - /** - * The parameters for the instant snapshot group. - * @param instantSnapshotGroupParameters instantSnapshotGroupParameters or {@code null} for none - */ - public BulkInsertDiskResource setInstantSnapshotGroupParameters(InstantSnapshotGroupParameters instantSnapshotGroupParameters) { - this.instantSnapshotGroupParameters = instantSnapshotGroupParameters; - return this; - } - - /** - * The parameters for the snapshot group. The usage of snapshot group feature is restricted. - * @return value or {@code null} for none - */ - public SnapshotGroupParameters getSnapshotGroupParameters() { - return snapshotGroupParameters; - } - - /** - * The parameters for the snapshot group. The usage of snapshot group feature is restricted. - * @param snapshotGroupParameters snapshotGroupParameters or {@code null} for none - */ - public BulkInsertDiskResource setSnapshotGroupParameters(SnapshotGroupParameters snapshotGroupParameters) { - this.snapshotGroupParameters = snapshotGroupParameters; - return this; - } - - /** - * The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full - * or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/ - * project/regions/region/resourcePolicies/resourcePolicy - - * projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * @return value or {@code null} for none - */ - public java.lang.String getSourceConsistencyGroupPolicy() { - return sourceConsistencyGroupPolicy; - } - - /** - * The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full - * or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/ - * project/regions/region/resourcePolicies/resourcePolicy - - * projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * @param sourceConsistencyGroupPolicy sourceConsistencyGroupPolicy or {@code null} for none - */ - public BulkInsertDiskResource setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGroupPolicy) { - this.sourceConsistencyGroupPolicy = sourceConsistencyGroupPolicy; - return this; - } - - @Override - public BulkInsertDiskResource set(String fieldName, Object value) { - return (BulkInsertDiskResource) super.set(fieldName, value); - } - - @Override - public BulkInsertDiskResource clone() { - return (BulkInsertDiskResource) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResource.java deleted file mode 100644 index 1e180c542e8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResource.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * 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.preview.model; - -/** - * A transient resource used in compute.instances.bulkInsert and compute.regionInstances.bulkInsert - * . This resource is not persisted anywhere, it is used only for processing the requests. - * - *

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 BulkInsertInstanceResource extends com.google.api.client.json.GenericJson { - - /** - * The maximum number of instances to create. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long count; - - /** - * A flexible specification of machine type of instances to create. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceFlexibilityPolicy instanceFlexibilityPolicy; - - /** - * The instance properties defining the VM instances to be created. Required if - * sourceInstanceTemplate is not provided. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceProperties instanceProperties; - - /** - * Policy for choosing target zone. For more information, seeCreate VMs in bulk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocationPolicy locationPolicy; - - /** - * The minimum number of instances to create. If no min_count is specified then count is used as - * the default value. Ifmin_count instances cannot be created, then no instances will be created - * and instances already created will be deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minCount; - - /** - * The string pattern used for the names of the VMs. Either name_pattern or - * per_instance_properties must be set. The pattern must contain one continuous sequence of - * placeholder hash characters (#) with each character corresponding to one digit of the generated - * instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 - * and inst-0002. If existing instances in the same project and zone have names that match the - * name pattern then the generated instance numbers start after the biggest existing number. For - * example, if there exists an instance with nameinst-0050, then instance names generated using - * the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to - * 18 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String namePattern; - - /** - * Per-instance properties to be set on individual instances. Keys of this map specify requested - * instance names. Can be empty if name_pattern is used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map perInstanceProperties; - - /** - * Specifies the instance template from which to create instances. You may combine - * sourceInstanceTemplate withinstanceProperties to override specific values from an existing - * instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. - * - * It can be a full or partial URL. For example, the following are all valid URLs to an instance - * template: - https://www.googleapis.com/compute/v1/projects/project/global/instan - * ceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - * - global/instanceTemplates/instanceTemplate - * - * This field is optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplate; - - /** - * The maximum number of instances to create. - * @return value or {@code null} for none - */ - public java.lang.Long getCount() { - return count; - } - - /** - * The maximum number of instances to create. - * @param count count or {@code null} for none - */ - public BulkInsertInstanceResource setCount(java.lang.Long count) { - this.count = count; - return this; - } - - /** - * A flexible specification of machine type of instances to create. - * @return value or {@code null} for none - */ - public InstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { - return instanceFlexibilityPolicy; - } - - /** - * A flexible specification of machine type of instances to create. - * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none - */ - public BulkInsertInstanceResource setInstanceFlexibilityPolicy(InstanceFlexibilityPolicy instanceFlexibilityPolicy) { - this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; - return this; - } - - /** - * The instance properties defining the VM instances to be created. Required if - * sourceInstanceTemplate is not provided. - * @return value or {@code null} for none - */ - public InstanceProperties getInstanceProperties() { - return instanceProperties; - } - - /** - * The instance properties defining the VM instances to be created. Required if - * sourceInstanceTemplate is not provided. - * @param instanceProperties instanceProperties or {@code null} for none - */ - public BulkInsertInstanceResource setInstanceProperties(InstanceProperties instanceProperties) { - this.instanceProperties = instanceProperties; - return this; - } - - /** - * Policy for choosing target zone. For more information, seeCreate VMs in bulk. - * @return value or {@code null} for none - */ - public LocationPolicy getLocationPolicy() { - return locationPolicy; - } - - /** - * Policy for choosing target zone. For more information, seeCreate VMs in bulk. - * @param locationPolicy locationPolicy or {@code null} for none - */ - public BulkInsertInstanceResource setLocationPolicy(LocationPolicy locationPolicy) { - this.locationPolicy = locationPolicy; - return this; - } - - /** - * The minimum number of instances to create. If no min_count is specified then count is used as - * the default value. Ifmin_count instances cannot be created, then no instances will be created - * and instances already created will be deleted. - * @return value or {@code null} for none - */ - public java.lang.Long getMinCount() { - return minCount; - } - - /** - * The minimum number of instances to create. If no min_count is specified then count is used as - * the default value. Ifmin_count instances cannot be created, then no instances will be created - * and instances already created will be deleted. - * @param minCount minCount or {@code null} for none - */ - public BulkInsertInstanceResource setMinCount(java.lang.Long minCount) { - this.minCount = minCount; - return this; - } - - /** - * The string pattern used for the names of the VMs. Either name_pattern or - * per_instance_properties must be set. The pattern must contain one continuous sequence of - * placeholder hash characters (#) with each character corresponding to one digit of the generated - * instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 - * and inst-0002. If existing instances in the same project and zone have names that match the - * name pattern then the generated instance numbers start after the biggest existing number. For - * example, if there exists an instance with nameinst-0050, then instance names generated using - * the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to - * 18 characters. - * @return value or {@code null} for none - */ - public java.lang.String getNamePattern() { - return namePattern; - } - - /** - * The string pattern used for the names of the VMs. Either name_pattern or - * per_instance_properties must be set. The pattern must contain one continuous sequence of - * placeholder hash characters (#) with each character corresponding to one digit of the generated - * instance name. Example: a name_pattern of inst-#### generates instance names such asinst-0001 - * and inst-0002. If existing instances in the same project and zone have names that match the - * name pattern then the generated instance numbers start after the biggest existing number. For - * example, if there exists an instance with nameinst-0050, then instance names generated using - * the patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to - * 18 characters. - * @param namePattern namePattern or {@code null} for none - */ - public BulkInsertInstanceResource setNamePattern(java.lang.String namePattern) { - this.namePattern = namePattern; - return this; - } - - /** - * Per-instance properties to be set on individual instances. Keys of this map specify requested - * instance names. Can be empty if name_pattern is used. - * @return value or {@code null} for none - */ - public java.util.Map getPerInstanceProperties() { - return perInstanceProperties; - } - - /** - * Per-instance properties to be set on individual instances. Keys of this map specify requested - * instance names. Can be empty if name_pattern is used. - * @param perInstanceProperties perInstanceProperties or {@code null} for none - */ - public BulkInsertInstanceResource setPerInstanceProperties(java.util.Map perInstanceProperties) { - this.perInstanceProperties = perInstanceProperties; - return this; - } - - /** - * Specifies the instance template from which to create instances. You may combine - * sourceInstanceTemplate withinstanceProperties to override specific values from an existing - * instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. - * - * It can be a full or partial URL. For example, the following are all valid URLs to an instance - * template: - https://www.googleapis.com/compute/v1/projects/project/global/instan - * ceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - * - global/instanceTemplates/instanceTemplate - * - * This field is optional. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstanceTemplate() { - return sourceInstanceTemplate; - } - - /** - * Specifies the instance template from which to create instances. You may combine - * sourceInstanceTemplate withinstanceProperties to override specific values from an existing - * instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC 7396. - * - * It can be a full or partial URL. For example, the following are all valid URLs to an instance - * template: - https://www.googleapis.com/compute/v1/projects/project/global/instan - * ceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - * - global/instanceTemplates/instanceTemplate - * - * This field is optional. - * @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none - */ - public BulkInsertInstanceResource setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { - this.sourceInstanceTemplate = sourceInstanceTemplate; - return this; - } - - @Override - public BulkInsertInstanceResource set(String fieldName, Object value) { - return (BulkInsertInstanceResource) super.set(fieldName, value); - } - - @Override - public BulkInsertInstanceResource clone() { - return (BulkInsertInstanceResource) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResourcePerInstanceProperties.java deleted file mode 100644 index c1f46125ec8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Per-instance properties to be set on individual instances. To be extended in the future. - * - *

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 BulkInsertInstanceResourcePerInstanceProperties extends com.google.api.client.json.GenericJson { - - /** - * Specifies the hostname of the instance. More details in: - * https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hostname; - - /** - * Output only. This field is only temporary. It will be removed. Do not use it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Specifies the hostname of the instance. More details in: - * https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention - * @return value or {@code null} for none - */ - public java.lang.String getHostname() { - return hostname; - } - - /** - * Specifies the hostname of the instance. More details in: - * https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention - * @param hostname hostname or {@code null} for none - */ - public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.String hostname) { - this.hostname = hostname; - return this; - } - - /** - * Output only. This field is only temporary. It will be removed. Do not use it. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. This field is only temporary. It will be removed. Do not use it. - * @param name name or {@code null} for none - */ - public BulkInsertInstanceResourcePerInstanceProperties setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public BulkInsertInstanceResourcePerInstanceProperties set(String fieldName, Object value) { - return (BulkInsertInstanceResourcePerInstanceProperties) super.set(fieldName, value); - } - - @Override - public BulkInsertInstanceResourcePerInstanceProperties clone() { - return (BulkInsertInstanceResourcePerInstanceProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertOperationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertOperationStatus.java deleted file mode 100644 index 033cefda7e3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkInsertOperationStatus.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BulkInsertOperationStatus. - * - *

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 BulkInsertOperationStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Count of VMs successfully created so far. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer createdVmCount; - - /** - * [Output Only] Count of VMs that got deleted during rollback. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer deletedVmCount; - - /** - * [Output Only] Count of VMs that started creating but encountered an error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer failedToCreateVmCount; - - /** - * [Output Only] Creation status of BulkInsert operation - information if the flow is rolling - * forward or rolling back. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * [Output Only] Count of VMs originally planned to be created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer targetVmCount; - - /** - * [Output Only] Count of VMs successfully created so far. - * @return value or {@code null} for none - */ - public java.lang.Integer getCreatedVmCount() { - return createdVmCount; - } - - /** - * [Output Only] Count of VMs successfully created so far. - * @param createdVmCount createdVmCount or {@code null} for none - */ - public BulkInsertOperationStatus setCreatedVmCount(java.lang.Integer createdVmCount) { - this.createdVmCount = createdVmCount; - return this; - } - - /** - * [Output Only] Count of VMs that got deleted during rollback. - * @return value or {@code null} for none - */ - public java.lang.Integer getDeletedVmCount() { - return deletedVmCount; - } - - /** - * [Output Only] Count of VMs that got deleted during rollback. - * @param deletedVmCount deletedVmCount or {@code null} for none - */ - public BulkInsertOperationStatus setDeletedVmCount(java.lang.Integer deletedVmCount) { - this.deletedVmCount = deletedVmCount; - return this; - } - - /** - * [Output Only] Count of VMs that started creating but encountered an error. - * @return value or {@code null} for none - */ - public java.lang.Integer getFailedToCreateVmCount() { - return failedToCreateVmCount; - } - - /** - * [Output Only] Count of VMs that started creating but encountered an error. - * @param failedToCreateVmCount failedToCreateVmCount or {@code null} for none - */ - public BulkInsertOperationStatus setFailedToCreateVmCount(java.lang.Integer failedToCreateVmCount) { - this.failedToCreateVmCount = failedToCreateVmCount; - return this; - } - - /** - * [Output Only] Creation status of BulkInsert operation - information if the flow is rolling - * forward or rolling back. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] Creation status of BulkInsert operation - information if the flow is rolling - * forward or rolling back. - * @param status status or {@code null} for none - */ - public BulkInsertOperationStatus setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * [Output Only] Count of VMs originally planned to be created. - * @return value or {@code null} for none - */ - public java.lang.Integer getTargetVmCount() { - return targetVmCount; - } - - /** - * [Output Only] Count of VMs originally planned to be created. - * @param targetVmCount targetVmCount or {@code null} for none - */ - public BulkInsertOperationStatus setTargetVmCount(java.lang.Integer targetVmCount) { - this.targetVmCount = targetVmCount; - return this; - } - - @Override - public BulkInsertOperationStatus set(String fieldName, Object value) { - return (BulkInsertOperationStatus) super.set(fieldName, value); - } - - @Override - public BulkInsertOperationStatus clone() { - return (BulkInsertOperationStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkSetLabelsRequest.java deleted file mode 100644 index 79f44fcd325..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkSetLabelsRequest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BulkSetLabelsRequest. - * - *

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 BulkSetLabelsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update - * or change labels. Make a get() request to the resource to get the latest fingerprint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * The labels to set for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update - * or change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update - * or change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update - * or change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public BulkSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You may optionally provide an up-to-date fingerprint hash in order to update - * or change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public BulkSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * The labels to set for this resource. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * The labels to set for this resource. - * @param labels labels or {@code null} for none - */ - public BulkSetLabelsRequest setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - @Override - public BulkSetLabelsRequest set(String fieldName, Object value) { - return (BulkSetLabelsRequest) super.set(fieldName, value); - } - - @Override - public BulkSetLabelsRequest clone() { - return (BulkSetLabelsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkZoneSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkZoneSetLabelsRequest.java deleted file mode 100644 index a839c653431..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BulkZoneSetLabelsRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BulkZoneSetLabelsRequest. - * - *

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 BulkZoneSetLabelsRequest extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requests; - - static { - // hack to force ProGuard to consider BulkSetLabelsRequest 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(BulkSetLabelsRequest.class); - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getRequests() { - return requests; - } - - /** - * @param requests requests or {@code null} for none - */ - public BulkZoneSetLabelsRequest setRequests(java.util.List requests) { - this.requests = requests; - return this; - } - - @Override - public BulkZoneSetLabelsRequest set(String fieldName, Object value) { - return (BulkZoneSetLabelsRequest) super.set(fieldName, value); - } - - @Override - public BulkZoneSetLabelsRequest clone() { - return (BulkZoneSetLabelsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BundledLocalSsds.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BundledLocalSsds.java deleted file mode 100644 index 99142623251..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/BundledLocalSsds.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for BundledLocalSsds. - * - *

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 BundledLocalSsds extends com.google.api.client.json.GenericJson { - - /** - * The default disk interface if the interface is not specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultInterface; - - /** - * The number of partitions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer partitionCount; - - /** - * The default disk interface if the interface is not specified. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultInterface() { - return defaultInterface; - } - - /** - * The default disk interface if the interface is not specified. - * @param defaultInterface defaultInterface or {@code null} for none - */ - public BundledLocalSsds setDefaultInterface(java.lang.String defaultInterface) { - this.defaultInterface = defaultInterface; - return this; - } - - /** - * The number of partitions. - * @return value or {@code null} for none - */ - public java.lang.Integer getPartitionCount() { - return partitionCount; - } - - /** - * The number of partitions. - * @param partitionCount partitionCount or {@code null} for none - */ - public BundledLocalSsds setPartitionCount(java.lang.Integer partitionCount) { - this.partitionCount = partitionCount; - return this; - } - - @Override - public BundledLocalSsds set(String fieldName, Object value) { - return (BundledLocalSsds) super.set(fieldName, value); - } - - @Override - public BundledLocalSsds clone() { - return (BundledLocalSsds) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheInvalidationRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheInvalidationRule.java deleted file mode 100644 index 27729260e38..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheInvalidationRule.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CacheInvalidationRule. - * - *

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 CacheInvalidationRule extends com.google.api.client.json.GenericJson { - - /** - * A list of cache tags used to identify cached objects. - * - * - Cache tags are specified when the response is first cached, by setting the `Cache- - * Tag` response header at the origin. - Multiple cache tags in the same invalidation request - * are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are - * also specified, these are treated as Boolean `AND` with any tags. - * - * Up to 10 tags can be specified in a single invalidation request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List cacheTags; - - /** - * If set, this invalidation rule will only apply to requests with a Host header matching host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** - * A list of cache tags used to identify cached objects. - * - * - Cache tags are specified when the response is first cached, by setting the `Cache- - * Tag` response header at the origin. - Multiple cache tags in the same invalidation request - * are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are - * also specified, these are treated as Boolean `AND` with any tags. - * - * Up to 10 tags can be specified in a single invalidation request. - * @return value or {@code null} for none - */ - public java.util.List getCacheTags() { - return cacheTags; - } - - /** - * A list of cache tags used to identify cached objects. - * - * - Cache tags are specified when the response is first cached, by setting the `Cache- - * Tag` response header at the origin. - Multiple cache tags in the same invalidation request - * are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are - * also specified, these are treated as Boolean `AND` with any tags. - * - * Up to 10 tags can be specified in a single invalidation request. - * @param cacheTags cacheTags or {@code null} for none - */ - public CacheInvalidationRule setCacheTags(java.util.List cacheTags) { - this.cacheTags = cacheTags; - 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 - */ - public java.lang.String getHost() { - return host; - } - - /** - * If set, this invalidation rule will only apply to requests with a Host header matching host. - * @param host host or {@code null} for none - */ - public CacheInvalidationRule setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getPath() { - return path; - } - - /** - * @param path path or {@code null} for none - */ - public CacheInvalidationRule setPath(java.lang.String path) { - this.path = path; - return this; - } - - @Override - public CacheInvalidationRule set(String fieldName, Object value) { - return (CacheInvalidationRule) super.set(fieldName, value); - } - - @Override - public CacheInvalidationRule clone() { - return (CacheInvalidationRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheKeyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheKeyPolicy.java deleted file mode 100644 index 79f98d5bd63..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CacheKeyPolicy.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing what to include in the cache key for a request for Cloud CDN. - * - *

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 CacheKeyPolicy extends com.google.api.client.json.GenericJson { - - /** - * If true, requests to different hosts will be cached separately. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeHost; - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includeHttpHeaders; - - /** - * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in - * the cache key Cloud CDN generates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includeNamedCookies; - - /** - * If true, http and https requests will be cached separately. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeProtocol; - - /** - * If true, include query string parameters in the cache key according to query_string_whitelist - * and query_string_blacklist. If neither is set, the entire query string will be included. If - * false, the query string will be excluded from the cache key entirely. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeQueryString; - - /** - * Names of query string parameters to exclude in cache keys. All other parameters will be - * included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and - * '=' will be percent encoded and not treated as delimiters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List queryStringBlacklist; - - /** - * Names of query string parameters to include in cache keys. All other parameters will be - * excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and - * '=' will be percent encoded and not treated as delimiters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List queryStringWhitelist; - - /** - * If true, requests to different hosts will be cached separately. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIncludeHost() { - return includeHost; - } - - /** - * If true, requests to different hosts will be cached separately. - * @param includeHost includeHost or {@code null} for none - */ - public CacheKeyPolicy setIncludeHost(java.lang.Boolean includeHost) { - this.includeHost = includeHost; - return this; - } - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * @return value or {@code null} for none - */ - public java.util.List getIncludeHttpHeaders() { - return includeHttpHeaders; - } - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * @param includeHttpHeaders includeHttpHeaders or {@code null} for none - */ - public CacheKeyPolicy setIncludeHttpHeaders(java.util.List includeHttpHeaders) { - this.includeHttpHeaders = includeHttpHeaders; - return this; - } - - /** - * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in - * the cache key Cloud CDN generates. - * @return value or {@code null} for none - */ - public java.util.List getIncludeNamedCookies() { - return includeNamedCookies; - } - - /** - * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in - * the cache key Cloud CDN generates. - * @param includeNamedCookies includeNamedCookies or {@code null} for none - */ - public CacheKeyPolicy setIncludeNamedCookies(java.util.List includeNamedCookies) { - this.includeNamedCookies = includeNamedCookies; - return this; - } - - /** - * If true, http and https requests will be cached separately. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIncludeProtocol() { - return includeProtocol; - } - - /** - * If true, http and https requests will be cached separately. - * @param includeProtocol includeProtocol or {@code null} for none - */ - public CacheKeyPolicy setIncludeProtocol(java.lang.Boolean includeProtocol) { - this.includeProtocol = includeProtocol; - return this; - } - - /** - * If true, include query string parameters in the cache key according to query_string_whitelist - * and query_string_blacklist. If neither is set, the entire query string will be included. If - * false, the query string will be excluded from the cache key entirely. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIncludeQueryString() { - return includeQueryString; - } - - /** - * If true, include query string parameters in the cache key according to query_string_whitelist - * and query_string_blacklist. If neither is set, the entire query string will be included. If - * false, the query string will be excluded from the cache key entirely. - * @param includeQueryString includeQueryString or {@code null} for none - */ - public CacheKeyPolicy setIncludeQueryString(java.lang.Boolean includeQueryString) { - this.includeQueryString = includeQueryString; - return this; - } - - /** - * Names of query string parameters to exclude in cache keys. All other parameters will be - * included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and - * '=' will be percent encoded and not treated as delimiters. - * @return value or {@code null} for none - */ - public java.util.List getQueryStringBlacklist() { - return queryStringBlacklist; - } - - /** - * Names of query string parameters to exclude in cache keys. All other parameters will be - * included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and - * '=' will be percent encoded and not treated as delimiters. - * @param queryStringBlacklist queryStringBlacklist or {@code null} for none - */ - public CacheKeyPolicy setQueryStringBlacklist(java.util.List queryStringBlacklist) { - this.queryStringBlacklist = queryStringBlacklist; - return this; - } - - /** - * Names of query string parameters to include in cache keys. All other parameters will be - * excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and - * '=' will be percent encoded and not treated as delimiters. - * @return value or {@code null} for none - */ - public java.util.List getQueryStringWhitelist() { - return queryStringWhitelist; - } - - /** - * Names of query string parameters to include in cache keys. All other parameters will be - * excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and - * '=' will be percent encoded and not treated as delimiters. - * @param queryStringWhitelist queryStringWhitelist or {@code null} for none - */ - public CacheKeyPolicy setQueryStringWhitelist(java.util.List queryStringWhitelist) { - this.queryStringWhitelist = queryStringWhitelist; - return this; - } - - @Override - public CacheKeyPolicy set(String fieldName, Object value) { - return (CacheKeyPolicy) super.set(fieldName, value); - } - - @Override - public CacheKeyPolicy clone() { - return (CacheKeyPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicy.java deleted file mode 100644 index a2fa3f3f07b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicy.java +++ /dev/null @@ -1,441 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing CachePolicy configuration for URL Map's Route Action. - * - *

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 CachePolicy extends com.google.api.client.json.GenericJson { - - /** - * Bypass the cache when the specified request headers are matched by name, e.g. Pragma or - * Authorization headers. Values are case-insensitive. Up to 5 header names can be specified. The - * cache is bypassed for all `cacheMode` values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List cacheBypassRequestHeaderNames; - - /** - * The cache key configuration. If not specified, the default behavior depends on the backend - * type: for Backend Services, the complete request URI is used; for Backend Buckets, the request - * URI is used without the protocol or host, and only query parameters known to Cloud Storage are - * included. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CachePolicyCacheKeyPolicy cacheKeyPolicy; - - /** - * Specifies the cache setting for all responses from this route. If not specified, Cloud CDN uses - * `CACHE_ALL_STATIC` mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cacheMode; - - /** - * Specifies a separate client (e.g. browser client) maximum TTL for cached content. This is used - * to clamp the max-age (or Expires) value sent to the client. With `FORCE_CACHE_ALL`, the lesser - * of `clientTtl` and `defaultTtl` is used for the response max-age directive, along with a - * "public" directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl` clamps the - * max-age from the origin (if specified), or else sets the response max-age directive to the - * lesser of the `clientTtl` and `defaultTtl`, and also ensures a "public" cache-control directive - * is present. The maximum allowed value is 31,622,400s (1 year). If not specified, Cloud CDN uses - * 3600s (1 hour) for `CACHE_ALL_STATIC` mode. Cannot exceed `maxTtl`. Cannot be specified when - * `cacheMode` is `USE_ORIGIN_HEADERS`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration clientTtl; - - /** - * Specifies the default TTL for cached content for responses that do not have an existing valid - * TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of - * `defaultTtl` cannot be set to a value greater than that of `maxTtl`. When the `cacheMode` is - * set to `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all responses. The - * maximum allowed value is 31,622,400s (1 year). Infrequently accessed objects may be evicted - * from the cache before the defined TTL. If not specified, Cloud CDN uses 3600s (1 hour) for - * `CACHE_ALL_STATIC` and `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is - * `USE_ORIGIN_HEADERS`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration defaultTtl; - - /** - * Specifies the maximum allowed TTL for cached content. Cache directives that attempt to set a - * max-age or s-maxage higher than this, or an Expires header more than `maxTtl` seconds in the - * future will be capped at the value of `maxTtl`, as if it were the value of an s-maxage Cache- - * Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means - * "always revalidate". The maximum allowed value is 31,622,400s (1 year). Infrequently accessed - * objects may be evicted from the cache before the defined TTL. If not specified, Cloud CDN uses - * 86400s (1 day) for `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache - * mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxTtl; - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the `cacheMode` is set to `CACHE_ALL_STATIC` or - * `USE_ORIGIN_HEADERS`, negative caching applies to responses with the specified response code - * that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the `cacheMode` is - * set to `FORCE_CACHE_ALL`, negative caching applies to all responses with the specified response - * code, and overrides any caching headers. By default, Cloud CDN applies the following TTLs to - * these HTTP status codes: - * - * * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m * 404 (Not Found), 410 (Gone), 451 - * (Unavailable For Legal Reasons): 120s * 405 (Method Not Found), 501 (Not Implemented): 60s - * - * These defaults can be overridden in `negativeCachingPolicy`. If not specified, Cloud CDN - * applies negative caching by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean negativeCaching; - - /** - * Sets a cache TTL for the specified HTTP status code. `negativeCaching` must be enabled to - * configure `negativeCachingPolicy`. Omitting the policy and leaving `negativeCaching` enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * `negativeCachingPolicy`, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List negativeCachingPolicy; - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. If not specified, Cloud CDN applies request coalescing by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean requestCoalescing; - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration serveWhileStale; - - /** - * Bypass the cache when the specified request headers are matched by name, e.g. Pragma or - * Authorization headers. Values are case-insensitive. Up to 5 header names can be specified. The - * cache is bypassed for all `cacheMode` values. - * @return value or {@code null} for none - */ - public java.util.List getCacheBypassRequestHeaderNames() { - return cacheBypassRequestHeaderNames; - } - - /** - * Bypass the cache when the specified request headers are matched by name, e.g. Pragma or - * Authorization headers. Values are case-insensitive. Up to 5 header names can be specified. The - * cache is bypassed for all `cacheMode` values. - * @param cacheBypassRequestHeaderNames cacheBypassRequestHeaderNames or {@code null} for none - */ - public CachePolicy setCacheBypassRequestHeaderNames(java.util.List cacheBypassRequestHeaderNames) { - this.cacheBypassRequestHeaderNames = cacheBypassRequestHeaderNames; - return this; - } - - /** - * The cache key configuration. If not specified, the default behavior depends on the backend - * type: for Backend Services, the complete request URI is used; for Backend Buckets, the request - * URI is used without the protocol or host, and only query parameters known to Cloud Storage are - * included. - * @return value or {@code null} for none - */ - public CachePolicyCacheKeyPolicy getCacheKeyPolicy() { - return cacheKeyPolicy; - } - - /** - * The cache key configuration. If not specified, the default behavior depends on the backend - * type: for Backend Services, the complete request URI is used; for Backend Buckets, the request - * URI is used without the protocol or host, and only query parameters known to Cloud Storage are - * included. - * @param cacheKeyPolicy cacheKeyPolicy or {@code null} for none - */ - public CachePolicy setCacheKeyPolicy(CachePolicyCacheKeyPolicy cacheKeyPolicy) { - this.cacheKeyPolicy = cacheKeyPolicy; - return this; - } - - /** - * Specifies the cache setting for all responses from this route. If not specified, Cloud CDN uses - * `CACHE_ALL_STATIC` mode. - * @return value or {@code null} for none - */ - public java.lang.String getCacheMode() { - return cacheMode; - } - - /** - * Specifies the cache setting for all responses from this route. If not specified, Cloud CDN uses - * `CACHE_ALL_STATIC` mode. - * @param cacheMode cacheMode or {@code null} for none - */ - public CachePolicy setCacheMode(java.lang.String cacheMode) { - this.cacheMode = cacheMode; - return this; - } - - /** - * Specifies a separate client (e.g. browser client) maximum TTL for cached content. This is used - * to clamp the max-age (or Expires) value sent to the client. With `FORCE_CACHE_ALL`, the lesser - * of `clientTtl` and `defaultTtl` is used for the response max-age directive, along with a - * "public" directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl` clamps the - * max-age from the origin (if specified), or else sets the response max-age directive to the - * lesser of the `clientTtl` and `defaultTtl`, and also ensures a "public" cache-control directive - * is present. The maximum allowed value is 31,622,400s (1 year). If not specified, Cloud CDN uses - * 3600s (1 hour) for `CACHE_ALL_STATIC` mode. Cannot exceed `maxTtl`. Cannot be specified when - * `cacheMode` is `USE_ORIGIN_HEADERS`. - * @return value or {@code null} for none - */ - public Duration getClientTtl() { - return clientTtl; - } - - /** - * Specifies a separate client (e.g. browser client) maximum TTL for cached content. This is used - * to clamp the max-age (or Expires) value sent to the client. With `FORCE_CACHE_ALL`, the lesser - * of `clientTtl` and `defaultTtl` is used for the response max-age directive, along with a - * "public" directive. For cacheable content in `CACHE_ALL_STATIC` mode, `clientTtl` clamps the - * max-age from the origin (if specified), or else sets the response max-age directive to the - * lesser of the `clientTtl` and `defaultTtl`, and also ensures a "public" cache-control directive - * is present. The maximum allowed value is 31,622,400s (1 year). If not specified, Cloud CDN uses - * 3600s (1 hour) for `CACHE_ALL_STATIC` mode. Cannot exceed `maxTtl`. Cannot be specified when - * `cacheMode` is `USE_ORIGIN_HEADERS`. - * @param clientTtl clientTtl or {@code null} for none - */ - public CachePolicy setClientTtl(Duration clientTtl) { - this.clientTtl = clientTtl; - return this; - } - - /** - * Specifies the default TTL for cached content for responses that do not have an existing valid - * TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of - * `defaultTtl` cannot be set to a value greater than that of `maxTtl`. When the `cacheMode` is - * set to `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all responses. The - * maximum allowed value is 31,622,400s (1 year). Infrequently accessed objects may be evicted - * from the cache before the defined TTL. If not specified, Cloud CDN uses 3600s (1 hour) for - * `CACHE_ALL_STATIC` and `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is - * `USE_ORIGIN_HEADERS`. - * @return value or {@code null} for none - */ - public Duration getDefaultTtl() { - return defaultTtl; - } - - /** - * Specifies the default TTL for cached content for responses that do not have an existing valid - * TTL (max-age or s-maxage). Setting a TTL of "0" means "always revalidate". The value of - * `defaultTtl` cannot be set to a value greater than that of `maxTtl`. When the `cacheMode` is - * set to `FORCE_CACHE_ALL`, the `defaultTtl` will overwrite the TTL set in all responses. The - * maximum allowed value is 31,622,400s (1 year). Infrequently accessed objects may be evicted - * from the cache before the defined TTL. If not specified, Cloud CDN uses 3600s (1 hour) for - * `CACHE_ALL_STATIC` and `FORCE_CACHE_ALL` modes. Cannot be specified when `cacheMode` is - * `USE_ORIGIN_HEADERS`. - * @param defaultTtl defaultTtl or {@code null} for none - */ - public CachePolicy setDefaultTtl(Duration defaultTtl) { - this.defaultTtl = defaultTtl; - return this; - } - - /** - * Specifies the maximum allowed TTL for cached content. Cache directives that attempt to set a - * max-age or s-maxage higher than this, or an Expires header more than `maxTtl` seconds in the - * future will be capped at the value of `maxTtl`, as if it were the value of an s-maxage Cache- - * Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means - * "always revalidate". The maximum allowed value is 31,622,400s (1 year). Infrequently accessed - * objects may be evicted from the cache before the defined TTL. If not specified, Cloud CDN uses - * 86400s (1 day) for `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache - * mode. - * @return value or {@code null} for none - */ - public Duration getMaxTtl() { - return maxTtl; - } - - /** - * Specifies the maximum allowed TTL for cached content. Cache directives that attempt to set a - * max-age or s-maxage higher than this, or an Expires header more than `maxTtl` seconds in the - * future will be capped at the value of `maxTtl`, as if it were the value of an s-maxage Cache- - * Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means - * "always revalidate". The maximum allowed value is 31,622,400s (1 year). Infrequently accessed - * objects may be evicted from the cache before the defined TTL. If not specified, Cloud CDN uses - * 86400s (1 day) for `CACHE_ALL_STATIC` mode. Can be specified only for `CACHE_ALL_STATIC` cache - * mode. - * @param maxTtl maxTtl or {@code null} for none - */ - public CachePolicy setMaxTtl(Duration maxTtl) { - this.maxTtl = maxTtl; - return this; - } - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the `cacheMode` is set to `CACHE_ALL_STATIC` or - * `USE_ORIGIN_HEADERS`, negative caching applies to responses with the specified response code - * that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the `cacheMode` is - * set to `FORCE_CACHE_ALL`, negative caching applies to all responses with the specified response - * code, and overrides any caching headers. By default, Cloud CDN applies the following TTLs to - * these HTTP status codes: - * - * * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m * 404 (Not Found), 410 (Gone), 451 - * (Unavailable For Legal Reasons): 120s * 405 (Method Not Found), 501 (Not Implemented): 60s - * - * These defaults can be overridden in `negativeCachingPolicy`. If not specified, Cloud CDN - * applies negative caching by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getNegativeCaching() { - return negativeCaching; - } - - /** - * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching - * for common errors or redirects. This can reduce the load on your origin and improve end-user - * experience by reducing response latency. When the `cacheMode` is set to `CACHE_ALL_STATIC` or - * `USE_ORIGIN_HEADERS`, negative caching applies to responses with the specified response code - * that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the `cacheMode` is - * set to `FORCE_CACHE_ALL`, negative caching applies to all responses with the specified response - * code, and overrides any caching headers. By default, Cloud CDN applies the following TTLs to - * these HTTP status codes: - * - * * 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m * 404 (Not Found), 410 (Gone), 451 - * (Unavailable For Legal Reasons): 120s * 405 (Method Not Found), 501 (Not Implemented): 60s - * - * These defaults can be overridden in `negativeCachingPolicy`. If not specified, Cloud CDN - * applies negative caching by default. - * @param negativeCaching negativeCaching or {@code null} for none - */ - public CachePolicy setNegativeCaching(java.lang.Boolean negativeCaching) { - this.negativeCaching = negativeCaching; - return this; - } - - /** - * Sets a cache TTL for the specified HTTP status code. `negativeCaching` must be enabled to - * configure `negativeCachingPolicy`. Omitting the policy and leaving `negativeCaching` enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * `negativeCachingPolicy`, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * @return value or {@code null} for none - */ - public java.util.List getNegativeCachingPolicy() { - return negativeCachingPolicy; - } - - /** - * Sets a cache TTL for the specified HTTP status code. `negativeCaching` must be enabled to - * configure `negativeCachingPolicy`. Omitting the policy and leaving `negativeCaching` enabled - * will use Cloud CDN's default cache TTLs. Note that when specifying an explicit - * `negativeCachingPolicy`, you should take care to specify a cache TTL for all response codes - * that you wish to cache. Cloud CDN will not apply any default negative caching when a policy - * exists. - * @param negativeCachingPolicy negativeCachingPolicy or {@code null} for none - */ - public CachePolicy setNegativeCachingPolicy(java.util.List negativeCachingPolicy) { - this.negativeCachingPolicy = negativeCachingPolicy; - return this; - } - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. If not specified, Cloud CDN applies request coalescing by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getRequestCoalescing() { - return requestCoalescing; - } - - /** - * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number - * of requests to the origin. If not specified, Cloud CDN applies request coalescing by default. - * @param requestCoalescing requestCoalescing or {@code null} for none - */ - public CachePolicy setRequestCoalescing(java.lang.Boolean requestCoalescing) { - this.requestCoalescing = requestCoalescing; - return this; - } - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * @return value or {@code null} for none - */ - public Duration getServeWhileStale() { - return serveWhileStale; - } - - /** - * Serve existing content from the cache (if available) when revalidating content with the origin, - * or when an error is encountered when refreshing the cache. This setting defines the default - * "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale - * responses that exceed the TTL configured here will not be served. The default limit (max-stale) - * is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max- - * age (or s-maxage) of a cached response. The maximum allowed value is 604800 (1 week). Set this - * to zero (0) to disable serve-while-stale. - * @param serveWhileStale serveWhileStale or {@code null} for none - */ - public CachePolicy setServeWhileStale(Duration serveWhileStale) { - this.serveWhileStale = serveWhileStale; - return this; - } - - @Override - public CachePolicy set(String fieldName, Object value) { - return (CachePolicy) super.set(fieldName, value); - } - - @Override - public CachePolicy clone() { - return (CachePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyCacheKeyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyCacheKeyPolicy.java deleted file mode 100644 index adde65e6c08..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyCacheKeyPolicy.java +++ /dev/null @@ -1,307 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing what to include in the cache key for a request for Cache Policy defined on - * Route Action. - * - *

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 CachePolicyCacheKeyPolicy extends com.google.api.client.json.GenericJson { - - /** - * Names of query string parameters to exclude in cache keys. All other parameters will be - * included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' - * and '=' will be percent encoded and not treated as delimiters. - * - * Note: This field applies to routes that use backend services. Attempting to set it on a route - * that points exclusively to Backend Buckets will result in a configuration error. For routes - * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should - * be part of the cache key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List excludedQueryParameters; - - /** - * If true, requests to different hosts will be cached separately. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache - * key. Attempting to set it on a route that points exclusively to Backend Buckets will result in - * a configuration error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeHost; - - /** - * If true, http and https requests will be cached separately. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's - * cache key. Attempting to set on a route that points exclusively to Backend Buckets will result - * in a configuration error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeProtocol; - - /** - * If true, include query string parameters in the cache key according to - * `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query - * string will be included. If false, the query string will be excluded from the cache key - * entirely. - * - * Note: This field applies to routes that use backend services. Attempting to set it on a route - * that points exclusively to Backend Buckets will result in a configuration error. For routes - * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should - * be part of the cache key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeQueryString; - - /** - * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in - * the cache key Cloud CDN generates. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to - * Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedCookieNames; - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedHeaderNames; - - /** - * Names of query string parameters to include in cache keys. All other parameters will be - * excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' - * and '=' will be percent encoded and not treated as delimiters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedQueryParameters; - - /** - * Names of query string parameters to exclude in cache keys. All other parameters will be - * included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' - * and '=' will be percent encoded and not treated as delimiters. - * - * Note: This field applies to routes that use backend services. Attempting to set it on a route - * that points exclusively to Backend Buckets will result in a configuration error. For routes - * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should - * be part of the cache key. - * @return value or {@code null} for none - */ - public java.util.List getExcludedQueryParameters() { - return excludedQueryParameters; - } - - /** - * Names of query string parameters to exclude in cache keys. All other parameters will be - * included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' - * and '=' will be percent encoded and not treated as delimiters. - * - * Note: This field applies to routes that use backend services. Attempting to set it on a route - * that points exclusively to Backend Buckets will result in a configuration error. For routes - * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should - * be part of the cache key. - * @param excludedQueryParameters excludedQueryParameters or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setExcludedQueryParameters(java.util.List excludedQueryParameters) { - this.excludedQueryParameters = excludedQueryParameters; - return this; - } - - /** - * If true, requests to different hosts will be cached separately. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache - * key. Attempting to set it on a route that points exclusively to Backend Buckets will result in - * a configuration error. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIncludeHost() { - return includeHost; - } - - /** - * If true, requests to different hosts will be cached separately. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache - * key. Attempting to set it on a route that points exclusively to Backend Buckets will result in - * a configuration error. - * @param includeHost includeHost or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setIncludeHost(java.lang.Boolean includeHost) { - this.includeHost = includeHost; - return this; - } - - /** - * If true, http and https requests will be cached separately. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's - * cache key. Attempting to set on a route that points exclusively to Backend Buckets will result - * in a configuration error. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIncludeProtocol() { - return includeProtocol; - } - - /** - * If true, http and https requests will be cached separately. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's - * cache key. Attempting to set on a route that points exclusively to Backend Buckets will result - * in a configuration error. - * @param includeProtocol includeProtocol or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setIncludeProtocol(java.lang.Boolean includeProtocol) { - this.includeProtocol = includeProtocol; - return this; - } - - /** - * If true, include query string parameters in the cache key according to - * `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query - * string will be included. If false, the query string will be excluded from the cache key - * entirely. - * - * Note: This field applies to routes that use backend services. Attempting to set it on a route - * that points exclusively to Backend Buckets will result in a configuration error. For routes - * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should - * be part of the cache key. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIncludeQueryString() { - return includeQueryString; - } - - /** - * If true, include query string parameters in the cache key according to - * `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query - * string will be included. If false, the query string will be excluded from the cache key - * entirely. - * - * Note: This field applies to routes that use backend services. Attempting to set it on a route - * that points exclusively to Backend Buckets will result in a configuration error. For routes - * that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should - * be part of the cache key. - * @param includeQueryString includeQueryString or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setIncludeQueryString(java.lang.Boolean includeQueryString) { - this.includeQueryString = includeQueryString; - return this; - } - - /** - * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in - * the cache key Cloud CDN generates. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to - * Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified. - * @return value or {@code null} for none - */ - public java.util.List getIncludedCookieNames() { - return includedCookieNames; - } - - /** - * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in - * the cache key Cloud CDN generates. - * - * Note: This setting is only applicable to routes that use a Backend Service. It does not affect - * requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to - * Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified. - * @param includedCookieNames includedCookieNames or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setIncludedCookieNames(java.util.List includedCookieNames) { - this.includedCookieNames = includedCookieNames; - return this; - } - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * @return value or {@code null} for none - */ - public java.util.List getIncludedHeaderNames() { - return includedHeaderNames; - } - - /** - * Allows HTTP request headers (by name) to be used in the cache key. - * @param includedHeaderNames includedHeaderNames or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setIncludedHeaderNames(java.util.List includedHeaderNames) { - this.includedHeaderNames = includedHeaderNames; - return this; - } - - /** - * Names of query string parameters to include in cache keys. All other parameters will be - * excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' - * and '=' will be percent encoded and not treated as delimiters. - * @return value or {@code null} for none - */ - public java.util.List getIncludedQueryParameters() { - return includedQueryParameters; - } - - /** - * Names of query string parameters to include in cache keys. All other parameters will be - * excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' - * and '=' will be percent encoded and not treated as delimiters. - * @param includedQueryParameters includedQueryParameters or {@code null} for none - */ - public CachePolicyCacheKeyPolicy setIncludedQueryParameters(java.util.List includedQueryParameters) { - this.includedQueryParameters = includedQueryParameters; - return this; - } - - @Override - public CachePolicyCacheKeyPolicy set(String fieldName, Object value) { - return (CachePolicyCacheKeyPolicy) super.set(fieldName, value); - } - - @Override - public CachePolicyCacheKeyPolicy clone() { - return (CachePolicyCacheKeyPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyNegativeCachingPolicy.java deleted file mode 100644 index 579507c1466..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CachePolicyNegativeCachingPolicy.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specify CDN TTLs for response error codes. - * - *

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 CachePolicyNegativeCachingPolicy extends com.google.api.client.json.GenericJson { - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer code; - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from - * the cache before the defined TTL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration ttl; - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * @return value or {@code null} for none - */ - public java.lang.Integer getCode() { - return code; - } - - /** - * The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - * 404, 405, 410, 421, 451 and 501 can be specified as values, and you cannot specify a status - * code more than once. - * @param code code or {@code null} for none - */ - public CachePolicyNegativeCachingPolicy setCode(java.lang.Integer code) { - this.code = code; - return this; - } - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from - * the cache before the defined TTL. - * @return value or {@code null} for none - */ - public Duration getTtl() { - return ttl; - } - - /** - * The TTL (in seconds) for which to cache responses with the corresponding status code. The - * maximum allowed value is 1800s (30 minutes). Infrequently accessed objects may be evicted from - * the cache before the defined TTL. - * @param ttl ttl or {@code null} for none - */ - public CachePolicyNegativeCachingPolicy setTtl(Duration ttl) { - this.ttl = ttl; - return this; - } - - @Override - public CachePolicyNegativeCachingPolicy set(String fieldName, Object value) { - return (CachePolicyNegativeCachingPolicy) super.set(fieldName, value); - } - - @Override - public CachePolicyNegativeCachingPolicy clone() { - return (CachePolicyNegativeCachingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceRequest.java deleted file mode 100644 index 970a497934f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * A request to recommend the best way to consume the specified resources in the future. - * - *

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 CalendarModeAdviceRequest extends com.google.api.client.json.GenericJson { - - /** - * Specification of resources to create in the future. The key of the map is an arbitrary string - * specified by the caller. Value of the map is a specification of required resources and their - * constraints. Currently only one value is allowed in this map. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map futureResourcesSpecs; - - /** - * Specification of resources to create in the future. The key of the map is an arbitrary string - * specified by the caller. Value of the map is a specification of required resources and their - * constraints. Currently only one value is allowed in this map. - * @return value or {@code null} for none - */ - public java.util.Map getFutureResourcesSpecs() { - return futureResourcesSpecs; - } - - /** - * Specification of resources to create in the future. The key of the map is an arbitrary string - * specified by the caller. Value of the map is a specification of required resources and their - * constraints. Currently only one value is allowed in this map. - * @param futureResourcesSpecs futureResourcesSpecs or {@code null} for none - */ - public CalendarModeAdviceRequest setFutureResourcesSpecs(java.util.Map futureResourcesSpecs) { - this.futureResourcesSpecs = futureResourcesSpecs; - return this; - } - - @Override - public CalendarModeAdviceRequest set(String fieldName, Object value) { - return (CalendarModeAdviceRequest) super.set(fieldName, value); - } - - @Override - public CalendarModeAdviceRequest clone() { - return (CalendarModeAdviceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceResponse.java deleted file mode 100644 index df122678dc4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeAdviceResponse.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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.preview.model; - -/** - * A response containing the recommended way of creating the specified resources in the future. It - * contains (will contain) multiple recommendations that can be analyzed by the customer and the - * best one can be picked. - * - *

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 CalendarModeAdviceResponse extends com.google.api.client.json.GenericJson { - - /** - * Recommendations where, how and when to create the requested resources in order to maximize - * their obtainability and minimize cost. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List recommendations; - - /** - * Recommendations where, how and when to create the requested resources in order to maximize - * their obtainability and minimize cost. - * @return value or {@code null} for none - */ - public java.util.List getRecommendations() { - return recommendations; - } - - /** - * Recommendations where, how and when to create the requested resources in order to maximize - * their obtainability and minimize cost. - * @param recommendations recommendations or {@code null} for none - */ - public CalendarModeAdviceResponse setRecommendations(java.util.List recommendations) { - this.recommendations = recommendations; - return this; - } - - @Override - public CalendarModeAdviceResponse set(String fieldName, Object value) { - return (CalendarModeAdviceResponse) super.set(fieldName, value); - } - - @Override - public CalendarModeAdviceResponse clone() { - return (CalendarModeAdviceResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeRecommendation.java deleted file mode 100644 index 030551d62c0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CalendarModeRecommendation.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.preview.model; - -/** - * A single recommendation to create requested resources. Contains detailed recommendations for - * every future resources specification specified in CalendarModeAdviceRequest. - * - *

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 CalendarModeRecommendation extends com.google.api.client.json.GenericJson { - - /** - * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. - * Keys of the map correspond to keys specified in the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map recommendationsPerSpec; - - /** - * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. - * Keys of the map correspond to keys specified in the request. - * @return value or {@code null} for none - */ - public java.util.Map getRecommendationsPerSpec() { - return recommendationsPerSpec; - } - - /** - * Recommendations for every future resource specification passed in CalendarModeAdviceRequest. - * Keys of the map correspond to keys specified in the request. - * @param recommendationsPerSpec recommendationsPerSpec or {@code null} for none - */ - public CalendarModeRecommendation setRecommendationsPerSpec(java.util.Map recommendationsPerSpec) { - this.recommendationsPerSpec = recommendationsPerSpec; - return this; - } - - @Override - public CalendarModeRecommendation set(String fieldName, Object value) { - return (CalendarModeRecommendation) super.set(fieldName, value); - } - - @Override - public CalendarModeRecommendation clone() { - return (CalendarModeRecommendation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequest.java deleted file mode 100644 index 55b8a7a744d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequest.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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.preview.model; - -/** - * A request to provide Assistant Scores. These scores determine VM obtainability and preemption - * likelihood. - * - *

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 CapacityAdviceRequest extends com.google.api.client.json.GenericJson { - - /** - * Policy specifying the distribution of instances across zones within the requested region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityAdviceRequestDistributionPolicy distributionPolicy; - - /** - * Policy for instance selectors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy; - - /** - * Instance properties for this request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityAdviceRequestInstanceProperties instanceProperties; - - /** - * The number of VM instances to request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** - * Policy specifying the distribution of instances across zones within the requested region. - * @return value or {@code null} for none - */ - public CapacityAdviceRequestDistributionPolicy getDistributionPolicy() { - return distributionPolicy; - } - - /** - * Policy specifying the distribution of instances across zones within the requested region. - * @param distributionPolicy distributionPolicy or {@code null} for none - */ - public CapacityAdviceRequest setDistributionPolicy(CapacityAdviceRequestDistributionPolicy distributionPolicy) { - this.distributionPolicy = distributionPolicy; - return this; - } - - /** - * Policy for instance selectors. - * @return value or {@code null} for none - */ - public CapacityAdviceRequestInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { - return instanceFlexibilityPolicy; - } - - /** - * Policy for instance selectors. - * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none - */ - public CapacityAdviceRequest setInstanceFlexibilityPolicy(CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy) { - this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; - return this; - } - - /** - * Instance properties for this request. - * @return value or {@code null} for none - */ - public CapacityAdviceRequestInstanceProperties getInstanceProperties() { - return instanceProperties; - } - - /** - * Instance properties for this request. - * @param instanceProperties instanceProperties or {@code null} for none - */ - public CapacityAdviceRequest setInstanceProperties(CapacityAdviceRequestInstanceProperties instanceProperties) { - this.instanceProperties = instanceProperties; - return this; - } - - /** - * The number of VM instances to request. - * @return value or {@code null} for none - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * The number of VM instances to request. - * @param size size or {@code null} for none - */ - public CapacityAdviceRequest setSize(java.lang.Integer size) { - this.size = size; - return this; - } - - @Override - public CapacityAdviceRequest set(String fieldName, Object value) { - return (CapacityAdviceRequest) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequest clone() { - return (CapacityAdviceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicy.java deleted file mode 100644 index 84acd2e819e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicy.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Distribution policy. - * - *

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 CapacityAdviceRequestDistributionPolicy extends com.google.api.client.json.GenericJson { - - /** - * Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or - * BALANCED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetShape; - - /** - * Zones where Capacity Advisor looks for capacity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or - * BALANCED. - * @return value or {@code null} for none - */ - public java.lang.String getTargetShape() { - return targetShape; - } - - /** - * Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or - * BALANCED. - * @param targetShape targetShape or {@code null} for none - */ - public CapacityAdviceRequestDistributionPolicy setTargetShape(java.lang.String targetShape) { - this.targetShape = targetShape; - return this; - } - - /** - * Zones where Capacity Advisor looks for capacity. - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * Zones where Capacity Advisor looks for capacity. - * @param zones zones or {@code null} for none - */ - public CapacityAdviceRequestDistributionPolicy setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public CapacityAdviceRequestDistributionPolicy set(String fieldName, Object value) { - return (CapacityAdviceRequestDistributionPolicy) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequestDistributionPolicy clone() { - return (CapacityAdviceRequestDistributionPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java deleted file mode 100644 index f1f5ece4883..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestDistributionPolicyZoneConfiguration.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Zone configuration for the distribution policy. - * - *

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 CapacityAdviceRequestDistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { - - /** - * The URL of the zone. It can be a partial or full URL. For example, the following are valid - * values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * The URL of the zone. It can be a partial or full URL. For example, the following are valid - * values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The URL of the zone. It can be a partial or full URL. For example, the following are valid - * values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * @param zone zone or {@code null} for none - */ - public CapacityAdviceRequestDistributionPolicyZoneConfiguration setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public CapacityAdviceRequestDistributionPolicyZoneConfiguration set(String fieldName, Object value) { - return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequestDistributionPolicyZoneConfiguration clone() { - return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java deleted file mode 100644 index b1ad7c73a56..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicy.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification of alternative, flexible instance configurations. - * - *

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 CapacityAdviceRequestInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { - - /** - * Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 - * string that identifies the instance selection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map instanceSelections; - - /** - * Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 - * string that identifies the instance selection. - * @return value or {@code null} for none - */ - public java.util.Map getInstanceSelections() { - return instanceSelections; - } - - /** - * Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 - * string that identifies the instance selection. - * @param instanceSelections instanceSelections or {@code null} for none - */ - public CapacityAdviceRequestInstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { - this.instanceSelections = instanceSelections; - return this; - } - - @Override - public CapacityAdviceRequestInstanceFlexibilityPolicy set(String fieldName, Object value) { - return (CapacityAdviceRequestInstanceFlexibilityPolicy) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequestInstanceFlexibilityPolicy clone() { - return (CapacityAdviceRequestInstanceFlexibilityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java deleted file mode 100644 index 2808e36f390..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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.preview.model; - -/** - * Machine specification. - * - *

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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection 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); - } - - /** - * Full machine-type names, e.g. "n1-standard-16". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List 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 - */ - public java.util.List getDisks() { - return disks; - } - - /** - * Local SSDs. - * @param disks disks or {@code null} for none - */ - public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection 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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setGuestAccelerators(java.util.List guestAccelerators) { - this.guestAccelerators = guestAccelerators; - return this; - } - - /** - * Full machine-type names, e.g. "n1-standard-16". - * @return value or {@code null} for none - */ - public java.util.List getMachineTypes() { - return machineTypes; - } - - /** - * Full machine-type names, e.g. "n1-standard-16". - * @param machineTypes machineTypes or {@code null} for none - */ - public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { - this.machineTypes = machineTypes; - 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); - } - - @Override - public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection clone() { - return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java deleted file mode 100644 index 89d32987637..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Attached disk configuration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk 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 CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk set(String fieldName, Object value) { - return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk clone() { - return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceProperties.java deleted file mode 100644 index 049353e9b37..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstanceProperties.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Instance provisioning properties. - * - *

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 CapacityAdviceRequestInstanceProperties extends com.google.api.client.json.GenericJson { - - /** - * Specifies the scheduling options. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityAdviceRequestInstancePropertiesScheduling scheduling; - - /** - * Specifies the scheduling options. - * @return value or {@code null} for none - */ - public CapacityAdviceRequestInstancePropertiesScheduling getScheduling() { - return scheduling; - } - - /** - * Specifies the scheduling options. - * @param scheduling scheduling or {@code null} for none - */ - public CapacityAdviceRequestInstanceProperties setScheduling(CapacityAdviceRequestInstancePropertiesScheduling scheduling) { - this.scheduling = scheduling; - return this; - } - - @Override - public CapacityAdviceRequestInstanceProperties set(String fieldName, Object value) { - return (CapacityAdviceRequestInstanceProperties) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequestInstanceProperties clone() { - return (CapacityAdviceRequestInstanceProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstancePropertiesScheduling.java deleted file mode 100644 index 88d4c9c7f68..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceRequestInstancePropertiesScheduling.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Defines the instance scheduling options. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class CapacityAdviceRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { - - /** - * Specifies the provisioning model. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String provisioningModel; - - /** - * Specifies the provisioning model. - * @return value or {@code null} for none - */ - public java.lang.String getProvisioningModel() { - return provisioningModel; - } - - /** - * Specifies the provisioning model. - * @param provisioningModel provisioningModel or {@code null} for none - */ - public CapacityAdviceRequestInstancePropertiesScheduling setProvisioningModel(java.lang.String provisioningModel) { - this.provisioningModel = provisioningModel; - return this; - } - - @Override - public CapacityAdviceRequestInstancePropertiesScheduling set(String fieldName, Object value) { - return (CapacityAdviceRequestInstancePropertiesScheduling) super.set(fieldName, value); - } - - @Override - public CapacityAdviceRequestInstancePropertiesScheduling clone() { - return (CapacityAdviceRequestInstancePropertiesScheduling) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponse.java deleted file mode 100644 index 2af3d985c30..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponse.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * A response contains scoring recommendations. - * - *

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 CapacityAdviceResponse extends com.google.api.client.json.GenericJson { - - /** - * Initially the API will provide one recommendation which balances the individual scores - * according to the service provider's preference. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List recommendations; - - /** - * Initially the API will provide one recommendation which balances the individual scores - * according to the service provider's preference. - * @return value or {@code null} for none - */ - public java.util.List getRecommendations() { - return recommendations; - } - - /** - * Initially the API will provide one recommendation which balances the individual scores - * according to the service provider's preference. - * @param recommendations recommendations or {@code null} for none - */ - public CapacityAdviceResponse setRecommendations(java.util.List recommendations) { - this.recommendations = recommendations; - return this; - } - - @Override - public CapacityAdviceResponse set(String fieldName, Object value) { - return (CapacityAdviceResponse) super.set(fieldName, value); - } - - @Override - public CapacityAdviceResponse clone() { - return (CapacityAdviceResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendation.java deleted file mode 100644 index 67062ac7448..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Recommendation. - * - *

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 CapacityAdviceResponseRecommendation extends com.google.api.client.json.GenericJson { - - /** - * Scores for the recommendation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityAdviceResponseRecommendationScores scores; - - /** - * Shards represent blocks of uniform capacity in recommendations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List shards; - - /** - * Scores for the recommendation. - * @return value or {@code null} for none - */ - public CapacityAdviceResponseRecommendationScores getScores() { - return scores; - } - - /** - * Scores for the recommendation. - * @param scores scores or {@code null} for none - */ - public CapacityAdviceResponseRecommendation setScores(CapacityAdviceResponseRecommendationScores scores) { - this.scores = scores; - return this; - } - - /** - * Shards represent blocks of uniform capacity in recommendations. - * @return value or {@code null} for none - */ - public java.util.List getShards() { - return shards; - } - - /** - * Shards represent blocks of uniform capacity in recommendations. - * @param shards shards or {@code null} for none - */ - public CapacityAdviceResponseRecommendation setShards(java.util.List shards) { - this.shards = shards; - return this; - } - - @Override - public CapacityAdviceResponseRecommendation set(String fieldName, Object value) { - return (CapacityAdviceResponseRecommendation) super.set(fieldName, value); - } - - @Override - public CapacityAdviceResponseRecommendation clone() { - return (CapacityAdviceResponseRecommendation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationScores.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationScores.java deleted file mode 100644 index 2a034b5f993..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationScores.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Groups information about a shard of capacity. - * - *

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 CapacityAdviceResponseRecommendationScores extends com.google.api.client.json.GenericJson { - - /** - * The estimated run time of the majority of Spot VMs in the request before preemption. The - * estimate is best-effort only. It is based on historical data and current conditions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String estimatedUptime; - - /** - * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the - * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double obtainability; - - /** - * The estimated run time of the majority of Spot VMs in the request before preemption. The - * estimate is best-effort only. It is based on historical data and current conditions. - * @return value or {@code null} for none - */ - public String getEstimatedUptime() { - return estimatedUptime; - } - - /** - * The estimated run time of the majority of Spot VMs in the request before preemption. The - * estimate is best-effort only. It is based on historical data and current conditions. - * @param estimatedUptime estimatedUptime or {@code null} for none - */ - public CapacityAdviceResponseRecommendationScores setEstimatedUptime(String estimatedUptime) { - this.estimatedUptime = estimatedUptime; - return this; - } - - /** - * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the - * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. - * @return value or {@code null} for none - */ - public java.lang.Double getObtainability() { - return obtainability; - } - - /** - * The obtainability score indicates the likelihood of successfully obtaining (provisioning) the - * requested number of VMs. The score range is 0.0 through 1.0. Higher is better. - * @param obtainability obtainability or {@code null} for none - */ - public CapacityAdviceResponseRecommendationScores setObtainability(java.lang.Double obtainability) { - this.obtainability = obtainability; - return this; - } - - @Override - public CapacityAdviceResponseRecommendationScores set(String fieldName, Object value) { - return (CapacityAdviceResponseRecommendationScores) super.set(fieldName, value); - } - - @Override - public CapacityAdviceResponseRecommendationScores clone() { - return (CapacityAdviceResponseRecommendationScores) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationShard.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationShard.java deleted file mode 100644 index ab7e7edac8a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityAdviceResponseRecommendationShard.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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.preview.model; - -/** - * Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone - * and a single machine shape. Each shard defines a size expressed as the number of VMs. - * - *

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 CapacityAdviceResponseRecommendationShard extends com.google.api.client.json.GenericJson { - - /** - * The number of instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer instanceCount; - - /** - * The machine type corresponds to the instance selection in the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * The provisioning model that you want to view recommendations for. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String provisioningModel; - - /** - * Output only. The zone name for this shard. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * The number of instances. - * @return value or {@code null} for none - */ - public java.lang.Integer getInstanceCount() { - return instanceCount; - } - - /** - * The number of instances. - * @param instanceCount instanceCount or {@code null} for none - */ - public CapacityAdviceResponseRecommendationShard setInstanceCount(java.lang.Integer instanceCount) { - this.instanceCount = instanceCount; - return this; - } - - /** - * The machine type corresponds to the instance selection in the request. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * The machine type corresponds to the instance selection in the request. - * @param machineType machineType or {@code null} for none - */ - public CapacityAdviceResponseRecommendationShard setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * The provisioning model that you want to view recommendations for. - * @return value or {@code null} for none - */ - public java.lang.String getProvisioningModel() { - return provisioningModel; - } - - /** - * The provisioning model that you want to view recommendations for. - * @param provisioningModel provisioningModel or {@code null} for none - */ - public CapacityAdviceResponseRecommendationShard setProvisioningModel(java.lang.String provisioningModel) { - this.provisioningModel = provisioningModel; - return this; - } - - /** - * Output only. The zone name for this shard. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. The zone name for this shard. - * @param zone zone or {@code null} for none - */ - public CapacityAdviceResponseRecommendationShard setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public CapacityAdviceResponseRecommendationShard set(String fieldName, Object value) { - return (CapacityAdviceResponseRecommendationShard) super.set(fieldName, value); - } - - @Override - public CapacityAdviceResponseRecommendationShard clone() { - return (CapacityAdviceResponseRecommendationShard) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequest.java deleted file mode 100644 index 2896db0ee98..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * A request to get the capacity history. - * - *

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 CapacityHistoryRequest extends com.google.api.client.json.GenericJson { - - /** - * Instance properties for this request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityHistoryRequestInstanceProperties instanceProperties; - - /** - * Location policy for this request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CapacityHistoryRequestLocationPolicy locationPolicy; - - /** - * List of history types to get capacity history for. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List types; - - /** - * Instance properties for this request. - * @return value or {@code null} for none - */ - public CapacityHistoryRequestInstanceProperties getInstanceProperties() { - return instanceProperties; - } - - /** - * Instance properties for this request. - * @param instanceProperties instanceProperties or {@code null} for none - */ - public CapacityHistoryRequest setInstanceProperties(CapacityHistoryRequestInstanceProperties instanceProperties) { - this.instanceProperties = instanceProperties; - return this; - } - - /** - * Location policy for this request. - * @return value or {@code null} for none - */ - public CapacityHistoryRequestLocationPolicy getLocationPolicy() { - return locationPolicy; - } - - /** - * Location policy for this request. - * @param locationPolicy locationPolicy or {@code null} for none - */ - public CapacityHistoryRequest setLocationPolicy(CapacityHistoryRequestLocationPolicy locationPolicy) { - this.locationPolicy = locationPolicy; - return this; - } - - /** - * List of history types to get capacity history for. - * @return value or {@code null} for none - */ - public java.util.List getTypes() { - return types; - } - - /** - * List of history types to get capacity history for. - * @param types types or {@code null} for none - */ - public CapacityHistoryRequest setTypes(java.util.List types) { - this.types = types; - return this; - } - - @Override - public CapacityHistoryRequest set(String fieldName, Object value) { - return (CapacityHistoryRequest) super.set(fieldName, value); - } - - @Override - public CapacityHistoryRequest clone() { - return (CapacityHistoryRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstanceProperties.java deleted file mode 100644 index 0a4f0168dc1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstanceProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Instance properties for this request. - * - *

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 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}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * Specifies the scheduling options. - * The value may be {@code null}. - */ - @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 - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * The machine type for the VM, such as `n2-standard-4`. - * @param machineType machineType or {@code null} for none - */ - public CapacityHistoryRequestInstanceProperties setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * Specifies the scheduling options. - * @return value or {@code null} for none - */ - public CapacityHistoryRequestInstancePropertiesScheduling getScheduling() { - return scheduling; - } - - /** - * Specifies the scheduling options. - * @param scheduling scheduling or {@code null} for none - */ - public CapacityHistoryRequestInstanceProperties setScheduling(CapacityHistoryRequestInstancePropertiesScheduling scheduling) { - this.scheduling = scheduling; - return this; - } - - @Override - public CapacityHistoryRequestInstanceProperties set(String fieldName, Object value) { - return (CapacityHistoryRequestInstanceProperties) super.set(fieldName, value); - } - - @Override - public CapacityHistoryRequestInstanceProperties clone() { - return (CapacityHistoryRequestInstanceProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java deleted file mode 100644 index a1006f7f629..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesScheduling.java deleted file mode 100644 index 175aef163fb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestInstancePropertiesScheduling.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Scheduling options. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class CapacityHistoryRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { - - /** - * The provisioning model to get capacity history for. This field must be set to SPOT. - * - * For more information, see Compute Engine instances provisioning models. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String provisioningModel; - - /** - * The provisioning model to get capacity history for. This field must be set to SPOT. - * - * For more information, see Compute Engine instances provisioning models. - * @return value or {@code null} for none - */ - public java.lang.String getProvisioningModel() { - return provisioningModel; - } - - /** - * The provisioning model to get capacity history for. This field must be set to SPOT. - * - * For more information, see Compute Engine instances provisioning models. - * @param provisioningModel provisioningModel or {@code null} for none - */ - public CapacityHistoryRequestInstancePropertiesScheduling setProvisioningModel(java.lang.String provisioningModel) { - this.provisioningModel = provisioningModel; - return this; - } - - @Override - public CapacityHistoryRequestInstancePropertiesScheduling set(String fieldName, Object value) { - return (CapacityHistoryRequestInstancePropertiesScheduling) super.set(fieldName, value); - } - - @Override - public CapacityHistoryRequestInstancePropertiesScheduling clone() { - return (CapacityHistoryRequestInstancePropertiesScheduling) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestLocationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestLocationPolicy.java deleted file mode 100644 index 7b9c03817c4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryRequestLocationPolicy.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Location policy for this request. - * - *

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 CapacityHistoryRequestLocationPolicy extends com.google.api.client.json.GenericJson { - - /** - * The region or zone to get capacity history for. - * - * It can be a partial or full URL. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * - * This field is optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * The region or zone to get capacity history for. - * - * It can be a partial or full URL. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * - * This field is optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * The region or zone to get capacity history for. - * - * It can be a partial or full URL. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * - * This field is optional. - * @param location location or {@code null} for none - */ - public CapacityHistoryRequestLocationPolicy setLocation(java.lang.String location) { - this.location = location; - return this; - } - - @Override - public CapacityHistoryRequestLocationPolicy set(String fieldName, Object value) { - return (CapacityHistoryRequestLocationPolicy) super.set(fieldName, value); - } - - @Override - public CapacityHistoryRequestLocationPolicy clone() { - return (CapacityHistoryRequestLocationPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponse.java deleted file mode 100644 index d6cf1c59315..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponse.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains the capacity history. - * - *

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 CapacityHistoryResponse extends com.google.api.client.json.GenericJson { - - /** - * Output only. The location (region or zone) for which the capacity history is returned. It is - * returned as a URL - For - * example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * The machine type for which the capacity history is returned. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * The preemption history for the requested machine type and location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List preemptionHistory; - - /** - * The price history for the requested machine type and location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List priceHistory; - - /** - * Output only. The location (region or zone) for which the capacity history is returned. It is - * returned as a URL - For - * example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * Output only. The location (region or zone) for which the capacity history is returned. It is - * returned as a URL - For - * example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. - * @param location location or {@code null} for none - */ - public CapacityHistoryResponse setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * The machine type for which the capacity history is returned. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * The machine type for which the capacity history is returned. - * @param machineType machineType or {@code null} for none - */ - public CapacityHistoryResponse setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * The preemption history for the requested machine type and location. - * @return value or {@code null} for none - */ - public java.util.List getPreemptionHistory() { - return preemptionHistory; - } - - /** - * The preemption history for the requested machine type and location. - * @param preemptionHistory preemptionHistory or {@code null} for none - */ - public CapacityHistoryResponse setPreemptionHistory(java.util.List preemptionHistory) { - this.preemptionHistory = preemptionHistory; - return this; - } - - /** - * The price history for the requested machine type and location. - * @return value or {@code null} for none - */ - public java.util.List getPriceHistory() { - return priceHistory; - } - - /** - * The price history for the requested machine type and location. - * @param priceHistory priceHistory or {@code null} for none - */ - public CapacityHistoryResponse setPriceHistory(java.util.List priceHistory) { - this.priceHistory = priceHistory; - return this; - } - - @Override - public CapacityHistoryResponse set(String fieldName, Object value) { - return (CapacityHistoryResponse) super.set(fieldName, value); - } - - @Override - public CapacityHistoryResponse clone() { - return (CapacityHistoryResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePreemptionRecord.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePreemptionRecord.java deleted file mode 100644 index 239f0724d71..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePreemptionRecord.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * A record of Spot VM preemption history. - * - *

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 CapacityHistoryResponsePreemptionRecord extends com.google.api.client.json.GenericJson { - - /** - * The time interval for this preemption record. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Interval interval; - - /** - * The preemption rate during the interval, representing the fraction of Spot VMs that were - * preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total - * Spots that stopped running). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double preemptionRate; - - /** - * The time interval for this preemption record. - * @return value or {@code null} for none - */ - public Interval getInterval() { - return interval; - } - - /** - * The time interval for this preemption record. - * @param interval interval or {@code null} for none - */ - public CapacityHistoryResponsePreemptionRecord setInterval(Interval interval) { - this.interval = interval; - return this; - } - - /** - * The preemption rate during the interval, representing the fraction of Spot VMs that were - * preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total - * Spots that stopped running). - * @return value or {@code null} for none - */ - public java.lang.Double getPreemptionRate() { - return preemptionRate; - } - - /** - * The preemption rate during the interval, representing the fraction of Spot VMs that were - * preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total - * Spots that stopped running). - * @param preemptionRate preemptionRate or {@code null} for none - */ - public CapacityHistoryResponsePreemptionRecord setPreemptionRate(java.lang.Double preemptionRate) { - this.preemptionRate = preemptionRate; - return this; - } - - @Override - public CapacityHistoryResponsePreemptionRecord set(String fieldName, Object value) { - return (CapacityHistoryResponsePreemptionRecord) super.set(fieldName, value); - } - - @Override - public CapacityHistoryResponsePreemptionRecord clone() { - return (CapacityHistoryResponsePreemptionRecord) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePriceRecord.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePriceRecord.java deleted file mode 100644 index 10e7ea2d79b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CapacityHistoryResponsePriceRecord.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * A record of price history. - * - *

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 CapacityHistoryResponsePriceRecord extends com.google.api.client.json.GenericJson { - - /** - * The time interval for this price record. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Interval interval; - - /** - * The Spot VM list price during the interval. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Money listPrice; - - /** - * The time interval for this price record. - * @return value or {@code null} for none - */ - public Interval getInterval() { - return interval; - } - - /** - * The time interval for this price record. - * @param interval interval or {@code null} for none - */ - public CapacityHistoryResponsePriceRecord setInterval(Interval interval) { - this.interval = interval; - return this; - } - - /** - * The Spot VM list price during the interval. - * @return value or {@code null} for none - */ - public Money getListPrice() { - return listPrice; - } - - /** - * The Spot VM list price during the interval. - * @param listPrice listPrice or {@code null} for none - */ - public CapacityHistoryResponsePriceRecord setListPrice(Money listPrice) { - this.listPrice = listPrice; - return this; - } - - @Override - public CapacityHistoryResponsePriceRecord set(String fieldName, Object value) { - return (CapacityHistoryResponsePriceRecord) super.set(fieldName, value); - } - - @Override - public CapacityHistoryResponsePriceRecord clone() { - return (CapacityHistoryResponsePriceRecord) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CircuitBreakers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CircuitBreakers.java deleted file mode 100644 index c8cc9e26944..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CircuitBreakers.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * 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.preview.model; - -/** - * Settings controlling the volume of requests, connections and retries to this backend service. - * - *

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 CircuitBreakers extends com.google.api.client.json.GenericJson { - - /** - * The maximum number of connections to the backend service. If not specified, there is no limit. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxConnections; - - /** - * The maximum number of pending requests allowed to the backend service. If not specified, there - * is no limit. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPendingRequests; - - /** - * The maximum number of parallel requests that allowed to the backend service. If not specified, - * there is no limit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxRequests; - - /** - * Maximum requests for a single connection to the backend service. This parameter is respected by - * both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this - * parameter to 1 will effectively disable keep alive. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxRequestsPerConnection; - - /** - * The maximum number of parallel retries allowed to the backend cluster. If not specified, the - * default is 1. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxRetries; - - /** - * The maximum number of connections to the backend service. If not specified, there is no limit. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxConnections() { - return maxConnections; - } - - /** - * The maximum number of connections to the backend service. If not specified, there is no limit. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param maxConnections maxConnections or {@code null} for none - */ - public CircuitBreakers setMaxConnections(java.lang.Integer maxConnections) { - this.maxConnections = maxConnections; - return this; - } - - /** - * The maximum number of pending requests allowed to the backend service. If not specified, there - * is no limit. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxPendingRequests() { - return maxPendingRequests; - } - - /** - * The maximum number of pending requests allowed to the backend service. If not specified, there - * is no limit. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param maxPendingRequests maxPendingRequests or {@code null} for none - */ - public CircuitBreakers setMaxPendingRequests(java.lang.Integer maxPendingRequests) { - this.maxPendingRequests = maxPendingRequests; - return this; - } - - /** - * The maximum number of parallel requests that allowed to the backend service. If not specified, - * there is no limit. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxRequests() { - return maxRequests; - } - - /** - * The maximum number of parallel requests that allowed to the backend service. If not specified, - * there is no limit. - * @param maxRequests maxRequests or {@code null} for none - */ - public CircuitBreakers setMaxRequests(java.lang.Integer maxRequests) { - this.maxRequests = maxRequests; - return this; - } - - /** - * Maximum requests for a single connection to the backend service. This parameter is respected by - * both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this - * parameter to 1 will effectively disable keep alive. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxRequestsPerConnection() { - return maxRequestsPerConnection; - } - - /** - * Maximum requests for a single connection to the backend service. This parameter is respected by - * both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this - * parameter to 1 will effectively disable keep alive. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param maxRequestsPerConnection maxRequestsPerConnection or {@code null} for none - */ - public CircuitBreakers setMaxRequestsPerConnection(java.lang.Integer maxRequestsPerConnection) { - this.maxRequestsPerConnection = maxRequestsPerConnection; - return this; - } - - /** - * The maximum number of parallel retries allowed to the backend cluster. If not specified, the - * default is 1. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxRetries() { - return maxRetries; - } - - /** - * The maximum number of parallel retries allowed to the backend cluster. If not specified, the - * default is 1. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param maxRetries maxRetries or {@code null} for none - */ - public CircuitBreakers setMaxRetries(java.lang.Integer maxRetries) { - this.maxRetries = maxRetries; - return this; - } - - @Override - public CircuitBreakers set(String fieldName, Object value) { - return (CircuitBreakers) super.set(fieldName, value); - } - - @Override - public CircuitBreakers clone() { - return (CircuitBreakers) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Commitment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Commitment.java deleted file mode 100644 index e3ae0f158d0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Commitment.java +++ /dev/null @@ -1,764 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a regional resource-based commitment resource. - * - * Creating this commitment resource means that you are purchasing a resource-based committed use - * contract, with an explicit start and end time. You can purchase resource-based commitments for - * both hardware and software resources. For more information, read Resource-based committed use - * discounts - * - *

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 Commitment extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether to automatically renew the commitment at the end of its current term. The - * default value is false. If you set the field to true, each time your commitment reaches the end - * of its term, Compute Engine automatically renews it for another term. You can update this field - * anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM - * UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoRenew; - - /** - * The category of the commitment; specifies whether the commitment is for hardware or software - * resources. Category MACHINE specifies that you are committing to hardware machine resources - * such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing - * to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, - * then you must also specify a type to indicate the machine series of the hardware resource that - * you are committing to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String category; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use - * this option when the desired commitment's end date is later than the start date + term - * duration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customEndTimestamp; - - /** - * An optional description of the commitment. You can provide this property when you create the - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endTimestamp; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List existingReservations; - - /** - * 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] Type of the resource. Always compute#commitment for commitments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The license specification required as part of a license commitment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LicenseResourceCommitment licenseResource; - - /** - * The list of source commitments that you are merging to create the new merged commitment. For - * more information, see Merging commitments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List mergeSourceCommitments; - - /** - * Name of the commitment. You must specify a name when you purchase the commitment. 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; - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CommitmentParams params; - - /** - * The minimum time duration that you commit to purchasing resources. The plan that you choose - * determines the preset term length of the commitment (which is 1 year or 3 years) and affects - * the discount rate that you receive for your resources. Committing to a longer time duration - * typically gives you a higher discount rate. The supported values for this field are - * TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String plan; - - /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * The list of new reservations that you want to create and attach to this commitment. - * - * You must attach reservations to your commitment if your commitment specifies any GPUs or Local - * SSD disks. For more information, see Attach reservations to resource-based commitments. - * - * Specify this property only if you want to create new reservations to attach. To attach existing - * reservations, specify theexistingReservations property instead. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List reservations; - - /** - * Output only. [Output Only] Status information for Commitment resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CommitmentResourceStatus resourceStatus; - - /** - * The list of all the hardware resources, with their types and amounts, that you want to commit - * to. Specify as a separate entry in the list for each individual resource type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resources; - - /** - * 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; - - /** - * The source commitment from which you are transferring resources to create the new split - * commitment. For more information, see Split commitments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String splitSourceCommitment; - - /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTimestamp; - - /** - * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each - * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, - * ACTIVE, orEXPIRED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String statusMessage; - - /** - * The type of commitment; specifies the machine series for which you want to commit to purchasing - * resources. The choice of machine series affects the discount rate and the eligible resource - * types. - * - * The type must be one of the following:ACCELERATOR_OPTIMIZED, - * ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, - * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, - * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, - * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, - * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, - * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Specifies whether to automatically renew the commitment at the end of its current term. The - * default value is false. If you set the field to true, each time your commitment reaches the end - * of its term, Compute Engine automatically renews it for another term. You can update this field - * anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM - * UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoRenew() { - return autoRenew; - } - - /** - * Specifies whether to automatically renew the commitment at the end of its current term. The - * default value is false. If you set the field to true, each time your commitment reaches the end - * of its term, Compute Engine automatically renews it for another term. You can update this field - * anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM - * UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027. - * @param autoRenew autoRenew or {@code null} for none - */ - public Commitment setAutoRenew(java.lang.Boolean autoRenew) { - this.autoRenew = autoRenew; - return this; - } - - /** - * The category of the commitment; specifies whether the commitment is for hardware or software - * resources. Category MACHINE specifies that you are committing to hardware machine resources - * such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing - * to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, - * then you must also specify a type to indicate the machine series of the hardware resource that - * you are committing to. - * @return value or {@code null} for none - */ - public java.lang.String getCategory() { - return category; - } - - /** - * The category of the commitment; specifies whether the commitment is for hardware or software - * resources. Category MACHINE specifies that you are committing to hardware machine resources - * such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing - * to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, - * then you must also specify a type to indicate the machine series of the hardware resource that - * you are committing to. - * @param category category or {@code null} for none - */ - public Commitment setCategory(java.lang.String category) { - this.category = category; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use - * this option when the desired commitment's end date is later than the start date + term - * duration. - * @return value or {@code null} for none - */ - public java.lang.String getCustomEndTimestamp() { - return customEndTimestamp; - } - - /** - * [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use - * this option when the desired commitment's end date is later than the start date + term - * duration. - * @param customEndTimestamp customEndTimestamp or {@code null} for none - */ - public Commitment setCustomEndTimestamp(java.lang.String customEndTimestamp) { - this.customEndTimestamp = customEndTimestamp; - return this; - } - - /** - * An optional description of the commitment. You can provide this property when you create the - * resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of the commitment. You can provide this property when you create the - * resource. - * @param description description or {@code null} for none - */ - public Commitment setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getEndTimestamp() { - return endTimestamp; - } - - /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. - * @param endTimestamp endTimestamp or {@code null} for none - */ - public Commitment setEndTimestamp(java.lang.String endTimestamp) { - this.endTimestamp = endTimestamp; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getExistingReservations() { - return existingReservations; - } - - /** - * @param existingReservations existingReservations or {@code null} for none - */ - public Commitment setExistingReservations(java.util.List existingReservations) { - this.existingReservations = existingReservations; - 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 Commitment setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. - * @param kind kind or {@code null} for none - */ - public Commitment setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The license specification required as part of a license commitment. - * @return value or {@code null} for none - */ - public LicenseResourceCommitment getLicenseResource() { - return licenseResource; - } - - /** - * The license specification required as part of a license commitment. - * @param licenseResource licenseResource or {@code null} for none - */ - public Commitment setLicenseResource(LicenseResourceCommitment licenseResource) { - this.licenseResource = licenseResource; - return this; - } - - /** - * The list of source commitments that you are merging to create the new merged commitment. For - * more information, see Merging commitments. - * @return value or {@code null} for none - */ - public java.util.List getMergeSourceCommitments() { - return mergeSourceCommitments; - } - - /** - * The list of source commitments that you are merging to create the new merged commitment. For - * more information, see Merging commitments. - * @param mergeSourceCommitments mergeSourceCommitments or {@code null} for none - */ - public Commitment setMergeSourceCommitments(java.util.List mergeSourceCommitments) { - this.mergeSourceCommitments = mergeSourceCommitments; - return this; - } - - /** - * Name of the commitment. You must specify a name when you purchase the commitment. 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 commitment. You must specify a name when you purchase the commitment. 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 Commitment setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @return value or {@code null} for none - */ - public CommitmentParams getParams() { - return params; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @param params params or {@code null} for none - */ - public Commitment setParams(CommitmentParams params) { - this.params = params; - return this; - } - - /** - * The minimum time duration that you commit to purchasing resources. The plan that you choose - * determines the preset term length of the commitment (which is 1 year or 3 years) and affects - * the discount rate that you receive for your resources. Committing to a longer time duration - * typically gives you a higher discount rate. The supported values for this field are - * TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). - * @return value or {@code null} for none - */ - public java.lang.String getPlan() { - return plan; - } - - /** - * The minimum time duration that you commit to purchasing resources. The plan that you choose - * determines the preset term length of the commitment (which is 1 year or 3 years) and affects - * the discount rate that you receive for your resources. Committing to a longer time duration - * typically gives you a higher discount rate. The supported values for this field are - * TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). - * @param plan plan or {@code null} for none - */ - public Commitment setPlan(java.lang.String plan) { - this.plan = plan; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. - * @param region region or {@code null} for none - */ - public Commitment setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The list of new reservations that you want to create and attach to this commitment. - * - * You must attach reservations to your commitment if your commitment specifies any GPUs or Local - * SSD disks. For more information, see Attach reservations to resource-based commitments. - * - * Specify this property only if you want to create new reservations to attach. To attach existing - * reservations, specify theexistingReservations property instead. - * @return value or {@code null} for none - */ - public java.util.List getReservations() { - return reservations; - } - - /** - * The list of new reservations that you want to create and attach to this commitment. - * - * You must attach reservations to your commitment if your commitment specifies any GPUs or Local - * SSD disks. For more information, see Attach reservations to resource-based commitments. - * - * Specify this property only if you want to create new reservations to attach. To attach existing - * reservations, specify theexistingReservations property instead. - * @param reservations reservations or {@code null} for none - */ - public Commitment setReservations(java.util.List reservations) { - this.reservations = reservations; - return this; - } - - /** - * Output only. [Output Only] Status information for Commitment resource. - * @return value or {@code null} for none - */ - public CommitmentResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] Status information for Commitment resource. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * The list of all the hardware resources, with their types and amounts, that you want to commit - * to. Specify as a separate entry in the list for each individual resource type. - * @return value or {@code null} for none - */ - public java.util.List getResources() { - return resources; - } - - /** - * The list of all the hardware resources, with their types and amounts, that you want to commit - * to. Specify as a separate entry in the list for each individual resource type. - * @param resources resources or {@code null} for none - */ - public Commitment setResources(java.util.List resources) { - this.resources = resources; - 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 Commitment setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The source commitment from which you are transferring resources to create the new split - * commitment. For more information, see Split commitments. - * @return value or {@code null} for none - */ - public java.lang.String getSplitSourceCommitment() { - return splitSourceCommitment; - } - - /** - * The source commitment from which you are transferring resources to create the new split - * commitment. For more information, see Split commitments. - * @param splitSourceCommitment splitSourceCommitment or {@code null} for none - */ - public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitment) { - this.splitSourceCommitment = splitSourceCommitment; - return this; - } - - /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getStartTimestamp() { - return startTimestamp; - } - - /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. - * @param startTimestamp startTimestamp or {@code null} for none - */ - public Commitment setStartTimestamp(java.lang.String startTimestamp) { - this.startTimestamp = startTimestamp; - return this; - } - - /** - * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each - * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, - * ACTIVE, orEXPIRED. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] Status of the commitment with regards to eventual expiration (each - * commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, - * ACTIVE, orEXPIRED. - * @param status status or {@code null} for none - */ - public Commitment setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * @return value or {@code null} for none - */ - public java.lang.String getStatusMessage() { - return statusMessage; - } - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * @param statusMessage statusMessage or {@code null} for none - */ - public Commitment setStatusMessage(java.lang.String statusMessage) { - this.statusMessage = statusMessage; - return this; - } - - /** - * The type of commitment; specifies the machine series for which you want to commit to purchasing - * resources. The choice of machine series affects the discount rate and the eligible resource - * types. - * - * The type must be one of the following:ACCELERATOR_OPTIMIZED, - * ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, - * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, - * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, - * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, - * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, - * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of commitment; specifies the machine series for which you want to commit to purchasing - * resources. The choice of machine series affects the discount rate and the eligible resource - * types. - * - * The type must be one of the following:ACCELERATOR_OPTIMIZED, - * ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, - * COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, - * GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, - * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, - * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, - * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. - * @param type type or {@code null} for none - */ - public Commitment setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public Commitment set(String fieldName, Object value) { - return (Commitment) super.set(fieldName, value); - } - - @Override - public Commitment clone() { - return (Commitment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentAggregatedList.java deleted file mode 100644 index 6edb0fed636..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CommitmentAggregatedList. - * - *

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 CommitmentAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 CommitmentsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for - * aggregated lists of commitments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 CommitmentAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of CommitmentsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of CommitmentsScopedList resources. - * @param items items or {@code null} for none - */ - public CommitmentAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for - * aggregated lists of commitments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for - * aggregated lists of commitments. - * @param kind kind or {@code null} for none - */ - public CommitmentAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public CommitmentAggregatedList 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 CommitmentAggregatedList 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 CommitmentAggregatedList 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 CommitmentAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CommitmentAggregatedList set(String fieldName, Object value) { - return (CommitmentAggregatedList) super.set(fieldName, value); - } - - @Override - public CommitmentAggregatedList clone() { - return (CommitmentAggregatedList) 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 CommitmentAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentList.java deleted file mode 100644 index b6b1848b12b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Commitment resources. - * - *

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 CommitmentList extends com.google.api.client.json.GenericJson { - - /** - * [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 Commitment 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 Commitment 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(Commitment.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 CommitmentList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Commitment resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Commitment resources. - * @param items items or {@code null} for none - */ - public CommitmentList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. - * @param kind kind or {@code null} for none - */ - public CommitmentList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public CommitmentList 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 CommitmentList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 CommitmentList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CommitmentList set(String fieldName, Object value) { - return (CommitmentList) super.set(fieldName, value); - } - - @Override - public CommitmentList clone() { - return (CommitmentList) 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 CommitmentListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentParams.java deleted file mode 100644 index bfbb707afd7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional commitment params. - * - *

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 CommitmentParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the commitment. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the commitment. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the commitment. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public CommitmentParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public CommitmentParams set(String fieldName, Object value) { - return (CommitmentParams) super.set(fieldName, value); - } - - @Override - public CommitmentParams clone() { - return (CommitmentParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentResourceStatus.java deleted file mode 100644 index af657e726ad..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentResourceStatus.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Contains output only fields. - * - *

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 CommitmentResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term - * requests in RFC3339 text format. Term extension requests that (not the end time in the request) - * after this time will be rejected. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customTermEligibilityEndTimestamp; - - /** - * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term - * requests in RFC3339 text format. Term extension requests that (not the end time in the request) - * after this time will be rejected. - * @return value or {@code null} for none - */ - public java.lang.String getCustomTermEligibilityEndTimestamp() { - return customTermEligibilityEndTimestamp; - } - - /** - * Output only. [Output Only] Indicates the end time of customer's eligibility to send custom term - * requests in RFC3339 text format. Term extension requests that (not the end time in the request) - * after this time will be rejected. - * @param customTermEligibilityEndTimestamp customTermEligibilityEndTimestamp or {@code null} for none - */ - public CommitmentResourceStatus setCustomTermEligibilityEndTimestamp(java.lang.String customTermEligibilityEndTimestamp) { - this.customTermEligibilityEndTimestamp = customTermEligibilityEndTimestamp; - return this; - } - - @Override - public CommitmentResourceStatus set(String fieldName, Object value) { - return (CommitmentResourceStatus) super.set(fieldName, value); - } - - @Override - public CommitmentResourceStatus clone() { - return (CommitmentResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentsScopedList.java deleted file mode 100644 index e6b681a6996..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CommitmentsScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CommitmentsScopedList. - * - *

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 CommitmentsScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The list of commitments contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List commitments; - - static { - // hack to force ProGuard to consider Commitment 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(Commitment.class); - } - - /** - * [Output Only] Informational warning which replaces the list of commitments when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] The list of commitments contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getCommitments() { - return commitments; - } - - /** - * [Output Only] The list of commitments contained in this scope. - * @param commitments commitments or {@code null} for none - */ - public CommitmentsScopedList setCommitments(java.util.List commitments) { - this.commitments = commitments; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of commitments when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of commitments when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public CommitmentsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CommitmentsScopedList set(String fieldName, Object value) { - return (CommitmentsScopedList) super.set(fieldName, value); - } - - @Override - public CommitmentsScopedList clone() { - return (CommitmentsScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of commitments when the list is - * empty. - */ - 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 CommitmentsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheck.java deleted file mode 100644 index dc44cfa1a3c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheck.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a composite health check. - * - * A composite health check resource specifies the health source resources and the health - * destination resource to which the aggregated health result from the health source resources is - * delivered. - * - *

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 CompositeHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- - * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the CompositeHealthCheck. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must - * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same - * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not - * supported). Can be mutated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthDestination; - - /** - * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is - * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must - * be regional and in the same region as theCompositeHealthCheck. Can be mutated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthSources; - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] URL of the region where the composite health check resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Server-defined URL with id for the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public CompositeHealthCheck setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- - * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the CompositeHealthCheck. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- - * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the CompositeHealthCheck. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- - * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the CompositeHealthCheck. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public CompositeHealthCheck setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a CompositeHealthCheck. An up- - * to-date fingerprint must be provided in order to patch the CompositeHealthCheck; Otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the CompositeHealthCheck. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public CompositeHealthCheck encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must - * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same - * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not - * supported). Can be mutated. - * @return value or {@code null} for none - */ - public java.lang.String getHealthDestination() { - return healthDestination; - } - - /** - * URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must - * have load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same - * region as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not - * supported). Can be mutated. - * @param healthDestination healthDestination or {@code null} for none - */ - public CompositeHealthCheck setHealthDestination(java.lang.String healthDestination) { - this.healthDestination = healthDestination; - return this; - } - - /** - * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is - * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must - * be regional and in the same region as theCompositeHealthCheck. Can be mutated. - * @return value or {@code null} for none - */ - public java.util.List getHealthSources() { - return healthSources; - } - - /** - * URLs to the HealthSource resources whose results are AND'ed. I.e. he aggregated result is is - * HEALTHY only if all sources are HEALTHY. Must have at least 1. Must not have more than 10. Must - * be regional and in the same region as theCompositeHealthCheck. Can be mutated. - * @param healthSources healthSources or {@code null} for none - */ - public CompositeHealthCheck setHealthSources(java.util.List healthSources) { - this.healthSources = healthSources; - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public CompositeHealthCheck setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. - * @param kind kind or {@code null} for none - */ - public CompositeHealthCheck setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 CompositeHealthCheck setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the composite health check resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the composite health check resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public CompositeHealthCheck setRegion(java.lang.String region) { - this.region = region; - 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 CompositeHealthCheck setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public CompositeHealthCheck setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - @Override - public CompositeHealthCheck set(String fieldName, Object value) { - return (CompositeHealthCheck) super.set(fieldName, value); - } - - @Override - public CompositeHealthCheck clone() { - return (CompositeHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckAggregatedList.java deleted file mode 100644 index 2d6a52b07fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of CompositeHealthChecksScopedList. - * - *

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 CompositeHealthCheckAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 CompositeHealthChecksScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 CompositeHealthCheckAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of CompositeHealthChecksScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of CompositeHealthChecksScopedList resources. - * @param items items or {@code null} for none - */ - public CompositeHealthCheckAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public CompositeHealthCheckAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public CompositeHealthCheckAggregatedList 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 CompositeHealthCheckAggregatedList 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 CompositeHealthCheckAggregatedList 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 CompositeHealthCheckAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CompositeHealthCheckAggregatedList set(String fieldName, Object value) { - return (CompositeHealthCheckAggregatedList) super.set(fieldName, value); - } - - @Override - public CompositeHealthCheckAggregatedList clone() { - return (CompositeHealthCheckAggregatedList) 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 CompositeHealthCheckAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckHealth.java deleted file mode 100644 index 18cf07e209a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckHealth.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response message for RegionCompositeHealthChecks.GetHealth - * - *

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 CompositeHealthCheckHealth extends com.google.api.client.json.GenericJson { - - /** - * Health sources and their corresponding health states. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthSources; - - /** - * Health state of the CompositeHealthCheck. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthState; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the - * health of composite health checks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Health sources and their corresponding health states. - * @return value or {@code null} for none - */ - public java.util.List getHealthSources() { - return healthSources; - } - - /** - * Health sources and their corresponding health states. - * @param healthSources healthSources or {@code null} for none - */ - public CompositeHealthCheckHealth setHealthSources(java.util.List healthSources) { - this.healthSources = healthSources; - return this; - } - - /** - * Health state of the CompositeHealthCheck. - * @return value or {@code null} for none - */ - public java.lang.String getHealthState() { - return healthState; - } - - /** - * Health state of the CompositeHealthCheck. - * @param healthState healthState or {@code null} for none - */ - public CompositeHealthCheckHealth setHealthState(java.lang.String healthState) { - this.healthState = healthState; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the - * health of composite health checks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the - * health of composite health checks. - * @param kind kind or {@code null} for none - */ - public CompositeHealthCheckHealth setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public CompositeHealthCheckHealth set(String fieldName, Object value) { - return (CompositeHealthCheckHealth) super.set(fieldName, value); - } - - @Override - public CompositeHealthCheckHealth clone() { - return (CompositeHealthCheckHealth) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckList.java deleted file mode 100644 index 614418d553f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthCheckList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CompositeHealthCheckList. - * - *

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 CompositeHealthCheckList extends com.google.api.client.json.GenericJson { - - /** - * [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 CompositeHealthCheck 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 CompositeHealthCheck 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(CompositeHealthCheck.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 CompositeHealthCheckList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of CompositeHealthCheck resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of CompositeHealthCheck resources. - * @param items items or {@code null} for none - */ - public CompositeHealthCheckList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. - * @param kind kind or {@code null} for none - */ - public CompositeHealthCheckList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public CompositeHealthCheckList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public CompositeHealthCheckList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 CompositeHealthCheckList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CompositeHealthCheckList set(String fieldName, Object value) { - return (CompositeHealthCheckList) super.set(fieldName, value); - } - - @Override - public CompositeHealthCheckList clone() { - return (CompositeHealthCheckList) 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 CompositeHealthCheckListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java deleted file mode 100644 index a8a454cbc1c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CompositeHealthChecksGetHealthResponseHealthSourceHealth. - * - *

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 CompositeHealthChecksGetHealthResponseHealthSourceHealth extends com.google.api.client.json.GenericJson { - - /** - * Health state of the associated HealthSource resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthState; - - /** - * Fully qualified URL of the associated HealthSource resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * Health state of the associated HealthSource resource. - * @return value or {@code null} for none - */ - public java.lang.String getHealthState() { - return healthState; - } - - /** - * Health state of the associated HealthSource resource. - * @param healthState healthState or {@code null} for none - */ - public CompositeHealthChecksGetHealthResponseHealthSourceHealth setHealthState(java.lang.String healthState) { - this.healthState = healthState; - return this; - } - - /** - * Fully qualified URL of the associated HealthSource resource. - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * Fully qualified URL of the associated HealthSource resource. - * @param source source or {@code null} for none - */ - public CompositeHealthChecksGetHealthResponseHealthSourceHealth setSource(java.lang.String source) { - this.source = source; - return this; - } - - @Override - public CompositeHealthChecksGetHealthResponseHealthSourceHealth set(String fieldName, Object value) { - return (CompositeHealthChecksGetHealthResponseHealthSourceHealth) super.set(fieldName, value); - } - - @Override - public CompositeHealthChecksGetHealthResponseHealthSourceHealth clone() { - return (CompositeHealthChecksGetHealthResponseHealthSourceHealth) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksScopedList.java deleted file mode 100644 index 0c0ce459436..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CompositeHealthChecksScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CompositeHealthChecksScopedList. - * - *

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 CompositeHealthChecksScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of CompositeHealthChecks contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List compositeHealthChecks; - - static { - // hack to force ProGuard to consider CompositeHealthCheck 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(CompositeHealthCheck.class); - } - - /** - * Informational warning which replaces the list of composite health checks when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of CompositeHealthChecks contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getCompositeHealthChecks() { - return compositeHealthChecks; - } - - /** - * A list of CompositeHealthChecks contained in this scope. - * @param compositeHealthChecks compositeHealthChecks or {@code null} for none - */ - public CompositeHealthChecksScopedList setCompositeHealthChecks(java.util.List compositeHealthChecks) { - this.compositeHealthChecks = compositeHealthChecks; - return this; - } - - /** - * Informational warning which replaces the list of composite health checks when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of composite health checks when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public CompositeHealthChecksScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CompositeHealthChecksScopedList set(String fieldName, Object value) { - return (CompositeHealthChecksScopedList) super.set(fieldName, value); - } - - @Override - public CompositeHealthChecksScopedList clone() { - return (CompositeHealthChecksScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of composite health checks when the list is empty. - */ - 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 CompositeHealthChecksScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ConfidentialInstanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConfidentialInstanceConfig.java deleted file mode 100644 index cfd9aeb41be..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConfidentialInstanceConfig.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * A set of Confidential Instance options. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class ConfidentialInstanceConfig extends com.google.api.client.json.GenericJson { - - /** - * Defines the type of technology used by the confidential instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String confidentialInstanceType; - - /** - * Defines whether the instance should have confidential compute enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableConfidentialCompute; - - /** - * Defines the type of technology used by the confidential instance. - * @return value or {@code null} for none - */ - public java.lang.String getConfidentialInstanceType() { - return confidentialInstanceType; - } - - /** - * Defines the type of technology used by the confidential instance. - * @param confidentialInstanceType confidentialInstanceType or {@code null} for none - */ - public ConfidentialInstanceConfig setConfidentialInstanceType(java.lang.String confidentialInstanceType) { - this.confidentialInstanceType = confidentialInstanceType; - return this; - } - - /** - * Defines whether the instance should have confidential compute enabled. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableConfidentialCompute() { - return enableConfidentialCompute; - } - - /** - * Defines whether the instance should have confidential compute enabled. - * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none - */ - public ConfidentialInstanceConfig setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { - this.enableConfidentialCompute = enableConfidentialCompute; - return this; - } - - @Override - public ConfidentialInstanceConfig set(String fieldName, Object value) { - return (ConfidentialInstanceConfig) super.set(fieldName, value); - } - - @Override - public ConfidentialInstanceConfig clone() { - return (ConfidentialInstanceConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConnectionDraining.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConnectionDraining.java deleted file mode 100644 index 891248d52c2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConnectionDraining.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message containing connection draining configuration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class ConnectionDraining extends com.google.api.client.json.GenericJson { - - /** - * Configures a duration timeout for existing requests on a removed backend instance. For - * supported load balancers and protocols, as described inEnabling connection draining. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer drainingTimeoutSec; - - /** - * Configures a duration timeout for existing requests on a removed backend instance. For - * supported load balancers and protocols, as described inEnabling connection draining. - * @return value or {@code null} for none - */ - public java.lang.Integer getDrainingTimeoutSec() { - return drainingTimeoutSec; - } - - /** - * Configures a duration timeout for existing requests on a removed backend instance. For - * supported load balancers and protocols, as described inEnabling connection draining. - * @param drainingTimeoutSec drainingTimeoutSec or {@code null} for none - */ - public ConnectionDraining setDrainingTimeoutSec(java.lang.Integer drainingTimeoutSec) { - this.drainingTimeoutSec = drainingTimeoutSec; - return this; - } - - @Override - public ConnectionDraining set(String fieldName, Object value) { - return (ConnectionDraining) super.set(fieldName, value); - } - - @Override - public ConnectionDraining clone() { - return (ConnectionDraining) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettings.java deleted file mode 100644 index 5a7b0c9d0b8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettings.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * This message defines settings for a consistent hash style load balancer. - * - *

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 ConsistentHashLoadBalancerSettings extends com.google.api.client.json.GenericJson { - - /** - * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash - * key for the consistent hash load balancer. If the cookie is not present, it will be generated. - * This field is applicable if the sessionAffinity is set to HTTP_COOKIE. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ConsistentHashLoadBalancerSettingsHttpCookie httpCookie; - - /** - * The hash based on the value of the specified header field. This field is applicable if the - * sessionAffinity is set toHEADER_FIELD. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String httpHeaderName; - - /** - * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring - * sizes result in more granular load distributions. If the number of hosts in the load balancing - * pool is larger than the ring size, each host will be assigned a single virtual node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minimumRingSize; - - /** - * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash - * key for the consistent hash load balancer. If the cookie is not present, it will be generated. - * This field is applicable if the sessionAffinity is set to HTTP_COOKIE. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public ConsistentHashLoadBalancerSettingsHttpCookie getHttpCookie() { - return httpCookie; - } - - /** - * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash - * key for the consistent hash load balancer. If the cookie is not present, it will be generated. - * This field is applicable if the sessionAffinity is set to HTTP_COOKIE. - * - * Not supported when the backend service is referenced by a URL map that is bound to target gRPC - * proxy that has validateForProxyless field set to true. - * @param httpCookie httpCookie or {@code null} for none - */ - public ConsistentHashLoadBalancerSettings setHttpCookie(ConsistentHashLoadBalancerSettingsHttpCookie httpCookie) { - this.httpCookie = httpCookie; - return this; - } - - /** - * The hash based on the value of the specified header field. This field is applicable if the - * sessionAffinity is set toHEADER_FIELD. - * @return value or {@code null} for none - */ - public java.lang.String getHttpHeaderName() { - return httpHeaderName; - } - - /** - * The hash based on the value of the specified header field. This field is applicable if the - * sessionAffinity is set toHEADER_FIELD. - * @param httpHeaderName httpHeaderName or {@code null} for none - */ - public ConsistentHashLoadBalancerSettings setHttpHeaderName(java.lang.String httpHeaderName) { - this.httpHeaderName = httpHeaderName; - return this; - } - - /** - * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring - * sizes result in more granular load distributions. If the number of hosts in the load balancing - * pool is larger than the ring size, each host will be assigned a single virtual node. - * @return value or {@code null} for none - */ - public java.lang.Long getMinimumRingSize() { - return minimumRingSize; - } - - /** - * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring - * sizes result in more granular load distributions. If the number of hosts in the load balancing - * pool is larger than the ring size, each host will be assigned a single virtual node. - * @param minimumRingSize minimumRingSize or {@code null} for none - */ - public ConsistentHashLoadBalancerSettings setMinimumRingSize(java.lang.Long minimumRingSize) { - this.minimumRingSize = minimumRingSize; - return this; - } - - @Override - public ConsistentHashLoadBalancerSettings set(String fieldName, Object value) { - return (ConsistentHashLoadBalancerSettings) super.set(fieldName, value); - } - - @Override - public ConsistentHashLoadBalancerSettings clone() { - return (ConsistentHashLoadBalancerSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettingsHttpCookie.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettingsHttpCookie.java deleted file mode 100644 index 930390f0e39..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ConsistentHashLoadBalancerSettingsHttpCookie.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.preview.model; - -/** - * The information about the HTTP Cookie on which the hash function is based for load balancing - * policies that use a consistent hash. - * - *

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 ConsistentHashLoadBalancerSettingsHttpCookie extends com.google.api.client.json.GenericJson { - - /** - * Name of the cookie. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Path to set for the cookie. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** - * Lifetime of the cookie. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration ttl; - - /** - * Name of the cookie. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the cookie. - * @param name name or {@code null} for none - */ - public ConsistentHashLoadBalancerSettingsHttpCookie setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Path to set for the cookie. - * @return value or {@code null} for none - */ - public java.lang.String getPath() { - return path; - } - - /** - * Path to set for the cookie. - * @param path path or {@code null} for none - */ - public ConsistentHashLoadBalancerSettingsHttpCookie setPath(java.lang.String path) { - this.path = path; - return this; - } - - /** - * Lifetime of the cookie. - * @return value or {@code null} for none - */ - public Duration getTtl() { - return ttl; - } - - /** - * Lifetime of the cookie. - * @param ttl ttl or {@code null} for none - */ - public ConsistentHashLoadBalancerSettingsHttpCookie setTtl(Duration ttl) { - this.ttl = ttl; - return this; - } - - @Override - public ConsistentHashLoadBalancerSettingsHttpCookie set(String fieldName, Object value) { - return (ConsistentHashLoadBalancerSettingsHttpCookie) super.set(fieldName, value); - } - - @Override - public ConsistentHashLoadBalancerSettingsHttpCookie clone() { - return (ConsistentHashLoadBalancerSettingsHttpCookie) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CorsPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CorsPolicy.java deleted file mode 100644 index ed0edb862b8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CorsPolicy.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * 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.preview.model; - -/** - * The specification for allowing client-side cross-origin requests. For more information about the - * W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. - * - *

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 CorsPolicy extends com.google.api.client.json.GenericJson { - - /** - * In response to a preflight request, setting this to true indicates that the actual request can - * include user credentials. This field translates to the Access-Control-Allow-Credentials header. - * - * Default is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowCredentials; - - /** - * Specifies the content for the Access-Control-Allow-Headers header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowHeaders; - - /** - * Specifies the content for the Access-Control-Allow-Methods header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowMethods; - - /** - * Specifies a regular expression that matches allowed origins. For more information, see regular - * expression syntax. - * - * An origin is allowed if it matches either an item inallowOrigins or an item - * inallowOriginRegexes. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowOriginRegexes; - - /** - * Specifies the list of origins that is allowed to do CORS requests. - * - * An origin is allowed if it matches either an item inallowOrigins or an item - * inallowOriginRegexes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowOrigins; - - /** - * If true, disables the CORS policy. The default value is false, which indicates that the CORS - * policy is in effect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean disabled; - - /** - * Specifies the content for the Access-Control-Expose-Headers header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List exposeHeaders; - - /** - * Specifies how long results of a preflight request can be cached in seconds. This field - * translates to the Access-Control-Max-Age header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxAge; - - /** - * In response to a preflight request, setting this to true indicates that the actual request can - * include user credentials. This field translates to the Access-Control-Allow-Credentials header. - * - * Default is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllowCredentials() { - return allowCredentials; - } - - /** - * In response to a preflight request, setting this to true indicates that the actual request can - * include user credentials. This field translates to the Access-Control-Allow-Credentials header. - * - * Default is false. - * @param allowCredentials allowCredentials or {@code null} for none - */ - public CorsPolicy setAllowCredentials(java.lang.Boolean allowCredentials) { - this.allowCredentials = allowCredentials; - return this; - } - - /** - * Specifies the content for the Access-Control-Allow-Headers header. - * @return value or {@code null} for none - */ - public java.util.List getAllowHeaders() { - return allowHeaders; - } - - /** - * Specifies the content for the Access-Control-Allow-Headers header. - * @param allowHeaders allowHeaders or {@code null} for none - */ - public CorsPolicy setAllowHeaders(java.util.List allowHeaders) { - this.allowHeaders = allowHeaders; - return this; - } - - /** - * Specifies the content for the Access-Control-Allow-Methods header. - * @return value or {@code null} for none - */ - public java.util.List getAllowMethods() { - return allowMethods; - } - - /** - * Specifies the content for the Access-Control-Allow-Methods header. - * @param allowMethods allowMethods or {@code null} for none - */ - public CorsPolicy setAllowMethods(java.util.List allowMethods) { - this.allowMethods = allowMethods; - return this; - } - - /** - * Specifies a regular expression that matches allowed origins. For more information, see regular - * expression syntax. - * - * An origin is allowed if it matches either an item inallowOrigins or an item - * inallowOriginRegexes. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public java.util.List getAllowOriginRegexes() { - return allowOriginRegexes; - } - - /** - * Specifies a regular expression that matches allowed origins. For more information, see regular - * expression syntax. - * - * An origin is allowed if it matches either an item inallowOrigins or an item - * inallowOriginRegexes. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED. - * @param allowOriginRegexes allowOriginRegexes or {@code null} for none - */ - public CorsPolicy setAllowOriginRegexes(java.util.List allowOriginRegexes) { - this.allowOriginRegexes = allowOriginRegexes; - return this; - } - - /** - * Specifies the list of origins that is allowed to do CORS requests. - * - * An origin is allowed if it matches either an item inallowOrigins or an item - * inallowOriginRegexes. - * @return value or {@code null} for none - */ - public java.util.List getAllowOrigins() { - return allowOrigins; - } - - /** - * Specifies the list of origins that is allowed to do CORS requests. - * - * An origin is allowed if it matches either an item inallowOrigins or an item - * inallowOriginRegexes. - * @param allowOrigins allowOrigins or {@code null} for none - */ - public CorsPolicy setAllowOrigins(java.util.List allowOrigins) { - this.allowOrigins = allowOrigins; - return this; - } - - /** - * If true, disables the CORS policy. The default value is false, which indicates that the CORS - * policy is in effect. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDisabled() { - return disabled; - } - - /** - * If true, disables the CORS policy. The default value is false, which indicates that the CORS - * policy is in effect. - * @param disabled disabled or {@code null} for none - */ - public CorsPolicy setDisabled(java.lang.Boolean disabled) { - this.disabled = disabled; - return this; - } - - /** - * Specifies the content for the Access-Control-Expose-Headers header. - * @return value or {@code null} for none - */ - public java.util.List getExposeHeaders() { - return exposeHeaders; - } - - /** - * Specifies the content for the Access-Control-Expose-Headers header. - * @param exposeHeaders exposeHeaders or {@code null} for none - */ - public CorsPolicy setExposeHeaders(java.util.List exposeHeaders) { - this.exposeHeaders = exposeHeaders; - return this; - } - - /** - * Specifies how long results of a preflight request can be cached in seconds. This field - * translates to the Access-Control-Max-Age header. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxAge() { - return maxAge; - } - - /** - * Specifies how long results of a preflight request can be cached in seconds. This field - * translates to the Access-Control-Max-Age header. - * @param maxAge maxAge or {@code null} for none - */ - public CorsPolicy setMaxAge(java.lang.Integer maxAge) { - this.maxAge = maxAge; - return this; - } - - @Override - public CorsPolicy set(String fieldName, Object value) { - return (CorsPolicy) super.set(fieldName, value); - } - - @Override - public CorsPolicy clone() { - return (CorsPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetwork.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetwork.java deleted file mode 100644 index e49171798ae..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetwork.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * 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.preview.model; - -/** - * A resource that represents a cross-site network. - * - * You can use cross-site networks to connect your on-premises networks to each other through - * Interconnect connections. - * - *

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 CrossSiteNetwork extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of the cross-site network. - * 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 type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] 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] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of the cross-site network. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of the cross-site network. - * @param description description or {@code null} for none - */ - public CrossSiteNetwork setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public CrossSiteNetwork setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. - * @param kind kind or {@code null} for none - */ - public CrossSiteNetwork setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 CrossSiteNetwork 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 CrossSiteNetwork setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public CrossSiteNetwork set(String fieldName, Object value) { - return (CrossSiteNetwork) super.set(fieldName, value); - } - - @Override - public CrossSiteNetwork clone() { - return (CrossSiteNetwork) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetworkList.java deleted file mode 100644 index cc19ced9e33..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CrossSiteNetworkList.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to the list request that contains a list of cross-site networks. - * - *

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 CrossSiteNetworkList extends com.google.api.client.json.GenericJson { - - /** - * 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 CrossSiteNetwork 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 CrossSiteNetwork 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(CrossSiteNetwork.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public CrossSiteNetworkList 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 CrossSiteNetworkList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of CrossSiteNetwork resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of CrossSiteNetwork resources. - * @param items items or {@code null} for none - */ - public CrossSiteNetworkList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. - * @param kind kind or {@code null} for none - */ - public CrossSiteNetworkList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public CrossSiteNetworkList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public CrossSiteNetworkList 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 CrossSiteNetworkList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public CrossSiteNetworkList set(String fieldName, Object value) { - return (CrossSiteNetworkList) super.set(fieldName, value); - } - - @Override - public CrossSiteNetworkList clone() { - return (CrossSiteNetworkList) 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 CrossSiteNetworkListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicy.java deleted file mode 100644 index b5ee91521b0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicy.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies the custom error response policy that must be applied when the backend service or - * backend bucket responds with an error. - * - *

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 CustomErrorResponsePolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies rules for returning error responses. - * - * In a given policy, if you specify rules for both a range of error codes as well as rules for - * specific error codes then rules with specific error codes have a higher priority. For example, - * assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series - * error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. - * However if the backend service returns a 403, the rule for4xx takes effect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorResponseRules; - - /** - * The full or partial URL to the BackendBucket resource that contains the custom error content. - * Examples are: - - * https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket - * - compute/v1/projects/project/global/backendBuckets/myBackendBucket - - * global/backendBuckets/myBackendBucket - * - * If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, an - * errorService specified at a higher level in theUrlMap will be used. - * IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must - * specifyerrorService. - * - * If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, - * with the original response code (oroverrideResponseCode if configured). - * - * errorService is not supported for internal or regionalHTTP/HTTPS load balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String errorService; - - /** - * Specifies rules for returning error responses. - * - * In a given policy, if you specify rules for both a range of error codes as well as rules for - * specific error codes then rules with specific error codes have a higher priority. For example, - * assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series - * error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. - * However if the backend service returns a 403, the rule for4xx takes effect. - * @return value or {@code null} for none - */ - public java.util.List getErrorResponseRules() { - return errorResponseRules; - } - - /** - * Specifies rules for returning error responses. - * - * In a given policy, if you specify rules for both a range of error codes as well as rules for - * specific error codes then rules with specific error codes have a higher priority. For example, - * assume that you configure a rule for 401 (Un-authorized) code, and another for all 4 series - * error codes (4XX). If the backend service returns a401, then the rule for 401 will be applied. - * However if the backend service returns a 403, the rule for4xx takes effect. - * @param errorResponseRules errorResponseRules or {@code null} for none - */ - public CustomErrorResponsePolicy setErrorResponseRules(java.util.List errorResponseRules) { - this.errorResponseRules = errorResponseRules; - return this; - } - - /** - * The full or partial URL to the BackendBucket resource that contains the custom error content. - * Examples are: - - * https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket - * - compute/v1/projects/project/global/backendBuckets/myBackendBucket - - * global/backendBuckets/myBackendBucket - * - * If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, an - * errorService specified at a higher level in theUrlMap will be used. - * IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must - * specifyerrorService. - * - * If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, - * with the original response code (oroverrideResponseCode if configured). - * - * errorService is not supported for internal or regionalHTTP/HTTPS load balancers. - * @return value or {@code null} for none - */ - public java.lang.String getErrorService() { - return errorService; - } - - /** - * The full or partial URL to the BackendBucket resource that contains the custom error content. - * Examples are: - - * https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket - * - compute/v1/projects/project/global/backendBuckets/myBackendBucket - - * global/backendBuckets/myBackendBucket - * - * If errorService is not specified at lower levels likepathMatcher, pathRule and routeRule, an - * errorService specified at a higher level in theUrlMap will be used. - * IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must - * specifyerrorService. - * - * If load balancer cannot reach the backendBucket, a simple Not Found Error will be returned, - * with the original response code (oroverrideResponseCode if configured). - * - * errorService is not supported for internal or regionalHTTP/HTTPS load balancers. - * @param errorService errorService or {@code null} for none - */ - public CustomErrorResponsePolicy setErrorService(java.lang.String errorService) { - this.errorService = errorService; - return this; - } - - @Override - public CustomErrorResponsePolicy set(String fieldName, Object value) { - return (CustomErrorResponsePolicy) super.set(fieldName, value); - } - - @Override - public CustomErrorResponsePolicy clone() { - return (CustomErrorResponsePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicyCustomErrorResponseRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicyCustomErrorResponseRule.java deleted file mode 100644 index f5d90c9fded..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomErrorResponsePolicyCustomErrorResponseRule.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies the mapping between the response code that will be returned along with the custom error - * content and the response code returned by the backend service. - * - *

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 CustomErrorResponsePolicyCustomErrorResponseRule extends com.google.api.client.json.GenericJson { - - /** - * Valid values include: - A number between 400 and 599: For example 401 or 503, - * in which case the load balancer applies the policy if the error code exactly matches this - * value. - 5xx: Load Balancer will apply the policy if the backend service responds - * with any response code in the range of 500 to 599. - 4xx: Load Balancer will - * apply the policy if the backend service responds with any response code in the range of - * 400 to 499. - * - * Values must be unique within matchResponseCodes and across allerrorResponseRules - * ofCustomErrorResponsePolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List matchResponseCodes; - - /** - * The HTTP status code returned with the response containing the custom error content. If - * overrideResponseCode is not supplied, the same response code returned by the original backend - * bucket or backend service is returned to the client. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer overrideResponseCode; - - /** - * The full path to a file within backendBucket . For example:/errors/defaultError.html - * - * path must start with a leading slash. path cannot have trailing slashes. - * - * If the file is not available in backendBucket or the load balancer cannot reach the - * BackendBucket, a simpleNot Found Error is returned to the client. - * - * The value must be from 1 to 1024 characters - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** - * Valid values include: - A number between 400 and 599: For example 401 or 503, - * in which case the load balancer applies the policy if the error code exactly matches this - * value. - 5xx: Load Balancer will apply the policy if the backend service responds - * with any response code in the range of 500 to 599. - 4xx: Load Balancer will - * apply the policy if the backend service responds with any response code in the range of - * 400 to 499. - * - * Values must be unique within matchResponseCodes and across allerrorResponseRules - * ofCustomErrorResponsePolicy. - * @return value or {@code null} for none - */ - public java.util.List getMatchResponseCodes() { - return matchResponseCodes; - } - - /** - * Valid values include: - A number between 400 and 599: For example 401 or 503, - * in which case the load balancer applies the policy if the error code exactly matches this - * value. - 5xx: Load Balancer will apply the policy if the backend service responds - * with any response code in the range of 500 to 599. - 4xx: Load Balancer will - * apply the policy if the backend service responds with any response code in the range of - * 400 to 499. - * - * Values must be unique within matchResponseCodes and across allerrorResponseRules - * ofCustomErrorResponsePolicy. - * @param matchResponseCodes matchResponseCodes or {@code null} for none - */ - public CustomErrorResponsePolicyCustomErrorResponseRule setMatchResponseCodes(java.util.List matchResponseCodes) { - this.matchResponseCodes = matchResponseCodes; - return this; - } - - /** - * The HTTP status code returned with the response containing the custom error content. If - * overrideResponseCode is not supplied, the same response code returned by the original backend - * bucket or backend service is returned to the client. - * @return value or {@code null} for none - */ - public java.lang.Integer getOverrideResponseCode() { - return overrideResponseCode; - } - - /** - * The HTTP status code returned with the response containing the custom error content. If - * overrideResponseCode is not supplied, the same response code returned by the original backend - * bucket or backend service is returned to the client. - * @param overrideResponseCode overrideResponseCode or {@code null} for none - */ - public CustomErrorResponsePolicyCustomErrorResponseRule setOverrideResponseCode(java.lang.Integer overrideResponseCode) { - this.overrideResponseCode = overrideResponseCode; - return this; - } - - /** - * The full path to a file within backendBucket . For example:/errors/defaultError.html - * - * path must start with a leading slash. path cannot have trailing slashes. - * - * If the file is not available in backendBucket or the load balancer cannot reach the - * BackendBucket, a simpleNot Found Error is returned to the client. - * - * The value must be from 1 to 1024 characters - * @return value or {@code null} for none - */ - public java.lang.String getPath() { - return path; - } - - /** - * The full path to a file within backendBucket . For example:/errors/defaultError.html - * - * path must start with a leading slash. path cannot have trailing slashes. - * - * If the file is not available in backendBucket or the load balancer cannot reach the - * BackendBucket, a simpleNot Found Error is returned to the client. - * - * The value must be from 1 to 1024 characters - * @param path path or {@code null} for none - */ - public CustomErrorResponsePolicyCustomErrorResponseRule setPath(java.lang.String path) { - this.path = path; - return this; - } - - @Override - public CustomErrorResponsePolicyCustomErrorResponseRule set(String fieldName, Object value) { - return (CustomErrorResponsePolicyCustomErrorResponseRule) super.set(fieldName, value); - } - - @Override - public CustomErrorResponsePolicyCustomErrorResponseRule clone() { - return (CustomErrorResponsePolicyCustomErrorResponseRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKey.java deleted file mode 100644 index 775f87a5719..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKey.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CustomerEncryptionKey. - * - *

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 CustomerEncryptionKey extends com.google.api.client.json.GenericJson { - - /** - * The name of the encryption key that is stored in Google Cloud KMS. For example: - * - * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key - * - * The fully-qualifed key name may be returned for resource GET requests. For example: - * - * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key - * /cryptoKeyVersions/1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kmsKeyName; - - /** - * The service account being used for the encryption request for the given KMS key. If absent, the - * Compute Engine default service account is used. For example: - * - * "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kmsKeyServiceAccount; - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- - * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. - * You can provide either the rawKey or thersaEncryptedKey. For example: - * - * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rawKey; - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 - * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt - * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: - * - * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH - * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD - * D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" - * - * The key must meet the following requirements before you can provide it to Compute Engine: - * 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After - * being wrapped, the key must be encoded in RFC 4648 base64 encoding. - * - * Gets the RSA public key certificate provided by Google at: - * - * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rsaEncryptedKey; - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 - * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sha256; - - /** - * The name of the encryption key that is stored in Google Cloud KMS. For example: - * - * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key - * - * The fully-qualifed key name may be returned for resource GET requests. For example: - * - * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key - * /cryptoKeyVersions/1 - * @return value or {@code null} for none - */ - public java.lang.String getKmsKeyName() { - return kmsKeyName; - } - - /** - * The name of the encryption key that is stored in Google Cloud KMS. For example: - * - * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key - * - * The fully-qualifed key name may be returned for resource GET requests. For example: - * - * "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key - * /cryptoKeyVersions/1 - * @param kmsKeyName kmsKeyName or {@code null} for none - */ - public CustomerEncryptionKey setKmsKeyName(java.lang.String kmsKeyName) { - this.kmsKeyName = kmsKeyName; - return this; - } - - /** - * The service account being used for the encryption request for the given KMS key. If absent, the - * Compute Engine default service account is used. For example: - * - * "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ - * @return value or {@code null} for none - */ - public java.lang.String getKmsKeyServiceAccount() { - return kmsKeyServiceAccount; - } - - /** - * The service account being used for the encryption request for the given KMS key. If absent, the - * Compute Engine default service account is used. For example: - * - * "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ - * @param kmsKeyServiceAccount kmsKeyServiceAccount or {@code null} for none - */ - public CustomerEncryptionKey setKmsKeyServiceAccount(java.lang.String kmsKeyServiceAccount) { - this.kmsKeyServiceAccount = kmsKeyServiceAccount; - return this; - } - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- - * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. - * You can provide either the rawKey or thersaEncryptedKey. For example: - * - * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" - * @return value or {@code null} for none - */ - public java.lang.String getRawKey() { - return rawKey; - } - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- - * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. - * You can provide either the rawKey or thersaEncryptedKey. For example: - * - * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" - * @param rawKey rawKey or {@code null} for none - */ - public CustomerEncryptionKey setRawKey(java.lang.String rawKey) { - this.rawKey = rawKey; - return this; - } - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 - * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt - * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: - * - * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH - * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD - * D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" - * - * The key must meet the following requirements before you can provide it to Compute Engine: - * 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After - * being wrapped, the key must be encoded in RFC 4648 base64 encoding. - * - * Gets the RSA public key certificate provided by Google at: - * - * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem - * @return value or {@code null} for none - */ - public java.lang.String getRsaEncryptedKey() { - return rsaEncryptedKey; - } - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 - * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt - * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: - * - * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH - * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD - * D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" - * - * The key must meet the following requirements before you can provide it to Compute Engine: - * 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After - * being wrapped, the key must be encoded in RFC 4648 base64 encoding. - * - * Gets the RSA public key certificate provided by Google at: - * - * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem - * @param rsaEncryptedKey rsaEncryptedKey or {@code null} for none - */ - public CustomerEncryptionKey setRsaEncryptedKey(java.lang.String rsaEncryptedKey) { - this.rsaEncryptedKey = rsaEncryptedKey; - return this; - } - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 - * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSha256() { - return sha256; - } - - /** - * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 - * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. - * @param sha256 sha256 or {@code null} for none - */ - public CustomerEncryptionKey setSha256(java.lang.String sha256) { - this.sha256 = sha256; - return this; - } - - @Override - public CustomerEncryptionKey set(String fieldName, Object value) { - return (CustomerEncryptionKey) super.set(fieldName, value); - } - - @Override - public CustomerEncryptionKey clone() { - return (CustomerEncryptionKey) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKeyProtectedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKeyProtectedDisk.java deleted file mode 100644 index 40f1c3263c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/CustomerEncryptionKeyProtectedDisk.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for CustomerEncryptionKeyProtectedDisk. - * - *

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 CustomerEncryptionKeyProtectedDisk extends com.google.api.client.json.GenericJson { - - /** - * Decrypts data associated with the disk with acustomer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey diskEncryptionKey; - - /** - * Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is - * only applicable for persistent disks. For example: - * - * "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * Decrypts data associated with the disk with acustomer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getDiskEncryptionKey() { - return diskEncryptionKey; - } - - /** - * Decrypts data associated with the disk with acustomer-supplied encryption key. - * @param diskEncryptionKey diskEncryptionKey or {@code null} for none - */ - public CustomerEncryptionKeyProtectedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { - this.diskEncryptionKey = diskEncryptionKey; - return this; - } - - /** - * Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is - * only applicable for persistent disks. For example: - * - * "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is - * only applicable for persistent disks. For example: - * - * "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name - * @param source source or {@code null} for none - */ - public CustomerEncryptionKeyProtectedDisk setSource(java.lang.String source) { - this.source = source; - return this; - } - - @Override - public CustomerEncryptionKeyProtectedDisk set(String fieldName, Object value) { - return (CustomerEncryptionKeyProtectedDisk) super.set(fieldName, value); - } - - @Override - public CustomerEncryptionKeyProtectedDisk clone() { - return (CustomerEncryptionKeyProtectedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Date.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Date.java deleted file mode 100644 index 894534c7c8a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Date.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone - * are either specified elsewhere or are insignificant. The date is relative to the Gregorian - * Calendar. This can represent one of the following: - * - * * A full date, with non-zero year, month, and day values. * A month and day, with a zero year - * (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year - * and month, with a zero day (for example, a credit card expiration date). - * - * Related types: - * - * * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp - * - *

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 Date extends com.google.api.client.json.GenericJson { - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year - * by itself or a year and month where the day isn't significant. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer day; - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer month; - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer year; - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year - * by itself or a year and month where the day isn't significant. - * @return value or {@code null} for none - */ - public java.lang.Integer getDay() { - return day; - } - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year - * by itself or a year and month where the day isn't significant. - * @param day day or {@code null} for none - */ - public Date setDay(java.lang.Integer day) { - this.day = day; - return this; - } - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. - * @return value or {@code null} for none - */ - public java.lang.Integer getMonth() { - return month; - } - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. - * @param month month or {@code null} for none - */ - public Date setMonth(java.lang.Integer month) { - this.month = month; - return this; - } - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. - * @return value or {@code null} for none - */ - public java.lang.Integer getYear() { - return year; - } - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. - * @param year year or {@code null} for none - */ - public Date setYear(java.lang.Integer year) { - this.year = year; - return this; - } - - @Override - public Date set(String fieldName, Object value) { - return (Date) super.set(fieldName, value); - } - - @Override - public Date clone() { - return (Date) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DateTime.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DateTime.java deleted file mode 100644 index 61390e9fd6a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DateTime.java +++ /dev/null @@ -1,290 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents civil time (or occasionally physical time). - * - * This type can represent a civil time in one of a few possible ways: - * - * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a - * particular offset from UTC. When time_zone is set and utc_offset is unset: a civil time on a - * calendar day in a particular time zone. When neither time_zone nor utc_offset is set: a civil - * time on a calendar day in local time. - * - * The date is relative to the Proleptic Gregorian Calendar. - * - * If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or - * day respectively. - * - * This type may also be used to represent a physical time if all the date and time fields are set - * and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for - * physical time instead. If your use case also would like to store the user's timezone, that can be - * done in another field. - * - * This type is more flexible than some applications may want. Make sure to document and validate - * your application's limitations. - * - *

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 DateTime extends com.google.api.client.json.GenericJson { - - /** - * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - * specifying a datetime without a day. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer day; - - /** - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An - * API may choose to allow the value "24:00:00" for scenarios like business closing time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer hours; - - /** - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minutes; - - /** - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer month; - - /** - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer nanos; - - /** - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API - * may allow the value 60 if it allows leap-seconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer seconds; - - /** - * Time zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private TimeZone timeZone; - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset - * of -4:00 would be represented as { seconds: -14400 }. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String utcOffset; - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer year; - - /** - * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - * specifying a datetime without a day. - * @return value or {@code null} for none - */ - public java.lang.Integer getDay() { - return day; - } - - /** - * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - * specifying a datetime without a day. - * @param day day or {@code null} for none - */ - public DateTime setDay(java.lang.Integer day) { - this.day = day; - return this; - } - - /** - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An - * API may choose to allow the value "24:00:00" for scenarios like business closing time. - * @return value or {@code null} for none - */ - public java.lang.Integer getHours() { - return hours; - } - - /** - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An - * API may choose to allow the value "24:00:00" for scenarios like business closing time. - * @param hours hours or {@code null} for none - */ - public DateTime setHours(java.lang.Integer hours) { - this.hours = hours; - return this; - } - - /** - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinutes() { - return minutes; - } - - /** - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * @param minutes minutes or {@code null} for none - */ - public DateTime setMinutes(java.lang.Integer minutes) { - this.minutes = minutes; - return this; - } - - /** - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. - * @return value or {@code null} for none - */ - public java.lang.Integer getMonth() { - return month; - } - - /** - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. - * @param month month or {@code null} for none - */ - public DateTime setMonth(java.lang.Integer month) { - this.month = month; - return this; - } - - /** - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. - * @return value or {@code null} for none - */ - public java.lang.Integer getNanos() { - return nanos; - } - - /** - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. - * @param nanos nanos or {@code null} for none - */ - public DateTime setNanos(java.lang.Integer nanos) { - this.nanos = nanos; - return this; - } - - /** - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API - * may allow the value 60 if it allows leap-seconds. - * @return value or {@code null} for none - */ - public java.lang.Integer getSeconds() { - return seconds; - } - - /** - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API - * may allow the value 60 if it allows leap-seconds. - * @param seconds seconds or {@code null} for none - */ - public DateTime setSeconds(java.lang.Integer seconds) { - this.seconds = seconds; - return this; - } - - /** - * Time zone. - * @return value or {@code null} for none - */ - public TimeZone getTimeZone() { - return timeZone; - } - - /** - * Time zone. - * @param timeZone timeZone or {@code null} for none - */ - public DateTime setTimeZone(TimeZone timeZone) { - this.timeZone = timeZone; - return this; - } - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset - * of -4:00 would be represented as { seconds: -14400 }. - * @return value or {@code null} for none - */ - public String getUtcOffset() { - return utcOffset; - } - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset - * of -4:00 would be represented as { seconds: -14400 }. - * @param utcOffset utcOffset or {@code null} for none - */ - public DateTime setUtcOffset(String utcOffset) { - this.utcOffset = utcOffset; - return this; - } - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. - * @return value or {@code null} for none - */ - public java.lang.Integer getYear() { - return year; - } - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. - * @param year year or {@code null} for none - */ - public DateTime setYear(java.lang.Integer year) { - this.year = year; - return this; - } - - @Override - public DateTime set(String fieldName, Object value) { - return (DateTime) super.set(fieldName, value); - } - - @Override - public DateTime clone() { - return (DateTime) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DeprecationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DeprecationStatus.java deleted file mode 100644 index 7122527c5a3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DeprecationStatus.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * 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.preview.model; - -/** - * Deprecation status for a public 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 DeprecationStatus extends com.google.api.client.json.GenericJson { - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to DELETED. This is only informational and the status will not change unless the client - * explicitly changes it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deleted; - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to DEPRECATED. This is only informational and the status will not change unless the - * client explicitly changes it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deprecated; - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to OBSOLETE. This is only informational and the status will not change unless the client - * explicitly changes it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String obsolete; - - /** - * The URL of the suggested replacement for a deprecated resource. The suggested replacement - * resource must be the same kind of resource as the deprecated resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String replacement; - - /** - * The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. - * Operations which communicate the end of life date for an image, can useACTIVE. Operations which - * create a new resource using aDEPRECATED resource will return successfully, but with a warning - * indicating the deprecated resource and recommending its replacement. Operations which use - * OBSOLETE orDELETED resources will be rejected and result in an error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to DELETED. This is only informational and the status will not change unless the client - * explicitly changes it. - * @return value or {@code null} for none - */ - public java.lang.String getDeleted() { - return deleted; - } - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to DELETED. This is only informational and the status will not change unless the client - * explicitly changes it. - * @param deleted deleted or {@code null} for none - */ - public DeprecationStatus setDeleted(java.lang.String deleted) { - this.deleted = deleted; - return this; - } - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to DEPRECATED. This is only informational and the status will not change unless the - * client explicitly changes it. - * @return value or {@code null} for none - */ - public java.lang.String getDeprecated() { - return deprecated; - } - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to DEPRECATED. This is only informational and the status will not change unless the - * client explicitly changes it. - * @param deprecated deprecated or {@code null} for none - */ - public DeprecationStatus setDeprecated(java.lang.String deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to OBSOLETE. This is only informational and the status will not change unless the client - * explicitly changes it. - * @return value or {@code null} for none - */ - public java.lang.String getObsolete() { - return obsolete; - } - - /** - * An optional RFC3339 timestamp on or after which the state of this resource is intended to - * change to OBSOLETE. This is only informational and the status will not change unless the client - * explicitly changes it. - * @param obsolete obsolete or {@code null} for none - */ - public DeprecationStatus setObsolete(java.lang.String obsolete) { - this.obsolete = obsolete; - return this; - } - - /** - * The URL of the suggested replacement for a deprecated resource. The suggested replacement - * resource must be the same kind of resource as the deprecated resource. - * @return value or {@code null} for none - */ - public java.lang.String getReplacement() { - return replacement; - } - - /** - * The URL of the suggested replacement for a deprecated resource. The suggested replacement - * resource must be the same kind of resource as the deprecated resource. - * @param replacement replacement or {@code null} for none - */ - public DeprecationStatus setReplacement(java.lang.String replacement) { - this.replacement = replacement; - return this; - } - - /** - * The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. - * Operations which communicate the end of life date for an image, can useACTIVE. Operations which - * create a new resource using aDEPRECATED resource will return successfully, but with a warning - * indicating the deprecated resource and recommending its replacement. Operations which use - * OBSOLETE orDELETED resources will be rejected and result in an error. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. - * Operations which communicate the end of life date for an image, can useACTIVE. Operations which - * create a new resource using aDEPRECATED resource will return successfully, but with a warning - * indicating the deprecated resource and recommending its replacement. Operations which use - * OBSOLETE orDELETED resources will be rejected and result in an error. - * @param state state or {@code null} for none - */ - public DeprecationStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public DeprecationStatus set(String fieldName, Object value) { - return (DeprecationStatus) super.set(fieldName, value); - } - - @Override - public DeprecationStatus clone() { - return (DeprecationStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Disk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Disk.java deleted file mode 100644 index e100959263a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Disk.java +++ /dev/null @@ -1,1645 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Persistent Disk resource. - * - * Google Compute Engine has two Disk resources: - * - * * [Zonal](/compute/docs/reference/rest/v1/disks) * - * [Regional](/compute/docs/reference/rest/v1/regionDisks) - * - * Persistent disks are required for running your VM instances. Create both boot and non-boot (data) - * persistent disks. For more information, read Persistent Disks. For more storage options, read - * Storage options. - * - * The disks resource represents a zonal persistent disk. For more information, readZonal persistent - * disks. - * - * The regionDisks resource represents a regional persistent disk. For more information, read - * Regional resources. - * - *

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 Disk extends com.google.api.client.json.GenericJson { - - /** - * The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means - * the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The - * AccessMode means the disk can be attached to multiple instances in RW mode. - - * READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO - * mode. - * - * The AccessMode is only valid for Hyperdisk disk types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String accessMode; - - /** - * The architecture of the disk. Valid values are ARM64 or X86_64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * Disk asynchronously replicated into this disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DiskAsyncReplication asyncPrimaryDisk; - - /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map asyncSecondaryDisks; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption - * key. - * - * Encryption keys do not protect access to metadata of the disk. - * - * After you encrypt a disk with a customer-supplied key, you must provide the same key if you use - * the disk later. For example, to create a disk snapshot, to create a disk image, to create a - * machine image, or to attach the disk to a virtual machine. - * - * After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to - * a key *version* name once the disk is created. The disk is encrypted with this version of the - * key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: - * - * "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ - * key_region/cryptoKeys/key /cryptoKeysVersions/version - * - * If you do not provide an encryption key when creating the disk, then the disk is encrypted - * using an automatically generated key and you don't need to provide a key to use the disk - * later. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey diskEncryptionKey; - - /** - * Whether this disk is using confidential compute mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableConfidentialCompute; - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List guestOsFeatures; - - /** - * 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] Type of the resource. Always compute#disk for disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this disk, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this disk. These can be later modified by the setLabels method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastAttachTimestamp; - - /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastDetachTimestamp; - - /** - * Integer license codes indicating which licenses are attached to this disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.util.List licenseCodes; - - /** - * A list of publicly visible licenses. Reserved for Google's use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenses; - - /** - * An opaque location hint used to place the disk close to other resources. This field is for use - * by internal tools that use the public API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationHint; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Internal use only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String options; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DiskParams params; - - /** - * Physical block size of the persistent disk, in bytes. If not present in a request, a default - * value is used. The currently supported size is 4096, other sizes may be added in the future. If - * an unsupported value is requested, the error message will list the supported values for the - * caller's project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long physicalBlockSizeBytes; - - /** - * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per - * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - * see theExtreme persistent disk documentation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedIops; - - /** - * Indicates how much throughput to provision for the disk. This sets the number of throughput mb - * per second that the disk can handle. Values must be greater than or equal to 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedThroughput; - - /** - * Output only. [Output Only] URL of the region where the disk resides. Only applicable for - * regional resources. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * URLs of the zones where the disk should be replicated to. Only applicable for regional - * resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List replicaZones; - - /** - * Resource policies applied to this disk for automatic snapshot creations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Output only. [Output Only] Status information for the disk resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DiskResourceStatus resourceStatus; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk - * using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an - * empty persistent disk. - * - * If you specify this field along with a source, the value ofsizeGb must not be less than the - * size of the source. Acceptable values are greater than 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long sizeGb; - - /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroupPolicy; - - /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroupPolicyId; - - /** - * The source disk used to create this disk. You can provide this as a partial or full URL to the - * resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDisk; - - /** - * Output only. [Output Only] The unique ID of the disk used to create this disk. This value - * identifies the exact disk that was used to create this persistent disk. For example, if you - * created the persistent disk from a disk that was later deleted and recreated under the same - * name, the source disk ID would identify the exact version of the disk that was used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDiskId; - - /** - * The source image used to create this disk. If the source image is deleted, this field will not - * be set. - * - * To create a disk with one of the public operating system images, specify the image by its - * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: - * - * projects/debian-cloud/global/images/family/debian-9 - * - * Alternatively, use a specific version of a public operating system image: - * - * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - * - * To create a disk with a custom image that you created, specify the image name in the following - * format: - * - * global/images/my-custom-image - * - * You can also specify a custom image by its image family, which returns the latest version of - * the image in that family. Replace the image name with family/family-name: - * - * global/images/family/my-image-family - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceImage; - - /** - * Thecustomer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceImageEncryptionKey; - - /** - * Output only. [Output Only] The ID value of the image used to create this disk. This value - * identifies the exact image that was used to create this persistent disk. For example, if you - * created the persistent disk from an image that was later deleted and recreated under the same - * name, the source image ID would identify the exact version of the image that was used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceImageId; - - /** - * The source instant snapshot used to create this disk. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - https://www.go - * ogleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - - * projects/project/zones/zone/instantSnapshots/instantSnapshot - - * zones/zone/instantSnapshots/instantSnapshot - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshot; - - /** - * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This - * value identifies the exact instant snapshot that was used to create this persistent disk. For - * example, if you created the persistent disk from an instant snapshot that was later deleted and - * recreated under the same name, the source instant snapshot ID would identify the exact version - * of the instant snapshot that was used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshotId; - - /** - * The source snapshot used to create this disk. You can provide this as a partial or full URL to - * the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot - - * projects/project/global/snapshots/snapshot - global/snapshots/snapshot - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshot; - - /** - * Thecustomer-supplied encryption key of the source snapshot. Required if the source snapshot is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceSnapshotEncryptionKey; - - /** - * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value - * identifies the exact snapshot that was used to create this persistent disk. For example, if you - * created the persistent disk from a snapshot that was later deleted and recreated under the same - * name, the source snapshot ID would identify the exact version of the snapshot that was used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshotId; - - /** - * The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip- - * compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. - * Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized - * for creating multiple disks from a source storage object. To create many disks from a source - * storage object, use gcloud compute images import instead. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceStorageObject; - - /** - * Output only. [Output Only] The status of disk creation. - CREATING: Disk is - * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: - * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The storage pool in which the new disk is created. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool - * - projects/project/zones/zone/storagePools/storagePool - - * zones/zone/storagePools/storagePool - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storagePool; - - /** - * URL of the disk type resource describing which disk type to use to create the disk. Provide - * this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See - * Persistent disk types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in - * form:projects/project/zones/zone/instances/instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List users; - - /** - * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means - * the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The - * AccessMode means the disk can be attached to multiple instances in RW mode. - - * READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO - * mode. - * - * The AccessMode is only valid for Hyperdisk disk types. - * @return value or {@code null} for none - */ - public java.lang.String getAccessMode() { - return accessMode; - } - - /** - * The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means - * the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The - * AccessMode means the disk can be attached to multiple instances in RW mode. - - * READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO - * mode. - * - * The AccessMode is only valid for Hyperdisk disk types. - * @param accessMode accessMode or {@code null} for none - */ - public Disk setAccessMode(java.lang.String accessMode) { - this.accessMode = accessMode; - return this; - } - - /** - * The architecture of the disk. Valid values are ARM64 or X86_64. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * The architecture of the disk. Valid values are ARM64 or X86_64. - * @param architecture architecture or {@code null} for none - */ - public Disk setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * Disk asynchronously replicated into this disk. - * @return value or {@code null} for none - */ - public DiskAsyncReplication getAsyncPrimaryDisk() { - return asyncPrimaryDisk; - } - - /** - * Disk asynchronously replicated into this disk. - * @param asyncPrimaryDisk asyncPrimaryDisk or {@code null} for none - */ - public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { - this.asyncPrimaryDisk = asyncPrimaryDisk; - return this; - } - - /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. - * @return value or {@code null} for none - */ - public java.util.Map getAsyncSecondaryDisks() { - return asyncSecondaryDisks; - } - - /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. - * @param asyncSecondaryDisks asyncSecondaryDisks or {@code null} for none - */ - public Disk setAsyncSecondaryDisks(java.util.Map asyncSecondaryDisks) { - this.asyncSecondaryDisks = asyncSecondaryDisks; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Disk setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Disk setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption - * key. - * - * Encryption keys do not protect access to metadata of the disk. - * - * After you encrypt a disk with a customer-supplied key, you must provide the same key if you use - * the disk later. For example, to create a disk snapshot, to create a disk image, to create a - * machine image, or to attach the disk to a virtual machine. - * - * After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to - * a key *version* name once the disk is created. The disk is encrypted with this version of the - * key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: - * - * "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ - * key_region/cryptoKeys/key /cryptoKeysVersions/version - * - * If you do not provide an encryption key when creating the disk, then the disk is encrypted - * using an automatically generated key and you don't need to provide a key to use the disk - * later. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getDiskEncryptionKey() { - return diskEncryptionKey; - } - - /** - * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption - * key. - * - * Encryption keys do not protect access to metadata of the disk. - * - * After you encrypt a disk with a customer-supplied key, you must provide the same key if you use - * the disk later. For example, to create a disk snapshot, to create a disk image, to create a - * machine image, or to attach the disk to a virtual machine. - * - * After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to - * a key *version* name once the disk is created. The disk is encrypted with this version of the - * key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: - * - * "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ - * key_region/cryptoKeys/key /cryptoKeysVersions/version - * - * If you do not provide an encryption key when creating the disk, then the disk is encrypted - * using an automatically generated key and you don't need to provide a key to use the disk - * later. - * @param diskEncryptionKey diskEncryptionKey or {@code null} for none - */ - public Disk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { - this.diskEncryptionKey = diskEncryptionKey; - return this; - } - - /** - * Whether this disk is using confidential compute mode. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableConfidentialCompute() { - return enableConfidentialCompute; - } - - /** - * Whether this disk is using confidential compute mode. - * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none - */ - public Disk setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { - this.enableConfidentialCompute = enableConfidentialCompute; - return this; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * @return value or {@code null} for none - */ - public java.util.List getGuestOsFeatures() { - return guestOsFeatures; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * @param guestOsFeatures guestOsFeatures or {@code null} for none - */ - public Disk setGuestOsFeatures(java.util.List guestOsFeatures) { - this.guestOsFeatures = guestOsFeatures; - 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 Disk setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. - * @param kind kind or {@code null} for none - */ - public Disk setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this disk, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a disk. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this disk, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a disk. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this disk, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a disk. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public Disk setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this disk, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a disk. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Disk encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this disk. These can be later modified by the setLabels method. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this disk. These can be later modified by the setLabels method. - * @param labels labels or {@code null} for none - */ - public Disk setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastAttachTimestamp() { - return lastAttachTimestamp; - } - - /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. - * @param lastAttachTimestamp lastAttachTimestamp or {@code null} for none - */ - public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { - this.lastAttachTimestamp = lastAttachTimestamp; - return this; - } - - /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastDetachTimestamp() { - return lastDetachTimestamp; - } - - /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. - * @param lastDetachTimestamp lastDetachTimestamp or {@code null} for none - */ - public Disk setLastDetachTimestamp(java.lang.String lastDetachTimestamp) { - this.lastDetachTimestamp = lastDetachTimestamp; - return this; - } - - /** - * Integer license codes indicating which licenses are attached to this disk. - * @return value or {@code null} for none - */ - public java.util.List getLicenseCodes() { - return licenseCodes; - } - - /** - * Integer license codes indicating which licenses are attached to this disk. - * @param licenseCodes licenseCodes or {@code null} for none - */ - public Disk setLicenseCodes(java.util.List licenseCodes) { - this.licenseCodes = licenseCodes; - return this; - } - - /** - * A list of publicly visible licenses. Reserved for Google's use. - * @return value or {@code null} for none - */ - public java.util.List getLicenses() { - return licenses; - } - - /** - * A list of publicly visible licenses. Reserved for Google's use. - * @param licenses licenses or {@code null} for none - */ - public Disk setLicenses(java.util.List licenses) { - this.licenses = licenses; - return this; - } - - /** - * An opaque location hint used to place the disk close to other resources. This field is for use - * by internal tools that use the public API. - * @return value or {@code null} for none - */ - public java.lang.String getLocationHint() { - return locationHint; - } - - /** - * An opaque location hint used to place the disk close to other resources. This field is for use - * by internal tools that use the public API. - * @param locationHint locationHint or {@code null} for none - */ - public Disk setLocationHint(java.lang.String locationHint) { - this.locationHint = locationHint; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 Disk setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Internal use only. - * @return value or {@code null} for none - */ - public java.lang.String getOptions() { - return options; - } - - /** - * Internal use only. - * @param options options or {@code null} for none - */ - public Disk setOptions(java.lang.String options) { - this.options = options; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public DiskParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Disk setParams(DiskParams params) { - this.params = params; - return this; - } - - /** - * Physical block size of the persistent disk, in bytes. If not present in a request, a default - * value is used. The currently supported size is 4096, other sizes may be added in the future. If - * an unsupported value is requested, the error message will list the supported values for the - * caller's project. - * @return value or {@code null} for none - */ - public java.lang.Long getPhysicalBlockSizeBytes() { - return physicalBlockSizeBytes; - } - - /** - * Physical block size of the persistent disk, in bytes. If not present in a request, a default - * value is used. The currently supported size is 4096, other sizes may be added in the future. If - * an unsupported value is requested, the error message will list the supported values for the - * caller's project. - * @param physicalBlockSizeBytes physicalBlockSizeBytes or {@code null} for none - */ - public Disk setPhysicalBlockSizeBytes(java.lang.Long physicalBlockSizeBytes) { - this.physicalBlockSizeBytes = physicalBlockSizeBytes; - return this; - } - - /** - * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per - * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - * see theExtreme persistent disk documentation. - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedIops() { - return provisionedIops; - } - - /** - * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per - * second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - * see theExtreme persistent disk documentation. - * @param provisionedIops provisionedIops or {@code null} for none - */ - public Disk setProvisionedIops(java.lang.Long provisionedIops) { - this.provisionedIops = provisionedIops; - return this; - } - - /** - * Indicates how much throughput to provision for the disk. This sets the number of throughput mb - * per second that the disk can handle. Values must be greater than or equal to 1. - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedThroughput() { - return provisionedThroughput; - } - - /** - * Indicates how much throughput to provision for the disk. This sets the number of throughput mb - * per second that the disk can handle. Values must be greater than or equal to 1. - * @param provisionedThroughput provisionedThroughput or {@code null} for none - */ - public Disk setProvisionedThroughput(java.lang.Long provisionedThroughput) { - this.provisionedThroughput = provisionedThroughput; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the disk resides. Only applicable for - * regional resources. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the disk resides. Only applicable for - * regional resources. You must specify this field as part of the HTTP request URL. It is not - * settable as a field in the request body. - * @param region region or {@code null} for none - */ - public Disk setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * URLs of the zones where the disk should be replicated to. Only applicable for regional - * resources. - * @return value or {@code null} for none - */ - public java.util.List getReplicaZones() { - return replicaZones; - } - - /** - * URLs of the zones where the disk should be replicated to. Only applicable for regional - * resources. - * @param replicaZones replicaZones or {@code null} for none - */ - public Disk setReplicaZones(java.util.List replicaZones) { - this.replicaZones = replicaZones; - return this; - } - - /** - * Resource policies applied to this disk for automatic snapshot creations. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies applied to this disk for automatic snapshot creations. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public Disk setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Output only. [Output Only] Status information for the disk resource. - * @return value or {@code null} for none - */ - public DiskResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] Status information for the disk resource. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public Disk setResourceStatus(DiskResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public Disk setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk - * using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an - * empty persistent disk. - * - * If you specify this field along with a source, the value ofsizeGb must not be less than the - * size of the source. Acceptable values are greater than 0. - * @return value or {@code null} for none - */ - public java.lang.Long getSizeGb() { - return sizeGb; - } - - /** - * Size, in GB, of the persistent disk. You can specify this field when creating a persistent disk - * using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an - * empty persistent disk. - * - * If you specify this field along with a source, the value ofsizeGb must not be less than the - * size of the source. Acceptable values are greater than 0. - * @param sizeGb sizeGb or {@code null} for none - */ - public Disk setSizeGb(java.lang.Long sizeGb) { - this.sizeGb = sizeGb; - return this; - } - - /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. - * @return value or {@code null} for none - */ - public java.lang.String getSourceConsistencyGroupPolicy() { - return sourceConsistencyGroupPolicy; - } - - /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. - * @param sourceConsistencyGroupPolicy sourceConsistencyGroupPolicy or {@code null} for none - */ - public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGroupPolicy) { - this.sourceConsistencyGroupPolicy = sourceConsistencyGroupPolicy; - return this; - } - - /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. - * @return value or {@code null} for none - */ - public java.lang.String getSourceConsistencyGroupPolicyId() { - return sourceConsistencyGroupPolicyId; - } - - /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. - * @param sourceConsistencyGroupPolicyId sourceConsistencyGroupPolicyId or {@code null} for none - */ - public Disk setSourceConsistencyGroupPolicyId(java.lang.String sourceConsistencyGroupPolicyId) { - this.sourceConsistencyGroupPolicyId = sourceConsistencyGroupPolicyId; - return this; - } - - /** - * The source disk used to create this disk. You can provide this as a partial or full URL to the - * resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getSourceDisk() { - return sourceDisk; - } - - /** - * The source disk used to create this disk. You can provide this as a partial or full URL to the - * resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @param sourceDisk sourceDisk or {@code null} for none - */ - public Disk setSourceDisk(java.lang.String sourceDisk) { - this.sourceDisk = sourceDisk; - return this; - } - - /** - * Output only. [Output Only] The unique ID of the disk used to create this disk. This value - * identifies the exact disk that was used to create this persistent disk. For example, if you - * created the persistent disk from a disk that was later deleted and recreated under the same - * name, the source disk ID would identify the exact version of the disk that was used. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDiskId() { - return sourceDiskId; - } - - /** - * Output only. [Output Only] The unique ID of the disk used to create this disk. This value - * identifies the exact disk that was used to create this persistent disk. For example, if you - * created the persistent disk from a disk that was later deleted and recreated under the same - * name, the source disk ID would identify the exact version of the disk that was used. - * @param sourceDiskId sourceDiskId or {@code null} for none - */ - public Disk setSourceDiskId(java.lang.String sourceDiskId) { - this.sourceDiskId = sourceDiskId; - return this; - } - - /** - * The source image used to create this disk. If the source image is deleted, this field will not - * be set. - * - * To create a disk with one of the public operating system images, specify the image by its - * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: - * - * projects/debian-cloud/global/images/family/debian-9 - * - * Alternatively, use a specific version of a public operating system image: - * - * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - * - * To create a disk with a custom image that you created, specify the image name in the following - * format: - * - * global/images/my-custom-image - * - * You can also specify a custom image by its image family, which returns the latest version of - * the image in that family. Replace the image name with family/family-name: - * - * global/images/family/my-image-family - * @return value or {@code null} for none - */ - public java.lang.String getSourceImage() { - return sourceImage; - } - - /** - * The source image used to create this disk. If the source image is deleted, this field will not - * be set. - * - * To create a disk with one of the public operating system images, specify the image by its - * family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image: - * - * projects/debian-cloud/global/images/family/debian-9 - * - * Alternatively, use a specific version of a public operating system image: - * - * projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - * - * To create a disk with a custom image that you created, specify the image name in the following - * format: - * - * global/images/my-custom-image - * - * You can also specify a custom image by its image family, which returns the latest version of - * the image in that family. Replace the image name with family/family-name: - * - * global/images/family/my-image-family - * @param sourceImage sourceImage or {@code null} for none - */ - public Disk setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; - return this; - } - - /** - * Thecustomer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceImageEncryptionKey() { - return sourceImageEncryptionKey; - } - - /** - * Thecustomer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * @param sourceImageEncryptionKey sourceImageEncryptionKey or {@code null} for none - */ - public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey) { - this.sourceImageEncryptionKey = sourceImageEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The ID value of the image used to create this disk. This value - * identifies the exact image that was used to create this persistent disk. For example, if you - * created the persistent disk from an image that was later deleted and recreated under the same - * name, the source image ID would identify the exact version of the image that was used. - * @return value or {@code null} for none - */ - public java.lang.String getSourceImageId() { - return sourceImageId; - } - - /** - * Output only. [Output Only] The ID value of the image used to create this disk. This value - * identifies the exact image that was used to create this persistent disk. For example, if you - * created the persistent disk from an image that was later deleted and recreated under the same - * name, the source image ID would identify the exact version of the image that was used. - * @param sourceImageId sourceImageId or {@code null} for none - */ - public Disk setSourceImageId(java.lang.String sourceImageId) { - this.sourceImageId = sourceImageId; - return this; - } - - /** - * The source instant snapshot used to create this disk. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - https://www.go - * ogleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - - * projects/project/zones/zone/instantSnapshots/instantSnapshot - - * zones/zone/instantSnapshots/instantSnapshot - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshot() { - return sourceInstantSnapshot; - } - - /** - * The source instant snapshot used to create this disk. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - https://www.go - * ogleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - - * projects/project/zones/zone/instantSnapshots/instantSnapshot - - * zones/zone/instantSnapshots/instantSnapshot - * @param sourceInstantSnapshot sourceInstantSnapshot or {@code null} for none - */ - public Disk setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { - this.sourceInstantSnapshot = sourceInstantSnapshot; - return this; - } - - /** - * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This - * value identifies the exact instant snapshot that was used to create this persistent disk. For - * example, if you created the persistent disk from an instant snapshot that was later deleted and - * recreated under the same name, the source instant snapshot ID would identify the exact version - * of the instant snapshot that was used. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshotId() { - return sourceInstantSnapshotId; - } - - /** - * Output only. [Output Only] The unique ID of the instant snapshot used to create this disk. This - * value identifies the exact instant snapshot that was used to create this persistent disk. For - * example, if you created the persistent disk from an instant snapshot that was later deleted and - * recreated under the same name, the source instant snapshot ID would identify the exact version - * of the instant snapshot that was used. - * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none - */ - public Disk setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { - this.sourceInstantSnapshotId = sourceInstantSnapshotId; - return this; - } - - /** - * The source snapshot used to create this disk. You can provide this as a partial or full URL to - * the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot - - * projects/project/global/snapshots/snapshot - global/snapshots/snapshot - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshot() { - return sourceSnapshot; - } - - /** - * The source snapshot used to create this disk. You can provide this as a partial or full URL to - * the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot - - * projects/project/global/snapshots/snapshot - global/snapshots/snapshot - * @param sourceSnapshot sourceSnapshot or {@code null} for none - */ - public Disk setSourceSnapshot(java.lang.String sourceSnapshot) { - this.sourceSnapshot = sourceSnapshot; - return this; - } - - /** - * Thecustomer-supplied encryption key of the source snapshot. Required if the source snapshot is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceSnapshotEncryptionKey() { - return sourceSnapshotEncryptionKey; - } - - /** - * Thecustomer-supplied encryption key of the source snapshot. Required if the source snapshot is - * protected by a customer-supplied encryption key. - * @param sourceSnapshotEncryptionKey sourceSnapshotEncryptionKey or {@code null} for none - */ - public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey) { - this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value - * identifies the exact snapshot that was used to create this persistent disk. For example, if you - * created the persistent disk from a snapshot that was later deleted and recreated under the same - * name, the source snapshot ID would identify the exact version of the snapshot that was used. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshotId() { - return sourceSnapshotId; - } - - /** - * Output only. [Output Only] The unique ID of the snapshot used to create this disk. This value - * identifies the exact snapshot that was used to create this persistent disk. For example, if you - * created the persistent disk from a snapshot that was later deleted and recreated under the same - * name, the source snapshot ID would identify the exact version of the snapshot that was used. - * @param sourceSnapshotId sourceSnapshotId or {@code null} for none - */ - public Disk setSourceSnapshotId(java.lang.String sourceSnapshotId) { - this.sourceSnapshotId = sourceSnapshotId; - return this; - } - - /** - * The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip- - * compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. - * Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized - * for creating multiple disks from a source storage object. To create many disks from a source - * storage object, use gcloud compute images import instead. - * @return value or {@code null} for none - */ - public java.lang.String getSourceStorageObject() { - return sourceStorageObject; - } - - /** - * The full Google Cloud Storage URI where the disk image is stored. This file must be a gzip- - * compressed tarball whose name ends in .tar.gz or virtual machine disk whose name ends in vmdk. - * Valid URIs may start with gs:// or https://storage.googleapis.com/. This flag is not optimized - * for creating multiple disks from a source storage object. To create many disks from a source - * storage object, use gcloud compute images import instead. - * @param sourceStorageObject sourceStorageObject or {@code null} for none - */ - public Disk setSourceStorageObject(java.lang.String sourceStorageObject) { - this.sourceStorageObject = sourceStorageObject; - return this; - } - - /** - * Output only. [Output Only] The status of disk creation. - CREATING: Disk is - * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: - * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of disk creation. - CREATING: Disk is - * provisioning. - RESTORING: Source data is being copied into the disk. - FAILED: - * Disk creation failed. - READY: Disk is ready for use. - DELETING: Disk is deleting. - * @param status status or {@code null} for none - */ - public Disk setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * The storage pool in which the new disk is created. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool - * - projects/project/zones/zone/storagePools/storagePool - - * zones/zone/storagePools/storagePool - * @return value or {@code null} for none - */ - public java.lang.String getStoragePool() { - return storagePool; - } - - /** - * The storage pool in which the new disk is created. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool - * - projects/project/zones/zone/storagePools/storagePool - - * zones/zone/storagePools/storagePool - * @param storagePool storagePool or {@code null} for none - */ - public Disk setStoragePool(java.lang.String storagePool) { - this.storagePool = storagePool; - return this; - } - - /** - * URL of the disk type resource describing which disk type to use to create the disk. Provide - * this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See - * Persistent disk types. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * URL of the disk type resource describing which disk type to use to create the disk. Provide - * this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See - * Persistent disk types. - * @param type type or {@code null} for none - */ - public Disk setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in - * form:projects/project/zones/zone/instances/instance - * @return value or {@code null} for none - */ - public java.util.List getUsers() { - return users; - } - - /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in - * form:projects/project/zones/zone/instances/instance - * @param users users or {@code null} for none - */ - public Disk setUsers(java.util.List users) { - this.users = users; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the disk resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public Disk setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public Disk set(String fieldName, Object value) { - return (Disk) super.set(fieldName, value); - } - - @Override - public Disk clone() { - return (Disk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAggregatedList.java deleted file mode 100644 index 97722d93304..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskAggregatedList. - * - *

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 DiskAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 DisksScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 DiskAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of DisksScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of DisksScopedList resources. - * @param items items or {@code null} for none - */ - public DiskAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. - * @param kind kind or {@code null} for none - */ - public DiskAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public DiskAggregatedList 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 DiskAggregatedList 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 DiskAggregatedList 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 DiskAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public DiskAggregatedList set(String fieldName, Object value) { - return (DiskAggregatedList) super.set(fieldName, value); - } - - @Override - public DiskAggregatedList clone() { - return (DiskAggregatedList) 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 DiskAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplication.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplication.java deleted file mode 100644 index 53da9fe0575..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplication.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskAsyncReplication. - * - *

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 DiskAsyncReplication extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consistencyGroupPolicy; - - /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consistencyGroupPolicyId; - - /** - * The other disk asynchronously replicated to or from the current disk. You can provide this as a - * partial or full URL to the resource. For example, the following are valid values: - * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** - * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from - * the current disk. This value identifies the exact disk that was used to create this - * replication. For example, if you started replicating the persistent disk from a disk that was - * later deleted and recreated under the same name, the disk ID would identify the exact version - * of the disk that was used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diskId; - - /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. - * @return value or {@code null} for none - */ - public java.lang.String getConsistencyGroupPolicy() { - return consistencyGroupPolicy; - } - - /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. - * @param consistencyGroupPolicy consistencyGroupPolicy or {@code null} for none - */ - public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consistencyGroupPolicy) { - this.consistencyGroupPolicy = consistencyGroupPolicy; - return this; - } - - /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. - * @return value or {@code null} for none - */ - public java.lang.String getConsistencyGroupPolicyId() { - return consistencyGroupPolicyId; - } - - /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. - * @param consistencyGroupPolicyId consistencyGroupPolicyId or {@code null} for none - */ - public DiskAsyncReplication setConsistencyGroupPolicyId(java.lang.String consistencyGroupPolicyId) { - this.consistencyGroupPolicyId = consistencyGroupPolicyId; - return this; - } - - /** - * The other disk asynchronously replicated to or from the current disk. You can provide this as a - * partial or full URL to the resource. For example, the following are valid values: - * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getDisk() { - return disk; - } - - /** - * The other disk asynchronously replicated to or from the current disk. You can provide this as a - * partial or full URL to the resource. For example, the following are valid values: - * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * @param disk disk or {@code null} for none - */ - public DiskAsyncReplication setDisk(java.lang.String disk) { - this.disk = disk; - return this; - } - - /** - * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from - * the current disk. This value identifies the exact disk that was used to create this - * replication. For example, if you started replicating the persistent disk from a disk that was - * later deleted and recreated under the same name, the disk ID would identify the exact version - * of the disk that was used. - * @return value or {@code null} for none - */ - public java.lang.String getDiskId() { - return diskId; - } - - /** - * Output only. [Output Only] The unique ID of the other disk asynchronously replicated to or from - * the current disk. This value identifies the exact disk that was used to create this - * replication. For example, if you started replicating the persistent disk from a disk that was - * later deleted and recreated under the same name, the disk ID would identify the exact version - * of the disk that was used. - * @param diskId diskId or {@code null} for none - */ - public DiskAsyncReplication setDiskId(java.lang.String diskId) { - this.diskId = diskId; - return this; - } - - @Override - public DiskAsyncReplication set(String fieldName, Object value) { - return (DiskAsyncReplication) super.set(fieldName, value); - } - - @Override - public DiskAsyncReplication clone() { - return (DiskAsyncReplication) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplicationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplicationList.java deleted file mode 100644 index 5baf23b82ad..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskAsyncReplicationList.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskAsyncReplicationList. - * - *

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 DiskAsyncReplicationList extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DiskAsyncReplication asyncReplicationDisk; - - /** - * @return value or {@code null} for none - */ - public DiskAsyncReplication getAsyncReplicationDisk() { - return asyncReplicationDisk; - } - - /** - * @param asyncReplicationDisk asyncReplicationDisk or {@code null} for none - */ - public DiskAsyncReplicationList setAsyncReplicationDisk(DiskAsyncReplication asyncReplicationDisk) { - this.asyncReplicationDisk = asyncReplicationDisk; - return this; - } - - @Override - public DiskAsyncReplicationList set(String fieldName, Object value) { - return (DiskAsyncReplicationList) super.set(fieldName, value); - } - - @Override - public DiskAsyncReplicationList clone() { - return (DiskAsyncReplicationList) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskInstantiationConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskInstantiationConfig.java deleted file mode 100644 index a0592cbf2b4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskInstantiationConfig.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * 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.preview.model; - -/** - * A specification of the desired way to instantiate a disk in the instance template when its - * created from a source instance. - * - *

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 DiskInstantiationConfig extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoDelete; - - /** - * The custom source image to be used to restore this disk when instantiating this instance - * template. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customImage; - - /** - * Specifies the device name of the disk to which the configurations apply to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deviceName; - - /** - * Specifies whether to include the disk and what image to use. Possible values are: - * - source-image: to use the same image that was used to create the source instance's - * corresponding disk. Applicable to the boot disk and additional read-write disks. - - * source-image-family: to use the same image family that was used to create the source - * instance's corresponding disk. Applicable to the boot disk and additional read-write - * disks. - custom-image: to use a user-provided image url for disk creation. Applicable - * to the boot disk and additional read-write disks. - attach-read-only: to attach a - * read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk - * from the template. Applicable to additional read-write disks, local SSDs, and read-only - * disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instantiateFrom; - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoDelete() { - return autoDelete; - } - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * @param autoDelete autoDelete or {@code null} for none - */ - public DiskInstantiationConfig setAutoDelete(java.lang.Boolean autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - /** - * The custom source image to be used to restore this disk when instantiating this instance - * template. - * @return value or {@code null} for none - */ - public java.lang.String getCustomImage() { - return customImage; - } - - /** - * The custom source image to be used to restore this disk when instantiating this instance - * template. - * @param customImage customImage or {@code null} for none - */ - public DiskInstantiationConfig setCustomImage(java.lang.String customImage) { - this.customImage = customImage; - return this; - } - - /** - * Specifies the device name of the disk to which the configurations apply to. - * @return value or {@code null} for none - */ - public java.lang.String getDeviceName() { - return deviceName; - } - - /** - * Specifies the device name of the disk to which the configurations apply to. - * @param deviceName deviceName or {@code null} for none - */ - public DiskInstantiationConfig setDeviceName(java.lang.String deviceName) { - this.deviceName = deviceName; - return this; - } - - /** - * Specifies whether to include the disk and what image to use. Possible values are: - * - source-image: to use the same image that was used to create the source instance's - * corresponding disk. Applicable to the boot disk and additional read-write disks. - - * source-image-family: to use the same image family that was used to create the source - * instance's corresponding disk. Applicable to the boot disk and additional read-write - * disks. - custom-image: to use a user-provided image url for disk creation. Applicable - * to the boot disk and additional read-write disks. - attach-read-only: to attach a - * read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk - * from the template. Applicable to additional read-write disks, local SSDs, and read-only - * disks. - * @return value or {@code null} for none - */ - public java.lang.String getInstantiateFrom() { - return instantiateFrom; - } - - /** - * Specifies whether to include the disk and what image to use. Possible values are: - * - source-image: to use the same image that was used to create the source instance's - * corresponding disk. Applicable to the boot disk and additional read-write disks. - - * source-image-family: to use the same image family that was used to create the source - * instance's corresponding disk. Applicable to the boot disk and additional read-write - * disks. - custom-image: to use a user-provided image url for disk creation. Applicable - * to the boot disk and additional read-write disks. - attach-read-only: to attach a - * read-only disk. Applicable to read-only disks. - do-not-include: to exclude a disk - * from the template. Applicable to additional read-write disks, local SSDs, and read-only - * disks. - * @param instantiateFrom instantiateFrom or {@code null} for none - */ - public DiskInstantiationConfig setInstantiateFrom(java.lang.String instantiateFrom) { - this.instantiateFrom = instantiateFrom; - return this; - } - - @Override - public DiskInstantiationConfig set(String fieldName, Object value) { - return (DiskInstantiationConfig) super.set(fieldName, value); - } - - @Override - public DiskInstantiationConfig clone() { - return (DiskInstantiationConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskList.java deleted file mode 100644 index 66ca4ad7319..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of Disk resources. - * - *

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 DiskList extends com.google.api.client.json.GenericJson { - - /** - * [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 Disk 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 Disk 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(Disk.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 DiskList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Disk resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Disk resources. - * @param items items or {@code null} for none - */ - public DiskList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. - * @param kind kind or {@code null} for none - */ - public DiskList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public DiskList 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 DiskList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 DiskList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public DiskList set(String fieldName, Object value) { - return (DiskList) super.set(fieldName, value); - } - - @Override - public DiskList clone() { - return (DiskList) 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 DiskListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/DiskMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskMoveRequest.java deleted file mode 100644 index 82d924779ef..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskMoveRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskMoveRequest. - * - *

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 DiskMoveRequest extends com.google.api.client.json.GenericJson { - - /** - * The URL of the destination zone to move the disk. This can be a full or partial URL. For - * example, the following are all valid URLs to a zone: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destinationZone; - - /** - * The URL of the target disk to move. This can be a full or partial URL. For example, the - * following are all valid URLs to a disk: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetDisk; - - /** - * The URL of the destination zone to move the disk. This can be a full or partial URL. For - * example, the following are all valid URLs to a zone: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * @return value or {@code null} for none - */ - public java.lang.String getDestinationZone() { - return destinationZone; - } - - /** - * The URL of the destination zone to move the disk. This can be a full or partial URL. For - * example, the following are all valid URLs to a zone: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * @param destinationZone destinationZone or {@code null} for none - */ - public DiskMoveRequest setDestinationZone(java.lang.String destinationZone) { - this.destinationZone = destinationZone; - return this; - } - - /** - * The URL of the target disk to move. This can be a full or partial URL. For example, the - * following are all valid URLs to a disk: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getTargetDisk() { - return targetDisk; - } - - /** - * The URL of the target disk to move. This can be a full or partial URL. For example, the - * following are all valid URLs to a disk: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * @param targetDisk targetDisk or {@code null} for none - */ - public DiskMoveRequest setTargetDisk(java.lang.String targetDisk) { - this.targetDisk = targetDisk; - return this; - } - - @Override - public DiskMoveRequest set(String fieldName, Object value) { - return (DiskMoveRequest) super.set(fieldName, value); - } - - @Override - public DiskMoveRequest clone() { - return (DiskMoveRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskParams.java deleted file mode 100644 index 7af816ba627..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional disk params. - * - *

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 DiskParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the disk. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public DiskParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public DiskParams set(String fieldName, Object value) { - return (DiskParams) super.set(fieldName, value); - } - - @Override - public DiskParams clone() { - return (DiskParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatus.java deleted file mode 100644 index 41c3b68c863..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatus.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskResourceStatus. - * - *

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 DiskResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DiskResourceStatusAsyncReplicationStatus asyncPrimaryDisk; - - /** - * Key: disk, value: AsyncReplicationStatus message - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map asyncSecondaryDisks; - - /** - * @return value or {@code null} for none - */ - public DiskResourceStatusAsyncReplicationStatus getAsyncPrimaryDisk() { - return asyncPrimaryDisk; - } - - /** - * @param asyncPrimaryDisk asyncPrimaryDisk or {@code null} for none - */ - public DiskResourceStatus setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus asyncPrimaryDisk) { - this.asyncPrimaryDisk = asyncPrimaryDisk; - return this; - } - - /** - * Key: disk, value: AsyncReplicationStatus message - * @return value or {@code null} for none - */ - public java.util.Map getAsyncSecondaryDisks() { - return asyncSecondaryDisks; - } - - /** - * Key: disk, value: AsyncReplicationStatus message - * @param asyncSecondaryDisks asyncSecondaryDisks or {@code null} for none - */ - public DiskResourceStatus setAsyncSecondaryDisks(java.util.Map asyncSecondaryDisks) { - this.asyncSecondaryDisks = asyncSecondaryDisks; - return this; - } - - @Override - public DiskResourceStatus set(String fieldName, Object value) { - return (DiskResourceStatus) super.set(fieldName, value); - } - - @Override - public DiskResourceStatus clone() { - return (DiskResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatusAsyncReplicationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatusAsyncReplicationStatus.java deleted file mode 100644 index 2e0d2f5455f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskResourceStatusAsyncReplicationStatus.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskResourceStatusAsyncReplicationStatus. - * - *

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 DiskResourceStatusAsyncReplicationStatus extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * @param state state or {@code null} for none - */ - public DiskResourceStatusAsyncReplicationStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public DiskResourceStatusAsyncReplicationStatus set(String fieldName, Object value) { - return (DiskResourceStatusAsyncReplicationStatus) super.set(fieldName, value); - } - - @Override - public DiskResourceStatusAsyncReplicationStatus clone() { - return (DiskResourceStatusAsyncReplicationStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskType.java deleted file mode 100644 index 8b7871e8634..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskType.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Disk Type resource. - * - * Google Compute Engine has two Disk Type resources: - * - * * [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) * - * [Zonal](/compute/docs/reference/rest/v1/diskTypes) - * - * You can choose from a variety of disk types based on your needs. For more information, - * readStorage options. - * - * The diskTypes resource represents disk types for a zonal persistent disk. For more information, - * readZonal persistent disks. - * - * The regionDiskTypes resource represents disk types for a regional persistent disk. For more - * information, read Regional persistent disks. - * - *

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 DiskType extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] Server-defined default disk size in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long defaultDiskSizeGb; - - /** - * [Output Only] The deprecation status associated with this disk type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * [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] 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] Type of the resource. Always compute#diskType for disk types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [Output Only] URL of the region where the disk type resides. Only applicable for regional - * resources. You must specify this field as part of the HTTP request URL. It is not settable as a - * field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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] An optional textual description of the valid disk size, such as "10GB-10TB". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String validDiskSize; - - /** - * [Output Only] URL of the zone where the disk type resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public DiskType setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] Server-defined default disk size in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDefaultDiskSizeGb() { - return defaultDiskSizeGb; - } - - /** - * [Output Only] Server-defined default disk size in GB. - * @param defaultDiskSizeGb defaultDiskSizeGb or {@code null} for none - */ - public DiskType setDefaultDiskSizeGb(java.lang.Long defaultDiskSizeGb) { - this.defaultDiskSizeGb = defaultDiskSizeGb; - return this; - } - - /** - * [Output Only] The deprecation status associated with this disk type. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * [Output Only] The deprecation status associated with this disk type. - * @param deprecated deprecated or {@code null} for none - */ - public DiskType setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - 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 DiskType setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public DiskType setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. - * @param kind kind or {@code null} for none - */ - public DiskType setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public DiskType setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * [Output Only] URL of the region where the disk type resides. Only applicable for regional - * resources. You must specify this field as part of the HTTP request URL. It is not settable as a - * field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] URL of the region where the disk type resides. Only applicable for regional - * resources. You must specify this field as part of the HTTP request URL. It is not settable as a - * field in the request body. - * @param region region or {@code null} for none - */ - public DiskType setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public DiskType setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". - * @return value or {@code null} for none - */ - public java.lang.String getValidDiskSize() { - return validDiskSize; - } - - /** - * [Output Only] An optional textual description of the valid disk size, such as "10GB-10TB". - * @param validDiskSize validDiskSize or {@code null} for none - */ - public DiskType setValidDiskSize(java.lang.String validDiskSize) { - this.validDiskSize = validDiskSize; - return this; - } - - /** - * [Output Only] URL of the zone where the disk type resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * [Output Only] URL of the zone where the disk type resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public DiskType setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public DiskType set(String fieldName, Object value) { - return (DiskType) super.set(fieldName, value); - } - - @Override - public DiskType clone() { - return (DiskType) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeAggregatedList.java deleted file mode 100644 index 16efe43965d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskTypeAggregatedList. - * - *

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 DiskTypeAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 DiskTypesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 DiskTypeAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of DiskTypesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of DiskTypesScopedList resources. - * @param items items or {@code null} for none - */ - public DiskTypeAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. - * @param kind kind or {@code null} for none - */ - public DiskTypeAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public DiskTypeAggregatedList 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 DiskTypeAggregatedList 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 DiskTypeAggregatedList 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 DiskTypeAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public DiskTypeAggregatedList set(String fieldName, Object value) { - return (DiskTypeAggregatedList) super.set(fieldName, value); - } - - @Override - public DiskTypeAggregatedList clone() { - return (DiskTypeAggregatedList) 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 DiskTypeAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeList.java deleted file mode 100644 index 63548064a4b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypeList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of disk types. - * - *

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 DiskTypeList extends com.google.api.client.json.GenericJson { - - /** - * [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 DiskType 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 DiskType 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(DiskType.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 DiskTypeList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of DiskType resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of DiskType resources. - * @param items items or {@code null} for none - */ - public DiskTypeList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. - * @param kind kind or {@code null} for none - */ - public DiskTypeList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public DiskTypeList 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 DiskTypeList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 DiskTypeList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public DiskTypeList set(String fieldName, Object value) { - return (DiskTypeList) super.set(fieldName, value); - } - - @Override - public DiskTypeList clone() { - return (DiskTypeList) 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 DiskTypeListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypesScopedList.java deleted file mode 100644 index b43a376e056..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskTypesScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskTypesScopedList. - * - *

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 DiskTypesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of disk types contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List diskTypes; - - static { - // hack to force ProGuard to consider DiskType 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(DiskType.class); - } - - /** - * [Output Only] Informational warning which replaces the list of disk types when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of disk types contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getDiskTypes() { - return diskTypes; - } - - /** - * [Output Only] A list of disk types contained in this scope. - * @param diskTypes diskTypes or {@code null} for none - */ - public DiskTypesScopedList setDiskTypes(java.util.List diskTypes) { - this.diskTypes = diskTypes; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of disk types when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of disk types when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public DiskTypesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public DiskTypesScopedList set(String fieldName, Object value) { - return (DiskTypesScopedList) super.set(fieldName, value); - } - - @Override - public DiskTypesScopedList clone() { - return (DiskTypesScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of disk types when the list is empty. - */ - 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 DiskTypesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/DiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskUpdateKmsKeyRequest.java deleted file mode 100644 index e1868ae7c7d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DiskUpdateKmsKeyRequest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DiskUpdateKmsKeyRequest. - * - *

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 DiskUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be - * re-encrypted using the primary version of the disk's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key - * - * Where project is the project ID or project number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kmsKeyName; - - /** - * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be - * re-encrypted using the primary version of the disk's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key - * - * Where project is the project ID or project number. - * @return value or {@code null} for none - */ - public java.lang.String getKmsKeyName() { - return kmsKeyName; - } - - /** - * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be - * re-encrypted using the primary version of the disk's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key - * - * Where project is the project ID or project number. - * @param kmsKeyName kmsKeyName or {@code null} for none - */ - public DiskUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { - this.kmsKeyName = kmsKeyName; - return this; - } - - @Override - public DiskUpdateKmsKeyRequest set(String fieldName, Object value) { - return (DiskUpdateKmsKeyRequest) super.set(fieldName, value); - } - - @Override - public DiskUpdateKmsKeyRequest clone() { - return (DiskUpdateKmsKeyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksAddResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksAddResourcePoliciesRequest.java deleted file mode 100644 index 2378ce644e5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksAddResourcePoliciesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DisksAddResourcePoliciesRequest. - * - *

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 DisksAddResourcePoliciesRequest extends com.google.api.client.json.GenericJson { - - /** - * Full or relative path to the resource policy to be added to this disk. You can only specify one - * resource policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Full or relative path to the resource policy to be added to this disk. You can only specify one - * resource policy. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Full or relative path to the resource policy to be added to this disk. You can only specify one - * resource policy. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public DisksAddResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - @Override - public DisksAddResourcePoliciesRequest set(String fieldName, Object value) { - return (DisksAddResourcePoliciesRequest) super.set(fieldName, value); - } - - @Override - public DisksAddResourcePoliciesRequest clone() { - return (DisksAddResourcePoliciesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksRemoveResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksRemoveResourcePoliciesRequest.java deleted file mode 100644 index a144d48fd72..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksRemoveResourcePoliciesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DisksRemoveResourcePoliciesRequest. - * - *

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 DisksRemoveResourcePoliciesRequest extends com.google.api.client.json.GenericJson { - - /** - * Resource policies to be removed from this disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Resource policies to be removed from this disk. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies to be removed from this disk. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public DisksRemoveResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - @Override - public DisksRemoveResourcePoliciesRequest set(String fieldName, Object value) { - return (DisksRemoveResourcePoliciesRequest) super.set(fieldName, value); - } - - @Override - public DisksRemoveResourcePoliciesRequest clone() { - return (DisksRemoveResourcePoliciesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksResizeRequest.java deleted file mode 100644 index 05ccce4b1f9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksResizeRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DisksResizeRequest. - * - *

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 DisksResizeRequest extends com.google.api.client.json.GenericJson { - - /** - * The new size of the persistent disk, which is specified in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long sizeGb; - - /** - * The new size of the persistent disk, which is specified in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getSizeGb() { - return sizeGb; - } - - /** - * The new size of the persistent disk, which is specified in GB. - * @param sizeGb sizeGb or {@code null} for none - */ - public DisksResizeRequest setSizeGb(java.lang.Long sizeGb) { - this.sizeGb = sizeGb; - return this; - } - - @Override - public DisksResizeRequest set(String fieldName, Object value) { - return (DisksResizeRequest) super.set(fieldName, value); - } - - @Override - public DisksResizeRequest clone() { - return (DisksResizeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksScopedList.java deleted file mode 100644 index fe025d3bd5c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DisksScopedList. - * - *

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 DisksScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of disks contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List disks; - - static { - // hack to force ProGuard to consider Disk 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(Disk.class); - } - - /** - * [Output Only] Informational warning which replaces the list of disks when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of disks contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * [Output Only] A list of disks contained in this scope. - * @param disks disks or {@code null} for none - */ - public DisksScopedList setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of disks when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of disks when the list is empty. - * @param warning warning or {@code null} for none - */ - public DisksScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public DisksScopedList set(String fieldName, Object value) { - return (DisksScopedList) super.set(fieldName, value); - } - - @Override - public DisksScopedList clone() { - return (DisksScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of disks when the list is empty. - */ - 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 DisksScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStartAsyncReplicationRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStartAsyncReplicationRequest.java deleted file mode 100644 index 4c9492dc7af..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStartAsyncReplicationRequest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DisksStartAsyncReplicationRequest. - * - *

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 DisksStartAsyncReplicationRequest extends com.google.api.client.json.GenericJson { - - /** - * The secondary disk to start asynchronous replication to. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String asyncSecondaryDisk; - - /** - * The secondary disk to start asynchronous replication to. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getAsyncSecondaryDisk() { - return asyncSecondaryDisk; - } - - /** - * The secondary disk to start asynchronous replication to. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @param asyncSecondaryDisk asyncSecondaryDisk or {@code null} for none - */ - public DisksStartAsyncReplicationRequest setAsyncSecondaryDisk(java.lang.String asyncSecondaryDisk) { - this.asyncSecondaryDisk = asyncSecondaryDisk; - return this; - } - - @Override - public DisksStartAsyncReplicationRequest set(String fieldName, Object value) { - return (DisksStartAsyncReplicationRequest) super.set(fieldName, value); - } - - @Override - public DisksStartAsyncReplicationRequest clone() { - return (DisksStartAsyncReplicationRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStopGroupAsyncReplicationResource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStopGroupAsyncReplicationResource.java deleted file mode 100644 index 707b9a02983..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisksStopGroupAsyncReplicationResource.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * 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.preview.model; - -/** - * A transient resource used in compute.disks.stopGroupAsyncReplication and - * compute.regionDisks.stopGroupAsyncReplication. It is only used to process requests and is not - * persisted. - * - *

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 DisksStopGroupAsyncReplicationResource extends com.google.api.client.json.GenericJson { - - /** - * The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or - * partial URL, such as: - https://www.googleapis.com/compute/v1/projects/pro - * ject/regions/region/resourcePolicies/resourcePolicy - - * projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String resourcePolicy; - - /** - * The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or - * partial URL, such as: - https://www.googleapis.com/compute/v1/projects/pro - * ject/regions/region/resourcePolicies/resourcePolicy - - * projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * @return value or {@code null} for none - */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; - } - - /** - * The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full or - * partial URL, such as: - https://www.googleapis.com/compute/v1/projects/pro - * ject/regions/region/resourcePolicies/resourcePolicy - - * projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * @param resourcePolicy resourcePolicy or {@code null} for none - */ - public DisksStopGroupAsyncReplicationResource setResourcePolicy(java.lang.String resourcePolicy) { - this.resourcePolicy = resourcePolicy; - return this; - } - - @Override - public DisksStopGroupAsyncReplicationResource set(String fieldName, Object value) { - return (DisksStopGroupAsyncReplicationResource) super.set(fieldName, value); - } - - @Override - public DisksStopGroupAsyncReplicationResource clone() { - return (DisksStopGroupAsyncReplicationResource) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisplayDevice.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisplayDevice.java deleted file mode 100644 index f394543b53d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DisplayDevice.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * A set of Display Device options - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class DisplayDevice extends com.google.api.client.json.GenericJson { - - /** - * Defines whether the instance has Display enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableDisplay; - - /** - * Defines whether the instance has Display enabled. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableDisplay() { - return enableDisplay; - } - - /** - * Defines whether the instance has Display enabled. - * @param enableDisplay enableDisplay or {@code null} for none - */ - public DisplayDevice setEnableDisplay(java.lang.Boolean enableDisplay) { - this.enableDisplay = enableDisplay; - return this; - } - - @Override - public DisplayDevice set(String fieldName, Object value) { - return (DisplayDevice) super.set(fieldName, value); - } - - @Override - public DisplayDevice clone() { - return (DisplayDevice) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicy.java deleted file mode 100644 index 0b75777fced..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicy.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DistributionPolicy. - * - *

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 DistributionPolicy extends com.google.api.client.json.GenericJson { - - /** - * The distribution shape to which the group converges either proactively or on resize events - * (depending on the value set inupdatePolicy.instanceRedistributionType). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetShape; - - /** - * Zones where the regional managed instance group will create and manage its instances. By - * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an - * AI zone is available in the specified region. To create instances in an AI zone in the selected - * region, you must explicitly specify it in the distribution policy together with the other - * preferred zones. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * The distribution shape to which the group converges either proactively or on resize events - * (depending on the value set inupdatePolicy.instanceRedistributionType). - * @return value or {@code null} for none - */ - public java.lang.String getTargetShape() { - return targetShape; - } - - /** - * The distribution shape to which the group converges either proactively or on resize events - * (depending on the value set inupdatePolicy.instanceRedistributionType). - * @param targetShape targetShape or {@code null} for none - */ - public DistributionPolicy setTargetShape(java.lang.String targetShape) { - this.targetShape = targetShape; - return this; - } - - /** - * Zones where the regional managed instance group will create and manage its instances. By - * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an - * AI zone is available in the specified region. To create instances in an AI zone in the selected - * region, you must explicitly specify it in the distribution policy together with the other - * preferred zones. - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * Zones where the regional managed instance group will create and manage its instances. By - * default, a regional MIG doesn't automatically select an AI zone to create instances, even if an - * AI zone is available in the specified region. To create instances in an AI zone in the selected - * region, you must explicitly specify it in the distribution policy together with the other - * preferred zones. - * @param zones zones or {@code null} for none - */ - public DistributionPolicy setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public DistributionPolicy set(String fieldName, Object value) { - return (DistributionPolicy) super.set(fieldName, value); - } - - @Override - public DistributionPolicy clone() { - return (DistributionPolicy) super.clone(); - } - -} From ff3978a302999d2360ca0b3cda443cb31cd9a55b Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:35 -0700 Subject: [PATCH 14/23] chore: regenerate compute client --- .../DistributionPolicyZoneConfiguration.java | 69 - .../compute/preview/model/Duration.java | 104 - .../compute/preview/model/ErrorInfo.java | 166 -- .../preview/model/ExchangedPeeringRoute.java | 171 -- .../model/ExchangedPeeringRoutesList.java | 386 ---- .../services/compute/preview/model/Expr.java | 172 -- .../preview/model/ExternalVpnGateway.java | 410 ---- .../model/ExternalVpnGatewayInterface.java | 138 -- .../preview/model/ExternalVpnGatewayList.java | 407 ---- .../model/ExternalVpnGatewayParams.java | 87 - .../preview/model/FileContentBuffer.java | 118 -- .../compute/preview/model/Firewall.java | 862 -------- .../compute/preview/model/FirewallList.java | 386 ---- .../preview/model/FirewallLogConfig.java | 93 - .../compute/preview/model/FirewallParams.java | 84 - ...ewallPoliciesListAssociationsResponse.java | 93 - .../model/FirewallPoliciesScopedList.java | 272 --- .../compute/preview/model/FirewallPolicy.java | 580 ------ .../model/FirewallPolicyAssociation.java | 201 -- .../preview/model/FirewallPolicyList.java | 362 ---- .../preview/model/FirewallPolicyRule.java | 541 ----- .../model/FirewallPolicyRuleMatcher.java | 499 ----- ...FirewallPolicyRuleMatcherLayer4Config.java | 108 - .../model/FirewallPolicyRuleSecureTag.java | 93 - .../compute/preview/model/FixedOrPercent.java | 135 -- .../preview/model/FlexibleTimeRange.java | 129 -- .../compute/preview/model/ForwardingRule.java | 1754 ----------------- .../model/ForwardingRuleAggregatedList.java | 404 ---- .../ForwardingRuleAttachedExtension.java | 66 - .../preview/model/ForwardingRuleList.java | 383 ---- .../model/ForwardingRuleReference.java | 63 - ...rdingRuleServiceDirectoryRegistration.java | 122 -- .../model/ForwardingRulesScopedList.java | 278 --- .../preview/model/FutureReservation.java | 867 -------- .../FutureReservationCommitmentInfo.java | 120 -- .../model/FutureReservationParams.java | 78 - ...utureReservationSpecificSKUProperties.java | 117 -- .../model/FutureReservationStatus.java | 303 --- ...vationStatusExistingMatchingUsageInfo.java | 93 - ...reReservationStatusLastKnownGoodState.java | 195 -- ...tKnownGoodStateFutureReservationSpecs.java | 114 -- ...eservationStatusSpecificSKUProperties.java | 66 - ...utureReservationStoragePoolProperties.java | 114 -- ...rvationStoragePoolProvisionedCapacity.java | 120 -- .../model/FutureReservationTimeWindow.java | 108 - ...ureReservationsAggregatedListResponse.java | 428 ---- .../model/FutureReservationsListResponse.java | 431 ---- .../model/FutureReservationsScopedList.java | 278 --- .../model/FutureResourcesRecommendation.java | 186 -- ...eResourcesRecommendationOtherLocation.java | 97 - .../preview/model/FutureResourcesSpec.java | 148 -- ...FutureResourcesSpecAggregateResources.java | 117 -- .../FutureResourcesSpecLocalSsdPartition.java | 90 - .../FutureResourcesSpecLocationPolicy.java | 72 - ...reResourcesSpecLocationPolicyLocation.java | 66 - ...tureResourcesSpecSpecificSKUResources.java | 132 -- .../FutureResourcesSpecTargetResources.java | 84 - .../preview/model/GRPCHealthCheck.java | 210 -- .../preview/model/GRPCTLSHealthCheck.java | 186 -- .../model/GetHealthOperationMetadata.java | 66 - .../GetHealthOperationMetadataHealthInfo.java | 162 -- .../model/GetVersionOperationMetadata.java | 63 - .../GetVersionOperationMetadataSbomInfo.java | 90 - .../model/GlobalAddressesMoveRequest.java | 108 - .../preview/model/GlobalFrontendSettings.java | 222 --- .../GlobalFrontendSettingsPatchResponse.java | 66 - ...kEndpointGroupsAttachEndpointsRequest.java | 66 - ...kEndpointGroupsDetachEndpointsRequest.java | 66 - .../GlobalOrganizationSetPolicyRequest.java | 162 -- .../preview/model/GlobalSetLabelsRequest.java | 144 -- .../preview/model/GlobalSetPolicyRequest.java | 162 -- .../model/GlobalVmExtensionPolicy.java | 393 ---- ...lobalVmExtensionPolicyExtensionPolicy.java | 93 - ...obalVmExtensionPolicyInstanceSelector.java | 66 - .../GlobalVmExtensionPolicyLabelSelector.java | 69 - .../model/GlobalVmExtensionPolicyList.java | 428 ---- ...obalVmExtensionPolicyRolloutOperation.java | 90 - ...ionPolicyRolloutOperationRolloutInput.java | 198 -- ...onPolicyRolloutOperationRolloutStatus.java | 96 - ...OperationRolloutStatusRolloutMetadata.java | 144 -- ...sRolloutMetadataLocationRolloutStatus.java | 67 - .../preview/model/GroupMaintenanceInfo.java | 252 --- .../preview/model/GuestAttributes.java | 192 -- .../preview/model/GuestAttributesEntry.java | 114 -- .../preview/model/GuestAttributesValue.java | 69 - .../compute/preview/model/GuestOsFeature.java | 84 - .../preview/model/HTTP2HealthCheck.java | 282 --- .../preview/model/HTTPHealthCheck.java | 285 --- .../preview/model/HTTPSHealthCheck.java | 282 --- .../compute/preview/model/HaController.java | 447 ----- ...ControllerNetworkingAutoConfiguration.java | 67 - ...erNetworkingAutoConfigurationInternal.java | 114 -- .../preview/model/HaControllerStatus.java | 225 --- .../HaControllerStatusFailoverProgress.java | 168 -- ...usFailoverProgressLastFailoverAttempt.java | 377 ---- .../model/HaControllerStatusZoneStatus.java | 114 -- ...HaControllerStatusZoneStatusLastError.java | 377 ---- .../model/HaControllerZoneConfiguration.java | 93 - ...ntrollerZoneConfigurationNodeAffinity.java | 118 -- ...rZoneConfigurationReservationAffinity.java | 133 -- 100 files changed, 21370 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicyZoneConfiguration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Duration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ErrorInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoute.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoutesList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Expr.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGateway.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayInterface.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FileContentBuffer.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Firewall.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallLogConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesListAssociationsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyAssociation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcher.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcherLayer4Config.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleSecureTag.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FixedOrPercent.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FlexibleTimeRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAttachedExtension.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleServiceDirectoryRegistration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRulesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationCommitmentInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationSpecificSKUProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusExistingMatchingUsageInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodState.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusSpecificSKUProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProvisionedCapacity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationTimeWindow.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsAggregatedListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendationOtherLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpec.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecAggregateResources.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocalSsdPartition.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicyLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecSpecificSKUResources.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecTargetResources.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCTLSHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadataHealthInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadataSbomInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalAddressesMoveRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettingsPatchResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalOrganizationSetPolicyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetLabelsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetPolicyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyExtensionPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyInstanceSelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyLabelSelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GroupMaintenanceInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributes.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesEntry.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesValue.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestOsFeature.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTP2HealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPSHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaController.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfiguration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfigurationInternal.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgress.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatusLastError.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfiguration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationNodeAffinity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationReservationAffinity.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicyZoneConfiguration.java deleted file mode 100644 index 659802877e1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/DistributionPolicyZoneConfiguration.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for DistributionPolicyZoneConfiguration. - * - *

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 DistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { - - /** - * The URL of thezone. The zone must exist in the region where the managed instance group is - * located. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * The URL of thezone. The zone must exist in the region where the managed instance group is - * located. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The URL of thezone. The zone must exist in the region where the managed instance group is - * located. - * @param zone zone or {@code null} for none - */ - public DistributionPolicyZoneConfiguration setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public DistributionPolicyZoneConfiguration set(String fieldName, Object value) { - return (DistributionPolicyZoneConfiguration) super.set(fieldName, value); - } - - @Override - public DistributionPolicyZoneConfiguration clone() { - return (DistributionPolicyZoneConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Duration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Duration.java deleted file mode 100644 index b95f21c87c4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Duration.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * 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.preview.model; - -/** - * A Duration represents a fixed-length span of time represented as a count of seconds and fractions - * of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or - * "month". Range is approximately 10,000 years. - * - *

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 Duration extends com.google.api.client.json.GenericJson { - - /** - * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one - * second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to - * 999,999,999 inclusive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer nanos; - - /** - * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: - * these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 - * years - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long seconds; - - /** - * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one - * second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to - * 999,999,999 inclusive. - * @return value or {@code null} for none - */ - public java.lang.Integer getNanos() { - return nanos; - } - - /** - * Span of time that's a fraction of a second at nanosecond resolution. Durations less than one - * second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to - * 999,999,999 inclusive. - * @param nanos nanos or {@code null} for none - */ - public Duration setNanos(java.lang.Integer nanos) { - this.nanos = nanos; - return this; - } - - /** - * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: - * these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 - * years - * @return value or {@code null} for none - */ - public java.lang.Long getSeconds() { - return seconds; - } - - /** - * Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: - * these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 - * years - * @param seconds seconds or {@code null} for none - */ - public Duration setSeconds(java.lang.Long seconds) { - this.seconds = seconds; - return this; - } - - @Override - public Duration set(String fieldName, Object value) { - return (Duration) super.set(fieldName, value); - } - - @Override - public Duration clone() { - return (Duration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ErrorInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ErrorInfo.java deleted file mode 100644 index f8be7e535f4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ErrorInfo.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes the cause of the error with structured details. - * - * Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: - * - * { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { - * "resource": "projects/123", "service": "pubsub.googleapis.com" } } - * - * This response indicates that the pubsub.googleapis.com API is not enabled. - * - * Example of an error that is returned when attempting to create a Spanner instance in a region - * that is out of stock: - * - * { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { - * "availableRegions": "us-central1,us-east2" } } - * - *

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 ErrorInfo extends com.google.api.client.json.GenericJson { - - /** - * The logical grouping to which the "reason" belongs. The error domain is typically the - * registered service name of the tool or product that generates the error. Example: - * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error - * domain must be a globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String domain; - - /** - * Additional structured details about this error. - * - * Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they - * must be limited to 64 characters in length. When identifying the current value of an exceeded - * limit, the units should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": - * "100"}`, if the client exceeds the number of instances that can be created in a single (batch) - * request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map metadatas; - - /** - * The reason of the error. This is a constant value that identifies the proximate cause of the - * error. Error reasons are unique within a particular domain of errors. This should be at most 63 - * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reason; - - /** - * The logical grouping to which the "reason" belongs. The error domain is typically the - * registered service name of the tool or product that generates the error. Example: - * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error - * domain must be a globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * @return value or {@code null} for none - */ - public java.lang.String getDomain() { - return domain; - } - - /** - * The logical grouping to which the "reason" belongs. The error domain is typically the - * registered service name of the tool or product that generates the error. Example: - * "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error - * domain must be a globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * @param domain domain or {@code null} for none - */ - public ErrorInfo setDomain(java.lang.String domain) { - this.domain = domain; - return this; - } - - /** - * Additional structured details about this error. - * - * Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they - * must be limited to 64 characters in length. When identifying the current value of an exceeded - * limit, the units should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": - * "100"}`, if the client exceeds the number of instances that can be created in a single (batch) - * request. - * @return value or {@code null} for none - */ - public java.util.Map getMetadatas() { - return metadatas; - } - - /** - * Additional structured details about this error. - * - * Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they - * must be limited to 64 characters in length. When identifying the current value of an exceeded - * limit, the units should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": - * "100"}`, if the client exceeds the number of instances that can be created in a single (batch) - * request. - * @param metadatas metadatas or {@code null} for none - */ - public ErrorInfo setMetadatas(java.util.Map metadatas) { - this.metadatas = metadatas; - return this; - } - - /** - * The reason of the error. This is a constant value that identifies the proximate cause of the - * error. Error reasons are unique within a particular domain of errors. This should be at most 63 - * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. - * @return value or {@code null} for none - */ - public java.lang.String getReason() { - return reason; - } - - /** - * The reason of the error. This is a constant value that identifies the proximate cause of the - * error. Error reasons are unique within a particular domain of errors. This should be at most 63 - * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. - * @param reason reason or {@code null} for none - */ - public ErrorInfo setReason(java.lang.String reason) { - this.reason = reason; - return this; - } - - @Override - public ErrorInfo set(String fieldName, Object value) { - return (ErrorInfo) super.set(fieldName, value); - } - - @Override - public ErrorInfo clone() { - return (ErrorInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoute.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoute.java deleted file mode 100644 index 2faf394d325..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoute.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ExchangedPeeringRoute. - * - *

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 ExchangedPeeringRoute extends com.google.api.client.json.GenericJson { - - /** - * The destination range of the route. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destRange; - - /** - * True if the peering route has been imported from a peer. The actual import happens if the field - * networkPeering.importCustomRoutes is true for this network, and - * networkPeering.exportCustomRoutes is true for the peer network, and the import does not result - * in a route conflict. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean imported; - - /** - * The region of peering route next hop, only applies to dynamic routes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopRegion; - - /** - * The priority of the peering route. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long priority; - - /** - * The type of the peering route. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The destination range of the route. - * @return value or {@code null} for none - */ - public java.lang.String getDestRange() { - return destRange; - } - - /** - * The destination range of the route. - * @param destRange destRange or {@code null} for none - */ - public ExchangedPeeringRoute setDestRange(java.lang.String destRange) { - this.destRange = destRange; - return this; - } - - /** - * True if the peering route has been imported from a peer. The actual import happens if the field - * networkPeering.importCustomRoutes is true for this network, and - * networkPeering.exportCustomRoutes is true for the peer network, and the import does not result - * in a route conflict. - * @return value or {@code null} for none - */ - public java.lang.Boolean getImported() { - return imported; - } - - /** - * True if the peering route has been imported from a peer. The actual import happens if the field - * networkPeering.importCustomRoutes is true for this network, and - * networkPeering.exportCustomRoutes is true for the peer network, and the import does not result - * in a route conflict. - * @param imported imported or {@code null} for none - */ - public ExchangedPeeringRoute setImported(java.lang.Boolean imported) { - this.imported = imported; - return this; - } - - /** - * The region of peering route next hop, only applies to dynamic routes. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopRegion() { - return nextHopRegion; - } - - /** - * The region of peering route next hop, only applies to dynamic routes. - * @param nextHopRegion nextHopRegion or {@code null} for none - */ - public ExchangedPeeringRoute setNextHopRegion(java.lang.String nextHopRegion) { - this.nextHopRegion = nextHopRegion; - return this; - } - - /** - * The priority of the peering route. - * @return value or {@code null} for none - */ - public java.lang.Long getPriority() { - return priority; - } - - /** - * The priority of the peering route. - * @param priority priority or {@code null} for none - */ - public ExchangedPeeringRoute setPriority(java.lang.Long priority) { - this.priority = priority; - return this; - } - - /** - * The type of the peering route. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of the peering route. - * @param type type or {@code null} for none - */ - public ExchangedPeeringRoute setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public ExchangedPeeringRoute set(String fieldName, Object value) { - return (ExchangedPeeringRoute) super.set(fieldName, value); - } - - @Override - public ExchangedPeeringRoute clone() { - return (ExchangedPeeringRoute) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoutesList.java deleted file mode 100644 index d35e44e8d03..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExchangedPeeringRoutesList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ExchangedPeeringRoutesList. - * - *

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 ExchangedPeeringRoutesList extends com.google.api.client.json.GenericJson { - - /** - * [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 ExchangedPeeringRoute 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 ExchangedPeeringRoute 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(ExchangedPeeringRoute.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 ExchangedPeeringRoutesList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ExchangedPeeringRoute resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of ExchangedPeeringRoute resources. - * @param items items or {@code null} for none - */ - public ExchangedPeeringRoutesList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. - * @param kind kind or {@code null} for none - */ - public ExchangedPeeringRoutesList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ExchangedPeeringRoutesList 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 ExchangedPeeringRoutesList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ExchangedPeeringRoutesList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ExchangedPeeringRoutesList set(String fieldName, Object value) { - return (ExchangedPeeringRoutesList) super.set(fieldName, value); - } - - @Override - public ExchangedPeeringRoutesList clone() { - return (ExchangedPeeringRoutesList) 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 ExchangedPeeringRoutesListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Expr.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Expr.java deleted file mode 100644 index d11ce7b1758..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Expr.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like - * expression language. The syntax and semantics of CEL are documented at - * https://github.com/google/cel-spec. - * - * Example (Comparison): - * - * title: "Summary size limit" description: "Determines if a summary is less than 100 chars" - * expression: "document.summary.size() < 100" - * - * Example (Equality): - * - * title: "Requestor is owner" description: "Determines if requestor is the document owner" - * expression: "document.owner == request.auth.claims.email" - * - * Example (Logic): - * - * title: "Public documents" description: "Determine whether the document should be publicly - * visible" expression: "document.type != 'private' && document.type != 'internal'" - * - * Example (Data Manipulation): - * - * title: "Notification string" description: "Create a notification string with a - * timestamp." expression: "'New message received at ' + string(document.create_time)" - * - * The exact variables and functions that may be referenced within an expression are determined by - * the service that evaluates it. See the service documentation for additional information. - * - *

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 Expr extends com.google.api.client.json.GenericJson { - - /** - * Optional. Description of the expression. This is a longer text which describes the expression, - * e.g. when hovered over it in a UI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Textual representation of an expression in Common Expression Language syntax. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expression; - - /** - * Optional. String indicating the location of the expression for error reporting, e.g. a file - * name and a position in the file. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * Optional. Title for the expression, i.e. a short string describing its purpose. This can be - * used e.g. in UIs which allow to enter the expression. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String title; - - /** - * Optional. Description of the expression. This is a longer text which describes the expression, - * e.g. when hovered over it in a UI. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Optional. Description of the expression. This is a longer text which describes the expression, - * e.g. when hovered over it in a UI. - * @param description description or {@code null} for none - */ - public Expr setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Textual representation of an expression in Common Expression Language syntax. - * @return value or {@code null} for none - */ - public java.lang.String getExpression() { - return expression; - } - - /** - * Textual representation of an expression in Common Expression Language syntax. - * @param expression expression or {@code null} for none - */ - public Expr setExpression(java.lang.String expression) { - this.expression = expression; - return this; - } - - /** - * Optional. String indicating the location of the expression for error reporting, e.g. a file - * name and a position in the file. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * Optional. String indicating the location of the expression for error reporting, e.g. a file - * name and a position in the file. - * @param location location or {@code null} for none - */ - public Expr setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * Optional. Title for the expression, i.e. a short string describing its purpose. This can be - * used e.g. in UIs which allow to enter the expression. - * @return value or {@code null} for none - */ - public java.lang.String getTitle() { - return title; - } - - /** - * Optional. Title for the expression, i.e. a short string describing its purpose. This can be - * used e.g. in UIs which allow to enter the expression. - * @param title title or {@code null} for none - */ - public Expr setTitle(java.lang.String title) { - this.title = title; - return this; - } - - @Override - public Expr set(String fieldName, Object value) { - return (Expr) super.set(fieldName, value); - } - - @Override - public Expr clone() { - return (Expr) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGateway.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGateway.java deleted file mode 100644 index bb991dcacd8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGateway.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an external VPN gateway. - * - * External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway - * that connects to your Google Cloud VPN gateway. - * - * To create a highly available VPN from Google Cloud Platform to your VPN gateway or another cloud - * provider's VPN gateway, you must create a external VPN gateway resource with information about - * the other gateway. - * - * For more information about using external VPN gateways, see Creating an HA VPN gateway and tunnel - * pair to a peer VPN. - * - *

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 ExternalVpnGateway extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the 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; - - /** - * A list of interfaces for this external VPN gateway. - * - * If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at - * most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS - * virtual private gateway, four interfaces should be provided for an external VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interfaces; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for - * externalVpnGateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ExternalVpnGatewayParams params; - - /** - * Indicates the user-supplied redundancy type of this external VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String redundancyType; - - /** - * 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] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public ExternalVpnGateway 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 ExternalVpnGateway setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * A list of interfaces for this external VPN gateway. - * - * If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at - * most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS - * virtual private gateway, four interfaces should be provided for an external VPN gateway. - * @return value or {@code null} for none - */ - public java.util.List getInterfaces() { - return interfaces; - } - - /** - * A list of interfaces for this external VPN gateway. - * - * If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at - * most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS - * virtual private gateway, four interfaces should be provided for an external VPN gateway. - * @param interfaces interfaces or {@code null} for none - */ - public ExternalVpnGateway setInterfaces(java.util.List interfaces) { - this.interfaces = interfaces; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for - * externalVpnGateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for - * externalVpnGateways. - * @param kind kind or {@code null} for none - */ - public ExternalVpnGateway setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public ExternalVpnGateway setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this ExternalVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an ExternalVpnGateway. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ExternalVpnGateway encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public ExternalVpnGateway setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 ExternalVpnGateway setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public ExternalVpnGatewayParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public ExternalVpnGateway setParams(ExternalVpnGatewayParams params) { - this.params = params; - return this; - } - - /** - * Indicates the user-supplied redundancy type of this external VPN gateway. - * @return value or {@code null} for none - */ - public java.lang.String getRedundancyType() { - return redundancyType; - } - - /** - * Indicates the user-supplied redundancy type of this external VPN gateway. - * @param redundancyType redundancyType or {@code null} for none - */ - public ExternalVpnGateway setRedundancyType(java.lang.String redundancyType) { - this.redundancyType = redundancyType; - 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 ExternalVpnGateway setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public ExternalVpnGateway set(String fieldName, Object value) { - return (ExternalVpnGateway) super.set(fieldName, value); - } - - @Override - public ExternalVpnGateway clone() { - return (ExternalVpnGateway) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayInterface.java deleted file mode 100644 index 191bcceaa47..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayInterface.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * The interface for the external VPN gateway. - * - *

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 ExternalVpnGatewayInterface extends com.google.api.client.json.GenericJson { - - /** - * The numeric ID of this interface. The allowed input values for this id for different redundancy - * types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - - * TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** - * IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP - * address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it - * cannot be an IP address from Google Compute Engine. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from - * your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address - * from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format - * described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format - * (e.g. 2001:db8::2d9:51:0:0). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * The numeric ID of this interface. The allowed input values for this id for different redundancy - * types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - - * TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 - * @return value or {@code null} for none - */ - public java.lang.Long getId() { - return id; - } - - /** - * The numeric ID of this interface. The allowed input values for this id for different redundancy - * types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - - * TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 - * @param id id or {@code null} for none - */ - public ExternalVpnGatewayInterface setId(java.lang.Long id) { - this.id = id; - return this; - } - - /** - * IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP - * address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it - * cannot be an IP address from Google Compute Engine. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP - * address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it - * cannot be an IP address from Google Compute Engine. - * @param ipAddress ipAddress or {@code null} for none - */ - public ExternalVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from - * your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address - * from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format - * described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format - * (e.g. 2001:db8::2d9:51:0:0). - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from - * your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP address - * from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format - * described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format - * (e.g. 2001:db8::2d9:51:0:0). - * @param ipv6Address ipv6Address or {@code null} for none - */ - public ExternalVpnGatewayInterface setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - @Override - public ExternalVpnGatewayInterface set(String fieldName, Object value) { - return (ExternalVpnGatewayInterface) super.set(fieldName, value); - } - - @Override - public ExternalVpnGatewayInterface clone() { - return (ExternalVpnGatewayInterface) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayList.java deleted file mode 100644 index b8b0344b774..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayList.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to the list request, and contains a list of externalVpnGateways. - * - *

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 ExternalVpnGatewayList extends com.google.api.client.json.GenericJson { - - /** - * 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 ExternalVpnGateway 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 ExternalVpnGateway 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(ExternalVpnGateway.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of - * externalVpnGateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * 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 getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public ExternalVpnGatewayList 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 ExternalVpnGatewayList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ExternalVpnGateway resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of ExternalVpnGateway resources. - * @param items items or {@code null} for none - */ - public ExternalVpnGatewayList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of - * externalVpnGateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of - * externalVpnGateways. - * @param kind kind or {@code null} for none - */ - public ExternalVpnGatewayList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ExternalVpnGatewayList 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 ExternalVpnGatewayList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ExternalVpnGatewayList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ExternalVpnGatewayList set(String fieldName, Object value) { - return (ExternalVpnGatewayList) super.set(fieldName, value); - } - - @Override - public ExternalVpnGatewayList clone() { - return (ExternalVpnGatewayList) 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 ExternalVpnGatewayListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayParams.java deleted file mode 100644 index 5f20a7d69b0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ExternalVpnGatewayParams.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ExternalVpnGatewayParams. - * - *

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 ExternalVpnGatewayParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public ExternalVpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public ExternalVpnGatewayParams set(String fieldName, Object value) { - return (ExternalVpnGatewayParams) super.set(fieldName, value); - } - - @Override - public ExternalVpnGatewayParams clone() { - return (ExternalVpnGatewayParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FileContentBuffer.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FileContentBuffer.java deleted file mode 100644 index ab665acf8b8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FileContentBuffer.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FileContentBuffer. - * - *

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 FileContentBuffer extends com.google.api.client.json.GenericJson { - - /** - * The raw content in the secure keys file. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String content; - - /** - * The file type of source file. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fileType; - - /** - * The raw content in the secure keys file. - * @see #decodeContent() - * @return value or {@code null} for none - */ - public java.lang.String getContent() { - return content; - } - - /** - * The raw content in the secure keys file. - * @see #getContent() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeContent() { - return com.google.api.client.util.Base64.decodeBase64(content); - } - - /** - * The raw content in the secure keys file. - * @see #encodeContent() - * @param content content or {@code null} for none - */ - public FileContentBuffer setContent(java.lang.String content) { - this.content = content; - return this; - } - - /** - * The raw content in the secure keys file. - * @see #setContent() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public FileContentBuffer encodeContent(byte[] content) { - this.content = com.google.api.client.util.Base64.encodeBase64URLSafeString(content); - return this; - } - - /** - * The file type of source file. - * @return value or {@code null} for none - */ - public java.lang.String getFileType() { - return fileType; - } - - /** - * The file type of source file. - * @param fileType fileType or {@code null} for none - */ - public FileContentBuffer setFileType(java.lang.String fileType) { - this.fileType = fileType; - return this; - } - - @Override - public FileContentBuffer set(String fieldName, Object value) { - return (FileContentBuffer) super.set(fieldName, value); - } - - @Override - public FileContentBuffer clone() { - return (FileContentBuffer) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Firewall.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Firewall.java deleted file mode 100644 index 3bce399fb23..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Firewall.java +++ /dev/null @@ -1,862 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Firewall Rule resource. - * - * Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. For more - * information, readFirewall rules. - * - *

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 Firewall extends com.google.api.client.json.GenericJson { - - /** - * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port- - * range tuple that describes a permitted connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowed; - - static { - // hack to force ProGuard to consider Allowed 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(Allowed.class); - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port- - * range tuple that describes a denied connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List denied; - - static { - // hack to force ProGuard to consider Denied 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(Denied.class); - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * If destination ranges are specified, the firewall rule applies only to traffic that has - * destination IP address in these ranges. These ranges must be expressed inCIDR format. Both IPv4 - * and IPv6 are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destinationRanges; - - /** - * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default - * is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String direction; - - /** - * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not - * enforced and the network behaves as if it did not exist. If this is unspecified, the firewall - * rule will be enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean disabled; - - /** - * 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] Type of the resource. Always compute#firewall for firewall rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * This field denotes the logging options for a particular firewall rule. If logging is enabled, - * logs will be exported to Cloud Logging. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallLogConfig logConfig; - - /** - * Name of the resource; provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * URL of the network resource for this firewall rule. If not specified when creating a firewall - * rule, the default network is used: - * - * global/networks/default - * - * If you choose to specify this field, you can specify the network as a full or partial URL. For - * example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - - * projects/myproject/global/networks/my-network - global/networks/default - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallParams params; - - /** - * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default - * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. - * Lower values indicate higher priority. For example, a rule with priority `0` has higher - * precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they - * have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To - * avoid conflicts with the implied rules, use a priority number less than `65535`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * [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; - - /** - * If source ranges are specified, the firewall rule applies only to traffic that has a source IP - * address in these ranges. These ranges must be expressed inCIDR format. One or both of - * sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic - * that has a source IP address within sourceRanges OR a source IP from a resource with a matching - * tag listed in thesourceTags field. The connection does not need to match both fields for the - * rule to apply. Both IPv4 and IPv6 are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceRanges; - - /** - * If source service accounts are specified, the firewall rules apply only to traffic originating - * from an instance with a service account in this list. Source service accounts cannot be used to - * control traffic to an instance's external IP address because service accounts are associated - * with an instance, not an IP address.sourceRanges can be set at the same time - * assourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP - * address within the sourceRanges OR a source IP that belongs to an instance with service account - * listed insourceServiceAccount. The connection does not need to match both fields for the - * firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or - * targetTags. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceServiceAccounts; - - /** - * If source tags are specified, the firewall rule applies only to traffic with source IPs that - * match the primary network interfaces of VM instances that have the tag and are in the same VPC - * network. Source tags cannot be used to control traffic to an instance's external IP address, it - * only applies to traffic between instances in the same virtual network. Because tags are - * associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be - * set. If both fields are set, the firewall applies to traffic that has a source IP address - * within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags - * field. The connection does not need to match both fields for the firewall to apply. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceTags; - - /** - * A list of service accounts indicating sets of instances located in the network that may make - * network connections as specified inallowed[].targetServiceAccounts cannot be used at the same - * time astargetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, - * the firewall rule applies to all instances on the specified network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetServiceAccounts; - - /** - * A list of tags that controls which instances the firewall rule applies to. If targetTags are - * specified, then the firewall rule applies only to instances in the VPC network that have one of - * those tags. If no targetTags are specified, the firewall rule applies to all instances on the - * specified network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetTags; - - /** - * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port- - * range tuple that describes a permitted connection. - * @return value or {@code null} for none - */ - public java.util.List getAllowed() { - return allowed; - } - - /** - * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port- - * range tuple that describes a permitted connection. - * @param allowed allowed or {@code null} for none - */ - public Firewall setAllowed(java.util.List allowed) { - this.allowed = allowed; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port- - * range tuple that describes a denied connection. - * @return value or {@code null} for none - */ - public java.util.List getDenied() { - return denied; - } - - /** - * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port- - * range tuple that describes a denied connection. - * @param denied denied or {@code null} for none - */ - public Firewall setDenied(java.util.List denied) { - this.denied = denied; - return this; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @param description description or {@code null} for none - */ - public Firewall setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * If destination ranges are specified, the firewall rule applies only to traffic that has - * destination IP address in these ranges. These ranges must be expressed inCIDR format. Both IPv4 - * and IPv6 are supported. - * @return value or {@code null} for none - */ - public java.util.List getDestinationRanges() { - return destinationRanges; - } - - /** - * If destination ranges are specified, the firewall rule applies only to traffic that has - * destination IP address in these ranges. These ranges must be expressed inCIDR format. Both IPv4 - * and IPv6 are supported. - * @param destinationRanges destinationRanges or {@code null} for none - */ - public Firewall setDestinationRanges(java.util.List destinationRanges) { - this.destinationRanges = destinationRanges; - return this; - } - - /** - * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default - * is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. - * @return value or {@code null} for none - */ - public java.lang.String getDirection() { - return direction; - } - - /** - * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default - * is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. - * @param direction direction or {@code null} for none - */ - public Firewall setDirection(java.lang.String direction) { - this.direction = direction; - return this; - } - - /** - * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not - * enforced and the network behaves as if it did not exist. If this is unspecified, the firewall - * rule will be enabled. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDisabled() { - return disabled; - } - - /** - * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not - * enforced and the network behaves as if it did not exist. If this is unspecified, the firewall - * rule will be enabled. - * @param disabled disabled or {@code null} for none - */ - public Firewall setDisabled(java.lang.Boolean disabled) { - this.disabled = disabled; - 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 Firewall setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. - * @param kind kind or {@code null} for none - */ - public Firewall setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * This field denotes the logging options for a particular firewall rule. If logging is enabled, - * logs will be exported to Cloud Logging. - * @return value or {@code null} for none - */ - public FirewallLogConfig getLogConfig() { - return logConfig; - } - - /** - * This field denotes the logging options for a particular firewall rule. If logging is enabled, - * logs will be exported to Cloud Logging. - * @param logConfig logConfig or {@code null} for none - */ - public Firewall setLogConfig(FirewallLogConfig logConfig) { - this.logConfig = logConfig; - return this; - } - - /** - * Name of the resource; provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource; provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @param name name or {@code null} for none - */ - public Firewall setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * URL of the network resource for this firewall rule. If not specified when creating a firewall - * rule, the default network is used: - * - * global/networks/default - * - * If you choose to specify this field, you can specify the network as a full or partial URL. For - * example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - - * projects/myproject/global/networks/my-network - global/networks/default - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * URL of the network resource for this firewall rule. If not specified when creating a firewall - * rule, the default network is used: - * - * global/networks/default - * - * If you choose to specify this field, you can specify the network as a full or partial URL. For - * example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - - * projects/myproject/global/networks/my-network - global/networks/default - * @param network network or {@code null} for none - */ - public Firewall setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public FirewallParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Firewall setParams(FirewallParams params) { - this.params = params; - return this; - } - - /** - * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default - * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. - * Lower values indicate higher priority. For example, a rule with priority `0` has higher - * precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they - * have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To - * avoid conflicts with the implied rules, use a priority number less than `65535`. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default - * value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. - * Lower values indicate higher priority. For example, a rule with priority `0` has higher - * precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they - * have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To - * avoid conflicts with the implied rules, use a priority number less than `65535`. - * @param priority priority or {@code null} for none - */ - public Firewall setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Firewall setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * If source ranges are specified, the firewall rule applies only to traffic that has a source IP - * address in these ranges. These ranges must be expressed inCIDR format. One or both of - * sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic - * that has a source IP address within sourceRanges OR a source IP from a resource with a matching - * tag listed in thesourceTags field. The connection does not need to match both fields for the - * rule to apply. Both IPv4 and IPv6 are supported. - * @return value or {@code null} for none - */ - public java.util.List getSourceRanges() { - return sourceRanges; - } - - /** - * If source ranges are specified, the firewall rule applies only to traffic that has a source IP - * address in these ranges. These ranges must be expressed inCIDR format. One or both of - * sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic - * that has a source IP address within sourceRanges OR a source IP from a resource with a matching - * tag listed in thesourceTags field. The connection does not need to match both fields for the - * rule to apply. Both IPv4 and IPv6 are supported. - * @param sourceRanges sourceRanges or {@code null} for none - */ - public Firewall setSourceRanges(java.util.List sourceRanges) { - this.sourceRanges = sourceRanges; - return this; - } - - /** - * If source service accounts are specified, the firewall rules apply only to traffic originating - * from an instance with a service account in this list. Source service accounts cannot be used to - * control traffic to an instance's external IP address because service accounts are associated - * with an instance, not an IP address.sourceRanges can be set at the same time - * assourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP - * address within the sourceRanges OR a source IP that belongs to an instance with service account - * listed insourceServiceAccount. The connection does not need to match both fields for the - * firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or - * targetTags. - * @return value or {@code null} for none - */ - public java.util.List getSourceServiceAccounts() { - return sourceServiceAccounts; - } - - /** - * If source service accounts are specified, the firewall rules apply only to traffic originating - * from an instance with a service account in this list. Source service accounts cannot be used to - * control traffic to an instance's external IP address because service accounts are associated - * with an instance, not an IP address.sourceRanges can be set at the same time - * assourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP - * address within the sourceRanges OR a source IP that belongs to an instance with service account - * listed insourceServiceAccount. The connection does not need to match both fields for the - * firewall to apply.sourceServiceAccounts cannot be used at the same time assourceTags or - * targetTags. - * @param sourceServiceAccounts sourceServiceAccounts or {@code null} for none - */ - public Firewall setSourceServiceAccounts(java.util.List sourceServiceAccounts) { - this.sourceServiceAccounts = sourceServiceAccounts; - return this; - } - - /** - * If source tags are specified, the firewall rule applies only to traffic with source IPs that - * match the primary network interfaces of VM instances that have the tag and are in the same VPC - * network. Source tags cannot be used to control traffic to an instance's external IP address, it - * only applies to traffic between instances in the same virtual network. Because tags are - * associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be - * set. If both fields are set, the firewall applies to traffic that has a source IP address - * within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags - * field. The connection does not need to match both fields for the firewall to apply. - * @return value or {@code null} for none - */ - public java.util.List getSourceTags() { - return sourceTags; - } - - /** - * If source tags are specified, the firewall rule applies only to traffic with source IPs that - * match the primary network interfaces of VM instances that have the tag and are in the same VPC - * network. Source tags cannot be used to control traffic to an instance's external IP address, it - * only applies to traffic between instances in the same virtual network. Because tags are - * associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be - * set. If both fields are set, the firewall applies to traffic that has a source IP address - * within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags - * field. The connection does not need to match both fields for the firewall to apply. - * @param sourceTags sourceTags or {@code null} for none - */ - public Firewall setSourceTags(java.util.List sourceTags) { - this.sourceTags = sourceTags; - return this; - } - - /** - * A list of service accounts indicating sets of instances located in the network that may make - * network connections as specified inallowed[].targetServiceAccounts cannot be used at the same - * time astargetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, - * the firewall rule applies to all instances on the specified network. - * @return value or {@code null} for none - */ - public java.util.List getTargetServiceAccounts() { - return targetServiceAccounts; - } - - /** - * A list of service accounts indicating sets of instances located in the network that may make - * network connections as specified inallowed[].targetServiceAccounts cannot be used at the same - * time astargetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, - * the firewall rule applies to all instances on the specified network. - * @param targetServiceAccounts targetServiceAccounts or {@code null} for none - */ - public Firewall setTargetServiceAccounts(java.util.List targetServiceAccounts) { - this.targetServiceAccounts = targetServiceAccounts; - return this; - } - - /** - * A list of tags that controls which instances the firewall rule applies to. If targetTags are - * specified, then the firewall rule applies only to instances in the VPC network that have one of - * those tags. If no targetTags are specified, the firewall rule applies to all instances on the - * specified network. - * @return value or {@code null} for none - */ - public java.util.List getTargetTags() { - return targetTags; - } - - /** - * A list of tags that controls which instances the firewall rule applies to. If targetTags are - * specified, then the firewall rule applies only to instances in the VPC network that have one of - * those tags. If no targetTags are specified, the firewall rule applies to all instances on the - * specified network. - * @param targetTags targetTags or {@code null} for none - */ - public Firewall setTargetTags(java.util.List targetTags) { - this.targetTags = targetTags; - return this; - } - - @Override - public Firewall set(String fieldName, Object value) { - return (Firewall) super.set(fieldName, value); - } - - @Override - public Firewall clone() { - return (Firewall) super.clone(); - } - - /** - * Model definition for FirewallAllowed. - */ - public static final class Allowed extends com.google.api.client.json.GenericJson { - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings (tcp, - * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPProtocol") - private java.lang.String iPProtocol; - - /** - * An optional list of ports to which this rule applies. This field is only applicable for the UDP - * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ports; - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings (tcp, - * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. - * @return value or {@code null} for none - */ - public java.lang.String getIPProtocol() { - return iPProtocol; - } - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings (tcp, - * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. - * @param iPProtocol iPProtocol or {@code null} for none - */ - public Allowed setIPProtocol(java.lang.String iPProtocol) { - this.iPProtocol = iPProtocol; - return this; - } - - /** - * An optional list of ports to which this rule applies. This field is only applicable for the UDP - * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - * @return value or {@code null} for none - */ - public java.util.List getPorts() { - return ports; - } - - /** - * An optional list of ports to which this rule applies. This field is only applicable for the UDP - * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - * @param ports ports or {@code null} for none - */ - public Allowed setPorts(java.util.List ports) { - this.ports = ports; - return this; - } - - @Override - public Allowed set(String fieldName, Object value) { - return (Allowed) super.set(fieldName, value); - } - - @Override - public Allowed clone() { - return (Allowed) super.clone(); - } - - } - - /** - * Model definition for FirewallDenied. - */ - public static final class Denied extends com.google.api.client.json.GenericJson { - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings (tcp, - * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPProtocol") - private java.lang.String iPProtocol; - - /** - * An optional list of ports to which this rule applies. This field is only applicable for the UDP - * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ports; - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings (tcp, - * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. - * @return value or {@code null} for none - */ - public java.lang.String getIPProtocol() { - return iPProtocol; - } - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings (tcp, - * udp,icmp, esp, ah, ipip,sctp) or the IP protocol number. - * @param iPProtocol iPProtocol or {@code null} for none - */ - public Denied setIPProtocol(java.lang.String iPProtocol) { - this.iPProtocol = iPProtocol; - return this; - } - - /** - * An optional list of ports to which this rule applies. This field is only applicable for the UDP - * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - * @return value or {@code null} for none - */ - public java.util.List getPorts() { - return ports; - } - - /** - * An optional list of ports to which this rule applies. This field is only applicable for the UDP - * or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. - * @param ports ports or {@code null} for none - */ - public Denied setPorts(java.util.List ports) { - this.ports = ports; - return this; - } - - @Override - public Denied set(String fieldName, Object value) { - return (Denied) super.set(fieldName, value); - } - - @Override - public Denied clone() { - return (Denied) super.clone(); - } - - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallList.java deleted file mode 100644 index 01b6c9d4f4f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of firewalls. - * - *

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 FirewallList extends com.google.api.client.json.GenericJson { - - /** - * [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 Firewall 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 Firewall 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(Firewall.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 FirewallList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Firewall resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Firewall resources. - * @param items items or {@code null} for none - */ - public FirewallList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. - * @param kind kind or {@code null} for none - */ - public FirewallList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public FirewallList 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 FirewallList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 FirewallList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public FirewallList set(String fieldName, Object value) { - return (FirewallList) super.set(fieldName, value); - } - - @Override - public FirewallList clone() { - return (FirewallList) 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 FirewallListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallLogConfig.java deleted file mode 100644 index 3957a8293a9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallLogConfig.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * The available logging options for a firewall rule. - * - *

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 FirewallLogConfig extends com.google.api.client.json.GenericJson { - - /** - * This field denotes whether to enable logging for a particular firewall rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - - /** - * This field can only be specified for a particular firewall rule if logging is enabled for that - * rule. This field denotes whether to include or exclude metadata for firewall logs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metadata; - - /** - * This field denotes whether to enable logging for a particular firewall rule. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * This field denotes whether to enable logging for a particular firewall rule. - * @param enable enable or {@code null} for none - */ - public FirewallLogConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - - /** - * This field can only be specified for a particular firewall rule if logging is enabled for that - * rule. This field denotes whether to include or exclude metadata for firewall logs. - * @return value or {@code null} for none - */ - public java.lang.String getMetadata() { - return metadata; - } - - /** - * This field can only be specified for a particular firewall rule if logging is enabled for that - * rule. This field denotes whether to include or exclude metadata for firewall logs. - * @param metadata metadata or {@code null} for none - */ - public FirewallLogConfig setMetadata(java.lang.String metadata) { - this.metadata = metadata; - return this; - } - - @Override - public FirewallLogConfig set(String fieldName, Object value) { - return (FirewallLogConfig) super.set(fieldName, value); - } - - @Override - public FirewallLogConfig clone() { - return (FirewallLogConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallParams.java deleted file mode 100644 index 40b3dd52721..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional firewall parameters. - * - *

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 FirewallParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public FirewallParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public FirewallParams set(String fieldName, Object value) { - return (FirewallParams) super.set(fieldName, value); - } - - @Override - public FirewallParams clone() { - return (FirewallParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesListAssociationsResponse.java deleted file mode 100644 index 0525042e27c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesListAssociationsResponse.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FirewallPoliciesListAssociationsResponse. - * - *

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 FirewallPoliciesListAssociationsResponse extends com.google.api.client.json.GenericJson { - - /** - * A list of associations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List associations; - - /** - * Output only. [Output Only] Type of firewallPolicy associations. - * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A list of associations. - * @return value or {@code null} for none - */ - public java.util.List getAssociations() { - return associations; - } - - /** - * A list of associations. - * @param associations associations or {@code null} for none - */ - public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations) { - this.associations = associations; - return this; - } - - /** - * Output only. [Output Only] Type of firewallPolicy associations. - * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of firewallPolicy associations. - * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. - * @param kind kind or {@code null} for none - */ - public FirewallPoliciesListAssociationsResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public FirewallPoliciesListAssociationsResponse set(String fieldName, Object value) { - return (FirewallPoliciesListAssociationsResponse) super.set(fieldName, value); - } - - @Override - public FirewallPoliciesListAssociationsResponse clone() { - return (FirewallPoliciesListAssociationsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesScopedList.java deleted file mode 100644 index 034c698a2b1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPoliciesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FirewallPoliciesScopedList. - * - *

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 FirewallPoliciesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of firewall policies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewallPolicies; - - /** - * Informational warning which replaces the list of firewall policies when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of firewall policies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getFirewallPolicies() { - return firewallPolicies; - } - - /** - * A list of firewall policies contained in this scope. - * @param firewallPolicies firewallPolicies or {@code null} for none - */ - public FirewallPoliciesScopedList setFirewallPolicies(java.util.List firewallPolicies) { - this.firewallPolicies = firewallPolicies; - return this; - } - - /** - * Informational warning which replaces the list of firewall policies when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of firewall policies when the list is empty. - * @param warning warning or {@code null} for none - */ - public FirewallPoliciesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public FirewallPoliciesScopedList set(String fieldName, Object value) { - return (FirewallPoliciesScopedList) super.set(fieldName, value); - } - - @Override - public FirewallPoliciesScopedList clone() { - return (FirewallPoliciesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of firewall policies when the list is empty. - */ - 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 FirewallPoliciesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicy.java deleted file mode 100644 index 710f3a8d521..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicy.java +++ /dev/null @@ -1,580 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Firewall Policy 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 FirewallPolicy extends com.google.api.client.json.GenericJson { - - /** - * A list of associations that belong to this firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List associations; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Deprecated, please use short name instead. User-provided name of the Organization firewall - * policy. The name should be unique in the organization in which the firewall policy is created. - * This field is not applicable to network firewall policies. This name must be set on creation - * and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. - * 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 displayName; - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * [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] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID - * allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * A list of packet mirroring rules that belong to this policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List packetMirroringRules; - - /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** - * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or - * ULL_POLICY. - * - * Note: if not specified then VPC_POLICY will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policyType; - - /** - * Output only. [Output Only] URL of the region where the regional firewall policy resides. This - * field is not applicable to global firewall policies. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy - * can not exceed a set number of tuples. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ruleTupleCount; - - /** - * A list of rules that belong to this policy. There must always be a default rule (rule with - * priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a - * default rule with action "allow" will be added. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rules; - - /** - * [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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * User-provided name of the Organization firewall policy. The name should be unique in the - * organization in which the firewall policy is created. This field is not applicable to network - * firewall policies. This name must be set on creation and cannot be changed. The name must be - * 1-63 characters long, and comply with RFC1035. 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 shortName; - - /** - * A list of associations that belong to this firewall policy. - * @return value or {@code null} for none - */ - public java.util.List getAssociations() { - return associations; - } - - /** - * A list of associations that belong to this firewall policy. - * @param associations associations or {@code null} for none - */ - public FirewallPolicy setAssociations(java.util.List associations) { - this.associations = associations; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public FirewallPolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Deprecated, please use short name instead. User-provided name of the Organization firewall - * policy. The name should be unique in the organization in which the firewall policy is created. - * This field is not applicable to network firewall policies. This name must be set on creation - * and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. - * 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 getDisplayName() { - return displayName; - } - - /** - * Deprecated, please use short name instead. User-provided name of the Organization firewall - * policy. The name should be unique in the organization in which the firewall policy is created. - * This field is not applicable to network firewall policies. This name must be set on creation - * and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. - * 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 displayName displayName or {@code null} for none - */ - public FirewallPolicy setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the firewall policy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the firewall policy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the firewall policy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public FirewallPolicy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the firewall policy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public FirewallPolicy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public FirewallPolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies - * @param kind kind or {@code null} for none - */ - public FirewallPolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID - * allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID - * allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. - * @param name name or {@code null} for none - */ - public FirewallPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * A list of packet mirroring rules that belong to this policy. - * @return value or {@code null} for none - */ - public java.util.List getPacketMirroringRules() { - return packetMirroringRules; - } - - /** - * A list of packet mirroring rules that belong to this policy. - * @param packetMirroringRules packetMirroringRules or {@code null} for none - */ - public FirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { - this.packetMirroringRules = packetMirroringRules; - return this; - } - - /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. - * @return value or {@code null} for none - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. - * @param parent parent or {@code null} for none - */ - public FirewallPolicy setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - - /** - * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or - * ULL_POLICY. - * - * Note: if not specified then VPC_POLICY will be used. - * @return value or {@code null} for none - */ - public java.lang.String getPolicyType() { - return policyType; - } - - /** - * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or - * ULL_POLICY. - * - * Note: if not specified then VPC_POLICY will be used. - * @param policyType policyType or {@code null} for none - */ - public FirewallPolicy setPolicyType(java.lang.String policyType) { - this.policyType = policyType; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional firewall policy resides. This - * field is not applicable to global firewall policies. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional firewall policy resides. This - * field is not applicable to global firewall policies. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public FirewallPolicy setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy - * can not exceed a set number of tuples. - * @return value or {@code null} for none - */ - public java.lang.Integer getRuleTupleCount() { - return ruleTupleCount; - } - - /** - * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy - * can not exceed a set number of tuples. - * @param ruleTupleCount ruleTupleCount or {@code null} for none - */ - public FirewallPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { - this.ruleTupleCount = ruleTupleCount; - return this; - } - - /** - * A list of rules that belong to this policy. There must always be a default rule (rule with - * priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a - * default rule with action "allow" will be added. - * @return value or {@code null} for none - */ - public java.util.List getRules() { - return rules; - } - - /** - * A list of rules that belong to this policy. There must always be a default rule (rule with - * priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a - * default rule with action "allow" will be added. - * @param rules rules or {@code null} for none - */ - public FirewallPolicy setRules(java.util.List rules) { - this.rules = rules; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public FirewallPolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public FirewallPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * User-provided name of the Organization firewall policy. The name should be unique in the - * organization in which the firewall policy is created. This field is not applicable to network - * firewall policies. This name must be set on creation and cannot be changed. The name must be - * 1-63 characters long, and comply with RFC1035. 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 getShortName() { - return shortName; - } - - /** - * User-provided name of the Organization firewall policy. The name should be unique in the - * organization in which the firewall policy is created. This field is not applicable to network - * firewall policies. This name must be set on creation and cannot be changed. The name must be - * 1-63 characters long, and comply with RFC1035. 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 shortName shortName or {@code null} for none - */ - public FirewallPolicy setShortName(java.lang.String shortName) { - this.shortName = shortName; - return this; - } - - @Override - public FirewallPolicy set(String fieldName, Object value) { - return (FirewallPolicy) super.set(fieldName, value); - } - - @Override - public FirewallPolicy clone() { - return (FirewallPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyAssociation.java deleted file mode 100644 index 5ee25de27b5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyAssociation.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FirewallPolicyAssociation. - * - *

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 FirewallPolicyAssociation extends com.google.api.client.json.GenericJson { - - /** - * The target that the firewall policy is attached to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String attachmentTarget; - - /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy of the association. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Output only. [Output Only] The firewall policy ID of the association. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicyId; - - /** - * The name for an association. - * The value may be {@code null}. - */ - @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}. - */ - @com.google.api.client.util.Key - private java.lang.String shortName; - - /** - * The target that the firewall policy is attached to. - * @return value or {@code null} for none - */ - public java.lang.String getAttachmentTarget() { - return attachmentTarget; - } - - /** - * The target that the firewall policy is attached to. - * @param attachmentTarget attachmentTarget or {@code null} for none - */ - public FirewallPolicyAssociation setAttachmentTarget(java.lang.String attachmentTarget) { - this.attachmentTarget = attachmentTarget; - return this; - } - - /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy of the association. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy of the association. - * @param displayName displayName or {@code null} for none - */ - public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Output only. [Output Only] The firewall policy ID of the association. - * @return value or {@code null} for none - */ - public java.lang.String getFirewallPolicyId() { - return firewallPolicyId; - } - - /** - * Output only. [Output Only] The firewall policy ID of the association. - * @param firewallPolicyId firewallPolicyId or {@code null} for none - */ - public FirewallPolicyAssociation setFirewallPolicyId(java.lang.String firewallPolicyId) { - this.firewallPolicyId = firewallPolicyId; - return this; - } - - /** - * The name for an association. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name for an association. - * @param name name or {@code null} for none - */ - public FirewallPolicyAssociation setName(java.lang.String name) { - this.name = 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 - */ - public java.lang.String getShortName() { - return shortName; - } - - /** - * Output only. [Output Only] The short name of the firewall policy of the association. - * @param shortName shortName or {@code null} for none - */ - public FirewallPolicyAssociation setShortName(java.lang.String shortName) { - this.shortName = shortName; - return this; - } - - @Override - public FirewallPolicyAssociation set(String fieldName, Object value) { - return (FirewallPolicyAssociation) super.set(fieldName, value); - } - - @Override - public FirewallPolicyAssociation clone() { - return (FirewallPolicyAssociation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyList.java deleted file mode 100644 index ca2359fb5e0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyList.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FirewallPolicyList. - * - *

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 FirewallPolicyList extends com.google.api.client.json.GenericJson { - - /** - * [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 FirewallPolicy 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 FirewallPolicy 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(FirewallPolicy.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 FirewallPolicyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of FirewallPolicy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of FirewallPolicy resources. - * @param items items or {@code null} for none - */ - public FirewallPolicyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies - * @param kind kind or {@code null} for none - */ - public FirewallPolicyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public FirewallPolicyList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - 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 FirewallPolicyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public FirewallPolicyList set(String fieldName, Object value) { - return (FirewallPolicyList) super.set(fieldName, value); - } - - @Override - public FirewallPolicyList clone() { - return (FirewallPolicyList) 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 FirewallPolicyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRule.java deleted file mode 100644 index 32a0c5c39d4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRule.java +++ /dev/null @@ -1,541 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a rule that describes one or more match conditions along with the action to be taken - * when traffic matches this condition (allow or deny). - * - *

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 FirewallPolicyRule extends com.google.api.client.json.GenericJson { - - /** - * The Action to perform when the client connection triggers the rule. Valid actions for firewall - * rules are: "allow", "deny", "apply_security_profile_group" and "goto_next" ( - * "apply_security_profile_group" can be specified only for global network firewall policies or - * hierarchical firewall policies). Valid actions for packet mirroring rules are: "mirror", - * "do_not_mirror" and "goto_next". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String action; - - /** - * An optional description for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The direction in which this rule applies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String direction; - - /** - * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy - * rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the - * firewall policy rule will be enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean disabled; - - /** - * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be - * exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery - * or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableLogging; - - /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A match condition that incoming traffic is evaluated against. If it evaluates to true, the - * corresponding 'action' is enforced. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallPolicyRuleMatcher match; - - /** - * An integer indicating the priority of a rule in the list. The priority must be a positive value - * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the - * highest priority and 2147483647 is the lowest priority. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * An optional name for the rule. This field is not a unique identifier and can be updated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ruleName; - - /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ruleTupleCount; - - /** - * A fully-qualified URL of a SecurityProfileGroup resource instance. Example: https://networksecu - * rity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my- - * security-profile-group Must be specified if action is one of 'apply_security_profile_group' or - * 'mirror'. Cannot be specified for other actions. Can be specified only for global network - * firewall policies or hierarchical firewall policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityProfileGroup; - - /** - * A list of forwarding rules to which this rule applies. This field allows you to control which - * load balancers get this rule. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule - * - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forward - * ingRule - projects/project/global/ forwardingRules/forwardingRule - - * projects/project/regions/region/forwardingRules/ forwardingRule - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetForwardingRules; - - /** - * A list of network resource URLs to which this rule applies. This field allows you to control - * which network's VMs get this rule. If this field is left blank, all VMs within the - * organization will receive the rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetResources; - - /** - * A list of secure tags that controls which instances the firewall rule applies to. If - * targetSecureTag are specified, then the firewall rule applies only to instances in the VPC - * network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in - * INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same - * time astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag are - * specified, the firewall rule applies to all instances on the specified network. Maximum number - * of target label tags allowed is 256. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetSecureTags; - - /** - * A list of service accounts indicating the sets of instances that are applied with this rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetServiceAccounts; - - /** - * Target types of the firewall policy rule. Default value is INSTANCES. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetType; - - /** - * Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = - * 'apply_security_profile_group' and cannot be set for other actions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean tlsInspect; - - /** - * The Action to perform when the client connection triggers the rule. Valid actions for firewall - * rules are: "allow", "deny", "apply_security_profile_group" and "goto_next" ( - * "apply_security_profile_group" can be specified only for global network firewall policies or - * hierarchical firewall policies). Valid actions for packet mirroring rules are: "mirror", - * "do_not_mirror" and "goto_next". - * @return value or {@code null} for none - */ - public java.lang.String getAction() { - return action; - } - - /** - * The Action to perform when the client connection triggers the rule. Valid actions for firewall - * rules are: "allow", "deny", "apply_security_profile_group" and "goto_next" ( - * "apply_security_profile_group" can be specified only for global network firewall policies or - * hierarchical firewall policies). Valid actions for packet mirroring rules are: "mirror", - * "do_not_mirror" and "goto_next". - * @param action action or {@code null} for none - */ - public FirewallPolicyRule setAction(java.lang.String action) { - this.action = action; - return this; - } - - /** - * An optional description for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description for this resource. - * @param description description or {@code null} for none - */ - public FirewallPolicyRule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The direction in which this rule applies. - * @return value or {@code null} for none - */ - public java.lang.String getDirection() { - return direction; - } - - /** - * The direction in which this rule applies. - * @param direction direction or {@code null} for none - */ - public FirewallPolicyRule setDirection(java.lang.String direction) { - this.direction = direction; - return this; - } - - /** - * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy - * rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the - * firewall policy rule will be enabled. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDisabled() { - return disabled; - } - - /** - * Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy - * rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the - * firewall policy rule will be enabled. - * @param disabled disabled or {@code null} for none - */ - public FirewallPolicyRule setDisabled(java.lang.Boolean disabled) { - this.disabled = disabled; - return this; - } - - /** - * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be - * exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery - * or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableLogging() { - return enableLogging; - } - - /** - * Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be - * exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery - * or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. - * @param enableLogging enableLogging or {@code null} for none - */ - public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { - this.enableLogging = enableLogging; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. - * @param kind kind or {@code null} for none - */ - public FirewallPolicyRule setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A match condition that incoming traffic is evaluated against. If it evaluates to true, the - * corresponding 'action' is enforced. - * @return value or {@code null} for none - */ - public FirewallPolicyRuleMatcher getMatch() { - return match; - } - - /** - * A match condition that incoming traffic is evaluated against. If it evaluates to true, the - * corresponding 'action' is enforced. - * @param match match or {@code null} for none - */ - public FirewallPolicyRule setMatch(FirewallPolicyRuleMatcher match) { - this.match = match; - return this; - } - - /** - * An integer indicating the priority of a rule in the list. The priority must be a positive value - * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the - * highest priority and 2147483647 is the lowest priority. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * An integer indicating the priority of a rule in the list. The priority must be a positive value - * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the - * highest priority and 2147483647 is the lowest priority. - * @param priority priority or {@code null} for none - */ - public FirewallPolicyRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * An optional name for the rule. This field is not a unique identifier and can be updated. - * @return value or {@code null} for none - */ - public java.lang.String getRuleName() { - return ruleName; - } - - /** - * An optional name for the rule. This field is not a unique identifier and can be updated. - * @param ruleName ruleName or {@code null} for none - */ - public FirewallPolicyRule setRuleName(java.lang.String ruleName) { - this.ruleName = ruleName; - return this; - } - - /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. - * @return value or {@code null} for none - */ - public java.lang.Integer getRuleTupleCount() { - return ruleTupleCount; - } - - /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. - * @param ruleTupleCount ruleTupleCount or {@code null} for none - */ - public FirewallPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { - this.ruleTupleCount = ruleTupleCount; - return this; - } - - /** - * A fully-qualified URL of a SecurityProfileGroup resource instance. Example: https://networksecu - * rity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my- - * security-profile-group Must be specified if action is one of 'apply_security_profile_group' or - * 'mirror'. Cannot be specified for other actions. Can be specified only for global network - * firewall policies or hierarchical firewall policies. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityProfileGroup() { - return securityProfileGroup; - } - - /** - * A fully-qualified URL of a SecurityProfileGroup resource instance. Example: https://networksecu - * rity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my- - * security-profile-group Must be specified if action is one of 'apply_security_profile_group' or - * 'mirror'. Cannot be specified for other actions. Can be specified only for global network - * firewall policies or hierarchical firewall policies. - * @param securityProfileGroup securityProfileGroup or {@code null} for none - */ - public FirewallPolicyRule setSecurityProfileGroup(java.lang.String securityProfileGroup) { - this.securityProfileGroup = securityProfileGroup; - return this; - } - - /** - * A list of forwarding rules to which this rule applies. This field allows you to control which - * load balancers get this rule. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule - * - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forward - * ingRule - projects/project/global/ forwardingRules/forwardingRule - - * projects/project/regions/region/forwardingRules/ forwardingRule - * @return value or {@code null} for none - */ - public java.util.List getTargetForwardingRules() { - return targetForwardingRules; - } - - /** - * A list of forwarding rules to which this rule applies. This field allows you to control which - * load balancers get this rule. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/forwardingRules/forwardingRule - * - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forward - * ingRule - projects/project/global/ forwardingRules/forwardingRule - - * projects/project/regions/region/forwardingRules/ forwardingRule - * @param targetForwardingRules targetForwardingRules or {@code null} for none - */ - public FirewallPolicyRule setTargetForwardingRules(java.util.List targetForwardingRules) { - this.targetForwardingRules = targetForwardingRules; - return this; - } - - /** - * A list of network resource URLs to which this rule applies. This field allows you to control - * which network's VMs get this rule. If this field is left blank, all VMs within the - * organization will receive the rule. - * @return value or {@code null} for none - */ - public java.util.List getTargetResources() { - return targetResources; - } - - /** - * A list of network resource URLs to which this rule applies. This field allows you to control - * which network's VMs get this rule. If this field is left blank, all VMs within the - * organization will receive the rule. - * @param targetResources targetResources or {@code null} for none - */ - public FirewallPolicyRule setTargetResources(java.util.List targetResources) { - this.targetResources = targetResources; - return this; - } - - /** - * A list of secure tags that controls which instances the firewall rule applies to. If - * targetSecureTag are specified, then the firewall rule applies only to instances in the VPC - * network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in - * INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same - * time astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag are - * specified, the firewall rule applies to all instances on the specified network. Maximum number - * of target label tags allowed is 256. - * @return value or {@code null} for none - */ - public java.util.List getTargetSecureTags() { - return targetSecureTags; - } - - /** - * A list of secure tags that controls which instances the firewall rule applies to. If - * targetSecureTag are specified, then the firewall rule applies only to instances in the VPC - * network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in - * INEFFECTIVE state, then this rule will be ignored.targetSecureTag may not be set at the same - * time astargetServiceAccounts. If neither targetServiceAccounts nortargetSecureTag are - * specified, the firewall rule applies to all instances on the specified network. Maximum number - * of target label tags allowed is 256. - * @param targetSecureTags targetSecureTags or {@code null} for none - */ - public FirewallPolicyRule setTargetSecureTags(java.util.List targetSecureTags) { - this.targetSecureTags = targetSecureTags; - return this; - } - - /** - * A list of service accounts indicating the sets of instances that are applied with this rule. - * @return value or {@code null} for none - */ - public java.util.List getTargetServiceAccounts() { - return targetServiceAccounts; - } - - /** - * A list of service accounts indicating the sets of instances that are applied with this rule. - * @param targetServiceAccounts targetServiceAccounts or {@code null} for none - */ - public FirewallPolicyRule setTargetServiceAccounts(java.util.List targetServiceAccounts) { - this.targetServiceAccounts = targetServiceAccounts; - return this; - } - - /** - * Target types of the firewall policy rule. Default value is INSTANCES. - * @return value or {@code null} for none - */ - public java.lang.String getTargetType() { - return targetType; - } - - /** - * Target types of the firewall policy rule. Default value is INSTANCES. - * @param targetType targetType or {@code null} for none - */ - public FirewallPolicyRule setTargetType(java.lang.String targetType) { - this.targetType = targetType; - return this; - } - - /** - * Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = - * 'apply_security_profile_group' and cannot be set for other actions. - * @return value or {@code null} for none - */ - public java.lang.Boolean getTlsInspect() { - return tlsInspect; - } - - /** - * Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = - * 'apply_security_profile_group' and cannot be set for other actions. - * @param tlsInspect tlsInspect or {@code null} for none - */ - public FirewallPolicyRule setTlsInspect(java.lang.Boolean tlsInspect) { - this.tlsInspect = tlsInspect; - return this; - } - - @Override - public FirewallPolicyRule set(String fieldName, Object value) { - return (FirewallPolicyRule) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRule clone() { - return (FirewallPolicyRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcher.java deleted file mode 100644 index c6857106da5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcher.java +++ /dev/null @@ -1,499 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a match condition that incoming traffic is evaluated against. Exactly one field must - * be specified. - * - *

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 FirewallPolicyRuleMatcher extends com.google.api.client.json.GenericJson { - - /** - * Address groups which should be matched against the traffic destination. Maximum number of - * destination address groups is 10. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destAddressGroups; - - /** - * Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum - * number of destination fqdn allowed is 100. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destFqdns; - - /** - * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destIpRanges; - - /** - * Network context of the traffic destination. Allowed values are: - UNSPECIFIED - * - INTERNET - NON_INTERNET - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destNetworkContext; - - /** - * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - - * INTERNET - NON_INTERNET - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destNetworkType; - - /** - * Region codes whose IP addresses will be used to match for destination of traffic. Should be - * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" - * Maximum number of dest region codes allowed is 5000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destRegionCodes; - - /** - * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against - * traffic destination. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destThreatIntelligences; - - /** - * Pairs of IP protocols and ports that the rule should match. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List layer4Configs; - - /** - * Address groups which should be matched against the traffic source. Maximum number of source - * address groups is 10. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcAddressGroups; - - /** - * Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum - * number of source fqdn allowed is 100. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcFqdns; - - /** - * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcIpRanges; - - /** - * Network context of the traffic source. Allowed values are: - UNSPECIFIED - - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String srcNetworkContext; - - /** - * Network type of the traffic source. Allowed values are: - UNSPECIFIED - - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String srcNetworkType; - - /** - * Networks of the traffic source. It can be either a full or partial url. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcNetworks; - - /** - * Region codes whose IP addresses will be used to match for source of traffic. Should be - * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" - * Maximum number of source region codes allowed is 5000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcRegionCodes; - - /** - * List of secure tag values, which should be matched at the source of the traffic. For INGRESS - * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be - * ignored. Maximum number of source tag values allowed is 256. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcSecureTags; - - /** - * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against - * traffic source. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcThreatIntelligences; - - /** - * Address groups which should be matched against the traffic destination. Maximum number of - * destination address groups is 10. - * @return value or {@code null} for none - */ - public java.util.List getDestAddressGroups() { - return destAddressGroups; - } - - /** - * Address groups which should be matched against the traffic destination. Maximum number of - * destination address groups is 10. - * @param destAddressGroups destAddressGroups or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestAddressGroups(java.util.List destAddressGroups) { - this.destAddressGroups = destAddressGroups; - return this; - } - - /** - * Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum - * number of destination fqdn allowed is 100. - * @return value or {@code null} for none - */ - public java.util.List getDestFqdns() { - return destFqdns; - } - - /** - * Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum - * number of destination fqdn allowed is 100. - * @param destFqdns destFqdns or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestFqdns(java.util.List destFqdns) { - this.destFqdns = destFqdns; - return this; - } - - /** - * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. - * @return value or {@code null} for none - */ - public java.util.List getDestIpRanges() { - return destIpRanges; - } - - /** - * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. - * @param destIpRanges destIpRanges or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List destIpRanges) { - this.destIpRanges = destIpRanges; - return this; - } - - /** - * Network context of the traffic destination. Allowed values are: - UNSPECIFIED - * - INTERNET - NON_INTERNET - * @return value or {@code null} for none - */ - public java.lang.String getDestNetworkContext() { - return destNetworkContext; - } - - /** - * Network context of the traffic destination. Allowed values are: - UNSPECIFIED - * - INTERNET - NON_INTERNET - * @param destNetworkContext destNetworkContext or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestNetworkContext(java.lang.String destNetworkContext) { - this.destNetworkContext = destNetworkContext; - return this; - } - - /** - * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - - * INTERNET - NON_INTERNET - * @return value or {@code null} for none - */ - public java.lang.String getDestNetworkType() { - return destNetworkType; - } - - /** - * Network type of the traffic destination. Allowed values are: - UNSPECIFIED - - * INTERNET - NON_INTERNET - * @param destNetworkType destNetworkType or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestNetworkType(java.lang.String destNetworkType) { - this.destNetworkType = destNetworkType; - return this; - } - - /** - * Region codes whose IP addresses will be used to match for destination of traffic. Should be - * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" - * Maximum number of dest region codes allowed is 5000. - * @return value or {@code null} for none - */ - public java.util.List getDestRegionCodes() { - return destRegionCodes; - } - - /** - * Region codes whose IP addresses will be used to match for destination of traffic. Should be - * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" - * Maximum number of dest region codes allowed is 5000. - * @param destRegionCodes destRegionCodes or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestRegionCodes(java.util.List destRegionCodes) { - this.destRegionCodes = destRegionCodes; - return this; - } - - /** - * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against - * traffic destination. - * @return value or {@code null} for none - */ - public java.util.List getDestThreatIntelligences() { - return destThreatIntelligences; - } - - /** - * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against - * traffic destination. - * @param destThreatIntelligences destThreatIntelligences or {@code null} for none - */ - public FirewallPolicyRuleMatcher setDestThreatIntelligences(java.util.List destThreatIntelligences) { - this.destThreatIntelligences = destThreatIntelligences; - return this; - } - - /** - * Pairs of IP protocols and ports that the rule should match. - * @return value or {@code null} for none - */ - public java.util.List getLayer4Configs() { - return layer4Configs; - } - - /** - * Pairs of IP protocols and ports that the rule should match. - * @param layer4Configs layer4Configs or {@code null} for none - */ - public FirewallPolicyRuleMatcher setLayer4Configs(java.util.List layer4Configs) { - this.layer4Configs = layer4Configs; - return this; - } - - /** - * Address groups which should be matched against the traffic source. Maximum number of source - * address groups is 10. - * @return value or {@code null} for none - */ - public java.util.List getSrcAddressGroups() { - return srcAddressGroups; - } - - /** - * Address groups which should be matched against the traffic source. Maximum number of source - * address groups is 10. - * @param srcAddressGroups srcAddressGroups or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcAddressGroups(java.util.List srcAddressGroups) { - this.srcAddressGroups = srcAddressGroups; - return this; - } - - /** - * Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum - * number of source fqdn allowed is 100. - * @return value or {@code null} for none - */ - public java.util.List getSrcFqdns() { - return srcFqdns; - } - - /** - * Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum - * number of source fqdn allowed is 100. - * @param srcFqdns srcFqdns or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcFqdns(java.util.List srcFqdns) { - this.srcFqdns = srcFqdns; - return this; - } - - /** - * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. - * @return value or {@code null} for none - */ - public java.util.List getSrcIpRanges() { - return srcIpRanges; - } - - /** - * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. - * @param srcIpRanges srcIpRanges or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcIpRanges(java.util.List srcIpRanges) { - this.srcIpRanges = srcIpRanges; - return this; - } - - /** - * Network context of the traffic source. Allowed values are: - UNSPECIFIED - - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - * @return value or {@code null} for none - */ - public java.lang.String getSrcNetworkContext() { - return srcNetworkContext; - } - - /** - * Network context of the traffic source. Allowed values are: - UNSPECIFIED - - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - * @param srcNetworkContext srcNetworkContext or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcNetworkContext(java.lang.String srcNetworkContext) { - this.srcNetworkContext = srcNetworkContext; - return this; - } - - /** - * Network type of the traffic source. Allowed values are: - UNSPECIFIED - - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - * @return value or {@code null} for none - */ - public java.lang.String getSrcNetworkType() { - return srcNetworkType; - } - - /** - * Network type of the traffic source. Allowed values are: - UNSPECIFIED - - * INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - * @param srcNetworkType srcNetworkType or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcNetworkType(java.lang.String srcNetworkType) { - this.srcNetworkType = srcNetworkType; - return this; - } - - /** - * Networks of the traffic source. It can be either a full or partial url. - * @return value or {@code null} for none - */ - public java.util.List getSrcNetworks() { - return srcNetworks; - } - - /** - * Networks of the traffic source. It can be either a full or partial url. - * @param srcNetworks srcNetworks or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcNetworks(java.util.List srcNetworks) { - this.srcNetworks = srcNetworks; - return this; - } - - /** - * Region codes whose IP addresses will be used to match for source of traffic. Should be - * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" - * Maximum number of source region codes allowed is 5000. - * @return value or {@code null} for none - */ - public java.util.List getSrcRegionCodes() { - return srcRegionCodes; - } - - /** - * Region codes whose IP addresses will be used to match for source of traffic. Should be - * specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" - * Maximum number of source region codes allowed is 5000. - * @param srcRegionCodes srcRegionCodes or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcRegionCodes(java.util.List srcRegionCodes) { - this.srcRegionCodes = srcRegionCodes; - return this; - } - - /** - * List of secure tag values, which should be matched at the source of the traffic. For INGRESS - * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be - * ignored. Maximum number of source tag values allowed is 256. - * @return value or {@code null} for none - */ - public java.util.List getSrcSecureTags() { - return srcSecureTags; - } - - /** - * List of secure tag values, which should be matched at the source of the traffic. For INGRESS - * rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be - * ignored. Maximum number of source tag values allowed is 256. - * @param srcSecureTags srcSecureTags or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcSecureTags(java.util.List srcSecureTags) { - this.srcSecureTags = srcSecureTags; - return this; - } - - /** - * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against - * traffic source. - * @return value or {@code null} for none - */ - public java.util.List getSrcThreatIntelligences() { - return srcThreatIntelligences; - } - - /** - * Names of Network Threat Intelligence lists. The IPs in these lists will be matched against - * traffic source. - * @param srcThreatIntelligences srcThreatIntelligences or {@code null} for none - */ - public FirewallPolicyRuleMatcher setSrcThreatIntelligences(java.util.List srcThreatIntelligences) { - this.srcThreatIntelligences = srcThreatIntelligences; - return this; - } - - @Override - public FirewallPolicyRuleMatcher set(String fieldName, Object value) { - return (FirewallPolicyRuleMatcher) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRuleMatcher clone() { - return (FirewallPolicyRuleMatcher) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcherLayer4Config.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcherLayer4Config.java deleted file mode 100644 index 1bb89b0da8c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleMatcherLayer4Config.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FirewallPolicyRuleMatcherLayer4Config. - * - *

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 FirewallPolicyRuleMatcherLayer4Config extends com.google.api.client.json.GenericJson { - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings - * (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP protocol number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipProtocol; - - /** - * An optional list of ports to which this rule applies. This field is only applicable for UDP or - * TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"],["80","443"], and ["12345-12349"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ports; - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings - * (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP protocol number. - * @return value or {@code null} for none - */ - public java.lang.String getIpProtocol() { - return ipProtocol; - } - - /** - * The IP protocol to which this rule applies. The protocol type is required when creating a - * firewall rule. This value can either be one of the following well known protocol strings - * (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP protocol number. - * @param ipProtocol ipProtocol or {@code null} for none - */ - public FirewallPolicyRuleMatcherLayer4Config setIpProtocol(java.lang.String ipProtocol) { - this.ipProtocol = ipProtocol; - return this; - } - - /** - * An optional list of ports to which this rule applies. This field is only applicable for UDP or - * TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"],["80","443"], and ["12345-12349"]. - * @return value or {@code null} for none - */ - public java.util.List getPorts() { - return ports; - } - - /** - * An optional list of ports to which this rule applies. This field is only applicable for UDP or - * TCP protocol. Each entry must be either an integer or a range. If not specified, this rule - * applies to connections through any port. - * - * Example inputs include: ["22"],["80","443"], and ["12345-12349"]. - * @param ports ports or {@code null} for none - */ - public FirewallPolicyRuleMatcherLayer4Config setPorts(java.util.List ports) { - this.ports = ports; - return this; - } - - @Override - public FirewallPolicyRuleMatcherLayer4Config set(String fieldName, Object value) { - return (FirewallPolicyRuleMatcherLayer4Config) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRuleMatcherLayer4Config clone() { - return (FirewallPolicyRuleMatcherLayer4Config) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleSecureTag.java deleted file mode 100644 index 4e96458f7c3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FirewallPolicyRuleSecureTag.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FirewallPolicyRuleSecureTag. - * - *

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 FirewallPolicyRuleSecureTag extends com.google.api.client.json.GenericJson { - - /** - * Name of the secure tag, created with TagManager's TagValue API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A - * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Name of the secure tag, created with TagManager's TagValue API. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the secure tag, created with TagManager's TagValue API. - * @param name name or {@code null} for none - */ - public FirewallPolicyRuleSecureTag setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A - * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] State of the secure tag, either `EFFECTIVE` or `INEFFECTIVE`. A - * secure tag is `INEFFECTIVE` when it is deleted or its network is deleted. - * @param state state or {@code null} for none - */ - public FirewallPolicyRuleSecureTag setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public FirewallPolicyRuleSecureTag set(String fieldName, Object value) { - return (FirewallPolicyRuleSecureTag) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRuleSecureTag clone() { - return (FirewallPolicyRuleSecureTag) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FixedOrPercent.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FixedOrPercent.java deleted file mode 100644 index d133e5f8ea3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FixedOrPercent.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * 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.preview.model; - -/** - * Encapsulates numeric value that can be either absolute or relative. - * - *

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 FixedOrPercent extends com.google.api.client.json.GenericJson { - - /** - * Output only. Absolute value of VM instances calculated based on the specific mode. - * - * - If the value is fixed, then the calculated value is equal to the fixed - * value. - If the value is a percent, then the calculated value is percent/100 * - * targetSize. For example, the calculated value of a 80% of a managed instance group - * with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, - * the number is rounded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer calculated; - - /** - * Specifies a fixed number of VM instances. This must be a positive integer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer fixed; - - /** - * Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for - * 80%. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer percent; - - /** - * Output only. Absolute value of VM instances calculated based on the specific mode. - * - * - If the value is fixed, then the calculated value is equal to the fixed - * value. - If the value is a percent, then the calculated value is percent/100 * - * targetSize. For example, the calculated value of a 80% of a managed instance group - * with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, - * the number is rounded. - * @return value or {@code null} for none - */ - public java.lang.Integer getCalculated() { - return calculated; - } - - /** - * Output only. Absolute value of VM instances calculated based on the specific mode. - * - * - If the value is fixed, then the calculated value is equal to the fixed - * value. - If the value is a percent, then the calculated value is percent/100 * - * targetSize. For example, the calculated value of a 80% of a managed instance group - * with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, - * the number is rounded. - * @param calculated calculated or {@code null} for none - */ - public FixedOrPercent setCalculated(java.lang.Integer calculated) { - this.calculated = calculated; - return this; - } - - /** - * Specifies a fixed number of VM instances. This must be a positive integer. - * @return value or {@code null} for none - */ - public java.lang.Integer getFixed() { - return fixed; - } - - /** - * Specifies a fixed number of VM instances. This must be a positive integer. - * @param fixed fixed or {@code null} for none - */ - public FixedOrPercent setFixed(java.lang.Integer fixed) { - this.fixed = fixed; - return this; - } - - /** - * Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for - * 80%. - * @return value or {@code null} for none - */ - public java.lang.Integer getPercent() { - return percent; - } - - /** - * Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for - * 80%. - * @param percent percent or {@code null} for none - */ - public FixedOrPercent setPercent(java.lang.Integer percent) { - this.percent = percent; - return this; - } - - @Override - public FixedOrPercent set(String fieldName, Object value) { - return (FixedOrPercent) super.set(fieldName, value); - } - - @Override - public FixedOrPercent clone() { - return (FixedOrPercent) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FlexibleTimeRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FlexibleTimeRange.java deleted file mode 100644 index 15f4e5ca7d3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FlexibleTimeRange.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies a flexible time range with flexible start time and duration. - * - * It is possible to specify a contradictory time range that cannot be matched by any Interval. This - * causes a validation error. - * - *

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 FlexibleTimeRange extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String maxDuration; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String minDuration; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String startTimeNotEarlierThan; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String startTimeNotLaterThan; - - /** - * @return value or {@code null} for none - */ - public String getMaxDuration() { - return maxDuration; - } - - /** - * @param maxDuration maxDuration or {@code null} for none - */ - public FlexibleTimeRange setMaxDuration(String maxDuration) { - this.maxDuration = maxDuration; - return this; - } - - /** - * @return value or {@code null} for none - */ - public String getMinDuration() { - return minDuration; - } - - /** - * @param minDuration minDuration or {@code null} for none - */ - public FlexibleTimeRange setMinDuration(String minDuration) { - this.minDuration = minDuration; - return this; - } - - /** - * @return value or {@code null} for none - */ - public String getStartTimeNotEarlierThan() { - return startTimeNotEarlierThan; - } - - /** - * @param startTimeNotEarlierThan startTimeNotEarlierThan or {@code null} for none - */ - public FlexibleTimeRange setStartTimeNotEarlierThan(String startTimeNotEarlierThan) { - this.startTimeNotEarlierThan = startTimeNotEarlierThan; - return this; - } - - /** - * @return value or {@code null} for none - */ - public String getStartTimeNotLaterThan() { - return startTimeNotLaterThan; - } - - /** - * @param startTimeNotLaterThan startTimeNotLaterThan or {@code null} for none - */ - public FlexibleTimeRange setStartTimeNotLaterThan(String startTimeNotLaterThan) { - this.startTimeNotLaterThan = startTimeNotLaterThan; - return this; - } - - @Override - public FlexibleTimeRange set(String fieldName, Object value) { - return (FlexibleTimeRange) super.set(fieldName, value); - } - - @Override - public FlexibleTimeRange clone() { - return (FlexibleTimeRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRule.java deleted file mode 100644 index 171e3317157..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRule.java +++ /dev/null @@ -1,1754 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Forwarding Rule resource. - * - * Forwarding rule resources in Google Cloud can be either regional or global in scope: - * - * * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) * - * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) - * - * A forwarding rule and its corresponding IP address represent the frontend configuration of a - * Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN - * Classic gateways (targetVpnGateway). - * - * For more information, read Forwarding rule concepts and Using protocol forwarding. - * - *

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 ForwardingRule extends com.google.api.client.json.GenericJson { - - /** - * IP address for which this forwarding rule accepts traffic. When a client sends traffic to this - * IP address, the forwarding rule directs the traffic to the referenced target or backendService. - * While creating a forwarding rule, specifying an IPAddress is required under the following - * circumstances: - * - * - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, - * theIPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google - * APIs bundle, you must specify an IPAddress. - * - * Otherwise, you can optionally specify an IP address that references an existing static - * (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. - * - * Use one of the following formats to specify an IP address while creating a forwarding rule: - * - * * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full - * resource URL, as - * inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- - * name * Partial URL or by name, as in: - - * projects/project_id/regions/region/addresses/address-name - - * regions/region/addresses/address-name - global/addresses/address-name - address-name - * - * The IP address can only be set at creation. Once set, it cannot be updated. - * - * The forwarding rule's target or backendService, and in most cases, also the - * loadBalancingScheme, determine the type of IP address that you can use. For detailed - * information, see [IP address specifications](https://cloud.google.com/load- - * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - * - * When reading an IPAddress, the API always returns the IP address number. - * - * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent - * forwarding rule), you must use theIPAddresses field, but the Google Cloud generated child - * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for - * further details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPAddress") - private java.lang.String iPAddress; - - /** - * The IP protocol to which this rule applies. - * - * For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. - * - * The valid IP protocols are different for different load balancing products as described in - * [Load balancing features](https://cloud.google.com/load- - * balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPProtocol") - private java.lang.String iPProtocol; - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The allPorts field has the following limitations: - It requires that the forwarding rule - * IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following - * products: internal passthrough Network Load Balancers, backend service-based external - * passthrough Network Load Balancers, and internal and external protocol forwarding. - Set - * this field to true to allow packets addressed to any port or packets lacking destination - * port information (for example, UDP fragments after the first fragment) to be forwarded to - * the backends configured with this forwarding rule. The L3_DEFAULT protocol requiresallPorts - * be set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allPorts; - - /** - * If set to true, clients can access the internal passthrough Network Load Balancers, the - * regional internal Application Load Balancer, and the regional internal proxy Network Load - * Balancer from all regions. If false, only allows access from the local region the load balancer - * is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed - * after the forwarding rule is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowGlobalAccess; - - /** - * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed - * from another region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowPscGlobalAccess; - - /** - * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List attachedExtensions; - - /** - * Identifies the backend service to which the forwarding rule sends traffic. - * - * It is a required field for the following load balancers: - Internal passthrough Network - * Load Balancers - Backend service-based regional external passthrough Network Load - * Balancers - Global external passthrough Network Load Balancers - * - * It cannot be set by other load balancer types and protocol forwarding rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** - * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base - * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port - * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty - * if the current forwarding rule does not have sourceIPRanges specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String baseForwardingRule; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Specifies the canary migration state for the backend buckets attached to this forwarding rule. - * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. - * - * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. - * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to - * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to - * backend buckets attached to this forwarding rule by percentage using - * externalManagedBackendBucketMigrationTestingPercentage. - * - * Rolling back a migration requires the states to be set in reverse order. So changing the scheme - * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same - * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to - * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalManagedBackendBucketMigrationState; - - /** - * Determines the fraction of requests to backend buckets that should be processed by the global - * external Application Load Balancer. - * - * The value of this field must be in the range [0, 100]. - * - * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL - * (when using the classic Application Load Balancer) and the migration state is - * TEST_BY_PERCENTAGE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float externalManagedBackendBucketMigrationTestingPercentage; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the - * fingerprint in patch request to ensure that you do not overwrite changes that were applied from - * another concurrent request. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * [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; - - /** - * Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in - * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - * - * Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding - * rule using BYOIP: Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projec - * t_id/regions/region/publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - - * projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - - * regions/region/publicDelegatedPrefixes/sub-pdp-name - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCollection; - - /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipVersion; - - /** - * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To - * prevent mirroring loops, instances behind this load balancer will not have their traffic - * mirrored even if aPacketMirroring rule applies to them. This can only be set to true for load - * balancers that have theirloadBalancingScheme set to INTERNAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isMirroringCollector; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this resource, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Specifies the forwarding rule type. - * - * For more information, refer to Forwarding rule product and scheme table. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String loadBalancingScheme; - - /** - * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set - * of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node - * metadata. When there is a match, the relevant configuration is made available to those proxies. - * Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) referenced by the ForwardingRule are - * not visible to those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least - * one of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of - * them need to be satisfied in order to be considered a match. - * - * metadataFilters specified here will be applifed before those specified in the UrlMap that - * thisForwardingRule references. - * - * metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set - * toINTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metadataFilters; - - /** - * Name of the resource; provided by the client 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. - * - * For Private Service Connect forwarding rules that forward traffic to Google APIs, the - * forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and - * must start with a letter. - * - * For global external Passthrough Network Load Balancer forwarding rules, the forwarding rule - * name must be 1-43 characters long. For each global external Passthrough Network Load Balancer - * forwarding rule (a parent forwarding rule) that you create, Google Cloud generates two output- - * only child forwarding rules that are named by concatenating the parent forwarding rule name - * with the `-ag0` and `-ag1` suffixes, respectively. Refer to theavailabilityGroup field for - * further details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * This field is not used for global external load balancing. - * - * For internal passthrough Network Load Balancers, this field identifies the network that the - * load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the - * network of the subnetwork will be used. If neither subnetwork nor this field is specified, the - * default network will be used. - * - * For Private Service Connect forwarding rules that forward traffic to Google APIs, a network - * must be provided. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * This signifies the networking tier used for configuring this load balancer and can only take - * the following values:PREMIUM, STANDARD. - * - * For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For - * GlobalForwardingRule, the valid value isPREMIUM. - * - * If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this - * value must be equal to the networkTier of the Address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkTier; - - /** - * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a - * DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not - * mutable. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noAutomateDnsZone; - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The portRange field has the following limitations: - It requires that the forwarding - * rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following - * products: external passthrough Network Load Balancers, internal and external proxy Network - * Load Balancers, internal and external Application Load Balancers, external protocol - * forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. - * See port specifications for details. - * - * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, - * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they have - * overlapping portRanges. - * - * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot - * use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. - * - * @pattern: \\d+(?:-\\d+)? - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portRange; - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The ports field has the following limitations: - It requires that the forwarding rule - * IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: - * internal passthrough Network Load Balancers, backend service-based external passthrough - * Network Load Balancers, and internal protocol forwarding. - You can specify a list of up - * to five ports by number, separated by commas. The ports can be contiguous or discontiguous. - * - * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, - * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they share at least - * one port number. - * - * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot - * use the same [IPAddress, IPProtocol] pair if they share at least one port number. - * - * @pattern: \\d+(?:-\\d+)? - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ports; - - /** - * [Output Only] The PSC connection id of the PSC forwarding rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger pscConnectionId; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pscConnectionStatus; - - /** - * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This - * field is not applicable to global forwarding rules. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Service Directory resources to register this forwarding rule with. Currently, only supports a - * single Service Directory resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List serviceDirectoryRegistrations; - - /** - * An optional prefix to the service name for this forwarding rule. If specified, the prefix is - * the first label of the fully qualified service name. - * - * The label must be 1-63 characters long, and comply withRFC1035. Specifically, the label 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. - * - * This field is only used for internal load balancing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceLabel; - - /** - * [Output Only] The internal fully qualified service name for this forwarding rule. - * - * This field is only used for internal load balancing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceName; - - /** - * If not empty, this forwarding rule will only forward the traffic when the source IP address - * matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only - * have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule - * whose scheme isEXTERNAL. Each source_ip_range entry should be either an IP address (for - * example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceIpRanges; - - /** - * This field identifies the subnetwork that the load balanced IP should belong to for this - * forwarding rule, used with internal load balancers and external passthrough Network Load - * Balancers with IPv6. - * - * If the network specified is in auto subnet mode, this field is optional. However, a subnetwork - * must be specified if the network is in custom subnet mode or when creating external forwarding - * rule with IPv6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * The URL of the target resource to receive the matched traffic. For regional forwarding rules, - * this target must be in the same region as the forwarding rule. For global forwarding rules, - * this target must be a global load balancing resource. - * - * The forwarded traffic must be of a type appropriate to the target object. - For - * load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load- - * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service - * Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported - * Google API bundle: - vpc-sc - APIs that support VPC Service - * Controls. - all-apis - All supported Google APIs. - For - * Private Service Connect forwarding rules that forward traffic to managed services, the target - * must be a service attachment. The target is not mutable once set as a service attachment. - * - * The following load balancers cannot set the target field (they should set the backendService - * field instead): - Internal passthrough Network Load Balancers - Backend service-based - * regional external passthrough Network Load Balancers - Global external passthrough - * Network Load Balancers - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String target; - - /** - * IP address for which this forwarding rule accepts traffic. When a client sends traffic to this - * IP address, the forwarding rule directs the traffic to the referenced target or backendService. - * While creating a forwarding rule, specifying an IPAddress is required under the following - * circumstances: - * - * - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, - * theIPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google - * APIs bundle, you must specify an IPAddress. - * - * Otherwise, you can optionally specify an IP address that references an existing static - * (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. - * - * Use one of the following formats to specify an IP address while creating a forwarding rule: - * - * * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full - * resource URL, as - * inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- - * name * Partial URL or by name, as in: - - * projects/project_id/regions/region/addresses/address-name - - * regions/region/addresses/address-name - global/addresses/address-name - address-name - * - * The IP address can only be set at creation. Once set, it cannot be updated. - * - * The forwarding rule's target or backendService, and in most cases, also the - * loadBalancingScheme, determine the type of IP address that you can use. For detailed - * information, see [IP address specifications](https://cloud.google.com/load- - * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - * - * When reading an IPAddress, the API always returns the IP address number. - * - * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent - * forwarding rule), you must use theIPAddresses field, but the Google Cloud generated child - * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for - * further details. - * @return value or {@code null} for none - */ - public java.lang.String getIPAddress() { - return iPAddress; - } - - /** - * IP address for which this forwarding rule accepts traffic. When a client sends traffic to this - * IP address, the forwarding rule directs the traffic to the referenced target or backendService. - * While creating a forwarding rule, specifying an IPAddress is required under the following - * circumstances: - * - * - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, - * theIPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google - * APIs bundle, you must specify an IPAddress. - * - * Otherwise, you can optionally specify an IP address that references an existing static - * (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. - * - * Use one of the following formats to specify an IP address while creating a forwarding rule: - * - * * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full - * resource URL, as - * inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address- - * name * Partial URL or by name, as in: - - * projects/project_id/regions/region/addresses/address-name - - * regions/region/addresses/address-name - global/addresses/address-name - address-name - * - * The IP address can only be set at creation. Once set, it cannot be updated. - * - * The forwarding rule's target or backendService, and in most cases, also the - * loadBalancingScheme, determine the type of IP address that you can use. For detailed - * information, see [IP address specifications](https://cloud.google.com/load- - * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - * - * When reading an IPAddress, the API always returns the IP address number. - * - * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent - * forwarding rule), you must use theIPAddresses field, but the Google Cloud generated child - * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for - * further details. - * @param iPAddress iPAddress or {@code null} for none - */ - public ForwardingRule setIPAddress(java.lang.String iPAddress) { - this.iPAddress = iPAddress; - return this; - } - - /** - * The IP protocol to which this rule applies. - * - * For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. - * - * The valid IP protocols are different for different load balancing products as described in - * [Load balancing features](https://cloud.google.com/load- - * balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). - * @return value or {@code null} for none - */ - public java.lang.String getIPProtocol() { - return iPProtocol; - } - - /** - * The IP protocol to which this rule applies. - * - * For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, ICMP andL3_DEFAULT. - * - * The valid IP protocols are different for different load balancing products as described in - * [Load balancing features](https://cloud.google.com/load- - * balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). - * @param iPProtocol iPProtocol or {@code null} for none - */ - public ForwardingRule setIPProtocol(java.lang.String iPProtocol) { - this.iPProtocol = iPProtocol; - return this; - } - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The allPorts field has the following limitations: - It requires that the forwarding rule - * IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following - * products: internal passthrough Network Load Balancers, backend service-based external - * passthrough Network Load Balancers, and internal and external protocol forwarding. - Set - * this field to true to allow packets addressed to any port or packets lacking destination - * port information (for example, UDP fragments after the first fragment) to be forwarded to - * the backends configured with this forwarding rule. The L3_DEFAULT protocol requiresallPorts - * be set to true. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllPorts() { - return allPorts; - } - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The allPorts field has the following limitations: - It requires that the forwarding rule - * IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following - * products: internal passthrough Network Load Balancers, backend service-based external - * passthrough Network Load Balancers, and internal and external protocol forwarding. - Set - * this field to true to allow packets addressed to any port or packets lacking destination - * port information (for example, UDP fragments after the first fragment) to be forwarded to - * the backends configured with this forwarding rule. The L3_DEFAULT protocol requiresallPorts - * be set to true. - * @param allPorts allPorts or {@code null} for none - */ - public ForwardingRule setAllPorts(java.lang.Boolean allPorts) { - this.allPorts = allPorts; - return this; - } - - /** - * If set to true, clients can access the internal passthrough Network Load Balancers, the - * regional internal Application Load Balancer, and the regional internal proxy Network Load - * Balancer from all regions. If false, only allows access from the local region the load balancer - * is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed - * after the forwarding rule is created. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllowGlobalAccess() { - return allowGlobalAccess; - } - - /** - * If set to true, clients can access the internal passthrough Network Load Balancers, the - * regional internal Application Load Balancer, and the regional internal proxy Network Load - * Balancer from all regions. If false, only allows access from the local region the load balancer - * is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed - * after the forwarding rule is created. - * @param allowGlobalAccess allowGlobalAccess or {@code null} for none - */ - public ForwardingRule setAllowGlobalAccess(java.lang.Boolean allowGlobalAccess) { - this.allowGlobalAccess = allowGlobalAccess; - return this; - } - - /** - * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed - * from another region. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllowPscGlobalAccess() { - return allowPscGlobalAccess; - } - - /** - * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed - * from another region. - * @param allowPscGlobalAccess allowPscGlobalAccess or {@code null} for none - */ - public ForwardingRule setAllowPscGlobalAccess(java.lang.Boolean allowPscGlobalAccess) { - this.allowPscGlobalAccess = allowPscGlobalAccess; - return this; - } - - /** - * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. - * @return value or {@code null} for none - */ - public java.util.List getAttachedExtensions() { - return attachedExtensions; - } - - /** - * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. - * @param attachedExtensions attachedExtensions or {@code null} for none - */ - public ForwardingRule setAttachedExtensions(java.util.List attachedExtensions) { - this.attachedExtensions = attachedExtensions; - return this; - } - - /** - * Identifies the backend service to which the forwarding rule sends traffic. - * - * It is a required field for the following load balancers: - Internal passthrough Network - * Load Balancers - Backend service-based regional external passthrough Network Load - * Balancers - Global external passthrough Network Load Balancers - * - * It cannot be set by other load balancer types and protocol forwarding rules. - * @return value or {@code null} for none - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * Identifies the backend service to which the forwarding rule sends traffic. - * - * It is a required field for the following load balancers: - Internal passthrough Network - * Load Balancers - Backend service-based regional external passthrough Network Load - * Balancers - Global external passthrough Network Load Balancers - * - * It cannot be set by other load balancer types and protocol forwarding rules. - * @param backendService backendService or {@code null} for none - */ - public ForwardingRule setBackendService(java.lang.String backendService) { - this.backendService = backendService; - return this; - } - - /** - * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base - * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port - * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty - * if the current forwarding rule does not have sourceIPRanges specified. - * @return value or {@code null} for none - */ - public java.lang.String getBaseForwardingRule() { - return baseForwardingRule; - } - - /** - * Output only. [Output Only] The URL for the corresponding base forwarding rule. By base - * forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port - * settings with the current forwarding rule, but without sourceIPRanges specified. Always empty - * if the current forwarding rule does not have sourceIPRanges specified. - * @param baseForwardingRule baseForwardingRule or {@code null} for none - */ - public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) { - this.baseForwardingRule = baseForwardingRule; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public ForwardingRule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Specifies the canary migration state for the backend buckets attached to this forwarding rule. - * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. - * - * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. - * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to - * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to - * backend buckets attached to this forwarding rule by percentage using - * externalManagedBackendBucketMigrationTestingPercentage. - * - * Rolling back a migration requires the states to be set in reverse order. So changing the scheme - * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same - * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to - * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. - * @return value or {@code null} for none - */ - public java.lang.String getExternalManagedBackendBucketMigrationState() { - return externalManagedBackendBucketMigrationState; - } - - /** - * Specifies the canary migration state for the backend buckets attached to this forwarding rule. - * Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. - * - * To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. - * The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to - * EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to - * backend buckets attached to this forwarding rule by percentage using - * externalManagedBackendBucketMigrationTestingPercentage. - * - * Rolling back a migration requires the states to be set in reverse order. So changing the scheme - * from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same - * time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to - * EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL. - * @param externalManagedBackendBucketMigrationState externalManagedBackendBucketMigrationState or {@code null} for none - */ - public ForwardingRule setExternalManagedBackendBucketMigrationState(java.lang.String externalManagedBackendBucketMigrationState) { - this.externalManagedBackendBucketMigrationState = externalManagedBackendBucketMigrationState; - return this; - } - - /** - * Determines the fraction of requests to backend buckets that should be processed by the global - * external Application Load Balancer. - * - * The value of this field must be in the range [0, 100]. - * - * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL - * (when using the classic Application Load Balancer) and the migration state is - * TEST_BY_PERCENTAGE. - * @return value or {@code null} for none - */ - public java.lang.Float getExternalManagedBackendBucketMigrationTestingPercentage() { - return externalManagedBackendBucketMigrationTestingPercentage; - } - - /** - * Determines the fraction of requests to backend buckets that should be processed by the global - * external Application Load Balancer. - * - * The value of this field must be in the range [0, 100]. - * - * This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL - * (when using the classic Application Load Balancer) and the migration state is - * TEST_BY_PERCENTAGE. - * @param externalManagedBackendBucketMigrationTestingPercentage externalManagedBackendBucketMigrationTestingPercentage or {@code null} for none - */ - public ForwardingRule setExternalManagedBackendBucketMigrationTestingPercentage(java.lang.Float externalManagedBackendBucketMigrationTestingPercentage) { - this.externalManagedBackendBucketMigrationTestingPercentage = externalManagedBackendBucketMigrationTestingPercentage; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the - * fingerprint in patch request to ensure that you do not overwrite changes that were applied from - * another concurrent request. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the - * fingerprint in patch request to ensure that you do not overwrite changes that were applied from - * another concurrent request. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the - * fingerprint in patch request to ensure that you do not overwrite changes that were applied from - * another concurrent request. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public ForwardingRule setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the - * fingerprint in patch request to ensure that you do not overwrite changes that were applied from - * another concurrent request. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ForwardingRule encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public ForwardingRule setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in - * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - * - * Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding - * rule using BYOIP: Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projec - * t_id/regions/region/publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - - * projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - - * regions/region/publicDelegatedPrefixes/sub-pdp-name - * @return value or {@code null} for none - */ - public java.lang.String getIpCollection() { - return ipCollection; - } - - /** - * Resource reference of a PublicDelegatedPrefix. The PDP must be a sub-PDP in - * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - * - * Use one of the following formats to specify a sub-PDP when creating an IPv6 NetLB forwarding - * rule using BYOIP: Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projec - * t_id/regions/region/publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - - * projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - - * regions/region/publicDelegatedPrefixes/sub-pdp-name - * @param ipCollection ipCollection or {@code null} for none - */ - public ForwardingRule setIpCollection(java.lang.String ipCollection) { - this.ipCollection = ipCollection; - return this; - } - - /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. - * @return value or {@code null} for none - */ - public java.lang.String getIpVersion() { - return ipVersion; - } - - /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. - * @param ipVersion ipVersion or {@code null} for none - */ - public ForwardingRule setIpVersion(java.lang.String ipVersion) { - this.ipVersion = ipVersion; - return this; - } - - /** - * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To - * prevent mirroring loops, instances behind this load balancer will not have their traffic - * mirrored even if aPacketMirroring rule applies to them. This can only be set to true for load - * balancers that have theirloadBalancingScheme set to INTERNAL. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsMirroringCollector() { - return isMirroringCollector; - } - - /** - * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To - * prevent mirroring loops, instances behind this load balancer will not have their traffic - * mirrored even if aPacketMirroring rule applies to them. This can only be set to true for load - * balancers that have theirloadBalancingScheme set to INTERNAL. - * @param isMirroringCollector isMirroringCollector or {@code null} for none - */ - public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringCollector) { - this.isMirroringCollector = isMirroringCollector; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. - * @param kind kind or {@code null} for none - */ - public ForwardingRule setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this resource, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this resource, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this resource, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public ForwardingRule setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this resource, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ForwardingRule encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public ForwardingRule setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Specifies the forwarding rule type. - * - * For more information, refer to Forwarding rule product and scheme table. - * @return value or {@code null} for none - */ - public java.lang.String getLoadBalancingScheme() { - return loadBalancingScheme; - } - - /** - * Specifies the forwarding rule type. - * - * For more information, refer to Forwarding rule product and scheme table. - * @param loadBalancingScheme loadBalancingScheme or {@code null} for none - */ - public ForwardingRule setLoadBalancingScheme(java.lang.String loadBalancingScheme) { - this.loadBalancingScheme = loadBalancingScheme; - return this; - } - - /** - * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set - * of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node - * metadata. When there is a match, the relevant configuration is made available to those proxies. - * Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) referenced by the ForwardingRule are - * not visible to those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least - * one of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of - * them need to be satisfied in order to be considered a match. - * - * metadataFilters specified here will be applifed before those specified in the UrlMap that - * thisForwardingRule references. - * - * metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set - * toINTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public java.util.List getMetadataFilters() { - return metadataFilters; - } - - /** - * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set - * of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node - * metadata. When there is a match, the relevant configuration is made available to those proxies. - * Otherwise, all the resources (e.g.TargetHttpProxy, UrlMap) referenced by the ForwardingRule are - * not visible to those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least - * one of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. If multiplemetadataFilters are specified, all of - * them need to be satisfied in order to be considered a match. - * - * metadataFilters specified here will be applifed before those specified in the UrlMap that - * thisForwardingRule references. - * - * metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set - * toINTERNAL_SELF_MANAGED. - * @param metadataFilters metadataFilters or {@code null} for none - */ - public ForwardingRule setMetadataFilters(java.util.List metadataFilters) { - this.metadataFilters = metadataFilters; - return this; - } - - /** - * Name of the resource; provided by the client 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. - * - * For Private Service Connect forwarding rules that forward traffic to Google APIs, the - * forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and - * must start with a letter. - * - * For global external Passthrough Network Load Balancer forwarding rules, the forwarding rule - * name must be 1-43 characters long. For each global external Passthrough Network Load Balancer - * forwarding rule (a parent forwarding rule) that you create, Google Cloud generates two output- - * only child forwarding rules that are named by concatenating the parent forwarding rule name - * with the `-ag0` and `-ag1` suffixes, respectively. Refer to theavailabilityGroup field for - * further details. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource; provided by the client 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. - * - * For Private Service Connect forwarding rules that forward traffic to Google APIs, the - * forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and - * must start with a letter. - * - * For global external Passthrough Network Load Balancer forwarding rules, the forwarding rule - * name must be 1-43 characters long. For each global external Passthrough Network Load Balancer - * forwarding rule (a parent forwarding rule) that you create, Google Cloud generates two output- - * only child forwarding rules that are named by concatenating the parent forwarding rule name - * with the `-ag0` and `-ag1` suffixes, respectively. Refer to theavailabilityGroup field for - * further details. - * @param name name or {@code null} for none - */ - public ForwardingRule setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * This field is not used for global external load balancing. - * - * For internal passthrough Network Load Balancers, this field identifies the network that the - * load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the - * network of the subnetwork will be used. If neither subnetwork nor this field is specified, the - * default network will be used. - * - * For Private Service Connect forwarding rules that forward traffic to Google APIs, a network - * must be provided. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * This field is not used for global external load balancing. - * - * For internal passthrough Network Load Balancers, this field identifies the network that the - * load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the - * network of the subnetwork will be used. If neither subnetwork nor this field is specified, the - * default network will be used. - * - * For Private Service Connect forwarding rules that forward traffic to Google APIs, a network - * must be provided. - * @param network network or {@code null} for none - */ - public ForwardingRule setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * This signifies the networking tier used for configuring this load balancer and can only take - * the following values:PREMIUM, STANDARD. - * - * For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For - * GlobalForwardingRule, the valid value isPREMIUM. - * - * If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this - * value must be equal to the networkTier of the Address. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkTier() { - return networkTier; - } - - /** - * This signifies the networking tier used for configuring this load balancer and can only take - * the following values:PREMIUM, STANDARD. - * - * For regional ForwardingRule, the valid values are PREMIUM andSTANDARD. For - * GlobalForwardingRule, the valid value isPREMIUM. - * - * If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this - * value must be equal to the networkTier of the Address. - * @param networkTier networkTier or {@code null} for none - */ - public ForwardingRule setNetworkTier(java.lang.String networkTier) { - this.networkTier = networkTier; - return this; - } - - /** - * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a - * DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not - * mutable. - * @return value or {@code null} for none - */ - public java.lang.Boolean getNoAutomateDnsZone() { - return noAutomateDnsZone; - } - - /** - * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a - * DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not - * mutable. - * @param noAutomateDnsZone noAutomateDnsZone or {@code null} for none - */ - public ForwardingRule setNoAutomateDnsZone(java.lang.Boolean noAutomateDnsZone) { - this.noAutomateDnsZone = noAutomateDnsZone; - return this; - } - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The portRange field has the following limitations: - It requires that the forwarding - * rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following - * products: external passthrough Network Load Balancers, internal and external proxy Network - * Load Balancers, internal and external Application Load Balancers, external protocol - * forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. - * See port specifications for details. - * - * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, - * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they have - * overlapping portRanges. - * - * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot - * use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. - * - * @pattern: \\d+(?:-\\d+)? - * @return value or {@code null} for none - */ - public java.lang.String getPortRange() { - return portRange; - } - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The portRange field has the following limitations: - It requires that the forwarding - * rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following - * products: external passthrough Network Load Balancers, internal and external proxy Network - * Load Balancers, internal and external Application Load Balancers, external protocol - * forwarding, and Classic VPN. - Some products have restrictions on what ports can be used. - * See port specifications for details. - * - * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, - * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they have - * overlapping portRanges. - * - * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot - * use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. - * - * @pattern: \\d+(?:-\\d+)? - * @param portRange portRange or {@code null} for none - */ - public ForwardingRule setPortRange(java.lang.String portRange) { - this.portRange = portRange; - return this; - } - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The ports field has the following limitations: - It requires that the forwarding rule - * IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: - * internal passthrough Network Load Balancers, backend service-based external passthrough - * Network Load Balancers, and internal protocol forwarding. - You can specify a list of up - * to five ports by number, separated by commas. The ports can be contiguous or discontiguous. - * - * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, - * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they share at least - * one port number. - * - * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot - * use the same [IPAddress, IPProtocol] pair if they share at least one port number. - * - * @pattern: \\d+(?:-\\d+)? - * @return value or {@code null} for none - */ - public java.util.List getPorts() { - return ports; - } - - /** - * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to - * ports in the specified range will be forwarded to the backends configured with this forwarding - * rule. - * - * The ports field has the following limitations: - It requires that the forwarding rule - * IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: - * internal passthrough Network Load Balancers, backend service-based external passthrough - * Network Load Balancers, and internal protocol forwarding. - You can specify a list of up - * to five ports by number, separated by commas. The ports can be contiguous or discontiguous. - * - * For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, - * IPProtocol] pair (specified inIPAddress, IPAddresses, IPProtocol fields) if they share at least - * one port number. - * - * For internal forwarding rules within the same VPC network, two or more forwarding rules cannot - * use the same [IPAddress, IPProtocol] pair if they share at least one port number. - * - * @pattern: \\d+(?:-\\d+)? - * @param ports ports or {@code null} for none - */ - public ForwardingRule setPorts(java.util.List ports) { - this.ports = ports; - return this; - } - - /** - * [Output Only] The PSC connection id of the PSC forwarding rule. - * @return value or {@code null} for none - */ - public java.math.BigInteger getPscConnectionId() { - return pscConnectionId; - } - - /** - * [Output Only] The PSC connection id of the PSC forwarding rule. - * @param pscConnectionId pscConnectionId or {@code null} for none - */ - public ForwardingRule setPscConnectionId(java.math.BigInteger pscConnectionId) { - this.pscConnectionId = pscConnectionId; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getPscConnectionStatus() { - return pscConnectionStatus; - } - - /** - * @param pscConnectionStatus pscConnectionStatus or {@code null} for none - */ - public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatus) { - this.pscConnectionStatus = pscConnectionStatus; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This - * field is not applicable to global forwarding rules. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional forwarding rule resides. This - * field is not applicable to global forwarding rules. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public ForwardingRule setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public ForwardingRule setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public ForwardingRule setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Service Directory resources to register this forwarding rule with. Currently, only supports a - * single Service Directory resource. - * @return value or {@code null} for none - */ - public java.util.List getServiceDirectoryRegistrations() { - return serviceDirectoryRegistrations; - } - - /** - * Service Directory resources to register this forwarding rule with. Currently, only supports a - * single Service Directory resource. - * @param serviceDirectoryRegistrations serviceDirectoryRegistrations or {@code null} for none - */ - public ForwardingRule setServiceDirectoryRegistrations(java.util.List serviceDirectoryRegistrations) { - this.serviceDirectoryRegistrations = serviceDirectoryRegistrations; - return this; - } - - /** - * An optional prefix to the service name for this forwarding rule. If specified, the prefix is - * the first label of the fully qualified service name. - * - * The label must be 1-63 characters long, and comply withRFC1035. Specifically, the label 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. - * - * This field is only used for internal load balancing. - * @return value or {@code null} for none - */ - public java.lang.String getServiceLabel() { - return serviceLabel; - } - - /** - * An optional prefix to the service name for this forwarding rule. If specified, the prefix is - * the first label of the fully qualified service name. - * - * The label must be 1-63 characters long, and comply withRFC1035. Specifically, the label 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. - * - * This field is only used for internal load balancing. - * @param serviceLabel serviceLabel or {@code null} for none - */ - public ForwardingRule setServiceLabel(java.lang.String serviceLabel) { - this.serviceLabel = serviceLabel; - return this; - } - - /** - * [Output Only] The internal fully qualified service name for this forwarding rule. - * - * This field is only used for internal load balancing. - * @return value or {@code null} for none - */ - public java.lang.String getServiceName() { - return serviceName; - } - - /** - * [Output Only] The internal fully qualified service name for this forwarding rule. - * - * This field is only used for internal load balancing. - * @param serviceName serviceName or {@code null} for none - */ - public ForwardingRule setServiceName(java.lang.String serviceName) { - this.serviceName = serviceName; - return this; - } - - /** - * If not empty, this forwarding rule will only forward the traffic when the source IP address - * matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only - * have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule - * whose scheme isEXTERNAL. Each source_ip_range entry should be either an IP address (for - * example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). - * @return value or {@code null} for none - */ - public java.util.List getSourceIpRanges() { - return sourceIpRanges; - } - - /** - * If not empty, this forwarding rule will only forward the traffic when the source IP address - * matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only - * have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule - * whose scheme isEXTERNAL. Each source_ip_range entry should be either an IP address (for - * example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). - * @param sourceIpRanges sourceIpRanges or {@code null} for none - */ - public ForwardingRule setSourceIpRanges(java.util.List sourceIpRanges) { - this.sourceIpRanges = sourceIpRanges; - return this; - } - - /** - * This field identifies the subnetwork that the load balanced IP should belong to for this - * forwarding rule, used with internal load balancers and external passthrough Network Load - * Balancers with IPv6. - * - * If the network specified is in auto subnet mode, this field is optional. However, a subnetwork - * must be specified if the network is in custom subnet mode or when creating external forwarding - * rule with IPv6. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * This field identifies the subnetwork that the load balanced IP should belong to for this - * forwarding rule, used with internal load balancers and external passthrough Network Load - * Balancers with IPv6. - * - * If the network specified is in auto subnet mode, this field is optional. However, a subnetwork - * must be specified if the network is in custom subnet mode or when creating external forwarding - * rule with IPv6. - * @param subnetwork subnetwork or {@code null} for none - */ - public ForwardingRule setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - /** - * The URL of the target resource to receive the matched traffic. For regional forwarding rules, - * this target must be in the same region as the forwarding rule. For global forwarding rules, - * this target must be a global load balancing resource. - * - * The forwarded traffic must be of a type appropriate to the target object. - For - * load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load- - * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service - * Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported - * Google API bundle: - vpc-sc - APIs that support VPC Service - * Controls. - all-apis - All supported Google APIs. - For - * Private Service Connect forwarding rules that forward traffic to managed services, the target - * must be a service attachment. The target is not mutable once set as a service attachment. - * - * The following load balancers cannot set the target field (they should set the backendService - * field instead): - Internal passthrough Network Load Balancers - Backend service-based - * regional external passthrough Network Load Balancers - Global external passthrough - * Network Load Balancers - * @return value or {@code null} for none - */ - public java.lang.String getTarget() { - return target; - } - - /** - * The URL of the target resource to receive the matched traffic. For regional forwarding rules, - * this target must be in the same region as the forwarding rule. For global forwarding rules, - * this target must be a global load balancing resource. - * - * The forwarded traffic must be of a type appropriate to the target object. - For - * load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load- - * balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service - * Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported - * Google API bundle: - vpc-sc - APIs that support VPC Service - * Controls. - all-apis - All supported Google APIs. - For - * Private Service Connect forwarding rules that forward traffic to managed services, the target - * must be a service attachment. The target is not mutable once set as a service attachment. - * - * The following load balancers cannot set the target field (they should set the backendService - * field instead): - Internal passthrough Network Load Balancers - Backend service-based - * regional external passthrough Network Load Balancers - Global external passthrough - * Network Load Balancers - * @param target target or {@code null} for none - */ - public ForwardingRule setTarget(java.lang.String target) { - this.target = target; - return this; - } - - @Override - public ForwardingRule set(String fieldName, Object value) { - return (ForwardingRule) super.set(fieldName, value); - } - - @Override - public ForwardingRule clone() { - return (ForwardingRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAggregatedList.java deleted file mode 100644 index b89d15f61ce..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ForwardingRuleAggregatedList. - * - *

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 ForwardingRuleAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 ForwardingRulesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for - * lists of forwarding rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 ForwardingRuleAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ForwardingRulesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of ForwardingRulesScopedList resources. - * @param items items or {@code null} for none - */ - public ForwardingRuleAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for - * lists of forwarding rules. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for - * lists of forwarding rules. - * @param kind kind or {@code null} for none - */ - public ForwardingRuleAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ForwardingRuleAggregatedList 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 ForwardingRuleAggregatedList 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 ForwardingRuleAggregatedList 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 ForwardingRuleAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ForwardingRuleAggregatedList set(String fieldName, Object value) { - return (ForwardingRuleAggregatedList) super.set(fieldName, value); - } - - @Override - public ForwardingRuleAggregatedList clone() { - return (ForwardingRuleAggregatedList) 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 ForwardingRuleAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAttachedExtension.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAttachedExtension.java deleted file mode 100644 index 41b323600b7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleAttachedExtension.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Reference to an extension resource that is attached to this ForwardingRule. - * - *

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 ForwardingRuleAttachedExtension extends com.google.api.client.json.GenericJson { - - /** - * Output only. The resource name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reference; - - /** - * Output only. The resource name. - * @return value or {@code null} for none - */ - public java.lang.String getReference() { - return reference; - } - - /** - * Output only. The resource name. - * @param reference reference or {@code null} for none - */ - public ForwardingRuleAttachedExtension setReference(java.lang.String reference) { - this.reference = reference; - return this; - } - - @Override - public ForwardingRuleAttachedExtension set(String fieldName, Object value) { - return (ForwardingRuleAttachedExtension) super.set(fieldName, value); - } - - @Override - public ForwardingRuleAttachedExtension clone() { - return (ForwardingRuleAttachedExtension) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleList.java deleted file mode 100644 index c5c432ef106..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of ForwardingRule resources. - * - *

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 ForwardingRuleList extends com.google.api.client.json.GenericJson { - - /** - * [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 ForwardingRule 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 ForwardingRule 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(ForwardingRule.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 ForwardingRuleList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ForwardingRule resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of ForwardingRule resources. - * @param items items or {@code null} for none - */ - public ForwardingRuleList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ForwardingRuleList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ForwardingRuleList 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 ForwardingRuleList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ForwardingRuleList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ForwardingRuleList set(String fieldName, Object value) { - return (ForwardingRuleList) super.set(fieldName, value); - } - - @Override - public ForwardingRuleList clone() { - return (ForwardingRuleList) 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 ForwardingRuleListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleReference.java deleted file mode 100644 index afc8f0b8c5a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleReference.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ForwardingRuleReference. - * - *

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 ForwardingRuleReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** - * @param forwardingRule forwardingRule or {@code null} for none - */ - public ForwardingRuleReference setForwardingRule(java.lang.String forwardingRule) { - this.forwardingRule = forwardingRule; - return this; - } - - @Override - public ForwardingRuleReference set(String fieldName, Object value) { - return (ForwardingRuleReference) super.set(fieldName, value); - } - - @Override - public ForwardingRuleReference clone() { - return (ForwardingRuleReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleServiceDirectoryRegistration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleServiceDirectoryRegistration.java deleted file mode 100644 index 29e90d43c94..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRuleServiceDirectoryRegistration.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes the auto-registration of the forwarding rule to Service Directory. The region and - * project of the Service Directory resource generated from this registration will be the same as - * this forwarding rule. - * - *

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 ForwardingRuleServiceDirectoryRegistration extends com.google.api.client.json.GenericJson { - - /** - * Service Directory namespace to register the forwarding rule under. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String namespace; - - /** - * Service Directory service to register the forwarding rule under. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * [Optional] Service Directory region to register this global forwarding rule under. Default to - * "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on - * the same network should use the same Service Directory region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceDirectoryRegion; - - /** - * Service Directory namespace to register the forwarding rule under. - * @return value or {@code null} for none - */ - public java.lang.String getNamespace() { - return namespace; - } - - /** - * Service Directory namespace to register the forwarding rule under. - * @param namespace namespace or {@code null} for none - */ - public ForwardingRuleServiceDirectoryRegistration setNamespace(java.lang.String namespace) { - this.namespace = namespace; - return this; - } - - /** - * Service Directory service to register the forwarding rule under. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * Service Directory service to register the forwarding rule under. - * @param service service or {@code null} for none - */ - public ForwardingRuleServiceDirectoryRegistration setService(java.lang.String service) { - this.service = service; - return this; - } - - /** - * [Optional] Service Directory region to register this global forwarding rule under. Default to - * "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on - * the same network should use the same Service Directory region. - * @return value or {@code null} for none - */ - public java.lang.String getServiceDirectoryRegion() { - return serviceDirectoryRegion; - } - - /** - * [Optional] Service Directory region to register this global forwarding rule under. Default to - * "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on - * the same network should use the same Service Directory region. - * @param serviceDirectoryRegion serviceDirectoryRegion or {@code null} for none - */ - public ForwardingRuleServiceDirectoryRegistration setServiceDirectoryRegion(java.lang.String serviceDirectoryRegion) { - this.serviceDirectoryRegion = serviceDirectoryRegion; - return this; - } - - @Override - public ForwardingRuleServiceDirectoryRegistration set(String fieldName, Object value) { - return (ForwardingRuleServiceDirectoryRegistration) super.set(fieldName, value); - } - - @Override - public ForwardingRuleServiceDirectoryRegistration clone() { - return (ForwardingRuleServiceDirectoryRegistration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRulesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRulesScopedList.java deleted file mode 100644 index f38d336b841..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ForwardingRulesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ForwardingRulesScopedList. - * - *

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 ForwardingRulesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of forwarding rules contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List forwardingRules; - - static { - // hack to force ProGuard to consider ForwardingRule 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(ForwardingRule.class); - } - - /** - * Informational warning which replaces the list of forwarding rules when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of forwarding rules contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getForwardingRules() { - return forwardingRules; - } - - /** - * A list of forwarding rules contained in this scope. - * @param forwardingRules forwardingRules or {@code null} for none - */ - public ForwardingRulesScopedList setForwardingRules(java.util.List forwardingRules) { - this.forwardingRules = forwardingRules; - return this; - } - - /** - * Informational warning which replaces the list of forwarding rules when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of forwarding rules when the list is empty. - * @param warning warning or {@code null} for none - */ - public ForwardingRulesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ForwardingRulesScopedList set(String fieldName, Object value) { - return (ForwardingRulesScopedList) super.set(fieldName, value); - } - - @Override - public ForwardingRulesScopedList clone() { - return (ForwardingRulesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of forwarding rules when the list is empty. - */ - 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 ForwardingRulesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservation.java deleted file mode 100644 index 6651ce5e743..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservation.java +++ /dev/null @@ -1,867 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureReservation. - * - *

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 FutureReservation extends com.google.api.client.json.GenericJson { - - /** - * Aggregate reservation details for the future reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationAggregateReservation aggregateReservation; - - /** - * Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. - * Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoCreatedReservationsDeleteTime; - - /** - * Specifies the duration of auto-created reservations. It represents relative time to future - * reservation start_time when auto-created reservations will be automatically deleted by Compute - * Engine. Duration time unit is represented as a count of seconds and fractions of seconds at - * nanosecond resolution. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration autoCreatedReservationsDuration; - - /** - * Setting for enabling or disabling automatic deletion for auto-created reservation. If set to - * true, auto-created reservations will be deleted at Future Reservation's end time (default) or - * at user's defined timestamp if any of the [auto_created_reservations_delete_time, - * auto_created_reservations_duration] values is specified. For keeping auto-created reservation - * indefinitely, this value should be set to false. - * The value may be {@code null}. - */ - @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}. - */ - @com.google.api.client.util.Key - private FutureReservationCommitmentInfo commitmentInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String confidentialComputeType; - - /** - * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text - * format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Type of the deployment requested as part of future reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deploymentType; - - /** - * An optional description of this resource. Provide this property when you create the future - * reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Indicates if this group of VMs have emergent maintenance enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableEmergentMaintenance; - - /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. - * 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] Type of the resource. Alwayscompute#futureReservation for future - * reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - - /** - * Name prefix for the reservations to be created at the time of delivery. The name prefix must - * comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created - * reservations name format will be -date-####. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String namePrefix; - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationParams params; - - /** - * Planning state before being submitted for evaluation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String planningStatus; - - /** - * The reservation mode which determines reservation-termination behavior and expected pricing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reservationMode; - - /** - * Name of reservations where the capacity is provisioned at the time of delivery of future - * reservations. If the reservation with the given name does not exist already, it is created - * automatically at the time of Approval with INACTIVE state till specified start-time. Either - * provide the reservation_name or a name_prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reservationName; - - /** - * Output only. Contains standard resource metadata for an FutureReservation resource. It is - * populated for each instance of the FutureReservation resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceMetadata resourceMetadata; - - /** - * Name of the resource intended to be delivered. Name should conform to RFC1035. This will be the - * name of storage pool or Exapool for persistent disk FRs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String resourceName; - - /** - * Maintenance information for this reservation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String schedulingType; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * List of Projects/Folders to share with. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShareSettings shareSettings; - - /** - * Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" - * reservation. If the field is set, then only VMs that target the reservation by name can consume - * from the delivered reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean specificReservationRequired; - - /** - * Future Reservation configuration to indicate instance properties and total count. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationSpecificSKUProperties specificSkuProperties; - - /** - * Output only. [Output only] Status of the Future Reservation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStatus status; - - /** - * Storage pool details for the future reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStoragePoolProperties storagePoolProperties; - - /** - * Time window for this Future Reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationTimeWindow timeWindow; - - /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Aggregate reservation details for the future reservation. - * @return value or {@code null} for none - */ - public AllocationAggregateReservation getAggregateReservation() { - return aggregateReservation; - } - - /** - * Aggregate reservation details for the future reservation. - * @param aggregateReservation aggregateReservation or {@code null} for none - */ - public FutureReservation setAggregateReservation(AllocationAggregateReservation aggregateReservation) { - this.aggregateReservation = aggregateReservation; - return this; - } - - /** - * Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. - * Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. - * @return value or {@code null} for none - */ - public java.lang.String getAutoCreatedReservationsDeleteTime() { - return autoCreatedReservationsDeleteTime; - } - - /** - * Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. - * Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. - * @param autoCreatedReservationsDeleteTime autoCreatedReservationsDeleteTime or {@code null} for none - */ - public FutureReservation setAutoCreatedReservationsDeleteTime(java.lang.String autoCreatedReservationsDeleteTime) { - this.autoCreatedReservationsDeleteTime = autoCreatedReservationsDeleteTime; - return this; - } - - /** - * Specifies the duration of auto-created reservations. It represents relative time to future - * reservation start_time when auto-created reservations will be automatically deleted by Compute - * Engine. Duration time unit is represented as a count of seconds and fractions of seconds at - * nanosecond resolution. - * @return value or {@code null} for none - */ - public Duration getAutoCreatedReservationsDuration() { - return autoCreatedReservationsDuration; - } - - /** - * Specifies the duration of auto-created reservations. It represents relative time to future - * reservation start_time when auto-created reservations will be automatically deleted by Compute - * Engine. Duration time unit is represented as a count of seconds and fractions of seconds at - * nanosecond resolution. - * @param autoCreatedReservationsDuration autoCreatedReservationsDuration or {@code null} for none - */ - public FutureReservation setAutoCreatedReservationsDuration(Duration autoCreatedReservationsDuration) { - this.autoCreatedReservationsDuration = autoCreatedReservationsDuration; - return this; - } - - /** - * Setting for enabling or disabling automatic deletion for auto-created reservation. If set to - * true, auto-created reservations will be deleted at Future Reservation's end time (default) or - * at user's defined timestamp if any of the [auto_created_reservations_delete_time, - * auto_created_reservations_duration] values is specified. For keeping auto-created reservation - * indefinitely, this value should be set to false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoDeleteAutoCreatedReservations() { - return autoDeleteAutoCreatedReservations; - } - - /** - * Setting for enabling or disabling automatic deletion for auto-created reservation. If set to - * true, auto-created reservations will be deleted at Future Reservation's end time (default) or - * at user's defined timestamp if any of the [auto_created_reservations_delete_time, - * auto_created_reservations_duration] values is specified. For keeping auto-created reservation - * indefinitely, this value should be set to false. - * @param autoDeleteAutoCreatedReservations autoDeleteAutoCreatedReservations or {@code null} for none - */ - public FutureReservation setAutoDeleteAutoCreatedReservations(java.lang.Boolean autoDeleteAutoCreatedReservations) { - this.autoDeleteAutoCreatedReservations = autoDeleteAutoCreatedReservations; - 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 - */ - public FutureReservationCommitmentInfo getCommitmentInfo() { - return commitmentInfo; - } - - /** - * If not present, then FR will not deliver a new commitment or update an existing commitment. - * @param commitmentInfo commitmentInfo or {@code null} for none - */ - public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commitmentInfo) { - this.commitmentInfo = commitmentInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getConfidentialComputeType() { - return confidentialComputeType; - } - - /** - * @param confidentialComputeType confidentialComputeType or {@code null} for none - */ - public FutureReservation setConfidentialComputeType(java.lang.String confidentialComputeType) { - this.confidentialComputeType = confidentialComputeType; - return this; - } - - /** - * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text - * format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text - * format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public FutureReservation setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Type of the deployment requested as part of future reservation. - * @return value or {@code null} for none - */ - public java.lang.String getDeploymentType() { - return deploymentType; - } - - /** - * Type of the deployment requested as part of future reservation. - * @param deploymentType deploymentType or {@code null} for none - */ - public FutureReservation setDeploymentType(java.lang.String deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the future - * reservation. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the future - * reservation. - * @param description description or {@code null} for none - */ - public FutureReservation setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Indicates if this group of VMs have emergent maintenance enabled. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableEmergentMaintenance() { - return enableEmergentMaintenance; - } - - /** - * Indicates if this group of VMs have emergent maintenance enabled. - * @param enableEmergentMaintenance enableEmergentMaintenance or {@code null} for none - */ - public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergentMaintenance) { - this.enableEmergentMaintenance = enableEmergentMaintenance; - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. - * @param id id or {@code null} for none - */ - public FutureReservation setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future - * reservations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future - * reservations. - * @param kind kind or {@code null} for none - */ - public FutureReservation setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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 FutureReservation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Name prefix for the reservations to be created at the time of delivery. The name prefix must - * comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created - * reservations name format will be -date-####. - * @return value or {@code null} for none - */ - public java.lang.String getNamePrefix() { - return namePrefix; - } - - /** - * Name prefix for the reservations to be created at the time of delivery. The name prefix must - * comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created - * reservations name format will be -date-####. - * @param namePrefix namePrefix or {@code null} for none - */ - public FutureReservation setNamePrefix(java.lang.String namePrefix) { - this.namePrefix = namePrefix; - return this; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @return value or {@code null} for none - */ - public FutureReservationParams getParams() { - return params; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @param params params or {@code null} for none - */ - public FutureReservation setParams(FutureReservationParams params) { - this.params = params; - return this; - } - - /** - * Planning state before being submitted for evaluation - * @return value or {@code null} for none - */ - public java.lang.String getPlanningStatus() { - return planningStatus; - } - - /** - * Planning state before being submitted for evaluation - * @param planningStatus planningStatus or {@code null} for none - */ - public FutureReservation setPlanningStatus(java.lang.String planningStatus) { - this.planningStatus = planningStatus; - return this; - } - - /** - * The reservation mode which determines reservation-termination behavior and expected pricing. - * @return value or {@code null} for none - */ - public java.lang.String getReservationMode() { - return reservationMode; - } - - /** - * The reservation mode which determines reservation-termination behavior and expected pricing. - * @param reservationMode reservationMode or {@code null} for none - */ - public FutureReservation setReservationMode(java.lang.String reservationMode) { - this.reservationMode = reservationMode; - return this; - } - - /** - * Name of reservations where the capacity is provisioned at the time of delivery of future - * reservations. If the reservation with the given name does not exist already, it is created - * automatically at the time of Approval with INACTIVE state till specified start-time. Either - * provide the reservation_name or a name_prefix. - * @return value or {@code null} for none - */ - public java.lang.String getReservationName() { - return reservationName; - } - - /** - * Name of reservations where the capacity is provisioned at the time of delivery of future - * reservations. If the reservation with the given name does not exist already, it is created - * automatically at the time of Approval with INACTIVE state till specified start-time. Either - * provide the reservation_name or a name_prefix. - * @param reservationName reservationName or {@code null} for none - */ - public FutureReservation setReservationName(java.lang.String reservationName) { - this.reservationName = reservationName; - return this; - } - - /** - * Output only. Contains standard resource metadata for an FutureReservation resource. It is - * populated for each instance of the FutureReservation resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * @return value or {@code null} for none - */ - public ResourceMetadata getResourceMetadata() { - return resourceMetadata; - } - - /** - * Output only. Contains standard resource metadata for an FutureReservation resource. It is - * populated for each instance of the FutureReservation resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * @param resourceMetadata resourceMetadata or {@code null} for none - */ - public FutureReservation setResourceMetadata(ResourceMetadata resourceMetadata) { - this.resourceMetadata = resourceMetadata; - return this; - } - - /** - * Name of the resource intended to be delivered. Name should conform to RFC1035. This will be the - * name of storage pool or Exapool for persistent disk FRs. - * @return value or {@code null} for none - */ - public java.lang.String getResourceName() { - return resourceName; - } - - /** - * Name of the resource intended to be delivered. Name should conform to RFC1035. This will be the - * name of storage pool or Exapool for persistent disk FRs. - * @param resourceName resourceName or {@code null} for none - */ - public FutureReservation setResourceName(java.lang.String resourceName) { - this.resourceName = resourceName; - return this; - } - - /** - * Maintenance information for this reservation - * @return value or {@code null} for none - */ - public java.lang.String getSchedulingType() { - return schedulingType; - } - - /** - * Maintenance information for this reservation - * @param schedulingType schedulingType or {@code null} for none - */ - public FutureReservation setSchedulingType(java.lang.String schedulingType) { - this.schedulingType = schedulingType; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public FutureReservation setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public FutureReservation setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * List of Projects/Folders to share with. - * @return value or {@code null} for none - */ - public ShareSettings getShareSettings() { - return shareSettings; - } - - /** - * List of Projects/Folders to share with. - * @param shareSettings shareSettings or {@code null} for none - */ - public FutureReservation setShareSettings(ShareSettings shareSettings) { - this.shareSettings = shareSettings; - return this; - } - - /** - * Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" - * reservation. If the field is set, then only VMs that target the reservation by name can consume - * from the delivered reservation. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSpecificReservationRequired() { - return specificReservationRequired; - } - - /** - * Indicates whether the auto-created reservation can be consumed by VMs with affinity for "any" - * reservation. If the field is set, then only VMs that target the reservation by name can consume - * from the delivered reservation. - * @param specificReservationRequired specificReservationRequired or {@code null} for none - */ - public FutureReservation setSpecificReservationRequired(java.lang.Boolean specificReservationRequired) { - this.specificReservationRequired = specificReservationRequired; - return this; - } - - /** - * Future Reservation configuration to indicate instance properties and total count. - * @return value or {@code null} for none - */ - public FutureReservationSpecificSKUProperties getSpecificSkuProperties() { - return specificSkuProperties; - } - - /** - * Future Reservation configuration to indicate instance properties and total count. - * @param specificSkuProperties specificSkuProperties or {@code null} for none - */ - public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUProperties specificSkuProperties) { - this.specificSkuProperties = specificSkuProperties; - return this; - } - - /** - * Output only. [Output only] Status of the Future Reservation - * @return value or {@code null} for none - */ - public FutureReservationStatus getStatus() { - return status; - } - - /** - * Output only. [Output only] Status of the Future Reservation - * @param status status or {@code null} for none - */ - public FutureReservation setStatus(FutureReservationStatus status) { - this.status = status; - return this; - } - - /** - * Storage pool details for the future reservation. - * @return value or {@code null} for none - */ - public FutureReservationStoragePoolProperties getStoragePoolProperties() { - return storagePoolProperties; - } - - /** - * Storage pool details for the future reservation. - * @param storagePoolProperties storagePoolProperties or {@code null} for none - */ - public FutureReservation setStoragePoolProperties(FutureReservationStoragePoolProperties storagePoolProperties) { - this.storagePoolProperties = storagePoolProperties; - return this; - } - - /** - * Time window for this Future Reservation. - * @return value or {@code null} for none - */ - public FutureReservationTimeWindow getTimeWindow() { - return timeWindow; - } - - /** - * Time window for this Future Reservation. - * @param timeWindow timeWindow or {@code null} for none - */ - public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { - this.timeWindow = timeWindow; - return this; - } - - /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. - * @param zone zone or {@code null} for none - */ - public FutureReservation setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public FutureReservation set(String fieldName, Object value) { - return (FutureReservation) super.set(fieldName, value); - } - - @Override - public FutureReservation clone() { - return (FutureReservation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationCommitmentInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationCommitmentInfo.java deleted file mode 100644 index 7da8b471825..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationCommitmentInfo.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureReservationCommitmentInfo. - * - *

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 FutureReservationCommitmentInfo extends com.google.api.client.json.GenericJson { - - /** - * name of the commitment where capacity is being delivered to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String commitmentName; - - /** - * Indicates if a Commitment needs to be created as part of FR delivery. If this field is not - * present, then no commitment needs to be created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String commitmentPlan; - - /** - * Only applicable if FR is delivering to the same reservation. If set, all parent commitments - * will be extended to match the end date of the plan for this commitment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String previousCommitmentTerms; - - /** - * name of the commitment where capacity is being delivered to. - * @return value or {@code null} for none - */ - public java.lang.String getCommitmentName() { - return commitmentName; - } - - /** - * name of the commitment where capacity is being delivered to. - * @param commitmentName commitmentName or {@code null} for none - */ - public FutureReservationCommitmentInfo setCommitmentName(java.lang.String commitmentName) { - this.commitmentName = commitmentName; - return this; - } - - /** - * Indicates if a Commitment needs to be created as part of FR delivery. If this field is not - * present, then no commitment needs to be created. - * @return value or {@code null} for none - */ - public java.lang.String getCommitmentPlan() { - return commitmentPlan; - } - - /** - * Indicates if a Commitment needs to be created as part of FR delivery. If this field is not - * present, then no commitment needs to be created. - * @param commitmentPlan commitmentPlan or {@code null} for none - */ - public FutureReservationCommitmentInfo setCommitmentPlan(java.lang.String commitmentPlan) { - this.commitmentPlan = commitmentPlan; - return this; - } - - /** - * Only applicable if FR is delivering to the same reservation. If set, all parent commitments - * will be extended to match the end date of the plan for this commitment. - * @return value or {@code null} for none - */ - public java.lang.String getPreviousCommitmentTerms() { - return previousCommitmentTerms; - } - - /** - * Only applicable if FR is delivering to the same reservation. If set, all parent commitments - * will be extended to match the end date of the plan for this commitment. - * @param previousCommitmentTerms previousCommitmentTerms or {@code null} for none - */ - public FutureReservationCommitmentInfo setPreviousCommitmentTerms(java.lang.String previousCommitmentTerms) { - this.previousCommitmentTerms = previousCommitmentTerms; - return this; - } - - @Override - public FutureReservationCommitmentInfo set(String fieldName, Object value) { - return (FutureReservationCommitmentInfo) super.set(fieldName, value); - } - - @Override - public FutureReservationCommitmentInfo clone() { - return (FutureReservationCommitmentInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationParams.java deleted file mode 100644 index 65867cabde9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional future reservation params. - * - *

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 FutureReservationParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the future reservation. Tag keys and values - * have the same definition as resource manager tags. Keys and values can be either in numeric - * format, such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format - * such as `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is - * ignored (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the future reservation. Tag keys and values - * have the same definition as resource manager tags. Keys and values can be either in numeric - * format, such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format - * such as `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is - * ignored (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the future reservation. Tag keys and values - * have the same definition as resource manager tags. Keys and values can be either in numeric - * format, such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format - * such as `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is - * ignored (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public FutureReservationParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public FutureReservationParams set(String fieldName, Object value) { - return (FutureReservationParams) super.set(fieldName, value); - } - - @Override - public FutureReservationParams clone() { - return (FutureReservationParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationSpecificSKUProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationSpecificSKUProperties.java deleted file mode 100644 index cbc6a519275..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationSpecificSKUProperties.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureReservationSpecificSKUProperties. - * - *

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 FutureReservationSpecificSKUProperties extends com.google.api.client.json.GenericJson { - - /** - * Properties of the SKU instances being reserved. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties; - - /** - * The instance template that will be used to populate the ReservedInstanceProperties of the - * future reservation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplate; - - /** - * Total number of instances for which capacity assurance is requested at a future time period. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalCount; - - /** - * Properties of the SKU instances being reserved. - * @return value or {@code null} for none - */ - public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties() { - return instanceProperties; - } - - /** - * Properties of the SKU instances being reserved. - * @param instanceProperties instanceProperties or {@code null} for none - */ - public FutureReservationSpecificSKUProperties setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties) { - this.instanceProperties = instanceProperties; - return this; - } - - /** - * The instance template that will be used to populate the ReservedInstanceProperties of the - * future reservation - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstanceTemplate() { - return sourceInstanceTemplate; - } - - /** - * The instance template that will be used to populate the ReservedInstanceProperties of the - * future reservation - * @param sourceInstanceTemplate sourceInstanceTemplate or {@code null} for none - */ - public FutureReservationSpecificSKUProperties setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { - this.sourceInstanceTemplate = sourceInstanceTemplate; - return this; - } - - /** - * Total number of instances for which capacity assurance is requested at a future time period. - * @return value or {@code null} for none - */ - public java.lang.Long getTotalCount() { - return totalCount; - } - - /** - * Total number of instances for which capacity assurance is requested at a future time period. - * @param totalCount totalCount or {@code null} for none - */ - public FutureReservationSpecificSKUProperties setTotalCount(java.lang.Long totalCount) { - this.totalCount = totalCount; - return this; - } - - @Override - public FutureReservationSpecificSKUProperties set(String fieldName, Object value) { - return (FutureReservationSpecificSKUProperties) super.set(fieldName, value); - } - - @Override - public FutureReservationSpecificSKUProperties clone() { - return (FutureReservationSpecificSKUProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatus.java deleted file mode 100644 index 1b9e811e981..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatus.java +++ /dev/null @@ -1,303 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output only] Represents status related to the future reservation. - * - *

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 FutureReservationStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The current status of the requested amendment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String amendmentStatus; - - /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List autoCreatedReservations; - - /** - * Output only. Exapool provisioned capacities for each SKU type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb; - - /** - * Output only. [Output Only] Represents the existing matching usage for the future reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo; - - /** - * Output only. This count indicates the fulfilled capacity so far. This is set during - * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching - * reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long fulfilledCount; - - /** - * Output only. [Output Only] This field represents the future reservation before an amendment was - * requested. If the amendment is declined, the Future Reservation will be reverted to the last - * known good state. The last known good state is not set when updating a future reservation whose - * Procurement Status is DRAFTING. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStatusLastKnownGoodState lastKnownGoodState; - - /** - * Output only. Time when Future Reservation would become LOCKED, after which no modifications to - * Future Reservation will be allowed. Applicable only after the Future Reservation is in the - * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to - * PROCURING state at this time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lockTime; - - /** - * Output only. Current state of this Future Reservation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String procurementStatus; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStatusSpecificSKUProperties specificSkuProperties; - - /** - * Output only. Storage pool provisioned capacities for each SKU type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStoragePoolProvisionedCapacity storagePoolProvisionedCapacity; - - /** - * Output only. [Output Only] The current status of the requested amendment. - * @return value or {@code null} for none - */ - public java.lang.String getAmendmentStatus() { - return amendmentStatus; - } - - /** - * Output only. [Output Only] The current status of the requested amendment. - * @param amendmentStatus amendmentStatus or {@code null} for none - */ - public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStatus) { - this.amendmentStatus = amendmentStatus; - return this; - } - - /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. - * @return value or {@code null} for none - */ - public java.util.List getAutoCreatedReservations() { - return autoCreatedReservations; - } - - /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. - * @param autoCreatedReservations autoCreatedReservations or {@code null} for none - */ - public FutureReservationStatus setAutoCreatedReservations(java.util.List autoCreatedReservations) { - this.autoCreatedReservations = autoCreatedReservations; - return this; - } - - /** - * Output only. Exapool provisioned capacities for each SKU type. - * @return value or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { - return exapoolProvisionedCapacityGb; - } - - /** - * Output only. Exapool provisioned capacities for each SKU type. - * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none - */ - public FutureReservationStatus setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { - this.exapoolProvisionedCapacityGb = exapoolProvisionedCapacityGb; - return this; - } - - /** - * Output only. [Output Only] Represents the existing matching usage for the future reservation. - * @return value or {@code null} for none - */ - public FutureReservationStatusExistingMatchingUsageInfo getExistingMatchingUsageInfo() { - return existingMatchingUsageInfo; - } - - /** - * Output only. [Output Only] Represents the existing matching usage for the future reservation. - * @param existingMatchingUsageInfo existingMatchingUsageInfo or {@code null} for none - */ - public FutureReservationStatus setExistingMatchingUsageInfo(FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo) { - this.existingMatchingUsageInfo = existingMatchingUsageInfo; - return this; - } - - /** - * Output only. This count indicates the fulfilled capacity so far. This is set during - * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching - * reservations. - * @return value or {@code null} for none - */ - public java.lang.Long getFulfilledCount() { - return fulfilledCount; - } - - /** - * Output only. This count indicates the fulfilled capacity so far. This is set during - * "PROVISIONING" state. This count also includes capacity delivered as part of existing matching - * reservations. - * @param fulfilledCount fulfilledCount or {@code null} for none - */ - public FutureReservationStatus setFulfilledCount(java.lang.Long fulfilledCount) { - this.fulfilledCount = fulfilledCount; - return this; - } - - /** - * Output only. [Output Only] This field represents the future reservation before an amendment was - * requested. If the amendment is declined, the Future Reservation will be reverted to the last - * known good state. The last known good state is not set when updating a future reservation whose - * Procurement Status is DRAFTING. - * @return value or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState getLastKnownGoodState() { - return lastKnownGoodState; - } - - /** - * Output only. [Output Only] This field represents the future reservation before an amendment was - * requested. If the amendment is declined, the Future Reservation will be reverted to the last - * known good state. The last known good state is not set when updating a future reservation whose - * Procurement Status is DRAFTING. - * @param lastKnownGoodState lastKnownGoodState or {@code null} for none - */ - public FutureReservationStatus setLastKnownGoodState(FutureReservationStatusLastKnownGoodState lastKnownGoodState) { - this.lastKnownGoodState = lastKnownGoodState; - return this; - } - - /** - * Output only. Time when Future Reservation would become LOCKED, after which no modifications to - * Future Reservation will be allowed. Applicable only after the Future Reservation is in the - * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to - * PROCURING state at this time. - * @return value or {@code null} for none - */ - public java.lang.String getLockTime() { - return lockTime; - } - - /** - * Output only. Time when Future Reservation would become LOCKED, after which no modifications to - * Future Reservation will be allowed. Applicable only after the Future Reservation is in the - * APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to - * PROCURING state at this time. - * @param lockTime lockTime or {@code null} for none - */ - public FutureReservationStatus setLockTime(java.lang.String lockTime) { - this.lockTime = lockTime; - return this; - } - - /** - * Output only. Current state of this Future Reservation - * @return value or {@code null} for none - */ - public java.lang.String getProcurementStatus() { - return procurementStatus; - } - - /** - * Output only. Current state of this Future Reservation - * @param procurementStatus procurementStatus or {@code null} for none - */ - public FutureReservationStatus setProcurementStatus(java.lang.String procurementStatus) { - this.procurementStatus = procurementStatus; - return this; - } - - /** - * @return value or {@code null} for none - */ - public FutureReservationStatusSpecificSKUProperties getSpecificSkuProperties() { - return specificSkuProperties; - } - - /** - * @param specificSkuProperties specificSkuProperties or {@code null} for none - */ - public FutureReservationStatus setSpecificSkuProperties(FutureReservationStatusSpecificSKUProperties specificSkuProperties) { - this.specificSkuProperties = specificSkuProperties; - return this; - } - - /** - * Output only. Storage pool provisioned capacities for each SKU type. - * @return value or {@code null} for none - */ - public FutureReservationStoragePoolProvisionedCapacity getStoragePoolProvisionedCapacity() { - return storagePoolProvisionedCapacity; - } - - /** - * Output only. Storage pool provisioned capacities for each SKU type. - * @param storagePoolProvisionedCapacity storagePoolProvisionedCapacity or {@code null} for none - */ - public FutureReservationStatus setStoragePoolProvisionedCapacity(FutureReservationStoragePoolProvisionedCapacity storagePoolProvisionedCapacity) { - this.storagePoolProvisionedCapacity = storagePoolProvisionedCapacity; - return this; - } - - @Override - public FutureReservationStatus set(String fieldName, Object value) { - return (FutureReservationStatus) super.set(fieldName, value); - } - - @Override - public FutureReservationStatus clone() { - return (FutureReservationStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusExistingMatchingUsageInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusExistingMatchingUsageInfo.java deleted file mode 100644 index a3a366bec13..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusExistingMatchingUsageInfo.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Represents the existing matching usage for the future reservation. - * - *

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 FutureReservationStatusExistingMatchingUsageInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. Count to represent min(FR total_count, - * matching_reserved_capacity+matching_unreserved_instances) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long count; - - /** - * Output only. Timestamp when the matching usage was calculated - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String timestamp; - - /** - * Output only. Count to represent min(FR total_count, - * matching_reserved_capacity+matching_unreserved_instances) - * @return value or {@code null} for none - */ - public java.lang.Long getCount() { - return count; - } - - /** - * Output only. Count to represent min(FR total_count, - * matching_reserved_capacity+matching_unreserved_instances) - * @param count count or {@code null} for none - */ - public FutureReservationStatusExistingMatchingUsageInfo setCount(java.lang.Long count) { - this.count = count; - return this; - } - - /** - * Output only. Timestamp when the matching usage was calculated - * @return value or {@code null} for none - */ - public java.lang.String getTimestamp() { - return timestamp; - } - - /** - * Output only. Timestamp when the matching usage was calculated - * @param timestamp timestamp or {@code null} for none - */ - public FutureReservationStatusExistingMatchingUsageInfo setTimestamp(java.lang.String timestamp) { - this.timestamp = timestamp; - return this; - } - - @Override - public FutureReservationStatusExistingMatchingUsageInfo set(String fieldName, Object value) { - return (FutureReservationStatusExistingMatchingUsageInfo) super.set(fieldName, value); - } - - @Override - public FutureReservationStatusExistingMatchingUsageInfo clone() { - return (FutureReservationStatusExistingMatchingUsageInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodState.java deleted file mode 100644 index 8aef67f5925..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodState.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * 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.preview.model; - -/** - * The state that the future reservation will be reverted to should the amendment be declined. - * - *

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 FutureReservationStatusLastKnownGoodState extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The description of the FutureReservation before an amendment was - * requested. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Represents the matching usage for the future reservation before an - * amendment was requested. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStatusLastKnownGoodStateFutureReservationSpecs futureReservationSpecs; - - /** - * Output only. [Output Only] The lock time of the FutureReservation before an amendment was - * requested. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lockTime; - - /** - * Output only. [Output Only] The name prefix of the Future Reservation before an amendment was - * requested. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String namePrefix; - - /** - * Output only. [Output Only] The status of the last known good state for the Future Reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String procurementStatus; - - /** - * Output only. [Output Only] The description of the FutureReservation before an amendment was - * requested. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] The description of the FutureReservation before an amendment was - * requested. - * @param description description or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Represents the matching usage for the future reservation before an - * amendment was requested. - * @return value or {@code null} for none - */ - public FutureReservationStatusExistingMatchingUsageInfo getExistingMatchingUsageInfo() { - return existingMatchingUsageInfo; - } - - /** - * Output only. [Output Only] Represents the matching usage for the future reservation before an - * amendment was requested. - * @param existingMatchingUsageInfo existingMatchingUsageInfo or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState setExistingMatchingUsageInfo(FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo) { - this.existingMatchingUsageInfo = existingMatchingUsageInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs getFutureReservationSpecs() { - return futureReservationSpecs; - } - - /** - * @param futureReservationSpecs futureReservationSpecs or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState setFutureReservationSpecs(FutureReservationStatusLastKnownGoodStateFutureReservationSpecs futureReservationSpecs) { - this.futureReservationSpecs = futureReservationSpecs; - return this; - } - - /** - * Output only. [Output Only] The lock time of the FutureReservation before an amendment was - * requested. - * @return value or {@code null} for none - */ - public java.lang.String getLockTime() { - return lockTime; - } - - /** - * Output only. [Output Only] The lock time of the FutureReservation before an amendment was - * requested. - * @param lockTime lockTime or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState setLockTime(java.lang.String lockTime) { - this.lockTime = lockTime; - return this; - } - - /** - * Output only. [Output Only] The name prefix of the Future Reservation before an amendment was - * requested. - * @return value or {@code null} for none - */ - public java.lang.String getNamePrefix() { - return namePrefix; - } - - /** - * Output only. [Output Only] The name prefix of the Future Reservation before an amendment was - * requested. - * @param namePrefix namePrefix or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState setNamePrefix(java.lang.String namePrefix) { - this.namePrefix = namePrefix; - return this; - } - - /** - * Output only. [Output Only] The status of the last known good state for the Future Reservation. - * @return value or {@code null} for none - */ - public java.lang.String getProcurementStatus() { - return procurementStatus; - } - - /** - * Output only. [Output Only] The status of the last known good state for the Future Reservation. - * @param procurementStatus procurementStatus or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodState setProcurementStatus(java.lang.String procurementStatus) { - this.procurementStatus = procurementStatus; - return this; - } - - @Override - public FutureReservationStatusLastKnownGoodState set(String fieldName, Object value) { - return (FutureReservationStatusLastKnownGoodState) super.set(fieldName, value); - } - - @Override - public FutureReservationStatusLastKnownGoodState clone() { - return (FutureReservationStatusLastKnownGoodState) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java deleted file mode 100644 index c7f73b2e8e6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusLastKnownGoodStateFutureReservationSpecs.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * The properties of the last known good state for the Future Reservation. - * - *

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 FutureReservationStatusLastKnownGoodStateFutureReservationSpecs extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The previous share settings of the Future Reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShareSettings shareSettings; - - /** - * Output only. [Output Only] The previous instance related properties of the Future Reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationSpecificSKUProperties specificSkuProperties; - - /** - * Output only. [Output Only] The previous time window of the Future Reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationTimeWindow timeWindow; - - /** - * Output only. [Output Only] The previous share settings of the Future Reservation. - * @return value or {@code null} for none - */ - public ShareSettings getShareSettings() { - return shareSettings; - } - - /** - * Output only. [Output Only] The previous share settings of the Future Reservation. - * @param shareSettings shareSettings or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs setShareSettings(ShareSettings shareSettings) { - this.shareSettings = shareSettings; - return this; - } - - /** - * Output only. [Output Only] The previous instance related properties of the Future Reservation. - * @return value or {@code null} for none - */ - public FutureReservationSpecificSKUProperties getSpecificSkuProperties() { - return specificSkuProperties; - } - - /** - * Output only. [Output Only] The previous instance related properties of the Future Reservation. - * @param specificSkuProperties specificSkuProperties or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs setSpecificSkuProperties(FutureReservationSpecificSKUProperties specificSkuProperties) { - this.specificSkuProperties = specificSkuProperties; - return this; - } - - /** - * Output only. [Output Only] The previous time window of the Future Reservation. - * @return value or {@code null} for none - */ - public FutureReservationTimeWindow getTimeWindow() { - return timeWindow; - } - - /** - * Output only. [Output Only] The previous time window of the Future Reservation. - * @param timeWindow timeWindow or {@code null} for none - */ - public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs setTimeWindow(FutureReservationTimeWindow timeWindow) { - this.timeWindow = timeWindow; - return this; - } - - @Override - public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs set(String fieldName, Object value) { - return (FutureReservationStatusLastKnownGoodStateFutureReservationSpecs) super.set(fieldName, value); - } - - @Override - public FutureReservationStatusLastKnownGoodStateFutureReservationSpecs clone() { - return (FutureReservationStatusLastKnownGoodStateFutureReservationSpecs) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusSpecificSKUProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusSpecificSKUProperties.java deleted file mode 100644 index 8d21d41ef5b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStatusSpecificSKUProperties.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Properties to be set for the Future Reservation. - * - *

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 FutureReservationStatusSpecificSKUProperties extends com.google.api.client.json.GenericJson { - - /** - * ID of the instance template used to populate the Future Reservation properties. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplateId; - - /** - * ID of the instance template used to populate the Future Reservation properties. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstanceTemplateId() { - return sourceInstanceTemplateId; - } - - /** - * ID of the instance template used to populate the Future Reservation properties. - * @param sourceInstanceTemplateId sourceInstanceTemplateId or {@code null} for none - */ - public FutureReservationStatusSpecificSKUProperties setSourceInstanceTemplateId(java.lang.String sourceInstanceTemplateId) { - this.sourceInstanceTemplateId = sourceInstanceTemplateId; - return this; - } - - @Override - public FutureReservationStatusSpecificSKUProperties set(String fieldName, Object value) { - return (FutureReservationStatusSpecificSKUProperties) super.set(fieldName, value); - } - - @Override - public FutureReservationStatusSpecificSKUProperties clone() { - return (FutureReservationStatusSpecificSKUProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProperties.java deleted file mode 100644 index d9ec1bd1ec1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProperties.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Storage pool properties for the future reservation. - * - *

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 FutureReservationStoragePoolProperties extends com.google.api.client.json.GenericJson { - - /** - * Requested exapool provisioned capacity in GiB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolExapoolProvisionedCapacityGb requestedExapoolProvisionedCapacityGb; - - /** - * Requested storage pool provisioned capacity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureReservationStoragePoolProvisionedCapacity requestedStoragePoolProvisionedCapacity; - - /** - * Type of the storage pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storagePoolType; - - /** - * Requested exapool provisioned capacity in GiB. - * @return value or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb getRequestedExapoolProvisionedCapacityGb() { - return requestedExapoolProvisionedCapacityGb; - } - - /** - * Requested exapool provisioned capacity in GiB. - * @param requestedExapoolProvisionedCapacityGb requestedExapoolProvisionedCapacityGb or {@code null} for none - */ - public FutureReservationStoragePoolProperties setRequestedExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb requestedExapoolProvisionedCapacityGb) { - this.requestedExapoolProvisionedCapacityGb = requestedExapoolProvisionedCapacityGb; - return this; - } - - /** - * Requested storage pool provisioned capacity. - * @return value or {@code null} for none - */ - public FutureReservationStoragePoolProvisionedCapacity getRequestedStoragePoolProvisionedCapacity() { - return requestedStoragePoolProvisionedCapacity; - } - - /** - * Requested storage pool provisioned capacity. - * @param requestedStoragePoolProvisionedCapacity requestedStoragePoolProvisionedCapacity or {@code null} for none - */ - public FutureReservationStoragePoolProperties setRequestedStoragePoolProvisionedCapacity(FutureReservationStoragePoolProvisionedCapacity requestedStoragePoolProvisionedCapacity) { - this.requestedStoragePoolProvisionedCapacity = requestedStoragePoolProvisionedCapacity; - return this; - } - - /** - * Type of the storage pool. - * @return value or {@code null} for none - */ - public java.lang.String getStoragePoolType() { - return storagePoolType; - } - - /** - * Type of the storage pool. - * @param storagePoolType storagePoolType or {@code null} for none - */ - public FutureReservationStoragePoolProperties setStoragePoolType(java.lang.String storagePoolType) { - this.storagePoolType = storagePoolType; - return this; - } - - @Override - public FutureReservationStoragePoolProperties set(String fieldName, Object value) { - return (FutureReservationStoragePoolProperties) super.set(fieldName, value); - } - - @Override - public FutureReservationStoragePoolProperties clone() { - return (FutureReservationStoragePoolProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProvisionedCapacity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProvisionedCapacity.java deleted file mode 100644 index 1233d85c33a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationStoragePoolProvisionedCapacity.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Storage pool provisioned capacities for each SKU type. - * - *

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 FutureReservationStoragePoolProvisionedCapacity extends com.google.api.client.json.GenericJson { - - /** - * Size of the storage pool in GiB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolProvisionedCapacityGb; - - /** - * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- - * balanced. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolProvisionedIops; - - /** - * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is - * hyperdisk-balanced or hyperdisk-throughput. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolProvisionedThroughput; - - /** - * Size of the storage pool in GiB. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolProvisionedCapacityGb() { - return poolProvisionedCapacityGb; - } - - /** - * Size of the storage pool in GiB. - * @param poolProvisionedCapacityGb poolProvisionedCapacityGb or {@code null} for none - */ - public FutureReservationStoragePoolProvisionedCapacity setPoolProvisionedCapacityGb(java.lang.Long poolProvisionedCapacityGb) { - this.poolProvisionedCapacityGb = poolProvisionedCapacityGb; - return this; - } - - /** - * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- - * balanced. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolProvisionedIops() { - return poolProvisionedIops; - } - - /** - * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- - * balanced. - * @param poolProvisionedIops poolProvisionedIops or {@code null} for none - */ - public FutureReservationStoragePoolProvisionedCapacity setPoolProvisionedIops(java.lang.Long poolProvisionedIops) { - this.poolProvisionedIops = poolProvisionedIops; - return this; - } - - /** - * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is - * hyperdisk-balanced or hyperdisk-throughput. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolProvisionedThroughput() { - return poolProvisionedThroughput; - } - - /** - * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is - * hyperdisk-balanced or hyperdisk-throughput. - * @param poolProvisionedThroughput poolProvisionedThroughput or {@code null} for none - */ - public FutureReservationStoragePoolProvisionedCapacity setPoolProvisionedThroughput(java.lang.Long poolProvisionedThroughput) { - this.poolProvisionedThroughput = poolProvisionedThroughput; - return this; - } - - @Override - public FutureReservationStoragePoolProvisionedCapacity set(String fieldName, Object value) { - return (FutureReservationStoragePoolProvisionedCapacity) super.set(fieldName, value); - } - - @Override - public FutureReservationStoragePoolProvisionedCapacity clone() { - return (FutureReservationStoragePoolProvisionedCapacity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationTimeWindow.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationTimeWindow.java deleted file mode 100644 index d4d6df40990..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationTimeWindow.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureReservationTimeWindow. - * - *

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 FutureReservationTimeWindow extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration duration; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endTime; - - /** - * Start time of the Future Reservation. The start_time is an RFC3339 string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * @return value or {@code null} for none - */ - public Duration getDuration() { - return duration; - } - - /** - * @param duration duration or {@code null} for none - */ - public FutureReservationTimeWindow setDuration(Duration duration) { - this.duration = duration; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEndTime() { - return endTime; - } - - /** - * @param endTime endTime or {@code null} for none - */ - public FutureReservationTimeWindow setEndTime(java.lang.String endTime) { - this.endTime = endTime; - return this; - } - - /** - * Start time of the Future Reservation. The start_time is an RFC3339 string. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * Start time of the Future Reservation. The start_time is an RFC3339 string. - * @param startTime startTime or {@code null} for none - */ - public FutureReservationTimeWindow setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public FutureReservationTimeWindow set(String fieldName, Object value) { - return (FutureReservationTimeWindow) super.set(fieldName, value); - } - - @Override - public FutureReservationTimeWindow clone() { - return (FutureReservationTimeWindow) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsAggregatedListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsAggregatedListResponse.java deleted file mode 100644 index 1e0bad5363c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsAggregatedListResponse.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of future reservations. - * - *

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 FutureReservationsAggregatedListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 Future reservation resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list - * response. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Future reservation resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of Future reservation resources. - * @param items items or {@code null} for none - */ - public FutureReservationsAggregatedListResponse setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list - * response. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list - * response. - * @param kind kind or {@code null} for none - */ - public FutureReservationsAggregatedListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse 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 FutureReservationsAggregatedListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public FutureReservationsAggregatedListResponse set(String fieldName, Object value) { - return (FutureReservationsAggregatedListResponse) super.set(fieldName, value); - } - - @Override - public FutureReservationsAggregatedListResponse clone() { - return (FutureReservationsAggregatedListResponse) 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 FutureReservationsAggregatedListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsListResponse.java deleted file mode 100644 index ae69589f708..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsListResponse.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureReservationsListResponse. - * - *

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 FutureReservationsListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * [Output Only] A list of future reservation 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 FutureReservation 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(FutureReservation.class); - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public FutureReservationsListResponse 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 - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public FutureReservationsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output Only] A list of future reservation resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output Only] A list of future reservation resources. - * @param items items or {@code null} for none - */ - public FutureReservationsListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations - * @param kind kind or {@code null} for none - */ - public FutureReservationsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public FutureReservationsListResponse 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 FutureReservationsListResponse 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 FutureReservationsListResponse 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 FutureReservationsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public FutureReservationsListResponse set(String fieldName, Object value) { - return (FutureReservationsListResponse) super.set(fieldName, value); - } - - @Override - public FutureReservationsListResponse clone() { - return (FutureReservationsListResponse) 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 FutureReservationsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsScopedList.java deleted file mode 100644 index 9f9dfd1ce75..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureReservationsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureReservationsScopedList. - * - *

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 FutureReservationsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of future reservations contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List futureReservations; - - static { - // hack to force ProGuard to consider FutureReservation 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(FutureReservation.class); - } - - /** - * Informational warning which replaces the list of future reservations when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of future reservations contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getFutureReservations() { - return futureReservations; - } - - /** - * A list of future reservations contained in this scope. - * @param futureReservations futureReservations or {@code null} for none - */ - public FutureReservationsScopedList setFutureReservations(java.util.List futureReservations) { - this.futureReservations = futureReservations; - return this; - } - - /** - * Informational warning which replaces the list of future reservations when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of future reservations when the list is empty. - * @param warning warning or {@code null} for none - */ - public FutureReservationsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public FutureReservationsScopedList set(String fieldName, Object value) { - return (FutureReservationsScopedList) super.set(fieldName, value); - } - - @Override - public FutureReservationsScopedList clone() { - return (FutureReservationsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of future reservations when the list is empty. - */ - 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 FutureReservationsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendation.java deleted file mode 100644 index 0c2b3746e14..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendation.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.preview.model; - -/** - * Recommendation for single resources specification, to be created in the future. - * - *

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 FutureResourcesRecommendation extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String endTime; - - /** - * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means - * that no location is recommended - see other_locations for details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * List of locations in the request scope that were not recommended. Keys of the map are zones, in - * format 'zones/'. The values are status information indicating the recommendation status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map otherLocations; - - /** - * Unique id of the recommendation, a UUID string generated by the API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String recommendationId; - - /** - * Type of recommendation. Currently only FUTURE_RESERVATION is supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String recommendationType; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String startTime; - - /** - * @return value or {@code null} for none - */ - public String getEndTime() { - return endTime; - } - - /** - * @param endTime endTime or {@code null} for none - */ - public FutureResourcesRecommendation setEndTime(String endTime) { - this.endTime = endTime; - return this; - } - - /** - * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means - * that no location is recommended - see other_locations for details. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means - * that no location is recommended - see other_locations for details. - * @param location location or {@code null} for none - */ - public FutureResourcesRecommendation setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * List of locations in the request scope that were not recommended. Keys of the map are zones, in - * format 'zones/'. The values are status information indicating the recommendation status. - * @return value or {@code null} for none - */ - public java.util.Map getOtherLocations() { - return otherLocations; - } - - /** - * List of locations in the request scope that were not recommended. Keys of the map are zones, in - * format 'zones/'. The values are status information indicating the recommendation status. - * @param otherLocations otherLocations or {@code null} for none - */ - public FutureResourcesRecommendation setOtherLocations(java.util.Map otherLocations) { - this.otherLocations = otherLocations; - return this; - } - - /** - * Unique id of the recommendation, a UUID string generated by the API. - * @return value or {@code null} for none - */ - public java.lang.String getRecommendationId() { - return recommendationId; - } - - /** - * Unique id of the recommendation, a UUID string generated by the API. - * @param recommendationId recommendationId or {@code null} for none - */ - public FutureResourcesRecommendation setRecommendationId(java.lang.String recommendationId) { - this.recommendationId = recommendationId; - return this; - } - - /** - * Type of recommendation. Currently only FUTURE_RESERVATION is supported. - * @return value or {@code null} for none - */ - public java.lang.String getRecommendationType() { - return recommendationType; - } - - /** - * Type of recommendation. Currently only FUTURE_RESERVATION is supported. - * @param recommendationType recommendationType or {@code null} for none - */ - public FutureResourcesRecommendation setRecommendationType(java.lang.String recommendationType) { - this.recommendationType = recommendationType; - return this; - } - - /** - * @return value or {@code null} for none - */ - public String getStartTime() { - return startTime; - } - - /** - * @param startTime startTime or {@code null} for none - */ - public FutureResourcesRecommendation setStartTime(String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public FutureResourcesRecommendation set(String fieldName, Object value) { - return (FutureResourcesRecommendation) super.set(fieldName, value); - } - - @Override - public FutureResourcesRecommendation clone() { - return (FutureResourcesRecommendation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendationOtherLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendationOtherLocation.java deleted file mode 100644 index 1c4d4a389d9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesRecommendationOtherLocation.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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.preview.model; - -/** - * Information about recommendation status for locations that were allowed but not used by the - * response. - * - *

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 FutureResourcesRecommendationOtherLocation extends com.google.api.client.json.GenericJson { - - /** - * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, - * then details contain information about the parameters of the time window that did not meet the - * required conditions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String details; - - /** - * Status of recommendation in this location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, - * then details contain information about the parameters of the time window that did not meet the - * required conditions. - * @return value or {@code null} for none - */ - public java.lang.String getDetails() { - return details; - } - - /** - * Details (human readable) describing the situation. For example, if status is CONDITION_NOT_MET, - * then details contain information about the parameters of the time window that did not meet the - * required conditions. - * @param details details or {@code null} for none - */ - public FutureResourcesRecommendationOtherLocation setDetails(java.lang.String details) { - this.details = details; - return this; - } - - /** - * Status of recommendation in this location. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Status of recommendation in this location. - * @param status status or {@code null} for none - */ - public FutureResourcesRecommendationOtherLocation setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public FutureResourcesRecommendationOtherLocation set(String fieldName, Object value) { - return (FutureResourcesRecommendationOtherLocation) super.set(fieldName, value); - } - - @Override - public FutureResourcesRecommendationOtherLocation clone() { - return (FutureResourcesRecommendationOtherLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpec.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpec.java deleted file mode 100644 index a10dc2c20fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpec.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification of resources to be created at some time in the future within an optionally - * specified set of locations, and within the specified time range. - * - *

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 FutureResourcesSpec extends com.google.api.client.json.GenericJson { - - /** - * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). - * Defaults to DENSE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deploymentType; - - /** - * Optional location policy allowing to exclude some zone(s) in which the resources must not be - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureResourcesSpecLocationPolicy locationPolicy; - - /** - * Specification of the reserved resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureResourcesSpecTargetResources targetResources; - - /** - * Specification of a time range in which the resources may be created. The time range specifies - * start of resource use and planned end of resource use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FlexibleTimeRange timeRangeSpec; - - /** - * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). - * Defaults to DENSE. - * @return value or {@code null} for none - */ - public java.lang.String getDeploymentType() { - return deploymentType; - } - - /** - * Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). - * Defaults to DENSE. - * @param deploymentType deploymentType or {@code null} for none - */ - public FutureResourcesSpec setDeploymentType(java.lang.String deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * Optional location policy allowing to exclude some zone(s) in which the resources must not be - * created. - * @return value or {@code null} for none - */ - public FutureResourcesSpecLocationPolicy getLocationPolicy() { - return locationPolicy; - } - - /** - * Optional location policy allowing to exclude some zone(s) in which the resources must not be - * created. - * @param locationPolicy locationPolicy or {@code null} for none - */ - public FutureResourcesSpec setLocationPolicy(FutureResourcesSpecLocationPolicy locationPolicy) { - this.locationPolicy = locationPolicy; - return this; - } - - /** - * Specification of the reserved resources. - * @return value or {@code null} for none - */ - public FutureResourcesSpecTargetResources getTargetResources() { - return targetResources; - } - - /** - * Specification of the reserved resources. - * @param targetResources targetResources or {@code null} for none - */ - public FutureResourcesSpec setTargetResources(FutureResourcesSpecTargetResources targetResources) { - this.targetResources = targetResources; - return this; - } - - /** - * Specification of a time range in which the resources may be created. The time range specifies - * start of resource use and planned end of resource use. - * @return value or {@code null} for none - */ - public FlexibleTimeRange getTimeRangeSpec() { - return timeRangeSpec; - } - - /** - * Specification of a time range in which the resources may be created. The time range specifies - * start of resource use and planned end of resource use. - * @param timeRangeSpec timeRangeSpec or {@code null} for none - */ - public FutureResourcesSpec setTimeRangeSpec(FlexibleTimeRange timeRangeSpec) { - this.timeRangeSpec = timeRangeSpec; - return this; - } - - @Override - public FutureResourcesSpec set(String fieldName, Object value) { - return (FutureResourcesSpec) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpec clone() { - return (FutureResourcesSpec) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecAggregateResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecAggregateResources.java deleted file mode 100644 index f571ba7427d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecAggregateResources.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureResourcesSpecAggregateResources. - * - *

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 FutureResourcesSpecAggregateResources extends com.google.api.client.json.GenericJson { - - /** - * Size of the request, in accelerator (chip) count. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long acceleratorCount; - - /** - * The VM family that all instances scheduled against this reservation must belong to. Use for TPU - * reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vmFamily; - - /** - * Workload type. Use for TPU reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String workloadType; - - /** - * Size of the request, in accelerator (chip) count. - * @return value or {@code null} for none - */ - public java.lang.Long getAcceleratorCount() { - return acceleratorCount; - } - - /** - * Size of the request, in accelerator (chip) count. - * @param acceleratorCount acceleratorCount or {@code null} for none - */ - public FutureResourcesSpecAggregateResources setAcceleratorCount(java.lang.Long acceleratorCount) { - this.acceleratorCount = acceleratorCount; - return this; - } - - /** - * The VM family that all instances scheduled against this reservation must belong to. Use for TPU - * reservations. - * @return value or {@code null} for none - */ - public java.lang.String getVmFamily() { - return vmFamily; - } - - /** - * The VM family that all instances scheduled against this reservation must belong to. Use for TPU - * reservations. - * @param vmFamily vmFamily or {@code null} for none - */ - public FutureResourcesSpecAggregateResources setVmFamily(java.lang.String vmFamily) { - this.vmFamily = vmFamily; - return this; - } - - /** - * Workload type. Use for TPU reservations. - * @return value or {@code null} for none - */ - public java.lang.String getWorkloadType() { - return workloadType; - } - - /** - * Workload type. Use for TPU reservations. - * @param workloadType workloadType or {@code null} for none - */ - public FutureResourcesSpecAggregateResources setWorkloadType(java.lang.String workloadType) { - this.workloadType = workloadType; - return this; - } - - @Override - public FutureResourcesSpecAggregateResources set(String fieldName, Object value) { - return (FutureResourcesSpecAggregateResources) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpecAggregateResources clone() { - return (FutureResourcesSpecAggregateResources) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocalSsdPartition.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocalSsdPartition.java deleted file mode 100644 index 7b04173ca2a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocalSsdPartition.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureResourcesSpecLocalSsdPartition. - * - *

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 FutureResourcesSpecLocalSsdPartition extends com.google.api.client.json.GenericJson { - - /** - * Disk interface. Defaults to SCSI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diskInterface; - - /** - * The size of the disk in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * Disk interface. Defaults to SCSI. - * @return value or {@code null} for none - */ - public java.lang.String getDiskInterface() { - return diskInterface; - } - - /** - * Disk interface. Defaults to SCSI. - * @param diskInterface diskInterface or {@code null} for none - */ - public FutureResourcesSpecLocalSsdPartition setDiskInterface(java.lang.String diskInterface) { - this.diskInterface = diskInterface; - return this; - } - - /** - * The size of the disk in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * The size of the disk in GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public FutureResourcesSpecLocalSsdPartition setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - @Override - public FutureResourcesSpecLocalSsdPartition set(String fieldName, Object value) { - return (FutureResourcesSpecLocalSsdPartition) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpecLocalSsdPartition clone() { - return (FutureResourcesSpecLocalSsdPartition) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicy.java deleted file mode 100644 index ef1b655b723..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicy.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification of locations to create resources in. - * - *

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 FutureResourcesSpecLocationPolicy extends com.google.api.client.json.GenericJson { - - /** - * Preferences for specified locations. Keys of the map are locations - zones, in format of - * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is - * ALLOWed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map locations; - - /** - * Preferences for specified locations. Keys of the map are locations - zones, in format of - * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is - * ALLOWed. - * @return value or {@code null} for none - */ - public java.util.Map getLocations() { - return locations; - } - - /** - * Preferences for specified locations. Keys of the map are locations - zones, in format of - * 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is - * ALLOWed. - * @param locations locations or {@code null} for none - */ - public FutureResourcesSpecLocationPolicy setLocations(java.util.Map locations) { - this.locations = locations; - return this; - } - - @Override - public FutureResourcesSpecLocationPolicy set(String fieldName, Object value) { - return (FutureResourcesSpecLocationPolicy) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpecLocationPolicy clone() { - return (FutureResourcesSpecLocationPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicyLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicyLocation.java deleted file mode 100644 index df8ca72bfd3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecLocationPolicyLocation.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Preference for a single specified location. - * - *

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 FutureResourcesSpecLocationPolicyLocation extends com.google.api.client.json.GenericJson { - - /** - * Preference for this location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String preference; - - /** - * Preference for this location. - * @return value or {@code null} for none - */ - public java.lang.String getPreference() { - return preference; - } - - /** - * Preference for this location. - * @param preference preference or {@code null} for none - */ - public FutureResourcesSpecLocationPolicyLocation setPreference(java.lang.String preference) { - this.preference = preference; - return this; - } - - @Override - public FutureResourcesSpecLocationPolicyLocation set(String fieldName, Object value) { - return (FutureResourcesSpecLocationPolicyLocation) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpecLocationPolicyLocation clone() { - return (FutureResourcesSpecLocationPolicyLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecSpecificSKUResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecSpecificSKUResources.java deleted file mode 100644 index 7da34f9d3d5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecSpecificSKUResources.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for FutureResourcesSpecSpecificSKUResources. - * - *

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 FutureResourcesSpecSpecificSKUResources extends com.google.api.client.json.GenericJson { - - /** - * Size of the request, in instance count. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long instanceCount; - - /** - * Local SSD partitions. You do not have to include SSD partitions that are built in the machine - * type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List localSsdPartitions; - - static { - // hack to force ProGuard to consider FutureResourcesSpecLocalSsdPartition 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(FutureResourcesSpecLocalSsdPartition.class); - } - - /** - * The machine type to use for instances that will use the reservation. This field only accepts - * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. - * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU - * reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * Size of the request, in instance count. - * @return value or {@code null} for none - */ - public java.lang.Long getInstanceCount() { - return instanceCount; - } - - /** - * Size of the request, in instance count. - * @param instanceCount instanceCount or {@code null} for none - */ - public FutureResourcesSpecSpecificSKUResources setInstanceCount(java.lang.Long instanceCount) { - this.instanceCount = instanceCount; - return this; - } - - /** - * Local SSD partitions. You do not have to include SSD partitions that are built in the machine - * type. - * @return value or {@code null} for none - */ - public java.util.List getLocalSsdPartitions() { - return localSsdPartitions; - } - - /** - * Local SSD partitions. You do not have to include SSD partitions that are built in the machine - * type. - * @param localSsdPartitions localSsdPartitions or {@code null} for none - */ - public FutureResourcesSpecSpecificSKUResources setLocalSsdPartitions(java.util.List localSsdPartitions) { - this.localSsdPartitions = localSsdPartitions; - return this; - } - - /** - * The machine type to use for instances that will use the reservation. This field only accepts - * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. - * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU - * reservations. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * The machine type to use for instances that will use the reservation. This field only accepts - * machine type names. e.g. n2-standard-4 and does not accept machine type full or partial url. - * e.g. projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. Use for GPU - * reservations. - * @param machineType machineType or {@code null} for none - */ - public FutureResourcesSpecSpecificSKUResources setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - @Override - public FutureResourcesSpecSpecificSKUResources set(String fieldName, Object value) { - return (FutureResourcesSpecSpecificSKUResources) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpecSpecificSKUResources clone() { - return (FutureResourcesSpecSpecificSKUResources) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecTargetResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecTargetResources.java deleted file mode 100644 index 92f7f5d1981..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/FutureResourcesSpecTargetResources.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification of reserved resources. - * - *

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 FutureResourcesSpecTargetResources extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureResourcesSpecAggregateResources aggregateResources; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FutureResourcesSpecSpecificSKUResources specificSkuResources; - - /** - * @return value or {@code null} for none - */ - public FutureResourcesSpecAggregateResources getAggregateResources() { - return aggregateResources; - } - - /** - * @param aggregateResources aggregateResources or {@code null} for none - */ - public FutureResourcesSpecTargetResources setAggregateResources(FutureResourcesSpecAggregateResources aggregateResources) { - this.aggregateResources = aggregateResources; - return this; - } - - /** - * @return value or {@code null} for none - */ - public FutureResourcesSpecSpecificSKUResources getSpecificSkuResources() { - return specificSkuResources; - } - - /** - * @param specificSkuResources specificSkuResources or {@code null} for none - */ - public FutureResourcesSpecTargetResources setSpecificSkuResources(FutureResourcesSpecSpecificSKUResources specificSkuResources) { - this.specificSkuResources = specificSkuResources; - return this; - } - - @Override - public FutureResourcesSpecTargetResources set(String fieldName, Object value) { - return (FutureResourcesSpecTargetResources) super.set(fieldName, value); - } - - @Override - public FutureResourcesSpecTargetResources clone() { - return (FutureResourcesSpecTargetResources) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCHealthCheck.java deleted file mode 100644 index 8fe880a566f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCHealthCheck.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GRPCHealthCheck. - * - *

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 GRPCHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The gRPC service name for the health check. This field is optional. The value of - * grpc_service_name has the following meanings by convention: - * - * - Empty service_name means the overall status of all services at the backend. - * - * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the - * service. - * - * The grpc_service_name can only be ASCII. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String grpcServiceName; - - /** - * The TCP port number to which the health check prober sends packets. Valid values are 1 through - * 65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * The gRPC service name for the health check. This field is optional. The value of - * grpc_service_name has the following meanings by convention: - * - * - Empty service_name means the overall status of all services at the backend. - * - * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the - * service. - * - * The grpc_service_name can only be ASCII. - * @return value or {@code null} for none - */ - public java.lang.String getGrpcServiceName() { - return grpcServiceName; - } - - /** - * The gRPC service name for the health check. This field is optional. The value of - * grpc_service_name has the following meanings by convention: - * - * - Empty service_name means the overall status of all services at the backend. - * - * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the - * service. - * - * The grpc_service_name can only be ASCII. - * @param grpcServiceName grpcServiceName or {@code null} for none - */ - public GRPCHealthCheck setGrpcServiceName(java.lang.String grpcServiceName) { - this.grpcServiceName = grpcServiceName; - return this; - } - - /** - * The TCP port number to which the health check prober sends packets. Valid values are 1 through - * 65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. Valid values are 1 through - * 65535. - * @param port port or {@code null} for none - */ - public GRPCHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Not supported. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Not supported. - * @param portName portName or {@code null} for none - */ - public GRPCHealthCheck setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public GRPCHealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - @Override - public GRPCHealthCheck set(String fieldName, Object value) { - return (GRPCHealthCheck) super.set(fieldName, value); - } - - @Override - public GRPCHealthCheck clone() { - return (GRPCHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCTLSHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCTLSHealthCheck.java deleted file mode 100644 index 56b71ff5933..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GRPCTLSHealthCheck.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GRPCTLSHealthCheck. - * - *

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 GRPCTLSHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The gRPC service name for the health check. This field is optional. The value of - * grpc_service_name has the following meanings by convention: - * - * - Empty service_name means the overall status of all services at the backend. - * - * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the - * service. - * - * The grpc_service_name can only be ASCII. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String grpcServiceName; - - /** - * The TCP port number to which the health check prober sends packets. Valid values are 1 through - * 65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * The gRPC service name for the health check. This field is optional. The value of - * grpc_service_name has the following meanings by convention: - * - * - Empty service_name means the overall status of all services at the backend. - * - * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the - * service. - * - * The grpc_service_name can only be ASCII. - * @return value or {@code null} for none - */ - public java.lang.String getGrpcServiceName() { - return grpcServiceName; - } - - /** - * The gRPC service name for the health check. This field is optional. The value of - * grpc_service_name has the following meanings by convention: - * - * - Empty service_name means the overall status of all services at the backend. - * - * - Non-empty service_name means the health of that gRPC service, as defined by the owner of the - * service. - * - * The grpc_service_name can only be ASCII. - * @param grpcServiceName grpcServiceName or {@code null} for none - */ - public GRPCTLSHealthCheck setGrpcServiceName(java.lang.String grpcServiceName) { - this.grpcServiceName = grpcServiceName; - return this; - } - - /** - * The TCP port number to which the health check prober sends packets. Valid values are 1 through - * 65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. Valid values are 1 through - * 65535. - * @param port port or {@code null} for none - */ - public GRPCTLSHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public GRPCTLSHealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - @Override - public GRPCTLSHealthCheck set(String fieldName, Object value) { - return (GRPCTLSHealthCheck) super.set(fieldName, value); - } - - @Override - public GRPCTLSHealthCheck clone() { - return (GRPCTLSHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadata.java deleted file mode 100644 index 8463ef83abc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadata.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Metadata for GetHealth operations. - * - *

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 GetHealthOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * Output only. The health information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GetHealthOperationMetadataHealthInfo healthInfo; - - /** - * Output only. The health information. - * @return value or {@code null} for none - */ - public GetHealthOperationMetadataHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. The health information. - * @param healthInfo healthInfo or {@code null} for none - */ - public GetHealthOperationMetadata setHealthInfo(GetHealthOperationMetadataHealthInfo healthInfo) { - this.healthInfo = healthInfo; - return this; - } - - @Override - public GetHealthOperationMetadata set(String fieldName, Object value) { - return (GetHealthOperationMetadata) super.set(fieldName, value); - } - - @Override - public GetHealthOperationMetadata clone() { - return (GetHealthOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadataHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadataHealthInfo.java deleted file mode 100644 index d9e1d0f2554..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetHealthOperationMetadataHealthInfo.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Health information. - * - *

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 GetHealthOperationMetadataHealthInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. The availability SLO status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String availabilitySloStatus; - - /** - * Output only. The health status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatus; - - /** - * Output only. The repair category. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String repairCategory; - - /** - * Output only. The reason for unhealthy status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String unhealthyReason; - - /** - * Output only. The time when health info was updated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String updateTime; - - /** - * Output only. The availability SLO status. - * @return value or {@code null} for none - */ - public java.lang.String getAvailabilitySloStatus() { - return availabilitySloStatus; - } - - /** - * Output only. The availability SLO status. - * @param availabilitySloStatus availabilitySloStatus or {@code null} for none - */ - public GetHealthOperationMetadataHealthInfo setAvailabilitySloStatus(java.lang.String availabilitySloStatus) { - this.availabilitySloStatus = availabilitySloStatus; - return this; - } - - /** - * Output only. The health status. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatus() { - return healthStatus; - } - - /** - * Output only. The health status. - * @param healthStatus healthStatus or {@code null} for none - */ - public GetHealthOperationMetadataHealthInfo setHealthStatus(java.lang.String healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * Output only. The repair category. - * @return value or {@code null} for none - */ - public java.lang.String getRepairCategory() { - return repairCategory; - } - - /** - * Output only. The repair category. - * @param repairCategory repairCategory or {@code null} for none - */ - public GetHealthOperationMetadataHealthInfo setRepairCategory(java.lang.String repairCategory) { - this.repairCategory = repairCategory; - return this; - } - - /** - * Output only. The reason for unhealthy status. - * @return value or {@code null} for none - */ - public java.lang.String getUnhealthyReason() { - return unhealthyReason; - } - - /** - * Output only. The reason for unhealthy status. - * @param unhealthyReason unhealthyReason or {@code null} for none - */ - public GetHealthOperationMetadataHealthInfo setUnhealthyReason(java.lang.String unhealthyReason) { - this.unhealthyReason = unhealthyReason; - return this; - } - - /** - * Output only. The time when health info was updated. - * @return value or {@code null} for none - */ - public String getUpdateTime() { - return updateTime; - } - - /** - * Output only. The time when health info was updated. - * @param updateTime updateTime or {@code null} for none - */ - public GetHealthOperationMetadataHealthInfo setUpdateTime(String updateTime) { - this.updateTime = updateTime; - return this; - } - - @Override - public GetHealthOperationMetadataHealthInfo set(String fieldName, Object value) { - return (GetHealthOperationMetadataHealthInfo) super.set(fieldName, value); - } - - @Override - public GetHealthOperationMetadataHealthInfo clone() { - return (GetHealthOperationMetadataHealthInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadata.java deleted file mode 100644 index 40ec2cffee7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadata.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GetVersionOperationMetadata. - * - *

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 GetVersionOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GetVersionOperationMetadataSbomInfo inlineSbomInfo; - - /** - * @return value or {@code null} for none - */ - public GetVersionOperationMetadataSbomInfo getInlineSbomInfo() { - return inlineSbomInfo; - } - - /** - * @param inlineSbomInfo inlineSbomInfo or {@code null} for none - */ - public GetVersionOperationMetadata setInlineSbomInfo(GetVersionOperationMetadataSbomInfo inlineSbomInfo) { - this.inlineSbomInfo = inlineSbomInfo; - return this; - } - - @Override - public GetVersionOperationMetadata set(String fieldName, Object value) { - return (GetVersionOperationMetadata) super.set(fieldName, value); - } - - @Override - public GetVersionOperationMetadata clone() { - return (GetVersionOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadataSbomInfo.java deleted file mode 100644 index eda2c2c6fbe..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GetVersionOperationMetadataSbomInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GetVersionOperationMetadataSbomInfo. - * - *

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 GetVersionOperationMetadataSbomInfo extends com.google.api.client.json.GenericJson { - - /** - * A mapping of components to their currently-applied versions or other appropriate identifiers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map currentComponentVersions; - - /** - * A mapping of components to their target versions or other appropriate identifiers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map targetComponentVersions; - - /** - * A mapping of components to their currently-applied versions or other appropriate identifiers. - * @return value or {@code null} for none - */ - public java.util.Map getCurrentComponentVersions() { - return currentComponentVersions; - } - - /** - * A mapping of components to their currently-applied versions or other appropriate identifiers. - * @param currentComponentVersions currentComponentVersions or {@code null} for none - */ - public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { - this.currentComponentVersions = currentComponentVersions; - return this; - } - - /** - * A mapping of components to their target versions or other appropriate identifiers. - * @return value or {@code null} for none - */ - public java.util.Map getTargetComponentVersions() { - return targetComponentVersions; - } - - /** - * A mapping of components to their target versions or other appropriate identifiers. - * @param targetComponentVersions targetComponentVersions or {@code null} for none - */ - public GetVersionOperationMetadataSbomInfo setTargetComponentVersions(java.util.Map targetComponentVersions) { - this.targetComponentVersions = targetComponentVersions; - return this; - } - - @Override - public GetVersionOperationMetadataSbomInfo set(String fieldName, Object value) { - return (GetVersionOperationMetadataSbomInfo) super.set(fieldName, value); - } - - @Override - public GetVersionOperationMetadataSbomInfo clone() { - return (GetVersionOperationMetadataSbomInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalAddressesMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalAddressesMoveRequest.java deleted file mode 100644 index b1c036cb052..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalAddressesMoveRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalAddressesMoveRequest. - * - *

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 GlobalAddressesMoveRequest extends com.google.api.client.json.GenericJson { - - /** - * An optional destination address description if intended to be different from the source. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The URL of the destination address to move to. This can be a full or partial URL. For example, - * the following are all valid URLs to a address: - - * https://www.googleapis.com/compute/v1/projects/project/global/addresses/address - - * projects/project/global/addresses/address - * - * Note that destination project must be different from the source project. - * So/global/addresses/address is not valid partial url. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destinationAddress; - - /** - * An optional destination address description if intended to be different from the source. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional destination address description if intended to be different from the source. - * @param description description or {@code null} for none - */ - public GlobalAddressesMoveRequest setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The URL of the destination address to move to. This can be a full or partial URL. For example, - * the following are all valid URLs to a address: - - * https://www.googleapis.com/compute/v1/projects/project/global/addresses/address - - * projects/project/global/addresses/address - * - * Note that destination project must be different from the source project. - * So/global/addresses/address is not valid partial url. - * @return value or {@code null} for none - */ - public java.lang.String getDestinationAddress() { - return destinationAddress; - } - - /** - * The URL of the destination address to move to. This can be a full or partial URL. For example, - * the following are all valid URLs to a address: - - * https://www.googleapis.com/compute/v1/projects/project/global/addresses/address - - * projects/project/global/addresses/address - * - * Note that destination project must be different from the source project. - * So/global/addresses/address is not valid partial url. - * @param destinationAddress destinationAddress or {@code null} for none - */ - public GlobalAddressesMoveRequest setDestinationAddress(java.lang.String destinationAddress) { - this.destinationAddress = destinationAddress; - return this; - } - - @Override - public GlobalAddressesMoveRequest set(String fieldName, Object value) { - return (GlobalAddressesMoveRequest) super.set(fieldName, value); - } - - @Override - public GlobalAddressesMoveRequest clone() { - return (GlobalAddressesMoveRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettings.java deleted file mode 100644 index 891556da972..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettings.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettingsPatchResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettingsPatchResponse.java deleted file mode 100644 index 37cb1e6b97c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalFrontendSettingsPatchResponse.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java deleted file mode 100644 index 6986e480d75..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalNetworkEndpointGroupsAttachEndpointsRequest. - * - *

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 GlobalNetworkEndpointGroupsAttachEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of network endpoints to be attached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpoints; - - /** - * The list of network endpoints to be attached. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpoints() { - return networkEndpoints; - } - - /** - * The list of network endpoints to be attached. - * @param networkEndpoints networkEndpoints or {@code null} for none - */ - public GlobalNetworkEndpointGroupsAttachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { - this.networkEndpoints = networkEndpoints; - return this; - } - - @Override - public GlobalNetworkEndpointGroupsAttachEndpointsRequest set(String fieldName, Object value) { - return (GlobalNetworkEndpointGroupsAttachEndpointsRequest) super.set(fieldName, value); - } - - @Override - public GlobalNetworkEndpointGroupsAttachEndpointsRequest clone() { - return (GlobalNetworkEndpointGroupsAttachEndpointsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java deleted file mode 100644 index 1036c5c8299..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalNetworkEndpointGroupsDetachEndpointsRequest. - * - *

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 GlobalNetworkEndpointGroupsDetachEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of network endpoints to be detached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpoints; - - /** - * The list of network endpoints to be detached. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpoints() { - return networkEndpoints; - } - - /** - * The list of network endpoints to be detached. - * @param networkEndpoints networkEndpoints or {@code null} for none - */ - public GlobalNetworkEndpointGroupsDetachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { - this.networkEndpoints = networkEndpoints; - return this; - } - - @Override - public GlobalNetworkEndpointGroupsDetachEndpointsRequest set(String fieldName, Object value) { - return (GlobalNetworkEndpointGroupsDetachEndpointsRequest) super.set(fieldName, value); - } - - @Override - public GlobalNetworkEndpointGroupsDetachEndpointsRequest clone() { - return (GlobalNetworkEndpointGroupsDetachEndpointsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalOrganizationSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalOrganizationSetPolicyRequest.java deleted file mode 100644 index 68fa6446117..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalOrganizationSetPolicyRequest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalOrganizationSetPolicyRequest. - * - *

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 GlobalOrganizationSetPolicyRequest extends com.google.api.client.json.GenericJson { - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bindings; - - static { - // hack to force ProGuard to consider Binding 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(Binding.class); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Policy policy; - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @return value or {@code null} for none - */ - public java.util.List getBindings() { - return bindings; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @param bindings bindings or {@code null} for none - */ - public GlobalOrganizationSetPolicyRequest setBindings(java.util.List bindings) { - this.bindings = bindings; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #decodeEtag() - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #getEtag() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeEtag() { - return com.google.api.client.util.Base64.decodeBase64(etag); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #encodeEtag() - * @param etag etag or {@code null} for none - */ - public GlobalOrganizationSetPolicyRequest setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #setEtag() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public GlobalOrganizationSetPolicyRequest encodeEtag(byte[] etag) { - this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); - return this; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @return value or {@code null} for none - */ - public Policy getPolicy() { - return policy; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @param policy policy or {@code null} for none - */ - public GlobalOrganizationSetPolicyRequest setPolicy(Policy policy) { - this.policy = policy; - return this; - } - - @Override - public GlobalOrganizationSetPolicyRequest set(String fieldName, Object value) { - return (GlobalOrganizationSetPolicyRequest) super.set(fieldName, value); - } - - @Override - public GlobalOrganizationSetPolicyRequest clone() { - return (GlobalOrganizationSetPolicyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetLabelsRequest.java deleted file mode 100644 index 27765b578c0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetLabelsRequest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalSetLabelsRequest. - * - *

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 GlobalSetLabelsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash when updating or - * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() - * request to the resource to get the latest fingerprint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * A list of labels to apply for this resource. Each label must comply with the requirements for - * labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my- - * label": ""). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash when updating or - * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() - * request to the resource to get the latest fingerprint. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash when updating or - * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() - * request to the resource to get the latest fingerprint. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash when updating or - * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() - * request to the resource to get the latest fingerprint. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public GlobalSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash when updating or - * changing labels, otherwise the request will fail with error412 conditionNotMet. Make a get() - * request to the resource to get the latest fingerprint. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public GlobalSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * A list of labels to apply for this resource. Each label must comply with the requirements for - * labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my- - * label": ""). - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * A list of labels to apply for this resource. Each label must comply with the requirements for - * labels. For example,"webserver-frontend": "images". A label value can also be empty (e.g. "my- - * label": ""). - * @param labels labels or {@code null} for none - */ - public GlobalSetLabelsRequest setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - @Override - public GlobalSetLabelsRequest set(String fieldName, Object value) { - return (GlobalSetLabelsRequest) super.set(fieldName, value); - } - - @Override - public GlobalSetLabelsRequest clone() { - return (GlobalSetLabelsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetPolicyRequest.java deleted file mode 100644 index 62ead23c3d6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalSetPolicyRequest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalSetPolicyRequest. - * - *

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 GlobalSetPolicyRequest extends com.google.api.client.json.GenericJson { - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bindings; - - static { - // hack to force ProGuard to consider Binding 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(Binding.class); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Policy policy; - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @return value or {@code null} for none - */ - public java.util.List getBindings() { - return bindings; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @param bindings bindings or {@code null} for none - */ - public GlobalSetPolicyRequest setBindings(java.util.List bindings) { - this.bindings = bindings; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #decodeEtag() - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #getEtag() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeEtag() { - return com.google.api.client.util.Base64.decodeBase64(etag); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #encodeEtag() - * @param etag etag or {@code null} for none - */ - public GlobalSetPolicyRequest setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #setEtag() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public GlobalSetPolicyRequest encodeEtag(byte[] etag) { - this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); - return this; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @return value or {@code null} for none - */ - public Policy getPolicy() { - return policy; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @param policy policy or {@code null} for none - */ - public GlobalSetPolicyRequest setPolicy(Policy policy) { - this.policy = policy; - return this; - } - - @Override - public GlobalSetPolicyRequest set(String fieldName, Object value) { - return (GlobalSetPolicyRequest) super.set(fieldName, value); - } - - @Override - public GlobalSetPolicyRequest clone() { - return (GlobalSetPolicyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicy.java deleted file mode 100644 index f262fb81246..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicy.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message describing GlobalVmExtensionPolicy object. - * - *

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 GlobalVmExtensionPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Required. Map from extension (eg: "cloudops") to its policy configuration. The key is the name - * of the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map extensionPolicies; - - /** - * 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; - - /** - * Optional. Selector to target VMs for a policy. There is a logical "AND" between - * instance_selectors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceSelectors; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for - * globalVmExtensionPolicies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Optional. Used to resolve conflicts when multiple policies are active for the same extension. - * Defaults to 0. - * - * Larger the number, higher the priority. When the priority is the same, the policy with the - * newer create time has higher priority. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * Required. The rollout strategy and status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GlobalVmExtensionPolicyRolloutOperation rolloutOperation; - - /** - * Output only. [Output Only] The scoped resource status. It's only for tracking the purging - * status of the policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String scopedResourceStatus; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Update timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateTimestamp; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public GlobalVmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public GlobalVmExtensionPolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Required. Map from extension (eg: "cloudops") to its policy configuration. The key is the name - * of the extension. - * @return value or {@code null} for none - */ - public java.util.Map getExtensionPolicies() { - return extensionPolicies; - } - - /** - * Required. Map from extension (eg: "cloudops") to its policy configuration. The key is the name - * of the extension. - * @param extensionPolicies extensionPolicies or {@code null} for none - */ - public GlobalVmExtensionPolicy setExtensionPolicies(java.util.Map extensionPolicies) { - this.extensionPolicies = extensionPolicies; - 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 GlobalVmExtensionPolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Optional. Selector to target VMs for a policy. There is a logical "AND" between - * instance_selectors. - * @return value or {@code null} for none - */ - public java.util.List getInstanceSelectors() { - return instanceSelectors; - } - - /** - * Optional. Selector to target VMs for a policy. There is a logical "AND" between - * instance_selectors. - * @param instanceSelectors instanceSelectors or {@code null} for none - */ - public GlobalVmExtensionPolicy setInstanceSelectors(java.util.List instanceSelectors) { - this.instanceSelectors = instanceSelectors; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for - * globalVmExtensionPolicies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for - * globalVmExtensionPolicies. - * @param kind kind or {@code null} for none - */ - public GlobalVmExtensionPolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 GlobalVmExtensionPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Optional. Used to resolve conflicts when multiple policies are active for the same extension. - * Defaults to 0. - * - * Larger the number, higher the priority. When the priority is the same, the policy with the - * newer create time has higher priority. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * Optional. Used to resolve conflicts when multiple policies are active for the same extension. - * Defaults to 0. - * - * Larger the number, higher the priority. When the priority is the same, the policy with the - * newer create time has higher priority. - * @param priority priority or {@code null} for none - */ - public GlobalVmExtensionPolicy setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * Required. The rollout strategy and status. - * @return value or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperation getRolloutOperation() { - return rolloutOperation; - } - - /** - * Required. The rollout strategy and status. - * @param rolloutOperation rolloutOperation or {@code null} for none - */ - public GlobalVmExtensionPolicy setRolloutOperation(GlobalVmExtensionPolicyRolloutOperation rolloutOperation) { - this.rolloutOperation = rolloutOperation; - return this; - } - - /** - * Output only. [Output Only] The scoped resource status. It's only for tracking the purging - * status of the policy. - * @return value or {@code null} for none - */ - public java.lang.String getScopedResourceStatus() { - return scopedResourceStatus; - } - - /** - * Output only. [Output Only] The scoped resource status. It's only for tracking the purging - * status of the policy. - * @param scopedResourceStatus scopedResourceStatus or {@code null} for none - */ - public GlobalVmExtensionPolicy setScopedResourceStatus(java.lang.String scopedResourceStatus) { - this.scopedResourceStatus = scopedResourceStatus; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public GlobalVmExtensionPolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public GlobalVmExtensionPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. [Output Only] Update timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateTimestamp() { - return updateTimestamp; - } - - /** - * Output only. [Output Only] Update timestamp inRFC3339 text format. - * @param updateTimestamp updateTimestamp or {@code null} for none - */ - public GlobalVmExtensionPolicy setUpdateTimestamp(java.lang.String updateTimestamp) { - this.updateTimestamp = updateTimestamp; - return this; - } - - @Override - public GlobalVmExtensionPolicy set(String fieldName, Object value) { - return (GlobalVmExtensionPolicy) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicy clone() { - return (GlobalVmExtensionPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyExtensionPolicy.java deleted file mode 100644 index 373daf8aa6d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyExtensionPolicy.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Policy for a single extension. - * - *

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 GlobalVmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { - - /** - * Optional. The version pinning for the extension. If empty, the extension will be installed with - * the latest version released by the extension producer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pinnedVersion; - - /** - * Optional. String configuration. Any string payload that the extension understands. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stringConfig; - - /** - * Optional. The version pinning for the extension. If empty, the extension will be installed with - * the latest version released by the extension producer. - * @return value or {@code null} for none - */ - public java.lang.String getPinnedVersion() { - return pinnedVersion; - } - - /** - * Optional. The version pinning for the extension. If empty, the extension will be installed with - * the latest version released by the extension producer. - * @param pinnedVersion pinnedVersion or {@code null} for none - */ - public GlobalVmExtensionPolicyExtensionPolicy setPinnedVersion(java.lang.String pinnedVersion) { - this.pinnedVersion = pinnedVersion; - return this; - } - - /** - * Optional. String configuration. Any string payload that the extension understands. - * @return value or {@code null} for none - */ - public java.lang.String getStringConfig() { - return stringConfig; - } - - /** - * Optional. String configuration. Any string payload that the extension understands. - * @param stringConfig stringConfig or {@code null} for none - */ - public GlobalVmExtensionPolicyExtensionPolicy setStringConfig(java.lang.String stringConfig) { - this.stringConfig = stringConfig; - return this; - } - - @Override - public GlobalVmExtensionPolicyExtensionPolicy set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyExtensionPolicy) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyExtensionPolicy clone() { - return (GlobalVmExtensionPolicyExtensionPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyInstanceSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyInstanceSelector.java deleted file mode 100644 index a000a876eac..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyInstanceSelector.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Selector to target VMs for a zone VM extension policy. - * - *

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 GlobalVmExtensionPolicyInstanceSelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. Labels within the LabelSelector are OR'd. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GlobalVmExtensionPolicyLabelSelector labelSelector; - - /** - * Optional. Labels within the LabelSelector are OR'd. - * @return value or {@code null} for none - */ - public GlobalVmExtensionPolicyLabelSelector getLabelSelector() { - return labelSelector; - } - - /** - * Optional. Labels within the LabelSelector are OR'd. - * @param labelSelector labelSelector or {@code null} for none - */ - public GlobalVmExtensionPolicyInstanceSelector setLabelSelector(GlobalVmExtensionPolicyLabelSelector labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - @Override - public GlobalVmExtensionPolicyInstanceSelector set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyInstanceSelector) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyInstanceSelector clone() { - return (GlobalVmExtensionPolicyInstanceSelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyLabelSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyLabelSelector.java deleted file mode 100644 index 1c2abf4edff..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyLabelSelector.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * A LabelSelector is applicable for a VM only if it matches all labels in the LabelSelector. - * - *

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 GlobalVmExtensionPolicyLabelSelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. Labels as key value pairs. A VM should contain all the pairs specified in this map to - * be selected; Labels within the LabelSelector are OR'ed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map inclusionLabels; - - /** - * Optional. Labels as key value pairs. A VM should contain all the pairs specified in this map to - * be selected; Labels within the LabelSelector are OR'ed. - * @return value or {@code null} for none - */ - public java.util.Map getInclusionLabels() { - return inclusionLabels; - } - - /** - * Optional. Labels as key value pairs. A VM should contain all the pairs specified in this map to - * be selected; Labels within the LabelSelector are OR'ed. - * @param inclusionLabels inclusionLabels or {@code null} for none - */ - public GlobalVmExtensionPolicyLabelSelector setInclusionLabels(java.util.Map inclusionLabels) { - this.inclusionLabels = inclusionLabels; - return this; - } - - @Override - public GlobalVmExtensionPolicyLabelSelector set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyLabelSelector) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyLabelSelector clone() { - return (GlobalVmExtensionPolicyLabelSelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyList.java deleted file mode 100644 index 28618da9c5c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyList.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to list global VM extension policy resources. - * - *

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 GlobalVmExtensionPolicyList extends com.google.api.client.json.GenericJson { - - /** - * 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 GlobalVmExtensionPolicy 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 GlobalVmExtensionPolicy 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(GlobalVmExtensionPolicy.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of GlobalVmExtensionPolicy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of GlobalVmExtensionPolicy resources. - * @param items items or {@code null} for none - */ - public GlobalVmExtensionPolicyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public GlobalVmExtensionPolicyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList 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 GlobalVmExtensionPolicyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public GlobalVmExtensionPolicyList set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyList) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyList clone() { - return (GlobalVmExtensionPolicyList) 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 GlobalVmExtensionPolicyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperation.java deleted file mode 100644 index 99b6b86216a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the rollout operation - * - *

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 GlobalVmExtensionPolicyRolloutOperation extends com.google.api.client.json.GenericJson { - - /** - * Required. The rollout input which defines the rollout plan. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput; - - /** - * Output only. [Output Only] The rollout status of the policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus; - - /** - * Required. The rollout input which defines the rollout plan. - * @return value or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutInput getRolloutInput() { - return rolloutInput; - } - - /** - * Required. The rollout input which defines the rollout plan. - * @param rolloutInput rolloutInput or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperation setRolloutInput(GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput) { - this.rolloutInput = rolloutInput; - return this; - } - - /** - * Output only. [Output Only] The rollout status of the policy. - * @return value or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { - return rolloutStatus; - } - - /** - * Output only. [Output Only] The rollout status of the policy. - * @param rolloutStatus rolloutStatus or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperation setRolloutStatus(GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus) { - this.rolloutStatus = rolloutStatus; - return this; - } - - @Override - public GlobalVmExtensionPolicyRolloutOperation set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyRolloutOperation) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyRolloutOperation clone() { - return (GlobalVmExtensionPolicyRolloutOperation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java deleted file mode 100644 index 8a6890a4bea..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalVmExtensionPolicyRolloutOperationRolloutInput. - * - *

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 GlobalVmExtensionPolicyRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { - - /** - * Optional. Specifies the behavior of the rollout if a conflict is detected in a project during a - * rollout. This only applies to `insert` and `update` methods. - * - * A conflict occurs in the following cases: - * - * * `insert` method: If the zonal policy already exists when the insert happens. * `update` - * method: If the zonal policy was modified by a zonal API call outside of this rollout. - * - * Possible values are the following: - * - * * `""` (empty string): If a conflict occurs, the local value is not overwritten. This is the - * default behavior. * `"overwrite"`: If a conflict occurs, the local value is overwritten with - * the rollout value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String conflictBehavior; - - /** - * Optional. The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Optional. Specifies the predefined rollout plan for the policy. Valid values are `SLOW_ROLLOUT` - * and `FAST_ROLLOUT`. The recommended value is `SLOW_ROLLOUT` for progressive rollout. For more - * information, see Rollout plans for global policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String predefinedRolloutPlan; - - /** - * Optional. The UUID that identifies a policy rollout retry attempt for update and delete - * operations. Set this field only when retrying a rollout for an existing extension policy. - * - * * `update` method: Lets you retry policy rollout without changes. An error occurs if you set - * retry_uuid but the policy is modified. * `delete` method: Lets you retry policy deletion - * rollout if the previous deletion rollout is not finished and the policy is in the DELETING - * state. If you set this field when the policy is not in the DELETING state, an error occurs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String retryUuid; - - /** - * Optional. Specifies the behavior of the rollout if a conflict is detected in a project during a - * rollout. This only applies to `insert` and `update` methods. - * - * A conflict occurs in the following cases: - * - * * `insert` method: If the zonal policy already exists when the insert happens. * `update` - * method: If the zonal policy was modified by a zonal API call outside of this rollout. - * - * Possible values are the following: - * - * * `""` (empty string): If a conflict occurs, the local value is not overwritten. This is the - * default behavior. * `"overwrite"`: If a conflict occurs, the local value is overwritten with - * the rollout value. - * @return value or {@code null} for none - */ - public java.lang.String getConflictBehavior() { - return conflictBehavior; - } - - /** - * Optional. Specifies the behavior of the rollout if a conflict is detected in a project during a - * rollout. This only applies to `insert` and `update` methods. - * - * A conflict occurs in the following cases: - * - * * `insert` method: If the zonal policy already exists when the insert happens. * `update` - * method: If the zonal policy was modified by a zonal API call outside of this rollout. - * - * Possible values are the following: - * - * * `""` (empty string): If a conflict occurs, the local value is not overwritten. This is the - * default behavior. * `"overwrite"`: If a conflict occurs, the local value is overwritten with - * the rollout value. - * @param conflictBehavior conflictBehavior or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutInput setConflictBehavior(java.lang.String conflictBehavior) { - this.conflictBehavior = conflictBehavior; - return this; - } - - /** - * Optional. The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Optional. The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. - * @param name name or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutInput setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Optional. Specifies the predefined rollout plan for the policy. Valid values are `SLOW_ROLLOUT` - * and `FAST_ROLLOUT`. The recommended value is `SLOW_ROLLOUT` for progressive rollout. For more - * information, see Rollout plans for global policies. - * @return value or {@code null} for none - */ - public java.lang.String getPredefinedRolloutPlan() { - return predefinedRolloutPlan; - } - - /** - * Optional. Specifies the predefined rollout plan for the policy. Valid values are `SLOW_ROLLOUT` - * and `FAST_ROLLOUT`. The recommended value is `SLOW_ROLLOUT` for progressive rollout. For more - * information, see Rollout plans for global policies. - * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { - this.predefinedRolloutPlan = predefinedRolloutPlan; - return this; - } - - /** - * Optional. The UUID that identifies a policy rollout retry attempt for update and delete - * operations. Set this field only when retrying a rollout for an existing extension policy. - * - * * `update` method: Lets you retry policy rollout without changes. An error occurs if you set - * retry_uuid but the policy is modified. * `delete` method: Lets you retry policy deletion - * rollout if the previous deletion rollout is not finished and the policy is in the DELETING - * state. If you set this field when the policy is not in the DELETING state, an error occurs. - * @return value or {@code null} for none - */ - public java.lang.String getRetryUuid() { - return retryUuid; - } - - /** - * Optional. The UUID that identifies a policy rollout retry attempt for update and delete - * operations. Set this field only when retrying a rollout for an existing extension policy. - * - * * `update` method: Lets you retry policy rollout without changes. An error occurs if you set - * retry_uuid but the policy is modified. * `delete` method: Lets you retry policy deletion - * rollout if the previous deletion rollout is not finished and the policy is in the DELETING - * state. If you set this field when the policy is not in the DELETING state, an error occurs. - * @param retryUuid retryUuid or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { - this.retryUuid = retryUuid; - return this; - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutInput set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyRolloutOperationRolloutInput) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutInput clone() { - return (GlobalVmExtensionPolicyRolloutOperationRolloutInput) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java deleted file mode 100644 index d4f75da8dd7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalVmExtensionPolicyRolloutOperationRolloutStatus. - * - *

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 GlobalVmExtensionPolicyRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The current rollouts for the latest version of the resource. There - * should be only one current rollout, but for scalability, we make it repeated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List currentRollouts; - - /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout; - - /** - * Output only. [Output Only] The current rollouts for the latest version of the resource. There - * should be only one current rollout, but for scalability, we make it repeated. - * @return value or {@code null} for none - */ - public java.util.List getCurrentRollouts() { - return currentRollouts; - } - - /** - * Output only. [Output Only] The current rollouts for the latest version of the resource. There - * should be only one current rollout, but for scalability, we make it repeated. - * @param currentRollouts currentRollouts or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setCurrentRollouts(java.util.List currentRollouts) { - this.currentRollouts = currentRollouts; - return this; - } - - /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. - * @return value or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata getPreviousRollout() { - return previousRollout; - } - - /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. - * @param previousRollout previousRollout or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setPreviousRollout(GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout) { - this.previousRollout = previousRollout; - return this; - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutStatus set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyRolloutOperationRolloutStatus) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutStatus clone() { - return (GlobalVmExtensionPolicyRolloutOperationRolloutStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java deleted file mode 100644 index 783bb04eae4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. - * - *

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 GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The rollout status for each location. The list of the locations is - * the same as the list of locations in the rollout plan. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map locationRolloutStatus; - - /** - * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rollout; - - /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rolloutPlan; - - /** - * Output only. [Output Only] The overall state of the rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] The rollout status for each location. The list of the locations is - * the same as the list of locations in the rollout plan. - * @return value or {@code null} for none - */ - public java.util.Map getLocationRolloutStatus() { - return locationRolloutStatus; - } - - /** - * Output only. [Output Only] The rollout status for each location. The list of the locations is - * the same as the list of locations in the rollout plan. - * @param locationRolloutStatus locationRolloutStatus or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setLocationRolloutStatus(java.util.Map locationRolloutStatus) { - this.locationRolloutStatus = locationRolloutStatus; - return this; - } - - /** - * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. - * @return value or {@code null} for none - */ - public java.lang.String getRollout() { - return rollout; - } - - /** - * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. - * @param rollout rollout or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRollout(java.lang.String rollout) { - this.rollout = rollout; - return this; - } - - /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. - * @return value or {@code null} for none - */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; - } - - /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. - * @param rolloutPlan rolloutPlan or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRolloutPlan(java.lang.String rolloutPlan) { - this.rolloutPlan = rolloutPlan; - return this; - } - - /** - * Output only. [Output Only] The overall state of the rollout. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The overall state of the rollout. - * @param state state or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata clone() { - return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java deleted file mode 100644 index 60d8545ad2a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for - * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. - * - *

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 GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The state of the location rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] The state of the location rollout. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The state of the location rollout. - * @param state state or {@code null} for none - */ - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus set(String fieldName, Object value) { - return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus) super.set(fieldName, value); - } - - @Override - public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus clone() { - return (GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GroupMaintenanceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GroupMaintenanceInfo.java deleted file mode 100644 index 2ccc44c4c09..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GroupMaintenanceInfo.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * 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.preview.model; - -/** - * Maintenance Info for ReservationBlocks. - * - *

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 GroupMaintenanceInfo extends com.google.api.client.json.GenericJson { - - /** - * Describes number of instances that have ongoing maintenance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer instanceMaintenanceOngoingCount; - - /** - * Describes number of instances that have pending maintenance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer instanceMaintenancePendingCount; - - /** - * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the - * block that have ongoing maintenance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maintenanceOngoingCount; - - /** - * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the - * block that have pending maintenance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maintenancePendingCount; - - /** - * The type of maintenance for the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String schedulingType; - - /** - * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock - * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is - * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer subblockInfraMaintenanceOngoingCount; - - /** - * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock - * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is - * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer subblockInfraMaintenancePendingCount; - - /** - * Maintenance information on this group of VMs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UpcomingMaintenance upcomingGroupMaintenance; - - /** - * Describes number of instances that have ongoing maintenance. - * @return value or {@code null} for none - */ - public java.lang.Integer getInstanceMaintenanceOngoingCount() { - return instanceMaintenanceOngoingCount; - } - - /** - * Describes number of instances that have ongoing maintenance. - * @param instanceMaintenanceOngoingCount instanceMaintenanceOngoingCount or {@code null} for none - */ - public GroupMaintenanceInfo setInstanceMaintenanceOngoingCount(java.lang.Integer instanceMaintenanceOngoingCount) { - this.instanceMaintenanceOngoingCount = instanceMaintenanceOngoingCount; - return this; - } - - /** - * Describes number of instances that have pending maintenance. - * @return value or {@code null} for none - */ - public java.lang.Integer getInstanceMaintenancePendingCount() { - return instanceMaintenancePendingCount; - } - - /** - * Describes number of instances that have pending maintenance. - * @param instanceMaintenancePendingCount instanceMaintenancePendingCount or {@code null} for none - */ - public GroupMaintenanceInfo setInstanceMaintenancePendingCount(java.lang.Integer instanceMaintenancePendingCount) { - this.instanceMaintenancePendingCount = instanceMaintenancePendingCount; - return this; - } - - /** - * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the - * block that have ongoing maintenance. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaintenanceOngoingCount() { - return maintenanceOngoingCount; - } - - /** - * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the - * block that have ongoing maintenance. - * @param maintenanceOngoingCount maintenanceOngoingCount or {@code null} for none - */ - public GroupMaintenanceInfo setMaintenanceOngoingCount(java.lang.Integer maintenanceOngoingCount) { - this.maintenanceOngoingCount = maintenanceOngoingCount; - return this; - } - - /** - * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the - * block that have pending maintenance. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaintenancePendingCount() { - return maintenancePendingCount; - } - - /** - * Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the - * block that have pending maintenance. - * @param maintenancePendingCount maintenancePendingCount or {@code null} for none - */ - public GroupMaintenanceInfo setMaintenancePendingCount(java.lang.Integer maintenancePendingCount) { - this.maintenancePendingCount = maintenancePendingCount; - return this; - } - - /** - * The type of maintenance for the reservation. - * @return value or {@code null} for none - */ - public java.lang.String getSchedulingType() { - return schedulingType; - } - - /** - * The type of maintenance for the reservation. - * @param schedulingType schedulingType or {@code null} for none - */ - public GroupMaintenanceInfo setSchedulingType(java.lang.String schedulingType) { - this.schedulingType = schedulingType; - return this; - } - - /** - * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock - * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is - * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. - * @return value or {@code null} for none - */ - public java.lang.Integer getSubblockInfraMaintenanceOngoingCount() { - return subblockInfraMaintenanceOngoingCount; - } - - /** - * Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock - * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is - * necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. - * @param subblockInfraMaintenanceOngoingCount subblockInfraMaintenanceOngoingCount or {@code null} for none - */ - public GroupMaintenanceInfo setSubblockInfraMaintenanceOngoingCount(java.lang.Integer subblockInfraMaintenanceOngoingCount) { - this.subblockInfraMaintenanceOngoingCount = subblockInfraMaintenanceOngoingCount; - return this; - } - - /** - * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock - * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is - * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. - * @return value or {@code null} for none - */ - public java.lang.Integer getSubblockInfraMaintenancePendingCount() { - return subblockInfraMaintenancePendingCount; - } - - /** - * Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock - * Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is - * necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. - * @param subblockInfraMaintenancePendingCount subblockInfraMaintenancePendingCount or {@code null} for none - */ - public GroupMaintenanceInfo setSubblockInfraMaintenancePendingCount(java.lang.Integer subblockInfraMaintenancePendingCount) { - this.subblockInfraMaintenancePendingCount = subblockInfraMaintenancePendingCount; - return this; - } - - /** - * Maintenance information on this group of VMs. - * @return value or {@code null} for none - */ - public UpcomingMaintenance getUpcomingGroupMaintenance() { - return upcomingGroupMaintenance; - } - - /** - * Maintenance information on this group of VMs. - * @param upcomingGroupMaintenance upcomingGroupMaintenance or {@code null} for none - */ - public GroupMaintenanceInfo setUpcomingGroupMaintenance(UpcomingMaintenance upcomingGroupMaintenance) { - this.upcomingGroupMaintenance = upcomingGroupMaintenance; - return this; - } - - @Override - public GroupMaintenanceInfo set(String fieldName, Object value) { - return (GroupMaintenanceInfo) super.set(fieldName, value); - } - - @Override - public GroupMaintenanceInfo clone() { - return (GroupMaintenanceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributes.java deleted file mode 100644 index ef737628076..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributes.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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.preview.model; - -/** - * A guest attributes entry. - * - *

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 GuestAttributes extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest - * attributes entry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or - * a specified key ('\/\'). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String queryPath; - - /** - * Output only. [Output Only] The value of the requested queried path. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GuestAttributesValue queryValue; - - /** - * 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; - - /** - * The key to search for. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String variableKey; - - /** - * Output only. [Output Only] The value found for the requested key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String variableValue; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest - * attributes entry. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest - * attributes entry. - * @param kind kind or {@code null} for none - */ - public GuestAttributes setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or - * a specified key ('\/\'). - * @return value or {@code null} for none - */ - public java.lang.String getQueryPath() { - return queryPath; - } - - /** - * The path to be queried. This can be the default namespace ('') or a nested namespace ('\/') or - * a specified key ('\/\'). - * @param queryPath queryPath or {@code null} for none - */ - public GuestAttributes setQueryPath(java.lang.String queryPath) { - this.queryPath = queryPath; - return this; - } - - /** - * Output only. [Output Only] The value of the requested queried path. - * @return value or {@code null} for none - */ - public GuestAttributesValue getQueryValue() { - return queryValue; - } - - /** - * Output only. [Output Only] The value of the requested queried path. - * @param queryValue queryValue or {@code null} for none - */ - public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { - this.queryValue = queryValue; - 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 GuestAttributes setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The key to search for. - * @return value or {@code null} for none - */ - public java.lang.String getVariableKey() { - return variableKey; - } - - /** - * The key to search for. - * @param variableKey variableKey or {@code null} for none - */ - public GuestAttributes setVariableKey(java.lang.String variableKey) { - this.variableKey = variableKey; - return this; - } - - /** - * Output only. [Output Only] The value found for the requested key. - * @return value or {@code null} for none - */ - public java.lang.String getVariableValue() { - return variableValue; - } - - /** - * Output only. [Output Only] The value found for the requested key. - * @param variableValue variableValue or {@code null} for none - */ - public GuestAttributes setVariableValue(java.lang.String variableValue) { - this.variableValue = variableValue; - return this; - } - - @Override - public GuestAttributes set(String fieldName, Object value) { - return (GuestAttributes) super.set(fieldName, value); - } - - @Override - public GuestAttributes clone() { - return (GuestAttributes) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesEntry.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesEntry.java deleted file mode 100644 index 9cb7c19f454..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesEntry.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * A guest attributes namespace/key/value entry. - * - *

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 GuestAttributesEntry extends com.google.api.client.json.GenericJson { - - /** - * Key for the guest attribute entry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Namespace for the guest attribute entry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String namespace; - - /** - * Value for the guest attribute entry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * Key for the guest attribute entry. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * Key for the guest attribute entry. - * @param key key or {@code null} for none - */ - public GuestAttributesEntry setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Namespace for the guest attribute entry. - * @return value or {@code null} for none - */ - public java.lang.String getNamespace() { - return namespace; - } - - /** - * Namespace for the guest attribute entry. - * @param namespace namespace or {@code null} for none - */ - public GuestAttributesEntry setNamespace(java.lang.String namespace) { - this.namespace = namespace; - return this; - } - - /** - * Value for the guest attribute entry. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * Value for the guest attribute entry. - * @param value value or {@code null} for none - */ - public GuestAttributesEntry setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public GuestAttributesEntry set(String fieldName, Object value) { - return (GuestAttributesEntry) super.set(fieldName, value); - } - - @Override - public GuestAttributesEntry clone() { - return (GuestAttributesEntry) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesValue.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesValue.java deleted file mode 100644 index b00e87540a6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestAttributesValue.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Array of guest attribute namespace/key/value tuples. - * - *

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 GuestAttributesValue extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider GuestAttributesEntry 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(GuestAttributesEntry.class); - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * @param items items or {@code null} for none - */ - public GuestAttributesValue setItems(java.util.List items) { - this.items = items; - return this; - } - - @Override - public GuestAttributesValue set(String fieldName, Object value) { - return (GuestAttributesValue) super.set(fieldName, value); - } - - @Override - public GuestAttributesValue clone() { - return (GuestAttributesValue) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestOsFeature.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestOsFeature.java deleted file mode 100644 index 57389c148a6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/GuestOsFeature.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Guest OS features. - * - *

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 GuestOsFeature extends com.google.api.client.json.GenericJson { - - /** - * The ID of a supported feature. To add multiple values, use commas to separate values. Set to - * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE - SUSPEND_SAFE_FPR - * - * For more information, see Enabling guest operating system features. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The ID of a supported feature. To add multiple values, use commas to separate values. Set to - * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE - SUSPEND_SAFE_FPR - * - * For more information, see Enabling guest operating system features. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The ID of a supported feature. To add multiple values, use commas to separate values. Set to - * one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - - * MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - * - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE - * - CCA_CAPABLE - SUSPEND_SAFE_FPR - * - * For more information, see Enabling guest operating system features. - * @param type type or {@code null} for none - */ - public GuestOsFeature setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public GuestOsFeature set(String fieldName, Object value) { - return (GuestOsFeature) super.set(fieldName, value); - } - - @Override - public GuestOsFeature clone() { - return (GuestOsFeature) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTP2HealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTP2HealthCheck.java deleted file mode 100644 index ee23fc2b707..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTP2HealthCheck.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HTTP2HealthCheck. - * - *

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 HTTP2HealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The value of the host header in the HTTP/2 health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * The request path of the HTTP/2 health check request. The default value is/. Must comply - * withRFC3986. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestPath; - - /** - * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String response; - - /** - * The value of the host header in the HTTP/2 health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The value of the host header in the HTTP/2 health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * @param host host or {@code null} for none - */ - public HTTP2HealthCheck setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * @param port port or {@code null} for none - */ - public HTTP2HealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Not supported. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Not supported. - * @param portName portName or {@code null} for none - */ - public HTTP2HealthCheck setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public HTTP2HealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public HTTP2HealthCheck setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * The request path of the HTTP/2 health check request. The default value is/. Must comply - * withRFC3986. - * @return value or {@code null} for none - */ - public java.lang.String getRequestPath() { - return requestPath; - } - - /** - * The request path of the HTTP/2 health check request. The default value is/. Must comply - * withRFC3986. - * @param requestPath requestPath or {@code null} for none - */ - public HTTP2HealthCheck setRequestPath(java.lang.String requestPath) { - this.requestPath = requestPath; - return this; - } - - /** - * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * @return value or {@code null} for none - */ - public java.lang.String getResponse() { - return response; - } - - /** - * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * @param response response or {@code null} for none - */ - public HTTP2HealthCheck setResponse(java.lang.String response) { - this.response = response; - return this; - } - - @Override - public HTTP2HealthCheck set(String fieldName, Object value) { - return (HTTP2HealthCheck) super.set(fieldName, value); - } - - @Override - public HTTP2HealthCheck clone() { - return (HTTP2HealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPHealthCheck.java deleted file mode 100644 index e4c6af95146..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPHealthCheck.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HTTPHealthCheck. - * - *

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 HTTPHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The value of the host header in the HTTP health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * The TCP port number to which the health check prober sends packets. The default value is 80. - * Valid values are 1 through65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Also supported in legacy HTTP health checks for target pools. The health check - * supports all backends supported by the backend service provided the backend can be health - * checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, - * and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an - * indirect method of specifying the health check port by referring to the backend service. Only - * supported by backend services for proxy load balancers. Not supported by target pools. Not - * supported by backend services for pass-through load balancers. Supports all backends that can - * be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group - * backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * The request path of the HTTP health check request. The default value is/. Must comply - * withRFC3986. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestPath; - - /** - * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String response; - - /** - * The value of the host header in the HTTP health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The value of the host header in the HTTP health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * @param host host or {@code null} for none - */ - public HTTPHealthCheck setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 80. - * Valid values are 1 through65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 80. - * Valid values are 1 through65535. - * @param port port or {@code null} for none - */ - public HTTPHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Not supported. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Not supported. - * @param portName portName or {@code null} for none - */ - public HTTPHealthCheck setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Also supported in legacy HTTP health checks for target pools. The health check - * supports all backends supported by the backend service provided the backend can be health - * checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, - * and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an - * indirect method of specifying the health check port by referring to the backend service. Only - * supported by backend services for proxy load balancers. Not supported by target pools. Not - * supported by backend services for pass-through load balancers. Supports all backends that can - * be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group - * backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Also supported in legacy HTTP health checks for target pools. The health check - * supports all backends supported by the backend service provided the backend can be health - * checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, - * and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an - * indirect method of specifying the health check port by referring to the backend service. Only - * supported by backend services for proxy load balancers. Not supported by target pools. Not - * supported by backend services for pass-through load balancers. Supports all backends that can - * be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group - * backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public HTTPHealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public HTTPHealthCheck setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * The request path of the HTTP health check request. The default value is/. Must comply - * withRFC3986. - * @return value or {@code null} for none - */ - public java.lang.String getRequestPath() { - return requestPath; - } - - /** - * The request path of the HTTP health check request. The default value is/. Must comply - * withRFC3986. - * @param requestPath requestPath or {@code null} for none - */ - public HTTPHealthCheck setRequestPath(java.lang.String requestPath) { - this.requestPath = requestPath; - return this; - } - - /** - * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * @return value or {@code null} for none - */ - public java.lang.String getResponse() { - return response; - } - - /** - * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * @param response response or {@code null} for none - */ - public HTTPHealthCheck setResponse(java.lang.String response) { - this.response = response; - return this; - } - - @Override - public HTTPHealthCheck set(String fieldName, Object value) { - return (HTTPHealthCheck) super.set(fieldName, value); - } - - @Override - public HTTPHealthCheck clone() { - return (HTTPHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPSHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPSHealthCheck.java deleted file mode 100644 index d083b77e2e2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HTTPSHealthCheck.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HTTPSHealthCheck. - * - *

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 HTTPSHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The value of the host header in the HTTPS health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * The request path of the HTTPS health check request. The default value is/. Must comply - * withRFC3986. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestPath; - - /** - * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String response; - - /** - * The value of the host header in the HTTPS health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The value of the host header in the HTTPS health check request. If left empty (default value), - * the host header is set to the destination IP address to which health check packets are sent. - * The destination IP address depends on the type of load balancer. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest - * @param host host or {@code null} for none - */ - public HTTPSHealthCheck setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * @param port port or {@code null} for none - */ - public HTTPSHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Not supported. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Not supported. - * @param portName portName or {@code null} for none - */ - public HTTPSHealthCheck setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public HTTPSHealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public HTTPSHealthCheck setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * The request path of the HTTPS health check request. The default value is/. Must comply - * withRFC3986. - * @return value or {@code null} for none - */ - public java.lang.String getRequestPath() { - return requestPath; - } - - /** - * The request path of the HTTPS health check request. The default value is/. Must comply - * withRFC3986. - * @param requestPath requestPath or {@code null} for none - */ - public HTTPSHealthCheck setRequestPath(java.lang.String requestPath) { - this.requestPath = requestPath; - return this; - } - - /** - * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * @return value or {@code null} for none - */ - public java.lang.String getResponse() { - return response; - } - - /** - * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status - * code, you can configure the health check to pass only when the backend sends this specific - * ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http - * @param response response or {@code null} for none - */ - public HTTPSHealthCheck setResponse(java.lang.String response) { - this.response = response; - return this; - } - - @Override - public HTTPSHealthCheck set(String fieldName, Object value) { - return (HTTPSHealthCheck) super.set(fieldName, value); - } - - @Override - public HTTPSHealthCheck clone() { - return (HTTPSHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaController.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaController.java deleted file mode 100644 index e9cefeb9575..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaController.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * 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.preview.model; - -/** - * HaController handles failover for a VM Instance. - * - *

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 HaController extends com.google.api.client.json.GenericJson { - - /** - * Advanced configuration option. If specified, these Backend Services need to be pre-created. - * - * Currently, only one backend service can be specified, and it must be L4 Internal Load Balancer - * (ILB). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List backendServices; - - /** - * 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; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Indicates how failover should be initiated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String failoverInitiation; - - /** - * 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 instance that HaController is in charge of. If not specified the HaController's - * resource name will be used instead. 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 instanceName; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Basic networking configuration. Required backend services and forwarding rules will be - * automatically created with default parameters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerNetworkingAutoConfiguration networkingAutoConfiguration; - - /** - * Output only. [Output Only] URL of the region where the resource resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. The current state of the HA Controller. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] Status information for the HaController resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerStatus status; - - /** - * Map of zone configurations Key: name of the zone Value: ZoneConfiguration - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map zoneConfigurations; - - /** - * Advanced configuration option. If specified, these Backend Services need to be pre-created. - * - * Currently, only one backend service can be specified, and it must be L4 Internal Load Balancer - * (ILB). - * @return value or {@code null} for none - */ - public java.util.List getBackendServices() { - return backendServices; - } - - /** - * Advanced configuration option. If specified, these Backend Services need to be pre-created. - * - * Currently, only one backend service can be specified, and it must be L4 Internal Load Balancer - * (ILB). - * @param backendServices backendServices or {@code null} for none - */ - public HaController setBackendServices(java.util.List backendServices) { - this.backendServices = backendServices; - 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 HaController setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HaController setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Indicates how failover should be initiated. - * @return value or {@code null} for none - */ - public java.lang.String getFailoverInitiation() { - return failoverInitiation; - } - - /** - * Indicates how failover should be initiated. - * @param failoverInitiation failoverInitiation or {@code null} for none - */ - public HaController setFailoverInitiation(java.lang.String failoverInitiation) { - this.failoverInitiation = failoverInitiation; - 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 HaController setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Name of the instance that HaController is in charge of. If not specified the HaController's - * resource name will be used instead. 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 getInstanceName() { - return instanceName; - } - - /** - * Name of the instance that HaController is in charge of. If not specified the HaController's - * resource name will be used instead. 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 instanceName instanceName or {@code null} for none - */ - public HaController setInstanceName(java.lang.String instanceName) { - this.instanceName = instanceName; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. - * @param kind kind or {@code null} for none - */ - public HaController setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 HaController setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Basic networking configuration. Required backend services and forwarding rules will be - * automatically created with default parameters. - * @return value or {@code null} for none - */ - public HaControllerNetworkingAutoConfiguration getNetworkingAutoConfiguration() { - return networkingAutoConfiguration; - } - - /** - * Basic networking configuration. Required backend services and forwarding rules will be - * automatically created with default parameters. - * @param networkingAutoConfiguration networkingAutoConfiguration or {@code null} for none - */ - public HaController setNetworkingAutoConfiguration(HaControllerNetworkingAutoConfiguration networkingAutoConfiguration) { - this.networkingAutoConfiguration = networkingAutoConfiguration; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the resource resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the resource resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public HaController setRegion(java.lang.String region) { - this.region = region; - 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 HaController setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public HaController setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. The current state of the HA Controller. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. The current state of the HA Controller. - * @param state state or {@code null} for none - */ - public HaController setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] Status information for the HaController resource. - * @return value or {@code null} for none - */ - public HaControllerStatus getStatus() { - return status; - } - - /** - * Output only. [Output Only] Status information for the HaController resource. - * @param status status or {@code null} for none - */ - public HaController setStatus(HaControllerStatus status) { - this.status = status; - return this; - } - - /** - * Map of zone configurations Key: name of the zone Value: ZoneConfiguration - * @return value or {@code null} for none - */ - public java.util.Map getZoneConfigurations() { - return zoneConfigurations; - } - - /** - * Map of zone configurations Key: name of the zone Value: ZoneConfiguration - * @param zoneConfigurations zoneConfigurations or {@code null} for none - */ - public HaController setZoneConfigurations(java.util.Map zoneConfigurations) { - this.zoneConfigurations = zoneConfigurations; - return this; - } - - @Override - public HaController set(String fieldName, Object value) { - return (HaController) super.set(fieldName, value); - } - - @Override - public HaController clone() { - return (HaController) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfiguration.java deleted file mode 100644 index 1f19b23a89c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfiguration.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.preview.model; - -/** - * Basic networking configuration. Required backend services and forwarding rules will be - * automatically created with default parameters. - * - *

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 HaControllerNetworkingAutoConfiguration extends com.google.api.client.json.GenericJson { - - /** - * Internal networking configuration - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerNetworkingAutoConfigurationInternal internal; - - /** - * Internal networking configuration - * @return value or {@code null} for none - */ - public HaControllerNetworkingAutoConfigurationInternal getInternal() { - return internal; - } - - /** - * Internal networking configuration - * @param internal internal or {@code null} for none - */ - public HaControllerNetworkingAutoConfiguration setInternal(HaControllerNetworkingAutoConfigurationInternal internal) { - this.internal = internal; - return this; - } - - @Override - public HaControllerNetworkingAutoConfiguration set(String fieldName, Object value) { - return (HaControllerNetworkingAutoConfiguration) super.set(fieldName, value); - } - - @Override - public HaControllerNetworkingAutoConfiguration clone() { - return (HaControllerNetworkingAutoConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfigurationInternal.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfigurationInternal.java deleted file mode 100644 index 54e6f806e32..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerNetworkingAutoConfigurationInternal.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Internal networking configuration - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class HaControllerNetworkingAutoConfigurationInternal extends com.google.api.client.json.GenericJson { - - /** - * Optional. IP addresses will be automatically allocated according to StackType if not provided. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * Determine which IP addresses to automatically create. Field and option naming consistent with - * NetworkInterface configuration on Instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * Optional. IP addresses will be automatically allocated according to StackType if not provided. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Optional. IP addresses will be automatically allocated according to StackType if not provided. - * @param ipAddress ipAddress or {@code null} for none - */ - public HaControllerNetworkingAutoConfigurationInternal setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * @param ipv6Address ipv6Address or {@code null} for none - */ - public HaControllerNetworkingAutoConfigurationInternal setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - /** - * Determine which IP addresses to automatically create. Field and option naming consistent with - * NetworkInterface configuration on Instances. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * Determine which IP addresses to automatically create. Field and option naming consistent with - * NetworkInterface configuration on Instances. - * @param stackType stackType or {@code null} for none - */ - public HaControllerNetworkingAutoConfigurationInternal setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - @Override - public HaControllerNetworkingAutoConfigurationInternal set(String fieldName, Object value) { - return (HaControllerNetworkingAutoConfigurationInternal) super.set(fieldName, value); - } - - @Override - public HaControllerNetworkingAutoConfigurationInternal clone() { - return (HaControllerNetworkingAutoConfigurationInternal) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatus.java deleted file mode 100644 index 189745f86b3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatus.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains information about current status of the HaController. - * - *

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 HaControllerStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Contains the details of the ongoing failover. This message is not - * displayed if failover is NOT in progress. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerStatusFailoverProgress failoverProgress; - - /** - * Output only. [Output Only] Contains the details of the last successful failover. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerStatusFailoverProgress lastFailoverInfo; - - /** - * Output only. [Output Only] Indicates if the failover is currently in-progress. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean ongoingFailover; - - /** - * Output only. [Output Only] The URL to the instance that is intended to be primary at this - * moment. Primary instance will be changed at the very beginning of a failover operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String primaryInstance; - - /** - * Output only. [Output Only] The name of the zone that is intended to be primary at this moment. - * Primary zone will be changed at the very beginning of a failover operation. The zone may not be - * operational in the middle of a failover operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String primaryZone; - - /** - * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the - * secondary zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean readyForFailover; - - /** - * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map zoneStatus; - - /** - * Output only. [Output Only] Contains the details of the ongoing failover. This message is not - * displayed if failover is NOT in progress. - * @return value or {@code null} for none - */ - public HaControllerStatusFailoverProgress getFailoverProgress() { - return failoverProgress; - } - - /** - * Output only. [Output Only] Contains the details of the ongoing failover. This message is not - * displayed if failover is NOT in progress. - * @param failoverProgress failoverProgress or {@code null} for none - */ - public HaControllerStatus setFailoverProgress(HaControllerStatusFailoverProgress failoverProgress) { - this.failoverProgress = failoverProgress; - return this; - } - - /** - * Output only. [Output Only] Contains the details of the last successful failover. - * @return value or {@code null} for none - */ - public HaControllerStatusFailoverProgress getLastFailoverInfo() { - return lastFailoverInfo; - } - - /** - * Output only. [Output Only] Contains the details of the last successful failover. - * @param lastFailoverInfo lastFailoverInfo or {@code null} for none - */ - public HaControllerStatus setLastFailoverInfo(HaControllerStatusFailoverProgress lastFailoverInfo) { - this.lastFailoverInfo = lastFailoverInfo; - return this; - } - - /** - * Output only. [Output Only] Indicates if the failover is currently in-progress. - * @return value or {@code null} for none - */ - public java.lang.Boolean getOngoingFailover() { - return ongoingFailover; - } - - /** - * Output only. [Output Only] Indicates if the failover is currently in-progress. - * @param ongoingFailover ongoingFailover or {@code null} for none - */ - public HaControllerStatus setOngoingFailover(java.lang.Boolean ongoingFailover) { - this.ongoingFailover = ongoingFailover; - return this; - } - - /** - * Output only. [Output Only] The URL to the instance that is intended to be primary at this - * moment. Primary instance will be changed at the very beginning of a failover operation. - * @return value or {@code null} for none - */ - public java.lang.String getPrimaryInstance() { - return primaryInstance; - } - - /** - * Output only. [Output Only] The URL to the instance that is intended to be primary at this - * moment. Primary instance will be changed at the very beginning of a failover operation. - * @param primaryInstance primaryInstance or {@code null} for none - */ - public HaControllerStatus setPrimaryInstance(java.lang.String primaryInstance) { - this.primaryInstance = primaryInstance; - return this; - } - - /** - * Output only. [Output Only] The name of the zone that is intended to be primary at this moment. - * Primary zone will be changed at the very beginning of a failover operation. The zone may not be - * operational in the middle of a failover operation. - * @return value or {@code null} for none - */ - public java.lang.String getPrimaryZone() { - return primaryZone; - } - - /** - * Output only. [Output Only] The name of the zone that is intended to be primary at this moment. - * Primary zone will be changed at the very beginning of a failover operation. The zone may not be - * operational in the middle of a failover operation. - * @param primaryZone primaryZone or {@code null} for none - */ - public HaControllerStatus setPrimaryZone(java.lang.String primaryZone) { - this.primaryZone = primaryZone; - return this; - } - - /** - * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the - * secondary zone. - * @return value or {@code null} for none - */ - public java.lang.Boolean getReadyForFailover() { - return readyForFailover; - } - - /** - * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the - * secondary zone. - * @param readyForFailover readyForFailover or {@code null} for none - */ - public HaControllerStatus setReadyForFailover(java.lang.Boolean readyForFailover) { - this.readyForFailover = readyForFailover; - return this; - } - - /** - * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus - * @return value or {@code null} for none - */ - public java.util.Map getZoneStatus() { - return zoneStatus; - } - - /** - * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus - * @param zoneStatus zoneStatus or {@code null} for none - */ - public HaControllerStatus setZoneStatus(java.util.Map zoneStatus) { - this.zoneStatus = zoneStatus; - return this; - } - - @Override - public HaControllerStatus set(String fieldName, Object value) { - return (HaControllerStatus) super.set(fieldName, value); - } - - @Override - public HaControllerStatus clone() { - return (HaControllerStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgress.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgress.java deleted file mode 100644 index a70f5676f14..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgress.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains information about the current failover operation. - * - *

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 HaControllerStatusFailoverProgress extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is - * completed, in lastFailoverInfo. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String failoverCompleteTimestamp; - - /** - * Output only. The duration of the last failover. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String failoverDuration; - - /** - * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String failoverTrigger; - - /** - * Output only. [Output Only] Timestamp of the last failover trigger. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String failoverTriggerTimestamp; - - /** - * Output only. [Output Only] Contains details of the last failed failover. This field is filled - * only if the current failover is failing - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerStatusFailoverProgressLastFailoverAttempt lastFailoverAttempt; - - /** - * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is - * completed, in lastFailoverInfo. - * @return value or {@code null} for none - */ - public String getFailoverCompleteTimestamp() { - return failoverCompleteTimestamp; - } - - /** - * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is - * completed, in lastFailoverInfo. - * @param failoverCompleteTimestamp failoverCompleteTimestamp or {@code null} for none - */ - public HaControllerStatusFailoverProgress setFailoverCompleteTimestamp(String failoverCompleteTimestamp) { - this.failoverCompleteTimestamp = failoverCompleteTimestamp; - return this; - } - - /** - * Output only. The duration of the last failover. - * @return value or {@code null} for none - */ - public String getFailoverDuration() { - return failoverDuration; - } - - /** - * Output only. The duration of the last failover. - * @param failoverDuration failoverDuration or {@code null} for none - */ - public HaControllerStatusFailoverProgress setFailoverDuration(String failoverDuration) { - this.failoverDuration = failoverDuration; - return this; - } - - /** - * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. - * @return value or {@code null} for none - */ - public java.lang.String getFailoverTrigger() { - return failoverTrigger; - } - - /** - * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. - * @param failoverTrigger failoverTrigger or {@code null} for none - */ - public HaControllerStatusFailoverProgress setFailoverTrigger(java.lang.String failoverTrigger) { - this.failoverTrigger = failoverTrigger; - return this; - } - - /** - * Output only. [Output Only] Timestamp of the last failover trigger. - * @return value or {@code null} for none - */ - public String getFailoverTriggerTimestamp() { - return failoverTriggerTimestamp; - } - - /** - * Output only. [Output Only] Timestamp of the last failover trigger. - * @param failoverTriggerTimestamp failoverTriggerTimestamp or {@code null} for none - */ - public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(String failoverTriggerTimestamp) { - this.failoverTriggerTimestamp = failoverTriggerTimestamp; - return this; - } - - /** - * Output only. [Output Only] Contains details of the last failed failover. This field is filled - * only if the current failover is failing - * @return value or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttempt getLastFailoverAttempt() { - return lastFailoverAttempt; - } - - /** - * Output only. [Output Only] Contains details of the last failed failover. This field is filled - * only if the current failover is failing - * @param lastFailoverAttempt lastFailoverAttempt or {@code null} for none - */ - public HaControllerStatusFailoverProgress setLastFailoverAttempt(HaControllerStatusFailoverProgressLastFailoverAttempt lastFailoverAttempt) { - this.lastFailoverAttempt = lastFailoverAttempt; - return this; - } - - @Override - public HaControllerStatusFailoverProgress set(String fieldName, Object value) { - return (HaControllerStatusFailoverProgress) super.set(fieldName, value); - } - - @Override - public HaControllerStatusFailoverProgress clone() { - return (HaControllerStatusFailoverProgress) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java deleted file mode 100644 index 48a1ae85304..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HaControllerStatusFailoverProgressLastFailoverAttempt. - * - *

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 HaControllerStatusFailoverProgressLastFailoverAttempt extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Errors errors; - - /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String timestamp; - - /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. - * @return value or {@code null} for none - */ - public Errors getErrors() { - return errors; - } - - /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. - * @param errors errors or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttempt setErrors(Errors errors) { - this.errors = errors; - return this; - } - - /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. - * @return value or {@code null} for none - */ - public String getTimestamp() { - return timestamp; - } - - /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. - * @param timestamp timestamp or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttempt setTimestamp(String timestamp) { - this.timestamp = timestamp; - return this; - } - - @Override - public HaControllerStatusFailoverProgressLastFailoverAttempt set(String fieldName, Object value) { - return (HaControllerStatusFailoverProgressLastFailoverAttempt) super.set(fieldName, value); - } - - @Override - public HaControllerStatusFailoverProgressLastFailoverAttempt clone() { - return (HaControllerStatusFailoverProgressLastFailoverAttempt) super.clone(); - } - - /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors 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(HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Errors setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors set(String fieldName, Object value) { - return (HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors) super.set(fieldName, value); - } - - @Override - public HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors clone() { - return (HaControllerStatusFailoverProgressLastFailoverAttemptErrorsErrors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatus.java deleted file mode 100644 index 794a1530c45..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatus.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains the status of a specific zone. - * - *

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 HaControllerStatusZoneStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Indicates if the zone is primary at this moment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isPrimary; - - /** - * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isZoneReady; - - /** - * Output only. [Output Only] This field is filled only if the current operation is failing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerStatusZoneStatusLastError lastError; - - /** - * Output only. [Output Only] Indicates if the zone is primary at this moment. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsPrimary() { - return isPrimary; - } - - /** - * Output only. [Output Only] Indicates if the zone is primary at this moment. - * @param isPrimary isPrimary or {@code null} for none - */ - public HaControllerStatusZoneStatus setIsPrimary(java.lang.Boolean isPrimary) { - this.isPrimary = isPrimary; - return this; - } - - /** - * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsZoneReady() { - return isZoneReady; - } - - /** - * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. - * @param isZoneReady isZoneReady or {@code null} for none - */ - public HaControllerStatusZoneStatus setIsZoneReady(java.lang.Boolean isZoneReady) { - this.isZoneReady = isZoneReady; - return this; - } - - /** - * Output only. [Output Only] This field is filled only if the current operation is failing. - * @return value or {@code null} for none - */ - public HaControllerStatusZoneStatusLastError getLastError() { - return lastError; - } - - /** - * Output only. [Output Only] This field is filled only if the current operation is failing. - * @param lastError lastError or {@code null} for none - */ - public HaControllerStatusZoneStatus setLastError(HaControllerStatusZoneStatusLastError lastError) { - this.lastError = lastError; - return this; - } - - @Override - public HaControllerStatusZoneStatus set(String fieldName, Object value) { - return (HaControllerStatusZoneStatus) super.set(fieldName, value); - } - - @Override - public HaControllerStatusZoneStatus clone() { - return (HaControllerStatusZoneStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatusLastError.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatusLastError.java deleted file mode 100644 index 396b8d1aee6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerStatusZoneStatusLastError.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains details of the last failed operation. - * - *

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 HaControllerStatusZoneStatusLastError extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Encountered errors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Errors errors; - - /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String timestamp; - - /** - * Output only. [Output Only] Encountered errors. - * @return value or {@code null} for none - */ - public Errors getErrors() { - return errors; - } - - /** - * Output only. [Output Only] Encountered errors. - * @param errors errors or {@code null} for none - */ - public HaControllerStatusZoneStatusLastError setErrors(Errors errors) { - this.errors = errors; - return this; - } - - /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. - * @return value or {@code null} for none - */ - public String getTimestamp() { - return timestamp; - } - - /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. - * @param timestamp timestamp or {@code null} for none - */ - public HaControllerStatusZoneStatusLastError setTimestamp(String timestamp) { - this.timestamp = timestamp; - return this; - } - - @Override - public HaControllerStatusZoneStatusLastError set(String fieldName, Object value) { - return (HaControllerStatusZoneStatusLastError) super.set(fieldName, value); - } - - @Override - public HaControllerStatusZoneStatusLastError clone() { - return (HaControllerStatusZoneStatusLastError) super.clone(); - } - - /** - * Output only. [Output Only] Encountered errors. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider HaControllerStatusZoneStatusLastErrorErrorsErrors 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(HaControllerStatusZoneStatusLastErrorErrorsErrors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Errors setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class HaControllerStatusZoneStatusLastErrorErrorsErrors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public HaControllerStatusZoneStatusLastErrorErrorsErrors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public HaControllerStatusZoneStatusLastErrorErrorsErrors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public HaControllerStatusZoneStatusLastErrorErrorsErrors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public HaControllerStatusZoneStatusLastErrorErrorsErrors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public HaControllerStatusZoneStatusLastErrorErrorsErrors set(String fieldName, Object value) { - return (HaControllerStatusZoneStatusLastErrorErrorsErrors) super.set(fieldName, value); - } - - @Override - public HaControllerStatusZoneStatusLastErrorErrorsErrors clone() { - return (HaControllerStatusZoneStatusLastErrorErrorsErrors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfiguration.java deleted file mode 100644 index 3f9604ca4b9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfiguration.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Config for a zone that the HaController may use for running the VM instance. - * - *

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 HaControllerZoneConfiguration extends com.google.api.client.json.GenericJson { - - /** - * A set of node affinity configurations. Refer toConfiguring node affinity for more information. - * Overrides reservationAffinity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodeAffinities; - - /** - * Specifies the reservations that the instance can consume from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HaControllerZoneConfigurationReservationAffinity reservationAffinity; - - /** - * A set of node affinity configurations. Refer toConfiguring node affinity for more information. - * Overrides reservationAffinity. - * @return value or {@code null} for none - */ - public java.util.List getNodeAffinities() { - return nodeAffinities; - } - - /** - * A set of node affinity configurations. Refer toConfiguring node affinity for more information. - * Overrides reservationAffinity. - * @param nodeAffinities nodeAffinities or {@code null} for none - */ - public HaControllerZoneConfiguration setNodeAffinities(java.util.List nodeAffinities) { - this.nodeAffinities = nodeAffinities; - return this; - } - - /** - * Specifies the reservations that the instance can consume from. - * @return value or {@code null} for none - */ - public HaControllerZoneConfigurationReservationAffinity getReservationAffinity() { - return reservationAffinity; - } - - /** - * Specifies the reservations that the instance can consume from. - * @param reservationAffinity reservationAffinity or {@code null} for none - */ - public HaControllerZoneConfiguration setReservationAffinity(HaControllerZoneConfigurationReservationAffinity reservationAffinity) { - this.reservationAffinity = reservationAffinity; - return this; - } - - @Override - public HaControllerZoneConfiguration set(String fieldName, Object value) { - return (HaControllerZoneConfiguration) super.set(fieldName, value); - } - - @Override - public HaControllerZoneConfiguration clone() { - return (HaControllerZoneConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationNodeAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationNodeAffinity.java deleted file mode 100644 index 90492089ba6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationNodeAffinity.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.preview.model; - -/** - * Node Affinity: the configuration of desired nodes onto which the Instance could be scheduled. - * This message should be an exact copy of the Instances representation of NodeAffinity. - * - *

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 HaControllerZoneConfigurationNodeAffinity extends com.google.api.client.json.GenericJson { - - /** - * Corresponds to the label key of Node resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for - * anti-affinity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operator; - - /** - * Corresponds to the label values of Node resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List values; - - /** - * Corresponds to the label key of Node resource. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * Corresponds to the label key of Node resource. - * @param key key or {@code null} for none - */ - public HaControllerZoneConfigurationNodeAffinity setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for - * anti-affinity. - * @return value or {@code null} for none - */ - public java.lang.String getOperator() { - return operator; - } - - /** - * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for - * anti-affinity. - * @param operator operator or {@code null} for none - */ - public HaControllerZoneConfigurationNodeAffinity setOperator(java.lang.String operator) { - this.operator = operator; - return this; - } - - /** - * Corresponds to the label values of Node resource. - * @return value or {@code null} for none - */ - public java.util.List getValues() { - return values; - } - - /** - * Corresponds to the label values of Node resource. - * @param values values or {@code null} for none - */ - public HaControllerZoneConfigurationNodeAffinity setValues(java.util.List values) { - this.values = values; - return this; - } - - @Override - public HaControllerZoneConfigurationNodeAffinity set(String fieldName, Object value) { - return (HaControllerZoneConfigurationNodeAffinity) super.set(fieldName, value); - } - - @Override - public HaControllerZoneConfigurationNodeAffinity clone() { - return (HaControllerZoneConfigurationNodeAffinity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationReservationAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationReservationAffinity.java deleted file mode 100644 index 4ca70824499..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllerZoneConfigurationReservationAffinity.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies the reservations that this instance can consume from. This message should be an exact - * copy of the Instances representation of AllocationAffinity. - * - *

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 HaControllerZoneConfigurationReservationAffinity extends com.google.api.client.json.GenericJson { - - /** - * Specifies the type of reservation from which this instance can consume resources: - * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved - * instances for examples. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumeReservationType; - - /** - * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by - * name, specifygoogleapis.com/reservation-name as the key and specify the name of your - * reservation as its value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Corresponds to the label values of a reservation resource. This can be either a name to a - * reservation in the same project or "projects/different-project/reservations/some-reservation- - * name" to target a shared reservation in the same zone but in a different project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List values; - - /** - * Specifies the type of reservation from which this instance can consume resources: - * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved - * instances for examples. - * @return value or {@code null} for none - */ - public java.lang.String getConsumeReservationType() { - return consumeReservationType; - } - - /** - * Specifies the type of reservation from which this instance can consume resources: - * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved - * instances for examples. - * @param consumeReservationType consumeReservationType or {@code null} for none - */ - public HaControllerZoneConfigurationReservationAffinity setConsumeReservationType(java.lang.String consumeReservationType) { - this.consumeReservationType = consumeReservationType; - return this; - } - - /** - * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by - * name, specifygoogleapis.com/reservation-name as the key and specify the name of your - * reservation as its value. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by - * name, specifygoogleapis.com/reservation-name as the key and specify the name of your - * reservation as its value. - * @param key key or {@code null} for none - */ - public HaControllerZoneConfigurationReservationAffinity setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Corresponds to the label values of a reservation resource. This can be either a name to a - * reservation in the same project or "projects/different-project/reservations/some-reservation- - * name" to target a shared reservation in the same zone but in a different project. - * @return value or {@code null} for none - */ - public java.util.List getValues() { - return values; - } - - /** - * Corresponds to the label values of a reservation resource. This can be either a name to a - * reservation in the same project or "projects/different-project/reservations/some-reservation- - * name" to target a shared reservation in the same zone but in a different project. - * @param values values or {@code null} for none - */ - public HaControllerZoneConfigurationReservationAffinity setValues(java.util.List values) { - this.values = values; - return this; - } - - @Override - public HaControllerZoneConfigurationReservationAffinity set(String fieldName, Object value) { - return (HaControllerZoneConfigurationReservationAffinity) super.set(fieldName, value); - } - - @Override - public HaControllerZoneConfigurationReservationAffinity clone() { - return (HaControllerZoneConfigurationReservationAffinity) super.clone(); - } - -} From 985c53e62fec9ce95090243830c8c0cff59262e4 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:36 -0700 Subject: [PATCH 15/23] chore: regenerate compute client --- .../model/HaControllersAggregatedList.java | 425 ----- .../model/HaControllersFailoverRequest.java | 66 - .../preview/model/HaControllersList.java | 401 ----- .../model/HaControllersScopedList.java | 278 ---- .../HealthAggregationPoliciesScopedList.java | 276 ---- .../model/HealthAggregationPolicy.java | 451 ----- ...HealthAggregationPolicyAggregatedList.java | 407 ----- .../model/HealthAggregationPolicyList.java | 386 ----- .../compute/preview/model/HealthCheck.java | 603 ------- .../preview/model/HealthCheckList.java | 383 ----- .../preview/model/HealthCheckLogConfig.java | 70 - .../preview/model/HealthCheckReference.java | 66 - .../preview/model/HealthCheckService.java | 462 ------ .../HealthCheckServiceAggregatedList.java | 401 ----- .../model/HealthCheckServiceReference.java | 67 - .../model/HealthCheckServicesList.java | 386 ----- .../model/HealthCheckServicesScopedList.java | 278 ---- .../model/HealthChecksAggregatedList.java | 401 ----- .../preview/model/HealthChecksScopedList.java | 278 ---- .../compute/preview/model/HealthSource.java | 420 ----- .../model/HealthSourceAggregatedList.java | 401 ----- .../preview/model/HealthSourceHealth.java | 117 -- .../preview/model/HealthSourceList.java | 383 ----- ...lthSourcesGetHealthResponseSourceInfo.java | 120 -- ...etHealthResponseSourceInfoBackendInfo.java | 117 -- .../model/HealthSourcesScopedList.java | 278 ---- .../compute/preview/model/HealthStatus.java | 303 ---- .../model/HealthStatusForNetworkEndpoint.java | 186 --- .../services/compute/preview/model/Help.java | 70 - .../compute/preview/model/HelpLink.java | 90 - .../services/compute/preview/model/Host.java | 309 ---- .../preview/model/HostPhysicalTopology.java | 138 -- .../compute/preview/model/HostRule.java | 136 -- .../compute/preview/model/HostStatus.java | 90 - .../preview/model/HostsGetVersionRequest.java | 66 - .../preview/model/HostsListResponse.java | 428 ----- .../compute/preview/model/HttpFaultAbort.java | 117 -- .../compute/preview/model/HttpFaultDelay.java | 100 -- .../preview/model/HttpFaultInjection.java | 97 -- .../preview/model/HttpHeaderAction.java | 145 -- .../preview/model/HttpHeaderMatch.java | 378 ----- .../preview/model/HttpHeaderOption.java | 126 -- .../preview/model/HttpHealthCheck.java | 390 ----- .../preview/model/HttpHealthCheckList.java | 383 ----- .../model/HttpQueryParameterMatch.java | 177 -- .../preview/model/HttpRedirectAction.java | 276 ---- .../preview/model/HttpRetryPolicy.java | 192 --- .../preview/model/HttpRouteAction.java | 408 ----- .../compute/preview/model/HttpRouteRule.java | 433 ----- .../preview/model/HttpRouteRuleMatch.java | 427 ----- .../preview/model/HttpsHealthCheck.java | 388 ----- .../preview/model/HttpsHealthCheckList.java | 383 ----- .../services/compute/preview/model/Image.java | 1235 -------------- .../preview/model/ImageFamilyView.java | 69 - .../compute/preview/model/ImageList.java | 383 ----- .../compute/preview/model/ImageParams.java | 78 - .../compute/preview/model/ImageView.java | 66 - .../preview/model/ImageViewsListResponse.java | 416 ----- .../preview/model/InitialStateConfig.java | 156 -- .../compute/preview/model/Instance.java | 1456 ----------------- .../preview/model/InstanceAggregatedList.java | 404 ----- .../model/InstanceConsumptionData.java | 90 - .../model/InstanceConsumptionInfo.java | 138 -- .../model/InstanceFlexibilityPolicy.java | 75 - ...nceFlexibilityPolicyInstanceSelection.java | 158 -- .../compute/preview/model/InstanceGroup.java | 445 ----- .../model/InstanceGroupAggregatedList.java | 404 ----- .../preview/model/InstanceGroupList.java | 386 ----- .../preview/model/InstanceGroupManager.java | 991 ----------- .../InstanceGroupManagerActionsSummary.java | 420 ----- .../InstanceGroupManagerAggregatedList.java | 404 ----- ...nstanceGroupManagerAllInstancesConfig.java | 84 - ...InstanceGroupManagerAutoHealingPolicy.java | 105 -- ...GroupManagerInstanceFlexibilityPolicy.java | 66 - ...nceFlexibilityPolicyInstanceSelection.java | 153 -- ...ceGroupManagerInstanceLifecyclePolicy.java | 183 --- ...anagerInstanceLifecyclePolicyOnRepair.java | 72 - .../model/InstanceGroupManagerList.java | 386 ----- .../InstanceGroupManagerResizeRequest.java | 402 ----- ...stanceGroupManagerResizeRequestStatus.java | 403 ----- ...ManagerResizeRequestStatusLastAttempt.java | 352 ---- ...roupManagerResizeRequestsListResponse.java | 386 ----- .../InstanceGroupManagerResourcePolicies.java | 78 - .../InstanceGroupManagerStandbyPolicy.java | 102 -- .../model/InstanceGroupManagerStatus.java | 255 --- ...GroupManagerStatusAcceleratorTopology.java | 117 -- ...pologyAcceleratorTopologyStateDetails.java | 381 ----- ...eGroupManagerStatusAllInstancesConfig.java | 96 -- ...oupManagerStatusBulkInstanceOperation.java | 91 -- ...ulkInstanceOperationLastProgressCheck.java | 380 ----- ...oupManagerStatusInstanceStatusSummary.java | 380 ----- .../InstanceGroupManagerStatusStateful.java | 102 -- ...nagerStatusStatefulPerInstanceConfigs.java | 72 - ...stanceGroupManagerStatusVersionTarget.java | 72 - .../InstanceGroupManagerTargetSizePolicy.java | 69 - .../InstanceGroupManagerUpdatePolicy.java | 324 ---- .../model/InstanceGroupManagerVersion.java | 147 -- ...eGroupManagersAbandonInstancesRequest.java | 69 - ...tanceGroupManagersApplyUpdatesRequest.java | 180 -- ...ceGroupManagersCreateInstancesRequest.java | 66 - 100 files changed, 27504 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersFailoverRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPoliciesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckLogConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckService.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSource.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceHealth.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatusForNetworkEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Help.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HelpLink.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Host.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostPhysicalTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultAbort.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultDelay.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultInjection.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderAction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderMatch.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderOption.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheckList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpQueryParameterMatch.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRedirectAction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRetryPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteAction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRuleMatch.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheckList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Image.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageFamilyView.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageView.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageViewsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InitialStateConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Instance.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionData.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicyInstanceSelection.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManager.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerActionsSummary.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAllInstancesConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAutoHealingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResourcePolicies.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStandbyPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAllInstancesConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusInstanceStatusSummary.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStateful.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusVersionTarget.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerTargetSizePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerUpdatePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerVersion.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersAbandonInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersApplyUpdatesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersCreateInstancesRequest.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersAggregatedList.java deleted file mode 100644 index 8695f9f0828..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersAggregatedList.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HaControllersAggregatedList. - * - *

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 HaControllersAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 HaControllersScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for - * lists of HaControllers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public HaControllersAggregatedList 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 HaControllersAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HaControllersScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of HaControllersScopedList resources. - * @param items items or {@code null} for none - */ - public HaControllersAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for - * lists of HaControllers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for - * lists of HaControllers. - * @param kind kind or {@code null} for none - */ - public HaControllersAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HaControllersAggregatedList 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 HaControllersAggregatedList 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 HaControllersAggregatedList 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 HaControllersAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HaControllersAggregatedList set(String fieldName, Object value) { - return (HaControllersAggregatedList) super.set(fieldName, value); - } - - @Override - public HaControllersAggregatedList clone() { - return (HaControllersAggregatedList) 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 HaControllersAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersFailoverRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersFailoverRequest.java deleted file mode 100644 index 2de89fa8b95..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersFailoverRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HaControllersFailoverRequest. - * - *

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 HaControllersFailoverRequest extends com.google.api.client.json.GenericJson { - - /** - * Name of the destination zone for the failover. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String failoverToZone; - - /** - * Name of the destination zone for the failover. - * @return value or {@code null} for none - */ - public java.lang.String getFailoverToZone() { - return failoverToZone; - } - - /** - * Name of the destination zone for the failover. - * @param failoverToZone failoverToZone or {@code null} for none - */ - public HaControllersFailoverRequest setFailoverToZone(java.lang.String failoverToZone) { - this.failoverToZone = failoverToZone; - return this; - } - - @Override - public HaControllersFailoverRequest set(String fieldName, Object value) { - return (HaControllersFailoverRequest) super.set(fieldName, value); - } - - @Override - public HaControllersFailoverRequest clone() { - return (HaControllersFailoverRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersList.java deleted file mode 100644 index dc11b8771ce..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HaControllersList. - * - *

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 HaControllersList extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * 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 HaControllers in the specified project and region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider HaController 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(HaController.class); - } - - /** - * This token allows you to get the next page of results formaxResults, use the nextPageToken as a - * value for the query parameter pageToken in the next list request. Subsequent list requests will - * have their own nextPageToken to continue paging through the results. - * 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; - - /** - * Informational warning message. - * 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 getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public HaControllersList setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Unique identifier for the resource; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public HaControllersList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HaControllers in the specified project and region. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of HaControllers in the specified project and region. - * @param items items or {@code null} for none - */ - public HaControllersList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * This token allows you to get the next page of results formaxResults, use the nextPageToken as a - * value for the query parameter pageToken in the next list request. Subsequent list requests will - * have their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * This token allows you to get the next page of results formaxResults, use the nextPageToken as a - * value for the query parameter pageToken in the next list request. Subsequent list requests will - * have their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HaControllersList 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 HaControllersList 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 HaControllersList setUnreachables(java.util.List unreachables) { - this.unreachables = unreachables; - return this; - } - - /** - * Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning message. - * @param warning warning or {@code null} for none - */ - public HaControllersList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HaControllersList set(String fieldName, Object value) { - return (HaControllersList) super.set(fieldName, value); - } - - @Override - public HaControllersList clone() { - return (HaControllersList) super.clone(); - } - - /** - * 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 HaControllersListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersScopedList.java deleted file mode 100644 index 45e43a5a795..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HaControllersScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HaControllersScopedList. - * - *

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 HaControllersScopedList extends com.google.api.client.json.GenericJson { - - /** - * List of HaControllers contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List haControllers; - - static { - // hack to force ProGuard to consider HaController 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(HaController.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * List of HaControllers contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getHaControllers() { - return haControllers; - } - - /** - * List of HaControllers contained in this scope. - * @param haControllers haControllers or {@code null} for none - */ - public HaControllersScopedList setHaControllers(java.util.List haControllers) { - this.haControllers = haControllers; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public HaControllersScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HaControllersScopedList set(String fieldName, Object value) { - return (HaControllersScopedList) super.set(fieldName, value); - } - - @Override - public HaControllersScopedList clone() { - return (HaControllersScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 HaControllersScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPoliciesScopedList.java deleted file mode 100644 index 9333a8db7bd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPoliciesScopedList.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthAggregationPoliciesScopedList. - * - *

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 HealthAggregationPoliciesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of HealthAggregationPolicys contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthAggregationPolicies; - - /** - * Informational warning which replaces the list of health aggregation policies when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of HealthAggregationPolicys contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getHealthAggregationPolicies() { - return healthAggregationPolicies; - } - - /** - * A list of HealthAggregationPolicys contained in this scope. - * @param healthAggregationPolicies healthAggregationPolicies or {@code null} for none - */ - public HealthAggregationPoliciesScopedList setHealthAggregationPolicies(java.util.List healthAggregationPolicies) { - this.healthAggregationPolicies = healthAggregationPolicies; - return this; - } - - /** - * Informational warning which replaces the list of health aggregation policies when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of health aggregation policies when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public HealthAggregationPoliciesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthAggregationPoliciesScopedList set(String fieldName, Object value) { - return (HealthAggregationPoliciesScopedList) super.set(fieldName, value); - } - - @Override - public HealthAggregationPoliciesScopedList clone() { - return (HealthAggregationPoliciesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of health aggregation policies when the list is - * empty. - */ - 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 HealthAggregationPoliciesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicy.java deleted file mode 100644 index 3b0bd87b2b5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicy.java +++ /dev/null @@ -1,451 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a health aggregation policy. - * - * A health aggregation policy resource defines a policy to aggregate health. - * - * For more information, see Health checks overview. - * - *

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 HealthAggregationPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An - * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthAggregationPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a - * percentage) of healthy endpoints required in order to consider the aggregated health result - * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field - * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default - * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in - * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a - * Network Endpoint Group or instances within an Instance Group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long healthyPercentThreshold; - - /** - * 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] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number - * of healthy endpoints required in order to consider the aggregated health result HEALTHY. - * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. - * Can be mutated. This field is optional, and will be set to the default if unspecified. Note - * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to - * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint - * Group or instances within an Instance Group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long minHealthyThreshold; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources - * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is - * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and - * cannot be mutated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policyType; - - /** - * Output only. [Output Only] URL of the region where the health aggregation policy resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Server-defined URL with id for the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HealthAggregationPolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An - * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthAggregationPolicy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An - * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthAggregationPolicy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An - * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthAggregationPolicy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public HealthAggregationPolicy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthAggregationPolicy. An - * up-to-date fingerprint must be provided in order to patch the HealthAggregationPolicy; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthAggregationPolicy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public HealthAggregationPolicy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a - * percentage) of healthy endpoints required in order to consider the aggregated health result - * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field - * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default - * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in - * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a - * Network Endpoint Group or instances within an Instance Group. - * @return value or {@code null} for none - */ - public java.lang.Long getHealthyPercentThreshold() { - return healthyPercentThreshold; - } - - /** - * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a - * percentage) of healthy endpoints required in order to consider the aggregated health result - * HEALTHY. Defaults to 60. Must be in range [0, 100]. Not applicable if the policyType field - * isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, and will be set to the default - * if unspecified. Note that both this threshold and minHealthyThreshold must be satisfied in - * order for HEALTHY to be the aggregated result. "Endpoints" refers to network endpoints within a - * Network Endpoint Group or instances within an Instance Group. - * @param healthyPercentThreshold healthyPercentThreshold or {@code null} for none - */ - public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthyPercentThreshold) { - this.healthyPercentThreshold = healthyPercentThreshold; - 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 HealthAggregationPolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. - * @param kind kind or {@code null} for none - */ - public HealthAggregationPolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number - * of healthy endpoints required in order to consider the aggregated health result HEALTHY. - * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. - * Can be mutated. This field is optional, and will be set to the default if unspecified. Note - * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to - * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint - * Group or instances within an Instance Group. - * @return value or {@code null} for none - */ - public java.lang.Long getMinHealthyThreshold() { - return minHealthyThreshold; - } - - /** - * Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number - * of healthy endpoints required in order to consider the aggregated health result HEALTHY. - * Defaults to 1. Must be positive. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. - * Can be mutated. This field is optional, and will be set to the default if unspecified. Note - * that both this threshold and healthyPercentThreshold must be satisfied in order for HEALTHY to - * be the aggregated result. "Endpoints" refers to network endpoints within a Network Endpoint - * Group or instances within an Instance Group. - * @param minHealthyThreshold minHealthyThreshold or {@code null} for none - */ - public HealthAggregationPolicy setMinHealthyThreshold(java.lang.Long minHealthyThreshold) { - this.minHealthyThreshold = minHealthyThreshold; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 HealthAggregationPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources - * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is - * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and - * cannot be mutated. - * @return value or {@code null} for none - */ - public java.lang.String getPolicyType() { - return policyType; - } - - /** - * Specifies the type of the healthAggregationPolicy. The only allowed value for global resources - * is DNS_PUBLIC_IP_POLICY. The only allowed value for regional resources is - * BACKEND_SERVICE_POLICY. Must be specified when the healthAggregationPolicy is created, and - * cannot be mutated. - * @param policyType policyType or {@code null} for none - */ - public HealthAggregationPolicy setPolicyType(java.lang.String policyType) { - this.policyType = policyType; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the health aggregation policy resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the health aggregation policy resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public HealthAggregationPolicy setRegion(java.lang.String region) { - this.region = region; - 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 HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public HealthAggregationPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - @Override - public HealthAggregationPolicy set(String fieldName, Object value) { - return (HealthAggregationPolicy) super.set(fieldName, value); - } - - @Override - public HealthAggregationPolicy clone() { - return (HealthAggregationPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyAggregatedList.java deleted file mode 100644 index 2a208549b18..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyAggregatedList.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of HealthAggregationPoliciesScopedList. - * - *

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 HealthAggregationPolicyAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthAggregationPoliciesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider HealthAggregationPoliciesScopedList 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(HealthAggregationPoliciesScopedList.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 HealthAggregationPolicyAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthAggregationPoliciesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of HealthAggregationPoliciesScopedList resources. - * @param items items or {@code null} for none - */ - public HealthAggregationPolicyAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HealthAggregationPolicyAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthAggregationPolicyAggregatedList 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 HealthAggregationPolicyAggregatedList 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 HealthAggregationPolicyAggregatedList 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 HealthAggregationPolicyAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthAggregationPolicyAggregatedList set(String fieldName, Object value) { - return (HealthAggregationPolicyAggregatedList) super.set(fieldName, value); - } - - @Override - public HealthAggregationPolicyAggregatedList clone() { - return (HealthAggregationPolicyAggregatedList) 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 HealthAggregationPolicyAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyList.java deleted file mode 100644 index 356c93deb3a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthAggregationPolicyList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthAggregationPolicyList. - * - *

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 HealthAggregationPolicyList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthAggregationPolicy 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 HealthAggregationPolicy 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(HealthAggregationPolicy.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 HealthAggregationPolicyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthAggregationPolicy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of HealthAggregationPolicy resources. - * @param items items or {@code null} for none - */ - public HealthAggregationPolicyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. - * @param kind kind or {@code null} for none - */ - public HealthAggregationPolicyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthAggregationPolicyList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public HealthAggregationPolicyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 HealthAggregationPolicyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthAggregationPolicyList set(String fieldName, Object value) { - return (HealthAggregationPolicyList) super.set(fieldName, value); - } - - @Override - public HealthAggregationPolicyList clone() { - return (HealthAggregationPolicyList) 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 HealthAggregationPolicyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheck.java deleted file mode 100644 index e554c99592b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheck.java +++ /dev/null @@ -1,603 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a health check resource. - * - * Google Compute Engine has two health check resources: - * - * * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) * - * [Global](/compute/docs/reference/rest/v1/healthChecks) - * - * These health check resources can be used for load balancing and for autohealing VMs in a managed - * instance group (MIG). - * - * **Load balancing** - * - * Health check requirements vary depending on the type of load balancer. For details about the type - * of health check supported for each load balancer and corresponding backend type, see Health - * checks overview: Load balancer guide. - * - * **Autohealing in MIGs** - * - * The health checks that you use for autohealing VMs in a MIG can be either regional or global. For - * more information, see Set up an application health check and autohealing. - * - * For more information, seeHealth checks overview. - * - *

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 HealthCheck extends com.google.api.client.json.GenericJson { - - /** - * How often (in seconds) to send a health check. The default value is 5 seconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer checkIntervalSec; - - /** - * Output only. [Output Only] Creation timestamp in3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GRPCHealthCheck grpcHealthCheck; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GRPCTLSHealthCheck grpcTlsHealthCheck; - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyThreshold; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HTTP2HealthCheck http2HealthCheck; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HTTPHealthCheck httpHealthCheck; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HTTPSHealthCheck httpsHealthCheck; - - /** - * [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. Type of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Configure logging on this health check. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HealthCheckLogConfig logConfig; - - /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply withRFC1035. For example, a name that is 1-63 characters long, - * matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with - * RFC1035. This regular expression describes a name where the first character is a lowercase - * letter, and all following characters are a dash, lowercase letter, or digit, except the last - * character, which isn't a dash. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] Region where the health check resides. Not applicable to global - * health checks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * The list of cloud regions from which health checks are performed. If any regions are specified, - * then exactly 3 regions should be specified. The region names must be valid names of Google - * Cloud regions. This can only be set for global health check. If this list is non-empty, then - * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not - * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, - * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - - * The health check cannot be used with BackendService nor with managed instance group auto- - * healing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceRegions; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SSLHealthCheck sslHealthCheck; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private TCPHealthCheck tcpHealthCheck; - - /** - * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is - * invalid for timeoutSec to have greater value than checkIntervalSec. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer timeoutSec; - - /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or - * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, - * which must match type field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer unhealthyThreshold; - - /** - * How often (in seconds) to send a health check. The default value is 5 seconds. - * @return value or {@code null} for none - */ - public java.lang.Integer getCheckIntervalSec() { - return checkIntervalSec; - } - - /** - * How often (in seconds) to send a health check. The default value is 5 seconds. - * @param checkIntervalSec checkIntervalSec or {@code null} for none - */ - public HealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { - this.checkIntervalSec = checkIntervalSec; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp in3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp in3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public HealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HealthCheck setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * @return value or {@code null} for none - */ - public GRPCHealthCheck getGrpcHealthCheck() { - return grpcHealthCheck; - } - - /** - * @param grpcHealthCheck grpcHealthCheck or {@code null} for none - */ - public HealthCheck setGrpcHealthCheck(GRPCHealthCheck grpcHealthCheck) { - this.grpcHealthCheck = grpcHealthCheck; - return this; - } - - /** - * @return value or {@code null} for none - */ - public GRPCTLSHealthCheck getGrpcTlsHealthCheck() { - return grpcTlsHealthCheck; - } - - /** - * @param grpcTlsHealthCheck grpcTlsHealthCheck or {@code null} for none - */ - public HealthCheck setGrpcTlsHealthCheck(GRPCTLSHealthCheck grpcTlsHealthCheck) { - this.grpcTlsHealthCheck = grpcTlsHealthCheck; - return this; - } - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyThreshold() { - return healthyThreshold; - } - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * @param healthyThreshold healthyThreshold or {@code null} for none - */ - public HealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold) { - this.healthyThreshold = healthyThreshold; - return this; - } - - /** - * @return value or {@code null} for none - */ - public HTTP2HealthCheck getHttp2HealthCheck() { - return http2HealthCheck; - } - - /** - * @param http2HealthCheck http2HealthCheck or {@code null} for none - */ - public HealthCheck setHttp2HealthCheck(HTTP2HealthCheck http2HealthCheck) { - this.http2HealthCheck = http2HealthCheck; - return this; - } - - /** - * @return value or {@code null} for none - */ - public HTTPHealthCheck getHttpHealthCheck() { - return httpHealthCheck; - } - - /** - * @param httpHealthCheck httpHealthCheck or {@code null} for none - */ - public HealthCheck setHttpHealthCheck(HTTPHealthCheck httpHealthCheck) { - this.httpHealthCheck = httpHealthCheck; - return this; - } - - /** - * @return value or {@code null} for none - */ - public HTTPSHealthCheck getHttpsHealthCheck() { - return httpsHealthCheck; - } - - /** - * @param httpsHealthCheck httpsHealthCheck or {@code null} for none - */ - public HealthCheck setHttpsHealthCheck(HTTPSHealthCheck httpsHealthCheck) { - this.httpsHealthCheck = httpsHealthCheck; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public HealthCheck setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. Type of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. - * @param kind kind or {@code null} for none - */ - public HealthCheck setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Configure logging on this health check. - * @return value or {@code null} for none - */ - public HealthCheckLogConfig getLogConfig() { - return logConfig; - } - - /** - * Configure logging on this health check. - * @param logConfig logConfig or {@code null} for none - */ - public HealthCheck setLogConfig(HealthCheckLogConfig logConfig) { - this.logConfig = logConfig; - return this; - } - - /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply withRFC1035. For example, a name that is 1-63 characters long, - * matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with - * RFC1035. This regular expression describes a name where the first character is a lowercase - * letter, and all following characters are a dash, lowercase letter, or digit, except the last - * character, which isn't a dash. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. Provided by the client when the resource is created. The name must be - * 1-63 characters long, and comply withRFC1035. For example, a name that is 1-63 characters long, - * matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with - * RFC1035. This regular expression describes a name where the first character is a lowercase - * letter, and all following characters are a dash, lowercase letter, or digit, except the last - * character, which isn't a dash. - * @param name name or {@code null} for none - */ - public HealthCheck setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Region where the health check resides. Not applicable to global - * health checks. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] Region where the health check resides. Not applicable to global - * health checks. - * @param region region or {@code null} for none - */ - public HealthCheck setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public HealthCheck setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The list of cloud regions from which health checks are performed. If any regions are specified, - * then exactly 3 regions should be specified. The region names must be valid names of Google - * Cloud regions. This can only be set for global health check. If this list is non-empty, then - * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not - * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, - * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - - * The health check cannot be used with BackendService nor with managed instance group auto- - * healing. - * @return value or {@code null} for none - */ - public java.util.List getSourceRegions() { - return sourceRegions; - } - - /** - * The list of cloud regions from which health checks are performed. If any regions are specified, - * then exactly 3 regions should be specified. The region names must be valid names of Google - * Cloud regions. This can only be set for global health check. If this list is non-empty, then - * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not - * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, - * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - - * The health check cannot be used with BackendService nor with managed instance group auto- - * healing. - * @param sourceRegions sourceRegions or {@code null} for none - */ - public HealthCheck setSourceRegions(java.util.List sourceRegions) { - this.sourceRegions = sourceRegions; - return this; - } - - /** - * @return value or {@code null} for none - */ - public SSLHealthCheck getSslHealthCheck() { - return sslHealthCheck; - } - - /** - * @param sslHealthCheck sslHealthCheck or {@code null} for none - */ - public HealthCheck setSslHealthCheck(SSLHealthCheck sslHealthCheck) { - this.sslHealthCheck = sslHealthCheck; - return this; - } - - /** - * @return value or {@code null} for none - */ - public TCPHealthCheck getTcpHealthCheck() { - return tcpHealthCheck; - } - - /** - * @param tcpHealthCheck tcpHealthCheck or {@code null} for none - */ - public HealthCheck setTcpHealthCheck(TCPHealthCheck tcpHealthCheck) { - this.tcpHealthCheck = tcpHealthCheck; - return this; - } - - /** - * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is - * invalid for timeoutSec to have greater value than checkIntervalSec. - * @return value or {@code null} for none - */ - public java.lang.Integer getTimeoutSec() { - return timeoutSec; - } - - /** - * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is - * invalid for timeoutSec to have greater value than checkIntervalSec. - * @param timeoutSec timeoutSec or {@code null} for none - */ - public HealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { - this.timeoutSec = timeoutSec; - return this; - } - - /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or - * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, - * which must match type field. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or - * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, - * which must match type field. - * @param type type or {@code null} for none - */ - public HealthCheck setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getUnhealthyThreshold() { - return unhealthyThreshold; - } - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * @param unhealthyThreshold unhealthyThreshold or {@code null} for none - */ - public HealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold) { - this.unhealthyThreshold = unhealthyThreshold; - return this; - } - - @Override - public HealthCheck set(String fieldName, Object value) { - return (HealthCheck) super.set(fieldName, value); - } - - @Override - public HealthCheck clone() { - return (HealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckList.java deleted file mode 100644 index fbdbc623de3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of HealthCheck resources. - * - *

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 HealthCheckList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthCheck 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 HealthCheck 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(HealthCheck.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 HealthCheckList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthCheck resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of HealthCheck resources. - * @param items items or {@code null} for none - */ - public HealthCheckList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HealthCheckList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthCheckList 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 HealthCheckList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 HealthCheckList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthCheckList set(String fieldName, Object value) { - return (HealthCheckList) super.set(fieldName, value); - } - - @Override - public HealthCheckList clone() { - return (HealthCheckList) 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 HealthCheckListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckLogConfig.java deleted file mode 100644 index 04a001dfb74..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckLogConfig.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration of logging on a health check. If logging is enabled, logs will be exported to - * Stackdriver. - * - *

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 HealthCheckLogConfig extends com.google.api.client.json.GenericJson { - - /** - * Indicates whether or not to export logs. This is false by default, which means no health check - * logging will be done. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - - /** - * Indicates whether or not to export logs. This is false by default, which means no health check - * logging will be done. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * Indicates whether or not to export logs. This is false by default, which means no health check - * logging will be done. - * @param enable enable or {@code null} for none - */ - public HealthCheckLogConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - - @Override - public HealthCheckLogConfig set(String fieldName, Object value) { - return (HealthCheckLogConfig) super.set(fieldName, value); - } - - @Override - public HealthCheckLogConfig clone() { - return (HealthCheckLogConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckReference.java deleted file mode 100644 index e982fe60443..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckReference.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * A full or valid partial URL to a health check. For example, the following are valid URLs: - * - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health- - * check - projects/project-id/global/httpHealthChecks/health-check - - * global/httpHealthChecks/health-check - * - *

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 HealthCheckReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** - * @param healthCheck healthCheck or {@code null} for none - */ - public HealthCheckReference setHealthCheck(java.lang.String healthCheck) { - this.healthCheck = healthCheck; - return this; - } - - @Override - public HealthCheckReference set(String fieldName, Object value) { - return (HealthCheckReference) super.set(fieldName, value); - } - - @Override - public HealthCheckReference clone() { - return (HealthCheckReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckService.java deleted file mode 100644 index a311446c732..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckService.java +++ /dev/null @@ -1,462 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Health-Check as a Service 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 HealthCheckService extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- - * to-date fingerprint must be provided in order to patch/update the HealthCheckService; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthCheckService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more - * than 10 for regionalHealthCheckService, and not more than 1 for - * globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT - * orportSpecification=USE_FIXED_PORT. For regional HealthCheckService, theHealthCheck must be - * regional and in the same region. For global HealthCheckService,HealthCheck must be global. Mix - * of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong - * to the same region. RegionalHealthChecks must belong to the same region as zones - * ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT - * NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks - * that specify sourceRegions can only be used with global INTERNET_IP_PORTNetworkEndpointGroups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthChecks; - - /** - * Optional. Policy for how the results from multiple health checks for the same endpoint are - * aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An - * EndpointHealth message is returned for each pair in the health check service. - AND. - * If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the - * endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. - * - * . This is only allowed with regional HealthCheckService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatusAggregationPolicy; - - /** - * 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] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. - * 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; - - /** - * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For - * regionalHealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For - * globalHealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpointGroups; - - /** - * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of - * endpoints for receiving notifications of change in health status. For - * regionalHealthCheckService,NotificationEndpoint must be regional and in the same region. For - * global HealthCheckService,NotificationEndpoint must be global. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List notificationEndpoints; - - /** - * Output only. [Output Only] URL of the region where the health check service resides. This field - * is not applicable to global health check services. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HealthCheckService setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- - * to-date fingerprint must be provided in order to patch/update the HealthCheckService; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthCheckService. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- - * to-date fingerprint must be provided in order to patch/update the HealthCheckService; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthCheckService. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- - * to-date fingerprint must be provided in order to patch/update the HealthCheckService; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthCheckService. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public HealthCheckService setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up- - * to-date fingerprint must be provided in order to patch/update the HealthCheckService; - * Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, - * make a get() request to retrieve the HealthCheckService. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public HealthCheckService encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more - * than 10 for regionalHealthCheckService, and not more than 1 for - * globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT - * orportSpecification=USE_FIXED_PORT. For regional HealthCheckService, theHealthCheck must be - * regional and in the same region. For global HealthCheckService,HealthCheck must be global. Mix - * of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong - * to the same region. RegionalHealthChecks must belong to the same region as zones - * ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT - * NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks - * that specify sourceRegions can only be used with global INTERNET_IP_PORTNetworkEndpointGroups. - * @return value or {@code null} for none - */ - public java.util.List getHealthChecks() { - return healthChecks; - } - - /** - * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more - * than 10 for regionalHealthCheckService, and not more than 1 for - * globalHealthCheckService.HealthCheck resources must haveportSpecification=USE_SERVING_PORT - * orportSpecification=USE_FIXED_PORT. For regional HealthCheckService, theHealthCheck must be - * regional and in the same region. For global HealthCheckService,HealthCheck must be global. Mix - * of regional and globalHealthChecks is not supported. Multiple regionalHealthChecks must belong - * to the same region. RegionalHealthChecks must belong to the same region as zones - * ofNetworkEndpointGroups. For globalHealthCheckService using globalINTERNET_IP_PORT - * NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks - * that specify sourceRegions can only be used with global INTERNET_IP_PORTNetworkEndpointGroups. - * @param healthChecks healthChecks or {@code null} for none - */ - public HealthCheckService setHealthChecks(java.util.List healthChecks) { - this.healthChecks = healthChecks; - return this; - } - - /** - * Optional. Policy for how the results from multiple health checks for the same endpoint are - * aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An - * EndpointHealth message is returned for each pair in the health check service. - AND. - * If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the - * endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. - * - * . This is only allowed with regional HealthCheckService. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatusAggregationPolicy() { - return healthStatusAggregationPolicy; - } - - /** - * Optional. Policy for how the results from multiple health checks for the same endpoint are - * aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An - * EndpointHealth message is returned for each pair in the health check service. - AND. - * If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the - * endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. - * - * . This is only allowed with regional HealthCheckService. - * @param healthStatusAggregationPolicy healthStatusAggregationPolicy or {@code null} for none - */ - public HealthCheckService setHealthStatusAggregationPolicy(java.lang.String healthStatusAggregationPolicy) { - this.healthStatusAggregationPolicy = healthStatusAggregationPolicy; - 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 HealthCheckService setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. - * @param kind kind or {@code null} for none - */ - public HealthCheckService setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. - * 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. The name must be 1-63 characters long, and comply with RFC1035. - * 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 HealthCheckService setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For - * regionalHealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For - * globalHealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpointGroups() { - return networkEndpointGroups; - } - - /** - * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For - * regionalHealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For - * globalHealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. - * @param networkEndpointGroups networkEndpointGroups or {@code null} for none - */ - public HealthCheckService setNetworkEndpointGroups(java.util.List networkEndpointGroups) { - this.networkEndpointGroups = networkEndpointGroups; - return this; - } - - /** - * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of - * endpoints for receiving notifications of change in health status. For - * regionalHealthCheckService,NotificationEndpoint must be regional and in the same region. For - * global HealthCheckService,NotificationEndpoint must be global. - * @return value or {@code null} for none - */ - public java.util.List getNotificationEndpoints() { - return notificationEndpoints; - } - - /** - * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of - * endpoints for receiving notifications of change in health status. For - * regionalHealthCheckService,NotificationEndpoint must be regional and in the same region. For - * global HealthCheckService,NotificationEndpoint must be global. - * @param notificationEndpoints notificationEndpoints or {@code null} for none - */ - public HealthCheckService setNotificationEndpoints(java.util.List notificationEndpoints) { - this.notificationEndpoints = notificationEndpoints; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the health check service resides. This field - * is not applicable to global health check services. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the health check service resides. This field - * is not applicable to global health check services. You must specify this field as part of the - * HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public HealthCheckService setRegion(java.lang.String region) { - this.region = region; - 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 HealthCheckService setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public HealthCheckService set(String fieldName, Object value) { - return (HealthCheckService) super.set(fieldName, value); - } - - @Override - public HealthCheckService clone() { - return (HealthCheckService) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceAggregatedList.java deleted file mode 100644 index f8864eb3df8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of HealthCheckServicesScopedList. - * - *

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 HealthCheckServiceAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthCheckServicesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 HealthCheckServiceAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthCheckServicesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of HealthCheckServicesScopedList resources. - * @param items items or {@code null} for none - */ - public HealthCheckServiceAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HealthCheckServiceAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthCheckServiceAggregatedList 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 HealthCheckServiceAggregatedList 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 HealthCheckServiceAggregatedList 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 HealthCheckServiceAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthCheckServiceAggregatedList set(String fieldName, Object value) { - return (HealthCheckServiceAggregatedList) super.set(fieldName, value); - } - - @Override - public HealthCheckServiceAggregatedList clone() { - return (HealthCheckServiceAggregatedList) 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 HealthCheckServiceAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceReference.java deleted file mode 100644 index 5c9c9ff69c1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServiceReference.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.preview.model; - -/** - * A full or valid partial URL to a health check service. For example, the following are valid URLs: - * - https://www.googleapis.com/compute/beta/projects/project-id/regions/us- - * west1/healthCheckServices/health-check-service - projects/project-id/regions/us- - * west1/healthCheckServices/health-check-service - regions/us-west1/healthCheckServices/health- - * check-service - * - *

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 HealthCheckServiceReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheckService; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getHealthCheckService() { - return healthCheckService; - } - - /** - * @param healthCheckService healthCheckService or {@code null} for none - */ - public HealthCheckServiceReference setHealthCheckService(java.lang.String healthCheckService) { - this.healthCheckService = healthCheckService; - return this; - } - - @Override - public HealthCheckServiceReference set(String fieldName, Object value) { - return (HealthCheckServiceReference) super.set(fieldName, value); - } - - @Override - public HealthCheckServiceReference clone() { - return (HealthCheckServiceReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesList.java deleted file mode 100644 index 8746b9fdc6a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthCheckServicesList. - * - *

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 HealthCheckServicesList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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; - - /** - * Output only. A list of HealthCheckService 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 HealthCheckService 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(HealthCheckService.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public HealthCheckServicesList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. A list of HealthCheckService resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. A list of HealthCheckService resources. - * @param items items or {@code null} for none - */ - public HealthCheckServicesList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. - * @param kind kind or {@code null} for none - */ - public HealthCheckServicesList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthCheckServicesList 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 HealthCheckServicesList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 HealthCheckServicesList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthCheckServicesList set(String fieldName, Object value) { - return (HealthCheckServicesList) super.set(fieldName, value); - } - - @Override - public HealthCheckServicesList clone() { - return (HealthCheckServicesList) 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 HealthCheckServicesListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesScopedList.java deleted file mode 100644 index 181ef128533..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthCheckServicesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthCheckServicesScopedList. - * - *

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 HealthCheckServicesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of HealthCheckServices contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resources; - - static { - // hack to force ProGuard to consider HealthCheckService 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(HealthCheckService.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of HealthCheckServices contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getResources() { - return resources; - } - - /** - * A list of HealthCheckServices contained in this scope. - * @param resources resources or {@code null} for none - */ - public HealthCheckServicesScopedList setResources(java.util.List resources) { - this.resources = resources; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public HealthCheckServicesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthCheckServicesScopedList set(String fieldName, Object value) { - return (HealthCheckServicesScopedList) super.set(fieldName, value); - } - - @Override - public HealthCheckServicesScopedList clone() { - return (HealthCheckServicesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 HealthCheckServicesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksAggregatedList.java deleted file mode 100644 index 4047d6757df..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthChecksAggregatedList. - * - *

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 HealthChecksAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthChecksScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 HealthChecksAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthChecksScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of HealthChecksScopedList resources. - * @param items items or {@code null} for none - */ - public HealthChecksAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HealthChecksAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthChecksAggregatedList 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 HealthChecksAggregatedList 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 HealthChecksAggregatedList 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 HealthChecksAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthChecksAggregatedList set(String fieldName, Object value) { - return (HealthChecksAggregatedList) super.set(fieldName, value); - } - - @Override - public HealthChecksAggregatedList clone() { - return (HealthChecksAggregatedList) 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 HealthChecksAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksScopedList.java deleted file mode 100644 index 8a4cc321f93..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthChecksScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthChecksScopedList. - * - *

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 HealthChecksScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of HealthChecks contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthChecks; - - static { - // hack to force ProGuard to consider HealthCheck 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(HealthCheck.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of HealthChecks contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getHealthChecks() { - return healthChecks; - } - - /** - * A list of HealthChecks contained in this scope. - * @param healthChecks healthChecks or {@code null} for none - */ - public HealthChecksScopedList setHealthChecks(java.util.List healthChecks) { - this.healthChecks = healthChecks; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public HealthChecksScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthChecksScopedList set(String fieldName, Object value) { - return (HealthChecksScopedList) super.set(fieldName, value); - } - - @Override - public HealthChecksScopedList clone() { - return (HealthChecksScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 HealthChecksScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSource.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSource.java deleted file mode 100644 index 7e9a76ce2c8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSource.java +++ /dev/null @@ -1,420 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a health source. - * - * A health source resource specifies the source resources and the health aggregation policy applied - * to the source resources to determine the aggregated health status. - * - *

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 HealthSource extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date - * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will - * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to - * retrieve the HealthSource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same - * region as the HealthSource. Can be mutated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthAggregationPolicy; - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#healthSource for health sources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] URL of the region where the health source resides. This field - * applies only to the regional resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Server-defined URL with id for the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be - * specified when theHealthSource is created, and cannot be mutated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceType; - - /** - * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is - * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED - * and must be regional and in the same region as the HealthSource (cross-region deployment for - * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of - * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sources; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HealthSource setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date - * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will - * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to - * retrieve the HealthSource. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date - * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will - * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to - * retrieve the HealthSource. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date - * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will - * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to - * retrieve the HealthSource. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public HealthSource setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a HealthSource. An up-to-date - * fingerprint must be provided in order to patch the HealthSource; Otherwise, the request will - * fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to - * retrieve the HealthSource. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public HealthSource encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same - * region as the HealthSource. Can be mutated. - * @return value or {@code null} for none - */ - public java.lang.String getHealthAggregationPolicy() { - return healthAggregationPolicy; - } - - /** - * URL to the HealthAggregationPolicy resource. Must be set. Must be regional and in the same - * region as the HealthSource. Can be mutated. - * @param healthAggregationPolicy healthAggregationPolicy or {@code null} for none - */ - public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { - this.healthAggregationPolicy = healthAggregationPolicy; - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public HealthSource setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. - * @param kind kind or {@code null} for none - */ - public HealthSource setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 HealthSource setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the health source resides. This field - * applies only to the regional resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the health source resides. This field - * applies only to the regional resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public HealthSource setRegion(java.lang.String region) { - this.region = region; - 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 HealthSource setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public HealthSource setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be - * specified when theHealthSource is created, and cannot be mutated. - * @return value or {@code null} for none - */ - public java.lang.String getSourceType() { - return sourceType; - } - - /** - * Specifies the type of the HealthSource. The only allowed value is BACKEND_SERVICE. Must be - * specified when theHealthSource is created, and cannot be mutated. - * @param sourceType sourceType or {@code null} for none - */ - public HealthSource setSourceType(java.lang.String sourceType) { - this.sourceType = sourceType; - return this; - } - - /** - * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is - * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED - * and must be regional and in the same region as the HealthSource (cross-region deployment for - * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of - * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. - * @return value or {@code null} for none - */ - public java.util.List getSources() { - return sources; - } - - /** - * URLs to the source resources. Must be size 1. Must be aBackendService if the sourceType is - * BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED - * and must be regional and in the same region as the HealthSource (cross-region deployment for - * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of - * typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be mutated. - * @param sources sources or {@code null} for none - */ - public HealthSource setSources(java.util.List sources) { - this.sources = sources; - return this; - } - - @Override - public HealthSource set(String fieldName, Object value) { - return (HealthSource) super.set(fieldName, value); - } - - @Override - public HealthSource clone() { - return (HealthSource) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceAggregatedList.java deleted file mode 100644 index 8ace3f92623..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of HealthSourcesScopedList. - * - *

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 HealthSourceAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthSourcesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 HealthSourceAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthSourcesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of HealthSourcesScopedList resources. - * @param items items or {@code null} for none - */ - public HealthSourceAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HealthSourceAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthSourceAggregatedList 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 HealthSourceAggregatedList 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 HealthSourceAggregatedList 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 HealthSourceAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthSourceAggregatedList set(String fieldName, Object value) { - return (HealthSourceAggregatedList) super.set(fieldName, value); - } - - @Override - public HealthSourceAggregatedList clone() { - return (HealthSourceAggregatedList) 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 HealthSourceAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceHealth.java deleted file mode 100644 index 2cc8fcebece..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceHealth.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response message for RegionHealthSources.GetHealth - * - *

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 HealthSourceHealth extends com.google.api.client.json.GenericJson { - - /** - * Health state of the HealthSource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthState; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of - * health sources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Health state details of the sources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sources; - - /** - * Health state of the HealthSource. - * @return value or {@code null} for none - */ - public java.lang.String getHealthState() { - return healthState; - } - - /** - * Health state of the HealthSource. - * @param healthState healthState or {@code null} for none - */ - public HealthSourceHealth setHealthState(java.lang.String healthState) { - this.healthState = healthState; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of - * health sources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#healthSourceHealth for the health of - * health sources. - * @param kind kind or {@code null} for none - */ - public HealthSourceHealth setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Health state details of the sources. - * @return value or {@code null} for none - */ - public java.util.List getSources() { - return sources; - } - - /** - * Health state details of the sources. - * @param sources sources or {@code null} for none - */ - public HealthSourceHealth setSources(java.util.List sources) { - this.sources = sources; - return this; - } - - @Override - public HealthSourceHealth set(String fieldName, Object value) { - return (HealthSourceHealth) super.set(fieldName, value); - } - - @Override - public HealthSourceHealth clone() { - return (HealthSourceHealth) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceList.java deleted file mode 100644 index 64c187221b3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourceList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthSourceList. - * - *

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 HealthSourceList extends com.google.api.client.json.GenericJson { - - /** - * [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 HealthSource 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 HealthSource 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(HealthSource.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 HealthSourceList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HealthSource resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of HealthSource resources. - * @param items items or {@code null} for none - */ - public HealthSourceList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. - * @param kind kind or {@code null} for none - */ - public HealthSourceList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HealthSourceList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public HealthSourceList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 HealthSourceList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthSourceList set(String fieldName, Object value) { - return (HealthSourceList) super.set(fieldName, value); - } - - @Override - public HealthSourceList clone() { - return (HealthSourceList) 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 HealthSourceListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfo.java deleted file mode 100644 index a2c6705422d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfo.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthSourcesGetHealthResponseSourceInfo. - * - *

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 HealthSourcesGetHealthResponseSourceInfo extends com.google.api.client.json.GenericJson { - - /** - * Represents an instance group or network endpoint group behind the source backend service. Only - * used if the sourceType of the regionHealthSource is BACKEND_SERVICE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List backends; - - /** - * Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB - * backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** - * Fully qualified URL of the associated source resource. This is always a backend service URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * Represents an instance group or network endpoint group behind the source backend service. Only - * used if the sourceType of the regionHealthSource is BACKEND_SERVICE. - * @return value or {@code null} for none - */ - public java.util.List getBackends() { - return backends; - } - - /** - * Represents an instance group or network endpoint group behind the source backend service. Only - * used if the sourceType of the regionHealthSource is BACKEND_SERVICE. - * @param backends backends or {@code null} for none - */ - public HealthSourcesGetHealthResponseSourceInfo setBackends(java.util.List backends) { - this.backends = backends; - return this; - } - - /** - * Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB - * backend service. - * @return value or {@code null} for none - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** - * Fully qualified URL of the forwarding rule associated with the source resource if it is a L4ILB - * backend service. - * @param forwardingRule forwardingRule or {@code null} for none - */ - public HealthSourcesGetHealthResponseSourceInfo setForwardingRule(java.lang.String forwardingRule) { - this.forwardingRule = forwardingRule; - return this; - } - - /** - * Fully qualified URL of the associated source resource. This is always a backend service URL. - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * Fully qualified URL of the associated source resource. This is always a backend service URL. - * @param source source or {@code null} for none - */ - public HealthSourcesGetHealthResponseSourceInfo setSource(java.lang.String source) { - this.source = source; - return this; - } - - @Override - public HealthSourcesGetHealthResponseSourceInfo set(String fieldName, Object value) { - return (HealthSourcesGetHealthResponseSourceInfo) super.set(fieldName, value); - } - - @Override - public HealthSourcesGetHealthResponseSourceInfo clone() { - return (HealthSourcesGetHealthResponseSourceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java deleted file mode 100644 index a867b6bd1ff..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthSourcesGetHealthResponseSourceInfoBackendInfo. - * - *

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 HealthSourcesGetHealthResponseSourceInfoBackendInfo extends com.google.api.client.json.GenericJson { - - /** - * Total number of endpoints when determining the health of the regionHealthSource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer endpointCount; - - /** - * Fully qualified URL of an instance group or network endpoint group behind the source backend - * service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String group; - - /** - * Number of endpoints considered healthy when determining health of the regionHealthSource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyEndpointCount; - - /** - * Total number of endpoints when determining the health of the regionHealthSource. - * @return value or {@code null} for none - */ - public java.lang.Integer getEndpointCount() { - return endpointCount; - } - - /** - * Total number of endpoints when determining the health of the regionHealthSource. - * @param endpointCount endpointCount or {@code null} for none - */ - public HealthSourcesGetHealthResponseSourceInfoBackendInfo setEndpointCount(java.lang.Integer endpointCount) { - this.endpointCount = endpointCount; - return this; - } - - /** - * Fully qualified URL of an instance group or network endpoint group behind the source backend - * service. - * @return value or {@code null} for none - */ - public java.lang.String getGroup() { - return group; - } - - /** - * Fully qualified URL of an instance group or network endpoint group behind the source backend - * service. - * @param group group or {@code null} for none - */ - public HealthSourcesGetHealthResponseSourceInfoBackendInfo setGroup(java.lang.String group) { - this.group = group; - return this; - } - - /** - * Number of endpoints considered healthy when determining health of the regionHealthSource. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyEndpointCount() { - return healthyEndpointCount; - } - - /** - * Number of endpoints considered healthy when determining health of the regionHealthSource. - * @param healthyEndpointCount healthyEndpointCount or {@code null} for none - */ - public HealthSourcesGetHealthResponseSourceInfoBackendInfo setHealthyEndpointCount(java.lang.Integer healthyEndpointCount) { - this.healthyEndpointCount = healthyEndpointCount; - return this; - } - - @Override - public HealthSourcesGetHealthResponseSourceInfoBackendInfo set(String fieldName, Object value) { - return (HealthSourcesGetHealthResponseSourceInfoBackendInfo) super.set(fieldName, value); - } - - @Override - public HealthSourcesGetHealthResponseSourceInfoBackendInfo clone() { - return (HealthSourcesGetHealthResponseSourceInfoBackendInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesScopedList.java deleted file mode 100644 index e8fcaca2732..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthSourcesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthSourcesScopedList. - * - *

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 HealthSourcesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of HealthSources contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthSources; - - static { - // hack to force ProGuard to consider HealthSource 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(HealthSource.class); - } - - /** - * Informational warning which replaces the list of health sources when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of HealthSources contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getHealthSources() { - return healthSources; - } - - /** - * A list of HealthSources contained in this scope. - * @param healthSources healthSources or {@code null} for none - */ - public HealthSourcesScopedList setHealthSources(java.util.List healthSources) { - this.healthSources = healthSources; - return this; - } - - /** - * Informational warning which replaces the list of health sources when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of health sources when the list is empty. - * @param warning warning or {@code null} for none - */ - public HealthSourcesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HealthSourcesScopedList set(String fieldName, Object value) { - return (HealthSourcesScopedList) super.set(fieldName, value); - } - - @Override - public HealthSourcesScopedList clone() { - return (HealthSourcesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of health sources when the list is empty. - */ - 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 HealthSourcesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatus.java deleted file mode 100644 index fe8e73200f1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatus.java +++ /dev/null @@ -1,303 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthStatus. - * - *

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 HealthStatus extends com.google.api.client.json.GenericJson { - - /** - * Metadata defined as annotations for network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map annotations; - - /** - * URL of the forwarding rule associated with the health status of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** - * A forwarding rule IP address assigned to this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String forwardingRuleIp; - - /** - * Health state of the IPv4 address of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthState; - - /** - * URL of the instance resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * For target pool based Network Load Balancing, it indicates the forwarding rule's IP address - * assigned to this instance. For other types of load balancing, the field indicates VM internal - * ip. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * Health state of the IPv6 address of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6HealthState; - - /** - * The named port of the instance group, not necessarily the port that is health-checked. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String weight; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String weightError; - - /** - * Metadata defined as annotations for network endpoint. - * @return value or {@code null} for none - */ - public java.util.Map getAnnotations() { - return annotations; - } - - /** - * Metadata defined as annotations for network endpoint. - * @param annotations annotations or {@code null} for none - */ - public HealthStatus setAnnotations(java.util.Map annotations) { - this.annotations = annotations; - return this; - } - - /** - * URL of the forwarding rule associated with the health status of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** - * URL of the forwarding rule associated with the health status of the instance. - * @param forwardingRule forwardingRule or {@code null} for none - */ - public HealthStatus setForwardingRule(java.lang.String forwardingRule) { - this.forwardingRule = forwardingRule; - return this; - } - - /** - * A forwarding rule IP address assigned to this instance. - * @return value or {@code null} for none - */ - public java.lang.String getForwardingRuleIp() { - return forwardingRuleIp; - } - - /** - * A forwarding rule IP address assigned to this instance. - * @param forwardingRuleIp forwardingRuleIp or {@code null} for none - */ - public HealthStatus setForwardingRuleIp(java.lang.String forwardingRuleIp) { - this.forwardingRuleIp = forwardingRuleIp; - return this; - } - - /** - * Health state of the IPv4 address of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getHealthState() { - return healthState; - } - - /** - * Health state of the IPv4 address of the instance. - * @param healthState healthState or {@code null} for none - */ - public HealthStatus setHealthState(java.lang.String healthState) { - this.healthState = healthState; - return this; - } - - /** - * URL of the instance resource. - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * URL of the instance resource. - * @param instance instance or {@code null} for none - */ - public HealthStatus setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** - * For target pool based Network Load Balancing, it indicates the forwarding rule's IP address - * assigned to this instance. For other types of load balancing, the field indicates VM internal - * ip. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * For target pool based Network Load Balancing, it indicates the forwarding rule's IP address - * assigned to this instance. For other types of load balancing, the field indicates VM internal - * ip. - * @param ipAddress ipAddress or {@code null} for none - */ - public HealthStatus setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * @param ipv6Address ipv6Address or {@code null} for none - */ - public HealthStatus setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - /** - * Health state of the IPv6 address of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6HealthState() { - return ipv6HealthState; - } - - /** - * Health state of the IPv6 address of the instance. - * @param ipv6HealthState ipv6HealthState or {@code null} for none - */ - public HealthStatus setIpv6HealthState(java.lang.String ipv6HealthState) { - this.ipv6HealthState = ipv6HealthState; - return this; - } - - /** - * The named port of the instance group, not necessarily the port that is health-checked. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The named port of the instance group, not necessarily the port that is health-checked. - * @param port port or {@code null} for none - */ - public HealthStatus setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getWeight() { - return weight; - } - - /** - * @param weight weight or {@code null} for none - */ - public HealthStatus setWeight(java.lang.String weight) { - this.weight = weight; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getWeightError() { - return weightError; - } - - /** - * @param weightError weightError or {@code null} for none - */ - public HealthStatus setWeightError(java.lang.String weightError) { - this.weightError = weightError; - return this; - } - - @Override - public HealthStatus set(String fieldName, Object value) { - return (HealthStatus) super.set(fieldName, value); - } - - @Override - public HealthStatus clone() { - return (HealthStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatusForNetworkEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatusForNetworkEndpoint.java deleted file mode 100644 index 478d10e39eb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HealthStatusForNetworkEndpoint.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HealthStatusForNetworkEndpoint. - * - *

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 HealthStatusForNetworkEndpoint extends com.google.api.client.json.GenericJson { - - /** - * URL of the backend service associated with the health state of the network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceReference backendService; - - /** - * URL of the forwarding rule associated with the health state of the network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ForwardingRuleReference forwardingRule; - - /** - * URL of the health check associated with the health state of the network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HealthCheckReference healthCheck; - - /** - * URL of the health check service associated with the health state of the network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HealthCheckServiceReference healthCheckService; - - /** - * Health state of the network endpoint determined based on the health checks configured. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthState; - - /** - * Health state of the ipv6 network endpoint determined based on the health checks configured. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6HealthState; - - /** - * URL of the backend service associated with the health state of the network endpoint. - * @return value or {@code null} for none - */ - public BackendServiceReference getBackendService() { - return backendService; - } - - /** - * URL of the backend service associated with the health state of the network endpoint. - * @param backendService backendService or {@code null} for none - */ - public HealthStatusForNetworkEndpoint setBackendService(BackendServiceReference backendService) { - this.backendService = backendService; - return this; - } - - /** - * URL of the forwarding rule associated with the health state of the network endpoint. - * @return value or {@code null} for none - */ - public ForwardingRuleReference getForwardingRule() { - return forwardingRule; - } - - /** - * URL of the forwarding rule associated with the health state of the network endpoint. - * @param forwardingRule forwardingRule or {@code null} for none - */ - public HealthStatusForNetworkEndpoint setForwardingRule(ForwardingRuleReference forwardingRule) { - this.forwardingRule = forwardingRule; - return this; - } - - /** - * URL of the health check associated with the health state of the network endpoint. - * @return value or {@code null} for none - */ - public HealthCheckReference getHealthCheck() { - return healthCheck; - } - - /** - * URL of the health check associated with the health state of the network endpoint. - * @param healthCheck healthCheck or {@code null} for none - */ - public HealthStatusForNetworkEndpoint setHealthCheck(HealthCheckReference healthCheck) { - this.healthCheck = healthCheck; - return this; - } - - /** - * URL of the health check service associated with the health state of the network endpoint. - * @return value or {@code null} for none - */ - public HealthCheckServiceReference getHealthCheckService() { - return healthCheckService; - } - - /** - * URL of the health check service associated with the health state of the network endpoint. - * @param healthCheckService healthCheckService or {@code null} for none - */ - public HealthStatusForNetworkEndpoint setHealthCheckService(HealthCheckServiceReference healthCheckService) { - this.healthCheckService = healthCheckService; - return this; - } - - /** - * Health state of the network endpoint determined based on the health checks configured. - * @return value or {@code null} for none - */ - public java.lang.String getHealthState() { - return healthState; - } - - /** - * Health state of the network endpoint determined based on the health checks configured. - * @param healthState healthState or {@code null} for none - */ - public HealthStatusForNetworkEndpoint setHealthState(java.lang.String healthState) { - this.healthState = healthState; - return this; - } - - /** - * Health state of the ipv6 network endpoint determined based on the health checks configured. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6HealthState() { - return ipv6HealthState; - } - - /** - * Health state of the ipv6 network endpoint determined based on the health checks configured. - * @param ipv6HealthState ipv6HealthState or {@code null} for none - */ - public HealthStatusForNetworkEndpoint setIpv6HealthState(java.lang.String ipv6HealthState) { - this.ipv6HealthState = ipv6HealthState; - return this; - } - - @Override - public HealthStatusForNetworkEndpoint set(String fieldName, Object value) { - return (HealthStatusForNetworkEndpoint) super.set(fieldName, value); - } - - @Override - public HealthStatusForNetworkEndpoint clone() { - return (HealthStatusForNetworkEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Help.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Help.java deleted file mode 100644 index 31e596a9f30..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Help.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.preview.model; - -/** - * Provides links to documentation or for performing an out of band action. - * - * For example, if a quota check failed with an error indicating the calling project hasn't enabled - * the accessed service, this can contain a URL pointing directly to the right place in the - * developer console to flip the bit. - * - *

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 Help extends com.google.api.client.json.GenericJson { - - /** - * URL(s) pointing to additional information on handling the current error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List links; - - /** - * URL(s) pointing to additional information on handling the current error. - * @return value or {@code null} for none - */ - public java.util.List getLinks() { - return links; - } - - /** - * URL(s) pointing to additional information on handling the current error. - * @param links links or {@code null} for none - */ - public Help setLinks(java.util.List links) { - this.links = links; - return this; - } - - @Override - public Help set(String fieldName, Object value) { - return (Help) super.set(fieldName, value); - } - - @Override - public Help clone() { - return (Help) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HelpLink.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HelpLink.java deleted file mode 100644 index b54b43623e6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HelpLink.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes a URL link. - * - *

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 HelpLink extends com.google.api.client.json.GenericJson { - - /** - * Describes what the link offers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The URL of the link. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String url; - - /** - * Describes what the link offers. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Describes what the link offers. - * @param description description or {@code null} for none - */ - public HelpLink setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The URL of the link. - * @return value or {@code null} for none - */ - public java.lang.String getUrl() { - return url; - } - - /** - * The URL of the link. - * @param url url or {@code null} for none - */ - public HelpLink setUrl(java.lang.String url) { - this.url = url; - return this; - } - - @Override - public HelpLink set(String fieldName, Object value) { - return (HelpLink) super.set(fieldName, value); - } - - @Override - public HelpLink clone() { - return (HelpLink) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Host.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Host.java deleted file mode 100644 index d5d19cbc114..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Host.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a host 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 Host extends com.google.api.client.json.GenericJson { - - /** - * Output only. All aliases for this resource. e.g. projects/123/zones/us- - * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List aliasLinks; - - /** - * Output only. The creation timestamp, formatted asRFC3339 text. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * 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. The unique identifier for this 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. The type of resource. Alwayscompute#host for hosts. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. The name of the host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. The self link of the host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Output only. The self link with id of the host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. The state of the host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. The status of the host - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HostStatus status; - - /** - * Output only. The zone in which the host resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. All aliases for this resource. e.g. projects/123/zones/us- - * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 - * @return value or {@code null} for none - */ - public java.util.List getAliasLinks() { - return aliasLinks; - } - - /** - * Output only. All aliases for this resource. e.g. projects/123/zones/us- - * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 - * @param aliasLinks aliasLinks or {@code null} for none - */ - public Host setAliasLinks(java.util.List aliasLinks) { - this.aliasLinks = aliasLinks; - return this; - } - - /** - * Output only. The creation timestamp, formatted asRFC3339 text. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. The creation timestamp, formatted asRFC3339 text. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Host setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. - * @param description description or {@code null} for none - */ - public Host setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. The unique identifier for this resource. This identifier is defined by the server. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. The unique identifier for this resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public Host setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. The type of resource. Alwayscompute#host for hosts. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The type of resource. Alwayscompute#host for hosts. - * @param kind kind or {@code null} for none - */ - public Host setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. The name of the host. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. The name of the host. - * @param name name or {@code null} for none - */ - public Host setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. The self link of the host. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. The self link of the host. - * @param selfLink selfLink or {@code null} for none - */ - public Host setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. The self link with id of the host. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. The self link with id of the host. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public Host setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. The state of the host. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. The state of the host. - * @param state state or {@code null} for none - */ - public Host setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. The status of the host - * @return value or {@code null} for none - */ - public HostStatus getStatus() { - return status; - } - - /** - * Output only. The status of the host - * @param status status or {@code null} for none - */ - public Host setStatus(HostStatus status) { - this.status = status; - return this; - } - - /** - * Output only. The zone in which the host resides. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. The zone in which the host resides. - * @param zone zone or {@code null} for none - */ - public Host setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public Host set(String fieldName, Object value) { - return (Host) super.set(fieldName, value); - } - - @Override - public Host clone() { - return (Host) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostPhysicalTopology.java deleted file mode 100644 index 238d5c8d4d4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostPhysicalTopology.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HostPhysicalTopology. - * - *

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 HostPhysicalTopology extends com.google.api.client.json.GenericJson { - - /** - * The unique identifier of the capacity block within the cluster. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String block; - - /** - * The cluster name of the reservation sub-block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cluster; - - /** - * The unique identifier of the capacity host within the capacity sub-block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * The unique identifier of the capacity sub-block within the capacity block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subBlock; - - /** - * The unique identifier of the capacity block within the cluster. - * @return value or {@code null} for none - */ - public java.lang.String getBlock() { - return block; - } - - /** - * The unique identifier of the capacity block within the cluster. - * @param block block or {@code null} for none - */ - public HostPhysicalTopology setBlock(java.lang.String block) { - this.block = block; - return this; - } - - /** - * The cluster name of the reservation sub-block. - * @return value or {@code null} for none - */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * The cluster name of the reservation sub-block. - * @param cluster cluster or {@code null} for none - */ - public HostPhysicalTopology setCluster(java.lang.String cluster) { - this.cluster = cluster; - return this; - } - - /** - * The unique identifier of the capacity host within the capacity sub-block. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The unique identifier of the capacity host within the capacity sub-block. - * @param host host or {@code null} for none - */ - public HostPhysicalTopology setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * The unique identifier of the capacity sub-block within the capacity block. - * @return value or {@code null} for none - */ - public java.lang.String getSubBlock() { - return subBlock; - } - - /** - * The unique identifier of the capacity sub-block within the capacity block. - * @param subBlock subBlock or {@code null} for none - */ - public HostPhysicalTopology setSubBlock(java.lang.String subBlock) { - this.subBlock = subBlock; - return this; - } - - @Override - public HostPhysicalTopology set(String fieldName, Object value) { - return (HostPhysicalTopology) super.set(fieldName, value); - } - - @Override - public HostPhysicalTopology clone() { - return (HostPhysicalTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostRule.java deleted file mode 100644 index 234d4655247..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostRule.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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.preview.model; - -/** - * UrlMaps A host-matching rule for a URL. If matched, will use the namedPathMatcher to select the - * BackendService. - * - *

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 HostRule extends com.google.api.client.json.GenericJson { - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The list of host patterns to match. They must be valid hostnames with optional port numbers in - * the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first - * character, and if followed by anything, the immediate following character must be either - or - * .. - * - * * based matching is not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List hosts; - - /** - * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches - * the URL's host portion. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathMatcher; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HostRule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The list of host patterns to match. They must be valid hostnames with optional port numbers in - * the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first - * character, and if followed by anything, the immediate following character must be either - or - * .. - * - * * based matching is not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.util.List getHosts() { - return hosts; - } - - /** - * The list of host patterns to match. They must be valid hostnames with optional port numbers in - * the format host:port.* matches any string of ([a-z0-9-.]*). In that case, * must be the first - * character, and if followed by anything, the immediate following character must be either - or - * .. - * - * * based matching is not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @param hosts hosts or {@code null} for none - */ - public HostRule setHosts(java.util.List hosts) { - this.hosts = hosts; - return this; - } - - /** - * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches - * the URL's host portion. - * @return value or {@code null} for none - */ - public java.lang.String getPathMatcher() { - return pathMatcher; - } - - /** - * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches - * the URL's host portion. - * @param pathMatcher pathMatcher or {@code null} for none - */ - public HostRule setPathMatcher(java.lang.String pathMatcher) { - this.pathMatcher = pathMatcher; - return this; - } - - @Override - public HostRule set(String fieldName, Object value) { - return (HostRule) super.set(fieldName, value); - } - - @Override - public HostRule clone() { - return (HostRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostStatus.java deleted file mode 100644 index bc97e13358e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostStatus.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HostStatus. - * - *

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 HostStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. The physical topology of the reservation sub-block, if present - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HostPhysicalTopology physicalTopology; - - /** - * Output only. The URIs of the instances currently running on this host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List runningInstances; - - /** - * Output only. The physical topology of the reservation sub-block, if present - * @return value or {@code null} for none - */ - public HostPhysicalTopology getPhysicalTopology() { - return physicalTopology; - } - - /** - * Output only. The physical topology of the reservation sub-block, if present - * @param physicalTopology physicalTopology or {@code null} for none - */ - public HostStatus setPhysicalTopology(HostPhysicalTopology physicalTopology) { - this.physicalTopology = physicalTopology; - return this; - } - - /** - * Output only. The URIs of the instances currently running on this host. - * @return value or {@code null} for none - */ - public java.util.List getRunningInstances() { - return runningInstances; - } - - /** - * Output only. The URIs of the instances currently running on this host. - * @param runningInstances runningInstances or {@code null} for none - */ - public HostStatus setRunningInstances(java.util.List runningInstances) { - this.runningInstances = runningInstances; - return this; - } - - @Override - public HostStatus set(String fieldName, Object value) { - return (HostStatus) super.set(fieldName, value); - } - - @Override - public HostStatus clone() { - return (HostStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsGetVersionRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsGetVersionRequest.java deleted file mode 100644 index 22549daf959..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsGetVersionRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HostsGetVersionRequest. - * - *

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 HostsGetVersionRequest extends com.google.api.client.json.GenericJson { - - /** - * The SBOM selection to return. Duplicate values in the list will be ignored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sbomSelections; - - /** - * The SBOM selection to return. Duplicate values in the list will be ignored. - * @return value or {@code null} for none - */ - public java.util.List getSbomSelections() { - return sbomSelections; - } - - /** - * The SBOM selection to return. Duplicate values in the list will be ignored. - * @param sbomSelections sbomSelections or {@code null} for none - */ - public HostsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { - this.sbomSelections = sbomSelections; - return this; - } - - @Override - public HostsGetVersionRequest set(String fieldName, Object value) { - return (HostsGetVersionRequest) super.set(fieldName, value); - } - - @Override - public HostsGetVersionRequest clone() { - return (HostsGetVersionRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsListResponse.java deleted file mode 100644 index bedfabccef8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HostsListResponse.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HostsListResponse. - * - *

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 HostsListResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * The 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 host 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 Host 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(Host.class); - } - - /** - * The type of resource. Always compute#host for a list of hosts. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * The server-defined URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List unreachables; - - /** - * An informational warning message. - * 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 getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public HostsListResponse setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * The unique identifier for the resource; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * The unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public HostsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of host resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of host resources. - * @param items items or {@code null} for none - */ - public HostsListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * The type of resource. Always compute#host for a list of hosts. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * The type of resource. Always compute#host for a list of hosts. - * @param kind kind or {@code null} for none - */ - public HostsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HostsListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * The server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * The server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public HostsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public HostsListResponse setUnreachables(java.util.List unreachables) { - this.unreachables = unreachables; - return this; - } - - /** - * An informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * An informational warning message. - * @param warning warning or {@code null} for none - */ - public HostsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HostsListResponse set(String fieldName, Object value) { - return (HostsListResponse) super.set(fieldName, value); - } - - @Override - public HostsListResponse clone() { - return (HostsListResponse) super.clone(); - } - - /** - * An 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 HostsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultAbort.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultAbort.java deleted file mode 100644 index 23dc2048ac6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultAbort.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification for how requests are aborted as part of fault injection. - * - *

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 HttpFaultAbort extends com.google.api.client.json.GenericJson { - - /** - * The HTTP status code used to abort the request. - * - * The value must be from 200 to 599 inclusive. - * - * For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this - * mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is - * currently not supported by Traffic Director. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long httpStatus; - - /** - * The percentage of traffic for connections, operations, or requests that is aborted as part of - * fault injection. - * - * The value must be from 0.0 to 100.0 inclusive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double percentage; - - /** - * The HTTP status code used to abort the request. - * - * The value must be from 200 to 599 inclusive. - * - * For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this - * mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is - * currently not supported by Traffic Director. - * @return value or {@code null} for none - */ - public java.lang.Long getHttpStatus() { - return httpStatus; - } - - /** - * The HTTP status code used to abort the request. - * - * The value must be from 200 to 599 inclusive. - * - * For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this - * mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is - * currently not supported by Traffic Director. - * @param httpStatus httpStatus or {@code null} for none - */ - public HttpFaultAbort setHttpStatus(java.lang.Long httpStatus) { - this.httpStatus = httpStatus; - return this; - } - - /** - * The percentage of traffic for connections, operations, or requests that is aborted as part of - * fault injection. - * - * The value must be from 0.0 to 100.0 inclusive. - * @return value or {@code null} for none - */ - public java.lang.Double getPercentage() { - return percentage; - } - - /** - * The percentage of traffic for connections, operations, or requests that is aborted as part of - * fault injection. - * - * The value must be from 0.0 to 100.0 inclusive. - * @param percentage percentage or {@code null} for none - */ - public HttpFaultAbort setPercentage(java.lang.Double percentage) { - this.percentage = percentage; - return this; - } - - @Override - public HttpFaultAbort set(String fieldName, Object value) { - return (HttpFaultAbort) super.set(fieldName, value); - } - - @Override - public HttpFaultAbort clone() { - return (HttpFaultAbort) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultDelay.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultDelay.java deleted file mode 100644 index 961c9e0e490..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultDelay.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies the delay introduced by the load balancer before forwarding the request to the backend - * service as part of fault injection. - * - *

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 HttpFaultDelay extends com.google.api.client.json.GenericJson { - - /** - * Specifies the value of the fixed delay interval. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration fixedDelay; - - /** - * The percentage of traffic for connections, operations, or requests for which a delay is - * introduced as part of fault injection. - * - * The value must be from 0.0 to 100.0 inclusive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double percentage; - - /** - * Specifies the value of the fixed delay interval. - * @return value or {@code null} for none - */ - public Duration getFixedDelay() { - return fixedDelay; - } - - /** - * Specifies the value of the fixed delay interval. - * @param fixedDelay fixedDelay or {@code null} for none - */ - public HttpFaultDelay setFixedDelay(Duration fixedDelay) { - this.fixedDelay = fixedDelay; - return this; - } - - /** - * The percentage of traffic for connections, operations, or requests for which a delay is - * introduced as part of fault injection. - * - * The value must be from 0.0 to 100.0 inclusive. - * @return value or {@code null} for none - */ - public java.lang.Double getPercentage() { - return percentage; - } - - /** - * The percentage of traffic for connections, operations, or requests for which a delay is - * introduced as part of fault injection. - * - * The value must be from 0.0 to 100.0 inclusive. - * @param percentage percentage or {@code null} for none - */ - public HttpFaultDelay setPercentage(java.lang.Double percentage) { - this.percentage = percentage; - return this; - } - - @Override - public HttpFaultDelay set(String fieldName, Object value) { - return (HttpFaultDelay) super.set(fieldName, value); - } - - @Override - public HttpFaultDelay clone() { - return (HttpFaultDelay) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultInjection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultInjection.java deleted file mode 100644 index 2336ec2943b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpFaultInjection.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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.preview.model; - -/** - * The specification for fault injection introduced into traffic to test the resiliency of clients - * to backend service failure. As part of fault injection, when clients send requests to a backend - * service, delays can be introduced by the load balancer on a percentage of requests before sending - * those request to the backend service. Similarly requests from clients can be aborted by the load - * balancer for a percentage of requests. - * - *

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 HttpFaultInjection extends com.google.api.client.json.GenericJson { - - /** - * The specification for how client requests are aborted as part of fault injection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpFaultAbort abort; - - /** - * The specification for how client requests are delayed as part of fault injection, before being - * sent to a backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpFaultDelay delay; - - /** - * The specification for how client requests are aborted as part of fault injection. - * @return value or {@code null} for none - */ - public HttpFaultAbort getAbort() { - return abort; - } - - /** - * The specification for how client requests are aborted as part of fault injection. - * @param abort abort or {@code null} for none - */ - public HttpFaultInjection setAbort(HttpFaultAbort abort) { - this.abort = abort; - return this; - } - - /** - * The specification for how client requests are delayed as part of fault injection, before being - * sent to a backend service. - * @return value or {@code null} for none - */ - public HttpFaultDelay getDelay() { - return delay; - } - - /** - * The specification for how client requests are delayed as part of fault injection, before being - * sent to a backend service. - * @param delay delay or {@code null} for none - */ - public HttpFaultInjection setDelay(HttpFaultDelay delay) { - this.delay = delay; - return this; - } - - @Override - public HttpFaultInjection set(String fieldName, Object value) { - return (HttpFaultInjection) super.set(fieldName, value); - } - - @Override - public HttpFaultInjection clone() { - return (HttpFaultInjection) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderAction.java deleted file mode 100644 index f75354e00b9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderAction.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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.preview.model; - -/** - * The request and response header transformations that take effect before the request is passed - * along to the selected backendService. - * - *

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 HttpHeaderAction extends com.google.api.client.json.GenericJson { - - /** - * Headers to add to a matching request before forwarding the request to thebackendService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestHeadersToAdd; - - /** - * A list of header names for headers that need to be removed from the request before forwarding - * the request to the backendService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestHeadersToRemove; - - /** - * Headers to add the response before sending the response back to the client. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List responseHeadersToAdd; - - /** - * A list of header names for headers that need to be removed from the response before sending the - * response back to the client. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List responseHeadersToRemove; - - /** - * Headers to add to a matching request before forwarding the request to thebackendService. - * @return value or {@code null} for none - */ - public java.util.List getRequestHeadersToAdd() { - return requestHeadersToAdd; - } - - /** - * Headers to add to a matching request before forwarding the request to thebackendService. - * @param requestHeadersToAdd requestHeadersToAdd or {@code null} for none - */ - public HttpHeaderAction setRequestHeadersToAdd(java.util.List requestHeadersToAdd) { - this.requestHeadersToAdd = requestHeadersToAdd; - return this; - } - - /** - * A list of header names for headers that need to be removed from the request before forwarding - * the request to the backendService. - * @return value or {@code null} for none - */ - public java.util.List getRequestHeadersToRemove() { - return requestHeadersToRemove; - } - - /** - * A list of header names for headers that need to be removed from the request before forwarding - * the request to the backendService. - * @param requestHeadersToRemove requestHeadersToRemove or {@code null} for none - */ - public HttpHeaderAction setRequestHeadersToRemove(java.util.List requestHeadersToRemove) { - this.requestHeadersToRemove = requestHeadersToRemove; - return this; - } - - /** - * Headers to add the response before sending the response back to the client. - * @return value or {@code null} for none - */ - public java.util.List getResponseHeadersToAdd() { - return responseHeadersToAdd; - } - - /** - * Headers to add the response before sending the response back to the client. - * @param responseHeadersToAdd responseHeadersToAdd or {@code null} for none - */ - public HttpHeaderAction setResponseHeadersToAdd(java.util.List responseHeadersToAdd) { - this.responseHeadersToAdd = responseHeadersToAdd; - return this; - } - - /** - * A list of header names for headers that need to be removed from the response before sending the - * response back to the client. - * @return value or {@code null} for none - */ - public java.util.List getResponseHeadersToRemove() { - return responseHeadersToRemove; - } - - /** - * A list of header names for headers that need to be removed from the response before sending the - * response back to the client. - * @param responseHeadersToRemove responseHeadersToRemove or {@code null} for none - */ - public HttpHeaderAction setResponseHeadersToRemove(java.util.List responseHeadersToRemove) { - this.responseHeadersToRemove = responseHeadersToRemove; - return this; - } - - @Override - public HttpHeaderAction set(String fieldName, Object value) { - return (HttpHeaderAction) super.set(fieldName, value); - } - - @Override - public HttpHeaderAction clone() { - return (HttpHeaderAction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderMatch.java deleted file mode 100644 index a3aeccbe3fb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderMatch.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * 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.preview.model; - -/** - * matchRule criteria for request header matches. - * - *

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 HttpHeaderMatch extends com.google.api.client.json.GenericJson { - - /** - * The value should exactly match contents of exactMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String exactMatch; - - /** - * The name of the HTTP header to match. - * - * For matching against the HTTP request's authority, use a headerMatch with the header name - * ":authority". - * - * For matching a request's method, use the headerName ":method". - * - * When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to - * true, only non-binary user-specified custom metadata and the `content-type` header are - * supported. The following transport-level headers cannot be used in header matching rules: - * `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content- - * encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags- - * bin`, `grpc-timeout` and `grpc-trace-bin`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerName; - - /** - * If set to false, the headerMatch is considered a match if the preceding match criteria are met. - * If set to true, the headerMatch is considered a match if the preceding match criteria are NOT - * met. - * - * The default setting is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean invertMatch; - - /** - * The value of the header must start with the contents ofprefixMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String prefixMatch; - - /** - * A header with the contents of headerName must exist. The match takes place whether or not the - * request's header has a value. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean presentMatch; - - /** - * The header value must be an integer and its value must be in the range specified in rangeMatch. - * If the header does not contain an integer, number or is empty, the match fails. - * - * For example for a range [-5, 0] - -3 will match. - 0 will not match. - * - 0.25 will not match. - -3someString will not match. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * - * rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Int64RangeMatch rangeMatch; - - /** - * The value of the header must match the regular expression specified inregexMatch. For more - * information about regular expression syntax, see Syntax. - * - * For matching against a port specified in the HTTP request, use a headerMatch with headerName - * set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String regexMatch; - - /** - * The value of the header must end with the contents ofsuffixMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String suffixMatch; - - /** - * The value should exactly match contents of exactMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @return value or {@code null} for none - */ - public java.lang.String getExactMatch() { - return exactMatch; - } - - /** - * The value should exactly match contents of exactMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @param exactMatch exactMatch or {@code null} for none - */ - public HttpHeaderMatch setExactMatch(java.lang.String exactMatch) { - this.exactMatch = exactMatch; - return this; - } - - /** - * The name of the HTTP header to match. - * - * For matching against the HTTP request's authority, use a headerMatch with the header name - * ":authority". - * - * For matching a request's method, use the headerName ":method". - * - * When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to - * true, only non-binary user-specified custom metadata and the `content-type` header are - * supported. The following transport-level headers cannot be used in header matching rules: - * `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content- - * encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags- - * bin`, `grpc-timeout` and `grpc-trace-bin`. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderName() { - return headerName; - } - - /** - * The name of the HTTP header to match. - * - * For matching against the HTTP request's authority, use a headerMatch with the header name - * ":authority". - * - * For matching a request's method, use the headerName ":method". - * - * When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to - * true, only non-binary user-specified custom metadata and the `content-type` header are - * supported. The following transport-level headers cannot be used in header matching rules: - * `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content- - * encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags- - * bin`, `grpc-timeout` and `grpc-trace-bin`. - * @param headerName headerName or {@code null} for none - */ - public HttpHeaderMatch setHeaderName(java.lang.String headerName) { - this.headerName = headerName; - return this; - } - - /** - * If set to false, the headerMatch is considered a match if the preceding match criteria are met. - * If set to true, the headerMatch is considered a match if the preceding match criteria are NOT - * met. - * - * The default setting is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getInvertMatch() { - return invertMatch; - } - - /** - * If set to false, the headerMatch is considered a match if the preceding match criteria are met. - * If set to true, the headerMatch is considered a match if the preceding match criteria are NOT - * met. - * - * The default setting is false. - * @param invertMatch invertMatch or {@code null} for none - */ - public HttpHeaderMatch setInvertMatch(java.lang.Boolean invertMatch) { - this.invertMatch = invertMatch; - return this; - } - - /** - * The value of the header must start with the contents ofprefixMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @return value or {@code null} for none - */ - public java.lang.String getPrefixMatch() { - return prefixMatch; - } - - /** - * The value of the header must start with the contents ofprefixMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @param prefixMatch prefixMatch or {@code null} for none - */ - public HttpHeaderMatch setPrefixMatch(java.lang.String prefixMatch) { - this.prefixMatch = prefixMatch; - return this; - } - - /** - * A header with the contents of headerName must exist. The match takes place whether or not the - * request's header has a value. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @return value or {@code null} for none - */ - public java.lang.Boolean getPresentMatch() { - return presentMatch; - } - - /** - * A header with the contents of headerName must exist. The match takes place whether or not the - * request's header has a value. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @param presentMatch presentMatch or {@code null} for none - */ - public HttpHeaderMatch setPresentMatch(java.lang.Boolean presentMatch) { - this.presentMatch = presentMatch; - return this; - } - - /** - * The header value must be an integer and its value must be in the range specified in rangeMatch. - * If the header does not contain an integer, number or is empty, the match fails. - * - * For example for a range [-5, 0] - -3 will match. - 0 will not match. - * - 0.25 will not match. - -3someString will not match. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * - * rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. - * @return value or {@code null} for none - */ - public Int64RangeMatch getRangeMatch() { - return rangeMatch; - } - - /** - * The header value must be an integer and its value must be in the range specified in rangeMatch. - * If the header does not contain an integer, number or is empty, the match fails. - * - * For example for a range [-5, 0] - -3 will match. - 0 will not match. - * - 0.25 will not match. - -3someString will not match. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * - * rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. - * @param rangeMatch rangeMatch or {@code null} for none - */ - public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { - this.rangeMatch = rangeMatch; - return this; - } - - /** - * The value of the header must match the regular expression specified inregexMatch. For more - * information about regular expression syntax, see Syntax. - * - * For matching against a port specified in the HTTP request, use a headerMatch with headerName - * set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * @return value or {@code null} for none - */ - public java.lang.String getRegexMatch() { - return regexMatch; - } - - /** - * The value of the header must match the regular expression specified inregexMatch. For more - * information about regular expression syntax, see Syntax. - * - * For matching against a port specified in the HTTP request, use a headerMatch with headerName - * set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * @param regexMatch regexMatch or {@code null} for none - */ - public HttpHeaderMatch setRegexMatch(java.lang.String regexMatch) { - this.regexMatch = regexMatch; - return this; - } - - /** - * The value of the header must end with the contents ofsuffixMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @return value or {@code null} for none - */ - public java.lang.String getSuffixMatch() { - return suffixMatch; - } - - /** - * The value of the header must end with the contents ofsuffixMatch. - * - * Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be - * set. - * @param suffixMatch suffixMatch or {@code null} for none - */ - public HttpHeaderMatch setSuffixMatch(java.lang.String suffixMatch) { - this.suffixMatch = suffixMatch; - return this; - } - - @Override - public HttpHeaderMatch set(String fieldName, Object value) { - return (HttpHeaderMatch) super.set(fieldName, value); - } - - @Override - public HttpHeaderMatch clone() { - return (HttpHeaderMatch) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderOption.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderOption.java deleted file mode 100644 index ba8e8d3c360..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHeaderOption.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification determining how headers are added to requests or responses. - * - *

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 HttpHeaderOption extends com.google.api.client.json.GenericJson { - - /** - * The name of the header. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerName; - - /** - * The value of the header to add. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerValue; - - /** - * If false, headerValue is appended to any values that already exist for the header. If true, - * headerValue is set for the header, discarding any values that were set for that header. - * - * The default value is true, unless a variable is present in headerValue, in which case the - * default value is false. . - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean replace; - - /** - * The name of the header. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderName() { - return headerName; - } - - /** - * The name of the header. - * @param headerName headerName or {@code null} for none - */ - public HttpHeaderOption setHeaderName(java.lang.String headerName) { - this.headerName = headerName; - return this; - } - - /** - * The value of the header to add. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderValue() { - return headerValue; - } - - /** - * The value of the header to add. - * @param headerValue headerValue or {@code null} for none - */ - public HttpHeaderOption setHeaderValue(java.lang.String headerValue) { - this.headerValue = headerValue; - return this; - } - - /** - * If false, headerValue is appended to any values that already exist for the header. If true, - * headerValue is set for the header, discarding any values that were set for that header. - * - * The default value is true, unless a variable is present in headerValue, in which case the - * default value is false. . - * @return value or {@code null} for none - */ - public java.lang.Boolean getReplace() { - return replace; - } - - /** - * If false, headerValue is appended to any values that already exist for the header. If true, - * headerValue is set for the header, discarding any values that were set for that header. - * - * The default value is true, unless a variable is present in headerValue, in which case the - * default value is false. . - * @param replace replace or {@code null} for none - */ - public HttpHeaderOption setReplace(java.lang.Boolean replace) { - this.replace = replace; - return this; - } - - @Override - public HttpHeaderOption set(String fieldName, Object value) { - return (HttpHeaderOption) super.set(fieldName, value); - } - - @Override - public HttpHeaderOption clone() { - return (HttpHeaderOption) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheck.java deleted file mode 100644 index 5176677c951..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheck.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a legacy HTTP Health Check resource. - * - * Legacy HTTP health checks are now only required by target pool-based network load balancers. For - * all other load balancers, including backend service-based network load balancers, and for managed - * instance group auto-healing, you must use modern (non-legacy) health checks. - * - * For more information, seeHealth checks overview. - * - *

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 HttpHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * How often (in seconds) to send a health check. The default value is5 seconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer checkIntervalSec; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyThreshold; - - /** - * The value of the host header in the HTTP health check request. If left empty (default value), - * the public IP on behalf of which this health check is performed will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * [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] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The TCP port number for the HTTP health check request. The default value is80. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * The request path of the HTTP health check request. The default value is/. This field does not - * support query parameters. Must comply withRFC3986. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestPath; - - /** - * [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; - - /** - * How long (in seconds) to wait before claiming failure. The default value is5 seconds. It is - * invalid for timeoutSec to have greater value than checkIntervalSec. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer timeoutSec; - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer unhealthyThreshold; - - /** - * How often (in seconds) to send a health check. The default value is5 seconds. - * @return value or {@code null} for none - */ - public java.lang.Integer getCheckIntervalSec() { - return checkIntervalSec; - } - - /** - * How often (in seconds) to send a health check. The default value is5 seconds. - * @param checkIntervalSec checkIntervalSec or {@code null} for none - */ - public HttpHealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { - this.checkIntervalSec = checkIntervalSec; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public HttpHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HttpHealthCheck setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyThreshold() { - return healthyThreshold; - } - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * @param healthyThreshold healthyThreshold or {@code null} for none - */ - public HttpHealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold) { - this.healthyThreshold = healthyThreshold; - return this; - } - - /** - * The value of the host header in the HTTP health check request. If left empty (default value), - * the public IP on behalf of which this health check is performed will be used. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The value of the host header in the HTTP health check request. If left empty (default value), - * the public IP on behalf of which this health check is performed will be used. - * @param host host or {@code null} for none - */ - public HttpHealthCheck setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public HttpHealthCheck setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. - * @param kind kind or {@code null} for none - */ - public HttpHealthCheck setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 HttpHealthCheck setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The TCP port number for the HTTP health check request. The default value is80. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number for the HTTP health check request. The default value is80. - * @param port port or {@code null} for none - */ - public HttpHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * The request path of the HTTP health check request. The default value is/. This field does not - * support query parameters. Must comply withRFC3986. - * @return value or {@code null} for none - */ - public java.lang.String getRequestPath() { - return requestPath; - } - - /** - * The request path of the HTTP health check request. The default value is/. This field does not - * support query parameters. Must comply withRFC3986. - * @param requestPath requestPath or {@code null} for none - */ - public HttpHealthCheck setRequestPath(java.lang.String requestPath) { - this.requestPath = requestPath; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public HttpHealthCheck setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * How long (in seconds) to wait before claiming failure. The default value is5 seconds. It is - * invalid for timeoutSec to have greater value than checkIntervalSec. - * @return value or {@code null} for none - */ - public java.lang.Integer getTimeoutSec() { - return timeoutSec; - } - - /** - * How long (in seconds) to wait before claiming failure. The default value is5 seconds. It is - * invalid for timeoutSec to have greater value than checkIntervalSec. - * @param timeoutSec timeoutSec or {@code null} for none - */ - public HttpHealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { - this.timeoutSec = timeoutSec; - return this; - } - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getUnhealthyThreshold() { - return unhealthyThreshold; - } - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * @param unhealthyThreshold unhealthyThreshold or {@code null} for none - */ - public HttpHealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold) { - this.unhealthyThreshold = unhealthyThreshold; - return this; - } - - @Override - public HttpHealthCheck set(String fieldName, Object value) { - return (HttpHealthCheck) super.set(fieldName, value); - } - - @Override - public HttpHealthCheck clone() { - return (HttpHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheckList.java deleted file mode 100644 index 0ad6404644c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpHealthCheckList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of HttpHealthCheck resources. - * - *

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 HttpHealthCheckList extends com.google.api.client.json.GenericJson { - - /** - * [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 HttpHealthCheck 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 HttpHealthCheck 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(HttpHealthCheck.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 HttpHealthCheckList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HttpHealthCheck resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of HttpHealthCheck resources. - * @param items items or {@code null} for none - */ - public HttpHealthCheckList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HttpHealthCheckList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HttpHealthCheckList 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 HttpHealthCheckList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 HttpHealthCheckList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HttpHealthCheckList set(String fieldName, Object value) { - return (HttpHealthCheckList) super.set(fieldName, value); - } - - @Override - public HttpHealthCheckList clone() { - return (HttpHealthCheckList) 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 HttpHealthCheckListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpQueryParameterMatch.java deleted file mode 100644 index be1b2998b36..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpQueryParameterMatch.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * 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.preview.model; - -/** - * HttpRouteRuleMatch criteria for a request's query parameter. - * - *

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 HttpQueryParameterMatch extends com.google.api.client.json.GenericJson { - - /** - * The queryParameterMatch matches if the value of the parameter exactly matches the contents of - * exactMatch. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String exactMatch; - - /** - * The name of the query parameter to match. The query parameter must exist in the request, in the - * absence of which the request match fails. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Specifies that the queryParameterMatch matches if the request contains the query parameter, - * irrespective of whether the parameter has a value or not. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean presentMatch; - - /** - * The queryParameterMatch matches if the value of the parameter matches the regular expression - * specified byregexMatch. For more information about regular expression syntax, see Syntax. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String regexMatch; - - /** - * The queryParameterMatch matches if the value of the parameter exactly matches the contents of - * exactMatch. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * @return value or {@code null} for none - */ - public java.lang.String getExactMatch() { - return exactMatch; - } - - /** - * The queryParameterMatch matches if the value of the parameter exactly matches the contents of - * exactMatch. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * @param exactMatch exactMatch or {@code null} for none - */ - public HttpQueryParameterMatch setExactMatch(java.lang.String exactMatch) { - this.exactMatch = exactMatch; - return this; - } - - /** - * The name of the query parameter to match. The query parameter must exist in the request, in the - * absence of which the request match fails. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the query parameter to match. The query parameter must exist in the request, in the - * absence of which the request match fails. - * @param name name or {@code null} for none - */ - public HttpQueryParameterMatch setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Specifies that the queryParameterMatch matches if the request contains the query parameter, - * irrespective of whether the parameter has a value or not. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * @return value or {@code null} for none - */ - public java.lang.Boolean getPresentMatch() { - return presentMatch; - } - - /** - * Specifies that the queryParameterMatch matches if the request contains the query parameter, - * irrespective of whether the parameter has a value or not. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * @param presentMatch presentMatch or {@code null} for none - */ - public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { - this.presentMatch = presentMatch; - return this; - } - - /** - * The queryParameterMatch matches if the value of the parameter matches the regular expression - * specified byregexMatch. For more information about regular expression syntax, see Syntax. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * @return value or {@code null} for none - */ - public java.lang.String getRegexMatch() { - return regexMatch; - } - - /** - * The queryParameterMatch matches if the value of the parameter matches the regular expression - * specified byregexMatch. For more information about regular expression syntax, see Syntax. - * - * Only one of presentMatch, exactMatch, orregexMatch must be set. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * @param regexMatch regexMatch or {@code null} for none - */ - public HttpQueryParameterMatch setRegexMatch(java.lang.String regexMatch) { - this.regexMatch = regexMatch; - return this; - } - - @Override - public HttpQueryParameterMatch set(String fieldName, Object value) { - return (HttpQueryParameterMatch) super.set(fieldName, value); - } - - @Override - public HttpQueryParameterMatch clone() { - return (HttpQueryParameterMatch) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRedirectAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRedirectAction.java deleted file mode 100644 index 890a1f3bde6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRedirectAction.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies settings for an HTTP redirect. - * - *

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 HttpRedirectAction extends com.google.api.client.json.GenericJson { - - /** - * The host that is used in the redirect response instead of the one that was supplied in the - * request. - * - * The value must be from 1 to 255 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hostRedirect; - - /** - * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the - * URL scheme of the redirected request remains the same as that of the request. - * - * This must only be set for URL maps used inTargetHttpProxys. Setting this true - * forTargetHttpsProxy is not permitted. - * - * The default is set to false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean httpsRedirect; - - /** - * The path that is used in the redirect response instead of the one that was supplied in the - * request. - * - * pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If - * neither is supplied, the path of the original request is used for the redirect. - * - * The value must be from 1 to 1024 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathRedirect; - - /** - * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the - * remaining portion of the URL before redirecting the request. - * - * prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If - * neither is supplied, the path of the original request is used for the redirect. - * - * The value must be from 1 to 1024 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String prefixRedirect; - - /** - * The HTTP Status code to use for this RedirectAction. - * - * Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and - * corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds - * to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method - * is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request - * method is retained. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String redirectResponseCode; - - /** - * If set to true, any accompanying query portion of the original URL is removed before - * redirecting the request. If set to false, the query portion of the original URL is retained. - * - * The default is set to false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean stripQuery; - - /** - * The host that is used in the redirect response instead of the one that was supplied in the - * request. - * - * The value must be from 1 to 255 characters. - * @return value or {@code null} for none - */ - public java.lang.String getHostRedirect() { - return hostRedirect; - } - - /** - * The host that is used in the redirect response instead of the one that was supplied in the - * request. - * - * The value must be from 1 to 255 characters. - * @param hostRedirect hostRedirect or {@code null} for none - */ - public HttpRedirectAction setHostRedirect(java.lang.String hostRedirect) { - this.hostRedirect = hostRedirect; - return this; - } - - /** - * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the - * URL scheme of the redirected request remains the same as that of the request. - * - * This must only be set for URL maps used inTargetHttpProxys. Setting this true - * forTargetHttpsProxy is not permitted. - * - * The default is set to false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getHttpsRedirect() { - return httpsRedirect; - } - - /** - * If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the - * URL scheme of the redirected request remains the same as that of the request. - * - * This must only be set for URL maps used inTargetHttpProxys. Setting this true - * forTargetHttpsProxy is not permitted. - * - * The default is set to false. - * @param httpsRedirect httpsRedirect or {@code null} for none - */ - public HttpRedirectAction setHttpsRedirect(java.lang.Boolean httpsRedirect) { - this.httpsRedirect = httpsRedirect; - return this; - } - - /** - * The path that is used in the redirect response instead of the one that was supplied in the - * request. - * - * pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If - * neither is supplied, the path of the original request is used for the redirect. - * - * The value must be from 1 to 1024 characters. - * @return value or {@code null} for none - */ - public java.lang.String getPathRedirect() { - return pathRedirect; - } - - /** - * The path that is used in the redirect response instead of the one that was supplied in the - * request. - * - * pathRedirect cannot be supplied together withprefixRedirect. Supply one alone or neither. If - * neither is supplied, the path of the original request is used for the redirect. - * - * The value must be from 1 to 1024 characters. - * @param pathRedirect pathRedirect or {@code null} for none - */ - public HttpRedirectAction setPathRedirect(java.lang.String pathRedirect) { - this.pathRedirect = pathRedirect; - return this; - } - - /** - * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the - * remaining portion of the URL before redirecting the request. - * - * prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If - * neither is supplied, the path of the original request is used for the redirect. - * - * The value must be from 1 to 1024 characters. - * @return value or {@code null} for none - */ - public java.lang.String getPrefixRedirect() { - return prefixRedirect; - } - - /** - * The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the - * remaining portion of the URL before redirecting the request. - * - * prefixRedirect cannot be supplied together withpathRedirect. Supply one alone or neither. If - * neither is supplied, the path of the original request is used for the redirect. - * - * The value must be from 1 to 1024 characters. - * @param prefixRedirect prefixRedirect or {@code null} for none - */ - public HttpRedirectAction setPrefixRedirect(java.lang.String prefixRedirect) { - this.prefixRedirect = prefixRedirect; - return this; - } - - /** - * The HTTP Status code to use for this RedirectAction. - * - * Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and - * corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds - * to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method - * is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request - * method is retained. - * @return value or {@code null} for none - */ - public java.lang.String getRedirectResponseCode() { - return redirectResponseCode; - } - - /** - * The HTTP Status code to use for this RedirectAction. - * - * Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and - * corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds - * to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method - * is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request - * method is retained. - * @param redirectResponseCode redirectResponseCode or {@code null} for none - */ - public HttpRedirectAction setRedirectResponseCode(java.lang.String redirectResponseCode) { - this.redirectResponseCode = redirectResponseCode; - return this; - } - - /** - * If set to true, any accompanying query portion of the original URL is removed before - * redirecting the request. If set to false, the query portion of the original URL is retained. - * - * The default is set to false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getStripQuery() { - return stripQuery; - } - - /** - * If set to true, any accompanying query portion of the original URL is removed before - * redirecting the request. If set to false, the query portion of the original URL is retained. - * - * The default is set to false. - * @param stripQuery stripQuery or {@code null} for none - */ - public HttpRedirectAction setStripQuery(java.lang.Boolean stripQuery) { - this.stripQuery = stripQuery; - return this; - } - - @Override - public HttpRedirectAction set(String fieldName, Object value) { - return (HttpRedirectAction) super.set(fieldName, value); - } - - @Override - public HttpRedirectAction clone() { - return (HttpRedirectAction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRetryPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRetryPolicy.java deleted file mode 100644 index 3a82ba99bab..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRetryPolicy.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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.preview.model; - -/** - * The retry policy associates with HttpRouteRule - * - *

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 HttpRetryPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long numRetries; - - /** - * Specifies a non-zero timeout per retry attempt. - * - * If not specified, will use the timeout set in theHttpRouteAction field. If timeout in the - * HttpRouteAction field is not set, this field uses the largest timeout among all backend - * services associated with the route. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration perTryTimeout; - - /** - * Specifies one or more conditions when this retry policy applies. Valid values are: - - * 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or - * if the instance or endpoint does not respond at all. For example, disconnects, reset, read - * timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only - * applies to response codes 502, 503 or504. - connect-failure: a retry is attempted on - * failures connecting to the instance or endpoint. For example, connection timeouts. - - * retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response - * code. The only error that you can retry is error code 409. - refused-stream: a retry is - * attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. - * This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the - * gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry - * is attempted if the gRPC status code in the response header is set todeadline-exceeded. - - * internal: a retry is attempted if the gRPC status code in the response header is set - * tointernal. - resource-exhausted: a retry is attempted if the gRPC status code in the - * response header is set toresource-exhausted. - unavailable: a retry is attempted if the gRPC - * status code in the response header is set tounavailable. - * - * Only the following codes are supported when the URL map is bound to target gRPC proxy that has - * validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - * - resource-exhausted - unavailable - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List retryConditions; - - /** - * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. - * @return value or {@code null} for none - */ - public java.lang.Long getNumRetries() { - return numRetries; - } - - /** - * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. - * @param numRetries numRetries or {@code null} for none - */ - public HttpRetryPolicy setNumRetries(java.lang.Long numRetries) { - this.numRetries = numRetries; - return this; - } - - /** - * Specifies a non-zero timeout per retry attempt. - * - * If not specified, will use the timeout set in theHttpRouteAction field. If timeout in the - * HttpRouteAction field is not set, this field uses the largest timeout among all backend - * services associated with the route. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public Duration getPerTryTimeout() { - return perTryTimeout; - } - - /** - * Specifies a non-zero timeout per retry attempt. - * - * If not specified, will use the timeout set in theHttpRouteAction field. If timeout in the - * HttpRouteAction field is not set, this field uses the largest timeout among all backend - * services associated with the route. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @param perTryTimeout perTryTimeout or {@code null} for none - */ - public HttpRetryPolicy setPerTryTimeout(Duration perTryTimeout) { - this.perTryTimeout = perTryTimeout; - return this; - } - - /** - * Specifies one or more conditions when this retry policy applies. Valid values are: - - * 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or - * if the instance or endpoint does not respond at all. For example, disconnects, reset, read - * timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only - * applies to response codes 502, 503 or504. - connect-failure: a retry is attempted on - * failures connecting to the instance or endpoint. For example, connection timeouts. - - * retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response - * code. The only error that you can retry is error code 409. - refused-stream: a retry is - * attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. - * This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the - * gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry - * is attempted if the gRPC status code in the response header is set todeadline-exceeded. - - * internal: a retry is attempted if the gRPC status code in the response header is set - * tointernal. - resource-exhausted: a retry is attempted if the gRPC status code in the - * response header is set toresource-exhausted. - unavailable: a retry is attempted if the gRPC - * status code in the response header is set tounavailable. - * - * Only the following codes are supported when the URL map is bound to target gRPC proxy that has - * validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - * - resource-exhausted - unavailable - * @return value or {@code null} for none - */ - public java.util.List getRetryConditions() { - return retryConditions; - } - - /** - * Specifies one or more conditions when this retry policy applies. Valid values are: - - * 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or - * if the instance or endpoint does not respond at all. For example, disconnects, reset, read - * timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only - * applies to response codes 502, 503 or504. - connect-failure: a retry is attempted on - * failures connecting to the instance or endpoint. For example, connection timeouts. - - * retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response - * code. The only error that you can retry is error code 409. - refused-stream: a retry is - * attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. - * This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the - * gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry - * is attempted if the gRPC status code in the response header is set todeadline-exceeded. - - * internal: a retry is attempted if the gRPC status code in the response header is set - * tointernal. - resource-exhausted: a retry is attempted if the gRPC status code in the - * response header is set toresource-exhausted. - unavailable: a retry is attempted if the gRPC - * status code in the response header is set tounavailable. - * - * Only the following codes are supported when the URL map is bound to target gRPC proxy that has - * validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - * - resource-exhausted - unavailable - * @param retryConditions retryConditions or {@code null} for none - */ - public HttpRetryPolicy setRetryConditions(java.util.List retryConditions) { - this.retryConditions = retryConditions; - return this; - } - - @Override - public HttpRetryPolicy set(String fieldName, Object value) { - return (HttpRetryPolicy) super.set(fieldName, value); - } - - @Override - public HttpRetryPolicy clone() { - return (HttpRetryPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteAction.java deleted file mode 100644 index c59fa0c840f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteAction.java +++ /dev/null @@ -1,408 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for HttpRouteAction. - * - *

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 HttpRouteAction extends com.google.api.client.json.GenericJson { - - /** - * Specifies the cache policy configuration for matched traffic. Available only for Global - * `EXTERNAL_MANAGED` load balancer schemes. At least one property must be specified. This policy - * cannot be specified if any target backend has Identity-Aware Proxy enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CachePolicy cachePolicy; - - /** - * The specification for allowing client-side cross-origin requests. For more information about - * the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CorsPolicy corsPolicy; - - /** - * The specification for fault injection introduced into traffic to test the resiliency of clients - * to backend service failure. As part of fault injection, when clients send requests to a backend - * service, delays can be introduced by a load balancer on a percentage of requests before sending - * those requests to the backend service. Similarly requests from clients can be aborted by the - * load balancer for a percentage of requests.timeout and retry_policy is ignored by clients that - * are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection - * AND 2. The fault injection is not a delay fault injection. Fault injection is not supported - * with the classic Application Load Balancer . To see which load balancers support fault - * injection, see Load balancing: Routing and traffic management features. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpFaultInjection faultInjectionPolicy; - - /** - * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout - * field where the timeout duration starts from the time the request has been fully processed - * (known as*end-of-stream*), the duration in this field is computed from the beginning of the - * stream until the response has been processed, including all retries. A stream that does not - * complete in this duration is closed. - * - * If not specified, this field uses the maximummaxStreamDuration value among all backend services - * associated with the route. - * - * This field is only allowed if the Url map is used with backend services with - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxStreamDuration; - - /** - * Specifies the policy on how requests intended for the route's backends are shadowed to a - * separate mirrored backend service. The load balancer does not wait for responses from the - * shadow service. Before sending traffic to the shadow service, the host / authority header is - * suffixed with-shadow. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RequestMirrorPolicy requestMirrorPolicy; - - /** - * Specifies the retry policy associated with this route. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRetryPolicy retryPolicy; - - /** - * Specifies the timeout for the selected route. Timeout is computed from the time the request has - * been fully processed (known as *end-of-stream*) up until the response has been processed. - * Timeout includes all retries. - * - * If not specified, this field uses the largest timeout among all backend services associated - * with the route. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration timeout; - - /** - * The spec to modify the URL of the request, before forwarding the request to the matched - * service. - * - * urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UrlRewrite urlRewrite; - - /** - * A list of weighted backend services to send traffic to when a route match occurs. The weights - * determine the fraction of traffic that flows to their corresponding backend service. If all - * traffic needs to go to a single backend service, there must be oneweightedBackendService with - * weight set to a non-zero number. - * - * After a backend service is identified and before forwarding the request to the backend service, - * advanced routing actions such as URL rewrites and header transformations are applied depending - * on additional settings specified in this HttpRouteAction. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List weightedBackendServices; - - /** - * Specifies the cache policy configuration for matched traffic. Available only for Global - * `EXTERNAL_MANAGED` load balancer schemes. At least one property must be specified. This policy - * cannot be specified if any target backend has Identity-Aware Proxy enabled. - * @return value or {@code null} for none - */ - public CachePolicy getCachePolicy() { - return cachePolicy; - } - - /** - * Specifies the cache policy configuration for matched traffic. Available only for Global - * `EXTERNAL_MANAGED` load balancer schemes. At least one property must be specified. This policy - * cannot be specified if any target backend has Identity-Aware Proxy enabled. - * @param cachePolicy cachePolicy or {@code null} for none - */ - public HttpRouteAction setCachePolicy(CachePolicy cachePolicy) { - this.cachePolicy = cachePolicy; - return this; - } - - /** - * The specification for allowing client-side cross-origin requests. For more information about - * the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public CorsPolicy getCorsPolicy() { - return corsPolicy; - } - - /** - * The specification for allowing client-side cross-origin requests. For more information about - * the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param corsPolicy corsPolicy or {@code null} for none - */ - public HttpRouteAction setCorsPolicy(CorsPolicy corsPolicy) { - this.corsPolicy = corsPolicy; - return this; - } - - /** - * The specification for fault injection introduced into traffic to test the resiliency of clients - * to backend service failure. As part of fault injection, when clients send requests to a backend - * service, delays can be introduced by a load balancer on a percentage of requests before sending - * those requests to the backend service. Similarly requests from clients can be aborted by the - * load balancer for a percentage of requests.timeout and retry_policy is ignored by clients that - * are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection - * AND 2. The fault injection is not a delay fault injection. Fault injection is not supported - * with the classic Application Load Balancer . To see which load balancers support fault - * injection, see Load balancing: Routing and traffic management features. - * @return value or {@code null} for none - */ - public HttpFaultInjection getFaultInjectionPolicy() { - return faultInjectionPolicy; - } - - /** - * The specification for fault injection introduced into traffic to test the resiliency of clients - * to backend service failure. As part of fault injection, when clients send requests to a backend - * service, delays can be introduced by a load balancer on a percentage of requests before sending - * those requests to the backend service. Similarly requests from clients can be aborted by the - * load balancer for a percentage of requests.timeout and retry_policy is ignored by clients that - * are configured with a fault_injection_policy if: 1. The traffic is generated by fault injection - * AND 2. The fault injection is not a delay fault injection. Fault injection is not supported - * with the classic Application Load Balancer . To see which load balancers support fault - * injection, see Load balancing: Routing and traffic management features. - * @param faultInjectionPolicy faultInjectionPolicy or {@code null} for none - */ - public HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjectionPolicy) { - this.faultInjectionPolicy = faultInjectionPolicy; - return this; - } - - /** - * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout - * field where the timeout duration starts from the time the request has been fully processed - * (known as*end-of-stream*), the duration in this field is computed from the beginning of the - * stream until the response has been processed, including all retries. A stream that does not - * complete in this duration is closed. - * - * If not specified, this field uses the maximummaxStreamDuration value among all backend services - * associated with the route. - * - * This field is only allowed if the Url map is used with backend services with - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public Duration getMaxStreamDuration() { - return maxStreamDuration; - } - - /** - * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout - * field where the timeout duration starts from the time the request has been fully processed - * (known as*end-of-stream*), the duration in this field is computed from the beginning of the - * stream until the response has been processed, including all retries. A stream that does not - * complete in this duration is closed. - * - * If not specified, this field uses the maximummaxStreamDuration value among all backend services - * associated with the route. - * - * This field is only allowed if the Url map is used with backend services with - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * @param maxStreamDuration maxStreamDuration or {@code null} for none - */ - public HttpRouteAction setMaxStreamDuration(Duration maxStreamDuration) { - this.maxStreamDuration = maxStreamDuration; - return this; - } - - /** - * Specifies the policy on how requests intended for the route's backends are shadowed to a - * separate mirrored backend service. The load balancer does not wait for responses from the - * shadow service. Before sending traffic to the shadow service, the host / authority header is - * suffixed with-shadow. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public RequestMirrorPolicy getRequestMirrorPolicy() { - return requestMirrorPolicy; - } - - /** - * Specifies the policy on how requests intended for the route's backends are shadowed to a - * separate mirrored backend service. The load balancer does not wait for responses from the - * shadow service. Before sending traffic to the shadow service, the host / authority header is - * suffixed with-shadow. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @param requestMirrorPolicy requestMirrorPolicy or {@code null} for none - */ - public HttpRouteAction setRequestMirrorPolicy(RequestMirrorPolicy requestMirrorPolicy) { - this.requestMirrorPolicy = requestMirrorPolicy; - return this; - } - - /** - * Specifies the retry policy associated with this route. - * @return value or {@code null} for none - */ - public HttpRetryPolicy getRetryPolicy() { - return retryPolicy; - } - - /** - * Specifies the retry policy associated with this route. - * @param retryPolicy retryPolicy or {@code null} for none - */ - public HttpRouteAction setRetryPolicy(HttpRetryPolicy retryPolicy) { - this.retryPolicy = retryPolicy; - return this; - } - - /** - * Specifies the timeout for the selected route. Timeout is computed from the time the request has - * been fully processed (known as *end-of-stream*) up until the response has been processed. - * Timeout includes all retries. - * - * If not specified, this field uses the largest timeout among all backend services associated - * with the route. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public Duration getTimeout() { - return timeout; - } - - /** - * Specifies the timeout for the selected route. Timeout is computed from the time the request has - * been fully processed (known as *end-of-stream*) up until the response has been processed. - * Timeout includes all retries. - * - * If not specified, this field uses the largest timeout among all backend services associated - * with the route. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param timeout timeout or {@code null} for none - */ - public HttpRouteAction setTimeout(Duration timeout) { - this.timeout = timeout; - return this; - } - - /** - * The spec to modify the URL of the request, before forwarding the request to the matched - * service. - * - * urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public UrlRewrite getUrlRewrite() { - return urlRewrite; - } - - /** - * The spec to modify the URL of the request, before forwarding the request to the matched - * service. - * - * urlRewrite is the only action supported in UrlMaps for classic Application Load Balancers. - * - * Not supported when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @param urlRewrite urlRewrite or {@code null} for none - */ - public HttpRouteAction setUrlRewrite(UrlRewrite urlRewrite) { - this.urlRewrite = urlRewrite; - return this; - } - - /** - * A list of weighted backend services to send traffic to when a route match occurs. The weights - * determine the fraction of traffic that flows to their corresponding backend service. If all - * traffic needs to go to a single backend service, there must be oneweightedBackendService with - * weight set to a non-zero number. - * - * After a backend service is identified and before forwarding the request to the backend service, - * advanced routing actions such as URL rewrites and header transformations are applied depending - * on additional settings specified in this HttpRouteAction. - * @return value or {@code null} for none - */ - public java.util.List getWeightedBackendServices() { - return weightedBackendServices; - } - - /** - * A list of weighted backend services to send traffic to when a route match occurs. The weights - * determine the fraction of traffic that flows to their corresponding backend service. If all - * traffic needs to go to a single backend service, there must be oneweightedBackendService with - * weight set to a non-zero number. - * - * After a backend service is identified and before forwarding the request to the backend service, - * advanced routing actions such as URL rewrites and header transformations are applied depending - * on additional settings specified in this HttpRouteAction. - * @param weightedBackendServices weightedBackendServices or {@code null} for none - */ - public HttpRouteAction setWeightedBackendServices(java.util.List weightedBackendServices) { - this.weightedBackendServices = weightedBackendServices; - return this; - } - - @Override - public HttpRouteAction set(String fieldName, Object value) { - return (HttpRouteAction) super.set(fieldName, value); - } - - @Override - public HttpRouteAction clone() { - return (HttpRouteAction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRule.java deleted file mode 100644 index a93e5a995c7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRule.java +++ /dev/null @@ -1,433 +0,0 @@ -/* - * 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.preview.model; - -/** - * The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing - * action that load balancing proxies perform. - * - *

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 HttpRouteRule extends com.google.api.client.json.GenericJson { - - /** - * customErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * If a policy for an error code is not configured for the RouteRule, a policy for the error code - * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified - * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in - * UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx - * errors - A RouteRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * When used in conjunction withrouteRules.routeAction.retryPolicy, retries take precedence. Only - * once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting a - * retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is - * ignored and the response from the service is returned to the client. - * - * customErrorResponsePolicy is supported only for global external Application Load Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomErrorResponsePolicy customErrorResponsePolicy; - - /** - * The short description conveying the intent of this routeRule. - * - * The description can have a maximum length of 1024 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * The headerAction value specified here is applied before the matching - * pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendSer - * vice.backendServiceWeightAction[].headerAction - * - * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpHeaderAction headerAction; - - /** - * The list of criteria for matching attributes of a request to thisrouteRule. This list has OR - * semantics: the request matches this routeRule when any of thematchRules are satisfied. However - * predicates within a given matchRule have AND semantics. All predicates within a matchRule must - * match for the request to match the rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List matchRules; - - /** - * For routeRules within a given pathMatcher, priority determines the order in which a load - * balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest - * to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The - * first rule that matches the request is applied. - * - * You cannot configure two or more routeRules with the same priority. Priority for each rule must - * be set to a number from 0 to 2147483647 inclusive. - * - * Priority numbers can have gaps, which enable you to add or remove rules in the future without - * affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of - * priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in - * the future without any impact on existing rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * In response to a matching matchRule, the load balancer performs advanced routing actions, such - * as URL rewrites and header transformations, before forwarding the request to the selected - * backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * route rule'srouteAction. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRouteAction routeAction; - - /** - * The full or partial URL of the backend service resource to which traffic is directed if this - * rule is matched. If routeAction is also specified, advanced routing actions, such as URL - * rewrites, take effect before sending the request to the backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * When this rule is matched, the request is redirected to a URL specified by urlRedirect. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRedirectAction urlRedirect; - - /** - * customErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * If a policy for an error code is not configured for the RouteRule, a policy for the error code - * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified - * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in - * UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx - * errors - A RouteRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * When used in conjunction withrouteRules.routeAction.retryPolicy, retries take precedence. Only - * once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting a - * retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is - * ignored and the response from the service is returned to the client. - * - * customErrorResponsePolicy is supported only for global external Application Load Balancers. - * @return value or {@code null} for none - */ - public CustomErrorResponsePolicy getCustomErrorResponsePolicy() { - return customErrorResponsePolicy; - } - - /** - * customErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * If a policy for an error code is not configured for the RouteRule, a policy for the error code - * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified - * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in - * UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx - * errors - A RouteRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * When used in conjunction withrouteRules.routeAction.retryPolicy, retries take precedence. Only - * once all retries are exhausted, thecustomErrorResponsePolicy is applied. While attempting a - * retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is - * ignored and the response from the service is returned to the client. - * - * customErrorResponsePolicy is supported only for global external Application Load Balancers. - * @param customErrorResponsePolicy customErrorResponsePolicy or {@code null} for none - */ - public HttpRouteRule setCustomErrorResponsePolicy(CustomErrorResponsePolicy customErrorResponsePolicy) { - this.customErrorResponsePolicy = customErrorResponsePolicy; - return this; - } - - /** - * The short description conveying the intent of this routeRule. - * - * The description can have a maximum length of 1024 characters. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * The short description conveying the intent of this routeRule. - * - * The description can have a maximum length of 1024 characters. - * @param description description or {@code null} for none - */ - public HttpRouteRule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * The headerAction value specified here is applied before the matching - * pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendSer - * vice.backendServiceWeightAction[].headerAction - * - * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public HttpHeaderAction getHeaderAction() { - return headerAction; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * The headerAction value specified here is applied before the matching - * pathMatchers[].headerAction and afterpathMatchers[].routeRules[].routeAction.weightedBackendSer - * vice.backendServiceWeightAction[].headerAction - * - * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param headerAction headerAction or {@code null} for none - */ - public HttpRouteRule setHeaderAction(HttpHeaderAction headerAction) { - this.headerAction = headerAction; - return this; - } - - /** - * The list of criteria for matching attributes of a request to thisrouteRule. This list has OR - * semantics: the request matches this routeRule when any of thematchRules are satisfied. However - * predicates within a given matchRule have AND semantics. All predicates within a matchRule must - * match for the request to match the rule. - * @return value or {@code null} for none - */ - public java.util.List getMatchRules() { - return matchRules; - } - - /** - * The list of criteria for matching attributes of a request to thisrouteRule. This list has OR - * semantics: the request matches this routeRule when any of thematchRules are satisfied. However - * predicates within a given matchRule have AND semantics. All predicates within a matchRule must - * match for the request to match the rule. - * @param matchRules matchRules or {@code null} for none - */ - public HttpRouteRule setMatchRules(java.util.List matchRules) { - this.matchRules = matchRules; - return this; - } - - /** - * For routeRules within a given pathMatcher, priority determines the order in which a load - * balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest - * to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The - * first rule that matches the request is applied. - * - * You cannot configure two or more routeRules with the same priority. Priority for each rule must - * be set to a number from 0 to 2147483647 inclusive. - * - * Priority numbers can have gaps, which enable you to add or remove rules in the future without - * affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of - * priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in - * the future without any impact on existing rules. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * For routeRules within a given pathMatcher, priority determines the order in which a load - * balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest - * to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The - * first rule that matches the request is applied. - * - * You cannot configure two or more routeRules with the same priority. Priority for each rule must - * be set to a number from 0 to 2147483647 inclusive. - * - * Priority numbers can have gaps, which enable you to add or remove rules in the future without - * affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of - * priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in - * the future without any impact on existing rules. - * @param priority priority or {@code null} for none - */ - public HttpRouteRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * In response to a matching matchRule, the load balancer performs advanced routing actions, such - * as URL rewrites and header transformations, before forwarding the request to the selected - * backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * route rule'srouteAction. - * @return value or {@code null} for none - */ - public HttpRouteAction getRouteAction() { - return routeAction; - } - - /** - * In response to a matching matchRule, the load balancer performs advanced routing actions, such - * as URL rewrites and header transformations, before forwarding the request to the selected - * backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * route rule'srouteAction. - * @param routeAction routeAction or {@code null} for none - */ - public HttpRouteRule setRouteAction(HttpRouteAction routeAction) { - this.routeAction = routeAction; - return this; - } - - /** - * The full or partial URL of the backend service resource to which traffic is directed if this - * rule is matched. If routeAction is also specified, advanced routing actions, such as URL - * rewrites, take effect before sending the request to the backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * The full or partial URL of the backend service resource to which traffic is directed if this - * rule is matched. If routeAction is also specified, advanced routing actions, such as URL - * rewrites, take effect before sending the request to the backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * @param service service or {@code null} for none - */ - public HttpRouteRule setService(java.lang.String service) { - this.service = service; - return this; - } - - /** - * When this rule is matched, the request is redirected to a URL specified by urlRedirect. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public HttpRedirectAction getUrlRedirect() { - return urlRedirect; - } - - /** - * When this rule is matched, the request is redirected to a URL specified by urlRedirect. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param urlRedirect urlRedirect or {@code null} for none - */ - public HttpRouteRule setUrlRedirect(HttpRedirectAction urlRedirect) { - this.urlRedirect = urlRedirect; - return this; - } - - @Override - public HttpRouteRule set(String fieldName, Object value) { - return (HttpRouteRule) super.set(fieldName, value); - } - - @Override - public HttpRouteRule clone() { - return (HttpRouteRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRuleMatch.java deleted file mode 100644 index 26c48f30b89..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpRouteRuleMatch.java +++ /dev/null @@ -1,427 +0,0 @@ -/* - * 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.preview.model; - -/** - * HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All - * specified criteria must be satisfied for a match to occur. - * - *

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 HttpRouteRuleMatch extends com.google.api.client.json.GenericJson { - - /** - * For satisfying the matchRule condition, the path of the request must exactly match the value - * specified infullPathMatch after removing any query parameters and anchor that may be part of - * the original URL. - * - * fullPathMatch must be from 1 to 1024 characters. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fullPathMatch; - - /** - * Specifies a list of header match criteria, all of which must match corresponding headers in the - * request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List headerMatches; - - static { - // hack to force ProGuard to consider HttpHeaderMatch 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(HttpHeaderMatch.class); - } - - /** - * Specifies that prefixMatch and fullPathMatch matches are case sensitive. - * - * The default value is false. - * - * ignoreCase must not be used with regexMatch. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean ignoreCase; - - /** - * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited - * set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present - * node metadata. When there is a match, the relevant routing configuration is made available to - * those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least - * one of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. If multiple metadata filters are specified, all - * of them need to be satisfied in order to be considered a match. - * - * metadataFilters specified here is applied after those specified in ForwardingRule that refers - * to theUrlMap this HttpRouteRuleMatch belongs to. - * - * metadataFilters only applies to load balancers that haveloadBalancingScheme set - * toINTERNAL_SELF_MANAGED. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metadataFilters; - - /** - * If specified, this field defines a path template pattern that must match the :path header after - * the query string is removed. - * - * A path template pattern can include variables and wildcards. Variables are enclosed in curly - * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and - * ** that matches zero or more path segments. The pattern must follow these rules: - * - * - The value must be between 1 and 1024 characters. - The pattern must start - * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may - * appear in the pattern. - * - * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathTemplateMatch; - - /** - * For satisfying the matchRule condition, the request's path must begin with the specified - * prefixMatch.prefixMatch must begin with a /. - * - * The value must be from 1 to 1024 characters. - * - * The * character inside a prefix match is treated as a literal character, not as a wildcard. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a - * matchRule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String prefixMatch; - - /** - * Specifies a list of query parameter match criteria, all of which must match corresponding query - * parameters in the request. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List queryParameterMatches; - - static { - // hack to force ProGuard to consider HttpQueryParameterMatch 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(HttpQueryParameterMatch.class); - } - - /** - * For satisfying the matchRule condition, the path of the request must satisfy the regular - * expression specified inregexMatch after removing any query parameters and anchor supplied with - * the original URL. For more information about regular expression syntax, see Syntax. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String regexMatch; - - /** - * For satisfying the matchRule condition, the path of the request must exactly match the value - * specified infullPathMatch after removing any query parameters and anchor that may be part of - * the original URL. - * - * fullPathMatch must be from 1 to 1024 characters. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * @return value or {@code null} for none - */ - public java.lang.String getFullPathMatch() { - return fullPathMatch; - } - - /** - * For satisfying the matchRule condition, the path of the request must exactly match the value - * specified infullPathMatch after removing any query parameters and anchor that may be part of - * the original URL. - * - * fullPathMatch must be from 1 to 1024 characters. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * @param fullPathMatch fullPathMatch or {@code null} for none - */ - public HttpRouteRuleMatch setFullPathMatch(java.lang.String fullPathMatch) { - this.fullPathMatch = fullPathMatch; - return this; - } - - /** - * Specifies a list of header match criteria, all of which must match corresponding headers in the - * request. - * @return value or {@code null} for none - */ - public java.util.List getHeaderMatches() { - return headerMatches; - } - - /** - * Specifies a list of header match criteria, all of which must match corresponding headers in the - * request. - * @param headerMatches headerMatches or {@code null} for none - */ - public HttpRouteRuleMatch setHeaderMatches(java.util.List headerMatches) { - this.headerMatches = headerMatches; - return this; - } - - /** - * Specifies that prefixMatch and fullPathMatch matches are case sensitive. - * - * The default value is false. - * - * ignoreCase must not be used with regexMatch. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIgnoreCase() { - return ignoreCase; - } - - /** - * Specifies that prefixMatch and fullPathMatch matches are case sensitive. - * - * The default value is false. - * - * ignoreCase must not be used with regexMatch. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param ignoreCase ignoreCase or {@code null} for none - */ - public HttpRouteRuleMatch setIgnoreCase(java.lang.Boolean ignoreCase) { - this.ignoreCase = ignoreCase; - return this; - } - - /** - * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited - * set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present - * node metadata. When there is a match, the relevant routing configuration is made available to - * those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least - * one of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. If multiple metadata filters are specified, all - * of them need to be satisfied in order to be considered a match. - * - * metadataFilters specified here is applied after those specified in ForwardingRule that refers - * to theUrlMap this HttpRouteRuleMatch belongs to. - * - * metadataFilters only applies to load balancers that haveloadBalancingScheme set - * toINTERNAL_SELF_MANAGED. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public java.util.List getMetadataFilters() { - return metadataFilters; - } - - /** - * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited - * set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present - * node metadata. When there is a match, the relevant routing configuration is made available to - * those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least - * one of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. If multiple metadata filters are specified, all - * of them need to be satisfied in order to be considered a match. - * - * metadataFilters specified here is applied after those specified in ForwardingRule that refers - * to theUrlMap this HttpRouteRuleMatch belongs to. - * - * metadataFilters only applies to load balancers that haveloadBalancingScheme set - * toINTERNAL_SELF_MANAGED. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param metadataFilters metadataFilters or {@code null} for none - */ - public HttpRouteRuleMatch setMetadataFilters(java.util.List metadataFilters) { - this.metadataFilters = metadataFilters; - return this; - } - - /** - * If specified, this field defines a path template pattern that must match the :path header after - * the query string is removed. - * - * A path template pattern can include variables and wildcards. Variables are enclosed in curly - * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and - * ** that matches zero or more path segments. The pattern must follow these rules: - * - * - The value must be between 1 and 1024 characters. - The pattern must start - * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may - * appear in the pattern. - * - * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. - * @return value or {@code null} for none - */ - public java.lang.String getPathTemplateMatch() { - return pathTemplateMatch; - } - - /** - * If specified, this field defines a path template pattern that must match the :path header after - * the query string is removed. - * - * A path template pattern can include variables and wildcards. Variables are enclosed in curly - * braces, for example{variable_name}. Wildcards include * that matches a single path segment, and - * ** that matches zero or more path segments. The pattern must follow these rules: - * - * - The value must be between 1 and 1024 characters. - The pattern must start - * with a leading slash ("/"). - No more than 5 operators (variables or wildcards) may - * appear in the pattern. - * - * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. - * @param pathTemplateMatch pathTemplateMatch or {@code null} for none - */ - public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatch) { - this.pathTemplateMatch = pathTemplateMatch; - return this; - } - - /** - * For satisfying the matchRule condition, the request's path must begin with the specified - * prefixMatch.prefixMatch must begin with a /. - * - * The value must be from 1 to 1024 characters. - * - * The * character inside a prefix match is treated as a literal character, not as a wildcard. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a - * matchRule. - * @return value or {@code null} for none - */ - public java.lang.String getPrefixMatch() { - return prefixMatch; - } - - /** - * For satisfying the matchRule condition, the request's path must begin with the specified - * prefixMatch.prefixMatch must begin with a /. - * - * The value must be from 1 to 1024 characters. - * - * The * character inside a prefix match is treated as a literal character, not as a wildcard. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match can be used within a - * matchRule. - * @param prefixMatch prefixMatch or {@code null} for none - */ - public HttpRouteRuleMatch setPrefixMatch(java.lang.String prefixMatch) { - this.prefixMatch = prefixMatch; - return this; - } - - /** - * Specifies a list of query parameter match criteria, all of which must match corresponding query - * parameters in the request. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public java.util.List getQueryParameterMatches() { - return queryParameterMatches; - } - - /** - * Specifies a list of query parameter match criteria, all of which must match corresponding query - * parameters in the request. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param queryParameterMatches queryParameterMatches or {@code null} for none - */ - public HttpRouteRuleMatch setQueryParameterMatches(java.util.List queryParameterMatches) { - this.queryParameterMatches = queryParameterMatches; - return this; - } - - /** - * For satisfying the matchRule condition, the path of the request must satisfy the regular - * expression specified inregexMatch after removing any query parameters and anchor supplied with - * the original URL. For more information about regular expression syntax, see Syntax. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * @return value or {@code null} for none - */ - public java.lang.String getRegexMatch() { - return regexMatch; - } - - /** - * For satisfying the matchRule condition, the path of the request must satisfy the regular - * expression specified inregexMatch after removing any query parameters and anchor supplied with - * the original URL. For more information about regular expression syntax, see Syntax. - * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * - * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. - * @param regexMatch regexMatch or {@code null} for none - */ - public HttpRouteRuleMatch setRegexMatch(java.lang.String regexMatch) { - this.regexMatch = regexMatch; - return this; - } - - @Override - public HttpRouteRuleMatch set(String fieldName, Object value) { - return (HttpRouteRuleMatch) super.set(fieldName, value); - } - - @Override - public HttpRouteRuleMatch clone() { - return (HttpRouteRuleMatch) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheck.java deleted file mode 100644 index 5d461036148..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheck.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a legacy HTTPS Health Check resource. - * - * Legacy HTTPS health checks have been deprecated. If you are using a target pool-based network - * load balancer, you must use a legacy HTTP (not HTTPS) health check. For all other load balancers, - * including backend service-based network load balancers, and for managed instance group auto- - * healing, you must use modern (non-legacy) health checks. - * - * For more information, seeHealth checks overview. - * - *

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 HttpsHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * How often (in seconds) to send a health check. The default value is 5 seconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer checkIntervalSec; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyThreshold; - - /** - * The value of the host header in the HTTPS health check request. If left empty (default value), - * the public IP on behalf of which this health check is performed will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * [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. Type of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The TCP port number for the HTTPS health check request. The default value is 443. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * The request path of the HTTPS health check request. The default value is "/". Must comply - * withRFC3986. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestPath; - - /** - * [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; - - /** - * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is - * invalid for timeoutSec to have a greater value than checkIntervalSec. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer timeoutSec; - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer unhealthyThreshold; - - /** - * How often (in seconds) to send a health check. The default value is 5 seconds. - * @return value or {@code null} for none - */ - public java.lang.Integer getCheckIntervalSec() { - return checkIntervalSec; - } - - /** - * How often (in seconds) to send a health check. The default value is 5 seconds. - * @param checkIntervalSec checkIntervalSec or {@code null} for none - */ - public HttpsHealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { - this.checkIntervalSec = checkIntervalSec; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public HttpsHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public HttpsHealthCheck setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyThreshold() { - return healthyThreshold; - } - - /** - * A so-far unhealthy instance will be marked healthy after this many consecutive successes. The - * default value is 2. - * @param healthyThreshold healthyThreshold or {@code null} for none - */ - public HttpsHealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold) { - this.healthyThreshold = healthyThreshold; - return this; - } - - /** - * The value of the host header in the HTTPS health check request. If left empty (default value), - * the public IP on behalf of which this health check is performed will be used. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The value of the host header in the HTTPS health check request. If left empty (default value), - * the public IP on behalf of which this health check is performed will be used. - * @param host host or {@code null} for none - */ - public HttpsHealthCheck setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public HttpsHealthCheck setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. Type of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. - * @param kind kind or {@code null} for none - */ - public HttpsHealthCheck setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 HttpsHealthCheck setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The TCP port number for the HTTPS health check request. The default value is 443. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number for the HTTPS health check request. The default value is 443. - * @param port port or {@code null} for none - */ - public HttpsHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * The request path of the HTTPS health check request. The default value is "/". Must comply - * withRFC3986. - * @return value or {@code null} for none - */ - public java.lang.String getRequestPath() { - return requestPath; - } - - /** - * The request path of the HTTPS health check request. The default value is "/". Must comply - * withRFC3986. - * @param requestPath requestPath or {@code null} for none - */ - public HttpsHealthCheck setRequestPath(java.lang.String requestPath) { - this.requestPath = requestPath; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public HttpsHealthCheck setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is - * invalid for timeoutSec to have a greater value than checkIntervalSec. - * @return value or {@code null} for none - */ - public java.lang.Integer getTimeoutSec() { - return timeoutSec; - } - - /** - * How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is - * invalid for timeoutSec to have a greater value than checkIntervalSec. - * @param timeoutSec timeoutSec or {@code null} for none - */ - public HttpsHealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { - this.timeoutSec = timeoutSec; - return this; - } - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getUnhealthyThreshold() { - return unhealthyThreshold; - } - - /** - * A so-far healthy instance will be marked unhealthy after this many consecutive failures. The - * default value is 2. - * @param unhealthyThreshold unhealthyThreshold or {@code null} for none - */ - public HttpsHealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold) { - this.unhealthyThreshold = unhealthyThreshold; - return this; - } - - @Override - public HttpsHealthCheck set(String fieldName, Object value) { - return (HttpsHealthCheck) super.set(fieldName, value); - } - - @Override - public HttpsHealthCheck clone() { - return (HttpsHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheckList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheckList.java deleted file mode 100644 index eb534f426c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/HttpsHealthCheckList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of HttpsHealthCheck resources. - * - *

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 HttpsHealthCheckList extends com.google.api.client.json.GenericJson { - - /** - * [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 HttpsHealthCheck 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 HttpsHealthCheck 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(HttpsHealthCheck.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 HttpsHealthCheckList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of HttpsHealthCheck resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of HttpsHealthCheck resources. - * @param items items or {@code null} for none - */ - public HttpsHealthCheckList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public HttpsHealthCheckList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public HttpsHealthCheckList 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 HttpsHealthCheckList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 HttpsHealthCheckList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public HttpsHealthCheckList set(String fieldName, Object value) { - return (HttpsHealthCheckList) super.set(fieldName, value); - } - - @Override - public HttpsHealthCheckList clone() { - return (HttpsHealthCheckList) 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 HttpsHealthCheckListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Image.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Image.java deleted file mode 100644 index d9aaeec4509..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Image.java +++ /dev/null @@ -1,1235 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Image resource. - * - * You can use images to create boot disks for your VM instances. For more information, read Images. - * - *

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 Image extends com.google.api.client.json.GenericJson { - - /** - * The architecture of the image. Valid values are ARM64 or X86_64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long archiveSizeBytes; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. The deprecation status associated with this image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Size of the image when restored onto a persistent disk (in GB). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * Output only. Whether this image is created from a confidential compute mode disk. [Output - * Only]: This field is not set by user, but from source disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableConfidentialCompute; - - /** - * The name of the image family to which this image belongs. The image family name can be from a - * publicly managed image family provided by Compute Engine, or from a custom image family you - * create. For example,centos-stream-9 is a publicly available image family. For more information, - * see Image family best practices. - * - * When creating disks, you can specify an image family instead of a specific image name. The - * image family always returns its latest image that is not deprecated. The name of the image - * family must comply with RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String family; - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. To see a list of available options, see theguestOSfeatures[].type parameter. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List guestOsFeatures; - - static { - // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); - } - - /** - * 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; - - /** - * Encrypts the image using acustomer-supplied encryption key. - * - * After you encrypt an image with a customer-supplied key, you must provide the same key if you - * use the image later (e.g. to create a disk from the image). - * - * Customer-supplied encryption keys do not protect access to metadata of the disk. - * - * If you do not provide an encryption key when creating the image, then the disk will be - * encrypted using an automatically generated key and you do not need to provide a key to use the - * image later. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey imageEncryptionKey; - - /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this image, which is essentially a hash of the - * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine - * and changes after every request to modify or update labels. You must always provide an up-to- - * date fingerprint hash in order to update or change labels, otherwise the request will fail with - * error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this image. These can be later modified by the setLabels method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Integer license codes indicating which licenses are attached to this image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.util.List licenseCodes; - - /** - * Any applicable license URI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenses; - - /** - * Name of the resource; provided by the client 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; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ImageParams params; - - /** - * The parameters of the raw disk image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RawDisk rawDisk; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * 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; - - /** - * Set the secure boot keys of shielded instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InitialStateConfig shieldedInstanceInitialState; - - /** - * URL of the source disk used to create this image. For example, the following are valid values: - * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDisk; - - /** - * Thecustomer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceDiskEncryptionKey; - - /** - * Output only. [Output Only] The ID value of the disk used to create this image. This value may - * be used to determine whether the image was taken from the current or a previous instance of a - * given disk name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDiskId; - - /** - * URL of the source image used to create this image. The following are valid formats for the URL: - * - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - - * projects/project_id/global/images/image_name - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceImage; - - /** - * The customer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceImageEncryptionKey; - - /** - * Output only. [Output Only] The ID value of the image used to create this image. This value may - * be used to determine whether the image was taken from the current or a previous instance of a - * given image name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceImageId; - - /** - * URL of the source snapshot used to create this image. The following are valid formats for the - * URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ - * snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshot; - - /** - * The customer-supplied encryption key of the source snapshot. Required if the source snapshot is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceSnapshotEncryptionKey; - - /** - * Output only. [Output Only] The ID value of the snapshot used to create this image. This value - * may be used to determine whether the snapshot was taken from the current or a previous instance - * of a given snapshot name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshotId; - - /** - * The type of the image used to create this disk. The default and only valid value is RAW. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceType; - - /** - * Output only. [Output Only] The status of the image. An image can be used to create other - * resources, such as instances, only after the image has been successfully created and the status - * is set to READY. Possible values are FAILED, PENDING, orREADY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Cloud Storage bucket storage location of the image (regional or multi-regional). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List storageLocations; - - /** - * The architecture of the image. Valid values are ARM64 or X86_64. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * The architecture of the image. Valid values are ARM64 or X86_64. - * @param architecture architecture or {@code null} for none - */ - public Image setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). - * @return value or {@code null} for none - */ - public java.lang.Long getArchiveSizeBytes() { - return archiveSizeBytes; - } - - /** - * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). - * @param archiveSizeBytes archiveSizeBytes or {@code null} for none - */ - public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { - this.archiveSizeBytes = archiveSizeBytes; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Image setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. The deprecation status associated with this image. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * Output only. The deprecation status associated with this image. - * @param deprecated deprecated or {@code null} for none - */ - public Image setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Image setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Size of the image when restored onto a persistent disk (in GB). - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * Size of the image when restored onto a persistent disk (in GB). - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public Image setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * Output only. Whether this image is created from a confidential compute mode disk. [Output - * Only]: This field is not set by user, but from source disk. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableConfidentialCompute() { - return enableConfidentialCompute; - } - - /** - * Output only. Whether this image is created from a confidential compute mode disk. [Output - * Only]: This field is not set by user, but from source disk. - * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none - */ - public Image setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { - this.enableConfidentialCompute = enableConfidentialCompute; - return this; - } - - /** - * The name of the image family to which this image belongs. The image family name can be from a - * publicly managed image family provided by Compute Engine, or from a custom image family you - * create. For example,centos-stream-9 is a publicly available image family. For more information, - * see Image family best practices. - * - * When creating disks, you can specify an image family instead of a specific image name. The - * image family always returns its latest image that is not deprecated. The name of the image - * family must comply with RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getFamily() { - return family; - } - - /** - * The name of the image family to which this image belongs. The image family name can be from a - * publicly managed image family provided by Compute Engine, or from a custom image family you - * create. For example,centos-stream-9 is a publicly available image family. For more information, - * see Image family best practices. - * - * When creating disks, you can specify an image family instead of a specific image name. The - * image family always returns its latest image that is not deprecated. The name of the image - * family must comply with RFC1035. - * @param family family or {@code null} for none - */ - public Image setFamily(java.lang.String family) { - this.family = family; - return this; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. To see a list of available options, see theguestOSfeatures[].type parameter. - * @return value or {@code null} for none - */ - public java.util.List getGuestOsFeatures() { - return guestOsFeatures; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. To see a list of available options, see theguestOSfeatures[].type parameter. - * @param guestOsFeatures guestOsFeatures or {@code null} for none - */ - public Image setGuestOsFeatures(java.util.List guestOsFeatures) { - this.guestOsFeatures = guestOsFeatures; - 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 Image setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Encrypts the image using acustomer-supplied encryption key. - * - * After you encrypt an image with a customer-supplied key, you must provide the same key if you - * use the image later (e.g. to create a disk from the image). - * - * Customer-supplied encryption keys do not protect access to metadata of the disk. - * - * If you do not provide an encryption key when creating the image, then the disk will be - * encrypted using an automatically generated key and you do not need to provide a key to use the - * image later. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getImageEncryptionKey() { - return imageEncryptionKey; - } - - /** - * Encrypts the image using acustomer-supplied encryption key. - * - * After you encrypt an image with a customer-supplied key, you must provide the same key if you - * use the image later (e.g. to create a disk from the image). - * - * Customer-supplied encryption keys do not protect access to metadata of the disk. - * - * If you do not provide an encryption key when creating the image, then the disk will be - * encrypted using an automatically generated key and you do not need to provide a key to use the - * image later. - * @param imageEncryptionKey imageEncryptionKey or {@code null} for none - */ - public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { - this.imageEncryptionKey = imageEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. - * @param kind kind or {@code null} for none - */ - public Image setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this image, which is essentially a hash of the - * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine - * and changes after every request to modify or update labels. You must always provide an up-to- - * date fingerprint hash in order to update or change labels, otherwise the request will fail with - * error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an image. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this image, which is essentially a hash of the - * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine - * and changes after every request to modify or update labels. You must always provide an up-to- - * date fingerprint hash in order to update or change labels, otherwise the request will fail with - * error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an image. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this image, which is essentially a hash of the - * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine - * and changes after every request to modify or update labels. You must always provide an up-to- - * date fingerprint hash in order to update or change labels, otherwise the request will fail with - * error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an image. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public Image setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this image, which is essentially a hash of the - * labels used for optimistic locking. The fingerprint is initially generated by Compute Engine - * and changes after every request to modify or update labels. You must always provide an up-to- - * date fingerprint hash in order to update or change labels, otherwise the request will fail with - * error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an image. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Image encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this image. These can be later modified by the setLabels method. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this image. These can be later modified by the setLabels method. - * @param labels labels or {@code null} for none - */ - public Image setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Integer license codes indicating which licenses are attached to this image. - * @return value or {@code null} for none - */ - public java.util.List getLicenseCodes() { - return licenseCodes; - } - - /** - * Integer license codes indicating which licenses are attached to this image. - * @param licenseCodes licenseCodes or {@code null} for none - */ - public Image setLicenseCodes(java.util.List licenseCodes) { - this.licenseCodes = licenseCodes; - return this; - } - - /** - * Any applicable license URI. - * @return value or {@code null} for none - */ - public java.util.List getLicenses() { - return licenses; - } - - /** - * Any applicable license URI. - * @param licenses licenses or {@code null} for none - */ - public Image setLicenses(java.util.List licenses) { - this.licenses = licenses; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 Image setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public ImageParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Image setParams(ImageParams params) { - this.params = params; - return this; - } - - /** - * The parameters of the raw disk image. - * @return value or {@code null} for none - */ - public RawDisk getRawDisk() { - return rawDisk; - } - - /** - * The parameters of the raw disk image. - * @param rawDisk rawDisk or {@code null} for none - */ - public Image setRawDisk(RawDisk rawDisk) { - this.rawDisk = rawDisk; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - 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 Image setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Set the secure boot keys of shielded instance. - * @return value or {@code null} for none - */ - public InitialStateConfig getShieldedInstanceInitialState() { - return shieldedInstanceInitialState; - } - - /** - * Set the secure boot keys of shielded instance. - * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none - */ - public Image setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { - this.shieldedInstanceInitialState = shieldedInstanceInitialState; - return this; - } - - /** - * URL of the source disk used to create this image. For example, the following are valid values: - * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @return value or {@code null} for none - */ - public java.lang.String getSourceDisk() { - return sourceDisk; - } - - /** - * URL of the source disk used to create this image. For example, the following are valid values: - * - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @param sourceDisk sourceDisk or {@code null} for none - */ - public Image setSourceDisk(java.lang.String sourceDisk) { - this.sourceDisk = sourceDisk; - return this; - } - - /** - * Thecustomer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceDiskEncryptionKey() { - return sourceDiskEncryptionKey; - } - - /** - * Thecustomer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * @param sourceDiskEncryptionKey sourceDiskEncryptionKey or {@code null} for none - */ - public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey) { - this.sourceDiskEncryptionKey = sourceDiskEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The ID value of the disk used to create this image. This value may - * be used to determine whether the image was taken from the current or a previous instance of a - * given disk name. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDiskId() { - return sourceDiskId; - } - - /** - * Output only. [Output Only] The ID value of the disk used to create this image. This value may - * be used to determine whether the image was taken from the current or a previous instance of a - * given disk name. - * @param sourceDiskId sourceDiskId or {@code null} for none - */ - public Image setSourceDiskId(java.lang.String sourceDiskId) { - this.sourceDiskId = sourceDiskId; - return this; - } - - /** - * URL of the source image used to create this image. The following are valid formats for the URL: - * - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - - * projects/project_id/global/images/image_name - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @return value or {@code null} for none - */ - public java.lang.String getSourceImage() { - return sourceImage; - } - - /** - * URL of the source image used to create this image. The following are valid formats for the URL: - * - https://www.googleapis.com/compute/v1/projects/project_id/global/ images/image_name - - * projects/project_id/global/images/image_name - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @param sourceImage sourceImage or {@code null} for none - */ - public Image setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; - return this; - } - - /** - * The customer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceImageEncryptionKey() { - return sourceImageEncryptionKey; - } - - /** - * The customer-supplied encryption key of the source image. Required if the source image is - * protected by a customer-supplied encryption key. - * @param sourceImageEncryptionKey sourceImageEncryptionKey or {@code null} for none - */ - public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryptionKey) { - this.sourceImageEncryptionKey = sourceImageEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The ID value of the image used to create this image. This value may - * be used to determine whether the image was taken from the current or a previous instance of a - * given image name. - * @return value or {@code null} for none - */ - public java.lang.String getSourceImageId() { - return sourceImageId; - } - - /** - * Output only. [Output Only] The ID value of the image used to create this image. This value may - * be used to determine whether the image was taken from the current or a previous instance of a - * given image name. - * @param sourceImageId sourceImageId or {@code null} for none - */ - public Image setSourceImageId(java.lang.String sourceImageId) { - this.sourceImageId = sourceImageId; - return this; - } - - /** - * URL of the source snapshot used to create this image. The following are valid formats for the - * URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ - * snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshot() { - return sourceSnapshot; - } - - /** - * URL of the source snapshot used to create this image. The following are valid formats for the - * URL: - https://www.googleapis.com/compute/v1/projects/project_id/global/ - * snapshots/snapshot_name - projects/project_id/global/snapshots/snapshot_name - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @param sourceSnapshot sourceSnapshot or {@code null} for none - */ - public Image setSourceSnapshot(java.lang.String sourceSnapshot) { - this.sourceSnapshot = sourceSnapshot; - return this; - } - - /** - * The customer-supplied encryption key of the source snapshot. Required if the source snapshot is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceSnapshotEncryptionKey() { - return sourceSnapshotEncryptionKey; - } - - /** - * The customer-supplied encryption key of the source snapshot. Required if the source snapshot is - * protected by a customer-supplied encryption key. - * @param sourceSnapshotEncryptionKey sourceSnapshotEncryptionKey or {@code null} for none - */ - public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotEncryptionKey) { - this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The ID value of the snapshot used to create this image. This value - * may be used to determine whether the snapshot was taken from the current or a previous instance - * of a given snapshot name. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshotId() { - return sourceSnapshotId; - } - - /** - * Output only. [Output Only] The ID value of the snapshot used to create this image. This value - * may be used to determine whether the snapshot was taken from the current or a previous instance - * of a given snapshot name. - * @param sourceSnapshotId sourceSnapshotId or {@code null} for none - */ - public Image setSourceSnapshotId(java.lang.String sourceSnapshotId) { - this.sourceSnapshotId = sourceSnapshotId; - return this; - } - - /** - * The type of the image used to create this disk. The default and only valid value is RAW. - * @return value or {@code null} for none - */ - public java.lang.String getSourceType() { - return sourceType; - } - - /** - * The type of the image used to create this disk. The default and only valid value is RAW. - * @param sourceType sourceType or {@code null} for none - */ - public Image setSourceType(java.lang.String sourceType) { - this.sourceType = sourceType; - return this; - } - - /** - * Output only. [Output Only] The status of the image. An image can be used to create other - * resources, such as instances, only after the image has been successfully created and the status - * is set to READY. Possible values are FAILED, PENDING, orREADY. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the image. An image can be used to create other - * resources, such as instances, only after the image has been successfully created and the status - * is set to READY. Possible values are FAILED, PENDING, orREADY. - * @param status status or {@code null} for none - */ - public Image setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Cloud Storage bucket storage location of the image (regional or multi-regional). - * @return value or {@code null} for none - */ - public java.util.List getStorageLocations() { - return storageLocations; - } - - /** - * Cloud Storage bucket storage location of the image (regional or multi-regional). - * @param storageLocations storageLocations or {@code null} for none - */ - public Image setStorageLocations(java.util.List storageLocations) { - this.storageLocations = storageLocations; - return this; - } - - @Override - public Image set(String fieldName, Object value) { - return (Image) super.set(fieldName, value); - } - - @Override - public Image clone() { - return (Image) super.clone(); - } - - /** - * The parameters of the raw disk image. - */ - public static final class RawDisk extends com.google.api.client.json.GenericJson { - - /** - * The format used to encode and transmit the block device, which should beTAR. This is just a - * container and transmission format and not a runtime format. Provided by the client when the - * disk image is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String containerType; - - /** - * [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before - * unpackaging provided by the client when the disk image is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sha1Checksum; - - /** - * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is - * stored. The following are valid formats: - - * https://storage.googleapis.com/bucket_name/image_archive_name - - * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - - * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - - * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs - * um_sha256:hex_value - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * The format used to encode and transmit the block device, which should beTAR. This is just a - * container and transmission format and not a runtime format. Provided by the client when the - * disk image is created. - * @return value or {@code null} for none - */ - public java.lang.String getContainerType() { - return containerType; - } - - /** - * The format used to encode and transmit the block device, which should beTAR. This is just a - * container and transmission format and not a runtime format. Provided by the client when the - * disk image is created. - * @param containerType containerType or {@code null} for none - */ - public RawDisk setContainerType(java.lang.String containerType) { - this.containerType = containerType; - return this; - } - - /** - * [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before - * unpackaging provided by the client when the disk image is created. - * @return value or {@code null} for none - */ - public java.lang.String getSha1Checksum() { - return sha1Checksum; - } - - /** - * [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before - * unpackaging provided by the client when the disk image is created. - * @param sha1Checksum sha1Checksum or {@code null} for none - */ - public RawDisk setSha1Checksum(java.lang.String sha1Checksum) { - this.sha1Checksum = sha1Checksum; - return this; - } - - /** - * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is - * stored. The following are valid formats: - - * https://storage.googleapis.com/bucket_name/image_archive_name - - * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - - * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - - * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs - * um_sha256:hex_value - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is - * stored. The following are valid formats: - - * https://storage.googleapis.com/bucket_name/image_archive_name - - * https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - - * projects/project/locations/location/repositories/repo/packages/package/versions/version_id - - * projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirs - * um_sha256:hex_value - * - * In order to create an image, you must provide the full or partial URL of one of the following: - * - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The - * sourceSnapshot URL - * @param source source or {@code null} for none - */ - public RawDisk setSource(java.lang.String source) { - this.source = source; - return this; - } - - @Override - public RawDisk set(String fieldName, Object value) { - return (RawDisk) super.set(fieldName, value); - } - - @Override - public RawDisk clone() { - return (RawDisk) super.clone(); - } - - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageFamilyView.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageFamilyView.java deleted file mode 100644 index c180954eb1d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageFamilyView.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ImageFamilyView. - * - *

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 ImageFamilyView extends com.google.api.client.json.GenericJson { - - /** - * The latest image that is part of the specified image family in the requested location, and that - * is not deprecated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Image image; - - /** - * The latest image that is part of the specified image family in the requested location, and that - * is not deprecated. - * @return value or {@code null} for none - */ - public Image getImage() { - return image; - } - - /** - * The latest image that is part of the specified image family in the requested location, and that - * is not deprecated. - * @param image image or {@code null} for none - */ - public ImageFamilyView setImage(Image image) { - this.image = image; - return this; - } - - @Override - public ImageFamilyView set(String fieldName, Object value) { - return (ImageFamilyView) super.set(fieldName, value); - } - - @Override - public ImageFamilyView clone() { - return (ImageFamilyView) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageList.java deleted file mode 100644 index 20b748b8ff2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of images. - * - *

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 ImageList extends com.google.api.client.json.GenericJson { - - /** - * [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 Image 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(Image.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 ImageList 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 ImageList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ImageList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ImageList 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 ImageList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ImageList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ImageList set(String fieldName, Object value) { - return (ImageList) super.set(fieldName, value); - } - - @Override - public ImageList clone() { - return (ImageList) 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 ImageListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ImageParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageParams.java deleted file mode 100644 index 66155352e77..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional image params. - * - *

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 ImageParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the image. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public ImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public ImageParams set(String fieldName, Object value) { - return (ImageParams) super.set(fieldName, value); - } - - @Override - public ImageParams clone() { - return (ImageParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageView.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageView.java deleted file mode 100644 index 664b6995595..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageView.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/ImageViewsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageViewsListResponse.java deleted file mode 100644 index 17ceceb6799..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ImageViewsListResponse.java +++ /dev/null @@ -1,416 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/InitialStateConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InitialStateConfig.java deleted file mode 100644 index 3ae0aa233c3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InitialStateConfig.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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.preview.model; - -/** - * Initial State for shielded instance, these are public keys which are safe to store in public - * - *

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 InitialStateConfig extends com.google.api.client.json.GenericJson { - - /** - * The Key Database (db). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List dbs; - - static { - // hack to force ProGuard to consider FileContentBuffer 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(FileContentBuffer.class); - } - - /** - * The forbidden key database (dbx). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List dbxs; - - static { - // hack to force ProGuard to consider FileContentBuffer 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(FileContentBuffer.class); - } - - /** - * The Key Exchange Key (KEK). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List keks; - - static { - // hack to force ProGuard to consider FileContentBuffer 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(FileContentBuffer.class); - } - - /** - * The Platform Key (PK). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FileContentBuffer pk; - - /** - * The Key Database (db). - * @return value or {@code null} for none - */ - public java.util.List getDbs() { - return dbs; - } - - /** - * The Key Database (db). - * @param dbs dbs or {@code null} for none - */ - public InitialStateConfig setDbs(java.util.List dbs) { - this.dbs = dbs; - return this; - } - - /** - * The forbidden key database (dbx). - * @return value or {@code null} for none - */ - public java.util.List getDbxs() { - return dbxs; - } - - /** - * The forbidden key database (dbx). - * @param dbxs dbxs or {@code null} for none - */ - public InitialStateConfig setDbxs(java.util.List dbxs) { - this.dbxs = dbxs; - return this; - } - - /** - * The Key Exchange Key (KEK). - * @return value or {@code null} for none - */ - public java.util.List getKeks() { - return keks; - } - - /** - * The Key Exchange Key (KEK). - * @param keks keks or {@code null} for none - */ - public InitialStateConfig setKeks(java.util.List keks) { - this.keks = keks; - return this; - } - - /** - * The Platform Key (PK). - * @return value or {@code null} for none - */ - public FileContentBuffer getPk() { - return pk; - } - - /** - * The Platform Key (PK). - * @param pk pk or {@code null} for none - */ - public InitialStateConfig setPk(FileContentBuffer pk) { - this.pk = pk; - return this; - } - - @Override - public InitialStateConfig set(String fieldName, Object value) { - return (InitialStateConfig) super.set(fieldName, value); - } - - @Override - public InitialStateConfig clone() { - return (InitialStateConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Instance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Instance.java deleted file mode 100644 index 092915f3b3d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Instance.java +++ /dev/null @@ -1,1456 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Instance resource. - * - * An instance is a virtual machine that is hosted on Google Cloud Platform. For more information, - * readVirtual Machine Instances. - * - *

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 Instance extends com.google.api.client.json.GenericJson { - - /** - * Controls for advanced machine-related behavior features. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AdvancedMachineFeatures advancedMachineFeatures; - - /** - * Allows this instance to send and receive packets with non-matching destination or source IPs. - * This is required if you plan to use this instance to forward routes. For more information, - * seeEnabling IP Forwarding. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canIpForward; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ConfidentialInstanceConfig confidentialInstanceConfig; - - /** - * Output only. [Output Only] The CPU platform used by this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cpuPlatform; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Whether the resource should be protected against deletion. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean deletionProtection; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Array of disks associated with this instance. Persistent disks must be created before you can - * assign them. - * 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); - } - - /** - * Enables display device for the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DisplayDevice displayDevice; - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the instance's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the instance. You must always - * provide an up-to-date fingerprint hash in order to update the instance. - * - * To see the latest fingerprint, make get() request to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * A list of the type and count of accelerator cards attached to the instance. - * 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); - } - - /** - * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If - * hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when - * using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hostname; - - /** - * 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; - - /** - * Encrypts suspended data for an instance with acustomer-managed encryption key. - * - * If you are creating a new instance, this field will encrypt the local SSD and in-memory - * contents of the instance during the suspend operation. - * - * If you do not provide an encryption key when creating the instance, then the local SSD and in- - * memory contents will be encrypted using an automatically generated key during the suspend - * operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey instanceEncryptionKey; - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String keyRevocationActionType; - - /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for this request, which is essentially a hash of the label's contents and used - * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes - * after every request to modify or update labels. You must always provide an up-to-date - * fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this instance. These can be later modified by the setLabels method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastStartTimestamp; - - /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastStopTimestamp; - - /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastSuspendedTimestamp; - - /** - * Specifies which method should be used for encrypting the Local SSDs attached to the VM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String localSsdEncryptionMode; - - /** - * Full or partial URL of the machine type resource to use for this instance, in the - * format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance - * is created. For example, the following is a valid partial url to a predefined machine type: - * - * zones/us-central1-f/machineTypes/n1-standard-1 - * - * To create acustom machine type, provide a URL to a machine type in the following format, where - * CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for - * this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of - * memory is 5120 MB): - * - * zones/zone/machineTypes/custom-CPUS-MEMORY - * - * For example: zones/us-central1-f/machineTypes/custom-4-5120 - * - * For a full list of restrictions, read theSpecifications for custom machine types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * The metadata key/value pairs assigned to this instance. This includes metadata keys that were - * explicitly defined for the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Metadata metadata; - - /** - * Specifies aminimum CPU platform for the VM instance. Applicable values are the friendly names - * of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy - * Bridge". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minCpuPlatform; - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - - /** - * An array of network configurations for this instance. These specify how interfaces are - * configured to interact with other network services, such as connecting to the internet. - * Multiple interfaces are supported per instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkInterfaces; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPerformanceConfig networkPerformanceConfig; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceParams params; - - /** - * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK - * as default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String privateIpv6GoogleAccess; - - /** - * Specifies the reservations that this instance can consume from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationAffinity reservationAffinity; - - /** - * Resource policies applied to this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatus resourceStatus; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * Sets the scheduling options for this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Scheduling scheduling; - - /** - * 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; - - /** - * A list of service accounts, with their specified scopes, authorized for this instance. Only one - * service account per VM instance is supported. - * - * Service accounts generate access tokens that can be accessed through the metadata server and - * used to authenticate applications on the instance. SeeService Accounts for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List serviceAccounts; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceConfig shieldedInstanceConfig; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy; - - /** - * Source machine image - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceMachineImage; - - /** - * Source machine image encryption key when creating an instance from a machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceMachineImageEncryptionKey; - - /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean startRestricted; - - /** - * Output only. [Output Only] The status of the instance. One of the following values: - * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For - * more information about the status of the instance, see Instance life cycle. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String statusMessage; - - /** - * Tags to apply to this instance. Tags are used to identify valid sources or targets for network - * firewalls and are specified by the client during instance creation. The tags can be later - * modified by the setTags method. Each tag within the list must comply withRFC1035. Multiple tags - * can be specified via the 'tags.items' field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Tags tags; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private WorkloadIdentityConfig workloadIdentityConfig; - - /** - * Output only. [Output Only] URL of the zone where the instance resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Controls for advanced machine-related behavior features. - * @return value or {@code null} for none - */ - public AdvancedMachineFeatures getAdvancedMachineFeatures() { - return advancedMachineFeatures; - } - - /** - * Controls for advanced machine-related behavior features. - * @param advancedMachineFeatures advancedMachineFeatures or {@code null} for none - */ - public Instance setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures) { - this.advancedMachineFeatures = advancedMachineFeatures; - return this; - } - - /** - * Allows this instance to send and receive packets with non-matching destination or source IPs. - * This is required if you plan to use this instance to forward routes. For more information, - * seeEnabling IP Forwarding. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanIpForward() { - return canIpForward; - } - - /** - * Allows this instance to send and receive packets with non-matching destination or source IPs. - * This is required if you plan to use this instance to forward routes. For more information, - * seeEnabling IP Forwarding. - * @param canIpForward canIpForward or {@code null} for none - */ - public Instance setCanIpForward(java.lang.Boolean canIpForward) { - this.canIpForward = canIpForward; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig; - } - - /** - * @param confidentialInstanceConfig confidentialInstanceConfig or {@code null} for none - */ - public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig) { - this.confidentialInstanceConfig = confidentialInstanceConfig; - return this; - } - - /** - * Output only. [Output Only] The CPU platform used by this instance. - * @return value or {@code null} for none - */ - public java.lang.String getCpuPlatform() { - return cpuPlatform; - } - - /** - * Output only. [Output Only] The CPU platform used by this instance. - * @param cpuPlatform cpuPlatform or {@code null} for none - */ - public Instance setCpuPlatform(java.lang.String cpuPlatform) { - this.cpuPlatform = cpuPlatform; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Instance setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Whether the resource should be protected against deletion. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDeletionProtection() { - return deletionProtection; - } - - /** - * Whether the resource should be protected against deletion. - * @param deletionProtection deletionProtection or {@code null} for none - */ - public Instance setDeletionProtection(java.lang.Boolean deletionProtection) { - this.deletionProtection = deletionProtection; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Instance setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Array of disks associated with this instance. Persistent disks must be created before you can - * assign them. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * Array of disks associated with this instance. Persistent disks must be created before you can - * assign them. - * @param disks disks or {@code null} for none - */ - public Instance setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - /** - * Enables display device for the instance. - * @return value or {@code null} for none - */ - public DisplayDevice getDisplayDevice() { - return displayDevice; - } - - /** - * Enables display device for the instance. - * @param displayDevice displayDevice or {@code null} for none - */ - public Instance setDisplayDevice(DisplayDevice displayDevice) { - this.displayDevice = displayDevice; - return this; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the instance's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the instance. You must always - * provide an up-to-date fingerprint hash in order to update the instance. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the instance's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the instance. You must always - * provide an up-to-date fingerprint hash in order to update the instance. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the instance's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the instance. You must always - * provide an up-to-date fingerprint hash in order to update the instance. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public Instance setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the instance's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the instance. You must always - * provide an up-to-date fingerprint hash in order to update the instance. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Instance encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * A list of the type and count of accelerator cards attached to the instance. - * @return value or {@code null} for none - */ - public java.util.List getGuestAccelerators() { - return guestAccelerators; - } - - /** - * A list of the type and count of accelerator cards attached to the instance. - * @param guestAccelerators guestAccelerators or {@code null} for none - */ - public Instance setGuestAccelerators(java.util.List guestAccelerators) { - this.guestAccelerators = guestAccelerators; - return this; - } - - /** - * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If - * hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when - * using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. - * @return value or {@code null} for none - */ - public java.lang.String getHostname() { - return hostname; - } - - /** - * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If - * hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when - * using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. - * @param hostname hostname or {@code null} for none - */ - public Instance setHostname(java.lang.String hostname) { - this.hostname = hostname; - 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 Instance setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Encrypts suspended data for an instance with acustomer-managed encryption key. - * - * If you are creating a new instance, this field will encrypt the local SSD and in-memory - * contents of the instance during the suspend operation. - * - * If you do not provide an encryption key when creating the instance, then the local SSD and in- - * memory contents will be encrypted using an automatically generated key during the suspend - * operation. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getInstanceEncryptionKey() { - return instanceEncryptionKey; - } - - /** - * Encrypts suspended data for an instance with acustomer-managed encryption key. - * - * If you are creating a new instance, this field will encrypt the local SSD and in-memory - * contents of the instance during the suspend operation. - * - * If you do not provide an encryption key when creating the instance, then the local SSD and in- - * memory contents will be encrypted using an automatically generated key during the suspend - * operation. - * @param instanceEncryptionKey instanceEncryptionKey or {@code null} for none - */ - public Instance setInstanceEncryptionKey(CustomerEncryptionKey instanceEncryptionKey) { - this.instanceEncryptionKey = instanceEncryptionKey; - return this; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * @return value or {@code null} for none - */ - public java.lang.String getKeyRevocationActionType() { - return keyRevocationActionType; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * @param keyRevocationActionType keyRevocationActionType or {@code null} for none - */ - public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionType) { - this.keyRevocationActionType = keyRevocationActionType; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. - * @param kind kind or {@code null} for none - */ - public Instance setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for this request, which is essentially a hash of the label's contents and used - * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes - * after every request to modify or update labels. You must always provide an up-to-date - * fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for this request, which is essentially a hash of the label's contents and used - * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes - * after every request to modify or update labels. You must always provide an up-to-date - * fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for this request, which is essentially a hash of the label's contents and used - * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes - * after every request to modify or update labels. You must always provide an up-to-date - * fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public Instance setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for this request, which is essentially a hash of the label's contents and used - * for optimistic locking. The fingerprint is initially generated by Compute Engine and changes - * after every request to modify or update labels. You must always provide an up-to-date - * fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Instance encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this instance. These can be later modified by the setLabels method. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this instance. These can be later modified by the setLabels method. - * @param labels labels or {@code null} for none - */ - public Instance setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastStartTimestamp() { - return lastStartTimestamp; - } - - /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. - * @param lastStartTimestamp lastStartTimestamp or {@code null} for none - */ - public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { - this.lastStartTimestamp = lastStartTimestamp; - return this; - } - - /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastStopTimestamp() { - return lastStopTimestamp; - } - - /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. - * @param lastStopTimestamp lastStopTimestamp or {@code null} for none - */ - public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { - this.lastStopTimestamp = lastStopTimestamp; - return this; - } - - /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastSuspendedTimestamp() { - return lastSuspendedTimestamp; - } - - /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. - * @param lastSuspendedTimestamp lastSuspendedTimestamp or {@code null} for none - */ - public Instance setLastSuspendedTimestamp(java.lang.String lastSuspendedTimestamp) { - this.lastSuspendedTimestamp = lastSuspendedTimestamp; - return this; - } - - /** - * Specifies which method should be used for encrypting the Local SSDs attached to the VM. - * @return value or {@code null} for none - */ - public java.lang.String getLocalSsdEncryptionMode() { - return localSsdEncryptionMode; - } - - /** - * Specifies which method should be used for encrypting the Local SSDs attached to the VM. - * @param localSsdEncryptionMode localSsdEncryptionMode or {@code null} for none - */ - public Instance setLocalSsdEncryptionMode(java.lang.String localSsdEncryptionMode) { - this.localSsdEncryptionMode = localSsdEncryptionMode; - return this; - } - - /** - * Full or partial URL of the machine type resource to use for this instance, in the - * format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance - * is created. For example, the following is a valid partial url to a predefined machine type: - * - * zones/us-central1-f/machineTypes/n1-standard-1 - * - * To create acustom machine type, provide a URL to a machine type in the following format, where - * CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for - * this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of - * memory is 5120 MB): - * - * zones/zone/machineTypes/custom-CPUS-MEMORY - * - * For example: zones/us-central1-f/machineTypes/custom-4-5120 - * - * For a full list of restrictions, read theSpecifications for custom machine types. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * Full or partial URL of the machine type resource to use for this instance, in the - * format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance - * is created. For example, the following is a valid partial url to a predefined machine type: - * - * zones/us-central1-f/machineTypes/n1-standard-1 - * - * To create acustom machine type, provide a URL to a machine type in the following format, where - * CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for - * this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of - * memory is 5120 MB): - * - * zones/zone/machineTypes/custom-CPUS-MEMORY - * - * For example: zones/us-central1-f/machineTypes/custom-4-5120 - * - * For a full list of restrictions, read theSpecifications for custom machine types. - * @param machineType machineType or {@code null} for none - */ - public Instance setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * The metadata key/value pairs assigned to this instance. This includes metadata keys that were - * explicitly defined for the instance. - * @return value or {@code null} for none - */ - public Metadata getMetadata() { - return metadata; - } - - /** - * The metadata key/value pairs assigned to this instance. This includes metadata keys that were - * explicitly defined for the instance. - * @param metadata metadata or {@code null} for none - */ - public Instance setMetadata(Metadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Specifies aminimum CPU platform for the VM instance. Applicable values are the friendly names - * of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy - * Bridge". - * @return value or {@code null} for none - */ - public java.lang.String getMinCpuPlatform() { - return minCpuPlatform; - } - - /** - * Specifies aminimum CPU platform for the VM instance. Applicable values are the friendly names - * of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy - * Bridge". - * @param minCpuPlatform minCpuPlatform or {@code null} for none - */ - public Instance setMinCpuPlatform(java.lang.String minCpuPlatform) { - this.minCpuPlatform = minCpuPlatform; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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 Instance setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * An array of network configurations for this instance. These specify how interfaces are - * configured to interact with other network services, such as connecting to the internet. - * Multiple interfaces are supported per instance. - * @return value or {@code null} for none - */ - public java.util.List getNetworkInterfaces() { - return networkInterfaces; - } - - /** - * An array of network configurations for this instance. These specify how interfaces are - * configured to interact with other network services, such as connecting to the internet. - * Multiple interfaces are supported per instance. - * @param networkInterfaces networkInterfaces or {@code null} for none - */ - public Instance setNetworkInterfaces(java.util.List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - return this; - } - - /** - * @return value or {@code null} for none - */ - public NetworkPerformanceConfig getNetworkPerformanceConfig() { - return networkPerformanceConfig; - } - - /** - * @param networkPerformanceConfig networkPerformanceConfig or {@code null} for none - */ - public Instance setNetworkPerformanceConfig(NetworkPerformanceConfig networkPerformanceConfig) { - this.networkPerformanceConfig = networkPerformanceConfig; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public InstanceParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Instance setParams(InstanceParams params) { - this.params = params; - return this; - } - - /** - * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK - * as default. - * @return value or {@code null} for none - */ - public java.lang.String getPrivateIpv6GoogleAccess() { - return privateIpv6GoogleAccess; - } - - /** - * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK - * as default. - * @param privateIpv6GoogleAccess privateIpv6GoogleAccess or {@code null} for none - */ - public Instance setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess) { - this.privateIpv6GoogleAccess = privateIpv6GoogleAccess; - return this; - } - - /** - * Specifies the reservations that this instance can consume from. - * @return value or {@code null} for none - */ - public ReservationAffinity getReservationAffinity() { - return reservationAffinity; - } - - /** - * Specifies the reservations that this instance can consume from. - * @param reservationAffinity reservationAffinity or {@code null} for none - */ - public Instance setReservationAffinity(ReservationAffinity reservationAffinity) { - this.reservationAffinity = reservationAffinity; - return this; - } - - /** - * Resource policies applied to this instance. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies applied to this instance. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public Instance setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. - * @return value or {@code null} for none - */ - public ResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public Instance setResourceStatus(ResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - return this; - } - - /** - * Sets the scheduling options for this instance. - * @return value or {@code null} for none - */ - public Scheduling getScheduling() { - return scheduling; - } - - /** - * Sets the scheduling options for this instance. - * @param scheduling scheduling or {@code null} for none - */ - public Instance setScheduling(Scheduling scheduling) { - this.scheduling = scheduling; - 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 Instance setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * A list of service accounts, with their specified scopes, authorized for this instance. Only one - * service account per VM instance is supported. - * - * Service accounts generate access tokens that can be accessed through the metadata server and - * used to authenticate applications on the instance. SeeService Accounts for more information. - * @return value or {@code null} for none - */ - public java.util.List getServiceAccounts() { - return serviceAccounts; - } - - /** - * A list of service accounts, with their specified scopes, authorized for this instance. Only one - * service account per VM instance is supported. - * - * Service accounts generate access tokens that can be accessed through the metadata server and - * used to authenticate applications on the instance. SeeService Accounts for more information. - * @param serviceAccounts serviceAccounts or {@code null} for none - */ - public Instance setServiceAccounts(java.util.List serviceAccounts) { - this.serviceAccounts = serviceAccounts; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig; - } - - /** - * @param shieldedInstanceConfig shieldedInstanceConfig or {@code null} for none - */ - public Instance setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) { - this.shieldedInstanceConfig = shieldedInstanceConfig; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy() { - return shieldedInstanceIntegrityPolicy; - } - - /** - * @param shieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy or {@code null} for none - */ - public Instance setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy) { - this.shieldedInstanceIntegrityPolicy = shieldedInstanceIntegrityPolicy; - return this; - } - - /** - * Source machine image - * @return value or {@code null} for none - */ - public java.lang.String getSourceMachineImage() { - return sourceMachineImage; - } - - /** - * Source machine image - * @param sourceMachineImage sourceMachineImage or {@code null} for none - */ - public Instance setSourceMachineImage(java.lang.String sourceMachineImage) { - this.sourceMachineImage = sourceMachineImage; - return this; - } - - /** - * Source machine image encryption key when creating an instance from a machine image. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceMachineImageEncryptionKey() { - return sourceMachineImageEncryptionKey; - } - - /** - * Source machine image encryption key when creating an instance from a machine image. - * @param sourceMachineImageEncryptionKey sourceMachineImageEncryptionKey or {@code null} for none - */ - public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceMachineImageEncryptionKey) { - this.sourceMachineImageEncryptionKey = sourceMachineImageEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. - * @return value or {@code null} for none - */ - public java.lang.Boolean getStartRestricted() { - return startRestricted; - } - - /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. - * @param startRestricted startRestricted or {@code null} for none - */ - public Instance setStartRestricted(java.lang.Boolean startRestricted) { - this.startRestricted = startRestricted; - return this; - } - - /** - * Output only. [Output Only] The status of the instance. One of the following values: - * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For - * more information about the status of the instance, see Instance life cycle. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the instance. One of the following values: - * PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For - * more information about the status of the instance, see Instance life cycle. - * @param status status or {@code null} for none - */ - public Instance setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * @return value or {@code null} for none - */ - public java.lang.String getStatusMessage() { - return statusMessage; - } - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * @param statusMessage statusMessage or {@code null} for none - */ - public Instance setStatusMessage(java.lang.String statusMessage) { - this.statusMessage = statusMessage; - return this; - } - - /** - * Tags to apply to this instance. Tags are used to identify valid sources or targets for network - * firewalls and are specified by the client during instance creation. The tags can be later - * modified by the setTags method. Each tag within the list must comply withRFC1035. Multiple tags - * can be specified via the 'tags.items' field. - * @return value or {@code null} for none - */ - public Tags getTags() { - return tags; - } - - /** - * Tags to apply to this instance. Tags are used to identify valid sources or targets for network - * firewalls and are specified by the client during instance creation. The tags can be later - * modified by the setTags method. Each tag within the list must comply withRFC1035. Multiple tags - * can be specified via the 'tags.items' field. - * @param tags tags or {@code null} for none - */ - public Instance setTags(Tags tags) { - this.tags = tags; - return this; - } - - /** - * @return value or {@code null} for none - */ - public WorkloadIdentityConfig getWorkloadIdentityConfig() { - return workloadIdentityConfig; - } - - /** - * @param workloadIdentityConfig workloadIdentityConfig or {@code null} for none - */ - public Instance setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig) { - this.workloadIdentityConfig = workloadIdentityConfig; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the instance resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the instance resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public Instance setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public Instance set(String fieldName, Object value) { - return (Instance) super.set(fieldName, value); - } - - @Override - public Instance clone() { - return (Instance) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceAggregatedList.java deleted file mode 100644 index a8a811efb25..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceAggregatedList. - * - *

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 InstanceAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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; - - /** - * An object that contains a list of instances scoped by zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for - * aggregated lists of Instance resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 InstanceAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * An object that contains a list of instances scoped by zone. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * An object that contains a list of instances scoped by zone. - * @param items items or {@code null} for none - */ - public InstanceAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for - * aggregated lists of Instance resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for - * aggregated lists of Instance resources. - * @param kind kind or {@code null} for none - */ - public InstanceAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceAggregatedList 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 InstanceAggregatedList 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 InstanceAggregatedList 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 InstanceAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceAggregatedList set(String fieldName, Object value) { - return (InstanceAggregatedList) super.set(fieldName, value); - } - - @Override - public InstanceAggregatedList clone() { - return (InstanceAggregatedList) 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 InstanceAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionData.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionData.java deleted file mode 100644 index 4a07b9b540f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionData.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceConsumptionData. - * - *

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 InstanceConsumptionData extends com.google.api.client.json.GenericJson { - - /** - * Output only. Resources consumed by the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceConsumptionInfo consumptionInfo; - - /** - * Output only. Server-defined URL for the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * Output only. Resources consumed by the instance. - * @return value or {@code null} for none - */ - public InstanceConsumptionInfo getConsumptionInfo() { - return consumptionInfo; - } - - /** - * Output only. Resources consumed by the instance. - * @param consumptionInfo consumptionInfo or {@code null} for none - */ - public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { - this.consumptionInfo = consumptionInfo; - return this; - } - - /** - * Output only. Server-defined URL for the instance. - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Output only. Server-defined URL for the instance. - * @param instance instance or {@code null} for none - */ - public InstanceConsumptionData setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - @Override - public InstanceConsumptionData set(String fieldName, Object value) { - return (InstanceConsumptionData) super.set(fieldName, value); - } - - @Override - public InstanceConsumptionData clone() { - return (InstanceConsumptionData) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionInfo.java deleted file mode 100644 index a7c9e0a18ac..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceConsumptionInfo.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceConsumptionInfo. - * - *

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 InstanceConsumptionInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. The number of virtual CPUs that are available to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer guestCpus; - - /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer localSsdGb; - - /** - * Output only. The amount of physical memory available to the instance, defined in MiB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer memoryMb; - - /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minNodeCpus; - - /** - * Output only. The number of virtual CPUs that are available to the instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getGuestCpus() { - return guestCpus; - } - - /** - * Output only. The number of virtual CPUs that are available to the instance. - * @param guestCpus guestCpus or {@code null} for none - */ - public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { - this.guestCpus = guestCpus; - return this; - } - - /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. - * @return value or {@code null} for none - */ - public java.lang.Integer getLocalSsdGb() { - return localSsdGb; - } - - /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. - * @param localSsdGb localSsdGb or {@code null} for none - */ - public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { - this.localSsdGb = localSsdGb; - return this; - } - - /** - * Output only. The amount of physical memory available to the instance, defined in MiB. - * @return value or {@code null} for none - */ - public java.lang.Integer getMemoryMb() { - return memoryMb; - } - - /** - * Output only. The amount of physical memory available to the instance, defined in MiB. - * @param memoryMb memoryMb or {@code null} for none - */ - public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { - this.memoryMb = memoryMb; - return this; - } - - /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinNodeCpus() { - return minNodeCpus; - } - - /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. - * @param minNodeCpus minNodeCpus or {@code null} for none - */ - public InstanceConsumptionInfo setMinNodeCpus(java.lang.Integer minNodeCpus) { - this.minNodeCpus = minNodeCpus; - return this; - } - - @Override - public InstanceConsumptionInfo set(String fieldName, Object value) { - return (InstanceConsumptionInfo) super.set(fieldName, value); - } - - @Override - public InstanceConsumptionInfo clone() { - return (InstanceConsumptionInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicy.java deleted file mode 100644 index ee028dd9303..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicy.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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.preview.model; - -/** - * A flexible specification of machine types for instances to create. - * - *

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 InstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specification of alternative, flexible instance subsets. One of them will be selected to create - * the instances based on various criteria, like: - ranks, - location policy, - current capacity, - * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE - * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map instanceSelections; - - /** - * Specification of alternative, flexible instance subsets. One of them will be selected to create - * the instances based on various criteria, like: - ranks, - location policy, - current capacity, - * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE - * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. - * @return value or {@code null} for none - */ - public java.util.Map getInstanceSelections() { - return instanceSelections; - } - - /** - * Specification of alternative, flexible instance subsets. One of them will be selected to create - * the instances based on various criteria, like: - ranks, - location policy, - current capacity, - * - available reservations (you can specify affinity in InstanceProperties), - SWAN/GOOSE - * limitations. Key is an arbitrary, unique RFC1035 string that identifies the instance selection. - * @param instanceSelections instanceSelections or {@code null} for none - */ - public InstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { - this.instanceSelections = instanceSelections; - return this; - } - - @Override - public InstanceFlexibilityPolicy set(String fieldName, Object value) { - return (InstanceFlexibilityPolicy) super.set(fieldName, value); - } - - @Override - public InstanceFlexibilityPolicy clone() { - return (InstanceFlexibilityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicyInstanceSelection.java deleted file mode 100644 index 2ac2bef72ae..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceFlexibilityPolicyInstanceSelection.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specification of machine type to use. Every position inside this message is an alternative. The - * count specified in the shape flexibility must not exceed the number of entries in - * per_instance_properties or the capacity of the name_pattern, if used. - * - *

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 InstanceFlexibilityPolicyInstanceSelection extends com.google.api.client.json.GenericJson { - - /** - * Disks to be attached to the instances created from in this selection. They override the disks - * specified in the instance properties. - * 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); - } - - /** - * Alternative machine types to use for instances that are created from these properties. This - * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial - * URLs. - * The value may be {@code null}. - */ - @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; - - /** - * Rank when prioritizing the shape flexibilities. The instance selections with rank are - * considered first, 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; - - /** - * Disks to be attached to the instances created from in this selection. They override the disks - * specified in the instance properties. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * Disks to be attached to the instances created from in this selection. They override the disks - * specified in the instance properties. - * @param disks disks or {@code null} for none - */ - public InstanceFlexibilityPolicyInstanceSelection setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - /** - * Alternative machine types to use for instances that are created from these properties. This - * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial - * URLs. - * @return value or {@code null} for none - */ - public java.util.List getMachineTypes() { - return machineTypes; - } - - /** - * Alternative machine types to use for instances that are created from these properties. This - * field only accepts a machine type names, for example `n2-standard-4` and not URLs or partial - * URLs. - * @param machineTypes machineTypes or {@code null} for none - */ - public InstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { - this.machineTypes = machineTypes; - 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 InstanceFlexibilityPolicyInstanceSelection setMinCpuPlatform(java.lang.String minCpuPlatform) { - this.minCpuPlatform = minCpuPlatform; - return this; - } - - /** - * Rank when prioritizing the shape flexibilities. The instance selections with rank are - * considered first, 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; - } - - /** - * Rank when prioritizing the shape flexibilities. The instance selections with rank are - * considered first, in the ascending order of the rank. If not set, defaults to 0. - * @param rank rank or {@code null} for none - */ - public InstanceFlexibilityPolicyInstanceSelection setRank(java.lang.Long rank) { - this.rank = rank; - return this; - } - - @Override - public InstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { - return (InstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); - } - - @Override - public InstanceFlexibilityPolicyInstanceSelection clone() { - return (InstanceFlexibilityPolicyInstanceSelection) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroup.java deleted file mode 100644 index 65f78d98abc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroup.java +++ /dev/null @@ -1,445 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Instance Group resource. - * - * Instance Groups can be used to configure a target forload balancing. - * - * Instance groups can either be managed or unmanaged. - * - * To create managed instance groups, use the instanceGroupManager orregionInstanceGroupManager - * resource instead. - * - * Use zonal unmanaged instance groups if you need to applyload balancing to groups of heterogeneous - * instances or if you need to manage the instances yourself. You cannot create regional unmanaged - * instance groups. - * - * For more information, readInstance groups. - * - *

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 InstanceGroup extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text - * format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint - * to detect conflicts when multiple users change the named ports concurrently. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] A unique identifier for this instance group, generated 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] The resource type, which is alwayscompute#instanceGroup for instance - * groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Optional. Assigns a name to a port number. For example:{name: "http", port: 80} - * - * This allows the system to reference ports by the assigned name instead of a port number. Named - * ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: "app1", - * port: 8081}, {name: "app2", port: 8082}] - * - * Named ports apply to all instances in this instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List namedPorts; - - /** - * [Output Only] The URL of the network to which all instances in the instance group belong. If - * your instance has multiple network interfaces, then the network and subnetwork fields only - * refer to the network and subnet used by your primary interface (nic0). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Output only. [Output Only] The total number of instances in the instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** - * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance - * group belong. If your instance has multiple network interfaces, then the network and subnetwork - * fields only refer to the network and subnet used by your primary interface (nic0). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text - * format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text - * format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InstanceGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public InstanceGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint - * to detect conflicts when multiple users change the named ports concurrently. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint - * to detect conflicts when multiple users change the named ports concurrently. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint - * to detect conflicts when multiple users change the named ports concurrently. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public InstanceGroup setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Output only. [Output Only] The fingerprint of the named ports. The system uses this fingerprint - * to detect conflicts when multiple users change the named ports concurrently. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstanceGroup encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this instance group, generated by the - * server. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this instance group, generated by the - * server. - * @param id id or {@code null} for none - */ - public InstanceGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance - * groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance - * groups. - * @param kind kind or {@code null} for none - */ - public InstanceGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the instance group. The name must be 1-63 characters long, and comply withRFC1035. - * @param name name or {@code null} for none - */ - public InstanceGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Optional. Assigns a name to a port number. For example:{name: "http", port: 80} - * - * This allows the system to reference ports by the assigned name instead of a port number. Named - * ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: "app1", - * port: 8081}, {name: "app2", port: 8082}] - * - * Named ports apply to all instances in this instance group. - * @return value or {@code null} for none - */ - public java.util.List getNamedPorts() { - return namedPorts; - } - - /** - * Optional. Assigns a name to a port number. For example:{name: "http", port: 80} - * - * This allows the system to reference ports by the assigned name instead of a port number. Named - * ports can also contain multiple ports. For example:[{name: "app1", port: 8080}, {name: "app1", - * port: 8081}, {name: "app2", port: 8082}] - * - * Named ports apply to all instances in this instance group. - * @param namedPorts namedPorts or {@code null} for none - */ - public InstanceGroup setNamedPorts(java.util.List namedPorts) { - this.namedPorts = namedPorts; - return this; - } - - /** - * [Output Only] The URL of the network to which all instances in the instance group belong. If - * your instance has multiple network interfaces, then the network and subnetwork fields only - * refer to the network and subnet used by your primary interface (nic0). - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * [Output Only] The URL of the network to which all instances in the instance group belong. If - * your instance has multiple network interfaces, then the network and subnetwork fields only - * refer to the network and subnet used by your primary interface (nic0). - * @param network network or {@code null} for none - */ - public InstanceGroup setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). - * @param region region or {@code null} for none - */ - public InstanceGroup setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] The total number of instances in the instance group. - * @return value or {@code null} for none - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * Output only. [Output Only] The total number of instances in the instance group. - * @param size size or {@code null} for none - */ - public InstanceGroup setSize(java.lang.Integer size) { - this.size = size; - return this; - } - - /** - * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance - * group belong. If your instance has multiple network interfaces, then the network and subnetwork - * fields only refer to the network and subnet used by your primary interface (nic0). - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * Output only. [Output Only] The URL of the subnetwork to which all instances in the instance - * group belong. If your instance has multiple network interfaces, then the network and subnetwork - * fields only refer to the network and subnet used by your primary interface (nic0). - * @param subnetwork subnetwork or {@code null} for none - */ - public InstanceGroup setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). - * @param zone zone or {@code null} for none - */ - public InstanceGroup setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InstanceGroup set(String fieldName, Object value) { - return (InstanceGroup) super.set(fieldName, value); - } - - @Override - public InstanceGroup clone() { - return (InstanceGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupAggregatedList.java deleted file mode 100644 index 65f385876ef..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupAggregatedList. - * - *

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 InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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 InstanceGroupsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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. [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public InstanceGroupAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceGroupsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of InstanceGroupsScopedList resources. - * @param items items or {@code null} for none - */ - public InstanceGroupAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. - * @param kind kind or {@code null} for none - */ - public InstanceGroupAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupAggregatedList 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 InstanceGroupAggregatedList 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 InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { - this.unreachables = unreachables; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public InstanceGroupAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupAggregatedList set(String fieldName, Object value) { - return (InstanceGroupAggregatedList) super.set(fieldName, value); - } - - @Override - public InstanceGroupAggregatedList clone() { - return (InstanceGroupAggregatedList) super.clone(); - } - - /** - * Output only. [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 InstanceGroupAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupList.java deleted file mode 100644 index a8b17440de9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of InstanceGroup resources. - * - *

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 InstanceGroupList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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 InstanceGroup 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 InstanceGroup 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(InstanceGroup.class); - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public InstanceGroupList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceGroup resources. - * @param items items or {@code null} for none - */ - public InstanceGroupList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. - * @param kind kind or {@code null} for none - */ - public InstanceGroupList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupList 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 InstanceGroupList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public InstanceGroupList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupList set(String fieldName, Object value) { - return (InstanceGroupList) super.set(fieldName, value); - } - - @Override - public InstanceGroupList clone() { - return (InstanceGroupList) super.clone(); - } - - /** - * Output only. [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 InstanceGroupListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManager.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManager.java deleted file mode 100644 index b6df87947b3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManager.java +++ /dev/null @@ -1,991 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Managed Instance Group resource. - * - * An instance group is a collection of VM instances that you can manage as a single entity. For - * more information, readInstance groups. - * - * For zonal Managed Instance Group, use the instanceGroupManagers resource. - * - * For regional Managed Instance Group, use theregionInstanceGroupManagers 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 InstanceGroupManager extends com.google.api.client.json.GenericJson { - - /** - * Specifies configuration that overrides the instance template configuration for the group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerAllInstancesConfig allInstancesConfig; - - /** - * The autohealing policy for this managed instance group. You can specify only one value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List autoHealingPolicies; - - /** - * The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. - * The maximum character length is 58 and the name must comply with RFC1035 format. - * - * When a VM is created in the group, the MIG appends a hyphen and a random four-character string - * to the base instance name. If you want the MIG to assign sequential numbers instead of a random - * string, then end the base instance name with a hyphen followed by one or more hash symbols. The - * hash symbols indicate the number of digits. For example, a base instance name of "vm-###" - * results in "vm-001" as a VM name. @pattern - * [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String baseInstanceName; - - /** - * Output only. The creation timestamp for this managed instance group inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. The list of instance actions and the number of instances in this managed instance - * group that are scheduled for each of those actions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerActionsSummary currentActions; - - /** - * An optional description of this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Policy specifying the intended distribution of managed instances across zones in a regional - * managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DistributionPolicy distributionPolicy; - - /** - * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored - * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to - * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. A unique identifier for this resource type. The server generates this identifier. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger id; - - /** - * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance - * flexibility configuration on MIG overrides instance template configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; - - /** - * Output only. The URL of the Instance Group resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** - * The repair policy for this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerInstanceLifecyclePolicy instanceLifecyclePolicy; - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create all new instances in the managed instance group. The templates for - * existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Pagination behavior of the listManagedInstances API method for this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String listManagedInstancesResults; - - /** - * The name of the managed instance group. The name must be 1-63 characters long, and comply - * withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [Output Only] Named ports configured on the Instance Groups complementary to this Instance - * Group Manager. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List namedPorts; - - /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Resource policies for this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerResourcePolicies resourcePolicies; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * Output only. The URL for this managed instance group. The server defines this URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Standby policy for stopped and suspended instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStandbyPolicy standbyPolicy; - - /** - * Stateful configuration for this Instanced Group Manager - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StatefulPolicy statefulPolicy; - - /** - * Output only. The status of this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatus status; - - /** - * The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. - * The target pools automatically apply to all of the instances in the managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetPools; - - /** - * The target number of running instances for this managed instance group. You can reduce this - * number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing - * the group also changes this number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer targetSize; - - /** - * The policy that specifies how the MIG creates its VMs to achieve the target size. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerTargetSizePolicy targetSizePolicy; - - /** - * The target number of stopped instances for this managed instance group. This number changes - * when you: - Stop instance using the stopInstances method or start instances using - * the startInstances method. - Manually change the targetStoppedSize using the update - * method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer targetStoppedSize; - - /** - * The target number of suspended instances for this managed instance group. This number changes - * when you: - Suspend instance using the suspendInstances method or resume instances - * using the resumeInstances method. - Manually change the targetSuspendedSize using the - * update method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer targetSuspendedSize; - - /** - * The update policy for this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerUpdatePolicy updatePolicy; - - /** - * Specifies the instance templates used by this managed instance group to create instances. - * - * Each version is defined by an instanceTemplate and aname. Every version can appear at most once - * per instance group. This field overrides the top-level instanceTemplate field. Read more about - * therelationships between these fields. Exactly one version must leave thetargetSize field - * unset. That version will be applied to all remaining instances. For more information, read - * aboutcanary updates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List versions; - - /** - * Output only. The URL of azone where the managed instance group is located (for zonal - * resources). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Specifies configuration that overrides the instance template configuration for the group. - * @return value or {@code null} for none - */ - public InstanceGroupManagerAllInstancesConfig getAllInstancesConfig() { - return allInstancesConfig; - } - - /** - * Specifies configuration that overrides the instance template configuration for the group. - * @param allInstancesConfig allInstancesConfig or {@code null} for none - */ - public InstanceGroupManager setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig allInstancesConfig) { - this.allInstancesConfig = allInstancesConfig; - return this; - } - - /** - * The autohealing policy for this managed instance group. You can specify only one value. - * @return value or {@code null} for none - */ - public java.util.List getAutoHealingPolicies() { - return autoHealingPolicies; - } - - /** - * The autohealing policy for this managed instance group. You can specify only one value. - * @param autoHealingPolicies autoHealingPolicies or {@code null} for none - */ - public InstanceGroupManager setAutoHealingPolicies(java.util.List autoHealingPolicies) { - this.autoHealingPolicies = autoHealingPolicies; - return this; - } - - /** - * The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. - * The maximum character length is 58 and the name must comply with RFC1035 format. - * - * When a VM is created in the group, the MIG appends a hyphen and a random four-character string - * to the base instance name. If you want the MIG to assign sequential numbers instead of a random - * string, then end the base instance name with a hyphen followed by one or more hash symbols. The - * hash symbols indicate the number of digits. For example, a base instance name of "vm-###" - * results in "vm-001" as a VM name. @pattern - * [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) - * @return value or {@code null} for none - */ - public java.lang.String getBaseInstanceName() { - return baseInstanceName; - } - - /** - * The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. - * The maximum character length is 58 and the name must comply with RFC1035 format. - * - * When a VM is created in the group, the MIG appends a hyphen and a random four-character string - * to the base instance name. If you want the MIG to assign sequential numbers instead of a random - * string, then end the base instance name with a hyphen followed by one or more hash symbols. The - * hash symbols indicate the number of digits. For example, a base instance name of "vm-###" - * results in "vm-001" as a VM name. @pattern - * [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?)) - * @param baseInstanceName baseInstanceName or {@code null} for none - */ - public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceName) { - this.baseInstanceName = baseInstanceName; - return this; - } - - /** - * Output only. The creation timestamp for this managed instance group inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. The creation timestamp for this managed instance group inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. The list of instance actions and the number of instances in this managed instance - * group that are scheduled for each of those actions. - * @return value or {@code null} for none - */ - public InstanceGroupManagerActionsSummary getCurrentActions() { - return currentActions; - } - - /** - * Output only. The list of instance actions and the number of instances in this managed instance - * group that are scheduled for each of those actions. - * @param currentActions currentActions or {@code null} for none - */ - public InstanceGroupManager setCurrentActions(InstanceGroupManagerActionsSummary currentActions) { - this.currentActions = currentActions; - return this; - } - - /** - * An optional description of this resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. - * @param description description or {@code null} for none - */ - public InstanceGroupManager setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Policy specifying the intended distribution of managed instances across zones in a regional - * managed instance group. - * @return value or {@code null} for none - */ - public DistributionPolicy getDistributionPolicy() { - return distributionPolicy; - } - - /** - * Policy specifying the intended distribution of managed instances across zones in a regional - * managed instance group. - * @param distributionPolicy distributionPolicy or {@code null} for none - */ - public InstanceGroupManager setDistributionPolicy(DistributionPolicy distributionPolicy) { - this.distributionPolicy = distributionPolicy; - return this; - } - - /** - * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored - * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to - * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored - * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to - * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored - * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to - * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public InstanceGroupManager setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored - * when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to - * update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. A unique identifier for this resource type. The server generates this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. A unique identifier for this resource type. The server generates this identifier. - * @param id id or {@code null} for none - */ - public InstanceGroupManager setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance - * flexibility configuration on MIG overrides instance template configuration. - * @return value or {@code null} for none - */ - public InstanceGroupManagerInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() { - return instanceFlexibilityPolicy; - } - - /** - * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance - * flexibility configuration on MIG overrides instance template configuration. - * @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none - */ - public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy) { - this.instanceFlexibilityPolicy = instanceFlexibilityPolicy; - return this; - } - - /** - * Output only. The URL of the Instance Group resource. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** - * Output only. The URL of the Instance Group resource. - * @param instanceGroup instanceGroup or {@code null} for none - */ - public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - return this; - } - - /** - * The repair policy for this managed instance group. - * @return value or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicy getInstanceLifecyclePolicy() { - return instanceLifecyclePolicy; - } - - /** - * The repair policy for this managed instance group. - * @param instanceLifecyclePolicy instanceLifecyclePolicy or {@code null} for none - */ - public InstanceGroupManager setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy instanceLifecyclePolicy) { - this.instanceLifecyclePolicy = instanceLifecyclePolicy; - return this; - } - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create all new instances in the managed instance group. The templates for - * existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create all new instances in the managed instance group. The templates for - * existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * @param instanceTemplate instanceTemplate or {@code null} for none - */ - public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplate) { - this.instanceTemplate = instanceTemplate; - return this; - } - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. - * @param kind kind or {@code null} for none - */ - public InstanceGroupManager setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Pagination behavior of the listManagedInstances API method for this managed instance group. - * @return value or {@code null} for none - */ - public java.lang.String getListManagedInstancesResults() { - return listManagedInstancesResults; - } - - /** - * Pagination behavior of the listManagedInstances API method for this managed instance group. - * @param listManagedInstancesResults listManagedInstancesResults or {@code null} for none - */ - public InstanceGroupManager setListManagedInstancesResults(java.lang.String listManagedInstancesResults) { - this.listManagedInstancesResults = listManagedInstancesResults; - return this; - } - - /** - * The name of the managed instance group. The name must be 1-63 characters long, and comply - * withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the managed instance group. The name must be 1-63 characters long, and comply - * withRFC1035. - * @param name name or {@code null} for none - */ - public InstanceGroupManager setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * [Output Only] Named ports configured on the Instance Groups complementary to this Instance - * Group Manager. - * @return value or {@code null} for none - */ - public java.util.List getNamedPorts() { - return namedPorts; - } - - /** - * [Output Only] Named ports configured on the Instance Groups complementary to this Instance - * Group Manager. - * @param namedPorts namedPorts or {@code null} for none - */ - public InstanceGroupManager setNamedPorts(java.util.List namedPorts) { - this.namedPorts = namedPorts; - return this; - } - - /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). - * @param region region or {@code null} for none - */ - public InstanceGroupManager setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Resource policies for this managed instance group. - * @return value or {@code null} for none - */ - public InstanceGroupManagerResourcePolicies getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies for this managed instance group. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePolicies resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - return this; - } - - /** - * Output only. The URL for this managed instance group. The server defines this URL. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. The URL for this managed instance group. The server defines this URL. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceGroupManager setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Standby policy for stopped and suspended instances. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStandbyPolicy getStandbyPolicy() { - return standbyPolicy; - } - - /** - * Standby policy for stopped and suspended instances. - * @param standbyPolicy standbyPolicy or {@code null} for none - */ - public InstanceGroupManager setStandbyPolicy(InstanceGroupManagerStandbyPolicy standbyPolicy) { - this.standbyPolicy = standbyPolicy; - return this; - } - - /** - * Stateful configuration for this Instanced Group Manager - * @return value or {@code null} for none - */ - public StatefulPolicy getStatefulPolicy() { - return statefulPolicy; - } - - /** - * Stateful configuration for this Instanced Group Manager - * @param statefulPolicy statefulPolicy or {@code null} for none - */ - public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { - this.statefulPolicy = statefulPolicy; - return this; - } - - /** - * Output only. The status of this managed instance group. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatus getStatus() { - return status; - } - - /** - * Output only. The status of this managed instance group. - * @param status status or {@code null} for none - */ - public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { - this.status = status; - return this; - } - - /** - * The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. - * The target pools automatically apply to all of the instances in the managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getTargetPools() { - return targetPools; - } - - /** - * The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. - * The target pools automatically apply to all of the instances in the managed instance group. - * @param targetPools targetPools or {@code null} for none - */ - public InstanceGroupManager setTargetPools(java.util.List targetPools) { - this.targetPools = targetPools; - return this; - } - - /** - * The target number of running instances for this managed instance group. You can reduce this - * number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing - * the group also changes this number. - * @return value or {@code null} for none - */ - public java.lang.Integer getTargetSize() { - return targetSize; - } - - /** - * The target number of running instances for this managed instance group. You can reduce this - * number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing - * the group also changes this number. - * @param targetSize targetSize or {@code null} for none - */ - public InstanceGroupManager setTargetSize(java.lang.Integer targetSize) { - this.targetSize = targetSize; - return this; - } - - /** - * The policy that specifies how the MIG creates its VMs to achieve the target size. - * @return value or {@code null} for none - */ - public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy() { - return targetSizePolicy; - } - - /** - * The policy that specifies how the MIG creates its VMs to achieve the target size. - * @param targetSizePolicy targetSizePolicy or {@code null} for none - */ - public InstanceGroupManager setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy targetSizePolicy) { - this.targetSizePolicy = targetSizePolicy; - return this; - } - - /** - * The target number of stopped instances for this managed instance group. This number changes - * when you: - Stop instance using the stopInstances method or start instances using - * the startInstances method. - Manually change the targetStoppedSize using the update - * method. - * @return value or {@code null} for none - */ - public java.lang.Integer getTargetStoppedSize() { - return targetStoppedSize; - } - - /** - * The target number of stopped instances for this managed instance group. This number changes - * when you: - Stop instance using the stopInstances method or start instances using - * the startInstances method. - Manually change the targetStoppedSize using the update - * method. - * @param targetStoppedSize targetStoppedSize or {@code null} for none - */ - public InstanceGroupManager setTargetStoppedSize(java.lang.Integer targetStoppedSize) { - this.targetStoppedSize = targetStoppedSize; - return this; - } - - /** - * The target number of suspended instances for this managed instance group. This number changes - * when you: - Suspend instance using the suspendInstances method or resume instances - * using the resumeInstances method. - Manually change the targetSuspendedSize using the - * update method. - * @return value or {@code null} for none - */ - public java.lang.Integer getTargetSuspendedSize() { - return targetSuspendedSize; - } - - /** - * The target number of suspended instances for this managed instance group. This number changes - * when you: - Suspend instance using the suspendInstances method or resume instances - * using the resumeInstances method. - Manually change the targetSuspendedSize using the - * update method. - * @param targetSuspendedSize targetSuspendedSize or {@code null} for none - */ - public InstanceGroupManager setTargetSuspendedSize(java.lang.Integer targetSuspendedSize) { - this.targetSuspendedSize = targetSuspendedSize; - return this; - } - - /** - * The update policy for this managed instance group. - * @return value or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy getUpdatePolicy() { - return updatePolicy; - } - - /** - * The update policy for this managed instance group. - * @param updatePolicy updatePolicy or {@code null} for none - */ - public InstanceGroupManager setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy) { - this.updatePolicy = updatePolicy; - return this; - } - - /** - * Specifies the instance templates used by this managed instance group to create instances. - * - * Each version is defined by an instanceTemplate and aname. Every version can appear at most once - * per instance group. This field overrides the top-level instanceTemplate field. Read more about - * therelationships between these fields. Exactly one version must leave thetargetSize field - * unset. That version will be applied to all remaining instances. For more information, read - * aboutcanary updates. - * @return value or {@code null} for none - */ - public java.util.List getVersions() { - return versions; - } - - /** - * Specifies the instance templates used by this managed instance group to create instances. - * - * Each version is defined by an instanceTemplate and aname. Every version can appear at most once - * per instance group. This field overrides the top-level instanceTemplate field. Read more about - * therelationships between these fields. Exactly one version must leave thetargetSize field - * unset. That version will be applied to all remaining instances. For more information, read - * aboutcanary updates. - * @param versions versions or {@code null} for none - */ - public InstanceGroupManager setVersions(java.util.List versions) { - this.versions = versions; - return this; - } - - /** - * Output only. The URL of azone where the managed instance group is located (for zonal - * resources). - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. The URL of azone where the managed instance group is located (for zonal - * resources). - * @param zone zone or {@code null} for none - */ - public InstanceGroupManager setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InstanceGroupManager set(String fieldName, Object value) { - return (InstanceGroupManager) super.set(fieldName, value); - } - - @Override - public InstanceGroupManager clone() { - return (InstanceGroupManager) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerActionsSummary.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerActionsSummary.java deleted file mode 100644 index 2477786a43e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerActionsSummary.java +++ /dev/null @@ -1,420 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerActionsSummary. - * - *

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 InstanceGroupManagerActionsSummary extends com.google.api.client.json.GenericJson { - - /** - * Output only. The total number of instances in the managed instance group that are scheduled to - * be abandoned. Abandoning an instance removes it from the managed instance group without - * deleting it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer abandoning; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * created or are currently being created. If the group fails to create any of these instances, it - * tries again until it creates the instance successfully. - * - * If you have disabled creation retries, this field will not be populated; instead, the - * creatingWithoutRetries field will be populated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer creating; - - /** - * Output only. The number of instances that the managed instance group will attempt to create. - * The group attempts to create each instance only once. If the group fails to create any of these - * instances, it decreases the group's targetSize value accordingly. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer creatingWithoutRetries; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * deleted or are currently being deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer deleting; - - /** - * Output only. The number of instances in the managed instance group that are running and have no - * scheduled actions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer none; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * recreated or are currently being being recreated. Recreating an instance deletes the existing - * root persistent disk and creates a new disk from the image that is defined in the instance - * template. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer recreating; - - /** - * Output only. The number of instances in the managed instance group that are being reconfigured - * with properties that do not require a restart or a recreate action. For example, setting or - * removing target pools for the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer refreshing; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * restarted or are currently being restarted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer restarting; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * resumed or are currently being resumed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer resuming; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * started or are currently being started. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer starting; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * stopped or are currently being stopped. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer stopping; - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * suspended or are currently being suspended. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer suspending; - - /** - * Output only. The number of instances in the managed instance group that are being verified. See - * the managedInstances[].currentAction property in the listManagedInstances method documentation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer verifying; - - /** - * Output only. The total number of instances in the managed instance group that are scheduled to - * be abandoned. Abandoning an instance removes it from the managed instance group without - * deleting it. - * @return value or {@code null} for none - */ - public java.lang.Integer getAbandoning() { - return abandoning; - } - - /** - * Output only. The total number of instances in the managed instance group that are scheduled to - * be abandoned. Abandoning an instance removes it from the managed instance group without - * deleting it. - * @param abandoning abandoning or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setAbandoning(java.lang.Integer abandoning) { - this.abandoning = abandoning; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * created or are currently being created. If the group fails to create any of these instances, it - * tries again until it creates the instance successfully. - * - * If you have disabled creation retries, this field will not be populated; instead, the - * creatingWithoutRetries field will be populated. - * @return value or {@code null} for none - */ - public java.lang.Integer getCreating() { - return creating; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * created or are currently being created. If the group fails to create any of these instances, it - * tries again until it creates the instance successfully. - * - * If you have disabled creation retries, this field will not be populated; instead, the - * creatingWithoutRetries field will be populated. - * @param creating creating or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setCreating(java.lang.Integer creating) { - this.creating = creating; - return this; - } - - /** - * Output only. The number of instances that the managed instance group will attempt to create. - * The group attempts to create each instance only once. If the group fails to create any of these - * instances, it decreases the group's targetSize value accordingly. - * @return value or {@code null} for none - */ - public java.lang.Integer getCreatingWithoutRetries() { - return creatingWithoutRetries; - } - - /** - * Output only. The number of instances that the managed instance group will attempt to create. - * The group attempts to create each instance only once. If the group fails to create any of these - * instances, it decreases the group's targetSize value accordingly. - * @param creatingWithoutRetries creatingWithoutRetries or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setCreatingWithoutRetries(java.lang.Integer creatingWithoutRetries) { - this.creatingWithoutRetries = creatingWithoutRetries; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * deleted or are currently being deleted. - * @return value or {@code null} for none - */ - public java.lang.Integer getDeleting() { - return deleting; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * deleted or are currently being deleted. - * @param deleting deleting or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setDeleting(java.lang.Integer deleting) { - this.deleting = deleting; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are running and have no - * scheduled actions. - * @return value or {@code null} for none - */ - public java.lang.Integer getNone() { - return none; - } - - /** - * Output only. The number of instances in the managed instance group that are running and have no - * scheduled actions. - * @param none none or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setNone(java.lang.Integer none) { - this.none = none; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * recreated or are currently being being recreated. Recreating an instance deletes the existing - * root persistent disk and creates a new disk from the image that is defined in the instance - * template. - * @return value or {@code null} for none - */ - public java.lang.Integer getRecreating() { - return recreating; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * recreated or are currently being being recreated. Recreating an instance deletes the existing - * root persistent disk and creates a new disk from the image that is defined in the instance - * template. - * @param recreating recreating or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setRecreating(java.lang.Integer recreating) { - this.recreating = recreating; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are being reconfigured - * with properties that do not require a restart or a recreate action. For example, setting or - * removing target pools for the instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getRefreshing() { - return refreshing; - } - - /** - * Output only. The number of instances in the managed instance group that are being reconfigured - * with properties that do not require a restart or a recreate action. For example, setting or - * removing target pools for the instance. - * @param refreshing refreshing or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setRefreshing(java.lang.Integer refreshing) { - this.refreshing = refreshing; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * restarted or are currently being restarted. - * @return value or {@code null} for none - */ - public java.lang.Integer getRestarting() { - return restarting; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * restarted or are currently being restarted. - * @param restarting restarting or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setRestarting(java.lang.Integer restarting) { - this.restarting = restarting; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * resumed or are currently being resumed. - * @return value or {@code null} for none - */ - public java.lang.Integer getResuming() { - return resuming; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * resumed or are currently being resumed. - * @param resuming resuming or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setResuming(java.lang.Integer resuming) { - this.resuming = resuming; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * started or are currently being started. - * @return value or {@code null} for none - */ - public java.lang.Integer getStarting() { - return starting; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * started or are currently being started. - * @param starting starting or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setStarting(java.lang.Integer starting) { - this.starting = starting; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * stopped or are currently being stopped. - * @return value or {@code null} for none - */ - public java.lang.Integer getStopping() { - return stopping; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * stopped or are currently being stopped. - * @param stopping stopping or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setStopping(java.lang.Integer stopping) { - this.stopping = stopping; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * suspended or are currently being suspended. - * @return value or {@code null} for none - */ - public java.lang.Integer getSuspending() { - return suspending; - } - - /** - * Output only. The number of instances in the managed instance group that are scheduled to be - * suspended or are currently being suspended. - * @param suspending suspending or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setSuspending(java.lang.Integer suspending) { - this.suspending = suspending; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that are being verified. See - * the managedInstances[].currentAction property in the listManagedInstances method documentation. - * @return value or {@code null} for none - */ - public java.lang.Integer getVerifying() { - return verifying; - } - - /** - * Output only. The number of instances in the managed instance group that are being verified. See - * the managedInstances[].currentAction property in the listManagedInstances method documentation. - * @param verifying verifying or {@code null} for none - */ - public InstanceGroupManagerActionsSummary setVerifying(java.lang.Integer verifying) { - this.verifying = verifying; - return this; - } - - @Override - public InstanceGroupManagerActionsSummary set(String fieldName, Object value) { - return (InstanceGroupManagerActionsSummary) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerActionsSummary clone() { - return (InstanceGroupManagerActionsSummary) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAggregatedList.java deleted file mode 100644 index 733d78f21e5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerAggregatedList. - * - *

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 InstanceGroupManagerAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 InstanceGroupManagersScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * 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. 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; - - /** - * 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 InstanceGroupManagerAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceGroupManagersScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of InstanceGroupManagersScopedList resources. - * @param items items or {@code null} for none - */ - public InstanceGroupManagerAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. - * @param kind kind or {@code null} for none - */ - public InstanceGroupManagerAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupManagerAggregatedList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceGroupManagerAggregatedList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. Unreachable resources. - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. Unreachable resources. - * @param unreachables unreachables or {@code null} for none - */ - public InstanceGroupManagerAggregatedList 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 InstanceGroupManagerAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupManagerAggregatedList set(String fieldName, Object value) { - return (InstanceGroupManagerAggregatedList) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerAggregatedList clone() { - return (InstanceGroupManagerAggregatedList) 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 InstanceGroupManagerAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAllInstancesConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAllInstancesConfig.java deleted file mode 100644 index 2c693dda936..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAllInstancesConfig.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerAllInstancesConfig. - * - *

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 InstanceGroupManagerAllInstancesConfig extends com.google.api.client.json.GenericJson { - - /** - * Properties to set on all instances in the group. - * - * You can add or modify properties using theinstanceGroupManagers.patch - * orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must - * update the group's instances to apply the configuration. To apply the configuration, set the - * group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances - * method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstancePropertiesPatch properties; - - /** - * Properties to set on all instances in the group. - * - * You can add or modify properties using theinstanceGroupManagers.patch - * orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must - * update the group's instances to apply the configuration. To apply the configuration, set the - * group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances - * method. - * @return value or {@code null} for none - */ - public InstancePropertiesPatch getProperties() { - return properties; - } - - /** - * Properties to set on all instances in the group. - * - * You can add or modify properties using theinstanceGroupManagers.patch - * orregionInstanceGroupManagers.patch. After settingallInstancesConfig on the group, you must - * update the group's instances to apply the configuration. To apply the configuration, set the - * group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances - * method. - * @param properties properties or {@code null} for none - */ - public InstanceGroupManagerAllInstancesConfig setProperties(InstancePropertiesPatch properties) { - this.properties = properties; - return this; - } - - @Override - public InstanceGroupManagerAllInstancesConfig set(String fieldName, Object value) { - return (InstanceGroupManagerAllInstancesConfig) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerAllInstancesConfig clone() { - return (InstanceGroupManagerAllInstancesConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAutoHealingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAutoHealingPolicy.java deleted file mode 100644 index fa9aa80dc42..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerAutoHealingPolicy.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerAutoHealingPolicy. - * - *

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 InstanceGroupManagerAutoHealingPolicy extends com.google.api.client.json.GenericJson { - - /** - * The URL for the health check that signals autohealing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** - * The initial delay is the number of seconds that a new VM takes to initialize and run its - * startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks - * because the VM might be in the startup process. This prevents the MIG from prematurely - * recreating a VM. If the health check receives a healthy response during the initial delay, it - * indicates that the startup process is complete and the VM is ready. The value of initial delay - * must be between 0 and 3600 seconds. The default value is 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer initialDelaySec; - - /** - * The URL for the health check that signals autohealing. - * @return value or {@code null} for none - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** - * The URL for the health check that signals autohealing. - * @param healthCheck healthCheck or {@code null} for none - */ - public InstanceGroupManagerAutoHealingPolicy setHealthCheck(java.lang.String healthCheck) { - this.healthCheck = healthCheck; - return this; - } - - /** - * The initial delay is the number of seconds that a new VM takes to initialize and run its - * startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks - * because the VM might be in the startup process. This prevents the MIG from prematurely - * recreating a VM. If the health check receives a healthy response during the initial delay, it - * indicates that the startup process is complete and the VM is ready. The value of initial delay - * must be between 0 and 3600 seconds. The default value is 0. - * @return value or {@code null} for none - */ - public java.lang.Integer getInitialDelaySec() { - return initialDelaySec; - } - - /** - * The initial delay is the number of seconds that a new VM takes to initialize and run its - * startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks - * because the VM might be in the startup process. This prevents the MIG from prematurely - * recreating a VM. If the health check receives a healthy response during the initial delay, it - * indicates that the startup process is complete and the VM is ready. The value of initial delay - * must be between 0 and 3600 seconds. The default value is 0. - * @param initialDelaySec initialDelaySec or {@code null} for none - */ - public InstanceGroupManagerAutoHealingPolicy setInitialDelaySec(java.lang.Integer initialDelaySec) { - this.initialDelaySec = initialDelaySec; - return this; - } - - @Override - public InstanceGroupManagerAutoHealingPolicy set(String fieldName, Object value) { - return (InstanceGroupManagerAutoHealingPolicy) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerAutoHealingPolicy clone() { - return (InstanceGroupManagerAutoHealingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicy.java deleted file mode 100644 index 46d0f1c041c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicy.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerInstanceFlexibilityPolicy. - * - *

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 InstanceGroupManagerInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { - - /** - * Named instance selections configuring properties that the group will use when creating new VMs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map instanceSelections; - - /** - * Named instance selections configuring properties that the group will use when creating new VMs. - * @return value or {@code null} for none - */ - public java.util.Map getInstanceSelections() { - return instanceSelections; - } - - /** - * Named instance selections configuring properties that the group will use when creating new VMs. - * @param instanceSelections instanceSelections or {@code null} for none - */ - public InstanceGroupManagerInstanceFlexibilityPolicy setInstanceSelections(java.util.Map instanceSelections) { - this.instanceSelections = instanceSelections; - return this; - } - - @Override - public InstanceGroupManagerInstanceFlexibilityPolicy set(String fieldName, Object value) { - return (InstanceGroupManagerInstanceFlexibilityPolicy) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerInstanceFlexibilityPolicy clone() { - return (InstanceGroupManagerInstanceFlexibilityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java deleted file mode 100644 index 0bc54904611..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection. - * - *

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 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}. - */ - @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 - * availability. Machine types and instance selections with the same rank have the same - * preference. - * The value may be {@code null}. - */ - @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 - */ - public java.util.List getMachineTypes() { - return machineTypes; - } - - /** - * Full machine-type names, e.g. "n1-standard-16". - * @param machineTypes machineTypes or {@code null} for none - */ - public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setMachineTypes(java.util.List machineTypes) { - this.machineTypes = machineTypes; - 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 - * availability. Machine types and instance selections with the same rank have the same - * preference. - * @return value or {@code null} for none - */ - public java.lang.Integer getRank() { - return rank; - } - - /** - * 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 - * availability. Machine types and instance selections with the same rank have the same - * preference. - * @param rank rank or {@code null} for none - */ - public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setRank(java.lang.Integer rank) { - this.rank = rank; - return this; - } - - @Override - public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { - return (InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection clone() { - return (InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicy.java deleted file mode 100644 index 660638c7f93..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicy.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerInstanceLifecyclePolicy. - * - *

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 InstanceGroupManagerInstanceLifecyclePolicy extends com.google.api.client.json.GenericJson { - - /** - * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is - * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed - * VM by recreating it. For more information, see About repairing VMs in a MIG. - - * DO_NOTHING: MIG does not repair a failed VM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultActionOnFailure; - - /** - * A bit indicating whether to forcefully apply the group's latest configuration when repairing a - * VM. Valid options are: - * - * - NO (default): If configuration updates are available, they are not - * forcefully applied during repair. Instead, configuration updates are applied according to - * the group's update policy. - YES: If configuration updates are available, they are - * applied during repair. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String forceUpdateOnRepair; - - /** - * The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the - * application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION - * (default): MIG uses the same action configured for - * instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an - * unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For - * more information, see About repairing VMs in a MIG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String onFailedHealthCheck; - - /** - * Configuration for VM repairs in the MIG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerInstanceLifecyclePolicyOnRepair onRepair; - - /** - * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is - * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed - * VM by recreating it. For more information, see About repairing VMs in a MIG. - - * DO_NOTHING: MIG does not repair a failed VM. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultActionOnFailure() { - return defaultActionOnFailure; - } - - /** - * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is - * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed - * VM by recreating it. For more information, see About repairing VMs in a MIG. - - * DO_NOTHING: MIG does not repair a failed VM. - * @param defaultActionOnFailure defaultActionOnFailure or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicy setDefaultActionOnFailure(java.lang.String defaultActionOnFailure) { - this.defaultActionOnFailure = defaultActionOnFailure; - return this; - } - - /** - * A bit indicating whether to forcefully apply the group's latest configuration when repairing a - * VM. Valid options are: - * - * - NO (default): If configuration updates are available, they are not - * forcefully applied during repair. Instead, configuration updates are applied according to - * the group's update policy. - YES: If configuration updates are available, they are - * applied during repair. - * @return value or {@code null} for none - */ - public java.lang.String getForceUpdateOnRepair() { - return forceUpdateOnRepair; - } - - /** - * A bit indicating whether to forcefully apply the group's latest configuration when repairing a - * VM. Valid options are: - * - * - NO (default): If configuration updates are available, they are not - * forcefully applied during repair. Instead, configuration updates are applied according to - * the group's update policy. - YES: If configuration updates are available, they are - * applied during repair. - * @param forceUpdateOnRepair forceUpdateOnRepair or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicy setForceUpdateOnRepair(java.lang.String forceUpdateOnRepair) { - this.forceUpdateOnRepair = forceUpdateOnRepair; - return this; - } - - /** - * The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the - * application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION - * (default): MIG uses the same action configured for - * instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an - * unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For - * more information, see About repairing VMs in a MIG. - * @return value or {@code null} for none - */ - public java.lang.String getOnFailedHealthCheck() { - return onFailedHealthCheck; - } - - /** - * The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the - * application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION - * (default): MIG uses the same action configured for - * instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an - * unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For - * more information, see About repairing VMs in a MIG. - * @param onFailedHealthCheck onFailedHealthCheck or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicy setOnFailedHealthCheck(java.lang.String onFailedHealthCheck) { - this.onFailedHealthCheck = onFailedHealthCheck; - return this; - } - - /** - * Configuration for VM repairs in the MIG. - * @return value or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicyOnRepair getOnRepair() { - return onRepair; - } - - /** - * Configuration for VM repairs in the MIG. - * @param onRepair onRepair or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicy setOnRepair(InstanceGroupManagerInstanceLifecyclePolicyOnRepair onRepair) { - this.onRepair = onRepair; - return this; - } - - @Override - public InstanceGroupManagerInstanceLifecyclePolicy set(String fieldName, Object value) { - return (InstanceGroupManagerInstanceLifecyclePolicy) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerInstanceLifecyclePolicy clone() { - return (InstanceGroupManagerInstanceLifecyclePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java deleted file mode 100644 index fe0f36d6c6c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerInstanceLifecyclePolicyOnRepair.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration for VM repairs in the MIG. - * - *

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 InstanceGroupManagerInstanceLifecyclePolicyOnRepair extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO - * (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a - * different zone for the VM during a repair. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowChangingZone; - - /** - * Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO - * (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a - * different zone for the VM during a repair. - * @return value or {@code null} for none - */ - public java.lang.String getAllowChangingZone() { - return allowChangingZone; - } - - /** - * Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO - * (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a - * different zone for the VM during a repair. - * @param allowChangingZone allowChangingZone or {@code null} for none - */ - public InstanceGroupManagerInstanceLifecyclePolicyOnRepair setAllowChangingZone(java.lang.String allowChangingZone) { - this.allowChangingZone = allowChangingZone; - return this; - } - - @Override - public InstanceGroupManagerInstanceLifecyclePolicyOnRepair set(String fieldName, Object value) { - return (InstanceGroupManagerInstanceLifecyclePolicyOnRepair) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerInstanceLifecyclePolicyOnRepair clone() { - return (InstanceGroupManagerInstanceLifecyclePolicyOnRepair) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerList.java deleted file mode 100644 index 5dd9812fca7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] A list of managed instance groups. - * - *

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 InstanceGroupManagerList extends com.google.api.client.json.GenericJson { - - /** - * 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 InstanceGroupManager 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 InstanceGroupManager 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(InstanceGroupManager.class); - } - - /** - * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * 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. Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * 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 InstanceGroupManagerList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceGroupManager resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceGroupManager resources. - * @param items items or {@code null} for none - */ - public InstanceGroupManagerList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. - * @param kind kind or {@code null} for none - */ - public InstanceGroupManagerList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstanceGroupManagerList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupManagerList set(String fieldName, Object value) { - return (InstanceGroupManagerList) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerList clone() { - return (InstanceGroupManagerList) 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 InstanceGroupManagerListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequest.java deleted file mode 100644 index 5982549d342..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequest.java +++ /dev/null @@ -1,402 +0,0 @@ -/* - * 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.preview.model; - -/** - * InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either - * immediately or by queuing the request for the specified time. This resize request is nested under - * InstanceGroupManager and the VMs created by this request are added to the owning - * InstanceGroupManager. - * - *

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 InstanceGroupManagerResizeRequest extends com.google.api.client.json.GenericJson { - - /** - * Output only. The creation timestamp for this resize request inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * 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. A unique identifier for this resource type. The server generates this identifier. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger id; - - /** - * The names of instances to be created by this resize request. The number of names specified - * determines the number of instances to create. The group's target size will be increased by this - * number. This field cannot be used together with 'resize_by'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. The URL of a region where the resize request is located. Populated only for - * regional resize requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Requested run duration for instances that will be created by this request. At the end of the - * run duration instance will be deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration requestedRunDuration; - - /** - * The number of instances to be created by this resize request. The group's target size will be - * increased by this number. This field cannot be used together with 'instances'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer resizeBy; - - /** - * Output only. The URL for this resize request. The server defines this URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Output only. Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. Current state of the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. Status of the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerResizeRequestStatus status; - - /** - * Output only. The URL of a zone where the resize request is located. Populated only for zonal - * resize requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. The creation timestamp for this resize request inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. The creation timestamp for this resize request inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. - * @param description description or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. A unique identifier for this resource type. The server generates this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. A unique identifier for this resource type. The server generates this identifier. - * @param id id or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * The names of instances to be created by this resize request. The number of names specified - * determines the number of instances to create. The group's target size will be increased by this - * number. This field cannot be used together with 'resize_by'. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The names of instances to be created by this resize request. The number of names specified - * determines the number of instances to create. The group's target size will be increased by this - * number. This field cannot be used together with 'resize_by'. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. - * @param kind kind or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035. - * @param name name or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. The URL of a region where the resize request is located. Populated only for - * regional resize requests. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. The URL of a region where the resize request is located. Populated only for - * regional resize requests. - * @param region region or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Requested run duration for instances that will be created by this request. At the end of the - * run duration instance will be deleted. - * @return value or {@code null} for none - */ - public Duration getRequestedRunDuration() { - return requestedRunDuration; - } - - /** - * Requested run duration for instances that will be created by this request. At the end of the - * run duration instance will be deleted. - * @param requestedRunDuration requestedRunDuration or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setRequestedRunDuration(Duration requestedRunDuration) { - this.requestedRunDuration = requestedRunDuration; - return this; - } - - /** - * The number of instances to be created by this resize request. The group's target size will be - * increased by this number. This field cannot be used together with 'instances'. - * @return value or {@code null} for none - */ - public java.lang.Integer getResizeBy() { - return resizeBy; - } - - /** - * The number of instances to be created by this resize request. The group's target size will be - * increased by this number. This field cannot be used together with 'instances'. - * @param resizeBy resizeBy or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setResizeBy(java.lang.Integer resizeBy) { - this.resizeBy = resizeBy; - return this; - } - - /** - * Output only. The URL for this resize request. The server defines this URL. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. The URL for this resize request. The server defines this URL. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. Current state of the request. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. Current state of the request. - * @param state state or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. Status of the request. - * @return value or {@code null} for none - */ - public InstanceGroupManagerResizeRequestStatus getStatus() { - return status; - } - - /** - * Output only. Status of the request. - * @param status status or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setStatus(InstanceGroupManagerResizeRequestStatus status) { - this.status = status; - return this; - } - - /** - * Output only. The URL of a zone where the resize request is located. Populated only for zonal - * resize requests. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. The URL of a zone where the resize request is located. Populated only for zonal - * resize requests. - * @param zone zone or {@code null} for none - */ - public InstanceGroupManagerResizeRequest setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InstanceGroupManagerResizeRequest set(String fieldName, Object value) { - return (InstanceGroupManagerResizeRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerResizeRequest clone() { - return (InstanceGroupManagerResizeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatus.java deleted file mode 100644 index aabd06263d7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatus.java +++ /dev/null @@ -1,403 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerResizeRequestStatus. - * - *

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 InstanceGroupManagerResizeRequestStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. Information about the last attempt to fulfill the request. The value is temporary - * since the ResizeRequest can retry, as long as it's still active and the last attempt value can - * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, - * the value may be stale and no longer show an active problem. The value is cleared when - * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED - * the error describing it will be stored in the "error" field only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt; - - /** - * Output only. Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Output only. Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. - * @param error error or {@code null} for none - */ - public InstanceGroupManagerResizeRequestStatus setError(Error error) { - this.error = error; - return this; - } - - /** - * Output only. Information about the last attempt to fulfill the request. The value is temporary - * since the ResizeRequest can retry, as long as it's still active and the last attempt value can - * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, - * the value may be stale and no longer show an active problem. The value is cleared when - * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED - * the error describing it will be stored in the "error" field only. - * @return value or {@code null} for none - */ - public InstanceGroupManagerResizeRequestStatusLastAttempt getLastAttempt() { - return lastAttempt; - } - - /** - * Output only. Information about the last attempt to fulfill the request. The value is temporary - * since the ResizeRequest can retry, as long as it's still active and the last attempt value can - * either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, - * the value may be stale and no longer show an active problem. The value is cleared when - * ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED - * the error describing it will be stored in the "error" field only. - * @param lastAttempt lastAttempt or {@code null} for none - */ - public InstanceGroupManagerResizeRequestStatus setLastAttempt(InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt) { - this.lastAttempt = lastAttempt; - return this; - } - - @Override - public InstanceGroupManagerResizeRequestStatus set(String fieldName, Object value) { - return (InstanceGroupManagerResizeRequestStatus) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerResizeRequestStatus clone() { - return (InstanceGroupManagerResizeRequestStatus) super.clone(); - } - - /** - * Output only. Fatal errors encountered during the queueing or provisioning phases of the - * ResizeRequest that caused the transition to the FAILED state. Contrary to the last_attempt - * errors, this field is final and errors are never removed from here, as the ResizeRequest is not - * going to retry. - */ - public static final class Error extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider Errors 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(Errors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Error setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Error set(String fieldName, Object value) { - return (Error) super.set(fieldName, value); - } - - @Override - public Error clone() { - return (Error) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public Errors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public Errors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public Errors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public Errors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java deleted file mode 100644 index a240161d269..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerResizeRequestStatusLastAttempt. - * - *

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 InstanceGroupManagerResizeRequestStatusLastAttempt extends com.google.api.client.json.GenericJson { - - /** - * Output only. Errors that prevented the ResizeRequest to be fulfilled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. Errors that prevented the ResizeRequest to be fulfilled. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Output only. Errors that prevented the ResizeRequest to be fulfilled. - * @param error error or {@code null} for none - */ - public InstanceGroupManagerResizeRequestStatusLastAttempt setError(Error error) { - this.error = error; - return this; - } - - @Override - public InstanceGroupManagerResizeRequestStatusLastAttempt set(String fieldName, Object value) { - return (InstanceGroupManagerResizeRequestStatusLastAttempt) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerResizeRequestStatusLastAttempt clone() { - return (InstanceGroupManagerResizeRequestStatusLastAttempt) super.clone(); - } - - /** - * Output only. Errors that prevented the ResizeRequest to be fulfilled. - */ - public static final class Error extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider Errors 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(Errors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Error setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Error set(String fieldName, Object value) { - return (Error) super.set(fieldName, value); - } - - @Override - public Error clone() { - return (Error) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public Errors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public Errors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public Errors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public Errors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestsListResponse.java deleted file mode 100644 index bf8ca129df0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResizeRequestsListResponse.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] A list of resize requests. - * - *

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 InstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 resize request 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 InstanceGroupManagerResizeRequest 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(InstanceGroupManagerResizeRequest.class); - } - - /** - * Output only. Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a - * list of resize requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger than maxResults, use thenextPageToken as a value for the query - * parameterpageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * 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. Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * 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 InstanceGroupManagerResizeRequestsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of resize request resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of resize request resources. - * @param items items or {@code null} for none - */ - public InstanceGroupManagerResizeRequestsListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a - * list of resize requests. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a - * list of resize requests. - * @param kind kind or {@code null} for none - */ - public InstanceGroupManagerResizeRequestsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger than maxResults, use thenextPageToken as a value for the query - * parameterpageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger than maxResults, use thenextPageToken as a value for the query - * parameterpageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupManagerResizeRequestsListResponse set(String fieldName, Object value) { - return (InstanceGroupManagerResizeRequestsListResponse) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerResizeRequestsListResponse clone() { - return (InstanceGroupManagerResizeRequestsListResponse) 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 InstanceGroupManagerResizeRequestsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResourcePolicies.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResourcePolicies.java deleted file mode 100644 index 2d3b3521108..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerResourcePolicies.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerResourcePolicies. - * - *

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 InstanceGroupManagerResourcePolicies extends com.google.api.client.json.GenericJson { - - /** - * The URL of the workload policy that is specified for this managed instance group. It can be a - * full or partial URL. For example, the following are all valid URLs to a workload policy: - * - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resour - * cePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String workloadPolicy; - - /** - * The URL of the workload policy that is specified for this managed instance group. It can be a - * full or partial URL. For example, the following are all valid URLs to a workload policy: - * - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resour - * cePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * @return value or {@code null} for none - */ - public java.lang.String getWorkloadPolicy() { - return workloadPolicy; - } - - /** - * The URL of the workload policy that is specified for this managed instance group. It can be a - * full or partial URL. For example, the following are all valid URLs to a workload policy: - * - https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resour - * cePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - - * regions/region/resourcePolicies/resourcePolicy - * @param workloadPolicy workloadPolicy or {@code null} for none - */ - public InstanceGroupManagerResourcePolicies setWorkloadPolicy(java.lang.String workloadPolicy) { - this.workloadPolicy = workloadPolicy; - return this; - } - - @Override - public InstanceGroupManagerResourcePolicies set(String fieldName, Object value) { - return (InstanceGroupManagerResourcePolicies) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerResourcePolicies clone() { - return (InstanceGroupManagerResourcePolicies) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStandbyPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStandbyPolicy.java deleted file mode 100644 index 08407255ea7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStandbyPolicy.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStandbyPolicy. - * - *

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 InstanceGroupManagerStandbyPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM - * was created. The initial delay gives the initialization script the time to prepare your VM for - * a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default - * value is 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer initialDelaySec; - - /** - * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The - * default mode is `MANUAL`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM - * was created. The initial delay gives the initialization script the time to prepare your VM for - * a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default - * value is 0. - * @return value or {@code null} for none - */ - public java.lang.Integer getInitialDelaySec() { - return initialDelaySec; - } - - /** - * Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM - * was created. The initial delay gives the initialization script the time to prepare your VM for - * a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default - * value is 0. - * @param initialDelaySec initialDelaySec or {@code null} for none - */ - public InstanceGroupManagerStandbyPolicy setInitialDelaySec(java.lang.Integer initialDelaySec) { - this.initialDelaySec = initialDelaySec; - return this; - } - - /** - * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The - * default mode is `MANUAL`. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. The - * default mode is `MANUAL`. - * @param mode mode or {@code null} for none - */ - public InstanceGroupManagerStandbyPolicy setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - @Override - public InstanceGroupManagerStandbyPolicy set(String fieldName, Object value) { - return (InstanceGroupManagerStandbyPolicy) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStandbyPolicy clone() { - return (InstanceGroupManagerStandbyPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatus.java deleted file mode 100644 index 490a2fdf033..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatus.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatus. - * - *

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 InstanceGroupManagerStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. Status of all-instances configuration on the group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig; - - /** - * Output only. The accelerator topology applied to this MIG. Currently only one accelerator - * topology is supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List appliedAcceleratorTopologies; - - /** - * Output only. The URL of theAutoscaler that targets this instance group manager. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoscaler; - - /** - * Output only. The status of bulk instance operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation; - - /** - * Output only. The list of instance statuses and the number of instances in this managed instance - * group that have the status. Currently only shown for TPU MIGs - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusInstanceStatusSummary currentInstanceStatuses; - - /** - * Output only. A bit indicating whether the managed instance group is in a stable state. A stable - * state means that: none of the instances in the managed instance group is currently undergoing - * any type of change (for example, creation, restart, or deletion); no future changes are - * scheduled for instances in the managed instance group; and the managed instance group itself is - * not being modified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isStable; - - /** - * Output only. Stateful status of the given Instance Group Manager. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusStateful stateful; - - /** - * Output only. A status of consistency of Instances' versions with their target version specified - * by version field on Instance Group Manager. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusVersionTarget versionTarget; - - /** - * Output only. Status of all-instances configuration on the group. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { - return allInstancesConfig; - } - - /** - * Output only. Status of all-instances configuration on the group. - * @param allInstancesConfig allInstancesConfig or {@code null} for none - */ - public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { - this.allInstancesConfig = allInstancesConfig; - return this; - } - - /** - * Output only. The accelerator topology applied to this MIG. Currently only one accelerator - * topology is supported. - * @return value or {@code null} for none - */ - public java.util.List getAppliedAcceleratorTopologies() { - return appliedAcceleratorTopologies; - } - - /** - * Output only. The accelerator topology applied to this MIG. Currently only one accelerator - * topology is supported. - * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none - */ - public InstanceGroupManagerStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { - this.appliedAcceleratorTopologies = appliedAcceleratorTopologies; - return this; - } - - /** - * Output only. The URL of theAutoscaler that targets this instance group manager. - * @return value or {@code null} for none - */ - public java.lang.String getAutoscaler() { - return autoscaler; - } - - /** - * Output only. The URL of theAutoscaler that targets this instance group manager. - * @param autoscaler autoscaler or {@code null} for none - */ - public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { - this.autoscaler = autoscaler; - return this; - } - - /** - * Output only. The status of bulk instance operation. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { - return bulkInstanceOperation; - } - - /** - * Output only. The status of bulk instance operation. - * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none - */ - public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { - this.bulkInstanceOperation = bulkInstanceOperation; - return this; - } - - /** - * Output only. The list of instance statuses and the number of instances in this managed instance - * group that have the status. Currently only shown for TPU MIGs - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary getCurrentInstanceStatuses() { - return currentInstanceStatuses; - } - - /** - * Output only. The list of instance statuses and the number of instances in this managed instance - * group that have the status. Currently only shown for TPU MIGs - * @param currentInstanceStatuses currentInstanceStatuses or {@code null} for none - */ - public InstanceGroupManagerStatus setCurrentInstanceStatuses(InstanceGroupManagerStatusInstanceStatusSummary currentInstanceStatuses) { - this.currentInstanceStatuses = currentInstanceStatuses; - return this; - } - - /** - * Output only. A bit indicating whether the managed instance group is in a stable state. A stable - * state means that: none of the instances in the managed instance group is currently undergoing - * any type of change (for example, creation, restart, or deletion); no future changes are - * scheduled for instances in the managed instance group; and the managed instance group itself is - * not being modified. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsStable() { - return isStable; - } - - /** - * Output only. A bit indicating whether the managed instance group is in a stable state. A stable - * state means that: none of the instances in the managed instance group is currently undergoing - * any type of change (for example, creation, restart, or deletion); no future changes are - * scheduled for instances in the managed instance group; and the managed instance group itself is - * not being modified. - * @param isStable isStable or {@code null} for none - */ - public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { - this.isStable = isStable; - return this; - } - - /** - * Output only. Stateful status of the given Instance Group Manager. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusStateful getStateful() { - return stateful; - } - - /** - * Output only. Stateful status of the given Instance Group Manager. - * @param stateful stateful or {@code null} for none - */ - public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { - this.stateful = stateful; - return this; - } - - /** - * Output only. A status of consistency of Instances' versions with their target version specified - * by version field on Instance Group Manager. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusVersionTarget getVersionTarget() { - return versionTarget; - } - - /** - * Output only. A status of consistency of Instances' versions with their target version specified - * by version field on Instance Group Manager. - * @param versionTarget versionTarget or {@code null} for none - */ - public InstanceGroupManagerStatus setVersionTarget(InstanceGroupManagerStatusVersionTarget versionTarget) { - this.versionTarget = versionTarget; - return this; - } - - @Override - public InstanceGroupManagerStatus set(String fieldName, Object value) { - return (InstanceGroupManagerStatus) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatus clone() { - return (InstanceGroupManagerStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopology.java deleted file mode 100644 index e71985978e4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopology.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatusAcceleratorTopology. - * - *

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 InstanceGroupManagerStatusAcceleratorTopology extends com.google.api.client.json.GenericJson { - - /** - * Output only. Topology in the format of: "16x16", "4x4x4", etc. The value is the same as - * configured in the WorkloadPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorTopology; - - /** - * Output only. The state of the accelerator topology. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. The result of the latest accelerator topology state check. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails stateDetails; - - /** - * Output only. Topology in the format of: "16x16", "4x4x4", etc. The value is the same as - * configured in the WorkloadPolicy. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorTopology() { - return acceleratorTopology; - } - - /** - * Output only. Topology in the format of: "16x16", "4x4x4", etc. The value is the same as - * configured in the WorkloadPolicy. - * @param acceleratorTopology acceleratorTopology or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopology setAcceleratorTopology(java.lang.String acceleratorTopology) { - this.acceleratorTopology = acceleratorTopology; - return this; - } - - /** - * Output only. The state of the accelerator topology. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. The state of the accelerator topology. - * @param state state or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopology setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. The result of the latest accelerator topology state check. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails getStateDetails() { - return stateDetails; - } - - /** - * Output only. The result of the latest accelerator topology state check. - * @param stateDetails stateDetails or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopology setStateDetails(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails stateDetails) { - this.stateDetails = stateDetails; - return this; - } - - @Override - public InstanceGroupManagerStatusAcceleratorTopology set(String fieldName, Object value) { - return (InstanceGroupManagerStatusAcceleratorTopology) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusAcceleratorTopology clone() { - return (InstanceGroupManagerStatusAcceleratorTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java deleted file mode 100644 index 805a32bb155..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java +++ /dev/null @@ -1,381 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for - * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. - * - *

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 InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. Encountered errors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. Timestamp is shown only if there is an error. The field has // RFC3339 // text - * format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String timestamp; - - /** - * Output only. Encountered errors. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Output only. Encountered errors. - * @param error error or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { - this.error = error; - return this; - } - - /** - * Output only. Timestamp is shown only if there is an error. The field has // RFC3339 // text - * format. - * @return value or {@code null} for none - */ - public String getTimestamp() { - return timestamp; - } - - /** - * Output only. Timestamp is shown only if there is an error. The field has // RFC3339 // text - * format. - * @param timestamp timestamp or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setTimestamp(String timestamp) { - this.timestamp = timestamp; - return this; - } - - @Override - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails set(String fieldName, Object value) { - return (InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails clone() { - return (InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) super.clone(); - } - - /** - * Output only. Encountered errors. - */ - public static final class Error extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider Errors 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(Errors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Error setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Error set(String fieldName, Object value) { - return (Error) super.set(fieldName, value); - } - - @Override - public Error clone() { - return (Error) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public Errors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public Errors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public Errors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public Errors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAllInstancesConfig.java deleted file mode 100644 index c2824b44660..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatusAllInstancesConfig. - * - *

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 InstanceGroupManagerStatusAllInstancesConfig extends com.google.api.client.json.GenericJson { - - /** - * Output only. Current all-instances configuration revision. This value is in RFC3339 text - * format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String currentRevision; - - /** - * Output only. A bit indicating whether this configuration has been applied to all managed - * instances in the group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean effective; - - /** - * Output only. Current all-instances configuration revision. This value is in RFC3339 text - * format. - * @return value or {@code null} for none - */ - public java.lang.String getCurrentRevision() { - return currentRevision; - } - - /** - * Output only. Current all-instances configuration revision. This value is in RFC3339 text - * format. - * @param currentRevision currentRevision or {@code null} for none - */ - public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang.String currentRevision) { - this.currentRevision = currentRevision; - return this; - } - - /** - * Output only. A bit indicating whether this configuration has been applied to all managed - * instances in the group. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEffective() { - return effective; - } - - /** - * Output only. A bit indicating whether this configuration has been applied to all managed - * instances in the group. - * @param effective effective or {@code null} for none - */ - public InstanceGroupManagerStatusAllInstancesConfig setEffective(java.lang.Boolean effective) { - this.effective = effective; - return this; - } - - @Override - public InstanceGroupManagerStatusAllInstancesConfig set(String fieldName, Object value) { - return (InstanceGroupManagerStatusAllInstancesConfig) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusAllInstancesConfig clone() { - return (InstanceGroupManagerStatusAllInstancesConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperation.java deleted file mode 100644 index 50b2e640d95..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperation.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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.preview.model; - -/** - * Bulk instance operation is the creation of VMs in a MIG when the targetSizePolicy.mode is set to - * BULK. - * - *

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 InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { - - /** - * Output only. Informs whether bulk instance operation is in progress. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean inProgress; - - /** - * Output only. Information from the last progress check of bulk instance operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck; - - /** - * Output only. Informs whether bulk instance operation is in progress. - * @return value or {@code null} for none - */ - public java.lang.Boolean getInProgress() { - return inProgress; - } - - /** - * Output only. Informs whether bulk instance operation is in progress. - * @param inProgress inProgress or {@code null} for none - */ - public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.Boolean inProgress) { - this.inProgress = inProgress; - return this; - } - - /** - * Output only. Information from the last progress check of bulk instance operation. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { - return lastProgressCheck; - } - - /** - * Output only. Information from the last progress check of bulk instance operation. - * @param lastProgressCheck lastProgressCheck or {@code null} for none - */ - public InstanceGroupManagerStatusBulkInstanceOperation setLastProgressCheck(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck lastProgressCheck) { - this.lastProgressCheck = lastProgressCheck; - return this; - } - - @Override - public InstanceGroupManagerStatusBulkInstanceOperation set(String fieldName, Object value) { - return (InstanceGroupManagerStatusBulkInstanceOperation) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusBulkInstanceOperation clone() { - return (InstanceGroupManagerStatusBulkInstanceOperation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java deleted file mode 100644 index f057f3b653d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. - * - *

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 InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { - - /** - * Output only. Errors encountered during bulk instance operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String timestamp; - - /** - * Output only. Errors encountered during bulk instance operation. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Output only. Errors encountered during bulk instance operation. - * @param error error or {@code null} for none - */ - public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { - this.error = error; - return this; - } - - /** - * Output only. Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. - * @return value or {@code null} for none - */ - public String getTimestamp() { - return timestamp; - } - - /** - * Output only. Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. - * @param timestamp timestamp or {@code null} for none - */ - public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setTimestamp(String timestamp) { - this.timestamp = timestamp; - return this; - } - - @Override - public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck set(String fieldName, Object value) { - return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() { - return (InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) super.clone(); - } - - /** - * Output only. Errors encountered during bulk instance operation. - */ - public static final class Error extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider Errors 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(Errors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Error setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Error set(String fieldName, Object value) { - return (Error) super.set(fieldName, value); - } - - @Override - public Error clone() { - return (Error) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public Errors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public Errors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public Errors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public Errors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusInstanceStatusSummary.java deleted file mode 100644 index 5eaa4f407e8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusInstanceStatusSummary.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * 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.preview.model; - -/** - * The list of instance statuses and the number of instances in this managed instance group that - * have the status. For more information about how to interpret each status check the instance - * lifecycle documentation. Currently only shown for TPU MIGs. - * - *

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 InstanceGroupManagerStatusInstanceStatusSummary extends com.google.api.client.json.GenericJson { - - /** - * Output only. The number of instances in the managed instance group that have DEPROVISIONING - * status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer deprovisioning; - - /** - * Output only. The number of instances that have not been created yet or have been deleted. - * Includes only instances that would be shown in the listManagedInstances method and not all - * instances that have been deleted in the lifetime of the MIG. Does not include FlexStart - * instances that are waiting for the resources availability, they are considered as 'pending'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer nonExistent; - - /** - * Output only. The number of instances in the managed instance group that have PENDING status, - * that is FlexStart instances that are waiting for resources. Instances that do not exist because - * of the other reasons are counted as 'non_existent'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer pending; - - /** - * Output only. The number of instances in the managed instance group that have PENDING_STOP - * status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer pendingStop; - - /** - * Output only. The number of instances in the managed instance group that have PROVISIONING - * status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer provisioning; - - /** - * Output only. The number of instances in the managed instance group that have REPAIRING status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer repairing; - - /** - * Output only. The number of instances in the managed instance group that have RUNNING status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer running; - - /** - * Output only. The number of instances in the managed instance group that have STAGING status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer staging; - - /** - * Output only. The number of instances in the managed instance group that have STOPPED status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer stopped; - - /** - * Output only. The number of instances in the managed instance group that have STOPPING status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer stopping; - - /** - * Output only. The number of instances in the managed instance group that have SUSPENDED status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer suspended; - - /** - * Output only. The number of instances in the managed instance group that have SUSPENDING status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer suspending; - - /** - * Output only. The number of instances in the managed instance group that have TERMINATED status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer terminated; - - /** - * Output only. The number of instances in the managed instance group that have DEPROVISIONING - * status. - * @return value or {@code null} for none - */ - public java.lang.Integer getDeprovisioning() { - return deprovisioning; - } - - /** - * Output only. The number of instances in the managed instance group that have DEPROVISIONING - * status. - * @param deprovisioning deprovisioning or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setDeprovisioning(java.lang.Integer deprovisioning) { - this.deprovisioning = deprovisioning; - return this; - } - - /** - * Output only. The number of instances that have not been created yet or have been deleted. - * Includes only instances that would be shown in the listManagedInstances method and not all - * instances that have been deleted in the lifetime of the MIG. Does not include FlexStart - * instances that are waiting for the resources availability, they are considered as 'pending'. - * @return value or {@code null} for none - */ - public java.lang.Integer getNonExistent() { - return nonExistent; - } - - /** - * Output only. The number of instances that have not been created yet or have been deleted. - * Includes only instances that would be shown in the listManagedInstances method and not all - * instances that have been deleted in the lifetime of the MIG. Does not include FlexStart - * instances that are waiting for the resources availability, they are considered as 'pending'. - * @param nonExistent nonExistent or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setNonExistent(java.lang.Integer nonExistent) { - this.nonExistent = nonExistent; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have PENDING status, - * that is FlexStart instances that are waiting for resources. Instances that do not exist because - * of the other reasons are counted as 'non_existent'. - * @return value or {@code null} for none - */ - public java.lang.Integer getPending() { - return pending; - } - - /** - * Output only. The number of instances in the managed instance group that have PENDING status, - * that is FlexStart instances that are waiting for resources. Instances that do not exist because - * of the other reasons are counted as 'non_existent'. - * @param pending pending or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setPending(java.lang.Integer pending) { - this.pending = pending; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have PENDING_STOP - * status. - * @return value or {@code null} for none - */ - public java.lang.Integer getPendingStop() { - return pendingStop; - } - - /** - * Output only. The number of instances in the managed instance group that have PENDING_STOP - * status. - * @param pendingStop pendingStop or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setPendingStop(java.lang.Integer pendingStop) { - this.pendingStop = pendingStop; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have PROVISIONING - * status. - * @return value or {@code null} for none - */ - public java.lang.Integer getProvisioning() { - return provisioning; - } - - /** - * Output only. The number of instances in the managed instance group that have PROVISIONING - * status. - * @param provisioning provisioning or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setProvisioning(java.lang.Integer provisioning) { - this.provisioning = provisioning; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have REPAIRING status. - * @return value or {@code null} for none - */ - public java.lang.Integer getRepairing() { - return repairing; - } - - /** - * Output only. The number of instances in the managed instance group that have REPAIRING status. - * @param repairing repairing or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setRepairing(java.lang.Integer repairing) { - this.repairing = repairing; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have RUNNING status. - * @return value or {@code null} for none - */ - public java.lang.Integer getRunning() { - return running; - } - - /** - * Output only. The number of instances in the managed instance group that have RUNNING status. - * @param running running or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setRunning(java.lang.Integer running) { - this.running = running; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have STAGING status. - * @return value or {@code null} for none - */ - public java.lang.Integer getStaging() { - return staging; - } - - /** - * Output only. The number of instances in the managed instance group that have STAGING status. - * @param staging staging or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setStaging(java.lang.Integer staging) { - this.staging = staging; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have STOPPED status. - * @return value or {@code null} for none - */ - public java.lang.Integer getStopped() { - return stopped; - } - - /** - * Output only. The number of instances in the managed instance group that have STOPPED status. - * @param stopped stopped or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setStopped(java.lang.Integer stopped) { - this.stopped = stopped; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have STOPPING status. - * @return value or {@code null} for none - */ - public java.lang.Integer getStopping() { - return stopping; - } - - /** - * Output only. The number of instances in the managed instance group that have STOPPING status. - * @param stopping stopping or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setStopping(java.lang.Integer stopping) { - this.stopping = stopping; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have SUSPENDED status. - * @return value or {@code null} for none - */ - public java.lang.Integer getSuspended() { - return suspended; - } - - /** - * Output only. The number of instances in the managed instance group that have SUSPENDED status. - * @param suspended suspended or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setSuspended(java.lang.Integer suspended) { - this.suspended = suspended; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have SUSPENDING status. - * @return value or {@code null} for none - */ - public java.lang.Integer getSuspending() { - return suspending; - } - - /** - * Output only. The number of instances in the managed instance group that have SUSPENDING status. - * @param suspending suspending or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setSuspending(java.lang.Integer suspending) { - this.suspending = suspending; - return this; - } - - /** - * Output only. The number of instances in the managed instance group that have TERMINATED status. - * @return value or {@code null} for none - */ - public java.lang.Integer getTerminated() { - return terminated; - } - - /** - * Output only. The number of instances in the managed instance group that have TERMINATED status. - * @param terminated terminated or {@code null} for none - */ - public InstanceGroupManagerStatusInstanceStatusSummary setTerminated(java.lang.Integer terminated) { - this.terminated = terminated; - return this; - } - - @Override - public InstanceGroupManagerStatusInstanceStatusSummary set(String fieldName, Object value) { - return (InstanceGroupManagerStatusInstanceStatusSummary) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusInstanceStatusSummary clone() { - return (InstanceGroupManagerStatusInstanceStatusSummary) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStateful.java deleted file mode 100644 index ce6ed9126c1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStateful.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatusStateful. - * - *

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 InstanceGroupManagerStatusStateful extends com.google.api.client.json.GenericJson { - - /** - * Output only. A bit indicating whether the managed instance group has stateful configuration, - * that is, if you have configured any items in a stateful policy or in per-instance configs. The - * group might report that it has no stateful configuration even when there is still some - * preserved state on a managed instance, for example, if you have deleted all PICs but not yet - * applied those deletions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean hasStatefulConfig; - - /** - * Output only. Status of per-instance configurations on the instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs; - - /** - * Output only. A bit indicating whether the managed instance group has stateful configuration, - * that is, if you have configured any items in a stateful policy or in per-instance configs. The - * group might report that it has no stateful configuration even when there is still some - * preserved state on a managed instance, for example, if you have deleted all PICs but not yet - * applied those deletions. - * @return value or {@code null} for none - */ - public java.lang.Boolean getHasStatefulConfig() { - return hasStatefulConfig; - } - - /** - * Output only. A bit indicating whether the managed instance group has stateful configuration, - * that is, if you have configured any items in a stateful policy or in per-instance configs. The - * group might report that it has no stateful configuration even when there is still some - * preserved state on a managed instance, for example, if you have deleted all PICs but not yet - * applied those deletions. - * @param hasStatefulConfig hasStatefulConfig or {@code null} for none - */ - public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean hasStatefulConfig) { - this.hasStatefulConfig = hasStatefulConfig; - return this; - } - - /** - * Output only. Status of per-instance configurations on the instances. - * @return value or {@code null} for none - */ - public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { - return perInstanceConfigs; - } - - /** - * Output only. Status of per-instance configurations on the instances. - * @param perInstanceConfigs perInstanceConfigs or {@code null} for none - */ - public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { - this.perInstanceConfigs = perInstanceConfigs; - return this; - } - - @Override - public InstanceGroupManagerStatusStateful set(String fieldName, Object value) { - return (InstanceGroupManagerStatusStateful) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusStateful clone() { - return (InstanceGroupManagerStatusStateful) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java deleted file mode 100644 index 0c8b5f74bea..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatusStatefulPerInstanceConfigs. - * - *

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 InstanceGroupManagerStatusStatefulPerInstanceConfigs extends com.google.api.client.json.GenericJson { - - /** - * Output only. A bit indicating if all of the group's per-instance configurations (listed in the - * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- - * instance-configs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allEffective; - - /** - * Output only. A bit indicating if all of the group's per-instance configurations (listed in the - * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- - * instance-configs. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllEffective() { - return allEffective; - } - - /** - * Output only. A bit indicating if all of the group's per-instance configurations (listed in the - * output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per- - * instance-configs. - * @param allEffective allEffective or {@code null} for none - */ - public InstanceGroupManagerStatusStatefulPerInstanceConfigs setAllEffective(java.lang.Boolean allEffective) { - this.allEffective = allEffective; - return this; - } - - @Override - public InstanceGroupManagerStatusStatefulPerInstanceConfigs set(String fieldName, Object value) { - return (InstanceGroupManagerStatusStatefulPerInstanceConfigs) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusStatefulPerInstanceConfigs clone() { - return (InstanceGroupManagerStatusStatefulPerInstanceConfigs) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusVersionTarget.java deleted file mode 100644 index c17f13e0ea7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerStatusVersionTarget.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerStatusVersionTarget. - * - *

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 InstanceGroupManagerStatusVersionTarget extends com.google.api.client.json.GenericJson { - - /** - * Output only. A bit indicating whether version target has been reached in this managed instance - * group, i.e. all instances are in their target version. Instances' target version are specified - * byversion field on Instance Group Manager. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isReached; - - /** - * Output only. A bit indicating whether version target has been reached in this managed instance - * group, i.e. all instances are in their target version. Instances' target version are specified - * byversion field on Instance Group Manager. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsReached() { - return isReached; - } - - /** - * Output only. A bit indicating whether version target has been reached in this managed instance - * group, i.e. all instances are in their target version. Instances' target version are specified - * byversion field on Instance Group Manager. - * @param isReached isReached or {@code null} for none - */ - public InstanceGroupManagerStatusVersionTarget setIsReached(java.lang.Boolean isReached) { - this.isReached = isReached; - return this; - } - - @Override - public InstanceGroupManagerStatusVersionTarget set(String fieldName, Object value) { - return (InstanceGroupManagerStatusVersionTarget) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerStatusVersionTarget clone() { - return (InstanceGroupManagerStatusVersionTarget) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerTargetSizePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerTargetSizePolicy.java deleted file mode 100644 index 56ce65a5626..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerTargetSizePolicy.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerTargetSizePolicy. - * - *

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 InstanceGroupManagerTargetSizePolicy extends com.google.api.client.json.GenericJson { - - /** - * The mode of target size policy based on which the MIG creates its VMs individually or all at - * once. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * The mode of target size policy based on which the MIG creates its VMs individually or all at - * once. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The mode of target size policy based on which the MIG creates its VMs individually or all at - * once. - * @param mode mode or {@code null} for none - */ - public InstanceGroupManagerTargetSizePolicy setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - @Override - public InstanceGroupManagerTargetSizePolicy set(String fieldName, Object value) { - return (InstanceGroupManagerTargetSizePolicy) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerTargetSizePolicy clone() { - return (InstanceGroupManagerTargetSizePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerUpdatePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerUpdatePolicy.java deleted file mode 100644 index a2e7c1728bb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerUpdatePolicy.java +++ /dev/null @@ -1,324 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerUpdatePolicy. - * - *

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 InstanceGroupManagerUpdatePolicy extends com.google.api.client.json.GenericJson { - - /** - * The instance redistribution policy for regional managed instance groups. Valid values are: - * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances - * across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution - * is disabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceRedistributionType; - - /** - * The maximum number of instances that can be created above the specifiedtargetSize during the - * update process. This value can be either a fixed number or, if the group has 10 or more - * instances, a percentage. If you set a percentage, the number of instances is rounded if - * necessary. The default value for maxSurge is a fixed value equal to the number of zones in - * which the managed instance group operates. - * - * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about - * maxSurge. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FixedOrPercent maxSurge; - - /** - * The maximum number of instances that can be unavailable during the update process. An instance - * is considered available if all of the following conditions are satisfied: - * - * - The instance's status is RUNNING. - If there is a health check on - * the instance group, the instance's health check status must be HEALTHY at least once. If - * there is no health check on the group, then the instance only needs to have a status of - * RUNNING to be considered available. - * - * This value can be either a fixed number or, if the group has 10 or more instances, a - * percentage. If you set a percentage, the number of instances is rounded if necessary. The - * default value formaxUnavailable is a fixed value equal to the number of zones in which the - * managed instance group operates. - * - * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about - * maxUnavailable. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FixedOrPercent maxUnavailable; - - /** - * Minimal action to be taken on an instance. Use this option to minimize disruption as much as - * possible or to apply a more disruptive action than is necessary. - To limit disruption - * as much as possible, set the minimal action toREFRESH. If your update requires a more - * disruptive action, Compute Engine performs the necessary action to execute the update. - - * To apply a more disruptive action than is strictly necessary, set the minimal action to - * RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its - * metadata. But if your application reads instance metadata only when a VM is restarted, you - * can set the minimal action to RESTART in order to pick up metadata changes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minimalAction; - - /** - * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE - * to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as - * possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to - * allow all possible actions. If the Updater determines that the minimal update action needed is - * more disruptive than most disruptive allowed action you specify it will not perform the update - * at all. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mostDisruptiveAllowedAction; - - /** - * What action should be used to replace instances. See minimal_action.REPLACE - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String replacementMethod; - - /** - * The type of update process. You can specify either PROACTIVE so that the MIG automatically - * updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that - * you want to update. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The instance redistribution policy for regional managed instance groups. Valid values are: - * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances - * across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution - * is disabled. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceRedistributionType() { - return instanceRedistributionType; - } - - /** - * The instance redistribution policy for regional managed instance groups. Valid values are: - * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances - * across zones in the region. - NONE: For non-autoscaled groups, proactive redistribution - * is disabled. - * @param instanceRedistributionType instanceRedistributionType or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setInstanceRedistributionType(java.lang.String instanceRedistributionType) { - this.instanceRedistributionType = instanceRedistributionType; - return this; - } - - /** - * The maximum number of instances that can be created above the specifiedtargetSize during the - * update process. This value can be either a fixed number or, if the group has 10 or more - * instances, a percentage. If you set a percentage, the number of instances is rounded if - * necessary. The default value for maxSurge is a fixed value equal to the number of zones in - * which the managed instance group operates. - * - * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about - * maxSurge. - * @return value or {@code null} for none - */ - public FixedOrPercent getMaxSurge() { - return maxSurge; - } - - /** - * The maximum number of instances that can be created above the specifiedtargetSize during the - * update process. This value can be either a fixed number or, if the group has 10 or more - * instances, a percentage. If you set a percentage, the number of instances is rounded if - * necessary. The default value for maxSurge is a fixed value equal to the number of zones in - * which the managed instance group operates. - * - * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about - * maxSurge. - * @param maxSurge maxSurge or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setMaxSurge(FixedOrPercent maxSurge) { - this.maxSurge = maxSurge; - return this; - } - - /** - * The maximum number of instances that can be unavailable during the update process. An instance - * is considered available if all of the following conditions are satisfied: - * - * - The instance's status is RUNNING. - If there is a health check on - * the instance group, the instance's health check status must be HEALTHY at least once. If - * there is no health check on the group, then the instance only needs to have a status of - * RUNNING to be considered available. - * - * This value can be either a fixed number or, if the group has 10 or more instances, a - * percentage. If you set a percentage, the number of instances is rounded if necessary. The - * default value formaxUnavailable is a fixed value equal to the number of zones in which the - * managed instance group operates. - * - * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about - * maxUnavailable. - * @return value or {@code null} for none - */ - public FixedOrPercent getMaxUnavailable() { - return maxUnavailable; - } - - /** - * The maximum number of instances that can be unavailable during the update process. An instance - * is considered available if all of the following conditions are satisfied: - * - * - The instance's status is RUNNING. - If there is a health check on - * the instance group, the instance's health check status must be HEALTHY at least once. If - * there is no health check on the group, then the instance only needs to have a status of - * RUNNING to be considered available. - * - * This value can be either a fixed number or, if the group has 10 or more instances, a - * percentage. If you set a percentage, the number of instances is rounded if necessary. The - * default value formaxUnavailable is a fixed value equal to the number of zones in which the - * managed instance group operates. - * - * At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about - * maxUnavailable. - * @param maxUnavailable maxUnavailable or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setMaxUnavailable(FixedOrPercent maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return this; - } - - /** - * Minimal action to be taken on an instance. Use this option to minimize disruption as much as - * possible or to apply a more disruptive action than is necessary. - To limit disruption - * as much as possible, set the minimal action toREFRESH. If your update requires a more - * disruptive action, Compute Engine performs the necessary action to execute the update. - - * To apply a more disruptive action than is strictly necessary, set the minimal action to - * RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its - * metadata. But if your application reads instance metadata only when a VM is restarted, you - * can set the minimal action to RESTART in order to pick up metadata changes. - * @return value or {@code null} for none - */ - public java.lang.String getMinimalAction() { - return minimalAction; - } - - /** - * Minimal action to be taken on an instance. Use this option to minimize disruption as much as - * possible or to apply a more disruptive action than is necessary. - To limit disruption - * as much as possible, set the minimal action toREFRESH. If your update requires a more - * disruptive action, Compute Engine performs the necessary action to execute the update. - - * To apply a more disruptive action than is strictly necessary, set the minimal action to - * RESTART or REPLACE. For example, Compute Engine does not need to restart a VM to change its - * metadata. But if your application reads instance metadata only when a VM is restarted, you - * can set the minimal action to RESTART in order to pick up metadata changes. - * @param minimalAction minimalAction or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setMinimalAction(java.lang.String minimalAction) { - this.minimalAction = minimalAction; - return this; - } - - /** - * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE - * to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as - * possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to - * allow all possible actions. If the Updater determines that the minimal update action needed is - * more disruptive than most disruptive allowed action you specify it will not perform the update - * at all. - * @return value or {@code null} for none - */ - public java.lang.String getMostDisruptiveAllowedAction() { - return mostDisruptiveAllowedAction; - } - - /** - * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE - * to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as - * possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to - * allow all possible actions. If the Updater determines that the minimal update action needed is - * more disruptive than most disruptive allowed action you specify it will not perform the update - * at all. - * @param mostDisruptiveAllowedAction mostDisruptiveAllowedAction or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { - this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; - return this; - } - - /** - * What action should be used to replace instances. See minimal_action.REPLACE - * @return value or {@code null} for none - */ - public java.lang.String getReplacementMethod() { - return replacementMethod; - } - - /** - * What action should be used to replace instances. See minimal_action.REPLACE - * @param replacementMethod replacementMethod or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setReplacementMethod(java.lang.String replacementMethod) { - this.replacementMethod = replacementMethod; - return this; - } - - /** - * The type of update process. You can specify either PROACTIVE so that the MIG automatically - * updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that - * you want to update. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of update process. You can specify either PROACTIVE so that the MIG automatically - * updates VMs to the latest configurations orOPPORTUNISTIC so that you can select the VMs that - * you want to update. - * @param type type or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public InstanceGroupManagerUpdatePolicy set(String fieldName, Object value) { - return (InstanceGroupManagerUpdatePolicy) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerUpdatePolicy clone() { - return (InstanceGroupManagerUpdatePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerVersion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerVersion.java deleted file mode 100644 index def2eb4098e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagerVersion.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagerVersion. - * - *

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 InstanceGroupManagerVersion extends com.google.api.client.json.GenericJson { - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create new instances in the managed instance group until the `targetSize` - * for this version is reached. The templates for existing instances in the group do not change - * unless you run recreateInstances, runapplyUpdatesToInstances, or set the - * group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the - * `targetSize` for this version is reached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** - * Name of the version. Unique among all versions in the scope of this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Specifies the intended number of instances to be created from theinstanceTemplate. The final - * number of instances created from the template will be equal to: - If expressed as - * a fixed number, the minimum of either targetSize.fixed or - * instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize - * would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a - * remainder, the number is rounded. If unset, this version will update any remaining - * instances not updated by another version. ReadStarting a canary update for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FixedOrPercent targetSize; - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create new instances in the managed instance group until the `targetSize` - * for this version is reached. The templates for existing instances in the group do not change - * unless you run recreateInstances, runapplyUpdatesToInstances, or set the - * group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the - * `targetSize` for this version is reached. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create new instances in the managed instance group until the `targetSize` - * for this version is reached. The templates for existing instances in the group do not change - * unless you run recreateInstances, runapplyUpdatesToInstances, or set the - * group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the - * `targetSize` for this version is reached. - * @param instanceTemplate instanceTemplate or {@code null} for none - */ - public InstanceGroupManagerVersion setInstanceTemplate(java.lang.String instanceTemplate) { - this.instanceTemplate = instanceTemplate; - return this; - } - - /** - * Name of the version. Unique among all versions in the scope of this managed instance group. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the version. Unique among all versions in the scope of this managed instance group. - * @param name name or {@code null} for none - */ - public InstanceGroupManagerVersion setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Specifies the intended number of instances to be created from theinstanceTemplate. The final - * number of instances created from the template will be equal to: - If expressed as - * a fixed number, the minimum of either targetSize.fixed or - * instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize - * would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a - * remainder, the number is rounded. If unset, this version will update any remaining - * instances not updated by another version. ReadStarting a canary update for more information. - * @return value or {@code null} for none - */ - public FixedOrPercent getTargetSize() { - return targetSize; - } - - /** - * Specifies the intended number of instances to be created from theinstanceTemplate. The final - * number of instances created from the template will be equal to: - If expressed as - * a fixed number, the minimum of either targetSize.fixed or - * instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize - * would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a - * remainder, the number is rounded. If unset, this version will update any remaining - * instances not updated by another version. ReadStarting a canary update for more information. - * @param targetSize targetSize or {@code null} for none - */ - public InstanceGroupManagerVersion setTargetSize(FixedOrPercent targetSize) { - this.targetSize = targetSize; - return this; - } - - @Override - public InstanceGroupManagerVersion set(String fieldName, Object value) { - return (InstanceGroupManagerVersion) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagerVersion clone() { - return (InstanceGroupManagerVersion) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersAbandonInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersAbandonInstancesRequest.java deleted file mode 100644 index 04e88be5ab0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersAbandonInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersAbandonInstancesRequest. - * - *

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 InstanceGroupManagersAbandonInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersAbandonInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersAbandonInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersAbandonInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersAbandonInstancesRequest clone() { - return (InstanceGroupManagersAbandonInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersApplyUpdatesRequest.java deleted file mode 100644 index 5504ec7b538..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersApplyUpdatesRequest.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.preview.model; - -/** - * InstanceGroupManagers.applyUpdatesToInstances - * - *

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 InstanceGroupManagersApplyUpdatesRequest extends com.google.api.client.json.GenericJson { - - /** - * Flag to update all instances instead of specified list of "instances". If the flag is set to - * true then the instances may not be specified in the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allInstances; - - /** - * The list of URLs of one or more instances for which you want to apply updates. Each URL can be - * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The minimal action that you want to perform on each instance during the update: - - * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the - * instance and start it again. - REFRESH: Do not stop the instance and limit - * disruption as much as possible. - NONE: Do not disrupt the instance at all. - * - * By default, the minimum action is NONE. If your update requires a more disruptive action than - * you set with this flag, the necessary action is performed to execute the update. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minimalAction; - - /** - * The most disruptive action that you want to perform on each instance during the update: - * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start - * it again. - REFRESH: Do not stop the instance and limit disruption as much as - * possible. - NONE: Do not disrupt the instance at all. - * - * By default, the most disruptive allowed action is REPLACE. If your update requires a more - * disruptive action than you set with this flag, the update request will fail. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mostDisruptiveAllowedAction; - - /** - * Flag to update all instances instead of specified list of "instances". If the flag is set to - * true then the instances may not be specified in the request. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllInstances() { - return allInstances; - } - - /** - * Flag to update all instances instead of specified list of "instances". If the flag is set to - * true then the instances may not be specified in the request. - * @param allInstances allInstances or {@code null} for none - */ - public InstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolean allInstances) { - this.allInstances = allInstances; - return this; - } - - /** - * The list of URLs of one or more instances for which you want to apply updates. Each URL can be - * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The list of URLs of one or more instances for which you want to apply updates. Each URL can be - * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersApplyUpdatesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * The minimal action that you want to perform on each instance during the update: - - * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the - * instance and start it again. - REFRESH: Do not stop the instance and limit - * disruption as much as possible. - NONE: Do not disrupt the instance at all. - * - * By default, the minimum action is NONE. If your update requires a more disruptive action than - * you set with this flag, the necessary action is performed to execute the update. - * @return value or {@code null} for none - */ - public java.lang.String getMinimalAction() { - return minimalAction; - } - - /** - * The minimal action that you want to perform on each instance during the update: - - * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the - * instance and start it again. - REFRESH: Do not stop the instance and limit - * disruption as much as possible. - NONE: Do not disrupt the instance at all. - * - * By default, the minimum action is NONE. If your update requires a more disruptive action than - * you set with this flag, the necessary action is performed to execute the update. - * @param minimalAction minimalAction or {@code null} for none - */ - public InstanceGroupManagersApplyUpdatesRequest setMinimalAction(java.lang.String minimalAction) { - this.minimalAction = minimalAction; - return this; - } - - /** - * The most disruptive action that you want to perform on each instance during the update: - * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start - * it again. - REFRESH: Do not stop the instance and limit disruption as much as - * possible. - NONE: Do not disrupt the instance at all. - * - * By default, the most disruptive allowed action is REPLACE. If your update requires a more - * disruptive action than you set with this flag, the update request will fail. - * @return value or {@code null} for none - */ - public java.lang.String getMostDisruptiveAllowedAction() { - return mostDisruptiveAllowedAction; - } - - /** - * The most disruptive action that you want to perform on each instance during the update: - * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start - * it again. - REFRESH: Do not stop the instance and limit disruption as much as - * possible. - NONE: Do not disrupt the instance at all. - * - * By default, the most disruptive allowed action is REPLACE. If your update requires a more - * disruptive action than you set with this flag, the update request will fail. - * @param mostDisruptiveAllowedAction mostDisruptiveAllowedAction or {@code null} for none - */ - public InstanceGroupManagersApplyUpdatesRequest setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { - this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; - return this; - } - - @Override - public InstanceGroupManagersApplyUpdatesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersApplyUpdatesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersApplyUpdatesRequest clone() { - return (InstanceGroupManagersApplyUpdatesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersCreateInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersCreateInstancesRequest.java deleted file mode 100644 index f5a2ee70c73..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersCreateInstancesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * InstanceGroupManagers.createInstances - * - *

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 InstanceGroupManagersCreateInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * [Required] List of specifications of per-instance configs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * [Required] List of specifications of per-instance configs. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * [Required] List of specifications of per-instance configs. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersCreateInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersCreateInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersCreateInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersCreateInstancesRequest clone() { - return (InstanceGroupManagersCreateInstancesRequest) super.clone(); - } - -} From 806212c21a011884f864a81edee92b83ac1b5e1b Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:37 -0700 Subject: [PATCH 16/23] chore: regenerate compute client --- ...ceGroupManagersDeleteInstancesRequest.java | 108 -- ...upManagersDeletePerInstanceConfigsReq.java | 69 - ...stanceGroupManagersListErrorsResponse.java | 99 -- ...pManagersListManagedInstancesResponse.java | 99 -- ...oupManagersListPerInstanceConfigsResp.java | 305 ---- ...oupManagersPatchPerInstanceConfigsReq.java | 66 - ...GroupManagersRecreateInstancesRequest.java | 69 - ...ceGroupManagersResumeInstancesRequest.java | 69 - .../InstanceGroupManagersScopedList.java | 285 --- ...oupManagersSetInstanceTemplateRequest.java | 75 - ...nceGroupManagersSetTargetPoolsRequest.java | 144 -- ...nceGroupManagersStartInstancesRequest.java | 69 - ...anceGroupManagersStopInstancesRequest.java | 96 - ...eGroupManagersSuspendInstancesRequest.java | 96 - ...upManagersUpdatePerInstanceConfigsReq.java | 66 - .../InstanceGroupsAddInstancesRequest.java | 66 - .../model/InstanceGroupsListInstances.java | 383 ---- .../InstanceGroupsListInstancesRequest.java | 72 - .../InstanceGroupsRemoveInstancesRequest.java | 66 - .../model/InstanceGroupsScopedList.java | 282 --- .../InstanceGroupsSetNamedPortsRequest.java | 138 -- .../compute/preview/model/InstanceList.java | 386 ---- .../preview/model/InstanceListReferrers.java | 380 ---- .../model/InstanceManagedByIgmError.java | 117 -- ...anagedByIgmErrorInstanceActionDetails.java | 126 -- ...ManagedByIgmErrorManagedInstanceError.java | 90 - .../preview/model/InstanceMoveRequest.java | 108 -- .../compute/preview/model/InstanceParams.java | 102 -- .../preview/model/InstanceProperties.java | 687 ------- .../model/InstancePropertiesPatch.java | 117 -- .../preview/model/InstanceReference.java | 66 - .../preview/model/InstanceSettings.java | 204 --- .../model/InstanceSettingsMetadata.java | 90 - .../preview/model/InstanceTemplate.java | 329 ---- .../model/InstanceTemplateAggregatedList.java | 377 ---- .../preview/model/InstanceTemplateList.java | 386 ---- .../model/InstanceTemplatesScopedList.java | 285 --- .../preview/model/InstanceWithNamedPorts.java | 114 -- .../InstancesAddResourcePoliciesRequest.java | 66 - .../InstancesBulkInsertOperationMetadata.java | 72 - ...nstancesGetEffectiveFirewallsResponse.java | 96 - ...ewallsResponseEffectiveFirewallPolicy.java | 237 --- ...nstancesRemoveResourcePoliciesRequest.java | 66 - .../InstancesReportHostAsFaultyRequest.java | 87 - ...sReportHostAsFaultyRequestFaultReason.java | 84 - .../preview/model/InstancesScopedList.java | 281 --- .../model/InstancesSetLabelsRequest.java | 120 -- .../InstancesSetMachineResourcesRequest.java | 72 - .../model/InstancesSetMachineTypeRequest.java | 69 - .../InstancesSetMinCpuPlatformRequest.java | 66 - .../model/InstancesSetNameRequest.java | 93 - .../InstancesSetSecurityPolicyRequest.java | 99 -- .../InstancesSetServiceAccountRequest.java | 90 - ...nstancesStartWithEncryptionKeyRequest.java | 90 - .../preview/model/InstantSnapshot.java | 708 -------- .../model/InstantSnapshotAggregatedList.java | 404 ----- .../preview/model/InstantSnapshotGroup.java | 360 ---- .../model/InstantSnapshotGroupParameters.java | 78 - .../InstantSnapshotGroupResourceStatus.java | 90 - .../model/InstantSnapshotGroupSourceInfo.java | 84 - .../preview/model/InstantSnapshotList.java | 383 ---- .../preview/model/InstantSnapshotParams.java | 78 - .../model/InstantSnapshotResourceStatus.java | 66 - .../model/InstantSnapshotsScopedList.java | 282 --- .../preview/model/Int64RangeMatch.java | 90 - .../compute/preview/model/Interconnect.java | 1198 ------------- ...erconnectApplicationAwareInterconnect.java | 135 -- ...nAwareInterconnectBandwidthPercentage.java | 92 - ...InterconnectBandwidthPercentagePolicy.java | 72 - ...AwareInterconnectStrictPriorityPolicy.java | 42 - .../preview/model/InterconnectAttachment.java | 1577 ----------------- .../InterconnectAttachmentAggregatedList.java | 404 ----- ...ectAttachmentConfigurationConstraints.java | 132 -- ...nfigurationConstraintsBgpPeerASNRange.java | 84 - .../model/InterconnectAttachmentGroup.java | 358 ---- ...InterconnectAttachmentGroupAttachment.java | 63 - ...InterconnectAttachmentGroupConfigured.java | 64 - ...achmentGroupConfiguredAvailabilitySLA.java | 85 - ...redAvailabilitySLAIntendedSlaBlockers.java | 235 --- .../InterconnectAttachmentGroupIntent.java | 64 - ...onnectAttachmentGroupLogicalStructure.java | 64 - ...AttachmentGroupLogicalStructureRegion.java | 87 - ...hmentGroupLogicalStructureRegionMetro.java | 90 - ...upLogicalStructureRegionMetroFacility.java | 87 - ...gicalStructureRegionMetroFacilityZone.java | 94 - ...entGroupsGetOperationalStatusResponse.java | 84 - ...erconnectAttachmentGroupsListResponse.java | 428 ----- ...nectAttachmentGroupsOperationalStatus.java | 153 -- ...oupsOperationalStatusAttachmentStatus.java | 147 -- .../InterconnectAttachmentL2Forwarding.java | 204 --- ...ttachmentL2ForwardingApplianceMapping.java | 135 -- ...nceMappingInnerVlanToApplianceMapping.java | 108 -- ...ectAttachmentL2ForwardingGeneveHeader.java | 66 - .../model/InterconnectAttachmentList.java | 386 ---- .../model/InterconnectAttachmentParams.java | 87 - ...InterconnectAttachmentPartnerMetadata.java | 131 -- .../InterconnectAttachmentPrivateInfo.java | 70 - .../InterconnectAttachmentsScopedList.java | 278 --- .../model/InterconnectCircuitInfo.java | 118 -- .../model/InterconnectDiagnostics.java | 172 -- 100 files changed, 18591 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeleteInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListErrorsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListManagedInstancesResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListPerInstanceConfigsResp.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersRecreateInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersResumeInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetInstanceTemplateRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetTargetPoolsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStartInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStopInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSuspendInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsAddInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstances.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsRemoveInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsSetNamedPortsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceListReferrers.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmError.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorInstanceActionDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorManagedInstanceError.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceMoveRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancePropertiesPatch.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettingsMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplate.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplatesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceWithNamedPorts.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesAddResourcePoliciesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesBulkInsertOperationMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesRemoveResourcePoliciesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequestFaultReason.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetLabelsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineResourcesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineTypeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMinCpuPlatformRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetNameRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetSecurityPolicyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetServiceAccountRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesStartWithEncryptionKeyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshot.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupParameters.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupSourceInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Int64RangeMatch.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interconnect.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnect.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraints.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupAttachment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfigured.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupIntent.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructure.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegion.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2Forwarding.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMapping.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingGeneveHeader.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPartnerMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPrivateInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectCircuitInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnostics.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeleteInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeleteInstancesRequest.java deleted file mode 100644 index b4e9f969bff..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeleteInstancesRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersDeleteInstancesRequest. - * - *

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 InstanceGroupManagersDeleteInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted - * only by name. One cannot specify both URLs and names in a single request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * Specifies whether the request should proceed despite the inclusion of instances that are not - * members of the group or that are already in the process of being deleted or abandoned. If this - * field is set to `false` and such an instance is specified in the request, the operation fails. - * The operation always fails if the request contains a malformed instance URL or a reference to - * an instance that exists in a zone or region other than the group's zone or region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean skipInstancesOnValidationError; - - /** - * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted - * only by name. One cannot specify both URLs and names in a single request. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted - * only by name. One cannot specify both URLs and names in a single request. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersDeleteInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * Specifies whether the request should proceed despite the inclusion of instances that are not - * members of the group or that are already in the process of being deleted or abandoned. If this - * field is set to `false` and such an instance is specified in the request, the operation fails. - * The operation always fails if the request contains a malformed instance URL or a reference to - * an instance that exists in a zone or region other than the group's zone or region. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSkipInstancesOnValidationError() { - return skipInstancesOnValidationError; - } - - /** - * Specifies whether the request should proceed despite the inclusion of instances that are not - * members of the group or that are already in the process of being deleted or abandoned. If this - * field is set to `false` and such an instance is specified in the request, the operation fails. - * The operation always fails if the request contains a malformed instance URL or a reference to - * an instance that exists in a zone or region other than the group's zone or region. - * @param skipInstancesOnValidationError skipInstancesOnValidationError or {@code null} for none - */ - public InstanceGroupManagersDeleteInstancesRequest setSkipInstancesOnValidationError(java.lang.Boolean skipInstancesOnValidationError) { - this.skipInstancesOnValidationError = skipInstancesOnValidationError; - return this; - } - - @Override - public InstanceGroupManagersDeleteInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersDeleteInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersDeleteInstancesRequest clone() { - return (InstanceGroupManagersDeleteInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java deleted file mode 100644 index d14beed3f83..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersDeletePerInstanceConfigsReq.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * InstanceGroupManagers.deletePerInstanceConfigs - * - *

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 InstanceGroupManagersDeletePerInstanceConfigsReq extends com.google.api.client.json.GenericJson { - - /** - * The list of instance names for which we want to delete per-instance configs on this managed - * instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List names; - - /** - * The list of instance names for which we want to delete per-instance configs on this managed - * instance group. - * @return value or {@code null} for none - */ - public java.util.List getNames() { - return names; - } - - /** - * The list of instance names for which we want to delete per-instance configs on this managed - * instance group. - * @param names names or {@code null} for none - */ - public InstanceGroupManagersDeletePerInstanceConfigsReq setNames(java.util.List names) { - this.names = names; - return this; - } - - @Override - public InstanceGroupManagersDeletePerInstanceConfigsReq set(String fieldName, Object value) { - return (InstanceGroupManagersDeletePerInstanceConfigsReq) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersDeletePerInstanceConfigsReq clone() { - return (InstanceGroupManagersDeletePerInstanceConfigsReq) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListErrorsResponse.java deleted file mode 100644 index 963818480bd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListErrorsResponse.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersListErrorsResponse. - * - *

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 InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { - - /** - * Output only. The list of errors of the managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger than maxResults , then use the nextPageToken as a value for the - * query parameter pageToken in the next list request. Subsequent list requests will have their - * own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Output only. The list of errors of the managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. The list of errors of the managed instance group. - * @param items items or {@code null} for none - */ - public InstanceGroupManagersListErrorsResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger than maxResults , then use the nextPageToken as a value for the - * query parameter pageToken in the next list request. Subsequent list requests will have their - * own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger than maxResults , then use the nextPageToken as a value for the - * query parameter pageToken in the next list request. Subsequent list requests will have their - * own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupManagersListErrorsResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public InstanceGroupManagersListErrorsResponse set(String fieldName, Object value) { - return (InstanceGroupManagersListErrorsResponse) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersListErrorsResponse clone() { - return (InstanceGroupManagersListErrorsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListManagedInstancesResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListManagedInstancesResponse.java deleted file mode 100644 index d036ad14385..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListManagedInstancesResponse.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersListManagedInstancesResponse. - * - *

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 InstanceGroupManagersListManagedInstancesResponse extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The list of instances in the managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List managedInstances; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Output only. [Output Only] The list of instances in the managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getManagedInstances() { - return managedInstances; - } - - /** - * Output only. [Output Only] The list of instances in the managed instance group. - * @param managedInstances managedInstances or {@code null} for none - */ - public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(java.util.List managedInstances) { - this.managedInstances = managedInstances; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupManagersListManagedInstancesResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public InstanceGroupManagersListManagedInstancesResponse set(String fieldName, Object value) { - return (InstanceGroupManagersListManagedInstancesResponse) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersListManagedInstancesResponse clone() { - return (InstanceGroupManagersListManagedInstancesResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListPerInstanceConfigsResp.java deleted file mode 100644 index 0ac0cb7d7fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ /dev/null @@ -1,305 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersListPerInstanceConfigsResp. - * - *

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 InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The list of PerInstanceConfig. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Output only. [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [Output Only] The list of PerInstanceConfig. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. [Output Only] The list of PerInstanceConfig. - * @param items items or {@code null} for none - */ - public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupManagersListPerInstanceConfigsResp setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public InstanceGroupManagersListPerInstanceConfigsResp setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupManagersListPerInstanceConfigsResp set(String fieldName, Object value) { - return (InstanceGroupManagersListPerInstanceConfigsResp) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersListPerInstanceConfigsResp clone() { - return (InstanceGroupManagersListPerInstanceConfigsResp) super.clone(); - } - - /** - * Output only. [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 InstanceGroupManagersListPerInstanceConfigsRespWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java deleted file mode 100644 index ecf38d45644..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersPatchPerInstanceConfigsReq.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * InstanceGroupManagers.patchPerInstanceConfigs - * - *

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 InstanceGroupManagersPatchPerInstanceConfigsReq extends com.google.api.client.json.GenericJson { - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List perInstanceConfigs; - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getPerInstanceConfigs() { - return perInstanceConfigs; - } - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @param perInstanceConfigs perInstanceConfigs or {@code null} for none - */ - public InstanceGroupManagersPatchPerInstanceConfigsReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { - this.perInstanceConfigs = perInstanceConfigs; - return this; - } - - @Override - public InstanceGroupManagersPatchPerInstanceConfigsReq set(String fieldName, Object value) { - return (InstanceGroupManagersPatchPerInstanceConfigsReq) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersPatchPerInstanceConfigsReq clone() { - return (InstanceGroupManagersPatchPerInstanceConfigsReq) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersRecreateInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersRecreateInstancesRequest.java deleted file mode 100644 index 316b259ca19..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersRecreateInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersRecreateInstancesRequest. - * - *

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 InstanceGroupManagersRecreateInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersRecreateInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersRecreateInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersRecreateInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersRecreateInstancesRequest clone() { - return (InstanceGroupManagersRecreateInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersResumeInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersResumeInstancesRequest.java deleted file mode 100644 index 71123041c0b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersResumeInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersResumeInstancesRequest. - * - *

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 InstanceGroupManagersResumeInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersResumeInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersResumeInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersResumeInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersResumeInstancesRequest clone() { - return (InstanceGroupManagersResumeInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersScopedList.java deleted file mode 100644 index 6e4e7df1141..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersScopedList.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersScopedList. - * - *

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 InstanceGroupManagersScopedList extends com.google.api.client.json.GenericJson { - - /** - * Output only. The list of managed instance groups that are contained in the specified project - * and zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceGroupManagers; - - static { - // hack to force ProGuard to consider InstanceGroupManager 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(InstanceGroupManager.class); - } - - /** - * Output only. The warning that replaces the list of managed instance groups when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. The list of managed instance groups that are contained in the specified project - * and zone. - * @return value or {@code null} for none - */ - public java.util.List getInstanceGroupManagers() { - return instanceGroupManagers; - } - - /** - * Output only. The list of managed instance groups that are contained in the specified project - * and zone. - * @param instanceGroupManagers instanceGroupManagers or {@code null} for none - */ - public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List instanceGroupManagers) { - this.instanceGroupManagers = instanceGroupManagers; - return this; - } - - /** - * Output only. The warning that replaces the list of managed instance groups when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. The warning that replaces the list of managed instance groups when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public InstanceGroupManagersScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupManagersScopedList set(String fieldName, Object value) { - return (InstanceGroupManagersScopedList) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersScopedList clone() { - return (InstanceGroupManagersScopedList) super.clone(); - } - - /** - * Output only. The warning that replaces the list of managed instance groups when the list is - * empty. - */ - 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 InstanceGroupManagersScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetInstanceTemplateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetInstanceTemplateRequest.java deleted file mode 100644 index e41618d50af..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetInstanceTemplateRequest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersSetInstanceTemplateRequest. - * - *

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 InstanceGroupManagersSetInstanceTemplateRequest extends com.google.api.client.json.GenericJson { - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create all new instances in the managed instance group. The templates for - * existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create all new instances in the managed instance group. The templates for - * existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** - * The URL of the instance template that is specified for this managed instance group. The group - * uses this template to create all new instances in the managed instance group. The templates for - * existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. - * @param instanceTemplate instanceTemplate or {@code null} for none - */ - public InstanceGroupManagersSetInstanceTemplateRequest setInstanceTemplate(java.lang.String instanceTemplate) { - this.instanceTemplate = instanceTemplate; - return this; - } - - @Override - public InstanceGroupManagersSetInstanceTemplateRequest set(String fieldName, Object value) { - return (InstanceGroupManagersSetInstanceTemplateRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersSetInstanceTemplateRequest clone() { - return (InstanceGroupManagersSetInstanceTemplateRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetTargetPoolsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetTargetPoolsRequest.java deleted file mode 100644 index 920f5d0d1b2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSetTargetPoolsRequest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersSetTargetPoolsRequest. - * - *

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 InstanceGroupManagersSetTargetPoolsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the target pools information. Use this optional property to prevent - * conflicts when multiple users change the target pools settings concurrently. Obtain the - * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * The list of target pool URLs that instances in this managed instance group belong to. The - * managed instance group applies these target pools to all of the instances in the group. - * Existing instances and new instances in the group all receive these target pool settings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetPools; - - /** - * The fingerprint of the target pools information. Use this optional property to prevent - * conflicts when multiple users change the target pools settings concurrently. Obtain the - * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * The fingerprint of the target pools information. Use this optional property to prevent - * conflicts when multiple users change the target pools settings concurrently. Obtain the - * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * The fingerprint of the target pools information. Use this optional property to prevent - * conflicts when multiple users change the target pools settings concurrently. Obtain the - * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public InstanceGroupManagersSetTargetPoolsRequest setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * The fingerprint of the target pools information. Use this optional property to prevent - * conflicts when multiple users change the target pools settings concurrently. Obtain the - * fingerprint with theinstanceGroupManagers.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstanceGroupManagersSetTargetPoolsRequest encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * The list of target pool URLs that instances in this managed instance group belong to. The - * managed instance group applies these target pools to all of the instances in the group. - * Existing instances and new instances in the group all receive these target pool settings. - * @return value or {@code null} for none - */ - public java.util.List getTargetPools() { - return targetPools; - } - - /** - * The list of target pool URLs that instances in this managed instance group belong to. The - * managed instance group applies these target pools to all of the instances in the group. - * Existing instances and new instances in the group all receive these target pool settings. - * @param targetPools targetPools or {@code null} for none - */ - public InstanceGroupManagersSetTargetPoolsRequest setTargetPools(java.util.List targetPools) { - this.targetPools = targetPools; - return this; - } - - @Override - public InstanceGroupManagersSetTargetPoolsRequest set(String fieldName, Object value) { - return (InstanceGroupManagersSetTargetPoolsRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersSetTargetPoolsRequest clone() { - return (InstanceGroupManagersSetTargetPoolsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStartInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStartInstancesRequest.java deleted file mode 100644 index fc007577ce7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStartInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersStartInstancesRequest. - * - *

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 InstanceGroupManagersStartInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersStartInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersStartInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersStartInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersStartInstancesRequest clone() { - return (InstanceGroupManagersStartInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStopInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStopInstancesRequest.java deleted file mode 100644 index 8b1b3a4d9c4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersStopInstancesRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersStopInstancesRequest. - * - *

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 InstanceGroupManagersStopInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, - * skipping initialization on them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceStop; - - /** - * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, - * skipping initialization on them. - * @return value or {@code null} for none - */ - public java.lang.Boolean getForceStop() { - return forceStop; - } - - /** - * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, - * skipping initialization on them. - * @param forceStop forceStop or {@code null} for none - */ - public InstanceGroupManagersStopInstancesRequest setForceStop(java.lang.Boolean forceStop) { - this.forceStop = forceStop; - return this; - } - - /** - * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersStopInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersStopInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersStopInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersStopInstancesRequest clone() { - return (InstanceGroupManagersStopInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSuspendInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSuspendInstancesRequest.java deleted file mode 100644 index 650dc52c773..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersSuspendInstancesRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupManagersSuspendInstancesRequest. - * - *

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 InstanceGroupManagersSuspendInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, - * skipping initialization on them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceSuspend; - - /** - * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, - * skipping initialization on them. - * @return value or {@code null} for none - */ - public java.lang.Boolean getForceSuspend() { - return forceSuspend; - } - - /** - * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, - * skipping initialization on them. - * @param forceSuspend forceSuspend or {@code null} for none - */ - public InstanceGroupManagersSuspendInstancesRequest setForceSuspend(java.lang.Boolean forceSuspend) { - this.forceSuspend = forceSuspend; - return this; - } - - /** - * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public InstanceGroupManagersSuspendInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupManagersSuspendInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersSuspendInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersSuspendInstancesRequest clone() { - return (InstanceGroupManagersSuspendInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java deleted file mode 100644 index 01e0534ce7b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupManagersUpdatePerInstanceConfigsReq.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * InstanceGroupManagers.updatePerInstanceConfigs - * - *

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 InstanceGroupManagersUpdatePerInstanceConfigsReq extends com.google.api.client.json.GenericJson { - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List perInstanceConfigs; - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getPerInstanceConfigs() { - return perInstanceConfigs; - } - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @param perInstanceConfigs perInstanceConfigs or {@code null} for none - */ - public InstanceGroupManagersUpdatePerInstanceConfigsReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { - this.perInstanceConfigs = perInstanceConfigs; - return this; - } - - @Override - public InstanceGroupManagersUpdatePerInstanceConfigsReq set(String fieldName, Object value) { - return (InstanceGroupManagersUpdatePerInstanceConfigsReq) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersUpdatePerInstanceConfigsReq clone() { - return (InstanceGroupManagersUpdatePerInstanceConfigsReq) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsAddInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsAddInstancesRequest.java deleted file mode 100644 index 2dc3f0def82..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsAddInstancesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupsAddInstancesRequest. - * - *

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 InstanceGroupsAddInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of instances to add to the instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The list of instances to add to the instance group. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The list of instances to add to the instance group. - * @param instances instances or {@code null} for none - */ - public InstanceGroupsAddInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupsAddInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupsAddInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupsAddInstancesRequest clone() { - return (InstanceGroupsAddInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstances.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstances.java deleted file mode 100644 index 53eebd76261..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstances.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupsListInstances. - * - *

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 InstanceGroupsListInstances extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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 InstanceWithNamedPorts resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance - * group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public InstanceGroupsListInstances setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceWithNamedPorts resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceWithNamedPorts resources. - * @param items items or {@code null} for none - */ - public InstanceGroupsListInstances setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance - * group. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupsListInstances for the list of instances in the specified instance - * group. - * @param kind kind or {@code null} for none - */ - public InstanceGroupsListInstances setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceGroupsListInstances 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 InstanceGroupsListInstances setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public InstanceGroupsListInstances setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupsListInstances set(String fieldName, Object value) { - return (InstanceGroupsListInstances) super.set(fieldName, value); - } - - @Override - public InstanceGroupsListInstances clone() { - return (InstanceGroupsListInstances) super.clone(); - } - - /** - * Output only. [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 InstanceGroupsListInstancesWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstancesRequest.java deleted file mode 100644 index 7a4e9593241..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsListInstancesRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupsListInstancesRequest. - * - *

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 InstanceGroupsListInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * A filter for the state of the instances in the instance group. Valid options are ALL or - * RUNNING. If you do not specify this parameter the list includes all instances regardless of - * their state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceState; - - /** - * A filter for the state of the instances in the instance group. Valid options are ALL or - * RUNNING. If you do not specify this parameter the list includes all instances regardless of - * their state. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceState() { - return instanceState; - } - - /** - * A filter for the state of the instances in the instance group. Valid options are ALL or - * RUNNING. If you do not specify this parameter the list includes all instances regardless of - * their state. - * @param instanceState instanceState or {@code null} for none - */ - public InstanceGroupsListInstancesRequest setInstanceState(java.lang.String instanceState) { - this.instanceState = instanceState; - return this; - } - - @Override - public InstanceGroupsListInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupsListInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupsListInstancesRequest clone() { - return (InstanceGroupsListInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsRemoveInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsRemoveInstancesRequest.java deleted file mode 100644 index ae9345f5a49..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsRemoveInstancesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupsRemoveInstancesRequest. - * - *

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 InstanceGroupsRemoveInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of instances to remove from the instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The list of instances to remove from the instance group. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The list of instances to remove from the instance group. - * @param instances instances or {@code null} for none - */ - public InstanceGroupsRemoveInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public InstanceGroupsRemoveInstancesRequest set(String fieldName, Object value) { - return (InstanceGroupsRemoveInstancesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupsRemoveInstancesRequest clone() { - return (InstanceGroupsRemoveInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsScopedList.java deleted file mode 100644 index c9db6f93ddb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupsScopedList. - * - *

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 InstanceGroupsScopedList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The list ofinstance groups that are contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceGroups; - - static { - // hack to force ProGuard to consider InstanceGroup 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(InstanceGroup.class); - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [Output Only] The list ofinstance groups that are contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getInstanceGroups() { - return instanceGroups; - } - - /** - * Output only. [Output Only] The list ofinstance groups that are contained in this scope. - * @param instanceGroups instanceGroups or {@code null} for none - */ - public InstanceGroupsScopedList setInstanceGroups(java.util.List instanceGroups) { - this.instanceGroups = instanceGroups; - return this; - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. - * @param warning warning or {@code null} for none - */ - public InstanceGroupsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceGroupsScopedList set(String fieldName, Object value) { - return (InstanceGroupsScopedList) super.set(fieldName, value); - } - - @Override - public InstanceGroupsScopedList clone() { - return (InstanceGroupsScopedList) super.clone(); - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. - */ - 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 InstanceGroupsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsSetNamedPortsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsSetNamedPortsRequest.java deleted file mode 100644 index c69610aa6e5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceGroupsSetNamedPortsRequest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceGroupsSetNamedPortsRequest. - * - *

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 InstanceGroupsSetNamedPortsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * The list of named ports to set for this instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List namedPorts; - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public InstanceGroupsSetNamedPortsRequest setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. A request with an incorrect fingerprint will fail with error412 conditionNotMet. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstanceGroupsSetNamedPortsRequest encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * The list of named ports to set for this instance group. - * @return value or {@code null} for none - */ - public java.util.List getNamedPorts() { - return namedPorts; - } - - /** - * The list of named ports to set for this instance group. - * @param namedPorts namedPorts or {@code null} for none - */ - public InstanceGroupsSetNamedPortsRequest setNamedPorts(java.util.List namedPorts) { - this.namedPorts = namedPorts; - return this; - } - - @Override - public InstanceGroupsSetNamedPortsRequest set(String fieldName, Object value) { - return (InstanceGroupsSetNamedPortsRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupsSetNamedPortsRequest clone() { - return (InstanceGroupsSetNamedPortsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceList.java deleted file mode 100644 index 246ae28f0b6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of instances. - * - *

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 InstanceList extends com.google.api.client.json.GenericJson { - - /** - * [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 Instance 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 Instance 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(Instance.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InstanceList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Instance resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Instance resources. - * @param items items or {@code null} for none - */ - public InstanceList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. - * @param kind kind or {@code null} for none - */ - public InstanceList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceList 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 InstanceList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstanceList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceList set(String fieldName, Object value) { - return (InstanceList) super.set(fieldName, value); - } - - @Override - public InstanceList clone() { - return (InstanceList) 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 InstanceListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceListReferrers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceListReferrers.java deleted file mode 100644 index 2227d1329ad..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceListReferrers.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of instance referrers. - * - *

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 InstanceListReferrers extends com.google.api.client.json.GenericJson { - - /** - * [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 Reference resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InstanceListReferrers setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Reference resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Reference resources. - * @param items items or {@code null} for none - */ - public InstanceListReferrers setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. - * @param kind kind or {@code null} for none - */ - public InstanceListReferrers setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceListReferrers 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 InstanceListReferrers setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstanceListReferrers setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceListReferrers set(String fieldName, Object value) { - return (InstanceListReferrers) super.set(fieldName, value); - } - - @Override - public InstanceListReferrers clone() { - return (InstanceListReferrers) 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 InstanceListReferrersWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmError.java deleted file mode 100644 index 6b8a723d6f3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmError.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceManagedByIgmError. - * - *

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 InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { - - /** - * Output only. Contents of the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceManagedByIgmErrorManagedInstanceError error; - - /** - * Output only. Details of the instance action that triggered this error. May be null, if the - * error was not caused by an action on an instance. This field is optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails; - - /** - * Output only. The time that this error occurred. This value is in RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String timestamp; - - /** - * Output only. Contents of the error. - * @return value or {@code null} for none - */ - public InstanceManagedByIgmErrorManagedInstanceError getError() { - return error; - } - - /** - * Output only. Contents of the error. - * @param error error or {@code null} for none - */ - public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { - this.error = error; - return this; - } - - /** - * Output only. Details of the instance action that triggered this error. May be null, if the - * error was not caused by an action on an instance. This field is optional. - * @return value or {@code null} for none - */ - public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() { - return instanceActionDetails; - } - - /** - * Output only. Details of the instance action that triggered this error. May be null, if the - * error was not caused by an action on an instance. This field is optional. - * @param instanceActionDetails instanceActionDetails or {@code null} for none - */ - public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails) { - this.instanceActionDetails = instanceActionDetails; - return this; - } - - /** - * Output only. The time that this error occurred. This value is in RFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getTimestamp() { - return timestamp; - } - - /** - * Output only. The time that this error occurred. This value is in RFC3339 text format. - * @param timestamp timestamp or {@code null} for none - */ - public InstanceManagedByIgmError setTimestamp(java.lang.String timestamp) { - this.timestamp = timestamp; - return this; - } - - @Override - public InstanceManagedByIgmError set(String fieldName, Object value) { - return (InstanceManagedByIgmError) super.set(fieldName, value); - } - - @Override - public InstanceManagedByIgmError clone() { - return (InstanceManagedByIgmError) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorInstanceActionDetails.java deleted file mode 100644 index f4c6e328201..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceManagedByIgmErrorInstanceActionDetails. - * - *

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 InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. Action that managed instance group was executing on the instance when the error - * occurred. Possible values: - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String action; - - /** - * Output only. The URL of the instance. The URL can be set even if the instance has not yet been - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * Output only. Version this instance was created from, or was being created from, but the - * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager - * resource at the time this instance was being created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ManagedInstanceVersion version; - - /** - * Output only. Action that managed instance group was executing on the instance when the error - * occurred. Possible values: - * @return value or {@code null} for none - */ - public java.lang.String getAction() { - return action; - } - - /** - * Output only. Action that managed instance group was executing on the instance when the error - * occurred. Possible values: - * @param action action or {@code null} for none - */ - public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String action) { - this.action = action; - return this; - } - - /** - * Output only. The URL of the instance. The URL can be set even if the instance has not yet been - * created. - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Output only. The URL of the instance. The URL can be set even if the instance has not yet been - * created. - * @param instance instance or {@code null} for none - */ - public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** - * Output only. Version this instance was created from, or was being created from, but the - * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager - * resource at the time this instance was being created. - * @return value or {@code null} for none - */ - public ManagedInstanceVersion getVersion() { - return version; - } - - /** - * Output only. Version this instance was created from, or was being created from, but the - * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager - * resource at the time this instance was being created. - * @param version version or {@code null} for none - */ - public InstanceManagedByIgmErrorInstanceActionDetails setVersion(ManagedInstanceVersion version) { - this.version = version; - return this; - } - - @Override - public InstanceManagedByIgmErrorInstanceActionDetails set(String fieldName, Object value) { - return (InstanceManagedByIgmErrorInstanceActionDetails) super.set(fieldName, value); - } - - @Override - public InstanceManagedByIgmErrorInstanceActionDetails clone() { - return (InstanceManagedByIgmErrorInstanceActionDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorManagedInstanceError.java deleted file mode 100644 index d5384f158aa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceManagedByIgmErrorManagedInstanceError. - * - *

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 InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { - - /** - * Output only. Error code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * Output only. Error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * Output only. Error code. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * Output only. Error code. - * @param code code or {@code null} for none - */ - public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * Output only. Error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * Output only. Error message. - * @param message message or {@code null} for none - */ - public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public InstanceManagedByIgmErrorManagedInstanceError set(String fieldName, Object value) { - return (InstanceManagedByIgmErrorManagedInstanceError) super.set(fieldName, value); - } - - @Override - public InstanceManagedByIgmErrorManagedInstanceError clone() { - return (InstanceManagedByIgmErrorManagedInstanceError) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceMoveRequest.java deleted file mode 100644 index cd84cb9221f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceMoveRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceMoveRequest. - * - *

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 InstanceMoveRequest extends com.google.api.client.json.GenericJson { - - /** - * The URL of the destination zone to move the instance. This can be a full or partial URL. For - * example, the following are all valid URLs to a zone: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destinationZone; - - /** - * The URL of the target instance to move. This can be a full or partial URL. For example, the - * following are all valid URLs to an instance: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - zones/zone/instances/instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetInstance; - - /** - * The URL of the destination zone to move the instance. This can be a full or partial URL. For - * example, the following are all valid URLs to a zone: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * @return value or {@code null} for none - */ - public java.lang.String getDestinationZone() { - return destinationZone; - } - - /** - * The URL of the destination zone to move the instance. This can be a full or partial URL. For - * example, the following are all valid URLs to a zone: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone - - * projects/project/zones/zone - zones/zone - * @param destinationZone destinationZone or {@code null} for none - */ - public InstanceMoveRequest setDestinationZone(java.lang.String destinationZone) { - this.destinationZone = destinationZone; - return this; - } - - /** - * The URL of the target instance to move. This can be a full or partial URL. For example, the - * following are all valid URLs to an instance: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - zones/zone/instances/instance - * @return value or {@code null} for none - */ - public java.lang.String getTargetInstance() { - return targetInstance; - } - - /** - * The URL of the target instance to move. This can be a full or partial URL. For example, the - * following are all valid URLs to an instance: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - zones/zone/instances/instance - * @param targetInstance targetInstance or {@code null} for none - */ - public InstanceMoveRequest setTargetInstance(java.lang.String targetInstance) { - this.targetInstance = targetInstance; - return this; - } - - @Override - public InstanceMoveRequest set(String fieldName, Object value) { - return (InstanceMoveRequest) super.set(fieldName, value); - } - - @Override - public InstanceMoveRequest clone() { - return (InstanceMoveRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceParams.java deleted file mode 100644 index 43d3b484164..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceParams.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional instance params. - * - *

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 InstanceParams extends com.google.api.client.json.GenericJson { - - /** - * Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration requestValidForDuration; - - /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. - * @return value or {@code null} for none - */ - public Duration getRequestValidForDuration() { - return requestValidForDuration; - } - - /** - * Relative deadline for waiting for capacity. Relevant only for Instances.Insert API. - * @param requestValidForDuration requestValidForDuration or {@code null} for none - */ - public InstanceParams setRequestValidForDuration(Duration requestValidForDuration) { - this.requestValidForDuration = requestValidForDuration; - return this; - } - - /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public InstanceParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public InstanceParams set(String fieldName, Object value) { - return (InstanceParams) super.set(fieldName, value); - } - - @Override - public InstanceParams clone() { - return (InstanceParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceProperties.java deleted file mode 100644 index 64eae5cc69f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceProperties.java +++ /dev/null @@ -1,687 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceProperties. - * - *

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 InstanceProperties extends com.google.api.client.json.GenericJson { - - /** - * Controls for advanced machine-related behavior features. Note that for MachineImage, this is - * not supported yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AdvancedMachineFeatures advancedMachineFeatures; - - /** - * Enables instances created based on these properties to send packets with source IP addresses - * other than their own and receive packets with destination IP addresses other than their own. If - * these instances will be used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding - * documentation for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canIpForward; - - /** - * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported - * yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ConfidentialInstanceConfig confidentialInstanceConfig; - - /** - * An optional text description for the instances that are created from these properties. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * An array of disks that are associated with the instances that are created from these - * properties. - * 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); - } - - /** - * A list of guest accelerator cards' type and count to use for instances created from these - * properties. - * 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); - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String keyRevocationActionType; - - /** - * Labels to apply to instances that are created from these properties. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Specifies which method should be used for encrypting the Local SSDs attached to the VM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String localSsdEncryptionMode; - - /** - * The machine type to use for instances that are created from these properties. This field only - * accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or - * partial URL, for example `projects/my-l7ilb-project/zones/us- - * central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * The metadata key/value pairs to assign to instances that are created from these properties. - * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata - * for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Metadata metadata; - - /** - * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or - * newer cpu/platform. Applicable values are the friendly names of CPU platforms, such - * asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, - * read Specifying a Minimum CPU Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minCpuPlatform; - - /** - * An array of network access configurations for this interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkInterfaces; - - /** - * Note that for MachineImage, this is not supported yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPerformanceConfig networkPerformanceConfig; - - /** - * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as - * default. Note that for MachineImage, this is not supported yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String privateIpv6GoogleAccess; - - /** - * Specifies the reservations that instances can consume from. Note that for MachineImage, this is - * not supported yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationAffinity reservationAffinity; - - /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Resource policies (names, not URLs) applied to instances created from these properties. Note - * that for MachineImage, this is not supported yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Specifies the scheduling options for the instances that are created from these properties. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Scheduling scheduling; - - /** - * A list of service accounts with specified scopes. Access tokens for these service accounts are - * available to the instances that are created from these properties. Use metadata queries to - * obtain the access tokens for these instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List serviceAccounts; - - /** - * Note that for MachineImage, this is not supported yet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceConfig shieldedInstanceConfig; - - /** - * A list of tags to apply to the instances that are created from these properties. The tags - * identify valid sources or targets for network firewalls. The setTags method can modify this - * list of tags. Each tag within the list must comply with RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Tags tags; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private WorkloadIdentityConfig workloadIdentityConfig; - - /** - * Controls for advanced machine-related behavior features. Note that for MachineImage, this is - * not supported yet. - * @return value or {@code null} for none - */ - public AdvancedMachineFeatures getAdvancedMachineFeatures() { - return advancedMachineFeatures; - } - - /** - * Controls for advanced machine-related behavior features. Note that for MachineImage, this is - * not supported yet. - * @param advancedMachineFeatures advancedMachineFeatures or {@code null} for none - */ - public InstanceProperties setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures) { - this.advancedMachineFeatures = advancedMachineFeatures; - return this; - } - - /** - * Enables instances created based on these properties to send packets with source IP addresses - * other than their own and receive packets with destination IP addresses other than their own. If - * these instances will be used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding - * documentation for more information. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanIpForward() { - return canIpForward; - } - - /** - * Enables instances created based on these properties to send packets with source IP addresses - * other than their own and receive packets with destination IP addresses other than their own. If - * these instances will be used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding - * documentation for more information. - * @param canIpForward canIpForward or {@code null} for none - */ - public InstanceProperties setCanIpForward(java.lang.Boolean canIpForward) { - this.canIpForward = canIpForward; - return this; - } - - /** - * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported - * yet. - * @return value or {@code null} for none - */ - public ConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig; - } - - /** - * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported - * yet. - * @param confidentialInstanceConfig confidentialInstanceConfig or {@code null} for none - */ - public InstanceProperties setConfidentialInstanceConfig(ConfidentialInstanceConfig confidentialInstanceConfig) { - this.confidentialInstanceConfig = confidentialInstanceConfig; - return this; - } - - /** - * An optional text description for the instances that are created from these properties. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional text description for the instances that are created from these properties. - * @param description description or {@code null} for none - */ - public InstanceProperties setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * An array of disks that are associated with the instances that are created from these - * properties. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * An array of disks that are associated with the instances that are created from these - * properties. - * @param disks disks or {@code null} for none - */ - public InstanceProperties setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - /** - * A list of guest accelerator cards' type and count to use for instances created from these - * properties. - * @return value or {@code null} for none - */ - public java.util.List getGuestAccelerators() { - return guestAccelerators; - } - - /** - * A list of guest accelerator cards' type and count to use for instances created from these - * properties. - * @param guestAccelerators guestAccelerators or {@code null} for none - */ - public InstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { - this.guestAccelerators = guestAccelerators; - return this; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * @return value or {@code null} for none - */ - public java.lang.String getKeyRevocationActionType() { - return keyRevocationActionType; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * @param keyRevocationActionType keyRevocationActionType or {@code null} for none - */ - public InstanceProperties setKeyRevocationActionType(java.lang.String keyRevocationActionType) { - this.keyRevocationActionType = keyRevocationActionType; - return this; - } - - /** - * Labels to apply to instances that are created from these properties. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to instances that are created from these properties. - * @param labels labels or {@code null} for none - */ - public InstanceProperties setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Specifies which method should be used for encrypting the Local SSDs attached to the VM. - * @return value or {@code null} for none - */ - public java.lang.String getLocalSsdEncryptionMode() { - return localSsdEncryptionMode; - } - - /** - * Specifies which method should be used for encrypting the Local SSDs attached to the VM. - * @param localSsdEncryptionMode localSsdEncryptionMode or {@code null} for none - */ - public InstanceProperties setLocalSsdEncryptionMode(java.lang.String localSsdEncryptionMode) { - this.localSsdEncryptionMode = localSsdEncryptionMode; - return this; - } - - /** - * The machine type to use for instances that are created from these properties. This field only - * accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or - * partial URL, for example `projects/my-l7ilb-project/zones/us- - * central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * The machine type to use for instances that are created from these properties. This field only - * accepts a machine type name, for example `n2-standard-4`. If you use the machine type full or - * partial URL, for example `projects/my-l7ilb-project/zones/us- - * central1-a/machineTypes/n2-standard-4`, the request will result in an `INTERNAL_ERROR`. - * @param machineType machineType or {@code null} for none - */ - public InstanceProperties setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * The metadata key/value pairs to assign to instances that are created from these properties. - * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata - * for more information. - * @return value or {@code null} for none - */ - public Metadata getMetadata() { - return metadata; - } - - /** - * The metadata key/value pairs to assign to instances that are created from these properties. - * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata - * for more information. - * @param metadata metadata or {@code null} for none - */ - public InstanceProperties setMetadata(Metadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or - * newer cpu/platform. Applicable values are the friendly names of CPU platforms, such - * asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, - * read Specifying a Minimum CPU Platform. - * @return value or {@code null} for none - */ - public java.lang.String getMinCpuPlatform() { - return minCpuPlatform; - } - - /** - * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or - * newer cpu/platform. Applicable values are the friendly names of CPU platforms, such - * asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, - * read Specifying a Minimum CPU Platform. - * @param minCpuPlatform minCpuPlatform or {@code null} for none - */ - public InstanceProperties setMinCpuPlatform(java.lang.String minCpuPlatform) { - this.minCpuPlatform = minCpuPlatform; - return this; - } - - /** - * An array of network access configurations for this interface. - * @return value or {@code null} for none - */ - public java.util.List getNetworkInterfaces() { - return networkInterfaces; - } - - /** - * An array of network access configurations for this interface. - * @param networkInterfaces networkInterfaces or {@code null} for none - */ - public InstanceProperties setNetworkInterfaces(java.util.List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - return this; - } - - /** - * Note that for MachineImage, this is not supported yet. - * @return value or {@code null} for none - */ - public NetworkPerformanceConfig getNetworkPerformanceConfig() { - return networkPerformanceConfig; - } - - /** - * Note that for MachineImage, this is not supported yet. - * @param networkPerformanceConfig networkPerformanceConfig or {@code null} for none - */ - public InstanceProperties setNetworkPerformanceConfig(NetworkPerformanceConfig networkPerformanceConfig) { - this.networkPerformanceConfig = networkPerformanceConfig; - return this; - } - - /** - * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as - * default. Note that for MachineImage, this is not supported yet. - * @return value or {@code null} for none - */ - public java.lang.String getPrivateIpv6GoogleAccess() { - return privateIpv6GoogleAccess; - } - - /** - * The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as - * default. Note that for MachineImage, this is not supported yet. - * @param privateIpv6GoogleAccess privateIpv6GoogleAccess or {@code null} for none - */ - public InstanceProperties setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess) { - this.privateIpv6GoogleAccess = privateIpv6GoogleAccess; - return this; - } - - /** - * Specifies the reservations that instances can consume from. Note that for MachineImage, this is - * not supported yet. - * @return value or {@code null} for none - */ - public ReservationAffinity getReservationAffinity() { - return reservationAffinity; - } - - /** - * Specifies the reservations that instances can consume from. Note that for MachineImage, this is - * not supported yet. - * @param reservationAffinity reservationAffinity or {@code null} for none - */ - public InstanceProperties setReservationAffinity(ReservationAffinity reservationAffinity) { - this.reservationAffinity = reservationAffinity; - return this; - } - - /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - /** - * Resource policies (names, not URLs) applied to instances created from these properties. Note - * that for MachineImage, this is not supported yet. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies (names, not URLs) applied to instances created from these properties. Note - * that for MachineImage, this is not supported yet. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public InstanceProperties setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Specifies the scheduling options for the instances that are created from these properties. - * @return value or {@code null} for none - */ - public Scheduling getScheduling() { - return scheduling; - } - - /** - * Specifies the scheduling options for the instances that are created from these properties. - * @param scheduling scheduling or {@code null} for none - */ - public InstanceProperties setScheduling(Scheduling scheduling) { - this.scheduling = scheduling; - return this; - } - - /** - * A list of service accounts with specified scopes. Access tokens for these service accounts are - * available to the instances that are created from these properties. Use metadata queries to - * obtain the access tokens for these instances. - * @return value or {@code null} for none - */ - public java.util.List getServiceAccounts() { - return serviceAccounts; - } - - /** - * A list of service accounts with specified scopes. Access tokens for these service accounts are - * available to the instances that are created from these properties. Use metadata queries to - * obtain the access tokens for these instances. - * @param serviceAccounts serviceAccounts or {@code null} for none - */ - public InstanceProperties setServiceAccounts(java.util.List serviceAccounts) { - this.serviceAccounts = serviceAccounts; - return this; - } - - /** - * Note that for MachineImage, this is not supported yet. - * @return value or {@code null} for none - */ - public ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig; - } - - /** - * Note that for MachineImage, this is not supported yet. - * @param shieldedInstanceConfig shieldedInstanceConfig or {@code null} for none - */ - public InstanceProperties setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) { - this.shieldedInstanceConfig = shieldedInstanceConfig; - return this; - } - - /** - * A list of tags to apply to the instances that are created from these properties. The tags - * identify valid sources or targets for network firewalls. The setTags method can modify this - * list of tags. Each tag within the list must comply with RFC1035. - * @return value or {@code null} for none - */ - public Tags getTags() { - return tags; - } - - /** - * A list of tags to apply to the instances that are created from these properties. The tags - * identify valid sources or targets for network firewalls. The setTags method can modify this - * list of tags. Each tag within the list must comply with RFC1035. - * @param tags tags or {@code null} for none - */ - public InstanceProperties setTags(Tags tags) { - this.tags = tags; - return this; - } - - /** - * @return value or {@code null} for none - */ - public WorkloadIdentityConfig getWorkloadIdentityConfig() { - return workloadIdentityConfig; - } - - /** - * @param workloadIdentityConfig workloadIdentityConfig or {@code null} for none - */ - public InstanceProperties setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentityConfig) { - this.workloadIdentityConfig = workloadIdentityConfig; - return this; - } - - @Override - public InstanceProperties set(String fieldName, Object value) { - return (InstanceProperties) super.set(fieldName, value); - } - - @Override - public InstanceProperties clone() { - return (InstanceProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancePropertiesPatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancePropertiesPatch.java deleted file mode 100644 index e10a49d2fa6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancePropertiesPatch.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the change that you want to make to the instance properties. - * - *

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 InstancePropertiesPatch extends com.google.api.client.json.GenericJson { - - /** - * This optional flag exposes the hashed physical host ID. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exposeHostTopology; - - /** - * The label key-value pairs that you want to patch onto the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * The metadata key-value pairs that you want to patch onto the instance. For more information, - * see Project and instance metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map metadata; - - /** - * This optional flag exposes the hashed physical host ID. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExposeHostTopology() { - return exposeHostTopology; - } - - /** - * This optional flag exposes the hashed physical host ID. - * @param exposeHostTopology exposeHostTopology or {@code null} for none - */ - public InstancePropertiesPatch setExposeHostTopology(java.lang.Boolean exposeHostTopology) { - this.exposeHostTopology = exposeHostTopology; - return this; - } - - /** - * The label key-value pairs that you want to patch onto the instance. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * The label key-value pairs that you want to patch onto the instance. - * @param labels labels or {@code null} for none - */ - public InstancePropertiesPatch setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * The metadata key-value pairs that you want to patch onto the instance. For more information, - * see Project and instance metadata. - * @return value or {@code null} for none - */ - public java.util.Map getMetadata() { - return metadata; - } - - /** - * The metadata key-value pairs that you want to patch onto the instance. For more information, - * see Project and instance metadata. - * @param metadata metadata or {@code null} for none - */ - public InstancePropertiesPatch setMetadata(java.util.Map metadata) { - this.metadata = metadata; - return this; - } - - @Override - public InstancePropertiesPatch set(String fieldName, Object value) { - return (InstancePropertiesPatch) super.set(fieldName, value); - } - - @Override - public InstancePropertiesPatch clone() { - return (InstancePropertiesPatch) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceReference.java deleted file mode 100644 index 1de7a1e21e4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceReference.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceReference. - * - *

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 InstanceReference extends com.google.api.client.json.GenericJson { - - /** - * The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances - * @param instance instance or {@code null} for none - */ - public InstanceReference setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - @Override - public InstanceReference set(String fieldName, Object value) { - return (InstanceReference) super.set(fieldName, value); - } - - @Override - public InstanceReference clone() { - return (InstanceReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettings.java deleted file mode 100644 index f3d996d043e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettings.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Instance Settings resource. You can use instance settings to configure default - * settings for Compute Engine VM instances. For example, you can use it to configure default - * machine type of Compute Engine VM instances. - * - *

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 InstanceSettings extends com.google.api.client.json.GenericJson { - - /** - * Specifies a fingerprint for instance settings, which is essentially a hash of the instance - * settings resource's contents and used for optimistic locking. The fingerprint is initially - * generated by Compute Engine and changes after every request to modify or update the instance - * settings resource. You must always provide an up-to-date fingerprint hash in order to update or - * change the resource, otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The metadata key/value pairs assigned to all the instances in the corresponding scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceSettingsMetadata metadata; - - /** - * Output only. [Output Only] URL of the zone where the resource resides You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Specifies a fingerprint for instance settings, which is essentially a hash of the instance - * settings resource's contents and used for optimistic locking. The fingerprint is initially - * generated by Compute Engine and changes after every request to modify or update the instance - * settings resource. You must always provide an up-to-date fingerprint hash in order to update or - * change the resource, otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Specifies a fingerprint for instance settings, which is essentially a hash of the instance - * settings resource's contents and used for optimistic locking. The fingerprint is initially - * generated by Compute Engine and changes after every request to modify or update the instance - * settings resource. You must always provide an up-to-date fingerprint hash in order to update or - * change the resource, otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Specifies a fingerprint for instance settings, which is essentially a hash of the instance - * settings resource's contents and used for optimistic locking. The fingerprint is initially - * generated by Compute Engine and changes after every request to modify or update the instance - * settings resource. You must always provide an up-to-date fingerprint hash in order to update or - * change the resource, otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public InstanceSettings setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Specifies a fingerprint for instance settings, which is essentially a hash of the instance - * settings resource's contents and used for optimistic locking. The fingerprint is initially - * generated by Compute Engine and changes after every request to modify or update the instance - * settings resource. You must always provide an up-to-date fingerprint hash in order to update or - * change the resource, otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstanceSettings encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. - * @param kind kind or {@code null} for none - */ - public InstanceSettings setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The metadata key/value pairs assigned to all the instances in the corresponding scope. - * @return value or {@code null} for none - */ - public InstanceSettingsMetadata getMetadata() { - return metadata; - } - - /** - * The metadata key/value pairs assigned to all the instances in the corresponding scope. - * @param metadata metadata or {@code null} for none - */ - public InstanceSettings setMetadata(InstanceSettingsMetadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the resource resides You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the resource resides You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public InstanceSettings setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InstanceSettings set(String fieldName, Object value) { - return (InstanceSettings) super.set(fieldName, value); - } - - @Override - public InstanceSettings clone() { - return (InstanceSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettingsMetadata.java deleted file mode 100644 index 6726f964171..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceSettingsMetadata.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceSettingsMetadata. - * - *

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 InstanceSettingsMetadata extends com.google.api.client.json.GenericJson { - - /** - * A metadata key/value items map. The total size of all keys and values must be less than 512KB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A metadata key/value items map. The total size of all keys and values must be less than 512KB. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A metadata key/value items map. The total size of all keys and values must be less than 512KB. - * @param items items or {@code null} for none - */ - public InstanceSettingsMetadata setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. - * @param kind kind or {@code null} for none - */ - public InstanceSettingsMetadata setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public InstanceSettingsMetadata set(String fieldName, Object value) { - return (InstanceSettingsMetadata) super.set(fieldName, value); - } - - @Override - public InstanceSettingsMetadata clone() { - return (InstanceSettingsMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplate.java deleted file mode 100644 index 6657ce8c1fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplate.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Instance Template resource. - * - * Google Compute Engine has two Instance Template resources: - * - * * [Global](/compute/docs/reference/rest/v1/instanceTemplates) * - * [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) - * - * You can reuse a global instance template in different regions whereas you can use a regional - * instance template in a specified region only. If you want to reduce cross-region dependency or - * achieve data residency, use a regional instance template. - * - * To create VMs, managed instance groups, and reservations, you can use either global or regional - * instance templates. - * - * For more information, readInstance Templates. - * - *

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 InstanceTemplate extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. - * 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] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource; provided by the client 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; - - /** - * The instance properties for this instance template. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceProperties properties; - - /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * The source instance used to create the template. You can provide this as a partial or full URL - * to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstance; - - /** - * The source instance params to use to create this instance template. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SourceInstanceParams sourceInstanceParams; - - /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InstanceTemplate setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public InstanceTemplate setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. - * @param id id or {@code null} for none - */ - public InstanceTemplate setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. - * @param kind kind or {@code null} for none - */ - public InstanceTemplate setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 InstanceTemplate setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The instance properties for this instance template. - * @return value or {@code null} for none - */ - public InstanceProperties getProperties() { - return properties; - } - - /** - * The instance properties for this instance template. - * @param properties properties or {@code null} for none - */ - public InstanceTemplate setProperties(InstanceProperties properties) { - this.properties = properties; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. - * @param region region or {@code null} for none - */ - public InstanceTemplate setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. - * @param selfLink selfLink or {@code null} for none - */ - public InstanceTemplate setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The source instance used to create the template. You can provide this as a partial or full URL - * to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstance() { - return sourceInstance; - } - - /** - * The source instance used to create the template. You can provide this as a partial or full URL - * to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - * @param sourceInstance sourceInstance or {@code null} for none - */ - public InstanceTemplate setSourceInstance(java.lang.String sourceInstance) { - this.sourceInstance = sourceInstance; - return this; - } - - /** - * The source instance params to use to create this instance template. - * @return value or {@code null} for none - */ - public SourceInstanceParams getSourceInstanceParams() { - return sourceInstanceParams; - } - - /** - * The source instance params to use to create this instance template. - * @param sourceInstanceParams sourceInstanceParams or {@code null} for none - */ - public InstanceTemplate setSourceInstanceParams(SourceInstanceParams sourceInstanceParams) { - this.sourceInstanceParams = sourceInstanceParams; - return this; - } - - @Override - public InstanceTemplate set(String fieldName, Object value) { - return (InstanceTemplate) super.set(fieldName, value); - } - - @Override - public InstanceTemplate clone() { - return (InstanceTemplate) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateAggregatedList.java deleted file mode 100644 index b686118387f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateAggregatedList.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of InstanceTemplatesScopedList. - * - *

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 InstanceTemplateAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 InstanceTemplatesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InstanceTemplateAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceTemplatesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of InstanceTemplatesScopedList resources. - * @param items items or {@code null} for none - */ - public InstanceTemplateAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public InstanceTemplateAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceTemplateAggregatedList 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 InstanceTemplateAggregatedList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstanceTemplateAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceTemplateAggregatedList set(String fieldName, Object value) { - return (InstanceTemplateAggregatedList) super.set(fieldName, value); - } - - @Override - public InstanceTemplateAggregatedList clone() { - return (InstanceTemplateAggregatedList) 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 InstanceTemplateAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateList.java deleted file mode 100644 index 18b5ce753db..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplateList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of instance templates. - * - *

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 InstanceTemplateList extends com.google.api.client.json.GenericJson { - - /** - * [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 InstanceTemplate 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 InstanceTemplate 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(InstanceTemplate.class); - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InstanceTemplateList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceTemplate resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceTemplate resources. - * @param items items or {@code null} for none - */ - public InstanceTemplateList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. - * @param kind kind or {@code null} for none - */ - public InstanceTemplateList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstanceTemplateList 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 InstanceTemplateList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstanceTemplateList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceTemplateList set(String fieldName, Object value) { - return (InstanceTemplateList) super.set(fieldName, value); - } - - @Override - public InstanceTemplateList clone() { - return (InstanceTemplateList) 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 InstanceTemplateListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplatesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplatesScopedList.java deleted file mode 100644 index da55e598968..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceTemplatesScopedList.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceTemplatesScopedList. - * - *

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 InstanceTemplatesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of instance templates that are contained within the specified project and - * zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceTemplates; - - static { - // hack to force ProGuard to consider InstanceTemplate 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(InstanceTemplate.class); - } - - /** - * [Output Only] An informational warning that replaces the list of instance templates when the - * list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of instance templates that are contained within the specified project and - * zone. - * @return value or {@code null} for none - */ - public java.util.List getInstanceTemplates() { - return instanceTemplates; - } - - /** - * [Output Only] A list of instance templates that are contained within the specified project and - * zone. - * @param instanceTemplates instanceTemplates or {@code null} for none - */ - public InstanceTemplatesScopedList setInstanceTemplates(java.util.List instanceTemplates) { - this.instanceTemplates = instanceTemplates; - return this; - } - - /** - * [Output Only] An informational warning that replaces the list of instance templates when the - * list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] An informational warning that replaces the list of instance templates when the - * list is empty. - * @param warning warning or {@code null} for none - */ - public InstanceTemplatesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstanceTemplatesScopedList set(String fieldName, Object value) { - return (InstanceTemplatesScopedList) super.set(fieldName, value); - } - - @Override - public InstanceTemplatesScopedList clone() { - return (InstanceTemplatesScopedList) super.clone(); - } - - /** - * [Output Only] An informational warning that replaces the list of instance templates when the list - * is empty. - */ - 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 InstanceTemplatesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceWithNamedPorts.java deleted file mode 100644 index c19e1fd5267..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstanceWithNamedPorts.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstanceWithNamedPorts. - * - *

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 InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The URL of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * Output only. [Output Only] The named ports that belong to this instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List namedPorts; - - /** - * Output only. [Output Only] The status of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] The URL of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Output only. [Output Only] The URL of the instance. - * @param instance instance or {@code null} for none - */ - public InstanceWithNamedPorts setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** - * Output only. [Output Only] The named ports that belong to this instance group. - * @return value or {@code null} for none - */ - public java.util.List getNamedPorts() { - return namedPorts; - } - - /** - * Output only. [Output Only] The named ports that belong to this instance group. - * @param namedPorts namedPorts or {@code null} for none - */ - public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts) { - this.namedPorts = namedPorts; - return this; - } - - /** - * Output only. [Output Only] The status of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the instance. - * @param status status or {@code null} for none - */ - public InstanceWithNamedPorts setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public InstanceWithNamedPorts set(String fieldName, Object value) { - return (InstanceWithNamedPorts) super.set(fieldName, value); - } - - @Override - public InstanceWithNamedPorts clone() { - return (InstanceWithNamedPorts) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesAddResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesAddResourcePoliciesRequest.java deleted file mode 100644 index 5779868c916..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesAddResourcePoliciesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesAddResourcePoliciesRequest. - * - *

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 InstancesAddResourcePoliciesRequest extends com.google.api.client.json.GenericJson { - - /** - * Resource policies to be added to this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Resource policies to be added to this instance. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies to be added to this instance. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public InstancesAddResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - @Override - public InstancesAddResourcePoliciesRequest set(String fieldName, Object value) { - return (InstancesAddResourcePoliciesRequest) super.set(fieldName, value); - } - - @Override - public InstancesAddResourcePoliciesRequest clone() { - return (InstancesAddResourcePoliciesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesBulkInsertOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesBulkInsertOperationMetadata.java deleted file mode 100644 index 2e46b170fd3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesBulkInsertOperationMetadata.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesBulkInsertOperationMetadata. - * - *

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 InstancesBulkInsertOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * Status information per location (location name is key). Example key: zones/us-central1-a - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map perLocationStatus; - - static { - // hack to force ProGuard to consider BulkInsertOperationStatus 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(BulkInsertOperationStatus.class); - } - - /** - * Status information per location (location name is key). Example key: zones/us-central1-a - * @return value or {@code null} for none - */ - public java.util.Map getPerLocationStatus() { - return perLocationStatus; - } - - /** - * Status information per location (location name is key). Example key: zones/us-central1-a - * @param perLocationStatus perLocationStatus or {@code null} for none - */ - public InstancesBulkInsertOperationMetadata setPerLocationStatus(java.util.Map perLocationStatus) { - this.perLocationStatus = perLocationStatus; - return this; - } - - @Override - public InstancesBulkInsertOperationMetadata set(String fieldName, Object value) { - return (InstancesBulkInsertOperationMetadata) super.set(fieldName, value); - } - - @Override - public InstancesBulkInsertOperationMetadata clone() { - return (InstancesBulkInsertOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponse.java deleted file mode 100644 index eea7a4f02bd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponse.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesGetEffectiveFirewallsResponse. - * - *

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 InstancesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Effective firewalls from firewall policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewallPolicys; - - /** - * Effective firewalls on the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewalls; - - static { - // hack to force ProGuard to consider Firewall 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(Firewall.class); - } - - /** - * [Output Only] Effective firewalls from firewall policies. - * @return value or {@code null} for none - */ - public java.util.List getFirewallPolicys() { - return firewallPolicys; - } - - /** - * [Output Only] Effective firewalls from firewall policies. - * @param firewallPolicys firewallPolicys or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponse setFirewallPolicys(java.util.List firewallPolicys) { - this.firewallPolicys = firewallPolicys; - return this; - } - - /** - * Effective firewalls on the instance. - * @return value or {@code null} for none - */ - public java.util.List getFirewalls() { - return firewalls; - } - - /** - * Effective firewalls on the instance. - * @param firewalls firewalls or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponse setFirewalls(java.util.List firewalls) { - this.firewalls = firewalls; - return this; - } - - @Override - public InstancesGetEffectiveFirewallsResponse set(String fieldName, Object value) { - return (InstancesGetEffectiveFirewallsResponse) super.set(fieldName, value); - } - - @Override - public InstancesGetEffectiveFirewallsResponse clone() { - return (InstancesGetEffectiveFirewallsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java deleted file mode 100644 index c1c6f9e1a32..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy. - * - *

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 InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Output only. [Output Only] The name of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List packetMirroringRules; - - static { - // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * [Output Only] The rules that apply to the instance. Only rules that target the specific VM - * instance are returned if target service accounts or target secure tags are specified in the - * rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rules; - - static { - // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); - } - - /** - * Output only. [Output Only] The short name of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String shortName; - - /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, - * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. - * @param displayName displayName or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Output only. [Output Only] The name of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of the firewall policy. - * @param name name or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. - * @return value or {@code null} for none - */ - public java.util.List getPacketMirroringRules() { - return packetMirroringRules; - } - - /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. - * @param packetMirroringRules packetMirroringRules or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { - this.packetMirroringRules = packetMirroringRules; - return this; - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * @param priority priority or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * [Output Only] The rules that apply to the instance. Only rules that target the specific VM - * instance are returned if target service accounts or target secure tags are specified in the - * rules. - * @return value or {@code null} for none - */ - public java.util.List getRules() { - return rules; - } - - /** - * [Output Only] The rules that apply to the instance. Only rules that target the specific VM - * instance are returned if target service accounts or target secure tags are specified in the - * rules. - * @param rules rules or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { - this.rules = rules; - return this; - } - - /** - * Output only. [Output Only] The short name of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getShortName() { - return shortName; - } - - /** - * Output only. [Output Only] The short name of the firewall policy. - * @param shortName shortName or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { - this.shortName = shortName; - return this; - } - - /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, - * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, - * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. - * @param type type or {@code null} for none - */ - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy set(String fieldName, Object value) { - return (InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.set(fieldName, value); - } - - @Override - public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy clone() { - return (InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesRemoveResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesRemoveResourcePoliciesRequest.java deleted file mode 100644 index cb51f26e94b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesRemoveResourcePoliciesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesRemoveResourcePoliciesRequest. - * - *

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 InstancesRemoveResourcePoliciesRequest extends com.google.api.client.json.GenericJson { - - /** - * Resource policies to be removed from this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Resource policies to be removed from this instance. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies to be removed from this instance. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public InstancesRemoveResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - @Override - public InstancesRemoveResourcePoliciesRequest set(String fieldName, Object value) { - return (InstancesRemoveResourcePoliciesRequest) super.set(fieldName, value); - } - - @Override - public InstancesRemoveResourcePoliciesRequest clone() { - return (InstancesRemoveResourcePoliciesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequest.java deleted file mode 100644 index 4d415a51158..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequest.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesReportHostAsFaultyRequest. - * - *

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 InstancesReportHostAsFaultyRequest extends com.google.api.client.json.GenericJson { - - /** - * The disruption schedule for the VM. Required field, only allows IMMEDIATE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disruptionSchedule; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List faultReasons; - - /** - * The disruption schedule for the VM. Required field, only allows IMMEDIATE. - * @return value or {@code null} for none - */ - public java.lang.String getDisruptionSchedule() { - return disruptionSchedule; - } - - /** - * The disruption schedule for the VM. Required field, only allows IMMEDIATE. - * @param disruptionSchedule disruptionSchedule or {@code null} for none - */ - public InstancesReportHostAsFaultyRequest setDisruptionSchedule(java.lang.String disruptionSchedule) { - this.disruptionSchedule = disruptionSchedule; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getFaultReasons() { - return faultReasons; - } - - /** - * @param faultReasons faultReasons or {@code null} for none - */ - public InstancesReportHostAsFaultyRequest setFaultReasons(java.util.List faultReasons) { - this.faultReasons = faultReasons; - return this; - } - - @Override - public InstancesReportHostAsFaultyRequest set(String fieldName, Object value) { - return (InstancesReportHostAsFaultyRequest) super.set(fieldName, value); - } - - @Override - public InstancesReportHostAsFaultyRequest clone() { - return (InstancesReportHostAsFaultyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequestFaultReason.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequestFaultReason.java deleted file mode 100644 index 602e835b3ca..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesReportHostAsFaultyRequestFaultReason.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesReportHostAsFaultyRequestFaultReason. - * - *

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 InstancesReportHostAsFaultyRequestFaultReason extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String behavior; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getBehavior() { - return behavior; - } - - /** - * @param behavior behavior or {@code null} for none - */ - public InstancesReportHostAsFaultyRequestFaultReason setBehavior(java.lang.String behavior) { - this.behavior = behavior; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * @param description description or {@code null} for none - */ - public InstancesReportHostAsFaultyRequestFaultReason setDescription(java.lang.String description) { - this.description = description; - return this; - } - - @Override - public InstancesReportHostAsFaultyRequestFaultReason set(String fieldName, Object value) { - return (InstancesReportHostAsFaultyRequestFaultReason) super.set(fieldName, value); - } - - @Override - public InstancesReportHostAsFaultyRequestFaultReason clone() { - return (InstancesReportHostAsFaultyRequestFaultReason) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesScopedList.java deleted file mode 100644 index 01920897e44..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesScopedList. - * - *

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 InstancesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of instances contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - static { - // hack to force ProGuard to consider Instance 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(Instance.class); - } - - /** - * [Output Only] Informational warning which replaces the list of instances when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of instances contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * [Output Only] A list of instances contained in this scope. - * @param instances instances or {@code null} for none - */ - public InstancesScopedList setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of instances when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of instances when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public InstancesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstancesScopedList set(String fieldName, Object value) { - return (InstancesScopedList) super.set(fieldName, value); - } - - @Override - public InstancesScopedList clone() { - return (InstancesScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of instances when the list is empty. - */ - 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 InstancesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetLabelsRequest.java deleted file mode 100644 index 8d05ced1080..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetLabelsRequest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetLabelsRequest. - * - *

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 InstancesSetLabelsRequest extends com.google.api.client.json.GenericJson { - - /** - * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide - * the latest fingerprint value when making a request to add or change labels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide - * the latest fingerprint value when making a request to add or change labels. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide - * the latest fingerprint value when making a request to add or change labels. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide - * the latest fingerprint value when making a request to add or change labels. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public InstancesSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide - * the latest fingerprint value when making a request to add or change labels. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstancesSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * @param labels labels or {@code null} for none - */ - public InstancesSetLabelsRequest setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - @Override - public InstancesSetLabelsRequest set(String fieldName, Object value) { - return (InstancesSetLabelsRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetLabelsRequest clone() { - return (InstancesSetLabelsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineResourcesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineResourcesRequest.java deleted file mode 100644 index 509676f016d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineResourcesRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetMachineResourcesRequest. - * - *

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 InstancesSetMachineResourcesRequest extends com.google.api.client.json.GenericJson { - - /** - * A list of the type and count of accelerator cards attached to the instance. - * 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); - } - - /** - * A list of the type and count of accelerator cards attached to the instance. - * @return value or {@code null} for none - */ - public java.util.List getGuestAccelerators() { - return guestAccelerators; - } - - /** - * A list of the type and count of accelerator cards attached to the instance. - * @param guestAccelerators guestAccelerators or {@code null} for none - */ - public InstancesSetMachineResourcesRequest setGuestAccelerators(java.util.List guestAccelerators) { - this.guestAccelerators = guestAccelerators; - return this; - } - - @Override - public InstancesSetMachineResourcesRequest set(String fieldName, Object value) { - return (InstancesSetMachineResourcesRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetMachineResourcesRequest clone() { - return (InstancesSetMachineResourcesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineTypeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineTypeRequest.java deleted file mode 100644 index 080e670f2d1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMachineTypeRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetMachineTypeRequest. - * - *

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 InstancesSetMachineTypeRequest extends com.google.api.client.json.GenericJson { - - /** - * Full or partial URL of the machine type resource. See Machine Types for a full list of machine - * types. For example:zones/us-central1-f/machineTypes/n1-standard-1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * Full or partial URL of the machine type resource. See Machine Types for a full list of machine - * types. For example:zones/us-central1-f/machineTypes/n1-standard-1 - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * Full or partial URL of the machine type resource. See Machine Types for a full list of machine - * types. For example:zones/us-central1-f/machineTypes/n1-standard-1 - * @param machineType machineType or {@code null} for none - */ - public InstancesSetMachineTypeRequest setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - @Override - public InstancesSetMachineTypeRequest set(String fieldName, Object value) { - return (InstancesSetMachineTypeRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetMachineTypeRequest clone() { - return (InstancesSetMachineTypeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMinCpuPlatformRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMinCpuPlatformRequest.java deleted file mode 100644 index 3c2ac7a8e8b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetMinCpuPlatformRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetMinCpuPlatformRequest. - * - *

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 InstancesSetMinCpuPlatformRequest extends com.google.api.client.json.GenericJson { - - /** - * Minimum cpu/platform this instance should be started at. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minCpuPlatform; - - /** - * Minimum cpu/platform this instance should be started at. - * @return value or {@code null} for none - */ - public java.lang.String getMinCpuPlatform() { - return minCpuPlatform; - } - - /** - * Minimum cpu/platform this instance should be started at. - * @param minCpuPlatform minCpuPlatform or {@code null} for none - */ - public InstancesSetMinCpuPlatformRequest setMinCpuPlatform(java.lang.String minCpuPlatform) { - this.minCpuPlatform = minCpuPlatform; - return this; - } - - @Override - public InstancesSetMinCpuPlatformRequest set(String fieldName, Object value) { - return (InstancesSetMinCpuPlatformRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetMinCpuPlatformRequest clone() { - return (InstancesSetMinCpuPlatformRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetNameRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetNameRequest.java deleted file mode 100644 index 43c1291733b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetNameRequest.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetNameRequest. - * - *

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 InstancesSetNameRequest extends com.google.api.client.json.GenericJson { - - /** - * The current name of this resource, used to prevent conflicts. Provide the latest name when - * making a request to change name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String currentName; - - /** - * The name to be applied to the instance. Needs to be RFC 1035 compliant. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The current name of this resource, used to prevent conflicts. Provide the latest name when - * making a request to change name. - * @return value or {@code null} for none - */ - public java.lang.String getCurrentName() { - return currentName; - } - - /** - * The current name of this resource, used to prevent conflicts. Provide the latest name when - * making a request to change name. - * @param currentName currentName or {@code null} for none - */ - public InstancesSetNameRequest setCurrentName(java.lang.String currentName) { - this.currentName = currentName; - return this; - } - - /** - * The name to be applied to the instance. Needs to be RFC 1035 compliant. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name to be applied to the instance. Needs to be RFC 1035 compliant. - * @param name name or {@code null} for none - */ - public InstancesSetNameRequest setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public InstancesSetNameRequest set(String fieldName, Object value) { - return (InstancesSetNameRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetNameRequest clone() { - return (InstancesSetNameRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetSecurityPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetSecurityPolicyRequest.java deleted file mode 100644 index 019f6c9b5ab..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetSecurityPolicyRequest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetSecurityPolicyRequest. - * - *

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 InstancesSetSecurityPolicyRequest extends com.google.api.client.json.GenericJson { - - /** - * The network interfaces that the security policy will be applied to. Network interfaces use the - * nicN naming format. You can only set a security policy for network interfaces with an access - * config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkInterfaces; - - /** - * A full or partial URL to a security policy to add to this instance. If this field is set to an - * empty string it will remove the associated security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * The network interfaces that the security policy will be applied to. Network interfaces use the - * nicN naming format. You can only set a security policy for network interfaces with an access - * config. - * @return value or {@code null} for none - */ - public java.util.List getNetworkInterfaces() { - return networkInterfaces; - } - - /** - * The network interfaces that the security policy will be applied to. Network interfaces use the - * nicN naming format. You can only set a security policy for network interfaces with an access - * config. - * @param networkInterfaces networkInterfaces or {@code null} for none - */ - public InstancesSetSecurityPolicyRequest setNetworkInterfaces(java.util.List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - return this; - } - - /** - * A full or partial URL to a security policy to add to this instance. If this field is set to an - * empty string it will remove the associated security policy. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * A full or partial URL to a security policy to add to this instance. If this field is set to an - * empty string it will remove the associated security policy. - * @param securityPolicy securityPolicy or {@code null} for none - */ - public InstancesSetSecurityPolicyRequest setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - return this; - } - - @Override - public InstancesSetSecurityPolicyRequest set(String fieldName, Object value) { - return (InstancesSetSecurityPolicyRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetSecurityPolicyRequest clone() { - return (InstancesSetSecurityPolicyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetServiceAccountRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetServiceAccountRequest.java deleted file mode 100644 index 79219aa4b9e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesSetServiceAccountRequest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesSetServiceAccountRequest. - * - *

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 InstancesSetServiceAccountRequest extends com.google.api.client.json.GenericJson { - - /** - * Email address of the service account. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String email; - - /** - * The list of scopes to be made available for this service account. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List scopes; - - /** - * Email address of the service account. - * @return value or {@code null} for none - */ - public java.lang.String getEmail() { - return email; - } - - /** - * Email address of the service account. - * @param email email or {@code null} for none - */ - public InstancesSetServiceAccountRequest setEmail(java.lang.String email) { - this.email = email; - return this; - } - - /** - * The list of scopes to be made available for this service account. - * @return value or {@code null} for none - */ - public java.util.List getScopes() { - return scopes; - } - - /** - * The list of scopes to be made available for this service account. - * @param scopes scopes or {@code null} for none - */ - public InstancesSetServiceAccountRequest setScopes(java.util.List scopes) { - this.scopes = scopes; - return this; - } - - @Override - public InstancesSetServiceAccountRequest set(String fieldName, Object value) { - return (InstancesSetServiceAccountRequest) super.set(fieldName, value); - } - - @Override - public InstancesSetServiceAccountRequest clone() { - return (InstancesSetServiceAccountRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesStartWithEncryptionKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesStartWithEncryptionKeyRequest.java deleted file mode 100644 index 6703188f6f4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstancesStartWithEncryptionKeyRequest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstancesStartWithEncryptionKeyRequest. - * - *

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 InstancesStartWithEncryptionKeyRequest extends com.google.api.client.json.GenericJson { - - /** - * Array of disks associated with this instance that are protected with acustomer-supplied - * encryption key. - * - * In order to start the instance, the disk url and its corresponding key must be provided. - * - * If the disk is not protected with a customer-supplied encryption key it should not be - * specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List disks; - - static { - // hack to force ProGuard to consider CustomerEncryptionKeyProtectedDisk 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(CustomerEncryptionKeyProtectedDisk.class); - } - - /** - * Array of disks associated with this instance that are protected with acustomer-supplied - * encryption key. - * - * In order to start the instance, the disk url and its corresponding key must be provided. - * - * If the disk is not protected with a customer-supplied encryption key it should not be - * specified. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * Array of disks associated with this instance that are protected with acustomer-supplied - * encryption key. - * - * In order to start the instance, the disk url and its corresponding key must be provided. - * - * If the disk is not protected with a customer-supplied encryption key it should not be - * specified. - * @param disks disks or {@code null} for none - */ - public InstancesStartWithEncryptionKeyRequest setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - @Override - public InstancesStartWithEncryptionKeyRequest set(String fieldName, Object value) { - return (InstancesStartWithEncryptionKeyRequest) super.set(fieldName, value); - } - - @Override - public InstancesStartWithEncryptionKeyRequest clone() { - return (InstancesStartWithEncryptionKeyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshot.java deleted file mode 100644 index 0704eb078cb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshot.java +++ /dev/null @@ -1,708 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a InstantSnapshot resource. - * - * You can use instant snapshots to create disk rollback points quickly.. - * - *

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 InstantSnapshot extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or - * X86_64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Size of the source disk, specified in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * 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] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. - * Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource; provided by the client 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; - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstantSnapshotParams params; - - /** - * Output only. [Output Only] URL of the region where the instant snapshot resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] Status information for the instant snapshot resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstantSnapshotResourceStatus resourceStatus; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * URL of the source disk used to create this instant snapshot. Note that the source disk must be - * in the same zone/region as the instant snapshot to be created. This can be a full or valid - * partial URL. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDisk; - - /** - * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This - * value may be used to determine whether the InstantSnapshot was taken from the current or a - * previous instance of a given disk name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDiskId; - - /** - * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is part of. - * Note that the source instant snapshot group must be in the same zone/region as the instant - * snapshot to be created. This can be a full or valid partial URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshotGroup; - - /** - * Output only. [Output Only] The ID value of the source instant snapshot group this - * InstantSnapshot is part of. This value may be used to determine whether the InstantSnapshot was - * created as part of an InstantSnapshotGroup creation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshotGroupId; - - /** - * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, - * FAILED, orREADY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or - * X86_64. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or - * X86_64. - * @param architecture architecture or {@code null} for none - */ - public InstantSnapshot setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public InstantSnapshot setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Size of the source disk, specified in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * Output only. [Output Only] Size of the source disk, specified in GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - 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 InstantSnapshot setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. - * @param kind kind or {@code null} for none - */ - public InstantSnapshot setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public InstantSnapshot setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InstantSnapshot encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. - * Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. - * Label values may be empty. - * @param labels labels or {@code null} for none - */ - public InstantSnapshot setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 InstantSnapshot setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @return value or {@code null} for none - */ - public InstantSnapshotParams getParams() { - return params; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @param params params or {@code null} for none - */ - public InstantSnapshot setParams(InstantSnapshotParams params) { - this.params = params; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the instant snapshot resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the instant snapshot resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * @param region region or {@code null} for none - */ - public InstantSnapshot setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] Status information for the instant snapshot resource. - * @return value or {@code null} for none - */ - public InstantSnapshotResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] Status information for the instant snapshot resource. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - 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 InstantSnapshot setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public InstantSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * URL of the source disk used to create this instant snapshot. Note that the source disk must be - * in the same zone/region as the instant snapshot to be created. This can be a full or valid - * partial URL. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getSourceDisk() { - return sourceDisk; - } - - /** - * URL of the source disk used to create this instant snapshot. Note that the source disk must be - * in the same zone/region as the instant snapshot to be created. This can be a full or valid - * partial URL. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @param sourceDisk sourceDisk or {@code null} for none - */ - public InstantSnapshot setSourceDisk(java.lang.String sourceDisk) { - this.sourceDisk = sourceDisk; - return this; - } - - /** - * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This - * value may be used to determine whether the InstantSnapshot was taken from the current or a - * previous instance of a given disk name. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDiskId() { - return sourceDiskId; - } - - /** - * Output only. [Output Only] The ID value of the disk used to create this InstantSnapshot. This - * value may be used to determine whether the InstantSnapshot was taken from the current or a - * previous instance of a given disk name. - * @param sourceDiskId sourceDiskId or {@code null} for none - */ - public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { - this.sourceDiskId = sourceDiskId; - return this; - } - - /** - * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is part of. - * Note that the source instant snapshot group must be in the same zone/region as the instant - * snapshot to be created. This can be a full or valid partial URL. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshotGroup() { - return sourceInstantSnapshotGroup; - } - - /** - * Output only. [Output Only] URL of the source instant snapshot this instant snapshot is part of. - * Note that the source instant snapshot group must be in the same zone/region as the instant - * snapshot to be created. This can be a full or valid partial URL. - * @param sourceInstantSnapshotGroup sourceInstantSnapshotGroup or {@code null} for none - */ - public InstantSnapshot setSourceInstantSnapshotGroup(java.lang.String sourceInstantSnapshotGroup) { - this.sourceInstantSnapshotGroup = sourceInstantSnapshotGroup; - return this; - } - - /** - * Output only. [Output Only] The ID value of the source instant snapshot group this - * InstantSnapshot is part of. This value may be used to determine whether the InstantSnapshot was - * created as part of an InstantSnapshotGroup creation. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshotGroupId() { - return sourceInstantSnapshotGroupId; - } - - /** - * Output only. [Output Only] The ID value of the source instant snapshot group this - * InstantSnapshot is part of. This value may be used to determine whether the InstantSnapshot was - * created as part of an InstantSnapshotGroup creation. - * @param sourceInstantSnapshotGroupId sourceInstantSnapshotGroupId or {@code null} for none - */ - public InstantSnapshot setSourceInstantSnapshotGroupId(java.lang.String sourceInstantSnapshotGroupId) { - this.sourceInstantSnapshotGroupId = sourceInstantSnapshotGroupId; - return this; - } - - /** - * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, - * FAILED, orREADY. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, - * FAILED, orREADY. - * @param status status or {@code null} for none - */ - public InstantSnapshot setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the instant snapshot resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public InstantSnapshot setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InstantSnapshot set(String fieldName, Object value) { - return (InstantSnapshot) super.set(fieldName, value); - } - - @Override - public InstantSnapshot clone() { - return (InstantSnapshot) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotAggregatedList.java deleted file mode 100644 index e21035c08a0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstantSnapshotAggregatedList. - * - *

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 InstantSnapshotAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 InstantSnapshotsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for - * aggregated lists of instantSnapshots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 InstantSnapshotAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstantSnapshotsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of InstantSnapshotsScopedList resources. - * @param items items or {@code null} for none - */ - public InstantSnapshotAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for - * aggregated lists of instantSnapshots. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for - * aggregated lists of instantSnapshots. - * @param kind kind or {@code null} for none - */ - public InstantSnapshotAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList 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 InstantSnapshotAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstantSnapshotAggregatedList set(String fieldName, Object value) { - return (InstantSnapshotAggregatedList) super.set(fieldName, value); - } - - @Override - public InstantSnapshotAggregatedList clone() { - return (InstantSnapshotAggregatedList) 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 InstantSnapshotAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroup.java deleted file mode 100644 index 6a4de5383f7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroup.java +++ /dev/null @@ -1,360 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an InstantSnapshotGroup resource. - * - * An instant snapshot group is a set of instant snapshots that represents a point in time state of - * a consistency group. - * - *

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 InstantSnapshotGroup extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Optional. An optional description of this resource. Provide this property when you create the - * 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; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for - * InstantSnapshotGroup resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Identifier. Name of the resource; provided by the client 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] URL of the region where the instant snapshot group resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstantSnapshotGroupResourceStatus resourceStatus; - - /** - * 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroup; - - /** - * Output only. [Output Only] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] URL of the zone where the instant snapshot group resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InstantSnapshotGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Optional. An optional description of this resource. Provide this property when you create the - * resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Optional. An optional description of this resource. Provide this property when you create the - * resource. - * @param description description or {@code null} for none - */ - public InstantSnapshotGroup 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 InstantSnapshotGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for - * InstantSnapshotGroup resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for - * InstantSnapshotGroup resources. - * @param kind kind or {@code null} for none - */ - public InstantSnapshotGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Identifier. Name of the resource; provided by the client 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; - } - - /** - * Identifier. Name of the resource; provided by the client 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 InstantSnapshotGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the instant snapshot group resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the instant snapshot group resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * @param region region or {@code null} for none - */ - public InstantSnapshotGroup setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InstantSnapshotGroupResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * @param resourceStatus resourceStatus or {@code null} for none - */ - public InstantSnapshotGroup setResourceStatus(InstantSnapshotGroupResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - 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 InstantSnapshotGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public InstantSnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getSourceConsistencyGroup() { - return sourceConsistencyGroup; - } - - /** - * @param sourceConsistencyGroup sourceConsistencyGroup or {@code null} for none - */ - public InstantSnapshotGroup setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { - this.sourceConsistencyGroup = sourceConsistencyGroup; - return this; - } - - /** - * Output only. [Output Only] - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] - * @param status status or {@code null} for none - */ - public InstantSnapshotGroup setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the instant snapshot group resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the instant snapshot group resides. You must - * specify this field as part of the HTTP request URL. It is not settable as a field in the - * request body. - * @param zone zone or {@code null} for none - */ - public InstantSnapshotGroup setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InstantSnapshotGroup set(String fieldName, Object value) { - return (InstantSnapshotGroup) super.set(fieldName, value); - } - - @Override - public InstantSnapshotGroup clone() { - return (InstantSnapshotGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupParameters.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupParameters.java deleted file mode 100644 index d3bf9fd6e0f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupParameters.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstantSnapshotGroupParameters. - * - *

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 InstantSnapshotGroupParameters extends com.google.api.client.json.GenericJson { - - /** - * The source instant snapshot group used to create disks. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - https://w - * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotG - * roup - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup - - * zones/zone/instantSnapshotGroups/instantSnapshotGroup - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshotGroup; - - /** - * The source instant snapshot group used to create disks. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - https://w - * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotG - * roup - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup - - * zones/zone/instantSnapshotGroups/instantSnapshotGroup - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshotGroup() { - return sourceInstantSnapshotGroup; - } - - /** - * The source instant snapshot group used to create disks. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - https://w - * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotG - * roup - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup - - * zones/zone/instantSnapshotGroups/instantSnapshotGroup - * @param sourceInstantSnapshotGroup sourceInstantSnapshotGroup or {@code null} for none - */ - public InstantSnapshotGroupParameters setSourceInstantSnapshotGroup(java.lang.String sourceInstantSnapshotGroup) { - this.sourceInstantSnapshotGroup = sourceInstantSnapshotGroup; - return this; - } - - @Override - public InstantSnapshotGroupParameters set(String fieldName, Object value) { - return (InstantSnapshotGroupParameters) super.set(fieldName, value); - } - - @Override - public InstantSnapshotGroupParameters clone() { - return (InstantSnapshotGroupParameters) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupResourceStatus.java deleted file mode 100644 index 64248b42845..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupResourceStatus.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstantSnapshotGroupResourceStatus. - * - *

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 InstantSnapshotGroupResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String consistencyMembershipResolutionTime; - - /** - * Output only. [Output Only] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstantSnapshotGroupSourceInfo sourceInfo; - - /** - * Output only. [Output Only] - * @return value or {@code null} for none - */ - public String getConsistencyMembershipResolutionTime() { - return consistencyMembershipResolutionTime; - } - - /** - * Output only. [Output Only] - * @param consistencyMembershipResolutionTime consistencyMembershipResolutionTime or {@code null} for none - */ - public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(String consistencyMembershipResolutionTime) { - this.consistencyMembershipResolutionTime = consistencyMembershipResolutionTime; - return this; - } - - /** - * Output only. [Output Only] - * @return value or {@code null} for none - */ - public InstantSnapshotGroupSourceInfo getSourceInfo() { - return sourceInfo; - } - - /** - * Output only. [Output Only] - * @param sourceInfo sourceInfo or {@code null} for none - */ - public InstantSnapshotGroupResourceStatus setSourceInfo(InstantSnapshotGroupSourceInfo sourceInfo) { - this.sourceInfo = sourceInfo; - return this; - } - - @Override - public InstantSnapshotGroupResourceStatus set(String fieldName, Object value) { - return (InstantSnapshotGroupResourceStatus) super.set(fieldName, value); - } - - @Override - public InstantSnapshotGroupResourceStatus clone() { - return (InstantSnapshotGroupResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupSourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupSourceInfo.java deleted file mode 100644 index 94efd187bfc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotGroupSourceInfo.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstantSnapshotGroupSourceInfo. - * - *

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 InstantSnapshotGroupSourceInfo extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consistencyGroup; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consistencyGroupId; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getConsistencyGroup() { - return consistencyGroup; - } - - /** - * @param consistencyGroup consistencyGroup or {@code null} for none - */ - public InstantSnapshotGroupSourceInfo setConsistencyGroup(java.lang.String consistencyGroup) { - this.consistencyGroup = consistencyGroup; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getConsistencyGroupId() { - return consistencyGroupId; - } - - /** - * @param consistencyGroupId consistencyGroupId or {@code null} for none - */ - public InstantSnapshotGroupSourceInfo setConsistencyGroupId(java.lang.String consistencyGroupId) { - this.consistencyGroupId = consistencyGroupId; - return this; - } - - @Override - public InstantSnapshotGroupSourceInfo set(String fieldName, Object value) { - return (InstantSnapshotGroupSourceInfo) super.set(fieldName, value); - } - - @Override - public InstantSnapshotGroupSourceInfo clone() { - return (InstantSnapshotGroupSourceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotList.java deleted file mode 100644 index 9bc6c13708a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of InstantSnapshot resources. - * - *

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 InstantSnapshotList extends com.google.api.client.json.GenericJson { - - /** - * [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 InstantSnapshot 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 InstantSnapshot 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(InstantSnapshot.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InstantSnapshotList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstantSnapshot resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstantSnapshot resources. - * @param items items or {@code null} for none - */ - public InstantSnapshotList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public InstantSnapshotList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InstantSnapshotList 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 InstantSnapshotList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InstantSnapshotList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstantSnapshotList set(String fieldName, Object value) { - return (InstantSnapshotList) super.set(fieldName, value); - } - - @Override - public InstantSnapshotList clone() { - return (InstantSnapshotList) 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 InstantSnapshotListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotParams.java deleted file mode 100644 index ae48f0b7f93..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional instant snapshot params. - * - *

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 InstantSnapshotParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public InstantSnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public InstantSnapshotParams set(String fieldName, Object value) { - return (InstantSnapshotParams) super.set(fieldName, value); - } - - @Override - public InstantSnapshotParams clone() { - return (InstantSnapshotParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotResourceStatus.java deleted file mode 100644 index e1a09471c85..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotResourceStatus.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstantSnapshotResourceStatus. - * - *

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 InstantSnapshotResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The storage size of this instant snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long storageSizeBytes; - - /** - * [Output Only] The storage size of this instant snapshot. - * @return value or {@code null} for none - */ - public java.lang.Long getStorageSizeBytes() { - return storageSizeBytes; - } - - /** - * [Output Only] The storage size of this instant snapshot. - * @param storageSizeBytes storageSizeBytes or {@code null} for none - */ - public InstantSnapshotResourceStatus setStorageSizeBytes(java.lang.Long storageSizeBytes) { - this.storageSizeBytes = storageSizeBytes; - return this; - } - - @Override - public InstantSnapshotResourceStatus set(String fieldName, Object value) { - return (InstantSnapshotResourceStatus) super.set(fieldName, value); - } - - @Override - public InstantSnapshotResourceStatus clone() { - return (InstantSnapshotResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotsScopedList.java deleted file mode 100644 index 8721fcdbc36..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InstantSnapshotsScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InstantSnapshotsScopedList. - * - *

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 InstantSnapshotsScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of instantSnapshots contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instantSnapshots; - - static { - // hack to force ProGuard to consider InstantSnapshot 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(InstantSnapshot.class); - } - - /** - * [Output Only] Informational warning which replaces the list of instantSnapshots when the list - * is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of instantSnapshots contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getInstantSnapshots() { - return instantSnapshots; - } - - /** - * [Output Only] A list of instantSnapshots contained in this scope. - * @param instantSnapshots instantSnapshots or {@code null} for none - */ - public InstantSnapshotsScopedList setInstantSnapshots(java.util.List instantSnapshots) { - this.instantSnapshots = instantSnapshots; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of instantSnapshots when the list - * is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of instantSnapshots when the list - * is empty. - * @param warning warning or {@code null} for none - */ - public InstantSnapshotsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InstantSnapshotsScopedList set(String fieldName, Object value) { - return (InstantSnapshotsScopedList) super.set(fieldName, value); - } - - @Override - public InstantSnapshotsScopedList clone() { - return (InstantSnapshotsScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of instantSnapshots when the list is - * empty. - */ - 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 InstantSnapshotsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Int64RangeMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Int64RangeMatch.java deleted file mode 100644 index 6bfc5ebcba6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Int64RangeMatch.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * HttpRouteRuleMatch criteria for field values that must stay within the specified integer range. - * - *

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 Int64RangeMatch extends com.google.api.client.json.GenericJson { - - /** - * The end of the range (exclusive) in signed long integer format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long rangeEnd; - - /** - * The start of the range (inclusive) in signed long integer format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long rangeStart; - - /** - * The end of the range (exclusive) in signed long integer format. - * @return value or {@code null} for none - */ - public java.lang.Long getRangeEnd() { - return rangeEnd; - } - - /** - * The end of the range (exclusive) in signed long integer format. - * @param rangeEnd rangeEnd or {@code null} for none - */ - public Int64RangeMatch setRangeEnd(java.lang.Long rangeEnd) { - this.rangeEnd = rangeEnd; - return this; - } - - /** - * The start of the range (inclusive) in signed long integer format. - * @return value or {@code null} for none - */ - public java.lang.Long getRangeStart() { - return rangeStart; - } - - /** - * The start of the range (inclusive) in signed long integer format. - * @param rangeStart rangeStart or {@code null} for none - */ - public Int64RangeMatch setRangeStart(java.lang.Long rangeStart) { - this.rangeStart = rangeStart; - return this; - } - - @Override - public Int64RangeMatch set(String fieldName, Object value) { - return (Int64RangeMatch) super.set(fieldName, value); - } - - @Override - public Int64RangeMatch clone() { - return (Int64RangeMatch) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interconnect.java deleted file mode 100644 index 64f23b87792..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interconnect.java +++ /dev/null @@ -1,1198 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Interconnect resource. - * - * An Interconnect resource is a dedicated connection between the Google Cloud network and your on- - * premises network. For more information, read the Dedicated Interconnect Overview. - * - *

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 Interconnect extends com.google.api.client.json.GenericJson { - - /** - * Enable or disable the application awareness feature on this Cloud Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean aaiEnabled; - - /** - * Administrative status of the interconnect. When this is set to true, the Interconnect is - * functional and can carry traffic. When set to false, no packets can be carried over the - * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Configuration information for application awareness on this Cloud Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectApplicationAwareInterconnect applicationAwareInterconnect; - - /** - * [Output only] List of features available for this Interconnect connection, which can take one - * of the following values: - IF_MACSEC: If present, then the Interconnect connection is - * provisioned on MACsec capable hardware ports. If not present, then the Interconnect - * connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will - * fail. - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is - * provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments - * will fail. If not present, then the Interconnect connection is not provisioned for Cross- - * Site Networking. Any attempt to use it for Cross-Site Networking will fail. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List availableFeatures; - - /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List circuitInfos; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Customer name, to put in the Letter of Authorization as the party authorized to request a - * crossconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerName; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. URL of the InterconnectLocation object that represents where this connection is to - * be provisioned. By default it will be the same as the location field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String effectiveLocation; - - /** - * Output only. [Output Only] A list of outages expected for this Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List expectedOutages; - - /** - * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. - * This can be used only for ping tests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleIpAddress; - - /** - * Output only. [Output Only] Google reference ID to be used when raising support tickets with - * Google or otherwise to debug backend connectivity issues. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleReferenceId; - - /** - * 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] A list of the URLs of all InterconnectAttachments configured to use - * this Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnectAttachments; - - /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnectGroups; - - /** - * Type of interconnect, which can take one of the following values: - PARTNER: A partner- - * managed interconnection shared between customers though a partner. - DEDICATED: A - * dedicated physical interconnection with the customer. - * - * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnectType; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Type of link requested, which can take one of the following values: - - * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A - * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 - * optics. - * - * Note that this field indicates the speed of each of the links in the bundle, not the speed of - * the entire bundle. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkType; - - /** - * URL of the InterconnectLocation object that represents where this connection is to be - * provisioned. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect - * connection between Google and your on-premises router. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectMacsec macsec; - - /** - * Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec - * object is not specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean macsecEnabled; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Email address to contact the customer NOC for operations and maintenance notifications - * regarding this Interconnect. If specified, this will be used for notifications in addition to - * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This - * field is required for users who sign up for Cloud Interconnect using workforce identity - * federation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nocContactEmail; - - /** - * Output only. [Output Only] The current status of this Interconnect's functionality, which can - * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up - * and is ready to use. Attachments may be provisioned on this Interconnect. - * - * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be - * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing - * internal maintenance. No attachments may be provisioned or updated on this Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operationalStatus; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectParams params; - - /** - * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. - * The customer should configure this IP address during turnup when prompted by Google NOC. This - * can be used only for ping tests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpAddress; - - /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer provisionedLinkCount; - - /** - * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of - * Google's network that the interconnect is connected to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String remoteLocation; - - /** - * Optional. This parameter can be provided only with Interconnect INSERT. It isn't valid for - * Interconnect PATCH. List of features requested for this Interconnect connection, which can take - * one of the following values: - IF_MACSEC: If specified, then the connection is created - * on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be - * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created - * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site - * Networking unless this feature is specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestedFeatures; - - /** - * Target number of physical links in the link bundle, as requested by the customer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer requestedLinkCount; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * 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. Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] The current state of Interconnect functionality, which can take one - * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to - * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The - * Interconnect has not completed turnup. No attachments may be provisioned on this - * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. - * No attachments may be provisioned or updated on this Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * To be deprecated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subzone; - - /** - * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to - * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List wireGroups; - - /** - * Enable or disable the application awareness feature on this Cloud Interconnect. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAaiEnabled() { - return aaiEnabled; - } - - /** - * Enable or disable the application awareness feature on this Cloud Interconnect. - * @param aaiEnabled aaiEnabled or {@code null} for none - */ - public Interconnect setAaiEnabled(java.lang.Boolean aaiEnabled) { - this.aaiEnabled = aaiEnabled; - return this; - } - - /** - * Administrative status of the interconnect. When this is set to true, the Interconnect is - * functional and can carry traffic. When set to false, no packets can be carried over the - * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Administrative status of the interconnect. When this is set to true, the Interconnect is - * functional and can carry traffic. When set to false, no packets can be carried over the - * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public Interconnect setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Configuration information for application awareness on this Cloud Interconnect. - * @return value or {@code null} for none - */ - public InterconnectApplicationAwareInterconnect getApplicationAwareInterconnect() { - return applicationAwareInterconnect; - } - - /** - * Configuration information for application awareness on this Cloud Interconnect. - * @param applicationAwareInterconnect applicationAwareInterconnect or {@code null} for none - */ - public Interconnect setApplicationAwareInterconnect(InterconnectApplicationAwareInterconnect applicationAwareInterconnect) { - this.applicationAwareInterconnect = applicationAwareInterconnect; - return this; - } - - /** - * [Output only] List of features available for this Interconnect connection, which can take one - * of the following values: - IF_MACSEC: If present, then the Interconnect connection is - * provisioned on MACsec capable hardware ports. If not present, then the Interconnect - * connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will - * fail. - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is - * provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments - * will fail. If not present, then the Interconnect connection is not provisioned for Cross- - * Site Networking. Any attempt to use it for Cross-Site Networking will fail. - * @return value or {@code null} for none - */ - public java.util.List getAvailableFeatures() { - return availableFeatures; - } - - /** - * [Output only] List of features available for this Interconnect connection, which can take one - * of the following values: - IF_MACSEC: If present, then the Interconnect connection is - * provisioned on MACsec capable hardware ports. If not present, then the Interconnect - * connection is provisioned on non-MACsec capable ports. Any attempt to enable MACsec will - * fail. - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is - * provisioned exclusively for Cross-Site Networking. Any attempt to configure VLAN attachments - * will fail. If not present, then the Interconnect connection is not provisioned for Cross- - * Site Networking. Any attempt to use it for Cross-Site Networking will fail. - * @param availableFeatures availableFeatures or {@code null} for none - */ - public Interconnect setAvailableFeatures(java.util.List availableFeatures) { - this.availableFeatures = availableFeatures; - return this; - } - - /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. - * @return value or {@code null} for none - */ - public java.util.List getCircuitInfos() { - return circuitInfos; - } - - /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. - * @param circuitInfos circuitInfos or {@code null} for none - */ - public Interconnect setCircuitInfos(java.util.List circuitInfos) { - this.circuitInfos = circuitInfos; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Customer name, to put in the Letter of Authorization as the party authorized to request a - * crossconnect. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerName() { - return customerName; - } - - /** - * Customer name, to put in the Letter of Authorization as the party authorized to request a - * crossconnect. - * @param customerName customerName or {@code null} for none - */ - public Interconnect setCustomerName(java.lang.String customerName) { - this.customerName = customerName; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Interconnect setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. URL of the InterconnectLocation object that represents where this connection is to - * be provisioned. By default it will be the same as the location field. - * @return value or {@code null} for none - */ - public java.lang.String getEffectiveLocation() { - return effectiveLocation; - } - - /** - * Output only. URL of the InterconnectLocation object that represents where this connection is to - * be provisioned. By default it will be the same as the location field. - * @param effectiveLocation effectiveLocation or {@code null} for none - */ - public Interconnect setEffectiveLocation(java.lang.String effectiveLocation) { - this.effectiveLocation = effectiveLocation; - return this; - } - - /** - * Output only. [Output Only] A list of outages expected for this Interconnect. - * @return value or {@code null} for none - */ - public java.util.List getExpectedOutages() { - return expectedOutages; - } - - /** - * Output only. [Output Only] A list of outages expected for this Interconnect. - * @param expectedOutages expectedOutages or {@code null} for none - */ - public Interconnect setExpectedOutages(java.util.List expectedOutages) { - this.expectedOutages = expectedOutages; - return this; - } - - /** - * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. - * This can be used only for ping tests. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleIpAddress() { - return googleIpAddress; - } - - /** - * Output only. [Output Only] IP address configured on the Google side of the Interconnect link. - * This can be used only for ping tests. - * @param googleIpAddress googleIpAddress or {@code null} for none - */ - public Interconnect setGoogleIpAddress(java.lang.String googleIpAddress) { - this.googleIpAddress = googleIpAddress; - return this; - } - - /** - * Output only. [Output Only] Google reference ID to be used when raising support tickets with - * Google or otherwise to debug backend connectivity issues. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleReferenceId() { - return googleReferenceId; - } - - /** - * Output only. [Output Only] Google reference ID to be used when raising support tickets with - * Google or otherwise to debug backend connectivity issues. - * @param googleReferenceId googleReferenceId or {@code null} for none - */ - public Interconnect setGoogleReferenceId(java.lang.String googleReferenceId) { - this.googleReferenceId = googleReferenceId; - 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 Interconnect setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use - * this Interconnect. - * @return value or {@code null} for none - */ - public java.util.List getInterconnectAttachments() { - return interconnectAttachments; - } - - /** - * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use - * this Interconnect. - * @param interconnectAttachments interconnectAttachments or {@code null} for none - */ - public Interconnect setInterconnectAttachments(java.util.List interconnectAttachments) { - this.interconnectAttachments = interconnectAttachments; - return this; - } - - /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. - * @return value or {@code null} for none - */ - public java.util.List getInterconnectGroups() { - return interconnectGroups; - } - - /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. - * @param interconnectGroups interconnectGroups or {@code null} for none - */ - public Interconnect setInterconnectGroups(java.util.List interconnectGroups) { - this.interconnectGroups = interconnectGroups; - return this; - } - - /** - * Type of interconnect, which can take one of the following values: - PARTNER: A partner- - * managed interconnection shared between customers though a partner. - DEDICATED: A - * dedicated physical interconnection with the customer. - * - * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnectType() { - return interconnectType; - } - - /** - * Type of interconnect, which can take one of the following values: - PARTNER: A partner- - * managed interconnection shared between customers though a partner. - DEDICATED: A - * dedicated physical interconnection with the customer. - * - * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. - * @param interconnectType interconnectType or {@code null} for none - */ - public Interconnect setInterconnectType(java.lang.String interconnectType) { - this.interconnectType = interconnectType; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. - * @param kind kind or {@code null} for none - */ - public Interconnect setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Interconnect. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Interconnect. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Interconnect. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public Interconnect setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this Interconnect, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an Interconnect. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Interconnect encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public Interconnect setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Type of link requested, which can take one of the following values: - - * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A - * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 - * optics. - * - * Note that this field indicates the speed of each of the links in the bundle, not the speed of - * the entire bundle. - * @return value or {@code null} for none - */ - public java.lang.String getLinkType() { - return linkType; - } - - /** - * Type of link requested, which can take one of the following values: - - * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A - * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 - * optics. - * - * Note that this field indicates the speed of each of the links in the bundle, not the speed of - * the entire bundle. - * @param linkType linkType or {@code null} for none - */ - public Interconnect setLinkType(java.lang.String linkType) { - this.linkType = linkType; - return this; - } - - /** - * URL of the InterconnectLocation object that represents where this connection is to be - * provisioned. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * URL of the InterconnectLocation object that represents where this connection is to be - * provisioned. - * @param location location or {@code null} for none - */ - public Interconnect setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect - * connection between Google and your on-premises router. - * @return value or {@code null} for none - */ - public InterconnectMacsec getMacsec() { - return macsec; - } - - /** - * Configuration that enables Media Access Control security (MACsec) on the Cloud Interconnect - * connection between Google and your on-premises router. - * @param macsec macsec or {@code null} for none - */ - public Interconnect setMacsec(InterconnectMacsec macsec) { - this.macsec = macsec; - return this; - } - - /** - * Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec - * object is not specified. - * @return value or {@code null} for none - */ - public java.lang.Boolean getMacsecEnabled() { - return macsecEnabled; - } - - /** - * Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec - * object is not specified. - * @param macsecEnabled macsecEnabled or {@code null} for none - */ - public Interconnect setMacsecEnabled(java.lang.Boolean macsecEnabled) { - this.macsecEnabled = macsecEnabled; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 Interconnect setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Email address to contact the customer NOC for operations and maintenance notifications - * regarding this Interconnect. If specified, this will be used for notifications in addition to - * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This - * field is required for users who sign up for Cloud Interconnect using workforce identity - * federation. - * @return value or {@code null} for none - */ - public java.lang.String getNocContactEmail() { - return nocContactEmail; - } - - /** - * Email address to contact the customer NOC for operations and maintenance notifications - * regarding this Interconnect. If specified, this will be used for notifications in addition to - * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This - * field is required for users who sign up for Cloud Interconnect using workforce identity - * federation. - * @param nocContactEmail nocContactEmail or {@code null} for none - */ - public Interconnect setNocContactEmail(java.lang.String nocContactEmail) { - this.nocContactEmail = nocContactEmail; - return this; - } - - /** - * Output only. [Output Only] The current status of this Interconnect's functionality, which can - * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up - * and is ready to use. Attachments may be provisioned on this Interconnect. - * - * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be - * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing - * internal maintenance. No attachments may be provisioned or updated on this Interconnect. - * @return value or {@code null} for none - */ - public java.lang.String getOperationalStatus() { - return operationalStatus; - } - - /** - * Output only. [Output Only] The current status of this Interconnect's functionality, which can - * take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up - * and is ready to use. Attachments may be provisioned on this Interconnect. - * - * - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be - * provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing - * internal maintenance. No attachments may be provisioned or updated on this Interconnect. - * @param operationalStatus operationalStatus or {@code null} for none - */ - public Interconnect setOperationalStatus(java.lang.String operationalStatus) { - this.operationalStatus = operationalStatus; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public InterconnectParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Interconnect setParams(InterconnectParams params) { - this.params = params; - return this; - } - - /** - * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. - * The customer should configure this IP address during turnup when prompted by Google NOC. This - * can be used only for ping tests. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpAddress() { - return peerIpAddress; - } - - /** - * Output only. [Output Only] IP address configured on the customer side of the Interconnect link. - * The customer should configure this IP address during turnup when prompted by Google NOC. This - * can be used only for ping tests. - * @param peerIpAddress peerIpAddress or {@code null} for none - */ - public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { - this.peerIpAddress = peerIpAddress; - return this; - } - - /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. - * @return value or {@code null} for none - */ - public java.lang.Integer getProvisionedLinkCount() { - return provisionedLinkCount; - } - - /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. - * @param provisionedLinkCount provisionedLinkCount or {@code null} for none - */ - public Interconnect setProvisionedLinkCount(java.lang.Integer provisionedLinkCount) { - this.provisionedLinkCount = provisionedLinkCount; - return this; - } - - /** - * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of - * Google's network that the interconnect is connected to. - * @return value or {@code null} for none - */ - public java.lang.String getRemoteLocation() { - return remoteLocation; - } - - /** - * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of - * Google's network that the interconnect is connected to. - * @param remoteLocation remoteLocation or {@code null} for none - */ - public Interconnect setRemoteLocation(java.lang.String remoteLocation) { - this.remoteLocation = remoteLocation; - return this; - } - - /** - * Optional. This parameter can be provided only with Interconnect INSERT. It isn't valid for - * Interconnect PATCH. List of features requested for this Interconnect connection, which can take - * one of the following values: - IF_MACSEC: If specified, then the connection is created - * on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be - * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created - * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site - * Networking unless this feature is specified. - * @return value or {@code null} for none - */ - public java.util.List getRequestedFeatures() { - return requestedFeatures; - } - - /** - * Optional. This parameter can be provided only with Interconnect INSERT. It isn't valid for - * Interconnect PATCH. List of features requested for this Interconnect connection, which can take - * one of the following values: - IF_MACSEC: If specified, then the connection is created - * on MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be - * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created - * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site - * Networking unless this feature is specified. - * @param requestedFeatures requestedFeatures or {@code null} for none - */ - public Interconnect setRequestedFeatures(java.util.List requestedFeatures) { - this.requestedFeatures = requestedFeatures; - return this; - } - - /** - * Target number of physical links in the link bundle, as requested by the customer. - * @return value or {@code null} for none - */ - public java.lang.Integer getRequestedLinkCount() { - return requestedLinkCount; - } - - /** - * Target number of physical links in the link bundle, as requested by the customer. - * @param requestedLinkCount requestedLinkCount or {@code null} for none - */ - public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) { - this.requestedLinkCount = requestedLinkCount; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - 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 Interconnect setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public Interconnect setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. [Output Only] The current state of Interconnect functionality, which can take one - * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to - * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The - * Interconnect has not completed turnup. No attachments may be provisioned on this - * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. - * No attachments may be provisioned or updated on this Interconnect. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The current state of Interconnect functionality, which can take one - * of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to - * use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The - * Interconnect has not completed turnup. No attachments may be provisioned on this - * Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. - * No attachments may be provisioned or updated on this Interconnect. - * @param state state or {@code null} for none - */ - public Interconnect setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * To be deprecated. - * @return value or {@code null} for none - */ - public java.lang.String getSubzone() { - return subzone; - } - - /** - * To be deprecated. - * @param subzone subzone or {@code null} for none - */ - public Interconnect setSubzone(java.lang.String subzone) { - this.subzone = subzone; - return this; - } - - /** - * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to - * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. - * @return value or {@code null} for none - */ - public java.util.List getWireGroups() { - return wireGroups; - } - - /** - * Output only. [Output Only] A list of the URLs of all CrossSiteNetwork WireGroups configured to - * use this Interconnect. The Interconnect cannot be deleted if this list is non-empty. - * @param wireGroups wireGroups or {@code null} for none - */ - public Interconnect setWireGroups(java.util.List wireGroups) { - this.wireGroups = wireGroups; - return this; - } - - @Override - public Interconnect set(String fieldName, Object value) { - return (Interconnect) super.set(fieldName, value); - } - - @Override - public Interconnect clone() { - return (Interconnect) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnect.java deleted file mode 100644 index 2623d7e5d09..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnect.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration information for application awareness on this Cloud Interconnect. - * - *

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 InterconnectApplicationAwareInterconnect extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy bandwidthPercentagePolicy; - - /** - * Description for the application awareness profile on this Cloud Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String profileDescription; - - /** - * Optional field to specify a list of shape average percentages to be applied in conjunction with - * StrictPriorityPolicy or BandwidthPercentagePolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List shapeAveragePercentages; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectApplicationAwareInterconnectStrictPriorityPolicy strictPriorityPolicy; - - /** - * @return value or {@code null} for none - */ - public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy getBandwidthPercentagePolicy() { - return bandwidthPercentagePolicy; - } - - /** - * @param bandwidthPercentagePolicy bandwidthPercentagePolicy or {@code null} for none - */ - public InterconnectApplicationAwareInterconnect setBandwidthPercentagePolicy(InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy bandwidthPercentagePolicy) { - this.bandwidthPercentagePolicy = bandwidthPercentagePolicy; - return this; - } - - /** - * Description for the application awareness profile on this Cloud Interconnect. - * @return value or {@code null} for none - */ - public java.lang.String getProfileDescription() { - return profileDescription; - } - - /** - * Description for the application awareness profile on this Cloud Interconnect. - * @param profileDescription profileDescription or {@code null} for none - */ - public InterconnectApplicationAwareInterconnect setProfileDescription(java.lang.String profileDescription) { - this.profileDescription = profileDescription; - return this; - } - - /** - * Optional field to specify a list of shape average percentages to be applied in conjunction with - * StrictPriorityPolicy or BandwidthPercentagePolicy. - * @return value or {@code null} for none - */ - public java.util.List getShapeAveragePercentages() { - return shapeAveragePercentages; - } - - /** - * Optional field to specify a list of shape average percentages to be applied in conjunction with - * StrictPriorityPolicy or BandwidthPercentagePolicy. - * @param shapeAveragePercentages shapeAveragePercentages or {@code null} for none - */ - public InterconnectApplicationAwareInterconnect setShapeAveragePercentages(java.util.List shapeAveragePercentages) { - this.shapeAveragePercentages = shapeAveragePercentages; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectApplicationAwareInterconnectStrictPriorityPolicy getStrictPriorityPolicy() { - return strictPriorityPolicy; - } - - /** - * @param strictPriorityPolicy strictPriorityPolicy or {@code null} for none - */ - public InterconnectApplicationAwareInterconnect setStrictPriorityPolicy(InterconnectApplicationAwareInterconnectStrictPriorityPolicy strictPriorityPolicy) { - this.strictPriorityPolicy = strictPriorityPolicy; - return this; - } - - @Override - public InterconnectApplicationAwareInterconnect set(String fieldName, Object value) { - return (InterconnectApplicationAwareInterconnect) super.set(fieldName, value); - } - - @Override - public InterconnectApplicationAwareInterconnect clone() { - return (InterconnectApplicationAwareInterconnect) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java deleted file mode 100644 index 0d25a595809..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentage.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specify bandwidth percentages [1-100] for various traffic classes in BandwidthPercentagePolicy. - * The sum of all percentages must equal 100. All traffic classes must have a percentage value - * specified. - * - *

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 InterconnectApplicationAwareInterconnectBandwidthPercentage extends com.google.api.client.json.GenericJson { - - /** - * Bandwidth percentage for a specific traffic class. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long percentage; - - /** - * TrafficClass whose bandwidth percentage is being specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String trafficClass; - - /** - * Bandwidth percentage for a specific traffic class. - * @return value or {@code null} for none - */ - public java.lang.Long getPercentage() { - return percentage; - } - - /** - * Bandwidth percentage for a specific traffic class. - * @param percentage percentage or {@code null} for none - */ - public InterconnectApplicationAwareInterconnectBandwidthPercentage setPercentage(java.lang.Long percentage) { - this.percentage = percentage; - return this; - } - - /** - * TrafficClass whose bandwidth percentage is being specified. - * @return value or {@code null} for none - */ - public java.lang.String getTrafficClass() { - return trafficClass; - } - - /** - * TrafficClass whose bandwidth percentage is being specified. - * @param trafficClass trafficClass or {@code null} for none - */ - public InterconnectApplicationAwareInterconnectBandwidthPercentage setTrafficClass(java.lang.String trafficClass) { - this.trafficClass = trafficClass; - return this; - } - - @Override - public InterconnectApplicationAwareInterconnectBandwidthPercentage set(String fieldName, Object value) { - return (InterconnectApplicationAwareInterconnectBandwidthPercentage) super.set(fieldName, value); - } - - @Override - public InterconnectApplicationAwareInterconnectBandwidthPercentage clone() { - return (InterconnectApplicationAwareInterconnectBandwidthPercentage) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java deleted file mode 100644 index 9af1beecc4c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy. - * - *

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 InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy extends com.google.api.client.json.GenericJson { - - /** - * Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bandwidthPercentages; - - static { - // hack to force ProGuard to consider InterconnectApplicationAwareInterconnectBandwidthPercentage 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(InterconnectApplicationAwareInterconnectBandwidthPercentage.class); - } - - /** - * Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. - * @return value or {@code null} for none - */ - public java.util.List getBandwidthPercentages() { - return bandwidthPercentages; - } - - /** - * Specify bandwidth percentages for various traffic classes for queuing type Bandwidth Percent. - * @param bandwidthPercentages bandwidthPercentages or {@code null} for none - */ - public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy setBandwidthPercentages(java.util.List bandwidthPercentages) { - this.bandwidthPercentages = bandwidthPercentages; - return this; - } - - @Override - public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy set(String fieldName, Object value) { - return (InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy) super.set(fieldName, value); - } - - @Override - public InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy clone() { - return (InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java deleted file mode 100644 index 1a467374808..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectApplicationAwareInterconnectStrictPriorityPolicy.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specify configuration for StrictPriorityPolicy. - * - *

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 InterconnectApplicationAwareInterconnectStrictPriorityPolicy extends com.google.api.client.json.GenericJson { - - @Override - public InterconnectApplicationAwareInterconnectStrictPriorityPolicy set(String fieldName, Object value) { - return (InterconnectApplicationAwareInterconnectStrictPriorityPolicy) super.set(fieldName, value); - } - - @Override - public InterconnectApplicationAwareInterconnectStrictPriorityPolicy clone() { - return (InterconnectApplicationAwareInterconnectStrictPriorityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachment.java deleted file mode 100644 index 0d43ffc3ac5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachment.java +++ /dev/null @@ -1,1577 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Interconnect Attachment (VLAN) resource. - * - * You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to - * your on-premises networks through an Interconnect. For more information, read Creating VLAN - * Attachments. - * - *

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 InterconnectAttachment extends com.google.api.client.json.GenericJson { - - /** - * Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String attachmentGroup; - - /** - * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type - * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner - * that is operating the interconnect must set the bandwidth. Output only for PARTNER type, - * mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - - * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 - * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 - * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 - * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bandwidth; - - /** - * Single IPv4 address + prefix length to be configured on the cloud router interface for this - * interconnect attachment. - Both candidate_cloud_router_ip_address and - * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix - * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address - * must be the same. - Max prefix length is 31. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String candidateCloudRouterIpAddress; - - /** - * Single IPv6 address + prefix length to be configured on the cloud router interface for this - * interconnect attachment. - Both candidate_cloud_router_ipv6_address and - * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix - * length of both candidate_cloud_router_ipv6_address and - * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String candidateCloudRouterIpv6Address; - - /** - * Single IPv4 address + prefix length to be configured on the customer router interface for this - * interconnect attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String candidateCustomerRouterIpAddress; - - /** - * Single IPv6 address + prefix length to be configured on the customer router interface for this - * interconnect attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String candidateCustomerRouterIpv6Address; - - /** - * This field is not available. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List candidateIpv6Subnets; - - /** - * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of - * cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be - * within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). - * Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request - * will fail if all possible /29s are in use on Google's edge. If not supplied, Google will - * randomly select an unused /29 from all of link-local space. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List candidateSubnets; - - /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cloudRouterIpAddress; - - /** - * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cloudRouterIpv6Address; - - /** - * This field is not available. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cloudRouterIpv6InterfaceId; - - /** - * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not - * work if these constraints are not met. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentConfigurationConstraints configurationConstraints; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router - * subinterface for this interconnect attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerRouterIpAddress; - - /** - * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router - * subinterface for this interconnect attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerRouterIpv6Address; - - /** - * This field is not available. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerRouterIpv6InterfaceId; - - /** - * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is - * only present for Dataplane version 2 and higher. Absence of this field in the API output - * indicates that the Dataplane is version 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer dataplaneVersion; - - /** - * An optional description of this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at - * creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - - * AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 - * - * For improved reliability, customers should configure a pair of attachments, one per - * availability domain. The selected availability domain will be provided to the Partner via the - * pairing key, so that the provisioned circuit will lie in the specified domain. If not - * specified, the value will default to AVAILABILITY_DOMAIN_ANY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String edgeAvailabilityDomain; - - /** - * Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). - * Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible - * values are: - NONE - This is the default value, which means that the VLAN attachment - * carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such - * a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is - * encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot - * directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN - * over Cloud Interconnect*, the VLAN attachment must be created with this option. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String encryption; - - /** - * Output only. [Output Only] Google reference ID, to be used when raising support tickets with - * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleReferenceId; - - /** - * 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; - - /** - * URL of the underlying Interconnect object that this attachment's traffic will traverse through. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** - * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the - * VLAN attachment that has the encryption option as IPSEC. The addresses must be regional - * internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the - * attachment is configured to use a regional internal IP address, then the VPN gateway's IP - * address is allocated from the IP address range specified here. For example, if the HA VPN - * gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address - * for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN - * attachment. If this field is not specified when creating the VLAN attachment, then later on - * when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is - * allocated from the regional external IP address pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ipsecInternalAddresses; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for - * interconnect attachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED. - * - * The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are - * mapped to the destination appliances IP addresses. The packet is then encapsulated with the - * appliance IP address and sent to the edge appliance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentL2Forwarding l2Forwarding; - - /** - * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially - * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will - * default to 1440. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer mtu; - - /** - * Name of the resource. Provided by the client 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 current status of whether or not this interconnect attachment is - * functional, which can take one of the following values: - OS_ACTIVE: The attachment has - * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to - * use yet, because turnup is not complete. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operationalStatus; - - /** - * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The - * opaque identifier of a PARTNER attachment used to initiate provisioning with a selected - * partner. Of the form "XXXXX/region/domain" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pairingKey; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentParams params; - - /** - * Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf - * of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available - * for DEDICATED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long partnerAsn; - - /** - * Informational metadata about Partner attachments from Partners to display to customers. Output - * only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentPartnerMetadata partnerMetadata; - - /** - * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is - * populated if the interconnect that this is attached to is of type DEDICATED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentPrivateInfo privateInterconnectInfo; - - /** - * Output only. [Output Only] URL of the region where the regional interconnect attachment - * resides. You must specify this field as part of the HTTP request URL. It is not settable as a - * field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this - * field contains the interconnect's remote location service provider. Example values: "Amazon Web - * Services" "Microsoft Azure". - * - * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is - * copied from the InterconnectRemoteLocation remoteService field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String remoteService; - - /** - * URL of the Cloud Router to be used for dynamic routing. This router must be in the same region - * as this InterconnectAttachment. The InterconnectAttachment will automatically connect the - * Interconnect to the network & region within which the Cloud Router is configured. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * 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; - - /** - * The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled - * or not. If not specified, IPV4_ONLY will be used. - * - * This field can be both set at interconnect attachments creation and update interconnect - * attachment operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * Output only. [Output Only] The current state of this attachment's functionality. Enum values - * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER - * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and - * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This - * state can take one of the following values: - ACTIVE: The attachment has been turned up - * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup - * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet - * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in - * the process of provisioning after a PARTNER_PROVIDER attachment was created that - * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is - * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally - * and is no longer functional. This could be because the associated Interconnect was removed, - * or because the other side of a Partner attachment was deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 - * - * The default value is 29, except for Cross-Cloud Interconnect connections that use an - * InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, - * connections that use an Azure remote location fall into this category. In these cases, the - * default value is 30, and requesting 29 returns an error. - * - * Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more - * debugging visibility. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer subnetLength; - - /** - * The type of interconnect attachment this is, which can take one of the following values: - * - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a - * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a - * Partner Interconnect, created by the partner. - * - * - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation - * time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer vlanTag8021q; - - /** - * Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. - * @return value or {@code null} for none - */ - public java.lang.String getAttachmentGroup() { - return attachmentGroup; - } - - /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. - * @param attachmentGroup attachmentGroup or {@code null} for none - */ - public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGroup) { - this.attachmentGroup = attachmentGroup; - return this; - } - - /** - * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type - * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner - * that is operating the interconnect must set the bandwidth. Output only for PARTNER type, - * mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - - * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 - * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 - * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 - * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s - * @return value or {@code null} for none - */ - public java.lang.String getBandwidth() { - return bandwidth; - } - - /** - * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type - * DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner - * that is operating the interconnect must set the bandwidth. Output only for PARTNER type, - * mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - - * BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 - * Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 - * Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 - * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s - * @param bandwidth bandwidth or {@code null} for none - */ - public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { - this.bandwidth = bandwidth; - return this; - } - - /** - * Single IPv4 address + prefix length to be configured on the cloud router interface for this - * interconnect attachment. - Both candidate_cloud_router_ip_address and - * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix - * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address - * must be the same. - Max prefix length is 31. - * @return value or {@code null} for none - */ - public java.lang.String getCandidateCloudRouterIpAddress() { - return candidateCloudRouterIpAddress; - } - - /** - * Single IPv4 address + prefix length to be configured on the cloud router interface for this - * interconnect attachment. - Both candidate_cloud_router_ip_address and - * candidate_customer_router_ip_address fields must be set or both must be unset. - Prefix - * length of both candidate_cloud_router_ip_address and candidate_customer_router_ip_address - * must be the same. - Max prefix length is 31. - * @param candidateCloudRouterIpAddress candidateCloudRouterIpAddress or {@code null} for none - */ - public InterconnectAttachment setCandidateCloudRouterIpAddress(java.lang.String candidateCloudRouterIpAddress) { - this.candidateCloudRouterIpAddress = candidateCloudRouterIpAddress; - return this; - } - - /** - * Single IPv6 address + prefix length to be configured on the cloud router interface for this - * interconnect attachment. - Both candidate_cloud_router_ipv6_address and - * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix - * length of both candidate_cloud_router_ipv6_address and - * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. - * @return value or {@code null} for none - */ - public java.lang.String getCandidateCloudRouterIpv6Address() { - return candidateCloudRouterIpv6Address; - } - - /** - * Single IPv6 address + prefix length to be configured on the cloud router interface for this - * interconnect attachment. - Both candidate_cloud_router_ipv6_address and - * candidate_customer_router_ipv6_address fields must be set or both must be unset. - Prefix - * length of both candidate_cloud_router_ipv6_address and - * candidate_customer_router_ipv6_address must be the same. - Max prefix length is 126. - * @param candidateCloudRouterIpv6Address candidateCloudRouterIpv6Address or {@code null} for none - */ - public InterconnectAttachment setCandidateCloudRouterIpv6Address(java.lang.String candidateCloudRouterIpv6Address) { - this.candidateCloudRouterIpv6Address = candidateCloudRouterIpv6Address; - return this; - } - - /** - * Single IPv4 address + prefix length to be configured on the customer router interface for this - * interconnect attachment. - * @return value or {@code null} for none - */ - public java.lang.String getCandidateCustomerRouterIpAddress() { - return candidateCustomerRouterIpAddress; - } - - /** - * Single IPv4 address + prefix length to be configured on the customer router interface for this - * interconnect attachment. - * @param candidateCustomerRouterIpAddress candidateCustomerRouterIpAddress or {@code null} for none - */ - public InterconnectAttachment setCandidateCustomerRouterIpAddress(java.lang.String candidateCustomerRouterIpAddress) { - this.candidateCustomerRouterIpAddress = candidateCustomerRouterIpAddress; - return this; - } - - /** - * Single IPv6 address + prefix length to be configured on the customer router interface for this - * interconnect attachment. - * @return value or {@code null} for none - */ - public java.lang.String getCandidateCustomerRouterIpv6Address() { - return candidateCustomerRouterIpv6Address; - } - - /** - * Single IPv6 address + prefix length to be configured on the customer router interface for this - * interconnect attachment. - * @param candidateCustomerRouterIpv6Address candidateCustomerRouterIpv6Address or {@code null} for none - */ - public InterconnectAttachment setCandidateCustomerRouterIpv6Address(java.lang.String candidateCustomerRouterIpv6Address) { - this.candidateCustomerRouterIpv6Address = candidateCustomerRouterIpv6Address; - return this; - } - - /** - * This field is not available. - * @return value or {@code null} for none - */ - public java.util.List getCandidateIpv6Subnets() { - return candidateIpv6Subnets; - } - - /** - * This field is not available. - * @param candidateIpv6Subnets candidateIpv6Subnets or {@code null} for none - */ - public InterconnectAttachment setCandidateIpv6Subnets(java.util.List candidateIpv6Subnets) { - this.candidateIpv6Subnets = candidateIpv6Subnets; - return this; - } - - /** - * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of - * cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be - * within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). - * Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request - * will fail if all possible /29s are in use on Google's edge. If not supplied, Google will - * randomly select an unused /29 from all of link-local space. - * @return value or {@code null} for none - */ - public java.util.List getCandidateSubnets() { - return candidateSubnets; - } - - /** - * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of - * cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be - * within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). - * Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request - * will fail if all possible /29s are in use on Google's edge. If not supplied, Google will - * randomly select an unused /29 from all of link-local space. - * @param candidateSubnets candidateSubnets or {@code null} for none - */ - public InterconnectAttachment setCandidateSubnets(java.util.List candidateSubnets) { - this.candidateSubnets = candidateSubnets; - return this; - } - - /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. - * @return value or {@code null} for none - */ - public java.lang.String getCloudRouterIpAddress() { - return cloudRouterIpAddress; - } - - /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. - * @param cloudRouterIpAddress cloudRouterIpAddress or {@code null} for none - */ - public InterconnectAttachment setCloudRouterIpAddress(java.lang.String cloudRouterIpAddress) { - this.cloudRouterIpAddress = cloudRouterIpAddress; - return this; - } - - /** - * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. - * @return value or {@code null} for none - */ - public java.lang.String getCloudRouterIpv6Address() { - return cloudRouterIpv6Address; - } - - /** - * Output only. [Output Only] IPv6 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. - * @param cloudRouterIpv6Address cloudRouterIpv6Address or {@code null} for none - */ - public InterconnectAttachment setCloudRouterIpv6Address(java.lang.String cloudRouterIpv6Address) { - this.cloudRouterIpv6Address = cloudRouterIpv6Address; - return this; - } - - /** - * This field is not available. - * @return value or {@code null} for none - */ - public java.lang.String getCloudRouterIpv6InterfaceId() { - return cloudRouterIpv6InterfaceId; - } - - /** - * This field is not available. - * @param cloudRouterIpv6InterfaceId cloudRouterIpv6InterfaceId or {@code null} for none - */ - public InterconnectAttachment setCloudRouterIpv6InterfaceId(java.lang.String cloudRouterIpv6InterfaceId) { - this.cloudRouterIpv6InterfaceId = cloudRouterIpv6InterfaceId; - return this; - } - - /** - * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not - * work if these constraints are not met. - * @return value or {@code null} for none - */ - public InterconnectAttachmentConfigurationConstraints getConfigurationConstraints() { - return configurationConstraints; - } - - /** - * Output only. [Output Only] Constraints for this attachment, if any. The attachment does not - * work if these constraints are not met. - * @param configurationConstraints configurationConstraints or {@code null} for none - */ - public InterconnectAttachment setConfigurationConstraints(InterconnectAttachmentConfigurationConstraints configurationConstraints) { - this.configurationConstraints = configurationConstraints; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InterconnectAttachment setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router - * subinterface for this interconnect attachment. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerRouterIpAddress() { - return customerRouterIpAddress; - } - - /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on the customer router - * subinterface for this interconnect attachment. - * @param customerRouterIpAddress customerRouterIpAddress or {@code null} for none - */ - public InterconnectAttachment setCustomerRouterIpAddress(java.lang.String customerRouterIpAddress) { - this.customerRouterIpAddress = customerRouterIpAddress; - return this; - } - - /** - * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router - * subinterface for this interconnect attachment. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerRouterIpv6Address() { - return customerRouterIpv6Address; - } - - /** - * Output only. [Output Only] IPv6 address + prefix length to be configured on the customer router - * subinterface for this interconnect attachment. - * @param customerRouterIpv6Address customerRouterIpv6Address or {@code null} for none - */ - public InterconnectAttachment setCustomerRouterIpv6Address(java.lang.String customerRouterIpv6Address) { - this.customerRouterIpv6Address = customerRouterIpv6Address; - return this; - } - - /** - * This field is not available. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerRouterIpv6InterfaceId() { - return customerRouterIpv6InterfaceId; - } - - /** - * This field is not available. - * @param customerRouterIpv6InterfaceId customerRouterIpv6InterfaceId or {@code null} for none - */ - public InterconnectAttachment setCustomerRouterIpv6InterfaceId(java.lang.String customerRouterIpv6InterfaceId) { - this.customerRouterIpv6InterfaceId = customerRouterIpv6InterfaceId; - return this; - } - - /** - * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is - * only present for Dataplane version 2 and higher. Absence of this field in the API output - * indicates that the Dataplane is version 1. - * @return value or {@code null} for none - */ - public java.lang.Integer getDataplaneVersion() { - return dataplaneVersion; - } - - /** - * Output only. [Output Only] Dataplane version for this InterconnectAttachment. This field is - * only present for Dataplane version 2 and higher. Absence of this field in the API output - * indicates that the Dataplane is version 1. - * @param dataplaneVersion dataplaneVersion or {@code null} for none - */ - public InterconnectAttachment setDataplaneVersion(java.lang.Integer dataplaneVersion) { - this.dataplaneVersion = dataplaneVersion; - return this; - } - - /** - * An optional description of this resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. - * @param description description or {@code null} for none - */ - public InterconnectAttachment setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at - * creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - - * AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 - * - * For improved reliability, customers should configure a pair of attachments, one per - * availability domain. The selected availability domain will be provided to the Partner via the - * pairing key, so that the provisioned circuit will lie in the specified domain. If not - * specified, the value will default to AVAILABILITY_DOMAIN_ANY. - * @return value or {@code null} for none - */ - public java.lang.String getEdgeAvailabilityDomain() { - return edgeAvailabilityDomain; - } - - /** - * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at - * creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - - * AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 - * - * For improved reliability, customers should configure a pair of attachments, one per - * availability domain. The selected availability domain will be provided to the Partner via the - * pairing key, so that the provisioned circuit will lie in the specified domain. If not - * specified, the value will default to AVAILABILITY_DOMAIN_ANY. - * @param edgeAvailabilityDomain edgeAvailabilityDomain or {@code null} for none - */ - public InterconnectAttachment setEdgeAvailabilityDomain(java.lang.String edgeAvailabilityDomain) { - this.edgeAvailabilityDomain = edgeAvailabilityDomain; - return this; - } - - /** - * Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). - * Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible - * values are: - NONE - This is the default value, which means that the VLAN attachment - * carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such - * a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is - * encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot - * directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN - * over Cloud Interconnect*, the VLAN attachment must be created with this option. - * @return value or {@code null} for none - */ - public java.lang.String getEncryption() { - return encryption; - } - - /** - * Indicates the user-supplied encryption option of this VLAN attachment (interconnectAttachment). - * Can only be specified at attachment creation for PARTNER or DEDICATED attachments. Possible - * values are: - NONE - This is the default value, which means that the VLAN attachment - * carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such - * a VLAN attachment. - IPSEC - The VLAN attachment carries only encrypted traffic that is - * encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot - * directly send traffic to, or receive traffic from, such a VLAN attachment. To use *HA VPN - * over Cloud Interconnect*, the VLAN attachment must be created with this option. - * @param encryption encryption or {@code null} for none - */ - public InterconnectAttachment setEncryption(java.lang.String encryption) { - this.encryption = encryption; - return this; - } - - /** - * Output only. [Output Only] Google reference ID, to be used when raising support tickets with - * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleReferenceId() { - return googleReferenceId; - } - - /** - * Output only. [Output Only] Google reference ID, to be used when raising support tickets with - * Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used. - * @param googleReferenceId googleReferenceId or {@code null} for none - */ - public InterconnectAttachment setGoogleReferenceId(java.lang.String googleReferenceId) { - this.googleReferenceId = googleReferenceId; - 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 InterconnectAttachment setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * URL of the underlying Interconnect object that this attachment's traffic will traverse through. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** - * URL of the underlying Interconnect object that this attachment's traffic will traverse through. - * @param interconnect interconnect or {@code null} for none - */ - public InterconnectAttachment setInterconnect(java.lang.String interconnect) { - this.interconnect = interconnect; - return this; - } - - /** - * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the - * VLAN attachment that has the encryption option as IPSEC. The addresses must be regional - * internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the - * attachment is configured to use a regional internal IP address, then the VPN gateway's IP - * address is allocated from the IP address range specified here. For example, if the HA VPN - * gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address - * for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN - * attachment. If this field is not specified when creating the VLAN attachment, then later on - * when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is - * allocated from the regional external IP address pool. - * @return value or {@code null} for none - */ - public java.util.List getIpsecInternalAddresses() { - return ipsecInternalAddresses; - } - - /** - * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the - * VLAN attachment that has the encryption option as IPSEC. The addresses must be regional - * internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the - * attachment is configured to use a regional internal IP address, then the VPN gateway's IP - * address is allocated from the IP address range specified here. For example, if the HA VPN - * gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address - * for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN - * attachment. If this field is not specified when creating the VLAN attachment, then later on - * when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is - * allocated from the regional external IP address pool. - * @param ipsecInternalAddresses ipsecInternalAddresses or {@code null} for none - */ - public InterconnectAttachment setIpsecInternalAddresses(java.util.List ipsecInternalAddresses) { - this.ipsecInternalAddresses = ipsecInternalAddresses; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for - * interconnect attachments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for - * interconnect attachments. - * @param kind kind or {@code null} for none - */ - public InterconnectAttachment setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED. - * - * The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are - * mapped to the destination appliances IP addresses. The packet is then encapsulated with the - * appliance IP address and sent to the edge appliance. - * @return value or {@code null} for none - */ - public InterconnectAttachmentL2Forwarding getL2Forwarding() { - return l2Forwarding; - } - - /** - * L2 Interconnect Attachment related config. This field is required if the type is L2_DEDICATED. - * - * The configuration specifies how VLAN tags (like dot1q, qinq, or dot1ad) within L2 packets are - * mapped to the destination appliances IP addresses. The packet is then encapsulated with the - * appliance IP address and sent to the edge appliance. - * @param l2Forwarding l2Forwarding or {@code null} for none - */ - public InterconnectAttachment setL2Forwarding(InterconnectAttachmentL2Forwarding l2Forwarding) { - this.l2Forwarding = l2Forwarding; - return this; - } - - /** - * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially - * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially - * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially - * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public InterconnectAttachment setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this InterconnectAttachment, which is essentially - * a hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an InterconnectAttachment. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public InterconnectAttachment encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public InterconnectAttachment setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will - * default to 1440. - * @return value or {@code null} for none - */ - public java.lang.Integer getMtu() { - return mtu; - } - - /** - * Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect - * attachment. Valid values are 1440, 1460, 1500, and 8896. If not specified, the value will - * default to 1440. - * @param mtu mtu or {@code null} for none - */ - public InterconnectAttachment setMtu(java.lang.Integer mtu) { - this.mtu = mtu; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 InterconnectAttachment setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The current status of whether or not this interconnect attachment is - * functional, which can take one of the following values: - OS_ACTIVE: The attachment has - * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to - * use yet, because turnup is not complete. - * @return value or {@code null} for none - */ - public java.lang.String getOperationalStatus() { - return operationalStatus; - } - - /** - * Output only. [Output Only] The current status of whether or not this interconnect attachment is - * functional, which can take one of the following values: - OS_ACTIVE: The attachment has - * been turned up and is ready to use. - OS_UNPROVISIONED: The attachment is not ready to - * use yet, because turnup is not complete. - * @param operationalStatus operationalStatus or {@code null} for none - */ - public InterconnectAttachment setOperationalStatus(java.lang.String operationalStatus) { - this.operationalStatus = operationalStatus; - return this; - } - - /** - * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The - * opaque identifier of a PARTNER attachment used to initiate provisioning with a selected - * partner. Of the form "XXXXX/region/domain" - * @return value or {@code null} for none - */ - public java.lang.String getPairingKey() { - return pairingKey; - } - - /** - * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not present for DEDICATED]. The - * opaque identifier of a PARTNER attachment used to initiate provisioning with a selected - * partner. Of the form "XXXXX/region/domain" - * @param pairingKey pairingKey or {@code null} for none - */ - public InterconnectAttachment setPairingKey(java.lang.String pairingKey) { - this.pairingKey = pairingKey; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public InterconnectAttachmentParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public InterconnectAttachment setParams(InterconnectAttachmentParams params) { - this.params = params; - return this; - } - - /** - * Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf - * of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available - * for DEDICATED. - * @return value or {@code null} for none - */ - public java.lang.Long getPartnerAsn() { - return partnerAsn; - } - - /** - * Optional BGP ASN for the router supplied by a Layer 3 Partner if they configured BGP on behalf - * of the customer. Output only for PARTNER type, input only for PARTNER_PROVIDER, not available - * for DEDICATED. - * @param partnerAsn partnerAsn or {@code null} for none - */ - public InterconnectAttachment setPartnerAsn(java.lang.Long partnerAsn) { - this.partnerAsn = partnerAsn; - return this; - } - - /** - * Informational metadata about Partner attachments from Partners to display to customers. Output - * only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. - * @return value or {@code null} for none - */ - public InterconnectAttachmentPartnerMetadata getPartnerMetadata() { - return partnerMetadata; - } - - /** - * Informational metadata about Partner attachments from Partners to display to customers. Output - * only for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED. - * @param partnerMetadata partnerMetadata or {@code null} for none - */ - public InterconnectAttachment setPartnerMetadata(InterconnectAttachmentPartnerMetadata partnerMetadata) { - this.partnerMetadata = partnerMetadata; - return this; - } - - /** - * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is - * populated if the interconnect that this is attached to is of type DEDICATED. - * @return value or {@code null} for none - */ - public InterconnectAttachmentPrivateInfo getPrivateInterconnectInfo() { - return privateInterconnectInfo; - } - - /** - * Output only. [Output Only] Information specific to an InterconnectAttachment. This property is - * populated if the interconnect that this is attached to is of type DEDICATED. - * @param privateInterconnectInfo privateInterconnectInfo or {@code null} for none - */ - public InterconnectAttachment setPrivateInterconnectInfo(InterconnectAttachmentPrivateInfo privateInterconnectInfo) { - this.privateInterconnectInfo = privateInterconnectInfo; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional interconnect attachment - * resides. You must specify this field as part of the HTTP request URL. It is not settable as a - * field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional interconnect attachment - * resides. You must specify this field as part of the HTTP request URL. It is not settable as a - * field in the request body. - * @param region region or {@code null} for none - */ - public InterconnectAttachment setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this - * field contains the interconnect's remote location service provider. Example values: "Amazon Web - * Services" "Microsoft Azure". - * - * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is - * copied from the InterconnectRemoteLocation remoteService field. - * @return value or {@code null} for none - */ - public java.lang.String getRemoteService() { - return remoteService; - } - - /** - * Output only. [Output Only] If the attachment is on a Cross-Cloud Interconnect connection, this - * field contains the interconnect's remote location service provider. Example values: "Amazon Web - * Services" "Microsoft Azure". - * - * The field is set only for attachments on Cross-Cloud Interconnect connections. Its value is - * copied from the InterconnectRemoteLocation remoteService field. - * @param remoteService remoteService or {@code null} for none - */ - public InterconnectAttachment setRemoteService(java.lang.String remoteService) { - this.remoteService = remoteService; - return this; - } - - /** - * URL of the Cloud Router to be used for dynamic routing. This router must be in the same region - * as this InterconnectAttachment. The InterconnectAttachment will automatically connect the - * Interconnect to the network & region within which the Cloud Router is configured. - * @return value or {@code null} for none - */ - public java.lang.String getRouter() { - return router; - } - - /** - * URL of the Cloud Router to be used for dynamic routing. This router must be in the same region - * as this InterconnectAttachment. The InterconnectAttachment will automatically connect the - * Interconnect to the network & region within which the Cloud Router is configured. - * @param router router or {@code null} for none - */ - public InterconnectAttachment setRouter(java.lang.String router) { - this.router = router; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public InterconnectAttachment setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - 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 InterconnectAttachment setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled - * or not. If not specified, IPV4_ONLY will be used. - * - * This field can be both set at interconnect attachments creation and update interconnect - * attachment operations. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled - * or not. If not specified, IPV4_ONLY will be used. - * - * This field can be both set at interconnect attachments creation and update interconnect - * attachment operations. - * @param stackType stackType or {@code null} for none - */ - public InterconnectAttachment setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - /** - * Output only. [Output Only] The current state of this attachment's functionality. Enum values - * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER - * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and - * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This - * state can take one of the following values: - ACTIVE: The attachment has been turned up - * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup - * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet - * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in - * the process of provisioning after a PARTNER_PROVIDER attachment was created that - * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is - * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally - * and is no longer functional. This could be because the associated Interconnect was removed, - * or because the other side of a Partner attachment was deleted. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The current state of this attachment's functionality. Enum values - * ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER - * interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and - * PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This - * state can take one of the following values: - ACTIVE: The attachment has been turned up - * and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup - * is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet - * been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in - * the process of provisioning after a PARTNER_PROVIDER attachment was created that - * references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is - * waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally - * and is no longer functional. This could be because the associated Interconnect was removed, - * or because the other side of a Partner attachment was deleted. - * @param state state or {@code null} for none - */ - public InterconnectAttachment setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 - * - * The default value is 29, except for Cross-Cloud Interconnect connections that use an - * InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, - * connections that use an Azure remote location fall into this category. In these cases, the - * default value is 30, and requesting 29 returns an error. - * - * Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more - * debugging visibility. - * @return value or {@code null} for none - */ - public java.lang.Integer getSubnetLength() { - return subnetLength; - } - - /** - * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 - * - * The default value is 29, except for Cross-Cloud Interconnect connections that use an - * InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, - * connections that use an Azure remote location fall into this category. In these cases, the - * default value is 30, and requesting 29 returns an error. - * - * Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more - * debugging visibility. - * @param subnetLength subnetLength or {@code null} for none - */ - public InterconnectAttachment setSubnetLength(java.lang.Integer subnetLength) { - this.subnetLength = subnetLength; - return this; - } - - /** - * The type of interconnect attachment this is, which can take one of the following values: - * - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a - * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a - * Partner Interconnect, created by the partner. - * - * - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of interconnect attachment this is, which can take one of the following values: - * - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a - * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a - * Partner Interconnect, created by the partner. - * - * - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. - * @param type type or {@code null} for none - */ - public InterconnectAttachment setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation - * time. - * @return value or {@code null} for none - */ - public java.lang.Integer getVlanTag8021q() { - return vlanTag8021q; - } - - /** - * The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation - * time. - * @param vlanTag8021q vlanTag8021q or {@code null} for none - */ - public InterconnectAttachment setVlanTag8021q(java.lang.Integer vlanTag8021q) { - this.vlanTag8021q = vlanTag8021q; - return this; - } - - @Override - public InterconnectAttachment set(String fieldName, Object value) { - return (InterconnectAttachment) super.set(fieldName, value); - } - - @Override - public InterconnectAttachment clone() { - return (InterconnectAttachment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentAggregatedList.java deleted file mode 100644 index 7e9f9d1e3fb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectAttachmentAggregatedList. - * - *

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 InterconnectAttachmentAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 InterconnectAttachmentsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList - * for aggregated lists of interconnect attachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 InterconnectAttachmentAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InterconnectAttachmentsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of InterconnectAttachmentsScopedList resources. - * @param items items or {@code null} for none - */ - public InterconnectAttachmentAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList - * for aggregated lists of interconnect attachments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList - * for aggregated lists of interconnect attachments. - * @param kind kind or {@code null} for none - */ - public InterconnectAttachmentAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectAttachmentAggregatedList 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 InterconnectAttachmentAggregatedList 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 InterconnectAttachmentAggregatedList 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 InterconnectAttachmentAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectAttachmentAggregatedList set(String fieldName, Object value) { - return (InterconnectAttachmentAggregatedList) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentAggregatedList clone() { - return (InterconnectAttachmentAggregatedList) 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 InterconnectAttachmentAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraints.java deleted file mode 100644 index 922f80318da..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraints.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectAttachmentConfigurationConstraints. - * - *

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 InterconnectAttachmentConfigurationConstraints extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP - * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, - * MD5_UNSUPPORTED. - * - * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP - * MD5 authentication has the interconnectRemoteLocation - * attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is - * propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if - * MD5 is requested. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bgpMd5; - - /** - * Output only. [Output Only] List of ASN ranges that the remote location is known to support. - * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: - * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the - * range 64512-65534. - * - * This field is only advisory. Although the API accepts other ranges, these are the ranges that - * we recommend. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bgpPeerAsnRanges; - - /** - * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP - * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, - * MD5_UNSUPPORTED. - * - * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP - * MD5 authentication has the interconnectRemoteLocation - * attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is - * propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if - * MD5 is requested. - * @return value or {@code null} for none - */ - public java.lang.String getBgpMd5() { - return bgpMd5; - } - - /** - * Output only. [Output Only] Whether the attachment's BGP session requires/allows/disallows BGP - * MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, - * MD5_UNSUPPORTED. - * - * For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP - * MD5 authentication has the interconnectRemoteLocation - * attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is - * propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if - * MD5 is requested. - * @param bgpMd5 bgpMd5 or {@code null} for none - */ - public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String bgpMd5) { - this.bgpMd5 = bgpMd5; - return this; - } - - /** - * Output only. [Output Only] List of ASN ranges that the remote location is known to support. - * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: - * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the - * range 64512-65534. - * - * This field is only advisory. Although the API accepts other ranges, these are the ranges that - * we recommend. - * @return value or {@code null} for none - */ - public java.util.List getBgpPeerAsnRanges() { - return bgpPeerAsnRanges; - } - - /** - * Output only. [Output Only] List of ASN ranges that the remote location is known to support. - * Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: - * 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the - * range 64512-65534. - * - * This field is only advisory. Although the API accepts other ranges, these are the ranges that - * we recommend. - * @param bgpPeerAsnRanges bgpPeerAsnRanges or {@code null} for none - */ - public InterconnectAttachmentConfigurationConstraints setBgpPeerAsnRanges(java.util.List bgpPeerAsnRanges) { - this.bgpPeerAsnRanges = bgpPeerAsnRanges; - return this; - } - - @Override - public InterconnectAttachmentConfigurationConstraints set(String fieldName, Object value) { - return (InterconnectAttachmentConfigurationConstraints) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentConfigurationConstraints clone() { - return (InterconnectAttachmentConfigurationConstraints) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java deleted file mode 100644 index 5465baf0fde..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange. - * - *

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 InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long max; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long min; - - /** - * @return value or {@code null} for none - */ - public java.lang.Long getMax() { - return max; - } - - /** - * @param max max or {@code null} for none - */ - public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange setMax(java.lang.Long max) { - this.max = max; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Long getMin() { - return min; - } - - /** - * @param min min or {@code null} for none - */ - public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange setMin(java.lang.Long min) { - this.min = min; - return this; - } - - @Override - public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange set(String fieldName, Object value) { - return (InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange clone() { - return (InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroup.java deleted file mode 100644 index 33d46f78129..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroup.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * 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.preview.model; - -/** - * An interconnect attachment group resource allows customers to create, analyze, and expand highly - * available deployments. - * - *

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 InterconnectAttachmentGroup extends com.google.api.client.json.GenericJson { - - /** - * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are - * encouraged, but not required, to use their preferred format for resource links as keys. Note - * that there are add-members and remove-members methods in gcloud. The size of this map is - * limited by an "Attachments per group" quota. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map attachments; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupConfigured configured; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Opaque system-generated token that uniquely identifies the configuration. If provided when - * patching a configuration in update mode, the provided token must match the current token or the - * update is rejected. This provides a reliable means of doing read-modify-write (optimistic - * locking) as described byAIP 154. - * 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 type. The server generates - * this identifier. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger id; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupIntent intent; - - /** - * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not - * need to set this unless directed by Google Support. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** - * Output only. [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. - * 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 InterconnectAttachmentGroupLogicalStructure logicalStructure; - - /** - * Name of the resource. Provided by the client 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] Server-defined URL for the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are - * encouraged, but not required, to use their preferred format for resource links as keys. Note - * that there are add-members and remove-members methods in gcloud. The size of this map is - * limited by an "Attachments per group" quota. - * @return value or {@code null} for none - */ - public java.util.Map getAttachments() { - return attachments; - } - - /** - * Attachments in the AttachmentGroup. Keys are arbitrary user-specified strings. Users are - * encouraged, but not required, to use their preferred format for resource links as keys. Note - * that there are add-members and remove-members methods in gcloud. The size of this map is - * limited by an "Attachments per group" quota. - * @param attachments attachments or {@code null} for none - */ - public InterconnectAttachmentGroup setAttachments(java.util.Map attachments) { - this.attachments = attachments; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupConfigured getConfigured() { - return configured; - } - - /** - * @param configured configured or {@code null} for none - */ - public InterconnectAttachmentGroup setConfigured(InterconnectAttachmentGroupConfigured configured) { - this.configured = configured; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InterconnectAttachmentGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public InterconnectAttachmentGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Opaque system-generated token that uniquely identifies the configuration. If provided when - * patching a configuration in update mode, the provided token must match the current token or the - * update is rejected. This provides a reliable means of doing read-modify-write (optimistic - * locking) as described byAIP 154. - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Opaque system-generated token that uniquely identifies the configuration. If provided when - * patching a configuration in update mode, the provided token must match the current token or the - * update is rejected. This provides a reliable means of doing read-modify-write (optimistic - * locking) as described byAIP 154. - * @param etag etag or {@code null} for none - */ - public InterconnectAttachmentGroup setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public InterconnectAttachmentGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupIntent getIntent() { - return intent; - } - - /** - * @param intent intent or {@code null} for none - */ - public InterconnectAttachmentGroup setIntent(InterconnectAttachmentGroupIntent intent) { - this.intent = intent; - return this; - } - - /** - * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not - * need to set this unless directed by Google Support. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** - * The URL of an InterconnectGroup that groups these Attachments' Interconnects. Customers do not - * need to set this unless directed by Google Support. - * @param interconnectGroup interconnectGroup or {@code null} for none - */ - public InterconnectAttachmentGroup setInterconnectGroup(java.lang.String interconnectGroup) { - this.interconnectGroup = interconnectGroup; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#interconnectAttachmentGroup. - * @param kind kind or {@code null} for none - */ - public InterconnectAttachmentGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructure getLogicalStructure() { - return logicalStructure; - } - - /** - * @param logicalStructure logicalStructure or {@code null} for none - */ - public InterconnectAttachmentGroup setLogicalStructure(InterconnectAttachmentGroupLogicalStructure logicalStructure) { - this.logicalStructure = logicalStructure; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 InterconnectAttachmentGroup 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 InterconnectAttachmentGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public InterconnectAttachmentGroup set(String fieldName, Object value) { - return (InterconnectAttachmentGroup) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroup clone() { - return (InterconnectAttachmentGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupAttachment.java deleted file mode 100644 index ec0c5373f3d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupAttachment.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * An Attachment in this AttachmentGroup. - * - *

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 InterconnectAttachmentGroupAttachment extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String attachment; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getAttachment() { - return attachment; - } - - /** - * @param attachment attachment or {@code null} for none - */ - public InterconnectAttachmentGroupAttachment setAttachment(java.lang.String attachment) { - this.attachment = attachment; - return this; - } - - @Override - public InterconnectAttachmentGroupAttachment set(String fieldName, Object value) { - return (InterconnectAttachmentGroupAttachment) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupAttachment clone() { - return (InterconnectAttachmentGroupAttachment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfigured.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfigured.java deleted file mode 100644 index b805187a7b2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfigured.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The redundancy this group is configured to support. The way a user queries what SLA - * their Attachment gets is by looking at this field of the Attachment's AttachmentGroup. - * - *

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 InterconnectAttachmentGroupConfigured extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla; - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLA getAvailabilitySla() { - return availabilitySla; - } - - /** - * @param availabilitySla availabilitySla or {@code null} for none - */ - public InterconnectAttachmentGroupConfigured setAvailabilitySla(InterconnectAttachmentGroupConfiguredAvailabilitySLA availabilitySla) { - this.availabilitySla = availabilitySla; - return this; - } - - @Override - public InterconnectAttachmentGroupConfigured set(String fieldName, Object value) { - return (InterconnectAttachmentGroupConfigured) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupConfigured clone() { - return (InterconnectAttachmentGroupConfigured) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java deleted file mode 100644 index d68ef447b4f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLA.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Which SLA this group is configured to support, and why this group does or does not - * meet that SLA's requirements. - * - *

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 InterconnectAttachmentGroupConfiguredAvailabilitySLA extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String effectiveSla; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List intendedSlaBlockers; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEffectiveSla() { - return effectiveSla; - } - - /** - * @param effectiveSla effectiveSla or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLA setEffectiveSla(java.lang.String effectiveSla) { - this.effectiveSla = effectiveSla; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getIntendedSlaBlockers() { - return intendedSlaBlockers; - } - - /** - * @param intendedSlaBlockers intendedSlaBlockers or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLA setIntendedSlaBlockers(java.util.List intendedSlaBlockers) { - this.intendedSlaBlockers = intendedSlaBlockers; - return this; - } - - @Override - public InterconnectAttachmentGroupConfiguredAvailabilitySLA set(String fieldName, Object value) { - return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupConfiguredAvailabilitySLA clone() { - return (InterconnectAttachmentGroupConfiguredAvailabilitySLA) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java deleted file mode 100644 index 7f963675dfb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Reasons why configuration.availabilitySLA.sla differs from intent.availabilitySLA. - * This list is empty if and only if those are the same. - * - *

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 InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more - * detail. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List attachments; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String blockerType; - - /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String documentationLink; - - /** - * Output only. [Output Only] A human-readable explanation of this requirement and why it's not - * met. This is set for every type of requirement. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String explanation; - - /** - * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- - * letter lowercase strings like "iad". This will be set for some blockers (like - * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metros; - - /** - * Output only. [Output Only] Regions used to explain this blocker in more detail. These are - * region names formatted like "us-central1". This will be set for some blockers (like - * INCOMPATIBLE_REGIONS) but does not apply to others. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List regions; - - /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" - * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to - * others. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more - * detail. - * @return value or {@code null} for none - */ - public java.util.List getAttachments() { - return attachments; - } - - /** - * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more - * detail. - * @param attachments attachments or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setAttachments(java.util.List attachments) { - this.attachments = attachments; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getBlockerType() { - return blockerType; - } - - /** - * @param blockerType blockerType or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setBlockerType(java.lang.String blockerType) { - this.blockerType = blockerType; - return this; - } - - /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. - * @return value or {@code null} for none - */ - public java.lang.String getDocumentationLink() { - return documentationLink; - } - - /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. - * @param documentationLink documentationLink or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setDocumentationLink(java.lang.String documentationLink) { - this.documentationLink = documentationLink; - return this; - } - - /** - * Output only. [Output Only] A human-readable explanation of this requirement and why it's not - * met. This is set for every type of requirement. - * @return value or {@code null} for none - */ - public java.lang.String getExplanation() { - return explanation; - } - - /** - * Output only. [Output Only] A human-readable explanation of this requirement and why it's not - * met. This is set for every type of requirement. - * @param explanation explanation or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setExplanation(java.lang.String explanation) { - this.explanation = explanation; - return this; - } - - /** - * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- - * letter lowercase strings like "iad". This will be set for some blockers (like - * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. - * @return value or {@code null} for none - */ - public java.util.List getMetros() { - return metros; - } - - /** - * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- - * letter lowercase strings like "iad". This will be set for some blockers (like - * NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to others. - * @param metros metros or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setMetros(java.util.List metros) { - this.metros = metros; - return this; - } - - /** - * Output only. [Output Only] Regions used to explain this blocker in more detail. These are - * region names formatted like "us-central1". This will be set for some blockers (like - * INCOMPATIBLE_REGIONS) but does not apply to others. - * @return value or {@code null} for none - */ - public java.util.List getRegions() { - return regions; - } - - /** - * Output only. [Output Only] Regions used to explain this blocker in more detail. These are - * region names formatted like "us-central1". This will be set for some blockers (like - * INCOMPATIBLE_REGIONS) but does not apply to others. - * @param regions regions or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setRegions(java.util.List regions) { - this.regions = regions; - return this; - } - - /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" - * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to - * others. - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Format is "zone1" - * and/or "zone2". This will be set for some blockers (like MISSING_ZONE) but does not apply to - * others. - * @param zones zones or {@code null} for none - */ - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers set(String fieldName, Object value) { - return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers clone() { - return (InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupIntent.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupIntent.java deleted file mode 100644 index b4146c455b7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupIntent.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.preview.model; - -/** - * The user's intent for this AttachmentGroup. This is the only required field besides the name that - * must be specified on group creation. - * - *

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 InterconnectAttachmentGroupIntent extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String availabilitySla; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getAvailabilitySla() { - return availabilitySla; - } - - /** - * @param availabilitySla availabilitySla or {@code null} for none - */ - public InterconnectAttachmentGroupIntent setAvailabilitySla(java.lang.String availabilitySla) { - this.availabilitySla = availabilitySla; - return this; - } - - @Override - public InterconnectAttachmentGroupIntent set(String fieldName, Object value) { - return (InterconnectAttachmentGroupIntent) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupIntent clone() { - return (InterconnectAttachmentGroupIntent) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructure.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructure.java deleted file mode 100644 index fe21b5418e6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructure.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] An analysis of the logical layout of Attachments in this group. Every Attachment in - * the group is shown once in this structure. - * - *

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 InterconnectAttachmentGroupLogicalStructure extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List regions; - - /** - * @return value or {@code null} for none - */ - public java.util.List getRegions() { - return regions; - } - - /** - * @param regions regions or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructure setRegions(java.util.List regions) { - this.regions = regions; - return this; - } - - @Override - public InterconnectAttachmentGroupLogicalStructure set(String fieldName, Object value) { - return (InterconnectAttachmentGroupLogicalStructure) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupLogicalStructure clone() { - return (InterconnectAttachmentGroupLogicalStructure) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegion.java deleted file mode 100644 index 39bc7be1e43..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The regions Attachments in this group are in. - * - *

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 InterconnectAttachmentGroupLogicalStructureRegion extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metros; - - /** - * Output only. [Output Only] The name of a region, like "us-central1". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * @return value or {@code null} for none - */ - public java.util.List getMetros() { - return metros; - } - - /** - * @param metros metros or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.List metros) { - this.metros = metros; - return this; - } - - /** - * Output only. [Output Only] The name of a region, like "us-central1". - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The name of a region, like "us-central1". - * @param region region or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegion setRegion(java.lang.String region) { - this.region = region; - return this; - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegion set(String fieldName, Object value) { - return (InterconnectAttachmentGroupLogicalStructureRegion) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegion clone() { - return (InterconnectAttachmentGroupLogicalStructureRegion) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java deleted file mode 100644 index 41fcc2a9539..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The metros of Attachments in this group in this region. - * - *

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 InterconnectAttachmentGroupLogicalStructureRegionMetro extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List facilities; - - /** - * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like - * "iad". This is the first component of the location of an Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metro; - - /** - * @return value or {@code null} for none - */ - public java.util.List getFacilities() { - return facilities; - } - - /** - * @param facilities facilities or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java.util.List facilities) { - this.facilities = facilities; - return this; - } - - /** - * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like - * "iad". This is the first component of the location of an Interconnect. - * @return value or {@code null} for none - */ - public java.lang.String getMetro() { - return metro; - } - - /** - * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like - * "iad". This is the first component of the location of an Interconnect. - * @param metro metro or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegionMetro setMetro(java.lang.String metro) { - this.metro = metro; - return this; - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegionMetro set(String fieldName, Object value) { - return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegionMetro clone() { - return (InterconnectAttachmentGroupLogicalStructureRegionMetro) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java deleted file mode 100644 index b61b55a1af2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The facilities used for this group's Attachments' Interconnects. - * - *

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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The name of a facility, like "iad-1234". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facility; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * Output only. [Output Only] The name of a facility, like "iad-1234". - * @return value or {@code null} for none - */ - public java.lang.String getFacility() { - return facility; - } - - /** - * Output only. [Output Only] The name of a facility, like "iad-1234". - * @param facility facility or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setFacility(java.lang.String facility) { - this.facility = facility; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * @param zones zones or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility set(String fieldName, Object value) { - return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacility clone() { - return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacility) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java deleted file mode 100644 index d7144c77eec..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The zones that Attachments in this group are present in, in the given facilities. - * This is inherited from their Interconnects. - * - *

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 InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on - * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List attachments; - - /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on - * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. - * @return value or {@code null} for none - */ - public java.util.List getAttachments() { - return attachments; - } - - /** - * Output only. [Output Only] URLs of Attachments in the given zone, to the given region, on - * Interconnects in the given facility and metro. Every Attachment in the AG has such an entry. - * @param attachments attachments or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAttachments(java.util.List attachments) { - this.attachments = attachments; - return this; - } - - /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". - * @param zone zone or {@code null} for none - */ - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone set(String fieldName, Object value) { - return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone clone() { - return (InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java deleted file mode 100644 index bdae8a75f29..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsGetOperationalStatusResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response for the InterconnectAttachmentGroupsGetOperationalStatusResponse. - * - *

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 InterconnectAttachmentGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupsOperationalStatus result; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public InterconnectAttachmentGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatus getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public InterconnectAttachmentGroupsGetOperationalStatusResponse setResult(InterconnectAttachmentGroupsOperationalStatus result) { - this.result = result; - return this; - } - - @Override - public InterconnectAttachmentGroupsGetOperationalStatusResponse set(String fieldName, Object value) { - return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupsGetOperationalStatusResponse clone() { - return (InterconnectAttachmentGroupsGetOperationalStatusResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsListResponse.java deleted file mode 100644 index a523c98331f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsListResponse.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectAttachmentGroupsListResponse. - * - *

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 InterconnectAttachmentGroupsListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 InterconnectAttachmentGroup 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 InterconnectAttachmentGroup 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(InterconnectAttachmentGroup.class); - } - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public InterconnectAttachmentGroupsListResponse 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 InterconnectAttachmentGroupsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InterconnectAttachmentGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InterconnectAttachmentGroup resources. - * @param items items or {@code null} for none - */ - public InterconnectAttachmentGroupsListResponse 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 InterconnectAttachmentGroupsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectAttachmentGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public InterconnectAttachmentGroupsListResponse 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 InterconnectAttachmentGroupsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectAttachmentGroupsListResponse set(String fieldName, Object value) { - return (InterconnectAttachmentGroupsListResponse) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupsListResponse clone() { - return (InterconnectAttachmentGroupsListResponse) 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 InterconnectAttachmentGroupsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatus.java deleted file mode 100644 index 7f6b231d77f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatus.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectAttachmentGroupsOperationalStatus. - * - *

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 InterconnectAttachmentGroupsOperationalStatus extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List attachmentStatuses; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupConfigured configured; - - /** - * Output only. Summarizes the status of the group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String groupStatus; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupIntent intent; - - /** - * Output only. The operational state of the group, including only active Attachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentGroupConfigured operational; - - /** - * @return value or {@code null} for none - */ - public java.util.List getAttachmentStatuses() { - return attachmentStatuses; - } - - /** - * @param attachmentStatuses attachmentStatuses or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatus setAttachmentStatuses(java.util.List attachmentStatuses) { - this.attachmentStatuses = attachmentStatuses; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupConfigured getConfigured() { - return configured; - } - - /** - * @param configured configured or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectAttachmentGroupConfigured configured) { - this.configured = configured; - return this; - } - - /** - * Output only. Summarizes the status of the group. - * @return value or {@code null} for none - */ - public java.lang.String getGroupStatus() { - return groupStatus; - } - - /** - * Output only. Summarizes the status of the group. - * @param groupStatus groupStatus or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { - this.groupStatus = groupStatus; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupIntent getIntent() { - return intent; - } - - /** - * @param intent intent or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttachmentGroupIntent intent) { - this.intent = intent; - return this; - } - - /** - * Output only. The operational state of the group, including only active Attachments. - * @return value or {@code null} for none - */ - public InterconnectAttachmentGroupConfigured getOperational() { - return operational; - } - - /** - * Output only. The operational state of the group, including only active Attachments. - * @param operational operational or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { - this.operational = operational; - return this; - } - - @Override - public InterconnectAttachmentGroupsOperationalStatus set(String fieldName, Object value) { - return (InterconnectAttachmentGroupsOperationalStatus) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupsOperationalStatus clone() { - return (InterconnectAttachmentGroupsOperationalStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java deleted file mode 100644 index 201e597850d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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.preview.model; - -/** - * The status of one Attachment in the group. List order is arbitrary. - * - *

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 InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. Whether this Attachment is enabled. This becomes false when the customer drains - * their Attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Output only. The URL of the Attachment being described. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String attachment; - - /** - * Output only. Whether this Attachment is participating in the redundant configuration. This will - * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are - * excluded from the analysis that generates operational.availabilitySLA. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String isActive; - - /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. Whether this Attachment is enabled. This becomes false when the customer drains - * their Attachment. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Output only. Whether this Attachment is enabled. This becomes false when the customer drains - * their Attachment. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Output only. The URL of the Attachment being described. - * @return value or {@code null} for none - */ - public java.lang.String getAttachment() { - return attachment; - } - - /** - * Output only. The URL of the Attachment being described. - * @param attachment attachment or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { - this.attachment = attachment; - return this; - } - - /** - * Output only. Whether this Attachment is participating in the redundant configuration. This will - * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are - * excluded from the analysis that generates operational.availabilitySLA. - * @return value or {@code null} for none - */ - public java.lang.String getIsActive() { - return isActive; - } - - /** - * Output only. Whether this Attachment is participating in the redundant configuration. This will - * be ACTIVE if and only if the status below is CONNECTION_UP. Any INACTIVE Attachments are - * excluded from the analysis that generates operational.availabilitySLA. - * @param isActive isActive or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive(java.lang.String isActive) { - this.isActive = isActive; - return this; - } - - /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. - * @param status status or {@code null} for none - */ - public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus set(String fieldName, Object value) { - return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus clone() { - return (InterconnectAttachmentGroupsOperationalStatusAttachmentStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2Forwarding.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2Forwarding.java deleted file mode 100644 index 15450d7cd65..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2Forwarding.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * 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.preview.model; - -/** - * L2 Interconnect Attachment related configuration. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class InterconnectAttachmentL2Forwarding extends com.google.api.client.json.GenericJson { - - /** - * Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not - * explicitly mapped to any appliance, the defaultApplianceIpAddress is used. - * - * Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" - * or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating - * operations will be rejected. - * - * The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map applianceMappings; - - /** - * Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no - * VLAN mapping result found. - * - * Unset field (null-value) indicates the unmatched packet should be dropped. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultApplianceIpAddress; - - /** - * Optional. It represents the structure of a Geneve (Generic Network Virtualization - * Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols - * (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentL2ForwardingGeneveHeader geneveHeader; - - /** - * Required. Resource URL of the network to which this attachment belongs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for - * packets sent to the appliances, and must be used as the destination IP address for packets that - * should be sent out through this attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tunnelEndpointIpAddress; - - /** - * Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not - * explicitly mapped to any appliance, the defaultApplianceIpAddress is used. - * - * Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" - * or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating - * operations will be rejected. - * - * The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100. - * @return value or {@code null} for none - */ - public java.util.Map getApplianceMappings() { - return applianceMappings; - } - - /** - * Optional. A map of VLAN tags to appliances and optional inner mapping rules. If VLANs are not - * explicitly mapped to any appliance, the defaultApplianceIpAddress is used. - * - * Each VLAN tag can be a single number or a range of numbers in the range of 1 to 4094, e.g., "1" - * or "4001-4094". Non-empty and non-overlapping VLAN tag ranges are enforced, and violating - * operations will be rejected. - * - * The VLAN tags in the Ethernet header must use an ethertype value of 0x88A8 or 0x8100. - * @param applianceMappings applianceMappings or {@code null} for none - */ - public InterconnectAttachmentL2Forwarding setApplianceMappings(java.util.Map applianceMappings) { - this.applianceMappings = applianceMappings; - return this; - } - - /** - * Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no - * VLAN mapping result found. - * - * Unset field (null-value) indicates the unmatched packet should be dropped. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultApplianceIpAddress() { - return defaultApplianceIpAddress; - } - - /** - * Optional. A single IPv4 or IPv6 address used as the default destination IP when there is no - * VLAN mapping result found. - * - * Unset field (null-value) indicates the unmatched packet should be dropped. - * @param defaultApplianceIpAddress defaultApplianceIpAddress or {@code null} for none - */ - public InterconnectAttachmentL2Forwarding setDefaultApplianceIpAddress(java.lang.String defaultApplianceIpAddress) { - this.defaultApplianceIpAddress = defaultApplianceIpAddress; - return this; - } - - /** - * Optional. It represents the structure of a Geneve (Generic Network Virtualization - * Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols - * (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments. - * @return value or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingGeneveHeader getGeneveHeader() { - return geneveHeader; - } - - /** - * Optional. It represents the structure of a Geneve (Generic Network Virtualization - * Encapsulation) header, as defined in RFC8926. It encapsulates packets from various protocols - * (e.g., Ethernet, IPv4, IPv6) for use in network virtualization environments. - * @param geneveHeader geneveHeader or {@code null} for none - */ - public InterconnectAttachmentL2Forwarding setGeneveHeader(InterconnectAttachmentL2ForwardingGeneveHeader geneveHeader) { - this.geneveHeader = geneveHeader; - return this; - } - - /** - * Required. Resource URL of the network to which this attachment belongs. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * Required. Resource URL of the network to which this attachment belongs. - * @param network network or {@code null} for none - */ - public InterconnectAttachmentL2Forwarding setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for - * packets sent to the appliances, and must be used as the destination IP address for packets that - * should be sent out through this attachment. - * @return value or {@code null} for none - */ - public java.lang.String getTunnelEndpointIpAddress() { - return tunnelEndpointIpAddress; - } - - /** - * Required. A single IPv4 or IPv6 address. This address will be used as the source IP address for - * packets sent to the appliances, and must be used as the destination IP address for packets that - * should be sent out through this attachment. - * @param tunnelEndpointIpAddress tunnelEndpointIpAddress or {@code null} for none - */ - public InterconnectAttachmentL2Forwarding setTunnelEndpointIpAddress(java.lang.String tunnelEndpointIpAddress) { - this.tunnelEndpointIpAddress = tunnelEndpointIpAddress; - return this; - } - - @Override - public InterconnectAttachmentL2Forwarding set(String fieldName, Object value) { - return (InterconnectAttachmentL2Forwarding) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentL2Forwarding clone() { - return (InterconnectAttachmentL2Forwarding) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMapping.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMapping.java deleted file mode 100644 index 1b7add83464..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMapping.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * 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.preview.model; - -/** - * Two-level VLAN-to-Appliance mapping rule. - * - *

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 InterconnectAttachmentL2ForwardingApplianceMapping extends com.google.api.client.json.GenericJson { - - /** - * Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets - * that match on a VLAN tag, but do not match a more specific inner VLAN tag. - * - * Unset field (null-value) indicates both VLAN tags are required to be mapped. Otherwise, - * defaultApplianceIpAddress is used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String applianceIpAddress; - - /** - * Optional. Used to match against the inner VLAN when the packet contains two VLAN tags. - * - * A list of mapping rules from inner VLAN tags to IP addresses. If the inner VLAN is not - * explicitly mapped to an IP address range, the applianceIpAddress is used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List innerVlanToApplianceMappings; - - /** - * Optional. The name of this appliance mapping rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets - * that match on a VLAN tag, but do not match a more specific inner VLAN tag. - * - * Unset field (null-value) indicates both VLAN tags are required to be mapped. Otherwise, - * defaultApplianceIpAddress is used. - * @return value or {@code null} for none - */ - public java.lang.String getApplianceIpAddress() { - return applianceIpAddress; - } - - /** - * Optional. A single IPv4 or IPv6 address used as the destination IP address for ingress packets - * that match on a VLAN tag, but do not match a more specific inner VLAN tag. - * - * Unset field (null-value) indicates both VLAN tags are required to be mapped. Otherwise, - * defaultApplianceIpAddress is used. - * @param applianceIpAddress applianceIpAddress or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingApplianceMapping setApplianceIpAddress(java.lang.String applianceIpAddress) { - this.applianceIpAddress = applianceIpAddress; - return this; - } - - /** - * Optional. Used to match against the inner VLAN when the packet contains two VLAN tags. - * - * A list of mapping rules from inner VLAN tags to IP addresses. If the inner VLAN is not - * explicitly mapped to an IP address range, the applianceIpAddress is used. - * @return value or {@code null} for none - */ - public java.util.List getInnerVlanToApplianceMappings() { - return innerVlanToApplianceMappings; - } - - /** - * Optional. Used to match against the inner VLAN when the packet contains two VLAN tags. - * - * A list of mapping rules from inner VLAN tags to IP addresses. If the inner VLAN is not - * explicitly mapped to an IP address range, the applianceIpAddress is used. - * @param innerVlanToApplianceMappings innerVlanToApplianceMappings or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingApplianceMapping setInnerVlanToApplianceMappings(java.util.List innerVlanToApplianceMappings) { - this.innerVlanToApplianceMappings = innerVlanToApplianceMappings; - return this; - } - - /** - * Optional. The name of this appliance mapping rule. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Optional. The name of this appliance mapping rule. - * @param name name or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingApplianceMapping setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public InterconnectAttachmentL2ForwardingApplianceMapping set(String fieldName, Object value) { - return (InterconnectAttachmentL2ForwardingApplianceMapping) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentL2ForwardingApplianceMapping clone() { - return (InterconnectAttachmentL2ForwardingApplianceMapping) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java deleted file mode 100644 index 4df1e5fcf52..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * The inner VLAN-to-Appliance mapping. - * - *

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 InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping extends com.google.api.client.json.GenericJson { - - /** - * Required in this object. A single IPv4 or IPv6 address used as the destination IP address for - * ingress packets that match on both VLAN tags. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String innerApplianceIpAddress; - - /** - * Required in this object. Used to match the inner VLAN tag on the packet. Each entry can be a - * single number or a range of numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] is - * valid. Non-empty and Non-overlapping VLAN tag ranges are enforced, and violating operations - * will be rejected. - * - * The inner VLAN tags must have an ethertype value of 0x8100. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List innerVlanTags; - - /** - * Required in this object. A single IPv4 or IPv6 address used as the destination IP address for - * ingress packets that match on both VLAN tags. - * @return value or {@code null} for none - */ - public java.lang.String getInnerApplianceIpAddress() { - return innerApplianceIpAddress; - } - - /** - * Required in this object. A single IPv4 or IPv6 address used as the destination IP address for - * ingress packets that match on both VLAN tags. - * @param innerApplianceIpAddress innerApplianceIpAddress or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping setInnerApplianceIpAddress(java.lang.String innerApplianceIpAddress) { - this.innerApplianceIpAddress = innerApplianceIpAddress; - return this; - } - - /** - * Required in this object. Used to match the inner VLAN tag on the packet. Each entry can be a - * single number or a range of numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] is - * valid. Non-empty and Non-overlapping VLAN tag ranges are enforced, and violating operations - * will be rejected. - * - * The inner VLAN tags must have an ethertype value of 0x8100. - * @return value or {@code null} for none - */ - public java.util.List getInnerVlanTags() { - return innerVlanTags; - } - - /** - * Required in this object. Used to match the inner VLAN tag on the packet. Each entry can be a - * single number or a range of numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] is - * valid. Non-empty and Non-overlapping VLAN tag ranges are enforced, and violating operations - * will be rejected. - * - * The inner VLAN tags must have an ethertype value of 0x8100. - * @param innerVlanTags innerVlanTags or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping setInnerVlanTags(java.util.List innerVlanTags) { - this.innerVlanTags = innerVlanTags; - return this; - } - - @Override - public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping set(String fieldName, Object value) { - return (InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping clone() { - return (InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingGeneveHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingGeneveHeader.java deleted file mode 100644 index 4a0212898f4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentL2ForwardingGeneveHeader.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * GeneveHeader related configurations. - * - *

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 InterconnectAttachmentL2ForwardingGeneveHeader extends com.google.api.client.json.GenericJson { - - /** - * Optional. VNI is a 24-bit unique virtual network identifier, from 0 to 16,777,215. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long vni; - - /** - * Optional. VNI is a 24-bit unique virtual network identifier, from 0 to 16,777,215. - * @return value or {@code null} for none - */ - public java.lang.Long getVni() { - return vni; - } - - /** - * Optional. VNI is a 24-bit unique virtual network identifier, from 0 to 16,777,215. - * @param vni vni or {@code null} for none - */ - public InterconnectAttachmentL2ForwardingGeneveHeader setVni(java.lang.Long vni) { - this.vni = vni; - return this; - } - - @Override - public InterconnectAttachmentL2ForwardingGeneveHeader set(String fieldName, Object value) { - return (InterconnectAttachmentL2ForwardingGeneveHeader) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentL2ForwardingGeneveHeader clone() { - return (InterconnectAttachmentL2ForwardingGeneveHeader) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentList.java deleted file mode 100644 index 1fcfae6d0f0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to the list request, and contains a list of interconnect attachments. - * - *

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 InterconnectAttachmentList extends com.google.api.client.json.GenericJson { - - /** - * [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 InterconnectAttachment 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 InterconnectAttachment 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(InterconnectAttachment.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists - * of interconnect attachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InterconnectAttachmentList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InterconnectAttachment resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InterconnectAttachment resources. - * @param items items or {@code null} for none - */ - public InterconnectAttachmentList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists - * of interconnect attachments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists - * of interconnect attachments. - * @param kind kind or {@code null} for none - */ - public InterconnectAttachmentList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectAttachmentList 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 InterconnectAttachmentList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InterconnectAttachmentList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectAttachmentList set(String fieldName, Object value) { - return (InterconnectAttachmentList) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentList clone() { - return (InterconnectAttachmentList) 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 InterconnectAttachmentListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentParams.java deleted file mode 100644 index 8eff8415139..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentParams.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional interconnect attachment parameters. - * - *

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 InterconnectAttachmentParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public InterconnectAttachmentParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public InterconnectAttachmentParams set(String fieldName, Object value) { - return (InterconnectAttachmentParams) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentParams clone() { - return (InterconnectAttachmentParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPartnerMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPartnerMetadata.java deleted file mode 100644 index 78fde8a5c07..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPartnerMetadata.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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.preview.model; - -/** - * Informational metadata about Partner attachments from Partners to display to customers. These - * fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER - * attachments. - * - *

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 InterconnectAttachmentPartnerMetadata extends com.google.api.client.json.GenericJson { - - /** - * Plain text name of the Interconnect this attachment is connected to, as displayed in the - * Partner's portal. For instance "Chicago 1". This value may be validated to match approved - * Partner values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnectName; - - /** - * Plain text name of the Partner providing this attachment. This value may be validated to match - * approved Partner values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String partnerName; - - /** - * URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link - * to the specific resource on the Partner portal. This value may be validated to match approved - * Partner values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portalUrl; - - /** - * Plain text name of the Interconnect this attachment is connected to, as displayed in the - * Partner's portal. For instance "Chicago 1". This value may be validated to match approved - * Partner values. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnectName() { - return interconnectName; - } - - /** - * Plain text name of the Interconnect this attachment is connected to, as displayed in the - * Partner's portal. For instance "Chicago 1". This value may be validated to match approved - * Partner values. - * @param interconnectName interconnectName or {@code null} for none - */ - public InterconnectAttachmentPartnerMetadata setInterconnectName(java.lang.String interconnectName) { - this.interconnectName = interconnectName; - return this; - } - - /** - * Plain text name of the Partner providing this attachment. This value may be validated to match - * approved Partner values. - * @return value or {@code null} for none - */ - public java.lang.String getPartnerName() { - return partnerName; - } - - /** - * Plain text name of the Partner providing this attachment. This value may be validated to match - * approved Partner values. - * @param partnerName partnerName or {@code null} for none - */ - public InterconnectAttachmentPartnerMetadata setPartnerName(java.lang.String partnerName) { - this.partnerName = partnerName; - return this; - } - - /** - * URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link - * to the specific resource on the Partner portal. This value may be validated to match approved - * Partner values. - * @return value or {@code null} for none - */ - public java.lang.String getPortalUrl() { - return portalUrl; - } - - /** - * URL of the Partner's portal for this Attachment. Partners may customise this to be a deep link - * to the specific resource on the Partner portal. This value may be validated to match approved - * Partner values. - * @param portalUrl portalUrl or {@code null} for none - */ - public InterconnectAttachmentPartnerMetadata setPortalUrl(java.lang.String portalUrl) { - this.portalUrl = portalUrl; - return this; - } - - @Override - public InterconnectAttachmentPartnerMetadata set(String fieldName, Object value) { - return (InterconnectAttachmentPartnerMetadata) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentPartnerMetadata clone() { - return (InterconnectAttachmentPartnerMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPrivateInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPrivateInfo.java deleted file mode 100644 index 7081b37da2f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentPrivateInfo.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.preview.model; - -/** - * Information for an interconnect attachment when this belongs to an interconnect of type - * DEDICATED. - * - *

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 InterconnectAttachmentPrivateInfo extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, - * going to and from this network and region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long tag8021q; - - /** - * [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, - * going to and from this network and region. - * @return value or {@code null} for none - */ - public java.lang.Long getTag8021q() { - return tag8021q; - } - - /** - * [Output Only] 802.1q encapsulation tag to be used for traffic between Google and the customer, - * going to and from this network and region. - * @param tag8021q tag8021q or {@code null} for none - */ - public InterconnectAttachmentPrivateInfo setTag8021q(java.lang.Long tag8021q) { - this.tag8021q = tag8021q; - return this; - } - - @Override - public InterconnectAttachmentPrivateInfo set(String fieldName, Object value) { - return (InterconnectAttachmentPrivateInfo) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentPrivateInfo clone() { - return (InterconnectAttachmentPrivateInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentsScopedList.java deleted file mode 100644 index c3cbe206715..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectAttachmentsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectAttachmentsScopedList. - * - *

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 InterconnectAttachmentsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of interconnect attachments contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnectAttachments; - - static { - // hack to force ProGuard to consider InterconnectAttachment 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(InterconnectAttachment.class); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of interconnect attachments contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getInterconnectAttachments() { - return interconnectAttachments; - } - - /** - * A list of interconnect attachments contained in this scope. - * @param interconnectAttachments interconnectAttachments or {@code null} for none - */ - public InterconnectAttachmentsScopedList setInterconnectAttachments(java.util.List interconnectAttachments) { - this.interconnectAttachments = interconnectAttachments; - return this; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @param warning warning or {@code null} for none - */ - public InterconnectAttachmentsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectAttachmentsScopedList set(String fieldName, Object value) { - return (InterconnectAttachmentsScopedList) super.set(fieldName, value); - } - - @Override - public InterconnectAttachmentsScopedList clone() { - return (InterconnectAttachmentsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - */ - 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 InterconnectAttachmentsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectCircuitInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectCircuitInfo.java deleted file mode 100644 index 9a35ed6e913..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectCircuitInfo.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes a single physical circuit between the Customer and Google. CircuitInfo objects are - * created by Google, so all fields are output only. - * - *

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 InterconnectCircuitInfo extends com.google.api.client.json.GenericJson { - - /** - * Customer-side demarc ID for this circuit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerDemarcId; - - /** - * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleCircuitId; - - /** - * Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to - * the customer in the LOA. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleDemarcId; - - /** - * Customer-side demarc ID for this circuit. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerDemarcId() { - return customerDemarcId; - } - - /** - * Customer-side demarc ID for this circuit. - * @param customerDemarcId customerDemarcId or {@code null} for none - */ - public InterconnectCircuitInfo setCustomerDemarcId(java.lang.String customerDemarcId) { - this.customerDemarcId = customerDemarcId; - return this; - } - - /** - * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleCircuitId() { - return googleCircuitId; - } - - /** - * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. - * @param googleCircuitId googleCircuitId or {@code null} for none - */ - public InterconnectCircuitInfo setGoogleCircuitId(java.lang.String googleCircuitId) { - this.googleCircuitId = googleCircuitId; - return this; - } - - /** - * Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to - * the customer in the LOA. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleDemarcId() { - return googleDemarcId; - } - - /** - * Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to - * the customer in the LOA. - * @param googleDemarcId googleDemarcId or {@code null} for none - */ - public InterconnectCircuitInfo setGoogleDemarcId(java.lang.String googleDemarcId) { - this.googleDemarcId = googleDemarcId; - return this; - } - - @Override - public InterconnectCircuitInfo set(String fieldName, Object value) { - return (InterconnectCircuitInfo) super.set(fieldName, value); - } - - @Override - public InterconnectCircuitInfo clone() { - return (InterconnectCircuitInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnostics.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnostics.java deleted file mode 100644 index 3dedd9d9539..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnostics.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * 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.preview.model; - -/** - * Diagnostics information about the Interconnect connection, which contains detailed and current - * technical information about Google's side of the connection. - * - *

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 InterconnectDiagnostics extends com.google.api.client.json.GenericJson { - - /** - * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently - * seen by the Google router in the ARP cache for the Interconnect. This will be empty when the - * Interconnect is not bundled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List arpCaches; - - /** - * The aggregation type of the bundle interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bundleAggregationType; - - /** - * The operational status of the bundle interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bundleOperationalStatus; - - /** - * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on - * the Interconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List links; - - /** - * The MAC address of the Interconnect's bundle interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String macAddress; - - /** - * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently - * seen by the Google router in the ARP cache for the Interconnect. This will be empty when the - * Interconnect is not bundled. - * @return value or {@code null} for none - */ - public java.util.List getArpCaches() { - return arpCaches; - } - - /** - * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently - * seen by the Google router in the ARP cache for the Interconnect. This will be empty when the - * Interconnect is not bundled. - * @param arpCaches arpCaches or {@code null} for none - */ - public InterconnectDiagnostics setArpCaches(java.util.List arpCaches) { - this.arpCaches = arpCaches; - return this; - } - - /** - * The aggregation type of the bundle interface. - * @return value or {@code null} for none - */ - public java.lang.String getBundleAggregationType() { - return bundleAggregationType; - } - - /** - * The aggregation type of the bundle interface. - * @param bundleAggregationType bundleAggregationType or {@code null} for none - */ - public InterconnectDiagnostics setBundleAggregationType(java.lang.String bundleAggregationType) { - this.bundleAggregationType = bundleAggregationType; - return this; - } - - /** - * The operational status of the bundle interface. - * @return value or {@code null} for none - */ - public java.lang.String getBundleOperationalStatus() { - return bundleOperationalStatus; - } - - /** - * The operational status of the bundle interface. - * @param bundleOperationalStatus bundleOperationalStatus or {@code null} for none - */ - public InterconnectDiagnostics setBundleOperationalStatus(java.lang.String bundleOperationalStatus) { - this.bundleOperationalStatus = bundleOperationalStatus; - return this; - } - - /** - * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on - * the Interconnect. - * @return value or {@code null} for none - */ - public java.util.List getLinks() { - return links; - } - - /** - * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on - * the Interconnect. - * @param links links or {@code null} for none - */ - public InterconnectDiagnostics setLinks(java.util.List links) { - this.links = links; - return this; - } - - /** - * The MAC address of the Interconnect's bundle interface. - * @return value or {@code null} for none - */ - public java.lang.String getMacAddress() { - return macAddress; - } - - /** - * The MAC address of the Interconnect's bundle interface. - * @param macAddress macAddress or {@code null} for none - */ - public InterconnectDiagnostics setMacAddress(java.lang.String macAddress) { - this.macAddress = macAddress; - return this; - } - - @Override - public InterconnectDiagnostics set(String fieldName, Object value) { - return (InterconnectDiagnostics) super.set(fieldName, value); - } - - @Override - public InterconnectDiagnostics clone() { - return (InterconnectDiagnostics) super.clone(); - } - -} From 8dbf4f9ef5afcd3d22da07aa85783414ee63608e Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:38 -0700 Subject: [PATCH 17/23] chore: regenerate compute client --- .../InterconnectDiagnosticsARPEntry.java | 90 --- ...InterconnectDiagnosticsLinkLACPStatus.java | 120 ---- ...terconnectDiagnosticsLinkOpticalPower.java | 111 --- .../InterconnectDiagnosticsLinkStatus.java | 246 ------- .../InterconnectDiagnosticsMacsecStatus.java | 93 --- .../preview/model/InterconnectGroup.java | 331 --------- .../model/InterconnectGroupConfigured.java | 65 -- ...nectGroupConfiguredTopologyCapability.java | 85 --- ...yCapabilityIntendedCapabilityBlockers.java | 226 ------ .../model/InterconnectGroupIntent.java | 64 -- .../model/InterconnectGroupInterconnect.java | 66 -- .../InterconnectGroupPhysicalStructure.java | 64 -- ...erconnectGroupPhysicalStructureMetros.java | 90 --- ...roupPhysicalStructureMetrosFacilities.java | 90 --- ...hysicalStructureMetrosFacilitiesZones.java | 96 --- .../InterconnectGroupsCreateMembers.java | 114 --- ...tGroupsCreateMembersInterconnectInput.java | 390 ---------- ...nterconnectGroupsCreateMembersRequest.java | 63 -- ...ectGroupsGetOperationalStatusResponse.java | 84 --- .../model/InterconnectGroupsListResponse.java | 428 ----------- .../InterconnectGroupsOperationalStatus.java | 159 ---- ...psOperationalStatusInterconnectStatus.java | 141 ---- .../preview/model/InterconnectList.java | 386 ---------- .../preview/model/InterconnectLocation.java | 588 --------------- ...nectLocationCrossSiteInterconnectInfo.java | 127 ---- .../model/InterconnectLocationList.java | 386 ---------- .../model/InterconnectLocationRegionInfo.java | 145 ---- .../preview/model/InterconnectMacsec.java | 112 --- .../model/InterconnectMacsecConfig.java | 76 -- .../InterconnectMacsecConfigPreSharedKey.java | 139 ---- .../model/InterconnectMacsecPreSharedKey.java | 112 --- .../model/InterconnectOutageNotification.java | 285 -------- .../preview/model/InterconnectParams.java | 87 --- .../model/InterconnectRemoteLocation.java | 600 ---------------- ...InterconnectRemoteLocationConstraints.java | 171 ----- ...eLocationConstraintsSubnetLengthRange.java | 84 --- .../model/InterconnectRemoteLocationList.java | 386 ---------- ...ectRemoteLocationPermittedConnections.java | 69 -- .../InterconnectsGetDiagnosticsResponse.java | 63 -- .../InterconnectsGetMacsecConfigResponse.java | 87 --- .../compute/preview/model/Interval.java | 106 --- .../compute/preview/model/License.java | 604 ---------------- .../compute/preview/model/LicenseCode.java | 531 -------------- .../model/LicenseCodeLicenseAlias.java | 90 --- .../compute/preview/model/LicenseParams.java | 78 -- .../model/LicenseResourceCommitment.java | 114 --- .../model/LicenseResourceRequirements.java | 96 --- .../preview/model/LicensesListResponse.java | 359 ---------- .../model/ListInstantSnapshotGroups.java | 431 ----------- .../compute/preview/model/LocalDisk.java | 120 ---- .../preview/model/LocalizedMessage.java | 94 --- .../compute/preview/model/LocationPolicy.java | 136 ---- .../preview/model/LocationPolicyLocation.java | 90 --- .../LocationPolicyLocationConstraints.java | 69 -- .../LocationPolicyZoneConfiguration.java | 69 -- .../compute/preview/model/MachineImage.java | 678 ------------------ .../preview/model/MachineImageList.java | 386 ---------- .../preview/model/MachineImageParams.java | 78 -- .../compute/preview/model/MachineType.java | 533 -------------- .../model/MachineTypeAggregatedList.java | 404 ----------- .../preview/model/MachineTypeList.java | 386 ---------- .../preview/model/MachineTypesScopedList.java | 278 ------- .../preview/model/ManagedInstance.java | 447 ------------ .../model/ManagedInstanceInstanceHealth.java | 93 --- .../model/ManagedInstanceLastAttempt.java | 356 --------- ...stancePropertiesFromFlexibilityPolicy.java | 120 ---- .../model/ManagedInstanceScheduling.java | 96 --- .../model/ManagedInstanceShutdownDetails.java | 96 --- .../preview/model/ManagedInstanceVersion.java | 93 --- .../compute/preview/model/ManagedRuleset.java | 259 ------- .../preview/model/ManagedRulesetList.java | 317 -------- .../compute/preview/model/Metadata.java | 258 ------- .../compute/preview/model/MetadataFilter.java | 126 ---- .../model/MetadataFilterLabelMatch.java | 103 --- .../services/compute/preview/model/Money.java | 126 ---- .../compute/preview/model/NamedPort.java | 90 --- .../compute/preview/model/NamedSet.java | 224 ------ .../compute/preview/model/NatIpInfo.java | 90 --- .../model/NatIpInfoNatIpInfoMapping.java | 114 --- .../preview/model/NatIpInfoResponse.java | 72 -- .../compute/preview/model/Network.java | 612 ---------------- .../preview/model/NetworkAttachment.java | 480 ------------- .../NetworkAttachmentAggregatedList.java | 374 ---------- .../NetworkAttachmentConnectedEndpoint.java | 246 ------- .../preview/model/NetworkAttachmentList.java | 380 ---------- .../model/NetworkAttachmentsScopedList.java | 278 ------- .../model/NetworkEdgeSecurityService.java | 359 ---------- ...workEdgeSecurityServiceAggregatedList.java | 428 ----------- ...NetworkEdgeSecurityServicesScopedList.java | 278 ------- .../preview/model/NetworkEndpoint.java | 279 ------- .../preview/model/NetworkEndpointGroup.java | 571 --------------- .../NetworkEndpointGroupAggregatedList.java | 407 ----------- .../model/NetworkEndpointGroupAppEngine.java | 170 ----- .../NetworkEndpointGroupCloudFunction.java | 127 ---- .../model/NetworkEndpointGroupCloudRun.java | 167 ----- .../model/NetworkEndpointGroupList.java | 386 ---------- .../model/NetworkEndpointGroupPscData.java | 145 ---- ...kEndpointGroupsAttachEndpointsRequest.java | 72 -- ...kEndpointGroupsDetachEndpointsRequest.java | 72 -- ...orkEndpointGroupsListEndpointsRequest.java | 72 -- 100 files changed, 21832 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsARPEntry.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkLACPStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkOpticalPower.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsMacsecStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfigured.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapability.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupIntent.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupInterconnect.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructure.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetros.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilities.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembers.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersInterconnectInput.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsGetOperationalStatusResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatusInterconnectStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationCrossSiteInterconnectInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationRegionInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsec.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfigPreSharedKey.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecPreSharedKey.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectOutageNotification.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraints.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationPermittedConnections.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetDiagnosticsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetMacsecConfigResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interval.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/License.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCode.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCodeLicenseAlias.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceCommitment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceRequirements.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicensesListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ListInstantSnapshotGroups.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalizedMessage.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocationConstraints.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyZoneConfiguration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImage.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineType.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstance.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceInstanceHealth.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceLastAttempt.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstancePropertiesFromFlexibilityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceScheduling.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceShutdownDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceVersion.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRuleset.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRulesetList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Metadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilter.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilterLabelMatch.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Money.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedPort.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedSet.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoNatIpInfoMapping.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Network.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentConnectedEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityService.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServiceAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServicesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAppEngine.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudFunction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudRun.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupPscData.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsAttachEndpointsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsDetachEndpointsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListEndpointsRequest.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsARPEntry.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsARPEntry.java deleted file mode 100644 index e35effa9ea4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsARPEntry.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describing the ARP neighbor entries seen on this link - * - *

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 InterconnectDiagnosticsARPEntry extends com.google.api.client.json.GenericJson { - - /** - * The IP address of this ARP neighbor. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * The MAC address of this ARP neighbor. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String macAddress; - - /** - * The IP address of this ARP neighbor. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * The IP address of this ARP neighbor. - * @param ipAddress ipAddress or {@code null} for none - */ - public InterconnectDiagnosticsARPEntry setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * The MAC address of this ARP neighbor. - * @return value or {@code null} for none - */ - public java.lang.String getMacAddress() { - return macAddress; - } - - /** - * The MAC address of this ARP neighbor. - * @param macAddress macAddress or {@code null} for none - */ - public InterconnectDiagnosticsARPEntry setMacAddress(java.lang.String macAddress) { - this.macAddress = macAddress; - return this; - } - - @Override - public InterconnectDiagnosticsARPEntry set(String fieldName, Object value) { - return (InterconnectDiagnosticsARPEntry) super.set(fieldName, value); - } - - @Override - public InterconnectDiagnosticsARPEntry clone() { - return (InterconnectDiagnosticsARPEntry) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkLACPStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkLACPStatus.java deleted file mode 100644 index 9c39d5b1a6a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkLACPStatus.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectDiagnosticsLinkLACPStatus. - * - *

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 InterconnectDiagnosticsLinkLACPStatus extends com.google.api.client.json.GenericJson { - - /** - * System ID of the port on Google's side of the LACP exchange. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleSystemId; - - /** - * System ID of the port on the neighbor's side of the LACP exchange. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String neighborSystemId; - - /** - * The state of a LACP link, which can take one of the following values: - ACTIVE: The link - * is configured and active within the bundle. - DETACHED: The link is not configured within - * the bundle. This means that the rest of the object should be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * System ID of the port on Google's side of the LACP exchange. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleSystemId() { - return googleSystemId; - } - - /** - * System ID of the port on Google's side of the LACP exchange. - * @param googleSystemId googleSystemId or {@code null} for none - */ - public InterconnectDiagnosticsLinkLACPStatus setGoogleSystemId(java.lang.String googleSystemId) { - this.googleSystemId = googleSystemId; - return this; - } - - /** - * System ID of the port on the neighbor's side of the LACP exchange. - * @return value or {@code null} for none - */ - public java.lang.String getNeighborSystemId() { - return neighborSystemId; - } - - /** - * System ID of the port on the neighbor's side of the LACP exchange. - * @param neighborSystemId neighborSystemId or {@code null} for none - */ - public InterconnectDiagnosticsLinkLACPStatus setNeighborSystemId(java.lang.String neighborSystemId) { - this.neighborSystemId = neighborSystemId; - return this; - } - - /** - * The state of a LACP link, which can take one of the following values: - ACTIVE: The link - * is configured and active within the bundle. - DETACHED: The link is not configured within - * the bundle. This means that the rest of the object should be empty. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * The state of a LACP link, which can take one of the following values: - ACTIVE: The link - * is configured and active within the bundle. - DETACHED: The link is not configured within - * the bundle. This means that the rest of the object should be empty. - * @param state state or {@code null} for none - */ - public InterconnectDiagnosticsLinkLACPStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public InterconnectDiagnosticsLinkLACPStatus set(String fieldName, Object value) { - return (InterconnectDiagnosticsLinkLACPStatus) super.set(fieldName, value); - } - - @Override - public InterconnectDiagnosticsLinkLACPStatus clone() { - return (InterconnectDiagnosticsLinkLACPStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkOpticalPower.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkOpticalPower.java deleted file mode 100644 index 4ea109c55fd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkOpticalPower.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectDiagnosticsLinkOpticalPower. - * - *

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 InterconnectDiagnosticsLinkOpticalPower extends com.google.api.client.json.GenericJson { - - /** - * The status of the current value when compared to the warning and alarm levels for the receiving - * or transmitting transceiver. Possible states include: - OK: The value has not - * crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning - * threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - * - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The - * value has crossed above the high alarm threshold. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Value of the current receiving or transmitting optical power, read in dBm. Take a known good - * optical value, give it a 10% margin and trigger warnings relative to that value. In general, a - * -7dBm warning and a -11dBm alarm are good optical value estimates for most links. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float value; - - /** - * The status of the current value when compared to the warning and alarm levels for the receiving - * or transmitting transceiver. Possible states include: - OK: The value has not - * crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning - * threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - * - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The - * value has crossed above the high alarm threshold. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * The status of the current value when compared to the warning and alarm levels for the receiving - * or transmitting transceiver. Possible states include: - OK: The value has not - * crossed a warning threshold. - LOW_WARNING: The value has crossed below the low warning - * threshold. - HIGH_WARNING: The value has crossed above the high warning threshold. - * - LOW_ALARM: The value has crossed below the low alarm threshold. - HIGH_ALARM: The - * value has crossed above the high alarm threshold. - * @param state state or {@code null} for none - */ - public InterconnectDiagnosticsLinkOpticalPower setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Value of the current receiving or transmitting optical power, read in dBm. Take a known good - * optical value, give it a 10% margin and trigger warnings relative to that value. In general, a - * -7dBm warning and a -11dBm alarm are good optical value estimates for most links. - * @return value or {@code null} for none - */ - public java.lang.Float getValue() { - return value; - } - - /** - * Value of the current receiving or transmitting optical power, read in dBm. Take a known good - * optical value, give it a 10% margin and trigger warnings relative to that value. In general, a - * -7dBm warning and a -11dBm alarm are good optical value estimates for most links. - * @param value value or {@code null} for none - */ - public InterconnectDiagnosticsLinkOpticalPower setValue(java.lang.Float value) { - this.value = value; - return this; - } - - @Override - public InterconnectDiagnosticsLinkOpticalPower set(String fieldName, Object value) { - return (InterconnectDiagnosticsLinkOpticalPower) super.set(fieldName, value); - } - - @Override - public InterconnectDiagnosticsLinkOpticalPower clone() { - return (InterconnectDiagnosticsLinkOpticalPower) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkStatus.java deleted file mode 100644 index 754d98abb0b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsLinkStatus.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectDiagnosticsLinkStatus. - * - *

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 InterconnectDiagnosticsLinkStatus extends com.google.api.client.json.GenericJson { - - /** - * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on - * this link. This will be empty if the link is bundled - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List arpCaches; - - static { - // hack to force ProGuard to consider InterconnectDiagnosticsARPEntry 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(InterconnectDiagnosticsARPEntry.class); - } - - /** - * The unique ID for this link assigned during turn up by Google. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String circuitId; - - /** - * The Demarc address assigned by Google and provided in the LoA. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String googleDemarc; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectDiagnosticsLinkLACPStatus lacpStatus; - - /** - * Describes the status of MACsec encryption on this link. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectDiagnosticsMacsecStatus macsec; - - /** - * The operational status of the link. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operationalStatus; - - /** - * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of - * the received light level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectDiagnosticsLinkOpticalPower receivingOpticalPower; - - /** - * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of - * the transmitted light level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectDiagnosticsLinkOpticalPower transmittingOpticalPower; - - /** - * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on - * this link. This will be empty if the link is bundled - * @return value or {@code null} for none - */ - public java.util.List getArpCaches() { - return arpCaches; - } - - /** - * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on - * this link. This will be empty if the link is bundled - * @param arpCaches arpCaches or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setArpCaches(java.util.List arpCaches) { - this.arpCaches = arpCaches; - return this; - } - - /** - * The unique ID for this link assigned during turn up by Google. - * @return value or {@code null} for none - */ - public java.lang.String getCircuitId() { - return circuitId; - } - - /** - * The unique ID for this link assigned during turn up by Google. - * @param circuitId circuitId or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setCircuitId(java.lang.String circuitId) { - this.circuitId = circuitId; - return this; - } - - /** - * The Demarc address assigned by Google and provided in the LoA. - * @return value or {@code null} for none - */ - public java.lang.String getGoogleDemarc() { - return googleDemarc; - } - - /** - * The Demarc address assigned by Google and provided in the LoA. - * @param googleDemarc googleDemarc or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setGoogleDemarc(java.lang.String googleDemarc) { - this.googleDemarc = googleDemarc; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectDiagnosticsLinkLACPStatus getLacpStatus() { - return lacpStatus; - } - - /** - * @param lacpStatus lacpStatus or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setLacpStatus(InterconnectDiagnosticsLinkLACPStatus lacpStatus) { - this.lacpStatus = lacpStatus; - return this; - } - - /** - * Describes the status of MACsec encryption on this link. - * @return value or {@code null} for none - */ - public InterconnectDiagnosticsMacsecStatus getMacsec() { - return macsec; - } - - /** - * Describes the status of MACsec encryption on this link. - * @param macsec macsec or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setMacsec(InterconnectDiagnosticsMacsecStatus macsec) { - this.macsec = macsec; - return this; - } - - /** - * The operational status of the link. - * @return value or {@code null} for none - */ - public java.lang.String getOperationalStatus() { - return operationalStatus; - } - - /** - * The operational status of the link. - * @param operationalStatus operationalStatus or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setOperationalStatus(java.lang.String operationalStatus) { - this.operationalStatus = operationalStatus; - return this; - } - - /** - * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of - * the received light level. - * @return value or {@code null} for none - */ - public InterconnectDiagnosticsLinkOpticalPower getReceivingOpticalPower() { - return receivingOpticalPower; - } - - /** - * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of - * the received light level. - * @param receivingOpticalPower receivingOpticalPower or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setReceivingOpticalPower(InterconnectDiagnosticsLinkOpticalPower receivingOpticalPower) { - this.receivingOpticalPower = receivingOpticalPower; - return this; - } - - /** - * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of - * the transmitted light level. - * @return value or {@code null} for none - */ - public InterconnectDiagnosticsLinkOpticalPower getTransmittingOpticalPower() { - return transmittingOpticalPower; - } - - /** - * An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of - * the transmitted light level. - * @param transmittingOpticalPower transmittingOpticalPower or {@code null} for none - */ - public InterconnectDiagnosticsLinkStatus setTransmittingOpticalPower(InterconnectDiagnosticsLinkOpticalPower transmittingOpticalPower) { - this.transmittingOpticalPower = transmittingOpticalPower; - return this; - } - - @Override - public InterconnectDiagnosticsLinkStatus set(String fieldName, Object value) { - return (InterconnectDiagnosticsLinkStatus) super.set(fieldName, value); - } - - @Override - public InterconnectDiagnosticsLinkStatus clone() { - return (InterconnectDiagnosticsLinkStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsMacsecStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsMacsecStatus.java deleted file mode 100644 index 32cf5d9438a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectDiagnosticsMacsecStatus.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes the status of MACsec encryption on the link. - * - *

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 InterconnectDiagnosticsMacsecStatus extends com.google.api.client.json.GenericJson { - - /** - * Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is - * operational. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ckn; - - /** - * Indicates whether or not MACsec is operational on this link. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean operational; - - /** - * Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is - * operational. - * @return value or {@code null} for none - */ - public java.lang.String getCkn() { - return ckn; - } - - /** - * Indicates the Connectivity Association Key Name (CKN) currently being used if MACsec is - * operational. - * @param ckn ckn or {@code null} for none - */ - public InterconnectDiagnosticsMacsecStatus setCkn(java.lang.String ckn) { - this.ckn = ckn; - return this; - } - - /** - * Indicates whether or not MACsec is operational on this link. - * @return value or {@code null} for none - */ - public java.lang.Boolean getOperational() { - return operational; - } - - /** - * Indicates whether or not MACsec is operational on this link. - * @param operational operational or {@code null} for none - */ - public InterconnectDiagnosticsMacsecStatus setOperational(java.lang.Boolean operational) { - this.operational = operational; - return this; - } - - @Override - public InterconnectDiagnosticsMacsecStatus set(String fieldName, Object value) { - return (InterconnectDiagnosticsMacsecStatus) super.set(fieldName, value); - } - - @Override - public InterconnectDiagnosticsMacsecStatus clone() { - return (InterconnectDiagnosticsMacsecStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroup.java deleted file mode 100644 index e7addbcd914..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroup.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * 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.preview.model; - -/** - * An interconnect group resource allows customers to create, analyze, and expand their redundant - * connections. - * - *

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 InterconnectGroup extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupConfigured configured; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Opaque system-generated token that uniquely identifies the configuration. If provided when - * patching a configuration in update mode, the provided token must match the current token or the - * update is rejected. This provides a reliable means of doing read-modify-write (optimistic - * locking) as described by AIP 154. - * 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 type. The server generates - * this identifier. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger id; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupIntent intent; - - /** - * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are - * encouraged, but not required, to use their preferred format for resource links as keys. Note - * that there are add-members and remove-members methods in gcloud. The size of this map is - * limited by an "Interconnects per group" quota. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map interconnects; - - /** - * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupPhysicalStructure physicalStructure; - - /** - * 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; - - /** - * @return value or {@code null} for none - */ - public InterconnectGroupConfigured getConfigured() { - return configured; - } - - /** - * @param configured configured or {@code null} for none - */ - public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { - this.configured = configured; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public InterconnectGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Opaque system-generated token that uniquely identifies the configuration. If provided when - * patching a configuration in update mode, the provided token must match the current token or the - * update is rejected. This provides a reliable means of doing read-modify-write (optimistic - * locking) as described by AIP 154. - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Opaque system-generated token that uniquely identifies the configuration. If provided when - * patching a configuration in update mode, the provided token must match the current token or the - * update is rejected. This provides a reliable means of doing read-modify-write (optimistic - * locking) as described by AIP 154. - * @param etag etag or {@code null} for none - */ - public InterconnectGroup setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public InterconnectGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectGroupIntent getIntent() { - return intent; - } - - /** - * @param intent intent or {@code null} for none - */ - public InterconnectGroup setIntent(InterconnectGroupIntent intent) { - this.intent = intent; - return this; - } - - /** - * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are - * encouraged, but not required, to use their preferred format for resource links as keys. Note - * that there are add-members and remove-members methods in gcloud. The size of this map is - * limited by an "Interconnects per group" quota. - * @return value or {@code null} for none - */ - public java.util.Map getInterconnects() { - return interconnects; - } - - /** - * Interconnects in the InterconnectGroup. Keys are arbitrary user-specified strings. Users are - * encouraged, but not required, to use their preferred format for resource links as keys. Note - * that there are add-members and remove-members methods in gcloud. The size of this map is - * limited by an "Interconnects per group" quota. - * @param interconnects interconnects or {@code null} for none - */ - public InterconnectGroup setInterconnects(java.util.Map interconnects) { - this.interconnects = interconnects; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup - * @param kind kind or {@code null} for none - */ - public InterconnectGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 InterconnectGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectGroupPhysicalStructure getPhysicalStructure() { - return physicalStructure; - } - - /** - * @param physicalStructure physicalStructure or {@code null} for none - */ - public InterconnectGroup setPhysicalStructure(InterconnectGroupPhysicalStructure physicalStructure) { - this.physicalStructure = physicalStructure; - 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 InterconnectGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public InterconnectGroup set(String fieldName, Object value) { - return (InterconnectGroup) super.set(fieldName, value); - } - - @Override - public InterconnectGroup clone() { - return (InterconnectGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfigured.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfigured.java deleted file mode 100644 index d93fa8dc507..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfigured.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The status of the group as configured. This has the same structure as the - * operational field reported by the OperationalStatus method, but does not take into account the - * operational status of each 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 InterconnectGroupConfigured extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupConfiguredTopologyCapability topologyCapability; - - /** - * @return value or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapability getTopologyCapability() { - return topologyCapability; - } - - /** - * @param topologyCapability topologyCapability or {@code null} for none - */ - public InterconnectGroupConfigured setTopologyCapability(InterconnectGroupConfiguredTopologyCapability topologyCapability) { - this.topologyCapability = topologyCapability; - return this; - } - - @Override - public InterconnectGroupConfigured set(String fieldName, Object value) { - return (InterconnectGroupConfigured) super.set(fieldName, value); - } - - @Override - public InterconnectGroupConfigured clone() { - return (InterconnectGroupConfigured) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapability.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapability.java deleted file mode 100644 index 3a074c0ce2d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapability.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] How reliable this topology is configured to be, and why this group does or does not - * meet the requirements for the intended capability. - * - *

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 InterconnectGroupConfiguredTopologyCapability extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List intendedCapabilityBlockers; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String supportedSla; - - /** - * @return value or {@code null} for none - */ - public java.util.List getIntendedCapabilityBlockers() { - return intendedCapabilityBlockers; - } - - /** - * @param intendedCapabilityBlockers intendedCapabilityBlockers or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapability setIntendedCapabilityBlockers(java.util.List intendedCapabilityBlockers) { - this.intendedCapabilityBlockers = intendedCapabilityBlockers; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getSupportedSla() { - return supportedSla; - } - - /** - * @param supportedSla supportedSla or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapability setSupportedSla(java.lang.String supportedSla) { - this.supportedSla = supportedSla; - return this; - } - - @Override - public InterconnectGroupConfiguredTopologyCapability set(String fieldName, Object value) { - return (InterconnectGroupConfiguredTopologyCapability) super.set(fieldName, value); - } - - @Override - public InterconnectGroupConfiguredTopologyCapability clone() { - return (InterconnectGroupConfiguredTopologyCapability) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java deleted file mode 100644 index 1ef90fd52f9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Reasons why configuration.topologyCapability.sla differs from - * intent.topologyCapability. This list is empty if and only if those are the same. - * - *

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 InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String blockerType; - - /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String documentationLink; - - /** - * Output only. [Output Only] A human-readable explanation of this requirement and why it's not - * met. This is set for every type of requirement. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String explanation; - - /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like - * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List facilities; - - /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnects; - - /** - * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- - * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the - * problematic metros in this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metros; - - /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getBlockerType() { - return blockerType; - } - - /** - * @param blockerType blockerType or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setBlockerType(java.lang.String blockerType) { - this.blockerType = blockerType; - return this; - } - - /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. - * @return value or {@code null} for none - */ - public java.lang.String getDocumentationLink() { - return documentationLink; - } - - /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. - * @param documentationLink documentationLink or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setDocumentationLink(java.lang.String documentationLink) { - this.documentationLink = documentationLink; - return this; - } - - /** - * Output only. [Output Only] A human-readable explanation of this requirement and why it's not - * met. This is set for every type of requirement. - * @return value or {@code null} for none - */ - public java.lang.String getExplanation() { - return explanation; - } - - /** - * Output only. [Output Only] A human-readable explanation of this requirement and why it's not - * met. This is set for every type of requirement. - * @param explanation explanation or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setExplanation(java.lang.String explanation) { - this.explanation = explanation; - return this; - } - - /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like - * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". - * @return value or {@code null} for none - */ - public java.util.List getFacilities() { - return facilities; - } - - /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like - * physicalStructure.metros.facilities.facility, this is a numeric string like "5467". - * @param facilities facilities or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setFacilities(java.util.List facilities) { - this.facilities = facilities; - return this; - } - - /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. - * @return value or {@code null} for none - */ - public java.util.List getInterconnects() { - return interconnects; - } - - /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. - * @param interconnects interconnects or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setInterconnects(java.util.List interconnects) { - this.interconnects = interconnects; - return this; - } - - /** - * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- - * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the - * problematic metros in this field. - * @return value or {@code null} for none - */ - public java.util.List getMetros() { - return metros; - } - - /** - * Output only. [Output Only] Metros used to explain this blocker in more detail. These are three- - * letter lowercase strings like "iad". A blocker like INCOMPATIBLE_METROS will specify the - * problematic metros in this field. - * @param metros metros or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setMetros(java.util.List metros) { - this.metros = metros; - return this; - } - - /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". - * @param zones zones or {@code null} for none - */ - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers set(String fieldName, Object value) { - return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.set(fieldName, value); - } - - @Override - public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers clone() { - return (InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupIntent.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupIntent.java deleted file mode 100644 index 4178231ed32..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupIntent.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.preview.model; - -/** - * The user's intent for this group. This is the only required field besides the name that must be - * specified on group creation. - * - *

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 InterconnectGroupIntent extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String topologyCapability; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getTopologyCapability() { - return topologyCapability; - } - - /** - * @param topologyCapability topologyCapability or {@code null} for none - */ - public InterconnectGroupIntent setTopologyCapability(java.lang.String topologyCapability) { - this.topologyCapability = topologyCapability; - return this; - } - - @Override - public InterconnectGroupIntent set(String fieldName, Object value) { - return (InterconnectGroupIntent) super.set(fieldName, value); - } - - @Override - public InterconnectGroupIntent clone() { - return (InterconnectGroupIntent) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupInterconnect.java deleted file mode 100644 index 6593b521735..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupInterconnect.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * An Interconnect in this InterconnectGroup. - * - *

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 InterconnectGroupInterconnect extends com.google.api.client.json.GenericJson { - - /** - * The URL of an Interconnect in this group. All Interconnects in the group are unique. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** - * The URL of an Interconnect in this group. All Interconnects in the group are unique. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** - * The URL of an Interconnect in this group. All Interconnects in the group are unique. - * @param interconnect interconnect or {@code null} for none - */ - public InterconnectGroupInterconnect setInterconnect(java.lang.String interconnect) { - this.interconnect = interconnect; - return this; - } - - @Override - public InterconnectGroupInterconnect set(String fieldName, Object value) { - return (InterconnectGroupInterconnect) super.set(fieldName, value); - } - - @Override - public InterconnectGroupInterconnect clone() { - return (InterconnectGroupInterconnect) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructure.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructure.java deleted file mode 100644 index ef5d5218cfc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructure.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] An analysis of the physical layout of Interconnects in this group. Every - * Interconnect in the group is shown once in this structure. - * - *

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 InterconnectGroupPhysicalStructure extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metros; - - /** - * @return value or {@code null} for none - */ - public java.util.List getMetros() { - return metros; - } - - /** - * @param metros metros or {@code null} for none - */ - public InterconnectGroupPhysicalStructure setMetros(java.util.List metros) { - this.metros = metros; - return this; - } - - @Override - public InterconnectGroupPhysicalStructure set(String fieldName, Object value) { - return (InterconnectGroupPhysicalStructure) super.set(fieldName, value); - } - - @Override - public InterconnectGroupPhysicalStructure clone() { - return (InterconnectGroupPhysicalStructure) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetros.java deleted file mode 100644 index 3f22db56ed2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetros.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The metros Interconnects in this group are in. - * - *

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 InterconnectGroupPhysicalStructureMetros extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List facilities; - - /** - * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like - * "iad". This is the first component of the location of Interconnects underneath this. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metro; - - /** - * @return value or {@code null} for none - */ - public java.util.List getFacilities() { - return facilities; - } - - /** - * @param facilities facilities or {@code null} for none - */ - public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List facilities) { - this.facilities = facilities; - return this; - } - - /** - * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like - * "iad". This is the first component of the location of Interconnects underneath this. - * @return value or {@code null} for none - */ - public java.lang.String getMetro() { - return metro; - } - - /** - * Output only. [Output Only] The name of the metro, as a three-letter lowercase string like - * "iad". This is the first component of the location of Interconnects underneath this. - * @param metro metro or {@code null} for none - */ - public InterconnectGroupPhysicalStructureMetros setMetro(java.lang.String metro) { - this.metro = metro; - return this; - } - - @Override - public InterconnectGroupPhysicalStructureMetros set(String fieldName, Object value) { - return (InterconnectGroupPhysicalStructureMetros) super.set(fieldName, value); - } - - @Override - public InterconnectGroupPhysicalStructureMetros clone() { - return (InterconnectGroupPhysicalStructureMetros) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilities.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilities.java deleted file mode 100644 index 372f2596a45..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilities.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The facilities Interconnects in this metro are present in. - * - *

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 InterconnectGroupPhysicalStructureMetrosFacilities extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is - * the third component of the location of Interconnects in this facility. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facility; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is - * the third component of the location of Interconnects in this facility. - * @return value or {@code null} for none - */ - public java.lang.String getFacility() { - return facility; - } - - /** - * Output only. [Output Only] The ID of this facility, as a numeric string like "5467". This is - * the third component of the location of Interconnects in this facility. - * @param facility facility or {@code null} for none - */ - public InterconnectGroupPhysicalStructureMetrosFacilities setFacility(java.lang.String facility) { - this.facility = facility; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * @param zones zones or {@code null} for none - */ - public InterconnectGroupPhysicalStructureMetrosFacilities setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public InterconnectGroupPhysicalStructureMetrosFacilities set(String fieldName, Object value) { - return (InterconnectGroupPhysicalStructureMetrosFacilities) super.set(fieldName, value); - } - - @Override - public InterconnectGroupPhysicalStructureMetrosFacilities clone() { - return (InterconnectGroupPhysicalStructureMetrosFacilities) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java deleted file mode 100644 index e9ae32a778a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The zones that Interconnects in this facility are present in. - * - *

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 InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, - * facility, and zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnects; - - /** - * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second - * component of the location of Interconnects in this facility. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, - * facility, and zone. - * @return value or {@code null} for none - */ - public java.util.List getInterconnects() { - return interconnects; - } - - /** - * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, - * facility, and zone. - * @param interconnects interconnects or {@code null} for none - */ - public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects(java.util.List interconnects) { - this.interconnects = interconnects; - return this; - } - - /** - * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second - * component of the location of Interconnects in this facility. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The name of the zone, either "zone1" or "zone2". This is the second - * component of the location of Interconnects in this facility. - * @param zone zone or {@code null} for none - */ - public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public InterconnectGroupPhysicalStructureMetrosFacilitiesZones set(String fieldName, Object value) { - return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.set(fieldName, value); - } - - @Override - public InterconnectGroupPhysicalStructureMetrosFacilitiesZones clone() { - return (InterconnectGroupPhysicalStructureMetrosFacilitiesZones) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembers.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembers.java deleted file mode 100644 index 5a79f62ef26..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembers.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectGroupsCreateMembers. - * - *

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 InterconnectGroupsCreateMembers extends com.google.api.client.json.GenericJson { - - /** - * How to behave when configured.topologyCapability.supportedSLA would not equal - * intent.topologyCapability after this call. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String intentMismatchBehavior; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnects; - - /** - * Parameters for the Interconnects to create. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupsCreateMembersInterconnectInput templateInterconnect; - - /** - * How to behave when configured.topologyCapability.supportedSLA would not equal - * intent.topologyCapability after this call. - * @return value or {@code null} for none - */ - public java.lang.String getIntentMismatchBehavior() { - return intentMismatchBehavior; - } - - /** - * How to behave when configured.topologyCapability.supportedSLA would not equal - * intent.topologyCapability after this call. - * @param intentMismatchBehavior intentMismatchBehavior or {@code null} for none - */ - public InterconnectGroupsCreateMembers setIntentMismatchBehavior(java.lang.String intentMismatchBehavior) { - this.intentMismatchBehavior = intentMismatchBehavior; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getInterconnects() { - return interconnects; - } - - /** - * @param interconnects interconnects or {@code null} for none - */ - public InterconnectGroupsCreateMembers setInterconnects(java.util.List interconnects) { - this.interconnects = interconnects; - return this; - } - - /** - * Parameters for the Interconnects to create. - * @return value or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput getTemplateInterconnect() { - return templateInterconnect; - } - - /** - * Parameters for the Interconnects to create. - * @param templateInterconnect templateInterconnect or {@code null} for none - */ - public InterconnectGroupsCreateMembers setTemplateInterconnect(InterconnectGroupsCreateMembersInterconnectInput templateInterconnect) { - this.templateInterconnect = templateInterconnect; - return this; - } - - @Override - public InterconnectGroupsCreateMembers set(String fieldName, Object value) { - return (InterconnectGroupsCreateMembers) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsCreateMembers clone() { - return (InterconnectGroupsCreateMembers) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersInterconnectInput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersInterconnectInput.java deleted file mode 100644 index 07aede9ce6a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersInterconnectInput.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectGroupsCreateMembersInterconnectInput. - * - *

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 InterconnectGroupsCreateMembersInterconnectInput extends com.google.api.client.json.GenericJson { - - /** - * Administrative status of the interconnect. When this is set to true, the Interconnect is - * functional and can carry traffic. When set to false, no packets can be carried over the - * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Customer name, to put in the Letter of Authorization as the party authorized to request a - * crossconnect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String customerName; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A zone-free location to use for all Interconnects created in this call, like "iad-1234". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facility; - - /** - * Type of interconnect, which can take one of the following values: - PARTNER: A partner- - * managed interconnection shared between customers though a partner. - DEDICATED: A - * dedicated physical interconnection with the customer. - * - * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnectType; - - /** - * Type of link requested, which can take one of the following values: - - * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A - * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 - * optics. - * - * Note that this field indicates the speed of each of the links in the bundle, not the speed of - * the entire bundle. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkType; - - /** - * Name of the Interconnects to be created. This must be specified on the template and/or on each - * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with - * RFC1035. Specifically, any nonempty 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; - - /** - * Email address to contact the customer NOC for operations and maintenance notifications - * regarding this Interconnect. If specified, this will be used for notifications in addition to - * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This - * field is required for users who sign up for Cloud Interconnect using workforce identity - * federation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nocContactEmail; - - /** - * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of - * Google's network that the interconnect is connected to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String remoteLocation; - - /** - * Optional. List of features requested for this Interconnect connection, which can take one of - * the following values: - IF_MACSEC: If specified, then the connection is created on - * MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be - * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created - * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site - * Networking unless this feature is specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestedFeatures; - - /** - * Target number of physical links in the link bundle, as requested by the customer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer requestedLinkCount; - - /** - * Administrative status of the interconnect. When this is set to true, the Interconnect is - * functional and can carry traffic. When set to false, no packets can be carried over the - * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Administrative status of the interconnect. When this is set to true, the Interconnect is - * functional and can carry traffic. When set to false, no packets can be carried over the - * interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Customer name, to put in the Letter of Authorization as the party authorized to request a - * crossconnect. - * @return value or {@code null} for none - */ - public java.lang.String getCustomerName() { - return customerName; - } - - /** - * Customer name, to put in the Letter of Authorization as the party authorized to request a - * crossconnect. - * @param customerName customerName or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setCustomerName(java.lang.String customerName) { - this.customerName = customerName; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A zone-free location to use for all Interconnects created in this call, like "iad-1234". - * @return value or {@code null} for none - */ - public java.lang.String getFacility() { - return facility; - } - - /** - * A zone-free location to use for all Interconnects created in this call, like "iad-1234". - * @param facility facility or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setFacility(java.lang.String facility) { - this.facility = facility; - return this; - } - - /** - * Type of interconnect, which can take one of the following values: - PARTNER: A partner- - * managed interconnection shared between customers though a partner. - DEDICATED: A - * dedicated physical interconnection with the customer. - * - * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnectType() { - return interconnectType; - } - - /** - * Type of interconnect, which can take one of the following values: - PARTNER: A partner- - * managed interconnection shared between customers though a partner. - DEDICATED: A - * dedicated physical interconnection with the customer. - * - * Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. - * @param interconnectType interconnectType or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setInterconnectType(java.lang.String interconnectType) { - this.interconnectType = interconnectType; - return this; - } - - /** - * Type of link requested, which can take one of the following values: - - * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A - * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 - * optics. - * - * Note that this field indicates the speed of each of the links in the bundle, not the speed of - * the entire bundle. - * @return value or {@code null} for none - */ - public java.lang.String getLinkType() { - return linkType; - } - - /** - * Type of link requested, which can take one of the following values: - - * LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A - * 100G Ethernet with LR optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 - * optics. - * - * Note that this field indicates the speed of each of the links in the bundle, not the speed of - * the entire bundle. - * @param linkType linkType or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setLinkType(java.lang.String linkType) { - this.linkType = linkType; - return this; - } - - /** - * Name of the Interconnects to be created. This must be specified on the template and/or on each - * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with - * RFC1035. Specifically, any nonempty 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 Interconnects to be created. This must be specified on the template and/or on each - * individual interconnect. The name, if not empty, must be 1-63 characters long, and comply with - * RFC1035. Specifically, any nonempty 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 InterconnectGroupsCreateMembersInterconnectInput setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Email address to contact the customer NOC for operations and maintenance notifications - * regarding this Interconnect. If specified, this will be used for notifications in addition to - * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This - * field is required for users who sign up for Cloud Interconnect using workforce identity - * federation. - * @return value or {@code null} for none - */ - public java.lang.String getNocContactEmail() { - return nocContactEmail; - } - - /** - * Email address to contact the customer NOC for operations and maintenance notifications - * regarding this Interconnect. If specified, this will be used for notifications in addition to - * all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This - * field is required for users who sign up for Cloud Interconnect using workforce identity - * federation. - * @param nocContactEmail nocContactEmail or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setNocContactEmail(java.lang.String nocContactEmail) { - this.nocContactEmail = nocContactEmail; - return this; - } - - /** - * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of - * Google's network that the interconnect is connected to. - * @return value or {@code null} for none - */ - public java.lang.String getRemoteLocation() { - return remoteLocation; - } - - /** - * Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of - * Google's network that the interconnect is connected to. - * @param remoteLocation remoteLocation or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setRemoteLocation(java.lang.String remoteLocation) { - this.remoteLocation = remoteLocation; - return this; - } - - /** - * Optional. List of features requested for this Interconnect connection, which can take one of - * the following values: - IF_MACSEC: If specified, then the connection is created on - * MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be - * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created - * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site - * Networking unless this feature is specified. - * @return value or {@code null} for none - */ - public java.util.List getRequestedFeatures() { - return requestedFeatures; - } - - /** - * Optional. List of features requested for this Interconnect connection, which can take one of - * the following values: - IF_MACSEC: If specified, then the connection is created on - * MACsec capable hardware ports. If not specified, non-MACsec capable ports will also be - * considered. - IF_CROSS_SITE_NETWORK: If specified, then the connection is created - * exclusively for Cross-Site Networking. The connection can not be used for Cross-Site - * Networking unless this feature is specified. - * @param requestedFeatures requestedFeatures or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setRequestedFeatures(java.util.List requestedFeatures) { - this.requestedFeatures = requestedFeatures; - return this; - } - - /** - * Target number of physical links in the link bundle, as requested by the customer. - * @return value or {@code null} for none - */ - public java.lang.Integer getRequestedLinkCount() { - return requestedLinkCount; - } - - /** - * Target number of physical links in the link bundle, as requested by the customer. - * @param requestedLinkCount requestedLinkCount or {@code null} for none - */ - public InterconnectGroupsCreateMembersInterconnectInput setRequestedLinkCount(java.lang.Integer requestedLinkCount) { - this.requestedLinkCount = requestedLinkCount; - return this; - } - - @Override - public InterconnectGroupsCreateMembersInterconnectInput set(String fieldName, Object value) { - return (InterconnectGroupsCreateMembersInterconnectInput) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsCreateMembersInterconnectInput clone() { - return (InterconnectGroupsCreateMembersInterconnectInput) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersRequest.java deleted file mode 100644 index a8dce069a43..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsCreateMembersRequest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectGroupsCreateMembersRequest. - * - *

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 InterconnectGroupsCreateMembersRequest extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupsCreateMembers request; - - /** - * @return value or {@code null} for none - */ - public InterconnectGroupsCreateMembers getRequest() { - return request; - } - - /** - * @param request request or {@code null} for none - */ - public InterconnectGroupsCreateMembersRequest setRequest(InterconnectGroupsCreateMembers request) { - this.request = request; - return this; - } - - @Override - public InterconnectGroupsCreateMembersRequest set(String fieldName, Object value) { - return (InterconnectGroupsCreateMembersRequest) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsCreateMembersRequest clone() { - return (InterconnectGroupsCreateMembersRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsGetOperationalStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsGetOperationalStatusResponse.java deleted file mode 100644 index 478499db7b3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsGetOperationalStatusResponse.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response for the InterconnectGroupsGetOperationalStatusResponse. - * - *

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 InterconnectGroupsGetOperationalStatusResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupsOperationalStatus result; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public InterconnectGroupsGetOperationalStatusResponse setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectGroupsOperationalStatus getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public InterconnectGroupsGetOperationalStatusResponse setResult(InterconnectGroupsOperationalStatus result) { - this.result = result; - return this; - } - - @Override - public InterconnectGroupsGetOperationalStatusResponse set(String fieldName, Object value) { - return (InterconnectGroupsGetOperationalStatusResponse) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsGetOperationalStatusResponse clone() { - return (InterconnectGroupsGetOperationalStatusResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsListResponse.java deleted file mode 100644 index 0f835bf842b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsListResponse.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectGroupsListResponse. - * - *

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 InterconnectGroupsListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 InterconnectGroup 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 InterconnectGroup 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(InterconnectGroup.class); - } - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public InterconnectGroupsListResponse 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 InterconnectGroupsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InterconnectGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InterconnectGroup resources. - * @param items items or {@code null} for none - */ - public InterconnectGroupsListResponse 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 InterconnectGroupsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectGroupsListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public InterconnectGroupsListResponse 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 InterconnectGroupsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectGroupsListResponse set(String fieldName, Object value) { - return (InterconnectGroupsListResponse) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsListResponse clone() { - return (InterconnectGroupsListResponse) 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 InterconnectGroupsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatus.java deleted file mode 100644 index 2b2e76abdaa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatus.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * 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.preview.model; - -/** - * Request to get the status of the interconnect group with extra detail. - * - *

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 InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. The configuration analysis, as returned by Get. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupConfigured configured; - - /** - * Output only. Summarizes the status of the group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String groupStatus; - - /** - * Output only. The intent of the resource, as returned by Get. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupIntent intent; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interconnectStatuses; - - /** - * Output only. The operational state of the group, including only active Interconnects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectGroupConfigured operational; - - /** - * Output only. The configuration analysis, as returned by Get. - * @return value or {@code null} for none - */ - public InterconnectGroupConfigured getConfigured() { - return configured; - } - - /** - * Output only. The configuration analysis, as returned by Get. - * @param configured configured or {@code null} for none - */ - public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { - this.configured = configured; - return this; - } - - /** - * Output only. Summarizes the status of the group. - * @return value or {@code null} for none - */ - public java.lang.String getGroupStatus() { - return groupStatus; - } - - /** - * Output only. Summarizes the status of the group. - * @param groupStatus groupStatus or {@code null} for none - */ - public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { - this.groupStatus = groupStatus; - return this; - } - - /** - * Output only. The intent of the resource, as returned by Get. - * @return value or {@code null} for none - */ - public InterconnectGroupIntent getIntent() { - return intent; - } - - /** - * Output only. The intent of the resource, as returned by Get. - * @param intent intent or {@code null} for none - */ - public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { - this.intent = intent; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getInterconnectStatuses() { - return interconnectStatuses; - } - - /** - * @param interconnectStatuses interconnectStatuses or {@code null} for none - */ - public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.List interconnectStatuses) { - this.interconnectStatuses = interconnectStatuses; - return this; - } - - /** - * Output only. The operational state of the group, including only active Interconnects. - * @return value or {@code null} for none - */ - public InterconnectGroupConfigured getOperational() { - return operational; - } - - /** - * Output only. The operational state of the group, including only active Interconnects. - * @param operational operational or {@code null} for none - */ - public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { - this.operational = operational; - return this; - } - - @Override - public InterconnectGroupsOperationalStatus set(String fieldName, Object value) { - return (InterconnectGroupsOperationalStatus) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsOperationalStatus clone() { - return (InterconnectGroupsOperationalStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatusInterconnectStatus.java deleted file mode 100644 index b4dbb7bab5b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * The status of one Interconnect in the group. The order is arbitrary. - * - *

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 InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. Whether the Interconnect is enabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectDiagnostics diagnostics; - - /** - * Output only. The URL of the Interconnect being described. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** - * Output only. Whether this interconnect is participating in the redundant configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String isActive; - - /** - * Output only. Whether the Interconnect is enabled. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Output only. Whether the Interconnect is enabled. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. - * @return value or {@code null} for none - */ - public InterconnectDiagnostics getDiagnostics() { - return diagnostics; - } - - /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. - * @param diagnostics diagnostics or {@code null} for none - */ - public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(InterconnectDiagnostics diagnostics) { - this.diagnostics = diagnostics; - return this; - } - - /** - * Output only. The URL of the Interconnect being described. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** - * Output only. The URL of the Interconnect being described. - * @param interconnect interconnect or {@code null} for none - */ - public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { - this.interconnect = interconnect; - return this; - } - - /** - * Output only. Whether this interconnect is participating in the redundant configuration. - * @return value or {@code null} for none - */ - public java.lang.String getIsActive() { - return isActive; - } - - /** - * Output only. Whether this interconnect is participating in the redundant configuration. - * @param isActive isActive or {@code null} for none - */ - public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { - this.isActive = isActive; - return this; - } - - @Override - public InterconnectGroupsOperationalStatusInterconnectStatus set(String fieldName, Object value) { - return (InterconnectGroupsOperationalStatusInterconnectStatus) super.set(fieldName, value); - } - - @Override - public InterconnectGroupsOperationalStatusInterconnectStatus clone() { - return (InterconnectGroupsOperationalStatusInterconnectStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectList.java deleted file mode 100644 index c111cdca541..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to the list request, and contains a list of interconnects. - * - *

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 InterconnectList extends com.google.api.client.json.GenericJson { - - /** - * [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 Interconnect 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 Interconnect 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(Interconnect.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InterconnectList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Interconnect resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Interconnect resources. - * @param items items or {@code null} for none - */ - public InterconnectList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. - * @param kind kind or {@code null} for none - */ - public InterconnectList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectList 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 InterconnectList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InterconnectList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectList set(String fieldName, Object value) { - return (InterconnectList) super.set(fieldName, value); - } - - @Override - public InterconnectList clone() { - return (InterconnectList) 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 InterconnectListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocation.java deleted file mode 100644 index a9fc2998eb4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocation.java +++ /dev/null @@ -1,588 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Interconnect Attachment (VLAN) Location resource. - * - * You can use this resource to find location details about an Interconnect attachment (VLAN). For - * more information about interconnect attachments, read Creating VLAN Attachments. - * - *

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 InterconnectLocation extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** - * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area - * (metro), maintenance will not be simultaneously scheduled in more than one availability zone. - * Example: "zone1" or "zone2". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String availabilityZone; - - /** - * [Output only] List of features available at this InterconnectLocation, which can take one of - * the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List availableFeatures; - - /** - * [Output only] List of link types available at this InterconnectLocation, which can take one of - * the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - - * LINK_TYPE_ETHERNET_400G_LR4 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List availableLinkTypes; - - /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String city; - - /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String continent; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe - * where Cross-Site Interconnect wires may connect to from this location and associated connection - * parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List crossSiteInterconnectInfos; - - /** - * Output only. [Output Only] An optional description of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facilityProvider; - - /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facilityProviderFacilityId; - - /** - * 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] Type of the resource. Alwayscompute#interconnectLocation for - * interconnect locations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peeringdbFacilityId; - - /** - * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe - * parameters pertaining to the relation between this InterconnectLocation and various Google - * Cloud regions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List regionInfos; - - /** - * 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] URLs of the other locations that can pair up with this location to - * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% - * peer locations of each other. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List singleRegionProductionCriticalPeerLocations; - - /** - * [Output Only] The status of this InterconnectLocation, which can take one of the following - * values: - CLOSED: The InterconnectLocation is closed and is unavailable for - * provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for - * provisioning new Interconnects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean supportsPzs; - - /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. - * @return value or {@code null} for none - */ - public java.lang.String getAddress() { - return address; - } - - /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. - * @param address address or {@code null} for none - */ - public InterconnectLocation setAddress(java.lang.String address) { - this.address = address; - return this; - } - - /** - * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area - * (metro), maintenance will not be simultaneously scheduled in more than one availability zone. - * Example: "zone1" or "zone2". - * @return value or {@code null} for none - */ - public java.lang.String getAvailabilityZone() { - return availabilityZone; - } - - /** - * [Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area - * (metro), maintenance will not be simultaneously scheduled in more than one availability zone. - * Example: "zone1" or "zone2". - * @param availabilityZone availabilityZone or {@code null} for none - */ - public InterconnectLocation setAvailabilityZone(java.lang.String availabilityZone) { - this.availabilityZone = availabilityZone; - return this; - } - - /** - * [Output only] List of features available at this InterconnectLocation, which can take one of - * the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK - * @return value or {@code null} for none - */ - public java.util.List getAvailableFeatures() { - return availableFeatures; - } - - /** - * [Output only] List of features available at this InterconnectLocation, which can take one of - * the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK - * @param availableFeatures availableFeatures or {@code null} for none - */ - public InterconnectLocation setAvailableFeatures(java.util.List availableFeatures) { - this.availableFeatures = availableFeatures; - return this; - } - - /** - * [Output only] List of link types available at this InterconnectLocation, which can take one of - * the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - - * LINK_TYPE_ETHERNET_400G_LR4 - * @return value or {@code null} for none - */ - public java.util.List getAvailableLinkTypes() { - return availableLinkTypes; - } - - /** - * [Output only] List of link types available at this InterconnectLocation, which can take one of - * the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - - * LINK_TYPE_ETHERNET_400G_LR4 - * @param availableLinkTypes availableLinkTypes or {@code null} for none - */ - public InterconnectLocation setAvailableLinkTypes(java.util.List availableLinkTypes) { - this.availableLinkTypes = availableLinkTypes; - return this; - } - - /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". - * @return value or {@code null} for none - */ - public java.lang.String getCity() { - return city; - } - - /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". - * @param city city or {@code null} for none - */ - public InterconnectLocation setCity(java.lang.String city) { - this.city = city; - return this; - } - - /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - * @return value or {@code null} for none - */ - public java.lang.String getContinent() { - return continent; - } - - /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - * @param continent continent or {@code null} for none - */ - public InterconnectLocation setContinent(java.lang.String continent) { - this.continent = continent; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe - * where Cross-Site Interconnect wires may connect to from this location and associated connection - * parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. - * @return value or {@code null} for none - */ - public java.util.List getCrossSiteInterconnectInfos() { - return crossSiteInterconnectInfos; - } - - /** - * [Output Only] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe - * where Cross-Site Interconnect wires may connect to from this location and associated connection - * parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. - * @param crossSiteInterconnectInfos crossSiteInterconnectInfos or {@code null} for none - */ - public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List crossSiteInterconnectInfos) { - this.crossSiteInterconnectInfos = crossSiteInterconnectInfos; - return this; - } - - /** - * Output only. [Output Only] An optional description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] An optional description of the resource. - * @param description description or {@code null} for none - */ - public InterconnectLocation setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). - * @return value or {@code null} for none - */ - public java.lang.String getFacilityProvider() { - return facilityProvider; - } - - /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). - * @param facilityProvider facilityProvider or {@code null} for none - */ - public InterconnectLocation setFacilityProvider(java.lang.String facilityProvider) { - this.facilityProvider = facilityProvider; - return this; - } - - /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). - * @return value or {@code null} for none - */ - public java.lang.String getFacilityProviderFacilityId() { - return facilityProviderFacilityId; - } - - /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). - * @param facilityProviderFacilityId facilityProviderFacilityId or {@code null} for none - */ - public InterconnectLocation setFacilityProviderFacilityId(java.lang.String facilityProviderFacilityId) { - this.facilityProviderFacilityId = facilityProviderFacilityId; - 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 InterconnectLocation setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectLocation for - * interconnect locations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectLocation for - * interconnect locations. - * @param kind kind or {@code null} for none - */ - public InterconnectLocation setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public InterconnectLocation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). - * @return value or {@code null} for none - */ - public java.lang.String getPeeringdbFacilityId() { - return peeringdbFacilityId; - } - - /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). - * @param peeringdbFacilityId peeringdbFacilityId or {@code null} for none - */ - public InterconnectLocation setPeeringdbFacilityId(java.lang.String peeringdbFacilityId) { - this.peeringdbFacilityId = peeringdbFacilityId; - return this; - } - - /** - * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe - * parameters pertaining to the relation between this InterconnectLocation and various Google - * Cloud regions. - * @return value or {@code null} for none - */ - public java.util.List getRegionInfos() { - return regionInfos; - } - - /** - * Output only. [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe - * parameters pertaining to the relation between this InterconnectLocation and various Google - * Cloud regions. - * @param regionInfos regionInfos or {@code null} for none - */ - public InterconnectLocation setRegionInfos(java.util.List regionInfos) { - this.regionInfos = regionInfos; - 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 InterconnectLocation setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] URLs of the other locations that can pair up with this location to - * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% - * peer locations of each other. - * @return value or {@code null} for none - */ - public java.util.List getSingleRegionProductionCriticalPeerLocations() { - return singleRegionProductionCriticalPeerLocations; - } - - /** - * Output only. [Output Only] URLs of the other locations that can pair up with this location to - * support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% - * peer locations of each other. - * @param singleRegionProductionCriticalPeerLocations singleRegionProductionCriticalPeerLocations or {@code null} for none - */ - public InterconnectLocation setSingleRegionProductionCriticalPeerLocations(java.util.List singleRegionProductionCriticalPeerLocations) { - this.singleRegionProductionCriticalPeerLocations = singleRegionProductionCriticalPeerLocations; - return this; - } - - /** - * [Output Only] The status of this InterconnectLocation, which can take one of the following - * values: - CLOSED: The InterconnectLocation is closed and is unavailable for - * provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for - * provisioning new Interconnects. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] The status of this InterconnectLocation, which can take one of the following - * values: - CLOSED: The InterconnectLocation is closed and is unavailable for - * provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for - * provisioning new Interconnects. - * @param status status or {@code null} for none - */ - public InterconnectLocation setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSupportsPzs() { - return supportsPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param supportsPzs supportsPzs or {@code null} for none - */ - public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { - this.supportsPzs = supportsPzs; - return this; - } - - @Override - public InterconnectLocation set(String fieldName, Object value) { - return (InterconnectLocation) super.set(fieldName, value); - } - - @Override - public InterconnectLocation clone() { - return (InterconnectLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationCrossSiteInterconnectInfo.java deleted file mode 100644 index 401fb31f119..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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.preview.model; - -/** - * Information about Cross-Site Interconnect wires which may be created between the containing - * location and another remote location. - * - *

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 InterconnectLocationCrossSiteInterconnectInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. The remote location for Cross-Site Interconnect wires. This specifies an - * InterconnectLocation city (metropolitan area designator), which itself may match multiple - * InterconnectLocations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String city; - - /** - * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this - * metro. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxDynamicPathBandwidthGbps; - - /** - * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this - * metro. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxFixedPathBandwidthGbps; - - /** - * Output only. The remote location for Cross-Site Interconnect wires. This specifies an - * InterconnectLocation city (metropolitan area designator), which itself may match multiple - * InterconnectLocations. - * @return value or {@code null} for none - */ - public java.lang.String getCity() { - return city; - } - - /** - * Output only. The remote location for Cross-Site Interconnect wires. This specifies an - * InterconnectLocation city (metropolitan area designator), which itself may match multiple - * InterconnectLocations. - * @param city city or {@code null} for none - */ - public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String city) { - this.city = city; - return this; - } - - /** - * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this - * metro. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxDynamicPathBandwidthGbps() { - return maxDynamicPathBandwidthGbps; - } - - /** - * Output only. The maximum unmetered bandwidth for dynamic paths allowable per WireGroup for this - * metro. - * @param maxDynamicPathBandwidthGbps maxDynamicPathBandwidthGbps or {@code null} for none - */ - public InterconnectLocationCrossSiteInterconnectInfo setMaxDynamicPathBandwidthGbps(java.lang.Long maxDynamicPathBandwidthGbps) { - this.maxDynamicPathBandwidthGbps = maxDynamicPathBandwidthGbps; - return this; - } - - /** - * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this - * metro. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxFixedPathBandwidthGbps() { - return maxFixedPathBandwidthGbps; - } - - /** - * Output only. The maximum unmetered bandwidth for fixed paths allowable per WireGroup for this - * metro. - * @param maxFixedPathBandwidthGbps maxFixedPathBandwidthGbps or {@code null} for none - */ - public InterconnectLocationCrossSiteInterconnectInfo setMaxFixedPathBandwidthGbps(java.lang.Long maxFixedPathBandwidthGbps) { - this.maxFixedPathBandwidthGbps = maxFixedPathBandwidthGbps; - return this; - } - - @Override - public InterconnectLocationCrossSiteInterconnectInfo set(String fieldName, Object value) { - return (InterconnectLocationCrossSiteInterconnectInfo) super.set(fieldName, value); - } - - @Override - public InterconnectLocationCrossSiteInterconnectInfo clone() { - return (InterconnectLocationCrossSiteInterconnectInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationList.java deleted file mode 100644 index 78816d49b2d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to the list request, and contains a list of interconnect locations. - * - *

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 InterconnectLocationList extends com.google.api.client.json.GenericJson { - - /** - * [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 InterconnectLocation 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 InterconnectLocation 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(InterconnectLocation.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InterconnectLocationList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InterconnectLocation resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InterconnectLocation resources. - * @param items items or {@code null} for none - */ - public InterconnectLocationList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. - * @param kind kind or {@code null} for none - */ - public InterconnectLocationList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectLocationList 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 InterconnectLocationList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InterconnectLocationList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectLocationList set(String fieldName, Object value) { - return (InterconnectLocationList) super.set(fieldName, value); - } - - @Override - public InterconnectLocationList clone() { - return (InterconnectLocationList) 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 InterconnectLocationListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationRegionInfo.java deleted file mode 100644 index 4c680ec154f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectLocationRegionInfo.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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.preview.model; - -/** - * Information about any potential InterconnectAttachments between an Interconnect at a specific - * InterconnectLocation, and a specific Cloud Region. - * - *

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 InterconnectLocationRegionInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM - * in this region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long expectedRttMs; - - /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean l2ForwardingEnabled; - - /** - * Output only. Identifies the network presence of this location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationPresence; - - /** - * Output only. URL for the region of this location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM - * in this region. - * @return value or {@code null} for none - */ - public java.lang.Long getExpectedRttMs() { - return expectedRttMs; - } - - /** - * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM - * in this region. - * @param expectedRttMs expectedRttMs or {@code null} for none - */ - public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRttMs) { - this.expectedRttMs = expectedRttMs; - return this; - } - - /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. - * @return value or {@code null} for none - */ - public java.lang.Boolean getL2ForwardingEnabled() { - return l2ForwardingEnabled; - } - - /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. - * @param l2ForwardingEnabled l2ForwardingEnabled or {@code null} for none - */ - public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l2ForwardingEnabled) { - this.l2ForwardingEnabled = l2ForwardingEnabled; - return this; - } - - /** - * Output only. Identifies the network presence of this location. - * @return value or {@code null} for none - */ - public java.lang.String getLocationPresence() { - return locationPresence; - } - - /** - * Output only. Identifies the network presence of this location. - * @param locationPresence locationPresence or {@code null} for none - */ - public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { - this.locationPresence = locationPresence; - return this; - } - - /** - * Output only. URL for the region of this location. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. URL for the region of this location. - * @param region region or {@code null} for none - */ - public InterconnectLocationRegionInfo setRegion(java.lang.String region) { - this.region = region; - return this; - } - - @Override - public InterconnectLocationRegionInfo set(String fieldName, Object value) { - return (InterconnectLocationRegionInfo) super.set(fieldName, value); - } - - @Override - public InterconnectLocationRegionInfo clone() { - return (InterconnectLocationRegionInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsec.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsec.java deleted file mode 100644 index 6df0a86a04c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsec.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration information for enabling Media Access Control security (MACsec) on this Cloud - * Interconnect connection between Google and your on-premises router. - * - *

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 InterconnectMacsec extends com.google.api.client.json.GenericJson { - - /** - * If set to true, the Interconnect connection is configured with ashould-secure MACsec security - * policy, that allows the Google router to fallback to cleartext traffic if the MKA session - * cannot be established. By default, the Interconnect connection is configured with amust-secure - * security policy that drops all traffic if the MKA session cannot be established with your - * router. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean failOpen; - - /** - * Required. A keychain placeholder describing a set of named key objects along with their start - * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically - * picks the key with the most recent startTime when establishing or re-establishing a MACsec - * secure link. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List preSharedKeys; - - /** - * If set to true, the Interconnect connection is configured with ashould-secure MACsec security - * policy, that allows the Google router to fallback to cleartext traffic if the MKA session - * cannot be established. By default, the Interconnect connection is configured with amust-secure - * security policy that drops all traffic if the MKA session cannot be established with your - * router. - * @return value or {@code null} for none - */ - public java.lang.Boolean getFailOpen() { - return failOpen; - } - - /** - * If set to true, the Interconnect connection is configured with ashould-secure MACsec security - * policy, that allows the Google router to fallback to cleartext traffic if the MKA session - * cannot be established. By default, the Interconnect connection is configured with amust-secure - * security policy that drops all traffic if the MKA session cannot be established with your - * router. - * @param failOpen failOpen or {@code null} for none - */ - public InterconnectMacsec setFailOpen(java.lang.Boolean failOpen) { - this.failOpen = failOpen; - return this; - } - - /** - * Required. A keychain placeholder describing a set of named key objects along with their start - * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically - * picks the key with the most recent startTime when establishing or re-establishing a MACsec - * secure link. - * @return value or {@code null} for none - */ - public java.util.List getPreSharedKeys() { - return preSharedKeys; - } - - /** - * Required. A keychain placeholder describing a set of named key objects along with their start - * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically - * picks the key with the most recent startTime when establishing or re-establishing a MACsec - * secure link. - * @param preSharedKeys preSharedKeys or {@code null} for none - */ - public InterconnectMacsec setPreSharedKeys(java.util.List preSharedKeys) { - this.preSharedKeys = preSharedKeys; - return this; - } - - @Override - public InterconnectMacsec set(String fieldName, Object value) { - return (InterconnectMacsec) super.set(fieldName, value); - } - - @Override - public InterconnectMacsec clone() { - return (InterconnectMacsec) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfig.java deleted file mode 100644 index ce0d70d83fd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfig.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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.preview.model; - -/** - * MACsec configuration information for the Interconnect connection. Contains the generated - * Connectivity Association Key Name (CKN) and the key (CAK) for this Interconnect connection. - * - *

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 InterconnectMacsecConfig extends com.google.api.client.json.GenericJson { - - /** - * A keychain placeholder describing a set of named key objects along with their start times. A - * MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks - * the key with the most recent startTime when establishing or re-establishing a MACsec secure - * link. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List preSharedKeys; - - /** - * A keychain placeholder describing a set of named key objects along with their start times. A - * MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks - * the key with the most recent startTime when establishing or re-establishing a MACsec secure - * link. - * @return value or {@code null} for none - */ - public java.util.List getPreSharedKeys() { - return preSharedKeys; - } - - /** - * A keychain placeholder describing a set of named key objects along with their start times. A - * MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks - * the key with the most recent startTime when establishing or re-establishing a MACsec secure - * link. - * @param preSharedKeys preSharedKeys or {@code null} for none - */ - public InterconnectMacsecConfig setPreSharedKeys(java.util.List preSharedKeys) { - this.preSharedKeys = preSharedKeys; - return this; - } - - @Override - public InterconnectMacsecConfig set(String fieldName, Object value) { - return (InterconnectMacsecConfig) super.set(fieldName, value); - } - - @Override - public InterconnectMacsecConfig clone() { - return (InterconnectMacsecConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfigPreSharedKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfigPreSharedKey.java deleted file mode 100644 index 381a470ec4d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecConfigPreSharedKey.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) - * mode. - * - *

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 InterconnectMacsecConfigPreSharedKey extends com.google.api.client.json.GenericJson { - - /** - * An auto-generated Connectivity Association Key (CAK) for this key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cak; - - /** - * An auto-generated Connectivity Association Key Name (CKN) for this key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ckn; - - /** - * User provided name for this pre-shared key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * User provided timestamp on or after which this key is valid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * An auto-generated Connectivity Association Key (CAK) for this key. - * @return value or {@code null} for none - */ - public java.lang.String getCak() { - return cak; - } - - /** - * An auto-generated Connectivity Association Key (CAK) for this key. - * @param cak cak or {@code null} for none - */ - public InterconnectMacsecConfigPreSharedKey setCak(java.lang.String cak) { - this.cak = cak; - return this; - } - - /** - * An auto-generated Connectivity Association Key Name (CKN) for this key. - * @return value or {@code null} for none - */ - public java.lang.String getCkn() { - return ckn; - } - - /** - * An auto-generated Connectivity Association Key Name (CKN) for this key. - * @param ckn ckn or {@code null} for none - */ - public InterconnectMacsecConfigPreSharedKey setCkn(java.lang.String ckn) { - this.ckn = ckn; - return this; - } - - /** - * User provided name for this pre-shared key. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * User provided name for this pre-shared key. - * @param name name or {@code null} for none - */ - public InterconnectMacsecConfigPreSharedKey setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * User provided timestamp on or after which this key is valid. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * User provided timestamp on or after which this key is valid. - * @param startTime startTime or {@code null} for none - */ - public InterconnectMacsecConfigPreSharedKey setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public InterconnectMacsecConfigPreSharedKey set(String fieldName, Object value) { - return (InterconnectMacsecConfigPreSharedKey) super.set(fieldName, value); - } - - @Override - public InterconnectMacsecConfigPreSharedKey clone() { - return (InterconnectMacsecConfigPreSharedKey) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecPreSharedKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecPreSharedKey.java deleted file mode 100644 index efc7b7da8c6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectMacsecPreSharedKey.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) - * mode. - * - *

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 InterconnectMacsecPreSharedKey extends com.google.api.client.json.GenericJson { - - /** - * Required. A name for this pre-shared key. 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; - - /** - * A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the - * keychain has a single key, startTime can be omitted. If the keychain has multiple keys, - * startTime is mandatory for each key. The start times of keys must be in increasing order. The - * start times of two consecutive keys must be at least 6 hours apart. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * Required. A name for this pre-shared key. 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; - } - - /** - * Required. A name for this pre-shared key. 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 InterconnectMacsecPreSharedKey setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the - * keychain has a single key, startTime can be omitted. If the keychain has multiple keys, - * startTime is mandatory for each key. The start times of keys must be in increasing order. The - * start times of two consecutive keys must be at least 6 hours apart. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the - * keychain has a single key, startTime can be omitted. If the keychain has multiple keys, - * startTime is mandatory for each key. The start times of keys must be in increasing order. The - * start times of two consecutive keys must be at least 6 hours apart. - * @param startTime startTime or {@code null} for none - */ - public InterconnectMacsecPreSharedKey setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public InterconnectMacsecPreSharedKey set(String fieldName, Object value) { - return (InterconnectMacsecPreSharedKey) super.set(fieldName, value); - } - - @Override - public InterconnectMacsecPreSharedKey clone() { - return (InterconnectMacsecPreSharedKey) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectOutageNotification.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectOutageNotification.java deleted file mode 100644 index 70658f6c212..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectOutageNotification.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * 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.preview.model; - -/** - * Description of a planned outage on this Interconnect. - * - *

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 InterconnectOutageNotification extends com.google.api.client.json.GenericJson { - - /** - * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be - * affected. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List affectedCircuits; - - /** - * A description about the purpose of the outage. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Scheduled end time for the outage (milliseconds since Unix epoch). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long endTime; - - /** - * Form this outage is expected to take, which can take one of the following values: - - * OUTAGE: The Interconnect may be completely out of service for some or all of the specified - * window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should - * remain up, but with reduced bandwidth. - * - * Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the - * unprefixed values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String issueType; - - /** - * Unique identifier for this outage notification. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The party that generated this notification, which can take the following value: - - * GOOGLE: this notification as generated by Google. - * - * Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * Scheduled start time for the outage (milliseconds since Unix epoch). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long startTime; - - /** - * State of this notification, which can take one of the following values: - ACTIVE: This - * outage notification is active. The event could be in the past, present, or future. See - * start_time and end_time for scheduling. - CANCELLED: The outage associated with this - * notification was cancelled before the outage was due to start. - COMPLETED: The outage - * associated with this notification is complete. - * - * Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the - * unprefixed values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be - * affected. - * @return value or {@code null} for none - */ - public java.util.List getAffectedCircuits() { - return affectedCircuits; - } - - /** - * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be - * affected. - * @param affectedCircuits affectedCircuits or {@code null} for none - */ - public InterconnectOutageNotification setAffectedCircuits(java.util.List affectedCircuits) { - this.affectedCircuits = affectedCircuits; - return this; - } - - /** - * A description about the purpose of the outage. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * A description about the purpose of the outage. - * @param description description or {@code null} for none - */ - public InterconnectOutageNotification setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Scheduled end time for the outage (milliseconds since Unix epoch). - * @return value or {@code null} for none - */ - public java.lang.Long getEndTime() { - return endTime; - } - - /** - * Scheduled end time for the outage (milliseconds since Unix epoch). - * @param endTime endTime or {@code null} for none - */ - public InterconnectOutageNotification setEndTime(java.lang.Long endTime) { - this.endTime = endTime; - return this; - } - - /** - * Form this outage is expected to take, which can take one of the following values: - - * OUTAGE: The Interconnect may be completely out of service for some or all of the specified - * window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should - * remain up, but with reduced bandwidth. - * - * Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the - * unprefixed values. - * @return value or {@code null} for none - */ - public java.lang.String getIssueType() { - return issueType; - } - - /** - * Form this outage is expected to take, which can take one of the following values: - - * OUTAGE: The Interconnect may be completely out of service for some or all of the specified - * window. - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole should - * remain up, but with reduced bandwidth. - * - * Note that the versions of this enum prefixed with "IT_" have been deprecated in favor of the - * unprefixed values. - * @param issueType issueType or {@code null} for none - */ - public InterconnectOutageNotification setIssueType(java.lang.String issueType) { - this.issueType = issueType; - return this; - } - - /** - * Unique identifier for this outage notification. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Unique identifier for this outage notification. - * @param name name or {@code null} for none - */ - public InterconnectOutageNotification setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The party that generated this notification, which can take the following value: - - * GOOGLE: this notification as generated by Google. - * - * Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * The party that generated this notification, which can take the following value: - - * GOOGLE: this notification as generated by Google. - * - * Note that the value of NSRC_GOOGLE has been deprecated in favor of GOOGLE. - * @param source source or {@code null} for none - */ - public InterconnectOutageNotification setSource(java.lang.String source) { - this.source = source; - return this; - } - - /** - * Scheduled start time for the outage (milliseconds since Unix epoch). - * @return value or {@code null} for none - */ - public java.lang.Long getStartTime() { - return startTime; - } - - /** - * Scheduled start time for the outage (milliseconds since Unix epoch). - * @param startTime startTime or {@code null} for none - */ - public InterconnectOutageNotification setStartTime(java.lang.Long startTime) { - this.startTime = startTime; - return this; - } - - /** - * State of this notification, which can take one of the following values: - ACTIVE: This - * outage notification is active. The event could be in the past, present, or future. See - * start_time and end_time for scheduling. - CANCELLED: The outage associated with this - * notification was cancelled before the outage was due to start. - COMPLETED: The outage - * associated with this notification is complete. - * - * Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the - * unprefixed values. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * State of this notification, which can take one of the following values: - ACTIVE: This - * outage notification is active. The event could be in the past, present, or future. See - * start_time and end_time for scheduling. - CANCELLED: The outage associated with this - * notification was cancelled before the outage was due to start. - COMPLETED: The outage - * associated with this notification is complete. - * - * Note that the versions of this enum prefixed with "NS_" have been deprecated in favor of the - * unprefixed values. - * @param state state or {@code null} for none - */ - public InterconnectOutageNotification setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public InterconnectOutageNotification set(String fieldName, Object value) { - return (InterconnectOutageNotification) super.set(fieldName, value); - } - - @Override - public InterconnectOutageNotification clone() { - return (InterconnectOutageNotification) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectParams.java deleted file mode 100644 index 90fb0600b24..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectParams.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional interconnect parameters. - * - *

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 InterconnectParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public InterconnectParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public InterconnectParams set(String fieldName, Object value) { - return (InterconnectParams) super.set(fieldName, value); - } - - @Override - public InterconnectParams clone() { - return (InterconnectParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocation.java deleted file mode 100644 index 0967116b311..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocation.java +++ /dev/null @@ -1,600 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Cross-Cloud Interconnect Remote Location resource. - * - * You can use this resource to find remote location details about an Interconnect attachment - * (VLAN). - * - *

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 InterconnectRemoteLocation extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** - * Output only. [Output Only] Subset of fields from InterconnectAttachment's - * |configurationConstraints| field that apply to all attachments for this remote location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectAttachmentConfigurationConstraints attachmentConfigurationConstraints; - - /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String city; - - /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectRemoteLocationConstraints constraints; - - /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String continent; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 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 the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facilityProvider; - - /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String facilityProviderFacilityId; - - /** - * 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] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take - * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lacp; - - /** - * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxLagSize100Gbps; - - /** - * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxLagSize10Gbps; - - /** - * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxLagSize400Gbps; - - /** - * Output only. [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peeringdbFacilityId; - - /** - * Output only. [Output Only] Permitted connections. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List permittedConnections; - - /** - * Output only. [Output Only] Indicates the service provider present at the remote location. - * Example values: "Amazon Web Services", "Microsoft Azure". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String remoteService; - - /** - * 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 status of this InterconnectRemoteLocation, which can take one of - * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is - * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The - * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. - * @return value or {@code null} for none - */ - public java.lang.String getAddress() { - return address; - } - - /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. - * @param address address or {@code null} for none - */ - public InterconnectRemoteLocation setAddress(java.lang.String address) { - this.address = address; - return this; - } - - /** - * Output only. [Output Only] Subset of fields from InterconnectAttachment's - * |configurationConstraints| field that apply to all attachments for this remote location. - * @return value or {@code null} for none - */ - public InterconnectAttachmentConfigurationConstraints getAttachmentConfigurationConstraints() { - return attachmentConfigurationConstraints; - } - - /** - * Output only. [Output Only] Subset of fields from InterconnectAttachment's - * |configurationConstraints| field that apply to all attachments for this remote location. - * @param attachmentConfigurationConstraints attachmentConfigurationConstraints or {@code null} for none - */ - public InterconnectRemoteLocation setAttachmentConfigurationConstraints(InterconnectAttachmentConfigurationConstraints attachmentConfigurationConstraints) { - this.attachmentConfigurationConstraints = attachmentConfigurationConstraints; - return this; - } - - /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". - * @return value or {@code null} for none - */ - public java.lang.String getCity() { - return city; - } - - /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". - * @param city city or {@code null} for none - */ - public InterconnectRemoteLocation setCity(java.lang.String city) { - this.city = city; - return this; - } - - /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. - * @return value or {@code null} for none - */ - public InterconnectRemoteLocationConstraints getConstraints() { - return constraints; - } - - /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. - * @param constraints constraints or {@code null} for none - */ - public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConstraints constraints) { - this.constraints = constraints; - return this; - } - - /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - * @return value or {@code null} for none - */ - public java.lang.String getContinent() { - return continent; - } - - /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA - * @param continent continent or {@code null} for none - */ - public InterconnectRemoteLocation setContinent(java.lang.String continent) { - this.continent = continent; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] An optional description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] An optional description of the resource. - * @param description description or {@code null} for none - */ - public InterconnectRemoteLocation setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). - * @return value or {@code null} for none - */ - public java.lang.String getFacilityProvider() { - return facilityProvider; - } - - /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). - * @param facilityProvider facilityProvider or {@code null} for none - */ - public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityProvider) { - this.facilityProvider = facilityProvider; - return this; - } - - /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). - * @return value or {@code null} for none - */ - public java.lang.String getFacilityProviderFacilityId() { - return facilityProviderFacilityId; - } - - /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). - * @param facilityProviderFacilityId facilityProviderFacilityId or {@code null} for none - */ - public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String facilityProviderFacilityId) { - this.facilityProviderFacilityId = facilityProviderFacilityId; - 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 InterconnectRemoteLocation setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. - * @param kind kind or {@code null} for none - */ - public InterconnectRemoteLocation setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take - * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED - * @return value or {@code null} for none - */ - public java.lang.String getLacp() { - return lacp; - } - - /** - * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take - * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED - * @param lacp lacp or {@code null} for none - */ - public InterconnectRemoteLocation setLacp(java.lang.String lacp) { - this.lacp = lacp; - return this; - } - - /** - * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxLagSize100Gbps() { - return maxLagSize100Gbps; - } - - /** - * Output only. [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. - * @param maxLagSize100Gbps maxLagSize100Gbps or {@code null} for none - */ - public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagSize100Gbps) { - this.maxLagSize100Gbps = maxLagSize100Gbps; - return this; - } - - /** - * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxLagSize10Gbps() { - return maxLagSize10Gbps; - } - - /** - * Output only. [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. - * @param maxLagSize10Gbps maxLagSize10Gbps or {@code null} for none - */ - public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSize10Gbps) { - this.maxLagSize10Gbps = maxLagSize10Gbps; - return this; - } - - /** - * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxLagSize400Gbps() { - return maxLagSize400Gbps; - } - - /** - * Output only. [Output Only] The maximum number of 400 Gbps ports supported in a link aggregation - * group (LAG). When linkType is 400 Gbps, requestedLinkCount cannot exceed max_lag_size_400_gbps. - * @param maxLagSize400Gbps maxLagSize400Gbps or {@code null} for none - */ - public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagSize400Gbps) { - this.maxLagSize400Gbps = maxLagSize400Gbps; - return this; - } - - /** - * Output only. [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public InterconnectRemoteLocation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). - * @return value or {@code null} for none - */ - public java.lang.String getPeeringdbFacilityId() { - return peeringdbFacilityId; - } - - /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). - * @param peeringdbFacilityId peeringdbFacilityId or {@code null} for none - */ - public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peeringdbFacilityId) { - this.peeringdbFacilityId = peeringdbFacilityId; - return this; - } - - /** - * Output only. [Output Only] Permitted connections. - * @return value or {@code null} for none - */ - public java.util.List getPermittedConnections() { - return permittedConnections; - } - - /** - * Output only. [Output Only] Permitted connections. - * @param permittedConnections permittedConnections or {@code null} for none - */ - public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { - this.permittedConnections = permittedConnections; - return this; - } - - /** - * Output only. [Output Only] Indicates the service provider present at the remote location. - * Example values: "Amazon Web Services", "Microsoft Azure". - * @return value or {@code null} for none - */ - public java.lang.String getRemoteService() { - return remoteService; - } - - /** - * Output only. [Output Only] Indicates the service provider present at the remote location. - * Example values: "Amazon Web Services", "Microsoft Azure". - * @param remoteService remoteService or {@code null} for none - */ - public InterconnectRemoteLocation setRemoteService(java.lang.String remoteService) { - this.remoteService = remoteService; - 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 InterconnectRemoteLocation setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] The status of this InterconnectRemoteLocation, which can take one of - * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is - * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The - * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of this InterconnectRemoteLocation, which can take one of - * the following values: - CLOSED: The InterconnectRemoteLocation is closed and is - * unavailable for provisioning new Cross-Cloud Interconnects. - AVAILABLE: The - * InterconnectRemoteLocation is available for provisioning new Cross-Cloud Interconnects. - * @param status status or {@code null} for none - */ - public InterconnectRemoteLocation setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public InterconnectRemoteLocation set(String fieldName, Object value) { - return (InterconnectRemoteLocation) super.set(fieldName, value); - } - - @Override - public InterconnectRemoteLocation clone() { - return (InterconnectRemoteLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraints.java deleted file mode 100644 index 6f5ffb20f9f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraints.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectRemoteLocationConstraints. - * - *

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 InterconnectRemoteLocationConstraints extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Port pair remote location constraints, which can take one of the - * following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. - * - * Google Cloud API refers only to individual ports, but the UI uses this field when ordering a - * pair of ports, to prevent users from accidentally ordering something that is incompatible with - * their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect - * ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to - * matching, the UI requires that both ports use the same remote location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portPairRemoteLocation; - - /** - * Output only. [Output Only] Port pair VLAN constraints, which can take one of the following - * values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portPairVlan; - - /** - * Output only. [Output Only] - * - * [min-length, max-length] - * - * The minimum and maximum value (inclusive) for the IPv4 subnet length. - * - * For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure - * requires /30 subnets. - * - * This range specifies the values supported by both cloud providers. Interconnect currently - * supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet - * length, the range would thus be {min: 29, max: 30}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectRemoteLocationConstraintsSubnetLengthRange subnetLengthRange; - - /** - * Output only. [Output Only] Port pair remote location constraints, which can take one of the - * following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. - * - * Google Cloud API refers only to individual ports, but the UI uses this field when ordering a - * pair of ports, to prevent users from accidentally ordering something that is incompatible with - * their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect - * ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to - * matching, the UI requires that both ports use the same remote location. - * @return value or {@code null} for none - */ - public java.lang.String getPortPairRemoteLocation() { - return portPairRemoteLocation; - } - - /** - * Output only. [Output Only] Port pair remote location constraints, which can take one of the - * following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. - * - * Google Cloud API refers only to individual ports, but the UI uses this field when ordering a - * pair of ports, to prevent users from accidentally ordering something that is incompatible with - * their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect - * ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to - * matching, the UI requires that both ports use the same remote location. - * @param portPairRemoteLocation portPairRemoteLocation or {@code null} for none - */ - public InterconnectRemoteLocationConstraints setPortPairRemoteLocation(java.lang.String portPairRemoteLocation) { - this.portPairRemoteLocation = portPairRemoteLocation; - return this; - } - - /** - * Output only. [Output Only] Port pair VLAN constraints, which can take one of the following - * values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN - * @return value or {@code null} for none - */ - public java.lang.String getPortPairVlan() { - return portPairVlan; - } - - /** - * Output only. [Output Only] Port pair VLAN constraints, which can take one of the following - * values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN - * @param portPairVlan portPairVlan or {@code null} for none - */ - public InterconnectRemoteLocationConstraints setPortPairVlan(java.lang.String portPairVlan) { - this.portPairVlan = portPairVlan; - return this; - } - - /** - * Output only. [Output Only] - * - * [min-length, max-length] - * - * The minimum and maximum value (inclusive) for the IPv4 subnet length. - * - * For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure - * requires /30 subnets. - * - * This range specifies the values supported by both cloud providers. Interconnect currently - * supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet - * length, the range would thus be {min: 29, max: 30}. - * @return value or {@code null} for none - */ - public InterconnectRemoteLocationConstraintsSubnetLengthRange getSubnetLengthRange() { - return subnetLengthRange; - } - - /** - * Output only. [Output Only] - * - * [min-length, max-length] - * - * The minimum and maximum value (inclusive) for the IPv4 subnet length. - * - * For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure - * requires /30 subnets. - * - * This range specifies the values supported by both cloud providers. Interconnect currently - * supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet - * length, the range would thus be {min: 29, max: 30}. - * @param subnetLengthRange subnetLengthRange or {@code null} for none - */ - public InterconnectRemoteLocationConstraints setSubnetLengthRange(InterconnectRemoteLocationConstraintsSubnetLengthRange subnetLengthRange) { - this.subnetLengthRange = subnetLengthRange; - return this; - } - - @Override - public InterconnectRemoteLocationConstraints set(String fieldName, Object value) { - return (InterconnectRemoteLocationConstraints) super.set(fieldName, value); - } - - @Override - public InterconnectRemoteLocationConstraints clone() { - return (InterconnectRemoteLocationConstraints) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java deleted file mode 100644 index bfaf4151e35..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationConstraintsSubnetLengthRange.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectRemoteLocationConstraintsSubnetLengthRange. - * - *

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 InterconnectRemoteLocationConstraintsSubnetLengthRange extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer max; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer min; - - /** - * @return value or {@code null} for none - */ - public java.lang.Integer getMax() { - return max; - } - - /** - * @param max max or {@code null} for none - */ - public InterconnectRemoteLocationConstraintsSubnetLengthRange setMax(java.lang.Integer max) { - this.max = max; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Integer getMin() { - return min; - } - - /** - * @param min min or {@code null} for none - */ - public InterconnectRemoteLocationConstraintsSubnetLengthRange setMin(java.lang.Integer min) { - this.min = min; - return this; - } - - @Override - public InterconnectRemoteLocationConstraintsSubnetLengthRange set(String fieldName, Object value) { - return (InterconnectRemoteLocationConstraintsSubnetLengthRange) super.set(fieldName, value); - } - - @Override - public InterconnectRemoteLocationConstraintsSubnetLengthRange clone() { - return (InterconnectRemoteLocationConstraintsSubnetLengthRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationList.java deleted file mode 100644 index 4177f7fdc03..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response to the list request, and contains a list of interconnect remote locations. - * - *

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 InterconnectRemoteLocationList extends com.google.api.client.json.GenericJson { - - /** - * [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 InterconnectRemoteLocation 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 InterconnectRemoteLocation 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(InterconnectRemoteLocation.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for - * lists of interconnect remote locations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token lets you get the next page of results for list requests. If the number - * of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 InterconnectRemoteLocationList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InterconnectRemoteLocation resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InterconnectRemoteLocation resources. - * @param items items or {@code null} for none - */ - public InterconnectRemoteLocationList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for - * lists of interconnect remote locations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectRemoteLocationList for - * lists of interconnect remote locations. - * @param kind kind or {@code null} for none - */ - public InterconnectRemoteLocationList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token lets you get the next page of results for list requests. If the number - * of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token lets you get the next page of results for list requests. If the number - * of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public InterconnectRemoteLocationList 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 InterconnectRemoteLocationList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 InterconnectRemoteLocationList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public InterconnectRemoteLocationList set(String fieldName, Object value) { - return (InterconnectRemoteLocationList) super.set(fieldName, value); - } - - @Override - public InterconnectRemoteLocationList clone() { - return (InterconnectRemoteLocationList) 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 InterconnectRemoteLocationListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationPermittedConnections.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationPermittedConnections.java deleted file mode 100644 index f7c13fee98c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectRemoteLocationPermittedConnections.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for InterconnectRemoteLocationPermittedConnections. - * - *

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 InterconnectRemoteLocationPermittedConnections extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] URL of an Interconnect location that is permitted to connect to this - * Interconnect remote location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnectLocation; - - /** - * Output only. [Output Only] URL of an Interconnect location that is permitted to connect to this - * Interconnect remote location. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnectLocation() { - return interconnectLocation; - } - - /** - * Output only. [Output Only] URL of an Interconnect location that is permitted to connect to this - * Interconnect remote location. - * @param interconnectLocation interconnectLocation or {@code null} for none - */ - public InterconnectRemoteLocationPermittedConnections setInterconnectLocation(java.lang.String interconnectLocation) { - this.interconnectLocation = interconnectLocation; - return this; - } - - @Override - public InterconnectRemoteLocationPermittedConnections set(String fieldName, Object value) { - return (InterconnectRemoteLocationPermittedConnections) super.set(fieldName, value); - } - - @Override - public InterconnectRemoteLocationPermittedConnections clone() { - return (InterconnectRemoteLocationPermittedConnections) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetDiagnosticsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetDiagnosticsResponse.java deleted file mode 100644 index 075f8911e20..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetDiagnosticsResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response for the InterconnectsGetDiagnosticsRequest. - * - *

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 InterconnectsGetDiagnosticsResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectDiagnostics result; - - /** - * @return value or {@code null} for none - */ - public InterconnectDiagnostics getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public InterconnectsGetDiagnosticsResponse setResult(InterconnectDiagnostics result) { - this.result = result; - return this; - } - - @Override - public InterconnectsGetDiagnosticsResponse set(String fieldName, Object value) { - return (InterconnectsGetDiagnosticsResponse) super.set(fieldName, value); - } - - @Override - public InterconnectsGetDiagnosticsResponse clone() { - return (InterconnectsGetDiagnosticsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetMacsecConfigResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetMacsecConfigResponse.java deleted file mode 100644 index 47731dc604b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/InterconnectsGetMacsecConfigResponse.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response for the InterconnectsGetMacsecConfigRequest. - * - *

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 InterconnectsGetMacsecConfigResponse extends com.google.api.client.json.GenericJson { - - /** - * end_interface: MixerGetResponseWithEtagBuilder - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InterconnectMacsecConfig result; - - /** - * end_interface: MixerGetResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * end_interface: MixerGetResponseWithEtagBuilder - * @param etag etag or {@code null} for none - */ - public InterconnectsGetMacsecConfigResponse setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InterconnectMacsecConfig getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public InterconnectsGetMacsecConfigResponse setResult(InterconnectMacsecConfig result) { - this.result = result; - return this; - } - - @Override - public InterconnectsGetMacsecConfigResponse set(String fieldName, Object value) { - return (InterconnectsGetMacsecConfigResponse) super.set(fieldName, value); - } - - @Override - public InterconnectsGetMacsecConfigResponse clone() { - return (InterconnectsGetMacsecConfigResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interval.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interval.java deleted file mode 100644 index eddcb061be9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Interval.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end - * (exclusive). - * - * The start must be less than or equal to the end. When the start equals the end, the interval is - * empty (matches no time). When both start and end are unspecified, the interval matches any time. - * - *

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 Interval extends com.google.api.client.json.GenericJson { - - /** - * Optional. Exclusive end of the interval. - * - * If specified, a Timestamp matching this interval will have to be before the end. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String endTime; - - /** - * Optional. Inclusive start of the interval. - * - * If specified, a Timestamp matching this interval will have to be the same or after the start. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String startTime; - - /** - * Optional. Exclusive end of the interval. - * - * If specified, a Timestamp matching this interval will have to be before the end. - * @return value or {@code null} for none - */ - public String getEndTime() { - return endTime; - } - - /** - * Optional. Exclusive end of the interval. - * - * If specified, a Timestamp matching this interval will have to be before the end. - * @param endTime endTime or {@code null} for none - */ - public Interval setEndTime(String endTime) { - this.endTime = endTime; - return this; - } - - /** - * Optional. Inclusive start of the interval. - * - * If specified, a Timestamp matching this interval will have to be the same or after the start. - * @return value or {@code null} for none - */ - public String getStartTime() { - return startTime; - } - - /** - * Optional. Inclusive start of the interval. - * - * If specified, a Timestamp matching this interval will have to be the same or after the start. - * @param startTime startTime or {@code null} for none - */ - public Interval setStartTime(String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public Interval set(String fieldName, Object value) { - return (Interval) super.set(fieldName, value); - } - - @Override - public Interval clone() { - return (Interval) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/License.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/License.java deleted file mode 100644 index 5e0803c9482..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/License.java +++ /dev/null @@ -1,604 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a License resource. - * - * A License represents billing and aggregate usage data forpublic andmarketplace images. Caution* - * This resource is intended for use only by third-party partners who are creatingCloud Marketplace - * images. - * - *

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 License extends com.google.api.client.json.GenericJson { - - /** - * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are - * allowed even if removable_from_disk is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowedReplacementLicenses; - - /** - * If true, this license can be appended to an existing disk's set of licenses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean appendableToDisk; - - /** - * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean chargesUseFee; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional textual description of the resource; provided by the client when the resource is - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [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; - - /** - * Specifies licenseCodes of licenses that are incompatible with this license. If a license is - * incompatible with this license, it cannot be attached to the same disk or image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List incompatibleLicenses; - - /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] The unique code used to attach this license to images, snapshots, and disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger licenseCode; - - /** - * If set, this license will be unable to be removed or replaced once attached to a disk until the - * minimum_retention period has passed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration minimumRetention; - - /** - * If true, this license can only be used on VMs on multi tenant nodes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean multiTenantOnly; - - /** - * Name of the resource. The name must be 1-63 characters long and comply withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * If true, indicates this is an OS license. Only one OS license can be attached to a disk or - * image at a time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean osLicense; - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LicenseParams params; - - /** - * If true, this license can be removed from a disk's set of licenses, with no replacement license - * needed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean removableFromDisk; - - /** - * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the - * coattachment requirement of this license. At least one license from the set must be attached to - * the same disk or image as this license. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requiredCoattachedLicenses; - - /** - * [Input Only] Deprecated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LicenseResourceRequirements resourceRequirements; - - /** - * 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * If true, this license can only be used on VMs on sole tenant nodes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean soleTenantOnly; - - /** - * If false, licenses will not be copied from the source resource when creating an image from a - * disk, disk from snapshot, or snapshot from disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean transferable; - - /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateTimestamp; - - /** - * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are - * allowed even if removable_from_disk is false. - * @return value or {@code null} for none - */ - public java.util.List getAllowedReplacementLicenses() { - return allowedReplacementLicenses; - } - - /** - * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are - * allowed even if removable_from_disk is false. - * @param allowedReplacementLicenses allowedReplacementLicenses or {@code null} for none - */ - public License setAllowedReplacementLicenses(java.util.List allowedReplacementLicenses) { - this.allowedReplacementLicenses = allowedReplacementLicenses; - return this; - } - - /** - * If true, this license can be appended to an existing disk's set of licenses. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAppendableToDisk() { - return appendableToDisk; - } - - /** - * If true, this license can be appended to an existing disk's set of licenses. - * @param appendableToDisk appendableToDisk or {@code null} for none - */ - public License setAppendableToDisk(java.lang.Boolean appendableToDisk) { - this.appendableToDisk = appendableToDisk; - return this; - } - - /** - * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. - * @return value or {@code null} for none - */ - public java.lang.Boolean getChargesUseFee() { - return chargesUseFee; - } - - /** - * [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee. - * @param chargesUseFee chargesUseFee or {@code null} for none - */ - public License setChargesUseFee(java.lang.Boolean chargesUseFee) { - this.chargesUseFee = chargesUseFee; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public License setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional textual description of the resource; provided by the client when the resource is - * created. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional textual description of the resource; provided by the client when the resource is - * created. - * @param description description or {@code null} for none - */ - public License setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public License setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Specifies licenseCodes of licenses that are incompatible with this license. If a license is - * incompatible with this license, it cannot be attached to the same disk or image. - * @return value or {@code null} for none - */ - public java.util.List getIncompatibleLicenses() { - return incompatibleLicenses; - } - - /** - * Specifies licenseCodes of licenses that are incompatible with this license. If a license is - * incompatible with this license, it cannot be attached to the same disk or image. - * @param incompatibleLicenses incompatibleLicenses or {@code null} for none - */ - public License setIncompatibleLicenses(java.util.List incompatibleLicenses) { - this.incompatibleLicenses = incompatibleLicenses; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. - * @param kind kind or {@code null} for none - */ - public License setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] The unique code used to attach this license to images, snapshots, and disks. - * @return value or {@code null} for none - */ - public java.math.BigInteger getLicenseCode() { - return licenseCode; - } - - /** - * [Output Only] The unique code used to attach this license to images, snapshots, and disks. - * @param licenseCode licenseCode or {@code null} for none - */ - public License setLicenseCode(java.math.BigInteger licenseCode) { - this.licenseCode = licenseCode; - return this; - } - - /** - * If set, this license will be unable to be removed or replaced once attached to a disk until the - * minimum_retention period has passed. - * @return value or {@code null} for none - */ - public Duration getMinimumRetention() { - return minimumRetention; - } - - /** - * If set, this license will be unable to be removed or replaced once attached to a disk until the - * minimum_retention period has passed. - * @param minimumRetention minimumRetention or {@code null} for none - */ - public License setMinimumRetention(Duration minimumRetention) { - this.minimumRetention = minimumRetention; - return this; - } - - /** - * If true, this license can only be used on VMs on multi tenant nodes. - * @return value or {@code null} for none - */ - public java.lang.Boolean getMultiTenantOnly() { - return multiTenantOnly; - } - - /** - * If true, this license can only be used on VMs on multi tenant nodes. - * @param multiTenantOnly multiTenantOnly or {@code null} for none - */ - public License setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { - this.multiTenantOnly = multiTenantOnly; - return this; - } - - /** - * Name of the resource. The name must be 1-63 characters long and comply withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. The name must be 1-63 characters long and comply withRFC1035. - * @param name name or {@code null} for none - */ - public License setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * If true, indicates this is an OS license. Only one OS license can be attached to a disk or - * image at a time. - * @return value or {@code null} for none - */ - public java.lang.Boolean getOsLicense() { - return osLicense; - } - - /** - * If true, indicates this is an OS license. Only one OS license can be attached to a disk or - * image at a time. - * @param osLicense osLicense or {@code null} for none - */ - public License setOsLicense(java.lang.Boolean osLicense) { - this.osLicense = osLicense; - return this; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @return value or {@code null} for none - */ - public LicenseParams getParams() { - return params; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @param params params or {@code null} for none - */ - public License setParams(LicenseParams params) { - this.params = params; - return this; - } - - /** - * If true, this license can be removed from a disk's set of licenses, with no replacement license - * needed. - * @return value or {@code null} for none - */ - public java.lang.Boolean getRemovableFromDisk() { - return removableFromDisk; - } - - /** - * If true, this license can be removed from a disk's set of licenses, with no replacement license - * needed. - * @param removableFromDisk removableFromDisk or {@code null} for none - */ - public License setRemovableFromDisk(java.lang.Boolean removableFromDisk) { - this.removableFromDisk = removableFromDisk; - return this; - } - - /** - * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the - * coattachment requirement of this license. At least one license from the set must be attached to - * the same disk or image as this license. - * @return value or {@code null} for none - */ - public java.util.List getRequiredCoattachedLicenses() { - return requiredCoattachedLicenses; - } - - /** - * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the - * coattachment requirement of this license. At least one license from the set must be attached to - * the same disk or image as this license. - * @param requiredCoattachedLicenses requiredCoattachedLicenses or {@code null} for none - */ - public License setRequiredCoattachedLicenses(java.util.List requiredCoattachedLicenses) { - this.requiredCoattachedLicenses = requiredCoattachedLicenses; - return this; - } - - /** - * [Input Only] Deprecated. - * @return value or {@code null} for none - */ - public LicenseResourceRequirements getResourceRequirements() { - return resourceRequirements; - } - - /** - * [Input Only] Deprecated. - * @param resourceRequirements resourceRequirements or {@code null} for none - */ - public License setResourceRequirements(LicenseResourceRequirements resourceRequirements) { - this.resourceRequirements = resourceRequirements; - 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 License setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public License setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * If true, this license can only be used on VMs on sole tenant nodes. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSoleTenantOnly() { - return soleTenantOnly; - } - - /** - * If true, this license can only be used on VMs on sole tenant nodes. - * @param soleTenantOnly soleTenantOnly or {@code null} for none - */ - public License setSoleTenantOnly(java.lang.Boolean soleTenantOnly) { - this.soleTenantOnly = soleTenantOnly; - return this; - } - - /** - * If false, licenses will not be copied from the source resource when creating an image from a - * disk, disk from snapshot, or snapshot from disk. - * @return value or {@code null} for none - */ - public java.lang.Boolean getTransferable() { - return transferable; - } - - /** - * If false, licenses will not be copied from the source resource when creating an image from a - * disk, disk from snapshot, or snapshot from disk. - * @param transferable transferable or {@code null} for none - */ - public License setTransferable(java.lang.Boolean transferable) { - this.transferable = transferable; - return this; - } - - /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateTimestamp() { - return updateTimestamp; - } - - /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. - * @param updateTimestamp updateTimestamp or {@code null} for none - */ - public License setUpdateTimestamp(java.lang.String updateTimestamp) { - this.updateTimestamp = updateTimestamp; - return this; - } - - @Override - public License set(String fieldName, Object value) { - return (License) super.set(fieldName, value); - } - - @Override - public License clone() { - return (License) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCode.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCode.java deleted file mode 100644 index 409aeeba9a6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCode.java +++ /dev/null @@ -1,531 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a License Code resource. - * - * A License Code is a unique identifier used to represent alicense resource. Caution* This resource - * is intended for use only by third-party partners who are creatingCloud Marketplace images. - * - *

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 LicenseCode extends com.google.api.client.json.GenericJson { - - /** - * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are - * allowed even if removable_from_disk is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List allowedReplacementLicenses; - - /** - * If true, this license can be appended to an existing disk's set of licenses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean appendableToDisk; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] Description of this License Code. - * 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; - - /** - * Specifies licenseCodes of licenses that are incompatible with this license. If a license is - * incompatible with this license, it cannot be attached to the same disk or image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List incompatibleLicenses; - - /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] URL and description aliases of Licenses with the same License Code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenseAlias; - - /** - * If set, this license will be unable to be removed or replaced once attached to a disk until the - * minimum_retention period has passed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration minimumRetention; - - /** - * If true, this license can only be used on VMs on multi tenant nodes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean multiTenantOnly; - - /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * If true, indicates this is an OS license. Only one OS license can be attached to a disk or - * image at a time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean osLicense; - - /** - * If true, this license can be removed from a disk's set of licenses, with no replacement license - * needed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean removableFromDisk; - - /** - * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the - * coattachment requirement of this license. At least one license from the set must be attached to - * the same disk or image as this license. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requiredCoattachedLicenses; - - /** - * 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; - - /** - * If true, this license can only be used on VMs on sole tenant nodes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean soleTenantOnly; - - /** - * Output only. [Output Only] Current state of this License Code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] If true, the license will remain attached when creating images or - * snapshots from disks. Otherwise, the license is not transferred. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean transferable; - - /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateTimestamp; - - /** - * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are - * allowed even if removable_from_disk is false. - * @return value or {@code null} for none - */ - public java.util.List getAllowedReplacementLicenses() { - return allowedReplacementLicenses; - } - - /** - * Specifies licenseCodes of licenses that can replace this license. Note: such replacements are - * allowed even if removable_from_disk is false. - * @param allowedReplacementLicenses allowedReplacementLicenses or {@code null} for none - */ - public LicenseCode setAllowedReplacementLicenses(java.util.List allowedReplacementLicenses) { - this.allowedReplacementLicenses = allowedReplacementLicenses; - return this; - } - - /** - * If true, this license can be appended to an existing disk's set of licenses. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAppendableToDisk() { - return appendableToDisk; - } - - /** - * If true, this license can be appended to an existing disk's set of licenses. - * @param appendableToDisk appendableToDisk or {@code null} for none - */ - public LicenseCode setAppendableToDisk(java.lang.Boolean appendableToDisk) { - this.appendableToDisk = appendableToDisk; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] Description of this License Code. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] Description of this License Code. - * @param description description or {@code null} for none - */ - public LicenseCode 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 LicenseCode setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Specifies licenseCodes of licenses that are incompatible with this license. If a license is - * incompatible with this license, it cannot be attached to the same disk or image. - * @return value or {@code null} for none - */ - public java.util.List getIncompatibleLicenses() { - return incompatibleLicenses; - } - - /** - * Specifies licenseCodes of licenses that are incompatible with this license. If a license is - * incompatible with this license, it cannot be attached to the same disk or image. - * @param incompatibleLicenses incompatibleLicenses or {@code null} for none - */ - public LicenseCode setIncompatibleLicenses(java.util.List incompatibleLicenses) { - this.incompatibleLicenses = incompatibleLicenses; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. - * @param kind kind or {@code null} for none - */ - public LicenseCode setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] URL and description aliases of Licenses with the same License Code. - * @return value or {@code null} for none - */ - public java.util.List getLicenseAlias() { - return licenseAlias; - } - - /** - * [Output Only] URL and description aliases of Licenses with the same License Code. - * @param licenseAlias licenseAlias or {@code null} for none - */ - public LicenseCode setLicenseAlias(java.util.List licenseAlias) { - this.licenseAlias = licenseAlias; - return this; - } - - /** - * If set, this license will be unable to be removed or replaced once attached to a disk until the - * minimum_retention period has passed. - * @return value or {@code null} for none - */ - public Duration getMinimumRetention() { - return minimumRetention; - } - - /** - * If set, this license will be unable to be removed or replaced once attached to a disk until the - * minimum_retention period has passed. - * @param minimumRetention minimumRetention or {@code null} for none - */ - public LicenseCode setMinimumRetention(Duration minimumRetention) { - this.minimumRetention = minimumRetention; - return this; - } - - /** - * If true, this license can only be used on VMs on multi tenant nodes. - * @return value or {@code null} for none - */ - public java.lang.Boolean getMultiTenantOnly() { - return multiTenantOnly; - } - - /** - * If true, this license can only be used on VMs on multi tenant nodes. - * @param multiTenantOnly multiTenantOnly or {@code null} for none - */ - public LicenseCode setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { - this.multiTenantOnly = multiTenantOnly; - return this; - } - - /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. - * @param name name or {@code null} for none - */ - public LicenseCode setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * If true, indicates this is an OS license. Only one OS license can be attached to a disk or - * image at a time. - * @return value or {@code null} for none - */ - public java.lang.Boolean getOsLicense() { - return osLicense; - } - - /** - * If true, indicates this is an OS license. Only one OS license can be attached to a disk or - * image at a time. - * @param osLicense osLicense or {@code null} for none - */ - public LicenseCode setOsLicense(java.lang.Boolean osLicense) { - this.osLicense = osLicense; - return this; - } - - /** - * If true, this license can be removed from a disk's set of licenses, with no replacement license - * needed. - * @return value or {@code null} for none - */ - public java.lang.Boolean getRemovableFromDisk() { - return removableFromDisk; - } - - /** - * If true, this license can be removed from a disk's set of licenses, with no replacement license - * needed. - * @param removableFromDisk removableFromDisk or {@code null} for none - */ - public LicenseCode setRemovableFromDisk(java.lang.Boolean removableFromDisk) { - this.removableFromDisk = removableFromDisk; - return this; - } - - /** - * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the - * coattachment requirement of this license. At least one license from the set must be attached to - * the same disk or image as this license. - * @return value or {@code null} for none - */ - public java.util.List getRequiredCoattachedLicenses() { - return requiredCoattachedLicenses; - } - - /** - * Specifies the set of permissible coattached licenseCodes of licenses that satisfy the - * coattachment requirement of this license. At least one license from the set must be attached to - * the same disk or image as this license. - * @param requiredCoattachedLicenses requiredCoattachedLicenses or {@code null} for none - */ - public LicenseCode setRequiredCoattachedLicenses(java.util.List requiredCoattachedLicenses) { - this.requiredCoattachedLicenses = requiredCoattachedLicenses; - 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 LicenseCode setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * If true, this license can only be used on VMs on sole tenant nodes. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSoleTenantOnly() { - return soleTenantOnly; - } - - /** - * If true, this license can only be used on VMs on sole tenant nodes. - * @param soleTenantOnly soleTenantOnly or {@code null} for none - */ - public LicenseCode setSoleTenantOnly(java.lang.Boolean soleTenantOnly) { - this.soleTenantOnly = soleTenantOnly; - return this; - } - - /** - * Output only. [Output Only] Current state of this License Code. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] Current state of this License Code. - * @param state state or {@code null} for none - */ - public LicenseCode setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] If true, the license will remain attached when creating images or - * snapshots from disks. Otherwise, the license is not transferred. - * @return value or {@code null} for none - */ - public java.lang.Boolean getTransferable() { - return transferable; - } - - /** - * Output only. [Output Only] If true, the license will remain attached when creating images or - * snapshots from disks. Otherwise, the license is not transferred. - * @param transferable transferable or {@code null} for none - */ - public LicenseCode setTransferable(java.lang.Boolean transferable) { - this.transferable = transferable; - return this; - } - - /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateTimestamp() { - return updateTimestamp; - } - - /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. - * @param updateTimestamp updateTimestamp or {@code null} for none - */ - public LicenseCode setUpdateTimestamp(java.lang.String updateTimestamp) { - this.updateTimestamp = updateTimestamp; - return this; - } - - @Override - public LicenseCode set(String fieldName, Object value) { - return (LicenseCode) super.set(fieldName, value); - } - - @Override - public LicenseCode clone() { - return (LicenseCode) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCodeLicenseAlias.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCodeLicenseAlias.java deleted file mode 100644 index 6541f7d34a0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseCodeLicenseAlias.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for LicenseCodeLicenseAlias. - * - *

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 LicenseCodeLicenseAlias extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Description of this License Code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] URL of license corresponding to this License Code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Output only. [Output Only] Description of this License Code. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] Description of this License Code. - * @param description description or {@code null} for none - */ - public LicenseCodeLicenseAlias setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] URL of license corresponding to this License Code. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] URL of license corresponding to this License Code. - * @param selfLink selfLink or {@code null} for none - */ - public LicenseCodeLicenseAlias setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public LicenseCodeLicenseAlias set(String fieldName, Object value) { - return (LicenseCodeLicenseAlias) super.set(fieldName, value); - } - - @Override - public LicenseCodeLicenseAlias clone() { - return (LicenseCodeLicenseAlias) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseParams.java deleted file mode 100644 index 8a1b90648a7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional license params. - * - *

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 LicenseParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the license. Tag keys and values have the same - * definition as resource manager tags. Keys and values can be either in numeric format, such as - * `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public LicenseParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public LicenseParams set(String fieldName, Object value) { - return (LicenseParams) super.set(fieldName, value); - } - - @Override - public LicenseParams clone() { - return (LicenseParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceCommitment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceCommitment.java deleted file mode 100644 index 58b300c9ac7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceCommitment.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Commitment for a particular license 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 LicenseResourceCommitment extends com.google.api.client.json.GenericJson { - - /** - * The number of licenses you plan to purchase. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long amount; - - /** - * The number of cores per license. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String coresPerLicense; - - /** - * The applicable license URI. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String license; - - /** - * The number of licenses you plan to purchase. - * @return value or {@code null} for none - */ - public java.lang.Long getAmount() { - return amount; - } - - /** - * The number of licenses you plan to purchase. - * @param amount amount or {@code null} for none - */ - public LicenseResourceCommitment setAmount(java.lang.Long amount) { - this.amount = amount; - return this; - } - - /** - * The number of cores per license. - * @return value or {@code null} for none - */ - public java.lang.String getCoresPerLicense() { - return coresPerLicense; - } - - /** - * The number of cores per license. - * @param coresPerLicense coresPerLicense or {@code null} for none - */ - public LicenseResourceCommitment setCoresPerLicense(java.lang.String coresPerLicense) { - this.coresPerLicense = coresPerLicense; - return this; - } - - /** - * The applicable license URI. - * @return value or {@code null} for none - */ - public java.lang.String getLicense() { - return license; - } - - /** - * The applicable license URI. - * @param license license or {@code null} for none - */ - public LicenseResourceCommitment setLicense(java.lang.String license) { - this.license = license; - return this; - } - - @Override - public LicenseResourceCommitment set(String fieldName, Object value) { - return (LicenseResourceCommitment) super.set(fieldName, value); - } - - @Override - public LicenseResourceCommitment clone() { - return (LicenseResourceCommitment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceRequirements.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceRequirements.java deleted file mode 100644 index f08f5b28520..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicenseResourceRequirements.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for LicenseResourceRequirements. - * - *

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 LicenseResourceRequirements extends com.google.api.client.json.GenericJson { - - /** - * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus - * required to use the Instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minGuestCpuCount; - - /** - * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the - * Instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minMemoryMb; - - /** - * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus - * required to use the Instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinGuestCpuCount() { - return minGuestCpuCount; - } - - /** - * [Input Only] Deprecated. This field no longer reflects the minimum number of guest cpus - * required to use the Instance. - * @param minGuestCpuCount minGuestCpuCount or {@code null} for none - */ - public LicenseResourceRequirements setMinGuestCpuCount(java.lang.Integer minGuestCpuCount) { - this.minGuestCpuCount = minGuestCpuCount; - return this; - } - - /** - * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the - * Instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinMemoryMb() { - return minMemoryMb; - } - - /** - * [Input Only] Deprecated. This field no longer reflects the minimum memory required to use the - * Instance. - * @param minMemoryMb minMemoryMb or {@code null} for none - */ - public LicenseResourceRequirements setMinMemoryMb(java.lang.Integer minMemoryMb) { - this.minMemoryMb = minMemoryMb; - return this; - } - - @Override - public LicenseResourceRequirements set(String fieldName, Object value) { - return (LicenseResourceRequirements) super.set(fieldName, value); - } - - @Override - public LicenseResourceRequirements clone() { - return (LicenseResourceRequirements) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicensesListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicensesListResponse.java deleted file mode 100644 index bd2e44415f3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LicensesListResponse.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for LicensesListResponse. - * - *

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 LicensesListResponse extends com.google.api.client.json.GenericJson { - - /** - * [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 License 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 License 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(License.class); - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 LicensesListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of License resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of License resources. - * @param items items or {@code null} for none - */ - public LicensesListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public LicensesListResponse 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 LicensesListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 LicensesListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public LicensesListResponse set(String fieldName, Object value) { - return (LicensesListResponse) super.set(fieldName, value); - } - - @Override - public LicensesListResponse clone() { - return (LicensesListResponse) 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 LicensesListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ListInstantSnapshotGroups.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ListInstantSnapshotGroups.java deleted file mode 100644 index 4b3a1ae3d9e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ListInstantSnapshotGroups.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of InstantSnapshotGroup resources. - * - *

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 ListInstantSnapshotGroups extends com.google.api.client.json.GenericJson { - - /** - * 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 InstantSnapshotGroup 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 InstantSnapshotGroup 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(InstantSnapshotGroup.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public ListInstantSnapshotGroups 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 ListInstantSnapshotGroups setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstantSnapshotGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstantSnapshotGroup resources. - * @param items items or {@code null} for none - */ - public ListInstantSnapshotGroups setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ListInstantSnapshotGroups setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ListInstantSnapshotGroups 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 ListInstantSnapshotGroups setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public ListInstantSnapshotGroups 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 ListInstantSnapshotGroups setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ListInstantSnapshotGroups set(String fieldName, Object value) { - return (ListInstantSnapshotGroups) super.set(fieldName, value); - } - - @Override - public ListInstantSnapshotGroups clone() { - return (ListInstantSnapshotGroups) 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 ListInstantSnapshotGroupsWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/LocalDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalDisk.java deleted file mode 100644 index ea1c2fb6d40..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalDisk.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for LocalDisk. - * - *

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 LocalDisk extends com.google.api.client.json.GenericJson { - - /** - * Specifies the number of such disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer diskCount; - - /** - * Specifies the size of the disk in base-2 GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer diskSizeGb; - - /** - * Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: - * local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its - * URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diskType; - - /** - * Specifies the number of such disks. - * @return value or {@code null} for none - */ - public java.lang.Integer getDiskCount() { - return diskCount; - } - - /** - * Specifies the number of such disks. - * @param diskCount diskCount or {@code null} for none - */ - public LocalDisk setDiskCount(java.lang.Integer diskCount) { - this.diskCount = diskCount; - return this; - } - - /** - * Specifies the size of the disk in base-2 GB. - * @return value or {@code null} for none - */ - public java.lang.Integer getDiskSizeGb() { - return diskSizeGb; - } - - /** - * Specifies the size of the disk in base-2 GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public LocalDisk setDiskSizeGb(java.lang.Integer diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: - * local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its - * URL. - * @return value or {@code null} for none - */ - public java.lang.String getDiskType() { - return diskType; - } - - /** - * Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: - * local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its - * URL. - * @param diskType diskType or {@code null} for none - */ - public LocalDisk setDiskType(java.lang.String diskType) { - this.diskType = diskType; - return this; - } - - @Override - public LocalDisk set(String fieldName, Object value) { - return (LocalDisk) super.set(fieldName, value); - } - - @Override - public LocalDisk clone() { - return (LocalDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalizedMessage.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalizedMessage.java deleted file mode 100644 index 37dcc929a96..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocalizedMessage.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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.preview.model; - -/** - * Provides a localized error message that is safe to return to the user which can be attached to an - * RPC error. - * - *

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 LocalizedMessage extends com.google.api.client.json.GenericJson { - - /** - * The locale used following the specification defined at https://www.rfc- - * editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locale; - - /** - * The localized error message in the above locale. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * The locale used following the specification defined at https://www.rfc- - * editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" - * @return value or {@code null} for none - */ - public java.lang.String getLocale() { - return locale; - } - - /** - * The locale used following the specification defined at https://www.rfc- - * editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" - * @param locale locale or {@code null} for none - */ - public LocalizedMessage setLocale(java.lang.String locale) { - this.locale = locale; - return this; - } - - /** - * The localized error message in the above locale. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * The localized error message in the above locale. - * @param message message or {@code null} for none - */ - public LocalizedMessage setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public LocalizedMessage set(String fieldName, Object value) { - return (LocalizedMessage) super.set(fieldName, value); - } - - @Override - public LocalizedMessage clone() { - return (LocalizedMessage) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicy.java deleted file mode 100644 index b9c06ad4d47..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicy.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration for location policy among multiple possible locations (e.g. preferences for zone - * selection among zones in a single region). - * - *

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 LocationPolicy extends com.google.api.client.json.GenericJson { - - /** - * Location configurations mapped by location name. Currently only zone names are supported and - * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert - * operation doesn't create instances in an AI zone, even if an AI zone is available in the - * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine - * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. - * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To - * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map locations; - - /** - * Strategy for distributing VMs across zones in a region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetShape; - - /** - * The bulkInsert operation applies any preferences set in the locations field to the specific - * zones listed in the zones field if the same zones are specified in both fields. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * Location configurations mapped by location name. Currently only zone names are supported and - * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert - * operation doesn't create instances in an AI zone, even if an AI zone is available in the - * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine - * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. - * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To - * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. - * @return value or {@code null} for none - */ - public java.util.Map getLocations() { - return locations; - } - - /** - * Location configurations mapped by location name. Currently only zone names are supported and - * must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert - * operation doesn't create instances in an AI zone, even if an AI zone is available in the - * specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine - * will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. - * Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To - * include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field. - * @param locations locations or {@code null} for none - */ - public LocationPolicy setLocations(java.util.Map locations) { - this.locations = locations; - return this; - } - - /** - * Strategy for distributing VMs across zones in a region. - * @return value or {@code null} for none - */ - public java.lang.String getTargetShape() { - return targetShape; - } - - /** - * Strategy for distributing VMs across zones in a region. - * @param targetShape targetShape or {@code null} for none - */ - public LocationPolicy setTargetShape(java.lang.String targetShape) { - this.targetShape = targetShape; - return this; - } - - /** - * The bulkInsert operation applies any preferences set in the locations field to the specific - * zones listed in the zones field if the same zones are specified in both fields. - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * The bulkInsert operation applies any preferences set in the locations field to the specific - * zones listed in the zones field if the same zones are specified in both fields. - * @param zones zones or {@code null} for none - */ - public LocationPolicy setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public LocationPolicy set(String fieldName, Object value) { - return (LocationPolicy) super.set(fieldName, value); - } - - @Override - public LocationPolicy clone() { - return (LocationPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocation.java deleted file mode 100644 index fd1f8b56e11..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for LocationPolicyLocation. - * - *

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 LocationPolicyLocation extends com.google.api.client.json.GenericJson { - - /** - * Constraints that the caller requires on the result distribution in this zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocationPolicyLocationConstraints constraints; - - /** - * Preference for a given location. Set to either ALLOW orDENY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String preference; - - /** - * Constraints that the caller requires on the result distribution in this zone. - * @return value or {@code null} for none - */ - public LocationPolicyLocationConstraints getConstraints() { - return constraints; - } - - /** - * Constraints that the caller requires on the result distribution in this zone. - * @param constraints constraints or {@code null} for none - */ - public LocationPolicyLocation setConstraints(LocationPolicyLocationConstraints constraints) { - this.constraints = constraints; - return this; - } - - /** - * Preference for a given location. Set to either ALLOW orDENY. - * @return value or {@code null} for none - */ - public java.lang.String getPreference() { - return preference; - } - - /** - * Preference for a given location. Set to either ALLOW orDENY. - * @param preference preference or {@code null} for none - */ - public LocationPolicyLocation setPreference(java.lang.String preference) { - this.preference = preference; - return this; - } - - @Override - public LocationPolicyLocation set(String fieldName, Object value) { - return (LocationPolicyLocation) super.set(fieldName, value); - } - - @Override - public LocationPolicyLocation clone() { - return (LocationPolicyLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocationConstraints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocationConstraints.java deleted file mode 100644 index 090dc90d306..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyLocationConstraints.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Per-zone constraints on location policy for this zone. - * - *

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 LocationPolicyLocationConstraints extends com.google.api.client.json.GenericJson { - - /** - * Maximum number of items that are allowed to be placed in this zone. The value must be non- - * negative. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxCount; - - /** - * Maximum number of items that are allowed to be placed in this zone. The value must be non- - * negative. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxCount() { - return maxCount; - } - - /** - * Maximum number of items that are allowed to be placed in this zone. The value must be non- - * negative. - * @param maxCount maxCount or {@code null} for none - */ - public LocationPolicyLocationConstraints setMaxCount(java.lang.Integer maxCount) { - this.maxCount = maxCount; - return this; - } - - @Override - public LocationPolicyLocationConstraints set(String fieldName, Object value) { - return (LocationPolicyLocationConstraints) super.set(fieldName, value); - } - - @Override - public LocationPolicyLocationConstraints clone() { - return (LocationPolicyLocationConstraints) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyZoneConfiguration.java deleted file mode 100644 index 94e21185cd3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/LocationPolicyZoneConfiguration.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for LocationPolicyZoneConfiguration. - * - *

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 LocationPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { - - /** - * The URL of the zone. The zone must exist in the region where the request is called. Zones must - * be represented as valid partial URLs, such as zones/us-central1-a. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * The URL of the zone. The zone must exist in the region where the request is called. Zones must - * be represented as valid partial URLs, such as zones/us-central1-a. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The URL of the zone. The zone must exist in the region where the request is called. Zones must - * be represented as valid partial URLs, such as zones/us-central1-a. - * @param zone zone or {@code null} for none - */ - public LocationPolicyZoneConfiguration setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public LocationPolicyZoneConfiguration set(String fieldName, Object value) { - return (LocationPolicyZoneConfiguration) super.set(fieldName, value); - } - - @Override - public LocationPolicyZoneConfiguration clone() { - return (LocationPolicyZoneConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImage.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImage.java deleted file mode 100644 index 2e73f524243..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImage.java +++ /dev/null @@ -1,678 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a machine image resource. - * - * A machine image is a Compute Engine resource that stores all the configuration, metadata, - * permissions, and data from one or more disks required to create a Virtual machine (VM) instance. - * For more information, seeMachine images. - * - *

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 MachineImage extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Input Only] Whether to attempt an application consistent machine image by informing the OS to - * prepare for the snapshot process. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean guestFlush; - - /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. - * 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] Properties of source instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceProperties instanceProperties; - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this machine image, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this machine image. These can be later modified by the setLabels method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Encrypts the machine image using acustomer-supplied encryption key. - * - * After you encrypt a machine image using a customer-supplied key, you must provide the same key - * if you use the machine image later. For example, you must provide the encryption key when you - * create an instance from the encrypted machine image in a future request. - * - * Customer-supplied encryption keys do not protect access to metadata of the machine image. - * - * If you do not provide an encryption key when creating the machine image, then the machine image - * will be encrypted using an automatically generated key and you do not need to provide a key to - * use the machine image later. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey machineImageEncryptionKey; - - /** - * Name of the resource; provided by the client 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; - - /** - * Input only. [Input Only] Additional parameters that are passed in the request, but are not - * persisted in the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private MachineImageParams params; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List savedDisks; - - /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. - * Required if the source disk is protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceDiskEncryptionKeys; - - /** - * The source instance used to create the machine image. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstance; - - /** - * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source - * instance related properties. New properties will not be added to this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SourceInstanceProperties sourceInstanceProperties; - - /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The regional or multi-regional Cloud Storage bucket location where themachine image is stored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List storageLocations; - - /** - * Output only. [Output Only] Total size of the storage used by the machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalStorageBytes; - - /** - * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public MachineImage setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public MachineImage setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Input Only] Whether to attempt an application consistent machine image by informing the OS to - * prepare for the snapshot process. - * @return value or {@code null} for none - */ - public java.lang.Boolean getGuestFlush() { - return guestFlush; - } - - /** - * [Input Only] Whether to attempt an application consistent machine image by informing the OS to - * prepare for the snapshot process. - * @param guestFlush guestFlush or {@code null} for none - */ - public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { - this.guestFlush = guestFlush; - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. - * @param id id or {@code null} for none - */ - public MachineImage setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * [Output Only] Properties of source instance - * @return value or {@code null} for none - */ - public InstanceProperties getInstanceProperties() { - return instanceProperties; - } - - /** - * [Output Only] Properties of source instance - * @param instanceProperties instanceProperties or {@code null} for none - */ - public MachineImage setInstanceProperties(InstanceProperties instanceProperties) { - this.instanceProperties = instanceProperties; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. - * @param kind kind or {@code null} for none - */ - public MachineImage setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this machine image, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the machine image. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this machine image, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the machine image. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this machine image, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the machine image. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public MachineImage setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this machine image, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the machine image. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public MachineImage encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this machine image. These can be later modified by the setLabels method. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this machine image. These can be later modified by the setLabels method. - * @param labels labels or {@code null} for none - */ - public MachineImage setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Encrypts the machine image using acustomer-supplied encryption key. - * - * After you encrypt a machine image using a customer-supplied key, you must provide the same key - * if you use the machine image later. For example, you must provide the encryption key when you - * create an instance from the encrypted machine image in a future request. - * - * Customer-supplied encryption keys do not protect access to metadata of the machine image. - * - * If you do not provide an encryption key when creating the machine image, then the machine image - * will be encrypted using an automatically generated key and you do not need to provide a key to - * use the machine image later. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getMachineImageEncryptionKey() { - return machineImageEncryptionKey; - } - - /** - * Encrypts the machine image using acustomer-supplied encryption key. - * - * After you encrypt a machine image using a customer-supplied key, you must provide the same key - * if you use the machine image later. For example, you must provide the encryption key when you - * create an instance from the encrypted machine image in a future request. - * - * Customer-supplied encryption keys do not protect access to metadata of the machine image. - * - * If you do not provide an encryption key when creating the machine image, then the machine image - * will be encrypted using an automatically generated key and you do not need to provide a key to - * use the machine image later. - * @param machineImageEncryptionKey machineImageEncryptionKey or {@code null} for none - */ - public MachineImage setMachineImageEncryptionKey(CustomerEncryptionKey machineImageEncryptionKey) { - this.machineImageEncryptionKey = machineImageEncryptionKey; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 MachineImage setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. [Input Only] Additional parameters that are passed in the request, but are not - * persisted in the resource. - * @return value or {@code null} for none - */ - public MachineImageParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional parameters that are passed in the request, but are not - * persisted in the resource. - * @param params params or {@code null} for none - */ - public MachineImage setParams(MachineImageParams params) { - this.params = params; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - return this; - } - - /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance - * @return value or {@code null} for none - */ - public java.util.List getSavedDisks() { - return savedDisks; - } - - /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance - * @param savedDisks savedDisks or {@code null} for none - */ - public MachineImage setSavedDisks(java.util.List savedDisks) { - this.savedDisks = savedDisks; - return this; - } - - /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. - * @param selfLink selfLink or {@code null} for none - */ - public MachineImage setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. - * Required if the source disk is protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public java.util.List getSourceDiskEncryptionKeys() { - return sourceDiskEncryptionKeys; - } - - /** - * [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. - * Required if the source disk is protected by a customer-supplied encryption key. - * @param sourceDiskEncryptionKeys sourceDiskEncryptionKeys or {@code null} for none - */ - public MachineImage setSourceDiskEncryptionKeys(java.util.List sourceDiskEncryptionKeys) { - this.sourceDiskEncryptionKeys = sourceDiskEncryptionKeys; - return this; - } - - /** - * The source instance used to create the machine image. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstance() { - return sourceInstance; - } - - /** - * The source instance used to create the machine image. You can provide this as a partial or full - * URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - * @param sourceInstance sourceInstance or {@code null} for none - */ - public MachineImage setSourceInstance(java.lang.String sourceInstance) { - this.sourceInstance = sourceInstance; - return this; - } - - /** - * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source - * instance related properties. New properties will not be added to this field. - * @return value or {@code null} for none - */ - public SourceInstanceProperties getSourceInstanceProperties() { - return sourceInstanceProperties; - } - - /** - * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source - * instance related properties. New properties will not be added to this field. - * @param sourceInstanceProperties sourceInstanceProperties or {@code null} for none - */ - public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceInstanceProperties) { - this.sourceInstanceProperties = sourceInstanceProperties; - return this; - } - - /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. - * @param status status or {@code null} for none - */ - public MachineImage setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * The regional or multi-regional Cloud Storage bucket location where themachine image is stored. - * @return value or {@code null} for none - */ - public java.util.List getStorageLocations() { - return storageLocations; - } - - /** - * The regional or multi-regional Cloud Storage bucket location where themachine image is stored. - * @param storageLocations storageLocations or {@code null} for none - */ - public MachineImage setStorageLocations(java.util.List storageLocations) { - this.storageLocations = storageLocations; - return this; - } - - /** - * Output only. [Output Only] Total size of the storage used by the machine image. - * @return value or {@code null} for none - */ - public java.lang.Long getTotalStorageBytes() { - return totalStorageBytes; - } - - /** - * Output only. [Output Only] Total size of the storage used by the machine image. - * @param totalStorageBytes totalStorageBytes or {@code null} for none - */ - public MachineImage setTotalStorageBytes(java.lang.Long totalStorageBytes) { - this.totalStorageBytes = totalStorageBytes; - return this; - } - - @Override - public MachineImage set(String fieldName, Object value) { - return (MachineImage) super.set(fieldName, value); - } - - @Override - public MachineImage clone() { - return (MachineImage) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageList.java deleted file mode 100644 index 13487c00dad..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of machine images. - * - *

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 MachineImageList extends com.google.api.client.json.GenericJson { - - /** - * [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 MachineImage 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 MachineImage 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(MachineImage.class); - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 MachineImageList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of MachineImage resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of MachineImage resources. - * @param items items or {@code null} for none - */ - public MachineImageList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. - * @param kind kind or {@code null} for none - */ - public MachineImageList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public MachineImageList 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 MachineImageList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 MachineImageList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public MachineImageList set(String fieldName, Object value) { - return (MachineImageList) super.set(fieldName, value); - } - - @Override - public MachineImageList clone() { - return (MachineImageList) 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 MachineImageListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageParams.java deleted file mode 100644 index cfecbae1bdb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineImageParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Machine Image parameters - * - *

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 MachineImageParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public MachineImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public MachineImageParams set(String fieldName, Object value) { - return (MachineImageParams) super.set(fieldName, value); - } - - @Override - public MachineImageParams clone() { - return (MachineImageParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineType.java deleted file mode 100644 index b285ef72071..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineType.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Machine Type resource. - * - * You can use specific machine types for your VM instances based on performance and pricing - * requirements. For more information, readMachine Types. - * - *

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 MachineType extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of accelerator configurations assigned to this machine type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List accelerators; - - static { - // hack to force ProGuard to consider Accelerators 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(Accelerators.class); - } - - /** - * [Output Only] The architecture of the machine type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * [Output Only] The configuration of bundled local SSD for the machine type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BundledLocalSsds bundledLocalSsds; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] The deprecation status associated with this machine type. Only applicable if the - * machine type is unavailable. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * [Output Only] An optional textual description of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] The number of virtual CPUs that are available to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer guestCpus; - - /** - * [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; - - /** - * [Deprecated] This property is deprecated and will never be populated with any relevant values. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer imageSpaceGb; - - /** - * [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine types for more - * information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isSharedCpu; - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Maximum persistent disks allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maximumPersistentDisks; - - /** - * [Output Only] Maximum total persistent disks size (GB) allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maximumPersistentDisksSizeGb; - - /** - * [Output Only] The amount of physical memory available to the instance, defined in MB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer memoryMb; - - /** - * [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [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] The name of the zone where the machine type resides, such as us-central1-a. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * [Output Only] A list of accelerator configurations assigned to this machine type. - * @return value or {@code null} for none - */ - public java.util.List getAccelerators() { - return accelerators; - } - - /** - * [Output Only] A list of accelerator configurations assigned to this machine type. - * @param accelerators accelerators or {@code null} for none - */ - public MachineType setAccelerators(java.util.List accelerators) { - this.accelerators = accelerators; - return this; - } - - /** - * [Output Only] The architecture of the machine type. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * [Output Only] The architecture of the machine type. - * @param architecture architecture or {@code null} for none - */ - public MachineType setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * [Output Only] The configuration of bundled local SSD for the machine type. - * @return value or {@code null} for none - */ - public BundledLocalSsds getBundledLocalSsds() { - return bundledLocalSsds; - } - - /** - * [Output Only] The configuration of bundled local SSD for the machine type. - * @param bundledLocalSsds bundledLocalSsds or {@code null} for none - */ - public MachineType setBundledLocalSsds(BundledLocalSsds bundledLocalSsds) { - this.bundledLocalSsds = bundledLocalSsds; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public MachineType setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] The deprecation status associated with this machine type. Only applicable if the - * machine type is unavailable. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * [Output Only] The deprecation status associated with this machine type. Only applicable if the - * machine type is unavailable. - * @param deprecated deprecated or {@code null} for none - */ - public MachineType setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * [Output Only] An optional textual description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * [Output Only] An optional textual description of the resource. - * @param description description or {@code null} for none - */ - public MachineType setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] The number of virtual CPUs that are available to the instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getGuestCpus() { - return guestCpus; - } - - /** - * [Output Only] The number of virtual CPUs that are available to the instance. - * @param guestCpus guestCpus or {@code null} for none - */ - public MachineType setGuestCpus(java.lang.Integer guestCpus) { - this.guestCpus = guestCpus; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public MachineType setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * [Deprecated] This property is deprecated and will never be populated with any relevant values. - * @return value or {@code null} for none - */ - public java.lang.Integer getImageSpaceGb() { - return imageSpaceGb; - } - - /** - * [Deprecated] This property is deprecated and will never be populated with any relevant values. - * @param imageSpaceGb imageSpaceGb or {@code null} for none - */ - public MachineType setImageSpaceGb(java.lang.Integer imageSpaceGb) { - this.imageSpaceGb = imageSpaceGb; - return this; - } - - /** - * [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine types for more - * information. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsSharedCpu() { - return isSharedCpu; - } - - /** - * [Output Only] Whether this machine type has a shared CPU. SeeShared-core machine types for more - * information. - * @param isSharedCpu isSharedCpu or {@code null} for none - */ - public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { - this.isSharedCpu = isSharedCpu; - return this; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. - * @param kind kind or {@code null} for none - */ - public MachineType setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Maximum persistent disks allowed. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaximumPersistentDisks() { - return maximumPersistentDisks; - } - - /** - * [Output Only] Maximum persistent disks allowed. - * @param maximumPersistentDisks maximumPersistentDisks or {@code null} for none - */ - public MachineType setMaximumPersistentDisks(java.lang.Integer maximumPersistentDisks) { - this.maximumPersistentDisks = maximumPersistentDisks; - return this; - } - - /** - * [Output Only] Maximum total persistent disks size (GB) allowed. - * @return value or {@code null} for none - */ - public java.lang.Long getMaximumPersistentDisksSizeGb() { - return maximumPersistentDisksSizeGb; - } - - /** - * [Output Only] Maximum total persistent disks size (GB) allowed. - * @param maximumPersistentDisksSizeGb maximumPersistentDisksSizeGb or {@code null} for none - */ - public MachineType setMaximumPersistentDisksSizeGb(java.lang.Long maximumPersistentDisksSizeGb) { - this.maximumPersistentDisksSizeGb = maximumPersistentDisksSizeGb; - return this; - } - - /** - * [Output Only] The amount of physical memory available to the instance, defined in MB. - * @return value or {@code null} for none - */ - public java.lang.Integer getMemoryMb() { - return memoryMb; - } - - /** - * [Output Only] The amount of physical memory available to the instance, defined in MB. - * @param memoryMb memoryMb or {@code null} for none - */ - public MachineType setMemoryMb(java.lang.Integer memoryMb) { - this.memoryMb = memoryMb; - return this; - } - - /** - * [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public MachineType setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public MachineType setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] The name of the zone where the machine type resides, such as us-central1-a. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * [Output Only] The name of the zone where the machine type resides, such as us-central1-a. - * @param zone zone or {@code null} for none - */ - public MachineType setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public MachineType set(String fieldName, Object value) { - return (MachineType) super.set(fieldName, value); - } - - @Override - public MachineType clone() { - return (MachineType) super.clone(); - } - - /** - * Model definition for MachineTypeAccelerators. - */ - public static final class Accelerators extends com.google.api.client.json.GenericJson { - - /** - * Number of accelerator cards exposed to the guest. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer guestAcceleratorCount; - - /** - * The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String guestAcceleratorType; - - /** - * Number of accelerator cards exposed to the guest. - * @return value or {@code null} for none - */ - public java.lang.Integer getGuestAcceleratorCount() { - return guestAcceleratorCount; - } - - /** - * Number of accelerator cards exposed to the guest. - * @param guestAcceleratorCount guestAcceleratorCount or {@code null} for none - */ - public Accelerators setGuestAcceleratorCount(java.lang.Integer guestAcceleratorCount) { - this.guestAcceleratorCount = guestAcceleratorCount; - return this; - } - - /** - * The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. - * @return value or {@code null} for none - */ - public java.lang.String getGuestAcceleratorType() { - return guestAcceleratorType; - } - - /** - * The accelerator type resource name, not a full URL, e.g.nvidia-tesla-t4. - * @param guestAcceleratorType guestAcceleratorType or {@code null} for none - */ - public Accelerators setGuestAcceleratorType(java.lang.String guestAcceleratorType) { - this.guestAcceleratorType = guestAcceleratorType; - return this; - } - - @Override - public Accelerators set(String fieldName, Object value) { - return (Accelerators) super.set(fieldName, value); - } - - @Override - public Accelerators clone() { - return (Accelerators) super.clone(); - } - - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeAggregatedList.java deleted file mode 100644 index 1675756c426..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for MachineTypeAggregatedList. - * - *

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 MachineTypeAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 MachineTypesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for - * aggregated lists of machine types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 MachineTypeAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of MachineTypesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of MachineTypesScopedList resources. - * @param items items or {@code null} for none - */ - public MachineTypeAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for - * aggregated lists of machine types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for - * aggregated lists of machine types. - * @param kind kind or {@code null} for none - */ - public MachineTypeAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public MachineTypeAggregatedList 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 MachineTypeAggregatedList 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 MachineTypeAggregatedList 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 MachineTypeAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public MachineTypeAggregatedList set(String fieldName, Object value) { - return (MachineTypeAggregatedList) super.set(fieldName, value); - } - - @Override - public MachineTypeAggregatedList clone() { - return (MachineTypeAggregatedList) 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 MachineTypeAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeList.java deleted file mode 100644 index 467984501b9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypeList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of machine types. - * - *

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 MachineTypeList extends com.google.api.client.json.GenericJson { - - /** - * [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 MachineType 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 MachineType 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(MachineType.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 MachineTypeList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of MachineType resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of MachineType resources. - * @param items items or {@code null} for none - */ - public MachineTypeList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. - * @param kind kind or {@code null} for none - */ - public MachineTypeList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public MachineTypeList 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 MachineTypeList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 MachineTypeList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public MachineTypeList set(String fieldName, Object value) { - return (MachineTypeList) super.set(fieldName, value); - } - - @Override - public MachineTypeList clone() { - return (MachineTypeList) 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 MachineTypeListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypesScopedList.java deleted file mode 100644 index 91c21b0d1a6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MachineTypesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for MachineTypesScopedList. - * - *

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 MachineTypesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of machine types contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List machineTypes; - - static { - // hack to force ProGuard to consider MachineType 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(MachineType.class); - } - - /** - * [Output Only] An informational warning that appears when the machine types list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of machine types contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getMachineTypes() { - return machineTypes; - } - - /** - * [Output Only] A list of machine types contained in this scope. - * @param machineTypes machineTypes or {@code null} for none - */ - public MachineTypesScopedList setMachineTypes(java.util.List machineTypes) { - this.machineTypes = machineTypes; - return this; - } - - /** - * [Output Only] An informational warning that appears when the machine types list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] An informational warning that appears when the machine types list is empty. - * @param warning warning or {@code null} for none - */ - public MachineTypesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public MachineTypesScopedList set(String fieldName, Object value) { - return (MachineTypesScopedList) super.set(fieldName, value); - } - - @Override - public MachineTypesScopedList clone() { - return (MachineTypesScopedList) super.clone(); - } - - /** - * [Output Only] An informational warning that appears when the machine types list is empty. - */ - 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 MachineTypesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstance.java deleted file mode 100644 index eaf7f59d41f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstance.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * 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.preview.model; - -/** - * A Managed Instance 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 ManagedInstance extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The current action that the managed instance group has scheduled for - * the instance. Possible values: - NONE The instance is running, and the managed - * instance group does not have any scheduled actions for this instance. - CREATING The managed - * instance group is creating this instance. If the group fails to create this instance, it - * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance - * group is attempting to create this instance only once. If the group fails to create this - * instance, it does not try again and the group'stargetSize value is decreased instead. - - * RECREATING The managed instance group is recreating this instance. - DELETING The managed - * instance group is permanently deleting this instance. - ABANDONING The managed instance - * group is abandoning this instance. The instance will be removed from the instance group - * and from any target pools that are associated with this group. - RESTARTING The managed - * instance group is restarting the instance. - REFRESHING The managed instance group is - * applying configuration changes to the instance without stopping it. For example, the - * group can update the target pool list for an instance without stopping that instance. - - * VERIFYING The managed instance group has created the instance and it is in the process of - * being verified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String currentAction; - - /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. - * 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] The URL of the instance. The URL can exist even if the instance has - * not yet been created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * Output only. [Output Only] Health state of the instance per health-check. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceHealth; - - /** - * Output only. [Output Only] The status of the instance. This field is empty when the instance - * does not exist. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceStatus; - - /** - * Output only. [Output Only] Information about the last attempt to create or delete the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ManagedInstanceLastAttempt lastAttempt; - - /** - * Output only. [Output Only] The name of the instance. The name always exists even if the - * instance has not yet been created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] Preserved state applied from per-instance config for this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreservedState preservedStateFromConfig; - - /** - * Output only. [Output Only] Preserved state generated based on stateful policy for this - * instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreservedState preservedStateFromPolicy; - - /** - * Output only. [Output Only] Instance properties selected for this instance resulting from - * InstanceFlexibilityPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; - - /** - * Output only. Information about the termination timestamp of the instance, if applicable. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ManagedInstanceScheduling scheduling; - - /** - * Output only. Specifies the graceful shutdown details if the instance is in `PENDING_STOP` state - * or there is a programmed stop scheduled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ManagedInstanceShutdownDetails shutdownDetails; - - /** - * Output only. The eventual status of the instance. The instance group manager will not be - * identified as stable till each managed instance reaches its targetStatus. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetStatus; - - /** - * Output only. [Output Only] Intended version of this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ManagedInstanceVersion version; - - /** - * Output only. [Output Only] The current action that the managed instance group has scheduled for - * the instance. Possible values: - NONE The instance is running, and the managed - * instance group does not have any scheduled actions for this instance. - CREATING The managed - * instance group is creating this instance. If the group fails to create this instance, it - * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance - * group is attempting to create this instance only once. If the group fails to create this - * instance, it does not try again and the group'stargetSize value is decreased instead. - - * RECREATING The managed instance group is recreating this instance. - DELETING The managed - * instance group is permanently deleting this instance. - ABANDONING The managed instance - * group is abandoning this instance. The instance will be removed from the instance group - * and from any target pools that are associated with this group. - RESTARTING The managed - * instance group is restarting the instance. - REFRESHING The managed instance group is - * applying configuration changes to the instance without stopping it. For example, the - * group can update the target pool list for an instance without stopping that instance. - - * VERIFYING The managed instance group has created the instance and it is in the process of - * being verified. - * @return value or {@code null} for none - */ - public java.lang.String getCurrentAction() { - return currentAction; - } - - /** - * Output only. [Output Only] The current action that the managed instance group has scheduled for - * the instance. Possible values: - NONE The instance is running, and the managed - * instance group does not have any scheduled actions for this instance. - CREATING The managed - * instance group is creating this instance. If the group fails to create this instance, it - * will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance - * group is attempting to create this instance only once. If the group fails to create this - * instance, it does not try again and the group'stargetSize value is decreased instead. - - * RECREATING The managed instance group is recreating this instance. - DELETING The managed - * instance group is permanently deleting this instance. - ABANDONING The managed instance - * group is abandoning this instance. The instance will be removed from the instance group - * and from any target pools that are associated with this group. - RESTARTING The managed - * instance group is restarting the instance. - REFRESHING The managed instance group is - * applying configuration changes to the instance without stopping it. For example, the - * group can update the target pool list for an instance without stopping that instance. - - * VERIFYING The managed instance group has created the instance and it is in the process of - * being verified. - * @param currentAction currentAction or {@code null} for none - */ - public ManagedInstance setCurrentAction(java.lang.String currentAction) { - this.currentAction = currentAction; - return this; - } - - /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. - * @param id id or {@code null} for none - */ - public ManagedInstance setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has - * not yet been created. - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has - * not yet been created. - * @param instance instance or {@code null} for none - */ - public ManagedInstance setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** - * Output only. [Output Only] Health state of the instance per health-check. - * @return value or {@code null} for none - */ - public java.util.List getInstanceHealth() { - return instanceHealth; - } - - /** - * Output only. [Output Only] Health state of the instance per health-check. - * @param instanceHealth instanceHealth or {@code null} for none - */ - public ManagedInstance setInstanceHealth(java.util.List instanceHealth) { - this.instanceHealth = instanceHealth; - return this; - } - - /** - * Output only. [Output Only] The status of the instance. This field is empty when the instance - * does not exist. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceStatus() { - return instanceStatus; - } - - /** - * Output only. [Output Only] The status of the instance. This field is empty when the instance - * does not exist. - * @param instanceStatus instanceStatus or {@code null} for none - */ - public ManagedInstance setInstanceStatus(java.lang.String instanceStatus) { - this.instanceStatus = instanceStatus; - return this; - } - - /** - * Output only. [Output Only] Information about the last attempt to create or delete the instance. - * @return value or {@code null} for none - */ - public ManagedInstanceLastAttempt getLastAttempt() { - return lastAttempt; - } - - /** - * Output only. [Output Only] Information about the last attempt to create or delete the instance. - * @param lastAttempt lastAttempt or {@code null} for none - */ - public ManagedInstance setLastAttempt(ManagedInstanceLastAttempt lastAttempt) { - this.lastAttempt = lastAttempt; - return this; - } - - /** - * Output only. [Output Only] The name of the instance. The name always exists even if the - * instance has not yet been created. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of the instance. The name always exists even if the - * instance has not yet been created. - * @param name name or {@code null} for none - */ - public ManagedInstance setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Preserved state applied from per-instance config for this instance. - * @return value or {@code null} for none - */ - public PreservedState getPreservedStateFromConfig() { - return preservedStateFromConfig; - } - - /** - * Output only. [Output Only] Preserved state applied from per-instance config for this instance. - * @param preservedStateFromConfig preservedStateFromConfig or {@code null} for none - */ - public ManagedInstance setPreservedStateFromConfig(PreservedState preservedStateFromConfig) { - this.preservedStateFromConfig = preservedStateFromConfig; - return this; - } - - /** - * Output only. [Output Only] Preserved state generated based on stateful policy for this - * instance. - * @return value or {@code null} for none - */ - public PreservedState getPreservedStateFromPolicy() { - return preservedStateFromPolicy; - } - - /** - * Output only. [Output Only] Preserved state generated based on stateful policy for this - * instance. - * @param preservedStateFromPolicy preservedStateFromPolicy or {@code null} for none - */ - public ManagedInstance setPreservedStateFromPolicy(PreservedState preservedStateFromPolicy) { - this.preservedStateFromPolicy = preservedStateFromPolicy; - return this; - } - - /** - * Output only. [Output Only] Instance properties selected for this instance resulting from - * InstanceFlexibilityPolicy. - * @return value or {@code null} for none - */ - public ManagedInstancePropertiesFromFlexibilityPolicy getPropertiesFromFlexibilityPolicy() { - return propertiesFromFlexibilityPolicy; - } - - /** - * Output only. [Output Only] Instance properties selected for this instance resulting from - * InstanceFlexibilityPolicy. - * @param propertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy or {@code null} for none - */ - public ManagedInstance setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy) { - this.propertiesFromFlexibilityPolicy = propertiesFromFlexibilityPolicy; - return this; - } - - /** - * Output only. Information about the termination timestamp of the instance, if applicable. - * @return value or {@code null} for none - */ - public ManagedInstanceScheduling getScheduling() { - return scheduling; - } - - /** - * Output only. Information about the termination timestamp of the instance, if applicable. - * @param scheduling scheduling or {@code null} for none - */ - public ManagedInstance setScheduling(ManagedInstanceScheduling scheduling) { - this.scheduling = scheduling; - return this; - } - - /** - * Output only. Specifies the graceful shutdown details if the instance is in `PENDING_STOP` state - * or there is a programmed stop scheduled. - * @return value or {@code null} for none - */ - public ManagedInstanceShutdownDetails getShutdownDetails() { - return shutdownDetails; - } - - /** - * Output only. Specifies the graceful shutdown details if the instance is in `PENDING_STOP` state - * or there is a programmed stop scheduled. - * @param shutdownDetails shutdownDetails or {@code null} for none - */ - public ManagedInstance setShutdownDetails(ManagedInstanceShutdownDetails shutdownDetails) { - this.shutdownDetails = shutdownDetails; - return this; - } - - /** - * Output only. The eventual status of the instance. The instance group manager will not be - * identified as stable till each managed instance reaches its targetStatus. - * @return value or {@code null} for none - */ - public java.lang.String getTargetStatus() { - return targetStatus; - } - - /** - * Output only. The eventual status of the instance. The instance group manager will not be - * identified as stable till each managed instance reaches its targetStatus. - * @param targetStatus targetStatus or {@code null} for none - */ - public ManagedInstance setTargetStatus(java.lang.String targetStatus) { - this.targetStatus = targetStatus; - return this; - } - - /** - * Output only. [Output Only] Intended version of this instance. - * @return value or {@code null} for none - */ - public ManagedInstanceVersion getVersion() { - return version; - } - - /** - * Output only. [Output Only] Intended version of this instance. - * @param version version or {@code null} for none - */ - public ManagedInstance setVersion(ManagedInstanceVersion version) { - this.version = version; - return this; - } - - @Override - public ManagedInstance set(String fieldName, Object value) { - return (ManagedInstance) super.set(fieldName, value); - } - - @Override - public ManagedInstance clone() { - return (ManagedInstance) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceInstanceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceInstanceHealth.java deleted file mode 100644 index 823aa80bf74..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceInstanceHealth.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ManagedInstanceInstanceHealth. - * - *

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 ManagedInstanceInstanceHealth extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The current detailed instance health state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String detailedHealthState; - - /** - * Output only. [Output Only] The URL for the health check that verifies whether the instance is - * healthy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** - * Output only. [Output Only] The current detailed instance health state. - * @return value or {@code null} for none - */ - public java.lang.String getDetailedHealthState() { - return detailedHealthState; - } - - /** - * Output only. [Output Only] The current detailed instance health state. - * @param detailedHealthState detailedHealthState or {@code null} for none - */ - public ManagedInstanceInstanceHealth setDetailedHealthState(java.lang.String detailedHealthState) { - this.detailedHealthState = detailedHealthState; - return this; - } - - /** - * Output only. [Output Only] The URL for the health check that verifies whether the instance is - * healthy. - * @return value or {@code null} for none - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** - * Output only. [Output Only] The URL for the health check that verifies whether the instance is - * healthy. - * @param healthCheck healthCheck or {@code null} for none - */ - public ManagedInstanceInstanceHealth setHealthCheck(java.lang.String healthCheck) { - this.healthCheck = healthCheck; - return this; - } - - @Override - public ManagedInstanceInstanceHealth set(String fieldName, Object value) { - return (ManagedInstanceInstanceHealth) super.set(fieldName, value); - } - - @Override - public ManagedInstanceInstanceHealth clone() { - return (ManagedInstanceInstanceHealth) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceLastAttempt.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceLastAttempt.java deleted file mode 100644 index 0950585e89c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceLastAttempt.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ManagedInstanceLastAttempt. - * - *

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 ManagedInstanceLastAttempt extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Encountered errors during the last attempt to create or delete the - * instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Errors errors; - - /** - * Output only. [Output Only] Encountered errors during the last attempt to create or delete the - * instance. - * @return value or {@code null} for none - */ - public Errors getErrors() { - return errors; - } - - /** - * Output only. [Output Only] Encountered errors during the last attempt to create or delete the - * instance. - * @param errors errors or {@code null} for none - */ - public ManagedInstanceLastAttempt setErrors(Errors errors) { - this.errors = errors; - return this; - } - - @Override - public ManagedInstanceLastAttempt set(String fieldName, Object value) { - return (ManagedInstanceLastAttempt) super.set(fieldName, value); - } - - @Override - public ManagedInstanceLastAttempt clone() { - return (ManagedInstanceLastAttempt) super.clone(); - } - - /** - * Output only. [Output Only] Encountered errors during the last attempt to create or delete the - * instance. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider ManagedInstanceLastAttemptErrorsErrors 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(ManagedInstanceLastAttemptErrorsErrors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Errors setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class ManagedInstanceLastAttemptErrorsErrors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public ManagedInstanceLastAttemptErrorsErrors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public ManagedInstanceLastAttemptErrorsErrors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public ManagedInstanceLastAttemptErrorsErrors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public ManagedInstanceLastAttemptErrorsErrors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public ManagedInstanceLastAttemptErrorsErrors set(String fieldName, Object value) { - return (ManagedInstanceLastAttemptErrorsErrors) super.set(fieldName, value); - } - - @Override - public ManagedInstanceLastAttemptErrorsErrors clone() { - return (ManagedInstanceLastAttemptErrorsErrors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstancePropertiesFromFlexibilityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstancePropertiesFromFlexibilityPolicy.java deleted file mode 100644 index c986a80b28a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstancePropertiesFromFlexibilityPolicy.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ManagedInstancePropertiesFromFlexibilityPolicy. - * - *

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 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}. - */ - @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 - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * Output only. The machine type to be used for this instance. - * @param machineType machineType or {@code null} for none - */ - public ManagedInstancePropertiesFromFlexibilityPolicy setMachineType(java.lang.String machineType) { - this.machineType = machineType; - 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); - } - - @Override - public ManagedInstancePropertiesFromFlexibilityPolicy clone() { - return (ManagedInstancePropertiesFromFlexibilityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceScheduling.java deleted file mode 100644 index f9e2518ba3b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceScheduling.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ManagedInstanceScheduling. - * - *

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 ManagedInstanceScheduling extends com.google.api.client.json.GenericJson { - - /** - * Output only. The timestamp at which the underlying instance will be triggered for graceful - * shutdown if it is configured. This is in RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String gracefulShutdownTimestamp; - - /** - * Output only. The timestamp at which the managed instance will be terminated. This is in RFC3339 - * text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String terminationTimestamp; - - /** - * Output only. The timestamp at which the underlying instance will be triggered for graceful - * shutdown if it is configured. This is in RFC3339 text format. - * @return value or {@code null} for none - */ - public String getGracefulShutdownTimestamp() { - return gracefulShutdownTimestamp; - } - - /** - * Output only. The timestamp at which the underlying instance will be triggered for graceful - * shutdown if it is configured. This is in RFC3339 text format. - * @param gracefulShutdownTimestamp gracefulShutdownTimestamp or {@code null} for none - */ - public ManagedInstanceScheduling setGracefulShutdownTimestamp(String gracefulShutdownTimestamp) { - this.gracefulShutdownTimestamp = gracefulShutdownTimestamp; - return this; - } - - /** - * Output only. The timestamp at which the managed instance will be terminated. This is in RFC3339 - * text format. - * @return value or {@code null} for none - */ - public String getTerminationTimestamp() { - return terminationTimestamp; - } - - /** - * Output only. The timestamp at which the managed instance will be terminated. This is in RFC3339 - * text format. - * @param terminationTimestamp terminationTimestamp or {@code null} for none - */ - public ManagedInstanceScheduling setTerminationTimestamp(String terminationTimestamp) { - this.terminationTimestamp = terminationTimestamp; - return this; - } - - @Override - public ManagedInstanceScheduling set(String fieldName, Object value) { - return (ManagedInstanceScheduling) super.set(fieldName, value); - } - - @Override - public ManagedInstanceScheduling clone() { - return (ManagedInstanceScheduling) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceShutdownDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceShutdownDetails.java deleted file mode 100644 index dd801b4f681..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceShutdownDetails.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ManagedInstanceShutdownDetails. - * - *

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 ManagedInstanceShutdownDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. The duration for graceful shutdown. Only applicable when the instance is in - * `PENDING_STOP` state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxDuration; - - /** - * Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of instance in - * RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String requestTimestamp; - - /** - * Output only. The duration for graceful shutdown. Only applicable when the instance is in - * `PENDING_STOP` state. - * @return value or {@code null} for none - */ - public Duration getMaxDuration() { - return maxDuration; - } - - /** - * Output only. The duration for graceful shutdown. Only applicable when the instance is in - * `PENDING_STOP` state. - * @param maxDuration maxDuration or {@code null} for none - */ - public ManagedInstanceShutdownDetails setMaxDuration(Duration maxDuration) { - this.maxDuration = maxDuration; - return this; - } - - /** - * Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of instance in - * RFC3339 text format. - * @return value or {@code null} for none - */ - public String getRequestTimestamp() { - return requestTimestamp; - } - - /** - * Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of instance in - * RFC3339 text format. - * @param requestTimestamp requestTimestamp or {@code null} for none - */ - public ManagedInstanceShutdownDetails setRequestTimestamp(String requestTimestamp) { - this.requestTimestamp = requestTimestamp; - return this; - } - - @Override - public ManagedInstanceShutdownDetails set(String fieldName, Object value) { - return (ManagedInstanceShutdownDetails) super.set(fieldName, value); - } - - @Override - public ManagedInstanceShutdownDetails clone() { - return (ManagedInstanceShutdownDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceVersion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceVersion.java deleted file mode 100644 index 2574dc6de64..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedInstanceVersion.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ManagedInstanceVersion. - * - *

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 ManagedInstanceVersion extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The intended template of the instance. This field is empty when - * current_action is one of { DELETING, ABANDONING }. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** - * Output only. [Output Only] Name of the version. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The intended template of the instance. This field is empty when - * current_action is one of { DELETING, ABANDONING }. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** - * Output only. [Output Only] The intended template of the instance. This field is empty when - * current_action is one of { DELETING, ABANDONING }. - * @param instanceTemplate instanceTemplate or {@code null} for none - */ - public ManagedInstanceVersion setInstanceTemplate(java.lang.String instanceTemplate) { - this.instanceTemplate = instanceTemplate; - return this; - } - - /** - * Output only. [Output Only] Name of the version. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] Name of the version. - * @param name name or {@code null} for none - */ - public ManagedInstanceVersion setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public ManagedInstanceVersion set(String fieldName, Object value) { - return (ManagedInstanceVersion) super.set(fieldName, value); - } - - @Override - public ManagedInstanceVersion clone() { - return (ManagedInstanceVersion) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRuleset.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRuleset.java deleted file mode 100644 index 0b977c9fbb8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRuleset.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRulesetList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRulesetList.java deleted file mode 100644 index 3c620252bff..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ManagedRulesetList.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * 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.preview.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/preview/2.0.0/com/google/api/services/compute/preview/model/Metadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Metadata.java deleted file mode 100644 index ea078a7ba12..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Metadata.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * 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.preview.model; - -/** - * A metadata key/value entry. - * - *

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 Metadata extends com.google.api.client.json.GenericJson { - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider Items 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(Items.class); - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public Metadata setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve the resource. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Metadata encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. - * @param items items or {@code null} for none - */ - public Metadata setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. - * @param kind kind or {@code null} for none - */ - public Metadata setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public Metadata set(String fieldName, Object value) { - return (Metadata) super.set(fieldName, value); - } - - @Override - public Metadata clone() { - return (Metadata) super.clone(); - } - - /** - * Metadata - */ - public static final class Items extends com.google.api.client.json.GenericJson { - - /** - * Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be - * less than 128 bytes in length. This is reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the - * project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Value for the metadata entry. These are free-form strings, and only have meaning as interpreted - * by the image running in the instance. The only restriction placed on values is that their size - * must be less than or equal to 262144 bytes (256 KiB). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be - * less than 128 bytes in length. This is reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the - * project. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be - * less than 128 bytes in length. This is reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the - * project. - * @param key key or {@code null} for none - */ - public Items setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Value for the metadata entry. These are free-form strings, and only have meaning as interpreted - * by the image running in the instance. The only restriction placed on values is that their size - * must be less than or equal to 262144 bytes (256 KiB). - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * Value for the metadata entry. These are free-form strings, and only have meaning as interpreted - * by the image running in the instance. The only restriction placed on values is that their size - * must be less than or equal to 262144 bytes (256 KiB). - * @param value value or {@code null} for none - */ - public Items setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public Items set(String fieldName, Object value) { - return (Items) super.set(fieldName, value); - } - - @Override - public Items clone() { - return (Items) super.clone(); - } - - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilter.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilter.java deleted file mode 100644 index cdcf409cf3b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilter.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Opaque filter criteria used by load balancers to restrict routing configuration to a limited set - * of load balancing proxies. Proxies and sidecars involved in load balancing would typically - * present metadata to the load balancers that need to match criteria specified here. If a match - * takes place, the relevant configuration is made available to those proxies. - * - * For each metadataFilter in this list, if itsfilterMatchCriteria is set to MATCH_ANY, at least one - * of thefilterLabels must match the corresponding label provided in the metadata. If its - * filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with - * corresponding labels provided in the metadata. - * - * An example for using metadataFilters would be: if load balancing involves Envoys, they receive - * routing configuration when values inmetadataFilters match values supplied in of their XDS - * requests to loadbalancers. - * - *

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 MetadataFilter extends com.google.api.client.json.GenericJson { - - /** - * The list of label value pairs that must match labels in the provided metadata based on - * filterMatchCriteria - * - * This list must not be empty and can have at the most 64 entries. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List filterLabels; - - /** - * Specifies how individual filter label matches within the list of filterLabels and contributes - * toward the overall metadataFilter match. - * - * Supported values are: - MATCH_ANY: at least one of the filterLabels must have a - * matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching - * labels in the provided metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String filterMatchCriteria; - - /** - * The list of label value pairs that must match labels in the provided metadata based on - * filterMatchCriteria - * - * This list must not be empty and can have at the most 64 entries. - * @return value or {@code null} for none - */ - public java.util.List getFilterLabels() { - return filterLabels; - } - - /** - * The list of label value pairs that must match labels in the provided metadata based on - * filterMatchCriteria - * - * This list must not be empty and can have at the most 64 entries. - * @param filterLabels filterLabels or {@code null} for none - */ - public MetadataFilter setFilterLabels(java.util.List filterLabels) { - this.filterLabels = filterLabels; - return this; - } - - /** - * Specifies how individual filter label matches within the list of filterLabels and contributes - * toward the overall metadataFilter match. - * - * Supported values are: - MATCH_ANY: at least one of the filterLabels must have a - * matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching - * labels in the provided metadata. - * @return value or {@code null} for none - */ - public java.lang.String getFilterMatchCriteria() { - return filterMatchCriteria; - } - - /** - * Specifies how individual filter label matches within the list of filterLabels and contributes - * toward the overall metadataFilter match. - * - * Supported values are: - MATCH_ANY: at least one of the filterLabels must have a - * matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching - * labels in the provided metadata. - * @param filterMatchCriteria filterMatchCriteria or {@code null} for none - */ - public MetadataFilter setFilterMatchCriteria(java.lang.String filterMatchCriteria) { - this.filterMatchCriteria = filterMatchCriteria; - return this; - } - - @Override - public MetadataFilter set(String fieldName, Object value) { - return (MetadataFilter) super.set(fieldName, value); - } - - @Override - public MetadataFilter clone() { - return (MetadataFilter) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilterLabelMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilterLabelMatch.java deleted file mode 100644 index 1e7d7db792b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/MetadataFilterLabelMatch.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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.preview.model; - -/** - * MetadataFilter label name value pairs that are expected to match corresponding labels presented - * as metadata to the load balancer. - * - *

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 MetadataFilterLabelMatch extends com.google.api.client.json.GenericJson { - - /** - * Name of metadata label. - * - * The name can have a maximum length of 1024 characters and must be at least 1 character long. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The value of the label must match the specified value. - * - * value can have a maximum length of 1024 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * Name of metadata label. - * - * The name can have a maximum length of 1024 characters and must be at least 1 character long. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of metadata label. - * - * The name can have a maximum length of 1024 characters and must be at least 1 character long. - * @param name name or {@code null} for none - */ - public MetadataFilterLabelMatch setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The value of the label must match the specified value. - * - * value can have a maximum length of 1024 characters. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * The value of the label must match the specified value. - * - * value can have a maximum length of 1024 characters. - * @param value value or {@code null} for none - */ - public MetadataFilterLabelMatch setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public MetadataFilterLabelMatch set(String fieldName, Object value) { - return (MetadataFilterLabelMatch) super.set(fieldName, value); - } - - @Override - public MetadataFilterLabelMatch clone() { - return (MetadataFilterLabelMatch) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Money.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Money.java deleted file mode 100644 index 658aae7e9d6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Money.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an amount of money with its currency type. - * - *

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 Money extends com.google.api.client.json.GenericJson { - - /** - * The three-letter currency code defined in ISO 4217. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String currencyCode; - - /** - * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and - * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is - * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be - * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer nanos; - - /** - * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US - * dollar. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long units; - - /** - * The three-letter currency code defined in ISO 4217. - * @return value or {@code null} for none - */ - public java.lang.String getCurrencyCode() { - return currencyCode; - } - - /** - * The three-letter currency code defined in ISO 4217. - * @param currencyCode currencyCode or {@code null} for none - */ - public Money setCurrencyCode(java.lang.String currencyCode) { - this.currencyCode = currencyCode; - return this; - } - - /** - * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and - * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is - * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be - * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * @return value or {@code null} for none - */ - public java.lang.Integer getNanos() { - return nanos; - } - - /** - * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and - * +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is - * zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be - * negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * @param nanos nanos or {@code null} for none - */ - public Money setNanos(java.lang.Integer nanos) { - this.nanos = nanos; - return this; - } - - /** - * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US - * dollar. - * @return value or {@code null} for none - */ - public java.lang.Long getUnits() { - return units; - } - - /** - * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US - * dollar. - * @param units units or {@code null} for none - */ - public Money setUnits(java.lang.Long units) { - this.units = units; - return this; - } - - @Override - public Money set(String fieldName, Object value) { - return (Money) super.set(fieldName, value); - } - - @Override - public Money clone() { - return (Money) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedPort.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedPort.java deleted file mode 100644 index fc6cdaa50dd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedPort.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * The named port. For example: <"http", 80>. - * - *

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 NamedPort extends com.google.api.client.json.GenericJson { - - /** - * The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The port number, which can be a value between 1 and 65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name for this named port. The name must be 1-63 characters long, and comply withRFC1035. - * @param name name or {@code null} for none - */ - public NamedPort setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The port number, which can be a value between 1 and 65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The port number, which can be a value between 1 and 65535. - * @param port port or {@code null} for none - */ - public NamedPort setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - @Override - public NamedPort set(String fieldName, Object value) { - return (NamedPort) super.set(fieldName, value); - } - - @Override - public NamedPort clone() { - return (NamedPort) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedSet.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedSet.java deleted file mode 100644 index ed22c25dd9d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NamedSet.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NamedSet. - * - *

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 NamedSet extends com.google.api.client.json.GenericJson { - - /** - * An optional description of named set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * CEL expressions that are comparable to constructs of this set's type (see Policy Language). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List elements; - - static { - // hack to force ProGuard to consider Expr 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(Expr.class); - } - - /** - * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of - * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the Named Set. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * This set's name, which must be a resource ID segment and unique within all named sets owned by - * the Router. Name should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * This named set's type - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * An optional description of named set. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of named set. - * @param description description or {@code null} for none - */ - public NamedSet setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * CEL expressions that are comparable to constructs of this set's type (see Policy Language). - * @return value or {@code null} for none - */ - public java.util.List getElements() { - return elements; - } - - /** - * CEL expressions that are comparable to constructs of this set's type (see Policy Language). - * @param elements elements or {@code null} for none - */ - public NamedSet setElements(java.util.List elements) { - this.elements = elements; - return this; - } - - /** - * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of - * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the Named Set. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of - * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the Named Set. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of - * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the Named Set. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public NamedSet setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * A fingerprint for the Named Set being applied to this Router, which is essentially a hash of - * the Named Set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update the Named Set. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public NamedSet encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * This set's name, which must be a resource ID segment and unique within all named sets owned by - * the Router. Name should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * This set's name, which must be a resource ID segment and unique within all named sets owned by - * the Router. Name should conform to RFC1035. - * @param name name or {@code null} for none - */ - public NamedSet setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * This named set's type - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * This named set's type - * @param type type or {@code null} for none - */ - public NamedSet setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public NamedSet set(String fieldName, Object value) { - return (NamedSet) super.set(fieldName, value); - } - - @Override - public NamedSet clone() { - return (NamedSet) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfo.java deleted file mode 100644 index cfc5a30f86e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains NAT IP information of a NAT config (i.e. usage status, mode). - * - *

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 NatIpInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. A list of all NAT IPs assigned to this NAT config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natIpInfoMappings; - - /** - * Output only. Name of the NAT config which the NAT IP belongs to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natName; - - /** - * Output only. A list of all NAT IPs assigned to this NAT config. - * @return value or {@code null} for none - */ - public java.util.List getNatIpInfoMappings() { - return natIpInfoMappings; - } - - /** - * Output only. A list of all NAT IPs assigned to this NAT config. - * @param natIpInfoMappings natIpInfoMappings or {@code null} for none - */ - public NatIpInfo setNatIpInfoMappings(java.util.List natIpInfoMappings) { - this.natIpInfoMappings = natIpInfoMappings; - return this; - } - - /** - * Output only. Name of the NAT config which the NAT IP belongs to. - * @return value or {@code null} for none - */ - public java.lang.String getNatName() { - return natName; - } - - /** - * Output only. Name of the NAT config which the NAT IP belongs to. - * @param natName natName or {@code null} for none - */ - public NatIpInfo setNatName(java.lang.String natName) { - this.natName = natName; - return this; - } - - @Override - public NatIpInfo set(String fieldName, Object value) { - return (NatIpInfo) super.set(fieldName, value); - } - - @Override - public NatIpInfo clone() { - return (NatIpInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoNatIpInfoMapping.java deleted file mode 100644 index 1d2933017f7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoNatIpInfoMapping.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains information of a NAT IP. - * - *

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 NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { - - /** - * Output only. Specifies whether NAT IP is auto or manual. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * Output only. NAT IP address. For example: 203.0.113.11. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natIp; - - /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String usage; - - /** - * Output only. Specifies whether NAT IP is auto or manual. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * Output only. Specifies whether NAT IP is auto or manual. - * @param mode mode or {@code null} for none - */ - public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * Output only. NAT IP address. For example: 203.0.113.11. - * @return value or {@code null} for none - */ - public java.lang.String getNatIp() { - return natIp; - } - - /** - * Output only. NAT IP address. For example: 203.0.113.11. - * @param natIp natIp or {@code null} for none - */ - public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { - this.natIp = natIp; - return this; - } - - /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. - * @return value or {@code null} for none - */ - public java.lang.String getUsage() { - return usage; - } - - /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. - * @param usage usage or {@code null} for none - */ - public NatIpInfoNatIpInfoMapping setUsage(java.lang.String usage) { - this.usage = usage; - return this; - } - - @Override - public NatIpInfoNatIpInfoMapping set(String fieldName, Object value) { - return (NatIpInfoNatIpInfoMapping) super.set(fieldName, value); - } - - @Override - public NatIpInfoNatIpInfoMapping clone() { - return (NatIpInfoNatIpInfoMapping) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoResponse.java deleted file mode 100644 index ec44fe47e06..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NatIpInfoResponse.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NatIpInfoResponse. - * - *

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 NatIpInfoResponse extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of NAT IP information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List result; - - static { - // hack to force ProGuard to consider NatIpInfo 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(NatIpInfo.class); - } - - /** - * [Output Only] A list of NAT IP information. - * @return value or {@code null} for none - */ - public java.util.List getResult() { - return result; - } - - /** - * [Output Only] A list of NAT IP information. - * @param result result or {@code null} for none - */ - public NatIpInfoResponse setResult(java.util.List result) { - this.result = result; - return this; - } - - @Override - public NatIpInfoResponse set(String fieldName, Object value) { - return (NatIpInfoResponse) super.set(fieldName, value); - } - - @Override - public NatIpInfoResponse clone() { - return (NatIpInfoResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Network.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Network.java deleted file mode 100644 index 652e163a5d2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Network.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a VPC Network resource. - * - * Networks connect resources to each other and to the internet. For more information, readVirtual - * Private Cloud (VPC) Network. - * - *

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 Network extends com.google.api.client.json.GenericJson { - - /** - * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on - * this network. This range is aCIDR specification, for example:192.168.0.0/16. Provided by the - * client when the network is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPv4Range") - private java.lang.String iPv4Range; - - /** - * Must be set to create a VPC network. If not set, a legacy network is created. - * - * When set to true, the VPC network is created in auto mode. When set to false, the VPC network - * is created in custom mode. - * - * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined - * range as described inAuto mode VPC network IP ranges. - * - * For custom mode VPC networks, you can add subnets using the subnetworksinsert method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoCreateSubnetworks; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this field when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google - * defined ULA prefix fd20::/20. . - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableUlaInternalIpv6; - - /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** - * [Output Only] The gateway address for default routing out of the network, selected by Google - * Cloud. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gatewayIPv4; - - /** - * 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; - - /** - * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the - * google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be - * within the fd20::/20. Operation will fail if the speficied /48 is already in used by another - * resource. If the field is not speficied, then a /48 range will be randomly allocated from - * fd20::/20 and returned via this field. . - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String internalIpv6Range; - - /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum - * value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or - * 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer mtu; - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or - * BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkFirewallPolicyEnforcementOrder; - - /** - * A full or partial URL of the network profile to apply to this network. This field can be set - * only at resource creation time. For example, the following are valid URLs: - https://ww - * w.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_pr - * ofile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkProfile; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkParams params; - - /** - * Output only. [Output Only] A list of network peerings for the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List peerings; - - /** - * The network-level routing configuration for this network. Used by Cloud Router to determine - * what type of network-wide routing behavior to enforce. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkRoutingConfig routingConfig; - - /** - * [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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworks; - - /** - * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on - * this network. This range is aCIDR specification, for example:192.168.0.0/16. Provided by the - * client when the network is created. - * @return value or {@code null} for none - */ - public java.lang.String getIPv4Range() { - return iPv4Range; - } - - /** - * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on - * this network. This range is aCIDR specification, for example:192.168.0.0/16. Provided by the - * client when the network is created. - * @param iPv4Range iPv4Range or {@code null} for none - */ - public Network setIPv4Range(java.lang.String iPv4Range) { - this.iPv4Range = iPv4Range; - return this; - } - - /** - * Must be set to create a VPC network. If not set, a legacy network is created. - * - * When set to true, the VPC network is created in auto mode. When set to false, the VPC network - * is created in custom mode. - * - * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined - * range as described inAuto mode VPC network IP ranges. - * - * For custom mode VPC networks, you can add subnets using the subnetworksinsert method. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoCreateSubnetworks() { - return autoCreateSubnetworks; - } - - /** - * Must be set to create a VPC network. If not set, a legacy network is created. - * - * When set to true, the VPC network is created in auto mode. When set to false, the VPC network - * is created in custom mode. - * - * An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined - * range as described inAuto mode VPC network IP ranges. - * - * For custom mode VPC networks, you can add subnets using the subnetworksinsert method. - * @param autoCreateSubnetworks autoCreateSubnetworks or {@code null} for none - */ - public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) { - this.autoCreateSubnetworks = autoCreateSubnetworks; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Network setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @param description description or {@code null} for none - */ - public Network setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google - * defined ULA prefix fd20::/20. . - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableUlaInternalIpv6() { - return enableUlaInternalIpv6; - } - - /** - * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google - * defined ULA prefix fd20::/20. . - * @param enableUlaInternalIpv6 enableUlaInternalIpv6 or {@code null} for none - */ - public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) { - this.enableUlaInternalIpv6 = enableUlaInternalIpv6; - return this; - } - - /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. - * @return value or {@code null} for none - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. - * @param firewallPolicy firewallPolicy or {@code null} for none - */ - public Network setFirewallPolicy(java.lang.String firewallPolicy) { - this.firewallPolicy = firewallPolicy; - return this; - } - - /** - * [Output Only] The gateway address for default routing out of the network, selected by Google - * Cloud. - * @return value or {@code null} for none - */ - public java.lang.String getGatewayIPv4() { - return gatewayIPv4; - } - - /** - * [Output Only] The gateway address for default routing out of the network, selected by Google - * Cloud. - * @param gatewayIPv4 gatewayIPv4 or {@code null} for none - */ - public Network setGatewayIPv4(java.lang.String gatewayIPv4) { - this.gatewayIPv4 = gatewayIPv4; - 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 Network setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the - * google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be - * within the fd20::/20. Operation will fail if the speficied /48 is already in used by another - * resource. If the field is not speficied, then a /48 range will be randomly allocated from - * fd20::/20 and returned via this field. . - * @return value or {@code null} for none - */ - public java.lang.String getInternalIpv6Range() { - return internalIpv6Range; - } - - /** - * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the - * google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be - * within the fd20::/20. Operation will fail if the speficied /48 is already in used by another - * resource. If the field is not speficied, then a /48 range will be randomly allocated from - * fd20::/20 and returned via this field. . - * @param internalIpv6Range internalIpv6Range or {@code null} for none - */ - public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { - this.internalIpv6Range = internalIpv6Range; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. - * @param kind kind or {@code null} for none - */ - public Network setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum - * value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or - * 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. - * @return value or {@code null} for none - */ - public java.lang.Integer getMtu() { - return mtu; - } - - /** - * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum - * value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or - * 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460. - * @param mtu mtu or {@code null} for none - */ - public Network setMtu(java.lang.Integer mtu) { - this.mtu = mtu; - return this; - } - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @param name name or {@code null} for none - */ - public Network setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or - * BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkFirewallPolicyEnforcementOrder() { - return networkFirewallPolicyEnforcementOrder; - } - - /** - * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or - * BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. - * @param networkFirewallPolicyEnforcementOrder networkFirewallPolicyEnforcementOrder or {@code null} for none - */ - public Network setNetworkFirewallPolicyEnforcementOrder(java.lang.String networkFirewallPolicyEnforcementOrder) { - this.networkFirewallPolicyEnforcementOrder = networkFirewallPolicyEnforcementOrder; - return this; - } - - /** - * A full or partial URL of the network profile to apply to this network. This field can be set - * only at resource creation time. For example, the following are valid URLs: - https://ww - * w.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_pr - * ofile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} - * @return value or {@code null} for none - */ - public java.lang.String getNetworkProfile() { - return networkProfile; - } - - /** - * A full or partial URL of the network profile to apply to this network. This field can be set - * only at resource creation time. For example, the following are valid URLs: - https://ww - * w.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_pr - * ofile_name} - projects/{project_id}/global/networkProfiles/{network_profile_name} - * @param networkProfile networkProfile or {@code null} for none - */ - public Network setNetworkProfile(java.lang.String networkProfile) { - this.networkProfile = networkProfile; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public NetworkParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Network setParams(NetworkParams params) { - this.params = params; - return this; - } - - /** - * Output only. [Output Only] A list of network peerings for the resource. - * @return value or {@code null} for none - */ - public java.util.List getPeerings() { - return peerings; - } - - /** - * Output only. [Output Only] A list of network peerings for the resource. - * @param peerings peerings or {@code null} for none - */ - public Network setPeerings(java.util.List peerings) { - this.peerings = peerings; - return this; - } - - /** - * The network-level routing configuration for this network. Used by Cloud Router to determine - * what type of network-wide routing behavior to enforce. - * @return value or {@code null} for none - */ - public NetworkRoutingConfig getRoutingConfig() { - return routingConfig; - } - - /** - * The network-level routing configuration for this network. Used by Cloud Router to determine - * what type of network-wide routing behavior to enforce. - * @param routingConfig routingConfig or {@code null} for none - */ - public Network setRoutingConfig(NetworkRoutingConfig routingConfig) { - this.routingConfig = routingConfig; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Network setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public Network setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworks() { - return subnetworks; - } - - /** - * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. - * @param subnetworks subnetworks or {@code null} for none - */ - public Network setSubnetworks(java.util.List subnetworks) { - this.subnetworks = subnetworks; - return this; - } - - @Override - public Network set(String fieldName, Object value) { - return (Network) super.set(fieldName, value); - } - - @Override - public Network clone() { - return (Network) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachment.java deleted file mode 100644 index 4925e38f919..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachment.java +++ /dev/null @@ -1,480 +0,0 @@ -/* - * 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.preview.model; - -/** - * NetworkAttachments A network attachment 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 NetworkAttachment extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List connectionEndpoints; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String connectionPreference; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * 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] Type of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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 URL of the network which the Network Attachment belongs to. - * Practically it is inferred by fetching the network of the first subnetwork associated. Because - * it is required that all the subnetworks must be from the same network, it is assured that the - * Network Attachment belongs to the same network as all the subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Projects or service class ids that are allowed to connect to this network attachment. The - * project can be specified using its id or number. Service class id can be specified as - * "serviceclasses/{service_class_id}". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List producerAcceptLists; - - /** - * Projects or service class ids that are not allowed to connect to this network attachment. The - * project can be specified using its id or number. Service class id can be specified as - * "serviceclasses/{service_class_id}". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List producerRejectLists; - - /** - * Output only. [Output Only] URL of the region where the network attachment resides. This field - * applies only to the region resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * An array of URLs where each entry is the URL of a subnet provided by the service consumer to - * use for endpoints in the producers that connect to this network attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworks; - - /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. - * @return value or {@code null} for none - */ - public java.util.List getConnectionEndpoints() { - return connectionEndpoints; - } - - /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. - * @param connectionEndpoints connectionEndpoints or {@code null} for none - */ - public NetworkAttachment setConnectionEndpoints(java.util.List connectionEndpoints) { - this.connectionEndpoints = connectionEndpoints; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getConnectionPreference() { - return connectionPreference; - } - - /** - * @param connectionPreference connectionPreference or {@code null} for none - */ - public NetworkAttachment setConnectionPreference(java.lang.String connectionPreference) { - this.connectionPreference = connectionPreference; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public NetworkAttachment setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public NetworkAttachment setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. An up-to-date fingerprint must be provided in order to patch. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public NetworkAttachment encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public NetworkAttachment setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. - * @param kind kind or {@code null} for none - */ - public NetworkAttachment setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 NetworkAttachment setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. - * Practically it is inferred by fetching the network of the first subnetwork associated. Because - * it is required that all the subnetworks must be from the same network, it is assured that the - * Network Attachment belongs to the same network as all the subnetworks. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * Output only. [Output Only] The URL of the network which the Network Attachment belongs to. - * Practically it is inferred by fetching the network of the first subnetwork associated. Because - * it is required that all the subnetworks must be from the same network, it is assured that the - * Network Attachment belongs to the same network as all the subnetworks. - * @param network network or {@code null} for none - */ - public NetworkAttachment setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Projects or service class ids that are allowed to connect to this network attachment. The - * project can be specified using its id or number. Service class id can be specified as - * "serviceclasses/{service_class_id}". - * @return value or {@code null} for none - */ - public java.util.List getProducerAcceptLists() { - return producerAcceptLists; - } - - /** - * Projects or service class ids that are allowed to connect to this network attachment. The - * project can be specified using its id or number. Service class id can be specified as - * "serviceclasses/{service_class_id}". - * @param producerAcceptLists producerAcceptLists or {@code null} for none - */ - public NetworkAttachment setProducerAcceptLists(java.util.List producerAcceptLists) { - this.producerAcceptLists = producerAcceptLists; - return this; - } - - /** - * Projects or service class ids that are not allowed to connect to this network attachment. The - * project can be specified using its id or number. Service class id can be specified as - * "serviceclasses/{service_class_id}". - * @return value or {@code null} for none - */ - public java.util.List getProducerRejectLists() { - return producerRejectLists; - } - - /** - * Projects or service class ids that are not allowed to connect to this network attachment. The - * project can be specified using its id or number. Service class id can be specified as - * "serviceclasses/{service_class_id}". - * @param producerRejectLists producerRejectLists or {@code null} for none - */ - public NetworkAttachment setProducerRejectLists(java.util.List producerRejectLists) { - this.producerRejectLists = producerRejectLists; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the network attachment resides. This field - * applies only to the region resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the network attachment resides. This field - * applies only to the region resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public NetworkAttachment setRegion(java.lang.String region) { - this.region = region; - 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 NetworkAttachment setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public NetworkAttachment setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * An array of URLs where each entry is the URL of a subnet provided by the service consumer to - * use for endpoints in the producers that connect to this network attachment. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworks() { - return subnetworks; - } - - /** - * An array of URLs where each entry is the URL of a subnet provided by the service consumer to - * use for endpoints in the producers that connect to this network attachment. - * @param subnetworks subnetworks or {@code null} for none - */ - public NetworkAttachment setSubnetworks(java.util.List subnetworks) { - this.subnetworks = subnetworks; - return this; - } - - @Override - public NetworkAttachment set(String fieldName, Object value) { - return (NetworkAttachment) super.set(fieldName, value); - } - - @Override - public NetworkAttachment clone() { - return (NetworkAttachment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentAggregatedList.java deleted file mode 100644 index 8dd4f9821fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentAggregatedList.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of NetworkAttachmentsScopedList. - * - *

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 NetworkAttachmentAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 NetworkAttachmentsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NetworkAttachmentAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkAttachmentsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NetworkAttachmentsScopedList resources. - * @param items items or {@code null} for none - */ - public NetworkAttachmentAggregatedList setItems(java.util.Map 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 NetworkAttachmentAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkAttachmentAggregatedList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public NetworkAttachmentAggregatedList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NetworkAttachmentAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkAttachmentAggregatedList set(String fieldName, Object value) { - return (NetworkAttachmentAggregatedList) super.set(fieldName, value); - } - - @Override - public NetworkAttachmentAggregatedList clone() { - return (NetworkAttachmentAggregatedList) 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 NetworkAttachmentAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentConnectedEndpoint.java deleted file mode 100644 index 0bd5d70c6b9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentConnectedEndpoint.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] A connection connected to this network attachment. - * - *

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 NetworkAttachmentConnectedEndpoint extends com.google.api.client.json.GenericJson { - - /** - * The IPv4 address assigned to the producer instance network interface. This value will be a - * range in case of Serverless. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * The IPv6 address assigned to the producer instance network interface. This is only assigned - * when the stack types of both the instance network interface and the consumer subnet are - * IPv4_IPv6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * The project id or number of the interface to which the IP was assigned. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String projectIdOrNum; - - /** - * Alias IP ranges from the same subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List secondaryIpCidrRanges; - - /** - * The service class id of the producer service to which the IP was assigned. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceClassId; - - /** - * The status of a connected endpoint to this network attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The subnetwork used to assign the IP to the producer instance network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetworkCidrRange; - - /** - * The IPv4 address assigned to the producer instance network interface. This value will be a - * range in case of Serverless. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * The IPv4 address assigned to the producer instance network interface. This value will be a - * range in case of Serverless. - * @param ipAddress ipAddress or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * The IPv6 address assigned to the producer instance network interface. This is only assigned - * when the stack types of both the instance network interface and the consumer subnet are - * IPv4_IPv6. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * The IPv6 address assigned to the producer instance network interface. This is only assigned - * when the stack types of both the instance network interface and the consumer subnet are - * IPv4_IPv6. - * @param ipv6Address ipv6Address or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - /** - * The project id or number of the interface to which the IP was assigned. - * @return value or {@code null} for none - */ - public java.lang.String getProjectIdOrNum() { - return projectIdOrNum; - } - - /** - * The project id or number of the interface to which the IP was assigned. - * @param projectIdOrNum projectIdOrNum or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setProjectIdOrNum(java.lang.String projectIdOrNum) { - this.projectIdOrNum = projectIdOrNum; - return this; - } - - /** - * Alias IP ranges from the same subnetwork. - * @return value or {@code null} for none - */ - public java.util.List getSecondaryIpCidrRanges() { - return secondaryIpCidrRanges; - } - - /** - * Alias IP ranges from the same subnetwork. - * @param secondaryIpCidrRanges secondaryIpCidrRanges or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setSecondaryIpCidrRanges(java.util.List secondaryIpCidrRanges) { - this.secondaryIpCidrRanges = secondaryIpCidrRanges; - return this; - } - - /** - * The service class id of the producer service to which the IP was assigned. - * @return value or {@code null} for none - */ - public java.lang.String getServiceClassId() { - return serviceClassId; - } - - /** - * The service class id of the producer service to which the IP was assigned. - * @param serviceClassId serviceClassId or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setServiceClassId(java.lang.String serviceClassId) { - this.serviceClassId = serviceClassId; - return this; - } - - /** - * The status of a connected endpoint to this network attachment. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * The status of a connected endpoint to this network attachment. - * @param status status or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * The subnetwork used to assign the IP to the producer instance network interface. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * The subnetwork used to assign the IP to the producer instance network interface. - * @param subnetwork subnetwork or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetworkCidrRange() { - return subnetworkCidrRange; - } - - /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. - * @param subnetworkCidrRange subnetworkCidrRange or {@code null} for none - */ - public NetworkAttachmentConnectedEndpoint setSubnetworkCidrRange(java.lang.String subnetworkCidrRange) { - this.subnetworkCidrRange = subnetworkCidrRange; - return this; - } - - @Override - public NetworkAttachmentConnectedEndpoint set(String fieldName, Object value) { - return (NetworkAttachmentConnectedEndpoint) super.set(fieldName, value); - } - - @Override - public NetworkAttachmentConnectedEndpoint clone() { - return (NetworkAttachmentConnectedEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentList.java deleted file mode 100644 index 4f532adb9d6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentList.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkAttachmentList. - * - *

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 NetworkAttachmentList extends com.google.api.client.json.GenericJson { - - /** - * [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 NetworkAttachment 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 NetworkAttachment 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(NetworkAttachment.class); - } - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NetworkAttachmentList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkAttachment resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NetworkAttachment resources. - * @param items items or {@code null} for none - */ - public NetworkAttachmentList 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 NetworkAttachmentList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkAttachmentList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public NetworkAttachmentList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NetworkAttachmentList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkAttachmentList set(String fieldName, Object value) { - return (NetworkAttachmentList) super.set(fieldName, value); - } - - @Override - public NetworkAttachmentList clone() { - return (NetworkAttachmentList) 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 NetworkAttachmentListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentsScopedList.java deleted file mode 100644 index 5ccc21c003f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkAttachmentsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkAttachmentsScopedList. - * - *

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 NetworkAttachmentsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of NetworkAttachments contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkAttachments; - - static { - // hack to force ProGuard to consider NetworkAttachment 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(NetworkAttachment.class); - } - - /** - * Informational warning which replaces the list of network attachments when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of NetworkAttachments contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getNetworkAttachments() { - return networkAttachments; - } - - /** - * A list of NetworkAttachments contained in this scope. - * @param networkAttachments networkAttachments or {@code null} for none - */ - public NetworkAttachmentsScopedList setNetworkAttachments(java.util.List networkAttachments) { - this.networkAttachments = networkAttachments; - return this; - } - - /** - * Informational warning which replaces the list of network attachments when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of network attachments when the list is empty. - * @param warning warning or {@code null} for none - */ - public NetworkAttachmentsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkAttachmentsScopedList set(String fieldName, Object value) { - return (NetworkAttachmentsScopedList) super.set(fieldName, value); - } - - @Override - public NetworkAttachmentsScopedList clone() { - return (NetworkAttachmentsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of network attachments when the list is empty. - */ - 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 NetworkAttachmentsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityService.java deleted file mode 100644 index 1fc73f4f1c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityService.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Google Cloud Armor network edge security service 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 NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. - * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, - * otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * 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] Type of the resource. Alwayscompute#networkEdgeSecurityService for - * NetworkEdgeSecurityServices - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] URL of the region where the resource resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * The resource URL for the network edge security service associated with this network edge - * security service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public NetworkEdgeSecurityService setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. - * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, - * otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. - * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, - * otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. - * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, - * otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public NetworkEdgeSecurityService setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. - * An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, - * otherwise the request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - 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 NetworkEdgeSecurityService setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for - * NetworkEdgeSecurityServices - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for - * NetworkEdgeSecurityServices - * @param kind kind or {@code null} for none - */ - public NetworkEdgeSecurityService setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 NetworkEdgeSecurityService setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the resource resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the resource resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public NetworkEdgeSecurityService setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The resource URL for the network edge security service associated with this network edge - * security service. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * The resource URL for the network edge security service associated with this network edge - * security service. - * @param securityPolicy securityPolicy or {@code null} for none - */ - public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - 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 NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public NetworkEdgeSecurityService setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - @Override - public NetworkEdgeSecurityService set(String fieldName, Object value) { - return (NetworkEdgeSecurityService) super.set(fieldName, value); - } - - @Override - public NetworkEdgeSecurityService clone() { - return (NetworkEdgeSecurityService) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServiceAggregatedList.java deleted file mode 100644 index a91f00fe1f9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServiceAggregatedList.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEdgeSecurityServiceAggregatedList. - * - *

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 NetworkEdgeSecurityServiceAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 NetworkEdgeSecurityServicesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security - * Services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkEdgeSecurityServicesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NetworkEdgeSecurityServicesScopedList resources. - * @param items items or {@code null} for none - */ - public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security - * Services. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security - * Services. - * @param kind kind or {@code null} for none - */ - public NetworkEdgeSecurityServiceAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList 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 NetworkEdgeSecurityServiceAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkEdgeSecurityServiceAggregatedList set(String fieldName, Object value) { - return (NetworkEdgeSecurityServiceAggregatedList) super.set(fieldName, value); - } - - @Override - public NetworkEdgeSecurityServiceAggregatedList clone() { - return (NetworkEdgeSecurityServiceAggregatedList) 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 NetworkEdgeSecurityServiceAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServicesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServicesScopedList.java deleted file mode 100644 index 88e29685888..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEdgeSecurityServicesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEdgeSecurityServicesScopedList. - * - *

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 NetworkEdgeSecurityServicesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of NetworkEdgeSecurityServices contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEdgeSecurityServices; - - static { - // hack to force ProGuard to consider NetworkEdgeSecurityService 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(NetworkEdgeSecurityService.class); - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of NetworkEdgeSecurityServices contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEdgeSecurityServices() { - return networkEdgeSecurityServices; - } - - /** - * A list of NetworkEdgeSecurityServices contained in this scope. - * @param networkEdgeSecurityServices networkEdgeSecurityServices or {@code null} for none - */ - public NetworkEdgeSecurityServicesScopedList setNetworkEdgeSecurityServices(java.util.List networkEdgeSecurityServices) { - this.networkEdgeSecurityServices = networkEdgeSecurityServices; - return this; - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - * @param warning warning or {@code null} for none - */ - public NetworkEdgeSecurityServicesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkEdgeSecurityServicesScopedList set(String fieldName, Object value) { - return (NetworkEdgeSecurityServicesScopedList) super.set(fieldName, value); - } - - @Override - public NetworkEdgeSecurityServicesScopedList clone() { - return (NetworkEdgeSecurityServicesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - */ - 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 NetworkEdgeSecurityServicesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpoint.java deleted file mode 100644 index 671b3481b52..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpoint.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * 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.preview.model; - -/** - * The network endpoint. - * - *

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 NetworkEndpoint extends com.google.api.client.json.GenericJson { - - /** - * Optional metadata defined as annotations on the network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map annotations; - - /** - * Represents the port number to which PSC consumer sends packets. - * - * Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer clientDestinationPort; - - /** - * Optional fully qualified domain name of network endpoint. This can only be specified when - * NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fqdn; - - /** - * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends - * on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP - * andGCE_VM_IP_PORT. - * - * The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone - * within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must - * belongs to the VM instance. - * - * The name must be 1-63 characters long, and comply withRFC1035 or be a valid URL pointing to an - * existing instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine - * (either the primary IP or as part of an aliased IP range). If the IP address is not specified, - * then the primary IP address for the VM instance in the network that the network endpoint group - * belongs to will be used. - * - * This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it - * must be set to the primary internal IP address of the attached VM instance that matches the - * subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance - * can be added to a NEG as long as it matches the NEG subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * Optional IPv6 address of network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * Optional port number of network endpoint. If not specified, the defaultPort for the network - * endpoint group will be used. - * - * This field can not be set for network endpoints of typeGCE_VM_IP. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Optional metadata defined as annotations on the network endpoint. - * @return value or {@code null} for none - */ - public java.util.Map getAnnotations() { - return annotations; - } - - /** - * Optional metadata defined as annotations on the network endpoint. - * @param annotations annotations or {@code null} for none - */ - public NetworkEndpoint setAnnotations(java.util.Map annotations) { - this.annotations = annotations; - return this; - } - - /** - * Represents the port number to which PSC consumer sends packets. - * - * Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. - * @return value or {@code null} for none - */ - public java.lang.Integer getClientDestinationPort() { - return clientDestinationPort; - } - - /** - * Represents the port number to which PSC consumer sends packets. - * - * Optional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type. - * @param clientDestinationPort clientDestinationPort or {@code null} for none - */ - public NetworkEndpoint setClientDestinationPort(java.lang.Integer clientDestinationPort) { - this.clientDestinationPort = clientDestinationPort; - return this; - } - - /** - * Optional fully qualified domain name of network endpoint. This can only be specified when - * NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. - * @return value or {@code null} for none - */ - public java.lang.String getFqdn() { - return fqdn; - } - - /** - * Optional fully qualified domain name of network endpoint. This can only be specified when - * NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT. - * @param fqdn fqdn or {@code null} for none - */ - public NetworkEndpoint setFqdn(java.lang.String fqdn) { - this.fqdn = fqdn; - return this; - } - - /** - * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends - * on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP - * andGCE_VM_IP_PORT. - * - * The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone - * within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must - * belongs to the VM instance. - * - * The name must be 1-63 characters long, and comply withRFC1035 or be a valid URL pointing to an - * existing instance. - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends - * on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP - * andGCE_VM_IP_PORT. - * - * The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone - * within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must - * belongs to the VM instance. - * - * The name must be 1-63 characters long, and comply withRFC1035 or be a valid URL pointing to an - * existing instance. - * @param instance instance or {@code null} for none - */ - public NetworkEndpoint setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** - * Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine - * (either the primary IP or as part of an aliased IP range). If the IP address is not specified, - * then the primary IP address for the VM instance in the network that the network endpoint group - * belongs to will be used. - * - * This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it - * must be set to the primary internal IP address of the attached VM instance that matches the - * subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance - * can be added to a NEG as long as it matches the NEG subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine - * (either the primary IP or as part of an aliased IP range). If the IP address is not specified, - * then the primary IP address for the VM instance in the network that the network endpoint group - * belongs to will be used. - * - * This field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it - * must be set to the primary internal IP address of the attached VM instance that matches the - * subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance - * can be added to a NEG as long as it matches the NEG subnetwork. - * @param ipAddress ipAddress or {@code null} for none - */ - public NetworkEndpoint setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * Optional IPv6 address of network endpoint. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * Optional IPv6 address of network endpoint. - * @param ipv6Address ipv6Address or {@code null} for none - */ - public NetworkEndpoint setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - /** - * Optional port number of network endpoint. If not specified, the defaultPort for the network - * endpoint group will be used. - * - * This field can not be set for network endpoints of typeGCE_VM_IP. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * Optional port number of network endpoint. If not specified, the defaultPort for the network - * endpoint group will be used. - * - * This field can not be set for network endpoints of typeGCE_VM_IP. - * @param port port or {@code null} for none - */ - public NetworkEndpoint setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - @Override - public NetworkEndpoint set(String fieldName, Object value) { - return (NetworkEndpoint) super.set(fieldName, value); - } - - @Override - public NetworkEndpoint clone() { - return (NetworkEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroup.java deleted file mode 100644 index fd7fd74edcd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroup.java +++ /dev/null @@ -1,571 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a collection of network endpoints. - * - * A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are - * reachable, and where they are located. For more information about using NEGs for different use - * cases, seeNetwork endpoint groups overview. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with - * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage - * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service - * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet - * NEGs):global API - * - *

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 NetworkEndpointGroup extends com.google.api.client.json.GenericJson { - - /** - * Optional. Metadata defined as annotations on the network endpoint group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map annotations; - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkEndpointGroupAppEngine appEngine; - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkEndpointGroupCloudFunction cloudFunction; - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkEndpointGroupCloudRun cloudRun; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * The default port used if the port number is not specified in the network endpoint. - * - * Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or - * PRIVATE_SERVICE_CONNECT, this field must not be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer defaultPort; - - /** - * An optional description of this resource. Provide this property when you create the 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; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource; provided by the client 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; - - /** - * The URL of the network to which all network endpoints in the NEG belong. For - * networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field - * is not specified, a default network will be used. This field cannot be set for NEGs with - * networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all - * other network endpoint types, this field is required. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, - * GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, - * SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointType; - - /** - * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkEndpointGroupPscData pscData; - - /** - * The target service url used to set up private service connection to a Google API or a PSC - * Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. - * - * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pscTargetService; - - /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Number of network endpoints in the network endpoint group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** - * Optional URL of the subnetwork to which all network endpoints in the NEG belong. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Optional. Metadata defined as annotations on the network endpoint group. - * @return value or {@code null} for none - */ - public java.util.Map getAnnotations() { - return annotations; - } - - /** - * Optional. Metadata defined as annotations on the network endpoint group. - * @param annotations annotations or {@code null} for none - */ - public NetworkEndpointGroup setAnnotations(java.util.Map annotations) { - this.annotations = annotations; - return this; - } - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * @return value or {@code null} for none - */ - public NetworkEndpointGroupAppEngine getAppEngine() { - return appEngine; - } - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * @param appEngine appEngine or {@code null} for none - */ - public NetworkEndpointGroup setAppEngine(NetworkEndpointGroupAppEngine appEngine) { - this.appEngine = appEngine; - return this; - } - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * @return value or {@code null} for none - */ - public NetworkEndpointGroupCloudFunction getCloudFunction() { - return cloudFunction; - } - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * @param cloudFunction cloudFunction or {@code null} for none - */ - public NetworkEndpointGroup setCloudFunction(NetworkEndpointGroupCloudFunction cloudFunction) { - this.cloudFunction = cloudFunction; - return this; - } - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * @return value or {@code null} for none - */ - public NetworkEndpointGroupCloudRun getCloudRun() { - return cloudRun; - } - - /** - * Optional. Only valid when networkEndpointType isSERVERLESS. Only one of cloudRun,appEngine or - * cloudFunction may be set. - * @param cloudRun cloudRun or {@code null} for none - */ - public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { - this.cloudRun = cloudRun; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * The default port used if the port number is not specified in the network endpoint. - * - * Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or - * PRIVATE_SERVICE_CONNECT, this field must not be specified. - * @return value or {@code null} for none - */ - public java.lang.Integer getDefaultPort() { - return defaultPort; - } - - /** - * The default port used if the port number is not specified in the network endpoint. - * - * Optional. If the network endpoint type is either GCE_VM_IP,SERVERLESS or - * PRIVATE_SERVICE_CONNECT, this field must not be specified. - * @param defaultPort defaultPort or {@code null} for none - */ - public NetworkEndpointGroup setDefaultPort(java.lang.Integer defaultPort) { - this.defaultPort = defaultPort; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public NetworkEndpointGroup 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 NetworkEndpointGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. - * @param kind kind or {@code null} for none - */ - public NetworkEndpointGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 NetworkEndpointGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The URL of the network to which all network endpoints in the NEG belong. For - * networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field - * is not specified, a default network will be used. This field cannot be set for NEGs with - * networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all - * other network endpoint types, this field is required. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * The URL of the network to which all network endpoints in the NEG belong. For - * networkEndpointType GCE_VM_IP_PORT,GCE_VM_IP_PORTMAP or NON_GCP_PRIVATE_IP_PORT, if this field - * is not specified, a default network will be used. This field cannot be set for NEGs with - * networkEndpointType set toSERVERLESS or PRIVATE_SERVICE_CONNECT and for global NEGs. For all - * other network endpoint types, this field is required. - * @param network network or {@code null} for none - */ - public NetworkEndpointGroup setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, - * GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, - * SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkEndpointType() { - return networkEndpointType; - } - - /** - * Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, - * GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, - * SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. - * @param networkEndpointType networkEndpointType or {@code null} for none - */ - public NetworkEndpointGroup setNetworkEndpointType(java.lang.String networkEndpointType) { - this.networkEndpointType = networkEndpointType; - return this; - } - - /** - * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. - * @return value or {@code null} for none - */ - public NetworkEndpointGroupPscData getPscData() { - return pscData; - } - - /** - * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. - * @param pscData pscData or {@code null} for none - */ - public NetworkEndpointGroup setPscData(NetworkEndpointGroupPscData pscData) { - this.pscData = pscData; - return this; - } - - /** - * The target service url used to set up private service connection to a Google API or a PSC - * Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. - * - * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. - * @return value or {@code null} for none - */ - public java.lang.String getPscTargetService() { - return pscTargetService; - } - - /** - * The target service url used to set up private service connection to a Google API or a PSC - * Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. - * - * Optional. Only valid when networkEndpointType isPRIVATE_SERVICE_CONNECT. - * @param pscTargetService pscTargetService or {@code null} for none - */ - public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetService) { - this.pscTargetService = pscTargetService; - return this; - } - - /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. - * @param region region or {@code null} for none - */ - public NetworkEndpointGroup setRegion(java.lang.String region) { - this.region = region; - 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 NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. - * @return value or {@code null} for none - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. - * @param size size or {@code null} for none - */ - public NetworkEndpointGroup setSize(java.lang.Integer size) { - this.size = size; - return this; - } - - /** - * Optional URL of the subnetwork to which all network endpoints in the NEG belong. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * Optional URL of the subnetwork to which all network endpoints in the NEG belong. - * @param subnetwork subnetwork or {@code null} for none - */ - public NetworkEndpointGroup setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * @param zone zone or {@code null} for none - */ - public NetworkEndpointGroup setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public NetworkEndpointGroup set(String fieldName, Object value) { - return (NetworkEndpointGroup) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroup clone() { - return (NetworkEndpointGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAggregatedList.java deleted file mode 100644 index 21367739b40..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAggregatedList.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupAggregatedList. - * - *

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 NetworkEndpointGroupAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 NetworkEndpointGroupsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint - * groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 NetworkEndpointGroupAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkEndpointGroupsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NetworkEndpointGroupsScopedList resources. - * @param items items or {@code null} for none - */ - public NetworkEndpointGroupAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint - * groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint - * groups. - * @param kind kind or {@code null} for none - */ - public NetworkEndpointGroupAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkEndpointGroupAggregatedList 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 NetworkEndpointGroupAggregatedList 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 NetworkEndpointGroupAggregatedList 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 NetworkEndpointGroupAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkEndpointGroupAggregatedList set(String fieldName, Object value) { - return (NetworkEndpointGroupAggregatedList) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupAggregatedList clone() { - return (NetworkEndpointGroupAggregatedList) 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 NetworkEndpointGroupAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAppEngine.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAppEngine.java deleted file mode 100644 index e9d051724d8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupAppEngine.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration for an App Engine network endpoint group (NEG). The service is optional, may be - * provided explicitly or in the URL mask. The version is optional and can only be provided - * explicitly or in the URL mask when service is present. - * - * Note: App Engine service must be in the same project and located in the same region as the - * Serverless NEG. - * - *

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 NetworkEndpointGroupAppEngine extends com.google.api.client.json.GenericJson { - - /** - * Optional serving service. - * - * The service name is case-sensitive and must be 1-63 characters long. - * - * Example value: default, my-service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse service and version fields from a request URL. URL mask allows for routing - * to multiple App Engine services without having to create multiple Network Endpoint Groups and - * backend services. - * - * For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 - * can be backed by the same Serverless NEG with URL mask-dot-appname.appspot.com/. The URL mask - * will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" - * } respectively. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMask; - - /** - * Optional serving version. - * - * The version name is case-sensitive and must be 1-100 characters long. - * - * Example value: v1, v2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String version; - - /** - * Optional serving service. - * - * The service name is case-sensitive and must be 1-63 characters long. - * - * Example value: default, my-service. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * Optional serving service. - * - * The service name is case-sensitive and must be 1-63 characters long. - * - * Example value: default, my-service. - * @param service service or {@code null} for none - */ - public NetworkEndpointGroupAppEngine setService(java.lang.String service) { - this.service = service; - return this; - } - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse service and version fields from a request URL. URL mask allows for routing - * to multiple App Engine services without having to create multiple Network Endpoint Groups and - * backend services. - * - * For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 - * can be backed by the same Serverless NEG with URL mask-dot-appname.appspot.com/. The URL mask - * will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" - * } respectively. - * @return value or {@code null} for none - */ - public java.lang.String getUrlMask() { - return urlMask; - } - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse service and version fields from a request URL. URL mask allows for routing - * to multiple App Engine services without having to create multiple Network Endpoint Groups and - * backend services. - * - * For example, the request URLsfoo1-dot-appname.appspot.com/v1 andfoo1-dot-appname.appspot.com/v2 - * can be backed by the same Serverless NEG with URL mask-dot-appname.appspot.com/. The URL mask - * will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" - * } respectively. - * @param urlMask urlMask or {@code null} for none - */ - public NetworkEndpointGroupAppEngine setUrlMask(java.lang.String urlMask) { - this.urlMask = urlMask; - return this; - } - - /** - * Optional serving version. - * - * The version name is case-sensitive and must be 1-100 characters long. - * - * Example value: v1, v2. - * @return value or {@code null} for none - */ - public java.lang.String getVersion() { - return version; - } - - /** - * Optional serving version. - * - * The version name is case-sensitive and must be 1-100 characters long. - * - * Example value: v1, v2. - * @param version version or {@code null} for none - */ - public NetworkEndpointGroupAppEngine setVersion(java.lang.String version) { - this.version = version; - return this; - } - - @Override - public NetworkEndpointGroupAppEngine set(String fieldName, Object value) { - return (NetworkEndpointGroupAppEngine) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupAppEngine clone() { - return (NetworkEndpointGroupAppEngine) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudFunction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudFunction.java deleted file mode 100644 index cd59f5d93ae..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudFunction.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration for a Cloud Function network endpoint group (NEG). The function must be provided - * explicitly or in the URL mask. - * - * Note: Cloud Function must be in the same project and located in the same region as the Serverless - * NEG. - * - *

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 NetworkEndpointGroupCloudFunction extends com.google.api.client.json.GenericJson { - - /** - * A user-defined name of the Cloud Function. - * - * The function name is case-sensitive and must be 1-63 characters long. - * - * Example value: func1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String function; - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse function field from a request URL. URL mask allows for routing to multiple - * Cloud Functions without having to create multiple Network Endpoint Groups and backend services. - * - * For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the - * same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } - * and{ function = "function2" } respectively. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMask; - - /** - * A user-defined name of the Cloud Function. - * - * The function name is case-sensitive and must be 1-63 characters long. - * - * Example value: func1. - * @return value or {@code null} for none - */ - public java.lang.String getFunction() { - return function; - } - - /** - * A user-defined name of the Cloud Function. - * - * The function name is case-sensitive and must be 1-63 characters long. - * - * Example value: func1. - * @param function function or {@code null} for none - */ - public NetworkEndpointGroupCloudFunction setFunction(java.lang.String function) { - this.function = function; - return this; - } - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse function field from a request URL. URL mask allows for routing to multiple - * Cloud Functions without having to create multiple Network Endpoint Groups and backend services. - * - * For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the - * same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } - * and{ function = "function2" } respectively. - * @return value or {@code null} for none - */ - public java.lang.String getUrlMask() { - return urlMask; - } - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse function field from a request URL. URL mask allows for routing to multiple - * Cloud Functions without having to create multiple Network Endpoint Groups and backend services. - * - * For example, request URLs mydomain.com/function1 andmydomain.com/function2 can be backed by the - * same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } - * and{ function = "function2" } respectively. - * @param urlMask urlMask or {@code null} for none - */ - public NetworkEndpointGroupCloudFunction setUrlMask(java.lang.String urlMask) { - this.urlMask = urlMask; - return this; - } - - @Override - public NetworkEndpointGroupCloudFunction set(String fieldName, Object value) { - return (NetworkEndpointGroupCloudFunction) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupCloudFunction clone() { - return (NetworkEndpointGroupCloudFunction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudRun.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudRun.java deleted file mode 100644 index 337640560c2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupCloudRun.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration for a Cloud Run network endpoint group (NEG). The service must be provided - * explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL - * mask. - * - * Note: Cloud Run service must be in the same project and located in the same region as the - * Serverless NEG. - * - *

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 NetworkEndpointGroupCloudRun extends com.google.api.client.json.GenericJson { - - /** - * Cloud Run service is the main resource of Cloud Run. - * - * The service must be 1-63 characters long, and comply withRFC1035. - * - * Example value: "run-service". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained - * traffic routing information. - * - * The tag must be 1-63 characters long, and comply withRFC1035. - * - * Example value: "revision-0010". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tag; - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse and fields from a request URL. URL mask allows for routing to multiple Run - * services without having to create multiple network endpoint groups and backend services. - * - * For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the - * same Serverless Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will parse - * them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMask; - - /** - * Cloud Run service is the main resource of Cloud Run. - * - * The service must be 1-63 characters long, and comply withRFC1035. - * - * Example value: "run-service". - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * Cloud Run service is the main resource of Cloud Run. - * - * The service must be 1-63 characters long, and comply withRFC1035. - * - * Example value: "run-service". - * @param service service or {@code null} for none - */ - public NetworkEndpointGroupCloudRun setService(java.lang.String service) { - this.service = service; - return this; - } - - /** - * Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained - * traffic routing information. - * - * The tag must be 1-63 characters long, and comply withRFC1035. - * - * Example value: "revision-0010". - * @return value or {@code null} for none - */ - public java.lang.String getTag() { - return tag; - } - - /** - * Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained - * traffic routing information. - * - * The tag must be 1-63 characters long, and comply withRFC1035. - * - * Example value: "revision-0010". - * @param tag tag or {@code null} for none - */ - public NetworkEndpointGroupCloudRun setTag(java.lang.String tag) { - this.tag = tag; - return this; - } - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse and fields from a request URL. URL mask allows for routing to multiple Run - * services without having to create multiple network endpoint groups and backend services. - * - * For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the - * same Serverless Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will parse - * them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. - * @return value or {@code null} for none - */ - public java.lang.String getUrlMask() { - return urlMask; - } - - /** - * An URL mask is one of the main components of the Cloud Function. - * - * A template to parse and fields from a request URL. URL mask allows for routing to multiple Run - * services without having to create multiple network endpoint groups and backend services. - * - * For example, request URLs foo1.domain.com/bar1 andfoo1.domain.com/bar2 can be backed by the - * same Serverless Network Endpoint Group (NEG) with URL mask.domain.com/. The URL mask will parse - * them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. - * @param urlMask urlMask or {@code null} for none - */ - public NetworkEndpointGroupCloudRun setUrlMask(java.lang.String urlMask) { - this.urlMask = urlMask; - return this; - } - - @Override - public NetworkEndpointGroupCloudRun set(String fieldName, Object value) { - return (NetworkEndpointGroupCloudRun) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupCloudRun clone() { - return (NetworkEndpointGroupCloudRun) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupList.java deleted file mode 100644 index 3235657da98..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupList. - * - *

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 NetworkEndpointGroupList extends com.google.api.client.json.GenericJson { - - /** - * [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 NetworkEndpointGroup 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 NetworkEndpointGroup 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(NetworkEndpointGroup.class); - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NetworkEndpointGroupList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkEndpointGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NetworkEndpointGroup resources. - * @param items items or {@code null} for none - */ - public NetworkEndpointGroupList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. - * @param kind kind or {@code null} for none - */ - public NetworkEndpointGroupList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkEndpointGroupList 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 NetworkEndpointGroupList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NetworkEndpointGroupList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkEndpointGroupList set(String fieldName, Object value) { - return (NetworkEndpointGroupList) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupList clone() { - return (NetworkEndpointGroupList) 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 NetworkEndpointGroupListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupPscData.java deleted file mode 100644 index d698dc98129..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupPscData.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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.preview.model; - -/** - * All data that is specifically relevant to only network endpoint groups of type - * PRIVATE_SERVICE_CONNECT. - * - *

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 NetworkEndpointGroupPscData extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address - * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumerPscAddress; - - /** - * The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; - * should only be used for the PRIVATE_SERVICE_CONNECT NEG type - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer producerPort; - - /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger pscConnectionId; - - /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pscConnectionStatus; - - /** - * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address - * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. - * @return value or {@code null} for none - */ - public java.lang.String getConsumerPscAddress() { - return consumerPscAddress; - } - - /** - * Output only. [Output Only] Address allocated from given subnetwork for PSC. This IP address - * acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB. - * @param consumerPscAddress consumerPscAddress or {@code null} for none - */ - public NetworkEndpointGroupPscData setConsumerPscAddress(java.lang.String consumerPscAddress) { - this.consumerPscAddress = consumerPscAddress; - return this; - } - - /** - * The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; - * should only be used for the PRIVATE_SERVICE_CONNECT NEG type - * @return value or {@code null} for none - */ - public java.lang.Integer getProducerPort() { - return producerPort; - } - - /** - * The psc producer port is used to connect PSC NEG with specific port on the PSC Producer side; - * should only be used for the PRIVATE_SERVICE_CONNECT NEG type - * @param producerPort producerPort or {@code null} for none - */ - public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPort) { - this.producerPort = producerPort; - return this; - } - - /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. - * @return value or {@code null} for none - */ - public java.math.BigInteger getPscConnectionId() { - return pscConnectionId; - } - - /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. - * @param pscConnectionId pscConnectionId or {@code null} for none - */ - public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscConnectionId) { - this.pscConnectionId = pscConnectionId; - return this; - } - - /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. - * @return value or {@code null} for none - */ - public java.lang.String getPscConnectionStatus() { - return pscConnectionStatus; - } - - /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. - * @param pscConnectionStatus pscConnectionStatus or {@code null} for none - */ - public NetworkEndpointGroupPscData setPscConnectionStatus(java.lang.String pscConnectionStatus) { - this.pscConnectionStatus = pscConnectionStatus; - return this; - } - - @Override - public NetworkEndpointGroupPscData set(String fieldName, Object value) { - return (NetworkEndpointGroupPscData) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupPscData clone() { - return (NetworkEndpointGroupPscData) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsAttachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsAttachEndpointsRequest.java deleted file mode 100644 index b182dc4ff8e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsAttachEndpointsRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupsAttachEndpointsRequest. - * - *

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 NetworkEndpointGroupsAttachEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of network endpoints to be attached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpoints; - - static { - // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); - } - - /** - * The list of network endpoints to be attached. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpoints() { - return networkEndpoints; - } - - /** - * The list of network endpoints to be attached. - * @param networkEndpoints networkEndpoints or {@code null} for none - */ - public NetworkEndpointGroupsAttachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { - this.networkEndpoints = networkEndpoints; - return this; - } - - @Override - public NetworkEndpointGroupsAttachEndpointsRequest set(String fieldName, Object value) { - return (NetworkEndpointGroupsAttachEndpointsRequest) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupsAttachEndpointsRequest clone() { - return (NetworkEndpointGroupsAttachEndpointsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsDetachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsDetachEndpointsRequest.java deleted file mode 100644 index c7ccb25e4fd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsDetachEndpointsRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupsDetachEndpointsRequest. - * - *

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 NetworkEndpointGroupsDetachEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of network endpoints to be detached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpoints; - - static { - // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); - } - - /** - * The list of network endpoints to be detached. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpoints() { - return networkEndpoints; - } - - /** - * The list of network endpoints to be detached. - * @param networkEndpoints networkEndpoints or {@code null} for none - */ - public NetworkEndpointGroupsDetachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { - this.networkEndpoints = networkEndpoints; - return this; - } - - @Override - public NetworkEndpointGroupsDetachEndpointsRequest set(String fieldName, Object value) { - return (NetworkEndpointGroupsDetachEndpointsRequest) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupsDetachEndpointsRequest clone() { - return (NetworkEndpointGroupsDetachEndpointsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListEndpointsRequest.java deleted file mode 100644 index 6d7d50c93de..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListEndpointsRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupsListEndpointsRequest. - * - *

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 NetworkEndpointGroupsListEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional query parameter for showing the health status of each network endpoint. Valid options - * are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints - * will not be provided. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatus; - - /** - * Optional query parameter for showing the health status of each network endpoint. Valid options - * are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints - * will not be provided. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatus() { - return healthStatus; - } - - /** - * Optional query parameter for showing the health status of each network endpoint. Valid options - * are SKIP or SHOW. If you don't specify this parameter, the health status of network endpoints - * will not be provided. - * @param healthStatus healthStatus or {@code null} for none - */ - public NetworkEndpointGroupsListEndpointsRequest setHealthStatus(java.lang.String healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - @Override - public NetworkEndpointGroupsListEndpointsRequest set(String fieldName, Object value) { - return (NetworkEndpointGroupsListEndpointsRequest) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupsListEndpointsRequest clone() { - return (NetworkEndpointGroupsListEndpointsRequest) super.clone(); - } - -} From 447335b084bee4b65e56385f3a660d30a174cdf5 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:39 -0700 Subject: [PATCH 18/23] chore: regenerate compute client --- ...orkEndpointGroupsListNetworkEndpoints.java | 359 ----- .../NetworkEndpointGroupsScopedList.java | 282 ---- .../NetworkEndpointWithHealthStatus.java | 102 -- .../NetworkFirewallPolicyAggregatedList.java | 410 ------ .../preview/model/NetworkInterface.java | 757 ---------- .../compute/preview/model/NetworkList.java | 383 ----- .../compute/preview/model/NetworkParams.java | 84 -- .../compute/preview/model/NetworkPeering.java | 431 ------ .../model/NetworkPeeringConnectionStatus.java | 122 -- ...PeeringConnectionStatusConsensusState.java | 92 -- ...gConnectionStatusTrafficConfiguration.java | 162 --- .../model/NetworkPerformanceConfig.java | 63 - .../compute/preview/model/NetworkProfile.java | 288 ---- .../preview/model/NetworkProfileLocation.java | 84 -- .../model/NetworkProfileNetworkFeatures.java | 957 ------------- ...workFeaturesPredefinedSubnetworkRange.java | 90 -- .../model/NetworkProfileProfileType.java | 126 -- .../model/NetworkProfilesListResponse.java | 434 ------ .../preview/model/NetworkRoutingConfig.java | 206 --- .../model/NetworksAddPeeringRequest.java | 165 --- ...orksCancelRequestRemovePeeringRequest.java | 66 - ...NetworksGetEffectiveFirewallsResponse.java | 105 -- ...ewallsResponseEffectiveFirewallPolicy.java | 228 --- .../model/NetworksRemovePeeringRequest.java | 66 - .../NetworksRequestRemovePeeringRequest.java | 66 - .../model/NetworksUpdatePeeringRequest.java | 63 - .../compute/preview/model/NodeGroup.java | 507 ------- .../model/NodeGroupAggregatedList.java | 404 ------ .../model/NodeGroupAutoscalingPolicy.java | 120 -- .../compute/preview/model/NodeGroupList.java | 386 ----- .../model/NodeGroupMaintenanceWindow.java | 97 -- .../compute/preview/model/NodeGroupNode.java | 393 ----- .../model/NodeGroupsAddNodesRequest.java | 66 - .../model/NodeGroupsDeleteNodesRequest.java | 66 - .../preview/model/NodeGroupsListNodes.java | 386 ----- .../NodeGroupsPerformMaintenanceRequest.java | 90 -- .../preview/model/NodeGroupsScopedList.java | 278 ---- .../NodeGroupsSetNodeTemplateRequest.java | 66 - ...GroupsSimulateMaintenanceEventRequest.java | 66 - .../compute/preview/model/NodeTemplate.java | 471 ------ .../model/NodeTemplateAggregatedList.java | 404 ------ .../preview/model/NodeTemplateList.java | 386 ----- .../NodeTemplateNodeTypeFlexibility.java | 105 -- .../model/NodeTemplatesScopedList.java | 278 ---- .../compute/preview/model/NodeType.java | 362 ----- .../preview/model/NodeTypeAggregatedList.java | 404 ------ .../compute/preview/model/NodeTypeList.java | 386 ----- .../preview/model/NodeTypesScopedList.java | 278 ---- .../preview/model/NotificationEndpoint.java | 263 ---- .../NotificationEndpointAggregatedList.java | 401 ------ .../NotificationEndpointGrpcSettings.java | 178 --- .../model/NotificationEndpointList.java | 386 ----- .../NotificationEndpointsScopedList.java | 278 ---- .../compute/preview/model/Operation.java | 1262 ----------------- .../model/OperationAggregatedList.java | 404 ------ .../compute/preview/model/OperationList.java | 386 ----- .../preview/model/OperationsScopedList.java | 281 ---- ...urityPoliciesListAssociationsResponse.java | 96 -- .../preview/model/OutlierDetection.java | 418 ------ .../preview/model/PacketIntervals.java | 186 --- .../preview/model/PacketMirroring.java | 410 ------ .../model/PacketMirroringAggregatedList.java | 401 ------ .../preview/model/PacketMirroringFilter.java | 132 -- .../PacketMirroringForwardingRuleInfo.java | 93 -- .../preview/model/PacketMirroringList.java | 386 ----- .../PacketMirroringMirroredResourceInfo.java | 144 -- ...oringMirroredResourceInfoInstanceInfo.java | 90 -- ...rroringMirroredResourceInfoSubnetInfo.java | 90 -- .../model/PacketMirroringNetworkInfo.java | 90 -- .../model/PacketMirroringsScopedList.java | 278 ---- .../compute/preview/model/PathMatcher.java | 502 ------- .../compute/preview/model/PathRule.java | 268 ---- .../preview/model/PerInstanceConfig.java | 191 --- .../PeriodicPartialMaintenanceSchedule.java | 163 --- .../compute/preview/model/Policy.java | 337 ----- .../preview/model/PreconfiguredWafSet.java | 66 - .../compute/preview/model/PreservedState.java | 147 -- .../model/PreservedStatePreservedDisk.java | 126 -- .../PreservedStatePreservedNetworkIp.java | 96 -- ...ervedStatePreservedNetworkIpIpAddress.java | 90 -- .../compute/preview/model/PreviewFeature.java | 264 ---- .../preview/model/PreviewFeatureList.java | 407 ------ .../model/PreviewFeatureRolloutOperation.java | 66 - ...ewFeatureRolloutOperationRolloutInput.java | 93 -- .../preview/model/PreviewFeatureStatus.java | 111 -- .../PreviewFeatureStatusReleaseStatus.java | 90 -- .../compute/preview/model/Project.java | 438 ------ .../compute/preview/model/ProjectView.java | 77 - .../ProjectsDisableXpnResourceRequest.java | 66 - .../ProjectsEnableXpnResourceRequest.java | 66 - .../model/ProjectsGetXpnResources.java | 126 -- .../model/ProjectsListXpnHostsRequest.java | 69 - .../ProjectsSetCloudArmorTierRequest.java | 66 - .../ProjectsSetDefaultNetworkTierRequest.java | 66 - .../preview/model/PublicAdvertisedPrefix.java | 508 ------- .../model/PublicAdvertisedPrefixList.java | 386 ----- ...AdvertisedPrefixPublicDelegatedPrefix.java | 168 --- .../preview/model/PublicDelegatedPrefix.java | 581 -------- .../PublicDelegatedPrefixAggregatedList.java | 407 ------ .../model/PublicDelegatedPrefixList.java | 386 ----- 100 files changed, 25270 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListNetworkEndpoints.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointWithHealthStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkFirewallPolicyAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkInterface.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeering.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusConsensusState.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusTrafficConfiguration.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPerformanceConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfile.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeatures.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileProfileType.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfilesListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkRoutingConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksAddPeeringRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksCancelRequestRemovePeeringRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRemovePeeringRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRequestRemovePeeringRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksUpdatePeeringRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAutoscalingPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupMaintenanceWindow.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupNode.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsAddNodesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsDeleteNodesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsListNodes.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsPerformMaintenanceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSetNodeTemplateRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSimulateMaintenanceEventRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplate.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateNodeTypeFlexibility.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplatesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeType.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointGrpcSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Operation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OrganizationSecurityPoliciesListAssociationsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OutlierDetection.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketIntervals.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroring.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringFilter.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringForwardingRuleInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoInstanceInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoSubnetInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringNetworkInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathMatcher.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PerInstanceConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PeriodicPartialMaintenanceSchedule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Policy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreconfiguredWafSet.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedState.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIp.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIpIpAddress.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeature.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperationRolloutInput.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatusReleaseStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Project.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectView.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsDisableXpnResourceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsEnableXpnResourceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsGetXpnResources.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsListXpnHostsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetCloudArmorTierRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetDefaultNetworkTierRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefix.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefix.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixList.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListNetworkEndpoints.java deleted file mode 100644 index c5d457ab9f8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupsListNetworkEndpoints. - * - *

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 NetworkEndpointGroupsListNetworkEndpoints extends com.google.api.client.json.GenericJson { - - /** - * [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 NetworkEndpointWithHealthStatus resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in - * the specified network endpoint group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NetworkEndpointGroupsListNetworkEndpoints setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkEndpointWithHealthStatus resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NetworkEndpointWithHealthStatus resources. - * @param items items or {@code null} for none - */ - public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in - * the specified network endpoint group. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in - * the specified network endpoint group. - * @param kind kind or {@code null} for none - */ - public NetworkEndpointGroupsListNetworkEndpoints setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkEndpointGroupsListNetworkEndpoints setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - 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 NetworkEndpointGroupsListNetworkEndpoints setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkEndpointGroupsListNetworkEndpoints set(String fieldName, Object value) { - return (NetworkEndpointGroupsListNetworkEndpoints) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupsListNetworkEndpoints clone() { - return (NetworkEndpointGroupsListNetworkEndpoints) 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 NetworkEndpointGroupsListNetworkEndpointsWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsScopedList.java deleted file mode 100644 index ab78062480e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointGroupsScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointGroupsScopedList. - * - *

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 NetworkEndpointGroupsScopedList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpointGroups; - - static { - // hack to force ProGuard to consider NetworkEndpointGroup 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(NetworkEndpointGroup.class); - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of network endpoint - * groups when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpointGroups() { - return networkEndpointGroups; - } - - /** - * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. - * @param networkEndpointGroups networkEndpointGroups or {@code null} for none - */ - public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List networkEndpointGroups) { - this.networkEndpointGroups = networkEndpointGroups; - return this; - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of network endpoint - * groups when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of network endpoint - * groups when the list is empty. - * @param warning warning or {@code null} for none - */ - public NetworkEndpointGroupsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkEndpointGroupsScopedList set(String fieldName, Object value) { - return (NetworkEndpointGroupsScopedList) super.set(fieldName, value); - } - - @Override - public NetworkEndpointGroupsScopedList clone() { - return (NetworkEndpointGroupsScopedList) super.clone(); - } - - /** - * Output only. [Output Only] An informational warning that replaces the list of network endpoint - * groups when the list is empty. - */ - 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 NetworkEndpointGroupsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointWithHealthStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointWithHealthStatus.java deleted file mode 100644 index db3404ebd01..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkEndpointWithHealthStatus.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkEndpointWithHealthStatus. - * - *

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 NetworkEndpointWithHealthStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] The health status of network endpoint. - * - * Optional. Displayed only if the network endpoint has centralized health checking configured. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healths; - - static { - // hack to force ProGuard to consider HealthStatusForNetworkEndpoint 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(HealthStatusForNetworkEndpoint.class); - } - - /** - * Output only. [Output only] The network endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkEndpoint networkEndpoint; - - /** - * Output only. [Output only] The health status of network endpoint. - * - * Optional. Displayed only if the network endpoint has centralized health checking configured. - * @return value or {@code null} for none - */ - public java.util.List getHealths() { - return healths; - } - - /** - * Output only. [Output only] The health status of network endpoint. - * - * Optional. Displayed only if the network endpoint has centralized health checking configured. - * @param healths healths or {@code null} for none - */ - public NetworkEndpointWithHealthStatus setHealths(java.util.List healths) { - this.healths = healths; - return this; - } - - /** - * Output only. [Output only] The network endpoint. - * @return value or {@code null} for none - */ - public NetworkEndpoint getNetworkEndpoint() { - return networkEndpoint; - } - - /** - * Output only. [Output only] The network endpoint. - * @param networkEndpoint networkEndpoint or {@code null} for none - */ - public NetworkEndpointWithHealthStatus setNetworkEndpoint(NetworkEndpoint networkEndpoint) { - this.networkEndpoint = networkEndpoint; - return this; - } - - @Override - public NetworkEndpointWithHealthStatus set(String fieldName, Object value) { - return (NetworkEndpointWithHealthStatus) super.set(fieldName, value); - } - - @Override - public NetworkEndpointWithHealthStatus clone() { - return (NetworkEndpointWithHealthStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkFirewallPolicyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkFirewallPolicyAggregatedList.java deleted file mode 100644 index 5be7b176ced..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkFirewallPolicyAggregatedList.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkFirewallPolicyAggregatedList. - * - *

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 NetworkFirewallPolicyAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 FirewallPoliciesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider FirewallPoliciesScopedList 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(FirewallPoliciesScopedList.class); - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 NetworkFirewallPolicyAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of FirewallPoliciesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of FirewallPoliciesScopedList resources. - * @param items items or {@code null} for none - */ - public NetworkFirewallPolicyAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. - * @param kind kind or {@code null} for none - */ - public NetworkFirewallPolicyAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkFirewallPolicyAggregatedList 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 NetworkFirewallPolicyAggregatedList 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 NetworkFirewallPolicyAggregatedList 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 NetworkFirewallPolicyAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkFirewallPolicyAggregatedList set(String fieldName, Object value) { - return (NetworkFirewallPolicyAggregatedList) super.set(fieldName, value); - } - - @Override - public NetworkFirewallPolicyAggregatedList clone() { - return (NetworkFirewallPolicyAggregatedList) 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 NetworkFirewallPolicyAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkInterface.java deleted file mode 100644 index 8daeac2fc68..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkInterface.java +++ /dev/null @@ -1,757 +0,0 @@ -/* - * 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.preview.model; - -/** - * A network interface resource attached to an instance. - * - *

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 NetworkInterface extends com.google.api.client.json.GenericJson { - - /** - * An array of configurations for this interface. Currently, only one access config, - * ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will - * have no external internet access. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List accessConfigs; - - static { - // hack to force ProGuard to consider AccessConfig 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(AccessConfig.class); - } - - /** - * An array of alias IP ranges for this network interface. You can only specify this field for - * network interfaces in VPC networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List aliasIpRanges; - - static { - // hack to force ProGuard to consider AliasIpRange 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(AliasIpRange.class); - } - - /** - * An array of alias IPv6 ranges for this network interface. You can only specify this field for - * network interfaces in VPC networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List aliasIpv6Ranges; - - static { - // hack to force ProGuard to consider AliasIpRange 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(AliasIpRange.class); - } - - /** - * Optional. If true, DNS resolution will be enabled over this interface. Only valid with - * network_attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableVpcScopedDns; - - /** - * Fingerprint hash of contents stored in this network interface. This field will be ignored when - * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided - * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the - * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Indicate whether igmp query is enabled on the network interface or not. If enabled, also - * indicates the version of IGMP supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String igmpQuery; - - /** - * The prefix length of the primary internal IPv6 range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer internalIpv6PrefixLength; - - /** - * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access - * config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this - * instance will have no external IPv6 Internet access. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ipv6AccessConfigs; - - static { - // hack to force ProGuard to consider AccessConfig 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(AccessConfig.class); - } - - /** - * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed - * from the Internet. This field is always inherited from its subnetwork. - * - * Valid only if stackType is IPV4_IPV6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6AccessType; - - /** - * An IPv6 internal network address for this network interface. To use a static internal IP - * address, it must be unused and in the same region as the instance's zone. If not specified, - * Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] The name of the network interface, which is generated by the server. For a VM, - * the network interface uses the nicN naming format. Where N is a value between 0 and7. The - * default interface value is nic0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * URL of the VPC network resource for this instance. When creating an instance, if neither the - * network nor the subnetwork is specified, the default network global/networks/default is used. - * If the selected project doesn't have the default network, you must specify a network or subnet. - * If the network is not specified but the subnetwork is specified, the network is inferred. - * - * If you specify this property, you can specify the network as a full or partial URL. For - * example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - - * projects/project/global/networks/network - global/networks/default - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * The URL of the network attachment that this interface should connect to in the following - * format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkAttachment; - - /** - * An IPv4 internal IP address to assign to the instance for this network interface. If not - * specified by the user, an unused internal IP is assigned by the system. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkIP; - - /** - * The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nicType; - - /** - * Name of the parent network interface of a dynamic network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parentNicName; - - /** - * The networking queue count that's specified by users for the network interface. Both Rx and Tx - * queues will be set to this number. It'll be empty if not specified by the users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer queueCount; - - /** - * Optional. Producer Service's Service class Id for the region of this network interface. Can - * only be used with network_attachment. It is not possible to use on its own however, - * network_attachment can be used without service_class_id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serviceClassId; - - /** - * The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To - * assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. - * - * This field can be both set at instance creation and update network interface operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, - * do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is - * optional. If the network is in custom subnet mode, specifying the subnetwork is required. If - * you specify this field, you can specify the subnetwork as a full or partial URL. For example, - * the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - * - regions/region/subnetworks/subnetwork - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 - * inclusively. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer vlan; - - /** - * An array of configurations for this interface. Currently, only one access config, - * ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will - * have no external internet access. - * @return value or {@code null} for none - */ - public java.util.List getAccessConfigs() { - return accessConfigs; - } - - /** - * An array of configurations for this interface. Currently, only one access config, - * ONE_TO_ONE_NAT, is supported. If there are noaccessConfigs specified, then this instance will - * have no external internet access. - * @param accessConfigs accessConfigs or {@code null} for none - */ - public NetworkInterface setAccessConfigs(java.util.List accessConfigs) { - this.accessConfigs = accessConfigs; - return this; - } - - /** - * An array of alias IP ranges for this network interface. You can only specify this field for - * network interfaces in VPC networks. - * @return value or {@code null} for none - */ - public java.util.List getAliasIpRanges() { - return aliasIpRanges; - } - - /** - * An array of alias IP ranges for this network interface. You can only specify this field for - * network interfaces in VPC networks. - * @param aliasIpRanges aliasIpRanges or {@code null} for none - */ - public NetworkInterface setAliasIpRanges(java.util.List aliasIpRanges) { - this.aliasIpRanges = aliasIpRanges; - return this; - } - - /** - * An array of alias IPv6 ranges for this network interface. You can only specify this field for - * network interfaces in VPC networks. - * @return value or {@code null} for none - */ - public java.util.List getAliasIpv6Ranges() { - return aliasIpv6Ranges; - } - - /** - * An array of alias IPv6 ranges for this network interface. You can only specify this field for - * network interfaces in VPC networks. - * @param aliasIpv6Ranges aliasIpv6Ranges or {@code null} for none - */ - public NetworkInterface setAliasIpv6Ranges(java.util.List aliasIpv6Ranges) { - this.aliasIpv6Ranges = aliasIpv6Ranges; - return this; - } - - /** - * Optional. If true, DNS resolution will be enabled over this interface. Only valid with - * network_attachment. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableVpcScopedDns() { - return enableVpcScopedDns; - } - - /** - * Optional. If true, DNS resolution will be enabled over this interface. Only valid with - * network_attachment. - * @param enableVpcScopedDns enableVpcScopedDns or {@code null} for none - */ - public NetworkInterface setEnableVpcScopedDns(java.lang.Boolean enableVpcScopedDns) { - this.enableVpcScopedDns = enableVpcScopedDns; - return this; - } - - /** - * Fingerprint hash of contents stored in this network interface. This field will be ignored when - * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided - * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the - * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint hash of contents stored in this network interface. This field will be ignored when - * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided - * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the - * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint hash of contents stored in this network interface. This field will be ignored when - * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided - * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the - * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public NetworkInterface setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint hash of contents stored in this network interface. This field will be ignored when - * inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided - * in order to update theNetworkInterface. The request will fail with error400 Bad Request if the - * fingerprint is not provided, or412 Precondition Failed if the fingerprint is out of date. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public NetworkInterface encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Indicate whether igmp query is enabled on the network interface or not. If enabled, also - * indicates the version of IGMP supported. - * @return value or {@code null} for none - */ - public java.lang.String getIgmpQuery() { - return igmpQuery; - } - - /** - * Indicate whether igmp query is enabled on the network interface or not. If enabled, also - * indicates the version of IGMP supported. - * @param igmpQuery igmpQuery or {@code null} for none - */ - public NetworkInterface setIgmpQuery(java.lang.String igmpQuery) { - this.igmpQuery = igmpQuery; - return this; - } - - /** - * The prefix length of the primary internal IPv6 range. - * @return value or {@code null} for none - */ - public java.lang.Integer getInternalIpv6PrefixLength() { - return internalIpv6PrefixLength; - } - - /** - * The prefix length of the primary internal IPv6 range. - * @param internalIpv6PrefixLength internalIpv6PrefixLength or {@code null} for none - */ - public NetworkInterface setInternalIpv6PrefixLength(java.lang.Integer internalIpv6PrefixLength) { - this.internalIpv6PrefixLength = internalIpv6PrefixLength; - return this; - } - - /** - * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access - * config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this - * instance will have no external IPv6 Internet access. - * @return value or {@code null} for none - */ - public java.util.List getIpv6AccessConfigs() { - return ipv6AccessConfigs; - } - - /** - * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access - * config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this - * instance will have no external IPv6 Internet access. - * @param ipv6AccessConfigs ipv6AccessConfigs or {@code null} for none - */ - public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6AccessConfigs) { - this.ipv6AccessConfigs = ipv6AccessConfigs; - return this; - } - - /** - * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed - * from the Internet. This field is always inherited from its subnetwork. - * - * Valid only if stackType is IPV4_IPV6. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6AccessType() { - return ipv6AccessType; - } - - /** - * Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed - * from the Internet. This field is always inherited from its subnetwork. - * - * Valid only if stackType is IPV4_IPV6. - * @param ipv6AccessType ipv6AccessType or {@code null} for none - */ - public NetworkInterface setIpv6AccessType(java.lang.String ipv6AccessType) { - this.ipv6AccessType = ipv6AccessType; - return this; - } - - /** - * An IPv6 internal network address for this network interface. To use a static internal IP - * address, it must be unused and in the same region as the instance's zone. If not specified, - * Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * An IPv6 internal network address for this network interface. To use a static internal IP - * address, it must be unused and in the same region as the instance's zone. If not specified, - * Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. - * @param ipv6Address ipv6Address or {@code null} for none - */ - public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. - * @param kind kind or {@code null} for none - */ - public NetworkInterface setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] The name of the network interface, which is generated by the server. For a VM, - * the network interface uses the nicN naming format. Where N is a value between 0 and7. The - * default interface value is nic0. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] The name of the network interface, which is generated by the server. For a VM, - * the network interface uses the nicN naming format. Where N is a value between 0 and7. The - * default interface value is nic0. - * @param name name or {@code null} for none - */ - public NetworkInterface setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * URL of the VPC network resource for this instance. When creating an instance, if neither the - * network nor the subnetwork is specified, the default network global/networks/default is used. - * If the selected project doesn't have the default network, you must specify a network or subnet. - * If the network is not specified but the subnetwork is specified, the network is inferred. - * - * If you specify this property, you can specify the network as a full or partial URL. For - * example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - - * projects/project/global/networks/network - global/networks/default - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * URL of the VPC network resource for this instance. When creating an instance, if neither the - * network nor the subnetwork is specified, the default network global/networks/default is used. - * If the selected project doesn't have the default network, you must specify a network or subnet. - * If the network is not specified but the subnetwork is specified, the network is inferred. - * - * If you specify this property, you can specify the network as a full or partial URL. For - * example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/global/networks/network - - * projects/project/global/networks/network - global/networks/default - * @param network network or {@code null} for none - */ - public NetworkInterface setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * The URL of the network attachment that this interface should connect to in the following - * format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; - } - - /** - * The URL of the network attachment that this interface should connect to in the following - * format: - * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. - * @param networkAttachment networkAttachment or {@code null} for none - */ - public NetworkInterface setNetworkAttachment(java.lang.String networkAttachment) { - this.networkAttachment = networkAttachment; - return this; - } - - /** - * An IPv4 internal IP address to assign to the instance for this network interface. If not - * specified by the user, an unused internal IP is assigned by the system. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkIP() { - return networkIP; - } - - /** - * An IPv4 internal IP address to assign to the instance for this network interface. If not - * specified by the user, an unused internal IP is assigned by the system. - * @param networkIP networkIP or {@code null} for none - */ - public NetworkInterface setNetworkIP(java.lang.String networkIP) { - this.networkIP = networkIP; - return this; - } - - /** - * The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. - * @return value or {@code null} for none - */ - public java.lang.String getNicType() { - return nicType; - } - - /** - * The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. - * @param nicType nicType or {@code null} for none - */ - public NetworkInterface setNicType(java.lang.String nicType) { - this.nicType = nicType; - return this; - } - - /** - * Name of the parent network interface of a dynamic network interface. - * @return value or {@code null} for none - */ - public java.lang.String getParentNicName() { - return parentNicName; - } - - /** - * Name of the parent network interface of a dynamic network interface. - * @param parentNicName parentNicName or {@code null} for none - */ - public NetworkInterface setParentNicName(java.lang.String parentNicName) { - this.parentNicName = parentNicName; - return this; - } - - /** - * The networking queue count that's specified by users for the network interface. Both Rx and Tx - * queues will be set to this number. It'll be empty if not specified by the users. - * @return value or {@code null} for none - */ - public java.lang.Integer getQueueCount() { - return queueCount; - } - - /** - * The networking queue count that's specified by users for the network interface. Both Rx and Tx - * queues will be set to this number. It'll be empty if not specified by the users. - * @param queueCount queueCount or {@code null} for none - */ - public NetworkInterface setQueueCount(java.lang.Integer queueCount) { - this.queueCount = queueCount; - return this; - } - - /** - * Optional. Producer Service's Service class Id for the region of this network interface. Can - * only be used with network_attachment. It is not possible to use on its own however, - * network_attachment can be used without service_class_id. - * @return value or {@code null} for none - */ - public java.lang.String getServiceClassId() { - return serviceClassId; - } - - /** - * Optional. Producer Service's Service class Id for the region of this network interface. Can - * only be used with network_attachment. It is not possible to use on its own however, - * network_attachment can be used without service_class_id. - * @param serviceClassId serviceClassId or {@code null} for none - */ - public NetworkInterface setServiceClassId(java.lang.String serviceClassId) { - this.serviceClassId = serviceClassId; - return this; - } - - /** - * The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To - * assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. - * - * This field can be both set at instance creation and update network interface operations. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To - * assign both IPv4 and IPv6 addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is used. - * - * This field can be both set at instance creation and update network interface operations. - * @param stackType stackType or {@code null} for none - */ - public NetworkInterface setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - /** - * The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, - * do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is - * optional. If the network is in custom subnet mode, specifying the subnetwork is required. If - * you specify this field, you can specify the subnetwork as a full or partial URL. For example, - * the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - * - regions/region/subnetworks/subnetwork - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * The URL of the Subnetwork resource for this instance. If the network resource is inlegacy mode, - * do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is - * optional. If the network is in custom subnet mode, specifying the subnetwork is required. If - * you specify this field, you can specify the subnetwork as a full or partial URL. For example, - * the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork - * - regions/region/subnetworks/subnetwork - * @param subnetwork subnetwork or {@code null} for none - */ - public NetworkInterface setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - /** - * VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 - * inclusively. - * @return value or {@code null} for none - */ - public java.lang.Integer getVlan() { - return vlan; - } - - /** - * VLAN tag of a dynamic network interface, must be an integer in the range from 2 to 255 - * inclusively. - * @param vlan vlan or {@code null} for none - */ - public NetworkInterface setVlan(java.lang.Integer vlan) { - this.vlan = vlan; - return this; - } - - @Override - public NetworkInterface set(String fieldName, Object value) { - return (NetworkInterface) super.set(fieldName, value); - } - - @Override - public NetworkInterface clone() { - return (NetworkInterface) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkList.java deleted file mode 100644 index c4603768dd4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of networks. - * - *

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 NetworkList extends com.google.api.client.json.GenericJson { - - /** - * [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 Network 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 Network 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(Network.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NetworkList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Network resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Network resources. - * @param items items or {@code null} for none - */ - public NetworkList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. - * @param kind kind or {@code null} for none - */ - public NetworkList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkList 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 NetworkList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NetworkList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkList set(String fieldName, Object value) { - return (NetworkList) super.set(fieldName, value); - } - - @Override - public NetworkList clone() { - return (NetworkList) 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 NetworkListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkParams.java deleted file mode 100644 index 3d42db4bac8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional network parameters. - * - *

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 NetworkParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public NetworkParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public NetworkParams set(String fieldName, Object value) { - return (NetworkParams) super.set(fieldName, value); - } - - @Override - public NetworkParams clone() { - return (NetworkParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeering.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeering.java deleted file mode 100644 index 48daaf0674b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeering.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * A network peering attached to a network resource. The message includes the peering name, peer - * network, peering state, and a flag indicating whether Google Compute Engine should automatically - * create routes for the peering. - * - *

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 NetworkPeering extends com.google.api.client.json.GenericJson { - - /** - * This field will be deprecated soon. Use theexchange_subnet_routes field instead. Indicates - * whether full mesh connectivity is created and managed automatically between peered networks. - * Currently this field should always be true since Google Compute Engine will automatically - * create and manage subnetwork routes between two networks when peering state isACTIVE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoCreateRoutes; - - /** - * Output only. [Output Only] The effective state of the peering connection as a whole. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPeeringConnectionStatus connectionStatus; - - /** - * Indicates whether full mesh connectivity is created and managed automatically between peered - * networks. Currently this field should always be true since Google Compute Engine will - * automatically create and manage subnetwork routes between two networks when peering state - * isACTIVE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exchangeSubnetRoutes; - - /** - * Whether to export the custom routes to peer network. The default value is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exportCustomRoutes; - - /** - * Whether subnet routes with public IP range are exported. The default value is true, all subnet - * routes are exported.IPv4 special-use ranges are always exported to peers and are not controlled - * by this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exportSubnetRoutesWithPublicIp; - - /** - * Whether to import the custom routes from peer network. The default value is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean importCustomRoutes; - - /** - * Whether subnet routes with public IP range are imported. The default value is false.IPv4 - * special-use ranges are always imported from peers and are not controlled by this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean importSubnetRoutesWithPublicIp; - - /** - * Name of this peering. Provided by the client when the peering is created. The name must comply - * withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the - * 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; - - /** - * The URL of the peer network. It can be either full URL or partial URL. The peer network may - * belong to a different project. If the partial URL does not contain project, it is assumed that - * the peer network is in the same project as the current network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer peerMtu; - - /** - * Which IP version(s) of traffic and routes are allowed to be imported or exported between peer - * networks. The default value is IPV4_ONLY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * Output only. [Output Only] State for the peering. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] Details about the current state of the peering. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stateDetails; - - /** - * The update strategy determines the semantics for updates and deletes to the peering connection - * configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateStrategy; - - /** - * This field will be deprecated soon. Use theexchange_subnet_routes field instead. Indicates - * whether full mesh connectivity is created and managed automatically between peered networks. - * Currently this field should always be true since Google Compute Engine will automatically - * create and manage subnetwork routes between two networks when peering state isACTIVE. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoCreateRoutes() { - return autoCreateRoutes; - } - - /** - * This field will be deprecated soon. Use theexchange_subnet_routes field instead. Indicates - * whether full mesh connectivity is created and managed automatically between peered networks. - * Currently this field should always be true since Google Compute Engine will automatically - * create and manage subnetwork routes between two networks when peering state isACTIVE. - * @param autoCreateRoutes autoCreateRoutes or {@code null} for none - */ - public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { - this.autoCreateRoutes = autoCreateRoutes; - return this; - } - - /** - * Output only. [Output Only] The effective state of the peering connection as a whole. - * @return value or {@code null} for none - */ - public NetworkPeeringConnectionStatus getConnectionStatus() { - return connectionStatus; - } - - /** - * Output only. [Output Only] The effective state of the peering connection as a whole. - * @param connectionStatus connectionStatus or {@code null} for none - */ - public NetworkPeering setConnectionStatus(NetworkPeeringConnectionStatus connectionStatus) { - this.connectionStatus = connectionStatus; - return this; - } - - /** - * Indicates whether full mesh connectivity is created and managed automatically between peered - * networks. Currently this field should always be true since Google Compute Engine will - * automatically create and manage subnetwork routes between two networks when peering state - * isACTIVE. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExchangeSubnetRoutes() { - return exchangeSubnetRoutes; - } - - /** - * Indicates whether full mesh connectivity is created and managed automatically between peered - * networks. Currently this field should always be true since Google Compute Engine will - * automatically create and manage subnetwork routes between two networks when peering state - * isACTIVE. - * @param exchangeSubnetRoutes exchangeSubnetRoutes or {@code null} for none - */ - public NetworkPeering setExchangeSubnetRoutes(java.lang.Boolean exchangeSubnetRoutes) { - this.exchangeSubnetRoutes = exchangeSubnetRoutes; - return this; - } - - /** - * Whether to export the custom routes to peer network. The default value is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExportCustomRoutes() { - return exportCustomRoutes; - } - - /** - * Whether to export the custom routes to peer network. The default value is false. - * @param exportCustomRoutes exportCustomRoutes or {@code null} for none - */ - public NetworkPeering setExportCustomRoutes(java.lang.Boolean exportCustomRoutes) { - this.exportCustomRoutes = exportCustomRoutes; - return this; - } - - /** - * Whether subnet routes with public IP range are exported. The default value is true, all subnet - * routes are exported.IPv4 special-use ranges are always exported to peers and are not controlled - * by this field. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExportSubnetRoutesWithPublicIp() { - return exportSubnetRoutesWithPublicIp; - } - - /** - * Whether subnet routes with public IP range are exported. The default value is true, all subnet - * routes are exported.IPv4 special-use ranges are always exported to peers and are not controlled - * by this field. - * @param exportSubnetRoutesWithPublicIp exportSubnetRoutesWithPublicIp or {@code null} for none - */ - public NetworkPeering setExportSubnetRoutesWithPublicIp(java.lang.Boolean exportSubnetRoutesWithPublicIp) { - this.exportSubnetRoutesWithPublicIp = exportSubnetRoutesWithPublicIp; - return this; - } - - /** - * Whether to import the custom routes from peer network. The default value is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getImportCustomRoutes() { - return importCustomRoutes; - } - - /** - * Whether to import the custom routes from peer network. The default value is false. - * @param importCustomRoutes importCustomRoutes or {@code null} for none - */ - public NetworkPeering setImportCustomRoutes(java.lang.Boolean importCustomRoutes) { - this.importCustomRoutes = importCustomRoutes; - return this; - } - - /** - * Whether subnet routes with public IP range are imported. The default value is false.IPv4 - * special-use ranges are always imported from peers and are not controlled by this field. - * @return value or {@code null} for none - */ - public java.lang.Boolean getImportSubnetRoutesWithPublicIp() { - return importSubnetRoutesWithPublicIp; - } - - /** - * Whether subnet routes with public IP range are imported. The default value is false.IPv4 - * special-use ranges are always imported from peers and are not controlled by this field. - * @param importSubnetRoutesWithPublicIp importSubnetRoutesWithPublicIp or {@code null} for none - */ - public NetworkPeering setImportSubnetRoutesWithPublicIp(java.lang.Boolean importSubnetRoutesWithPublicIp) { - this.importSubnetRoutesWithPublicIp = importSubnetRoutesWithPublicIp; - return this; - } - - /** - * Name of this peering. Provided by the client when the peering is created. The name must comply - * withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the - * 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 this peering. Provided by the client when the peering is created. The name must comply - * withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression - * `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the - * 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 NetworkPeering setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The URL of the peer network. It can be either full URL or partial URL. The peer network may - * belong to a different project. If the partial URL does not contain project, it is assumed that - * the peer network is in the same project as the current network. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * The URL of the peer network. It can be either full URL or partial URL. The peer network may - * belong to a different project. If the partial URL does not contain project, it is assumed that - * the peer network is in the same project as the current network. - * @param network network or {@code null} for none - */ - public NetworkPeering setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. - * @return value or {@code null} for none - */ - public java.lang.Integer getPeerMtu() { - return peerMtu; - } - - /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. - * @param peerMtu peerMtu or {@code null} for none - */ - public NetworkPeering setPeerMtu(java.lang.Integer peerMtu) { - this.peerMtu = peerMtu; - return this; - } - - /** - * Which IP version(s) of traffic and routes are allowed to be imported or exported between peer - * networks. The default value is IPV4_ONLY. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * Which IP version(s) of traffic and routes are allowed to be imported or exported between peer - * networks. The default value is IPV4_ONLY. - * @param stackType stackType or {@code null} for none - */ - public NetworkPeering setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - /** - * Output only. [Output Only] State for the peering. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] State for the peering. - * @param state state or {@code null} for none - */ - public NetworkPeering setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] Details about the current state of the peering. - * @return value or {@code null} for none - */ - public java.lang.String getStateDetails() { - return stateDetails; - } - - /** - * Output only. [Output Only] Details about the current state of the peering. - * @param stateDetails stateDetails or {@code null} for none - */ - public NetworkPeering setStateDetails(java.lang.String stateDetails) { - this.stateDetails = stateDetails; - return this; - } - - /** - * The update strategy determines the semantics for updates and deletes to the peering connection - * configuration. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateStrategy() { - return updateStrategy; - } - - /** - * The update strategy determines the semantics for updates and deletes to the peering connection - * configuration. - * @param updateStrategy updateStrategy or {@code null} for none - */ - public NetworkPeering setUpdateStrategy(java.lang.String updateStrategy) { - this.updateStrategy = updateStrategy; - return this; - } - - @Override - public NetworkPeering set(String fieldName, Object value) { - return (NetworkPeering) super.set(fieldName, value); - } - - @Override - public NetworkPeering clone() { - return (NetworkPeering) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatus.java deleted file mode 100644 index 4e0563d5538..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatus.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Describes the state of a peering connection, not just the local peering. This field - * provides information about the effective settings for the connection as a whole, including - * pending delete/update requests for CONSENSUS peerings. - * - *

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 NetworkPeeringConnectionStatus extends com.google.api.client.json.GenericJson { - - /** - * The consensus state contains information about the status of update and delete for a consensus - * peering connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPeeringConnectionStatusConsensusState consensusState; - - /** - * The active connectivity settings for the peering connection based on the settings of the - * network peerings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPeeringConnectionStatusTrafficConfiguration trafficConfiguration; - - /** - * The update strategy determines the update/delete semantics for this peering connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateStrategy; - - /** - * The consensus state contains information about the status of update and delete for a consensus - * peering connection. - * @return value or {@code null} for none - */ - public NetworkPeeringConnectionStatusConsensusState getConsensusState() { - return consensusState; - } - - /** - * The consensus state contains information about the status of update and delete for a consensus - * peering connection. - * @param consensusState consensusState or {@code null} for none - */ - public NetworkPeeringConnectionStatus setConsensusState(NetworkPeeringConnectionStatusConsensusState consensusState) { - this.consensusState = consensusState; - return this; - } - - /** - * The active connectivity settings for the peering connection based on the settings of the - * network peerings. - * @return value or {@code null} for none - */ - public NetworkPeeringConnectionStatusTrafficConfiguration getTrafficConfiguration() { - return trafficConfiguration; - } - - /** - * The active connectivity settings for the peering connection based on the settings of the - * network peerings. - * @param trafficConfiguration trafficConfiguration or {@code null} for none - */ - public NetworkPeeringConnectionStatus setTrafficConfiguration(NetworkPeeringConnectionStatusTrafficConfiguration trafficConfiguration) { - this.trafficConfiguration = trafficConfiguration; - return this; - } - - /** - * The update strategy determines the update/delete semantics for this peering connection. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateStrategy() { - return updateStrategy; - } - - /** - * The update strategy determines the update/delete semantics for this peering connection. - * @param updateStrategy updateStrategy or {@code null} for none - */ - public NetworkPeeringConnectionStatus setUpdateStrategy(java.lang.String updateStrategy) { - this.updateStrategy = updateStrategy; - return this; - } - - @Override - public NetworkPeeringConnectionStatus set(String fieldName, Object value) { - return (NetworkPeeringConnectionStatus) super.set(fieldName, value); - } - - @Override - public NetworkPeeringConnectionStatus clone() { - return (NetworkPeeringConnectionStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusConsensusState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusConsensusState.java deleted file mode 100644 index 56c4842603f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusConsensusState.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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.preview.model; - -/** - * The status of update/delete for a consensus peering connection. Only set when - * connection_status.update_strategy isCONSENSUS or a network peering is proposing to update the - * strategy to CONSENSUS. - * - *

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 NetworkPeeringConnectionStatusConsensusState extends com.google.api.client.json.GenericJson { - - /** - * The status of the delete request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deleteStatus; - - /** - * The status of the update request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateStatus; - - /** - * The status of the delete request. - * @return value or {@code null} for none - */ - public java.lang.String getDeleteStatus() { - return deleteStatus; - } - - /** - * The status of the delete request. - * @param deleteStatus deleteStatus or {@code null} for none - */ - public NetworkPeeringConnectionStatusConsensusState setDeleteStatus(java.lang.String deleteStatus) { - this.deleteStatus = deleteStatus; - return this; - } - - /** - * The status of the update request. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateStatus() { - return updateStatus; - } - - /** - * The status of the update request. - * @param updateStatus updateStatus or {@code null} for none - */ - public NetworkPeeringConnectionStatusConsensusState setUpdateStatus(java.lang.String updateStatus) { - this.updateStatus = updateStatus; - return this; - } - - @Override - public NetworkPeeringConnectionStatusConsensusState set(String fieldName, Object value) { - return (NetworkPeeringConnectionStatusConsensusState) super.set(fieldName, value); - } - - @Override - public NetworkPeeringConnectionStatusConsensusState clone() { - return (NetworkPeeringConnectionStatusConsensusState) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusTrafficConfiguration.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusTrafficConfiguration.java deleted file mode 100644 index 61c54033d3c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPeeringConnectionStatusTrafficConfiguration.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkPeeringConnectionStatusTrafficConfiguration. - * - *

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 NetworkPeeringConnectionStatusTrafficConfiguration extends com.google.api.client.json.GenericJson { - - /** - * Whether custom routes are being exported to the peer network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exportCustomRoutesToPeer; - - /** - * Whether subnet routes with public IP ranges are being exported to the peer network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer; - - /** - * Whether custom routes are being imported from the peer network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean importCustomRoutesFromPeer; - - /** - * Whether subnet routes with public IP ranges are being imported from the peer network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer; - - /** - * Which IP version(s) of traffic and routes are being imported or exported between peer networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * Whether custom routes are being exported to the peer network. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExportCustomRoutesToPeer() { - return exportCustomRoutesToPeer; - } - - /** - * Whether custom routes are being exported to the peer network. - * @param exportCustomRoutesToPeer exportCustomRoutesToPeer or {@code null} for none - */ - public NetworkPeeringConnectionStatusTrafficConfiguration setExportCustomRoutesToPeer(java.lang.Boolean exportCustomRoutesToPeer) { - this.exportCustomRoutesToPeer = exportCustomRoutesToPeer; - return this; - } - - /** - * Whether subnet routes with public IP ranges are being exported to the peer network. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExportSubnetRoutesWithPublicIpToPeer() { - return exportSubnetRoutesWithPublicIpToPeer; - } - - /** - * Whether subnet routes with public IP ranges are being exported to the peer network. - * @param exportSubnetRoutesWithPublicIpToPeer exportSubnetRoutesWithPublicIpToPeer or {@code null} for none - */ - public NetworkPeeringConnectionStatusTrafficConfiguration setExportSubnetRoutesWithPublicIpToPeer(java.lang.Boolean exportSubnetRoutesWithPublicIpToPeer) { - this.exportSubnetRoutesWithPublicIpToPeer = exportSubnetRoutesWithPublicIpToPeer; - return this; - } - - /** - * Whether custom routes are being imported from the peer network. - * @return value or {@code null} for none - */ - public java.lang.Boolean getImportCustomRoutesFromPeer() { - return importCustomRoutesFromPeer; - } - - /** - * Whether custom routes are being imported from the peer network. - * @param importCustomRoutesFromPeer importCustomRoutesFromPeer or {@code null} for none - */ - public NetworkPeeringConnectionStatusTrafficConfiguration setImportCustomRoutesFromPeer(java.lang.Boolean importCustomRoutesFromPeer) { - this.importCustomRoutesFromPeer = importCustomRoutesFromPeer; - return this; - } - - /** - * Whether subnet routes with public IP ranges are being imported from the peer network. - * @return value or {@code null} for none - */ - public java.lang.Boolean getImportSubnetRoutesWithPublicIpFromPeer() { - return importSubnetRoutesWithPublicIpFromPeer; - } - - /** - * Whether subnet routes with public IP ranges are being imported from the peer network. - * @param importSubnetRoutesWithPublicIpFromPeer importSubnetRoutesWithPublicIpFromPeer or {@code null} for none - */ - public NetworkPeeringConnectionStatusTrafficConfiguration setImportSubnetRoutesWithPublicIpFromPeer(java.lang.Boolean importSubnetRoutesWithPublicIpFromPeer) { - this.importSubnetRoutesWithPublicIpFromPeer = importSubnetRoutesWithPublicIpFromPeer; - return this; - } - - /** - * Which IP version(s) of traffic and routes are being imported or exported between peer networks. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * Which IP version(s) of traffic and routes are being imported or exported between peer networks. - * @param stackType stackType or {@code null} for none - */ - public NetworkPeeringConnectionStatusTrafficConfiguration setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - @Override - public NetworkPeeringConnectionStatusTrafficConfiguration set(String fieldName, Object value) { - return (NetworkPeeringConnectionStatusTrafficConfiguration) super.set(fieldName, value); - } - - @Override - public NetworkPeeringConnectionStatusTrafficConfiguration clone() { - return (NetworkPeeringConnectionStatusTrafficConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPerformanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPerformanceConfig.java deleted file mode 100644 index c99bdadc34d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkPerformanceConfig.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkPerformanceConfig. - * - *

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 NetworkPerformanceConfig extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String totalEgressBandwidthTier; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getTotalEgressBandwidthTier() { - return totalEgressBandwidthTier; - } - - /** - * @param totalEgressBandwidthTier totalEgressBandwidthTier or {@code null} for none - */ - public NetworkPerformanceConfig setTotalEgressBandwidthTier(java.lang.String totalEgressBandwidthTier) { - this.totalEgressBandwidthTier = totalEgressBandwidthTier; - return this; - } - - @Override - public NetworkPerformanceConfig set(String fieldName, Object value) { - return (NetworkPerformanceConfig) super.set(fieldName, value); - } - - @Override - public NetworkPerformanceConfig clone() { - return (NetworkPerformanceConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfile.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfile.java deleted file mode 100644 index 3f15dd83dc8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfile.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * 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.preview.model; - -/** - * NetworkProfile represents a Google managed network profile 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 NetworkProfile extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 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. [Output Only] Features supported by the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkProfileNetworkFeatures features; - - /** - * 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] Type of the resource. Alwayscompute#networkProfile for network - * profiles. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Location to which the network is restricted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkProfileLocation location; - - /** - * Output only. [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] Type of the network profile. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkProfileProfileType profileType; - - /** - * 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NetworkProfile 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 NetworkProfile setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Features supported by the network. - * @return value or {@code null} for none - */ - public NetworkProfileNetworkFeatures getFeatures() { - return features; - } - - /** - * Output only. [Output Only] Features supported by the network. - * @param features features or {@code null} for none - */ - public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { - this.features = features; - 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 NetworkProfile setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network - * profiles. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network - * profiles. - * @param kind kind or {@code null} for none - */ - public NetworkProfile setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Location to which the network is restricted. - * @return value or {@code null} for none - */ - public NetworkProfileLocation getLocation() { - return location; - } - - /** - * Output only. [Output Only] Location to which the network is restricted. - * @param location location or {@code null} for none - */ - public NetworkProfile setLocation(NetworkProfileLocation location) { - this.location = location; - return this; - } - - /** - * Output only. [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public NetworkProfile setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Type of the network profile. - * @return value or {@code null} for none - */ - public NetworkProfileProfileType getProfileType() { - return profileType; - } - - /** - * Output only. [Output Only] Type of the network profile. - * @param profileType profileType or {@code null} for none - */ - public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { - this.profileType = profileType; - 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 NetworkProfile setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public NetworkProfile setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - @Override - public NetworkProfile set(String fieldName, Object value) { - return (NetworkProfile) super.set(fieldName, value); - } - - @Override - public NetworkProfile clone() { - return (NetworkProfile) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileLocation.java deleted file mode 100644 index 6d96b2797f6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileLocation.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkProfileLocation. - * - *

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 NetworkProfileLocation extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String scope; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * @param name name or {@code null} for none - */ - public NetworkProfileLocation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getScope() { - return scope; - } - - /** - * @param scope scope or {@code null} for none - */ - public NetworkProfileLocation setScope(java.lang.String scope) { - this.scope = scope; - return this; - } - - @Override - public NetworkProfileLocation set(String fieldName, Object value) { - return (NetworkProfileLocation) super.set(fieldName, value); - } - - @Override - public NetworkProfileLocation clone() { - return (NetworkProfileLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeatures.java deleted file mode 100644 index 269f5330485..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeatures.java +++ /dev/null @@ -1,957 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkProfileNetworkFeatures. - * - *

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 NetworkProfileNetworkFeatures extends com.google.api.client.json.GenericJson { - - /** - * Specifies what address purposes are supported. If empty, all address purposes are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List addressPurposes; - - /** - * Specifies whether address creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowAddressCreation; - - /** - * Specifies whether alias IP ranges (and secondary address ranges) are allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowAliasIpRanges; - - /** - * Specifies whether auto mode subnet creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowAutoModeSubnet; - - /** - * Specifies whether firewalls for Class D address ranges are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowClassDFirewalls; - - /** - * Specifies whether cloud NAT creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowCloudNat; - - /** - * Specifies whether cloud router creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowCloudRouter; - - /** - * Specifies whether default NIC attachment is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowDefaultNicAttachment; - - /** - * Specifies whether VMs are allowed to have external IP access on network interfaces connected to - * this VPC. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowExternalIpAccess; - - /** - * Specifies whether firewall policy can be attached to the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowFirewallPolicy; - - /** - * Specifies whether Cloud Interconnect creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowInterconnect; - - /** - * Specifies whether IP forwarding is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowIpForwarding; - - /** - * Specifies whether cloud load balancing is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowLoadBalancing; - - /** - * Specifies whether multi-nic in the same network is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowMultiNicInSameNetwork; - - /** - * Specifies whether multi-nic in the same subnetwork is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowMultiNicInSameSubnetwork; - - /** - * Specifies whether multicast is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowMulticast; - - /** - * Specifies whether NCC is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowNcc; - - /** - * Specifies whether VM network migration is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowNetworkMigration; - - /** - * Specifies whether Packet Mirroring 1.0 is supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowPacketMirroring; - - /** - * Specifies whether private Google access is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowPrivateGoogleAccess; - - /** - * Specifies whether PSC creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowPsc; - - /** - * Specifies whether unicast within the same network is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowSameNetworkUnicast; - - /** - * Specifies whether static route creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowStaticRoutes; - - /** - * Specifies whether sub interfaces are allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowSubInterfaces; - - /** - * Specifies whether subnetwork creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowSubnetworkCreation; - - /** - * Specifies whether VPC firewall rules can be created under the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowVpcFirewallRules; - - /** - * Specifies whether VPC peering is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowVpcPeering; - - /** - * Specifies whether VPN creation is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String allowVpn; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewallPolicyTypes; - - /** - * If set, limits the interface types that the network supports. If empty, all interface types are - * supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interfaceTypes; - - /** - * Specifies which type of multicast is supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String multicast; - - /** - * Specifies a predefined internal IPv6 range for the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String predefinedNetworkInternalIpv6Range; - - /** - * Predefined subnetwork ranges for the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List predefinedSubnetworkRanges; - - /** - * Specifies which subnetwork purposes are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetPurposes; - - /** - * Specifies which subnetwork stack types are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetStackTypes; - - /** - * Output only. Specifies which subnetwork purposes are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworkPurposes; - - /** - * Output only. Specifies which subnetwork stack types are supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworkStackTypes; - - /** - * Specifies which type of unicast is supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String unicast; - - /** - * Specifies what address purposes are supported. If empty, all address purposes are supported. - * @return value or {@code null} for none - */ - public java.util.List getAddressPurposes() { - return addressPurposes; - } - - /** - * Specifies what address purposes are supported. If empty, all address purposes are supported. - * @param addressPurposes addressPurposes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAddressPurposes(java.util.List addressPurposes) { - this.addressPurposes = addressPurposes; - return this; - } - - /** - * Specifies whether address creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowAddressCreation() { - return allowAddressCreation; - } - - /** - * Specifies whether address creation is allowed. - * @param allowAddressCreation allowAddressCreation or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowAddressCreation(java.lang.String allowAddressCreation) { - this.allowAddressCreation = allowAddressCreation; - return this; - } - - /** - * Specifies whether alias IP ranges (and secondary address ranges) are allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowAliasIpRanges() { - return allowAliasIpRanges; - } - - /** - * Specifies whether alias IP ranges (and secondary address ranges) are allowed. - * @param allowAliasIpRanges allowAliasIpRanges or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowAliasIpRanges(java.lang.String allowAliasIpRanges) { - this.allowAliasIpRanges = allowAliasIpRanges; - return this; - } - - /** - * Specifies whether auto mode subnet creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowAutoModeSubnet() { - return allowAutoModeSubnet; - } - - /** - * Specifies whether auto mode subnet creation is allowed. - * @param allowAutoModeSubnet allowAutoModeSubnet or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowAutoModeSubnet(java.lang.String allowAutoModeSubnet) { - this.allowAutoModeSubnet = allowAutoModeSubnet; - return this; - } - - /** - * Specifies whether firewalls for Class D address ranges are supported. - * @return value or {@code null} for none - */ - public java.lang.String getAllowClassDFirewalls() { - return allowClassDFirewalls; - } - - /** - * Specifies whether firewalls for Class D address ranges are supported. - * @param allowClassDFirewalls allowClassDFirewalls or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowClassDFirewalls(java.lang.String allowClassDFirewalls) { - this.allowClassDFirewalls = allowClassDFirewalls; - return this; - } - - /** - * Specifies whether cloud NAT creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowCloudNat() { - return allowCloudNat; - } - - /** - * Specifies whether cloud NAT creation is allowed. - * @param allowCloudNat allowCloudNat or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowCloudNat(java.lang.String allowCloudNat) { - this.allowCloudNat = allowCloudNat; - return this; - } - - /** - * Specifies whether cloud router creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowCloudRouter() { - return allowCloudRouter; - } - - /** - * Specifies whether cloud router creation is allowed. - * @param allowCloudRouter allowCloudRouter or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowCloudRouter(java.lang.String allowCloudRouter) { - this.allowCloudRouter = allowCloudRouter; - return this; - } - - /** - * Specifies whether default NIC attachment is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowDefaultNicAttachment() { - return allowDefaultNicAttachment; - } - - /** - * Specifies whether default NIC attachment is allowed. - * @param allowDefaultNicAttachment allowDefaultNicAttachment or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowDefaultNicAttachment(java.lang.String allowDefaultNicAttachment) { - this.allowDefaultNicAttachment = allowDefaultNicAttachment; - return this; - } - - /** - * Specifies whether VMs are allowed to have external IP access on network interfaces connected to - * this VPC. - * @return value or {@code null} for none - */ - public java.lang.String getAllowExternalIpAccess() { - return allowExternalIpAccess; - } - - /** - * Specifies whether VMs are allowed to have external IP access on network interfaces connected to - * this VPC. - * @param allowExternalIpAccess allowExternalIpAccess or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowExternalIpAccess(java.lang.String allowExternalIpAccess) { - this.allowExternalIpAccess = allowExternalIpAccess; - return this; - } - - /** - * Specifies whether firewall policy can be attached to the network. - * @return value or {@code null} for none - */ - public java.lang.String getAllowFirewallPolicy() { - return allowFirewallPolicy; - } - - /** - * Specifies whether firewall policy can be attached to the network. - * @param allowFirewallPolicy allowFirewallPolicy or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowFirewallPolicy(java.lang.String allowFirewallPolicy) { - this.allowFirewallPolicy = allowFirewallPolicy; - return this; - } - - /** - * Specifies whether Cloud Interconnect creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowInterconnect() { - return allowInterconnect; - } - - /** - * Specifies whether Cloud Interconnect creation is allowed. - * @param allowInterconnect allowInterconnect or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowInterconnect(java.lang.String allowInterconnect) { - this.allowInterconnect = allowInterconnect; - return this; - } - - /** - * Specifies whether IP forwarding is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowIpForwarding() { - return allowIpForwarding; - } - - /** - * Specifies whether IP forwarding is allowed. - * @param allowIpForwarding allowIpForwarding or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowIpForwarding(java.lang.String allowIpForwarding) { - this.allowIpForwarding = allowIpForwarding; - return this; - } - - /** - * Specifies whether cloud load balancing is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowLoadBalancing() { - return allowLoadBalancing; - } - - /** - * Specifies whether cloud load balancing is allowed. - * @param allowLoadBalancing allowLoadBalancing or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowLoadBalancing(java.lang.String allowLoadBalancing) { - this.allowLoadBalancing = allowLoadBalancing; - return this; - } - - /** - * Specifies whether multi-nic in the same network is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowMultiNicInSameNetwork() { - return allowMultiNicInSameNetwork; - } - - /** - * Specifies whether multi-nic in the same network is allowed. - * @param allowMultiNicInSameNetwork allowMultiNicInSameNetwork or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowMultiNicInSameNetwork(java.lang.String allowMultiNicInSameNetwork) { - this.allowMultiNicInSameNetwork = allowMultiNicInSameNetwork; - return this; - } - - /** - * Specifies whether multi-nic in the same subnetwork is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowMultiNicInSameSubnetwork() { - return allowMultiNicInSameSubnetwork; - } - - /** - * Specifies whether multi-nic in the same subnetwork is allowed. - * @param allowMultiNicInSameSubnetwork allowMultiNicInSameSubnetwork or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowMultiNicInSameSubnetwork(java.lang.String allowMultiNicInSameSubnetwork) { - this.allowMultiNicInSameSubnetwork = allowMultiNicInSameSubnetwork; - return this; - } - - /** - * Specifies whether multicast is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowMulticast() { - return allowMulticast; - } - - /** - * Specifies whether multicast is allowed. - * @param allowMulticast allowMulticast or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowMulticast(java.lang.String allowMulticast) { - this.allowMulticast = allowMulticast; - return this; - } - - /** - * Specifies whether NCC is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowNcc() { - return allowNcc; - } - - /** - * Specifies whether NCC is allowed. - * @param allowNcc allowNcc or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowNcc(java.lang.String allowNcc) { - this.allowNcc = allowNcc; - return this; - } - - /** - * Specifies whether VM network migration is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowNetworkMigration() { - return allowNetworkMigration; - } - - /** - * Specifies whether VM network migration is allowed. - * @param allowNetworkMigration allowNetworkMigration or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowNetworkMigration(java.lang.String allowNetworkMigration) { - this.allowNetworkMigration = allowNetworkMigration; - return this; - } - - /** - * Specifies whether Packet Mirroring 1.0 is supported. - * @return value or {@code null} for none - */ - public java.lang.String getAllowPacketMirroring() { - return allowPacketMirroring; - } - - /** - * Specifies whether Packet Mirroring 1.0 is supported. - * @param allowPacketMirroring allowPacketMirroring or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowPacketMirroring(java.lang.String allowPacketMirroring) { - this.allowPacketMirroring = allowPacketMirroring; - return this; - } - - /** - * Specifies whether private Google access is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowPrivateGoogleAccess() { - return allowPrivateGoogleAccess; - } - - /** - * Specifies whether private Google access is allowed. - * @param allowPrivateGoogleAccess allowPrivateGoogleAccess or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowPrivateGoogleAccess(java.lang.String allowPrivateGoogleAccess) { - this.allowPrivateGoogleAccess = allowPrivateGoogleAccess; - return this; - } - - /** - * Specifies whether PSC creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowPsc() { - return allowPsc; - } - - /** - * Specifies whether PSC creation is allowed. - * @param allowPsc allowPsc or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowPsc(java.lang.String allowPsc) { - this.allowPsc = allowPsc; - return this; - } - - /** - * Specifies whether unicast within the same network is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowSameNetworkUnicast() { - return allowSameNetworkUnicast; - } - - /** - * Specifies whether unicast within the same network is allowed. - * @param allowSameNetworkUnicast allowSameNetworkUnicast or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowSameNetworkUnicast(java.lang.String allowSameNetworkUnicast) { - this.allowSameNetworkUnicast = allowSameNetworkUnicast; - return this; - } - - /** - * Specifies whether static route creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowStaticRoutes() { - return allowStaticRoutes; - } - - /** - * Specifies whether static route creation is allowed. - * @param allowStaticRoutes allowStaticRoutes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowStaticRoutes(java.lang.String allowStaticRoutes) { - this.allowStaticRoutes = allowStaticRoutes; - return this; - } - - /** - * Specifies whether sub interfaces are allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowSubInterfaces() { - return allowSubInterfaces; - } - - /** - * Specifies whether sub interfaces are allowed. - * @param allowSubInterfaces allowSubInterfaces or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowSubInterfaces(java.lang.String allowSubInterfaces) { - this.allowSubInterfaces = allowSubInterfaces; - return this; - } - - /** - * Specifies whether subnetwork creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowSubnetworkCreation() { - return allowSubnetworkCreation; - } - - /** - * Specifies whether subnetwork creation is allowed. - * @param allowSubnetworkCreation allowSubnetworkCreation or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowSubnetworkCreation(java.lang.String allowSubnetworkCreation) { - this.allowSubnetworkCreation = allowSubnetworkCreation; - return this; - } - - /** - * Specifies whether VPC firewall rules can be created under the network. - * @return value or {@code null} for none - */ - public java.lang.String getAllowVpcFirewallRules() { - return allowVpcFirewallRules; - } - - /** - * Specifies whether VPC firewall rules can be created under the network. - * @param allowVpcFirewallRules allowVpcFirewallRules or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowVpcFirewallRules(java.lang.String allowVpcFirewallRules) { - this.allowVpcFirewallRules = allowVpcFirewallRules; - return this; - } - - /** - * Specifies whether VPC peering is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowVpcPeering() { - return allowVpcPeering; - } - - /** - * Specifies whether VPC peering is allowed. - * @param allowVpcPeering allowVpcPeering or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowVpcPeering(java.lang.String allowVpcPeering) { - this.allowVpcPeering = allowVpcPeering; - return this; - } - - /** - * Specifies whether VPN creation is allowed. - * @return value or {@code null} for none - */ - public java.lang.String getAllowVpn() { - return allowVpn; - } - - /** - * Specifies whether VPN creation is allowed. - * @param allowVpn allowVpn or {@code null} for none - */ - public NetworkProfileNetworkFeatures setAllowVpn(java.lang.String allowVpn) { - this.allowVpn = allowVpn; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getFirewallPolicyTypes() { - return firewallPolicyTypes; - } - - /** - * @param firewallPolicyTypes firewallPolicyTypes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setFirewallPolicyTypes(java.util.List firewallPolicyTypes) { - this.firewallPolicyTypes = firewallPolicyTypes; - return this; - } - - /** - * If set, limits the interface types that the network supports. If empty, all interface types are - * supported. - * @return value or {@code null} for none - */ - public java.util.List getInterfaceTypes() { - return interfaceTypes; - } - - /** - * If set, limits the interface types that the network supports. If empty, all interface types are - * supported. - * @param interfaceTypes interfaceTypes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setInterfaceTypes(java.util.List interfaceTypes) { - this.interfaceTypes = interfaceTypes; - return this; - } - - /** - * Specifies which type of multicast is supported. - * @return value or {@code null} for none - */ - public java.lang.String getMulticast() { - return multicast; - } - - /** - * Specifies which type of multicast is supported. - * @param multicast multicast or {@code null} for none - */ - public NetworkProfileNetworkFeatures setMulticast(java.lang.String multicast) { - this.multicast = multicast; - return this; - } - - /** - * Specifies a predefined internal IPv6 range for the network. - * @return value or {@code null} for none - */ - public java.lang.String getPredefinedNetworkInternalIpv6Range() { - return predefinedNetworkInternalIpv6Range; - } - - /** - * Specifies a predefined internal IPv6 range for the network. - * @param predefinedNetworkInternalIpv6Range predefinedNetworkInternalIpv6Range or {@code null} for none - */ - public NetworkProfileNetworkFeatures setPredefinedNetworkInternalIpv6Range(java.lang.String predefinedNetworkInternalIpv6Range) { - this.predefinedNetworkInternalIpv6Range = predefinedNetworkInternalIpv6Range; - return this; - } - - /** - * Predefined subnetwork ranges for the network. - * @return value or {@code null} for none - */ - public java.util.List getPredefinedSubnetworkRanges() { - return predefinedSubnetworkRanges; - } - - /** - * Predefined subnetwork ranges for the network. - * @param predefinedSubnetworkRanges predefinedSubnetworkRanges or {@code null} for none - */ - public NetworkProfileNetworkFeatures setPredefinedSubnetworkRanges(java.util.List predefinedSubnetworkRanges) { - this.predefinedSubnetworkRanges = predefinedSubnetworkRanges; - return this; - } - - /** - * Specifies which subnetwork purposes are supported. - * @return value or {@code null} for none - */ - public java.util.List getSubnetPurposes() { - return subnetPurposes; - } - - /** - * Specifies which subnetwork purposes are supported. - * @param subnetPurposes subnetPurposes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setSubnetPurposes(java.util.List subnetPurposes) { - this.subnetPurposes = subnetPurposes; - return this; - } - - /** - * Specifies which subnetwork stack types are supported. - * @return value or {@code null} for none - */ - public java.util.List getSubnetStackTypes() { - return subnetStackTypes; - } - - /** - * Specifies which subnetwork stack types are supported. - * @param subnetStackTypes subnetStackTypes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List subnetStackTypes) { - this.subnetStackTypes = subnetStackTypes; - return this; - } - - /** - * Output only. Specifies which subnetwork purposes are supported. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworkPurposes() { - return subnetworkPurposes; - } - - /** - * Output only. Specifies which subnetwork purposes are supported. - * @param subnetworkPurposes subnetworkPurposes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { - this.subnetworkPurposes = subnetworkPurposes; - return this; - } - - /** - * Output only. Specifies which subnetwork stack types are supported. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworkStackTypes() { - return subnetworkStackTypes; - } - - /** - * Output only. Specifies which subnetwork stack types are supported. - * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none - */ - public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { - this.subnetworkStackTypes = subnetworkStackTypes; - return this; - } - - /** - * Specifies which type of unicast is supported. - * @return value or {@code null} for none - */ - public java.lang.String getUnicast() { - return unicast; - } - - /** - * Specifies which type of unicast is supported. - * @param unicast unicast or {@code null} for none - */ - public NetworkProfileNetworkFeatures setUnicast(java.lang.String unicast) { - this.unicast = unicast; - return this; - } - - @Override - public NetworkProfileNetworkFeatures set(String fieldName, Object value) { - return (NetworkProfileNetworkFeatures) super.set(fieldName, value); - } - - @Override - public NetworkProfileNetworkFeatures clone() { - return (NetworkProfileNetworkFeatures) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java deleted file mode 100644 index 66fcabb1da1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkProfileNetworkFeaturesPredefinedSubnetworkRange. - * - *

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 NetworkProfileNetworkFeaturesPredefinedSubnetworkRange extends com.google.api.client.json.GenericJson { - - /** - * The IPv6 range of the predefined subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Range; - - /** - * The naming prefix of the predefined subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String namePrefix; - - /** - * The IPv6 range of the predefined subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Range() { - return ipv6Range; - } - - /** - * The IPv6 range of the predefined subnetwork. - * @param ipv6Range ipv6Range or {@code null} for none - */ - public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange setIpv6Range(java.lang.String ipv6Range) { - this.ipv6Range = ipv6Range; - return this; - } - - /** - * The naming prefix of the predefined subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getNamePrefix() { - return namePrefix; - } - - /** - * The naming prefix of the predefined subnetwork. - * @param namePrefix namePrefix or {@code null} for none - */ - public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange setNamePrefix(java.lang.String namePrefix) { - this.namePrefix = namePrefix; - return this; - } - - @Override - public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange set(String fieldName, Object value) { - return (NetworkProfileNetworkFeaturesPredefinedSubnetworkRange) super.set(fieldName, value); - } - - @Override - public NetworkProfileNetworkFeaturesPredefinedSubnetworkRange clone() { - return (NetworkProfileNetworkFeaturesPredefinedSubnetworkRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileProfileType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileProfileType.java deleted file mode 100644 index d14ca0ff2ff..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfileProfileType.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworkProfileProfileType. - * - *

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 NetworkProfileProfileType extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkType; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rdmaSubtype; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ullSubtype; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vpcSubtype; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getNetworkType() { - return networkType; - } - - /** - * @param networkType networkType or {@code null} for none - */ - public NetworkProfileProfileType setNetworkType(java.lang.String networkType) { - this.networkType = networkType; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getRdmaSubtype() { - return rdmaSubtype; - } - - /** - * @param rdmaSubtype rdmaSubtype or {@code null} for none - */ - public NetworkProfileProfileType setRdmaSubtype(java.lang.String rdmaSubtype) { - this.rdmaSubtype = rdmaSubtype; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getUllSubtype() { - return ullSubtype; - } - - /** - * @param ullSubtype ullSubtype or {@code null} for none - */ - public NetworkProfileProfileType setUllSubtype(java.lang.String ullSubtype) { - this.ullSubtype = ullSubtype; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getVpcSubtype() { - return vpcSubtype; - } - - /** - * @param vpcSubtype vpcSubtype or {@code null} for none - */ - public NetworkProfileProfileType setVpcSubtype(java.lang.String vpcSubtype) { - this.vpcSubtype = vpcSubtype; - return this; - } - - @Override - public NetworkProfileProfileType set(String fieldName, Object value) { - return (NetworkProfileProfileType) super.set(fieldName, value); - } - - @Override - public NetworkProfileProfileType clone() { - return (NetworkProfileProfileType) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfilesListResponse.java deleted file mode 100644 index 6a4cacf341a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkProfilesListResponse.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of network profiles. - * - *

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 NetworkProfilesListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 NetworkProfile 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 NetworkProfile 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(NetworkProfile.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public NetworkProfilesListResponse 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 NetworkProfilesListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NetworkProfile resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NetworkProfile resources. - * @param items items or {@code null} for none - */ - public NetworkProfilesListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. - * @param kind kind or {@code null} for none - */ - public NetworkProfilesListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NetworkProfilesListResponse 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 NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public NetworkProfilesListResponse 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 NetworkProfilesListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NetworkProfilesListResponse set(String fieldName, Object value) { - return (NetworkProfilesListResponse) super.set(fieldName, value); - } - - @Override - public NetworkProfilesListResponse clone() { - return (NetworkProfilesListResponse) 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 NetworkProfilesListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkRoutingConfig.java deleted file mode 100644 index 34c8887ae17..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworkRoutingConfig.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * 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.preview.model; - -/** - * A routing configuration attached to a network resource. The message includes the list of routers - * associated with the network, and a flag indicating the type of routing behavior to enforce - * network-wide. - * - *

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 NetworkRoutingConfig extends com.google.api.client.json.GenericJson { - - /** - * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs - * when using the STANDARD BGP best path selection algorithm. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean bgpAlwaysCompareMed; - - /** - * The BGP best path selection algorithm to be employed within this network for dynamic routes - * learned by Cloud Routers. Can be LEGACY (default) or STANDARD. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bgpBestPathSelectionMode; - - /** - * Allows to define a preferred approach for handling inter-region cost in the selection process - * when using the STANDARD BGP best path selection algorithm. Can be DEFAULT orADD_COST_TO_MED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bgpInterRegionCost; - - /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean effectiveBgpAlwaysCompareMed; - - /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String effectiveBgpInterRegionCost; - - /** - * The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will - * only advertise routes with subnets of this network in the same region as the router. If set - * toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, - * across regions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String routingMode; - - /** - * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs - * when using the STANDARD BGP best path selection algorithm. - * @return value or {@code null} for none - */ - public java.lang.Boolean getBgpAlwaysCompareMed() { - return bgpAlwaysCompareMed; - } - - /** - * Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs - * when using the STANDARD BGP best path selection algorithm. - * @param bgpAlwaysCompareMed bgpAlwaysCompareMed or {@code null} for none - */ - public NetworkRoutingConfig setBgpAlwaysCompareMed(java.lang.Boolean bgpAlwaysCompareMed) { - this.bgpAlwaysCompareMed = bgpAlwaysCompareMed; - return this; - } - - /** - * The BGP best path selection algorithm to be employed within this network for dynamic routes - * learned by Cloud Routers. Can be LEGACY (default) or STANDARD. - * @return value or {@code null} for none - */ - public java.lang.String getBgpBestPathSelectionMode() { - return bgpBestPathSelectionMode; - } - - /** - * The BGP best path selection algorithm to be employed within this network for dynamic routes - * learned by Cloud Routers. Can be LEGACY (default) or STANDARD. - * @param bgpBestPathSelectionMode bgpBestPathSelectionMode or {@code null} for none - */ - public NetworkRoutingConfig setBgpBestPathSelectionMode(java.lang.String bgpBestPathSelectionMode) { - this.bgpBestPathSelectionMode = bgpBestPathSelectionMode; - return this; - } - - /** - * Allows to define a preferred approach for handling inter-region cost in the selection process - * when using the STANDARD BGP best path selection algorithm. Can be DEFAULT orADD_COST_TO_MED. - * @return value or {@code null} for none - */ - public java.lang.String getBgpInterRegionCost() { - return bgpInterRegionCost; - } - - /** - * Allows to define a preferred approach for handling inter-region cost in the selection process - * when using the STANDARD BGP best path selection algorithm. Can be DEFAULT orADD_COST_TO_MED. - * @param bgpInterRegionCost bgpInterRegionCost or {@code null} for none - */ - public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegionCost) { - this.bgpInterRegionCost = bgpInterRegionCost; - return this; - } - - /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { - return effectiveBgpAlwaysCompareMed; - } - - /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. - * @param effectiveBgpAlwaysCompareMed effectiveBgpAlwaysCompareMed or {@code null} for none - */ - public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean effectiveBgpAlwaysCompareMed) { - this.effectiveBgpAlwaysCompareMed = effectiveBgpAlwaysCompareMed; - return this; - } - - /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. - * @return value or {@code null} for none - */ - public java.lang.String getEffectiveBgpInterRegionCost() { - return effectiveBgpInterRegionCost; - } - - /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. - * @param effectiveBgpInterRegionCost effectiveBgpInterRegionCost or {@code null} for none - */ - public NetworkRoutingConfig setEffectiveBgpInterRegionCost(java.lang.String effectiveBgpInterRegionCost) { - this.effectiveBgpInterRegionCost = effectiveBgpInterRegionCost; - return this; - } - - /** - * The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will - * only advertise routes with subnets of this network in the same region as the router. If set - * toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, - * across regions. - * @return value or {@code null} for none - */ - public java.lang.String getRoutingMode() { - return routingMode; - } - - /** - * The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will - * only advertise routes with subnets of this network in the same region as the router. If set - * toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, - * across regions. - * @param routingMode routingMode or {@code null} for none - */ - public NetworkRoutingConfig setRoutingMode(java.lang.String routingMode) { - this.routingMode = routingMode; - return this; - } - - @Override - public NetworkRoutingConfig set(String fieldName, Object value) { - return (NetworkRoutingConfig) super.set(fieldName, value); - } - - @Override - public NetworkRoutingConfig clone() { - return (NetworkRoutingConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksAddPeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksAddPeeringRequest.java deleted file mode 100644 index 00ec9ec2ad3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksAddPeeringRequest.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksAddPeeringRequest. - * - *

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 NetworksAddPeeringRequest extends com.google.api.client.json.GenericJson { - - /** - * This field will be deprecated soon. Useexchange_subnet_routes in network_peering instead. - * Indicates whether full mesh connectivity is created and managed automatically between peered - * networks. Currently this field should always be true since Google Compute Engine will - * automatically create and manage subnetwork routes between two networks when peering state - * isACTIVE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoCreateRoutes; - - /** - * Name of the peering, which should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Network peering parameters. In order to specify route policies for peering using import and - * export custom routes, you must specify all peering related parameters (name, peer - * network,exchange_subnet_routes) in the network_peering field. The corresponding fields in - * NetworksAddPeeringRequest will be deprecated soon. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPeering networkPeering; - - /** - * URL of the peer network. It can be either full URL or partial URL. The peer network may belong - * to a different project. If the partial URL does not contain project, it is assumed that the - * peer network is in the same project as the current network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerNetwork; - - /** - * This field will be deprecated soon. Useexchange_subnet_routes in network_peering instead. - * Indicates whether full mesh connectivity is created and managed automatically between peered - * networks. Currently this field should always be true since Google Compute Engine will - * automatically create and manage subnetwork routes between two networks when peering state - * isACTIVE. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoCreateRoutes() { - return autoCreateRoutes; - } - - /** - * This field will be deprecated soon. Useexchange_subnet_routes in network_peering instead. - * Indicates whether full mesh connectivity is created and managed automatically between peered - * networks. Currently this field should always be true since Google Compute Engine will - * automatically create and manage subnetwork routes between two networks when peering state - * isACTIVE. - * @param autoCreateRoutes autoCreateRoutes or {@code null} for none - */ - public NetworksAddPeeringRequest setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { - this.autoCreateRoutes = autoCreateRoutes; - return this; - } - - /** - * Name of the peering, which should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the peering, which should conform to RFC1035. - * @param name name or {@code null} for none - */ - public NetworksAddPeeringRequest setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Network peering parameters. In order to specify route policies for peering using import and - * export custom routes, you must specify all peering related parameters (name, peer - * network,exchange_subnet_routes) in the network_peering field. The corresponding fields in - * NetworksAddPeeringRequest will be deprecated soon. - * @return value or {@code null} for none - */ - public NetworkPeering getNetworkPeering() { - return networkPeering; - } - - /** - * Network peering parameters. In order to specify route policies for peering using import and - * export custom routes, you must specify all peering related parameters (name, peer - * network,exchange_subnet_routes) in the network_peering field. The corresponding fields in - * NetworksAddPeeringRequest will be deprecated soon. - * @param networkPeering networkPeering or {@code null} for none - */ - public NetworksAddPeeringRequest setNetworkPeering(NetworkPeering networkPeering) { - this.networkPeering = networkPeering; - return this; - } - - /** - * URL of the peer network. It can be either full URL or partial URL. The peer network may belong - * to a different project. If the partial URL does not contain project, it is assumed that the - * peer network is in the same project as the current network. - * @return value or {@code null} for none - */ - public java.lang.String getPeerNetwork() { - return peerNetwork; - } - - /** - * URL of the peer network. It can be either full URL or partial URL. The peer network may belong - * to a different project. If the partial URL does not contain project, it is assumed that the - * peer network is in the same project as the current network. - * @param peerNetwork peerNetwork or {@code null} for none - */ - public NetworksAddPeeringRequest setPeerNetwork(java.lang.String peerNetwork) { - this.peerNetwork = peerNetwork; - return this; - } - - @Override - public NetworksAddPeeringRequest set(String fieldName, Object value) { - return (NetworksAddPeeringRequest) super.set(fieldName, value); - } - - @Override - public NetworksAddPeeringRequest clone() { - return (NetworksAddPeeringRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksCancelRequestRemovePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksCancelRequestRemovePeeringRequest.java deleted file mode 100644 index 46fa364bfb4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksCancelRequestRemovePeeringRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksCancelRequestRemovePeeringRequest. - * - *

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 NetworksCancelRequestRemovePeeringRequest extends com.google.api.client.json.GenericJson { - - /** - * Name of the peering, which should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Name of the peering, which should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the peering, which should conform to RFC1035. - * @param name name or {@code null} for none - */ - public NetworksCancelRequestRemovePeeringRequest setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public NetworksCancelRequestRemovePeeringRequest set(String fieldName, Object value) { - return (NetworksCancelRequestRemovePeeringRequest) super.set(fieldName, value); - } - - @Override - public NetworksCancelRequestRemovePeeringRequest clone() { - return (NetworksCancelRequestRemovePeeringRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponse.java deleted file mode 100644 index 1bd5a97fa03..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponse.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksGetEffectiveFirewallsResponse. - * - *

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 NetworksGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall - * Policies and Hierarchical Firewall Policies. - * UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall - * Policies as well. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewallPolicys; - - /** - * Effective firewalls on the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewalls; - - static { - // hack to force ProGuard to consider Firewall 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(Firewall.class); - } - - /** - * [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall - * Policies and Hierarchical Firewall Policies. - * UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall - * Policies as well. - * @return value or {@code null} for none - */ - public java.util.List getFirewallPolicys() { - return firewallPolicys; - } - - /** - * [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall - * Policies and Hierarchical Firewall Policies. - * UseregionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall - * Policies as well. - * @param firewallPolicys firewallPolicys or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponse setFirewallPolicys(java.util.List firewallPolicys) { - this.firewallPolicys = firewallPolicys; - return this; - } - - /** - * Effective firewalls on the network. - * @return value or {@code null} for none - */ - public java.util.List getFirewalls() { - return firewalls; - } - - /** - * Effective firewalls on the network. - * @param firewalls firewalls or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponse setFirewalls(java.util.List firewalls) { - this.firewalls = firewalls; - return this; - } - - @Override - public NetworksGetEffectiveFirewallsResponse set(String fieldName, Object value) { - return (NetworksGetEffectiveFirewallsResponse) super.set(fieldName, value); - } - - @Override - public NetworksGetEffectiveFirewallsResponse clone() { - return (NetworksGetEffectiveFirewallsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java deleted file mode 100644 index 4f2e0b7b453..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy. - * - *

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 NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Output only. [Output Only] The name of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List packetMirroringRules; - - static { - // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * [Output Only] The rules that apply to the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rules; - - static { - // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); - } - - /** - * Output only. [Output Only] The short name of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String shortName; - - /** - * Output only. [Output Only] The type of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. - * @param displayName displayName or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Output only. [Output Only] The name of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of the firewall policy. - * @param name name or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. - * @return value or {@code null} for none - */ - public java.util.List getPacketMirroringRules() { - return packetMirroringRules; - } - - /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. - * @param packetMirroringRules packetMirroringRules or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { - this.packetMirroringRules = packetMirroringRules; - return this; - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * @param priority priority or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * [Output Only] The rules that apply to the network. - * @return value or {@code null} for none - */ - public java.util.List getRules() { - return rules; - } - - /** - * [Output Only] The rules that apply to the network. - * @param rules rules or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { - this.rules = rules; - return this; - } - - /** - * Output only. [Output Only] The short name of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getShortName() { - return shortName; - } - - /** - * Output only. [Output Only] The short name of the firewall policy. - * @param shortName shortName or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { - this.shortName = shortName; - return this; - } - - /** - * Output only. [Output Only] The type of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Output only. [Output Only] The type of the firewall policy. - * @param type type or {@code null} for none - */ - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy set(String fieldName, Object value) { - return (NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.set(fieldName, value); - } - - @Override - public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy clone() { - return (NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRemovePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRemovePeeringRequest.java deleted file mode 100644 index c1a2c8e01b2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRemovePeeringRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksRemovePeeringRequest. - * - *

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 NetworksRemovePeeringRequest extends com.google.api.client.json.GenericJson { - - /** - * Name of the peering, which should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Name of the peering, which should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the peering, which should conform to RFC1035. - * @param name name or {@code null} for none - */ - public NetworksRemovePeeringRequest setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public NetworksRemovePeeringRequest set(String fieldName, Object value) { - return (NetworksRemovePeeringRequest) super.set(fieldName, value); - } - - @Override - public NetworksRemovePeeringRequest clone() { - return (NetworksRemovePeeringRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRequestRemovePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRequestRemovePeeringRequest.java deleted file mode 100644 index 37fa3b2e1ac..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksRequestRemovePeeringRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksRequestRemovePeeringRequest. - * - *

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 NetworksRequestRemovePeeringRequest extends com.google.api.client.json.GenericJson { - - /** - * Name of the peering, which should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Name of the peering, which should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the peering, which should conform to RFC1035. - * @param name name or {@code null} for none - */ - public NetworksRequestRemovePeeringRequest setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public NetworksRequestRemovePeeringRequest set(String fieldName, Object value) { - return (NetworksRequestRemovePeeringRequest) super.set(fieldName, value); - } - - @Override - public NetworksRequestRemovePeeringRequest clone() { - return (NetworksRequestRemovePeeringRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksUpdatePeeringRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksUpdatePeeringRequest.java deleted file mode 100644 index 46e60d07dc6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NetworksUpdatePeeringRequest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NetworksUpdatePeeringRequest. - * - *

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 NetworksUpdatePeeringRequest extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NetworkPeering networkPeering; - - /** - * @return value or {@code null} for none - */ - public NetworkPeering getNetworkPeering() { - return networkPeering; - } - - /** - * @param networkPeering networkPeering or {@code null} for none - */ - public NetworksUpdatePeeringRequest setNetworkPeering(NetworkPeering networkPeering) { - this.networkPeering = networkPeering; - return this; - } - - @Override - public NetworksUpdatePeeringRequest set(String fieldName, Object value) { - return (NetworksUpdatePeeringRequest) super.set(fieldName, value); - } - - @Override - public NetworksUpdatePeeringRequest clone() { - return (NetworksUpdatePeeringRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroup.java deleted file mode 100644 index c84abed8836..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroup.java +++ /dev/null @@ -1,507 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a sole-tenant Node Group resource. - * - * A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your - * specific project. Use sole-tenant nodes to keep your instances physically separated from - * instances in other projects, or to group your instances together on the same host hardware. For - * more information, readSole-tenant nodes. - * - *

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 NodeGroup extends com.google.api.client.json.GenericJson { - - /** - * Specifies how autoscaling should behave. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NodeGroupAutoscalingPolicy autoscalingPolicy; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * 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] The type of the resource. Alwayscompute#nodeGroup for node group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * An opaque location hint used to place the Node close to other resources. This field is for use - * by internal tools that use the public API. The location hint here on the NodeGroup overrides - * any location_hint present in the NodeTemplate. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationHint; - - /** - * Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and - * `RECURRENT`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maintenanceInterval; - - /** - * Specifies how to handle instances when a node in the group undergoes maintenance. Set to one - * of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For - * more information, see Maintenance policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maintenancePolicy; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NodeGroupMaintenanceWindow maintenanceWindow; - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - - /** - * URL of the node template to create the node group from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nodeTemplate; - - /** - * 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; - - /** - * Share-settings for the node group - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShareSettings shareSettings; - - /** - * Output only. [Output Only] The total number of nodes in the node group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Specifies how autoscaling should behave. - * @return value or {@code null} for none - */ - public NodeGroupAutoscalingPolicy getAutoscalingPolicy() { - return autoscalingPolicy; - } - - /** - * Specifies how autoscaling should behave. - * @param autoscalingPolicy autoscalingPolicy or {@code null} for none - */ - public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPolicy) { - this.autoscalingPolicy = autoscalingPolicy; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public NodeGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public NodeGroup setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public NodeGroup encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - 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 NodeGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. - * @param kind kind or {@code null} for none - */ - public NodeGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * An opaque location hint used to place the Node close to other resources. This field is for use - * by internal tools that use the public API. The location hint here on the NodeGroup overrides - * any location_hint present in the NodeTemplate. - * @return value or {@code null} for none - */ - public java.lang.String getLocationHint() { - return locationHint; - } - - /** - * An opaque location hint used to place the Node close to other resources. This field is for use - * by internal tools that use the public API. The location hint here on the NodeGroup overrides - * any location_hint present in the NodeTemplate. - * @param locationHint locationHint or {@code null} for none - */ - public NodeGroup setLocationHint(java.lang.String locationHint) { - this.locationHint = locationHint; - return this; - } - - /** - * Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and - * `RECURRENT`. - * @return value or {@code null} for none - */ - public java.lang.String getMaintenanceInterval() { - return maintenanceInterval; - } - - /** - * Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and - * `RECURRENT`. - * @param maintenanceInterval maintenanceInterval or {@code null} for none - */ - public NodeGroup setMaintenanceInterval(java.lang.String maintenanceInterval) { - this.maintenanceInterval = maintenanceInterval; - return this; - } - - /** - * Specifies how to handle instances when a node in the group undergoes maintenance. Set to one - * of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For - * more information, see Maintenance policies. - * @return value or {@code null} for none - */ - public java.lang.String getMaintenancePolicy() { - return maintenancePolicy; - } - - /** - * Specifies how to handle instances when a node in the group undergoes maintenance. Set to one - * of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For - * more information, see Maintenance policies. - * @param maintenancePolicy maintenancePolicy or {@code null} for none - */ - public NodeGroup setMaintenancePolicy(java.lang.String maintenancePolicy) { - this.maintenancePolicy = maintenancePolicy; - return this; - } - - /** - * @return value or {@code null} for none - */ - public NodeGroupMaintenanceWindow getMaintenanceWindow() { - return maintenanceWindow; - } - - /** - * @param maintenanceWindow maintenanceWindow or {@code null} for none - */ - public NodeGroup setMaintenanceWindow(NodeGroupMaintenanceWindow maintenanceWindow) { - this.maintenanceWindow = maintenanceWindow; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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 NodeGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * URL of the node template to create the node group from. - * @return value or {@code null} for none - */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; - } - - /** - * URL of the node template to create the node group from. - * @param nodeTemplate nodeTemplate or {@code null} for none - */ - public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { - this.nodeTemplate = nodeTemplate; - 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 NodeGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Share-settings for the node group - * @return value or {@code null} for none - */ - public ShareSettings getShareSettings() { - return shareSettings; - } - - /** - * Share-settings for the node group - * @param shareSettings shareSettings or {@code null} for none - */ - public NodeGroup setShareSettings(ShareSettings shareSettings) { - this.shareSettings = shareSettings; - return this; - } - - /** - * Output only. [Output Only] The total number of nodes in the node group. - * @return value or {@code null} for none - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * Output only. [Output Only] The total number of nodes in the node group. - * @param size size or {@code null} for none - */ - public NodeGroup setSize(java.lang.Integer size) { - this.size = size; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * @param status status or {@code null} for none - */ - public NodeGroup setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. - * @param zone zone or {@code null} for none - */ - public NodeGroup setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public NodeGroup set(String fieldName, Object value) { - return (NodeGroup) super.set(fieldName, value); - } - - @Override - public NodeGroup clone() { - return (NodeGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAggregatedList.java deleted file mode 100644 index 276b65c4c41..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupAggregatedList. - * - *

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 NodeGroupAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 NodeGroupsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for - * aggregated lists of node groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 NodeGroupAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NodeGroupsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NodeGroupsScopedList resources. - * @param items items or {@code null} for none - */ - public NodeGroupAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for - * aggregated lists of node groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for - * aggregated lists of node groups. - * @param kind kind or {@code null} for none - */ - public NodeGroupAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeGroupAggregatedList 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 NodeGroupAggregatedList 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 NodeGroupAggregatedList 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 NodeGroupAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeGroupAggregatedList set(String fieldName, Object value) { - return (NodeGroupAggregatedList) super.set(fieldName, value); - } - - @Override - public NodeGroupAggregatedList clone() { - return (NodeGroupAggregatedList) 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 NodeGroupAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAutoscalingPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAutoscalingPolicy.java deleted file mode 100644 index de9720f1ea4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupAutoscalingPolicy.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupAutoscalingPolicy. - * - *

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 NodeGroupAutoscalingPolicy extends com.google.api.client.json.GenericJson { - - /** - * The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. - * Maximum value allowed is 100. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxNodes; - - /** - * The minimum number of nodes that the group should have. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minNodes; - - /** - * The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see - * Autoscaler modes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. - * Maximum value allowed is 100. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxNodes() { - return maxNodes; - } - - /** - * The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. - * Maximum value allowed is 100. - * @param maxNodes maxNodes or {@code null} for none - */ - public NodeGroupAutoscalingPolicy setMaxNodes(java.lang.Integer maxNodes) { - this.maxNodes = maxNodes; - return this; - } - - /** - * The minimum number of nodes that the group should have. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinNodes() { - return minNodes; - } - - /** - * The minimum number of nodes that the group should have. - * @param minNodes minNodes or {@code null} for none - */ - public NodeGroupAutoscalingPolicy setMinNodes(java.lang.Integer minNodes) { - this.minNodes = minNodes; - return this; - } - - /** - * The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see - * Autoscaler modes. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see - * Autoscaler modes. - * @param mode mode or {@code null} for none - */ - public NodeGroupAutoscalingPolicy setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - @Override - public NodeGroupAutoscalingPolicy set(String fieldName, Object value) { - return (NodeGroupAutoscalingPolicy) super.set(fieldName, value); - } - - @Override - public NodeGroupAutoscalingPolicy clone() { - return (NodeGroupAutoscalingPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupList.java deleted file mode 100644 index f202350efa1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of nodeGroups. - * - *

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 NodeGroupList extends com.google.api.client.json.GenericJson { - - /** - * [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 NodeGroup 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 NodeGroup 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(NodeGroup.class); - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NodeGroupList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NodeGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NodeGroup resources. - * @param items items or {@code null} for none - */ - public NodeGroupList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. - * @param kind kind or {@code null} for none - */ - public NodeGroupList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeGroupList 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 NodeGroupList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NodeGroupList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeGroupList set(String fieldName, Object value) { - return (NodeGroupList) super.set(fieldName, value); - } - - @Override - public NodeGroupList clone() { - return (NodeGroupList) 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 NodeGroupListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupMaintenanceWindow.java deleted file mode 100644 index 7ff1468e59b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupMaintenanceWindow.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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.preview.model; - -/** - * Time window specified for daily maintenance operations. GCE's internal maintenance will be - * performed within this window. - * - *

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 NodeGroupMaintenanceWindow extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maintenanceDuration; - - /** - * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. - * @return value or {@code null} for none - */ - public Duration getMaintenanceDuration() { - return maintenanceDuration; - } - - /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. - * @param maintenanceDuration maintenanceDuration or {@code null} for none - */ - public NodeGroupMaintenanceWindow setMaintenanceDuration(Duration maintenanceDuration) { - this.maintenanceDuration = maintenanceDuration; - return this; - } - - /** - * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. - * @param startTime startTime or {@code null} for none - */ - public NodeGroupMaintenanceWindow setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public NodeGroupMaintenanceWindow set(String fieldName, Object value) { - return (NodeGroupMaintenanceWindow) super.set(fieldName, value); - } - - @Override - public NodeGroupMaintenanceWindow clone() { - return (NodeGroupMaintenanceWindow) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupNode.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupNode.java deleted file mode 100644 index 2a6450d3c59..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupNode.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupNode. - * - *

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 NodeGroupNode extends com.google.api.client.json.GenericJson { - - /** - * Accelerators for this node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List accelerators; - - 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); - } - - /** - * Output only. Node resources that are reserved by all instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceConsumptionInfo consumedResources; - - /** - * CPU overcommit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cpuOvercommitType; - - /** - * Local disk configurations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List disks; - - static { - // hack to force ProGuard to consider LocalDisk 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(LocalDisk.class); - } - - /** - * Output only. Instance data that shows consumed resources on the node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceConsumptionData; - - static { - // hack to force ProGuard to consider InstanceConsumptionData 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(InstanceConsumptionData.class); - } - - /** - * Instances scheduled on this node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The name of the node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The type of this node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nodeType; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * Binding properties for the physical server. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ServerBinding serverBinding; - - /** - * Server ID associated with this node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serverId; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. Total amount of available resources on the node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceConsumptionInfo totalResources; - - /** - * Output only. [Output Only] The information about an upcoming maintenance event. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UpcomingMaintenance upcomingMaintenance; - - /** - * Accelerators for this node. - * @return value or {@code null} for none - */ - public java.util.List getAccelerators() { - return accelerators; - } - - /** - * Accelerators for this node. - * @param accelerators accelerators or {@code null} for none - */ - public NodeGroupNode setAccelerators(java.util.List accelerators) { - this.accelerators = accelerators; - return this; - } - - /** - * Output only. Node resources that are reserved by all instances. - * @return value or {@code null} for none - */ - public InstanceConsumptionInfo getConsumedResources() { - return consumedResources; - } - - /** - * Output only. Node resources that are reserved by all instances. - * @param consumedResources consumedResources or {@code null} for none - */ - public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { - this.consumedResources = consumedResources; - return this; - } - - /** - * CPU overcommit. - * @return value or {@code null} for none - */ - public java.lang.String getCpuOvercommitType() { - return cpuOvercommitType; - } - - /** - * CPU overcommit. - * @param cpuOvercommitType cpuOvercommitType or {@code null} for none - */ - public NodeGroupNode setCpuOvercommitType(java.lang.String cpuOvercommitType) { - this.cpuOvercommitType = cpuOvercommitType; - return this; - } - - /** - * Local disk configurations. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * Local disk configurations. - * @param disks disks or {@code null} for none - */ - public NodeGroupNode setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - /** - * Output only. Instance data that shows consumed resources on the node. - * @return value or {@code null} for none - */ - public java.util.List getInstanceConsumptionData() { - return instanceConsumptionData; - } - - /** - * Output only. Instance data that shows consumed resources on the node. - * @param instanceConsumptionData instanceConsumptionData or {@code null} for none - */ - public NodeGroupNode setInstanceConsumptionData(java.util.List instanceConsumptionData) { - this.instanceConsumptionData = instanceConsumptionData; - return this; - } - - /** - * Instances scheduled on this node. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * Instances scheduled on this node. - * @param instances instances or {@code null} for none - */ - public NodeGroupNode setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * The name of the node. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the node. - * @param name name or {@code null} for none - */ - public NodeGroupNode setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The type of this node. - * @return value or {@code null} for none - */ - public java.lang.String getNodeType() { - return nodeType; - } - - /** - * The type of this node. - * @param nodeType nodeType or {@code null} for none - */ - public NodeGroupNode setNodeType(java.lang.String nodeType) { - this.nodeType = nodeType; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - return this; - } - - /** - * Binding properties for the physical server. - * @return value or {@code null} for none - */ - public ServerBinding getServerBinding() { - return serverBinding; - } - - /** - * Binding properties for the physical server. - * @param serverBinding serverBinding or {@code null} for none - */ - public NodeGroupNode setServerBinding(ServerBinding serverBinding) { - this.serverBinding = serverBinding; - return this; - } - - /** - * Server ID associated with this node. - * @return value or {@code null} for none - */ - public java.lang.String getServerId() { - return serverId; - } - - /** - * Server ID associated with this node. - * @param serverId serverId or {@code null} for none - */ - public NodeGroupNode setServerId(java.lang.String serverId) { - this.serverId = serverId; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * @param status status or {@code null} for none - */ - public NodeGroupNode setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. Total amount of available resources on the node. - * @return value or {@code null} for none - */ - public InstanceConsumptionInfo getTotalResources() { - return totalResources; - } - - /** - * Output only. Total amount of available resources on the node. - * @param totalResources totalResources or {@code null} for none - */ - public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { - this.totalResources = totalResources; - return this; - } - - /** - * Output only. [Output Only] The information about an upcoming maintenance event. - * @return value or {@code null} for none - */ - public UpcomingMaintenance getUpcomingMaintenance() { - return upcomingMaintenance; - } - - /** - * Output only. [Output Only] The information about an upcoming maintenance event. - * @param upcomingMaintenance upcomingMaintenance or {@code null} for none - */ - public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { - this.upcomingMaintenance = upcomingMaintenance; - return this; - } - - @Override - public NodeGroupNode set(String fieldName, Object value) { - return (NodeGroupNode) super.set(fieldName, value); - } - - @Override - public NodeGroupNode clone() { - return (NodeGroupNode) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsAddNodesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsAddNodesRequest.java deleted file mode 100644 index 40270b3f541..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsAddNodesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsAddNodesRequest. - * - *

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 NodeGroupsAddNodesRequest extends com.google.api.client.json.GenericJson { - - /** - * Count of additional nodes to be added to the node group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer additionalNodeCount; - - /** - * Count of additional nodes to be added to the node group. - * @return value or {@code null} for none - */ - public java.lang.Integer getAdditionalNodeCount() { - return additionalNodeCount; - } - - /** - * Count of additional nodes to be added to the node group. - * @param additionalNodeCount additionalNodeCount or {@code null} for none - */ - public NodeGroupsAddNodesRequest setAdditionalNodeCount(java.lang.Integer additionalNodeCount) { - this.additionalNodeCount = additionalNodeCount; - return this; - } - - @Override - public NodeGroupsAddNodesRequest set(String fieldName, Object value) { - return (NodeGroupsAddNodesRequest) super.set(fieldName, value); - } - - @Override - public NodeGroupsAddNodesRequest clone() { - return (NodeGroupsAddNodesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsDeleteNodesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsDeleteNodesRequest.java deleted file mode 100644 index 7c7859911d6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsDeleteNodesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsDeleteNodesRequest. - * - *

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 NodeGroupsDeleteNodesRequest extends com.google.api.client.json.GenericJson { - - /** - * Names of the nodes to delete. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodes; - - /** - * Names of the nodes to delete. - * @return value or {@code null} for none - */ - public java.util.List getNodes() { - return nodes; - } - - /** - * Names of the nodes to delete. - * @param nodes nodes or {@code null} for none - */ - public NodeGroupsDeleteNodesRequest setNodes(java.util.List nodes) { - this.nodes = nodes; - return this; - } - - @Override - public NodeGroupsDeleteNodesRequest set(String fieldName, Object value) { - return (NodeGroupsDeleteNodesRequest) super.set(fieldName, value); - } - - @Override - public NodeGroupsDeleteNodesRequest clone() { - return (NodeGroupsDeleteNodesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsListNodes.java deleted file mode 100644 index 5b7758c0b03..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsListNodes.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsListNodes. - * - *

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 NodeGroupsListNodes extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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 Node 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 NodeGroupNode 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(NodeGroupNode.class); - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public NodeGroupsListNodes setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Node resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Node resources. - * @param items items or {@code null} for none - */ - public NodeGroupsListNodes setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. - * @param kind kind or {@code null} for none - */ - public NodeGroupsListNodes setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeGroupsListNodes 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 NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public NodeGroupsListNodes setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeGroupsListNodes set(String fieldName, Object value) { - return (NodeGroupsListNodes) super.set(fieldName, value); - } - - @Override - public NodeGroupsListNodes clone() { - return (NodeGroupsListNodes) super.clone(); - } - - /** - * Output only. [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 NodeGroupsListNodesWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsPerformMaintenanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsPerformMaintenanceRequest.java deleted file mode 100644 index 247d43fb876..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsPerformMaintenanceRequest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsPerformMaintenanceRequest. - * - *

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 NodeGroupsPerformMaintenanceRequest extends com.google.api.client.json.GenericJson { - - /** - * [Required] List of nodes affected by the call. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodes; - - /** - * The start time of the schedule. The timestamp is an RFC3339 string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * [Required] List of nodes affected by the call. - * @return value or {@code null} for none - */ - public java.util.List getNodes() { - return nodes; - } - - /** - * [Required] List of nodes affected by the call. - * @param nodes nodes or {@code null} for none - */ - public NodeGroupsPerformMaintenanceRequest setNodes(java.util.List nodes) { - this.nodes = nodes; - return this; - } - - /** - * The start time of the schedule. The timestamp is an RFC3339 string. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * The start time of the schedule. The timestamp is an RFC3339 string. - * @param startTime startTime or {@code null} for none - */ - public NodeGroupsPerformMaintenanceRequest setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public NodeGroupsPerformMaintenanceRequest set(String fieldName, Object value) { - return (NodeGroupsPerformMaintenanceRequest) super.set(fieldName, value); - } - - @Override - public NodeGroupsPerformMaintenanceRequest clone() { - return (NodeGroupsPerformMaintenanceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsScopedList.java deleted file mode 100644 index 5889507caf7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsScopedList. - * - *

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 NodeGroupsScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of node groups contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodeGroups; - - static { - // hack to force ProGuard to consider NodeGroup 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(NodeGroup.class); - } - - /** - * [Output Only] An informational warning that appears when the nodeGroup list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of node groups contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getNodeGroups() { - return nodeGroups; - } - - /** - * [Output Only] A list of node groups contained in this scope. - * @param nodeGroups nodeGroups or {@code null} for none - */ - public NodeGroupsScopedList setNodeGroups(java.util.List nodeGroups) { - this.nodeGroups = nodeGroups; - return this; - } - - /** - * [Output Only] An informational warning that appears when the nodeGroup list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] An informational warning that appears when the nodeGroup list is empty. - * @param warning warning or {@code null} for none - */ - public NodeGroupsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeGroupsScopedList set(String fieldName, Object value) { - return (NodeGroupsScopedList) super.set(fieldName, value); - } - - @Override - public NodeGroupsScopedList clone() { - return (NodeGroupsScopedList) super.clone(); - } - - /** - * [Output Only] An informational warning that appears when the nodeGroup list is empty. - */ - 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 NodeGroupsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSetNodeTemplateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSetNodeTemplateRequest.java deleted file mode 100644 index f9fb3e8a279..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSetNodeTemplateRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsSetNodeTemplateRequest. - * - *

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 NodeGroupsSetNodeTemplateRequest extends com.google.api.client.json.GenericJson { - - /** - * Full or partial URL of the node template resource to be updated for this node group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nodeTemplate; - - /** - * Full or partial URL of the node template resource to be updated for this node group. - * @return value or {@code null} for none - */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; - } - - /** - * Full or partial URL of the node template resource to be updated for this node group. - * @param nodeTemplate nodeTemplate or {@code null} for none - */ - public NodeGroupsSetNodeTemplateRequest setNodeTemplate(java.lang.String nodeTemplate) { - this.nodeTemplate = nodeTemplate; - return this; - } - - @Override - public NodeGroupsSetNodeTemplateRequest set(String fieldName, Object value) { - return (NodeGroupsSetNodeTemplateRequest) super.set(fieldName, value); - } - - @Override - public NodeGroupsSetNodeTemplateRequest clone() { - return (NodeGroupsSetNodeTemplateRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSimulateMaintenanceEventRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSimulateMaintenanceEventRequest.java deleted file mode 100644 index 35bc76197f7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeGroupsSimulateMaintenanceEventRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeGroupsSimulateMaintenanceEventRequest. - * - *

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 NodeGroupsSimulateMaintenanceEventRequest extends com.google.api.client.json.GenericJson { - - /** - * Names of the nodes to go under maintenance simulation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodes; - - /** - * Names of the nodes to go under maintenance simulation. - * @return value or {@code null} for none - */ - public java.util.List getNodes() { - return nodes; - } - - /** - * Names of the nodes to go under maintenance simulation. - * @param nodes nodes or {@code null} for none - */ - public NodeGroupsSimulateMaintenanceEventRequest setNodes(java.util.List nodes) { - this.nodes = nodes; - return this; - } - - @Override - public NodeGroupsSimulateMaintenanceEventRequest set(String fieldName, Object value) { - return (NodeGroupsSimulateMaintenanceEventRequest) super.set(fieldName, value); - } - - @Override - public NodeGroupsSimulateMaintenanceEventRequest clone() { - return (NodeGroupsSimulateMaintenanceEventRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplate.java deleted file mode 100644 index f3d52213cef..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplate.java +++ /dev/null @@ -1,471 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represent a sole-tenant Node Template resource. - * - * You can use a template to define properties for nodes in a node group. For more information, - * readCreating node groups and instances. - * - *

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 NodeTemplate extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List accelerators; - - 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); - } - - /** - * CPU overcommit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cpuOvercommitType; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List disks; - - static { - // hack to force ProGuard to consider LocalDisk 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(LocalDisk.class); - } - - /** - * 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] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - - /** - * Labels to use for node affinity, which will be used in instance scheduling. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map nodeAffinityLabels; - - /** - * The node type to use for nodes group that are created from this template. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nodeType; - - /** - * Do not use. Instead, use the node_type property. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; - - /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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; - - /** - * Sets the binding properties for the physical server. Valid values include: - *[Default]* - * RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - - * RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible - * - * See Sole-tenant node options for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ServerBinding serverBinding; - - /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String statusMessage; - - /** - * @return value or {@code null} for none - */ - public java.util.List getAccelerators() { - return accelerators; - } - - /** - * @param accelerators accelerators or {@code null} for none - */ - public NodeTemplate setAccelerators(java.util.List accelerators) { - this.accelerators = accelerators; - return this; - } - - /** - * CPU overcommit. - * @return value or {@code null} for none - */ - public java.lang.String getCpuOvercommitType() { - return cpuOvercommitType; - } - - /** - * CPU overcommit. - * @param cpuOvercommitType cpuOvercommitType or {@code null} for none - */ - public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { - this.cpuOvercommitType = cpuOvercommitType; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public NodeTemplate setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * @param disks disks or {@code null} for none - */ - public NodeTemplate setDisks(java.util.List disks) { - this.disks = disks; - 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 NodeTemplate setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. - * @param kind kind or {@code null} for none - */ - public NodeTemplate setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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 NodeTemplate setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Labels to use for node affinity, which will be used in instance scheduling. - * @return value or {@code null} for none - */ - public java.util.Map getNodeAffinityLabels() { - return nodeAffinityLabels; - } - - /** - * Labels to use for node affinity, which will be used in instance scheduling. - * @param nodeAffinityLabels nodeAffinityLabels or {@code null} for none - */ - public NodeTemplate setNodeAffinityLabels(java.util.Map nodeAffinityLabels) { - this.nodeAffinityLabels = nodeAffinityLabels; - return this; - } - - /** - * The node type to use for nodes group that are created from this template. - * @return value or {@code null} for none - */ - public java.lang.String getNodeType() { - return nodeType; - } - - /** - * The node type to use for nodes group that are created from this template. - * @param nodeType nodeType or {@code null} for none - */ - public NodeTemplate setNodeType(java.lang.String nodeType) { - this.nodeType = nodeType; - return this; - } - - /** - * Do not use. Instead, use the node_type property. - * @return value or {@code null} for none - */ - public NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility() { - return nodeTypeFlexibility; - } - - /** - * Do not use. Instead, use the node_type property. - * @param nodeTypeFlexibility nodeTypeFlexibility or {@code null} for none - */ - public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeTypeFlexibility) { - this.nodeTypeFlexibility = nodeTypeFlexibility; - return this; - } - - /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. - * @param region region or {@code null} for none - */ - public NodeTemplate setRegion(java.lang.String region) { - this.region = region; - 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 NodeTemplate setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Sets the binding properties for the physical server. Valid values include: - *[Default]* - * RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - - * RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible - * - * See Sole-tenant node options for more information. - * @return value or {@code null} for none - */ - public ServerBinding getServerBinding() { - return serverBinding; - } - - /** - * Sets the binding properties for the physical server. Valid values include: - *[Default]* - * RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - - * RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible - * - * See Sole-tenant node options for more information. - * @param serverBinding serverBinding or {@code null} for none - */ - public NodeTemplate setServerBinding(ServerBinding serverBinding) { - this.serverBinding = serverBinding; - return this; - } - - /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. - * @param status status or {@code null} for none - */ - public NodeTemplate setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * @return value or {@code null} for none - */ - public java.lang.String getStatusMessage() { - return statusMessage; - } - - /** - * Output only. [Output Only] An optional, human-readable explanation of the status. - * @param statusMessage statusMessage or {@code null} for none - */ - public NodeTemplate setStatusMessage(java.lang.String statusMessage) { - this.statusMessage = statusMessage; - return this; - } - - @Override - public NodeTemplate set(String fieldName, Object value) { - return (NodeTemplate) super.set(fieldName, value); - } - - @Override - public NodeTemplate clone() { - return (NodeTemplate) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateAggregatedList.java deleted file mode 100644 index cea28e8b870..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeTemplateAggregatedList. - * - *

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 NodeTemplateAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 NodeTemplatesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for - * aggregated lists of node templates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 NodeTemplateAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NodeTemplatesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NodeTemplatesScopedList resources. - * @param items items or {@code null} for none - */ - public NodeTemplateAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for - * aggregated lists of node templates. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for - * aggregated lists of node templates. - * @param kind kind or {@code null} for none - */ - public NodeTemplateAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeTemplateAggregatedList 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 NodeTemplateAggregatedList 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 NodeTemplateAggregatedList 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 NodeTemplateAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeTemplateAggregatedList set(String fieldName, Object value) { - return (NodeTemplateAggregatedList) super.set(fieldName, value); - } - - @Override - public NodeTemplateAggregatedList clone() { - return (NodeTemplateAggregatedList) 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 NodeTemplateAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateList.java deleted file mode 100644 index b167801ff71..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of node templates. - * - *

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 NodeTemplateList extends com.google.api.client.json.GenericJson { - - /** - * [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 NodeTemplate 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 NodeTemplate 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(NodeTemplate.class); - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NodeTemplateList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NodeTemplate resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NodeTemplate resources. - * @param items items or {@code null} for none - */ - public NodeTemplateList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. - * @param kind kind or {@code null} for none - */ - public NodeTemplateList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeTemplateList 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 NodeTemplateList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NodeTemplateList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeTemplateList set(String fieldName, Object value) { - return (NodeTemplateList) super.set(fieldName, value); - } - - @Override - public NodeTemplateList clone() { - return (NodeTemplateList) 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 NodeTemplateListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateNodeTypeFlexibility.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateNodeTypeFlexibility.java deleted file mode 100644 index 4a329c3b0d3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplateNodeTypeFlexibility.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeTemplateNodeTypeFlexibility. - * - *

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 NodeTemplateNodeTypeFlexibility extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cpus; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String localSsd; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String memory; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getCpus() { - return cpus; - } - - /** - * @param cpus cpus or {@code null} for none - */ - public NodeTemplateNodeTypeFlexibility setCpus(java.lang.String cpus) { - this.cpus = cpus; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getLocalSsd() { - return localSsd; - } - - /** - * @param localSsd localSsd or {@code null} for none - */ - public NodeTemplateNodeTypeFlexibility setLocalSsd(java.lang.String localSsd) { - this.localSsd = localSsd; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getMemory() { - return memory; - } - - /** - * @param memory memory or {@code null} for none - */ - public NodeTemplateNodeTypeFlexibility setMemory(java.lang.String memory) { - this.memory = memory; - return this; - } - - @Override - public NodeTemplateNodeTypeFlexibility set(String fieldName, Object value) { - return (NodeTemplateNodeTypeFlexibility) super.set(fieldName, value); - } - - @Override - public NodeTemplateNodeTypeFlexibility clone() { - return (NodeTemplateNodeTypeFlexibility) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplatesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplatesScopedList.java deleted file mode 100644 index c5482639fff..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTemplatesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeTemplatesScopedList. - * - *

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 NodeTemplatesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of node templates contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodeTemplates; - - static { - // hack to force ProGuard to consider NodeTemplate 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(NodeTemplate.class); - } - - /** - * [Output Only] An informational warning that appears when the node templates list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of node templates contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getNodeTemplates() { - return nodeTemplates; - } - - /** - * [Output Only] A list of node templates contained in this scope. - * @param nodeTemplates nodeTemplates or {@code null} for none - */ - public NodeTemplatesScopedList setNodeTemplates(java.util.List nodeTemplates) { - this.nodeTemplates = nodeTemplates; - return this; - } - - /** - * [Output Only] An informational warning that appears when the node templates list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] An informational warning that appears when the node templates list is empty. - * @param warning warning or {@code null} for none - */ - public NodeTemplatesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeTemplatesScopedList set(String fieldName, Object value) { - return (NodeTemplatesScopedList) super.set(fieldName, value); - } - - @Override - public NodeTemplatesScopedList clone() { - return (NodeTemplatesScopedList) super.clone(); - } - - /** - * [Output Only] An informational warning that appears when the node templates list is empty. - */ - 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 NodeTemplatesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeType.java deleted file mode 100644 index a5fd6183c24..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeType.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represent a sole-tenant Node Type resource. - * - * Each node within a node group must have a node type. A node type specifies the total amount of - * cores and memory for that node. Currently, the only available node type is n1-node-96-624 node - * type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information - * readNode types. - * - *

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 NodeType extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The CPU platform used by this node type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cpuPlatform; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] The deprecation status associated with this node type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * [Output Only] An optional textual description of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] The number of virtual CPUs that are available to the node type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer guestCpus; - - /** - * [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] The type of the resource. Alwayscompute#nodeType for node types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Local SSD available to the node type, defined in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer localSsdGb; - - /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxVms; - - /** - * [Output Only] The amount of physical memory available to the node type, defined in MB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer memoryMb; - - /** - * [Output Only] Name of the resource. - * 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; - - /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * [Output Only] The CPU platform used by this node type. - * @return value or {@code null} for none - */ - public java.lang.String getCpuPlatform() { - return cpuPlatform; - } - - /** - * [Output Only] The CPU platform used by this node type. - * @param cpuPlatform cpuPlatform or {@code null} for none - */ - public NodeType setCpuPlatform(java.lang.String cpuPlatform) { - this.cpuPlatform = cpuPlatform; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NodeType setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] The deprecation status associated with this node type. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * [Output Only] The deprecation status associated with this node type. - * @param deprecated deprecated or {@code null} for none - */ - public NodeType setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * [Output Only] An optional textual description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * [Output Only] An optional textual description of the resource. - * @param description description or {@code null} for none - */ - public NodeType setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] The number of virtual CPUs that are available to the node type. - * @return value or {@code null} for none - */ - public java.lang.Integer getGuestCpus() { - return guestCpus; - } - - /** - * [Output Only] The number of virtual CPUs that are available to the node type. - * @param guestCpus guestCpus or {@code null} for none - */ - public NodeType setGuestCpus(java.lang.Integer guestCpus) { - this.guestCpus = guestCpus; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public NodeType setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. - * @param kind kind or {@code null} for none - */ - public NodeType setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Local SSD available to the node type, defined in GB. - * @return value or {@code null} for none - */ - public java.lang.Integer getLocalSsdGb() { - return localSsdGb; - } - - /** - * [Output Only] Local SSD available to the node type, defined in GB. - * @param localSsdGb localSsdGb or {@code null} for none - */ - public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { - this.localSsdGb = localSsdGb; - return this; - } - - /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxVms() { - return maxVms; - } - - /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. - * @param maxVms maxVms or {@code null} for none - */ - public NodeType setMaxVms(java.lang.Integer maxVms) { - this.maxVms = maxVms; - return this; - } - - /** - * [Output Only] The amount of physical memory available to the node type, defined in MB. - * @return value or {@code null} for none - */ - public java.lang.Integer getMemoryMb() { - return memoryMb; - } - - /** - * [Output Only] The amount of physical memory available to the node type, defined in MB. - * @param memoryMb memoryMb or {@code null} for none - */ - public NodeType setMemoryMb(java.lang.Integer memoryMb) { - this.memoryMb = memoryMb; - return this; - } - - /** - * [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public NodeType 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 NodeType setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. - * @param zone zone or {@code null} for none - */ - public NodeType setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public NodeType set(String fieldName, Object value) { - return (NodeType) super.set(fieldName, value); - } - - @Override - public NodeType clone() { - return (NodeType) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeAggregatedList.java deleted file mode 100644 index d513c8b84b0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeTypeAggregatedList. - * - *

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 NodeTypeAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 NodeTypesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated - * lists of node types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 NodeTypeAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NodeTypesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NodeTypesScopedList resources. - * @param items items or {@code null} for none - */ - public NodeTypeAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated - * lists of node types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated - * lists of node types. - * @param kind kind or {@code null} for none - */ - public NodeTypeAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeTypeAggregatedList 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 NodeTypeAggregatedList 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 NodeTypeAggregatedList 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 NodeTypeAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeTypeAggregatedList set(String fieldName, Object value) { - return (NodeTypeAggregatedList) super.set(fieldName, value); - } - - @Override - public NodeTypeAggregatedList clone() { - return (NodeTypeAggregatedList) 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 NodeTypeAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeList.java deleted file mode 100644 index 7284c12aea9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypeList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of node types. - * - *

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 NodeTypeList extends com.google.api.client.json.GenericJson { - - /** - * [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 NodeType 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 NodeType 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(NodeType.class); - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NodeTypeList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NodeType resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NodeType resources. - * @param items items or {@code null} for none - */ - public NodeTypeList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. - * @param kind kind or {@code null} for none - */ - public NodeTypeList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NodeTypeList 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 NodeTypeList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NodeTypeList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeTypeList set(String fieldName, Object value) { - return (NodeTypeList) super.set(fieldName, value); - } - - @Override - public NodeTypeList clone() { - return (NodeTypeList) 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 NodeTypeListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypesScopedList.java deleted file mode 100644 index 5898472685c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NodeTypesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NodeTypesScopedList. - * - *

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 NodeTypesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of node types contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodeTypes; - - static { - // hack to force ProGuard to consider NodeType 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(NodeType.class); - } - - /** - * [Output Only] An informational warning that appears when the node types list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of node types contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getNodeTypes() { - return nodeTypes; - } - - /** - * [Output Only] A list of node types contained in this scope. - * @param nodeTypes nodeTypes or {@code null} for none - */ - public NodeTypesScopedList setNodeTypes(java.util.List nodeTypes) { - this.nodeTypes = nodeTypes; - return this; - } - - /** - * [Output Only] An informational warning that appears when the node types list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] An informational warning that appears when the node types list is empty. - * @param warning warning or {@code null} for none - */ - public NodeTypesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NodeTypesScopedList set(String fieldName, Object value) { - return (NodeTypesScopedList) super.set(fieldName, value); - } - - @Override - public NodeTypesScopedList clone() { - return (NodeTypesScopedList) super.clone(); - } - - /** - * [Output Only] An informational warning that appears when the node types list is empty. - */ - 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 NodeTypesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpoint.java deleted file mode 100644 index 689b27597fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpoint.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a notification endpoint. - * - * A notification endpoint resource defines an endpoint to receive notifications when there are - * status changes detected by the associated health check service. - * - * For more information, see Health checks overview. - * - *

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 NotificationEndpoint extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NotificationEndpointGrpcSettings grpcSettings; - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] URL of the region where the notification endpoint resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public NotificationEndpoint setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. - * @return value or {@code null} for none - */ - public NotificationEndpointGrpcSettings getGrpcSettings() { - return grpcSettings; - } - - /** - * Settings of the gRPC notification endpoint including the endpoint URL and the retry duration. - * @param grpcSettings grpcSettings or {@code null} for none - */ - public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grpcSettings) { - this.grpcSettings = grpcSettings; - return this; - } - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public NotificationEndpoint setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. - * @param kind kind or {@code null} for none - */ - public NotificationEndpoint setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 NotificationEndpoint setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the notification endpoint resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the notification endpoint resides. This - * field applies only to the regional resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public NotificationEndpoint setRegion(java.lang.String region) { - this.region = region; - 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 NotificationEndpoint setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public NotificationEndpoint set(String fieldName, Object value) { - return (NotificationEndpoint) super.set(fieldName, value); - } - - @Override - public NotificationEndpoint clone() { - return (NotificationEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointAggregatedList.java deleted file mode 100644 index 166b1f2476d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of NotificationEndpointsScopedList. - * - *

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 NotificationEndpointAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 NotificationEndpointsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 NotificationEndpointAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NotificationEndpointsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of NotificationEndpointsScopedList resources. - * @param items items or {@code null} for none - */ - public NotificationEndpointAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public NotificationEndpointAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NotificationEndpointAggregatedList 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 NotificationEndpointAggregatedList 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 NotificationEndpointAggregatedList 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 NotificationEndpointAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NotificationEndpointAggregatedList set(String fieldName, Object value) { - return (NotificationEndpointAggregatedList) super.set(fieldName, value); - } - - @Override - public NotificationEndpointAggregatedList clone() { - return (NotificationEndpointAggregatedList) 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 NotificationEndpointAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointGrpcSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointGrpcSettings.java deleted file mode 100644 index 6980d1a803c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointGrpcSettings.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration - * attempting to send notification to this endpoint. - * - *

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 NotificationEndpointGrpcSettings extends com.google.api.client.json.GenericJson { - - /** - * Optional. If specified, this field is used to set the authority header by the sender of - * notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String authority; - - /** - * Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; - - /** - * Optional. If specified, this field is used to populate the "name" field in gRPC requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String payloadName; - - /** - * Optional. This field is used to configure how often to send a full update of all non-healthy - * backends. If unspecified, full updates are not sent. If specified, must be in the range between - * 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification - * endpoints. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration resendInterval; - - /** - * How much time (in seconds) is spent attempting notification retries until a successful response - * is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long retryDurationSec; - - /** - * Optional. If specified, this field is used to set the authority header by the sender of - * notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 - * @return value or {@code null} for none - */ - public java.lang.String getAuthority() { - return authority; - } - - /** - * Optional. If specified, this field is used to set the authority header by the sender of - * notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3 - * @param authority authority or {@code null} for none - */ - public NotificationEndpointGrpcSettings setAuthority(java.lang.String authority) { - this.authority = authority; - return this; - } - - /** - * Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. - * @return value or {@code null} for none - */ - public java.lang.String getEndpoint() { - return endpoint; - } - - /** - * Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name. - * @param endpoint endpoint or {@code null} for none - */ - public NotificationEndpointGrpcSettings setEndpoint(java.lang.String endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * Optional. If specified, this field is used to populate the "name" field in gRPC requests. - * @return value or {@code null} for none - */ - public java.lang.String getPayloadName() { - return payloadName; - } - - /** - * Optional. If specified, this field is used to populate the "name" field in gRPC requests. - * @param payloadName payloadName or {@code null} for none - */ - public NotificationEndpointGrpcSettings setPayloadName(java.lang.String payloadName) { - this.payloadName = payloadName; - return this; - } - - /** - * Optional. This field is used to configure how often to send a full update of all non-healthy - * backends. If unspecified, full updates are not sent. If specified, must be in the range between - * 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification - * endpoints. - * @return value or {@code null} for none - */ - public Duration getResendInterval() { - return resendInterval; - } - - /** - * Optional. This field is used to configure how often to send a full update of all non-healthy - * backends. If unspecified, full updates are not sent. If specified, must be in the range between - * 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification - * endpoints. - * @param resendInterval resendInterval or {@code null} for none - */ - public NotificationEndpointGrpcSettings setResendInterval(Duration resendInterval) { - this.resendInterval = resendInterval; - return this; - } - - /** - * How much time (in seconds) is spent attempting notification retries until a successful response - * is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. - * @return value or {@code null} for none - */ - public java.lang.Long getRetryDurationSec() { - return retryDurationSec; - } - - /** - * How much time (in seconds) is spent attempting notification retries until a successful response - * is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. - * @param retryDurationSec retryDurationSec or {@code null} for none - */ - public NotificationEndpointGrpcSettings setRetryDurationSec(java.lang.Long retryDurationSec) { - this.retryDurationSec = retryDurationSec; - return this; - } - - @Override - public NotificationEndpointGrpcSettings set(String fieldName, Object value) { - return (NotificationEndpointGrpcSettings) super.set(fieldName, value); - } - - @Override - public NotificationEndpointGrpcSettings clone() { - return (NotificationEndpointGrpcSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointList.java deleted file mode 100644 index fd25eac20bc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NotificationEndpointList. - * - *

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 NotificationEndpointList extends com.google.api.client.json.GenericJson { - - /** - * [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 NotificationEndpoint 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 NotificationEndpoint 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(NotificationEndpoint.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 NotificationEndpointList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of NotificationEndpoint resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of NotificationEndpoint resources. - * @param items items or {@code null} for none - */ - public NotificationEndpointList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. - * @param kind kind or {@code null} for none - */ - public NotificationEndpointList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public NotificationEndpointList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public NotificationEndpointList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 NotificationEndpointList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NotificationEndpointList set(String fieldName, Object value) { - return (NotificationEndpointList) super.set(fieldName, value); - } - - @Override - public NotificationEndpointList clone() { - return (NotificationEndpointList) 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 NotificationEndpointListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointsScopedList.java deleted file mode 100644 index 588970ef9ea..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/NotificationEndpointsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for NotificationEndpointsScopedList. - * - *

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 NotificationEndpointsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of NotificationEndpoints contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resources; - - static { - // hack to force ProGuard to consider NotificationEndpoint 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(NotificationEndpoint.class); - } - - /** - * Informational warning which replaces the list of notification endpoints when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of NotificationEndpoints contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getResources() { - return resources; - } - - /** - * A list of NotificationEndpoints contained in this scope. - * @param resources resources or {@code null} for none - */ - public NotificationEndpointsScopedList setResources(java.util.List resources) { - this.resources = resources; - return this; - } - - /** - * Informational warning which replaces the list of notification endpoints when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of notification endpoints when the list is empty. - * @param warning warning or {@code null} for none - */ - public NotificationEndpointsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public NotificationEndpointsScopedList set(String fieldName, Object value) { - return (NotificationEndpointsScopedList) super.set(fieldName, value); - } - - @Override - public NotificationEndpointsScopedList clone() { - return (NotificationEndpointsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of notification endpoints when the list is empty. - */ - 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 NotificationEndpointsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Operation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Operation.java deleted file mode 100644 index e4429362328..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Operation.java +++ /dev/null @@ -1,1262 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an Operation resource. - * - * Google Compute Engine has three Operation resources: - * - * * [Global](/compute/docs/reference/rest/v1/globalOperations) * - * [Regional](/compute/docs/reference/rest/v1/regionOperations) * - * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - * - * You can use an operation resource to manage asynchronous API requests. For more information, - * readHandling API responses. - * - * Operations can be global, regional or zonal. - For global operations, use the - * `globalOperations` resource. - For regional operations, use the `regionOperations` - * resource. - For zonal operations, use the `zoneOperations` resource. - * - * For more information, read Global, Regional, and Zonal Resources. - * - * Note that completed Operation resources have a limited retention period. - * - *

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 Operation extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The value of `requestId` if you provided it in the request. Not present - * otherwise. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String clientOperationId; - - /** - * [Deprecated] This field is deprecated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] A textual description of the operation, which is set when the operation is - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] The time that this operation was completed. This value is inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endTime; - - /** - * [Output Only] If errors are generated during processing of the operation, this field will be - * populated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. Metadata for GetHealth operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GetHealthOperationMetadata getHealthOperationMetadata; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GetVersionOperationMetadata getVersionOperationMetadata; - - /** - * [Output Only] If the operation fails, this field contains the HTTP error message that was - * returned, such as `NOT FOUND`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String httpErrorMessage; - - /** - * [Output Only] If the operation fails, this field contains the HTTP error status code that was - * returned. For example, a `404` means the resource was not found. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer httpErrorStatusCode; - - /** - * [Output Only] The unique identifier for the operation. 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] The time that this operation was requested. This value is inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String insertTime; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; - - /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Name of the operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] An ID that represents a group of operations, such as when a group of - * operations results from a `bulkInsert` API request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operationGroupId; - - /** - * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operationType; - - /** - * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement - * that this be linear or support any granularity of operations. This should not be used to guess - * when the operation will be complete. This number should monotonically increase as the operation - * progresses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer progress; - - /** - * [Output Only] The URL of the region where the operation resides. Only applicable when - * performing regional operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata; - - /** - * [Output Only] The time that this operation was started by the server. This value is inRFC3339 - * text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * [Output Only] The status of the operation, which can be one of the following: `PENDING`, - * `RUNNING`, or `DONE`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * [Output Only] An optional textual description of the current status of the operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String statusMessage; - - /** - * [Output Only] The unique target ID, which identifies a specific incarnation of the target - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger targetId; - - /** - * [Output Only] The URL of the resource that the operation modifies. For operations related to - * creating a snapshot, this points to the disk that the snapshot was created from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetLink; - - /** - * [Output Only] User who requested the operation, for example: `user@example.com` or - * `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String user; - - /** - * [Output Only] If warning messages are generated during processing of the operation, this field - * will be populated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List warnings; - - static { - // hack to force ProGuard to consider Warnings 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(Warnings.class); - } - - /** - * [Output Only] The URL of the zone where the operation resides. Only applicable when performing - * per-zone operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * [Output Only] The value of `requestId` if you provided it in the request. Not present - * otherwise. - * @return value or {@code null} for none - */ - public java.lang.String getClientOperationId() { - return clientOperationId; - } - - /** - * [Output Only] The value of `requestId` if you provided it in the request. Not present - * otherwise. - * @param clientOperationId clientOperationId or {@code null} for none - */ - public Operation setClientOperationId(java.lang.String clientOperationId) { - this.clientOperationId = clientOperationId; - return this; - } - - /** - * [Deprecated] This field is deprecated. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Deprecated] This field is deprecated. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Operation setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] A textual description of the operation, which is set when the operation is - * created. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * [Output Only] A textual description of the operation, which is set when the operation is - * created. - * @param description description or {@code null} for none - */ - public Operation setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] The time that this operation was completed. This value is inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getEndTime() { - return endTime; - } - - /** - * [Output Only] The time that this operation was completed. This value is inRFC3339 text format. - * @param endTime endTime or {@code null} for none - */ - public Operation setEndTime(java.lang.String endTime) { - this.endTime = endTime; - return this; - } - - /** - * [Output Only] If errors are generated during processing of the operation, this field will be - * populated. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * [Output Only] If errors are generated during processing of the operation, this field will be - * populated. - * @param error error or {@code null} for none - */ - public Operation setError(Error error) { - this.error = error; - return this; - } - - /** - * Output only. Metadata for GetHealth operations. - * @return value or {@code null} for none - */ - public GetHealthOperationMetadata getGetHealthOperationMetadata() { - return getHealthOperationMetadata; - } - - /** - * Output only. Metadata for GetHealth operations. - * @param getHealthOperationMetadata getHealthOperationMetadata or {@code null} for none - */ - public Operation setGetHealthOperationMetadata(GetHealthOperationMetadata getHealthOperationMetadata) { - this.getHealthOperationMetadata = getHealthOperationMetadata; - return this; - } - - /** - * @return value or {@code null} for none - */ - public GetVersionOperationMetadata getGetVersionOperationMetadata() { - return getVersionOperationMetadata; - } - - /** - * @param getVersionOperationMetadata getVersionOperationMetadata or {@code null} for none - */ - public Operation setGetVersionOperationMetadata(GetVersionOperationMetadata getVersionOperationMetadata) { - this.getVersionOperationMetadata = getVersionOperationMetadata; - return this; - } - - /** - * [Output Only] If the operation fails, this field contains the HTTP error message that was - * returned, such as `NOT FOUND`. - * @return value or {@code null} for none - */ - public java.lang.String getHttpErrorMessage() { - return httpErrorMessage; - } - - /** - * [Output Only] If the operation fails, this field contains the HTTP error message that was - * returned, such as `NOT FOUND`. - * @param httpErrorMessage httpErrorMessage or {@code null} for none - */ - public Operation setHttpErrorMessage(java.lang.String httpErrorMessage) { - this.httpErrorMessage = httpErrorMessage; - return this; - } - - /** - * [Output Only] If the operation fails, this field contains the HTTP error status code that was - * returned. For example, a `404` means the resource was not found. - * @return value or {@code null} for none - */ - public java.lang.Integer getHttpErrorStatusCode() { - return httpErrorStatusCode; - } - - /** - * [Output Only] If the operation fails, this field contains the HTTP error status code that was - * returned. For example, a `404` means the resource was not found. - * @param httpErrorStatusCode httpErrorStatusCode or {@code null} for none - */ - public Operation setHttpErrorStatusCode(java.lang.Integer httpErrorStatusCode) { - this.httpErrorStatusCode = httpErrorStatusCode; - return this; - } - - /** - * [Output Only] The unique identifier for the operation. This identifier is defined by the - * server. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the operation. This identifier is defined by the - * server. - * @param id id or {@code null} for none - */ - public Operation setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * [Output Only] The time that this operation was requested. This value is inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getInsertTime() { - return insertTime; - } - - /** - * [Output Only] The time that this operation was requested. This value is inRFC3339 text format. - * @param insertTime insertTime or {@code null} for none - */ - public Operation setInsertTime(java.lang.String insertTime) { - this.insertTime = insertTime; - return this; - } - - /** - * @return value or {@code null} for none - */ - public InstancesBulkInsertOperationMetadata getInstancesBulkInsertOperationMetadata() { - return instancesBulkInsertOperationMetadata; - } - - /** - * @param instancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata or {@code null} for none - */ - public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata) { - this.instancesBulkInsertOperationMetadata = instancesBulkInsertOperationMetadata; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. - * @param kind kind or {@code null} for none - */ - public Operation setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Name of the operation. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the operation. - * @param name name or {@code null} for none - */ - public Operation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] An ID that represents a group of operations, such as when a group of - * operations results from a `bulkInsert` API request. - * @return value or {@code null} for none - */ - public java.lang.String getOperationGroupId() { - return operationGroupId; - } - - /** - * Output only. [Output Only] An ID that represents a group of operations, such as when a group of - * operations results from a `bulkInsert` API request. - * @param operationGroupId operationGroupId or {@code null} for none - */ - public Operation setOperationGroupId(java.lang.String operationGroupId) { - this.operationGroupId = operationGroupId; - return this; - } - - /** - * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. - * @return value or {@code null} for none - */ - public java.lang.String getOperationType() { - return operationType; - } - - /** - * [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. - * @param operationType operationType or {@code null} for none - */ - public Operation setOperationType(java.lang.String operationType) { - this.operationType = operationType; - return this; - } - - /** - * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement - * that this be linear or support any granularity of operations. This should not be used to guess - * when the operation will be complete. This number should monotonically increase as the operation - * progresses. - * @return value or {@code null} for none - */ - public java.lang.Integer getProgress() { - return progress; - } - - /** - * [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement - * that this be linear or support any granularity of operations. This should not be used to guess - * when the operation will be complete. This number should monotonically increase as the operation - * progresses. - * @param progress progress or {@code null} for none - */ - public Operation setProgress(java.lang.Integer progress) { - this.progress = progress; - return this; - } - - /** - * [Output Only] The URL of the region where the operation resides. Only applicable when - * performing regional operations. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] The URL of the region where the operation resides. Only applicable when - * performing regional operations. - * @param region region or {@code null} for none - */ - public Operation setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Operation setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. - * @return value or {@code null} for none - */ - public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOperationMetadata() { - return setCommonInstanceMetadataOperationMetadata; - } - - /** - * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. - * @param setCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata or {@code null} for none - */ - public Operation setSetCommonInstanceMetadataOperationMetadata(SetCommonInstanceMetadataOperationMetadata setCommonInstanceMetadataOperationMetadata) { - this.setCommonInstanceMetadataOperationMetadata = setCommonInstanceMetadataOperationMetadata; - return this; - } - - /** - * [Output Only] The time that this operation was started by the server. This value is inRFC3339 - * text format. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * [Output Only] The time that this operation was started by the server. This value is inRFC3339 - * text format. - * @param startTime startTime or {@code null} for none - */ - public Operation setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - /** - * [Output Only] The status of the operation, which can be one of the following: `PENDING`, - * `RUNNING`, or `DONE`. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] The status of the operation, which can be one of the following: `PENDING`, - * `RUNNING`, or `DONE`. - * @param status status or {@code null} for none - */ - public Operation setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * [Output Only] An optional textual description of the current status of the operation. - * @return value or {@code null} for none - */ - public java.lang.String getStatusMessage() { - return statusMessage; - } - - /** - * [Output Only] An optional textual description of the current status of the operation. - * @param statusMessage statusMessage or {@code null} for none - */ - public Operation setStatusMessage(java.lang.String statusMessage) { - this.statusMessage = statusMessage; - return this; - } - - /** - * [Output Only] The unique target ID, which identifies a specific incarnation of the target - * resource. - * @return value or {@code null} for none - */ - public java.math.BigInteger getTargetId() { - return targetId; - } - - /** - * [Output Only] The unique target ID, which identifies a specific incarnation of the target - * resource. - * @param targetId targetId or {@code null} for none - */ - public Operation setTargetId(java.math.BigInteger targetId) { - this.targetId = targetId; - return this; - } - - /** - * [Output Only] The URL of the resource that the operation modifies. For operations related to - * creating a snapshot, this points to the disk that the snapshot was created from. - * @return value or {@code null} for none - */ - public java.lang.String getTargetLink() { - return targetLink; - } - - /** - * [Output Only] The URL of the resource that the operation modifies. For operations related to - * creating a snapshot, this points to the disk that the snapshot was created from. - * @param targetLink targetLink or {@code null} for none - */ - public Operation setTargetLink(java.lang.String targetLink) { - this.targetLink = targetLink; - return this; - } - - /** - * [Output Only] User who requested the operation, for example: `user@example.com` or - * `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. - * @return value or {@code null} for none - */ - public java.lang.String getUser() { - return user; - } - - /** - * [Output Only] User who requested the operation, for example: `user@example.com` or - * `alice_smith_identifier (global/workforcePools/example-com-us-employees)`. - * @param user user or {@code null} for none - */ - public Operation setUser(java.lang.String user) { - this.user = user; - return this; - } - - /** - * [Output Only] If warning messages are generated during processing of the operation, this field - * will be populated. - * @return value or {@code null} for none - */ - public java.util.List getWarnings() { - return warnings; - } - - /** - * [Output Only] If warning messages are generated during processing of the operation, this field - * will be populated. - * @param warnings warnings or {@code null} for none - */ - public Operation setWarnings(java.util.List warnings) { - this.warnings = warnings; - return this; - } - - /** - * [Output Only] The URL of the zone where the operation resides. Only applicable when performing - * per-zone operations. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * [Output Only] The URL of the zone where the operation resides. Only applicable when performing - * per-zone operations. - * @param zone zone or {@code null} for none - */ - public Operation setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public Operation set(String fieldName, Object value) { - return (Operation) super.set(fieldName, value); - } - - @Override - public Operation clone() { - return (Operation) super.clone(); - } - - /** - * [Output Only] If errors are generated during processing of the operation, this field will be - * populated. - */ - public static final class Error extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The array of errors encountered while processing this operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errors; - - static { - // hack to force ProGuard to consider Errors 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(Errors.class); - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @return value or {@code null} for none - */ - public java.util.List getErrors() { - return errors; - } - - /** - * [Output Only] The array of errors encountered while processing this operation. - * @param errors errors or {@code null} for none - */ - public Error setErrors(java.util.List errors) { - this.errors = errors; - return this; - } - - @Override - public Error set(String fieldName, Object value) { - return (Error) super.set(fieldName, value); - } - - @Override - public Error clone() { - return (Error) super.clone(); - } - - /** - * Represents a single error encountered during the processing of an operation. - */ - public static final class Errors extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The error type identifier for this error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List errorDetails; - - static { - // hack to force ProGuard to consider ErrorDetails 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(ErrorDetails.class); - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** - * [Output Only] An optional, human-readable error message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] The error type identifier for this error. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] The error type identifier for this error. - * @param code code or {@code null} for none - */ - public Errors setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @return value or {@code null} for none - */ - public java.util.List getErrorDetails() { - return errorDetails; - } - - /** - * [Output Only] An optional list of messages that contain the error details. There is a set of - * defined message types to use for providing details.The syntax depends on the error code. For - * example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. - * @param errorDetails errorDetails or {@code null} for none - */ - public Errors setErrorDetails(java.util.List errorDetails) { - this.errorDetails = errorDetails; - return this; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @return value or {@code null} for none - */ - public java.lang.String getLocation() { - return location; - } - - /** - * [Output Only] Indicates the field in the request that caused the error. This property is - * optional. - * @param location location or {@code null} for none - */ - public Errors setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * [Output Only] An optional, human-readable error message. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] An optional, human-readable error message. - * @param message message or {@code null} for none - */ - public Errors setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Errors set(String fieldName, Object value) { - return (Errors) super.set(fieldName, value); - } - - @Override - public Errors clone() { - return (Errors) super.clone(); - } - - /** - * Container for structured error details providing additional context specific to the encountered - * error code. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * Error information containing structured domain, reason, and metadata. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * Links and information to help the user resolve the error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * A localized human-readable error message intended for end users. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * Details about quota limits and metrics when a quota is exceeded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * Error information containing structured domain, reason, and metadata. - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * Error information containing structured domain, reason, and metadata. - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * Links and information to help the user resolve the error. - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * Links and information to help the user resolve the error. - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * A localized human-readable error message intended for end users. - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * A localized human-readable error message intended for end users. - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * Details about quota limits and metrics when a quota is exceeded. - * @param quotaInfo quotaInfo or {@code null} for none - */ - public ErrorDetails setQuotaInfo(QuotaExceededInfo quotaInfo) { - this.quotaInfo = quotaInfo; - return this; - } - - @Override - public ErrorDetails set(String fieldName, Object value) { - return (ErrorDetails) super.set(fieldName, value); - } - - @Override - public ErrorDetails clone() { - return (ErrorDetails) super.clone(); - } - - } - } - } - - /** - * Model definition for OperationWarnings. - */ - public static final class Warnings 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 Warnings 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 Warnings 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 Warnings setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warnings set(String fieldName, Object value) { - return (Warnings) super.set(fieldName, value); - } - - @Override - public Warnings clone() { - return (Warnings) super.clone(); - } - - /** - * Model definition for OperationWarningsData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/OperationAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationAggregatedList.java deleted file mode 100644 index 79814596c46..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for OperationAggregatedList. - * - *

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 OperationAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 - private java.lang.String id; - - /** - * [Output Only] A map of scoped operation lists. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for - * aggregated lists of operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query - * parameter `pageToken` in the next list request. Subsequent list requests will have their own - * `nextPageToken` to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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; - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public OperationAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output Only] A map of scoped operation lists. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * [Output Only] A map of scoped operation lists. - * @param items items or {@code null} for none - */ - public OperationAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for - * aggregated lists of operations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for - * aggregated lists of operations. - * @param kind kind or {@code null} for none - */ - public OperationAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query - * parameter `pageToken` in the next list request. Subsequent list requests will have their own - * `nextPageToken` to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query - * parameter `pageToken` in the next list request. Subsequent list requests will have their own - * `nextPageToken` to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public OperationAggregatedList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public OperationAggregatedList 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 OperationAggregatedList 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 OperationAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public OperationAggregatedList set(String fieldName, Object value) { - return (OperationAggregatedList) super.set(fieldName, value); - } - - @Override - public OperationAggregatedList clone() { - return (OperationAggregatedList) 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 OperationAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/OperationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationList.java deleted file mode 100644 index 97db078982c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Operation resources. - * - *

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 OperationList extends com.google.api.client.json.GenericJson { - - /** - * [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 - private java.lang.String id; - - /** - * [Output Only] A list of Operation 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 Operation 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(Operation.class); - } - - /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query - * parameter `pageToken` in the next list request. Subsequent list requests will have their own - * `nextPageToken` to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public OperationList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output Only] A list of Operation resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output Only] A list of Operation resources. - * @param items items or {@code null} for none - */ - public OperationList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. - * @param kind kind or {@code null} for none - */ - public OperationList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query - * parameter `pageToken` in the next list request. Subsequent list requests will have their own - * `nextPageToken` to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query - * parameter `pageToken` in the next list request. Subsequent list requests will have their own - * `nextPageToken` to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public OperationList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public OperationList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 OperationList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public OperationList set(String fieldName, Object value) { - return (OperationList) super.set(fieldName, value); - } - - @Override - public OperationList clone() { - return (OperationList) 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 OperationListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/OperationsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationsScopedList.java deleted file mode 100644 index b0b5a95209f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OperationsScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for OperationsScopedList. - * - *

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 OperationsScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of operations contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List operations; - - static { - // hack to force ProGuard to consider Operation 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(Operation.class); - } - - /** - * [Output Only] Informational warning which replaces the list of operations when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of operations contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getOperations() { - return operations; - } - - /** - * [Output Only] A list of operations contained in this scope. - * @param operations operations or {@code null} for none - */ - public OperationsScopedList setOperations(java.util.List operations) { - this.operations = operations; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of operations when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of operations when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public OperationsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public OperationsScopedList set(String fieldName, Object value) { - return (OperationsScopedList) super.set(fieldName, value); - } - - @Override - public OperationsScopedList clone() { - return (OperationsScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of operations when the list is empty. - */ - 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 OperationsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OrganizationSecurityPoliciesListAssociationsResponse.java deleted file mode 100644 index 2ea36ea9f59..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for OrganizationSecurityPoliciesListAssociationsResponse. - * - *

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 OrganizationSecurityPoliciesListAssociationsResponse extends com.google.api.client.json.GenericJson { - - /** - * A list of associations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List associations; - - /** - * Output only. [Output Only] Type of securityPolicy associations. - * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy - * associations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A list of associations. - * @return value or {@code null} for none - */ - public java.util.List getAssociations() { - return associations; - } - - /** - * A list of associations. - * @param associations associations or {@code null} for none - */ - public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java.util.List associations) { - this.associations = associations; - return this; - } - - /** - * Output only. [Output Only] Type of securityPolicy associations. - * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy - * associations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of securityPolicy associations. - * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy - * associations. - * @param kind kind or {@code null} for none - */ - public OrganizationSecurityPoliciesListAssociationsResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public OrganizationSecurityPoliciesListAssociationsResponse set(String fieldName, Object value) { - return (OrganizationSecurityPoliciesListAssociationsResponse) super.set(fieldName, value); - } - - @Override - public OrganizationSecurityPoliciesListAssociationsResponse clone() { - return (OrganizationSecurityPoliciesListAssociationsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OutlierDetection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OutlierDetection.java deleted file mode 100644 index 2caf4528ba4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/OutlierDetection.java +++ /dev/null @@ -1,418 +0,0 @@ -/* - * 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.preview.model; - -/** - * Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend - * service. - * - *

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 OutlierDetection extends com.google.api.client.json.GenericJson { - - /** - * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. - * - * After a backend endpoint is returned back to the load balancing pool, it can be ejected again - * in another ejection analysis. Thus, the total ejection time is equal to the base ejection time - * multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or - * 30s. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration baseEjectionTime; - - /** - * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. - * When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. - * Defaults to 5. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer consecutiveErrors; - - /** - * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are - * mapped to one of those status codes) before a consecutive gateway failure ejection occurs. - * Defaults to 3. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer consecutiveGatewayFailure; - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up - * slowly. Defaults to 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer enforcingConsecutiveErrors; - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through consecutive gateway failures. This setting can be used to disable ejection or - * to ramp it up slowly. Defaults to 100. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer enforcingConsecutiveGatewayFailure; - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through success rate statistics. This setting can be used to disable ejection or to - * ramp it up slowly. Defaults to 100. - * - * Not supported when the backend service uses Serverless NEG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer enforcingSuccessRate; - - /** - * Time interval between ejection analysis sweeps. This can result in both new ejections and - * backend endpoints being returned to service. The interval is equal to the number of seconds as - * defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in - * outlierDetection.interval.nanos. Defaults to 1 second. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration interval; - - /** - * Maximum percentage of backend endpoints in the load balancing pool for the backend service that - * can be ejected if the ejection conditions are met. Defaults to 50%. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxEjectionPercent; - - /** - * The number of backend endpoints in the load balancing pool that must have enough request volume - * to detect success rate outliers. If the number of backend endpoints is fewer than this setting, - * outlier detection via success rate statistics is not performed for any backend endpoint in the - * load balancing pool. Defaults to 5. - * - * Not supported when the backend service uses Serverless NEG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer successRateMinimumHosts; - - /** - * The minimum number of total requests that must be collected in one interval (as defined by the - * interval duration above) to include this backend endpoint in success rate based outlier - * detection. If the volume is lower than this setting, outlier detection via success rate - * statistics is not performed for that backend endpoint. Defaults to 100. - * - * Not supported when the backend service uses Serverless NEG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer successRateRequestVolume; - - /** - * This factor is used to determine the ejection threshold for success rate outlier ejection. The - * ejection threshold is the difference between the mean success rate, and the product of this - * factor and the standard deviation of the mean success rate: mean - (stdev * - * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the - * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. - * - * Not supported when the backend service uses Serverless NEG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer successRateStdevFactor; - - /** - * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. - * - * After a backend endpoint is returned back to the load balancing pool, it can be ejected again - * in another ejection analysis. Thus, the total ejection time is equal to the base ejection time - * multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or - * 30s. - * @return value or {@code null} for none - */ - public Duration getBaseEjectionTime() { - return baseEjectionTime; - } - - /** - * The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. - * - * After a backend endpoint is returned back to the load balancing pool, it can be ejected again - * in another ejection analysis. Thus, the total ejection time is equal to the base ejection time - * multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or - * 30s. - * @param baseEjectionTime baseEjectionTime or {@code null} for none - */ - public OutlierDetection setBaseEjectionTime(Duration baseEjectionTime) { - this.baseEjectionTime = baseEjectionTime; - return this; - } - - /** - * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. - * When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. - * Defaults to 5. - * @return value or {@code null} for none - */ - public java.lang.Integer getConsecutiveErrors() { - return consecutiveErrors; - } - - /** - * Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. - * When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. - * Defaults to 5. - * @param consecutiveErrors consecutiveErrors or {@code null} for none - */ - public OutlierDetection setConsecutiveErrors(java.lang.Integer consecutiveErrors) { - this.consecutiveErrors = consecutiveErrors; - return this; - } - - /** - * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are - * mapped to one of those status codes) before a consecutive gateway failure ejection occurs. - * Defaults to 3. - * @return value or {@code null} for none - */ - public java.lang.Integer getConsecutiveGatewayFailure() { - return consecutiveGatewayFailure; - } - - /** - * The number of consecutive gateway failures (502, 503, 504 status or connection errors that are - * mapped to one of those status codes) before a consecutive gateway failure ejection occurs. - * Defaults to 3. - * @param consecutiveGatewayFailure consecutiveGatewayFailure or {@code null} for none - */ - public OutlierDetection setConsecutiveGatewayFailure(java.lang.Integer consecutiveGatewayFailure) { - this.consecutiveGatewayFailure = consecutiveGatewayFailure; - return this; - } - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up - * slowly. Defaults to 0. - * @return value or {@code null} for none - */ - public java.lang.Integer getEnforcingConsecutiveErrors() { - return enforcingConsecutiveErrors; - } - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up - * slowly. Defaults to 0. - * @param enforcingConsecutiveErrors enforcingConsecutiveErrors or {@code null} for none - */ - public OutlierDetection setEnforcingConsecutiveErrors(java.lang.Integer enforcingConsecutiveErrors) { - this.enforcingConsecutiveErrors = enforcingConsecutiveErrors; - return this; - } - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through consecutive gateway failures. This setting can be used to disable ejection or - * to ramp it up slowly. Defaults to 100. - * @return value or {@code null} for none - */ - public java.lang.Integer getEnforcingConsecutiveGatewayFailure() { - return enforcingConsecutiveGatewayFailure; - } - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through consecutive gateway failures. This setting can be used to disable ejection or - * to ramp it up slowly. Defaults to 100. - * @param enforcingConsecutiveGatewayFailure enforcingConsecutiveGatewayFailure or {@code null} for none - */ - public OutlierDetection setEnforcingConsecutiveGatewayFailure(java.lang.Integer enforcingConsecutiveGatewayFailure) { - this.enforcingConsecutiveGatewayFailure = enforcingConsecutiveGatewayFailure; - return this; - } - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through success rate statistics. This setting can be used to disable ejection or to - * ramp it up slowly. Defaults to 100. - * - * Not supported when the backend service uses Serverless NEG. - * @return value or {@code null} for none - */ - public java.lang.Integer getEnforcingSuccessRate() { - return enforcingSuccessRate; - } - - /** - * The percentage chance that a backend endpoint will be ejected when an outlier status is - * detected through success rate statistics. This setting can be used to disable ejection or to - * ramp it up slowly. Defaults to 100. - * - * Not supported when the backend service uses Serverless NEG. - * @param enforcingSuccessRate enforcingSuccessRate or {@code null} for none - */ - public OutlierDetection setEnforcingSuccessRate(java.lang.Integer enforcingSuccessRate) { - this.enforcingSuccessRate = enforcingSuccessRate; - return this; - } - - /** - * Time interval between ejection analysis sweeps. This can result in both new ejections and - * backend endpoints being returned to service. The interval is equal to the number of seconds as - * defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in - * outlierDetection.interval.nanos. Defaults to 1 second. - * @return value or {@code null} for none - */ - public Duration getInterval() { - return interval; - } - - /** - * Time interval between ejection analysis sweeps. This can result in both new ejections and - * backend endpoints being returned to service. The interval is equal to the number of seconds as - * defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in - * outlierDetection.interval.nanos. Defaults to 1 second. - * @param interval interval or {@code null} for none - */ - public OutlierDetection setInterval(Duration interval) { - this.interval = interval; - return this; - } - - /** - * Maximum percentage of backend endpoints in the load balancing pool for the backend service that - * can be ejected if the ejection conditions are met. Defaults to 50%. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxEjectionPercent() { - return maxEjectionPercent; - } - - /** - * Maximum percentage of backend endpoints in the load balancing pool for the backend service that - * can be ejected if the ejection conditions are met. Defaults to 50%. - * @param maxEjectionPercent maxEjectionPercent or {@code null} for none - */ - public OutlierDetection setMaxEjectionPercent(java.lang.Integer maxEjectionPercent) { - this.maxEjectionPercent = maxEjectionPercent; - return this; - } - - /** - * The number of backend endpoints in the load balancing pool that must have enough request volume - * to detect success rate outliers. If the number of backend endpoints is fewer than this setting, - * outlier detection via success rate statistics is not performed for any backend endpoint in the - * load balancing pool. Defaults to 5. - * - * Not supported when the backend service uses Serverless NEG. - * @return value or {@code null} for none - */ - public java.lang.Integer getSuccessRateMinimumHosts() { - return successRateMinimumHosts; - } - - /** - * The number of backend endpoints in the load balancing pool that must have enough request volume - * to detect success rate outliers. If the number of backend endpoints is fewer than this setting, - * outlier detection via success rate statistics is not performed for any backend endpoint in the - * load balancing pool. Defaults to 5. - * - * Not supported when the backend service uses Serverless NEG. - * @param successRateMinimumHosts successRateMinimumHosts or {@code null} for none - */ - public OutlierDetection setSuccessRateMinimumHosts(java.lang.Integer successRateMinimumHosts) { - this.successRateMinimumHosts = successRateMinimumHosts; - return this; - } - - /** - * The minimum number of total requests that must be collected in one interval (as defined by the - * interval duration above) to include this backend endpoint in success rate based outlier - * detection. If the volume is lower than this setting, outlier detection via success rate - * statistics is not performed for that backend endpoint. Defaults to 100. - * - * Not supported when the backend service uses Serverless NEG. - * @return value or {@code null} for none - */ - public java.lang.Integer getSuccessRateRequestVolume() { - return successRateRequestVolume; - } - - /** - * The minimum number of total requests that must be collected in one interval (as defined by the - * interval duration above) to include this backend endpoint in success rate based outlier - * detection. If the volume is lower than this setting, outlier detection via success rate - * statistics is not performed for that backend endpoint. Defaults to 100. - * - * Not supported when the backend service uses Serverless NEG. - * @param successRateRequestVolume successRateRequestVolume or {@code null} for none - */ - public OutlierDetection setSuccessRateRequestVolume(java.lang.Integer successRateRequestVolume) { - this.successRateRequestVolume = successRateRequestVolume; - return this; - } - - /** - * This factor is used to determine the ejection threshold for success rate outlier ejection. The - * ejection threshold is the difference between the mean success rate, and the product of this - * factor and the standard deviation of the mean success rate: mean - (stdev * - * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the - * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. - * - * Not supported when the backend service uses Serverless NEG. - * @return value or {@code null} for none - */ - public java.lang.Integer getSuccessRateStdevFactor() { - return successRateStdevFactor; - } - - /** - * This factor is used to determine the ejection threshold for success rate outlier ejection. The - * ejection threshold is the difference between the mean success rate, and the product of this - * factor and the standard deviation of the mean success rate: mean - (stdev * - * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the - * desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. - * - * Not supported when the backend service uses Serverless NEG. - * @param successRateStdevFactor successRateStdevFactor or {@code null} for none - */ - public OutlierDetection setSuccessRateStdevFactor(java.lang.Integer successRateStdevFactor) { - this.successRateStdevFactor = successRateStdevFactor; - return this; - } - - @Override - public OutlierDetection set(String fieldName, Object value) { - return (OutlierDetection) super.set(fieldName, value); - } - - @Override - public OutlierDetection clone() { - return (OutlierDetection) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketIntervals.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketIntervals.java deleted file mode 100644 index d3033a2ea9f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketIntervals.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.preview.model; - -/** - * Next free: 7 - * - *

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 PacketIntervals extends com.google.api.client.json.GenericJson { - - /** - * Average observed inter-packet interval in milliseconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long avgMs; - - /** - * From how long ago in the past these intervals were observed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String duration; - - /** - * Maximum observed inter-packet interval in milliseconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxMs; - - /** - * Minimum observed inter-packet interval in milliseconds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minMs; - - /** - * Number of inter-packet intervals from which these statistics were derived. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long numIntervals; - - /** - * The type of packets for which inter-packet intervals were computed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Average observed inter-packet interval in milliseconds. - * @return value or {@code null} for none - */ - public java.lang.Long getAvgMs() { - return avgMs; - } - - /** - * Average observed inter-packet interval in milliseconds. - * @param avgMs avgMs or {@code null} for none - */ - public PacketIntervals setAvgMs(java.lang.Long avgMs) { - this.avgMs = avgMs; - return this; - } - - /** - * From how long ago in the past these intervals were observed. - * @return value or {@code null} for none - */ - public java.lang.String getDuration() { - return duration; - } - - /** - * From how long ago in the past these intervals were observed. - * @param duration duration or {@code null} for none - */ - public PacketIntervals setDuration(java.lang.String duration) { - this.duration = duration; - return this; - } - - /** - * Maximum observed inter-packet interval in milliseconds. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxMs() { - return maxMs; - } - - /** - * Maximum observed inter-packet interval in milliseconds. - * @param maxMs maxMs or {@code null} for none - */ - public PacketIntervals setMaxMs(java.lang.Long maxMs) { - this.maxMs = maxMs; - return this; - } - - /** - * Minimum observed inter-packet interval in milliseconds. - * @return value or {@code null} for none - */ - public java.lang.Long getMinMs() { - return minMs; - } - - /** - * Minimum observed inter-packet interval in milliseconds. - * @param minMs minMs or {@code null} for none - */ - public PacketIntervals setMinMs(java.lang.Long minMs) { - this.minMs = minMs; - return this; - } - - /** - * Number of inter-packet intervals from which these statistics were derived. - * @return value or {@code null} for none - */ - public java.lang.Long getNumIntervals() { - return numIntervals; - } - - /** - * Number of inter-packet intervals from which these statistics were derived. - * @param numIntervals numIntervals or {@code null} for none - */ - public PacketIntervals setNumIntervals(java.lang.Long numIntervals) { - this.numIntervals = numIntervals; - return this; - } - - /** - * The type of packets for which inter-packet intervals were computed. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of packets for which inter-packet intervals were computed. - * @param type type or {@code null} for none - */ - public PacketIntervals setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public PacketIntervals set(String fieldName, Object value) { - return (PacketIntervals) super.set(fieldName, value); - } - - @Override - public PacketIntervals clone() { - return (PacketIntervals) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroring.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroring.java deleted file mode 100644 index 6936e5c08ac..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroring.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Packet Mirroring resource. - * - * Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) - * network and forwards it to a collector destination, such as an instance group of an internal - * TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet - * Mirroring, seeUsing Packet Mirroring. - * - *

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 PacketMirroring extends com.google.api.client.json.GenericJson { - - /** - * The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector - * for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PacketMirroringForwardingRuleInfo collectorIlb; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet - * mirroring policy will not be enforced on the network. - * - * The default is TRUE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enable; - - /** - * Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PacketMirroringFilter filter; - - /** - * 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] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM - * instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PacketMirroringMirroredResourceInfo mirroredResources; - - /** - * Name of the resource; provided by the client 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; - - /** - * Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored - * VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given - * network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PacketMirroringNetworkInfo network; - - /** - * The priority of applying this configuration. Priority is used to break ties in cases where - * there is more than one matching rule. In the case of two rules that apply for a given Instance, - * the one with the lowest-numbered priority value wins. - * - * Default value is 1000. Valid range is 0 through 65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long priority; - - /** - * [Output Only] URI of the region where the packetMirroring resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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; - - /** - * The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector - * for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. - * @return value or {@code null} for none - */ - public PacketMirroringForwardingRuleInfo getCollectorIlb() { - return collectorIlb; - } - - /** - * The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector - * for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. - * @param collectorIlb collectorIlb or {@code null} for none - */ - public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collectorIlb) { - this.collectorIlb = collectorIlb; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public PacketMirroring setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet - * mirroring policy will not be enforced on the network. - * - * The default is TRUE. - * @return value or {@code null} for none - */ - public java.lang.String getEnable() { - return enable; - } - - /** - * Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet - * mirroring policy will not be enforced on the network. - * - * The default is TRUE. - * @param enable enable or {@code null} for none - */ - public PacketMirroring setEnable(java.lang.String enable) { - this.enable = enable; - return this; - } - - /** - * Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. - * @return value or {@code null} for none - */ - public PacketMirroringFilter getFilter() { - return filter; - } - - /** - * Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. - * @param filter filter or {@code null} for none - */ - public PacketMirroring setFilter(PacketMirroringFilter filter) { - this.filter = filter; - 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 PacketMirroring setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. - * @param kind kind or {@code null} for none - */ - public PacketMirroring setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM - * instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. - * @return value or {@code null} for none - */ - public PacketMirroringMirroredResourceInfo getMirroredResources() { - return mirroredResources; - } - - /** - * PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM - * instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. - * @param mirroredResources mirroredResources or {@code null} for none - */ - public PacketMirroring setMirroredResources(PacketMirroringMirroredResourceInfo mirroredResources) { - this.mirroredResources = mirroredResources; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 PacketMirroring setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored - * VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given - * network. - * @return value or {@code null} for none - */ - public PacketMirroringNetworkInfo getNetwork() { - return network; - } - - /** - * Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored - * VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given - * network. - * @param network network or {@code null} for none - */ - public PacketMirroring setNetwork(PacketMirroringNetworkInfo network) { - this.network = network; - return this; - } - - /** - * The priority of applying this configuration. Priority is used to break ties in cases where - * there is more than one matching rule. In the case of two rules that apply for a given Instance, - * the one with the lowest-numbered priority value wins. - * - * Default value is 1000. Valid range is 0 through 65535. - * @return value or {@code null} for none - */ - public java.lang.Long getPriority() { - return priority; - } - - /** - * The priority of applying this configuration. Priority is used to break ties in cases where - * there is more than one matching rule. In the case of two rules that apply for a given Instance, - * the one with the lowest-numbered priority value wins. - * - * Default value is 1000. Valid range is 0 through 65535. - * @param priority priority or {@code null} for none - */ - public PacketMirroring setPriority(java.lang.Long priority) { - this.priority = priority; - return this; - } - - /** - * [Output Only] URI of the region where the packetMirroring resides. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] URI of the region where the packetMirroring resides. - * @param region region or {@code null} for none - */ - public PacketMirroring setRegion(java.lang.String region) { - this.region = region; - 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 PacketMirroring setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public PacketMirroring set(String fieldName, Object value) { - return (PacketMirroring) super.set(fieldName, value); - } - - @Override - public PacketMirroring clone() { - return (PacketMirroring) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringAggregatedList.java deleted file mode 100644 index 981aaf5a19d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of packetMirrorings. - * - *

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 PacketMirroringAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 PacketMirroring resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 PacketMirroringAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of PacketMirroring resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of PacketMirroring resources. - * @param items items or {@code null} for none - */ - public PacketMirroringAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public PacketMirroringAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public PacketMirroringAggregatedList 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 PacketMirroringAggregatedList 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 PacketMirroringAggregatedList 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 PacketMirroringAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PacketMirroringAggregatedList set(String fieldName, Object value) { - return (PacketMirroringAggregatedList) super.set(fieldName, value); - } - - @Override - public PacketMirroringAggregatedList clone() { - return (PacketMirroringAggregatedList) 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 PacketMirroringAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringFilter.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringFilter.java deleted file mode 100644 index 33884620e46..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringFilter.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringFilter. - * - *

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 PacketMirroringFilter extends com.google.api.client.json.GenericJson { - - /** - * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic - * that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is - * specified, all IPv4 traffic is mirrored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPProtocols") - private java.util.List iPProtocols; - - /** - * One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or - * destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that - * matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is - * specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use - * "0.0.0.0/0,::/0". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List cidrRanges; - - /** - * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String direction; - - /** - * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic - * that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is - * specified, all IPv4 traffic is mirrored. - * @return value or {@code null} for none - */ - public java.util.List getIPProtocols() { - return iPProtocols; - } - - /** - * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic - * that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is - * specified, all IPv4 traffic is mirrored. - * @param iPProtocols iPProtocols or {@code null} for none - */ - public PacketMirroringFilter setIPProtocols(java.util.List iPProtocols) { - this.iPProtocols = iPProtocols; - return this; - } - - /** - * One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or - * destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that - * matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is - * specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use - * "0.0.0.0/0,::/0". - * @return value or {@code null} for none - */ - public java.util.List getCidrRanges() { - return cidrRanges; - } - - /** - * One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or - * destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that - * matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is - * specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use - * "0.0.0.0/0,::/0". - * @param cidrRanges cidrRanges or {@code null} for none - */ - public PacketMirroringFilter setCidrRanges(java.util.List cidrRanges) { - this.cidrRanges = cidrRanges; - return this; - } - - /** - * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. - * @return value or {@code null} for none - */ - public java.lang.String getDirection() { - return direction; - } - - /** - * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. - * @param direction direction or {@code null} for none - */ - public PacketMirroringFilter setDirection(java.lang.String direction) { - this.direction = direction; - return this; - } - - @Override - public PacketMirroringFilter set(String fieldName, Object value) { - return (PacketMirroringFilter) super.set(fieldName, value); - } - - @Override - public PacketMirroringFilter clone() { - return (PacketMirroringFilter) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringForwardingRuleInfo.java deleted file mode 100644 index 7ea3bbe1817..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringForwardingRuleInfo.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringForwardingRuleInfo. - * - *

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 PacketMirroringForwardingRuleInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String canonicalUrl; - - /** - * Resource URL to the forwarding rule representing the ILB configured as destination of the - * mirrored traffic. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String url; - - /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getCanonicalUrl() { - return canonicalUrl; - } - - /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. - * @param canonicalUrl canonicalUrl or {@code null} for none - */ - public PacketMirroringForwardingRuleInfo setCanonicalUrl(java.lang.String canonicalUrl) { - this.canonicalUrl = canonicalUrl; - return this; - } - - /** - * Resource URL to the forwarding rule representing the ILB configured as destination of the - * mirrored traffic. - * @return value or {@code null} for none - */ - public java.lang.String getUrl() { - return url; - } - - /** - * Resource URL to the forwarding rule representing the ILB configured as destination of the - * mirrored traffic. - * @param url url or {@code null} for none - */ - public PacketMirroringForwardingRuleInfo setUrl(java.lang.String url) { - this.url = url; - return this; - } - - @Override - public PacketMirroringForwardingRuleInfo set(String fieldName, Object value) { - return (PacketMirroringForwardingRuleInfo) super.set(fieldName, value); - } - - @Override - public PacketMirroringForwardingRuleInfo clone() { - return (PacketMirroringForwardingRuleInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringList.java deleted file mode 100644 index 948868e20bf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of PacketMirroring resources. - * - *

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 PacketMirroringList extends com.google.api.client.json.GenericJson { - - /** - * [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 PacketMirroring 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 PacketMirroring 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(PacketMirroring.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 PacketMirroringList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of PacketMirroring resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of PacketMirroring resources. - * @param items items or {@code null} for none - */ - public PacketMirroringList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. - * @param kind kind or {@code null} for none - */ - public PacketMirroringList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public PacketMirroringList 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 PacketMirroringList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 PacketMirroringList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PacketMirroringList set(String fieldName, Object value) { - return (PacketMirroringList) super.set(fieldName, value); - } - - @Override - public PacketMirroringList clone() { - return (PacketMirroringList) 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 PacketMirroringListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfo.java deleted file mode 100644 index 8e09dff2d50..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfo.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringMirroredResourceInfo. - * - *

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 PacketMirroringMirroredResourceInfo extends com.google.api.client.json.GenericJson { - - /** - * A set of virtual machine instances that are being mirrored. They must live in zones contained - * in the same region as this packetMirroring. - * - * Note that this config will apply only to those network interfaces of the Instances that belong - * to the network specified in this packetMirroring. - * - * You may specify a maximum of 50 Instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must - * live in the same region as this packetMirroring. - * - * You may specify a maximum of 5 subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworks; - - /** - * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags - * will be mirrored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tags; - - /** - * A set of virtual machine instances that are being mirrored. They must live in zones contained - * in the same region as this packetMirroring. - * - * Note that this config will apply only to those network interfaces of the Instances that belong - * to the network specified in this packetMirroring. - * - * You may specify a maximum of 50 Instances. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * A set of virtual machine instances that are being mirrored. They must live in zones contained - * in the same region as this packetMirroring. - * - * Note that this config will apply only to those network interfaces of the Instances that belong - * to the network specified in this packetMirroring. - * - * You may specify a maximum of 50 Instances. - * @param instances instances or {@code null} for none - */ - public PacketMirroringMirroredResourceInfo setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must - * live in the same region as this packetMirroring. - * - * You may specify a maximum of 5 subnetworks. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworks() { - return subnetworks; - } - - /** - * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must - * live in the same region as this packetMirroring. - * - * You may specify a maximum of 5 subnetworks. - * @param subnetworks subnetworks or {@code null} for none - */ - public PacketMirroringMirroredResourceInfo setSubnetworks(java.util.List subnetworks) { - this.subnetworks = subnetworks; - return this; - } - - /** - * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags - * will be mirrored. - * @return value or {@code null} for none - */ - public java.util.List getTags() { - return tags; - } - - /** - * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags - * will be mirrored. - * @param tags tags or {@code null} for none - */ - public PacketMirroringMirroredResourceInfo setTags(java.util.List tags) { - this.tags = tags; - return this; - } - - @Override - public PacketMirroringMirroredResourceInfo set(String fieldName, Object value) { - return (PacketMirroringMirroredResourceInfo) super.set(fieldName, value); - } - - @Override - public PacketMirroringMirroredResourceInfo clone() { - return (PacketMirroringMirroredResourceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoInstanceInfo.java deleted file mode 100644 index 1832e2096ca..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringMirroredResourceInfoInstanceInfo. - * - *

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 PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String canonicalUrl; - - /** - * Resource URL to the virtual machine instance which is being mirrored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String url; - - /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getCanonicalUrl() { - return canonicalUrl; - } - - /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. - * @param canonicalUrl canonicalUrl or {@code null} for none - */ - public PacketMirroringMirroredResourceInfoInstanceInfo setCanonicalUrl(java.lang.String canonicalUrl) { - this.canonicalUrl = canonicalUrl; - return this; - } - - /** - * Resource URL to the virtual machine instance which is being mirrored. - * @return value or {@code null} for none - */ - public java.lang.String getUrl() { - return url; - } - - /** - * Resource URL to the virtual machine instance which is being mirrored. - * @param url url or {@code null} for none - */ - public PacketMirroringMirroredResourceInfoInstanceInfo setUrl(java.lang.String url) { - this.url = url; - return this; - } - - @Override - public PacketMirroringMirroredResourceInfoInstanceInfo set(String fieldName, Object value) { - return (PacketMirroringMirroredResourceInfoInstanceInfo) super.set(fieldName, value); - } - - @Override - public PacketMirroringMirroredResourceInfoInstanceInfo clone() { - return (PacketMirroringMirroredResourceInfoInstanceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoSubnetInfo.java deleted file mode 100644 index edd2d243480..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringMirroredResourceInfoSubnetInfo. - * - *

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 PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String canonicalUrl; - - /** - * Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String url; - - /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getCanonicalUrl() { - return canonicalUrl; - } - - /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. - * @param canonicalUrl canonicalUrl or {@code null} for none - */ - public PacketMirroringMirroredResourceInfoSubnetInfo setCanonicalUrl(java.lang.String canonicalUrl) { - this.canonicalUrl = canonicalUrl; - return this; - } - - /** - * Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. - * @return value or {@code null} for none - */ - public java.lang.String getUrl() { - return url; - } - - /** - * Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored. - * @param url url or {@code null} for none - */ - public PacketMirroringMirroredResourceInfoSubnetInfo setUrl(java.lang.String url) { - this.url = url; - return this; - } - - @Override - public PacketMirroringMirroredResourceInfoSubnetInfo set(String fieldName, Object value) { - return (PacketMirroringMirroredResourceInfoSubnetInfo) super.set(fieldName, value); - } - - @Override - public PacketMirroringMirroredResourceInfoSubnetInfo clone() { - return (PacketMirroringMirroredResourceInfoSubnetInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringNetworkInfo.java deleted file mode 100644 index 4e5dd27830f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringNetworkInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringNetworkInfo. - * - *

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 PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String canonicalUrl; - - /** - * URL of the network resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String url; - - /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getCanonicalUrl() { - return canonicalUrl; - } - - /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. - * @param canonicalUrl canonicalUrl or {@code null} for none - */ - public PacketMirroringNetworkInfo setCanonicalUrl(java.lang.String canonicalUrl) { - this.canonicalUrl = canonicalUrl; - return this; - } - - /** - * URL of the network resource. - * @return value or {@code null} for none - */ - public java.lang.String getUrl() { - return url; - } - - /** - * URL of the network resource. - * @param url url or {@code null} for none - */ - public PacketMirroringNetworkInfo setUrl(java.lang.String url) { - this.url = url; - return this; - } - - @Override - public PacketMirroringNetworkInfo set(String fieldName, Object value) { - return (PacketMirroringNetworkInfo) super.set(fieldName, value); - } - - @Override - public PacketMirroringNetworkInfo clone() { - return (PacketMirroringNetworkInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringsScopedList.java deleted file mode 100644 index 1eb07b78058..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PacketMirroringsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PacketMirroringsScopedList. - * - *

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 PacketMirroringsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of packetMirrorings contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List packetMirrorings; - - static { - // hack to force ProGuard to consider PacketMirroring 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(PacketMirroring.class); - } - - /** - * Informational warning which replaces the list of packetMirrorings when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of packetMirrorings contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getPacketMirrorings() { - return packetMirrorings; - } - - /** - * A list of packetMirrorings contained in this scope. - * @param packetMirrorings packetMirrorings or {@code null} for none - */ - public PacketMirroringsScopedList setPacketMirrorings(java.util.List packetMirrorings) { - this.packetMirrorings = packetMirrorings; - return this; - } - - /** - * Informational warning which replaces the list of packetMirrorings when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of packetMirrorings when the list is empty. - * @param warning warning or {@code null} for none - */ - public PacketMirroringsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PacketMirroringsScopedList set(String fieldName, Object value) { - return (PacketMirroringsScopedList) super.set(fieldName, value); - } - - @Override - public PacketMirroringsScopedList clone() { - return (PacketMirroringsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of packetMirrorings when the list is empty. - */ - 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 PacketMirroringsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/PathMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathMatcher.java deleted file mode 100644 index e797ee581a7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathMatcher.java +++ /dev/null @@ -1,502 +0,0 @@ -/* - * 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.preview.model; - -/** - * A matcher for the path portion of the URL. The BackendService from the longest-matched rule will - * serve the URL. If no rule was matched, the default service is used. - * - *

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 PathMatcher extends com.google.api.client.json.GenericJson { - - /** - * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * This policy takes effect at the PathMatcher level and applies only when no policy has been - * defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. - * If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a - * policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors - * - A RouteRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * When used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take - * precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is - * applied. While attempting a retry, if load balancer is successful in reaching the service, the - * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - * the client. - * - * defaultCustomErrorResponsePolicy is supported only for global external Application Load - * Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomErrorResponsePolicy defaultCustomErrorResponsePolicy; - - /** - * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load - * balancer performs advanced routing actions, such as URL rewrites and header transformations, - * before forwarding the request to the selected backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * path matcher'sdefaultRouteAction. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRouteAction defaultRouteAction; - - /** - * The full or partial URL to the BackendService resource. This URL is used if none of the - * pathRules orrouteRules defined by this PathMatcher are matched. For example, the following are - * all valid URLs to a BackendService resource: - - * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService - * - compute/v1/projects/project/global/backendServices/backendService - - * global/backendServices/backendService - * - * If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take - * effect before sending the request to the backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Authorization requires one or more of the following Google IAM permissions on the specified - * resource default_service: - compute.backendBuckets.use - - * compute.backendServices.use - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultService; - - /** - * When none of the specified pathRules orrouteRules match, the request is redirected to a URL - * specified by defaultUrlRedirect. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRedirectAction defaultUrlRedirect; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backend service. - * - * HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before - * theHeaderAction in the UrlMap - * - * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpHeaderAction headerAction; - - /** - * The name to which this PathMatcher is referred by theHostRule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. A path rule can only include a wildcard character (*) after a - * forward slash character ("/"). - * - * The order by which path rules are specified does not matter. Matches are always done on the - * longest-path-first basis. - * - * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in - * which those paths appear in this list. - * - * Within a given pathMatcher, only one ofpathRules or routeRules must be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List pathRules; - - /** - * The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching - * and routing actions are desired. routeRules are evaluated in order of priority, from the lowest - * to highest number. - * - * Within a given pathMatcher, you can set only one ofpathRules or routeRules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List routeRules; - - static { - // hack to force ProGuard to consider HttpRouteRule 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(HttpRouteRule.class); - } - - /** - * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * This policy takes effect at the PathMatcher level and applies only when no policy has been - * defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. - * If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a - * policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors - * - A RouteRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * When used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take - * precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is - * applied. While attempting a retry, if load balancer is successful in reaching the service, the - * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - * the client. - * - * defaultCustomErrorResponsePolicy is supported only for global external Application Load - * Balancers. - * @return value or {@code null} for none - */ - public CustomErrorResponsePolicy getDefaultCustomErrorResponsePolicy() { - return defaultCustomErrorResponsePolicy; - } - - /** - * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * This policy takes effect at the PathMatcher level and applies only when no policy has been - * defined for the error code at lower levels likeRouteRule and PathRule within thisPathMatcher. - * If an error code does not have a policy defined in defaultCustomErrorResponsePolicy, then a - * policy defined for the error code in UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy is configured with policies for 5xx and 4xx errors - * - A RouteRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * RouteRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * When used in conjunction withpathMatcher.defaultRouteAction.retryPolicy, retries take - * precedence. Only once all retries are exhausted, thedefaultCustomErrorResponsePolicy is - * applied. While attempting a retry, if load balancer is successful in reaching the service, the - * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - * the client. - * - * defaultCustomErrorResponsePolicy is supported only for global external Application Load - * Balancers. - * @param defaultCustomErrorResponsePolicy defaultCustomErrorResponsePolicy or {@code null} for none - */ - public PathMatcher setDefaultCustomErrorResponsePolicy(CustomErrorResponsePolicy defaultCustomErrorResponsePolicy) { - this.defaultCustomErrorResponsePolicy = defaultCustomErrorResponsePolicy; - return this; - } - - /** - * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load - * balancer performs advanced routing actions, such as URL rewrites and header transformations, - * before forwarding the request to the selected backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * path matcher'sdefaultRouteAction. - * @return value or {@code null} for none - */ - public HttpRouteAction getDefaultRouteAction() { - return defaultRouteAction; - } - - /** - * defaultRouteAction takes effect when none of the pathRules or routeRules match. The load - * balancer performs advanced routing actions, such as URL rewrites and header transformations, - * before forwarding the request to the selected backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * path matcher'sdefaultRouteAction. - * @param defaultRouteAction defaultRouteAction or {@code null} for none - */ - public PathMatcher setDefaultRouteAction(HttpRouteAction defaultRouteAction) { - this.defaultRouteAction = defaultRouteAction; - return this; - } - - /** - * The full or partial URL to the BackendService resource. This URL is used if none of the - * pathRules orrouteRules defined by this PathMatcher are matched. For example, the following are - * all valid URLs to a BackendService resource: - - * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService - * - compute/v1/projects/project/global/backendServices/backendService - - * global/backendServices/backendService - * - * If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take - * effect before sending the request to the backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Authorization requires one or more of the following Google IAM permissions on the specified - * resource default_service: - compute.backendBuckets.use - - * compute.backendServices.use - * @return value or {@code null} for none - */ - public java.lang.String getDefaultService() { - return defaultService; - } - - /** - * The full or partial URL to the BackendService resource. This URL is used if none of the - * pathRules orrouteRules defined by this PathMatcher are matched. For example, the following are - * all valid URLs to a BackendService resource: - - * https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService - * - compute/v1/projects/project/global/backendServices/backendService - - * global/backendServices/backendService - * - * If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take - * effect before sending the request to the backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Authorization requires one or more of the following Google IAM permissions on the specified - * resource default_service: - compute.backendBuckets.use - - * compute.backendServices.use - * @param defaultService defaultService or {@code null} for none - */ - public PathMatcher setDefaultService(java.lang.String defaultService) { - this.defaultService = defaultService; - return this; - } - - /** - * When none of the specified pathRules orrouteRules match, the request is redirected to a URL - * specified by defaultUrlRedirect. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public HttpRedirectAction getDefaultUrlRedirect() { - return defaultUrlRedirect; - } - - /** - * When none of the specified pathRules orrouteRules match, the request is redirected to a URL - * specified by defaultUrlRedirect. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param defaultUrlRedirect defaultUrlRedirect or {@code null} for none - */ - public PathMatcher setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect) { - this.defaultUrlRedirect = defaultUrlRedirect; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public PathMatcher setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backend service. - * - * HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before - * theHeaderAction in the UrlMap - * - * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public HttpHeaderAction getHeaderAction() { - return headerAction; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backend service. - * - * HeaderAction specified here are applied after the matchingHttpRouteRule HeaderAction and before - * theHeaderAction in the UrlMap - * - * HeaderAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param headerAction headerAction or {@code null} for none - */ - public PathMatcher setHeaderAction(HttpHeaderAction headerAction) { - this.headerAction = headerAction; - return this; - } - - /** - * The name to which this PathMatcher is referred by theHostRule. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name to which this PathMatcher is referred by theHostRule. - * @param name name or {@code null} for none - */ - public PathMatcher setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. A path rule can only include a wildcard character (*) after a - * forward slash character ("/"). - * - * The order by which path rules are specified does not matter. Matches are always done on the - * longest-path-first basis. - * - * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in - * which those paths appear in this list. - * - * Within a given pathMatcher, only one ofpathRules or routeRules must be set. - * @return value or {@code null} for none - */ - public java.util.List getPathRules() { - return pathRules; - } - - /** - * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. A path rule can only include a wildcard character (*) after a - * forward slash character ("/"). - * - * The order by which path rules are specified does not matter. Matches are always done on the - * longest-path-first basis. - * - * For example: a pathRule with a path /a/b/c will match before /a/b irrespective of the order in - * which those paths appear in this list. - * - * Within a given pathMatcher, only one ofpathRules or routeRules must be set. - * @param pathRules pathRules or {@code null} for none - */ - public PathMatcher setPathRules(java.util.List pathRules) { - this.pathRules = pathRules; - return this; - } - - /** - * The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching - * and routing actions are desired. routeRules are evaluated in order of priority, from the lowest - * to highest number. - * - * Within a given pathMatcher, you can set only one ofpathRules or routeRules. - * @return value or {@code null} for none - */ - public java.util.List getRouteRules() { - return routeRules; - } - - /** - * The list of HTTP route rules. Use this list instead ofpathRules when advanced route matching - * and routing actions are desired. routeRules are evaluated in order of priority, from the lowest - * to highest number. - * - * Within a given pathMatcher, you can set only one ofpathRules or routeRules. - * @param routeRules routeRules or {@code null} for none - */ - public PathMatcher setRouteRules(java.util.List routeRules) { - this.routeRules = routeRules; - return this; - } - - @Override - public PathMatcher set(String fieldName, Object value) { - return (PathMatcher) super.set(fieldName, value); - } - - @Override - public PathMatcher clone() { - return (PathMatcher) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathRule.java deleted file mode 100644 index a2d8232ddc1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PathRule.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * 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.preview.model; - -/** - * A path-matching rule for a URL. If matched, will use the specifiedBackendService to handle the - * traffic arriving at this URL. - * - *

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 PathRule extends com.google.api.client.json.GenericJson { - - /** - * customErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * If a policy for an error code is not configured for the PathRule, a policy for the error code - * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified - * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in - * UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx - * errors - A PathRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * customErrorResponsePolicy is supported only for global external Application Load Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomErrorResponsePolicy customErrorResponsePolicy; - - /** - * The list of path patterns to match. Each must start with / and the only place a * is allowed is - * at the end following a /. The string fed to the path matcher does not include any text after - * the first ? or #, and those chars are not allowed here. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List paths; - - /** - * In response to a matching path, the load balancer performs advanced routing actions, such as - * URL rewrites and header transformations, before forwarding the request to the selected backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * path rule'srouteAction. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRouteAction routeAction; - - /** - * The full or partial URL of the backend service resource to which traffic is directed if this - * rule is matched. If routeAction is also specified, advanced routing actions, such as URL - * rewrites, take effect before sending the request to the backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRedirectAction urlRedirect; - - /** - * customErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * If a policy for an error code is not configured for the PathRule, a policy for the error code - * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified - * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in - * UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx - * errors - A PathRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * customErrorResponsePolicy is supported only for global external Application Load Balancers. - * @return value or {@code null} for none - */ - public CustomErrorResponsePolicy getCustomErrorResponsePolicy() { - return customErrorResponsePolicy; - } - - /** - * customErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * If a policy for an error code is not configured for the PathRule, a policy for the error code - * configured inpathMatcher.defaultCustomErrorResponsePolicy is applied. If one is not specified - * inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in - * UrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * For example, consider a UrlMap with the following configuration: - - * UrlMap.defaultCustomErrorResponsePolicy are configured with policies for 5xx and 4xx - * errors - A PathRule for /coming_soon/ is configured for the error code 404. - * - * If the request is for www.myotherdomain.com and a404 is encountered, the policy - * underUrlMap.defaultCustomErrorResponsePolicy takes effect. If a404 response is encountered for - * the requestwww.example.com/current_events/, the pathMatcher's policy takes effect. If however, - * the request forwww.example.com/coming_soon/ encounters a 404, the policy in - * PathRule.customErrorResponsePolicy takes effect. If any of the requests in this example - * encounter a 500 error code, the policy atUrlMap.defaultCustomErrorResponsePolicy takes effect. - * - * customErrorResponsePolicy is supported only for global external Application Load Balancers. - * @param customErrorResponsePolicy customErrorResponsePolicy or {@code null} for none - */ - public PathRule setCustomErrorResponsePolicy(CustomErrorResponsePolicy customErrorResponsePolicy) { - this.customErrorResponsePolicy = customErrorResponsePolicy; - return this; - } - - /** - * The list of path patterns to match. Each must start with / and the only place a * is allowed is - * at the end following a /. The string fed to the path matcher does not include any text after - * the first ? or #, and those chars are not allowed here. - * @return value or {@code null} for none - */ - public java.util.List getPaths() { - return paths; - } - - /** - * The list of path patterns to match. Each must start with / and the only place a * is allowed is - * at the end following a /. The string fed to the path matcher does not include any text after - * the first ? or #, and those chars are not allowed here. - * @param paths paths or {@code null} for none - */ - public PathRule setPaths(java.util.List paths) { - this.paths = paths; - return this; - } - - /** - * In response to a matching path, the load balancer performs advanced routing actions, such as - * URL rewrites and header transformations, before forwarding the request to the selected backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * path rule'srouteAction. - * @return value or {@code null} for none - */ - public HttpRouteAction getRouteAction() { - return routeAction; - } - - /** - * In response to a matching path, the load balancer performs advanced routing actions, such as - * URL rewrites and header transformations, before forwarding the request to the selected backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within a - * path rule'srouteAction. - * @param routeAction routeAction or {@code null} for none - */ - public PathRule setRouteAction(HttpRouteAction routeAction) { - this.routeAction = routeAction; - return this; - } - - /** - * The full or partial URL of the backend service resource to which traffic is directed if this - * rule is matched. If routeAction is also specified, advanced routing actions, such as URL - * rewrites, take effect before sending the request to the backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * The full or partial URL of the backend service resource to which traffic is directed if this - * rule is matched. If routeAction is also specified, advanced routing actions, such as URL - * rewrites, take effect before sending the request to the backend. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * @param service service or {@code null} for none - */ - public PathRule setService(java.lang.String service) { - this.service = service; - return this; - } - - /** - * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public HttpRedirectAction getUrlRedirect() { - return urlRedirect; - } - - /** - * When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. - * - * Only one of urlRedirect, service orrouteAction.weightedBackendService can be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param urlRedirect urlRedirect or {@code null} for none - */ - public PathRule setUrlRedirect(HttpRedirectAction urlRedirect) { - this.urlRedirect = urlRedirect; - return this; - } - - @Override - public PathRule set(String fieldName, Object value) { - return (PathRule) super.set(fieldName, value); - } - - @Override - public PathRule clone() { - return (PathRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PerInstanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PerInstanceConfig.java deleted file mode 100644 index e017564fe87..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PerInstanceConfig.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PerInstanceConfig. - * - *

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 PerInstanceConfig extends com.google.api.client.json.GenericJson { - - /** - * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is - * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in - * order to update an existing per-instance configuration or the field needs to be unset. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * The name of a per-instance configuration and its corresponding instance. Serves as a merge key - * during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the - * same name exists then it will be updated, otherwise a new one will be created for the VM - * instance with the same name. An attempt to create a per-instance configuration for a VM - * instance that either doesn't exist or is not part of the group will result in an error. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The intended preserved state for the given instance. Does not contain preserved state generated - * from a stateful policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreservedState preservedState; - - /** - * The status of applying this per-instance configuration on the corresponding managed instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is - * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in - * order to update an existing per-instance configuration or the field needs to be unset. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is - * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in - * order to update an existing per-instance configuration or the field needs to be unset. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is - * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in - * order to update an existing per-instance configuration or the field needs to be unset. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public PerInstanceConfig setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this per-instance config. This field can be used in optimistic locking. It is - * ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in - * order to update an existing per-instance configuration or the field needs to be unset. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public PerInstanceConfig encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * The name of a per-instance configuration and its corresponding instance. Serves as a merge key - * during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the - * same name exists then it will be updated, otherwise a new one will be created for the VM - * instance with the same name. An attempt to create a per-instance configuration for a VM - * instance that either doesn't exist or is not part of the group will result in an error. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of a per-instance configuration and its corresponding instance. Serves as a merge key - * during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the - * same name exists then it will be updated, otherwise a new one will be created for the VM - * instance with the same name. An attempt to create a per-instance configuration for a VM - * instance that either doesn't exist or is not part of the group will result in an error. - * @param name name or {@code null} for none - */ - public PerInstanceConfig setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The intended preserved state for the given instance. Does not contain preserved state generated - * from a stateful policy. - * @return value or {@code null} for none - */ - public PreservedState getPreservedState() { - return preservedState; - } - - /** - * The intended preserved state for the given instance. Does not contain preserved state generated - * from a stateful policy. - * @param preservedState preservedState or {@code null} for none - */ - public PerInstanceConfig setPreservedState(PreservedState preservedState) { - this.preservedState = preservedState; - return this; - } - - /** - * The status of applying this per-instance configuration on the corresponding managed instance. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * The status of applying this per-instance configuration on the corresponding managed instance. - * @param status status or {@code null} for none - */ - public PerInstanceConfig setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public PerInstanceConfig set(String fieldName, Object value) { - return (PerInstanceConfig) super.set(fieldName, value); - } - - @Override - public PerInstanceConfig clone() { - return (PerInstanceConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PeriodicPartialMaintenanceSchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PeriodicPartialMaintenanceSchedule.java deleted file mode 100644 index 14171131795..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PeriodicPartialMaintenanceSchedule.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * 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.preview.model; - -/** - * The periodic partial maintenance schedule includes 52 weeks worth of maintenance windows. - * LINT.IfChange(PeriodicPartialMaintenanceSchedule) - * - *

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 PeriodicPartialMaintenanceSchedule extends com.google.api.client.json.GenericJson { - - /** - * The maintenance type in which the zone is during the given window. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subType; - - /** - * The target resource that the maintenance window is for. For example, "projects/my- - * project/zones/us-central1-a". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetResource; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The end civil timestamp of the window (not inclusive). This contains a time zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DateTime windowEndTime; - - /** - * The start civil timestamp of the window. This contains a time zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DateTime windowStartTime; - - /** - * The maintenance type in which the zone is during the given window. - * @return value or {@code null} for none - */ - public java.lang.String getSubType() { - return subType; - } - - /** - * The maintenance type in which the zone is during the given window. - * @param subType subType or {@code null} for none - */ - public PeriodicPartialMaintenanceSchedule setSubType(java.lang.String subType) { - this.subType = subType; - return this; - } - - /** - * The target resource that the maintenance window is for. For example, "projects/my- - * project/zones/us-central1-a". - * @return value or {@code null} for none - */ - public java.lang.String getTargetResource() { - return targetResource; - } - - /** - * The target resource that the maintenance window is for. For example, "projects/my- - * project/zones/us-central1-a". - * @param targetResource targetResource or {@code null} for none - */ - public PeriodicPartialMaintenanceSchedule setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * @param type type or {@code null} for none - */ - public PeriodicPartialMaintenanceSchedule setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * The end civil timestamp of the window (not inclusive). This contains a time zone. - * @return value or {@code null} for none - */ - public DateTime getWindowEndTime() { - return windowEndTime; - } - - /** - * The end civil timestamp of the window (not inclusive). This contains a time zone. - * @param windowEndTime windowEndTime or {@code null} for none - */ - public PeriodicPartialMaintenanceSchedule setWindowEndTime(DateTime windowEndTime) { - this.windowEndTime = windowEndTime; - return this; - } - - /** - * The start civil timestamp of the window. This contains a time zone. - * @return value or {@code null} for none - */ - public DateTime getWindowStartTime() { - return windowStartTime; - } - - /** - * The start civil timestamp of the window. This contains a time zone. - * @param windowStartTime windowStartTime or {@code null} for none - */ - public PeriodicPartialMaintenanceSchedule setWindowStartTime(DateTime windowStartTime) { - this.windowStartTime = windowStartTime; - return this; - } - - @Override - public PeriodicPartialMaintenanceSchedule set(String fieldName, Object value) { - return (PeriodicPartialMaintenanceSchedule) super.set(fieldName, value); - } - - @Override - public PeriodicPartialMaintenanceSchedule clone() { - return (PeriodicPartialMaintenanceSchedule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Policy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Policy.java deleted file mode 100644 index 670d83e8656..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Policy.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * 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.preview.model; - -/** - * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud - * resources. - * - * A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, - * to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains - * (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined - * role or a user-created custom role. - * - * For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a - * logical expression that allows access to a resource only if the expression evaluates to `true`. A - * condition can add constraints based on attributes of the request, the resource, or both. To learn - * which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * **JSON example:** - * - * ``` { "bindings": [ { "role": - * "roles/resourcemanager.organizationAdmin", "members": [ - * "user:mike@example.com", "group:admins@example.com", "domain:google.com", - * "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { - * "role": "roles/resourcemanager.organizationViewer", "members": [ - * "user:eve@example.com" ], "condition": { "title": "expirable - * access", "description": "Does not grant access after Sep 2020", - * "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } - * ], "etag": "BwWWja0YfJA=", "version": 3 } ``` - * - * **YAML example:** - * - * ``` bindings: - members: - user:mike@example.com - group:admins@example.com - * - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: - * roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: - * roles/resourcemanager.organizationViewer condition: title: expirable access - * description: Does not grant access after Sep 2020 expression: request.time < - * timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` - * - * For a description of IAM and its features, see the [IAM - * documentation](https://cloud.google.com/iam/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 Policy extends com.google.api.client.json.GenericJson { - - /** - * Specifies cloud audit logging configuration for this policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List auditConfigs; - - static { - // hack to force ProGuard to consider AuditConfig 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(AuditConfig.class); - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a - * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` - * must contain at least one principal. - * - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals - * can be Google groups. Each occurrence of a principal counts towards these limits. For example, - * if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bindings; - - static { - // hack to force ProGuard to consider Binding 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(Binding.class); - } - - /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates - * of a policy from overwriting each other. It is strongly suggested that systems make use of the - * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected - * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied - * to the same version of the policy. - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * Specifies the format of the policy. - * - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. - * - * Any operation that affects conditional role bindings must specify version `3`. This requirement - * applies to the following operations: - * - * * Getting a policy that includes a conditional role binding * Adding a conditional role binding - * to a policy * Changing a conditional role binding in a policy * Removing any role binding, with - * or without a condition, from a policy that includes conditions - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * - * If a policy does not include any conditions, operations on that policy may specify any valid - * version or leave the field unset. - * - * To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer version; - - /** - * Specifies cloud audit logging configuration for this policy. - * @return value or {@code null} for none - */ - public java.util.List getAuditConfigs() { - return auditConfigs; - } - - /** - * Specifies cloud audit logging configuration for this policy. - * @param auditConfigs auditConfigs or {@code null} for none - */ - public Policy setAuditConfigs(java.util.List auditConfigs) { - this.auditConfigs = auditConfigs; - return this; - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a - * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` - * must contain at least one principal. - * - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals - * can be Google groups. Each occurrence of a principal counts towards these limits. For example, - * if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. - * @return value or {@code null} for none - */ - public java.util.List getBindings() { - return bindings; - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a - * `condition` that determines how and when the `bindings` are applied. Each of the `bindings` - * must contain at least one principal. - * - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals - * can be Google groups. Each occurrence of a principal counts towards these limits. For example, - * if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. - * @param bindings bindings or {@code null} for none - */ - public Policy setBindings(java.util.List bindings) { - this.bindings = bindings; - return this; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates - * of a policy from overwriting each other. It is strongly suggested that systems make use of the - * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected - * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied - * to the same version of the policy. - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * @see #decodeEtag() - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates - * of a policy from overwriting each other. It is strongly suggested that systems make use of the - * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected - * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied - * to the same version of the policy. - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * @see #getEtag() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeEtag() { - return com.google.api.client.util.Base64.decodeBase64(etag); - } - - /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates - * of a policy from overwriting each other. It is strongly suggested that systems make use of the - * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected - * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied - * to the same version of the policy. - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * @see #encodeEtag() - * @param etag etag or {@code null} for none - */ - public Policy setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates - * of a policy from overwriting each other. It is strongly suggested that systems make use of the - * `etag` in the read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected - * to put that etag in the request to `setIamPolicy` to ensure that their change will be applied - * to the same version of the policy. - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * @see #setEtag() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Policy encodeEtag(byte[] etag) { - this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); - return this; - } - - /** - * Specifies the format of the policy. - * - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. - * - * Any operation that affects conditional role bindings must specify version `3`. This requirement - * applies to the following operations: - * - * * Getting a policy that includes a conditional role binding * Adding a conditional role binding - * to a policy * Changing a conditional role binding in a policy * Removing any role binding, with - * or without a condition, from a policy that includes conditions - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * - * If a policy does not include any conditions, operations on that policy may specify any valid - * version or leave the field unset. - * - * To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @return value or {@code null} for none - */ - public java.lang.Integer getVersion() { - return version; - } - - /** - * Specifies the format of the policy. - * - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. - * - * Any operation that affects conditional role bindings must specify version `3`. This requirement - * applies to the following operations: - * - * * Getting a policy that includes a conditional role binding * Adding a conditional role binding - * to a policy * Changing a conditional role binding in a policy * Removing any role binding, with - * or without a condition, from a policy that includes conditions - * - * **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call - * `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy - * with a version `1` policy, and all of the conditions in the version `3` policy are lost. - * - * If a policy does not include any conditions, operations on that policy may specify any valid - * version or leave the field unset. - * - * To learn which resources support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @param version version or {@code null} for none - */ - public Policy setVersion(java.lang.Integer version) { - this.version = version; - return this; - } - - @Override - public Policy set(String fieldName, Object value) { - return (Policy) super.set(fieldName, value); - } - - @Override - public Policy clone() { - return (Policy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreconfiguredWafSet.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreconfiguredWafSet.java deleted file mode 100644 index 2b5ce3cd910..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreconfiguredWafSet.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PreconfiguredWafSet. - * - *

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 PreconfiguredWafSet extends com.google.api.client.json.GenericJson { - - /** - * List of entities that are currently supported for WAF rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List expressionSets; - - /** - * List of entities that are currently supported for WAF rules. - * @return value or {@code null} for none - */ - public java.util.List getExpressionSets() { - return expressionSets; - } - - /** - * List of entities that are currently supported for WAF rules. - * @param expressionSets expressionSets or {@code null} for none - */ - public PreconfiguredWafSet setExpressionSets(java.util.List expressionSets) { - this.expressionSets = expressionSets; - return this; - } - - @Override - public PreconfiguredWafSet set(String fieldName, Object value) { - return (PreconfiguredWafSet) super.set(fieldName, value); - } - - @Override - public PreconfiguredWafSet clone() { - return (PreconfiguredWafSet) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedState.java deleted file mode 100644 index c0b31b9b526..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedState.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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.preview.model; - -/** - * Preserved state for a given instance. - * - *

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 PreservedState extends com.google.api.client.json.GenericJson { - - /** - * Preserved disks defined for this instance. This map is keyed with the device names of the - * disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map disks; - - /** - * Preserved external IPs defined for this instance. This map is keyed with the name of the - * network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map externalIPs; - - /** - * Preserved internal IPs defined for this instance. This map is keyed with the name of the - * network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map internalIPs; - - /** - * Preserved metadata defined for this instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map metadata; - - /** - * Preserved disks defined for this instance. This map is keyed with the device names of the - * disks. - * @return value or {@code null} for none - */ - public java.util.Map getDisks() { - return disks; - } - - /** - * Preserved disks defined for this instance. This map is keyed with the device names of the - * disks. - * @param disks disks or {@code null} for none - */ - public PreservedState setDisks(java.util.Map disks) { - this.disks = disks; - return this; - } - - /** - * Preserved external IPs defined for this instance. This map is keyed with the name of the - * network interface. - * @return value or {@code null} for none - */ - public java.util.Map getExternalIPs() { - return externalIPs; - } - - /** - * Preserved external IPs defined for this instance. This map is keyed with the name of the - * network interface. - * @param externalIPs externalIPs or {@code null} for none - */ - public PreservedState setExternalIPs(java.util.Map externalIPs) { - this.externalIPs = externalIPs; - return this; - } - - /** - * Preserved internal IPs defined for this instance. This map is keyed with the name of the - * network interface. - * @return value or {@code null} for none - */ - public java.util.Map getInternalIPs() { - return internalIPs; - } - - /** - * Preserved internal IPs defined for this instance. This map is keyed with the name of the - * network interface. - * @param internalIPs internalIPs or {@code null} for none - */ - public PreservedState setInternalIPs(java.util.Map internalIPs) { - this.internalIPs = internalIPs; - return this; - } - - /** - * Preserved metadata defined for this instance. - * @return value or {@code null} for none - */ - public java.util.Map getMetadata() { - return metadata; - } - - /** - * Preserved metadata defined for this instance. - * @param metadata metadata or {@code null} for none - */ - public PreservedState setMetadata(java.util.Map metadata) { - this.metadata = metadata; - return this; - } - - @Override - public PreservedState set(String fieldName, Object value) { - return (PreservedState) super.set(fieldName, value); - } - - @Override - public PreservedState clone() { - return (PreservedState) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedDisk.java deleted file mode 100644 index 245b0a33b91..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedDisk.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PreservedStatePreservedDisk. - * - *

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 PreservedStatePreservedDisk extends com.google.api.client.json.GenericJson { - - /** - * These stateful disks will never be deleted during autohealing, update, instance recreate - * operations. This flag is used to configure if the disk should be deleted after it is no longer - * used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks - * attached in READ_ONLY mode cannot be auto-deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoDelete; - - /** - * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the - * default is to attach the disk in READ_WRITE mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * The URL of the disk resource that is stateful and should be attached to the VM instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * These stateful disks will never be deleted during autohealing, update, instance recreate - * operations. This flag is used to configure if the disk should be deleted after it is no longer - * used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks - * attached in READ_ONLY mode cannot be auto-deleted. - * @return value or {@code null} for none - */ - public java.lang.String getAutoDelete() { - return autoDelete; - } - - /** - * These stateful disks will never be deleted during autohealing, update, instance recreate - * operations. This flag is used to configure if the disk should be deleted after it is no longer - * used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks - * attached in READ_ONLY mode cannot be auto-deleted. - * @param autoDelete autoDelete or {@code null} for none - */ - public PreservedStatePreservedDisk setAutoDelete(java.lang.String autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - /** - * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the - * default is to attach the disk in READ_WRITE mode. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the - * default is to attach the disk in READ_WRITE mode. - * @param mode mode or {@code null} for none - */ - public PreservedStatePreservedDisk setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * The URL of the disk resource that is stateful and should be attached to the VM instance. - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * The URL of the disk resource that is stateful and should be attached to the VM instance. - * @param source source or {@code null} for none - */ - public PreservedStatePreservedDisk setSource(java.lang.String source) { - this.source = source; - return this; - } - - @Override - public PreservedStatePreservedDisk set(String fieldName, Object value) { - return (PreservedStatePreservedDisk) super.set(fieldName, value); - } - - @Override - public PreservedStatePreservedDisk clone() { - return (PreservedStatePreservedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIp.java deleted file mode 100644 index 545c791c33f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIp.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PreservedStatePreservedNetworkIp. - * - *

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 PreservedStatePreservedNetworkIp extends com.google.api.client.json.GenericJson { - - /** - * These stateful IPs will never be released during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the IP reservation should be deleted after it is - * no longer used by the group, e.g. when the given instance or the whole group is deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoDelete; - - /** - * Ip address representation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreservedStatePreservedNetworkIpIpAddress ipAddress; - - /** - * These stateful IPs will never be released during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the IP reservation should be deleted after it is - * no longer used by the group, e.g. when the given instance or the whole group is deleted. - * @return value or {@code null} for none - */ - public java.lang.String getAutoDelete() { - return autoDelete; - } - - /** - * These stateful IPs will never be released during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the IP reservation should be deleted after it is - * no longer used by the group, e.g. when the given instance or the whole group is deleted. - * @param autoDelete autoDelete or {@code null} for none - */ - public PreservedStatePreservedNetworkIp setAutoDelete(java.lang.String autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - /** - * Ip address representation - * @return value or {@code null} for none - */ - public PreservedStatePreservedNetworkIpIpAddress getIpAddress() { - return ipAddress; - } - - /** - * Ip address representation - * @param ipAddress ipAddress or {@code null} for none - */ - public PreservedStatePreservedNetworkIp setIpAddress(PreservedStatePreservedNetworkIpIpAddress ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - @Override - public PreservedStatePreservedNetworkIp set(String fieldName, Object value) { - return (PreservedStatePreservedNetworkIp) super.set(fieldName, value); - } - - @Override - public PreservedStatePreservedNetworkIp clone() { - return (PreservedStatePreservedNetworkIp) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIpIpAddress.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIpIpAddress.java deleted file mode 100644 index a5b7b9effc9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreservedStatePreservedNetworkIpIpAddress.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PreservedStatePreservedNetworkIpIpAddress. - * - *

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 PreservedStatePreservedNetworkIpIpAddress extends com.google.api.client.json.GenericJson { - - /** - * The URL of the reservation for this IP address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** - * An IPv4 internal network address to assign to the instance for this network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String literal; - - /** - * The URL of the reservation for this IP address. - * @return value or {@code null} for none - */ - public java.lang.String getAddress() { - return address; - } - - /** - * The URL of the reservation for this IP address. - * @param address address or {@code null} for none - */ - public PreservedStatePreservedNetworkIpIpAddress setAddress(java.lang.String address) { - this.address = address; - return this; - } - - /** - * An IPv4 internal network address to assign to the instance for this network interface. - * @return value or {@code null} for none - */ - public java.lang.String getLiteral() { - return literal; - } - - /** - * An IPv4 internal network address to assign to the instance for this network interface. - * @param literal literal or {@code null} for none - */ - public PreservedStatePreservedNetworkIpIpAddress setLiteral(java.lang.String literal) { - this.literal = literal; - return this; - } - - @Override - public PreservedStatePreservedNetworkIpIpAddress set(String fieldName, Object value) { - return (PreservedStatePreservedNetworkIpIpAddress) super.set(fieldName, value); - } - - @Override - public PreservedStatePreservedNetworkIpIpAddress clone() { - return (PreservedStatePreservedNetworkIpIpAddress) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeature.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeature.java deleted file mode 100644 index 9ba1b262e99..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeature.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a single Google Compute Engine preview feature. - * - *

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 PreviewFeature extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether the feature is enabled or disabled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String activationStatus; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] Description of the feature. - * 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; - - /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the feature. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Rollout operation of the feature. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreviewFeatureRolloutOperation rolloutOperation; - - /** - * 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] Status of the feature. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreviewFeatureStatus status; - - /** - * Specifies whether the feature is enabled or disabled. - * @return value or {@code null} for none - */ - public java.lang.String getActivationStatus() { - return activationStatus; - } - - /** - * Specifies whether the feature is enabled or disabled. - * @param activationStatus activationStatus or {@code null} for none - */ - public PreviewFeature setActivationStatus(java.lang.String activationStatus) { - this.activationStatus = activationStatus; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] Description of the feature. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] Description of the feature. - * @param description description or {@code null} for none - */ - public PreviewFeature 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 PreviewFeature setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. - * @param kind kind or {@code null} for none - */ - public PreviewFeature setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the feature. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the feature. - * @param name name or {@code null} for none - */ - public PreviewFeature setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Rollout operation of the feature. - * @return value or {@code null} for none - */ - public PreviewFeatureRolloutOperation getRolloutOperation() { - return rolloutOperation; - } - - /** - * Rollout operation of the feature. - * @param rolloutOperation rolloutOperation or {@code null} for none - */ - public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rolloutOperation) { - this.rolloutOperation = rolloutOperation; - 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 PreviewFeature setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output only] Status of the feature. - * @return value or {@code null} for none - */ - public PreviewFeatureStatus getStatus() { - return status; - } - - /** - * Output only. [Output only] Status of the feature. - * @param status status or {@code null} for none - */ - public PreviewFeature setStatus(PreviewFeatureStatus status) { - this.status = status; - return this; - } - - @Override - public PreviewFeature set(String fieldName, Object value) { - return (PreviewFeature) super.set(fieldName, value); - } - - @Override - public PreviewFeature clone() { - return (PreviewFeature) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureList.java deleted file mode 100644 index 812806f203c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureList.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PreviewFeatureList. - * - *

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 PreviewFeatureList extends com.google.api.client.json.GenericJson { - - /** - * 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 PreviewFeature 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 PreviewFeature 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(PreviewFeature.class); - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public PreviewFeatureList 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 PreviewFeatureList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of PreviewFeature resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of PreviewFeature resources. - * @param items items or {@code null} for none - */ - public PreviewFeatureList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public PreviewFeatureList 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 PreviewFeatureList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public PreviewFeatureList 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 PreviewFeatureList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PreviewFeatureList set(String fieldName, Object value) { - return (PreviewFeatureList) super.set(fieldName, value); - } - - @Override - public PreviewFeatureList clone() { - return (PreviewFeatureList) 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 PreviewFeatureListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperation.java deleted file mode 100644 index 7605eb78d44..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperation.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the rollout operation - * - *

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 PreviewFeatureRolloutOperation extends com.google.api.client.json.GenericJson { - - /** - * Input only. The input for the rollout operation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreviewFeatureRolloutOperationRolloutInput rolloutInput; - - /** - * Input only. The input for the rollout operation. - * @return value or {@code null} for none - */ - public PreviewFeatureRolloutOperationRolloutInput getRolloutInput() { - return rolloutInput; - } - - /** - * Input only. The input for the rollout operation. - * @param rolloutInput rolloutInput or {@code null} for none - */ - public PreviewFeatureRolloutOperation setRolloutInput(PreviewFeatureRolloutOperationRolloutInput rolloutInput) { - this.rolloutInput = rolloutInput; - return this; - } - - @Override - public PreviewFeatureRolloutOperation set(String fieldName, Object value) { - return (PreviewFeatureRolloutOperation) super.set(fieldName, value); - } - - @Override - public PreviewFeatureRolloutOperation clone() { - return (PreviewFeatureRolloutOperation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperationRolloutInput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperationRolloutInput.java deleted file mode 100644 index 96350a9f2ed..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureRolloutOperationRolloutInput.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the input for the rollout operation. - * - *

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 PreviewFeatureRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { - - /** - * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. - * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Predefined rollout plan. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String predefinedRolloutPlan; - - /** - * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. - * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ Ex. - * folders//locations/global/rolloutPlans/ Ex. projects//locations/global/rolloutPlans/. - * @param name name or {@code null} for none - */ - public PreviewFeatureRolloutOperationRolloutInput setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Predefined rollout plan. - * @return value or {@code null} for none - */ - public java.lang.String getPredefinedRolloutPlan() { - return predefinedRolloutPlan; - } - - /** - * Predefined rollout plan. - * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none - */ - public PreviewFeatureRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { - this.predefinedRolloutPlan = predefinedRolloutPlan; - return this; - } - - @Override - public PreviewFeatureRolloutOperationRolloutInput set(String fieldName, Object value) { - return (PreviewFeatureRolloutOperationRolloutInput) super.set(fieldName, value); - } - - @Override - public PreviewFeatureRolloutOperationRolloutInput clone() { - return (PreviewFeatureRolloutOperationRolloutInput) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatus.java deleted file mode 100644 index 16c8f03d53a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatus.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The status of the feature. - * - *

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 PreviewFeatureStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The description of the feature. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Link to the public documentation for the feature. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String helpLink; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreviewFeatureStatusReleaseStatus releaseStatus; - - /** - * Output only. [Output Only] The description of the feature. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Output only. [Output Only] The description of the feature. - * @param description description or {@code null} for none - */ - public PreviewFeatureStatus setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Link to the public documentation for the feature. - * @return value or {@code null} for none - */ - public java.lang.String getHelpLink() { - return helpLink; - } - - /** - * Output only. [Output Only] Link to the public documentation for the feature. - * @param helpLink helpLink or {@code null} for none - */ - public PreviewFeatureStatus setHelpLink(java.lang.String helpLink) { - this.helpLink = helpLink; - return this; - } - - /** - * @return value or {@code null} for none - */ - public PreviewFeatureStatusReleaseStatus getReleaseStatus() { - return releaseStatus; - } - - /** - * @param releaseStatus releaseStatus or {@code null} for none - */ - public PreviewFeatureStatus setReleaseStatus(PreviewFeatureStatusReleaseStatus releaseStatus) { - this.releaseStatus = releaseStatus; - return this; - } - - @Override - public PreviewFeatureStatus set(String fieldName, Object value) { - return (PreviewFeatureStatus) super.set(fieldName, value); - } - - @Override - public PreviewFeatureStatus clone() { - return (PreviewFeatureStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatusReleaseStatus.java deleted file mode 100644 index b897a70f402..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PreviewFeatureStatusReleaseStatus.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] The release status of the feature. - * - *

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 PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The stage of the feature. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stage; - - /** - * Output only. The last date when a feature transitioned between ReleaseStatuses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Date updateDate; - - /** - * Output only. [Output Only] The stage of the feature. - * @return value or {@code null} for none - */ - public java.lang.String getStage() { - return stage; - } - - /** - * Output only. [Output Only] The stage of the feature. - * @param stage stage or {@code null} for none - */ - public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { - this.stage = stage; - return this; - } - - /** - * Output only. The last date when a feature transitioned between ReleaseStatuses. - * @return value or {@code null} for none - */ - public Date getUpdateDate() { - return updateDate; - } - - /** - * Output only. The last date when a feature transitioned between ReleaseStatuses. - * @param updateDate updateDate or {@code null} for none - */ - public PreviewFeatureStatusReleaseStatus setUpdateDate(Date updateDate) { - this.updateDate = updateDate; - return this; - } - - @Override - public PreviewFeatureStatusReleaseStatus set(String fieldName, Object value) { - return (PreviewFeatureStatusReleaseStatus) super.set(fieldName, value); - } - - @Override - public PreviewFeatureStatusReleaseStatus clone() { - return (PreviewFeatureStatusReleaseStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Project.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Project.java deleted file mode 100644 index 417f7760f36..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Project.java +++ /dev/null @@ -1,438 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Project resource. - * - * A project is used to organize resources in a Google Cloud Platform environment. For more - * information, read about the Resource Hierarchy. - * - *

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 Project extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the - * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. - * - * If this field is not specified, it is assumed to beCA_STANDARD. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cloudArmorTier; - - /** - * Metadata key/value pairs available to all instances contained in this project. See Custom - * metadata for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Metadata commonInstanceMetadata; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * This signifies the default network tier used for configuring resources of the project and can - * only take the following values:PREMIUM, STANDARD. Initially the default network tier is - * PREMIUM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultNetworkTier; - - /** - * [Output Only] Default service account used by VMs running in this project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultServiceAccount; - - /** - * An optional textual description of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * An optional list of restricted features enabled for use on this project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List enabledFeatures; - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * This is *not* the project ID, and is just a unique ID used by Compute Engine to identify - * resources. - * 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] Type of the resource. Always compute#project for projects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The project ID. For example: my-example-project. Use the project ID to make requests to Compute - * Engine. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [Output Only] Quotas assigned to this project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List quotas; - - /** - * [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; - - /** - * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where - * they are stored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UsageExportLocation usageExportLocation; - - /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vmDnsSetting; - - /** - * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects - * with the host role, which is specified by the value HOST, are differentiated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String xpnProjectStatus; - - /** - * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the - * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. - * - * If this field is not specified, it is assumed to beCA_STANDARD. - * @return value or {@code null} for none - */ - public java.lang.String getCloudArmorTier() { - return cloudArmorTier; - } - - /** - * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the - * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. - * - * If this field is not specified, it is assumed to beCA_STANDARD. - * @param cloudArmorTier cloudArmorTier or {@code null} for none - */ - public Project setCloudArmorTier(java.lang.String cloudArmorTier) { - this.cloudArmorTier = cloudArmorTier; - return this; - } - - /** - * Metadata key/value pairs available to all instances contained in this project. See Custom - * metadata for more information. - * @return value or {@code null} for none - */ - public Metadata getCommonInstanceMetadata() { - return commonInstanceMetadata; - } - - /** - * Metadata key/value pairs available to all instances contained in this project. See Custom - * metadata for more information. - * @param commonInstanceMetadata commonInstanceMetadata or {@code null} for none - */ - public Project setCommonInstanceMetadata(Metadata commonInstanceMetadata) { - this.commonInstanceMetadata = commonInstanceMetadata; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Project setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * This signifies the default network tier used for configuring resources of the project and can - * only take the following values:PREMIUM, STANDARD. Initially the default network tier is - * PREMIUM. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultNetworkTier() { - return defaultNetworkTier; - } - - /** - * This signifies the default network tier used for configuring resources of the project and can - * only take the following values:PREMIUM, STANDARD. Initially the default network tier is - * PREMIUM. - * @param defaultNetworkTier defaultNetworkTier or {@code null} for none - */ - public Project setDefaultNetworkTier(java.lang.String defaultNetworkTier) { - this.defaultNetworkTier = defaultNetworkTier; - return this; - } - - /** - * [Output Only] Default service account used by VMs running in this project. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultServiceAccount() { - return defaultServiceAccount; - } - - /** - * [Output Only] Default service account used by VMs running in this project. - * @param defaultServiceAccount defaultServiceAccount or {@code null} for none - */ - public Project setDefaultServiceAccount(java.lang.String defaultServiceAccount) { - this.defaultServiceAccount = defaultServiceAccount; - return this; - } - - /** - * An optional textual description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional textual description of the resource. - * @param description description or {@code null} for none - */ - public Project setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * An optional list of restricted features enabled for use on this project. - * @return value or {@code null} for none - */ - public java.util.List getEnabledFeatures() { - return enabledFeatures; - } - - /** - * An optional list of restricted features enabled for use on this project. - * @param enabledFeatures enabledFeatures or {@code null} for none - */ - public Project setEnabledFeatures(java.util.List enabledFeatures) { - this.enabledFeatures = enabledFeatures; - return this; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * This is *not* the project ID, and is just a unique ID used by Compute Engine to identify - * resources. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * This is *not* the project ID, and is just a unique ID used by Compute Engine to identify - * resources. - * @param id id or {@code null} for none - */ - public Project setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. - * @param kind kind or {@code null} for none - */ - public Project setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The project ID. For example: my-example-project. Use the project ID to make requests to Compute - * Engine. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The project ID. For example: my-example-project. Use the project ID to make requests to Compute - * Engine. - * @param name name or {@code null} for none - */ - public Project setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * [Output Only] Quotas assigned to this project. - * @return value or {@code null} for none - */ - public java.util.List getQuotas() { - return quotas; - } - - /** - * [Output Only] Quotas assigned to this project. - * @param quotas quotas or {@code null} for none - */ - public Project setQuotas(java.util.List quotas) { - this.quotas = quotas; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Project setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where - * they are stored. - * @return value or {@code null} for none - */ - public UsageExportLocation getUsageExportLocation() { - return usageExportLocation; - } - - /** - * An optional naming prefix for daily usage reports and the Google Cloud Storage bucket where - * they are stored. - * @param usageExportLocation usageExportLocation or {@code null} for none - */ - public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { - this.usageExportLocation = usageExportLocation; - return this; - } - - /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. - * @return value or {@code null} for none - */ - public java.lang.String getVmDnsSetting() { - return vmDnsSetting; - } - - /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. - * @param vmDnsSetting vmDnsSetting or {@code null} for none - */ - public Project setVmDnsSetting(java.lang.String vmDnsSetting) { - this.vmDnsSetting = vmDnsSetting; - return this; - } - - /** - * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects - * with the host role, which is specified by the value HOST, are differentiated. - * @return value or {@code null} for none - */ - public java.lang.String getXpnProjectStatus() { - return xpnProjectStatus; - } - - /** - * [Output Only] The role this project has in a shared VPC configuration. Currently, only projects - * with the host role, which is specified by the value HOST, are differentiated. - * @param xpnProjectStatus xpnProjectStatus or {@code null} for none - */ - public Project setXpnProjectStatus(java.lang.String xpnProjectStatus) { - this.xpnProjectStatus = xpnProjectStatus; - return this; - } - - @Override - public Project set(String fieldName, Object value) { - return (Project) super.set(fieldName, value); - } - - @Override - public Project clone() { - return (Project) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectView.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectView.java deleted file mode 100644 index 5354a99c090..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectView.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a ProjectView resource. - * - * A ProjectView resource contains read-only project data which is available globally. - * - *

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 ProjectView extends com.google.api.client.json.GenericJson { - - /** - * The project data. The returned Project data does not contain regional or zonal quota usage - * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the - * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) - * endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Project project; - - /** - * The project data. The returned Project data does not contain regional or zonal quota usage - * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the - * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) - * endpoint. - * @return value or {@code null} for none - */ - public Project getProject() { - return project; - } - - /** - * The project data. The returned Project data does not contain regional or zonal quota usage - * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the - * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) - * endpoint. - * @param project project or {@code null} for none - */ - public ProjectView setProject(Project project) { - this.project = project; - return this; - } - - @Override - public ProjectView set(String fieldName, Object value) { - return (ProjectView) super.set(fieldName, value); - } - - @Override - public ProjectView clone() { - return (ProjectView) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsDisableXpnResourceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsDisableXpnResourceRequest.java deleted file mode 100644 index 844032f31c3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsDisableXpnResourceRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ProjectsDisableXpnResourceRequest. - * - *

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 ProjectsDisableXpnResourceRequest extends com.google.api.client.json.GenericJson { - - /** - * Service resource (a.k.a service project) ID. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private XpnResourceId xpnResource; - - /** - * Service resource (a.k.a service project) ID. - * @return value or {@code null} for none - */ - public XpnResourceId getXpnResource() { - return xpnResource; - } - - /** - * Service resource (a.k.a service project) ID. - * @param xpnResource xpnResource or {@code null} for none - */ - public ProjectsDisableXpnResourceRequest setXpnResource(XpnResourceId xpnResource) { - this.xpnResource = xpnResource; - return this; - } - - @Override - public ProjectsDisableXpnResourceRequest set(String fieldName, Object value) { - return (ProjectsDisableXpnResourceRequest) super.set(fieldName, value); - } - - @Override - public ProjectsDisableXpnResourceRequest clone() { - return (ProjectsDisableXpnResourceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsEnableXpnResourceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsEnableXpnResourceRequest.java deleted file mode 100644 index c262ec8ce17..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsEnableXpnResourceRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ProjectsEnableXpnResourceRequest. - * - *

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 ProjectsEnableXpnResourceRequest extends com.google.api.client.json.GenericJson { - - /** - * Service resource (a.k.a service project) ID. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private XpnResourceId xpnResource; - - /** - * Service resource (a.k.a service project) ID. - * @return value or {@code null} for none - */ - public XpnResourceId getXpnResource() { - return xpnResource; - } - - /** - * Service resource (a.k.a service project) ID. - * @param xpnResource xpnResource or {@code null} for none - */ - public ProjectsEnableXpnResourceRequest setXpnResource(XpnResourceId xpnResource) { - this.xpnResource = xpnResource; - return this; - } - - @Override - public ProjectsEnableXpnResourceRequest set(String fieldName, Object value) { - return (ProjectsEnableXpnResourceRequest) super.set(fieldName, value); - } - - @Override - public ProjectsEnableXpnResourceRequest clone() { - return (ProjectsEnableXpnResourceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsGetXpnResources.java deleted file mode 100644 index aedac6fa34e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsGetXpnResources.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ProjectsGetXpnResources. - * - *

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 ProjectsGetXpnResources extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Service resources (a.k.a service projects) attached to this project as their shared VPC host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resources; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) - * @param kind kind or {@code null} for none - */ - public ProjectsGetXpnResources setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ProjectsGetXpnResources setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Service resources (a.k.a service projects) attached to this project as their shared VPC host. - * @return value or {@code null} for none - */ - public java.util.List getResources() { - return resources; - } - - /** - * Service resources (a.k.a service projects) attached to this project as their shared VPC host. - * @param resources resources or {@code null} for none - */ - public ProjectsGetXpnResources setResources(java.util.List resources) { - this.resources = resources; - return this; - } - - @Override - public ProjectsGetXpnResources set(String fieldName, Object value) { - return (ProjectsGetXpnResources) super.set(fieldName, value); - } - - @Override - public ProjectsGetXpnResources clone() { - return (ProjectsGetXpnResources) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsListXpnHostsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsListXpnHostsRequest.java deleted file mode 100644 index 37d22ad3b35..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsListXpnHostsRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ProjectsListXpnHostsRequest. - * - *

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 ProjectsListXpnHostsRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host - * projects. If not specified, the organization will be inferred from the project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String organization; - - /** - * Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host - * projects. If not specified, the organization will be inferred from the project. - * @return value or {@code null} for none - */ - public java.lang.String getOrganization() { - return organization; - } - - /** - * Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host - * projects. If not specified, the organization will be inferred from the project. - * @param organization organization or {@code null} for none - */ - public ProjectsListXpnHostsRequest setOrganization(java.lang.String organization) { - this.organization = organization; - return this; - } - - @Override - public ProjectsListXpnHostsRequest set(String fieldName, Object value) { - return (ProjectsListXpnHostsRequest) super.set(fieldName, value); - } - - @Override - public ProjectsListXpnHostsRequest clone() { - return (ProjectsListXpnHostsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetCloudArmorTierRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetCloudArmorTierRequest.java deleted file mode 100644 index 6c4ab2423ce..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetCloudArmorTierRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ProjectsSetCloudArmorTierRequest. - * - *

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 ProjectsSetCloudArmorTierRequest extends com.google.api.client.json.GenericJson { - - /** - * Managed protection tier to be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cloudArmorTier; - - /** - * Managed protection tier to be set. - * @return value or {@code null} for none - */ - public java.lang.String getCloudArmorTier() { - return cloudArmorTier; - } - - /** - * Managed protection tier to be set. - * @param cloudArmorTier cloudArmorTier or {@code null} for none - */ - public ProjectsSetCloudArmorTierRequest setCloudArmorTier(java.lang.String cloudArmorTier) { - this.cloudArmorTier = cloudArmorTier; - return this; - } - - @Override - public ProjectsSetCloudArmorTierRequest set(String fieldName, Object value) { - return (ProjectsSetCloudArmorTierRequest) super.set(fieldName, value); - } - - @Override - public ProjectsSetCloudArmorTierRequest clone() { - return (ProjectsSetCloudArmorTierRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetDefaultNetworkTierRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetDefaultNetworkTierRequest.java deleted file mode 100644 index 14c6e919f91..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ProjectsSetDefaultNetworkTierRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ProjectsSetDefaultNetworkTierRequest. - * - *

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 ProjectsSetDefaultNetworkTierRequest extends com.google.api.client.json.GenericJson { - - /** - * Default network tier to be set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkTier; - - /** - * Default network tier to be set. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkTier() { - return networkTier; - } - - /** - * Default network tier to be set. - * @param networkTier networkTier or {@code null} for none - */ - public ProjectsSetDefaultNetworkTierRequest setNetworkTier(java.lang.String networkTier) { - this.networkTier = networkTier; - return this; - } - - @Override - public ProjectsSetDefaultNetworkTierRequest set(String fieldName, Object value) { - return (ProjectsSetDefaultNetworkTierRequest) super.set(fieldName, value); - } - - @Override - public ProjectsSetDefaultNetworkTierRequest clone() { - return (ProjectsSetDefaultNetworkTierRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefix.java deleted file mode 100644 index 4cf0b3a75b4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefix.java +++ /dev/null @@ -1,508 +0,0 @@ -/* - * 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.preview.model; - -/** - * A public advertised prefix represents an aggregated IP prefix or netblock which customers bring - * to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the - * internet. - * - *

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 PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The version of BYOIP API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String byoipApiVersion; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The address to be used for reverse DNS verification. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String dnsVerificationIp; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger id; - - /** - * The address range, in CIDR format, represented by this public advertised prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * The internet access type for IPv6 Public Advertised Prefixes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6AccessType; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Specifies how child public delegated prefix will be scoped. It could be one of following - * values: - `REGIONAL`: The public delegated prefix is regional only. The - * provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global - * only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The - * public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no - * longer supported in BYOIP V2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pdpScope; - - /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List publicDelegatedPrefixs; - - /** - * 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] The shared secret to be used for reverse DNS verification. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sharedSecret; - - /** - * The status of the public advertised prefix. Possible values include: - `INITIAL`: - * RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - - * `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS - * lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - * - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - - * `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] The version of BYOIP API. - * @return value or {@code null} for none - */ - public java.lang.String getByoipApiVersion() { - return byoipApiVersion; - } - - /** - * Output only. [Output Only] The version of BYOIP API. - * @param byoipApiVersion byoipApiVersion or {@code null} for none - */ - public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { - this.byoipApiVersion = byoipApiVersion; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public PublicAdvertisedPrefix setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The address to be used for reverse DNS verification. - * @return value or {@code null} for none - */ - public java.lang.String getDnsVerificationIp() { - return dnsVerificationIp; - } - - /** - * The address to be used for reverse DNS verification. - * @param dnsVerificationIp dnsVerificationIp or {@code null} for none - */ - public PublicAdvertisedPrefix setDnsVerificationIp(java.lang.String dnsVerificationIp) { - this.dnsVerificationIp = dnsVerificationIp; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public PublicAdvertisedPrefix setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public PublicAdvertisedPrefix setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * The address range, in CIDR format, represented by this public advertised prefix. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The address range, in CIDR format, represented by this public advertised prefix. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public PublicAdvertisedPrefix setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * The internet access type for IPv6 Public Advertised Prefixes. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6AccessType() { - return ipv6AccessType; - } - - /** - * The internet access type for IPv6 Public Advertised Prefixes. - * @param ipv6AccessType ipv6AccessType or {@code null} for none - */ - public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { - this.ipv6AccessType = ipv6AccessType; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. - * @param kind kind or {@code null} for none - */ - public PublicAdvertisedPrefix setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 PublicAdvertisedPrefix setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Specifies how child public delegated prefix will be scoped. It could be one of following - * values: - `REGIONAL`: The public delegated prefix is regional only. The - * provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global - * only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The - * public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no - * longer supported in BYOIP V2. - * @return value or {@code null} for none - */ - public java.lang.String getPdpScope() { - return pdpScope; - } - - /** - * Specifies how child public delegated prefix will be scoped. It could be one of following - * values: - `REGIONAL`: The public delegated prefix is regional only. The - * provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global - * only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The - * public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no - * longer supported in BYOIP V2. - * @param pdpScope pdpScope or {@code null} for none - */ - public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { - this.pdpScope = pdpScope; - return this; - } - - /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. - * @return value or {@code null} for none - */ - public java.util.List getPublicDelegatedPrefixs() { - return publicDelegatedPrefixs; - } - - /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. - * @param publicDelegatedPrefixs publicDelegatedPrefixs or {@code null} for none - */ - public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List publicDelegatedPrefixs) { - this.publicDelegatedPrefixs = publicDelegatedPrefixs; - 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 PublicAdvertisedPrefix setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] The shared secret to be used for reverse DNS verification. - * @return value or {@code null} for none - */ - public java.lang.String getSharedSecret() { - return sharedSecret; - } - - /** - * [Output Only] The shared secret to be used for reverse DNS verification. - * @param sharedSecret sharedSecret or {@code null} for none - */ - public PublicAdvertisedPrefix setSharedSecret(java.lang.String sharedSecret) { - this.sharedSecret = sharedSecret; - return this; - } - - /** - * The status of the public advertised prefix. Possible values include: - `INITIAL`: - * RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - - * `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS - * lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - * - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - - * `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * The status of the public advertised prefix. Possible values include: - `INITIAL`: - * RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - - * `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS - * lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - * - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - - * `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. - * @param status status or {@code null} for none - */ - public PublicAdvertisedPrefix setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public PublicAdvertisedPrefix set(String fieldName, Object value) { - return (PublicAdvertisedPrefix) super.set(fieldName, value); - } - - @Override - public PublicAdvertisedPrefix clone() { - return (PublicAdvertisedPrefix) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixList.java deleted file mode 100644 index 90d7ba07251..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PublicAdvertisedPrefixList. - * - *

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 PublicAdvertisedPrefixList extends com.google.api.client.json.GenericJson { - - /** - * [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 PublicAdvertisedPrefix 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 PublicAdvertisedPrefix 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(PublicAdvertisedPrefix.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 PublicAdvertisedPrefixList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of PublicAdvertisedPrefix resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of PublicAdvertisedPrefix resources. - * @param items items or {@code null} for none - */ - public PublicAdvertisedPrefixList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. - * @param kind kind or {@code null} for none - */ - public PublicAdvertisedPrefixList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public PublicAdvertisedPrefixList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public PublicAdvertisedPrefixList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 PublicAdvertisedPrefixList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PublicAdvertisedPrefixList set(String fieldName, Object value) { - return (PublicAdvertisedPrefixList) super.set(fieldName, value); - } - - @Override - public PublicAdvertisedPrefixList clone() { - return (PublicAdvertisedPrefixList) 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 PublicAdvertisedPrefixListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java deleted file mode 100644 index 2be53cdc2fa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicAdvertisedPrefixPublicDelegatedPrefix.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a CIDR range which can be used to assign addresses. - * - *

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 PublicAdvertisedPrefixPublicDelegatedPrefix extends com.google.api.client.json.GenericJson { - - /** - * The IP address range of the public delegated prefix - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipRange; - - /** - * The name of the public delegated prefix - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The project number of the public delegated prefix - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** - * The region of the public delegated prefix if it is regional. If absent, the prefix is global. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * The status of the public delegated prefix. Possible values are: INITIALIZING: The public - * delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The - * public delegated prefix is active. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The IP address range of the public delegated prefix - * @return value or {@code null} for none - */ - public java.lang.String getIpRange() { - return ipRange; - } - - /** - * The IP address range of the public delegated prefix - * @param ipRange ipRange or {@code null} for none - */ - public PublicAdvertisedPrefixPublicDelegatedPrefix setIpRange(java.lang.String ipRange) { - this.ipRange = ipRange; - return this; - } - - /** - * The name of the public delegated prefix - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the public delegated prefix - * @param name name or {@code null} for none - */ - public PublicAdvertisedPrefixPublicDelegatedPrefix setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The project number of the public delegated prefix - * @return value or {@code null} for none - */ - public java.lang.String getProject() { - return project; - } - - /** - * The project number of the public delegated prefix - * @param project project or {@code null} for none - */ - public PublicAdvertisedPrefixPublicDelegatedPrefix setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** - * The region of the public delegated prefix if it is regional. If absent, the prefix is global. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * The region of the public delegated prefix if it is regional. If absent, the prefix is global. - * @param region region or {@code null} for none - */ - public PublicAdvertisedPrefixPublicDelegatedPrefix setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The status of the public delegated prefix. Possible values are: INITIALIZING: The public - * delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The - * public delegated prefix is active. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * The status of the public delegated prefix. Possible values are: INITIALIZING: The public - * delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The - * public delegated prefix is active. - * @param status status or {@code null} for none - */ - public PublicAdvertisedPrefixPublicDelegatedPrefix setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public PublicAdvertisedPrefixPublicDelegatedPrefix set(String fieldName, Object value) { - return (PublicAdvertisedPrefixPublicDelegatedPrefix) super.set(fieldName, value); - } - - @Override - public PublicAdvertisedPrefixPublicDelegatedPrefix clone() { - return (PublicAdvertisedPrefixPublicDelegatedPrefix) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefix.java deleted file mode 100644 index 6747691d9d4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefix.java +++ /dev/null @@ -1,581 +0,0 @@ -/* - * 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.preview.model; - -/** - * A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is - * configured within a single cloud scope (global or region). IPs in the block can be allocated to - * resources within that scope. Public delegated prefixes may be further broken up into smaller IP - * blocks in the same scope as the parent block. - * - *

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 PublicDelegatedPrefix extends com.google.api.client.json.GenericJson { - - /** - * The allocatable prefix length supported by this public delegated prefix. This field is optional - * and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, - * and it always defaults to 32. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer allocatablePrefixLength; - - /** - * Output only. [Output Only] The version of BYOIP API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String byoipApiVersion; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableEnhancedIpv4Allocation; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger id; - - /** - * The IP address range, in CIDR format, represented by this public delegated prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. - * Inherited from parent prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6AccessType; - - /** - * If true, the prefix will be live migrated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isLiveMigration; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public - * delegated prefixes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The public delegated prefix mode for IPv6 only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parentPrefix; - - /** - * The list of sub public delegated prefixes that exist for this public delegated prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List publicDelegatedSubPrefixs; - - /** - * Output only. [Output Only] URL of the region where the public delegated prefix resides. This - * field applies only to the region resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] The status of the public delegated prefix, which can be one of following values: - * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be - * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration - * prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to - * use. - `DELETING` The public delegated prefix is being deprovsioned. - `ACTIVE` The - * public delegated prefix is ready to use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The allocatable prefix length supported by this public delegated prefix. This field is optional - * and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, - * and it always defaults to 32. - * @return value or {@code null} for none - */ - public java.lang.Integer getAllocatablePrefixLength() { - return allocatablePrefixLength; - } - - /** - * The allocatable prefix length supported by this public delegated prefix. This field is optional - * and cannot be set for prefixes in DELEGATION mode. It cannot be set for IPv4 prefixes either, - * and it always defaults to 32. - * @param allocatablePrefixLength allocatablePrefixLength or {@code null} for none - */ - public PublicDelegatedPrefix setAllocatablePrefixLength(java.lang.Integer allocatablePrefixLength) { - this.allocatablePrefixLength = allocatablePrefixLength; - return this; - } - - /** - * Output only. [Output Only] The version of BYOIP API. - * @return value or {@code null} for none - */ - public java.lang.String getByoipApiVersion() { - return byoipApiVersion; - } - - /** - * Output only. [Output Only] The version of BYOIP API. - * @param byoipApiVersion byoipApiVersion or {@code null} for none - */ - public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { - this.byoipApiVersion = byoipApiVersion; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public PublicDelegatedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public PublicDelegatedPrefix setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs only. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableEnhancedIpv4Allocation() { - return enableEnhancedIpv4Allocation; - } - - /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs only. - * @param enableEnhancedIpv4Allocation enableEnhancedIpv4Allocation or {@code null} for none - */ - public PublicDelegatedPrefix setEnableEnhancedIpv4Allocation(java.lang.Boolean enableEnhancedIpv4Allocation) { - this.enableEnhancedIpv4Allocation = enableEnhancedIpv4Allocation; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public PublicDelegatedPrefix setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. - * An up-to-date fingerprint must be provided in order to update thePublicDelegatedPrefix, - * otherwise the request will fail with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a PublicDelegatedPrefix. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public PublicDelegatedPrefix encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public PublicDelegatedPrefix setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * The IP address range, in CIDR format, represented by this public delegated prefix. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The IP address range, in CIDR format, represented by this public delegated prefix. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public PublicDelegatedPrefix setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. - * Inherited from parent prefix. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6AccessType() { - return ipv6AccessType; - } - - /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. - * Inherited from parent prefix. - * @param ipv6AccessType ipv6AccessType or {@code null} for none - */ - public PublicDelegatedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { - this.ipv6AccessType = ipv6AccessType; - return this; - } - - /** - * If true, the prefix will be live migrated. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsLiveMigration() { - return isLiveMigration; - } - - /** - * If true, the prefix will be live migrated. - * @param isLiveMigration isLiveMigration or {@code null} for none - */ - public PublicDelegatedPrefix setIsLiveMigration(java.lang.Boolean isLiveMigration) { - this.isLiveMigration = isLiveMigration; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public - * delegated prefixes. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public - * delegated prefixes. - * @param kind kind or {@code null} for none - */ - public PublicDelegatedPrefix setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The public delegated prefix mode for IPv6 only. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The public delegated prefix mode for IPv6 only. - * @param mode mode or {@code null} for none - */ - public PublicDelegatedPrefix setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 PublicDelegatedPrefix setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. - * @return value or {@code null} for none - */ - public java.lang.String getParentPrefix() { - return parentPrefix; - } - - /** - * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. - * @param parentPrefix parentPrefix or {@code null} for none - */ - public PublicDelegatedPrefix setParentPrefix(java.lang.String parentPrefix) { - this.parentPrefix = parentPrefix; - return this; - } - - /** - * The list of sub public delegated prefixes that exist for this public delegated prefix. - * @return value or {@code null} for none - */ - public java.util.List getPublicDelegatedSubPrefixs() { - return publicDelegatedSubPrefixs; - } - - /** - * The list of sub public delegated prefixes that exist for this public delegated prefix. - * @param publicDelegatedSubPrefixs publicDelegatedSubPrefixs or {@code null} for none - */ - public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List publicDelegatedSubPrefixs) { - this.publicDelegatedSubPrefixs = publicDelegatedSubPrefixs; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the public delegated prefix resides. This - * field applies only to the region resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the public delegated prefix resides. This - * field applies only to the region resource. You must specify this field as part of the HTTP - * request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public PublicDelegatedPrefix setRegion(java.lang.String region) { - this.region = region; - 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 PublicDelegatedPrefix setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] The status of the public delegated prefix, which can be one of following values: - * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be - * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration - * prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to - * use. - `DELETING` The public delegated prefix is being deprovsioned. - `ACTIVE` The - * public delegated prefix is ready to use. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] The status of the public delegated prefix, which can be one of following values: - * - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be - * created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration - * prefix and is active. - `ANNOUNCED` The public delegated prefix is announced and ready to - * use. - `DELETING` The public delegated prefix is being deprovsioned. - `ACTIVE` The - * public delegated prefix is ready to use. - * @param status status or {@code null} for none - */ - public PublicDelegatedPrefix setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public PublicDelegatedPrefix set(String fieldName, Object value) { - return (PublicDelegatedPrefix) super.set(fieldName, value); - } - - @Override - public PublicDelegatedPrefix clone() { - return (PublicDelegatedPrefix) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixAggregatedList.java deleted file mode 100644 index aeea408b565..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixAggregatedList.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PublicDelegatedPrefixAggregatedList. - * - *

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 PublicDelegatedPrefixAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 PublicDelegatedPrefixesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated - * prefixes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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; - - /** - * [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 PublicDelegatedPrefixAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of PublicDelegatedPrefixesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of PublicDelegatedPrefixesScopedList resources. - * @param items items or {@code null} for none - */ - public PublicDelegatedPrefixAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated - * prefixes. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated - * prefixes. - * @param kind kind or {@code null} for none - */ - public PublicDelegatedPrefixAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public PublicDelegatedPrefixAggregatedList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public PublicDelegatedPrefixAggregatedList 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 PublicDelegatedPrefixAggregatedList 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 PublicDelegatedPrefixAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PublicDelegatedPrefixAggregatedList set(String fieldName, Object value) { - return (PublicDelegatedPrefixAggregatedList) super.set(fieldName, value); - } - - @Override - public PublicDelegatedPrefixAggregatedList clone() { - return (PublicDelegatedPrefixAggregatedList) 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 PublicDelegatedPrefixAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixList.java deleted file mode 100644 index 5a3777221e0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PublicDelegatedPrefixList. - * - *

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 PublicDelegatedPrefixList extends com.google.api.client.json.GenericJson { - - /** - * [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 PublicDelegatedPrefix 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 PublicDelegatedPrefix 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(PublicDelegatedPrefix.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 PublicDelegatedPrefixList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of PublicDelegatedPrefix resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of PublicDelegatedPrefix resources. - * @param items items or {@code null} for none - */ - public PublicDelegatedPrefixList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. - * @param kind kind or {@code null} for none - */ - public PublicDelegatedPrefixList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public PublicDelegatedPrefixList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public PublicDelegatedPrefixList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 PublicDelegatedPrefixList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PublicDelegatedPrefixList set(String fieldName, Object value) { - return (PublicDelegatedPrefixList) super.set(fieldName, value); - } - - @Override - public PublicDelegatedPrefixList clone() { - return (PublicDelegatedPrefixList) 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 PublicDelegatedPrefixListWarningData. - */ - 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(); - } - - } - } -} From 0afacb47b65e98a8b177fed7089fa443e16b2a78 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:40 -0700 Subject: [PATCH 19/23] chore: regenerate compute client --- ...legatedPrefixPublicDelegatedSubPrefix.java | 315 ------- .../PublicDelegatedPrefixesScopedList.java | 282 ------ .../services/compute/preview/model/Quota.java | 138 --- .../preview/model/QuotaExceededInfo.java | 186 ---- .../compute/preview/model/Reference.java | 141 --- .../compute/preview/model/RegexRewrite.java | 111 --- .../compute/preview/model/Region.java | 526 ----------- .../model/RegionAddressesMoveRequest.java | 108 --- .../preview/model/RegionAutoscalerList.java | 383 -------- .../preview/model/RegionDiskTypeList.java | 386 --------- .../model/RegionDiskUpdateKmsKeyRequest.java | 84 -- ...RegionDisksAddResourcePoliciesRequest.java | 66 -- ...ionDisksRemoveResourcePoliciesRequest.java | 66 -- .../model/RegionDisksResizeRequest.java | 66 -- ...gionDisksStartAsyncReplicationRequest.java | 84 -- .../model/RegionInstanceGroupList.java | 383 -------- ...ceGroupManagerDeleteInstanceConfigReq.java | 69 -- .../model/RegionInstanceGroupManagerList.java | 386 --------- ...nceGroupManagerPatchInstanceConfigReq.java | 72 -- ...roupManagerResizeRequestsListResponse.java | 431 --------- ...ceGroupManagerUpdateInstanceConfigReq.java | 72 -- ...eGroupManagersAbandonInstancesRequest.java | 69 -- ...tanceGroupManagersApplyUpdatesRequest.java | 180 ---- ...ceGroupManagersCreateInstancesRequest.java | 72 -- ...ceGroupManagersDeleteInstancesRequest.java | 105 --- ...stanceGroupManagersListErrorsResponse.java | 105 --- ...eGroupManagersListInstanceConfigsResp.java | 311 ------- ...nceGroupManagersListInstancesResponse.java | 105 --- ...nInstanceGroupManagersRecreateRequest.java | 69 -- ...ceGroupManagersResumeInstancesRequest.java | 69 -- ...nceGroupManagersSetTargetPoolsRequest.java | 126 --- ...stanceGroupManagersSetTemplateRequest.java | 66 -- ...nceGroupManagersStartInstancesRequest.java | 69 -- ...anceGroupManagersStopInstancesRequest.java | 96 --- ...eGroupManagersSuspendInstancesRequest.java | 96 --- .../RegionInstanceGroupsListInstances.java | 383 -------- ...ionInstanceGroupsListInstancesRequest.java | 99 --- ...ionInstanceGroupsSetNamedPortsRequest.java | 144 ---- .../compute/preview/model/RegionList.java | 383 -------- ...kEndpointGroupsAttachEndpointsRequest.java | 72 -- ...kEndpointGroupsDetachEndpointsRequest.java | 72 -- ...PoliciesGetEffectiveFirewallsResponse.java | 102 --- ...ewallsResponseEffectiveFirewallPolicy.java | 205 ----- .../preview/model/RegionSetLabelsRequest.java | 133 --- .../preview/model/RegionSetPolicyRequest.java | 162 ---- .../RegionSnapshotUpdateKmsKeyRequest.java | 78 -- ...HttpsProxiesSetSslCertificatesRequest.java | 66 -- .../model/RegionUrlMapsValidateRequest.java | 66 -- .../preview/model/ReliabilityRisk.java | 261 ------ .../model/ReliabilityRisksListResponse.java | 410 --------- .../preview/model/RequestMirrorPolicy.java | 108 --- .../compute/preview/model/Reservation.java | 815 ------------------ .../ReservationAdvancedDeploymentControl.java | 66 -- .../preview/model/ReservationAffinity.java | 132 --- .../model/ReservationAggregatedList.java | 401 --------- .../preview/model/ReservationBlock.java | 453 ---------- .../model/ReservationBlockHealthInfo.java | 114 --- .../ReservationBlockPhysicalTopology.java | 114 --- ...ervationBlockPhysicalTopologyInstance.java | 114 --- ...lTopologyInstancePhysicalHostTopology.java | 90 -- .../model/ReservationBlocksGetResponse.java | 63 -- .../model/ReservationBlocksListResponse.java | 383 -------- .../preview/model/ReservationList.java | 386 --------- .../preview/model/ReservationParams.java | 78 -- .../preview/model/ReservationSlot.java | 315 ------- .../ReservationSlotPhysicalTopology.java | 138 --- .../preview/model/ReservationSlotStatus.java | 114 --- .../model/ReservationSlotsGetResponse.java | 63 -- .../ReservationSlotsGetVersionRequest.java | 66 -- .../model/ReservationSlotsListResponse.java | 383 -------- .../preview/model/ReservationSubBlock.java | 420 --------- .../model/ReservationSubBlockHealthInfo.java | 162 ---- .../ReservationSubBlockPhysicalTopology.java | 114 --- .../ReservationSubBlocksGetResponse.java | 63 -- ...ReservationSubBlocksGetVersionRequest.java | 66 -- .../ReservationSubBlocksListResponse.java | 383 -------- ...servationSubBlocksReportFaultyRequest.java | 114 --- ...bBlocksReportFaultyRequestFaultReason.java | 90 -- ...ationsBlocksPerformMaintenanceRequest.java | 66 -- ...ReservationsPerformMaintenanceRequest.java | 66 -- .../model/ReservationsResizeRequest.java | 66 -- .../preview/model/ReservationsScopedList.java | 278 ------ .../preview/model/ResourceCommitment.java | 141 --- .../preview/model/ResourceGroupReference.java | 69 -- .../preview/model/ResourceMetadata.java | 96 --- .../model/ResourcePoliciesScopedList.java | 272 ------ .../compute/preview/model/ResourcePolicy.java | 391 --------- .../model/ResourcePolicyAggregatedList.java | 428 --------- .../model/ResourcePolicyDailyCycle.java | 123 --- ...ourcePolicyDiskConsistencyGroupPolicy.java | 42 - .../ResourcePolicyGroupPlacementPolicy.java | 175 ---- .../model/ResourcePolicyHourlyCycle.java | 123 --- .../ResourcePolicyInstanceSchedulePolicy.java | 166 ---- ...ePolicyInstanceSchedulePolicySchedule.java | 66 -- .../preview/model/ResourcePolicyList.java | 407 --------- .../model/ResourcePolicyResourceStatus.java | 74 -- ...rceStatusInstanceSchedulePolicyStatus.java | 96 --- .../ResourcePolicySnapshotSchedulePolicy.java | 118 --- ...SnapshotSchedulePolicyRetentionPolicy.java | 90 -- ...ePolicySnapshotSchedulePolicySchedule.java | 105 --- 100 files changed, 17795 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Quota.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/QuotaExceededInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegexRewrite.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Region.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAddressesMoveRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAutoscalerList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskTypeList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksAddResourcePoliciesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksRemoveResourcePoliciesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksResizeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksStartAsyncReplicationRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerResizeRequestsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersAbandonInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersApplyUpdatesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersCreateInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersDeleteInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListErrorsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstanceConfigsResp.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstancesResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersRecreateRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersResumeInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTemplateRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStartInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStopInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSuspendInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstances.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstancesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsSetNamedPortsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetLabelsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetPolicyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSnapshotUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionUrlMapsValidateRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisksListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RequestMirrorPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reservation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAdvancedDeploymentControl.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAffinity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlock.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockHealthInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstance.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksGetResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlot.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotPhysicalTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlock.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockHealthInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockPhysicalTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequestFaultReason.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsBlocksPerformMaintenanceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsPerformMaintenanceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsResizeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceCommitment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceGroupReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePoliciesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDailyCycle.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDiskConsistencyGroupPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyGroupPlacementPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyHourlyCycle.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicySchedule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySchedule.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java deleted file mode 100644 index 38bad7cc4e6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a sub PublicDelegatedPrefix. - * - *

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 PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.google.api.client.json.GenericJson { - - /** - * The allocatable prefix length supported by this PublicDelegatedSubPrefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer allocatablePrefixLength; - - /** - * Name of the project scoping this PublicDelegatedSubPrefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String delegateeProject; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableEnhancedIpv4Allocation; - - /** - * The IP address range, in CIDR format, represented by this sub public delegated prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6AccessType; - - /** - * Whether the sub prefix is delegated to create Address resources in the delegatee project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isAddress; - - /** - * The PublicDelegatedSubPrefix mode for IPv6 only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * The name of the sub public delegated prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] The status of the sub public delegated prefix. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The allocatable prefix length supported by this PublicDelegatedSubPrefix. - * @return value or {@code null} for none - */ - public java.lang.Integer getAllocatablePrefixLength() { - return allocatablePrefixLength; - } - - /** - * The allocatable prefix length supported by this PublicDelegatedSubPrefix. - * @param allocatablePrefixLength allocatablePrefixLength or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setAllocatablePrefixLength(java.lang.Integer allocatablePrefixLength) { - this.allocatablePrefixLength = allocatablePrefixLength; - return this; - } - - /** - * Name of the project scoping this PublicDelegatedSubPrefix. - * @return value or {@code null} for none - */ - public java.lang.String getDelegateeProject() { - return delegateeProject; - } - - /** - * Name of the project scoping this PublicDelegatedSubPrefix. - * @param delegateeProject delegateeProject or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setDelegateeProject(java.lang.String delegateeProject) { - this.delegateeProject = delegateeProject; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs only. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableEnhancedIpv4Allocation() { - return enableEnhancedIpv4Allocation; - } - - /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs only. - * @param enableEnhancedIpv4Allocation enableEnhancedIpv4Allocation or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setEnableEnhancedIpv4Allocation(java.lang.Boolean enableEnhancedIpv4Allocation) { - this.enableEnhancedIpv4Allocation = enableEnhancedIpv4Allocation; - return this; - } - - /** - * The IP address range, in CIDR format, represented by this sub public delegated prefix. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The IP address range, in CIDR format, represented by this sub public delegated prefix. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6AccessType() { - return ipv6AccessType; - } - - /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. - * @param ipv6AccessType ipv6AccessType or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpv6AccessType(java.lang.String ipv6AccessType) { - this.ipv6AccessType = ipv6AccessType; - return this; - } - - /** - * Whether the sub prefix is delegated to create Address resources in the delegatee project. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsAddress() { - return isAddress; - } - - /** - * Whether the sub prefix is delegated to create Address resources in the delegatee project. - * @param isAddress isAddress or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setIsAddress(java.lang.Boolean isAddress) { - this.isAddress = isAddress; - return this; - } - - /** - * The PublicDelegatedSubPrefix mode for IPv6 only. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The PublicDelegatedSubPrefix mode for IPv6 only. - * @param mode mode or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * The name of the sub public delegated prefix. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the sub public delegated prefix. - * @param name name or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. - * @param region region or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] The status of the sub public delegated prefix. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the sub public delegated prefix. - * @param status status or {@code null} for none - */ - public PublicDelegatedPrefixPublicDelegatedSubPrefix setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public PublicDelegatedPrefixPublicDelegatedSubPrefix set(String fieldName, Object value) { - return (PublicDelegatedPrefixPublicDelegatedSubPrefix) super.set(fieldName, value); - } - - @Override - public PublicDelegatedPrefixPublicDelegatedSubPrefix clone() { - return (PublicDelegatedPrefixPublicDelegatedSubPrefix) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixesScopedList.java deleted file mode 100644 index 602bbc3b03d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/PublicDelegatedPrefixesScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for PublicDelegatedPrefixesScopedList. - * - *

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 PublicDelegatedPrefixesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List publicDelegatedPrefixes; - - static { - // hack to force ProGuard to consider PublicDelegatedPrefix 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(PublicDelegatedPrefix.class); - } - - /** - * [Output Only] Informational warning which replaces the list of public delegated prefixes when - * the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getPublicDelegatedPrefixes() { - return publicDelegatedPrefixes; - } - - /** - * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. - * @param publicDelegatedPrefixes publicDelegatedPrefixes or {@code null} for none - */ - public PublicDelegatedPrefixesScopedList setPublicDelegatedPrefixes(java.util.List publicDelegatedPrefixes) { - this.publicDelegatedPrefixes = publicDelegatedPrefixes; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of public delegated prefixes when - * the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of public delegated prefixes when - * the list is empty. - * @param warning warning or {@code null} for none - */ - public PublicDelegatedPrefixesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public PublicDelegatedPrefixesScopedList set(String fieldName, Object value) { - return (PublicDelegatedPrefixesScopedList) super.set(fieldName, value); - } - - @Override - public PublicDelegatedPrefixesScopedList clone() { - return (PublicDelegatedPrefixesScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of public delegated prefixes when the - * list is empty. - */ - 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 PublicDelegatedPrefixesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Quota.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Quota.java deleted file mode 100644 index f89a243d378..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Quota.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * A quotas entry. - * - *

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 Quota extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Quota limit for this metric. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double limit; - - /** - * [Output Only] Name of the quota metric. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metric; - - /** - * [Output Only] Owning resource. This is the resource on which this quota is applied. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String owner; - - /** - * [Output Only] Current usage of this metric. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double usage; - - /** - * [Output Only] Quota limit for this metric. - * @return value or {@code null} for none - */ - public java.lang.Double getLimit() { - return limit; - } - - /** - * [Output Only] Quota limit for this metric. - * @param limit limit or {@code null} for none - */ - public Quota setLimit(java.lang.Double limit) { - this.limit = limit; - return this; - } - - /** - * [Output Only] Name of the quota metric. - * @return value or {@code null} for none - */ - public java.lang.String getMetric() { - return metric; - } - - /** - * [Output Only] Name of the quota metric. - * @param metric metric or {@code null} for none - */ - public Quota setMetric(java.lang.String metric) { - this.metric = metric; - return this; - } - - /** - * [Output Only] Owning resource. This is the resource on which this quota is applied. - * @return value or {@code null} for none - */ - public java.lang.String getOwner() { - return owner; - } - - /** - * [Output Only] Owning resource. This is the resource on which this quota is applied. - * @param owner owner or {@code null} for none - */ - public Quota setOwner(java.lang.String owner) { - this.owner = owner; - return this; - } - - /** - * [Output Only] Current usage of this metric. - * @return value or {@code null} for none - */ - public java.lang.Double getUsage() { - return usage; - } - - /** - * [Output Only] Current usage of this metric. - * @param usage usage or {@code null} for none - */ - public Quota setUsage(java.lang.Double usage) { - this.usage = usage; - return this; - } - - @Override - public Quota set(String fieldName, Object value) { - return (Quota) super.set(fieldName, value); - } - - @Override - public Quota clone() { - return (Quota) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/QuotaExceededInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/QuotaExceededInfo.java deleted file mode 100644 index dc964bdd91d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/QuotaExceededInfo.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional details for quota exceeded error for resource quota. - * - *

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 QuotaExceededInfo extends com.google.api.client.json.GenericJson { - - /** - * The map holding related quota dimensions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map dimensions; - - /** - * Future quota limit being rolled out. The limit's unit depends on the quota type or metric. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double futureLimit; - - /** - * Current effective quota limit. The limit's unit depends on the quota type or metric. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double limit; - - /** - * The name of the quota limit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String limitName; - - /** - * The Compute Engine quota metric name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metricName; - - /** - * Rollout status of the future quota limit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rolloutStatus; - - /** - * The map holding related quota dimensions. - * @return value or {@code null} for none - */ - public java.util.Map getDimensions() { - return dimensions; - } - - /** - * The map holding related quota dimensions. - * @param dimensions dimensions or {@code null} for none - */ - public QuotaExceededInfo setDimensions(java.util.Map dimensions) { - this.dimensions = dimensions; - return this; - } - - /** - * Future quota limit being rolled out. The limit's unit depends on the quota type or metric. - * @return value or {@code null} for none - */ - public java.lang.Double getFutureLimit() { - return futureLimit; - } - - /** - * Future quota limit being rolled out. The limit's unit depends on the quota type or metric. - * @param futureLimit futureLimit or {@code null} for none - */ - public QuotaExceededInfo setFutureLimit(java.lang.Double futureLimit) { - this.futureLimit = futureLimit; - return this; - } - - /** - * Current effective quota limit. The limit's unit depends on the quota type or metric. - * @return value or {@code null} for none - */ - public java.lang.Double getLimit() { - return limit; - } - - /** - * Current effective quota limit. The limit's unit depends on the quota type or metric. - * @param limit limit or {@code null} for none - */ - public QuotaExceededInfo setLimit(java.lang.Double limit) { - this.limit = limit; - return this; - } - - /** - * The name of the quota limit. - * @return value or {@code null} for none - */ - public java.lang.String getLimitName() { - return limitName; - } - - /** - * The name of the quota limit. - * @param limitName limitName or {@code null} for none - */ - public QuotaExceededInfo setLimitName(java.lang.String limitName) { - this.limitName = limitName; - return this; - } - - /** - * The Compute Engine quota metric name. - * @return value or {@code null} for none - */ - public java.lang.String getMetricName() { - return metricName; - } - - /** - * The Compute Engine quota metric name. - * @param metricName metricName or {@code null} for none - */ - public QuotaExceededInfo setMetricName(java.lang.String metricName) { - this.metricName = metricName; - return this; - } - - /** - * Rollout status of the future quota limit. - * @return value or {@code null} for none - */ - public java.lang.String getRolloutStatus() { - return rolloutStatus; - } - - /** - * Rollout status of the future quota limit. - * @param rolloutStatus rolloutStatus or {@code null} for none - */ - public QuotaExceededInfo setRolloutStatus(java.lang.String rolloutStatus) { - this.rolloutStatus = rolloutStatus; - return this; - } - - @Override - public QuotaExceededInfo set(String fieldName, Object value) { - return (QuotaExceededInfo) super.set(fieldName, value); - } - - @Override - public QuotaExceededInfo clone() { - return (QuotaExceededInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reference.java deleted file mode 100644 index b48af1d0d2d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reference.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a reference to a 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 Reference extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A description of the reference type with no implied semantics. Possible values include: - * 1. MEMBER_OF - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String referenceType; - - /** - * URL of the resource which refers to the target. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String referrer; - - /** - * URL of the resource to which this reference points. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String target; - - /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. - * @param kind kind or {@code null} for none - */ - public Reference setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A description of the reference type with no implied semantics. Possible values include: - * 1. MEMBER_OF - * @return value or {@code null} for none - */ - public java.lang.String getReferenceType() { - return referenceType; - } - - /** - * A description of the reference type with no implied semantics. Possible values include: - * 1. MEMBER_OF - * @param referenceType referenceType or {@code null} for none - */ - public Reference setReferenceType(java.lang.String referenceType) { - this.referenceType = referenceType; - return this; - } - - /** - * URL of the resource which refers to the target. - * @return value or {@code null} for none - */ - public java.lang.String getReferrer() { - return referrer; - } - - /** - * URL of the resource which refers to the target. - * @param referrer referrer or {@code null} for none - */ - public Reference setReferrer(java.lang.String referrer) { - this.referrer = referrer; - return this; - } - - /** - * URL of the resource to which this reference points. - * @return value or {@code null} for none - */ - public java.lang.String getTarget() { - return target; - } - - /** - * URL of the resource to which this reference points. - * @param target target or {@code null} for none - */ - public Reference setTarget(java.lang.String target) { - this.target = target; - return this; - } - - @Override - public Reference set(String fieldName, Object value) { - return (Reference) super.set(fieldName, value); - } - - @Override - public Reference clone() { - return (Reference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegexRewrite.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegexRewrite.java deleted file mode 100644 index 6a4539db1b8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegexRewrite.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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.preview.model; - -/** - * The spec for modifying the path using a regular expression. - * - *

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 RegexRewrite extends com.google.api.client.json.GenericJson { - - /** - * Required. The regular expression used to match against the URL path. It uses RE2 syntax with - * the following constraints: - Any single character operators - Groups are - * allowed to have only submatch operator inside - Groups are allowed only without any char - * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used - * in a single regex together with: - Empty string operators - * - Other repetitions - Ranges - Repetitions of ranges - * - Ranges are only allowed to have: - Character range - - * Digits range - Symbols listed in characters allowed for ranges - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathPattern; - - /** - * Required. Required when path pattern is specified. Used to rewrite matching parts of the path. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathSubstitution; - - /** - * Required. The regular expression used to match against the URL path. It uses RE2 syntax with - * the following constraints: - Any single character operators - Groups are - * allowed to have only submatch operator inside - Groups are allowed only without any char - * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used - * in a single regex together with: - Empty string operators - * - Other repetitions - Ranges - Repetitions of ranges - * - Ranges are only allowed to have: - Character range - - * Digits range - Symbols listed in characters allowed for ranges - * @return value or {@code null} for none - */ - public java.lang.String getPathPattern() { - return pathPattern; - } - - /** - * Required. The regular expression used to match against the URL path. It uses RE2 syntax with - * the following constraints: - Any single character operators - Groups are - * allowed to have only submatch operator inside - Groups are allowed only without any char - * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used - * in a single regex together with: - Empty string operators - * - Other repetitions - Ranges - Repetitions of ranges - * - Ranges are only allowed to have: - Character range - - * Digits range - Symbols listed in characters allowed for ranges - * @param pathPattern pathPattern or {@code null} for none - */ - public RegexRewrite setPathPattern(java.lang.String pathPattern) { - this.pathPattern = pathPattern; - return this; - } - - /** - * Required. Required when path pattern is specified. Used to rewrite matching parts of the path. - * @return value or {@code null} for none - */ - public java.lang.String getPathSubstitution() { - return pathSubstitution; - } - - /** - * Required. Required when path pattern is specified. Used to rewrite matching parts of the path. - * @param pathSubstitution pathSubstitution or {@code null} for none - */ - public RegexRewrite setPathSubstitution(java.lang.String pathSubstitution) { - this.pathSubstitution = pathSubstitution; - return this; - } - - @Override - public RegexRewrite set(String fieldName, Object value) { - return (RegexRewrite) super.set(fieldName, value); - } - - @Override - public RegexRewrite clone() { - return (RegexRewrite) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Region.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Region.java deleted file mode 100644 index e4f5e6bed37..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Region.java +++ /dev/null @@ -1,526 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Region resource. - * - * A region is a geographical area where a resource is located. For more information, readRegions - * and Zones. - * - *

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 Region extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] The deprecation status associated with this region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * [Output Only] Textual description of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [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] Type of the resource. Always compute#region for regions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field - * is populated only if fetching of the `quotas` field fails. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaStatusWarning quotaStatusWarning; - - /** - * [Output Only] Quotas assigned to this region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List quotas; - - static { - // hack to force ProGuard to consider Quota 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(Quota.class); - } - - /** - * [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] Status of the region, either UP orDOWN. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean supportsPzs; - - /** - * [Output Only] A list of zones available in this region, in the form of resource URLs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List zones; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Region setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] The deprecation status associated with this region. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * [Output Only] The deprecation status associated with this region. - * @param deprecated deprecated or {@code null} for none - */ - public Region setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * [Output Only] Textual description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * [Output Only] Textual description of the resource. - * @param description description or {@code null} for none - */ - public Region setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public Region setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. - * @param kind kind or {@code null} for none - */ - public Region setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public Region setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field - * is populated only if fetching of the `quotas` field fails. - * @return value or {@code null} for none - */ - public QuotaStatusWarning getQuotaStatusWarning() { - return quotaStatusWarning; - } - - /** - * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field - * is populated only if fetching of the `quotas` field fails. - * @param quotaStatusWarning quotaStatusWarning or {@code null} for none - */ - public Region setQuotaStatusWarning(QuotaStatusWarning quotaStatusWarning) { - this.quotaStatusWarning = quotaStatusWarning; - return this; - } - - /** - * [Output Only] Quotas assigned to this region. - * @return value or {@code null} for none - */ - public java.util.List getQuotas() { - return quotas; - } - - /** - * [Output Only] Quotas assigned to this region. - * @param quotas quotas or {@code null} for none - */ - public Region setQuotas(java.util.List quotas) { - this.quotas = quotas; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Region setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] Status of the region, either UP orDOWN. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] Status of the region, either UP orDOWN. - * @param status status or {@code null} for none - */ - public Region setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSupportsPzs() { - return supportsPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param supportsPzs supportsPzs or {@code null} for none - */ - public Region setSupportsPzs(java.lang.Boolean supportsPzs) { - this.supportsPzs = supportsPzs; - return this; - } - - /** - * [Output Only] A list of zones available in this region, in the form of resource URLs. - * @return value or {@code null} for none - */ - public java.util.List getZones() { - return zones; - } - - /** - * [Output Only] A list of zones available in this region, in the form of resource URLs. - * @param zones zones or {@code null} for none - */ - public Region setZones(java.util.List zones) { - this.zones = zones; - return this; - } - - @Override - public Region set(String fieldName, Object value) { - return (Region) super.set(fieldName, value); - } - - @Override - public Region clone() { - return (Region) super.clone(); - } - - /** - * Output only. [Output Only] Warning of fetching the `quotas` field for this region. This field is - * populated only if fetching of the `quotas` field fails. - */ - public static final class QuotaStatusWarning 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 QuotaStatusWarning 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 QuotaStatusWarning 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 QuotaStatusWarning setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public QuotaStatusWarning set(String fieldName, Object value) { - return (QuotaStatusWarning) super.set(fieldName, value); - } - - @Override - public QuotaStatusWarning clone() { - return (QuotaStatusWarning) super.clone(); - } - - /** - * Model definition for RegionQuotaStatusWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAddressesMoveRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAddressesMoveRequest.java deleted file mode 100644 index e0df900a4a1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAddressesMoveRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionAddressesMoveRequest. - * - *

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 RegionAddressesMoveRequest extends com.google.api.client.json.GenericJson { - - /** - * An optional destination address description if intended to be different from the source. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The URL of the destination address to move to. This can be a full or partial URL. For example, - * the following are all valid URLs to a address: - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address - - * projects/project/regions/region/addresses/address - * - * Note that destination project must be different from the source project. - * So/regions/region/addresses/address is not valid partial url. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destinationAddress; - - /** - * An optional destination address description if intended to be different from the source. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional destination address description if intended to be different from the source. - * @param description description or {@code null} for none - */ - public RegionAddressesMoveRequest setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The URL of the destination address to move to. This can be a full or partial URL. For example, - * the following are all valid URLs to a address: - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address - - * projects/project/regions/region/addresses/address - * - * Note that destination project must be different from the source project. - * So/regions/region/addresses/address is not valid partial url. - * @return value or {@code null} for none - */ - public java.lang.String getDestinationAddress() { - return destinationAddress; - } - - /** - * The URL of the destination address to move to. This can be a full or partial URL. For example, - * the following are all valid URLs to a address: - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address - - * projects/project/regions/region/addresses/address - * - * Note that destination project must be different from the source project. - * So/regions/region/addresses/address is not valid partial url. - * @param destinationAddress destinationAddress or {@code null} for none - */ - public RegionAddressesMoveRequest setDestinationAddress(java.lang.String destinationAddress) { - this.destinationAddress = destinationAddress; - return this; - } - - @Override - public RegionAddressesMoveRequest set(String fieldName, Object value) { - return (RegionAddressesMoveRequest) super.set(fieldName, value); - } - - @Override - public RegionAddressesMoveRequest clone() { - return (RegionAddressesMoveRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAutoscalerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAutoscalerList.java deleted file mode 100644 index d1d4741fda9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionAutoscalerList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of autoscalers. - * - *

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 RegionAutoscalerList extends com.google.api.client.json.GenericJson { - - /** - * [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 Autoscaler 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 Autoscaler 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(Autoscaler.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 RegionAutoscalerList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Autoscaler resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Autoscaler resources. - * @param items items or {@code null} for none - */ - public RegionAutoscalerList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public RegionAutoscalerList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionAutoscalerList 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 RegionAutoscalerList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 RegionAutoscalerList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionAutoscalerList set(String fieldName, Object value) { - return (RegionAutoscalerList) super.set(fieldName, value); - } - - @Override - public RegionAutoscalerList clone() { - return (RegionAutoscalerList) 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 RegionAutoscalerListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskTypeList.java deleted file mode 100644 index 5c1b66ad8e1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskTypeList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionDiskTypeList. - * - *

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 RegionDiskTypeList extends com.google.api.client.json.GenericJson { - - /** - * [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 DiskType 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 DiskType 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(DiskType.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 RegionDiskTypeList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of DiskType resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of DiskType resources. - * @param items items or {@code null} for none - */ - public RegionDiskTypeList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. - * @param kind kind or {@code null} for none - */ - public RegionDiskTypeList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionDiskTypeList 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 RegionDiskTypeList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 RegionDiskTypeList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionDiskTypeList set(String fieldName, Object value) { - return (RegionDiskTypeList) super.set(fieldName, value); - } - - @Override - public RegionDiskTypeList clone() { - return (RegionDiskTypeList) 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 RegionDiskTypeListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskUpdateKmsKeyRequest.java deleted file mode 100644 index d1d40978bf9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDiskUpdateKmsKeyRequest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionDiskUpdateKmsKeyRequest. - * - *

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 RegionDiskUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be - * re-encrypted using the primary version of the disk's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key - * - * Where project is the project ID or project number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kmsKeyName; - - /** - * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be - * re-encrypted using the primary version of the disk's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key - * - * Where project is the project ID or project number. - * @return value or {@code null} for none - */ - public java.lang.String getKmsKeyName() { - return kmsKeyName; - } - - /** - * Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be - * re-encrypted using the primary version of the disk's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key - * - * Where project is the project ID or project number. - * @param kmsKeyName kmsKeyName or {@code null} for none - */ - public RegionDiskUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { - this.kmsKeyName = kmsKeyName; - return this; - } - - @Override - public RegionDiskUpdateKmsKeyRequest set(String fieldName, Object value) { - return (RegionDiskUpdateKmsKeyRequest) super.set(fieldName, value); - } - - @Override - public RegionDiskUpdateKmsKeyRequest clone() { - return (RegionDiskUpdateKmsKeyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksAddResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksAddResourcePoliciesRequest.java deleted file mode 100644 index da7f1d8dace..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksAddResourcePoliciesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionDisksAddResourcePoliciesRequest. - * - *

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 RegionDisksAddResourcePoliciesRequest extends com.google.api.client.json.GenericJson { - - /** - * Resource policies to be added to this disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Resource policies to be added to this disk. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies to be added to this disk. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public RegionDisksAddResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - @Override - public RegionDisksAddResourcePoliciesRequest set(String fieldName, Object value) { - return (RegionDisksAddResourcePoliciesRequest) super.set(fieldName, value); - } - - @Override - public RegionDisksAddResourcePoliciesRequest clone() { - return (RegionDisksAddResourcePoliciesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksRemoveResourcePoliciesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksRemoveResourcePoliciesRequest.java deleted file mode 100644 index 791bace5d1f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksRemoveResourcePoliciesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionDisksRemoveResourcePoliciesRequest. - * - *

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 RegionDisksRemoveResourcePoliciesRequest extends com.google.api.client.json.GenericJson { - - /** - * Resource policies to be removed from this disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Resource policies to be removed from this disk. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies to be removed from this disk. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public RegionDisksRemoveResourcePoliciesRequest setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - @Override - public RegionDisksRemoveResourcePoliciesRequest set(String fieldName, Object value) { - return (RegionDisksRemoveResourcePoliciesRequest) super.set(fieldName, value); - } - - @Override - public RegionDisksRemoveResourcePoliciesRequest clone() { - return (RegionDisksRemoveResourcePoliciesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksResizeRequest.java deleted file mode 100644 index a5a90c126fd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksResizeRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionDisksResizeRequest. - * - *

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 RegionDisksResizeRequest extends com.google.api.client.json.GenericJson { - - /** - * The new size of the regional persistent disk, which is specified in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long sizeGb; - - /** - * The new size of the regional persistent disk, which is specified in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getSizeGb() { - return sizeGb; - } - - /** - * The new size of the regional persistent disk, which is specified in GB. - * @param sizeGb sizeGb or {@code null} for none - */ - public RegionDisksResizeRequest setSizeGb(java.lang.Long sizeGb) { - this.sizeGb = sizeGb; - return this; - } - - @Override - public RegionDisksResizeRequest set(String fieldName, Object value) { - return (RegionDisksResizeRequest) super.set(fieldName, value); - } - - @Override - public RegionDisksResizeRequest clone() { - return (RegionDisksResizeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksStartAsyncReplicationRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksStartAsyncReplicationRequest.java deleted file mode 100644 index 82fadeb8235..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionDisksStartAsyncReplicationRequest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionDisksStartAsyncReplicationRequest. - * - *

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 RegionDisksStartAsyncReplicationRequest extends com.google.api.client.json.GenericJson { - - /** - * The secondary disk to start asynchronous replication to. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String asyncSecondaryDisk; - - /** - * The secondary disk to start asynchronous replication to. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getAsyncSecondaryDisk() { - return asyncSecondaryDisk; - } - - /** - * The secondary disk to start asynchronous replication to. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk - - * projects/project/zones/zone/disks/disk - - * projects/project/regions/region/disks/disk - zones/zone/disks/disk - * - regions/region/disks/disk - * @param asyncSecondaryDisk asyncSecondaryDisk or {@code null} for none - */ - public RegionDisksStartAsyncReplicationRequest setAsyncSecondaryDisk(java.lang.String asyncSecondaryDisk) { - this.asyncSecondaryDisk = asyncSecondaryDisk; - return this; - } - - @Override - public RegionDisksStartAsyncReplicationRequest set(String fieldName, Object value) { - return (RegionDisksStartAsyncReplicationRequest) super.set(fieldName, value); - } - - @Override - public RegionDisksStartAsyncReplicationRequest clone() { - return (RegionDisksStartAsyncReplicationRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupList.java deleted file mode 100644 index 072899552d3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of InstanceGroup resources. - * - *

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 RegionInstanceGroupList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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 InstanceGroup 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 InstanceGroup 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(InstanceGroup.class); - } - - /** - * Output only. The resource type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public RegionInstanceGroupList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceGroup resources. - * @param items items or {@code null} for none - */ - public RegionInstanceGroupList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. The resource type. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type. - * @param kind kind or {@code null} for none - */ - public RegionInstanceGroupList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupList 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 RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public RegionInstanceGroupList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionInstanceGroupList set(String fieldName, Object value) { - return (RegionInstanceGroupList) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupList clone() { - return (RegionInstanceGroupList) super.clone(); - } - - /** - * Output only. [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 RegionInstanceGroupListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java deleted file mode 100644 index 410ec8cead4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerDeleteInstanceConfigReq.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * RegionInstanceGroupManagers.deletePerInstanceConfigs - * - *

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 RegionInstanceGroupManagerDeleteInstanceConfigReq extends com.google.api.client.json.GenericJson { - - /** - * The list of instance names for which we want to delete per-instance configs on this managed - * instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List names; - - /** - * The list of instance names for which we want to delete per-instance configs on this managed - * instance group. - * @return value or {@code null} for none - */ - public java.util.List getNames() { - return names; - } - - /** - * The list of instance names for which we want to delete per-instance configs on this managed - * instance group. - * @param names names or {@code null} for none - */ - public RegionInstanceGroupManagerDeleteInstanceConfigReq setNames(java.util.List names) { - this.names = names; - return this; - } - - @Override - public RegionInstanceGroupManagerDeleteInstanceConfigReq set(String fieldName, Object value) { - return (RegionInstanceGroupManagerDeleteInstanceConfigReq) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagerDeleteInstanceConfigReq clone() { - return (RegionInstanceGroupManagerDeleteInstanceConfigReq) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerList.java deleted file mode 100644 index 042acb83e00..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of managed instance groups. - * - *

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 RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { - - /** - * 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 InstanceGroupManager 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 InstanceGroupManager 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(InstanceGroupManager.class); - } - - /** - * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * 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. Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * 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 RegionInstanceGroupManagerList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceGroupManager resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceGroupManager resources. - * @param items items or {@code null} for none - */ - public RegionInstanceGroupManagerList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. - * @param kind kind or {@code null} for none - */ - public RegionInstanceGroupManagerList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public RegionInstanceGroupManagerList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 RegionInstanceGroupManagerList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionInstanceGroupManagerList set(String fieldName, Object value) { - return (RegionInstanceGroupManagerList) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagerList clone() { - return (RegionInstanceGroupManagerList) 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 RegionInstanceGroupManagerListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java deleted file mode 100644 index 3e34b3225b5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerPatchInstanceConfigReq.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * RegionInstanceGroupManagers.patchPerInstanceConfigs - * - *

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 RegionInstanceGroupManagerPatchInstanceConfigReq extends com.google.api.client.json.GenericJson { - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List perInstanceConfigs; - - static { - // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); - } - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getPerInstanceConfigs() { - return perInstanceConfigs; - } - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @param perInstanceConfigs perInstanceConfigs or {@code null} for none - */ - public RegionInstanceGroupManagerPatchInstanceConfigReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { - this.perInstanceConfigs = perInstanceConfigs; - return this; - } - - @Override - public RegionInstanceGroupManagerPatchInstanceConfigReq set(String fieldName, Object value) { - return (RegionInstanceGroupManagerPatchInstanceConfigReq) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagerPatchInstanceConfigReq clone() { - return (RegionInstanceGroupManagerPatchInstanceConfigReq) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerResizeRequestsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerResizeRequestsListResponse.java deleted file mode 100644 index f688d11615b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerResizeRequestsListResponse.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagerResizeRequestsListResponse. - * - *

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 RegionInstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 Resize Request 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 InstanceGroupManagerResizeRequest 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(InstanceGroupManagerResizeRequest.class); - } - - /** - * Output only. Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * 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. Unreachable resources. end_interface: MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Resize Request resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Resize Request resources. - * @param items items or {@code null} for none - */ - public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. - * @param kind kind or {@code null} for none - */ - public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. Unreachable resources. end_interface: MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. Unreachable resources. end_interface: MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionInstanceGroupManagerResizeRequestsListResponse set(String fieldName, Object value) { - return (RegionInstanceGroupManagerResizeRequestsListResponse) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagerResizeRequestsListResponse clone() { - return (RegionInstanceGroupManagerResizeRequestsListResponse) 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 RegionInstanceGroupManagerResizeRequestsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java deleted file mode 100644 index ab489dfe889..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagerUpdateInstanceConfigReq.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * RegionInstanceGroupManagers.updatePerInstanceConfigs - * - *

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 RegionInstanceGroupManagerUpdateInstanceConfigReq extends com.google.api.client.json.GenericJson { - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List perInstanceConfigs; - - static { - // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); - } - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getPerInstanceConfigs() { - return perInstanceConfigs; - } - - /** - * The list of per-instance configurations to insert or patch on this managed instance group. - * @param perInstanceConfigs perInstanceConfigs or {@code null} for none - */ - public RegionInstanceGroupManagerUpdateInstanceConfigReq setPerInstanceConfigs(java.util.List perInstanceConfigs) { - this.perInstanceConfigs = perInstanceConfigs; - return this; - } - - @Override - public RegionInstanceGroupManagerUpdateInstanceConfigReq set(String fieldName, Object value) { - return (RegionInstanceGroupManagerUpdateInstanceConfigReq) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagerUpdateInstanceConfigReq clone() { - return (RegionInstanceGroupManagerUpdateInstanceConfigReq) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersAbandonInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersAbandonInstancesRequest.java deleted file mode 100644 index 8715e7a2c8d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersAbandonInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersAbandonInstancesRequest. - * - *

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 RegionInstanceGroupManagersAbandonInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersAbandonInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersAbandonInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersAbandonInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersAbandonInstancesRequest clone() { - return (RegionInstanceGroupManagersAbandonInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersApplyUpdatesRequest.java deleted file mode 100644 index 3d4a62f2a0f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersApplyUpdatesRequest.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.preview.model; - -/** - * RegionInstanceGroupManagers.applyUpdatesToInstances - * - *

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 RegionInstanceGroupManagersApplyUpdatesRequest extends com.google.api.client.json.GenericJson { - - /** - * Flag to update all instances instead of specified list of "instances". If the flag is set to - * true then the instances may not be specified in the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allInstances; - - /** - * The list of URLs of one or more instances for which you want to apply updates. Each URL can be - * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The minimal action that you want to perform on each instance during the update: - - * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the - * instance and start it again. - REFRESH: Do not stop the instance and limit - * disruption as much as possible. - NONE: Do not disrupt the instance at all. - * - * By default, the minimum action is NONE. If your update requires a more disruptive action than - * you set with this flag, the necessary action is performed to execute the update. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minimalAction; - - /** - * The most disruptive action that you want to perform on each instance during the update: - * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start - * it again. - REFRESH: Do not stop the instance and limit disruption as much as - * possible. - NONE: Do not disrupt the instance at all. - * - * By default, the most disruptive allowed action is REPLACE. If your update requires a more - * disruptive action than you set with this flag, the update request will fail. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mostDisruptiveAllowedAction; - - /** - * Flag to update all instances instead of specified list of "instances". If the flag is set to - * true then the instances may not be specified in the request. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllInstances() { - return allInstances; - } - - /** - * Flag to update all instances instead of specified list of "instances". If the flag is set to - * true then the instances may not be specified in the request. - * @param allInstances allInstances or {@code null} for none - */ - public RegionInstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolean allInstances) { - this.allInstances = allInstances; - return this; - } - - /** - * The list of URLs of one or more instances for which you want to apply updates. Each URL can be - * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The list of URLs of one or more instances for which you want to apply updates. Each URL can be - * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersApplyUpdatesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * The minimal action that you want to perform on each instance during the update: - - * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the - * instance and start it again. - REFRESH: Do not stop the instance and limit - * disruption as much as possible. - NONE: Do not disrupt the instance at all. - * - * By default, the minimum action is NONE. If your update requires a more disruptive action than - * you set with this flag, the necessary action is performed to execute the update. - * @return value or {@code null} for none - */ - public java.lang.String getMinimalAction() { - return minimalAction; - } - - /** - * The minimal action that you want to perform on each instance during the update: - - * REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the - * instance and start it again. - REFRESH: Do not stop the instance and limit - * disruption as much as possible. - NONE: Do not disrupt the instance at all. - * - * By default, the minimum action is NONE. If your update requires a more disruptive action than - * you set with this flag, the necessary action is performed to execute the update. - * @param minimalAction minimalAction or {@code null} for none - */ - public RegionInstanceGroupManagersApplyUpdatesRequest setMinimalAction(java.lang.String minimalAction) { - this.minimalAction = minimalAction; - return this; - } - - /** - * The most disruptive action that you want to perform on each instance during the update: - * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start - * it again. - REFRESH: Do not stop the instance and limit disruption as much as - * possible. - NONE: Do not disrupt the instance at all. - * - * By default, the most disruptive allowed action is REPLACE. If your update requires a more - * disruptive action than you set with this flag, the update request will fail. - * @return value or {@code null} for none - */ - public java.lang.String getMostDisruptiveAllowedAction() { - return mostDisruptiveAllowedAction; - } - - /** - * The most disruptive action that you want to perform on each instance during the update: - * - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start - * it again. - REFRESH: Do not stop the instance and limit disruption as much as - * possible. - NONE: Do not disrupt the instance at all. - * - * By default, the most disruptive allowed action is REPLACE. If your update requires a more - * disruptive action than you set with this flag, the update request will fail. - * @param mostDisruptiveAllowedAction mostDisruptiveAllowedAction or {@code null} for none - */ - public RegionInstanceGroupManagersApplyUpdatesRequest setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { - this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; - return this; - } - - @Override - public RegionInstanceGroupManagersApplyUpdatesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersApplyUpdatesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersApplyUpdatesRequest clone() { - return (RegionInstanceGroupManagersApplyUpdatesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersCreateInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersCreateInstancesRequest.java deleted file mode 100644 index ecee2e1ef5c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersCreateInstancesRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * RegionInstanceGroupManagers.createInstances - * - *

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 RegionInstanceGroupManagersCreateInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * [Required] List of specifications of per-instance configs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - static { - // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); - } - - /** - * [Required] List of specifications of per-instance configs. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * [Required] List of specifications of per-instance configs. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersCreateInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersCreateInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersCreateInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersCreateInstancesRequest clone() { - return (RegionInstanceGroupManagersCreateInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersDeleteInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersDeleteInstancesRequest.java deleted file mode 100644 index cdf9fc79926..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersDeleteInstancesRequest.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersDeleteInstancesRequest. - * - *

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 RegionInstanceGroupManagersDeleteInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * Specifies whether the request should proceed despite the inclusion of instances that are not - * members of the group or that are already in the process of being deleted or abandoned. If this - * field is set to `false` and such an instance is specified in the request, the operation fails. - * The operation always fails if the request contains a malformed instance URL or a reference to - * an instance that exists in a zone or region other than the group's zone or region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean skipInstancesOnValidationError; - - /** - * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersDeleteInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * Specifies whether the request should proceed despite the inclusion of instances that are not - * members of the group or that are already in the process of being deleted or abandoned. If this - * field is set to `false` and such an instance is specified in the request, the operation fails. - * The operation always fails if the request contains a malformed instance URL or a reference to - * an instance that exists in a zone or region other than the group's zone or region. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSkipInstancesOnValidationError() { - return skipInstancesOnValidationError; - } - - /** - * Specifies whether the request should proceed despite the inclusion of instances that are not - * members of the group or that are already in the process of being deleted or abandoned. If this - * field is set to `false` and such an instance is specified in the request, the operation fails. - * The operation always fails if the request contains a malformed instance URL or a reference to - * an instance that exists in a zone or region other than the group's zone or region. - * @param skipInstancesOnValidationError skipInstancesOnValidationError or {@code null} for none - */ - public RegionInstanceGroupManagersDeleteInstancesRequest setSkipInstancesOnValidationError(java.lang.Boolean skipInstancesOnValidationError) { - this.skipInstancesOnValidationError = skipInstancesOnValidationError; - return this; - } - - @Override - public RegionInstanceGroupManagersDeleteInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersDeleteInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersDeleteInstancesRequest clone() { - return (RegionInstanceGroupManagersDeleteInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListErrorsResponse.java deleted file mode 100644 index bb65a523e68..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListErrorsResponse.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersListErrorsResponse. - * - *

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 RegionInstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The list of errors of the managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider InstanceManagedByIgmError 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(InstanceManagedByIgmError.class); - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] The list of errors of the managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output Only] The list of errors of the managed instance group. - * @param items items or {@code null} for none - */ - public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupManagersListErrorsResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public RegionInstanceGroupManagersListErrorsResponse set(String fieldName, Object value) { - return (RegionInstanceGroupManagersListErrorsResponse) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersListErrorsResponse clone() { - return (RegionInstanceGroupManagersListErrorsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstanceConfigsResp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstanceConfigsResp.java deleted file mode 100644 index 5b3c74c252b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstanceConfigsResp.java +++ /dev/null @@ -1,311 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersListInstanceConfigsResp. - * - *

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 RegionInstanceGroupManagersListInstanceConfigsResp extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The list of PerInstanceConfig. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider PerInstanceConfig 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(PerInstanceConfig.class); - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Output only. [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [Output Only] The list of PerInstanceConfig. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. [Output Only] The list of PerInstanceConfig. - * @param items items or {@code null} for none - */ - public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionInstanceGroupManagersListInstanceConfigsResp set(String fieldName, Object value) { - return (RegionInstanceGroupManagersListInstanceConfigsResp) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersListInstanceConfigsResp clone() { - return (RegionInstanceGroupManagersListInstanceConfigsResp) super.clone(); - } - - /** - * Output only. [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 RegionInstanceGroupManagersListInstanceConfigsRespWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstancesResponse.java deleted file mode 100644 index 0dd0fe6ab3e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersListInstancesResponse.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersListInstancesResponse. - * - *

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 RegionInstanceGroupManagersListInstancesResponse extends com.google.api.client.json.GenericJson { - - /** - * A list of managed instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List managedInstances; - - static { - // hack to force ProGuard to consider ManagedInstance 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(ManagedInstance.class); - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * A list of managed instances. - * @return value or {@code null} for none - */ - public java.util.List getManagedInstances() { - return managedInstances; - } - - /** - * A list of managed instances. - * @param managedInstances managedInstances or {@code null} for none - */ - public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java.util.List managedInstances) { - this.managedInstances = managedInstances; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupManagersListInstancesResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - @Override - public RegionInstanceGroupManagersListInstancesResponse set(String fieldName, Object value) { - return (RegionInstanceGroupManagersListInstancesResponse) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersListInstancesResponse clone() { - return (RegionInstanceGroupManagersListInstancesResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersRecreateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersRecreateRequest.java deleted file mode 100644 index ce125b65357..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersRecreateRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersRecreateRequest. - * - *

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 RegionInstanceGroupManagersRecreateRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersRecreateRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersRecreateRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersRecreateRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersRecreateRequest clone() { - return (RegionInstanceGroupManagersRecreateRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersResumeInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersResumeInstancesRequest.java deleted file mode 100644 index 9e517d748b2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersResumeInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersResumeInstancesRequest. - * - *

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 RegionInstanceGroupManagersResumeInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to resume. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersResumeInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersResumeInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersResumeInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersResumeInstancesRequest clone() { - return (RegionInstanceGroupManagersResumeInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java deleted file mode 100644 index e865df8a3c4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTargetPoolsRequest.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersSetTargetPoolsRequest. - * - *

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 RegionInstanceGroupManagersSetTargetPoolsRequest extends com.google.api.client.json.GenericJson { - - /** - * Fingerprint of the target pools information, which is a hash of the contents. This field is - * used for optimistic locking when you update the target pool entries. This field is optional. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The - * target pools automatically apply to all of the instances in the managed instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetPools; - - /** - * Fingerprint of the target pools information, which is a hash of the contents. This field is - * used for optimistic locking when you update the target pool entries. This field is optional. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of the target pools information, which is a hash of the contents. This field is - * used for optimistic locking when you update the target pool entries. This field is optional. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of the target pools information, which is a hash of the contents. This field is - * used for optimistic locking when you update the target pool entries. This field is optional. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public RegionInstanceGroupManagersSetTargetPoolsRequest setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of the target pools information, which is a hash of the contents. This field is - * used for optimistic locking when you update the target pool entries. This field is optional. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public RegionInstanceGroupManagersSetTargetPoolsRequest encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The - * target pools automatically apply to all of the instances in the managed instance group. - * @return value or {@code null} for none - */ - public java.util.List getTargetPools() { - return targetPools; - } - - /** - * The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The - * target pools automatically apply to all of the instances in the managed instance group. - * @param targetPools targetPools or {@code null} for none - */ - public RegionInstanceGroupManagersSetTargetPoolsRequest setTargetPools(java.util.List targetPools) { - this.targetPools = targetPools; - return this; - } - - @Override - public RegionInstanceGroupManagersSetTargetPoolsRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersSetTargetPoolsRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersSetTargetPoolsRequest clone() { - return (RegionInstanceGroupManagersSetTargetPoolsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTemplateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTemplateRequest.java deleted file mode 100644 index 8d2a2a3bf20..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSetTemplateRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersSetTemplateRequest. - * - *

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 RegionInstanceGroupManagersSetTemplateRequest extends com.google.api.client.json.GenericJson { - - /** - * URL of the InstanceTemplate resource from which all new instances will be created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** - * URL of the InstanceTemplate resource from which all new instances will be created. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** - * URL of the InstanceTemplate resource from which all new instances will be created. - * @param instanceTemplate instanceTemplate or {@code null} for none - */ - public RegionInstanceGroupManagersSetTemplateRequest setInstanceTemplate(java.lang.String instanceTemplate) { - this.instanceTemplate = instanceTemplate; - return this; - } - - @Override - public RegionInstanceGroupManagersSetTemplateRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersSetTemplateRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersSetTemplateRequest clone() { - return (RegionInstanceGroupManagersSetTemplateRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStartInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStartInstancesRequest.java deleted file mode 100644 index 8ce783b0bd9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStartInstancesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersStartInstancesRequest. - * - *

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 RegionInstanceGroupManagersStartInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to start. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersStartInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersStartInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersStartInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersStartInstancesRequest clone() { - return (RegionInstanceGroupManagersStartInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStopInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStopInstancesRequest.java deleted file mode 100644 index b84e6434775..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersStopInstancesRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersStopInstancesRequest. - * - *

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 RegionInstanceGroupManagersStopInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, - * skipping initialization on them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceStop; - - /** - * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, - * skipping initialization on them. - * @return value or {@code null} for none - */ - public java.lang.Boolean getForceStop() { - return forceStop; - } - - /** - * If this flag is set to true, the Instance Group Manager will proceed to stop the instances, - * skipping initialization on them. - * @param forceStop forceStop or {@code null} for none - */ - public RegionInstanceGroupManagersStopInstancesRequest setForceStop(java.lang.Boolean forceStop) { - this.forceStop = forceStop; - return this; - } - - /** - * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to stop. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersStopInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersStopInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersStopInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersStopInstancesRequest clone() { - return (RegionInstanceGroupManagersStopInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSuspendInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSuspendInstancesRequest.java deleted file mode 100644 index b73fe2556bf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupManagersSuspendInstancesRequest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupManagersSuspendInstancesRequest. - * - *

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 RegionInstanceGroupManagersSuspendInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, - * skipping initialization on them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceSuspend; - - /** - * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, - * skipping initialization on them. - * @return value or {@code null} for none - */ - public java.lang.Boolean getForceSuspend() { - return forceSuspend; - } - - /** - * If this flag is set to true, the Instance Group Manager will proceed to suspend the instances, - * skipping initialization on them. - * @param forceSuspend forceSuspend or {@code null} for none - */ - public RegionInstanceGroupManagersSuspendInstancesRequest setForceSuspend(java.lang.Boolean forceSuspend) { - this.forceSuspend = forceSuspend; - return this; - } - - /** - * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as - * zones/[ZONE]/instances/[INSTANCE_NAME]. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersSuspendInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersSuspendInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersSuspendInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersSuspendInstancesRequest clone() { - return (RegionInstanceGroupManagersSuspendInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstances.java deleted file mode 100644 index dd87d1c992c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstances.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupsListInstances. - * - *

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 RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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 InstanceWithNamedPorts 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 InstanceWithNamedPorts 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(InstanceWithNamedPorts.class); - } - - /** - * Output only. The resource type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public RegionInstanceGroupsListInstances setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of InstanceWithNamedPorts resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of InstanceWithNamedPorts resources. - * @param items items or {@code null} for none - */ - public RegionInstanceGroupsListInstances setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. The resource type. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. The resource type. - * @param kind kind or {@code null} for none - */ - public RegionInstanceGroupsListInstances setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionInstanceGroupsListInstances 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 RegionInstanceGroupsListInstances setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public RegionInstanceGroupsListInstances setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionInstanceGroupsListInstances set(String fieldName, Object value) { - return (RegionInstanceGroupsListInstances) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupsListInstances clone() { - return (RegionInstanceGroupsListInstances) super.clone(); - } - - /** - * Output only. [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 RegionInstanceGroupsListInstancesWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstancesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstancesRequest.java deleted file mode 100644 index 5008e91407d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsListInstancesRequest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupsListInstancesRequest. - * - *

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 RegionInstanceGroupsListInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, - * it lists all instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceState; - - /** - * Name of port user is interested in. It is optional. If it is set, only information about this - * ports will be returned. If it is not set, all the named ports will be returned. Always lists - * all instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, - * it lists all instances. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceState() { - return instanceState; - } - - /** - * Instances in which state should be returned. Valid options are: 'ALL', 'RUNNING'. By default, - * it lists all instances. - * @param instanceState instanceState or {@code null} for none - */ - public RegionInstanceGroupsListInstancesRequest setInstanceState(java.lang.String instanceState) { - this.instanceState = instanceState; - return this; - } - - /** - * Name of port user is interested in. It is optional. If it is set, only information about this - * ports will be returned. If it is not set, all the named ports will be returned. Always lists - * all instances. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Name of port user is interested in. It is optional. If it is set, only information about this - * ports will be returned. If it is not set, all the named ports will be returned. Always lists - * all instances. - * @param portName portName or {@code null} for none - */ - public RegionInstanceGroupsListInstancesRequest setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - @Override - public RegionInstanceGroupsListInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupsListInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupsListInstancesRequest clone() { - return (RegionInstanceGroupsListInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsSetNamedPortsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsSetNamedPortsRequest.java deleted file mode 100644 index 2d8a807b2e2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionInstanceGroupsSetNamedPortsRequest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionInstanceGroupsSetNamedPortsRequest. - * - *

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 RegionInstanceGroupsSetNamedPortsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * The list of named ports to set for this instance group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List namedPorts; - - static { - // hack to force ProGuard to consider NamedPort 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(NamedPort.class); - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public RegionInstanceGroupsSetNamedPortsRequest setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * The fingerprint of the named ports information for this instance group. Use this optional - * property to prevent conflicts when multiple users change the named ports settings concurrently. - * Obtain the fingerprint with theinstanceGroups.get method. Then, include the fingerprint in your - * request to ensure that you do not overwrite changes that were applied from another concurrent - * request. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public RegionInstanceGroupsSetNamedPortsRequest encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * The list of named ports to set for this instance group. - * @return value or {@code null} for none - */ - public java.util.List getNamedPorts() { - return namedPorts; - } - - /** - * The list of named ports to set for this instance group. - * @param namedPorts namedPorts or {@code null} for none - */ - public RegionInstanceGroupsSetNamedPortsRequest setNamedPorts(java.util.List namedPorts) { - this.namedPorts = namedPorts; - return this; - } - - @Override - public RegionInstanceGroupsSetNamedPortsRequest set(String fieldName, Object value) { - return (RegionInstanceGroupsSetNamedPortsRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupsSetNamedPortsRequest clone() { - return (RegionInstanceGroupsSetNamedPortsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionList.java deleted file mode 100644 index a231178ba09..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of region resources. - * - *

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 RegionList extends com.google.api.client.json.GenericJson { - - /** - * [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 Region 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 Region 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(Region.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 RegionList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Region resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Region resources. - * @param items items or {@code null} for none - */ - public RegionList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. - * @param kind kind or {@code null} for none - */ - public RegionList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RegionList 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 RegionList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 RegionList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RegionList set(String fieldName, Object value) { - return (RegionList) super.set(fieldName, value); - } - - @Override - public RegionList clone() { - return (RegionList) 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 RegionListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java deleted file mode 100644 index 40942e94489..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsAttachEndpointsRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionNetworkEndpointGroupsAttachEndpointsRequest. - * - *

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 RegionNetworkEndpointGroupsAttachEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of network endpoints to be attached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpoints; - - static { - // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); - } - - /** - * The list of network endpoints to be attached. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpoints() { - return networkEndpoints; - } - - /** - * The list of network endpoints to be attached. - * @param networkEndpoints networkEndpoints or {@code null} for none - */ - public RegionNetworkEndpointGroupsAttachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { - this.networkEndpoints = networkEndpoints; - return this; - } - - @Override - public RegionNetworkEndpointGroupsAttachEndpointsRequest set(String fieldName, Object value) { - return (RegionNetworkEndpointGroupsAttachEndpointsRequest) super.set(fieldName, value); - } - - @Override - public RegionNetworkEndpointGroupsAttachEndpointsRequest clone() { - return (RegionNetworkEndpointGroupsAttachEndpointsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java deleted file mode 100644 index 3f0c24a52da..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkEndpointGroupsDetachEndpointsRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionNetworkEndpointGroupsDetachEndpointsRequest. - * - *

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 RegionNetworkEndpointGroupsDetachEndpointsRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of network endpoints to be detached. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkEndpoints; - - static { - // hack to force ProGuard to consider NetworkEndpoint 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(NetworkEndpoint.class); - } - - /** - * The list of network endpoints to be detached. - * @return value or {@code null} for none - */ - public java.util.List getNetworkEndpoints() { - return networkEndpoints; - } - - /** - * The list of network endpoints to be detached. - * @param networkEndpoints networkEndpoints or {@code null} for none - */ - public RegionNetworkEndpointGroupsDetachEndpointsRequest setNetworkEndpoints(java.util.List networkEndpoints) { - this.networkEndpoints = networkEndpoints; - return this; - } - - @Override - public RegionNetworkEndpointGroupsDetachEndpointsRequest set(String fieldName, Object value) { - return (RegionNetworkEndpointGroupsDetachEndpointsRequest) super.set(fieldName, value); - } - - @Override - public RegionNetworkEndpointGroupsDetachEndpointsRequest clone() { - return (RegionNetworkEndpointGroupsDetachEndpointsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java deleted file mode 100644 index c15f84bc5fc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse. - * - *

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 RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional - * Network Firewall Policies in the specified region, Global Network Firewall Policies and - * Hierachial Firewall Policies which are associated with the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewallPolicys; - - /** - * Effective firewalls on the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List firewalls; - - static { - // hack to force ProGuard to consider Firewall 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(Firewall.class); - } - - /** - * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional - * Network Firewall Policies in the specified region, Global Network Firewall Policies and - * Hierachial Firewall Policies which are associated with the network. - * @return value or {@code null} for none - */ - public java.util.List getFirewallPolicys() { - return firewallPolicys; - } - - /** - * Output only. [Output only] Effective firewalls from firewall policy. It applies to Regional - * Network Firewall Policies in the specified region, Global Network Firewall Policies and - * Hierachial Firewall Policies which are associated with the network. - * @param firewallPolicys firewallPolicys or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse setFirewallPolicys(java.util.List firewallPolicys) { - this.firewallPolicys = firewallPolicys; - return this; - } - - /** - * Effective firewalls on the network. - * @return value or {@code null} for none - */ - public java.util.List getFirewalls() { - return firewalls; - } - - /** - * Effective firewalls on the network. - * @param firewalls firewalls or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse setFirewalls(java.util.List firewalls) { - this.firewalls = firewalls; - return this; - } - - @Override - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse set(String fieldName, Object value) { - return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse) super.set(fieldName, value); - } - - @Override - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse clone() { - return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java deleted file mode 100644 index f766810502f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for - * RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy. - * - *

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 RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The display name of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Output only. [Output Only] The name of the firewall policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output only] The packet mirroring rules that apply to the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List packetMirroringRules; - - static { - // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * Output only. [Output only] The rules that apply to the network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rules; - - static { - // hack to force ProGuard to consider FirewallPolicyRule 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(FirewallPolicyRule.class); - } - - /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, - * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output Only] The display name of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Output only. [Output Only] The display name of the firewall policy. - * @param displayName displayName or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Output only. [Output Only] The name of the firewall policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of the firewall policy. - * @param name name or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output only] The packet mirroring rules that apply to the network. - * @return value or {@code null} for none - */ - public java.util.List getPacketMirroringRules() { - return packetMirroringRules; - } - - /** - * Output only. [Output only] The packet mirroring rules that apply to the network. - * @param packetMirroringRules packetMirroringRules or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMirroringRules(java.util.List packetMirroringRules) { - this.packetMirroringRules = packetMirroringRules; - return this; - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. - * @param priority priority or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * Output only. [Output only] The rules that apply to the network. - * @return value or {@code null} for none - */ - public java.util.List getRules() { - return rules; - } - - /** - * Output only. [Output only] The rules that apply to the network. - * @param rules rules or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { - this.rules = rules; - return this; - } - - /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, - * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, - * NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. - * @param type type or {@code null} for none - */ - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy set(String fieldName, Object value) { - return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.set(fieldName, value); - } - - @Override - public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy clone() { - return (RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetLabelsRequest.java deleted file mode 100644 index fc1f6ea425e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetLabelsRequest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionSetLabelsRequest. - * - *

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 RegionSetLabelsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * The labels to set for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public RegionSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public RegionSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * The labels to set for this resource. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * The labels to set for this resource. - * @param labels labels or {@code null} for none - */ - public RegionSetLabelsRequest setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - @Override - public RegionSetLabelsRequest set(String fieldName, Object value) { - return (RegionSetLabelsRequest) super.set(fieldName, value); - } - - @Override - public RegionSetLabelsRequest clone() { - return (RegionSetLabelsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetPolicyRequest.java deleted file mode 100644 index 82b878d1ce4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSetPolicyRequest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionSetPolicyRequest. - * - *

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 RegionSetPolicyRequest extends com.google.api.client.json.GenericJson { - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bindings; - - static { - // hack to force ProGuard to consider Binding 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(Binding.class); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Policy policy; - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @return value or {@code null} for none - */ - public java.util.List getBindings() { - return bindings; - } - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @param bindings bindings or {@code null} for none - */ - public RegionSetPolicyRequest setBindings(java.util.List bindings) { - this.bindings = bindings; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #decodeEtag() - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #getEtag() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeEtag() { - return com.google.api.client.util.Base64.decodeBase64(etag); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #encodeEtag() - * @param etag etag or {@code null} for none - */ - public RegionSetPolicyRequest setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #setEtag() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public RegionSetPolicyRequest encodeEtag(byte[] etag) { - this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); - return this; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @return value or {@code null} for none - */ - public Policy getPolicy() { - return policy; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @param policy policy or {@code null} for none - */ - public RegionSetPolicyRequest setPolicy(Policy policy) { - this.policy = policy; - return this; - } - - @Override - public RegionSetPolicyRequest set(String fieldName, Object value) { - return (RegionSetPolicyRequest) super.set(fieldName, value); - } - - @Override - public RegionSetPolicyRequest clone() { - return (RegionSetPolicyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSnapshotUpdateKmsKeyRequest.java deleted file mode 100644 index e68bed3a08a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionSnapshotUpdateKmsKeyRequest.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionSnapshotUpdateKmsKeyRequest. - * - *

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 RegionSnapshotUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot - * will be re-encrypted using the primary version of the snapshot's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/region/keyRings/region/cryptoKeys/key - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kmsKeyName; - - /** - * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot - * will be re-encrypted using the primary version of the snapshot's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/region/keyRings/region/cryptoKeys/key - * @return value or {@code null} for none - */ - public java.lang.String getKmsKeyName() { - return kmsKeyName; - } - - /** - * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot - * will be re-encrypted using the primary version of the snapshot's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/region/keyRings/region/cryptoKeys/key - * @param kmsKeyName kmsKeyName or {@code null} for none - */ - public RegionSnapshotUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { - this.kmsKeyName = kmsKeyName; - return this; - } - - @Override - public RegionSnapshotUpdateKmsKeyRequest set(String fieldName, Object value) { - return (RegionSnapshotUpdateKmsKeyRequest) super.set(fieldName, value); - } - - @Override - public RegionSnapshotUpdateKmsKeyRequest clone() { - return (RegionSnapshotUpdateKmsKeyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java deleted file mode 100644 index 3a6c326bbd5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionTargetHttpsProxiesSetSslCertificatesRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionTargetHttpsProxiesSetSslCertificatesRequest. - * - *

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 RegionTargetHttpsProxiesSetSslCertificatesRequest extends com.google.api.client.json.GenericJson { - - /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslCertificates; - - /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. - * @return value or {@code null} for none - */ - public java.util.List getSslCertificates() { - return sslCertificates; - } - - /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. - * @param sslCertificates sslCertificates or {@code null} for none - */ - public RegionTargetHttpsProxiesSetSslCertificatesRequest setSslCertificates(java.util.List sslCertificates) { - this.sslCertificates = sslCertificates; - return this; - } - - @Override - public RegionTargetHttpsProxiesSetSslCertificatesRequest set(String fieldName, Object value) { - return (RegionTargetHttpsProxiesSetSslCertificatesRequest) super.set(fieldName, value); - } - - @Override - public RegionTargetHttpsProxiesSetSslCertificatesRequest clone() { - return (RegionTargetHttpsProxiesSetSslCertificatesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionUrlMapsValidateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionUrlMapsValidateRequest.java deleted file mode 100644 index d99ba678cad..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RegionUrlMapsValidateRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RegionUrlMapsValidateRequest. - * - *

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 RegionUrlMapsValidateRequest extends com.google.api.client.json.GenericJson { - - /** - * Content of the UrlMap to be validated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UrlMap resource; - - /** - * Content of the UrlMap to be validated. - * @return value or {@code null} for none - */ - public UrlMap getResource() { - return resource; - } - - /** - * Content of the UrlMap to be validated. - * @param resource resource or {@code null} for none - */ - public RegionUrlMapsValidateRequest setResource(UrlMap resource) { - this.resource = resource; - return this; - } - - @Override - public RegionUrlMapsValidateRequest set(String fieldName, Object value) { - return (RegionUrlMapsValidateRequest) super.set(fieldName, value); - } - - @Override - public RegionUrlMapsValidateRequest clone() { - return (RegionUrlMapsValidateRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisk.java deleted file mode 100644 index c410ef07222..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisk.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a ReliabilityRisk 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 ReliabilityRisk extends com.google.api.client.json.GenericJson { - - /** - * 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; - - /** - * An optional textual description of the resource; provided when the resource is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] Details of the reliability risk resource - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RiskDetails details; - - /** - * [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] Type of resource. Always compute#reliabilityRisk for reliability - * risks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The recommendation to mitigate the risk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RiskRecommendation recommendation; - - /** - * 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * 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 ReliabilityRisk setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional textual description of the resource; provided when the resource is created. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional textual description of the resource; provided when the resource is created. - * @param description description or {@code null} for none - */ - public ReliabilityRisk setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] Details of the reliability risk resource - * @return value or {@code null} for none - */ - public RiskDetails getDetails() { - return details; - } - - /** - * [Output Only] Details of the reliability risk resource - * @param details details or {@code null} for none - */ - public ReliabilityRisk setDetails(RiskDetails details) { - this.details = details; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public ReliabilityRisk setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability - * risks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability - * risks. - * @param kind kind or {@code null} for none - */ - public ReliabilityRisk setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. - * @param name name or {@code null} for none - */ - public ReliabilityRisk setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The recommendation to mitigate the risk. - * @return value or {@code null} for none - */ - public RiskRecommendation getRecommendation() { - return recommendation; - } - - /** - * The recommendation to mitigate the risk. - * @param recommendation recommendation or {@code null} for none - */ - public ReliabilityRisk setRecommendation(RiskRecommendation recommendation) { - this.recommendation = recommendation; - 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 ReliabilityRisk setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public ReliabilityRisk setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - @Override - public ReliabilityRisk set(String fieldName, Object value) { - return (ReliabilityRisk) super.set(fieldName, value); - } - - @Override - public ReliabilityRisk clone() { - return (ReliabilityRisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisksListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisksListResponse.java deleted file mode 100644 index 8a45947ad1c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReliabilityRisksListResponse.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response message for the List method of ReliabilityRisksService. - * - *

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 ReliabilityRisksListResponse extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] An 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 ReliabilityRisk 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 ReliabilityRisk 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(ReliabilityRisk.class); - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * [Output Only] An ETag of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * [Output Only] An ETag of the resource. - * @param etag etag or {@code null} for none - */ - public ReliabilityRisksListResponse 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 ReliabilityRisksListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ReliabilityRisk resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of ReliabilityRisk resources. - * @param items items or {@code null} for none - */ - public ReliabilityRisksListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ReliabilityRisksListResponse 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 ReliabilityRisksListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public ReliabilityRisksListResponse 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 ReliabilityRisksListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReliabilityRisksListResponse set(String fieldName, Object value) { - return (ReliabilityRisksListResponse) super.set(fieldName, value); - } - - @Override - public ReliabilityRisksListResponse clone() { - return (ReliabilityRisksListResponse) 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 ReliabilityRisksListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RequestMirrorPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RequestMirrorPolicy.java deleted file mode 100644 index 09f37184cb4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RequestMirrorPolicy.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * A policy that specifies how requests intended for the route's backends are shadowed to a separate - * mirrored backend service. The load balancer doesn't wait for responses from the shadow service. - * Before sending traffic to the shadow service, the host or authority header is suffixed with- - * shadow. - * - *

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 RequestMirrorPolicy extends com.google.api.client.json.GenericJson { - - /** - * The full or partial URL to the BackendService resource being mirrored to. - * - * The backend service configured for a mirroring policy must reference backends that are of the - * same type as the original backend service matched in the URL map. - * - * Serverless NEG backends are not currently supported as a mirrored backend service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** - * The percentage of requests to be mirrored to `backend_service`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double mirrorPercent; - - /** - * The full or partial URL to the BackendService resource being mirrored to. - * - * The backend service configured for a mirroring policy must reference backends that are of the - * same type as the original backend service matched in the URL map. - * - * Serverless NEG backends are not currently supported as a mirrored backend service. - * @return value or {@code null} for none - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * The full or partial URL to the BackendService resource being mirrored to. - * - * The backend service configured for a mirroring policy must reference backends that are of the - * same type as the original backend service matched in the URL map. - * - * Serverless NEG backends are not currently supported as a mirrored backend service. - * @param backendService backendService or {@code null} for none - */ - public RequestMirrorPolicy setBackendService(java.lang.String backendService) { - this.backendService = backendService; - return this; - } - - /** - * The percentage of requests to be mirrored to `backend_service`. - * @return value or {@code null} for none - */ - public java.lang.Double getMirrorPercent() { - return mirrorPercent; - } - - /** - * The percentage of requests to be mirrored to `backend_service`. - * @param mirrorPercent mirrorPercent or {@code null} for none - */ - public RequestMirrorPolicy setMirrorPercent(java.lang.Double mirrorPercent) { - this.mirrorPercent = mirrorPercent; - return this; - } - - @Override - public RequestMirrorPolicy set(String fieldName, Object value) { - return (RequestMirrorPolicy) super.set(fieldName, value); - } - - @Override - public RequestMirrorPolicy clone() { - return (RequestMirrorPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reservation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reservation.java deleted file mode 100644 index 8056edc1f1c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Reservation.java +++ /dev/null @@ -1,815 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a reservation resource. A reservation ensures that capacity is held in a specific - * zone even if the reserved VMs are not running. For more information, read Reserving zonal - * resources. - * - *

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 Reservation extends com.google.api.client.json.GenericJson { - - /** - * Advanced control for cluster management, applicable only to DENSE deployment type reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationAdvancedDeploymentControl advancedDeploymentControl; - - /** - * Reservation for aggregated resources, providing shape flexibility. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationAggregateReservation aggregateReservation; - - /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String commitment; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String confidentialComputeType; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Duration time relative to reservation creation when Compute Engine will automatically delete - * this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration deleteAfterDuration; - - /** - * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp - * is represented inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deleteAtTime; - - /** - * Specifies the deployment strategy for this reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deploymentType; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Indicates the early access maintenance for the reservation. If this field is absent or set to - * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard - * notice applies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String earlyAccessMaintenance; - - /** - * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix - * hardware errors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableEmergentMaintenance; - - /** - * 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] Type of the resource. Alwayscompute#reservations for reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for - * reservations that are tied to multiple commitments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List linkedCommitments; - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationParams params; - - /** - * Protection tier for the workload which specifies the workload expectations in the event of - * infrastructure failures at data center (e.g. power and/or cooling failures). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String protectionTier; - - /** - * Specify the reservation sharing policy. If unspecified, the reservation will not be shared with - * Google Cloud managed services. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationReservationSharingPolicy reservationSharingPolicy; - - /** - * Output only. [Output Only] Contains standard resource metadata for an Allocation resource. It - * is populated for each instance of the Allocation resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceMetadata resourceMetadata; - - /** - * Resource policies to be added to this reservation. The key is defined by user, and the value is - * resource policy url. This is to define placement policy with reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourcePolicies; - - /** - * Output only. [Output Only] Status information for Reservation resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationResourceStatus resourceStatus; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * The type of maintenance for the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String schedulingType; - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Specify share-settings to create a shared reservation. This property is optional. For more - * information about the syntax and options for this field and its subfields, see the guide for - * creating a shared reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShareSettings shareSettings; - - /** - * Reservation for instances with specific machine shapes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AllocationSpecificSKUReservation specificReservation; - - /** - * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. - * If the field is set, then only VMs that target the reservation by name can consume from this - * reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean specificReservationRequired; - - /** - * Output only. [Output Only] The status of the reservation. - CREATING: Reservation - * resources are being allocated. - READY: Reservation resources have been allocated, - * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - * - UPDATING: Reservation update is in progress. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Zone in which the reservation resides. A zone must be provided if the reservation is created - * within a commitment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Advanced control for cluster management, applicable only to DENSE deployment type reservations. - * @return value or {@code null} for none - */ - public ReservationAdvancedDeploymentControl getAdvancedDeploymentControl() { - return advancedDeploymentControl; - } - - /** - * Advanced control for cluster management, applicable only to DENSE deployment type reservations. - * @param advancedDeploymentControl advancedDeploymentControl or {@code null} for none - */ - public Reservation setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl advancedDeploymentControl) { - this.advancedDeploymentControl = advancedDeploymentControl; - return this; - } - - /** - * Reservation for aggregated resources, providing shape flexibility. - * @return value or {@code null} for none - */ - public AllocationAggregateReservation getAggregateReservation() { - return aggregateReservation; - } - - /** - * Reservation for aggregated resources, providing shape flexibility. - * @param aggregateReservation aggregateReservation or {@code null} for none - */ - public Reservation setAggregateReservation(AllocationAggregateReservation aggregateReservation) { - this.aggregateReservation = aggregateReservation; - return this; - } - - /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. - * @return value or {@code null} for none - */ - public java.lang.String getCommitment() { - return commitment; - } - - /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. - * @param commitment commitment or {@code null} for none - */ - public Reservation setCommitment(java.lang.String commitment) { - this.commitment = commitment; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getConfidentialComputeType() { - return confidentialComputeType; - } - - /** - * @param confidentialComputeType confidentialComputeType or {@code null} for none - */ - public Reservation setConfidentialComputeType(java.lang.String confidentialComputeType) { - this.confidentialComputeType = confidentialComputeType; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Duration time relative to reservation creation when Compute Engine will automatically delete - * this resource. - * @return value or {@code null} for none - */ - public Duration getDeleteAfterDuration() { - return deleteAfterDuration; - } - - /** - * Duration time relative to reservation creation when Compute Engine will automatically delete - * this resource. - * @param deleteAfterDuration deleteAfterDuration or {@code null} for none - */ - public Reservation setDeleteAfterDuration(Duration deleteAfterDuration) { - this.deleteAfterDuration = deleteAfterDuration; - return this; - } - - /** - * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp - * is represented inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getDeleteAtTime() { - return deleteAtTime; - } - - /** - * Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp - * is represented inRFC3339 text format. - * @param deleteAtTime deleteAtTime or {@code null} for none - */ - public Reservation setDeleteAtTime(java.lang.String deleteAtTime) { - this.deleteAtTime = deleteAtTime; - return this; - } - - /** - * Specifies the deployment strategy for this reservation. - * @return value or {@code null} for none - */ - public java.lang.String getDeploymentType() { - return deploymentType; - } - - /** - * Specifies the deployment strategy for this reservation. - * @param deploymentType deploymentType or {@code null} for none - */ - public Reservation setDeploymentType(java.lang.String deploymentType) { - this.deploymentType = deploymentType; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Reservation setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Indicates the early access maintenance for the reservation. If this field is absent or set to - * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard - * notice applies. - * @return value or {@code null} for none - */ - public java.lang.String getEarlyAccessMaintenance() { - return earlyAccessMaintenance; - } - - /** - * Indicates the early access maintenance for the reservation. If this field is absent or set to - * NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard - * notice applies. - * @param earlyAccessMaintenance earlyAccessMaintenance or {@code null} for none - */ - public Reservation setEarlyAccessMaintenance(java.lang.String earlyAccessMaintenance) { - this.earlyAccessMaintenance = earlyAccessMaintenance; - return this; - } - - /** - * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix - * hardware errors. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableEmergentMaintenance() { - return enableEmergentMaintenance; - } - - /** - * Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix - * hardware errors. - * @param enableEmergentMaintenance enableEmergentMaintenance or {@code null} for none - */ - public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergentMaintenance) { - this.enableEmergentMaintenance = enableEmergentMaintenance; - 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 Reservation setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. - * @param kind kind or {@code null} for none - */ - public Reservation setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for - * reservations that are tied to multiple commitments. - * @return value or {@code null} for none - */ - public java.util.List getLinkedCommitments() { - return linkedCommitments; - } - - /** - * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for - * reservations that are tied to multiple commitments. - * @param linkedCommitments linkedCommitments or {@code null} for none - */ - public Reservation setLinkedCommitments(java.util.List linkedCommitments) { - this.linkedCommitments = linkedCommitments; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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 Reservation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @return value or {@code null} for none - */ - public ReservationParams getParams() { - return params; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @param params params or {@code null} for none - */ - public Reservation setParams(ReservationParams params) { - this.params = params; - return this; - } - - /** - * Protection tier for the workload which specifies the workload expectations in the event of - * infrastructure failures at data center (e.g. power and/or cooling failures). - * @return value or {@code null} for none - */ - public java.lang.String getProtectionTier() { - return protectionTier; - } - - /** - * Protection tier for the workload which specifies the workload expectations in the event of - * infrastructure failures at data center (e.g. power and/or cooling failures). - * @param protectionTier protectionTier or {@code null} for none - */ - public Reservation setProtectionTier(java.lang.String protectionTier) { - this.protectionTier = protectionTier; - return this; - } - - /** - * Specify the reservation sharing policy. If unspecified, the reservation will not be shared with - * Google Cloud managed services. - * @return value or {@code null} for none - */ - public AllocationReservationSharingPolicy getReservationSharingPolicy() { - return reservationSharingPolicy; - } - - /** - * Specify the reservation sharing policy. If unspecified, the reservation will not be shared with - * Google Cloud managed services. - * @param reservationSharingPolicy reservationSharingPolicy or {@code null} for none - */ - public Reservation setReservationSharingPolicy(AllocationReservationSharingPolicy reservationSharingPolicy) { - this.reservationSharingPolicy = reservationSharingPolicy; - return this; - } - - /** - * Output only. [Output Only] Contains standard resource metadata for an Allocation resource. It - * is populated for each instance of the Allocation resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * @return value or {@code null} for none - */ - public ResourceMetadata getResourceMetadata() { - return resourceMetadata; - } - - /** - * Output only. [Output Only] Contains standard resource metadata for an Allocation resource. It - * is populated for each instance of the Allocation resource, and includes the api_version the - * instance was retrieved through, and its canonical resource_type name. - * @param resourceMetadata resourceMetadata or {@code null} for none - */ - public Reservation setResourceMetadata(ResourceMetadata resourceMetadata) { - this.resourceMetadata = resourceMetadata; - return this; - } - - /** - * Resource policies to be added to this reservation. The key is defined by user, and the value is - * resource policy url. This is to define placement policy with reservation. - * @return value or {@code null} for none - */ - public java.util.Map getResourcePolicies() { - return resourcePolicies; - } - - /** - * Resource policies to be added to this reservation. The key is defined by user, and the value is - * resource policy url. This is to define placement policy with reservation. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public Reservation setResourcePolicies(java.util.Map resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Output only. [Output Only] Status information for Reservation resource. - * @return value or {@code null} for none - */ - public AllocationResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] Status information for Reservation resource. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - return this; - } - - /** - * The type of maintenance for the reservation. - * @return value or {@code null} for none - */ - public java.lang.String getSchedulingType() { - return schedulingType; - } - - /** - * The type of maintenance for the reservation. - * @param schedulingType schedulingType or {@code null} for none - */ - public Reservation setSchedulingType(java.lang.String schedulingType) { - this.schedulingType = schedulingType; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public Reservation setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Specify share-settings to create a shared reservation. This property is optional. For more - * information about the syntax and options for this field and its subfields, see the guide for - * creating a shared reservation. - * @return value or {@code null} for none - */ - public ShareSettings getShareSettings() { - return shareSettings; - } - - /** - * Specify share-settings to create a shared reservation. This property is optional. For more - * information about the syntax and options for this field and its subfields, see the guide for - * creating a shared reservation. - * @param shareSettings shareSettings or {@code null} for none - */ - public Reservation setShareSettings(ShareSettings shareSettings) { - this.shareSettings = shareSettings; - return this; - } - - /** - * Reservation for instances with specific machine shapes. - * @return value or {@code null} for none - */ - public AllocationSpecificSKUReservation getSpecificReservation() { - return specificReservation; - } - - /** - * Reservation for instances with specific machine shapes. - * @param specificReservation specificReservation or {@code null} for none - */ - public Reservation setSpecificReservation(AllocationSpecificSKUReservation specificReservation) { - this.specificReservation = specificReservation; - return this; - } - - /** - * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. - * If the field is set, then only VMs that target the reservation by name can consume from this - * reservation. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSpecificReservationRequired() { - return specificReservationRequired; - } - - /** - * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. - * If the field is set, then only VMs that target the reservation by name can consume from this - * reservation. - * @param specificReservationRequired specificReservationRequired or {@code null} for none - */ - public Reservation setSpecificReservationRequired(java.lang.Boolean specificReservationRequired) { - this.specificReservationRequired = specificReservationRequired; - return this; - } - - /** - * Output only. [Output Only] The status of the reservation. - CREATING: Reservation - * resources are being allocated. - READY: Reservation resources have been allocated, - * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - * - UPDATING: Reservation update is in progress. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the reservation. - CREATING: Reservation - * resources are being allocated. - READY: Reservation resources have been allocated, - * and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - * - UPDATING: Reservation update is in progress. - * @param status status or {@code null} for none - */ - public Reservation setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Zone in which the reservation resides. A zone must be provided if the reservation is created - * within a commitment. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Zone in which the reservation resides. A zone must be provided if the reservation is created - * within a commitment. - * @param zone zone or {@code null} for none - */ - public Reservation setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public Reservation set(String fieldName, Object value) { - return (Reservation) super.set(fieldName, value); - } - - @Override - public Reservation clone() { - return (Reservation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAdvancedDeploymentControl.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAdvancedDeploymentControl.java deleted file mode 100644 index 3905ceda77e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAdvancedDeploymentControl.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Advance control for cluster management, applicable only to DENSE deployment type reservations. - * - *

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 ReservationAdvancedDeploymentControl extends com.google.api.client.json.GenericJson { - - /** - * Indicates chosen reservation operational mode for the reservation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reservationOperationalMode; - - /** - * Indicates chosen reservation operational mode for the reservation. - * @return value or {@code null} for none - */ - public java.lang.String getReservationOperationalMode() { - return reservationOperationalMode; - } - - /** - * Indicates chosen reservation operational mode for the reservation. - * @param reservationOperationalMode reservationOperationalMode or {@code null} for none - */ - public ReservationAdvancedDeploymentControl setReservationOperationalMode(java.lang.String reservationOperationalMode) { - this.reservationOperationalMode = reservationOperationalMode; - return this; - } - - @Override - public ReservationAdvancedDeploymentControl set(String fieldName, Object value) { - return (ReservationAdvancedDeploymentControl) super.set(fieldName, value); - } - - @Override - public ReservationAdvancedDeploymentControl clone() { - return (ReservationAdvancedDeploymentControl) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAffinity.java deleted file mode 100644 index 764127d35d4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAffinity.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies the reservations that this instance can consume from. - * - *

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 ReservationAffinity extends com.google.api.client.json.GenericJson { - - /** - * Specifies the type of reservation from which this instance can consume resources: - * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved - * instances for examples. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumeReservationType; - - /** - * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by - * name, specifygoogleapis.com/reservation-name as the key and specify the name of your - * reservation as its value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Corresponds to the label values of a reservation resource. This can be either a name to a - * reservation in the same project or "projects/different-project/reservations/some-reservation- - * name" to target a shared reservation in the same zone but in a different project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List values; - - /** - * Specifies the type of reservation from which this instance can consume resources: - * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved - * instances for examples. - * @return value or {@code null} for none - */ - public java.lang.String getConsumeReservationType() { - return consumeReservationType; - } - - /** - * Specifies the type of reservation from which this instance can consume resources: - * ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved - * instances for examples. - * @param consumeReservationType consumeReservationType or {@code null} for none - */ - public ReservationAffinity setConsumeReservationType(java.lang.String consumeReservationType) { - this.consumeReservationType = consumeReservationType; - return this; - } - - /** - * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by - * name, specifygoogleapis.com/reservation-name as the key and specify the name of your - * reservation as its value. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * Corresponds to the label key of a reservation resource. To target aSPECIFIC_RESERVATION by - * name, specifygoogleapis.com/reservation-name as the key and specify the name of your - * reservation as its value. - * @param key key or {@code null} for none - */ - public ReservationAffinity setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Corresponds to the label values of a reservation resource. This can be either a name to a - * reservation in the same project or "projects/different-project/reservations/some-reservation- - * name" to target a shared reservation in the same zone but in a different project. - * @return value or {@code null} for none - */ - public java.util.List getValues() { - return values; - } - - /** - * Corresponds to the label values of a reservation resource. This can be either a name to a - * reservation in the same project or "projects/different-project/reservations/some-reservation- - * name" to target a shared reservation in the same zone but in a different project. - * @param values values or {@code null} for none - */ - public ReservationAffinity setValues(java.util.List values) { - this.values = values; - return this; - } - - @Override - public ReservationAffinity set(String fieldName, Object value) { - return (ReservationAffinity) super.set(fieldName, value); - } - - @Override - public ReservationAffinity clone() { - return (ReservationAffinity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAggregatedList.java deleted file mode 100644 index b122158d874..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of reservations. - * - *

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 ReservationAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 Allocation resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 ReservationAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Allocation resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of Allocation resources. - * @param items items or {@code null} for none - */ - public ReservationAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ReservationAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ReservationAggregatedList 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 ReservationAggregatedList 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 ReservationAggregatedList 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 ReservationAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReservationAggregatedList set(String fieldName, Object value) { - return (ReservationAggregatedList) super.set(fieldName, value); - } - - @Override - public ReservationAggregatedList clone() { - return (ReservationAggregatedList) 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 ReservationAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlock.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlock.java deleted file mode 100644 index 0010e3e3fbe..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlock.java +++ /dev/null @@ -1,453 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a reservation block 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 ReservationBlock extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer count; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] Health information for the reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationBlockHealthInfo healthInfo; - - /** - * 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] The number of instances that are currently in use on this - * reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer inUseCount; - - /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer inUseHostCount; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] The name of this reservation block generated by Google Compute - * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern - * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The physical topology of the reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationBlockPhysicalTopology physicalTopology; - - /** - * Output only. [Output Only] Maintenance information for this reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GroupMaintenanceInfo reservationMaintenance; - - /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer reservationSubBlockCount; - - /** - * Output only. [Output Only] The number of in-use reservation subBlocks associated with this - * reservation block. If at least one VM is running on a subBlock, it is considered in-use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer reservationSubBlockInUseCount; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Status of the reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] Zone in which the reservation block resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. - * @return value or {@code null} for none - */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. - * @param count count or {@code null} for none - */ - public ReservationBlock setCount(java.lang.Integer count) { - this.count = count; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] Health information for the reservation block. - * @return value or {@code null} for none - */ - public ReservationBlockHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. [Output Only] Health information for the reservation block. - * @param healthInfo healthInfo or {@code null} for none - */ - public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { - this.healthInfo = healthInfo; - 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 ReservationBlock setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation block. - * @return value or {@code null} for none - */ - public java.lang.Integer getInUseCount() { - return inUseCount; - } - - /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation block. - * @param inUseCount inUseCount or {@code null} for none - */ - public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { - this.inUseCount = inUseCount; - return this; - } - - /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. - * @return value or {@code null} for none - */ - public java.lang.Integer getInUseHostCount() { - return inUseHostCount; - } - - /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. - * @param inUseHostCount inUseHostCount or {@code null} for none - */ - public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { - this.inUseHostCount = inUseHostCount; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. - * @param kind kind or {@code null} for none - */ - public ReservationBlock setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] The name of this reservation block generated by Google Compute - * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern - * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of this reservation block generated by Google Compute - * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern - * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? - * @param name name or {@code null} for none - */ - public ReservationBlock setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The physical topology of the reservation block. - * @return value or {@code null} for none - */ - public ReservationBlockPhysicalTopology getPhysicalTopology() { - return physicalTopology; - } - - /** - * Output only. [Output Only] The physical topology of the reservation block. - * @param physicalTopology physicalTopology or {@code null} for none - */ - public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { - this.physicalTopology = physicalTopology; - return this; - } - - /** - * Output only. [Output Only] Maintenance information for this reservation block. - * @return value or {@code null} for none - */ - public GroupMaintenanceInfo getReservationMaintenance() { - return reservationMaintenance; - } - - /** - * Output only. [Output Only] Maintenance information for this reservation block. - * @param reservationMaintenance reservationMaintenance or {@code null} for none - */ - public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { - this.reservationMaintenance = reservationMaintenance; - return this; - } - - /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. - * @return value or {@code null} for none - */ - public java.lang.Integer getReservationSubBlockCount() { - return reservationSubBlockCount; - } - - /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. - * @param reservationSubBlockCount reservationSubBlockCount or {@code null} for none - */ - public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservationSubBlockCount) { - this.reservationSubBlockCount = reservationSubBlockCount; - return this; - } - - /** - * Output only. [Output Only] The number of in-use reservation subBlocks associated with this - * reservation block. If at least one VM is running on a subBlock, it is considered in-use. - * @return value or {@code null} for none - */ - public java.lang.Integer getReservationSubBlockInUseCount() { - return reservationSubBlockInUseCount; - } - - /** - * Output only. [Output Only] The number of in-use reservation subBlocks associated with this - * reservation block. If at least one VM is running on a subBlock, it is considered in-use. - * @param reservationSubBlockInUseCount reservationSubBlockInUseCount or {@code null} for none - */ - public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reservationSubBlockInUseCount) { - this.reservationSubBlockInUseCount = reservationSubBlockInUseCount; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ReservationBlock setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. [Output Only] Status of the reservation block. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] Status of the reservation block. - * @param status status or {@code null} for none - */ - public ReservationBlock setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] Zone in which the reservation block resides. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] Zone in which the reservation block resides. - * @param zone zone or {@code null} for none - */ - public ReservationBlock setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public ReservationBlock set(String fieldName, Object value) { - return (ReservationBlock) super.set(fieldName, value); - } - - @Override - public ReservationBlock clone() { - return (ReservationBlock) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockHealthInfo.java deleted file mode 100644 index 338f569b270..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockHealthInfo.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Health information for the reservation block. - * - *

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 ReservationBlockHealthInfo extends com.google.api.client.json.GenericJson { - - /** - * The number of subBlocks that are degraded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer degradedSubBlockCount; - - /** - * The health status of the reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatus; - - /** - * The number of subBlocks that are healthy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthySubBlockCount; - - /** - * The number of subBlocks that are degraded. - * @return value or {@code null} for none - */ - public java.lang.Integer getDegradedSubBlockCount() { - return degradedSubBlockCount; - } - - /** - * The number of subBlocks that are degraded. - * @param degradedSubBlockCount degradedSubBlockCount or {@code null} for none - */ - public ReservationBlockHealthInfo setDegradedSubBlockCount(java.lang.Integer degradedSubBlockCount) { - this.degradedSubBlockCount = degradedSubBlockCount; - return this; - } - - /** - * The health status of the reservation block. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatus() { - return healthStatus; - } - - /** - * The health status of the reservation block. - * @param healthStatus healthStatus or {@code null} for none - */ - public ReservationBlockHealthInfo setHealthStatus(java.lang.String healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * The number of subBlocks that are healthy. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthySubBlockCount() { - return healthySubBlockCount; - } - - /** - * The number of subBlocks that are healthy. - * @param healthySubBlockCount healthySubBlockCount or {@code null} for none - */ - public ReservationBlockHealthInfo setHealthySubBlockCount(java.lang.Integer healthySubBlockCount) { - this.healthySubBlockCount = healthySubBlockCount; - return this; - } - - @Override - public ReservationBlockHealthInfo set(String fieldName, Object value) { - return (ReservationBlockHealthInfo) super.set(fieldName, value); - } - - @Override - public ReservationBlockHealthInfo clone() { - return (ReservationBlockHealthInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopology.java deleted file mode 100644 index 7b930cea0e8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopology.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationBlockPhysicalTopology. - * - *

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 ReservationBlockPhysicalTopology extends com.google.api.client.json.GenericJson { - - /** - * The hash of the capacity block within the cluster. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String block; - - /** - * The cluster name of the reservation block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cluster; - - /** - * Output only. The detailed instances information for a given Block - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * The hash of the capacity block within the cluster. - * @return value or {@code null} for none - */ - public java.lang.String getBlock() { - return block; - } - - /** - * The hash of the capacity block within the cluster. - * @param block block or {@code null} for none - */ - public ReservationBlockPhysicalTopology setBlock(java.lang.String block) { - this.block = block; - return this; - } - - /** - * The cluster name of the reservation block. - * @return value or {@code null} for none - */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * The cluster name of the reservation block. - * @param cluster cluster or {@code null} for none - */ - public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { - this.cluster = cluster; - return this; - } - - /** - * Output only. The detailed instances information for a given Block - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * Output only. The detailed instances information for a given Block - * @param instances instances or {@code null} for none - */ - public ReservationBlockPhysicalTopology setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public ReservationBlockPhysicalTopology set(String fieldName, Object value) { - return (ReservationBlockPhysicalTopology) super.set(fieldName, value); - } - - @Override - public ReservationBlockPhysicalTopology clone() { - return (ReservationBlockPhysicalTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstance.java deleted file mode 100644 index ed62ec8ebe2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstance.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * The instances information for a given Block - * - *

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 ReservationBlockPhysicalTopologyInstance extends com.google.api.client.json.GenericJson { - - /** - * The InstanceId of the instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger instanceId; - - /** - * Output only. The PhysicalHostTopology of instances within a Block resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology; - - /** - * Project where the instance lives - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger projectId; - - /** - * The InstanceId of the instance - * @return value or {@code null} for none - */ - public java.math.BigInteger getInstanceId() { - return instanceId; - } - - /** - * The InstanceId of the instance - * @param instanceId instanceId or {@code null} for none - */ - public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteger instanceId) { - this.instanceId = instanceId; - return this; - } - - /** - * Output only. The PhysicalHostTopology of instances within a Block resource. - * @return value or {@code null} for none - */ - public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { - return physicalHostTopology; - } - - /** - * Output only. The PhysicalHostTopology of instances within a Block resource. - * @param physicalHostTopology physicalHostTopology or {@code null} for none - */ - public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { - this.physicalHostTopology = physicalHostTopology; - return this; - } - - /** - * Project where the instance lives - * @return value or {@code null} for none - */ - public java.math.BigInteger getProjectId() { - return projectId; - } - - /** - * Project where the instance lives - * @param projectId projectId or {@code null} for none - */ - public ReservationBlockPhysicalTopologyInstance setProjectId(java.math.BigInteger projectId) { - this.projectId = projectId; - return this; - } - - @Override - public ReservationBlockPhysicalTopologyInstance set(String fieldName, Object value) { - return (ReservationBlockPhysicalTopologyInstance) super.set(fieldName, value); - } - - @Override - public ReservationBlockPhysicalTopologyInstance clone() { - return (ReservationBlockPhysicalTopologyInstance) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java deleted file mode 100644 index 7b6560080d6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlockPhysicalTopologyInstancePhysicalHostTopology.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * The PhysicalHostTopology of the instance within a Block 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 ReservationBlockPhysicalTopologyInstancePhysicalHostTopology extends com.google.api.client.json.GenericJson { - - /** - * Host hash for a given instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * Sub block hash for a given instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subBlock; - - /** - * Host hash for a given instance - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * Host hash for a given instance - * @param host host or {@code null} for none - */ - public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * Sub block hash for a given instance - * @return value or {@code null} for none - */ - public java.lang.String getSubBlock() { - return subBlock; - } - - /** - * Sub block hash for a given instance - * @param subBlock subBlock or {@code null} for none - */ - public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology setSubBlock(java.lang.String subBlock) { - this.subBlock = subBlock; - return this; - } - - @Override - public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology set(String fieldName, Object value) { - return (ReservationBlockPhysicalTopologyInstancePhysicalHostTopology) super.set(fieldName, value); - } - - @Override - public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology clone() { - return (ReservationBlockPhysicalTopologyInstancePhysicalHostTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksGetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksGetResponse.java deleted file mode 100644 index 1ca116a14c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationBlocksGetResponse. - * - *

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 ReservationBlocksGetResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationBlock resource; - - /** - * @return value or {@code null} for none - */ - public ReservationBlock getResource() { - return resource; - } - - /** - * @param resource resource or {@code null} for none - */ - public ReservationBlocksGetResponse setResource(ReservationBlock resource) { - this.resource = resource; - return this; - } - - @Override - public ReservationBlocksGetResponse set(String fieldName, Object value) { - return (ReservationBlocksGetResponse) super.set(fieldName, value); - } - - @Override - public ReservationBlocksGetResponse clone() { - return (ReservationBlocksGetResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksListResponse.java deleted file mode 100644 index b907088769c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationBlocksListResponse.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of reservation blocks under a single reservation. - * - *

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 ReservationBlocksListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 reservation block 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 ReservationBlock 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(ReservationBlock.class); - } - - /** - * Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Server-defined URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Unique identifier for the resource; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public ReservationBlocksListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of reservation block resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of reservation block resources. - * @param items items or {@code null} for none - */ - public ReservationBlocksListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks. - * @param kind kind or {@code null} for none - */ - public ReservationBlocksListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ReservationBlocksListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ReservationBlocksListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning message. - * @param warning warning or {@code null} for none - */ - public ReservationBlocksListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReservationBlocksListResponse set(String fieldName, Object value) { - return (ReservationBlocksListResponse) super.set(fieldName, value); - } - - @Override - public ReservationBlocksListResponse clone() { - return (ReservationBlocksListResponse) super.clone(); - } - - /** - * 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 ReservationBlocksListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationList.java deleted file mode 100644 index fcd2a471864..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationList. - * - *

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 ReservationList extends com.google.api.client.json.GenericJson { - - /** - * [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 - private java.lang.String id; - - /** - * [Output Only] A list of Allocation 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 Reservation 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(Reservation.class); - } - - /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public ReservationList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output Only] A list of Allocation resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output Only] A list of Allocation resources. - * @param items items or {@code null} for none - */ - public ReservationList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations - * @param kind kind or {@code null} for none - */ - public ReservationList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ReservationList 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 ReservationList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ReservationList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReservationList set(String fieldName, Object value) { - return (ReservationList) super.set(fieldName, value); - } - - @Override - public ReservationList clone() { - return (ReservationList) 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 ReservationListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationParams.java deleted file mode 100644 index b91f62affd8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional reservation params. - * - *

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 ReservationParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the reservation. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public ReservationParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public ReservationParams set(String fieldName, Object value) { - return (ReservationParams) super.set(fieldName, value); - } - - @Override - public ReservationParams clone() { - return (ReservationParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlot.java deleted file mode 100644 index 388341ad29c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlot.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a reservation slot 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 ReservationSlot extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] The unique identifier for this 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] The type of resource. Alwayscompute#reservationSlot for reservation - * slots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] The name of the reservation slot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The physical topology of the reservation slot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSlotPhysicalTopology physicalTopology; - - /** - * Output only. [Output Only] A server-defined fully-qualified 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] A server-defined URL for this resource with the resource ID. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Specify share settings to create a shared slot. Set to empty to inherit the share settings from - * a parent resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShareSettings shareSettings; - - /** - * Output only. [Output Only] The state of the reservation slot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] The status of the reservation slot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSlotStatus status; - - /** - * Output only. [Output Only] The zone in which the reservation slot resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ReservationSlot setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] The unique identifier for this 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 this resource. This identifier is defined - * by the server. - * @param id id or {@code null} for none - */ - public ReservationSlot setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation - * slots. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation - * slots. - * @param kind kind or {@code null} for none - */ - public ReservationSlot setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] The name of the reservation slot. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of the reservation slot. - * @param name name or {@code null} for none - */ - public ReservationSlot setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The physical topology of the reservation slot. - * @return value or {@code null} for none - */ - public ReservationSlotPhysicalTopology getPhysicalTopology() { - return physicalTopology; - } - - /** - * Output only. [Output Only] The physical topology of the reservation slot. - * @param physicalTopology physicalTopology or {@code null} for none - */ - public ReservationSlot setPhysicalTopology(ReservationSlotPhysicalTopology physicalTopology) { - this.physicalTopology = physicalTopology; - return this; - } - - /** - * Output only. [Output Only] A server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] A server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ReservationSlot setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] A server-defined URL for this resource with the resource ID. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] A server-defined URL for this resource with the resource ID. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public ReservationSlot setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Specify share settings to create a shared slot. Set to empty to inherit the share settings from - * a parent resource. - * @return value or {@code null} for none - */ - public ShareSettings getShareSettings() { - return shareSettings; - } - - /** - * Specify share settings to create a shared slot. Set to empty to inherit the share settings from - * a parent resource. - * @param shareSettings shareSettings or {@code null} for none - */ - public ReservationSlot setShareSettings(ShareSettings shareSettings) { - this.shareSettings = shareSettings; - return this; - } - - /** - * Output only. [Output Only] The state of the reservation slot. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The state of the reservation slot. - * @param state state or {@code null} for none - */ - public ReservationSlot setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] The status of the reservation slot. - * @return value or {@code null} for none - */ - public ReservationSlotStatus getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the reservation slot. - * @param status status or {@code null} for none - */ - public ReservationSlot setStatus(ReservationSlotStatus status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] The zone in which the reservation slot resides. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] The zone in which the reservation slot resides. - * @param zone zone or {@code null} for none - */ - public ReservationSlot setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public ReservationSlot set(String fieldName, Object value) { - return (ReservationSlot) super.set(fieldName, value); - } - - @Override - public ReservationSlot clone() { - return (ReservationSlot) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotPhysicalTopology.java deleted file mode 100644 index 7d92a619175..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotPhysicalTopology.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSlotPhysicalTopology. - * - *

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 ReservationSlotPhysicalTopology extends com.google.api.client.json.GenericJson { - - /** - * The unique identifier of the capacity block within the cluster. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String block; - - /** - * The cluster name of the reservation sub-block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cluster; - - /** - * The unique identifier of the capacity host within the capacity sub-block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * The unique identifier of the capacity sub-block within the capacity block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subBlock; - - /** - * The unique identifier of the capacity block within the cluster. - * @return value or {@code null} for none - */ - public java.lang.String getBlock() { - return block; - } - - /** - * The unique identifier of the capacity block within the cluster. - * @param block block or {@code null} for none - */ - public ReservationSlotPhysicalTopology setBlock(java.lang.String block) { - this.block = block; - return this; - } - - /** - * The cluster name of the reservation sub-block. - * @return value or {@code null} for none - */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * The cluster name of the reservation sub-block. - * @param cluster cluster or {@code null} for none - */ - public ReservationSlotPhysicalTopology setCluster(java.lang.String cluster) { - this.cluster = cluster; - return this; - } - - /** - * The unique identifier of the capacity host within the capacity sub-block. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * The unique identifier of the capacity host within the capacity sub-block. - * @param host host or {@code null} for none - */ - public ReservationSlotPhysicalTopology setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * The unique identifier of the capacity sub-block within the capacity block. - * @return value or {@code null} for none - */ - public java.lang.String getSubBlock() { - return subBlock; - } - - /** - * The unique identifier of the capacity sub-block within the capacity block. - * @param subBlock subBlock or {@code null} for none - */ - public ReservationSlotPhysicalTopology setSubBlock(java.lang.String subBlock) { - this.subBlock = subBlock; - return this; - } - - @Override - public ReservationSlotPhysicalTopology set(String fieldName, Object value) { - return (ReservationSlotPhysicalTopology) super.set(fieldName, value); - } - - @Override - public ReservationSlotPhysicalTopology clone() { - return (ReservationSlotPhysicalTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotStatus.java deleted file mode 100644 index ea043960f19..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotStatus.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSlotStatus. - * - *

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 ReservationSlotStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The physical topology of the reservation sub-block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSlotPhysicalTopology physicalTopology; - - /** - * Output only. The RDMA IP address of the physical host. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rdmaIpAddresses; - - /** - * Output only. The URIs of the instances currently running on this slot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List runningInstances; - - /** - * Output only. [Output Only] The physical topology of the reservation sub-block. - * @return value or {@code null} for none - */ - public ReservationSlotPhysicalTopology getPhysicalTopology() { - return physicalTopology; - } - - /** - * Output only. [Output Only] The physical topology of the reservation sub-block. - * @param physicalTopology physicalTopology or {@code null} for none - */ - public ReservationSlotStatus setPhysicalTopology(ReservationSlotPhysicalTopology physicalTopology) { - this.physicalTopology = physicalTopology; - return this; - } - - /** - * Output only. The RDMA IP address of the physical host. - * @return value or {@code null} for none - */ - public java.util.List getRdmaIpAddresses() { - return rdmaIpAddresses; - } - - /** - * Output only. The RDMA IP address of the physical host. - * @param rdmaIpAddresses rdmaIpAddresses or {@code null} for none - */ - public ReservationSlotStatus setRdmaIpAddresses(java.util.List rdmaIpAddresses) { - this.rdmaIpAddresses = rdmaIpAddresses; - return this; - } - - /** - * Output only. The URIs of the instances currently running on this slot. - * @return value or {@code null} for none - */ - public java.util.List getRunningInstances() { - return runningInstances; - } - - /** - * Output only. The URIs of the instances currently running on this slot. - * @param runningInstances runningInstances or {@code null} for none - */ - public ReservationSlotStatus setRunningInstances(java.util.List runningInstances) { - this.runningInstances = runningInstances; - return this; - } - - @Override - public ReservationSlotStatus set(String fieldName, Object value) { - return (ReservationSlotStatus) super.set(fieldName, value); - } - - @Override - public ReservationSlotStatus clone() { - return (ReservationSlotStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetResponse.java deleted file mode 100644 index 4682f2552f5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSlotsGetResponse. - * - *

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 ReservationSlotsGetResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSlot resource; - - /** - * @return value or {@code null} for none - */ - public ReservationSlot getResource() { - return resource; - } - - /** - * @param resource resource or {@code null} for none - */ - public ReservationSlotsGetResponse setResource(ReservationSlot resource) { - this.resource = resource; - return this; - } - - @Override - public ReservationSlotsGetResponse set(String fieldName, Object value) { - return (ReservationSlotsGetResponse) super.set(fieldName, value); - } - - @Override - public ReservationSlotsGetResponse clone() { - return (ReservationSlotsGetResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetVersionRequest.java deleted file mode 100644 index 63c483635ed..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsGetVersionRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSlotsGetVersionRequest. - * - *

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 ReservationSlotsGetVersionRequest extends com.google.api.client.json.GenericJson { - - /** - * The SBOM selection to return. Duplicate values in the list will be ignored. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sbomSelections; - - /** - * The SBOM selection to return. Duplicate values in the list will be ignored. - * @return value or {@code null} for none - */ - public java.util.List getSbomSelections() { - return sbomSelections; - } - - /** - * The SBOM selection to return. Duplicate values in the list will be ignored. - * @param sbomSelections sbomSelections or {@code null} for none - */ - public ReservationSlotsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { - this.sbomSelections = sbomSelections; - return this; - } - - @Override - public ReservationSlotsGetVersionRequest set(String fieldName, Object value) { - return (ReservationSlotsGetVersionRequest) super.set(fieldName, value); - } - - @Override - public ReservationSlotsGetVersionRequest clone() { - return (ReservationSlotsGetVersionRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsListResponse.java deleted file mode 100644 index c31ac5e80a7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSlotsListResponse.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of reservation slots within a single reservation. - * - *

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 ReservationSlotsListResponse extends com.google.api.client.json.GenericJson { - - /** - * The 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 reservation slot 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 ReservationSlot 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(ReservationSlot.class); - } - - /** - * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * The server-defined URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * An informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * The unique identifier for the resource; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * The unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public ReservationSlotsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of reservation slot resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of reservation slot resources. - * @param items items or {@code null} for none - */ - public ReservationSlotsListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * The type of resource. Alwayscompute#reservationSlot for a list of reservation slots. - * @param kind kind or {@code null} for none - */ - public ReservationSlotsListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ReservationSlotsListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * The server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * The server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ReservationSlotsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * An informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * An informational warning message. - * @param warning warning or {@code null} for none - */ - public ReservationSlotsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReservationSlotsListResponse set(String fieldName, Object value) { - return (ReservationSlotsListResponse) super.set(fieldName, value); - } - - @Override - public ReservationSlotsListResponse clone() { - return (ReservationSlotsListResponse) super.clone(); - } - - /** - * An 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 ReservationSlotsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlock.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlock.java deleted file mode 100644 index fffb0d55a23..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlock.java +++ /dev/null @@ -1,420 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a reservation subBlock 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 ReservationSubBlock extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Slice info for the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AcceleratorTopologiesInfo acceleratorTopologiesInfo; - - /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer count; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSubBlockHealthInfo healthInfo; - - /** - * 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] The number of instances that are currently in use on this - * reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer inUseCount; - - /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer inUseHostCount; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute - * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern - * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The physical topology of the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSubBlockPhysicalTopology physicalTopology; - - /** - * Output only. Maintenance information for this reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GroupMaintenanceInfo reservationSubBlockMaintenance; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. [Output Only] Status of the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] Slice info for the reservation subBlock. - * @return value or {@code null} for none - */ - public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { - return acceleratorTopologiesInfo; - } - - /** - * Output only. [Output Only] Slice info for the reservation subBlock. - * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none - */ - public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { - this.acceleratorTopologiesInfo = acceleratorTopologiesInfo; - return this; - } - - /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. - * @param count count or {@code null} for none - */ - public ReservationSubBlock setCount(java.lang.Integer count) { - this.count = count; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * @return value or {@code null} for none - */ - public ReservationSubBlockHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * @param healthInfo healthInfo or {@code null} for none - */ - public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { - this.healthInfo = healthInfo; - 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 ReservationSubBlock setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.Integer getInUseCount() { - return inUseCount; - } - - /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation subBlock. - * @param inUseCount inUseCount or {@code null} for none - */ - public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { - this.inUseCount = inUseCount; - return this; - } - - /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. - * @return value or {@code null} for none - */ - public java.lang.Integer getInUseHostCount() { - return inUseHostCount; - } - - /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. - * @param inUseHostCount inUseHostCount or {@code null} for none - */ - public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { - this.inUseHostCount = inUseHostCount; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. - * @param kind kind or {@code null} for none - */ - public ReservationSubBlock setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute - * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern - * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of this reservation subBlock generated by Google Compute - * Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern - * [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? - * @param name name or {@code null} for none - */ - public ReservationSubBlock setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The physical topology of the reservation subBlock. - * @return value or {@code null} for none - */ - public ReservationSubBlockPhysicalTopology getPhysicalTopology() { - return physicalTopology; - } - - /** - * Output only. [Output Only] The physical topology of the reservation subBlock. - * @param physicalTopology physicalTopology or {@code null} for none - */ - public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { - this.physicalTopology = physicalTopology; - return this; - } - - /** - * Output only. Maintenance information for this reservation subBlock. - * @return value or {@code null} for none - */ - public GroupMaintenanceInfo getReservationSubBlockMaintenance() { - return reservationSubBlockMaintenance; - } - - /** - * Output only. Maintenance information for this reservation subBlock. - * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none - */ - public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { - this.reservationSubBlockMaintenance = reservationSubBlockMaintenance; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ReservationSubBlock setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. [Output Only] Status of the reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] Status of the reservation subBlock. - * @param status status or {@code null} for none - */ - public ReservationSubBlock setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. - * @param zone zone or {@code null} for none - */ - public ReservationSubBlock setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public ReservationSubBlock set(String fieldName, Object value) { - return (ReservationSubBlock) super.set(fieldName, value); - } - - @Override - public ReservationSubBlock clone() { - return (ReservationSubBlock) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockHealthInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockHealthInfo.java deleted file mode 100644 index 74ff1b8d41e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockHealthInfo.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Health information for the reservation subBlock. - * - *

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 ReservationSubBlockHealthInfo extends com.google.api.client.json.GenericJson { - - /** - * The number of degraded hosts in the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer degradedHostCount; - - /** - * The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer degradedInfraCount; - - /** - * The health status of the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatus; - - /** - * The number of healthy hosts in the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyHostCount; - - /** - * The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer healthyInfraCount; - - /** - * The number of degraded hosts in the reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.Integer getDegradedHostCount() { - return degradedHostCount; - } - - /** - * The number of degraded hosts in the reservation subBlock. - * @param degradedHostCount degradedHostCount or {@code null} for none - */ - public ReservationSubBlockHealthInfo setDegradedHostCount(java.lang.Integer degradedHostCount) { - this.degradedHostCount = degradedHostCount; - return this; - } - - /** - * The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. - * @return value or {@code null} for none - */ - public java.lang.Integer getDegradedInfraCount() { - return degradedInfraCount; - } - - /** - * The number of degraded infrastructure (e.g NV link domain) in the reservation subblock. - * @param degradedInfraCount degradedInfraCount or {@code null} for none - */ - public ReservationSubBlockHealthInfo setDegradedInfraCount(java.lang.Integer degradedInfraCount) { - this.degradedInfraCount = degradedInfraCount; - return this; - } - - /** - * The health status of the reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatus() { - return healthStatus; - } - - /** - * The health status of the reservation subBlock. - * @param healthStatus healthStatus or {@code null} for none - */ - public ReservationSubBlockHealthInfo setHealthStatus(java.lang.String healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * The number of healthy hosts in the reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyHostCount() { - return healthyHostCount; - } - - /** - * The number of healthy hosts in the reservation subBlock. - * @param healthyHostCount healthyHostCount or {@code null} for none - */ - public ReservationSubBlockHealthInfo setHealthyHostCount(java.lang.Integer healthyHostCount) { - this.healthyHostCount = healthyHostCount; - return this; - } - - /** - * The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. - * @return value or {@code null} for none - */ - public java.lang.Integer getHealthyInfraCount() { - return healthyInfraCount; - } - - /** - * The number of healthy infrastructure (e.g NV link domain) in the reservation subblock. - * @param healthyInfraCount healthyInfraCount or {@code null} for none - */ - public ReservationSubBlockHealthInfo setHealthyInfraCount(java.lang.Integer healthyInfraCount) { - this.healthyInfraCount = healthyInfraCount; - return this; - } - - @Override - public ReservationSubBlockHealthInfo set(String fieldName, Object value) { - return (ReservationSubBlockHealthInfo) super.set(fieldName, value); - } - - @Override - public ReservationSubBlockHealthInfo clone() { - return (ReservationSubBlockHealthInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockPhysicalTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockPhysicalTopology.java deleted file mode 100644 index 410041453bc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlockPhysicalTopology.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSubBlockPhysicalTopology. - * - *

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 ReservationSubBlockPhysicalTopology extends com.google.api.client.json.GenericJson { - - /** - * The hash of the capacity block within the cluster. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String block; - - /** - * The cluster name of the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cluster; - - /** - * The hash of the capacity sub-block within the capacity block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subBlock; - - /** - * The hash of the capacity block within the cluster. - * @return value or {@code null} for none - */ - public java.lang.String getBlock() { - return block; - } - - /** - * The hash of the capacity block within the cluster. - * @param block block or {@code null} for none - */ - public ReservationSubBlockPhysicalTopology setBlock(java.lang.String block) { - this.block = block; - return this; - } - - /** - * The cluster name of the reservation subBlock. - * @return value or {@code null} for none - */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * The cluster name of the reservation subBlock. - * @param cluster cluster or {@code null} for none - */ - public ReservationSubBlockPhysicalTopology setCluster(java.lang.String cluster) { - this.cluster = cluster; - return this; - } - - /** - * The hash of the capacity sub-block within the capacity block. - * @return value or {@code null} for none - */ - public java.lang.String getSubBlock() { - return subBlock; - } - - /** - * The hash of the capacity sub-block within the capacity block. - * @param subBlock subBlock or {@code null} for none - */ - public ReservationSubBlockPhysicalTopology setSubBlock(java.lang.String subBlock) { - this.subBlock = subBlock; - return this; - } - - @Override - public ReservationSubBlockPhysicalTopology set(String fieldName, Object value) { - return (ReservationSubBlockPhysicalTopology) super.set(fieldName, value); - } - - @Override - public ReservationSubBlockPhysicalTopology clone() { - return (ReservationSubBlockPhysicalTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetResponse.java deleted file mode 100644 index 3a8aaa4a886..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSubBlocksGetResponse. - * - *

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 ReservationSubBlocksGetResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSubBlock resource; - - /** - * @return value or {@code null} for none - */ - public ReservationSubBlock getResource() { - return resource; - } - - /** - * @param resource resource or {@code null} for none - */ - public ReservationSubBlocksGetResponse setResource(ReservationSubBlock resource) { - this.resource = resource; - return this; - } - - @Override - public ReservationSubBlocksGetResponse set(String fieldName, Object value) { - return (ReservationSubBlocksGetResponse) super.set(fieldName, value); - } - - @Override - public ReservationSubBlocksGetResponse clone() { - return (ReservationSubBlocksGetResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetVersionRequest.java deleted file mode 100644 index 05ad462935b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksGetVersionRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSubBlocksGetVersionRequest. - * - *

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 ReservationSubBlocksGetVersionRequest extends com.google.api.client.json.GenericJson { - - /** - * The SBOM selection to return. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sbomSelections; - - /** - * The SBOM selection to return. - * @return value or {@code null} for none - */ - public java.util.List getSbomSelections() { - return sbomSelections; - } - - /** - * The SBOM selection to return. - * @param sbomSelections sbomSelections or {@code null} for none - */ - public ReservationSubBlocksGetVersionRequest setSbomSelections(java.util.List sbomSelections) { - this.sbomSelections = sbomSelections; - return this; - } - - @Override - public ReservationSubBlocksGetVersionRequest set(String fieldName, Object value) { - return (ReservationSubBlocksGetVersionRequest) super.set(fieldName, value); - } - - @Override - public ReservationSubBlocksGetVersionRequest clone() { - return (ReservationSubBlocksGetVersionRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksListResponse.java deleted file mode 100644 index c16d5a7c985..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksListResponse.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of reservation subBlocks under a single reservation. - * - *

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 ReservationSubBlocksListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 reservation subBlock 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 ReservationSubBlock 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(ReservationSubBlock.class); - } - - /** - * Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation subBlocks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Server-defined URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Unique identifier for the resource; defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public ReservationSubBlocksListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of reservation subBlock resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of reservation subBlock resources. - * @param items items or {@code null} for none - */ - public ReservationSubBlocksListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation subBlocks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Type of the resource. Alwayscompute#reservationSubBlock for a list of reservation subBlocks. - * @param kind kind or {@code null} for none - */ - public ReservationSubBlocksListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * This token allows you to get the next page of results for list requests. If the number of - * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter - * pageToken in the next list request. Subsequent list requests will have their own nextPageToken - * to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ReservationSubBlocksListResponse setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ReservationSubBlocksListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning message. - * @param warning warning or {@code null} for none - */ - public ReservationSubBlocksListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReservationSubBlocksListResponse set(String fieldName, Object value) { - return (ReservationSubBlocksListResponse) super.set(fieldName, value); - } - - @Override - public ReservationSubBlocksListResponse clone() { - return (ReservationSubBlocksListResponse) super.clone(); - } - - /** - * 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 ReservationSubBlocksListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequest.java deleted file mode 100644 index 05776d13051..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationSubBlocksReportFaultyRequest. - * - *

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 ReservationSubBlocksReportFaultyRequest extends com.google.api.client.json.GenericJson { - - /** - * The disruption schedule for the subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disruptionSchedule; - - /** - * The component that experienced the fault. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String failureComponent; - - /** - * The reasons for the fault experienced with the subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List faultReasons; - - /** - * The disruption schedule for the subBlock. - * @return value or {@code null} for none - */ - public java.lang.String getDisruptionSchedule() { - return disruptionSchedule; - } - - /** - * The disruption schedule for the subBlock. - * @param disruptionSchedule disruptionSchedule or {@code null} for none - */ - public ReservationSubBlocksReportFaultyRequest setDisruptionSchedule(java.lang.String disruptionSchedule) { - this.disruptionSchedule = disruptionSchedule; - return this; - } - - /** - * The component that experienced the fault. - * @return value or {@code null} for none - */ - public java.lang.String getFailureComponent() { - return failureComponent; - } - - /** - * The component that experienced the fault. - * @param failureComponent failureComponent or {@code null} for none - */ - public ReservationSubBlocksReportFaultyRequest setFailureComponent(java.lang.String failureComponent) { - this.failureComponent = failureComponent; - return this; - } - - /** - * The reasons for the fault experienced with the subBlock. - * @return value or {@code null} for none - */ - public java.util.List getFaultReasons() { - return faultReasons; - } - - /** - * The reasons for the fault experienced with the subBlock. - * @param faultReasons faultReasons or {@code null} for none - */ - public ReservationSubBlocksReportFaultyRequest setFaultReasons(java.util.List faultReasons) { - this.faultReasons = faultReasons; - return this; - } - - @Override - public ReservationSubBlocksReportFaultyRequest set(String fieldName, Object value) { - return (ReservationSubBlocksReportFaultyRequest) super.set(fieldName, value); - } - - @Override - public ReservationSubBlocksReportFaultyRequest clone() { - return (ReservationSubBlocksReportFaultyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequestFaultReason.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequestFaultReason.java deleted file mode 100644 index aa68fadb6b3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationSubBlocksReportFaultyRequestFaultReason.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * The reason for the fault experienced with the subBlock. - * - *

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 ReservationSubBlocksReportFaultyRequestFaultReason extends com.google.api.client.json.GenericJson { - - /** - * The behavior of the fault experienced with the subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String behavior; - - /** - * The description of the fault experienced with the subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The behavior of the fault experienced with the subBlock. - * @return value or {@code null} for none - */ - public java.lang.String getBehavior() { - return behavior; - } - - /** - * The behavior of the fault experienced with the subBlock. - * @param behavior behavior or {@code null} for none - */ - public ReservationSubBlocksReportFaultyRequestFaultReason setBehavior(java.lang.String behavior) { - this.behavior = behavior; - return this; - } - - /** - * The description of the fault experienced with the subBlock. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * The description of the fault experienced with the subBlock. - * @param description description or {@code null} for none - */ - public ReservationSubBlocksReportFaultyRequestFaultReason setDescription(java.lang.String description) { - this.description = description; - return this; - } - - @Override - public ReservationSubBlocksReportFaultyRequestFaultReason set(String fieldName, Object value) { - return (ReservationSubBlocksReportFaultyRequestFaultReason) super.set(fieldName, value); - } - - @Override - public ReservationSubBlocksReportFaultyRequestFaultReason clone() { - return (ReservationSubBlocksReportFaultyRequestFaultReason) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsBlocksPerformMaintenanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsBlocksPerformMaintenanceRequest.java deleted file mode 100644 index 63bc1ea106b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsBlocksPerformMaintenanceRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationsBlocksPerformMaintenanceRequest. - * - *

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 ReservationsBlocksPerformMaintenanceRequest extends com.google.api.client.json.GenericJson { - - /** - * Specifies if all, running or unused hosts are in scope for this request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maintenanceScope; - - /** - * Specifies if all, running or unused hosts are in scope for this request. - * @return value or {@code null} for none - */ - public java.lang.String getMaintenanceScope() { - return maintenanceScope; - } - - /** - * Specifies if all, running or unused hosts are in scope for this request. - * @param maintenanceScope maintenanceScope or {@code null} for none - */ - public ReservationsBlocksPerformMaintenanceRequest setMaintenanceScope(java.lang.String maintenanceScope) { - this.maintenanceScope = maintenanceScope; - return this; - } - - @Override - public ReservationsBlocksPerformMaintenanceRequest set(String fieldName, Object value) { - return (ReservationsBlocksPerformMaintenanceRequest) super.set(fieldName, value); - } - - @Override - public ReservationsBlocksPerformMaintenanceRequest clone() { - return (ReservationsBlocksPerformMaintenanceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsPerformMaintenanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsPerformMaintenanceRequest.java deleted file mode 100644 index 9e29c58b65e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsPerformMaintenanceRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationsPerformMaintenanceRequest. - * - *

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 ReservationsPerformMaintenanceRequest extends com.google.api.client.json.GenericJson { - - /** - * Specifies if all, running or unused hosts are in scope for this request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maintenanceScope; - - /** - * Specifies if all, running or unused hosts are in scope for this request. - * @return value or {@code null} for none - */ - public java.lang.String getMaintenanceScope() { - return maintenanceScope; - } - - /** - * Specifies if all, running or unused hosts are in scope for this request. - * @param maintenanceScope maintenanceScope or {@code null} for none - */ - public ReservationsPerformMaintenanceRequest setMaintenanceScope(java.lang.String maintenanceScope) { - this.maintenanceScope = maintenanceScope; - return this; - } - - @Override - public ReservationsPerformMaintenanceRequest set(String fieldName, Object value) { - return (ReservationsPerformMaintenanceRequest) super.set(fieldName, value); - } - - @Override - public ReservationsPerformMaintenanceRequest clone() { - return (ReservationsPerformMaintenanceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsResizeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsResizeRequest.java deleted file mode 100644 index 0010c9bccfc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsResizeRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationsResizeRequest. - * - *

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 ReservationsResizeRequest extends com.google.api.client.json.GenericJson { - - /** - * Number of allocated resources can be resized with minimum = 1 and maximum = 1000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long specificSkuCount; - - /** - * Number of allocated resources can be resized with minimum = 1 and maximum = 1000. - * @return value or {@code null} for none - */ - public java.lang.Long getSpecificSkuCount() { - return specificSkuCount; - } - - /** - * Number of allocated resources can be resized with minimum = 1 and maximum = 1000. - * @param specificSkuCount specificSkuCount or {@code null} for none - */ - public ReservationsResizeRequest setSpecificSkuCount(java.lang.Long specificSkuCount) { - this.specificSkuCount = specificSkuCount; - return this; - } - - @Override - public ReservationsResizeRequest set(String fieldName, Object value) { - return (ReservationsResizeRequest) super.set(fieldName, value); - } - - @Override - public ReservationsResizeRequest clone() { - return (ReservationsResizeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsScopedList.java deleted file mode 100644 index c3409875104..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ReservationsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ReservationsScopedList. - * - *

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 ReservationsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of reservations contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List reservations; - - static { - // hack to force ProGuard to consider Reservation 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(Reservation.class); - } - - /** - * Informational warning which replaces the list of reservations when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of reservations contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getReservations() { - return reservations; - } - - /** - * A list of reservations contained in this scope. - * @param reservations reservations or {@code null} for none - */ - public ReservationsScopedList setReservations(java.util.List reservations) { - this.reservations = reservations; - return this; - } - - /** - * Informational warning which replaces the list of reservations when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of reservations when the list is empty. - * @param warning warning or {@code null} for none - */ - public ReservationsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ReservationsScopedList set(String fieldName, Object value) { - return (ReservationsScopedList) super.set(fieldName, value); - } - - @Override - public ReservationsScopedList clone() { - return (ReservationsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of reservations when the list is empty. - */ - 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 ReservationsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceCommitment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceCommitment.java deleted file mode 100644 index 4d980ed6301..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceCommitment.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * Commitment for a particular hardware resource (a commitment is composed of one or more of these). - * - *

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 ResourceCommitment extends com.google.api.client.json.GenericJson { - - /** - * Name of the accelerator type or GPU resource. Specify this field only when the type of hardware - * resource is ACCELERATOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorType; - - /** - * The quantity of the hardware resource that you want to commit to purchasing (in a type- - * dependent unit). - For vCPUs, you must specify an integer value. - For memory, you - * specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, - * with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer - * value. - For Local SSD disks, you must specify the amount in GB. The size of a single - * Local SSD disk is 375 GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long amount; - - /** - * The type of hardware resource that you want to specify. You can specify any of the following - * values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR - * - * Specify as a separate entry in the list for each individual resource type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Name of the accelerator type or GPU resource. Specify this field only when the type of hardware - * resource is ACCELERATOR. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorType() { - return acceleratorType; - } - - /** - * Name of the accelerator type or GPU resource. Specify this field only when the type of hardware - * resource is ACCELERATOR. - * @param acceleratorType acceleratorType or {@code null} for none - */ - public ResourceCommitment setAcceleratorType(java.lang.String acceleratorType) { - this.acceleratorType = acceleratorType; - return this; - } - - /** - * The quantity of the hardware resource that you want to commit to purchasing (in a type- - * dependent unit). - For vCPUs, you must specify an integer value. - For memory, you - * specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, - * with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer - * value. - For Local SSD disks, you must specify the amount in GB. The size of a single - * Local SSD disk is 375 GB. - * @return value or {@code null} for none - */ - public java.lang.Long getAmount() { - return amount; - } - - /** - * The quantity of the hardware resource that you want to commit to purchasing (in a type- - * dependent unit). - For vCPUs, you must specify an integer value. - For memory, you - * specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, - * with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer - * value. - For Local SSD disks, you must specify the amount in GB. The size of a single - * Local SSD disk is 375 GB. - * @param amount amount or {@code null} for none - */ - public ResourceCommitment setAmount(java.lang.Long amount) { - this.amount = amount; - return this; - } - - /** - * The type of hardware resource that you want to specify. You can specify any of the following - * values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR - * - * Specify as a separate entry in the list for each individual resource type. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of hardware resource that you want to specify. You can specify any of the following - * values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR - * - * Specify as a separate entry in the list for each individual resource type. - * @param type type or {@code null} for none - */ - public ResourceCommitment setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public ResourceCommitment set(String fieldName, Object value) { - return (ResourceCommitment) super.set(fieldName, value); - } - - @Override - public ResourceCommitment clone() { - return (ResourceCommitment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceGroupReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceGroupReference.java deleted file mode 100644 index 1076e08959c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceGroupReference.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ResourceGroupReference. - * - *

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 ResourceGroupReference extends com.google.api.client.json.GenericJson { - - /** - * A URI referencing one of the instance groups or network endpoint groups listed in the backend - * service. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String group; - - /** - * A URI referencing one of the instance groups or network endpoint groups listed in the backend - * service. - * @return value or {@code null} for none - */ - public java.lang.String getGroup() { - return group; - } - - /** - * A URI referencing one of the instance groups or network endpoint groups listed in the backend - * service. - * @param group group or {@code null} for none - */ - public ResourceGroupReference setGroup(java.lang.String group) { - this.group = group; - return this; - } - - @Override - public ResourceGroupReference set(String fieldName, Object value) { - return (ResourceGroupReference) super.set(fieldName, value); - } - - @Override - public ResourceGroupReference clone() { - return (ResourceGroupReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceMetadata.java deleted file mode 100644 index dd06f1a3505..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceMetadata.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Standardized resource metadata common to all compute resources. - * - *

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 ResourceMetadata extends com.google.api.client.json.GenericJson { - - /** - * The version of the API interface that this resource was retrieved through. For example, - * `"2025-01-01"` or `"2025-01-01-preview"`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String apiVersion; - - /** - * The canonical resource type name in the format of a resource type as defined by - * [AIP-123](https://google.aip.dev/123). For example, `"compute.googleapis.com/Instance"`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String resourceType; - - /** - * The version of the API interface that this resource was retrieved through. For example, - * `"2025-01-01"` or `"2025-01-01-preview"`. - * @return value or {@code null} for none - */ - public java.lang.String getApiVersion() { - return apiVersion; - } - - /** - * The version of the API interface that this resource was retrieved through. For example, - * `"2025-01-01"` or `"2025-01-01-preview"`. - * @param apiVersion apiVersion or {@code null} for none - */ - public ResourceMetadata setApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * The canonical resource type name in the format of a resource type as defined by - * [AIP-123](https://google.aip.dev/123). For example, `"compute.googleapis.com/Instance"`. - * @return value or {@code null} for none - */ - public java.lang.String getResourceType() { - return resourceType; - } - - /** - * The canonical resource type name in the format of a resource type as defined by - * [AIP-123](https://google.aip.dev/123). For example, `"compute.googleapis.com/Instance"`. - * @param resourceType resourceType or {@code null} for none - */ - public ResourceMetadata setResourceType(java.lang.String resourceType) { - this.resourceType = resourceType; - return this; - } - - @Override - public ResourceMetadata set(String fieldName, Object value) { - return (ResourceMetadata) super.set(fieldName, value); - } - - @Override - public ResourceMetadata clone() { - return (ResourceMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePoliciesScopedList.java deleted file mode 100644 index de9d51d254c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePoliciesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ResourcePoliciesScopedList. - * - *

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 ResourcePoliciesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of resourcePolicies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Informational warning which replaces the list of resourcePolicies when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of resourcePolicies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * A list of resourcePolicies contained in this scope. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public ResourcePoliciesScopedList setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Informational warning which replaces the list of resourcePolicies when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of resourcePolicies when the list is empty. - * @param warning warning or {@code null} for none - */ - public ResourcePoliciesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ResourcePoliciesScopedList set(String fieldName, Object value) { - return (ResourcePoliciesScopedList) super.set(fieldName, value); - } - - @Override - public ResourcePoliciesScopedList clone() { - return (ResourcePoliciesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of resourcePolicies when the list is empty. - */ - 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 ResourcePoliciesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicy.java deleted file mode 100644 index 0133a4d5eb7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicy.java +++ /dev/null @@ -1,391 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Resource Policy resource. You can use resource policies to schedule actions for some - * Compute Engine resources. For example, you can use them toschedule persistent disk snapshots. - * - *

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 ResourcePolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Resource policy for disk consistency groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyDiskConsistencyGroupPolicy diskConsistencyGroupPolicy; - - /** - * Resource policy for instances for placement configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; - - /** - * 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; - - /** - * Resource policy for scheduling instance operations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. [Output Only] The system status of the resource policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyResourceStatus resourceStatus; - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * Resource policy for persistent disks for creating snapshots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; - - /** - * Output only. [Output Only] The status of resource policy creation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Resource policy for defining instance placement for MIGs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyWorkloadPolicy workloadPolicy; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * @param description description or {@code null} for none - */ - public ResourcePolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Resource policy for disk consistency groups. - * @return value or {@code null} for none - */ - public ResourcePolicyDiskConsistencyGroupPolicy getDiskConsistencyGroupPolicy() { - return diskConsistencyGroupPolicy; - } - - /** - * Resource policy for disk consistency groups. - * @param diskConsistencyGroupPolicy diskConsistencyGroupPolicy or {@code null} for none - */ - public ResourcePolicy setDiskConsistencyGroupPolicy(ResourcePolicyDiskConsistencyGroupPolicy diskConsistencyGroupPolicy) { - this.diskConsistencyGroupPolicy = diskConsistencyGroupPolicy; - return this; - } - - /** - * Resource policy for instances for placement configuration. - * @return value or {@code null} for none - */ - public ResourcePolicyGroupPlacementPolicy getGroupPlacementPolicy() { - return groupPlacementPolicy; - } - - /** - * Resource policy for instances for placement configuration. - * @param groupPlacementPolicy groupPlacementPolicy or {@code null} for none - */ - public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy groupPlacementPolicy) { - this.groupPlacementPolicy = groupPlacementPolicy; - 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 ResourcePolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Resource policy for scheduling instance operations. - * @return value or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicy getInstanceSchedulePolicy() { - return instanceSchedulePolicy; - } - - /** - * Resource policy for scheduling instance operations. - * @param instanceSchedulePolicy instanceSchedulePolicy or {@code null} for none - */ - public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy) { - this.instanceSchedulePolicy = instanceSchedulePolicy; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. - * @param kind kind or {@code null} for none - */ - public ResourcePolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. The - * resource 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 ResourcePolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * @param region region or {@code null} for none - */ - public ResourcePolicy setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. [Output Only] The system status of the resource policy. - * @return value or {@code null} for none - */ - public ResourcePolicyResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] The system status of the resource policy. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ResourcePolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Resource policy for persistent disks for creating snapshots. - * @return value or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicy getSnapshotSchedulePolicy() { - return snapshotSchedulePolicy; - } - - /** - * Resource policy for persistent disks for creating snapshots. - * @param snapshotSchedulePolicy snapshotSchedulePolicy or {@code null} for none - */ - public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy) { - this.snapshotSchedulePolicy = snapshotSchedulePolicy; - return this; - } - - /** - * Output only. [Output Only] The status of resource policy creation. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of resource policy creation. - * @param status status or {@code null} for none - */ - public ResourcePolicy setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Resource policy for defining instance placement for MIGs. - * @return value or {@code null} for none - */ - public ResourcePolicyWorkloadPolicy getWorkloadPolicy() { - return workloadPolicy; - } - - /** - * Resource policy for defining instance placement for MIGs. - * @param workloadPolicy workloadPolicy or {@code null} for none - */ - public ResourcePolicy setWorkloadPolicy(ResourcePolicyWorkloadPolicy workloadPolicy) { - this.workloadPolicy = workloadPolicy; - return this; - } - - @Override - public ResourcePolicy set(String fieldName, Object value) { - return (ResourcePolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicy clone() { - return (ResourcePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyAggregatedList.java deleted file mode 100644 index a9c0e172a00..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyAggregatedList.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of resourcePolicies. - * - *

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 ResourcePolicyAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 ResourcePolicy resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider ResourcePoliciesScopedList 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(ResourcePoliciesScopedList.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ResourcePolicy resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of ResourcePolicy resources. - * @param items items or {@code null} for none - */ - public ResourcePolicyAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ResourcePolicyAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList 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 ResourcePolicyAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ResourcePolicyAggregatedList set(String fieldName, Object value) { - return (ResourcePolicyAggregatedList) super.set(fieldName, value); - } - - @Override - public ResourcePolicyAggregatedList clone() { - return (ResourcePolicyAggregatedList) 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 ResourcePolicyAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDailyCycle.java deleted file mode 100644 index ffb9ea2a21a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDailyCycle.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * Time window specified for daily operations. - * - *

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 ResourcePolicyDailyCycle extends com.google.api.client.json.GenericJson { - - /** - * Defines a schedule with units measured in days. The value determines how many days pass between - * the start of each cycle. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer daysInCycle; - - /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String duration; - - /** - * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * Defines a schedule with units measured in days. The value determines how many days pass between - * the start of each cycle. - * @return value or {@code null} for none - */ - public java.lang.Integer getDaysInCycle() { - return daysInCycle; - } - - /** - * Defines a schedule with units measured in days. The value determines how many days pass between - * the start of each cycle. - * @param daysInCycle daysInCycle or {@code null} for none - */ - public ResourcePolicyDailyCycle setDaysInCycle(java.lang.Integer daysInCycle) { - this.daysInCycle = daysInCycle; - return this; - } - - /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. - * @return value or {@code null} for none - */ - public java.lang.String getDuration() { - return duration; - } - - /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. - * @param duration duration or {@code null} for none - */ - public ResourcePolicyDailyCycle setDuration(java.lang.String duration) { - this.duration = duration; - return this; - } - - /** - * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - * 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. - * @param startTime startTime or {@code null} for none - */ - public ResourcePolicyDailyCycle setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public ResourcePolicyDailyCycle set(String fieldName, Object value) { - return (ResourcePolicyDailyCycle) super.set(fieldName, value); - } - - @Override - public ResourcePolicyDailyCycle clone() { - return (ResourcePolicyDailyCycle) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDiskConsistencyGroupPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDiskConsistencyGroupPolicy.java deleted file mode 100644 index d469903f6ae..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyDiskConsistencyGroupPolicy.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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.preview.model; - -/** - * Resource policy for disk consistency groups. - * - *

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 ResourcePolicyDiskConsistencyGroupPolicy extends com.google.api.client.json.GenericJson { - - @Override - public ResourcePolicyDiskConsistencyGroupPolicy set(String fieldName, Object value) { - return (ResourcePolicyDiskConsistencyGroupPolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicyDiskConsistencyGroupPolicy clone() { - return (ResourcePolicyDiskConsistencyGroupPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyGroupPlacementPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyGroupPlacementPolicy.java deleted file mode 100644 index 3253ed25ffe..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyGroupPlacementPolicy.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * 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.preview.model; - -/** - * A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure - * bucket separation - * - *

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 ResourcePolicyGroupPlacementPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies the connection mode for the accelerator topology. If not specified, the default is - * AUTO_CONNECT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorTopologyMode; - - /** - * The number of availability domains to spread instances across. If two instances are in - * different availability domain, they are not in the same low latency network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer availabilityDomainCount; - - /** - * Specifies network collocation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String collocation; - - /** - * Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gpuTopology; - - /** - * Number of VMs in this placement group. Google does not recommend that you use this field unless - * you use a compact policy and you want your policy to work only if it contains this exact number - * of VMs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer vmCount; - - /** - * Specifies the connection mode for the accelerator topology. If not specified, the default is - * AUTO_CONNECT. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorTopologyMode() { - return acceleratorTopologyMode; - } - - /** - * Specifies the connection mode for the accelerator topology. If not specified, the default is - * AUTO_CONNECT. - * @param acceleratorTopologyMode acceleratorTopologyMode or {@code null} for none - */ - public ResourcePolicyGroupPlacementPolicy setAcceleratorTopologyMode(java.lang.String acceleratorTopologyMode) { - this.acceleratorTopologyMode = acceleratorTopologyMode; - return this; - } - - /** - * The number of availability domains to spread instances across. If two instances are in - * different availability domain, they are not in the same low latency network. - * @return value or {@code null} for none - */ - public java.lang.Integer getAvailabilityDomainCount() { - return availabilityDomainCount; - } - - /** - * The number of availability domains to spread instances across. If two instances are in - * different availability domain, they are not in the same low latency network. - * @param availabilityDomainCount availabilityDomainCount or {@code null} for none - */ - public ResourcePolicyGroupPlacementPolicy setAvailabilityDomainCount(java.lang.Integer availabilityDomainCount) { - this.availabilityDomainCount = availabilityDomainCount; - return this; - } - - /** - * Specifies network collocation - * @return value or {@code null} for none - */ - public java.lang.String getCollocation() { - return collocation; - } - - /** - * Specifies network collocation - * @param collocation collocation or {@code null} for none - */ - public ResourcePolicyGroupPlacementPolicy setCollocation(java.lang.String collocation) { - this.collocation = collocation; - return this; - } - - /** - * Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. - * @return value or {@code null} for none - */ - public java.lang.String getGpuTopology() { - return gpuTopology; - } - - /** - * Specifies the shape of the GPU slice, in slice based GPU families eg. A4X. - * @param gpuTopology gpuTopology or {@code null} for none - */ - public ResourcePolicyGroupPlacementPolicy setGpuTopology(java.lang.String gpuTopology) { - this.gpuTopology = gpuTopology; - return this; - } - - /** - * Number of VMs in this placement group. Google does not recommend that you use this field unless - * you use a compact policy and you want your policy to work only if it contains this exact number - * of VMs. - * @return value or {@code null} for none - */ - public java.lang.Integer getVmCount() { - return vmCount; - } - - /** - * Number of VMs in this placement group. Google does not recommend that you use this field unless - * you use a compact policy and you want your policy to work only if it contains this exact number - * of VMs. - * @param vmCount vmCount or {@code null} for none - */ - public ResourcePolicyGroupPlacementPolicy setVmCount(java.lang.Integer vmCount) { - this.vmCount = vmCount; - return this; - } - - @Override - public ResourcePolicyGroupPlacementPolicy set(String fieldName, Object value) { - return (ResourcePolicyGroupPlacementPolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicyGroupPlacementPolicy clone() { - return (ResourcePolicyGroupPlacementPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyHourlyCycle.java deleted file mode 100644 index a3922a8d253..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyHourlyCycle.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * Time window specified for hourly operations. - * - *

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 ResourcePolicyHourlyCycle extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String duration; - - /** - * Defines a schedule with units measured in hours. The value determines how many hours pass - * between the start of each cycle. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer hoursInCycle; - - /** - * Time within the window to start the operations. It must be in format "HH:MM", where HH : - * [00-23] and MM : [00-00] GMT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. - * @return value or {@code null} for none - */ - public java.lang.String getDuration() { - return duration; - } - - /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. - * @param duration duration or {@code null} for none - */ - public ResourcePolicyHourlyCycle setDuration(java.lang.String duration) { - this.duration = duration; - return this; - } - - /** - * Defines a schedule with units measured in hours. The value determines how many hours pass - * between the start of each cycle. - * @return value or {@code null} for none - */ - public java.lang.Integer getHoursInCycle() { - return hoursInCycle; - } - - /** - * Defines a schedule with units measured in hours. The value determines how many hours pass - * between the start of each cycle. - * @param hoursInCycle hoursInCycle or {@code null} for none - */ - public ResourcePolicyHourlyCycle setHoursInCycle(java.lang.Integer hoursInCycle) { - this.hoursInCycle = hoursInCycle; - return this; - } - - /** - * Time within the window to start the operations. It must be in format "HH:MM", where HH : - * [00-23] and MM : [00-00] GMT. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * Time within the window to start the operations. It must be in format "HH:MM", where HH : - * [00-23] and MM : [00-00] GMT. - * @param startTime startTime or {@code null} for none - */ - public ResourcePolicyHourlyCycle setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public ResourcePolicyHourlyCycle set(String fieldName, Object value) { - return (ResourcePolicyHourlyCycle) super.set(fieldName, value); - } - - @Override - public ResourcePolicyHourlyCycle clone() { - return (ResourcePolicyHourlyCycle) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicy.java deleted file mode 100644 index 0043107dc25..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicy.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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.preview.model; - -/** - * An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the - * instance. - * - *

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 ResourcePolicyInstanceSchedulePolicy extends com.google.api.client.json.GenericJson { - - /** - * The expiration time of the schedule. The timestamp is an RFC3339 string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expirationTime; - - /** - * The start time of the schedule. The timestamp is an RFC3339 string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field - * must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String timeZone; - - /** - * Specifies the schedule for starting instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyInstanceSchedulePolicySchedule vmStartSchedule; - - /** - * Specifies the schedule for stopping instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyInstanceSchedulePolicySchedule vmStopSchedule; - - /** - * The expiration time of the schedule. The timestamp is an RFC3339 string. - * @return value or {@code null} for none - */ - public java.lang.String getExpirationTime() { - return expirationTime; - } - - /** - * The expiration time of the schedule. The timestamp is an RFC3339 string. - * @param expirationTime expirationTime or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicy setExpirationTime(java.lang.String expirationTime) { - this.expirationTime = expirationTime; - return this; - } - - /** - * The start time of the schedule. The timestamp is an RFC3339 string. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * The start time of the schedule. The timestamp is an RFC3339 string. - * @param startTime startTime or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicy setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - /** - * Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field - * must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. - * @return value or {@code null} for none - */ - public java.lang.String getTimeZone() { - return timeZone; - } - - /** - * Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field - * must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. - * @param timeZone timeZone or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicy setTimeZone(java.lang.String timeZone) { - this.timeZone = timeZone; - return this; - } - - /** - * Specifies the schedule for starting instances. - * @return value or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicySchedule getVmStartSchedule() { - return vmStartSchedule; - } - - /** - * Specifies the schedule for starting instances. - * @param vmStartSchedule vmStartSchedule or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicy setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule vmStartSchedule) { - this.vmStartSchedule = vmStartSchedule; - return this; - } - - /** - * Specifies the schedule for stopping instances. - * @return value or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicySchedule getVmStopSchedule() { - return vmStopSchedule; - } - - /** - * Specifies the schedule for stopping instances. - * @param vmStopSchedule vmStopSchedule or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicy setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule vmStopSchedule) { - this.vmStopSchedule = vmStopSchedule; - return this; - } - - @Override - public ResourcePolicyInstanceSchedulePolicy set(String fieldName, Object value) { - return (ResourcePolicyInstanceSchedulePolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicyInstanceSchedulePolicy clone() { - return (ResourcePolicyInstanceSchedulePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicySchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicySchedule.java deleted file mode 100644 index 67088a7df30..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyInstanceSchedulePolicySchedule.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Schedule for an instance operation. - * - *

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 ResourcePolicyInstanceSchedulePolicySchedule extends com.google.api.client.json.GenericJson { - - /** - * Specifies the frequency for the operation, using the unix-cron format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String schedule; - - /** - * Specifies the frequency for the operation, using the unix-cron format. - * @return value or {@code null} for none - */ - public java.lang.String getSchedule() { - return schedule; - } - - /** - * Specifies the frequency for the operation, using the unix-cron format. - * @param schedule schedule or {@code null} for none - */ - public ResourcePolicyInstanceSchedulePolicySchedule setSchedule(java.lang.String schedule) { - this.schedule = schedule; - return this; - } - - @Override - public ResourcePolicyInstanceSchedulePolicySchedule set(String fieldName, Object value) { - return (ResourcePolicyInstanceSchedulePolicySchedule) super.set(fieldName, value); - } - - @Override - public ResourcePolicyInstanceSchedulePolicySchedule clone() { - return (ResourcePolicyInstanceSchedulePolicySchedule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyList.java deleted file mode 100644 index 425a76bdfd8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyList.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ResourcePolicyList. - * - *

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 ResourcePolicyList extends com.google.api.client.json.GenericJson { - - /** - * 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}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * [Output Only] A list of ResourcePolicy 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 ResourcePolicy 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(ResourcePolicy.class); - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * 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 getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public ResourcePolicyList 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 - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public ResourcePolicyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output Only] A list of ResourcePolicy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output Only] A list of ResourcePolicy resources. - * @param items items or {@code null} for none - */ - public ResourcePolicyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies - * @param kind kind or {@code null} for none - */ - public ResourcePolicyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ResourcePolicyList 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 ResourcePolicyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ResourcePolicyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ResourcePolicyList set(String fieldName, Object value) { - return (ResourcePolicyList) super.set(fieldName, value); - } - - @Override - public ResourcePolicyList clone() { - return (ResourcePolicyList) 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 ResourcePolicyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatus.java deleted file mode 100644 index fd139e5f65c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatus.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains output only fields. Use this sub-message for all output fields set on ResourcePolicy. - * The internal structure of this "status" field should mimic the structure of ResourcePolicy proto - * specification. - * - *

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 ResourcePolicyResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Specifies a set of output values reffering to the - * instance_schedule_policy system status. This field should have the same name as corresponding - * policy field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instanceSchedulePolicy; - - /** - * Output only. [Output Only] Specifies a set of output values reffering to the - * instance_schedule_policy system status. This field should have the same name as corresponding - * policy field. - * @return value or {@code null} for none - */ - public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSchedulePolicy() { - return instanceSchedulePolicy; - } - - /** - * Output only. [Output Only] Specifies a set of output values reffering to the - * instance_schedule_policy system status. This field should have the same name as corresponding - * policy field. - * @param instanceSchedulePolicy instanceSchedulePolicy or {@code null} for none - */ - public ResourcePolicyResourceStatus setInstanceSchedulePolicy(ResourcePolicyResourceStatusInstanceSchedulePolicyStatus instanceSchedulePolicy) { - this.instanceSchedulePolicy = instanceSchedulePolicy; - return this; - } - - @Override - public ResourcePolicyResourceStatus set(String fieldName, Object value) { - return (ResourcePolicyResourceStatus) super.set(fieldName, value); - } - - @Override - public ResourcePolicyResourceStatus clone() { - return (ResourcePolicyResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java deleted file mode 100644 index 826a63a5872..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ResourcePolicyResourceStatusInstanceSchedulePolicyStatus. - * - *

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 ResourcePolicyResourceStatusInstanceSchedulePolicyStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an - * RFC3339 string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastRunStartTime; - - /** - * Output only. [Output Only] The next time the schedule is planned to run. The actual time might - * be slightly different. The timestamp is an RFC3339 string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextRunStartTime; - - /** - * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an - * RFC3339 string. - * @return value or {@code null} for none - */ - public java.lang.String getLastRunStartTime() { - return lastRunStartTime; - } - - /** - * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an - * RFC3339 string. - * @param lastRunStartTime lastRunStartTime or {@code null} for none - */ - public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartTime(java.lang.String lastRunStartTime) { - this.lastRunStartTime = lastRunStartTime; - return this; - } - - /** - * Output only. [Output Only] The next time the schedule is planned to run. The actual time might - * be slightly different. The timestamp is an RFC3339 string. - * @return value or {@code null} for none - */ - public java.lang.String getNextRunStartTime() { - return nextRunStartTime; - } - - /** - * Output only. [Output Only] The next time the schedule is planned to run. The actual time might - * be slightly different. The timestamp is an RFC3339 string. - * @param nextRunStartTime nextRunStartTime or {@code null} for none - */ - public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setNextRunStartTime(java.lang.String nextRunStartTime) { - this.nextRunStartTime = nextRunStartTime; - return this; - } - - @Override - public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus set(String fieldName, Object value) { - return (ResourcePolicyResourceStatusInstanceSchedulePolicyStatus) super.set(fieldName, value); - } - - @Override - public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus clone() { - return (ResourcePolicyResourceStatusInstanceSchedulePolicyStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicy.java deleted file mode 100644 index 6ad1e2bb918..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicy.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.preview.model; - -/** - * A snapshot schedule policy specifies when and how frequently snapshots are to be created for the - * target disk. Also specifies how many and how long these scheduled snapshots should be retained. - * - *

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 ResourcePolicySnapshotSchedulePolicy extends com.google.api.client.json.GenericJson { - - /** - * Retention policy applied to snapshots created by this resource policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicySnapshotSchedulePolicyRetentionPolicy retentionPolicy; - - /** - * A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to - * perform on this VM and when. Schedule that is applied to disks covered by this policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicySnapshotSchedulePolicySchedule schedule; - - /** - * Properties with which snapshots are created such as labels, encryption keys. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshotProperties; - - /** - * Retention policy applied to snapshots created by this resource policy. - * @return value or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicyRetentionPolicy getRetentionPolicy() { - return retentionPolicy; - } - - /** - * Retention policy applied to snapshots created by this resource policy. - * @param retentionPolicy retentionPolicy or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicy setRetentionPolicy(ResourcePolicySnapshotSchedulePolicyRetentionPolicy retentionPolicy) { - this.retentionPolicy = retentionPolicy; - return this; - } - - /** - * A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to - * perform on this VM and when. Schedule that is applied to disks covered by this policy. - * @return value or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySchedule getSchedule() { - return schedule; - } - - /** - * A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to - * perform on this VM and when. Schedule that is applied to disks covered by this policy. - * @param schedule schedule or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicy setSchedule(ResourcePolicySnapshotSchedulePolicySchedule schedule) { - this.schedule = schedule; - return this; - } - - /** - * Properties with which snapshots are created such as labels, encryption keys. - * @return value or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySnapshotProperties getSnapshotProperties() { - return snapshotProperties; - } - - /** - * Properties with which snapshots are created such as labels, encryption keys. - * @param snapshotProperties snapshotProperties or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicy setSnapshotProperties(ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshotProperties) { - this.snapshotProperties = snapshotProperties; - return this; - } - - @Override - public ResourcePolicySnapshotSchedulePolicy set(String fieldName, Object value) { - return (ResourcePolicySnapshotSchedulePolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicySnapshotSchedulePolicy clone() { - return (ResourcePolicySnapshotSchedulePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java deleted file mode 100644 index 8dc81e98181..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicyRetentionPolicy.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Policy for retention of scheduled snapshots. - * - *

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 ResourcePolicySnapshotSchedulePolicyRetentionPolicy extends com.google.api.client.json.GenericJson { - - /** - * Maximum age of the snapshot that is allowed to be kept. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxRetentionDays; - - /** - * Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String onSourceDiskDelete; - - /** - * Maximum age of the snapshot that is allowed to be kept. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxRetentionDays() { - return maxRetentionDays; - } - - /** - * Maximum age of the snapshot that is allowed to be kept. - * @param maxRetentionDays maxRetentionDays or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicyRetentionPolicy setMaxRetentionDays(java.lang.Integer maxRetentionDays) { - this.maxRetentionDays = maxRetentionDays; - return this; - } - - /** - * Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. - * @return value or {@code null} for none - */ - public java.lang.String getOnSourceDiskDelete() { - return onSourceDiskDelete; - } - - /** - * Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. - * @param onSourceDiskDelete onSourceDiskDelete or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicyRetentionPolicy setOnSourceDiskDelete(java.lang.String onSourceDiskDelete) { - this.onSourceDiskDelete = onSourceDiskDelete; - return this; - } - - @Override - public ResourcePolicySnapshotSchedulePolicyRetentionPolicy set(String fieldName, Object value) { - return (ResourcePolicySnapshotSchedulePolicyRetentionPolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicySnapshotSchedulePolicyRetentionPolicy clone() { - return (ResourcePolicySnapshotSchedulePolicyRetentionPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySchedule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySchedule.java deleted file mode 100644 index e85d36ca2ef..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySchedule.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * A schedule for disks where the schedueled operations are performed. - * - *

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 ResourcePolicySnapshotSchedulePolicySchedule extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyDailyCycle dailySchedule; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyHourlyCycle hourlySchedule; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourcePolicyWeeklyCycle weeklySchedule; - - /** - * @return value or {@code null} for none - */ - public ResourcePolicyDailyCycle getDailySchedule() { - return dailySchedule; - } - - /** - * @param dailySchedule dailySchedule or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySchedule setDailySchedule(ResourcePolicyDailyCycle dailySchedule) { - this.dailySchedule = dailySchedule; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ResourcePolicyHourlyCycle getHourlySchedule() { - return hourlySchedule; - } - - /** - * @param hourlySchedule hourlySchedule or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySchedule setHourlySchedule(ResourcePolicyHourlyCycle hourlySchedule) { - this.hourlySchedule = hourlySchedule; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ResourcePolicyWeeklyCycle getWeeklySchedule() { - return weeklySchedule; - } - - /** - * @param weeklySchedule weeklySchedule or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySchedule setWeeklySchedule(ResourcePolicyWeeklyCycle weeklySchedule) { - this.weeklySchedule = weeklySchedule; - return this; - } - - @Override - public ResourcePolicySnapshotSchedulePolicySchedule set(String fieldName, Object value) { - return (ResourcePolicySnapshotSchedulePolicySchedule) super.set(fieldName, value); - } - - @Override - public ResourcePolicySnapshotSchedulePolicySchedule clone() { - return (ResourcePolicySnapshotSchedulePolicySchedule) super.clone(); - } - -} From d071c41fbc260a1b91b5d0be883f76f8b3ed75e8 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:41 -0700 Subject: [PATCH 20/23] chore: regenerate compute client --- ...pshotSchedulePolicySnapshotProperties.java | 141 --- .../model/ResourcePolicyWeeklyCycle.java | 66 -- .../ResourcePolicyWeeklyCycleDayOfWeek.java | 126 -- .../model/ResourcePolicyWorkloadPolicy.java | 141 --- .../compute/preview/model/ResourceStatus.java | 223 ---- ...sourceStatusEffectiveInstanceMetadata.java | 258 ----- .../ResourceStatusPhysicalHostTopology.java | 174 --- ...sicalHostTopologyAdditionalAttributes.java | 69 -- ...ourceStatusReservationConsumptionInfo.java | 123 -- .../model/ResourceStatusScheduling.java | 123 -- .../model/ResourceStatusShutdownDetails.java | 138 --- .../compute/preview/model/RiskDetails.java | 162 --- .../model/RiskDetailsGlobalDnsInsight.java | 138 --- .../preview/model/RiskRecommendation.java | 90 -- .../compute/preview/model/Rollout.java | 471 -------- .../compute/preview/model/RolloutPlan.java | 280 ----- .../preview/model/RolloutPlanWave.java | 168 --- .../RolloutPlanWaveOrchestrationOptions.java | 121 -- ...loutPlanWaveOrchestrationOptionsDelay.java | 141 --- .../model/RolloutPlanWaveSelector.java | 90 -- ...lloutPlanWaveSelectorLocationSelector.java | 66 -- ...WaveSelectorResourceHierarchySelector.java | 115 -- .../model/RolloutPlanWaveValidation.java | 105 -- ...ValidationTimeBasedValidationMetadata.java | 69 -- .../model/RolloutPlansListResponse.java | 407 ------- .../preview/model/RolloutRolloutEntity.java | 66 -- ...olloutRolloutEntityOrchestratedEntity.java | 145 --- .../preview/model/RolloutWaveDetails.java | 117 -- ...outWaveDetailsOrchestratedWaveDetails.java | 198 ---- ...OrchestratedWaveDetailsLocationStatus.java | 66 -- .../preview/model/RolloutsListResponse.java | 407 ------- .../services/compute/preview/model/Route.java | 1009 ----------------- .../compute/preview/model/RouteAsPath.java | 105 -- .../compute/preview/model/RouteList.java | 383 ------- .../compute/preview/model/RouteParams.java | 84 -- .../compute/preview/model/RoutePolicy.java | 218 ---- .../preview/model/RoutePolicyPolicyTerm.java | 126 -- .../compute/preview/model/Router.java | 470 -------- .../model/RouterAdvertisedIpRange.java | 90 -- .../preview/model/RouterAggregatedList.java | 401 ------- .../compute/preview/model/RouterBgp.java | 258 ----- .../compute/preview/model/RouterBgpPeer.java | 717 ------------ .../preview/model/RouterBgpPeerBfd.java | 201 ---- .../RouterBgpPeerCustomLearnedIpRange.java | 72 -- .../preview/model/RouterInterface.java | 351 ------ .../compute/preview/model/RouterList.java | 383 ------- .../model/RouterMd5AuthenticationKey.java | 111 -- .../compute/preview/model/RouterNat.java | 738 ------------ .../preview/model/RouterNatLogConfig.java | 102 -- .../compute/preview/model/RouterNatRule.java | 177 --- .../preview/model/RouterNatRuleAction.java | 156 --- .../model/RouterNatSubnetworkToNat.java | 126 -- .../model/RouterNatSubnetworkToNat64.java | 66 -- .../compute/preview/model/RouterParams.java | 84 -- .../compute/preview/model/RouterStatus.java | 222 ---- .../model/RouterStatusBgpPeerStatus.java | 543 --------- .../preview/model/RouterStatusNatStatus.java | 273 ----- .../RouterStatusNatStatusNatRuleStatus.java | 168 --- .../preview/model/RouterStatusResponse.java | 87 -- .../model/RoutersGetNamedSetResponse.java | 87 -- .../model/RoutersGetRoutePolicyResponse.java | 63 - .../preview/model/RoutersListBgpRoutes.java | 431 ------- .../preview/model/RoutersListNamedSets.java | 431 ------- .../model/RoutersListRoutePolicies.java | 431 ------- .../preview/model/RoutersPreviewResponse.java | 66 -- .../preview/model/RoutersScopedList.java | 278 ----- .../compute/preview/model/SSLHealthCheck.java | 249 ---- .../preview/model/SavedAttachedDisk.java | 456 -------- .../compute/preview/model/SavedDisk.java | 171 --- .../preview/model/ScalingScheduleStatus.java | 126 -- .../compute/preview/model/Scheduling.java | 540 --------- .../model/SchedulingGracefulShutdown.java | 93 -- .../preview/model/SchedulingNodeAffinity.java | 117 -- .../model/SchedulingOnInstanceStopAction.java | 72 -- .../compute/preview/model/Screenshot.java | 90 -- .../model/SecurityPoliciesAggregatedList.java | 425 ------- ...stPreconfiguredExpressionSetsResponse.java | 63 - .../model/SecurityPoliciesScopedList.java | 272 ----- .../model/SecurityPoliciesWafConfig.java | 63 - .../compute/preview/model/SecurityPolicy.java | 750 ------------ ...ecurityPolicyAdaptiveProtectionConfig.java | 66 -- ...otectionConfigLayer7DdosDefenseConfig.java | 124 -- ...ayer7DdosDefenseConfigThresholdConfig.java | 244 ---- ...resholdConfigTrafficGranularityConfig.java | 117 -- .../SecurityPolicyAdvancedOptionsConfig.java | 165 --- ...AdvancedOptionsConfigJsonCustomConfig.java | 87 -- .../model/SecurityPolicyAssociation.java | 210 ---- .../SecurityPolicyDdosProtectionConfig.java | 141 --- .../preview/model/SecurityPolicyList.java | 362 ------ .../SecurityPolicyRecaptchaOptionsConfig.java | 78 -- .../model/SecurityPolicyReference.java | 63 - .../preview/model/SecurityPolicyRule.java | 454 -------- .../SecurityPolicyRuleHttpHeaderAction.java | 66 -- ...yRuleHttpHeaderActionHttpHeaderOption.java | 90 -- .../model/SecurityPolicyRuleMatcher.java | 169 --- .../SecurityPolicyRuleMatcherConfig.java | 66 -- .../SecurityPolicyRuleMatcherExprOptions.java | 69 -- ...uleMatcherExprOptionsRecaptchaOptions.java | 102 -- .../SecurityPolicyRuleNetworkMatcher.java | 249 ---- ...leNetworkMatcherUserDefinedFieldMatch.java | 93 -- 100 files changed, 21014 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycle.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycleDayOfWeek.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWorkloadPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusEffectiveInstanceMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusReservationConsumptionInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusScheduling.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusShutdownDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetailsGlobalDnsInsight.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskRecommendation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Rollout.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlan.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWave.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptions.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptionsDelay.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorLocationSelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorResourceHierarchySelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlansListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntityOrchestratedEntity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutsListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Route.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteAsPath.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicyPolicyTerm.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Router.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAdvertisedIpRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgp.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeer.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerBfd.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerCustomLearnedIpRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterInterface.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterMd5AuthenticationKey.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNat.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatLogConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRuleAction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat64.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusBgpPeerStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatusNatRuleStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetNamedSetResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetRoutePolicyResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListBgpRoutes.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListNamedSets.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListRoutePolicies.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersPreviewResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SSLHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedAttachedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ScalingScheduleStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Scheduling.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingGracefulShutdown.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingNodeAffinity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingOnInstanceStopAction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Screenshot.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesWafConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAssociation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyDdosProtectionConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRecaptchaOptionsConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRule.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderAction.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcher.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptions.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcher.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java deleted file mode 100644 index 6e84cb58e56..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicySnapshotSchedulePolicySnapshotProperties.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specified snapshot properties for scheduled snapshots created by this policy. - * - *

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 ResourcePolicySnapshotSchedulePolicySnapshotProperties extends com.google.api.client.json.GenericJson { - - /** - * Chain name that the snapshot is created in. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String chainName; - - /** - * Indication to perform a 'guest aware' snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean guestFlush; - - /** - * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. - * Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List storageLocations; - - /** - * Chain name that the snapshot is created in. - * @return value or {@code null} for none - */ - public java.lang.String getChainName() { - return chainName; - } - - /** - * Chain name that the snapshot is created in. - * @param chainName chainName or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySnapshotProperties setChainName(java.lang.String chainName) { - this.chainName = chainName; - return this; - } - - /** - * Indication to perform a 'guest aware' snapshot. - * @return value or {@code null} for none - */ - public java.lang.Boolean getGuestFlush() { - return guestFlush; - } - - /** - * Indication to perform a 'guest aware' snapshot. - * @param guestFlush guestFlush or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySnapshotProperties setGuestFlush(java.lang.Boolean guestFlush) { - this.guestFlush = guestFlush; - return this; - } - - /** - * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. - * Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. - * Label values may be empty. - * @param labels labels or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySnapshotProperties setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). - * @return value or {@code null} for none - */ - public java.util.List getStorageLocations() { - return storageLocations; - } - - /** - * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). - * @param storageLocations storageLocations or {@code null} for none - */ - public ResourcePolicySnapshotSchedulePolicySnapshotProperties setStorageLocations(java.util.List storageLocations) { - this.storageLocations = storageLocations; - return this; - } - - @Override - public ResourcePolicySnapshotSchedulePolicySnapshotProperties set(String fieldName, Object value) { - return (ResourcePolicySnapshotSchedulePolicySnapshotProperties) super.set(fieldName, value); - } - - @Override - public ResourcePolicySnapshotSchedulePolicySnapshotProperties clone() { - return (ResourcePolicySnapshotSchedulePolicySnapshotProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycle.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycle.java deleted file mode 100644 index 076bca9c797..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycle.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Time window specified for weekly operations. - * - *

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 ResourcePolicyWeeklyCycle extends com.google.api.client.json.GenericJson { - - /** - * Up to 7 intervals/windows, one for each day of the week. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List dayOfWeeks; - - /** - * Up to 7 intervals/windows, one for each day of the week. - * @return value or {@code null} for none - */ - public java.util.List getDayOfWeeks() { - return dayOfWeeks; - } - - /** - * Up to 7 intervals/windows, one for each day of the week. - * @param dayOfWeeks dayOfWeeks or {@code null} for none - */ - public ResourcePolicyWeeklyCycle setDayOfWeeks(java.util.List dayOfWeeks) { - this.dayOfWeeks = dayOfWeeks; - return this; - } - - @Override - public ResourcePolicyWeeklyCycle set(String fieldName, Object value) { - return (ResourcePolicyWeeklyCycle) super.set(fieldName, value); - } - - @Override - public ResourcePolicyWeeklyCycle clone() { - return (ResourcePolicyWeeklyCycle) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycleDayOfWeek.java deleted file mode 100644 index a8c8486185c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ResourcePolicyWeeklyCycleDayOfWeek. - * - *

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 ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.client.json.GenericJson { - - /** - * Defines a schedule that runs on specific days of the week. Specify one or more days. The - * following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, - * SUNDAY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String day; - - /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String duration; - - /** - * Time within the window to start the operations. It must be in format "HH:MM", where HH : - * [00-23] and MM : [00-00] GMT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String startTime; - - /** - * Defines a schedule that runs on specific days of the week. Specify one or more days. The - * following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, - * SUNDAY. - * @return value or {@code null} for none - */ - public java.lang.String getDay() { - return day; - } - - /** - * Defines a schedule that runs on specific days of the week. Specify one or more days. The - * following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, - * SUNDAY. - * @param day day or {@code null} for none - */ - public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { - this.day = day; - return this; - } - - /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. - * @return value or {@code null} for none - */ - public java.lang.String getDuration() { - return duration; - } - - /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. - * @param duration duration or {@code null} for none - */ - public ResourcePolicyWeeklyCycleDayOfWeek setDuration(java.lang.String duration) { - this.duration = duration; - return this; - } - - /** - * Time within the window to start the operations. It must be in format "HH:MM", where HH : - * [00-23] and MM : [00-00] GMT. - * @return value or {@code null} for none - */ - public java.lang.String getStartTime() { - return startTime; - } - - /** - * Time within the window to start the operations. It must be in format "HH:MM", where HH : - * [00-23] and MM : [00-00] GMT. - * @param startTime startTime or {@code null} for none - */ - public ResourcePolicyWeeklyCycleDayOfWeek setStartTime(java.lang.String startTime) { - this.startTime = startTime; - return this; - } - - @Override - public ResourcePolicyWeeklyCycleDayOfWeek set(String fieldName, Object value) { - return (ResourcePolicyWeeklyCycleDayOfWeek) super.set(fieldName, value); - } - - @Override - public ResourcePolicyWeeklyCycleDayOfWeek clone() { - return (ResourcePolicyWeeklyCycleDayOfWeek) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWorkloadPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWorkloadPolicy.java deleted file mode 100644 index 16f62ec6a56..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourcePolicyWorkloadPolicy.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the workload policy. - * - *

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 ResourcePolicyWorkloadPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies the topology required to create a partition for VMs that have interconnected GPUs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorTopology; - - /** - * Specifies the connection mode for the accelerator topology. If not specified, the default is - * AUTO_CONNECT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorTopologyMode; - - /** - * Specifies the maximum distance between instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maxTopologyDistance; - - /** - * Specifies the intent of the instance placement in the MIG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Specifies the topology required to create a partition for VMs that have interconnected GPUs. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorTopology() { - return acceleratorTopology; - } - - /** - * Specifies the topology required to create a partition for VMs that have interconnected GPUs. - * @param acceleratorTopology acceleratorTopology or {@code null} for none - */ - public ResourcePolicyWorkloadPolicy setAcceleratorTopology(java.lang.String acceleratorTopology) { - this.acceleratorTopology = acceleratorTopology; - return this; - } - - /** - * Specifies the connection mode for the accelerator topology. If not specified, the default is - * AUTO_CONNECT. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorTopologyMode() { - return acceleratorTopologyMode; - } - - /** - * Specifies the connection mode for the accelerator topology. If not specified, the default is - * AUTO_CONNECT. - * @param acceleratorTopologyMode acceleratorTopologyMode or {@code null} for none - */ - public ResourcePolicyWorkloadPolicy setAcceleratorTopologyMode(java.lang.String acceleratorTopologyMode) { - this.acceleratorTopologyMode = acceleratorTopologyMode; - return this; - } - - /** - * Specifies the maximum distance between instances. - * @return value or {@code null} for none - */ - public java.lang.String getMaxTopologyDistance() { - return maxTopologyDistance; - } - - /** - * Specifies the maximum distance between instances. - * @param maxTopologyDistance maxTopologyDistance or {@code null} for none - */ - public ResourcePolicyWorkloadPolicy setMaxTopologyDistance(java.lang.String maxTopologyDistance) { - this.maxTopologyDistance = maxTopologyDistance; - return this; - } - - /** - * Specifies the intent of the instance placement in the MIG. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Specifies the intent of the instance placement in the MIG. - * @param type type or {@code null} for none - */ - public ResourcePolicyWorkloadPolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public ResourcePolicyWorkloadPolicy set(String fieldName, Object value) { - return (ResourcePolicyWorkloadPolicy) super.set(fieldName, value); - } - - @Override - public ResourcePolicyWorkloadPolicy clone() { - return (ResourcePolicyWorkloadPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatus.java deleted file mode 100644 index 5d751b910a3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatus.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains output only fields. Use this sub-message for actual values set on Instance attributes as - * compared to the value requested by the user (intent) in their instance CRUD calls. - * - *

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 ResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal - * instance settings, and instance-level predefined metadata keys to provide the overridden value - * for those metadata keys at the instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatusEffectiveInstanceMetadata effectiveInstanceMetadata; - - /** - * Output only. [Output Only] The precise location of your instance within the zone's data center, - * including the block, sub-block, and host. The field is formatted as follows: - * blockId/subBlockId/hostId. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String physicalHost; - - /** - * Output only. [Output Only] A series of fields containing the global name of the Compute Engine - * cluster, as well as the ID of the block, sub-block, and host on which the running instance is - * located. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatusPhysicalHostTopology physicalHostTopology; - - /** - * Output only. [Output Only] Reservation information that the instance is consuming from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatusReservationConsumptionInfo reservationConsumptionInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatusScheduling scheduling; - - /** - * Output only. [Output Only] Details about the instance stopping state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatusShutdownDetails shutdownDetails; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UpcomingMaintenance upcomingMaintenance; - - /** - * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal - * instance settings, and instance-level predefined metadata keys to provide the overridden value - * for those metadata keys at the instance level. - * @return value or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { - return effectiveInstanceMetadata; - } - - /** - * Output only. [Output Only] Effective metadata is a field that consolidates project, zonal - * instance settings, and instance-level predefined metadata keys to provide the overridden value - * for those metadata keys at the instance level. - * @param effectiveInstanceMetadata effectiveInstanceMetadata or {@code null} for none - */ - public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstanceMetadata effectiveInstanceMetadata) { - this.effectiveInstanceMetadata = effectiveInstanceMetadata; - return this; - } - - /** - * Output only. [Output Only] The precise location of your instance within the zone's data center, - * including the block, sub-block, and host. The field is formatted as follows: - * blockId/subBlockId/hostId. - * @return value or {@code null} for none - */ - public java.lang.String getPhysicalHost() { - return physicalHost; - } - - /** - * Output only. [Output Only] The precise location of your instance within the zone's data center, - * including the block, sub-block, and host. The field is formatted as follows: - * blockId/subBlockId/hostId. - * @param physicalHost physicalHost or {@code null} for none - */ - public ResourceStatus setPhysicalHost(java.lang.String physicalHost) { - this.physicalHost = physicalHost; - return this; - } - - /** - * Output only. [Output Only] A series of fields containing the global name of the Compute Engine - * cluster, as well as the ID of the block, sub-block, and host on which the running instance is - * located. - * @return value or {@code null} for none - */ - public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { - return physicalHostTopology; - } - - /** - * Output only. [Output Only] A series of fields containing the global name of the Compute Engine - * cluster, as well as the ID of the block, sub-block, and host on which the running instance is - * located. - * @param physicalHostTopology physicalHostTopology or {@code null} for none - */ - public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology physicalHostTopology) { - this.physicalHostTopology = physicalHostTopology; - return this; - } - - /** - * Output only. [Output Only] Reservation information that the instance is consuming from. - * @return value or {@code null} for none - */ - public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() { - return reservationConsumptionInfo; - } - - /** - * Output only. [Output Only] Reservation information that the instance is consuming from. - * @param reservationConsumptionInfo reservationConsumptionInfo or {@code null} for none - */ - public ResourceStatus setReservationConsumptionInfo(ResourceStatusReservationConsumptionInfo reservationConsumptionInfo) { - this.reservationConsumptionInfo = reservationConsumptionInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ResourceStatusScheduling getScheduling() { - return scheduling; - } - - /** - * @param scheduling scheduling or {@code null} for none - */ - public ResourceStatus setScheduling(ResourceStatusScheduling scheduling) { - this.scheduling = scheduling; - return this; - } - - /** - * Output only. [Output Only] Details about the instance stopping state. - * @return value or {@code null} for none - */ - public ResourceStatusShutdownDetails getShutdownDetails() { - return shutdownDetails; - } - - /** - * Output only. [Output Only] Details about the instance stopping state. - * @param shutdownDetails shutdownDetails or {@code null} for none - */ - public ResourceStatus setShutdownDetails(ResourceStatusShutdownDetails shutdownDetails) { - this.shutdownDetails = shutdownDetails; - return this; - } - - /** - * @return value or {@code null} for none - */ - public UpcomingMaintenance getUpcomingMaintenance() { - return upcomingMaintenance; - } - - /** - * @param upcomingMaintenance upcomingMaintenance or {@code null} for none - */ - public ResourceStatus setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { - this.upcomingMaintenance = upcomingMaintenance; - return this; - } - - @Override - public ResourceStatus set(String fieldName, Object value) { - return (ResourceStatus) super.set(fieldName, value); - } - - @Override - public ResourceStatus clone() { - return (ResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusEffectiveInstanceMetadata.java deleted file mode 100644 index 865979006ae..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusEffectiveInstanceMetadata.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * 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.preview.model; - -/** - * Effective values of predefined metadata keys for an instance. - * - *

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 ResourceStatusEffectiveInstanceMetadata extends com.google.api.client.json.GenericJson { - - /** - * Effective block-project-ssh-keys value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean blockProjectSshKeysMetadataValue; - - /** - * Effective enable-guest-attributes value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableGuestAttributesMetadataValue; - - /** - * Effective enable-os-inventory value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableOsInventoryMetadataValue; - - /** - * Effective enable-osconfig value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableOsconfigMetadataValue; - - /** - * Effective enable-oslogin value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableOsloginMetadataValue; - - /** - * Effective gce-container-declaration value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean gceContainerDeclarationMetadataValue; - - /** - * Effective serial-port-enable value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean serialPortEnableMetadataValue; - - /** - * Effective serial-port-logging-enable value at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean serialPortLoggingEnableMetadataValue; - - /** - * Effective VM DNS setting at Instance level. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vmDnsSettingMetadataValue; - - /** - * Effective block-project-ssh-keys value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getBlockProjectSshKeysMetadataValue() { - return blockProjectSshKeysMetadataValue; - } - - /** - * Effective block-project-ssh-keys value at Instance level. - * @param blockProjectSshKeysMetadataValue blockProjectSshKeysMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setBlockProjectSshKeysMetadataValue(java.lang.Boolean blockProjectSshKeysMetadataValue) { - this.blockProjectSshKeysMetadataValue = blockProjectSshKeysMetadataValue; - return this; - } - - /** - * Effective enable-guest-attributes value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableGuestAttributesMetadataValue() { - return enableGuestAttributesMetadataValue; - } - - /** - * Effective enable-guest-attributes value at Instance level. - * @param enableGuestAttributesMetadataValue enableGuestAttributesMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setEnableGuestAttributesMetadataValue(java.lang.Boolean enableGuestAttributesMetadataValue) { - this.enableGuestAttributesMetadataValue = enableGuestAttributesMetadataValue; - return this; - } - - /** - * Effective enable-os-inventory value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableOsInventoryMetadataValue() { - return enableOsInventoryMetadataValue; - } - - /** - * Effective enable-os-inventory value at Instance level. - * @param enableOsInventoryMetadataValue enableOsInventoryMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setEnableOsInventoryMetadataValue(java.lang.Boolean enableOsInventoryMetadataValue) { - this.enableOsInventoryMetadataValue = enableOsInventoryMetadataValue; - return this; - } - - /** - * Effective enable-osconfig value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableOsconfigMetadataValue() { - return enableOsconfigMetadataValue; - } - - /** - * Effective enable-osconfig value at Instance level. - * @param enableOsconfigMetadataValue enableOsconfigMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setEnableOsconfigMetadataValue(java.lang.Boolean enableOsconfigMetadataValue) { - this.enableOsconfigMetadataValue = enableOsconfigMetadataValue; - return this; - } - - /** - * Effective enable-oslogin value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableOsloginMetadataValue() { - return enableOsloginMetadataValue; - } - - /** - * Effective enable-oslogin value at Instance level. - * @param enableOsloginMetadataValue enableOsloginMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(java.lang.Boolean enableOsloginMetadataValue) { - this.enableOsloginMetadataValue = enableOsloginMetadataValue; - return this; - } - - /** - * Effective gce-container-declaration value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getGceContainerDeclarationMetadataValue() { - return gceContainerDeclarationMetadataValue; - } - - /** - * Effective gce-container-declaration value at Instance level. - * @param gceContainerDeclarationMetadataValue gceContainerDeclarationMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setGceContainerDeclarationMetadataValue(java.lang.Boolean gceContainerDeclarationMetadataValue) { - this.gceContainerDeclarationMetadataValue = gceContainerDeclarationMetadataValue; - return this; - } - - /** - * Effective serial-port-enable value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSerialPortEnableMetadataValue() { - return serialPortEnableMetadataValue; - } - - /** - * Effective serial-port-enable value at Instance level. - * @param serialPortEnableMetadataValue serialPortEnableMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setSerialPortEnableMetadataValue(java.lang.Boolean serialPortEnableMetadataValue) { - this.serialPortEnableMetadataValue = serialPortEnableMetadataValue; - return this; - } - - /** - * Effective serial-port-logging-enable value at Instance level. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSerialPortLoggingEnableMetadataValue() { - return serialPortLoggingEnableMetadataValue; - } - - /** - * Effective serial-port-logging-enable value at Instance level. - * @param serialPortLoggingEnableMetadataValue serialPortLoggingEnableMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setSerialPortLoggingEnableMetadataValue(java.lang.Boolean serialPortLoggingEnableMetadataValue) { - this.serialPortLoggingEnableMetadataValue = serialPortLoggingEnableMetadataValue; - return this; - } - - /** - * Effective VM DNS setting at Instance level. - * @return value or {@code null} for none - */ - public java.lang.String getVmDnsSettingMetadataValue() { - return vmDnsSettingMetadataValue; - } - - /** - * Effective VM DNS setting at Instance level. - * @param vmDnsSettingMetadataValue vmDnsSettingMetadataValue or {@code null} for none - */ - public ResourceStatusEffectiveInstanceMetadata setVmDnsSettingMetadataValue(java.lang.String vmDnsSettingMetadataValue) { - this.vmDnsSettingMetadataValue = vmDnsSettingMetadataValue; - return this; - } - - @Override - public ResourceStatusEffectiveInstanceMetadata set(String fieldName, Object value) { - return (ResourceStatusEffectiveInstanceMetadata) super.set(fieldName, value); - } - - @Override - public ResourceStatusEffectiveInstanceMetadata clone() { - return (ResourceStatusEffectiveInstanceMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopology.java deleted file mode 100644 index 42ad5b81b7d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopology.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the physical host topology of the host on which the VM is running. - * - *

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 ResourceStatusPhysicalHostTopology extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Additional location information of the running instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes; - - /** - * [Output Only] The ID of the block in which the running instance is located. Instances within - * the same block experience low network latency. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String block; - - /** - * [Output Only] The global name of the Compute Engine cluster where the running instance is - * located. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cluster; - - /** - * [Output Only] The ID of the host on which the running instance is located. Instances on the - * same host experience the lowest possible network latency. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * [Output Only] The ID of the sub-block in which the running instance is located. Instances in - * the same sub-block experience lower network latency than instances in the same block. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subblock; - - /** - * Output only. [Output Only] Additional location information of the running instance. - * @return value or {@code null} for none - */ - public ResourceStatusPhysicalHostTopologyAdditionalAttributes getAdditionalAttributes() { - return additionalAttributes; - } - - /** - * Output only. [Output Only] Additional location information of the running instance. - * @param additionalAttributes additionalAttributes or {@code null} for none - */ - public ResourceStatusPhysicalHostTopology setAdditionalAttributes(ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes) { - this.additionalAttributes = additionalAttributes; - return this; - } - - /** - * [Output Only] The ID of the block in which the running instance is located. Instances within - * the same block experience low network latency. - * @return value or {@code null} for none - */ - public java.lang.String getBlock() { - return block; - } - - /** - * [Output Only] The ID of the block in which the running instance is located. Instances within - * the same block experience low network latency. - * @param block block or {@code null} for none - */ - public ResourceStatusPhysicalHostTopology setBlock(java.lang.String block) { - this.block = block; - return this; - } - - /** - * [Output Only] The global name of the Compute Engine cluster where the running instance is - * located. - * @return value or {@code null} for none - */ - public java.lang.String getCluster() { - return cluster; - } - - /** - * [Output Only] The global name of the Compute Engine cluster where the running instance is - * located. - * @param cluster cluster or {@code null} for none - */ - public ResourceStatusPhysicalHostTopology setCluster(java.lang.String cluster) { - this.cluster = cluster; - return this; - } - - /** - * [Output Only] The ID of the host on which the running instance is located. Instances on the - * same host experience the lowest possible network latency. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * [Output Only] The ID of the host on which the running instance is located. Instances on the - * same host experience the lowest possible network latency. - * @param host host or {@code null} for none - */ - public ResourceStatusPhysicalHostTopology setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * [Output Only] The ID of the sub-block in which the running instance is located. Instances in - * the same sub-block experience lower network latency than instances in the same block. - * @return value or {@code null} for none - */ - public java.lang.String getSubblock() { - return subblock; - } - - /** - * [Output Only] The ID of the sub-block in which the running instance is located. Instances in - * the same sub-block experience lower network latency than instances in the same block. - * @param subblock subblock or {@code null} for none - */ - public ResourceStatusPhysicalHostTopology setSubblock(java.lang.String subblock) { - this.subblock = subblock; - return this; - } - - @Override - public ResourceStatusPhysicalHostTopology set(String fieldName, Object value) { - return (ResourceStatusPhysicalHostTopology) super.set(fieldName, value); - } - - @Override - public ResourceStatusPhysicalHostTopology clone() { - return (ResourceStatusPhysicalHostTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java deleted file mode 100644 index 7319187ce33..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional location information of the running instance. - * - *

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 ResourceStatusPhysicalHostTopologyAdditionalAttributes extends com.google.api.client.json.GenericJson { - - /** - * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key - * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map acceleratorTopologyIds; - - /** - * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key - * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. - * @return value or {@code null} for none - */ - public java.util.Map getAcceleratorTopologyIds() { - return acceleratorTopologyIds; - } - - /** - * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key - * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. - * @param acceleratorTopologyIds acceleratorTopologyIds or {@code null} for none - */ - public ResourceStatusPhysicalHostTopologyAdditionalAttributes setAcceleratorTopologyIds(java.util.Map acceleratorTopologyIds) { - this.acceleratorTopologyIds = acceleratorTopologyIds; - return this; - } - - @Override - public ResourceStatusPhysicalHostTopologyAdditionalAttributes set(String fieldName, Object value) { - return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.set(fieldName, value); - } - - @Override - public ResourceStatusPhysicalHostTopologyAdditionalAttributes clone() { - return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusReservationConsumptionInfo.java deleted file mode 100644 index 9afd1abcffe..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusReservationConsumptionInfo.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * Reservation consumption information that the instance is consuming from. - * - *

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 ResourceStatusReservationConsumptionInfo extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The full resource name of the reservation that this instance is - * consuming from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumedReservation; - - /** - * Output only. [Output Only] The full resource name of the reservation block that this instance - * is consuming from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumedReservationBlock; - - /** - * Output only. [Output Only] The full resource name of the reservation sub-block that this - * instance is consuming from. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumedReservationSubBlock; - - /** - * Output only. [Output Only] The full resource name of the reservation that this instance is - * consuming from. - * @return value or {@code null} for none - */ - public java.lang.String getConsumedReservation() { - return consumedReservation; - } - - /** - * Output only. [Output Only] The full resource name of the reservation that this instance is - * consuming from. - * @param consumedReservation consumedReservation or {@code null} for none - */ - public ResourceStatusReservationConsumptionInfo setConsumedReservation(java.lang.String consumedReservation) { - this.consumedReservation = consumedReservation; - return this; - } - - /** - * Output only. [Output Only] The full resource name of the reservation block that this instance - * is consuming from. - * @return value or {@code null} for none - */ - public java.lang.String getConsumedReservationBlock() { - return consumedReservationBlock; - } - - /** - * Output only. [Output Only] The full resource name of the reservation block that this instance - * is consuming from. - * @param consumedReservationBlock consumedReservationBlock or {@code null} for none - */ - public ResourceStatusReservationConsumptionInfo setConsumedReservationBlock(java.lang.String consumedReservationBlock) { - this.consumedReservationBlock = consumedReservationBlock; - return this; - } - - /** - * Output only. [Output Only] The full resource name of the reservation sub-block that this - * instance is consuming from. - * @return value or {@code null} for none - */ - public java.lang.String getConsumedReservationSubBlock() { - return consumedReservationSubBlock; - } - - /** - * Output only. [Output Only] The full resource name of the reservation sub-block that this - * instance is consuming from. - * @param consumedReservationSubBlock consumedReservationSubBlock or {@code null} for none - */ - public ResourceStatusReservationConsumptionInfo setConsumedReservationSubBlock(java.lang.String consumedReservationSubBlock) { - this.consumedReservationSubBlock = consumedReservationSubBlock; - return this; - } - - @Override - public ResourceStatusReservationConsumptionInfo set(String fieldName, Object value) { - return (ResourceStatusReservationConsumptionInfo) super.set(fieldName, value); - } - - @Override - public ResourceStatusReservationConsumptionInfo clone() { - return (ResourceStatusReservationConsumptionInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusScheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusScheduling.java deleted file mode 100644 index 8dc587b3d7c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusScheduling.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ResourceStatusScheduling. - * - *

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 ResourceStatusScheduling extends com.google.api.client.json.GenericJson { - - /** - * Specifies the availability domain to place the instance in. The value must be a number between - * 1 and the number of availability domains specified in the spread placement policy attached to - * the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer availabilityDomain; - - /** - * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, - * in RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gracefulShutdownTimestamp; - - /** - * Time in future when the instance will be terminated inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String terminationTimestamp; - - /** - * Specifies the availability domain to place the instance in. The value must be a number between - * 1 and the number of availability domains specified in the spread placement policy attached to - * the instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * Specifies the availability domain to place the instance in. The value must be a number between - * 1 and the number of availability domains specified in the spread placement policy attached to - * the instance. - * @param availabilityDomain availabilityDomain or {@code null} for none - */ - public ResourceStatusScheduling setAvailabilityDomain(java.lang.Integer availabilityDomain) { - this.availabilityDomain = availabilityDomain; - return this; - } - - /** - * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, - * in RFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getGracefulShutdownTimestamp() { - return gracefulShutdownTimestamp; - } - - /** - * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, - * in RFC3339 text format. - * @param gracefulShutdownTimestamp gracefulShutdownTimestamp or {@code null} for none - */ - public ResourceStatusScheduling setGracefulShutdownTimestamp(java.lang.String gracefulShutdownTimestamp) { - this.gracefulShutdownTimestamp = gracefulShutdownTimestamp; - return this; - } - - /** - * Time in future when the instance will be terminated inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getTerminationTimestamp() { - return terminationTimestamp; - } - - /** - * Time in future when the instance will be terminated inRFC3339 text format. - * @param terminationTimestamp terminationTimestamp or {@code null} for none - */ - public ResourceStatusScheduling setTerminationTimestamp(java.lang.String terminationTimestamp) { - this.terminationTimestamp = terminationTimestamp; - return this; - } - - @Override - public ResourceStatusScheduling set(String fieldName, Object value) { - return (ResourceStatusScheduling) super.set(fieldName, value); - } - - @Override - public ResourceStatusScheduling clone() { - return (ResourceStatusScheduling) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusShutdownDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusShutdownDetails.java deleted file mode 100644 index bbdf81429ee..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ResourceStatusShutdownDetails.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies if the instance is in `PENDING_STOP` state or there is a programmed stop scheduled. - * - *

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 ResourceStatusShutdownDetails extends com.google.api.client.json.GenericJson { - - /** - * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxDuration; - - /** - * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestTimestamp; - - /** - * Current stopping state of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stopState; - - /** - * Target instance state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetState; - - /** - * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. - * @return value or {@code null} for none - */ - public Duration getMaxDuration() { - return maxDuration; - } - - /** - * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. - * @param maxDuration maxDuration or {@code null} for none - */ - public ResourceStatusShutdownDetails setMaxDuration(Duration maxDuration) { - this.maxDuration = maxDuration; - return this; - } - - /** - * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getRequestTimestamp() { - return requestTimestamp; - } - - /** - * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. - * @param requestTimestamp requestTimestamp or {@code null} for none - */ - public ResourceStatusShutdownDetails setRequestTimestamp(java.lang.String requestTimestamp) { - this.requestTimestamp = requestTimestamp; - return this; - } - - /** - * Current stopping state of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getStopState() { - return stopState; - } - - /** - * Current stopping state of the instance. - * @param stopState stopState or {@code null} for none - */ - public ResourceStatusShutdownDetails setStopState(java.lang.String stopState) { - this.stopState = stopState; - return this; - } - - /** - * Target instance state. - * @return value or {@code null} for none - */ - public java.lang.String getTargetState() { - return targetState; - } - - /** - * Target instance state. - * @param targetState targetState or {@code null} for none - */ - public ResourceStatusShutdownDetails setTargetState(java.lang.String targetState) { - this.targetState = targetState; - return this; - } - - @Override - public ResourceStatusShutdownDetails set(String fieldName, Object value) { - return (ResourceStatusShutdownDetails) super.set(fieldName, value); - } - - @Override - public ResourceStatusShutdownDetails clone() { - return (ResourceStatusShutdownDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetails.java deleted file mode 100644 index 5019b1c2f58..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetails.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Detailed insights and metrics about a detected reliability risk. - * - *

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 RiskDetails extends com.google.api.client.json.GenericJson { - - /** - * The duration of the risk since it was detected. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String duration; - - /** - * Insight details for global DNS risk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RiskDetailsGlobalDnsInsight globalDnsInsight; - - /** - * The last time the risk was updated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String lastUpdateTimestamp; - - /** - * The severity of the risk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String severity; - - /** - * The type of risk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The duration of the risk since it was detected. - * @return value or {@code null} for none - */ - public String getDuration() { - return duration; - } - - /** - * The duration of the risk since it was detected. - * @param duration duration or {@code null} for none - */ - public RiskDetails setDuration(String duration) { - this.duration = duration; - return this; - } - - /** - * Insight details for global DNS risk. - * @return value or {@code null} for none - */ - public RiskDetailsGlobalDnsInsight getGlobalDnsInsight() { - return globalDnsInsight; - } - - /** - * Insight details for global DNS risk. - * @param globalDnsInsight globalDnsInsight or {@code null} for none - */ - public RiskDetails setGlobalDnsInsight(RiskDetailsGlobalDnsInsight globalDnsInsight) { - this.globalDnsInsight = globalDnsInsight; - return this; - } - - /** - * The last time the risk was updated. - * @return value or {@code null} for none - */ - public String getLastUpdateTimestamp() { - return lastUpdateTimestamp; - } - - /** - * The last time the risk was updated. - * @param lastUpdateTimestamp lastUpdateTimestamp or {@code null} for none - */ - public RiskDetails setLastUpdateTimestamp(String lastUpdateTimestamp) { - this.lastUpdateTimestamp = lastUpdateTimestamp; - return this; - } - - /** - * The severity of the risk. - * @return value or {@code null} for none - */ - public java.lang.String getSeverity() { - return severity; - } - - /** - * The severity of the risk. - * @param severity severity or {@code null} for none - */ - public RiskDetails setSeverity(java.lang.String severity) { - this.severity = severity; - return this; - } - - /** - * The type of risk. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of risk. - * @param type type or {@code null} for none - */ - public RiskDetails setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public RiskDetails set(String fieldName, Object value) { - return (RiskDetails) super.set(fieldName, value); - } - - @Override - public RiskDetails clone() { - return (RiskDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetailsGlobalDnsInsight.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetailsGlobalDnsInsight.java deleted file mode 100644 index 59717ef059e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskDetailsGlobalDnsInsight.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Detailed insights for a global DNS reliability risk. - * - *

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 RiskDetailsGlobalDnsInsight extends com.google.api.client.json.GenericJson { - - /** - * Indicates whether the project's default DNS setting is global DNS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean projectDefaultIsGlobalDns; - - /** - * The observation window for the query counts. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String queryObservationWindow; - - /** - * The number of queries that are risky. This is always less than or equal to total_query_count. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long riskyQueryCount; - - /** - * The total number of queries in the observation window. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalQueryCount; - - /** - * Indicates whether the project's default DNS setting is global DNS. - * @return value or {@code null} for none - */ - public java.lang.Boolean getProjectDefaultIsGlobalDns() { - return projectDefaultIsGlobalDns; - } - - /** - * Indicates whether the project's default DNS setting is global DNS. - * @param projectDefaultIsGlobalDns projectDefaultIsGlobalDns or {@code null} for none - */ - public RiskDetailsGlobalDnsInsight setProjectDefaultIsGlobalDns(java.lang.Boolean projectDefaultIsGlobalDns) { - this.projectDefaultIsGlobalDns = projectDefaultIsGlobalDns; - return this; - } - - /** - * The observation window for the query counts. - * @return value or {@code null} for none - */ - public String getQueryObservationWindow() { - return queryObservationWindow; - } - - /** - * The observation window for the query counts. - * @param queryObservationWindow queryObservationWindow or {@code null} for none - */ - public RiskDetailsGlobalDnsInsight setQueryObservationWindow(String queryObservationWindow) { - this.queryObservationWindow = queryObservationWindow; - return this; - } - - /** - * The number of queries that are risky. This is always less than or equal to total_query_count. - * @return value or {@code null} for none - */ - public java.lang.Long getRiskyQueryCount() { - return riskyQueryCount; - } - - /** - * The number of queries that are risky. This is always less than or equal to total_query_count. - * @param riskyQueryCount riskyQueryCount or {@code null} for none - */ - public RiskDetailsGlobalDnsInsight setRiskyQueryCount(java.lang.Long riskyQueryCount) { - this.riskyQueryCount = riskyQueryCount; - return this; - } - - /** - * The total number of queries in the observation window. - * @return value or {@code null} for none - */ - public java.lang.Long getTotalQueryCount() { - return totalQueryCount; - } - - /** - * The total number of queries in the observation window. - * @param totalQueryCount totalQueryCount or {@code null} for none - */ - public RiskDetailsGlobalDnsInsight setTotalQueryCount(java.lang.Long totalQueryCount) { - this.totalQueryCount = totalQueryCount; - return this; - } - - @Override - public RiskDetailsGlobalDnsInsight set(String fieldName, Object value) { - return (RiskDetailsGlobalDnsInsight) super.set(fieldName, value); - } - - @Override - public RiskDetailsGlobalDnsInsight clone() { - return (RiskDetailsGlobalDnsInsight) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskRecommendation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskRecommendation.java deleted file mode 100644 index b8091814c3d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RiskRecommendation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Recommendation for mitigating a reliability risk, including a reference URL. - * - *

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 RiskRecommendation extends com.google.api.client.json.GenericJson { - - /** - * Mitigation guide for the risk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String content; - - /** - * URL referencing a more detailed mitigation guide. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String referenceUrl; - - /** - * Mitigation guide for the risk. - * @return value or {@code null} for none - */ - public java.lang.String getContent() { - return content; - } - - /** - * Mitigation guide for the risk. - * @param content content or {@code null} for none - */ - public RiskRecommendation setContent(java.lang.String content) { - this.content = content; - return this; - } - - /** - * URL referencing a more detailed mitigation guide. - * @return value or {@code null} for none - */ - public java.lang.String getReferenceUrl() { - return referenceUrl; - } - - /** - * URL referencing a more detailed mitigation guide. - * @param referenceUrl referenceUrl or {@code null} for none - */ - public RiskRecommendation setReferenceUrl(java.lang.String referenceUrl) { - this.referenceUrl = referenceUrl; - return this; - } - - @Override - public RiskRecommendation set(String fieldName, Object value) { - return (RiskRecommendation) super.set(fieldName, value); - } - - @Override - public RiskRecommendation clone() { - return (RiskRecommendation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Rollout.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Rollout.java deleted file mode 100644 index 9f61e04f94c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Rollout.java +++ /dev/null @@ -1,471 +0,0 @@ -/* - * 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.preview.model; - -/** - * Rollout resource. - * - * A Rollout is a specific instance of a RolloutPlan. It represents a single execution of a strategy - * to roll out a specific resource. It also provides APIs to interact with the rollout. - * - *

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 Rollout extends com.google.api.client.json.GenericJson { - - /** - * Output only. The timestamp at which the Rollout was cancelled. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String cancellationTime; - - /** - * Output only. The timestamp at which the Rollout was completed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String completionTime; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. The number of the currently running wave. Ex. 1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long currentWaveNumber; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. etag of the Rollout Ex. abc1234 - * 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] Type of the resource. Always compute#rollout for rollouts. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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. The timestamp at which the Rollout was paused. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pauseTime; - - /** - * Output only. The timestamp at which the Rollout was resumed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String resumeTime; - - /** - * Required. The resource being rolled out. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutRolloutEntity rolloutEntity; - - /** - * Required. Rollout Plan used to model the Rollout. Ex. - * compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rolloutPlan; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Output only. The current state of the Rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. Details about each wave of the rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List waveDetails; - - /** - * Output only. The timestamp at which the Rollout was cancelled. - * @return value or {@code null} for none - */ - public java.lang.String getCancellationTime() { - return cancellationTime; - } - - /** - * Output only. The timestamp at which the Rollout was cancelled. - * @param cancellationTime cancellationTime or {@code null} for none - */ - public Rollout setCancellationTime(java.lang.String cancellationTime) { - this.cancellationTime = cancellationTime; - return this; - } - - /** - * Output only. The timestamp at which the Rollout was completed. - * @return value or {@code null} for none - */ - public java.lang.String getCompletionTime() { - return completionTime; - } - - /** - * Output only. The timestamp at which the Rollout was completed. - * @param completionTime completionTime or {@code null} for none - */ - public Rollout setCompletionTime(java.lang.String completionTime) { - this.completionTime = completionTime; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Rollout setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. The number of the currently running wave. Ex. 1 - * @return value or {@code null} for none - */ - public java.lang.Long getCurrentWaveNumber() { - return currentWaveNumber; - } - - /** - * Output only. The number of the currently running wave. Ex. 1 - * @param currentWaveNumber currentWaveNumber or {@code null} for none - */ - public Rollout setCurrentWaveNumber(java.lang.Long currentWaveNumber) { - this.currentWaveNumber = currentWaveNumber; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Rollout setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. etag of the Rollout Ex. abc1234 - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Output only. etag of the Rollout Ex. abc1234 - * @param etag etag or {@code null} for none - */ - public Rollout 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 Rollout setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. - * @param kind kind or {@code null} for none - */ - public Rollout setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 Rollout setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. The timestamp at which the Rollout was paused. - * @return value or {@code null} for none - */ - public java.lang.String getPauseTime() { - return pauseTime; - } - - /** - * Output only. The timestamp at which the Rollout was paused. - * @param pauseTime pauseTime or {@code null} for none - */ - public Rollout setPauseTime(java.lang.String pauseTime) { - this.pauseTime = pauseTime; - return this; - } - - /** - * Output only. The timestamp at which the Rollout was resumed. - * @return value or {@code null} for none - */ - public java.lang.String getResumeTime() { - return resumeTime; - } - - /** - * Output only. The timestamp at which the Rollout was resumed. - * @param resumeTime resumeTime or {@code null} for none - */ - public Rollout setResumeTime(java.lang.String resumeTime) { - this.resumeTime = resumeTime; - return this; - } - - /** - * Required. The resource being rolled out. - * @return value or {@code null} for none - */ - public RolloutRolloutEntity getRolloutEntity() { - return rolloutEntity; - } - - /** - * Required. The resource being rolled out. - * @param rolloutEntity rolloutEntity or {@code null} for none - */ - public Rollout setRolloutEntity(RolloutRolloutEntity rolloutEntity) { - this.rolloutEntity = rolloutEntity; - return this; - } - - /** - * Required. Rollout Plan used to model the Rollout. Ex. - * compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 - * @return value or {@code null} for none - */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; - } - - /** - * Required. Rollout Plan used to model the Rollout. Ex. - * compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1 - * @param rolloutPlan rolloutPlan or {@code null} for none - */ - public Rollout setRolloutPlan(java.lang.String rolloutPlan) { - this.rolloutPlan = rolloutPlan; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public Rollout setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public Rollout setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. The current state of the Rollout. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. The current state of the Rollout. - * @param state state or {@code null} for none - */ - public Rollout setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. Details about each wave of the rollout. - * @return value or {@code null} for none - */ - public java.util.List getWaveDetails() { - return waveDetails; - } - - /** - * Output only. Details about each wave of the rollout. - * @param waveDetails waveDetails or {@code null} for none - */ - public Rollout setWaveDetails(java.util.List waveDetails) { - this.waveDetails = waveDetails; - return this; - } - - @Override - public Rollout set(String fieldName, Object value) { - return (Rollout) super.set(fieldName, value); - } - - @Override - public Rollout clone() { - return (Rollout) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlan.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlan.java deleted file mode 100644 index 080a0149006..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlan.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * 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.preview.model; - -/** - * RolloutPlan resource. - * - * A RolloutPlan is the customer-defined strategy to divide a large-scale change into smaller - * increments, referred to as "waves". Each wave targets a specific portion of the overall affected - * area and defines criteria that must be met before progressing to the subsequent wave. - * - *

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 RolloutPlan extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the 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; - - /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The location scope of the rollout plan. If not specified, the location scope is considered as - * ZONAL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationScope; - - /** - * Name of the resource. Provided by the client 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] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Required. The waves included in this rollout plan. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List waves; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public RolloutPlan setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public RolloutPlan 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 RolloutPlan setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. - * @param kind kind or {@code null} for none - */ - public RolloutPlan setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The location scope of the rollout plan. If not specified, the location scope is considered as - * ZONAL. - * @return value or {@code null} for none - */ - public java.lang.String getLocationScope() { - return locationScope; - } - - /** - * The location scope of the rollout plan. If not specified, the location scope is considered as - * ZONAL. - * @param locationScope locationScope or {@code null} for none - */ - public RolloutPlan setLocationScope(java.lang.String locationScope) { - this.locationScope = locationScope; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 RolloutPlan setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public RolloutPlan setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public RolloutPlan setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Required. The waves included in this rollout plan. - * @return value or {@code null} for none - */ - public java.util.List getWaves() { - return waves; - } - - /** - * Required. The waves included in this rollout plan. - * @param waves waves or {@code null} for none - */ - public RolloutPlan setWaves(java.util.List waves) { - this.waves = waves; - return this; - } - - @Override - public RolloutPlan set(String fieldName, Object value) { - return (RolloutPlan) super.set(fieldName, value); - } - - @Override - public RolloutPlan clone() { - return (RolloutPlan) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWave.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWave.java deleted file mode 100644 index c8b6be4a5c2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWave.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * 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.preview.model; - -/** - * A single wave in a rollout plan. - * - *

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 RolloutPlanWave extends com.google.api.client.json.GenericJson { - - /** - * Optional. The display name of this wave of the rollout plan. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Output only. The wave number. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long number; - - /** - * Optional. The orchestration options for this wave. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutPlanWaveOrchestrationOptions orchestrationOptions; - - /** - * Required. The selectors for this wave. There is a logical AND between each selector defined in - * a wave, so a resource must satisfy the criteria of *all* the specified selectors to be in scope - * for the wave. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List selectors; - - /** - * Required. The validation to be performed at the end of this wave. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutPlanWaveValidation validation; - - /** - * Optional. The display name of this wave of the rollout plan. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Optional. The display name of this wave of the rollout plan. - * @param displayName displayName or {@code null} for none - */ - public RolloutPlanWave setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Output only. The wave number. - * @return value or {@code null} for none - */ - public java.lang.Long getNumber() { - return number; - } - - /** - * Output only. The wave number. - * @param number number or {@code null} for none - */ - public RolloutPlanWave setNumber(java.lang.Long number) { - this.number = number; - return this; - } - - /** - * Optional. The orchestration options for this wave. - * @return value or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptions getOrchestrationOptions() { - return orchestrationOptions; - } - - /** - * Optional. The orchestration options for this wave. - * @param orchestrationOptions orchestrationOptions or {@code null} for none - */ - public RolloutPlanWave setOrchestrationOptions(RolloutPlanWaveOrchestrationOptions orchestrationOptions) { - this.orchestrationOptions = orchestrationOptions; - return this; - } - - /** - * Required. The selectors for this wave. There is a logical AND between each selector defined in - * a wave, so a resource must satisfy the criteria of *all* the specified selectors to be in scope - * for the wave. - * @return value or {@code null} for none - */ - public java.util.List getSelectors() { - return selectors; - } - - /** - * Required. The selectors for this wave. There is a logical AND between each selector defined in - * a wave, so a resource must satisfy the criteria of *all* the specified selectors to be in scope - * for the wave. - * @param selectors selectors or {@code null} for none - */ - public RolloutPlanWave setSelectors(java.util.List selectors) { - this.selectors = selectors; - return this; - } - - /** - * Required. The validation to be performed at the end of this wave. - * @return value or {@code null} for none - */ - public RolloutPlanWaveValidation getValidation() { - return validation; - } - - /** - * Required. The validation to be performed at the end of this wave. - * @param validation validation or {@code null} for none - */ - public RolloutPlanWave setValidation(RolloutPlanWaveValidation validation) { - this.validation = validation; - return this; - } - - @Override - public RolloutPlanWave set(String fieldName, Object value) { - return (RolloutPlanWave) super.set(fieldName, value); - } - - @Override - public RolloutPlanWave clone() { - return (RolloutPlanWave) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptions.java deleted file mode 100644 index b046114894c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptions.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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.preview.model; - -/** - * Options to control the pace of orchestration of a wave. These options are required only if the - * resource being rolled out follows the Orchestrated pattern. - * - *

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 RolloutPlanWaveOrchestrationOptions extends com.google.api.client.json.GenericJson { - - /** - * Optional. Delays, if any, to be added between batches of projects. We allow multiple Delays to - * be specified, letting users set separate delays between batches of projects corresponding to - * different locations and batches of projects corresponding to the same location. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List delays; - - /** - * Optional. Maximum number of locations to be orchestrated in parallel. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxConcurrentLocations; - - /** - * Optional. Maximum number of resources to be orchestrated per location in parallel. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxConcurrentResourcesPerLocation; - - /** - * Optional. Delays, if any, to be added between batches of projects. We allow multiple Delays to - * be specified, letting users set separate delays between batches of projects corresponding to - * different locations and batches of projects corresponding to the same location. - * @return value or {@code null} for none - */ - public java.util.List getDelays() { - return delays; - } - - /** - * Optional. Delays, if any, to be added between batches of projects. We allow multiple Delays to - * be specified, letting users set separate delays between batches of projects corresponding to - * different locations and batches of projects corresponding to the same location. - * @param delays delays or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptions setDelays(java.util.List delays) { - this.delays = delays; - return this; - } - - /** - * Optional. Maximum number of locations to be orchestrated in parallel. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxConcurrentLocations() { - return maxConcurrentLocations; - } - - /** - * Optional. Maximum number of locations to be orchestrated in parallel. - * @param maxConcurrentLocations maxConcurrentLocations or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptions setMaxConcurrentLocations(java.lang.Long maxConcurrentLocations) { - this.maxConcurrentLocations = maxConcurrentLocations; - return this; - } - - /** - * Optional. Maximum number of resources to be orchestrated per location in parallel. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxConcurrentResourcesPerLocation() { - return maxConcurrentResourcesPerLocation; - } - - /** - * Optional. Maximum number of resources to be orchestrated per location in parallel. - * @param maxConcurrentResourcesPerLocation maxConcurrentResourcesPerLocation or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptions setMaxConcurrentResourcesPerLocation(java.lang.Long maxConcurrentResourcesPerLocation) { - this.maxConcurrentResourcesPerLocation = maxConcurrentResourcesPerLocation; - return this; - } - - @Override - public RolloutPlanWaveOrchestrationOptions set(String fieldName, Object value) { - return (RolloutPlanWaveOrchestrationOptions) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveOrchestrationOptions clone() { - return (RolloutPlanWaveOrchestrationOptions) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptionsDelay.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptionsDelay.java deleted file mode 100644 index 16755f4e066..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveOrchestrationOptionsDelay.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * Options to control the delay, if any, between batches of projects. - * - *

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 RolloutPlanWaveOrchestrationOptionsDelay extends com.google.api.client.json.GenericJson { - - /** - * Optional. Controls whether the delay should only be added between batches of projects - * corresponding to different locations, or also between batches of projects corresponding to the - * same location. - * - * Must be set to DELIMITER_UNSPECIFIED if no delay is to be added. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String delimiter; - - /** - * Optional. The duration of the delay, if any, to be added between batches of projects. A zero - * duration corresponds to no delay. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String duration; - - /** - * Optional. Controls whether the specified duration is to be added at the end of each batch, or - * if the total processing time for each batch will be padded if needed to meet the specified - * duration. - * - * Must be set to TYPE_UNSPECIFIED if no delay is to be added. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Optional. Controls whether the delay should only be added between batches of projects - * corresponding to different locations, or also between batches of projects corresponding to the - * same location. - * - * Must be set to DELIMITER_UNSPECIFIED if no delay is to be added. - * @return value or {@code null} for none - */ - public java.lang.String getDelimiter() { - return delimiter; - } - - /** - * Optional. Controls whether the delay should only be added between batches of projects - * corresponding to different locations, or also between batches of projects corresponding to the - * same location. - * - * Must be set to DELIMITER_UNSPECIFIED if no delay is to be added. - * @param delimiter delimiter or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptionsDelay setDelimiter(java.lang.String delimiter) { - this.delimiter = delimiter; - return this; - } - - /** - * Optional. The duration of the delay, if any, to be added between batches of projects. A zero - * duration corresponds to no delay. - * @return value or {@code null} for none - */ - public String getDuration() { - return duration; - } - - /** - * Optional. The duration of the delay, if any, to be added between batches of projects. A zero - * duration corresponds to no delay. - * @param duration duration or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptionsDelay setDuration(String duration) { - this.duration = duration; - return this; - } - - /** - * Optional. Controls whether the specified duration is to be added at the end of each batch, or - * if the total processing time for each batch will be padded if needed to meet the specified - * duration. - * - * Must be set to TYPE_UNSPECIFIED if no delay is to be added. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Optional. Controls whether the specified duration is to be added at the end of each batch, or - * if the total processing time for each batch will be padded if needed to meet the specified - * duration. - * - * Must be set to TYPE_UNSPECIFIED if no delay is to be added. - * @param type type or {@code null} for none - */ - public RolloutPlanWaveOrchestrationOptionsDelay setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public RolloutPlanWaveOrchestrationOptionsDelay set(String fieldName, Object value) { - return (RolloutPlanWaveOrchestrationOptionsDelay) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveOrchestrationOptionsDelay clone() { - return (RolloutPlanWaveOrchestrationOptionsDelay) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelector.java deleted file mode 100644 index 1a65ea07541..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelector.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * A selector which specifies what resource(s) are included in a given wave. - * - *

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 RolloutPlanWaveSelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. Roll out to resources by Cloud locations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutPlanWaveSelectorLocationSelector locationSelector; - - /** - * Optional. Roll out to resources by Cloud Resource Manager resource hierarchy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutPlanWaveSelectorResourceHierarchySelector resourceHierarchySelector; - - /** - * Optional. Roll out to resources by Cloud locations. - * @return value or {@code null} for none - */ - public RolloutPlanWaveSelectorLocationSelector getLocationSelector() { - return locationSelector; - } - - /** - * Optional. Roll out to resources by Cloud locations. - * @param locationSelector locationSelector or {@code null} for none - */ - public RolloutPlanWaveSelector setLocationSelector(RolloutPlanWaveSelectorLocationSelector locationSelector) { - this.locationSelector = locationSelector; - return this; - } - - /** - * Optional. Roll out to resources by Cloud Resource Manager resource hierarchy. - * @return value or {@code null} for none - */ - public RolloutPlanWaveSelectorResourceHierarchySelector getResourceHierarchySelector() { - return resourceHierarchySelector; - } - - /** - * Optional. Roll out to resources by Cloud Resource Manager resource hierarchy. - * @param resourceHierarchySelector resourceHierarchySelector or {@code null} for none - */ - public RolloutPlanWaveSelector setResourceHierarchySelector(RolloutPlanWaveSelectorResourceHierarchySelector resourceHierarchySelector) { - this.resourceHierarchySelector = resourceHierarchySelector; - return this; - } - - @Override - public RolloutPlanWaveSelector set(String fieldName, Object value) { - return (RolloutPlanWaveSelector) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveSelector clone() { - return (RolloutPlanWaveSelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorLocationSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorLocationSelector.java deleted file mode 100644 index fa6484d31e7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorLocationSelector.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Roll out to resources by location. - * - *

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 RolloutPlanWaveSelectorLocationSelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. Example: "us-central1-a" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedLocations; - - /** - * Optional. Example: "us-central1-a" - * @return value or {@code null} for none - */ - public java.util.List getIncludedLocations() { - return includedLocations; - } - - /** - * Optional. Example: "us-central1-a" - * @param includedLocations includedLocations or {@code null} for none - */ - public RolloutPlanWaveSelectorLocationSelector setIncludedLocations(java.util.List includedLocations) { - this.includedLocations = includedLocations; - return this; - } - - @Override - public RolloutPlanWaveSelectorLocationSelector set(String fieldName, Object value) { - return (RolloutPlanWaveSelectorLocationSelector) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveSelectorLocationSelector clone() { - return (RolloutPlanWaveSelectorLocationSelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorResourceHierarchySelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorResourceHierarchySelector.java deleted file mode 100644 index bda03eefc94..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveSelectorResourceHierarchySelector.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.preview.model; - -/** - * Roll out to resources by Cloud Resource Manager resource hierarchy nodes such as projects, - * folders, orgs. - * - *

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 RolloutPlanWaveSelectorResourceHierarchySelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. Format: "folders/{folder_id}" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedFolders; - - /** - * Optional. Format: "organizations/{organization_id}" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedOrganizations; - - /** - * Optional. Format: "projects/{project_id}" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List includedProjects; - - /** - * Optional. Format: "folders/{folder_id}" - * @return value or {@code null} for none - */ - public java.util.List getIncludedFolders() { - return includedFolders; - } - - /** - * Optional. Format: "folders/{folder_id}" - * @param includedFolders includedFolders or {@code null} for none - */ - public RolloutPlanWaveSelectorResourceHierarchySelector setIncludedFolders(java.util.List includedFolders) { - this.includedFolders = includedFolders; - return this; - } - - /** - * Optional. Format: "organizations/{organization_id}" - * @return value or {@code null} for none - */ - public java.util.List getIncludedOrganizations() { - return includedOrganizations; - } - - /** - * Optional. Format: "organizations/{organization_id}" - * @param includedOrganizations includedOrganizations or {@code null} for none - */ - public RolloutPlanWaveSelectorResourceHierarchySelector setIncludedOrganizations(java.util.List includedOrganizations) { - this.includedOrganizations = includedOrganizations; - return this; - } - - /** - * Optional. Format: "projects/{project_id}" - * @return value or {@code null} for none - */ - public java.util.List getIncludedProjects() { - return includedProjects; - } - - /** - * Optional. Format: "projects/{project_id}" - * @param includedProjects includedProjects or {@code null} for none - */ - public RolloutPlanWaveSelectorResourceHierarchySelector setIncludedProjects(java.util.List includedProjects) { - this.includedProjects = includedProjects; - return this; - } - - @Override - public RolloutPlanWaveSelectorResourceHierarchySelector set(String fieldName, Object value) { - return (RolloutPlanWaveSelectorResourceHierarchySelector) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveSelectorResourceHierarchySelector clone() { - return (RolloutPlanWaveSelectorResourceHierarchySelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidation.java deleted file mode 100644 index b6eabd229c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidation.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * The validation to be performed before progressing to the next wave. - * - *

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 RolloutPlanWaveValidation extends com.google.api.client.json.GenericJson { - - /** - * Optional. Metadata required if type = "time". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutPlanWaveValidationTimeBasedValidationMetadata timeBasedValidationMetadata; - - /** - * Required. The type of the validation. If a type of validation is associated with a metadata - * object, the appropriate metadata field mapping to the validation type must be provided in the - * validation message. Possible values are in quotes below alongside an explanation: "manual": - * The system waits for an end-user approval API before progressing to the next wave. - * "time": The system waits for a user specified duration before progressing to the next wave. - * TimeBasedValidation must be provided. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Optional. Metadata required if type = "time". - * @return value or {@code null} for none - */ - public RolloutPlanWaveValidationTimeBasedValidationMetadata getTimeBasedValidationMetadata() { - return timeBasedValidationMetadata; - } - - /** - * Optional. Metadata required if type = "time". - * @param timeBasedValidationMetadata timeBasedValidationMetadata or {@code null} for none - */ - public RolloutPlanWaveValidation setTimeBasedValidationMetadata(RolloutPlanWaveValidationTimeBasedValidationMetadata timeBasedValidationMetadata) { - this.timeBasedValidationMetadata = timeBasedValidationMetadata; - return this; - } - - /** - * Required. The type of the validation. If a type of validation is associated with a metadata - * object, the appropriate metadata field mapping to the validation type must be provided in the - * validation message. Possible values are in quotes below alongside an explanation: "manual": - * The system waits for an end-user approval API before progressing to the next wave. - * "time": The system waits for a user specified duration before progressing to the next wave. - * TimeBasedValidation must be provided. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Required. The type of the validation. If a type of validation is associated with a metadata - * object, the appropriate metadata field mapping to the validation type must be provided in the - * validation message. Possible values are in quotes below alongside an explanation: "manual": - * The system waits for an end-user approval API before progressing to the next wave. - * "time": The system waits for a user specified duration before progressing to the next wave. - * TimeBasedValidation must be provided. - * @param type type or {@code null} for none - */ - public RolloutPlanWaveValidation setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public RolloutPlanWaveValidation set(String fieldName, Object value) { - return (RolloutPlanWaveValidation) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveValidation clone() { - return (RolloutPlanWaveValidation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java deleted file mode 100644 index 230f428520e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlanWaveValidationTimeBasedValidationMetadata.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Metadata required if type = "time". - * - *

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 RolloutPlanWaveValidationTimeBasedValidationMetadata extends com.google.api.client.json.GenericJson { - - /** - * Optional. The duration that the system waits in between waves. This wait starts after all - * changes in the wave are rolled out. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String waitDuration; - - /** - * Optional. The duration that the system waits in between waves. This wait starts after all - * changes in the wave are rolled out. - * @return value or {@code null} for none - */ - public String getWaitDuration() { - return waitDuration; - } - - /** - * Optional. The duration that the system waits in between waves. This wait starts after all - * changes in the wave are rolled out. - * @param waitDuration waitDuration or {@code null} for none - */ - public RolloutPlanWaveValidationTimeBasedValidationMetadata setWaitDuration(String waitDuration) { - this.waitDuration = waitDuration; - return this; - } - - @Override - public RolloutPlanWaveValidationTimeBasedValidationMetadata set(String fieldName, Object value) { - return (RolloutPlanWaveValidationTimeBasedValidationMetadata) super.set(fieldName, value); - } - - @Override - public RolloutPlanWaveValidationTimeBasedValidationMetadata clone() { - return (RolloutPlanWaveValidationTimeBasedValidationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlansListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlansListResponse.java deleted file mode 100644 index e1921ed931e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutPlansListResponse.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of RolloutPlan resources. - * - *

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 RolloutPlansListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 RolloutPlan 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 RolloutPlan 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(RolloutPlan.class); - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public RolloutPlansListResponse 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 RolloutPlansListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of RolloutPlan resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of RolloutPlan resources. - * @param items items or {@code null} for none - */ - public RolloutPlansListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RolloutPlansListResponse 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 RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public RolloutPlansListResponse 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 RolloutPlansListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RolloutPlansListResponse set(String fieldName, Object value) { - return (RolloutPlansListResponse) super.set(fieldName, value); - } - - @Override - public RolloutPlansListResponse clone() { - return (RolloutPlansListResponse) 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 RolloutPlansListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntity.java deleted file mode 100644 index e823e306013..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntity.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifications of the resource to roll out. - * - *

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 RolloutRolloutEntity extends com.google.api.client.json.GenericJson { - - /** - * Optional. Entity details for products using the Orchestrated Integration model. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutRolloutEntityOrchestratedEntity orchestratedEntity; - - /** - * Optional. Entity details for products using the Orchestrated Integration model. - * @return value or {@code null} for none - */ - public RolloutRolloutEntityOrchestratedEntity getOrchestratedEntity() { - return orchestratedEntity; - } - - /** - * Optional. Entity details for products using the Orchestrated Integration model. - * @param orchestratedEntity orchestratedEntity or {@code null} for none - */ - public RolloutRolloutEntity setOrchestratedEntity(RolloutRolloutEntityOrchestratedEntity orchestratedEntity) { - this.orchestratedEntity = orchestratedEntity; - return this; - } - - @Override - public RolloutRolloutEntity set(String fieldName, Object value) { - return (RolloutRolloutEntity) super.set(fieldName, value); - } - - @Override - public RolloutRolloutEntity clone() { - return (RolloutRolloutEntity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntityOrchestratedEntity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntityOrchestratedEntity.java deleted file mode 100644 index 00811905405..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutRolloutEntityOrchestratedEntity.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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.preview.model; - -/** - * This message is used if the resource type follows the Orchestrated integration model with - * ProgressiveRollout. - * - *

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 RolloutRolloutEntityOrchestratedEntity extends com.google.api.client.json.GenericJson { - - /** - * Required. Specifies the behavior of the Rollout if an out of band update is detected in a - * project during a Rollout. It can be one of the following values: 1) overwrite : Overwrite the - * local value with the rollout value. 2) no_overwrite : Do not overwrite the local value with the - * rollout value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String conflictBehavior; - - /** - * Required. Orchestration action during the Rollout. It can be one of the following values: 1) - * "update": Resources will be updated by the rollout. 2) "delete": Resources will be deleted by - * the rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String orchestrationAction; - - /** - * Required. Fully qualified resource name of the resource which contains the source of truth of - * the configuration being rolled out across locations/projects. For example, in the case of a - * global Rollout which is applied across regions, this contains the name of the global resource - * created by the user which contains a payload for a resource that is orchestrated across - * regions. This follows the following format: //.googleapis.com/projects//locations/global// e.g. - * //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String orchestrationSource; - - /** - * Required. Specifies the behavior of the Rollout if an out of band update is detected in a - * project during a Rollout. It can be one of the following values: 1) overwrite : Overwrite the - * local value with the rollout value. 2) no_overwrite : Do not overwrite the local value with the - * rollout value. - * @return value or {@code null} for none - */ - public java.lang.String getConflictBehavior() { - return conflictBehavior; - } - - /** - * Required. Specifies the behavior of the Rollout if an out of band update is detected in a - * project during a Rollout. It can be one of the following values: 1) overwrite : Overwrite the - * local value with the rollout value. 2) no_overwrite : Do not overwrite the local value with the - * rollout value. - * @param conflictBehavior conflictBehavior or {@code null} for none - */ - public RolloutRolloutEntityOrchestratedEntity setConflictBehavior(java.lang.String conflictBehavior) { - this.conflictBehavior = conflictBehavior; - return this; - } - - /** - * Required. Orchestration action during the Rollout. It can be one of the following values: 1) - * "update": Resources will be updated by the rollout. 2) "delete": Resources will be deleted by - * the rollout. - * @return value or {@code null} for none - */ - public java.lang.String getOrchestrationAction() { - return orchestrationAction; - } - - /** - * Required. Orchestration action during the Rollout. It can be one of the following values: 1) - * "update": Resources will be updated by the rollout. 2) "delete": Resources will be deleted by - * the rollout. - * @param orchestrationAction orchestrationAction or {@code null} for none - */ - public RolloutRolloutEntityOrchestratedEntity setOrchestrationAction(java.lang.String orchestrationAction) { - this.orchestrationAction = orchestrationAction; - return this; - } - - /** - * Required. Fully qualified resource name of the resource which contains the source of truth of - * the configuration being rolled out across locations/projects. For example, in the case of a - * global Rollout which is applied across regions, this contains the name of the global resource - * created by the user which contains a payload for a resource that is orchestrated across - * regions. This follows the following format: //.googleapis.com/projects//locations/global// e.g. - * //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 - * @return value or {@code null} for none - */ - public java.lang.String getOrchestrationSource() { - return orchestrationSource; - } - - /** - * Required. Fully qualified resource name of the resource which contains the source of truth of - * the configuration being rolled out across locations/projects. For example, in the case of a - * global Rollout which is applied across regions, this contains the name of the global resource - * created by the user which contains a payload for a resource that is orchestrated across - * regions. This follows the following format: //.googleapis.com/projects//locations/global// e.g. - * //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1 - * @param orchestrationSource orchestrationSource or {@code null} for none - */ - public RolloutRolloutEntityOrchestratedEntity setOrchestrationSource(java.lang.String orchestrationSource) { - this.orchestrationSource = orchestrationSource; - return this; - } - - @Override - public RolloutRolloutEntityOrchestratedEntity set(String fieldName, Object value) { - return (RolloutRolloutEntityOrchestratedEntity) super.set(fieldName, value); - } - - @Override - public RolloutRolloutEntityOrchestratedEntity clone() { - return (RolloutRolloutEntityOrchestratedEntity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetails.java deleted file mode 100644 index 322ff3c4f47..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetails.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional metadata about the status of each wave provided by the server. - * - *

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 RolloutWaveDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. Additional details of the wave for products using the Orchestrated Integration - * model. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RolloutWaveDetailsOrchestratedWaveDetails orchestratedWaveDetails; - - /** - * Output only. Wave name. Ex. wave1 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String waveDisplayName; - - /** - * Output only. System generated number for the wave. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long waveNumber; - - /** - * Output only. Additional details of the wave for products using the Orchestrated Integration - * model. - * @return value or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails getOrchestratedWaveDetails() { - return orchestratedWaveDetails; - } - - /** - * Output only. Additional details of the wave for products using the Orchestrated Integration - * model. - * @param orchestratedWaveDetails orchestratedWaveDetails or {@code null} for none - */ - public RolloutWaveDetails setOrchestratedWaveDetails(RolloutWaveDetailsOrchestratedWaveDetails orchestratedWaveDetails) { - this.orchestratedWaveDetails = orchestratedWaveDetails; - return this; - } - - /** - * Output only. Wave name. Ex. wave1 - * @return value or {@code null} for none - */ - public java.lang.String getWaveDisplayName() { - return waveDisplayName; - } - - /** - * Output only. Wave name. Ex. wave1 - * @param waveDisplayName waveDisplayName or {@code null} for none - */ - public RolloutWaveDetails setWaveDisplayName(java.lang.String waveDisplayName) { - this.waveDisplayName = waveDisplayName; - return this; - } - - /** - * Output only. System generated number for the wave. - * @return value or {@code null} for none - */ - public java.lang.Long getWaveNumber() { - return waveNumber; - } - - /** - * Output only. System generated number for the wave. - * @param waveNumber waveNumber or {@code null} for none - */ - public RolloutWaveDetails setWaveNumber(java.lang.Long waveNumber) { - this.waveNumber = waveNumber; - return this; - } - - @Override - public RolloutWaveDetails set(String fieldName, Object value) { - return (RolloutWaveDetails) super.set(fieldName, value); - } - - @Override - public RolloutWaveDetails clone() { - return (RolloutWaveDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetails.java deleted file mode 100644 index 0692e0a7055..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetails.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * 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.preview.model; - -/** - * Details of the wave for products using the Orchestrated integration model. - * - *

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 RolloutWaveDetailsOrchestratedWaveDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. Resource completed so far. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long completedResourcesCount; - - /** - * Output only. Estimated timestamp at which the wave will complete. Extrapolated from current - * progress. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String estimatedCompletionTime; - - /** - * Output only. Estimated total count of resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long estimatedTotalResourcesCount; - - /** - * Output only. Locations that failed during orchestration, and ProgressiveRollout stopped - * retrying. There may be some successful resources rolled out in the wave as the location may - * have failed later in the Rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List failedLocations; - - /** - * Output only. Resources failed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long failedResourcesCount; - - /** - * Output only. Status of each location in the wave. Map keys (locations) must be specified like - * "us-east1" or "asia-west1-a". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map locationStatus; - - /** - * Output only. Resource completed so far. - * @return value or {@code null} for none - */ - public java.lang.Long getCompletedResourcesCount() { - return completedResourcesCount; - } - - /** - * Output only. Resource completed so far. - * @param completedResourcesCount completedResourcesCount or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails setCompletedResourcesCount(java.lang.Long completedResourcesCount) { - this.completedResourcesCount = completedResourcesCount; - return this; - } - - /** - * Output only. Estimated timestamp at which the wave will complete. Extrapolated from current - * progress. - * @return value or {@code null} for none - */ - public java.lang.String getEstimatedCompletionTime() { - return estimatedCompletionTime; - } - - /** - * Output only. Estimated timestamp at which the wave will complete. Extrapolated from current - * progress. - * @param estimatedCompletionTime estimatedCompletionTime or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails setEstimatedCompletionTime(java.lang.String estimatedCompletionTime) { - this.estimatedCompletionTime = estimatedCompletionTime; - return this; - } - - /** - * Output only. Estimated total count of resources. - * @return value or {@code null} for none - */ - public java.lang.Long getEstimatedTotalResourcesCount() { - return estimatedTotalResourcesCount; - } - - /** - * Output only. Estimated total count of resources. - * @param estimatedTotalResourcesCount estimatedTotalResourcesCount or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails setEstimatedTotalResourcesCount(java.lang.Long estimatedTotalResourcesCount) { - this.estimatedTotalResourcesCount = estimatedTotalResourcesCount; - return this; - } - - /** - * Output only. Locations that failed during orchestration, and ProgressiveRollout stopped - * retrying. There may be some successful resources rolled out in the wave as the location may - * have failed later in the Rollout. - * @return value or {@code null} for none - */ - public java.util.List getFailedLocations() { - return failedLocations; - } - - /** - * Output only. Locations that failed during orchestration, and ProgressiveRollout stopped - * retrying. There may be some successful resources rolled out in the wave as the location may - * have failed later in the Rollout. - * @param failedLocations failedLocations or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails setFailedLocations(java.util.List failedLocations) { - this.failedLocations = failedLocations; - return this; - } - - /** - * Output only. Resources failed. - * @return value or {@code null} for none - */ - public java.lang.Long getFailedResourcesCount() { - return failedResourcesCount; - } - - /** - * Output only. Resources failed. - * @param failedResourcesCount failedResourcesCount or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails setFailedResourcesCount(java.lang.Long failedResourcesCount) { - this.failedResourcesCount = failedResourcesCount; - return this; - } - - /** - * Output only. Status of each location in the wave. Map keys (locations) must be specified like - * "us-east1" or "asia-west1-a". - * @return value or {@code null} for none - */ - public java.util.Map getLocationStatus() { - return locationStatus; - } - - /** - * Output only. Status of each location in the wave. Map keys (locations) must be specified like - * "us-east1" or "asia-west1-a". - * @param locationStatus locationStatus or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetails setLocationStatus(java.util.Map locationStatus) { - this.locationStatus = locationStatus; - return this; - } - - @Override - public RolloutWaveDetailsOrchestratedWaveDetails set(String fieldName, Object value) { - return (RolloutWaveDetailsOrchestratedWaveDetails) super.set(fieldName, value); - } - - @Override - public RolloutWaveDetailsOrchestratedWaveDetails clone() { - return (RolloutWaveDetailsOrchestratedWaveDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java deleted file mode 100644 index db0abbde810..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents the status of a location in a wave. - * - *

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 RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. Location state of the wave. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. Location state of the wave. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. Location state of the wave. - * @param state state or {@code null} for none - */ - public RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus set(String fieldName, Object value) { - return (RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus) super.set(fieldName, value); - } - - @Override - public RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus clone() { - return (RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutsListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutsListResponse.java deleted file mode 100644 index eebee87958d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RolloutsListResponse.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RolloutsListResponse. - * - *

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 RolloutsListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 Rollout 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 Rollout 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(Rollout.class); - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public RolloutsListResponse 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 RolloutsListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Rollout resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Rollout resources. - * @param items items or {@code null} for none - */ - public RolloutsListResponse setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RolloutsListResponse 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 RolloutsListResponse setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public RolloutsListResponse 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 RolloutsListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RolloutsListResponse set(String fieldName, Object value) { - return (RolloutsListResponse) super.set(fieldName, value); - } - - @Override - public RolloutsListResponse clone() { - return (RolloutsListResponse) 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 RolloutsListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Route.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Route.java deleted file mode 100644 index 6f190e4a775..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Route.java +++ /dev/null @@ -1,1009 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Route resource. - * - * A route defines a path from VM instances in the VPC network to a specific destination. This - * destination can be inside or outside the VPC network. For more information, read theRoutes - * overview. - * - *

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 Route extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] AS path. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List asPaths; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this field when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are - * supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format - * (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String destRange; - - /** - * 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] Type of this resource. Always compute#routes for Route resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Fully-qualified URL of the network that this route applies to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * The URL to a gateway that should handle matching packets. You can only specify the internet - * gateway using a full or partial valid URL: projects/project/global/gateways/default-internet- - * gateway - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopGateway; - - /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopHub; - - /** - * The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching - * packets or the IP address of the forwarding Rule. For example, the following are all valid - * URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/for - * wardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule - * - * If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 - * address in RFC 4291 format. For example, the following are all valid IP addresses: - * - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 - * - * IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). - * Should never be an IPv4-mapped IPv6 address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopIlb; - - /** - * The URL to an instance that should handle matching packets. You can specify this as a full or - * partial URL. For example: - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopInstance; - - /** - * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates - * based on factors such as network performance, distance, and available bandwidth between - * regions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long nextHopInterRegionCost; - - /** - * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the - * route. This field will only be populated for dynamic routes generated by Cloud Router with a - * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopInterconnectAttachment; - - /** - * The network IP address of an instance that should handle matching packets. Both IPv6 address - * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. - * 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or - * 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format - * (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopIp; - - /** - * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the - * desirability of a particular route in a network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long nextHopMed; - - /** - * The URL of the local network if it should handle matching packets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopNetwork; - - /** - * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway - * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopOrigin; - - /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopPeering; - - /** - * The URL to a VpnTunnel that should handle matching packets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextHopVpnTunnel; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RouteParams params; - - /** - * The priority of this route. Priority is used to break ties in cases where there is more than - * one matching route of equal prefix length. In cases where multiple routes have equal prefix - * length, the one with the lowest-numbered priority value wins. The default value is `1000`. The - * priority value must be from `0` to `65535`, inclusive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long priority; - - /** - * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud - * Routers. It is also applicable to routes undergoing migration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String routeStatus; - - /** - * Output only. [Output Only] The type of this route, which can be one of the following values: - - * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will - * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' - * for a route learned from a BGP peer of this router - 'STATIC' for a static route - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String routeType; - - /** - * [Output Only] Server-defined fully-qualified URL for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLink; - - /** - * A list of instance tags to which this route applies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tags; - - /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List warnings; - - static { - // hack to force ProGuard to consider Warnings 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(Warnings.class); - } - - /** - * Output only. [Output Only] AS path. - * @return value or {@code null} for none - */ - public java.util.List getAsPaths() { - return asPaths; - } - - /** - * Output only. [Output Only] AS path. - * @param asPaths asPaths or {@code null} for none - */ - public Route setAsPaths(java.util.List asPaths) { - this.asPaths = asPaths; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Route setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this field when you create the resource. - * @param description description or {@code null} for none - */ - public Route setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are - * supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format - * (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. - * @return value or {@code null} for none - */ - public java.lang.String getDestRange() { - return destRange; - } - - /** - * The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are - * supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format - * (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format. - * @param destRange destRange or {@code null} for none - */ - public Route setDestRange(java.lang.String destRange) { - this.destRange = destRange; - 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 Route setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. - * @param kind kind or {@code null} for none - */ - public Route setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the resource. Provided by the client 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])?`. The first character must be - * a lowercase letter, and all following characters (except for the last character) must be a - * dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. - * @param name name or {@code null} for none - */ - public Route setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Fully-qualified URL of the network that this route applies to. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * Fully-qualified URL of the network that this route applies to. - * @param network network or {@code null} for none - */ - public Route setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * The URL to a gateway that should handle matching packets. You can only specify the internet - * gateway using a full or partial valid URL: projects/project/global/gateways/default-internet- - * gateway - * @return value or {@code null} for none - */ - public java.lang.String getNextHopGateway() { - return nextHopGateway; - } - - /** - * The URL to a gateway that should handle matching packets. You can only specify the internet - * gateway using a full or partial valid URL: projects/project/global/gateways/default-internet- - * gateway - * @param nextHopGateway nextHopGateway or {@code null} for none - */ - public Route setNextHopGateway(java.lang.String nextHopGateway) { - this.nextHopGateway = nextHopGateway; - return this; - } - - /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopHub() { - return nextHopHub; - } - - /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. - * @param nextHopHub nextHopHub or {@code null} for none - */ - public Route setNextHopHub(java.lang.String nextHopHub) { - this.nextHopHub = nextHopHub; - return this; - } - - /** - * The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching - * packets or the IP address of the forwarding Rule. For example, the following are all valid - * URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/for - * wardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule - * - * If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 - * address in RFC 4291 format. For example, the following are all valid IP addresses: - * - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 - * - * IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). - * Should never be an IPv4-mapped IPv6 address. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopIlb() { - return nextHopIlb; - } - - /** - * The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching - * packets or the IP address of the forwarding Rule. For example, the following are all valid - * URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region/for - * wardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule - * - * If an IP address is provided, must specify an IPv4 address in dot-decimal notation or an IPv6 - * address in RFC 4291 format. For example, the following are all valid IP addresses: - * - 10.128.0.56 - 2001:db8::2d9:51:0:0 - 2001:db8:0:0:2d9:51:0:0 - * - * IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). - * Should never be an IPv4-mapped IPv6 address. - * @param nextHopIlb nextHopIlb or {@code null} for none - */ - public Route setNextHopIlb(java.lang.String nextHopIlb) { - this.nextHopIlb = nextHopIlb; - return this; - } - - /** - * The URL to an instance that should handle matching packets. You can specify this as a full or - * partial URL. For example: - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ - * @return value or {@code null} for none - */ - public java.lang.String getNextHopInstance() { - return nextHopInstance; - } - - /** - * The URL to an instance that should handle matching packets. You can specify this as a full or - * partial URL. For example: - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ - * @param nextHopInstance nextHopInstance or {@code null} for none - */ - public Route setNextHopInstance(java.lang.String nextHopInstance) { - this.nextHopInstance = nextHopInstance; - return this; - } - - /** - * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates - * based on factors such as network performance, distance, and available bandwidth between - * regions. - * @return value or {@code null} for none - */ - public java.lang.Long getNextHopInterRegionCost() { - return nextHopInterRegionCost; - } - - /** - * Output only. [Output only] Internal fixed region-to-region cost that Google Cloud calculates - * based on factors such as network performance, distance, and available bandwidth between - * regions. - * @param nextHopInterRegionCost nextHopInterRegionCost or {@code null} for none - */ - public Route setNextHopInterRegionCost(java.lang.Long nextHopInterRegionCost) { - this.nextHopInterRegionCost = nextHopInterRegionCost; - return this; - } - - /** - * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the - * route. This field will only be populated for dynamic routes generated by Cloud Router with a - * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopInterconnectAttachment() { - return nextHopInterconnectAttachment; - } - - /** - * Output only. [Output Only] The URL to an InterconnectAttachment which is the next hop for the - * route. This field will only be populated for dynamic routes generated by Cloud Router with a - * linked interconnectAttachment or the static route generated by each L2 Interconnect Attachment. - * @param nextHopInterconnectAttachment nextHopInterconnectAttachment or {@code null} for none - */ - public Route setNextHopInterconnectAttachment(java.lang.String nextHopInterconnectAttachment) { - this.nextHopInterconnectAttachment = nextHopInterconnectAttachment; - return this; - } - - /** - * The network IP address of an instance that should handle matching packets. Both IPv6 address - * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. - * 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or - * 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format - * (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopIp() { - return nextHopIp; - } - - /** - * The network IP address of an instance that should handle matching packets. Both IPv6 address - * and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. - * 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or - * 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format - * (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. - * @param nextHopIp nextHopIp or {@code null} for none - */ - public Route setNextHopIp(java.lang.String nextHopIp) { - this.nextHopIp = nextHopIp; - return this; - } - - /** - * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the - * desirability of a particular route in a network. - * @return value or {@code null} for none - */ - public java.lang.Long getNextHopMed() { - return nextHopMed; - } - - /** - * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the - * desirability of a particular route in a network. - * @param nextHopMed nextHopMed or {@code null} for none - */ - public Route setNextHopMed(java.lang.Long nextHopMed) { - this.nextHopMed = nextHopMed; - return this; - } - - /** - * The URL of the local network if it should handle matching packets. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopNetwork() { - return nextHopNetwork; - } - - /** - * The URL of the local network if it should handle matching packets. - * @param nextHopNetwork nextHopNetwork or {@code null} for none - */ - public Route setNextHopNetwork(java.lang.String nextHopNetwork) { - this.nextHopNetwork = nextHopNetwork; - return this; - } - - /** - * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway - * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopOrigin() { - return nextHopOrigin; - } - - /** - * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway - * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. - * @param nextHopOrigin nextHopOrigin or {@code null} for none - */ - public Route setNextHopOrigin(java.lang.String nextHopOrigin) { - this.nextHopOrigin = nextHopOrigin; - return this; - } - - /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopPeering() { - return nextHopPeering; - } - - /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. - * @param nextHopPeering nextHopPeering or {@code null} for none - */ - public Route setNextHopPeering(java.lang.String nextHopPeering) { - this.nextHopPeering = nextHopPeering; - return this; - } - - /** - * The URL to a VpnTunnel that should handle matching packets. - * @return value or {@code null} for none - */ - public java.lang.String getNextHopVpnTunnel() { - return nextHopVpnTunnel; - } - - /** - * The URL to a VpnTunnel that should handle matching packets. - * @param nextHopVpnTunnel nextHopVpnTunnel or {@code null} for none - */ - public Route setNextHopVpnTunnel(java.lang.String nextHopVpnTunnel) { - this.nextHopVpnTunnel = nextHopVpnTunnel; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public RouteParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Route setParams(RouteParams params) { - this.params = params; - return this; - } - - /** - * The priority of this route. Priority is used to break ties in cases where there is more than - * one matching route of equal prefix length. In cases where multiple routes have equal prefix - * length, the one with the lowest-numbered priority value wins. The default value is `1000`. The - * priority value must be from `0` to `65535`, inclusive. - * @return value or {@code null} for none - */ - public java.lang.Long getPriority() { - return priority; - } - - /** - * The priority of this route. Priority is used to break ties in cases where there is more than - * one matching route of equal prefix length. In cases where multiple routes have equal prefix - * length, the one with the lowest-numbered priority value wins. The default value is `1000`. The - * priority value must be from `0` to `65535`, inclusive. - * @param priority priority or {@code null} for none - */ - public Route setPriority(java.lang.Long priority) { - this.priority = priority; - return this; - } - - /** - * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud - * Routers. It is also applicable to routes undergoing migration. - * @return value or {@code null} for none - */ - public java.lang.String getRouteStatus() { - return routeStatus; - } - - /** - * [Output only] The status of the route. This status applies to dynamic routes learned by Cloud - * Routers. It is also applicable to routes undergoing migration. - * @param routeStatus routeStatus or {@code null} for none - */ - public Route setRouteStatus(java.lang.String routeStatus) { - this.routeStatus = routeStatus; - return this; - } - - /** - * Output only. [Output Only] The type of this route, which can be one of the following values: - - * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will - * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' - * for a route learned from a BGP peer of this router - 'STATIC' for a static route - * @return value or {@code null} for none - */ - public java.lang.String getRouteType() { - return routeType; - } - - /** - * Output only. [Output Only] The type of this route, which can be one of the following values: - - * 'TRANSIT' for a transit route that this router learned from another Cloud Router and will - * readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' - * for a route learned from a BGP peer of this router - 'STATIC' for a static route - * @param routeType routeType or {@code null} for none - */ - public Route setRouteType(java.lang.String routeType) { - this.routeType = routeType; - return this; - } - - /** - * [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public Route setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * A list of instance tags to which this route applies. - * @return value or {@code null} for none - */ - public java.util.List getTags() { - return tags; - } - - /** - * A list of instance tags to which this route applies. - * @param tags tags or {@code null} for none - */ - public Route setTags(java.util.List tags) { - this.tags = tags; - return this; - } - - /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. - * @return value or {@code null} for none - */ - public java.util.List getWarnings() { - return warnings; - } - - /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. - * @param warnings warnings or {@code null} for none - */ - public Route setWarnings(java.util.List warnings) { - this.warnings = warnings; - return this; - } - - @Override - public Route set(String fieldName, Object value) { - return (Route) super.set(fieldName, value); - } - - @Override - public Route clone() { - return (Route) super.clone(); - } - - /** - * Model definition for RouteWarnings. - */ - public static final class Warnings 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 Warnings 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 Warnings 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 Warnings setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warnings set(String fieldName, Object value) { - return (Warnings) super.set(fieldName, value); - } - - @Override - public Warnings clone() { - return (Warnings) super.clone(); - } - - /** - * Model definition for RouteWarningsData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RouteAsPath.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteAsPath.java deleted file mode 100644 index 8938cf8c443..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteAsPath.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouteAsPath. - * - *

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 RouteAsPath extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The AS numbers of the AS Path. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List asLists; - - /** - * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': - * unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered - * set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of - * Member Autonomous Systems in the local confederation that the route has traversed - - * 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the - * route has traversed - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathSegmentType; - - /** - * [Output Only] The AS numbers of the AS Path. - * @return value or {@code null} for none - */ - public java.util.List getAsLists() { - return asLists; - } - - /** - * [Output Only] The AS numbers of the AS Path. - * @param asLists asLists or {@code null} for none - */ - public RouteAsPath setAsLists(java.util.List asLists) { - this.asLists = asLists; - return this; - } - - /** - * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': - * unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered - * set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of - * Member Autonomous Systems in the local confederation that the route has traversed - - * 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the - * route has traversed - * @return value or {@code null} for none - */ - public java.lang.String getPathSegmentType() { - return pathSegmentType; - } - - /** - * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': - * unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered - * set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of - * Member Autonomous Systems in the local confederation that the route has traversed - - * 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the - * route has traversed - * @param pathSegmentType pathSegmentType or {@code null} for none - */ - public RouteAsPath setPathSegmentType(java.lang.String pathSegmentType) { - this.pathSegmentType = pathSegmentType; - return this; - } - - @Override - public RouteAsPath set(String fieldName, Object value) { - return (RouteAsPath) super.set(fieldName, value); - } - - @Override - public RouteAsPath clone() { - return (RouteAsPath) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteList.java deleted file mode 100644 index c81c0bb86f5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Route resources. - * - *

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 RouteList extends com.google.api.client.json.GenericJson { - - /** - * [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 Route 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 Route 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(Route.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 RouteList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Route resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Route resources. - * @param items items or {@code null} for none - */ - public RouteList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public RouteList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RouteList 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 RouteList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 RouteList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RouteList set(String fieldName, Object value) { - return (RouteList) super.set(fieldName, value); - } - - @Override - public RouteList clone() { - return (RouteList) 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 RouteListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RouteParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteParams.java deleted file mode 100644 index 230f6791871..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouteParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional route parameters. - * - *

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 RouteParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public RouteParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public RouteParams set(String fieldName, Object value) { - return (RouteParams) super.set(fieldName, value); - } - - @Override - public RouteParams clone() { - return (RouteParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicy.java deleted file mode 100644 index 257e329aea4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicy.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutePolicy. - * - *

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 RoutePolicy extends com.google.api.client.json.GenericJson { - - /** - * An optional description of route policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of - * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update Route Policy. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Route Policy name, which must be a resource ID segment and unique within all the router's Route - * Policies. Name should conform to RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * List of terms (the order in the list is not important, they are evaluated in order of - * priority). Order of policies is not retained and might change when getting policy later. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List terms; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * An optional description of route policy. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of route policy. - * @param description description or {@code null} for none - */ - public RoutePolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of - * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update Route Policy. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of - * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update Route Policy. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of - * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update Route Policy. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public RoutePolicy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of - * the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update Route Policy. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public RoutePolicy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Route Policy name, which must be a resource ID segment and unique within all the router's Route - * Policies. Name should conform to RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Route Policy name, which must be a resource ID segment and unique within all the router's Route - * Policies. Name should conform to RFC1035. - * @param name name or {@code null} for none - */ - public RoutePolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * List of terms (the order in the list is not important, they are evaluated in order of - * priority). Order of policies is not retained and might change when getting policy later. - * @return value or {@code null} for none - */ - public java.util.List getTerms() { - return terms; - } - - /** - * List of terms (the order in the list is not important, they are evaluated in order of - * priority). Order of policies is not retained and might change when getting policy later. - * @param terms terms or {@code null} for none - */ - public RoutePolicy setTerms(java.util.List terms) { - this.terms = terms; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * @param type type or {@code null} for none - */ - public RoutePolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public RoutePolicy set(String fieldName, Object value) { - return (RoutePolicy) super.set(fieldName, value); - } - - @Override - public RoutePolicy clone() { - return (RoutePolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicyPolicyTerm.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicyPolicyTerm.java deleted file mode 100644 index c205335cd74..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutePolicyPolicyTerm.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutePolicyPolicyTerm. - * - *

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 RoutePolicyPolicyTerm extends com.google.api.client.json.GenericJson { - - /** - * CEL expressions to evaluate to modify a route when this term matches. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List actions; - - static { - // hack to force ProGuard to consider Expr 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(Expr.class); - } - - /** - * CEL expression evaluated against a route to determine if this term applies. When not set, the - * term applies to all routes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Expr match; - - /** - * The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 - * (exclusive), and unique within the list. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * CEL expressions to evaluate to modify a route when this term matches. - * @return value or {@code null} for none - */ - public java.util.List getActions() { - return actions; - } - - /** - * CEL expressions to evaluate to modify a route when this term matches. - * @param actions actions or {@code null} for none - */ - public RoutePolicyPolicyTerm setActions(java.util.List actions) { - this.actions = actions; - return this; - } - - /** - * CEL expression evaluated against a route to determine if this term applies. When not set, the - * term applies to all routes. - * @return value or {@code null} for none - */ - public Expr getMatch() { - return match; - } - - /** - * CEL expression evaluated against a route to determine if this term applies. When not set, the - * term applies to all routes. - * @param match match or {@code null} for none - */ - public RoutePolicyPolicyTerm setMatch(Expr match) { - this.match = match; - return this; - } - - /** - * The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 - * (exclusive), and unique within the list. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 - * (exclusive), and unique within the list. - * @param priority priority or {@code null} for none - */ - public RoutePolicyPolicyTerm setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - @Override - public RoutePolicyPolicyTerm set(String fieldName, Object value) { - return (RoutePolicyPolicyTerm) super.set(fieldName, value); - } - - @Override - public RoutePolicyPolicyTerm clone() { - return (RoutePolicyPolicyTerm) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Router.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Router.java deleted file mode 100644 index 1fd696c2ed8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Router.java +++ /dev/null @@ -1,470 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Cloud Router resource. - * - * For more information about Cloud Router, read theCloud Router overview. - * - *

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 Router extends com.google.api.client.json.GenericJson { - - /** - * BGP information specific to this router. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RouterBgp bgp; - - /** - * BGP information that must be configured into the routing stack to establish BGP peering. This - * information must specify the peer ASN and either the interface name, IP address, or peer IP - * address. Please refer toRFC4273. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bgpPeers; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Indicates if a router is dedicated for use with encrypted VLAN attachments - * (interconnectAttachments). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean encryptedInterconnectRouter; - - /** - * [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; - - /** - * Router interfaces. To create a BGP peer that uses a router interface, the interface must have - * one of the following fields specified: - linkedVpnTunnel - - * linkedInterconnectAttachment - subnetwork - * - * You can create a router interface without any of these fields specified. However, you cannot - * create a BGP peer that uses that interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interfaces; - - /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Keys used for MD5 authentication. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List md5AuthenticationKeys; - - /** - * Name of the resource. Provided by the client 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; - - /** - * A list of NAT services created in this router. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nats; - - /** - * URI of the ncc_gateway to which this router associated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nccGateway; - - /** - * URI of the network to which this router belongs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RouterParams params; - - /** - * [Output Only] URI of the region where the router resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * BGP information specific to this router. - * @return value or {@code null} for none - */ - public RouterBgp getBgp() { - return bgp; - } - - /** - * BGP information specific to this router. - * @param bgp bgp or {@code null} for none - */ - public Router setBgp(RouterBgp bgp) { - this.bgp = bgp; - return this; - } - - /** - * BGP information that must be configured into the routing stack to establish BGP peering. This - * information must specify the peer ASN and either the interface name, IP address, or peer IP - * address. Please refer toRFC4273. - * @return value or {@code null} for none - */ - public java.util.List getBgpPeers() { - return bgpPeers; - } - - /** - * BGP information that must be configured into the routing stack to establish BGP peering. This - * information must specify the peer ASN and either the interface name, IP address, or peer IP - * address. Please refer toRFC4273. - * @param bgpPeers bgpPeers or {@code null} for none - */ - public Router setBgpPeers(java.util.List bgpPeers) { - this.bgpPeers = bgpPeers; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Router setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Router setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Indicates if a router is dedicated for use with encrypted VLAN attachments - * (interconnectAttachments). - * @return value or {@code null} for none - */ - public java.lang.Boolean getEncryptedInterconnectRouter() { - return encryptedInterconnectRouter; - } - - /** - * Indicates if a router is dedicated for use with encrypted VLAN attachments - * (interconnectAttachments). - * @param encryptedInterconnectRouter encryptedInterconnectRouter or {@code null} for none - */ - public Router setEncryptedInterconnectRouter(java.lang.Boolean encryptedInterconnectRouter) { - this.encryptedInterconnectRouter = encryptedInterconnectRouter; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public Router setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Router interfaces. To create a BGP peer that uses a router interface, the interface must have - * one of the following fields specified: - linkedVpnTunnel - - * linkedInterconnectAttachment - subnetwork - * - * You can create a router interface without any of these fields specified. However, you cannot - * create a BGP peer that uses that interface. - * @return value or {@code null} for none - */ - public java.util.List getInterfaces() { - return interfaces; - } - - /** - * Router interfaces. To create a BGP peer that uses a router interface, the interface must have - * one of the following fields specified: - linkedVpnTunnel - - * linkedInterconnectAttachment - subnetwork - * - * You can create a router interface without any of these fields specified. However, you cannot - * create a BGP peer that uses that interface. - * @param interfaces interfaces or {@code null} for none - */ - public Router setInterfaces(java.util.List interfaces) { - this.interfaces = interfaces; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. - * @param kind kind or {@code null} for none - */ - public Router setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Keys used for MD5 authentication. - * @return value or {@code null} for none - */ - public java.util.List getMd5AuthenticationKeys() { - return md5AuthenticationKeys; - } - - /** - * Keys used for MD5 authentication. - * @param md5AuthenticationKeys md5AuthenticationKeys or {@code null} for none - */ - public Router setMd5AuthenticationKeys(java.util.List md5AuthenticationKeys) { - this.md5AuthenticationKeys = md5AuthenticationKeys; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 Router setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * A list of NAT services created in this router. - * @return value or {@code null} for none - */ - public java.util.List getNats() { - return nats; - } - - /** - * A list of NAT services created in this router. - * @param nats nats or {@code null} for none - */ - public Router setNats(java.util.List nats) { - this.nats = nats; - return this; - } - - /** - * URI of the ncc_gateway to which this router associated. - * @return value or {@code null} for none - */ - public java.lang.String getNccGateway() { - return nccGateway; - } - - /** - * URI of the ncc_gateway to which this router associated. - * @param nccGateway nccGateway or {@code null} for none - */ - public Router setNccGateway(java.lang.String nccGateway) { - this.nccGateway = nccGateway; - return this; - } - - /** - * URI of the network to which this router belongs. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * URI of the network to which this router belongs. - * @param network network or {@code null} for none - */ - public Router setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public RouterParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Router setParams(RouterParams params) { - this.params = params; - return this; - } - - /** - * [Output Only] URI of the region where the router resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] URI of the region where the router resides. You must specify this field as part - * of the HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public Router setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Router setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - @Override - public Router set(String fieldName, Object value) { - return (Router) super.set(fieldName, value); - } - - @Override - public Router clone() { - return (Router) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAdvertisedIpRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAdvertisedIpRange.java deleted file mode 100644 index dd607f6eba9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAdvertisedIpRange.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Description-tagged IP ranges for the router to advertise. - * - *

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 RouterAdvertisedIpRange extends com.google.api.client.json.GenericJson { - - /** - * User-specified description for the IP range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The IP range to advertise. The value must be a CIDR-formatted string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String range; - - /** - * User-specified description for the IP range. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * User-specified description for the IP range. - * @param description description or {@code null} for none - */ - public RouterAdvertisedIpRange setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The IP range to advertise. The value must be a CIDR-formatted string. - * @return value or {@code null} for none - */ - public java.lang.String getRange() { - return range; - } - - /** - * The IP range to advertise. The value must be a CIDR-formatted string. - * @param range range or {@code null} for none - */ - public RouterAdvertisedIpRange setRange(java.lang.String range) { - this.range = range; - return this; - } - - @Override - public RouterAdvertisedIpRange set(String fieldName, Object value) { - return (RouterAdvertisedIpRange) super.set(fieldName, value); - } - - @Override - public RouterAdvertisedIpRange clone() { - return (RouterAdvertisedIpRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAggregatedList.java deleted file mode 100644 index 27730c6a24e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of routers. - * - *

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 RouterAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 Router resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 RouterAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Router resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of Router resources. - * @param items items or {@code null} for none - */ - public RouterAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public RouterAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RouterAggregatedList 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 RouterAggregatedList 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 RouterAggregatedList 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 RouterAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RouterAggregatedList set(String fieldName, Object value) { - return (RouterAggregatedList) super.set(fieldName, value); - } - - @Override - public RouterAggregatedList clone() { - return (RouterAggregatedList) 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 RouterAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgp.java deleted file mode 100644 index 257761fd013..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgp.java +++ /dev/null @@ -1,258 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterBgp. - * - *

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 RouterBgp extends com.google.api.client.json.GenericJson { - - /** - * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or - * CUSTOM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String advertiseMode; - - /** - * User-specified list of prefix groups to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These - * groups will be advertised in addition to any specified prefixes. Leave this field blank to - * advertise no custom groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List advertisedGroups; - - /** - * User-specified list of individual IP ranges to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP - * ranges will be advertised in addition to any specified groups. Leave this field blank to - * advertise no custom IP ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List advertisedIpRanges; - - static { - // hack to force ProGuard to consider RouterAdvertisedIpRange 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(RouterAdvertisedIpRange.class); - } - - /** - * Local BGP Autonomous System Number (ASN). Must be anRFC6996 private ASN, either 16-bit or - * 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this - * router will have the same local ASN. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long asn; - - /** - * Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a - * link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are - * over IPv6. It must not overlap with any IPv4 BGP session ranges. - * - * Other vendors commonly call this "router ID". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String identifierRange; - - /** - * The interval in seconds between BGP keepalive messages that are sent to the peer. - * - * Hold time is three times the interval at which keepalive messages are sent, and the hold time - * is the maximum number of seconds allowed to elapse between successive keepalive messages that - * BGP receives from a peer. - * - * BGP will use the smaller of either the local hold time value or the peer's hold time value as - * the hold time for the BGP connection between the two peers. - * - * If set, this value must be between 20 and 60. The default is 20. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long keepaliveInterval; - - /** - * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or - * CUSTOM. - * @return value or {@code null} for none - */ - public java.lang.String getAdvertiseMode() { - return advertiseMode; - } - - /** - * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or - * CUSTOM. - * @param advertiseMode advertiseMode or {@code null} for none - */ - public RouterBgp setAdvertiseMode(java.lang.String advertiseMode) { - this.advertiseMode = advertiseMode; - return this; - } - - /** - * User-specified list of prefix groups to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These - * groups will be advertised in addition to any specified prefixes. Leave this field blank to - * advertise no custom groups. - * @return value or {@code null} for none - */ - public java.util.List getAdvertisedGroups() { - return advertisedGroups; - } - - /** - * User-specified list of prefix groups to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These - * groups will be advertised in addition to any specified prefixes. Leave this field blank to - * advertise no custom groups. - * @param advertisedGroups advertisedGroups or {@code null} for none - */ - public RouterBgp setAdvertisedGroups(java.util.List advertisedGroups) { - this.advertisedGroups = advertisedGroups; - return this; - } - - /** - * User-specified list of individual IP ranges to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP - * ranges will be advertised in addition to any specified groups. Leave this field blank to - * advertise no custom IP ranges. - * @return value or {@code null} for none - */ - public java.util.List getAdvertisedIpRanges() { - return advertisedIpRanges; - } - - /** - * User-specified list of individual IP ranges to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP - * ranges will be advertised in addition to any specified groups. Leave this field blank to - * advertise no custom IP ranges. - * @param advertisedIpRanges advertisedIpRanges or {@code null} for none - */ - public RouterBgp setAdvertisedIpRanges(java.util.List advertisedIpRanges) { - this.advertisedIpRanges = advertisedIpRanges; - return this; - } - - /** - * Local BGP Autonomous System Number (ASN). Must be anRFC6996 private ASN, either 16-bit or - * 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this - * router will have the same local ASN. - * @return value or {@code null} for none - */ - public java.lang.Long getAsn() { - return asn; - } - - /** - * Local BGP Autonomous System Number (ASN). Must be anRFC6996 private ASN, either 16-bit or - * 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this - * router will have the same local ASN. - * @param asn asn or {@code null} for none - */ - public RouterBgp setAsn(java.lang.Long asn) { - this.asn = asn; - return this; - } - - /** - * Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a - * link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are - * over IPv6. It must not overlap with any IPv4 BGP session ranges. - * - * Other vendors commonly call this "router ID". - * @return value or {@code null} for none - */ - public java.lang.String getIdentifierRange() { - return identifierRange; - } - - /** - * Explicitly specifies a range of valid BGP Identifiers for this Router. It is provided as a - * link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are - * over IPv6. It must not overlap with any IPv4 BGP session ranges. - * - * Other vendors commonly call this "router ID". - * @param identifierRange identifierRange or {@code null} for none - */ - public RouterBgp setIdentifierRange(java.lang.String identifierRange) { - this.identifierRange = identifierRange; - return this; - } - - /** - * The interval in seconds between BGP keepalive messages that are sent to the peer. - * - * Hold time is three times the interval at which keepalive messages are sent, and the hold time - * is the maximum number of seconds allowed to elapse between successive keepalive messages that - * BGP receives from a peer. - * - * BGP will use the smaller of either the local hold time value or the peer's hold time value as - * the hold time for the BGP connection between the two peers. - * - * If set, this value must be between 20 and 60. The default is 20. - * @return value or {@code null} for none - */ - public java.lang.Long getKeepaliveInterval() { - return keepaliveInterval; - } - - /** - * The interval in seconds between BGP keepalive messages that are sent to the peer. - * - * Hold time is three times the interval at which keepalive messages are sent, and the hold time - * is the maximum number of seconds allowed to elapse between successive keepalive messages that - * BGP receives from a peer. - * - * BGP will use the smaller of either the local hold time value or the peer's hold time value as - * the hold time for the BGP connection between the two peers. - * - * If set, this value must be between 20 and 60. The default is 20. - * @param keepaliveInterval keepaliveInterval or {@code null} for none - */ - public RouterBgp setKeepaliveInterval(java.lang.Long keepaliveInterval) { - this.keepaliveInterval = keepaliveInterval; - return this; - } - - @Override - public RouterBgp set(String fieldName, Object value) { - return (RouterBgp) super.set(fieldName, value); - } - - @Override - public RouterBgp clone() { - return (RouterBgp) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeer.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeer.java deleted file mode 100644 index a59ce9eb82c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeer.java +++ /dev/null @@ -1,717 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterBgpPeer. - * - *

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 RouterBgpPeer extends com.google.api.client.json.GenericJson { - - /** - * User-specified flag to indicate which mode to use for advertisement. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String advertiseMode; - - /** - * User-specified list of prefix groups to advertise in custom mode, which currently supports the - * following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This - * excludes any routes learned for subnets that use VPC Network Peering. - * - * Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list - * defined for the router (in the "bgp" message). These groups are advertised in addition to any - * specified prefixes. Leave this field blank to advertise no custom groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List advertisedGroups; - - /** - * User-specified list of individual IP ranges to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the - * "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this - * field blank to advertise no custom IP ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List advertisedIpRanges; - - static { - // hack to force ProGuard to consider RouterAdvertisedIpRange 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(RouterAdvertisedIpRange.class); - } - - /** - * The priority of routes advertised to this BGP peer. Where there is more than one matching route - * of maximum length, the routes with the lowest priority value win. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long advertisedRoutePriority; - - /** - * BFD configuration for the BGP peering. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RouterBgpPeerBfd bfd; - - /** - * A list of user-defined custom learned route IP address ranges for a BGP session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customLearnedIpRanges; - - /** - * The user-defined custom learned route priority for a BGP session. This value is applied to all - * custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you - * don't provide a value, Google Cloud assigns a priority of `100` to the ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer customLearnedRoutePriority; - - /** - * The status of the BGP peer connection. - * - * If set to FALSE, any active session with the peer is terminated and all associated routing - * information is removed. If set to TRUE, the peer connection can be established with routing - * information. The default is TRUE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enable; - - /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableIpv4; - - /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableIpv6; - - /** - * List of export policies applied to this peer, in the order they must be evaluated. The name - * must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List exportPolicies; - - /** - * List of import policies applied to this peer, in the order they must be evaluated. The name - * must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List importPolicies; - - /** - * Name of the interface the BGP peer is associated with. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interfaceName; - - /** - * IP address of the interface inside Google Cloud Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * IPv4 address of the interface inside Google Cloud Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv4NexthopAddress; - - /** - * IPv6 address of the interface inside Google Cloud Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6NexthopAddress; - - /** - * Output only. [Output Only] The resource that configures and manages this BGP peer. - - * MANAGED_BY_USER is the default value and can be managed by you or other users - - * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, - * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, - * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is - * created, updated, or deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String managementType; - - /** - * Present if MD5 authentication is enabled for the peering. Must be the name of one of the - * entries in the Router.md5_authentication_keys. The field must comply with RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String md5AuthenticationKeyName; - - /** - * Name of this BGP peer. 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; - - /** - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long peerAsn; - - /** - * IP address of the BGP interface outside Google Cloud Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpAddress; - - /** - * IPv4 address of the BGP interface outside Google Cloud Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpv4NexthopAddress; - - /** - * IPv6 address of the BGP interface outside Google Cloud Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpv6NexthopAddress; - - /** - * URI of the VM instance that is used as third-party router appliances such as Next Gen - * Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones - * contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP - * session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String routerApplianceInstance; - - /** - * User-specified flag to indicate which mode to use for advertisement. - * @return value or {@code null} for none - */ - public java.lang.String getAdvertiseMode() { - return advertiseMode; - } - - /** - * User-specified flag to indicate which mode to use for advertisement. - * @param advertiseMode advertiseMode or {@code null} for none - */ - public RouterBgpPeer setAdvertiseMode(java.lang.String advertiseMode) { - this.advertiseMode = advertiseMode; - return this; - } - - /** - * User-specified list of prefix groups to advertise in custom mode, which currently supports the - * following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This - * excludes any routes learned for subnets that use VPC Network Peering. - * - * Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list - * defined for the router (in the "bgp" message). These groups are advertised in addition to any - * specified prefixes. Leave this field blank to advertise no custom groups. - * @return value or {@code null} for none - */ - public java.util.List getAdvertisedGroups() { - return advertisedGroups; - } - - /** - * User-specified list of prefix groups to advertise in custom mode, which currently supports the - * following option: - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This - * excludes any routes learned for subnets that use VPC Network Peering. - * - * Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list - * defined for the router (in the "bgp" message). These groups are advertised in addition to any - * specified prefixes. Leave this field blank to advertise no custom groups. - * @param advertisedGroups advertisedGroups or {@code null} for none - */ - public RouterBgpPeer setAdvertisedGroups(java.util.List advertisedGroups) { - this.advertisedGroups = advertisedGroups; - return this; - } - - /** - * User-specified list of individual IP ranges to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the - * "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this - * field blank to advertise no custom IP ranges. - * @return value or {@code null} for none - */ - public java.util.List getAdvertisedIpRanges() { - return advertisedIpRanges; - } - - /** - * User-specified list of individual IP ranges to advertise in custom mode. This field can only be - * populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the - * "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this - * field blank to advertise no custom IP ranges. - * @param advertisedIpRanges advertisedIpRanges or {@code null} for none - */ - public RouterBgpPeer setAdvertisedIpRanges(java.util.List advertisedIpRanges) { - this.advertisedIpRanges = advertisedIpRanges; - return this; - } - - /** - * The priority of routes advertised to this BGP peer. Where there is more than one matching route - * of maximum length, the routes with the lowest priority value win. - * @return value or {@code null} for none - */ - public java.lang.Long getAdvertisedRoutePriority() { - return advertisedRoutePriority; - } - - /** - * The priority of routes advertised to this BGP peer. Where there is more than one matching route - * of maximum length, the routes with the lowest priority value win. - * @param advertisedRoutePriority advertisedRoutePriority or {@code null} for none - */ - public RouterBgpPeer setAdvertisedRoutePriority(java.lang.Long advertisedRoutePriority) { - this.advertisedRoutePriority = advertisedRoutePriority; - return this; - } - - /** - * BFD configuration for the BGP peering. - * @return value or {@code null} for none - */ - public RouterBgpPeerBfd getBfd() { - return bfd; - } - - /** - * BFD configuration for the BGP peering. - * @param bfd bfd or {@code null} for none - */ - public RouterBgpPeer setBfd(RouterBgpPeerBfd bfd) { - this.bfd = bfd; - return this; - } - - /** - * A list of user-defined custom learned route IP address ranges for a BGP session. - * @return value or {@code null} for none - */ - public java.util.List getCustomLearnedIpRanges() { - return customLearnedIpRanges; - } - - /** - * A list of user-defined custom learned route IP address ranges for a BGP session. - * @param customLearnedIpRanges customLearnedIpRanges or {@code null} for none - */ - public RouterBgpPeer setCustomLearnedIpRanges(java.util.List customLearnedIpRanges) { - this.customLearnedIpRanges = customLearnedIpRanges; - return this; - } - - /** - * The user-defined custom learned route priority for a BGP session. This value is applied to all - * custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you - * don't provide a value, Google Cloud assigns a priority of `100` to the ranges. - * @return value or {@code null} for none - */ - public java.lang.Integer getCustomLearnedRoutePriority() { - return customLearnedRoutePriority; - } - - /** - * The user-defined custom learned route priority for a BGP session. This value is applied to all - * custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you - * don't provide a value, Google Cloud assigns a priority of `100` to the ranges. - * @param customLearnedRoutePriority customLearnedRoutePriority or {@code null} for none - */ - public RouterBgpPeer setCustomLearnedRoutePriority(java.lang.Integer customLearnedRoutePriority) { - this.customLearnedRoutePriority = customLearnedRoutePriority; - return this; - } - - /** - * The status of the BGP peer connection. - * - * If set to FALSE, any active session with the peer is terminated and all associated routing - * information is removed. If set to TRUE, the peer connection can be established with routing - * information. The default is TRUE. - * @return value or {@code null} for none - */ - public java.lang.String getEnable() { - return enable; - } - - /** - * The status of the BGP peer connection. - * - * If set to FALSE, any active session with the peer is terminated and all associated routing - * information is removed. If set to TRUE, the peer connection can be established with routing - * information. The default is TRUE. - * @param enable enable or {@code null} for none - */ - public RouterBgpPeer setEnable(java.lang.String enable) { - this.enable = enable; - return this; - } - - /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableIpv4() { - return enableIpv4; - } - - /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. - * @param enableIpv4 enableIpv4 or {@code null} for none - */ - public RouterBgpPeer setEnableIpv4(java.lang.Boolean enableIpv4) { - this.enableIpv4 = enableIpv4; - return this; - } - - /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableIpv6() { - return enableIpv6; - } - - /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. - * @param enableIpv6 enableIpv6 or {@code null} for none - */ - public RouterBgpPeer setEnableIpv6(java.lang.Boolean enableIpv6) { - this.enableIpv6 = enableIpv6; - return this; - } - - /** - * List of export policies applied to this peer, in the order they must be evaluated. The name - * must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. - * @return value or {@code null} for none - */ - public java.util.List getExportPolicies() { - return exportPolicies; - } - - /** - * List of export policies applied to this peer, in the order they must be evaluated. The name - * must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. - * @param exportPolicies exportPolicies or {@code null} for none - */ - public RouterBgpPeer setExportPolicies(java.util.List exportPolicies) { - this.exportPolicies = exportPolicies; - return this; - } - - /** - * List of import policies applied to this peer, in the order they must be evaluated. The name - * must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. - * @return value or {@code null} for none - */ - public java.util.List getImportPolicies() { - return importPolicies; - } - - /** - * List of import policies applied to this peer, in the order they must be evaluated. The name - * must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. - * @param importPolicies importPolicies or {@code null} for none - */ - public RouterBgpPeer setImportPolicies(java.util.List importPolicies) { - this.importPolicies = importPolicies; - return this; - } - - /** - * Name of the interface the BGP peer is associated with. - * @return value or {@code null} for none - */ - public java.lang.String getInterfaceName() { - return interfaceName; - } - - /** - * Name of the interface the BGP peer is associated with. - * @param interfaceName interfaceName or {@code null} for none - */ - public RouterBgpPeer setInterfaceName(java.lang.String interfaceName) { - this.interfaceName = interfaceName; - return this; - } - - /** - * IP address of the interface inside Google Cloud Platform. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * IP address of the interface inside Google Cloud Platform. - * @param ipAddress ipAddress or {@code null} for none - */ - public RouterBgpPeer setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * IPv4 address of the interface inside Google Cloud Platform. - * @return value or {@code null} for none - */ - public java.lang.String getIpv4NexthopAddress() { - return ipv4NexthopAddress; - } - - /** - * IPv4 address of the interface inside Google Cloud Platform. - * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none - */ - public RouterBgpPeer setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { - this.ipv4NexthopAddress = ipv4NexthopAddress; - return this; - } - - /** - * IPv6 address of the interface inside Google Cloud Platform. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6NexthopAddress() { - return ipv6NexthopAddress; - } - - /** - * IPv6 address of the interface inside Google Cloud Platform. - * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none - */ - public RouterBgpPeer setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { - this.ipv6NexthopAddress = ipv6NexthopAddress; - return this; - } - - /** - * Output only. [Output Only] The resource that configures and manages this BGP peer. - - * MANAGED_BY_USER is the default value and can be managed by you or other users - - * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, - * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, - * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is - * created, updated, or deleted. - * @return value or {@code null} for none - */ - public java.lang.String getManagementType() { - return managementType; - } - - /** - * Output only. [Output Only] The resource that configures and manages this BGP peer. - - * MANAGED_BY_USER is the default value and can be managed by you or other users - - * MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, - * specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, - * updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is - * created, updated, or deleted. - * @param managementType managementType or {@code null} for none - */ - public RouterBgpPeer setManagementType(java.lang.String managementType) { - this.managementType = managementType; - return this; - } - - /** - * Present if MD5 authentication is enabled for the peering. Must be the name of one of the - * entries in the Router.md5_authentication_keys. The field must comply with RFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getMd5AuthenticationKeyName() { - return md5AuthenticationKeyName; - } - - /** - * Present if MD5 authentication is enabled for the peering. Must be the name of one of the - * entries in the Router.md5_authentication_keys. The field must comply with RFC1035. - * @param md5AuthenticationKeyName md5AuthenticationKeyName or {@code null} for none - */ - public RouterBgpPeer setMd5AuthenticationKeyName(java.lang.String md5AuthenticationKeyName) { - this.md5AuthenticationKeyName = md5AuthenticationKeyName; - return this; - } - - /** - * Name of this BGP peer. 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 this BGP peer. 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 RouterBgpPeer setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. - * @return value or {@code null} for none - */ - public java.lang.Long getPeerAsn() { - return peerAsn; - } - - /** - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value. - * @param peerAsn peerAsn or {@code null} for none - */ - public RouterBgpPeer setPeerAsn(java.lang.Long peerAsn) { - this.peerAsn = peerAsn; - return this; - } - - /** - * IP address of the BGP interface outside Google Cloud Platform. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpAddress() { - return peerIpAddress; - } - - /** - * IP address of the BGP interface outside Google Cloud Platform. - * @param peerIpAddress peerIpAddress or {@code null} for none - */ - public RouterBgpPeer setPeerIpAddress(java.lang.String peerIpAddress) { - this.peerIpAddress = peerIpAddress; - return this; - } - - /** - * IPv4 address of the BGP interface outside Google Cloud Platform. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpv4NexthopAddress() { - return peerIpv4NexthopAddress; - } - - /** - * IPv4 address of the BGP interface outside Google Cloud Platform. - * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none - */ - public RouterBgpPeer setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { - this.peerIpv4NexthopAddress = peerIpv4NexthopAddress; - return this; - } - - /** - * IPv6 address of the BGP interface outside Google Cloud Platform. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpv6NexthopAddress() { - return peerIpv6NexthopAddress; - } - - /** - * IPv6 address of the BGP interface outside Google Cloud Platform. - * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none - */ - public RouterBgpPeer setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { - this.peerIpv6NexthopAddress = peerIpv6NexthopAddress; - return this; - } - - /** - * URI of the VM instance that is used as third-party router appliances such as Next Gen - * Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones - * contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP - * session. - * @return value or {@code null} for none - */ - public java.lang.String getRouterApplianceInstance() { - return routerApplianceInstance; - } - - /** - * URI of the VM instance that is used as third-party router appliances such as Next Gen - * Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones - * contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP - * session. - * @param routerApplianceInstance routerApplianceInstance or {@code null} for none - */ - public RouterBgpPeer setRouterApplianceInstance(java.lang.String routerApplianceInstance) { - this.routerApplianceInstance = routerApplianceInstance; - return this; - } - - @Override - public RouterBgpPeer set(String fieldName, Object value) { - return (RouterBgpPeer) super.set(fieldName, value); - } - - @Override - public RouterBgpPeer clone() { - return (RouterBgpPeer) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerBfd.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerBfd.java deleted file mode 100644 index c479f22e72b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerBfd.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterBgpPeerBfd. - * - *

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 RouterBgpPeerBfd extends com.google.api.client.json.GenericJson { - - /** - * The minimum interval, in milliseconds, between BFD control packets received from the peer - * router. The actual value is negotiated between the two routers and is equal to the greater of - * this value and the transmit interval of the other router. - * - * If set, this value must be between 1000 and 30000. - * - * The default is 1000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long minReceiveInterval; - - /** - * The minimum interval, in milliseconds, between BFD control packets transmitted to the peer - * router. The actual value is negotiated between the two routers and is equal to the greater of - * this value and the corresponding receive interval of the other router. - * - * If set, this value must be between 1000 and 30000. - * - * The default is 1000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long minTransmitInterval; - - /** - * The number of consecutive BFD packets that must be missed before BFD declares that a peer is - * unavailable. - * - * If set, the value must be a value between 5 and 16. - * - * The default is 5. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long multiplier; - - /** - * The BFD session initialization mode for this BGP peer. - * - * If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to - * PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this - * BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sessionInitializationMode; - - /** - * The minimum interval, in milliseconds, between BFD control packets received from the peer - * router. The actual value is negotiated between the two routers and is equal to the greater of - * this value and the transmit interval of the other router. - * - * If set, this value must be between 1000 and 30000. - * - * The default is 1000. - * @return value or {@code null} for none - */ - public java.lang.Long getMinReceiveInterval() { - return minReceiveInterval; - } - - /** - * The minimum interval, in milliseconds, between BFD control packets received from the peer - * router. The actual value is negotiated between the two routers and is equal to the greater of - * this value and the transmit interval of the other router. - * - * If set, this value must be between 1000 and 30000. - * - * The default is 1000. - * @param minReceiveInterval minReceiveInterval or {@code null} for none - */ - public RouterBgpPeerBfd setMinReceiveInterval(java.lang.Long minReceiveInterval) { - this.minReceiveInterval = minReceiveInterval; - return this; - } - - /** - * The minimum interval, in milliseconds, between BFD control packets transmitted to the peer - * router. The actual value is negotiated between the two routers and is equal to the greater of - * this value and the corresponding receive interval of the other router. - * - * If set, this value must be between 1000 and 30000. - * - * The default is 1000. - * @return value or {@code null} for none - */ - public java.lang.Long getMinTransmitInterval() { - return minTransmitInterval; - } - - /** - * The minimum interval, in milliseconds, between BFD control packets transmitted to the peer - * router. The actual value is negotiated between the two routers and is equal to the greater of - * this value and the corresponding receive interval of the other router. - * - * If set, this value must be between 1000 and 30000. - * - * The default is 1000. - * @param minTransmitInterval minTransmitInterval or {@code null} for none - */ - public RouterBgpPeerBfd setMinTransmitInterval(java.lang.Long minTransmitInterval) { - this.minTransmitInterval = minTransmitInterval; - return this; - } - - /** - * The number of consecutive BFD packets that must be missed before BFD declares that a peer is - * unavailable. - * - * If set, the value must be a value between 5 and 16. - * - * The default is 5. - * @return value or {@code null} for none - */ - public java.lang.Long getMultiplier() { - return multiplier; - } - - /** - * The number of consecutive BFD packets that must be missed before BFD declares that a peer is - * unavailable. - * - * If set, the value must be a value between 5 and 16. - * - * The default is 5. - * @param multiplier multiplier or {@code null} for none - */ - public RouterBgpPeerBfd setMultiplier(java.lang.Long multiplier) { - this.multiplier = multiplier; - return this; - } - - /** - * The BFD session initialization mode for this BGP peer. - * - * If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to - * PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this - * BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. - * @return value or {@code null} for none - */ - public java.lang.String getSessionInitializationMode() { - return sessionInitializationMode; - } - - /** - * The BFD session initialization mode for this BGP peer. - * - * If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to - * PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this - * BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. - * @param sessionInitializationMode sessionInitializationMode or {@code null} for none - */ - public RouterBgpPeerBfd setSessionInitializationMode(java.lang.String sessionInitializationMode) { - this.sessionInitializationMode = sessionInitializationMode; - return this; - } - - @Override - public RouterBgpPeerBfd set(String fieldName, Object value) { - return (RouterBgpPeerBfd) super.set(fieldName, value); - } - - @Override - public RouterBgpPeerBfd clone() { - return (RouterBgpPeerBfd) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerCustomLearnedIpRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerCustomLearnedIpRange.java deleted file mode 100644 index 9503aafc283..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterBgpPeerCustomLearnedIpRange.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterBgpPeerCustomLearnedIpRange. - * - *

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 RouterBgpPeerCustomLearnedIpRange extends com.google.api.client.json.GenericJson { - - /** - * The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP - * address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP - * address range, and, for IPv6, `/128`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String range; - - /** - * The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP - * address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP - * address range, and, for IPv6, `/128`. - * @return value or {@code null} for none - */ - public java.lang.String getRange() { - return range; - } - - /** - * The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP - * address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP - * address range, and, for IPv6, `/128`. - * @param range range or {@code null} for none - */ - public RouterBgpPeerCustomLearnedIpRange setRange(java.lang.String range) { - this.range = range; - return this; - } - - @Override - public RouterBgpPeerCustomLearnedIpRange set(String fieldName, Object value) { - return (RouterBgpPeerCustomLearnedIpRange) super.set(fieldName, value); - } - - @Override - public RouterBgpPeerCustomLearnedIpRange clone() { - return (RouterBgpPeerCustomLearnedIpRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterInterface.java deleted file mode 100644 index 5fe204a3465..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterInterface.java +++ /dev/null @@ -1,351 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterInterface. - * - *

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 RouterInterface extends com.google.api.client.json.GenericJson { - - /** - * IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP - * range must be in theRFC3927 link-local IP address space. The value must be a CIDR-formatted - * string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents - * the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value - * must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or - * less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the - * router's VPC, this IPv6 prefix will be reserved exclusively for this connection and - * cannot be used for any other purpose. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipRange; - - /** - * IP version of this interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipVersion; - - /** - * URI of the linked Interconnect attachment. It must be in the same region as the router. Each - * interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, - * or a subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkedInterconnectAttachment; - - /** - * URI of the linked VPN tunnel, which must be in the same region as the router. Each interface - * can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a - * subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkedVpnTunnel; - - /** - * Output only. [Output Only] The resource that configures and manages this interface. - - * MANAGED_BY_USER is the default value and can be managed directly by users. - - * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, - * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, - * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is - * created, updated, or deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String managementType; - - /** - * Name of this interface entry. 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; - - /** - * The regional private internal IP address that is used to establish BGP sessions to a VM - * instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual - * Router, or an SD-WAN VM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String privateIpAddress; - - /** - * Name of the interface that will be redundant with the current interface you are creating. The - * redundantInterface must belong to the same Cloud Router as the interface here. To establish the - * BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be - * attached to two separate interfaces that are redundant with each other. The redundant_interface - * must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface - * 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 redundantInterface; - - /** - * The URI of the subnetwork resource that this interface belongs to, which must be in the same - * region as the Cloud Router. When you establish a BGP session to a VM instance using this - * interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP - * range must be in theRFC3927 link-local IP address space. The value must be a CIDR-formatted - * string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents - * the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value - * must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or - * less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the - * router's VPC, this IPv6 prefix will be reserved exclusively for this connection and - * cannot be used for any other purpose. - * @return value or {@code null} for none - */ - public java.lang.String getIpRange() { - return ipRange; - } - - /** - * IP address and range of the interface. - For Internet Protocol version 4 (IPv4), the IP - * range must be in theRFC3927 link-local IP address space. The value must be a CIDR-formatted - * string, for example, 169.254.0.1/30. Note: Do not truncate the IP address, as it represents - * the IP address of the interface. - For Internet Protocol version 6 (IPv6), the value - * must be a unique local address (ULA) range from fdff:1::/64 with a mask length of 126 or - * less. This value should be a CIDR-formatted string, for example, fdff:1::1/112. Within the - * router's VPC, this IPv6 prefix will be reserved exclusively for this connection and - * cannot be used for any other purpose. - * @param ipRange ipRange or {@code null} for none - */ - public RouterInterface setIpRange(java.lang.String ipRange) { - this.ipRange = ipRange; - return this; - } - - /** - * IP version of this interface. - * @return value or {@code null} for none - */ - public java.lang.String getIpVersion() { - return ipVersion; - } - - /** - * IP version of this interface. - * @param ipVersion ipVersion or {@code null} for none - */ - public RouterInterface setIpVersion(java.lang.String ipVersion) { - this.ipVersion = ipVersion; - return this; - } - - /** - * URI of the linked Interconnect attachment. It must be in the same region as the router. Each - * interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, - * or a subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getLinkedInterconnectAttachment() { - return linkedInterconnectAttachment; - } - - /** - * URI of the linked Interconnect attachment. It must be in the same region as the router. Each - * interface can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, - * or a subnetwork. - * @param linkedInterconnectAttachment linkedInterconnectAttachment or {@code null} for none - */ - public RouterInterface setLinkedInterconnectAttachment(java.lang.String linkedInterconnectAttachment) { - this.linkedInterconnectAttachment = linkedInterconnectAttachment; - return this; - } - - /** - * URI of the linked VPN tunnel, which must be in the same region as the router. Each interface - * can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a - * subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getLinkedVpnTunnel() { - return linkedVpnTunnel; - } - - /** - * URI of the linked VPN tunnel, which must be in the same region as the router. Each interface - * can have one linked resource, which can be a VPN tunnel, an Interconnect attachment, or a - * subnetwork. - * @param linkedVpnTunnel linkedVpnTunnel or {@code null} for none - */ - public RouterInterface setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { - this.linkedVpnTunnel = linkedVpnTunnel; - return this; - } - - /** - * Output only. [Output Only] The resource that configures and manages this interface. - - * MANAGED_BY_USER is the default value and can be managed directly by users. - - * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, - * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, - * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is - * created, updated, or deleted. - * @return value or {@code null} for none - */ - public java.lang.String getManagementType() { - return managementType; - } - - /** - * Output only. [Output Only] The resource that configures and manages this interface. - - * MANAGED_BY_USER is the default value and can be managed directly by users. - - * MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud Interconnect, - * specifically, by an InterconnectAttachment of type PARTNER. Google automatically creates, - * updates, and deletes this type of interface when the PARTNER InterconnectAttachment is - * created, updated, or deleted. - * @param managementType managementType or {@code null} for none - */ - public RouterInterface setManagementType(java.lang.String managementType) { - this.managementType = managementType; - return this; - } - - /** - * Name of this interface entry. 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 this interface entry. 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 RouterInterface setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The regional private internal IP address that is used to establish BGP sessions to a VM - * instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual - * Router, or an SD-WAN VM. - * @return value or {@code null} for none - */ - public java.lang.String getPrivateIpAddress() { - return privateIpAddress; - } - - /** - * The regional private internal IP address that is used to establish BGP sessions to a VM - * instance acting as a third-party Router Appliance, such as a Next Gen Firewall, a Virtual - * Router, or an SD-WAN VM. - * @param privateIpAddress privateIpAddress or {@code null} for none - */ - public RouterInterface setPrivateIpAddress(java.lang.String privateIpAddress) { - this.privateIpAddress = privateIpAddress; - return this; - } - - /** - * Name of the interface that will be redundant with the current interface you are creating. The - * redundantInterface must belong to the same Cloud Router as the interface here. To establish the - * BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be - * attached to two separate interfaces that are redundant with each other. The redundant_interface - * must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface - * 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 getRedundantInterface() { - return redundantInterface; - } - - /** - * Name of the interface that will be redundant with the current interface you are creating. The - * redundantInterface must belong to the same Cloud Router as the interface here. To establish the - * BGP session to a Router Appliance VM, you must create two BGP peers. The two BGP peers must be - * attached to two separate interfaces that are redundant with each other. The redundant_interface - * must be 1-63 characters long, and comply withRFC1035. Specifically, the redundant_interface - * 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 redundantInterface redundantInterface or {@code null} for none - */ - public RouterInterface setRedundantInterface(java.lang.String redundantInterface) { - this.redundantInterface = redundantInterface; - return this; - } - - /** - * The URI of the subnetwork resource that this interface belongs to, which must be in the same - * region as the Cloud Router. When you establish a BGP session to a VM instance using this - * interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * The URI of the subnetwork resource that this interface belongs to, which must be in the same - * region as the Cloud Router. When you establish a BGP session to a VM instance using this - * interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. - * @param subnetwork subnetwork or {@code null} for none - */ - public RouterInterface setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - @Override - public RouterInterface set(String fieldName, Object value) { - return (RouterInterface) super.set(fieldName, value); - } - - @Override - public RouterInterface clone() { - return (RouterInterface) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterList.java deleted file mode 100644 index 8c3fce6b101..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Router resources. - * - *

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 RouterList extends com.google.api.client.json.GenericJson { - - /** - * [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 Router 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 Router 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(Router.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 RouterList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Router resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Router resources. - * @param items items or {@code null} for none - */ - public RouterList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. - * @param kind kind or {@code null} for none - */ - public RouterList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RouterList 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 RouterList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 RouterList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RouterList set(String fieldName, Object value) { - return (RouterList) super.set(fieldName, value); - } - - @Override - public RouterList clone() { - return (RouterList) 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 RouterListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RouterMd5AuthenticationKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterMd5AuthenticationKey.java deleted file mode 100644 index 2783e9d6817..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterMd5AuthenticationKey.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterMd5AuthenticationKey. - * - *

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 RouterMd5AuthenticationKey extends com.google.api.client.json.GenericJson { - - /** - * [Input only] Value of the key. - * - * For patch and update calls, it can be skipped to copy the value from the previous - * configuration. This is allowed if the key with the same name existed before the operation. - * Maximum length is 80 characters. Can only contain printable ASCII characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Name used to identify the key. - * - * Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply - * withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [Input only] Value of the key. - * - * For patch and update calls, it can be skipped to copy the value from the previous - * configuration. This is allowed if the key with the same name existed before the operation. - * Maximum length is 80 characters. Can only contain printable ASCII characters. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * [Input only] Value of the key. - * - * For patch and update calls, it can be skipped to copy the value from the previous - * configuration. This is allowed if the key with the same name existed before the operation. - * Maximum length is 80 characters. Can only contain printable ASCII characters. - * @param key key or {@code null} for none - */ - public RouterMd5AuthenticationKey setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Name used to identify the key. - * - * Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply - * withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name used to identify the key. - * - * Must be unique within a router. Must be referenced by exactly one bgpPeer. Must comply - * withRFC1035. - * @param name name or {@code null} for none - */ - public RouterMd5AuthenticationKey setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public RouterMd5AuthenticationKey set(String fieldName, Object value) { - return (RouterMd5AuthenticationKey) super.set(fieldName, value); - } - - @Override - public RouterMd5AuthenticationKey clone() { - return (RouterMd5AuthenticationKey) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNat.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNat.java deleted file mode 100644 index 119f37b39df..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNat.java +++ /dev/null @@ -1,738 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet - * without external IP addresses. It specifies a list of subnetworks (and the ranges within) that - * want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP - * would auto-allocate ephemeral IPs if no external IPs are provided. - * - *

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 RouterNat extends com.google.api.client.json.GenericJson { - - /** - * The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, - * STANDARD. If not specified, then the current project-level default tier is used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoNetworkTier; - - /** - * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs - * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List drainNatIps; - - /** - * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. - * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the - * effective timeout is 30s or 120s. The field is output only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer effectiveTcpTimeWaitTimeoutSec; - - /** - * Enable Dynamic Port Allocation. - * - * If not specified, it is disabled by default. - * - * If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - - * enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm - * must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a - * minimum of 32 ports will be allocated to a VM from this NAT config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableDynamicPortAllocation; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableEndpointIndependentMapping; - - /** - * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will - * be equivalent to include ENDPOINT_TYPE_VM - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List endpointTypes; - - /** - * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer icmpIdleTimeoutSec; - - /** - * Configure logging on this NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RouterNatLogConfig logConfig; - - /** - * Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is - * enabled. - * - * If Dynamic Port Allocation is not enabled, this field has no effect. - * - * If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two - * greater than minPortsPerVm, or 64 if minPortsPerVm is not set. - * - * If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will - * be allocated to a VM from this NAT config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPortsPerVm; - - /** - * Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of - * ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the - * value of this field is 50, at least 64 ports are allocated to a VM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minPortsPerVm; - - /** - * Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used - * only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nat64Subnetworks; - - /** - * Specify the NatIpAllocateOption, which can take one of the following values: - - * MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough - * specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated - * by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then - * nat_ip should be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natIpAllocateOption; - - /** - * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid - * static external IP addresses assigned to the project. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natIps; - - /** - * A list of rules associated with this NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rules; - - /** - * Specify the Nat option, which can take one of the following values: - - * ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - * - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork - * are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat - * (specified in the field subnetwork below) - * - * The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains - * ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any - * Router for this network in this region. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSubnetworkIpRangesToNat; - - /** - * Specify the Nat option for NAT64, which can take one of the following values: - - * ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - - * LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field - * nat64_subnetwork below) - * - * The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains - * NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for - * any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 - * only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSubnetworkIpRangesToNat64; - - /** - * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used - * only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworks; - - /** - * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer tcpEstablishedIdleTimeoutSec; - - /** - * Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not - * set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer tcpTimeWaitTimeoutSec; - - /** - * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer tcpTransitoryIdleTimeoutSec; - - /** - * Indicates whether this NAT is used for public or private IP translation. If unspecified, it - * defaults to PUBLIC. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer udpIdleTimeoutSec; - - /** - * The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, - * STANDARD. If not specified, then the current project-level default tier is used. - * @return value or {@code null} for none - */ - public java.lang.String getAutoNetworkTier() { - return autoNetworkTier; - } - - /** - * The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, - * STANDARD. If not specified, then the current project-level default tier is used. - * @param autoNetworkTier autoNetworkTier or {@code null} for none - */ - public RouterNat setAutoNetworkTier(java.lang.String autoNetworkTier) { - this.autoNetworkTier = autoNetworkTier; - return this; - } - - /** - * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs - * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. - * @return value or {@code null} for none - */ - public java.util.List getDrainNatIps() { - return drainNatIps; - } - - /** - * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs - * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. - * @param drainNatIps drainNatIps or {@code null} for none - */ - public RouterNat setDrainNatIps(java.util.List drainNatIps) { - this.drainNatIps = drainNatIps; - return this; - } - - /** - * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. - * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the - * effective timeout is 30s or 120s. The field is output only. - * @return value or {@code null} for none - */ - public java.lang.Integer getEffectiveTcpTimeWaitTimeoutSec() { - return effectiveTcpTimeWaitTimeoutSec; - } - - /** - * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. - * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the - * effective timeout is 30s or 120s. The field is output only. - * @param effectiveTcpTimeWaitTimeoutSec effectiveTcpTimeWaitTimeoutSec or {@code null} for none - */ - public RouterNat setEffectiveTcpTimeWaitTimeoutSec(java.lang.Integer effectiveTcpTimeWaitTimeoutSec) { - this.effectiveTcpTimeWaitTimeoutSec = effectiveTcpTimeWaitTimeoutSec; - return this; - } - - /** - * Enable Dynamic Port Allocation. - * - * If not specified, it is disabled by default. - * - * If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - - * enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm - * must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a - * minimum of 32 ports will be allocated to a VM from this NAT config. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableDynamicPortAllocation() { - return enableDynamicPortAllocation; - } - - /** - * Enable Dynamic Port Allocation. - * - * If not specified, it is disabled by default. - * - * If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - - * enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm - * must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a - * minimum of 32 ports will be allocated to a VM from this NAT config. - * @param enableDynamicPortAllocation enableDynamicPortAllocation or {@code null} for none - */ - public RouterNat setEnableDynamicPortAllocation(java.lang.Boolean enableDynamicPortAllocation) { - this.enableDynamicPortAllocation = enableDynamicPortAllocation; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableEndpointIndependentMapping() { - return enableEndpointIndependentMapping; - } - - /** - * @param enableEndpointIndependentMapping enableEndpointIndependentMapping or {@code null} for none - */ - public RouterNat setEnableEndpointIndependentMapping(java.lang.Boolean enableEndpointIndependentMapping) { - this.enableEndpointIndependentMapping = enableEndpointIndependentMapping; - return this; - } - - /** - * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will - * be equivalent to include ENDPOINT_TYPE_VM - * @return value or {@code null} for none - */ - public java.util.List getEndpointTypes() { - return endpointTypes; - } - - /** - * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will - * be equivalent to include ENDPOINT_TYPE_VM - * @param endpointTypes endpointTypes or {@code null} for none - */ - public RouterNat setEndpointTypes(java.util.List endpointTypes) { - this.endpointTypes = endpointTypes; - return this; - } - - /** - * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. - * @return value or {@code null} for none - */ - public java.lang.Integer getIcmpIdleTimeoutSec() { - return icmpIdleTimeoutSec; - } - - /** - * Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. - * @param icmpIdleTimeoutSec icmpIdleTimeoutSec or {@code null} for none - */ - public RouterNat setIcmpIdleTimeoutSec(java.lang.Integer icmpIdleTimeoutSec) { - this.icmpIdleTimeoutSec = icmpIdleTimeoutSec; - return this; - } - - /** - * Configure logging on this NAT. - * @return value or {@code null} for none - */ - public RouterNatLogConfig getLogConfig() { - return logConfig; - } - - /** - * Configure logging on this NAT. - * @param logConfig logConfig or {@code null} for none - */ - public RouterNat setLogConfig(RouterNatLogConfig logConfig) { - this.logConfig = logConfig; - return this; - } - - /** - * Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is - * enabled. - * - * If Dynamic Port Allocation is not enabled, this field has no effect. - * - * If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two - * greater than minPortsPerVm, or 64 if minPortsPerVm is not set. - * - * If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will - * be allocated to a VM from this NAT config. - * @return value or {@code null} for none - */ - public java.lang.Integer getMaxPortsPerVm() { - return maxPortsPerVm; - } - - /** - * Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is - * enabled. - * - * If Dynamic Port Allocation is not enabled, this field has no effect. - * - * If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two - * greater than minPortsPerVm, or 64 if minPortsPerVm is not set. - * - * If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will - * be allocated to a VM from this NAT config. - * @param maxPortsPerVm maxPortsPerVm or {@code null} for none - */ - public RouterNat setMaxPortsPerVm(java.lang.Integer maxPortsPerVm) { - this.maxPortsPerVm = maxPortsPerVm; - return this; - } - - /** - * Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of - * ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the - * value of this field is 50, at least 64 ports are allocated to a VM. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinPortsPerVm() { - return minPortsPerVm; - } - - /** - * Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of - * ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the - * value of this field is 50, at least 64 ports are allocated to a VM. - * @param minPortsPerVm minPortsPerVm or {@code null} for none - */ - public RouterNat setMinPortsPerVm(java.lang.Integer minPortsPerVm) { - this.minPortsPerVm = minPortsPerVm; - return this; - } - - /** - * Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035. - * @param name name or {@code null} for none - */ - public RouterNat setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used - * only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. - * @return value or {@code null} for none - */ - public java.util.List getNat64Subnetworks() { - return nat64Subnetworks; - } - - /** - * List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used - * only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above. - * @param nat64Subnetworks nat64Subnetworks or {@code null} for none - */ - public RouterNat setNat64Subnetworks(java.util.List nat64Subnetworks) { - this.nat64Subnetworks = nat64Subnetworks; - return this; - } - - /** - * Specify the NatIpAllocateOption, which can take one of the following values: - - * MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough - * specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated - * by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then - * nat_ip should be empty. - * @return value or {@code null} for none - */ - public java.lang.String getNatIpAllocateOption() { - return natIpAllocateOption; - } - - /** - * Specify the NatIpAllocateOption, which can take one of the following values: - - * MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough - * specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated - * by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then - * nat_ip should be empty. - * @param natIpAllocateOption natIpAllocateOption or {@code null} for none - */ - public RouterNat setNatIpAllocateOption(java.lang.String natIpAllocateOption) { - this.natIpAllocateOption = natIpAllocateOption; - return this; - } - - /** - * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid - * static external IP addresses assigned to the project. - * @return value or {@code null} for none - */ - public java.util.List getNatIps() { - return natIps; - } - - /** - * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid - * static external IP addresses assigned to the project. - * @param natIps natIps or {@code null} for none - */ - public RouterNat setNatIps(java.util.List natIps) { - this.natIps = natIps; - return this; - } - - /** - * A list of rules associated with this NAT. - * @return value or {@code null} for none - */ - public java.util.List getRules() { - return rules; - } - - /** - * A list of rules associated with this NAT. - * @param rules rules or {@code null} for none - */ - public RouterNat setRules(java.util.List rules) { - this.rules = rules; - return this; - } - - /** - * Specify the Nat option, which can take one of the following values: - - * ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - * - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork - * are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat - * (specified in the field subnetwork below) - * - * The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains - * ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any - * Router for this network in this region. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSubnetworkIpRangesToNat() { - return sourceSubnetworkIpRangesToNat; - } - - /** - * Specify the Nat option, which can take one of the following values: - - * ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - * - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork - * are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat - * (specified in the field subnetwork below) - * - * The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains - * ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any - * Router for this network in this region. - * @param sourceSubnetworkIpRangesToNat sourceSubnetworkIpRangesToNat or {@code null} for none - */ - public RouterNat setSourceSubnetworkIpRangesToNat(java.lang.String sourceSubnetworkIpRangesToNat) { - this.sourceSubnetworkIpRangesToNat = sourceSubnetworkIpRangesToNat; - return this; - } - - /** - * Specify the Nat option for NAT64, which can take one of the following values: - - * ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - - * LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field - * nat64_subnetwork below) - * - * The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains - * NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for - * any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 - * only. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSubnetworkIpRangesToNat64() { - return sourceSubnetworkIpRangesToNat64; - } - - /** - * Specify the Nat option for NAT64, which can take one of the following values: - - * ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - - * LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field - * nat64_subnetwork below) - * - * The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains - * NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for - * any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 - * only. - * @param sourceSubnetworkIpRangesToNat64 sourceSubnetworkIpRangesToNat64 or {@code null} for none - */ - public RouterNat setSourceSubnetworkIpRangesToNat64(java.lang.String sourceSubnetworkIpRangesToNat64) { - this.sourceSubnetworkIpRangesToNat64 = sourceSubnetworkIpRangesToNat64; - return this; - } - - /** - * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used - * only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworks() { - return subnetworks; - } - - /** - * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used - * only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. - * @param subnetworks subnetworks or {@code null} for none - */ - public RouterNat setSubnetworks(java.util.List subnetworks) { - this.subnetworks = subnetworks; - return this; - } - - /** - * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. - * @return value or {@code null} for none - */ - public java.lang.Integer getTcpEstablishedIdleTimeoutSec() { - return tcpEstablishedIdleTimeoutSec; - } - - /** - * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. - * @param tcpEstablishedIdleTimeoutSec tcpEstablishedIdleTimeoutSec or {@code null} for none - */ - public RouterNat setTcpEstablishedIdleTimeoutSec(java.lang.Integer tcpEstablishedIdleTimeoutSec) { - this.tcpEstablishedIdleTimeoutSec = tcpEstablishedIdleTimeoutSec; - return this; - } - - /** - * Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not - * set. - * @return value or {@code null} for none - */ - public java.lang.Integer getTcpTimeWaitTimeoutSec() { - return tcpTimeWaitTimeoutSec; - } - - /** - * Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not - * set. - * @param tcpTimeWaitTimeoutSec tcpTimeWaitTimeoutSec or {@code null} for none - */ - public RouterNat setTcpTimeWaitTimeoutSec(java.lang.Integer tcpTimeWaitTimeoutSec) { - this.tcpTimeWaitTimeoutSec = tcpTimeWaitTimeoutSec; - return this; - } - - /** - * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. - * @return value or {@code null} for none - */ - public java.lang.Integer getTcpTransitoryIdleTimeoutSec() { - return tcpTransitoryIdleTimeoutSec; - } - - /** - * Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set. - * @param tcpTransitoryIdleTimeoutSec tcpTransitoryIdleTimeoutSec or {@code null} for none - */ - public RouterNat setTcpTransitoryIdleTimeoutSec(java.lang.Integer tcpTransitoryIdleTimeoutSec) { - this.tcpTransitoryIdleTimeoutSec = tcpTransitoryIdleTimeoutSec; - return this; - } - - /** - * Indicates whether this NAT is used for public or private IP translation. If unspecified, it - * defaults to PUBLIC. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Indicates whether this NAT is used for public or private IP translation. If unspecified, it - * defaults to PUBLIC. - * @param type type or {@code null} for none - */ - public RouterNat setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. - * @return value or {@code null} for none - */ - public java.lang.Integer getUdpIdleTimeoutSec() { - return udpIdleTimeoutSec; - } - - /** - * Timeout (in seconds) for UDP connections. Defaults to 30s if not set. - * @param udpIdleTimeoutSec udpIdleTimeoutSec or {@code null} for none - */ - public RouterNat setUdpIdleTimeoutSec(java.lang.Integer udpIdleTimeoutSec) { - this.udpIdleTimeoutSec = udpIdleTimeoutSec; - return this; - } - - @Override - public RouterNat set(String fieldName, Object value) { - return (RouterNat) super.set(fieldName, value); - } - - @Override - public RouterNat clone() { - return (RouterNat) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatLogConfig.java deleted file mode 100644 index a20a5f307c0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatLogConfig.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration of logging on a NAT. - * - *

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 RouterNatLogConfig extends com.google.api.client.json.GenericJson { - - /** - * Indicates whether or not to export logs. This is false by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - - /** - * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all - * connections handled by this NAT. This option can take one of the following values: - - * ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only - * for successful connections. - ALL: Export logs for all connections, successful and - * unsuccessful. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** - * Indicates whether or not to export logs. This is false by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * Indicates whether or not to export logs. This is false by default. - * @param enable enable or {@code null} for none - */ - public RouterNatLogConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - - /** - * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all - * connections handled by this NAT. This option can take one of the following values: - - * ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only - * for successful connections. - ALL: Export logs for all connections, successful and - * unsuccessful. - * @return value or {@code null} for none - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all - * connections handled by this NAT. This option can take one of the following values: - - * ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only - * for successful connections. - ALL: Export logs for all connections, successful and - * unsuccessful. - * @param filter filter or {@code null} for none - */ - public RouterNatLogConfig setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - @Override - public RouterNatLogConfig set(String fieldName, Object value) { - return (RouterNatLogConfig) super.set(fieldName, value); - } - - @Override - public RouterNatLogConfig clone() { - return (RouterNatLogConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRule.java deleted file mode 100644 index 2a66a6c515d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRule.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterNatRule. - * - *

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 RouterNatRule extends com.google.api.client.json.GenericJson { - - /** - * The action to be enforced for traffic that matches this rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RouterNatRuleAction action; - - /** - * An optional description of this rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * CEL expression that specifies the match condition that egress traffic from a VM is evaluated - * against. If it evaluates to true, the corresponding `action` is enforced. - * - * The following examples are valid match expressions for public NAT: - * - * `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` - * - * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` - * - * The following example is a valid match expression for private NAT: - * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- - * project/locations/global/hubs/hub-1'` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String match; - - /** - * An integer uniquely identifying a rule in the list. The rule number must be a positive value - * between 0 and 65000, and must be unique among rules within a NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long ruleNumber; - - /** - * The action to be enforced for traffic that matches this rule. - * @return value or {@code null} for none - */ - public RouterNatRuleAction getAction() { - return action; - } - - /** - * The action to be enforced for traffic that matches this rule. - * @param action action or {@code null} for none - */ - public RouterNatRule setAction(RouterNatRuleAction action) { - this.action = action; - return this; - } - - /** - * An optional description of this rule. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this rule. - * @param description description or {@code null} for none - */ - public RouterNatRule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * CEL expression that specifies the match condition that egress traffic from a VM is evaluated - * against. If it evaluates to true, the corresponding `action` is enforced. - * - * The following examples are valid match expressions for public NAT: - * - * `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` - * - * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` - * - * The following example is a valid match expression for private NAT: - * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- - * project/locations/global/hubs/hub-1'` - * @return value or {@code null} for none - */ - public java.lang.String getMatch() { - return match; - } - - /** - * CEL expression that specifies the match condition that egress traffic from a VM is evaluated - * against. If it evaluates to true, the corresponding `action` is enforced. - * - * The following examples are valid match expressions for public NAT: - * - * `inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')` - * - * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` - * - * The following example is a valid match expression for private NAT: - * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- - * project/locations/global/hubs/hub-1'` - * @param match match or {@code null} for none - */ - public RouterNatRule setMatch(java.lang.String match) { - this.match = match; - return this; - } - - /** - * An integer uniquely identifying a rule in the list. The rule number must be a positive value - * between 0 and 65000, and must be unique among rules within a NAT. - * @return value or {@code null} for none - */ - public java.lang.Long getRuleNumber() { - return ruleNumber; - } - - /** - * An integer uniquely identifying a rule in the list. The rule number must be a positive value - * between 0 and 65000, and must be unique among rules within a NAT. - * @param ruleNumber ruleNumber or {@code null} for none - */ - public RouterNatRule setRuleNumber(java.lang.Long ruleNumber) { - this.ruleNumber = ruleNumber; - return this; - } - - @Override - public RouterNatRule set(String fieldName, Object value) { - return (RouterNatRule) super.set(fieldName, value); - } - - @Override - public RouterNatRule clone() { - return (RouterNatRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRuleAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRuleAction.java deleted file mode 100644 index 9c7ea053890..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatRuleAction.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterNatRuleAction. - * - *

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 RouterNatRuleAction extends com.google.api.client.json.GenericJson { - - /** - * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid - * static external IP addresses assigned to the project. This field is used for public NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceNatActiveIps; - - /** - * A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks - * must have purpose set to PRIVATE_NAT. This field is used for private NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceNatActiveRanges; - - /** - * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs - * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule - * only. This field is used for public NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceNatDrainIps; - - /** - * A list of URLs of subnetworks representing source ranges to be drained. This is only supported - * on patch/update, and these subnetworks must have previously been used as active ranges in this - * NAT Rule. This field is used for private NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceNatDrainRanges; - - /** - * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid - * static external IP addresses assigned to the project. This field is used for public NAT. - * @return value or {@code null} for none - */ - public java.util.List getSourceNatActiveIps() { - return sourceNatActiveIps; - } - - /** - * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid - * static external IP addresses assigned to the project. This field is used for public NAT. - * @param sourceNatActiveIps sourceNatActiveIps or {@code null} for none - */ - public RouterNatRuleAction setSourceNatActiveIps(java.util.List sourceNatActiveIps) { - this.sourceNatActiveIps = sourceNatActiveIps; - return this; - } - - /** - * A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks - * must have purpose set to PRIVATE_NAT. This field is used for private NAT. - * @return value or {@code null} for none - */ - public java.util.List getSourceNatActiveRanges() { - return sourceNatActiveRanges; - } - - /** - * A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks - * must have purpose set to PRIVATE_NAT. This field is used for private NAT. - * @param sourceNatActiveRanges sourceNatActiveRanges or {@code null} for none - */ - public RouterNatRuleAction setSourceNatActiveRanges(java.util.List sourceNatActiveRanges) { - this.sourceNatActiveRanges = sourceNatActiveRanges; - return this; - } - - /** - * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs - * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule - * only. This field is used for public NAT. - * @return value or {@code null} for none - */ - public java.util.List getSourceNatDrainIps() { - return sourceNatDrainIps; - } - - /** - * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs - * that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule - * only. This field is used for public NAT. - * @param sourceNatDrainIps sourceNatDrainIps or {@code null} for none - */ - public RouterNatRuleAction setSourceNatDrainIps(java.util.List sourceNatDrainIps) { - this.sourceNatDrainIps = sourceNatDrainIps; - return this; - } - - /** - * A list of URLs of subnetworks representing source ranges to be drained. This is only supported - * on patch/update, and these subnetworks must have previously been used as active ranges in this - * NAT Rule. This field is used for private NAT. - * @return value or {@code null} for none - */ - public java.util.List getSourceNatDrainRanges() { - return sourceNatDrainRanges; - } - - /** - * A list of URLs of subnetworks representing source ranges to be drained. This is only supported - * on patch/update, and these subnetworks must have previously been used as active ranges in this - * NAT Rule. This field is used for private NAT. - * @param sourceNatDrainRanges sourceNatDrainRanges or {@code null} for none - */ - public RouterNatRuleAction setSourceNatDrainRanges(java.util.List sourceNatDrainRanges) { - this.sourceNatDrainRanges = sourceNatDrainRanges; - return this; - } - - @Override - public RouterNatRuleAction set(String fieldName, Object value) { - return (RouterNatRuleAction) super.set(fieldName, value); - } - - @Override - public RouterNatRuleAction clone() { - return (RouterNatRuleAction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat.java deleted file mode 100644 index 0d7e1ecd4f5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Defines the IP ranges that want to use NAT for a subnetwork. - * - *

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 RouterNatSubnetworkToNat extends com.google.api.client.json.GenericJson { - - /** - * URL for the subnetwork resource that will use NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be - * populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in - * source_ip_ranges_to_nat. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List secondaryIpRangeNames; - - /** - * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid - * except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: - * ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sourceIpRangesToNat; - - /** - * URL for the subnetwork resource that will use NAT. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * URL for the subnetwork resource that will use NAT. - * @param name name or {@code null} for none - */ - public RouterNatSubnetworkToNat setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be - * populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in - * source_ip_ranges_to_nat. - * @return value or {@code null} for none - */ - public java.util.List getSecondaryIpRangeNames() { - return secondaryIpRangeNames; - } - - /** - * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be - * populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in - * source_ip_ranges_to_nat. - * @param secondaryIpRangeNames secondaryIpRangeNames or {@code null} for none - */ - public RouterNatSubnetworkToNat setSecondaryIpRangeNames(java.util.List secondaryIpRangeNames) { - this.secondaryIpRangeNames = secondaryIpRangeNames; - return this; - } - - /** - * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid - * except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: - * ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] - * @return value or {@code null} for none - */ - public java.util.List getSourceIpRangesToNat() { - return sourceIpRangesToNat; - } - - /** - * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid - * except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: - * ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] - * @param sourceIpRangesToNat sourceIpRangesToNat or {@code null} for none - */ - public RouterNatSubnetworkToNat setSourceIpRangesToNat(java.util.List sourceIpRangesToNat) { - this.sourceIpRangesToNat = sourceIpRangesToNat; - return this; - } - - @Override - public RouterNatSubnetworkToNat set(String fieldName, Object value) { - return (RouterNatSubnetworkToNat) super.set(fieldName, value); - } - - @Override - public RouterNatSubnetworkToNat clone() { - return (RouterNatSubnetworkToNat) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat64.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat64.java deleted file mode 100644 index 8ee91d280d0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterNatSubnetworkToNat64.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Specifies a subnetwork to enable NAT64. - * - *

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 RouterNatSubnetworkToNat64 extends com.google.api.client.json.GenericJson { - - /** - * URL for the subnetwork resource that will use NAT64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * URL for the subnetwork resource that will use NAT64. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * URL for the subnetwork resource that will use NAT64. - * @param name name or {@code null} for none - */ - public RouterNatSubnetworkToNat64 setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public RouterNatSubnetworkToNat64 set(String fieldName, Object value) { - return (RouterNatSubnetworkToNat64) super.set(fieldName, value); - } - - @Override - public RouterNatSubnetworkToNat64 clone() { - return (RouterNatSubnetworkToNat64) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterParams.java deleted file mode 100644 index 479268b7d8b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional router parameters. - * - *

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 RouterParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The - * keys/values to set on the resource should be specified in either ID { : } or Namespaced format - * { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", - * "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: - * * Invalid combinations of ID & namespaced format is not supported. For instance: - * {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For - * instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The - * keys/values to set on the resource should be specified in either ID { : } or Namespaced format - * { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", - * "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: - * * Invalid combinations of ID & namespaced format is not supported. For instance: - * {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For - * instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. The field is allowed for INSERT only. The - * keys/values to set on the resource should be specified in either ID { : } or Namespaced format - * { : }. For example the following are valid inputs: * {"tagKeys/333" : "tagValues/444", - * "tagKeys/123" : "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: - * * Invalid combinations of ID & namespaced format is not supported. For instance: - * {"123/environment" : "tagValues/444"} is invalid. * Inconsistent format is not supported. For - * instance: {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public RouterParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public RouterParams set(String fieldName, Object value) { - return (RouterParams) super.set(fieldName, value); - } - - @Override - public RouterParams clone() { - return (RouterParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatus.java deleted file mode 100644 index 935fb310750..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatus.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterStatus. - * - *

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 RouterStatus extends com.google.api.client.json.GenericJson { - - /** - * A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network - * in the same region as this Cloud Router. - * - * Lists all of the best routes per prefix that are programmed into this region's VPC data plane. - * - * When global dynamic routing mode is turned on in the VPC network, this list can include cross- - * region dynamic routes from Cloud Routers in other regions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bestRoutes; - - static { - // hack to force ProGuard to consider Route 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(Route.class); - } - - /** - * A list of the best BGP routes learned by this Cloud Router. - * - * It is possible that routes listed might not be programmed into the data plane, if the Google - * Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud - * Router. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bestRoutesForRouter; - - static { - // hack to force ProGuard to consider Route 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(Route.class); - } - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bgpPeerStatus; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natStatus; - - /** - * URI of the ncc_gateway to which this router associated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nccGateway; - - /** - * URI of the network to which this router belongs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network - * in the same region as this Cloud Router. - * - * Lists all of the best routes per prefix that are programmed into this region's VPC data plane. - * - * When global dynamic routing mode is turned on in the VPC network, this list can include cross- - * region dynamic routes from Cloud Routers in other regions. - * @return value or {@code null} for none - */ - public java.util.List getBestRoutes() { - return bestRoutes; - } - - /** - * A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network - * in the same region as this Cloud Router. - * - * Lists all of the best routes per prefix that are programmed into this region's VPC data plane. - * - * When global dynamic routing mode is turned on in the VPC network, this list can include cross- - * region dynamic routes from Cloud Routers in other regions. - * @param bestRoutes bestRoutes or {@code null} for none - */ - public RouterStatus setBestRoutes(java.util.List bestRoutes) { - this.bestRoutes = bestRoutes; - return this; - } - - /** - * A list of the best BGP routes learned by this Cloud Router. - * - * It is possible that routes listed might not be programmed into the data plane, if the Google - * Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud - * Router. - * @return value or {@code null} for none - */ - public java.util.List getBestRoutesForRouter() { - return bestRoutesForRouter; - } - - /** - * A list of the best BGP routes learned by this Cloud Router. - * - * It is possible that routes listed might not be programmed into the data plane, if the Google - * Cloud control plane finds a more optimal route for a prefix than a route learned by this Cloud - * Router. - * @param bestRoutesForRouter bestRoutesForRouter or {@code null} for none - */ - public RouterStatus setBestRoutesForRouter(java.util.List bestRoutesForRouter) { - this.bestRoutesForRouter = bestRoutesForRouter; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getBgpPeerStatus() { - return bgpPeerStatus; - } - - /** - * @param bgpPeerStatus bgpPeerStatus or {@code null} for none - */ - public RouterStatus setBgpPeerStatus(java.util.List bgpPeerStatus) { - this.bgpPeerStatus = bgpPeerStatus; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getNatStatus() { - return natStatus; - } - - /** - * @param natStatus natStatus or {@code null} for none - */ - public RouterStatus setNatStatus(java.util.List natStatus) { - this.natStatus = natStatus; - return this; - } - - /** - * URI of the ncc_gateway to which this router associated. - * @return value or {@code null} for none - */ - public java.lang.String getNccGateway() { - return nccGateway; - } - - /** - * URI of the ncc_gateway to which this router associated. - * @param nccGateway nccGateway or {@code null} for none - */ - public RouterStatus setNccGateway(java.lang.String nccGateway) { - this.nccGateway = nccGateway; - return this; - } - - /** - * URI of the network to which this router belongs. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * URI of the network to which this router belongs. - * @param network network or {@code null} for none - */ - public RouterStatus setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - @Override - public RouterStatus set(String fieldName, Object value) { - return (RouterStatus) super.set(fieldName, value); - } - - @Override - public RouterStatus clone() { - return (RouterStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusBgpPeerStatus.java deleted file mode 100644 index c5969946b81..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusBgpPeerStatus.java +++ /dev/null @@ -1,543 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterStatusBgpPeerStatus. - * - *

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 RouterStatusBgpPeerStatus extends com.google.api.client.json.GenericJson { - - /** - * Routes that were advertised to the remote BGP peer - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List advertisedRoutes; - - static { - // hack to force ProGuard to consider Route 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(Route.class); - } - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BfdStatus bfdStatus; - - /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableIpv4; - - /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableIpv6; - - /** - * Output only. IP address of the local BGP interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * Output only. IPv4 address of the local BGP interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv4NexthopAddress; - - /** - * Output only. IPv6 address of the local BGP interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6NexthopAddress; - - /** - * Output only. URL of the VPN tunnel that this BGP peer controls. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkedVpnTunnel; - - /** - * Informs whether MD5 authentication is enabled on this BGP peer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean md5AuthEnabled; - - /** - * Output only. Name of this BGP peer. Unique within the Routers resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. Number of routes learned from the remote BGP Peer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long numLearnedRoutes; - - /** - * Output only. IP address of the remote BGP interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpAddress; - - /** - * Output only. IPv4 address of the remote BGP interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpv4NexthopAddress; - - /** - * Output only. IPv6 address of the remote BGP interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIpv6NexthopAddress; - - /** - * Output only. [Output only] URI of the VM instance that is used as third-party router appliances - * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer - * side of the BGP session. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String routerApplianceInstance; - - /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. Status of the BGP peer: {UP, DOWN} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Indicates why particular status was returned. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String statusReason; - - /** - * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 - * minutes, 59 seconds - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String uptime; - - /** - * Output only. Time this session has been up, in seconds. Format: 145 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String uptimeSeconds; - - /** - * Routes that were advertised to the remote BGP peer - * @return value or {@code null} for none - */ - public java.util.List getAdvertisedRoutes() { - return advertisedRoutes; - } - - /** - * Routes that were advertised to the remote BGP peer - * @param advertisedRoutes advertisedRoutes or {@code null} for none - */ - public RouterStatusBgpPeerStatus setAdvertisedRoutes(java.util.List advertisedRoutes) { - this.advertisedRoutes = advertisedRoutes; - return this; - } - - /** - * @return value or {@code null} for none - */ - public BfdStatus getBfdStatus() { - return bfdStatus; - } - - /** - * @param bfdStatus bfdStatus or {@code null} for none - */ - public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { - this.bfdStatus = bfdStatus; - return this; - } - - /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableIpv4() { - return enableIpv4; - } - - /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. - * @param enableIpv4 enableIpv4 or {@code null} for none - */ - public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { - this.enableIpv4 = enableIpv4; - return this; - } - - /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableIpv6() { - return enableIpv6; - } - - /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. - * @param enableIpv6 enableIpv6 or {@code null} for none - */ - public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { - this.enableIpv6 = enableIpv6; - return this; - } - - /** - * Output only. IP address of the local BGP interface. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Output only. IP address of the local BGP interface. - * @param ipAddress ipAddress or {@code null} for none - */ - public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * Output only. IPv4 address of the local BGP interface. - * @return value or {@code null} for none - */ - public java.lang.String getIpv4NexthopAddress() { - return ipv4NexthopAddress; - } - - /** - * Output only. IPv4 address of the local BGP interface. - * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none - */ - public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { - this.ipv4NexthopAddress = ipv4NexthopAddress; - return this; - } - - /** - * Output only. IPv6 address of the local BGP interface. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6NexthopAddress() { - return ipv6NexthopAddress; - } - - /** - * Output only. IPv6 address of the local BGP interface. - * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none - */ - public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { - this.ipv6NexthopAddress = ipv6NexthopAddress; - return this; - } - - /** - * Output only. URL of the VPN tunnel that this BGP peer controls. - * @return value or {@code null} for none - */ - public java.lang.String getLinkedVpnTunnel() { - return linkedVpnTunnel; - } - - /** - * Output only. URL of the VPN tunnel that this BGP peer controls. - * @param linkedVpnTunnel linkedVpnTunnel or {@code null} for none - */ - public RouterStatusBgpPeerStatus setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { - this.linkedVpnTunnel = linkedVpnTunnel; - return this; - } - - /** - * Informs whether MD5 authentication is enabled on this BGP peer. - * @return value or {@code null} for none - */ - public java.lang.Boolean getMd5AuthEnabled() { - return md5AuthEnabled; - } - - /** - * Informs whether MD5 authentication is enabled on this BGP peer. - * @param md5AuthEnabled md5AuthEnabled or {@code null} for none - */ - public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnabled) { - this.md5AuthEnabled = md5AuthEnabled; - return this; - } - - /** - * Output only. Name of this BGP peer. Unique within the Routers resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. Name of this BGP peer. Unique within the Routers resource. - * @param name name or {@code null} for none - */ - public RouterStatusBgpPeerStatus setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. Number of routes learned from the remote BGP Peer. - * @return value or {@code null} for none - */ - public java.lang.Long getNumLearnedRoutes() { - return numLearnedRoutes; - } - - /** - * Output only. Number of routes learned from the remote BGP Peer. - * @param numLearnedRoutes numLearnedRoutes or {@code null} for none - */ - public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRoutes) { - this.numLearnedRoutes = numLearnedRoutes; - return this; - } - - /** - * Output only. IP address of the remote BGP interface. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpAddress() { - return peerIpAddress; - } - - /** - * Output only. IP address of the remote BGP interface. - * @param peerIpAddress peerIpAddress or {@code null} for none - */ - public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { - this.peerIpAddress = peerIpAddress; - return this; - } - - /** - * Output only. IPv4 address of the remote BGP interface. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpv4NexthopAddress() { - return peerIpv4NexthopAddress; - } - - /** - * Output only. IPv4 address of the remote BGP interface. - * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none - */ - public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { - this.peerIpv4NexthopAddress = peerIpv4NexthopAddress; - return this; - } - - /** - * Output only. IPv6 address of the remote BGP interface. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIpv6NexthopAddress() { - return peerIpv6NexthopAddress; - } - - /** - * Output only. IPv6 address of the remote BGP interface. - * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none - */ - public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { - this.peerIpv6NexthopAddress = peerIpv6NexthopAddress; - return this; - } - - /** - * Output only. [Output only] URI of the VM instance that is used as third-party router appliances - * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer - * side of the BGP session. - * @return value or {@code null} for none - */ - public java.lang.String getRouterApplianceInstance() { - return routerApplianceInstance; - } - - /** - * Output only. [Output only] URI of the VM instance that is used as third-party router appliances - * such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance is the peer - * side of the BGP session. - * @param routerApplianceInstance routerApplianceInstance or {@code null} for none - */ - public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String routerApplianceInstance) { - this.routerApplianceInstance = routerApplianceInstance; - return this; - } - - /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. - * @param state state or {@code null} for none - */ - public RouterStatusBgpPeerStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. Status of the BGP peer: {UP, DOWN} - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. Status of the BGP peer: {UP, DOWN} - * @param status status or {@code null} for none - */ - public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Indicates why particular status was returned. - * @return value or {@code null} for none - */ - public java.lang.String getStatusReason() { - return statusReason; - } - - /** - * Indicates why particular status was returned. - * @param statusReason statusReason or {@code null} for none - */ - public RouterStatusBgpPeerStatus setStatusReason(java.lang.String statusReason) { - this.statusReason = statusReason; - return this; - } - - /** - * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 - * minutes, 59 seconds - * @return value or {@code null} for none - */ - public java.lang.String getUptime() { - return uptime; - } - - /** - * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 - * minutes, 59 seconds - * @param uptime uptime or {@code null} for none - */ - public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { - this.uptime = uptime; - return this; - } - - /** - * Output only. Time this session has been up, in seconds. Format: 145 - * @return value or {@code null} for none - */ - public java.lang.String getUptimeSeconds() { - return uptimeSeconds; - } - - /** - * Output only. Time this session has been up, in seconds. Format: 145 - * @param uptimeSeconds uptimeSeconds or {@code null} for none - */ - public RouterStatusBgpPeerStatus setUptimeSeconds(java.lang.String uptimeSeconds) { - this.uptimeSeconds = uptimeSeconds; - return this; - } - - @Override - public RouterStatusBgpPeerStatus set(String fieldName, Object value) { - return (RouterStatusBgpPeerStatus) super.set(fieldName, value); - } - - @Override - public RouterStatusBgpPeerStatus clone() { - return (RouterStatusBgpPeerStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatus.java deleted file mode 100644 index 80bf6bbdd7d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatus.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * 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.preview.model; - -/** - * Status of a NAT contained in this router. - * - *

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 RouterStatusNatStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List autoAllocatedNatIps; - - /** - * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List drainAutoAllocatedNatIps; - - /** - * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List drainUserAllocatedNatIps; - - /** - * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- - * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful - * only when auto-allocation of NAT IPs is *not* used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minExtraNatIpsNeeded; - - /** - * Output only. Unique name of this NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer numVmEndpointsWithNatMappings; - - /** - * Status of rules in this NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ruleStatus; - - /** - * Output only. A list of fully qualified URLs of reserved IP address resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userAllocatedNatIpResources; - - /** - * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like - * "179.12.26.133". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userAllocatedNatIps; - - /** - * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] - * @return value or {@code null} for none - */ - public java.util.List getAutoAllocatedNatIps() { - return autoAllocatedNatIps; - } - - /** - * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] - * @param autoAllocatedNatIps autoAllocatedNatIps or {@code null} for none - */ - public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List autoAllocatedNatIps) { - this.autoAllocatedNatIps = autoAllocatedNatIps; - return this; - } - - /** - * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * @return value or {@code null} for none - */ - public java.util.List getDrainAutoAllocatedNatIps() { - return drainAutoAllocatedNatIps; - } - - /** - * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * @param drainAutoAllocatedNatIps drainAutoAllocatedNatIps or {@code null} for none - */ - public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List drainAutoAllocatedNatIps) { - this.drainAutoAllocatedNatIps = drainAutoAllocatedNatIps; - return this; - } - - /** - * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * @return value or {@code null} for none - */ - public java.util.List getDrainUserAllocatedNatIps() { - return drainUserAllocatedNatIps; - } - - /** - * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * @param drainUserAllocatedNatIps drainUserAllocatedNatIps or {@code null} for none - */ - public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List drainUserAllocatedNatIps) { - this.drainUserAllocatedNatIps = drainUserAllocatedNatIps; - return this; - } - - /** - * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- - * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful - * only when auto-allocation of NAT IPs is *not* used. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinExtraNatIpsNeeded() { - return minExtraNatIpsNeeded; - } - - /** - * Output only. The number of extra IPs to allocate. This will be greater than 0 only if user- - * specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful - * only when auto-allocation of NAT IPs is *not* used. - * @param minExtraNatIpsNeeded minExtraNatIpsNeeded or {@code null} for none - */ - public RouterStatusNatStatus setMinExtraNatIpsNeeded(java.lang.Integer minExtraNatIpsNeeded) { - this.minExtraNatIpsNeeded = minExtraNatIpsNeeded; - return this; - } - - /** - * Output only. Unique name of this NAT. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. Unique name of this NAT. - * @param name name or {@code null} for none - */ - public RouterStatusNatStatus setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. - * @return value or {@code null} for none - */ - public java.lang.Integer getNumVmEndpointsWithNatMappings() { - return numVmEndpointsWithNatMappings; - } - - /** - * Output only. Number of VM endpoints (i.e., Nics) that can use NAT. - * @param numVmEndpointsWithNatMappings numVmEndpointsWithNatMappings or {@code null} for none - */ - public RouterStatusNatStatus setNumVmEndpointsWithNatMappings(java.lang.Integer numVmEndpointsWithNatMappings) { - this.numVmEndpointsWithNatMappings = numVmEndpointsWithNatMappings; - return this; - } - - /** - * Status of rules in this NAT. - * @return value or {@code null} for none - */ - public java.util.List getRuleStatus() { - return ruleStatus; - } - - /** - * Status of rules in this NAT. - * @param ruleStatus ruleStatus or {@code null} for none - */ - public RouterStatusNatStatus setRuleStatus(java.util.List ruleStatus) { - this.ruleStatus = ruleStatus; - return this; - } - - /** - * Output only. A list of fully qualified URLs of reserved IP address resources. - * @return value or {@code null} for none - */ - public java.util.List getUserAllocatedNatIpResources() { - return userAllocatedNatIpResources; - } - - /** - * Output only. A list of fully qualified URLs of reserved IP address resources. - * @param userAllocatedNatIpResources userAllocatedNatIpResources or {@code null} for none - */ - public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List userAllocatedNatIpResources) { - this.userAllocatedNatIpResources = userAllocatedNatIpResources; - return this; - } - - /** - * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like - * "179.12.26.133". - * @return value or {@code null} for none - */ - public java.util.List getUserAllocatedNatIps() { - return userAllocatedNatIps; - } - - /** - * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like - * "179.12.26.133". - * @param userAllocatedNatIps userAllocatedNatIps or {@code null} for none - */ - public RouterStatusNatStatus setUserAllocatedNatIps(java.util.List userAllocatedNatIps) { - this.userAllocatedNatIps = userAllocatedNatIps; - return this; - } - - @Override - public RouterStatusNatStatus set(String fieldName, Object value) { - return (RouterStatusNatStatus) super.set(fieldName, value); - } - - @Override - public RouterStatusNatStatus clone() { - return (RouterStatusNatStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatusNatRuleStatus.java deleted file mode 100644 index 50ccc8b3145..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusNatStatusNatRuleStatus.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * 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.preview.model; - -/** - * Status of a NAT Rule contained in this NAT. - * - *

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 RouterStatusNatStatusNatRuleStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List activeNatIps; - - /** - * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List drainNatIps; - - /** - * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the - * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minExtraIpsNeeded; - - /** - * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer numVmEndpointsWithNatMappings; - - /** - * Output only. Rule number of the rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ruleNumber; - - /** - * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. - * @return value or {@code null} for none - */ - public java.util.List getActiveNatIps() { - return activeNatIps; - } - - /** - * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. - * @param activeNatIps activeNatIps or {@code null} for none - */ - public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List activeNatIps) { - this.activeNatIps = activeNatIps; - return this; - } - - /** - * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * @return value or {@code null} for none - */ - public java.util.List getDrainNatIps() { - return drainNatIps; - } - - /** - * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. - * @param drainNatIps drainNatIps or {@code null} for none - */ - public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List drainNatIps) { - this.drainNatIps = drainNatIps; - return this; - } - - /** - * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the - * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinExtraIpsNeeded() { - return minExtraIpsNeeded; - } - - /** - * Output only. The number of extra IPs to allocate. This will be greater than 0 only if the - * existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. - * @param minExtraIpsNeeded minExtraIpsNeeded or {@code null} for none - */ - public RouterStatusNatStatusNatRuleStatus setMinExtraIpsNeeded(java.lang.Integer minExtraIpsNeeded) { - this.minExtraIpsNeeded = minExtraIpsNeeded; - return this; - } - - /** - * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. - * @return value or {@code null} for none - */ - public java.lang.Integer getNumVmEndpointsWithNatMappings() { - return numVmEndpointsWithNatMappings; - } - - /** - * Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. - * @param numVmEndpointsWithNatMappings numVmEndpointsWithNatMappings or {@code null} for none - */ - public RouterStatusNatStatusNatRuleStatus setNumVmEndpointsWithNatMappings(java.lang.Integer numVmEndpointsWithNatMappings) { - this.numVmEndpointsWithNatMappings = numVmEndpointsWithNatMappings; - return this; - } - - /** - * Output only. Rule number of the rule. - * @return value or {@code null} for none - */ - public java.lang.Integer getRuleNumber() { - return ruleNumber; - } - - /** - * Output only. Rule number of the rule. - * @param ruleNumber ruleNumber or {@code null} for none - */ - public RouterStatusNatStatusNatRuleStatus setRuleNumber(java.lang.Integer ruleNumber) { - this.ruleNumber = ruleNumber; - return this; - } - - @Override - public RouterStatusNatStatusNatRuleStatus set(String fieldName, Object value) { - return (RouterStatusNatStatusNatRuleStatus) super.set(fieldName, value); - } - - @Override - public RouterStatusNatStatusNatRuleStatus clone() { - return (RouterStatusNatStatusNatRuleStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusResponse.java deleted file mode 100644 index 3b5ea8cb14c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RouterStatusResponse.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RouterStatusResponse. - * - *

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 RouterStatusResponse extends com.google.api.client.json.GenericJson { - - /** - * Output only. Type of resource. - * 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 RouterStatus result; - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public RouterStatusResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * @return value or {@code null} for none - */ - public RouterStatus getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public RouterStatusResponse setResult(RouterStatus result) { - this.result = result; - return this; - } - - @Override - public RouterStatusResponse set(String fieldName, Object value) { - return (RouterStatusResponse) super.set(fieldName, value); - } - - @Override - public RouterStatusResponse clone() { - return (RouterStatusResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetNamedSetResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetNamedSetResponse.java deleted file mode 100644 index 335aba14c4b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetNamedSetResponse.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersGetNamedSetResponse. - * - *

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 RoutersGetNamedSetResponse extends com.google.api.client.json.GenericJson { - - /** - * end_interface: MixerGetResponseWithEtagBuilder - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private NamedSet resource; - - /** - * end_interface: MixerGetResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * end_interface: MixerGetResponseWithEtagBuilder - * @param etag etag or {@code null} for none - */ - public RoutersGetNamedSetResponse setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * @return value or {@code null} for none - */ - public NamedSet getResource() { - return resource; - } - - /** - * @param resource resource or {@code null} for none - */ - public RoutersGetNamedSetResponse setResource(NamedSet resource) { - this.resource = resource; - return this; - } - - @Override - public RoutersGetNamedSetResponse set(String fieldName, Object value) { - return (RoutersGetNamedSetResponse) super.set(fieldName, value); - } - - @Override - public RoutersGetNamedSetResponse clone() { - return (RoutersGetNamedSetResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetRoutePolicyResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetRoutePolicyResponse.java deleted file mode 100644 index 043128fde15..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersGetRoutePolicyResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersGetRoutePolicyResponse. - * - *

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 RoutersGetRoutePolicyResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RoutePolicy resource; - - /** - * @return value or {@code null} for none - */ - public RoutePolicy getResource() { - return resource; - } - - /** - * @param resource resource or {@code null} for none - */ - public RoutersGetRoutePolicyResponse setResource(RoutePolicy resource) { - this.resource = resource; - return this; - } - - @Override - public RoutersGetRoutePolicyResponse set(String fieldName, Object value) { - return (RoutersGetRoutePolicyResponse) super.set(fieldName, value); - } - - @Override - public RoutersGetRoutePolicyResponse clone() { - return (RoutersGetRoutePolicyResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListBgpRoutes.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListBgpRoutes.java deleted file mode 100644 index 60a50674728..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListBgpRoutes.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersListBgpRoutes. - * - *

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 RoutersListBgpRoutes extends com.google.api.client.json.GenericJson { - - /** - * 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}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of - * bgp routes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] A list of bgp routes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List result; - - static { - // hack to force ProGuard to consider BgpRoute 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(BgpRoute.class); - } - - /** - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public RoutersListBgpRoutes 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 - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public RoutersListBgpRoutes setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of - * bgp routes. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of - * bgp routes. - * @param kind kind or {@code null} for none - */ - public RoutersListBgpRoutes setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RoutersListBgpRoutes setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] A list of bgp routes. - * @return value or {@code null} for none - */ - public java.util.List getResult() { - return result; - } - - /** - * [Output Only] A list of bgp routes. - * @param result result or {@code null} for none - */ - public RoutersListBgpRoutes setResult(java.util.List result) { - this.result = result; - 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 RoutersListBgpRoutes 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 RoutersListBgpRoutes 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 RoutersListBgpRoutes setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RoutersListBgpRoutes set(String fieldName, Object value) { - return (RoutersListBgpRoutes) super.set(fieldName, value); - } - - @Override - public RoutersListBgpRoutes clone() { - return (RoutersListBgpRoutes) 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 RoutersListBgpRoutesWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListNamedSets.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListNamedSets.java deleted file mode 100644 index 28cfe645981..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListNamedSets.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersListNamedSets. - * - *

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 RoutersListNamedSets extends com.google.api.client.json.GenericJson { - - /** - * 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}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of - * named sets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] A list of named sets. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List result; - - static { - // hack to force ProGuard to consider NamedSet 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(NamedSet.class); - } - - /** - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public RoutersListNamedSets 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 - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public RoutersListNamedSets setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of - * named sets. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of - * named sets. - * @param kind kind or {@code null} for none - */ - public RoutersListNamedSets setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RoutersListNamedSets setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] A list of named sets. - * @return value or {@code null} for none - */ - public java.util.List getResult() { - return result; - } - - /** - * [Output Only] A list of named sets. - * @param result result or {@code null} for none - */ - public RoutersListNamedSets setResult(java.util.List result) { - this.result = result; - 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 RoutersListNamedSets 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 RoutersListNamedSets 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 RoutersListNamedSets setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RoutersListNamedSets set(String fieldName, Object value) { - return (RoutersListNamedSets) super.set(fieldName, value); - } - - @Override - public RoutersListNamedSets clone() { - return (RoutersListNamedSets) 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 RoutersListNamedSetsWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListRoutePolicies.java deleted file mode 100644 index 96efdededef..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersListRoutePolicies.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersListRoutePolicies. - * - *

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 RoutersListRoutePolicies extends com.google.api.client.json.GenericJson { - - /** - * 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}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] A list of route policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List result; - - static { - // hack to force ProGuard to consider RoutePolicy 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(RoutePolicy.class); - } - - /** - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public RoutersListRoutePolicies 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 - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public RoutersListRoutePolicies setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. - * @param kind kind or {@code null} for none - */ - public RoutersListRoutePolicies setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public RoutersListRoutePolicies setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] A list of route policies. - * @return value or {@code null} for none - */ - public java.util.List getResult() { - return result; - } - - /** - * [Output Only] A list of route policies. - * @param result result or {@code null} for none - */ - public RoutersListRoutePolicies setResult(java.util.List result) { - this.result = result; - 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 RoutersListRoutePolicies 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 RoutersListRoutePolicies 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 RoutersListRoutePolicies setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RoutersListRoutePolicies set(String fieldName, Object value) { - return (RoutersListRoutePolicies) super.set(fieldName, value); - } - - @Override - public RoutersListRoutePolicies clone() { - return (RoutersListRoutePolicies) 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 RoutersListRoutePoliciesWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersPreviewResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersPreviewResponse.java deleted file mode 100644 index f587631a14a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersPreviewResponse.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersPreviewResponse. - * - *

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 RoutersPreviewResponse extends com.google.api.client.json.GenericJson { - - /** - * Preview of given router. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Router resource; - - /** - * Preview of given router. - * @return value or {@code null} for none - */ - public Router getResource() { - return resource; - } - - /** - * Preview of given router. - * @param resource resource or {@code null} for none - */ - public RoutersPreviewResponse setResource(Router resource) { - this.resource = resource; - return this; - } - - @Override - public RoutersPreviewResponse set(String fieldName, Object value) { - return (RoutersPreviewResponse) super.set(fieldName, value); - } - - @Override - public RoutersPreviewResponse clone() { - return (RoutersPreviewResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersScopedList.java deleted file mode 100644 index b18797130ae..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/RoutersScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for RoutersScopedList. - * - *

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 RoutersScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of routers contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List routers; - - static { - // hack to force ProGuard to consider Router 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(Router.class); - } - - /** - * Informational warning which replaces the list of routers when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of routers contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getRouters() { - return routers; - } - - /** - * A list of routers contained in this scope. - * @param routers routers or {@code null} for none - */ - public RoutersScopedList setRouters(java.util.List routers) { - this.routers = routers; - return this; - } - - /** - * Informational warning which replaces the list of routers when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of routers when the list is empty. - * @param warning warning or {@code null} for none - */ - public RoutersScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public RoutersScopedList set(String fieldName, Object value) { - return (RoutersScopedList) super.set(fieldName, value); - } - - @Override - public RoutersScopedList clone() { - return (RoutersScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of routers when the list is empty. - */ - 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 RoutersScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SSLHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SSLHealthCheck.java deleted file mode 100644 index de918cea796..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SSLHealthCheck.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SSLHealthCheck. - * - *

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 SSLHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, - * after establishing the TCP connection and SSL handshake. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String request; - - /** - * Creates a content-based SSL health check. In addition to establishing a TCP connection and the - * TLS handshake, you can configure the health check to pass only when the backend sends this - * exact response ASCII string, up to 1024 bytes in length. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String response; - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 443. - * Valid values are 1 through65535. - * @param port port or {@code null} for none - */ - public SSLHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Not supported. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Not supported. - * @param portName portName or {@code null} for none - */ - public SSLHealthCheck setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public SSLHealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public SSLHealthCheck setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, - * after establishing the TCP connection and SSL handshake. - * @return value or {@code null} for none - */ - public java.lang.String getRequest() { - return request; - } - - /** - * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, - * after establishing the TCP connection and SSL handshake. - * @param request request or {@code null} for none - */ - public SSLHealthCheck setRequest(java.lang.String request) { - this.request = request; - return this; - } - - /** - * Creates a content-based SSL health check. In addition to establishing a TCP connection and the - * TLS handshake, you can configure the health check to pass only when the backend sends this - * exact response ASCII string, up to 1024 bytes in length. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp - * @return value or {@code null} for none - */ - public java.lang.String getResponse() { - return response; - } - - /** - * Creates a content-based SSL health check. In addition to establishing a TCP connection and the - * TLS handshake, you can configure the health check to pass only when the backend sends this - * exact response ASCII string, up to 1024 bytes in length. For details, see: - * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp - * @param response response or {@code null} for none - */ - public SSLHealthCheck setResponse(java.lang.String response) { - this.response = response; - return this; - } - - @Override - public SSLHealthCheck set(String fieldName, Object value) { - return (SSLHealthCheck) super.set(fieldName, value); - } - - @Override - public SSLHealthCheck clone() { - return (SSLHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedAttachedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedAttachedDisk.java deleted file mode 100644 index 49315c00229..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedAttachedDisk.java +++ /dev/null @@ -1,456 +0,0 @@ -/* - * 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.preview.model; - -/** - * DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk 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 SavedAttachedDisk extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoDelete; - - /** - * Indicates that this is a boot disk. The virtual machine will use the first partition of the - * disk for its root filesystem. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean boot; - - /** - * Specifies the name of the disk attached to the source instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String deviceName; - - /** - * The encryption key for the disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey diskEncryptionKey; - - /** - * The size of the disk in base-2 GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * Output only. [Output Only] URL of the disk type resource. For - * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String diskType; - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List guestOsFeatures; - - static { - // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); - } - - /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer index; - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("interface") - private java.lang.String interface__; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Any valid publicly visible licenses. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenses; - - /** - * The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * Specifies a URL of the disk attached to the source instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String source; - - /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long storageBytes; - - /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storageBytesStatus; - - /** - * Specifies the type of the attached disk, either SCRATCH orPERSISTENT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoDelete() { - return autoDelete; - } - - /** - * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the - * disk is detached from the instance). - * @param autoDelete autoDelete or {@code null} for none - */ - public SavedAttachedDisk setAutoDelete(java.lang.Boolean autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - /** - * Indicates that this is a boot disk. The virtual machine will use the first partition of the - * disk for its root filesystem. - * @return value or {@code null} for none - */ - public java.lang.Boolean getBoot() { - return boot; - } - - /** - * Indicates that this is a boot disk. The virtual machine will use the first partition of the - * disk for its root filesystem. - * @param boot boot or {@code null} for none - */ - public SavedAttachedDisk setBoot(java.lang.Boolean boot) { - this.boot = boot; - return this; - } - - /** - * Specifies the name of the disk attached to the source instance. - * @return value or {@code null} for none - */ - public java.lang.String getDeviceName() { - return deviceName; - } - - /** - * Specifies the name of the disk attached to the source instance. - * @param deviceName deviceName or {@code null} for none - */ - public SavedAttachedDisk setDeviceName(java.lang.String deviceName) { - this.deviceName = deviceName; - return this; - } - - /** - * The encryption key for the disk. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getDiskEncryptionKey() { - return diskEncryptionKey; - } - - /** - * The encryption key for the disk. - * @param diskEncryptionKey diskEncryptionKey or {@code null} for none - */ - public SavedAttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { - this.diskEncryptionKey = diskEncryptionKey; - return this; - } - - /** - * The size of the disk in base-2 GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * The size of the disk in base-2 GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * Output only. [Output Only] URL of the disk type resource. For - * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * @return value or {@code null} for none - */ - public java.lang.String getDiskType() { - return diskType; - } - - /** - * Output only. [Output Only] URL of the disk type resource. For - * example:projects/project/zones/zone/diskTypes/pd-standard or pd-ssd - * @param diskType diskType or {@code null} for none - */ - public SavedAttachedDisk setDiskType(java.lang.String diskType) { - this.diskType = diskType; - return this; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * @return value or {@code null} for none - */ - public java.util.List getGuestOsFeatures() { - return guestOsFeatures; - } - - /** - * A list of features to enable on the guest operating system. Applicable only for bootable - * images. Read Enabling guest operating system features to see a list of available options. - * @param guestOsFeatures guestOsFeatures or {@code null} for none - */ - public SavedAttachedDisk setGuestOsFeatures(java.util.List guestOsFeatures) { - this.guestOsFeatures = guestOsFeatures; - return this; - } - - /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getIndex() { - return index; - } - - /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. - * @param index index or {@code null} for none - */ - public SavedAttachedDisk setIndex(java.lang.Integer index) { - this.index = index; - return this; - } - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. - * @return value or {@code null} for none - */ - public java.lang.String getInterface() { - return interface__; - } - - /** - * Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. - * @param interface__ interface__ or {@code null} for none - */ - public SavedAttachedDisk setInterface(java.lang.String interface__) { - this.interface__ = interface__; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. - * @param kind kind or {@code null} for none - */ - public SavedAttachedDisk setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Any valid publicly visible licenses. - * @return value or {@code null} for none - */ - public java.util.List getLicenses() { - return licenses; - } - - /** - * Output only. [Output Only] Any valid publicly visible licenses. - * @param licenses licenses or {@code null} for none - */ - public SavedAttachedDisk setLicenses(java.util.List licenses) { - this.licenses = licenses; - return this; - } - - /** - * The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. - * @return value or {@code null} for none - */ - public java.lang.String getMode() { - return mode; - } - - /** - * The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. - * @param mode mode or {@code null} for none - */ - public SavedAttachedDisk setMode(java.lang.String mode) { - this.mode = mode; - return this; - } - - /** - * Specifies a URL of the disk attached to the source instance. - * @return value or {@code null} for none - */ - public java.lang.String getSource() { - return source; - } - - /** - * Specifies a URL of the disk attached to the source instance. - * @param source source or {@code null} for none - */ - public SavedAttachedDisk setSource(java.lang.String source) { - this.source = source; - return this; - } - - /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. - * @return value or {@code null} for none - */ - public java.lang.Long getStorageBytes() { - return storageBytes; - } - - /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. - * @param storageBytes storageBytes or {@code null} for none - */ - public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { - this.storageBytes = storageBytes; - return this; - } - - /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. - * @return value or {@code null} for none - */ - public java.lang.String getStorageBytesStatus() { - return storageBytesStatus; - } - - /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. - * @param storageBytesStatus storageBytesStatus or {@code null} for none - */ - public SavedAttachedDisk setStorageBytesStatus(java.lang.String storageBytesStatus) { - this.storageBytesStatus = storageBytesStatus; - return this; - } - - /** - * Specifies the type of the attached disk, either SCRATCH orPERSISTENT. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Specifies the type of the attached disk, either SCRATCH orPERSISTENT. - * @param type type or {@code null} for none - */ - public SavedAttachedDisk setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public SavedAttachedDisk set(String fieldName, Object value) { - return (SavedAttachedDisk) super.set(fieldName, value); - } - - @Override - public SavedAttachedDisk clone() { - return (SavedAttachedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedDisk.java deleted file mode 100644 index d93a3cf384d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SavedDisk.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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.preview.model; - -/** - * An instance-attached disk 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 SavedDisk extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The architecture of the attached disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. Specifies a URL of the disk attached to the source instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDisk; - - /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long storageBytes; - - /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storageBytesStatus; - - /** - * Output only. [Output Only] The architecture of the attached disk. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * Output only. [Output Only] The architecture of the attached disk. - * @param architecture architecture or {@code null} for none - */ - public SavedDisk setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. - * @param kind kind or {@code null} for none - */ - public SavedDisk setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. Specifies a URL of the disk attached to the source instance. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDisk() { - return sourceDisk; - } - - /** - * Output only. Specifies a URL of the disk attached to the source instance. - * @param sourceDisk sourceDisk or {@code null} for none - */ - public SavedDisk setSourceDisk(java.lang.String sourceDisk) { - this.sourceDisk = sourceDisk; - return this; - } - - /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. - * @return value or {@code null} for none - */ - public java.lang.Long getStorageBytes() { - return storageBytes; - } - - /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. - * @param storageBytes storageBytes or {@code null} for none - */ - public SavedDisk setStorageBytes(java.lang.Long storageBytes) { - this.storageBytes = storageBytes; - return this; - } - - /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. - * @return value or {@code null} for none - */ - public java.lang.String getStorageBytesStatus() { - return storageBytesStatus; - } - - /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. - * @param storageBytesStatus storageBytesStatus or {@code null} for none - */ - public SavedDisk setStorageBytesStatus(java.lang.String storageBytesStatus) { - this.storageBytesStatus = storageBytesStatus; - return this; - } - - @Override - public SavedDisk set(String fieldName, Object value) { - return (SavedDisk) super.set(fieldName, value); - } - - @Override - public SavedDisk clone() { - return (SavedDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ScalingScheduleStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ScalingScheduleStatus.java deleted file mode 100644 index 806766b3a59..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ScalingScheduleStatus.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ScalingScheduleStatus. - * - *

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 ScalingScheduleStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when - * a schedule actually became active, not when it was planned to do so. The timestamp is in - * RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastStartTime; - - /** - * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp - * when a schedule is planned to run, but the actual time might be slightly different. The - * timestamp is in RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextStartTime; - - /** - * [Output Only] The current state of a scaling schedule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when - * a schedule actually became active, not when it was planned to do so. The timestamp is in - * RFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastStartTime() { - return lastStartTime; - } - - /** - * [Output Only] The last time the scaling schedule became active. Note: this is a timestamp when - * a schedule actually became active, not when it was planned to do so. The timestamp is in - * RFC3339 text format. - * @param lastStartTime lastStartTime or {@code null} for none - */ - public ScalingScheduleStatus setLastStartTime(java.lang.String lastStartTime) { - this.lastStartTime = lastStartTime; - return this; - } - - /** - * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp - * when a schedule is planned to run, but the actual time might be slightly different. The - * timestamp is in RFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getNextStartTime() { - return nextStartTime; - } - - /** - * [Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp - * when a schedule is planned to run, but the actual time might be slightly different. The - * timestamp is in RFC3339 text format. - * @param nextStartTime nextStartTime or {@code null} for none - */ - public ScalingScheduleStatus setNextStartTime(java.lang.String nextStartTime) { - this.nextStartTime = nextStartTime; - return this; - } - - /** - * [Output Only] The current state of a scaling schedule. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * [Output Only] The current state of a scaling schedule. - * @param state state or {@code null} for none - */ - public ScalingScheduleStatus setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public ScalingScheduleStatus set(String fieldName, Object value) { - return (ScalingScheduleStatus) super.set(fieldName, value); - } - - @Override - public ScalingScheduleStatus clone() { - return (ScalingScheduleStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Scheduling.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Scheduling.java deleted file mode 100644 index cda1d900f21..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Scheduling.java +++ /dev/null @@ -1,540 +0,0 @@ -/* - * 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.preview.model; - -/** - * Sets the scheduling options for an Instance. - * - *

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 Scheduling extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether the instance should be automatically restarted if it is terminated by Compute - * Engine (not terminated by a user). You can only set the automatic restart option for standard - * instances.Preemptible instances cannot be automatically restarted. - * - * By default, this is set to true so an instance is automatically restarted if it is terminated - * by Compute Engine. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean automaticRestart; - - /** - * Specifies the availability domain to place the instance in. The value must be a number between - * 1 and the number of availability domains specified in the spread placement policy attached to - * the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer availabilityDomain; - - /** - * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the - * VM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean exposeHostTopology; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SchedulingGracefulShutdown gracefulShutdown; - - /** - * Specify the time in seconds for host error detection, the value must be within the range of - * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will - * be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer hostErrorTimeoutSeconds; - - /** - * Specifies the termination action for the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceTerminationAction; - - /** - * Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd - * state is attempted. Its value should be in between 0 and 168 hours with hour granularity and - * the default value being 1 hour. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration localSsdRecoveryTimeout; - - /** - * An opaque location hint used to place the instance close to other resources. This field is for - * use by internal tools that use the public API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationHint; - - /** - * Specifies the max run duration for the given instance. If specified, the instance termination - * action will be performed at the end of the run duration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxRunDuration; - - /** - * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant - * node. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer minNodeCpus; - - /** - * A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for - * more information. Overrides reservationAffinity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List nodeAffinities; - - /** - * Defines the maintenance behavior for this instance. For standard instances, the default - * behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is - * TERMINATE. For more information, see Set VM host maintenance policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String onHostMaintenance; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SchedulingOnInstanceStopAction onInstanceStopAction; - - /** - * Defines whether the instance is preemptible. This can only be set during instance creation or - * while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for - * more information on the possible instance states. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean preemptible; - - /** - * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off - * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 - * Soft Off signal is triggered. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration preemptionNoticeDuration; - - /** - * Specifies the provisioning model of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String provisioningModel; - - /** - * Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 - * Mechanical Off for Standard VMs and 30 seconds for Spot VMs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean skipGuestOsShutdown; - - /** - * Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If - * specified, the instance termination action will be performed at the termination time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String terminationTime; - - /** - * Specifies whether the instance should be automatically restarted if it is terminated by Compute - * Engine (not terminated by a user). You can only set the automatic restart option for standard - * instances.Preemptible instances cannot be automatically restarted. - * - * By default, this is set to true so an instance is automatically restarted if it is terminated - * by Compute Engine. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutomaticRestart() { - return automaticRestart; - } - - /** - * Specifies whether the instance should be automatically restarted if it is terminated by Compute - * Engine (not terminated by a user). You can only set the automatic restart option for standard - * instances.Preemptible instances cannot be automatically restarted. - * - * By default, this is set to true so an instance is automatically restarted if it is terminated - * by Compute Engine. - * @param automaticRestart automaticRestart or {@code null} for none - */ - public Scheduling setAutomaticRestart(java.lang.Boolean automaticRestart) { - this.automaticRestart = automaticRestart; - return this; - } - - /** - * Specifies the availability domain to place the instance in. The value must be a number between - * 1 and the number of availability domains specified in the spread placement policy attached to - * the instance. - * @return value or {@code null} for none - */ - public java.lang.Integer getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * Specifies the availability domain to place the instance in. The value must be a number between - * 1 and the number of availability domains specified in the spread placement policy attached to - * the instance. - * @param availabilityDomain availabilityDomain or {@code null} for none - */ - public Scheduling setAvailabilityDomain(java.lang.Integer availabilityDomain) { - this.availabilityDomain = availabilityDomain; - return this; - } - - /** - * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the - * VM. - * @return value or {@code null} for none - */ - public java.lang.Boolean getExposeHostTopology() { - return exposeHostTopology; - } - - /** - * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the - * VM. - * @param exposeHostTopology exposeHostTopology or {@code null} for none - */ - public Scheduling setExposeHostTopology(java.lang.Boolean exposeHostTopology) { - this.exposeHostTopology = exposeHostTopology; - return this; - } - - /** - * @return value or {@code null} for none - */ - public SchedulingGracefulShutdown getGracefulShutdown() { - return gracefulShutdown; - } - - /** - * @param gracefulShutdown gracefulShutdown or {@code null} for none - */ - public Scheduling setGracefulShutdown(SchedulingGracefulShutdown gracefulShutdown) { - this.gracefulShutdown = gracefulShutdown; - return this; - } - - /** - * Specify the time in seconds for host error detection, the value must be within the range of - * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will - * be used. - * @return value or {@code null} for none - */ - public java.lang.Integer getHostErrorTimeoutSeconds() { - return hostErrorTimeoutSeconds; - } - - /** - * Specify the time in seconds for host error detection, the value must be within the range of - * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will - * be used. - * @param hostErrorTimeoutSeconds hostErrorTimeoutSeconds or {@code null} for none - */ - public Scheduling setHostErrorTimeoutSeconds(java.lang.Integer hostErrorTimeoutSeconds) { - this.hostErrorTimeoutSeconds = hostErrorTimeoutSeconds; - return this; - } - - /** - * Specifies the termination action for the instance. - * @return value or {@code null} for none - */ - public java.lang.String getInstanceTerminationAction() { - return instanceTerminationAction; - } - - /** - * Specifies the termination action for the instance. - * @param instanceTerminationAction instanceTerminationAction or {@code null} for none - */ - public Scheduling setInstanceTerminationAction(java.lang.String instanceTerminationAction) { - this.instanceTerminationAction = instanceTerminationAction; - return this; - } - - /** - * Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd - * state is attempted. Its value should be in between 0 and 168 hours with hour granularity and - * the default value being 1 hour. - * @return value or {@code null} for none - */ - public Duration getLocalSsdRecoveryTimeout() { - return localSsdRecoveryTimeout; - } - - /** - * Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd - * state is attempted. Its value should be in between 0 and 168 hours with hour granularity and - * the default value being 1 hour. - * @param localSsdRecoveryTimeout localSsdRecoveryTimeout or {@code null} for none - */ - public Scheduling setLocalSsdRecoveryTimeout(Duration localSsdRecoveryTimeout) { - this.localSsdRecoveryTimeout = localSsdRecoveryTimeout; - return this; - } - - /** - * An opaque location hint used to place the instance close to other resources. This field is for - * use by internal tools that use the public API. - * @return value or {@code null} for none - */ - public java.lang.String getLocationHint() { - return locationHint; - } - - /** - * An opaque location hint used to place the instance close to other resources. This field is for - * use by internal tools that use the public API. - * @param locationHint locationHint or {@code null} for none - */ - public Scheduling setLocationHint(java.lang.String locationHint) { - this.locationHint = locationHint; - return this; - } - - /** - * Specifies the max run duration for the given instance. If specified, the instance termination - * action will be performed at the end of the run duration. - * @return value or {@code null} for none - */ - public Duration getMaxRunDuration() { - return maxRunDuration; - } - - /** - * Specifies the max run duration for the given instance. If specified, the instance termination - * action will be performed at the end of the run duration. - * @param maxRunDuration maxRunDuration or {@code null} for none - */ - public Scheduling setMaxRunDuration(Duration maxRunDuration) { - this.maxRunDuration = maxRunDuration; - return this; - } - - /** - * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant - * node. - * @return value or {@code null} for none - */ - public java.lang.Integer getMinNodeCpus() { - return minNodeCpus; - } - - /** - * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant - * node. - * @param minNodeCpus minNodeCpus or {@code null} for none - */ - public Scheduling setMinNodeCpus(java.lang.Integer minNodeCpus) { - this.minNodeCpus = minNodeCpus; - return this; - } - - /** - * A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for - * more information. Overrides reservationAffinity. - * @return value or {@code null} for none - */ - public java.util.List getNodeAffinities() { - return nodeAffinities; - } - - /** - * A set of node affinity and anti-affinity configurations. Refer toConfiguring node affinity for - * more information. Overrides reservationAffinity. - * @param nodeAffinities nodeAffinities or {@code null} for none - */ - public Scheduling setNodeAffinities(java.util.List nodeAffinities) { - this.nodeAffinities = nodeAffinities; - return this; - } - - /** - * Defines the maintenance behavior for this instance. For standard instances, the default - * behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is - * TERMINATE. For more information, see Set VM host maintenance policy. - * @return value or {@code null} for none - */ - public java.lang.String getOnHostMaintenance() { - return onHostMaintenance; - } - - /** - * Defines the maintenance behavior for this instance. For standard instances, the default - * behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is - * TERMINATE. For more information, see Set VM host maintenance policy. - * @param onHostMaintenance onHostMaintenance or {@code null} for none - */ - public Scheduling setOnHostMaintenance(java.lang.String onHostMaintenance) { - this.onHostMaintenance = onHostMaintenance; - return this; - } - - /** - * @return value or {@code null} for none - */ - public SchedulingOnInstanceStopAction getOnInstanceStopAction() { - return onInstanceStopAction; - } - - /** - * @param onInstanceStopAction onInstanceStopAction or {@code null} for none - */ - public Scheduling setOnInstanceStopAction(SchedulingOnInstanceStopAction onInstanceStopAction) { - this.onInstanceStopAction = onInstanceStopAction; - return this; - } - - /** - * Defines whether the instance is preemptible. This can only be set during instance creation or - * while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for - * more information on the possible instance states. - * @return value or {@code null} for none - */ - public java.lang.Boolean getPreemptible() { - return preemptible; - } - - /** - * Defines whether the instance is preemptible. This can only be set during instance creation or - * while the instance isstopped and therefore, in a `TERMINATED` state. SeeInstance Life Cycle for - * more information on the possible instance states. - * @param preemptible preemptible or {@code null} for none - */ - public Scheduling setPreemptible(java.lang.Boolean preemptible) { - this.preemptible = preemptible; - return this; - } - - /** - * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off - * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 - * Soft Off signal is triggered. - * @return value or {@code null} for none - */ - public Duration getPreemptionNoticeDuration() { - return preemptionNoticeDuration; - } - - /** - * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off - * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 - * Soft Off signal is triggered. - * @param preemptionNoticeDuration preemptionNoticeDuration or {@code null} for none - */ - public Scheduling setPreemptionNoticeDuration(Duration preemptionNoticeDuration) { - this.preemptionNoticeDuration = preemptionNoticeDuration; - return this; - } - - /** - * Specifies the provisioning model of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getProvisioningModel() { - return provisioningModel; - } - - /** - * Specifies the provisioning model of the instance. - * @param provisioningModel provisioningModel or {@code null} for none - */ - public Scheduling setProvisioningModel(java.lang.String provisioningModel) { - this.provisioningModel = provisioningModel; - return this; - } - - /** - * Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 - * Mechanical Off for Standard VMs and 30 seconds for Spot VMs. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSkipGuestOsShutdown() { - return skipGuestOsShutdown; - } - - /** - * Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3 - * Mechanical Off for Standard VMs and 30 seconds for Spot VMs. - * @param skipGuestOsShutdown skipGuestOsShutdown or {@code null} for none - */ - public Scheduling setSkipGuestOsShutdown(java.lang.Boolean skipGuestOsShutdown) { - this.skipGuestOsShutdown = skipGuestOsShutdown; - return this; - } - - /** - * Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If - * specified, the instance termination action will be performed at the termination time. - * @return value or {@code null} for none - */ - public java.lang.String getTerminationTime() { - return terminationTime; - } - - /** - * Specifies the timestamp, when the instance will be terminated, inRFC3339 text format. If - * specified, the instance termination action will be performed at the termination time. - * @param terminationTime terminationTime or {@code null} for none - */ - public Scheduling setTerminationTime(java.lang.String terminationTime) { - this.terminationTime = terminationTime; - return this; - } - - @Override - public Scheduling set(String fieldName, Object value) { - return (Scheduling) super.set(fieldName, value); - } - - @Override - public Scheduling clone() { - return (Scheduling) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingGracefulShutdown.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingGracefulShutdown.java deleted file mode 100644 index fb5fa8bcc50..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingGracefulShutdown.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * The configuration for gracefully shutting down the instance. - * - *

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 SchedulingGracefulShutdown extends com.google.api.client.json.GenericJson { - - /** - * Opts-in for graceful shutdown. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enabled; - - /** - * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't - * complete after this time, then the instance transitions to the STOPPING state. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration maxDuration; - - /** - * Opts-in for graceful shutdown. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnabled() { - return enabled; - } - - /** - * Opts-in for graceful shutdown. - * @param enabled enabled or {@code null} for none - */ - public SchedulingGracefulShutdown setEnabled(java.lang.Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't - * complete after this time, then the instance transitions to the STOPPING state. - * @return value or {@code null} for none - */ - public Duration getMaxDuration() { - return maxDuration; - } - - /** - * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't - * complete after this time, then the instance transitions to the STOPPING state. - * @param maxDuration maxDuration or {@code null} for none - */ - public SchedulingGracefulShutdown setMaxDuration(Duration maxDuration) { - this.maxDuration = maxDuration; - return this; - } - - @Override - public SchedulingGracefulShutdown set(String fieldName, Object value) { - return (SchedulingGracefulShutdown) super.set(fieldName, value); - } - - @Override - public SchedulingGracefulShutdown clone() { - return (SchedulingGracefulShutdown) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingNodeAffinity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingNodeAffinity.java deleted file mode 100644 index 66994bfa05c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingNodeAffinity.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. - * - *

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 SchedulingNodeAffinity extends com.google.api.client.json.GenericJson { - - /** - * Corresponds to the label key of Node resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for - * anti-affinity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String operator; - - /** - * Corresponds to the label values of Node resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List values; - - /** - * Corresponds to the label key of Node resource. - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * Corresponds to the label key of Node resource. - * @param key key or {@code null} for none - */ - public SchedulingNodeAffinity setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for - * anti-affinity. - * @return value or {@code null} for none - */ - public java.lang.String getOperator() { - return operator; - } - - /** - * Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for - * anti-affinity. - * @param operator operator or {@code null} for none - */ - public SchedulingNodeAffinity setOperator(java.lang.String operator) { - this.operator = operator; - return this; - } - - /** - * Corresponds to the label values of Node resource. - * @return value or {@code null} for none - */ - public java.util.List getValues() { - return values; - } - - /** - * Corresponds to the label values of Node resource. - * @param values values or {@code null} for none - */ - public SchedulingNodeAffinity setValues(java.util.List values) { - this.values = values; - return this; - } - - @Override - public SchedulingNodeAffinity set(String fieldName, Object value) { - return (SchedulingNodeAffinity) super.set(fieldName, value); - } - - @Override - public SchedulingNodeAffinity clone() { - return (SchedulingNodeAffinity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingOnInstanceStopAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingOnInstanceStopAction.java deleted file mode 100644 index a5827effdee..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SchedulingOnInstanceStopAction.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Defines the behaviour for instances with the instance_termination_actionSTOP. - * - *

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 SchedulingOnInstanceStopAction extends com.google.api.client.json.GenericJson { - - /** - * If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD - * data will be preserved when the instance is stopped at the end of the run duration/termination - * time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** - * If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD - * data will be preserved when the instance is stopped at the end of the run duration/termination - * time. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD - * data will be preserved when the instance is stopped at the end of the run duration/termination - * time. - * @param discardLocalSsd discardLocalSsd or {@code null} for none - */ - public SchedulingOnInstanceStopAction setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - return this; - } - - @Override - public SchedulingOnInstanceStopAction set(String fieldName, Object value) { - return (SchedulingOnInstanceStopAction) super.set(fieldName, value); - } - - @Override - public SchedulingOnInstanceStopAction clone() { - return (SchedulingOnInstanceStopAction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Screenshot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Screenshot.java deleted file mode 100644 index 142c05eb6c4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Screenshot.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * An instance's screenshot. - * - *

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 Screenshot extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The Base64-encoded screenshot data. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String contents; - - /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] The Base64-encoded screenshot data. - * @return value or {@code null} for none - */ - public java.lang.String getContents() { - return contents; - } - - /** - * [Output Only] The Base64-encoded screenshot data. - * @param contents contents or {@code null} for none - */ - public Screenshot setContents(java.lang.String contents) { - this.contents = contents; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. - * @param kind kind or {@code null} for none - */ - public Screenshot setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public Screenshot set(String fieldName, Object value) { - return (Screenshot) super.set(fieldName, value); - } - - @Override - public Screenshot clone() { - return (Screenshot) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesAggregatedList.java deleted file mode 100644 index 7cd4137cdb9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesAggregatedList.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPoliciesAggregatedList. - * - *

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 SecurityPoliciesAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 SecurityPoliciesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for - * lists of Security Policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SecurityPoliciesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of SecurityPoliciesScopedList resources. - * @param items items or {@code null} for none - */ - public SecurityPoliciesAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for - * lists of Security Policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for - * lists of Security Policies. - * @param kind kind or {@code null} for none - */ - public SecurityPoliciesAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList 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 SecurityPoliciesAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SecurityPoliciesAggregatedList set(String fieldName, Object value) { - return (SecurityPoliciesAggregatedList) super.set(fieldName, value); - } - - @Override - public SecurityPoliciesAggregatedList clone() { - return (SecurityPoliciesAggregatedList) 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 SecurityPoliciesAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java deleted file mode 100644 index 0631ad09637..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesListPreconfiguredExpressionSetsResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPoliciesListPreconfiguredExpressionSetsResponse. - * - *

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 SecurityPoliciesListPreconfiguredExpressionSetsResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPoliciesWafConfig preconfiguredExpressionSets; - - /** - * @return value or {@code null} for none - */ - public SecurityPoliciesWafConfig getPreconfiguredExpressionSets() { - return preconfiguredExpressionSets; - } - - /** - * @param preconfiguredExpressionSets preconfiguredExpressionSets or {@code null} for none - */ - public SecurityPoliciesListPreconfiguredExpressionSetsResponse setPreconfiguredExpressionSets(SecurityPoliciesWafConfig preconfiguredExpressionSets) { - this.preconfiguredExpressionSets = preconfiguredExpressionSets; - return this; - } - - @Override - public SecurityPoliciesListPreconfiguredExpressionSetsResponse set(String fieldName, Object value) { - return (SecurityPoliciesListPreconfiguredExpressionSetsResponse) super.set(fieldName, value); - } - - @Override - public SecurityPoliciesListPreconfiguredExpressionSetsResponse clone() { - return (SecurityPoliciesListPreconfiguredExpressionSetsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesScopedList.java deleted file mode 100644 index 39a4d9c35a0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPoliciesScopedList. - * - *

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 SecurityPoliciesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of SecurityPolicies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List securityPolicies; - - /** - * Informational warning which replaces the list of security policies when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of SecurityPolicies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getSecurityPolicies() { - return securityPolicies; - } - - /** - * A list of SecurityPolicies contained in this scope. - * @param securityPolicies securityPolicies or {@code null} for none - */ - public SecurityPoliciesScopedList setSecurityPolicies(java.util.List securityPolicies) { - this.securityPolicies = securityPolicies; - return this; - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - * @param warning warning or {@code null} for none - */ - public SecurityPoliciesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SecurityPoliciesScopedList set(String fieldName, Object value) { - return (SecurityPoliciesScopedList) super.set(fieldName, value); - } - - @Override - public SecurityPoliciesScopedList clone() { - return (SecurityPoliciesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of security policies when the list is empty. - */ - 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 SecurityPoliciesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesWafConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesWafConfig.java deleted file mode 100644 index c5c98df2693..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPoliciesWafConfig.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPoliciesWafConfig. - * - *

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 SecurityPoliciesWafConfig extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private PreconfiguredWafSet wafRules; - - /** - * @return value or {@code null} for none - */ - public PreconfiguredWafSet getWafRules() { - return wafRules; - } - - /** - * @param wafRules wafRules or {@code null} for none - */ - public SecurityPoliciesWafConfig setWafRules(PreconfiguredWafSet wafRules) { - this.wafRules = wafRules; - return this; - } - - @Override - public SecurityPoliciesWafConfig set(String fieldName, Object value) { - return (SecurityPoliciesWafConfig) super.set(fieldName, value); - } - - @Override - public SecurityPoliciesWafConfig clone() { - return (SecurityPoliciesWafConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicy.java deleted file mode 100644 index 1856c5a6815..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicy.java +++ /dev/null @@ -1,750 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Google Cloud Armor security policy resource. - * - * Only external backend services that use load balancers can reference a security policy. For more - * information, see Google Cloud Armor security policy overview. - * - *

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 SecurityPolicy extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyAdaptiveProtectionConfig adaptiveProtectionConfig; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyAdvancedOptionsConfig advancedOptionsConfig; - - /** - * A list of associations that belong to this policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List associations; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyDdosProtectionConfig ddosProtectionConfig; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * 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] Type of the resource. Alwayscompute#securityPolicyfor security - * policies - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this security policy, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource. Provided by the client 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 parent of the security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig; - - /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * A list of rules that belong to this policy. There must always be a default rule which is a rule - * with priority 2147483647 and match all condition (for the match condition this means match "*" - * for srcIpRanges and for the networkMatch condition every field must be either match "*" or not - * set). If no rules are provided when creating a security policy, a default rule with action - * "allow" will be added. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List rules; - - /** - * 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; - - /** - * User-provided name of the organization security policy. The name should be unique in the - * organization in which the security policy is created. This should only be used when - * SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with - * https://www.ietf.org/rfc/rfc1035.txt. 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 shortName; - - /** - * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor - * backend security policies can be configured to filter incoming HTTP requests targeting - * backend services. They filter requests before they hit the origin servers. - - * CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming - * HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend - * buckets (Cloud Storage). They filter requests before the request is served from Google's - * cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service - * policies can be configured to filter HTTP requests targeting services managed by Traffic - * Director in a service mesh. They filter requests before the request is served from the - * application. - * - * - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets - * targeting network load balancing resources such as backend services, target pools, target - * instances, and instances with external IPs. They filter requests before the request is served - * from the application. - * - * This field can be set only at resource creation time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field - * consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, - * IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify - * matching values for these fields. - * - * Example: - * - * userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 - * mask: "0x1fff" - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userDefinedFields; - - /** - * @return value or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfig getAdaptiveProtectionConfig() { - return adaptiveProtectionConfig; - } - - /** - * @param adaptiveProtectionConfig adaptiveProtectionConfig or {@code null} for none - */ - public SecurityPolicy setAdaptiveProtectionConfig(SecurityPolicyAdaptiveProtectionConfig adaptiveProtectionConfig) { - this.adaptiveProtectionConfig = adaptiveProtectionConfig; - return this; - } - - /** - * @return value or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfig getAdvancedOptionsConfig() { - return advancedOptionsConfig; - } - - /** - * @param advancedOptionsConfig advancedOptionsConfig or {@code null} for none - */ - public SecurityPolicy setAdvancedOptionsConfig(SecurityPolicyAdvancedOptionsConfig advancedOptionsConfig) { - this.advancedOptionsConfig = advancedOptionsConfig; - return this; - } - - /** - * A list of associations that belong to this policy. - * @return value or {@code null} for none - */ - public java.util.List getAssociations() { - return associations; - } - - /** - * A list of associations that belong to this policy. - * @param associations associations or {@code null} for none - */ - public SecurityPolicy setAssociations(java.util.List associations) { - this.associations = associations; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * @return value or {@code null} for none - */ - public SecurityPolicyDdosProtectionConfig getDdosProtectionConfig() { - return ddosProtectionConfig; - } - - /** - * @param ddosProtectionConfig ddosProtectionConfig or {@code null} for none - */ - public SecurityPolicy setDdosProtectionConfig(SecurityPolicyDdosProtectionConfig ddosProtectionConfig) { - this.ddosProtectionConfig = ddosProtectionConfig; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public SecurityPolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public SecurityPolicy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's - * contents and used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public SecurityPolicy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - 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 SecurityPolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security - * policies - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security - * policies - * @param kind kind or {@code null} for none - */ - public SecurityPolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this security policy, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this security policy, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this security policy, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public SecurityPolicy setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this security policy, which is essentially a hash - * of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels. - * - * To see the latest fingerprint, make get() request to the security policy. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public SecurityPolicy encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public SecurityPolicy setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 SecurityPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The parent of the security policy. - * @return value or {@code null} for none - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Output only. [Output Only] The parent of the security policy. - * @param parent parent or {@code null} for none - */ - public SecurityPolicy setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - - /** - * @return value or {@code null} for none - */ - public SecurityPolicyRecaptchaOptionsConfig getRecaptchaOptionsConfig() { - return recaptchaOptionsConfig; - } - - /** - * @param recaptchaOptionsConfig recaptchaOptionsConfig or {@code null} for none - */ - public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig) { - this.recaptchaOptionsConfig = recaptchaOptionsConfig; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. - * @param region region or {@code null} for none - */ - public SecurityPolicy setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * A list of rules that belong to this policy. There must always be a default rule which is a rule - * with priority 2147483647 and match all condition (for the match condition this means match "*" - * for srcIpRanges and for the networkMatch condition every field must be either match "*" or not - * set). If no rules are provided when creating a security policy, a default rule with action - * "allow" will be added. - * @return value or {@code null} for none - */ - public java.util.List getRules() { - return rules; - } - - /** - * A list of rules that belong to this policy. There must always be a default rule which is a rule - * with priority 2147483647 and match all condition (for the match condition this means match "*" - * for srcIpRanges and for the networkMatch condition every field must be either match "*" or not - * set). If no rules are provided when creating a security policy, a default rule with action - * "allow" will be added. - * @param rules rules or {@code null} for none - */ - public SecurityPolicy setRules(java.util.List rules) { - this.rules = rules; - 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 SecurityPolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * User-provided name of the organization security policy. The name should be unique in the - * organization in which the security policy is created. This should only be used when - * SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with - * https://www.ietf.org/rfc/rfc1035.txt. 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 getShortName() { - return shortName; - } - - /** - * User-provided name of the organization security policy. The name should be unique in the - * organization in which the security policy is created. This should only be used when - * SecurityPolicyType is CLOUD_ARMOR. The name must be 1-63 characters long, and comply with - * https://www.ietf.org/rfc/rfc1035.txt. 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 shortName shortName or {@code null} for none - */ - public SecurityPolicy setShortName(java.lang.String shortName) { - this.shortName = shortName; - return this; - } - - /** - * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor - * backend security policies can be configured to filter incoming HTTP requests targeting - * backend services. They filter requests before they hit the origin servers. - - * CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming - * HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend - * buckets (Cloud Storage). They filter requests before the request is served from Google's - * cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service - * policies can be configured to filter HTTP requests targeting services managed by Traffic - * Director in a service mesh. They filter requests before the request is served from the - * application. - * - * - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets - * targeting network load balancing resources such as backend services, target pools, target - * instances, and instances with external IPs. They filter requests before the request is served - * from the application. - * - * This field can be set only at resource creation time. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type indicates the intended use of the security policy. - CLOUD_ARMOR: Cloud Armor - * backend security policies can be configured to filter incoming HTTP requests targeting - * backend services. They filter requests before they hit the origin servers. - - * CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming - * HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend - * buckets (Cloud Storage). They filter requests before the request is served from Google's - * cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor internal service - * policies can be configured to filter HTTP requests targeting services managed by Traffic - * Director in a service mesh. They filter requests before the request is served from the - * application. - * - * - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets - * targeting network load balancing resources such as backend services, target pools, target - * instances, and instances with external IPs. They filter requests before the request is served - * from the application. - * - * This field can be set only at resource creation time. - * @param type type or {@code null} for none - */ - public SecurityPolicy setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field - * consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, - * IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify - * matching values for these fields. - * - * Example: - * - * userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 - * mask: "0x1fff" - * @return value or {@code null} for none - */ - public java.util.List getUserDefinedFields() { - return userDefinedFields; - } - - /** - * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field - * consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the IPv4, - * IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify - * matching values for these fields. - * - * Example: - * - * userDefinedFields: - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 - * mask: "0x1fff" - * @param userDefinedFields userDefinedFields or {@code null} for none - */ - public SecurityPolicy setUserDefinedFields(java.util.List userDefinedFields) { - this.userDefinedFields = userDefinedFields; - return this; - } - - @Override - public SecurityPolicy set(String fieldName, Object value) { - return (SecurityPolicy) super.set(fieldName, value); - } - - @Override - public SecurityPolicy clone() { - return (SecurityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfig.java deleted file mode 100644 index cb515b95608..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfig.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration options for Cloud Armor Adaptive Protection (CAAP). - * - *

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 SecurityPolicyAdaptiveProtectionConfig extends com.google.api.client.json.GenericJson { - - /** - * If set to true, enables Cloud Armor Machine Learning. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7DdosDefenseConfig; - - /** - * If set to true, enables Cloud Armor Machine Learning. - * @return value or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig getLayer7DdosDefenseConfig() { - return layer7DdosDefenseConfig; - } - - /** - * If set to true, enables Cloud Armor Machine Learning. - * @param layer7DdosDefenseConfig layer7DdosDefenseConfig or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfig setLayer7DdosDefenseConfig(SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7DdosDefenseConfig) { - this.layer7DdosDefenseConfig = layer7DdosDefenseConfig; - return this; - } - - @Override - public SecurityPolicyAdaptiveProtectionConfig set(String fieldName, Object value) { - return (SecurityPolicyAdaptiveProtectionConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAdaptiveProtectionConfig clone() { - return (SecurityPolicyAdaptiveProtectionConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java deleted file mode 100644 index d7075d4367d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration options for L7 DDoS detection. This field is only supported in Global Security - * Policies of type CLOUD_ARMOR. - * - *

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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig extends com.google.api.client.json.GenericJson { - - /** - * If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global - * Security Policies of type CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - - /** - * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - - * transparent rules. This field is only supported in Global Security Policies of type - * CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ruleVisibility; - - /** - * Configuration options for layer7 adaptive protection for various customizable thresholds. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List thresholdConfigs; - - /** - * If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global - * Security Policies of type CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global - * Security Policies of type CLOUD_ARMOR. - * @param enable enable or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - - /** - * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - - * transparent rules. This field is only supported in Global Security Policies of type - * CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public java.lang.String getRuleVisibility() { - return ruleVisibility; - } - - /** - * Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - - * transparent rules. This field is only supported in Global Security Policies of type - * CLOUD_ARMOR. - * @param ruleVisibility ruleVisibility or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig setRuleVisibility(java.lang.String ruleVisibility) { - this.ruleVisibility = ruleVisibility; - return this; - } - - /** - * Configuration options for layer7 adaptive protection for various customizable thresholds. - * @return value or {@code null} for none - */ - public java.util.List getThresholdConfigs() { - return thresholdConfigs; - } - - /** - * Configuration options for layer7 adaptive protection for various customizable thresholds. - * @param thresholdConfigs thresholdConfigs or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig setThresholdConfigs(java.util.List thresholdConfigs) { - this.thresholdConfigs = thresholdConfigs; - return this; - } - - @Override - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig set(String fieldName, Object value) { - return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig clone() { - return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java deleted file mode 100644 index 7b93e94ca2a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for - * SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig. - * - *

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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float autoDeployConfidenceThreshold; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer autoDeployExpirationSec; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float autoDeployImpactedBaselineThreshold; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float autoDeployLoadThreshold; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float detectionAbsoluteQps; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float detectionLoadThreshold; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float detectionRelativeToBaselineQps; - - /** - * The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within - * the security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Configuration options for enabling Adaptive Protection to operate on specified granular traffic - * units. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List trafficGranularityConfigs; - - /** - * @return value or {@code null} for none - */ - public java.lang.Float getAutoDeployConfidenceThreshold() { - return autoDeployConfidenceThreshold; - } - - /** - * @param autoDeployConfidenceThreshold autoDeployConfidenceThreshold or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployConfidenceThreshold(java.lang.Float autoDeployConfidenceThreshold) { - this.autoDeployConfidenceThreshold = autoDeployConfidenceThreshold; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Integer getAutoDeployExpirationSec() { - return autoDeployExpirationSec; - } - - /** - * @param autoDeployExpirationSec autoDeployExpirationSec or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployExpirationSec(java.lang.Integer autoDeployExpirationSec) { - this.autoDeployExpirationSec = autoDeployExpirationSec; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Float getAutoDeployImpactedBaselineThreshold() { - return autoDeployImpactedBaselineThreshold; - } - - /** - * @param autoDeployImpactedBaselineThreshold autoDeployImpactedBaselineThreshold or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployImpactedBaselineThreshold(java.lang.Float autoDeployImpactedBaselineThreshold) { - this.autoDeployImpactedBaselineThreshold = autoDeployImpactedBaselineThreshold; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Float getAutoDeployLoadThreshold() { - return autoDeployLoadThreshold; - } - - /** - * @param autoDeployLoadThreshold autoDeployLoadThreshold or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setAutoDeployLoadThreshold(java.lang.Float autoDeployLoadThreshold) { - this.autoDeployLoadThreshold = autoDeployLoadThreshold; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Float getDetectionAbsoluteQps() { - return detectionAbsoluteQps; - } - - /** - * @param detectionAbsoluteQps detectionAbsoluteQps or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setDetectionAbsoluteQps(java.lang.Float detectionAbsoluteQps) { - this.detectionAbsoluteQps = detectionAbsoluteQps; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Float getDetectionLoadThreshold() { - return detectionLoadThreshold; - } - - /** - * @param detectionLoadThreshold detectionLoadThreshold or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setDetectionLoadThreshold(java.lang.Float detectionLoadThreshold) { - this.detectionLoadThreshold = detectionLoadThreshold; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Float getDetectionRelativeToBaselineQps() { - return detectionRelativeToBaselineQps; - } - - /** - * @param detectionRelativeToBaselineQps detectionRelativeToBaselineQps or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setDetectionRelativeToBaselineQps(java.lang.Float detectionRelativeToBaselineQps) { - this.detectionRelativeToBaselineQps = detectionRelativeToBaselineQps; - return this; - } - - /** - * The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within - * the security policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within - * the security policy. - * @param name name or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Configuration options for enabling Adaptive Protection to operate on specified granular traffic - * units. - * @return value or {@code null} for none - */ - public java.util.List getTrafficGranularityConfigs() { - return trafficGranularityConfigs; - } - - /** - * Configuration options for enabling Adaptive Protection to operate on specified granular traffic - * units. - * @param trafficGranularityConfigs trafficGranularityConfigs or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig setTrafficGranularityConfigs(java.util.List trafficGranularityConfigs) { - this.trafficGranularityConfigs = trafficGranularityConfigs; - return this; - } - - @Override - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig set(String fieldName, Object value) { - return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig clone() { - return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java deleted file mode 100644 index 24b65ae533d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configurations to specifc granular traffic units processed by Adaptive Protection. - * - *

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 SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig extends com.google.api.client.json.GenericJson { - - /** - * If enabled, traffic matching each unique value for the specified type constitutes a separate - * traffic unit. It can only be set to true if `value` is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableEachUniqueValue; - - /** - * Type of this configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Requests that match this value constitute a granular traffic unit. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * If enabled, traffic matching each unique value for the specified type constitutes a separate - * traffic unit. It can only be set to true if `value` is empty. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableEachUniqueValue() { - return enableEachUniqueValue; - } - - /** - * If enabled, traffic matching each unique value for the specified type constitutes a separate - * traffic unit. It can only be set to true if `value` is empty. - * @param enableEachUniqueValue enableEachUniqueValue or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig setEnableEachUniqueValue(java.lang.Boolean enableEachUniqueValue) { - this.enableEachUniqueValue = enableEachUniqueValue; - return this; - } - - /** - * Type of this configuration. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Type of this configuration. - * @param type type or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * Requests that match this value constitute a granular traffic unit. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * Requests that match this value constitute a granular traffic unit. - * @param value value or {@code null} for none - */ - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig set(String fieldName, Object value) { - return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig clone() { - return (SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfig.java deleted file mode 100644 index 6a31960a663..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfig.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyAdvancedOptionsConfig. - * - *

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 SecurityPolicyAdvancedOptionsConfig extends com.google.api.client.json.GenericJson { - - /** - * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to - * STANDARD. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyAdvancedOptionsConfigJsonCustomConfig jsonCustomConfig; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String jsonParsing; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String logLevel; - - /** - * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", - * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String requestBodyInspectionSize; - - /** - * An optional list of case-insensitive request header names to use for resolving the callers - * client IP address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userIpRequestHeaders; - - /** - * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to - * STANDARD. - * @return value or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig getJsonCustomConfig() { - return jsonCustomConfig; - } - - /** - * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to - * STANDARD. - * @param jsonCustomConfig jsonCustomConfig or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfig setJsonCustomConfig(SecurityPolicyAdvancedOptionsConfigJsonCustomConfig jsonCustomConfig) { - this.jsonCustomConfig = jsonCustomConfig; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getJsonParsing() { - return jsonParsing; - } - - /** - * @param jsonParsing jsonParsing or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfig setJsonParsing(java.lang.String jsonParsing) { - this.jsonParsing = jsonParsing; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getLogLevel() { - return logLevel; - } - - /** - * @param logLevel logLevel or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfig setLogLevel(java.lang.String logLevel) { - this.logLevel = logLevel; - return this; - } - - /** - * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", - * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. - * @return value or {@code null} for none - */ - public java.lang.String getRequestBodyInspectionSize() { - return requestBodyInspectionSize; - } - - /** - * The maximum request size chosen by the customer with Waf enabled. Values supported are "8KB", - * "16KB, "32KB", "48KB" and "64KB". Values are case insensitive. - * @param requestBodyInspectionSize requestBodyInspectionSize or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfig setRequestBodyInspectionSize(java.lang.String requestBodyInspectionSize) { - this.requestBodyInspectionSize = requestBodyInspectionSize; - return this; - } - - /** - * An optional list of case-insensitive request header names to use for resolving the callers - * client IP address. - * @return value or {@code null} for none - */ - public java.util.List getUserIpRequestHeaders() { - return userIpRequestHeaders; - } - - /** - * An optional list of case-insensitive request header names to use for resolving the callers - * client IP address. - * @param userIpRequestHeaders userIpRequestHeaders or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfig setUserIpRequestHeaders(java.util.List userIpRequestHeaders) { - this.userIpRequestHeaders = userIpRequestHeaders; - return this; - } - - @Override - public SecurityPolicyAdvancedOptionsConfig set(String fieldName, Object value) { - return (SecurityPolicyAdvancedOptionsConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAdvancedOptionsConfig clone() { - return (SecurityPolicyAdvancedOptionsConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java deleted file mode 100644 index eb417fd2add..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyAdvancedOptionsConfigJsonCustomConfig. - * - *

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 SecurityPolicyAdvancedOptionsConfigJsonCustomConfig extends com.google.api.client.json.GenericJson { - - /** - * A list of custom Content-Type header values to apply the JSON parsing. - * - * As per RFC 1341, a Content-Type header value has the following format: - * - * Content-Type := type "/" subtype *[";" parameter] - * - * When configuring a custom Content-Type header value, only the type/subtype needs to be - * specified, and the parameters should be excluded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List contentTypes; - - /** - * A list of custom Content-Type header values to apply the JSON parsing. - * - * As per RFC 1341, a Content-Type header value has the following format: - * - * Content-Type := type "/" subtype *[";" parameter] - * - * When configuring a custom Content-Type header value, only the type/subtype needs to be - * specified, and the parameters should be excluded. - * @return value or {@code null} for none - */ - public java.util.List getContentTypes() { - return contentTypes; - } - - /** - * A list of custom Content-Type header values to apply the JSON parsing. - * - * As per RFC 1341, a Content-Type header value has the following format: - * - * Content-Type := type "/" subtype *[";" parameter] - * - * When configuring a custom Content-Type header value, only the type/subtype needs to be - * specified, and the parameters should be excluded. - * @param contentTypes contentTypes or {@code null} for none - */ - public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig setContentTypes(java.util.List contentTypes) { - this.contentTypes = contentTypes; - return this; - } - - @Override - public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig set(String fieldName, Object value) { - return (SecurityPolicyAdvancedOptionsConfigJsonCustomConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAdvancedOptionsConfigJsonCustomConfig clone() { - return (SecurityPolicyAdvancedOptionsConfigJsonCustomConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAssociation.java deleted file mode 100644 index 01e389c3911..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyAssociation.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyAssociation. - * - *

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 SecurityPolicyAssociation extends com.google.api.client.json.GenericJson { - - /** - * The resource that the security policy is attached to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String attachmentId; - - /** - * Output only. [Output Only] The display name of the security policy of the association. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * A list of folders to exclude from the security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List excludedFolders; - - /** - * A list of projects to exclude from the security policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List excludedProjects; - - /** - * The name for an association. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The security policy ID of the association. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicyId; - - /** - * Output only. [Output Only] The short name of the security policy of the association. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String shortName; - - /** - * The resource that the security policy is attached to. - * @return value or {@code null} for none - */ - public java.lang.String getAttachmentId() { - return attachmentId; - } - - /** - * The resource that the security policy is attached to. - * @param attachmentId attachmentId or {@code null} for none - */ - public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) { - this.attachmentId = attachmentId; - return this; - } - - /** - * Output only. [Output Only] The display name of the security policy of the association. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Output only. [Output Only] The display name of the security policy of the association. - * @param displayName displayName or {@code null} for none - */ - public SecurityPolicyAssociation setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * A list of folders to exclude from the security policy. - * @return value or {@code null} for none - */ - public java.util.List getExcludedFolders() { - return excludedFolders; - } - - /** - * A list of folders to exclude from the security policy. - * @param excludedFolders excludedFolders or {@code null} for none - */ - public SecurityPolicyAssociation setExcludedFolders(java.util.List excludedFolders) { - this.excludedFolders = excludedFolders; - return this; - } - - /** - * A list of projects to exclude from the security policy. - * @return value or {@code null} for none - */ - public java.util.List getExcludedProjects() { - return excludedProjects; - } - - /** - * A list of projects to exclude from the security policy. - * @param excludedProjects excludedProjects or {@code null} for none - */ - public SecurityPolicyAssociation setExcludedProjects(java.util.List excludedProjects) { - this.excludedProjects = excludedProjects; - return this; - } - - /** - * The name for an association. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name for an association. - * @param name name or {@code null} for none - */ - public SecurityPolicyAssociation setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The security policy ID of the association. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicyId() { - return securityPolicyId; - } - - /** - * Output only. [Output Only] The security policy ID of the association. - * @param securityPolicyId securityPolicyId or {@code null} for none - */ - public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPolicyId) { - this.securityPolicyId = securityPolicyId; - return this; - } - - /** - * Output only. [Output Only] The short name of the security policy of the association. - * @return value or {@code null} for none - */ - public java.lang.String getShortName() { - return shortName; - } - - /** - * Output only. [Output Only] The short name of the security policy of the association. - * @param shortName shortName or {@code null} for none - */ - public SecurityPolicyAssociation setShortName(java.lang.String shortName) { - this.shortName = shortName; - return this; - } - - @Override - public SecurityPolicyAssociation set(String fieldName, Object value) { - return (SecurityPolicyAssociation) super.set(fieldName, value); - } - - @Override - public SecurityPolicyAssociation clone() { - return (SecurityPolicyAssociation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyDdosProtectionConfig.java deleted file mode 100644 index 3a3560e620c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyDdosProtectionConfig.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyDdosProtectionConfig. - * - *

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 SecurityPolicyDdosProtectionConfig extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ddosAdaptiveProtection; - - /** - * DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations - * that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline - * that's inadvertently blocked. - * - * Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using - * a lower value will prioritize keeping collateral damage low, possibly at the cost of its - * effectiveness in rate limiting some or all of the attack. It should typically be unset, so - * Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the - * threshold is advised if there are logs for false positive detections with high collateral - * damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies - * the constraint. If a suitable rule cannot be found, the system falls back to either no - * mitigation for smaller attacks or broader network throttles for larger ones. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float ddosImpactedBaselineThreshold; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ddosProtection; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getDdosAdaptiveProtection() { - return ddosAdaptiveProtection; - } - - /** - * @param ddosAdaptiveProtection ddosAdaptiveProtection or {@code null} for none - */ - public SecurityPolicyDdosProtectionConfig setDdosAdaptiveProtection(java.lang.String ddosAdaptiveProtection) { - this.ddosAdaptiveProtection = ddosAdaptiveProtection; - return this; - } - - /** - * DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations - * that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline - * that's inadvertently blocked. - * - * Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using - * a lower value will prioritize keeping collateral damage low, possibly at the cost of its - * effectiveness in rate limiting some or all of the attack. It should typically be unset, so - * Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the - * threshold is advised if there are logs for false positive detections with high collateral - * damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies - * the constraint. If a suitable rule cannot be found, the system falls back to either no - * mitigation for smaller attacks or broader network throttles for larger ones. - * @return value or {@code null} for none - */ - public java.lang.Float getDdosImpactedBaselineThreshold() { - return ddosImpactedBaselineThreshold; - } - - /** - * DDoS Protection for Network Load Balancers (and VMs with public IPs) builds DDoS mitigations - * that minimize collateral damage. It quantifies this as the fraction of a non-abuse baseline - * that's inadvertently blocked. - * - * Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will not be deployed. Using - * a lower value will prioritize keeping collateral damage low, possibly at the cost of its - * effectiveness in rate limiting some or all of the attack. It should typically be unset, so - * Advanced DDoS (and Adaptive Protection) uses the best mitigation it can find. Setting the - * threshold is advised if there are logs for false positive detections with high collateral - * damage, and will cause Advanced DDoS to attempt to find a less aggressive rule that satisfies - * the constraint. If a suitable rule cannot be found, the system falls back to either no - * mitigation for smaller attacks or broader network throttles for larger ones. - * @param ddosImpactedBaselineThreshold ddosImpactedBaselineThreshold or {@code null} for none - */ - public SecurityPolicyDdosProtectionConfig setDdosImpactedBaselineThreshold(java.lang.Float ddosImpactedBaselineThreshold) { - this.ddosImpactedBaselineThreshold = ddosImpactedBaselineThreshold; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getDdosProtection() { - return ddosProtection; - } - - /** - * @param ddosProtection ddosProtection or {@code null} for none - */ - public SecurityPolicyDdosProtectionConfig setDdosProtection(java.lang.String ddosProtection) { - this.ddosProtection = ddosProtection; - return this; - } - - @Override - public SecurityPolicyDdosProtectionConfig set(String fieldName, Object value) { - return (SecurityPolicyDdosProtectionConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyDdosProtectionConfig clone() { - return (SecurityPolicyDdosProtectionConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyList.java deleted file mode 100644 index 8dd5fe219a1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyList.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyList. - * - *

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 SecurityPolicyList extends com.google.api.client.json.GenericJson { - - /** - * [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 SecurityPolicy 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 SecurityPolicy 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(SecurityPolicy.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 SecurityPolicyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SecurityPolicy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of SecurityPolicy resources. - * @param items items or {@code null} for none - */ - public SecurityPolicyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies - * @param kind kind or {@code null} for none - */ - public SecurityPolicyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SecurityPolicyList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - 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 SecurityPolicyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SecurityPolicyList set(String fieldName, Object value) { - return (SecurityPolicyList) super.set(fieldName, value); - } - - @Override - public SecurityPolicyList clone() { - return (SecurityPolicyList) 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 SecurityPolicyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRecaptchaOptionsConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRecaptchaOptionsConfig.java deleted file mode 100644 index 2fc718b6b3d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRecaptchaOptionsConfig.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRecaptchaOptionsConfig. - * - *

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 SecurityPolicyRecaptchaOptionsConfig extends com.google.api.client.json.GenericJson { - - /** - * An optional field to supply a reCAPTCHA site key to be used for all the rules using the - * redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site - * key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the - * specified site key. If not specified, a Google-managed site key is used. This field is only - * supported in Global Security Policies of type CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String redirectSiteKey; - - /** - * An optional field to supply a reCAPTCHA site key to be used for all the rules using the - * redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site - * key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the - * specified site key. If not specified, a Google-managed site key is used. This field is only - * supported in Global Security Policies of type CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public java.lang.String getRedirectSiteKey() { - return redirectSiteKey; - } - - /** - * An optional field to supply a reCAPTCHA site key to be used for all the rules using the - * redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site - * key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the - * specified site key. If not specified, a Google-managed site key is used. This field is only - * supported in Global Security Policies of type CLOUD_ARMOR. - * @param redirectSiteKey redirectSiteKey or {@code null} for none - */ - public SecurityPolicyRecaptchaOptionsConfig setRedirectSiteKey(java.lang.String redirectSiteKey) { - this.redirectSiteKey = redirectSiteKey; - return this; - } - - @Override - public SecurityPolicyRecaptchaOptionsConfig set(String fieldName, Object value) { - return (SecurityPolicyRecaptchaOptionsConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRecaptchaOptionsConfig clone() { - return (SecurityPolicyRecaptchaOptionsConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyReference.java deleted file mode 100644 index 56e6e48273d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyReference.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyReference. - * - *

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 SecurityPolicyReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * @param securityPolicy securityPolicy or {@code null} for none - */ - public SecurityPolicyReference setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - return this; - } - - @Override - public SecurityPolicyReference set(String fieldName, Object value) { - return (SecurityPolicyReference) super.set(fieldName, value); - } - - @Override - public SecurityPolicyReference clone() { - return (SecurityPolicyReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRule.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRule.java deleted file mode 100644 index 0dda1c600a1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRule.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a rule that describes one or more match conditions along with the action to be taken - * when traffic matches this condition (allow or deny). - * - *

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 SecurityPolicyRule extends com.google.api.client.json.GenericJson { - - /** - * The Action to perform when the rule is matched. The following are the valid actions: - - * allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP - * response code specified. Valid values for `STATUS` are 403, 404, and 502. - - * rate_based_ban: limit client traffic to the configured threshold and ban the client if the - * traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. - * Requires rate_limit_options to be set. - redirect: redirect to a different target. This - * can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 - * response. Parameters for this action can be configured via redirectOptions. This action is - * only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit - * client traffic to the configured threshold. Configure parameters for this action in - * rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview - * only): when traffic reaches the threshold limit, requests from the clients matching this - * rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed - * in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String action; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Optional, additional actions that are performed on headers. This field is only supported in - * Global Security Policies of type CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleHttpHeaderAction headerAction; - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A match condition that incoming traffic is evaluated against. If it evaluates to true, the - * corresponding 'action' is enforced. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleMatcher match; - - /** - * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security - * policies. If it matches, the corresponding 'action' is enforced. - * - * The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and - * potentially multiple user-defined match fields ('userDefinedFields'). - * - * Field values may be extracted directly from the packet or derived from it (e.g. - * 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user- - * defined field is only present if the base header is found in the packet and the entire field is - * in bounds. - * - * Each match field may specify which values can match it, listing one or more ranges, prefixes, - * or exact values that are considered a match for the field. A field value must be present in - * order to match a specified match field. If no match values are specified for a match field, - * then any field value is considered to match it, and it's not required to be present. For - * strings specifying '*' is also equivalent to match all. - * - * For a packet to match a rule, all specified match fields must match the corresponding field - * values derived from the packet. - * - * Example: - * - * networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - - * name: "ipv4_fragment_offset" values: - "1-0x1fff" - * - * The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 - * and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff - * inclusive. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleNetworkMatcher networkMatch; - - /** - * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate - * preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have - * no effect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRulePreconfiguredWafConfig preconfiguredWafConfig; - - /** - * If set to true, the specified action is not enforced. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean preview; - - /** - * An integer indicating the priority of a rule in the list. The priority must be a positive value - * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the - * highest priority and 2147483647 is the lowest priority. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be - * specified for any other actions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleRateLimitOptions rateLimitOptions; - - /** - * Parameters defining the redirect action. Cannot be specified for any other actions. This field - * is only supported in Global Security Policies of type CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleRedirectOptions redirectOptions; - - /** - * The Action to perform when the rule is matched. The following are the valid actions: - - * allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP - * response code specified. Valid values for `STATUS` are 403, 404, and 502. - - * rate_based_ban: limit client traffic to the configured threshold and ban the client if the - * traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. - * Requires rate_limit_options to be set. - redirect: redirect to a different target. This - * can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 - * response. Parameters for this action can be configured via redirectOptions. This action is - * only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit - * client traffic to the configured threshold. Configure parameters for this action in - * rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview - * only): when traffic reaches the threshold limit, requests from the clients matching this - * rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed - * in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. - * @return value or {@code null} for none - */ - public java.lang.String getAction() { - return action; - } - - /** - * The Action to perform when the rule is matched. The following are the valid actions: - - * allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP - * response code specified. Valid values for `STATUS` are 403, 404, and 502. - - * rate_based_ban: limit client traffic to the configured threshold and ban the client if the - * traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. - * Requires rate_limit_options to be set. - redirect: redirect to a different target. This - * can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 - * response. Parameters for this action can be configured via redirectOptions. This action is - * only supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit - * client traffic to the configured threshold. Configure parameters for this action in - * rateLimitOptions. Requires rate_limit_options to be set for this. - fairshare (preview - * only): when traffic reaches the threshold limit, requests from the clients matching this - * rule begin to be rate-limited using the Fair Share algorithm. This action is only allowed - * in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. - * @param action action or {@code null} for none - */ - public SecurityPolicyRule setAction(java.lang.String action) { - this.action = action; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public SecurityPolicyRule setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Optional, additional actions that are performed on headers. This field is only supported in - * Global Security Policies of type CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleHttpHeaderAction getHeaderAction() { - return headerAction; - } - - /** - * Optional, additional actions that are performed on headers. This field is only supported in - * Global Security Policies of type CLOUD_ARMOR. - * @param headerAction headerAction or {@code null} for none - */ - public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction headerAction) { - this.headerAction = headerAction; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules - * @param kind kind or {@code null} for none - */ - public SecurityPolicyRule setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A match condition that incoming traffic is evaluated against. If it evaluates to true, the - * corresponding 'action' is enforced. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleMatcher getMatch() { - return match; - } - - /** - * A match condition that incoming traffic is evaluated against. If it evaluates to true, the - * corresponding 'action' is enforced. - * @param match match or {@code null} for none - */ - public SecurityPolicyRule setMatch(SecurityPolicyRuleMatcher match) { - this.match = match; - return this; - } - - /** - * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security - * policies. If it matches, the corresponding 'action' is enforced. - * - * The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and - * potentially multiple user-defined match fields ('userDefinedFields'). - * - * Field values may be extracted directly from the packet or derived from it (e.g. - * 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user- - * defined field is only present if the base header is found in the packet and the entire field is - * in bounds. - * - * Each match field may specify which values can match it, listing one or more ranges, prefixes, - * or exact values that are considered a match for the field. A field value must be present in - * order to match a specified match field. If no match values are specified for a match field, - * then any field value is considered to match it, and it's not required to be present. For - * strings specifying '*' is also equivalent to match all. - * - * For a packet to match a rule, all specified match fields must match the corresponding field - * values derived from the packet. - * - * Example: - * - * networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - - * name: "ipv4_fragment_offset" values: - "1-0x1fff" - * - * The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 - * and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff - * inclusive. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher getNetworkMatch() { - return networkMatch; - } - - /** - * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security - * policies. If it matches, the corresponding 'action' is enforced. - * - * The match criteria for a rule consists of built-in match fields (like 'srcIpRanges') and - * potentially multiple user-defined match fields ('userDefinedFields'). - * - * Field values may be extracted directly from the packet or derived from it (e.g. - * 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user- - * defined field is only present if the base header is found in the packet and the entire field is - * in bounds. - * - * Each match field may specify which values can match it, listing one or more ranges, prefixes, - * or exact values that are considered a match for the field. A field value must be present in - * order to match a specified match field. If no match values are specified for a match field, - * then any field value is considered to match it, and it's not required to be present. For - * strings specifying '*' is also equivalent to match all. - * - * For a packet to match a rule, all specified match fields must match the corresponding field - * values derived from the packet. - * - * Example: - * - * networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - - * name: "ipv4_fragment_offset" values: - "1-0x1fff" - * - * The above match condition matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 - * and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff - * inclusive. - * @param networkMatch networkMatch or {@code null} for none - */ - public SecurityPolicyRule setNetworkMatch(SecurityPolicyRuleNetworkMatcher networkMatch) { - this.networkMatch = networkMatch; - return this; - } - - /** - * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate - * preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have - * no effect. - * @return value or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfig getPreconfiguredWafConfig() { - return preconfiguredWafConfig; - } - - /** - * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate - * preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have - * no effect. - * @param preconfiguredWafConfig preconfiguredWafConfig or {@code null} for none - */ - public SecurityPolicyRule setPreconfiguredWafConfig(SecurityPolicyRulePreconfiguredWafConfig preconfiguredWafConfig) { - this.preconfiguredWafConfig = preconfiguredWafConfig; - return this; - } - - /** - * If set to true, the specified action is not enforced. - * @return value or {@code null} for none - */ - public java.lang.Boolean getPreview() { - return preview; - } - - /** - * If set to true, the specified action is not enforced. - * @param preview preview or {@code null} for none - */ - public SecurityPolicyRule setPreview(java.lang.Boolean preview) { - this.preview = preview; - return this; - } - - /** - * An integer indicating the priority of a rule in the list. The priority must be a positive value - * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the - * highest priority and 2147483647 is the lowest priority. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * An integer indicating the priority of a rule in the list. The priority must be a positive value - * between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the - * highest priority and 2147483647 is the lowest priority. - * @param priority priority or {@code null} for none - */ - public SecurityPolicyRule setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be - * specified for any other actions. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions getRateLimitOptions() { - return rateLimitOptions; - } - - /** - * Must be specified if the action is "rate_based_ban" or "throttle" or "fairshare". Cannot be - * specified for any other actions. - * @param rateLimitOptions rateLimitOptions or {@code null} for none - */ - public SecurityPolicyRule setRateLimitOptions(SecurityPolicyRuleRateLimitOptions rateLimitOptions) { - this.rateLimitOptions = rateLimitOptions; - return this; - } - - /** - * Parameters defining the redirect action. Cannot be specified for any other actions. This field - * is only supported in Global Security Policies of type CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleRedirectOptions getRedirectOptions() { - return redirectOptions; - } - - /** - * Parameters defining the redirect action. Cannot be specified for any other actions. This field - * is only supported in Global Security Policies of type CLOUD_ARMOR. - * @param redirectOptions redirectOptions or {@code null} for none - */ - public SecurityPolicyRule setRedirectOptions(SecurityPolicyRuleRedirectOptions redirectOptions) { - this.redirectOptions = redirectOptions; - return this; - } - - @Override - public SecurityPolicyRule set(String fieldName, Object value) { - return (SecurityPolicyRule) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRule clone() { - return (SecurityPolicyRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderAction.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderAction.java deleted file mode 100644 index af816a03914..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderAction.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleHttpHeaderAction. - * - *

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 SecurityPolicyRuleHttpHeaderAction extends com.google.api.client.json.GenericJson { - - /** - * The list of request headers to add or overwrite if they're already present. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestHeadersToAdds; - - /** - * The list of request headers to add or overwrite if they're already present. - * @return value or {@code null} for none - */ - public java.util.List getRequestHeadersToAdds() { - return requestHeadersToAdds; - } - - /** - * The list of request headers to add or overwrite if they're already present. - * @param requestHeadersToAdds requestHeadersToAdds or {@code null} for none - */ - public SecurityPolicyRuleHttpHeaderAction setRequestHeadersToAdds(java.util.List requestHeadersToAdds) { - this.requestHeadersToAdds = requestHeadersToAdds; - return this; - } - - @Override - public SecurityPolicyRuleHttpHeaderAction set(String fieldName, Object value) { - return (SecurityPolicyRuleHttpHeaderAction) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleHttpHeaderAction clone() { - return (SecurityPolicyRuleHttpHeaderAction) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java deleted file mode 100644 index 3aacbd6ad93..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. - * - *

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 SecurityPolicyRuleHttpHeaderActionHttpHeaderOption extends com.google.api.client.json.GenericJson { - - /** - * The name of the header to set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerName; - - /** - * The value to set the named header to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String headerValue; - - /** - * The name of the header to set. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderName() { - return headerName; - } - - /** - * The name of the header to set. - * @param headerName headerName or {@code null} for none - */ - public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption setHeaderName(java.lang.String headerName) { - this.headerName = headerName; - return this; - } - - /** - * The value to set the named header to. - * @return value or {@code null} for none - */ - public java.lang.String getHeaderValue() { - return headerValue; - } - - /** - * The value to set the named header to. - * @param headerValue headerValue or {@code null} for none - */ - public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption setHeaderValue(java.lang.String headerValue) { - this.headerValue = headerValue; - return this; - } - - @Override - public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption set(String fieldName, Object value) { - return (SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleHttpHeaderActionHttpHeaderOption clone() { - return (SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcher.java deleted file mode 100644 index afdc94d9ab8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcher.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a match condition that incoming traffic is evaluated against. Exactly one field must - * be specified. - * - *

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 SecurityPolicyRuleMatcher extends com.google.api.client.json.GenericJson { - - /** - * The configuration options available when specifying versioned_expr. This field must be - * specified if versioned_expr is specified and cannot be specified if versioned_expr is not - * specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleMatcherConfig config; - - /** - * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as - * origin.ip, source.region_code and contents in the request header. Expressions containing - * `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not - * supported in Edge Policies nor in Regional Policies. Expressions containing - * `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and - * are only supported in Global Security Policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Expr expr; - - /** - * The configuration options available when specifying a user defined CEVAL expression (i.e., - * 'expr'). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleMatcherExprOptions exprOptions; - - /** - * Preconfigured versioned expression. If this field is specified, config must also be specified. - * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must - * specify the corresponding src_ip_range field in config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String versionedExpr; - - /** - * The configuration options available when specifying versioned_expr. This field must be - * specified if versioned_expr is specified and cannot be specified if versioned_expr is not - * specified. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleMatcherConfig getConfig() { - return config; - } - - /** - * The configuration options available when specifying versioned_expr. This field must be - * specified if versioned_expr is specified and cannot be specified if versioned_expr is not - * specified. - * @param config config or {@code null} for none - */ - public SecurityPolicyRuleMatcher setConfig(SecurityPolicyRuleMatcherConfig config) { - this.config = config; - return this; - } - - /** - * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as - * origin.ip, source.region_code and contents in the request header. Expressions containing - * `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not - * supported in Edge Policies nor in Regional Policies. Expressions containing - * `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and - * are only supported in Global Security Policies. - * @return value or {@code null} for none - */ - public Expr getExpr() { - return expr; - } - - /** - * User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as - * origin.ip, source.region_code and contents in the request header. Expressions containing - * `evaluateThreatIntelligence` require a Cloud Armor Enterprise subscription and are not - * supported in Edge Policies nor in Regional Policies. Expressions containing - * `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and - * are only supported in Global Security Policies. - * @param expr expr or {@code null} for none - */ - public SecurityPolicyRuleMatcher setExpr(Expr expr) { - this.expr = expr; - return this; - } - - /** - * The configuration options available when specifying a user defined CEVAL expression (i.e., - * 'expr'). - * @return value or {@code null} for none - */ - public SecurityPolicyRuleMatcherExprOptions getExprOptions() { - return exprOptions; - } - - /** - * The configuration options available when specifying a user defined CEVAL expression (i.e., - * 'expr'). - * @param exprOptions exprOptions or {@code null} for none - */ - public SecurityPolicyRuleMatcher setExprOptions(SecurityPolicyRuleMatcherExprOptions exprOptions) { - this.exprOptions = exprOptions; - return this; - } - - /** - * Preconfigured versioned expression. If this field is specified, config must also be specified. - * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must - * specify the corresponding src_ip_range field in config. - * @return value or {@code null} for none - */ - public java.lang.String getVersionedExpr() { - return versionedExpr; - } - - /** - * Preconfigured versioned expression. If this field is specified, config must also be specified. - * Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must - * specify the corresponding src_ip_range field in config. - * @param versionedExpr versionedExpr or {@code null} for none - */ - public SecurityPolicyRuleMatcher setVersionedExpr(java.lang.String versionedExpr) { - this.versionedExpr = versionedExpr; - return this; - } - - @Override - public SecurityPolicyRuleMatcher set(String fieldName, Object value) { - return (SecurityPolicyRuleMatcher) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleMatcher clone() { - return (SecurityPolicyRuleMatcher) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherConfig.java deleted file mode 100644 index 6cc71d766cf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherConfig.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleMatcherConfig. - * - *

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 SecurityPolicyRuleMatcherConfig extends com.google.api.client.json.GenericJson { - - /** - * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcIpRanges; - - /** - * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. - * @return value or {@code null} for none - */ - public java.util.List getSrcIpRanges() { - return srcIpRanges; - } - - /** - * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. - * @param srcIpRanges srcIpRanges or {@code null} for none - */ - public SecurityPolicyRuleMatcherConfig setSrcIpRanges(java.util.List srcIpRanges) { - this.srcIpRanges = srcIpRanges; - return this; - } - - @Override - public SecurityPolicyRuleMatcherConfig set(String fieldName, Object value) { - return (SecurityPolicyRuleMatcherConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleMatcherConfig clone() { - return (SecurityPolicyRuleMatcherConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptions.java deleted file mode 100644 index 5379ae397c5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptions.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleMatcherExprOptions. - * - *

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 SecurityPolicyRuleMatcherExprOptions extends com.google.api.client.json.GenericJson { - - /** - * reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate - * reCAPTCHA tokens, this field has no effect. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions recaptchaOptions; - - /** - * reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate - * reCAPTCHA tokens, this field has no effect. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions getRecaptchaOptions() { - return recaptchaOptions; - } - - /** - * reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate - * reCAPTCHA tokens, this field has no effect. - * @param recaptchaOptions recaptchaOptions or {@code null} for none - */ - public SecurityPolicyRuleMatcherExprOptions setRecaptchaOptions(SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions recaptchaOptions) { - this.recaptchaOptions = recaptchaOptions; - return this; - } - - @Override - public SecurityPolicyRuleMatcherExprOptions set(String fieldName, Object value) { - return (SecurityPolicyRuleMatcherExprOptions) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleMatcherExprOptions clone() { - return (SecurityPolicyRuleMatcherExprOptions) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java deleted file mode 100644 index fc0689f878c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. - * - *

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 SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions extends com.google.api.client.json.GenericJson { - - /** - * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided - * site keys need to be created from reCAPTCHA API under the same project where the security - * policy is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List actionTokenSiteKeys; - - /** - * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided - * site keys need to be created from reCAPTCHA API under the same project where the security - * policy is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sessionTokenSiteKeys; - - /** - * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided - * site keys need to be created from reCAPTCHA API under the same project where the security - * policy is created. - * @return value or {@code null} for none - */ - public java.util.List getActionTokenSiteKeys() { - return actionTokenSiteKeys; - } - - /** - * A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided - * site keys need to be created from reCAPTCHA API under the same project where the security - * policy is created. - * @param actionTokenSiteKeys actionTokenSiteKeys or {@code null} for none - */ - public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions setActionTokenSiteKeys(java.util.List actionTokenSiteKeys) { - this.actionTokenSiteKeys = actionTokenSiteKeys; - return this; - } - - /** - * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided - * site keys need to be created from reCAPTCHA API under the same project where the security - * policy is created. - * @return value or {@code null} for none - */ - public java.util.List getSessionTokenSiteKeys() { - return sessionTokenSiteKeys; - } - - /** - * A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided - * site keys need to be created from reCAPTCHA API under the same project where the security - * policy is created. - * @param sessionTokenSiteKeys sessionTokenSiteKeys or {@code null} for none - */ - public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions setSessionTokenSiteKeys(java.util.List sessionTokenSiteKeys) { - this.sessionTokenSiteKeys = sessionTokenSiteKeys; - return this; - } - - @Override - public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions set(String fieldName, Object value) { - return (SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions clone() { - return (SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcher.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcher.java deleted file mode 100644 index d63166a8aa6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcher.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a match condition that incoming network traffic is evaluated against. - * - *

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 SecurityPolicyRuleNetworkMatcher extends com.google.api.client.json.GenericJson { - - /** - * Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destIpRanges; - - /** - * Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number - * (e.g. "80") or range (e.g. "0-1023"). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List destPorts; - - /** - * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit - * unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol - * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ipProtocols; - - /** - * BGP Autonomous System Number associated with the source IP address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcAsns; - - /** - * Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcIpRanges; - - /** - * Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number - * (e.g. "80") or range (e.g. "0-1023"). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcPorts; - - /** - * Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List srcRegionCodes; - - /** - * User-defined fields. Each element names a defined field and lists the matching values for that - * field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userDefinedFields; - - /** - * Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. - * @return value or {@code null} for none - */ - public java.util.List getDestIpRanges() { - return destIpRanges; - } - - /** - * Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. - * @param destIpRanges destIpRanges or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setDestIpRanges(java.util.List destIpRanges) { - this.destIpRanges = destIpRanges; - return this; - } - - /** - * Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number - * (e.g. "80") or range (e.g. "0-1023"). - * @return value or {@code null} for none - */ - public java.util.List getDestPorts() { - return destPorts; - } - - /** - * Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number - * (e.g. "80") or range (e.g. "0-1023"). - * @param destPorts destPorts or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setDestPorts(java.util.List destPorts) { - this.destPorts = destPorts; - return this; - } - - /** - * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit - * unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol - * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". - * @return value or {@code null} for none - */ - public java.util.List getIpProtocols() { - return ipProtocols; - } - - /** - * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit - * unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol - * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp". - * @param ipProtocols ipProtocols or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setIpProtocols(java.util.List ipProtocols) { - this.ipProtocols = ipProtocols; - return this; - } - - /** - * BGP Autonomous System Number associated with the source IP address. - * @return value or {@code null} for none - */ - public java.util.List getSrcAsns() { - return srcAsns; - } - - /** - * BGP Autonomous System Number associated with the source IP address. - * @param srcAsns srcAsns or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setSrcAsns(java.util.List srcAsns) { - this.srcAsns = srcAsns; - return this; - } - - /** - * Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. - * @return value or {@code null} for none - */ - public java.util.List getSrcIpRanges() { - return srcIpRanges; - } - - /** - * Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. - * @param srcIpRanges srcIpRanges or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setSrcIpRanges(java.util.List srcIpRanges) { - this.srcIpRanges = srcIpRanges; - return this; - } - - /** - * Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number - * (e.g. "80") or range (e.g. "0-1023"). - * @return value or {@code null} for none - */ - public java.util.List getSrcPorts() { - return srcPorts; - } - - /** - * Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number - * (e.g. "80") or range (e.g. "0-1023"). - * @param srcPorts srcPorts or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setSrcPorts(java.util.List srcPorts) { - this.srcPorts = srcPorts; - return this; - } - - /** - * Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. - * @return value or {@code null} for none - */ - public java.util.List getSrcRegionCodes() { - return srcRegionCodes; - } - - /** - * Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. - * @param srcRegionCodes srcRegionCodes or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setSrcRegionCodes(java.util.List srcRegionCodes) { - this.srcRegionCodes = srcRegionCodes; - return this; - } - - /** - * User-defined fields. Each element names a defined field and lists the matching values for that - * field. - * @return value or {@code null} for none - */ - public java.util.List getUserDefinedFields() { - return userDefinedFields; - } - - /** - * User-defined fields. Each element names a defined field and lists the matching values for that - * field. - * @param userDefinedFields userDefinedFields or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcher setUserDefinedFields(java.util.List userDefinedFields) { - this.userDefinedFields = userDefinedFields; - return this; - } - - @Override - public SecurityPolicyRuleNetworkMatcher set(String fieldName, Object value) { - return (SecurityPolicyRuleNetworkMatcher) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleNetworkMatcher clone() { - return (SecurityPolicyRuleNetworkMatcher) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java deleted file mode 100644 index 39af739af55..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch. - * - *

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 SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch extends com.google.api.client.json.GenericJson { - - /** - * Name of the user-defined field, as given in the definition. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal - * (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List values; - - /** - * Name of the user-defined field, as given in the definition. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the user-defined field, as given in the definition. - * @param name name or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal - * (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). - * @return value or {@code null} for none - */ - public java.util.List getValues() { - return values; - } - - /** - * Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal - * (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). - * @param values values or {@code null} for none - */ - public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch setValues(java.util.List values) { - this.values = values; - return this; - } - - @Override - public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch set(String fieldName, Object value) { - return (SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch clone() { - return (SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch) super.clone(); - } - -} From baa993e47d4eb14d8d09c7e72215b7338f12e4cd Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:43 -0700 Subject: [PATCH 21/23] chore: regenerate compute client --- ...urityPolicyRulePreconfiguredWafConfig.java | 66 - ...cyRulePreconfiguredWafConfigExclusion.java | 234 ---- ...nfiguredWafConfigExclusionFieldParams.java | 90 -- .../SecurityPolicyRuleRateLimitOptions.java | 384 ----- ...uleRateLimitOptionsEnforceOnKeyConfig.java | 165 --- ...tyPolicyRuleRateLimitOptionsThreshold.java | 90 -- .../SecurityPolicyRuleRedirectOptions.java | 99 -- .../model/SecurityPolicyUserDefinedField.java | 189 --- .../preview/model/SecuritySettings.java | 174 --- .../preview/model/SerialPortOutput.java | 183 --- .../compute/preview/model/ServerBinding.java | 63 - .../compute/preview/model/ServiceAccount.java | 90 -- .../preview/model/ServiceAttachment.java | 748 ---------- .../ServiceAttachmentAggregatedList.java | 401 ------ .../ServiceAttachmentConnectedEndpoint.java | 213 --- ...ServiceAttachmentConsumerProjectLimit.java | 138 -- .../preview/model/ServiceAttachmentList.java | 386 ----- .../model/ServiceAttachmentsScopedList.java | 278 ---- ...mmonInstanceMetadataOperationMetadata.java | 93 -- ...ationMetadataPerLocationOperationInfo.java | 93 -- .../compute/preview/model/ShareSettings.java | 93 -- .../model/ShareSettingsProjectConfig.java | 66 - .../preview/model/ShieldedInstanceConfig.java | 114 -- .../model/ShieldedInstanceIdentity.java | 165 --- .../model/ShieldedInstanceIdentityEntry.java | 90 -- .../ShieldedInstanceIntegrityPolicy.java | 69 - .../compute/preview/model/SignedUrlKey.java | 105 -- .../compute/preview/model/Snapshot.java | 1243 ----------------- .../model/SnapshotGroupParameters.java | 132 -- .../compute/preview/model/SnapshotList.java | 383 ----- .../compute/preview/model/SnapshotParams.java | 78 -- .../preview/model/SnapshotSettings.java | 93 -- .../model/SnapshotSettingsAccessLocation.java | 90 -- ...ccessLocationAccessLocationPreference.java | 66 - ...apshotSettingsStorageLocationSettings.java | 93 -- ...tionSettingsStorageLocationPreference.java | 69 - .../model/SnapshotUpdateKmsKeyRequest.java | 78 -- .../model/SourceDiskEncryptionKey.java | 102 -- .../preview/model/SourceInstanceParams.java | 79 -- .../model/SourceInstanceProperties.java | 475 ------- .../compute/preview/model/SslCertificate.java | 429 ------ .../model/SslCertificateAggregatedList.java | 404 ------ .../preview/model/SslCertificateList.java | 383 ----- .../SslCertificateManagedSslCertificate.java | 123 -- ...lCertificateSelfManagedSslCertificate.java | 93 -- .../model/SslCertificatesScopedList.java | 278 ---- .../model/SslPoliciesAggregatedList.java | 425 ------ .../preview/model/SslPoliciesList.java | 380 ----- ...PoliciesListAvailableFeaturesResponse.java | 63 - .../preview/model/SslPoliciesScopedList.java | 272 ---- .../compute/preview/model/SslPolicy.java | 681 --------- .../preview/model/SslPolicyReference.java | 63 - .../compute/preview/model/StatefulPolicy.java | 63 - .../model/StatefulPolicyPreservedState.java | 123 -- ...tatefulPolicyPreservedStateDiskDevice.java | 75 - ...StatefulPolicyPreservedStateNetworkIp.java | 72 - .../compute/preview/model/Status.java | 129 -- .../compute/preview/model/StoragePool.java | 667 --------- .../model/StoragePoolAggregatedList.java | 425 ------ .../preview/model/StoragePoolDisk.java | 306 ---- ...oragePoolExapoolProvisionedCapacityGb.java | 114 -- .../preview/model/StoragePoolList.java | 434 ------ .../preview/model/StoragePoolListDisks.java | 434 ------ .../preview/model/StoragePoolParams.java | 78 -- .../model/StoragePoolResourceStatus.java | 396 ------ .../model/StoragePoolShareSettings.java | 66 - ...StoragePoolShareSettingsProjectConfig.java | 66 - .../preview/model/StoragePoolType.java | 456 ------ .../model/StoragePoolTypeAggregatedList.java | 377 ----- .../preview/model/StoragePoolTypeList.java | 386 ----- .../model/StoragePoolTypesScopedList.java | 282 ---- .../preview/model/StoragePoolsScopedList.java | 282 ---- .../compute/preview/model/Subnetwork.java | 1104 --------------- .../model/SubnetworkAggregatedList.java | 404 ------ .../compute/preview/model/SubnetworkList.java | 386 ----- .../preview/model/SubnetworkLogConfig.java | 225 --- .../preview/model/SubnetworkParams.java | 84 -- .../model/SubnetworkSecondaryRange.java | 207 --- .../model/SubnetworkUtilizationDetails.java | 139 -- ...workUtilizationDetailsIPV4Utilization.java | 108 -- ...workUtilizationDetailsIPV6Utilization.java | 84 -- .../SubnetworksExpandIpCidrRangeRequest.java | 72 - .../preview/model/SubnetworksScopedList.java | 278 ---- .../model/SubnetworksScopedWarning.java | 272 ---- ...tworksSetPrivateIpGoogleAccessRequest.java | 63 - .../compute/preview/model/Subsetting.java | 64 - .../compute/preview/model/TCPHealthCheck.java | 249 ---- .../services/compute/preview/model/Tags.java | 143 -- .../preview/model/TargetGrpcProxy.java | 374 ----- .../preview/model/TargetGrpcProxyList.java | 386 ----- .../model/TargetHttpProxiesScopedList.java | 272 ---- .../preview/model/TargetHttpProxy.java | 435 ------ .../model/TargetHttpProxyAggregatedList.java | 204 --- .../preview/model/TargetHttpProxyList.java | 386 ----- .../model/TargetHttpsProxiesScopedList.java | 272 ---- ...tHttpsProxiesSetCertificateMapRequest.java | 75 - ...getHttpsProxiesSetQuicOverrideRequest.java | 66 - ...HttpsProxiesSetSslCertificatesRequest.java | 69 - .../preview/model/TargetHttpsProxy.java | 810 ----------- .../model/TargetHttpsProxyAggregatedList.java | 410 ------ 100 files changed, 24326 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptions.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsThreshold.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRedirectOptions.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyUserDefinedField.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecuritySettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SerialPortOutput.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServerBinding.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAccount.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachment.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConnectedEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConsumerProjectLimit.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadata.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettingsProjectConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentity.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentityEntry.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIntegrityPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SignedUrlKey.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Snapshot.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotGroupParameters.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocationAccessLocationPreference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceDiskEncryptionKey.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificate.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateManagedSslCertificate.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateSelfManagedSslCertificate.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificatesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesListAvailableFeaturesResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicyReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedState.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateDiskDevice.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateNetworkIp.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Status.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePool.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolDisk.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolExapoolProvisionedCapacityGb.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolListDisks.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettingsProjectConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolType.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subnetwork.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkLogConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkSecondaryRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetails.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV4Utilization.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV6Utilization.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksExpandIpCidrRangeRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedWarning.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksSetPrivateIpGoogleAccessRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subsetting.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TCPHealthCheck.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Tags.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxiesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetCertificateMapRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetQuicOverrideRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetSslCertificatesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyAggregatedList.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfig.java deleted file mode 100644 index 39ca8077d8a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfig.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRulePreconfiguredWafConfig. - * - *

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 SecurityPolicyRulePreconfiguredWafConfig extends com.google.api.client.json.GenericJson { - - /** - * A list of exclusions to apply during preconfigured WAF evaluation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List exclusions; - - /** - * A list of exclusions to apply during preconfigured WAF evaluation. - * @return value or {@code null} for none - */ - public java.util.List getExclusions() { - return exclusions; - } - - /** - * A list of exclusions to apply during preconfigured WAF evaluation. - * @param exclusions exclusions or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfig setExclusions(java.util.List exclusions) { - this.exclusions = exclusions; - return this; - } - - @Override - public SecurityPolicyRulePreconfiguredWafConfig set(String fieldName, Object value) { - return (SecurityPolicyRulePreconfiguredWafConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRulePreconfiguredWafConfig clone() { - return (SecurityPolicyRulePreconfiguredWafConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java deleted file mode 100644 index a1be401597c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRulePreconfiguredWafConfigExclusion. - * - *

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 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. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestCookiesToExclude; - - /** - * A list of request header names whose value will be excluded from inspection during - * preconfigured WAF evaluation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestHeadersToExclude; - - /** - * A list of request query parameter names whose value will be excluded from inspection during - * preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST - * body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestQueryParamsToExclude; - - /** - * A list of request URIs from the request line to be excluded from inspection during - * preconfigured WAF evaluation. When specifying this field, the query or fragment part should be - * excluded. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List requestUrisToExclude; - - /** - * A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If - * omitted, it refers to all the rule IDs under the WAF rule set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetRuleIds; - - /** - * Target WAF rule set to apply the preconfigured WAF exclusion. - * The value may be {@code null}. - */ - @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. - * @return value or {@code null} for none - */ - public java.util.List getRequestCookiesToExclude() { - return requestCookiesToExclude; - } - - /** - * A list of request cookie names whose value will be excluded from inspection during - * preconfigured WAF evaluation. - * @param requestCookiesToExclude requestCookiesToExclude or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestCookiesToExclude(java.util.List requestCookiesToExclude) { - this.requestCookiesToExclude = requestCookiesToExclude; - return this; - } - - /** - * A list of request header names whose value will be excluded from inspection during - * preconfigured WAF evaluation. - * @return value or {@code null} for none - */ - public java.util.List getRequestHeadersToExclude() { - return requestHeadersToExclude; - } - - /** - * A list of request header names whose value will be excluded from inspection during - * preconfigured WAF evaluation. - * @param requestHeadersToExclude requestHeadersToExclude or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestHeadersToExclude(java.util.List requestHeadersToExclude) { - this.requestHeadersToExclude = requestHeadersToExclude; - return this; - } - - /** - * A list of request query parameter names whose value will be excluded from inspection during - * preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST - * body. - * @return value or {@code null} for none - */ - public java.util.List getRequestQueryParamsToExclude() { - return requestQueryParamsToExclude; - } - - /** - * A list of request query parameter names whose value will be excluded from inspection during - * preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST - * body. - * @param requestQueryParamsToExclude requestQueryParamsToExclude or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestQueryParamsToExclude(java.util.List requestQueryParamsToExclude) { - this.requestQueryParamsToExclude = requestQueryParamsToExclude; - return this; - } - - /** - * A list of request URIs from the request line to be excluded from inspection during - * preconfigured WAF evaluation. When specifying this field, the query or fragment part should be - * excluded. - * @return value or {@code null} for none - */ - public java.util.List getRequestUrisToExclude() { - return requestUrisToExclude; - } - - /** - * A list of request URIs from the request line to be excluded from inspection during - * preconfigured WAF evaluation. When specifying this field, the query or fragment part should be - * excluded. - * @param requestUrisToExclude requestUrisToExclude or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestUrisToExclude(java.util.List requestUrisToExclude) { - this.requestUrisToExclude = requestUrisToExclude; - return this; - } - - /** - * A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If - * omitted, it refers to all the rule IDs under the WAF rule set. - * @return value or {@code null} for none - */ - public java.util.List getTargetRuleIds() { - return targetRuleIds; - } - - /** - * A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If - * omitted, it refers to all the rule IDs under the WAF rule set. - * @param targetRuleIds targetRuleIds or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setTargetRuleIds(java.util.List targetRuleIds) { - this.targetRuleIds = targetRuleIds; - return this; - } - - /** - * Target WAF rule set to apply the preconfigured WAF exclusion. - * @return value or {@code null} for none - */ - public java.lang.String getTargetRuleSet() { - return targetRuleSet; - } - - /** - * Target WAF rule set to apply the preconfigured WAF exclusion. - * @param targetRuleSet targetRuleSet or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setTargetRuleSet(java.lang.String targetRuleSet) { - this.targetRuleSet = targetRuleSet; - return this; - } - - @Override - public SecurityPolicyRulePreconfiguredWafConfigExclusion set(String fieldName, Object value) { - return (SecurityPolicyRulePreconfiguredWafConfigExclusion) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRulePreconfiguredWafConfigExclusion clone() { - return (SecurityPolicyRulePreconfiguredWafConfigExclusion) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java deleted file mode 100644 index 9a4943f84c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams. - * - *

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 SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams extends com.google.api.client.json.GenericJson { - - /** - * The match operator for the field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String op; - - /** - * The value of the field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String val; - - /** - * The match operator for the field. - * @return value or {@code null} for none - */ - public java.lang.String getOp() { - return op; - } - - /** - * The match operator for the field. - * @param op op or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams setOp(java.lang.String op) { - this.op = op; - return this; - } - - /** - * The value of the field. - * @return value or {@code null} for none - */ - public java.lang.String getVal() { - return val; - } - - /** - * The value of the field. - * @param val val or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams setVal(java.lang.String val) { - this.val = val; - return this; - } - - @Override - public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams set(String fieldName, Object value) { - return (SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams clone() { - return (SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptions.java deleted file mode 100644 index b8fb19e2045..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptions.java +++ /dev/null @@ -1,384 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleRateLimitOptions. - * - *

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 SecurityPolicyRuleRateLimitOptions extends com.google.api.client.json.GenericJson { - - /** - * Can only be specified if the action for the rule is "rate_based_ban". If specified, determines - * the time (in seconds) the traffic will continue to be banned by the rate limit after the rate - * falls below the threshold. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer banDurationSec; - - /** - * Can only be specified if the action for the rule is "rate_based_ban". If specified, the key - * will be banned for the configured 'ban_duration_sec' when the number of requests that exceed - * the 'rate_limit_threshold' also exceed this 'ban_threshold'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleRateLimitOptionsThreshold banThreshold; - - /** - * Action to take for requests that are under the configured rate limit threshold. Valid option is - * "allow" only. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String conformAction; - - /** - * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A - * single rate limit threshold is applied to all the requests matching this rule. This is the - * default value if "enforceOnKey" is not configured. - IP: The source IP address of the - * request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value - * of the HTTP header whose name is configured under "enforceOnKeyName". The key value is - * truncated to the first 128 bytes of the header value. If no such header is present in the - * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the - * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP - * header. If no such header is present or the value is not a valid IP, the key defaults to the - * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP - * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the - * first 128 bytes of the cookie value. If no such cookie is present in the request, the key - * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is - * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the - * HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to - * ALL on a HTTP session. - REGION_CODE: The country/region from which the request - * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using - * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The - * IP address of the originating client, which is resolved based on "userIpRequestHeaders" - * configured with the security policy. If there is no "userIpRequestHeaders" configuration or - * an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The autonomous - * system number of the originating client. If not available, the key type defaults toALL. - - * TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or - * HTTP/3. If not available, the key type defaults to ALL. - * - * For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is - * enforced for all the requests matching the rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enforceOnKey; - - /** - * If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated - * as the key on which ratelimit threshold/action is enforced. You can specify up to 3 - * enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be - * specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List enforceOnKeyConfigs; - - /** - * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the - * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose - * value is taken as the key value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enforceOnKeyName; - - /** - * Action to take for requests that are above the configured rate limit threshold, to either deny - * with a specified HTTP response code, or redirect to a different endpoint. Valid options are - * `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, - * where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is - * only supported in Global Security Policies of type CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String exceedAction; - - /** - * Parameters defining the redirect action that is used as the exceed action. Cannot be specified - * if the exceed action is not redirect. This field is only supported in Global Security Policies - * of type CLOUD_ARMOR. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleRedirectOptions exceedRedirectOptions; - - /** - * Threshold at which to begin ratelimiting. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold; - - /** - * Can only be specified if the action for the rule is "rate_based_ban". If specified, determines - * the time (in seconds) the traffic will continue to be banned by the rate limit after the rate - * falls below the threshold. - * @return value or {@code null} for none - */ - public java.lang.Integer getBanDurationSec() { - return banDurationSec; - } - - /** - * Can only be specified if the action for the rule is "rate_based_ban". If specified, determines - * the time (in seconds) the traffic will continue to be banned by the rate limit after the rate - * falls below the threshold. - * @param banDurationSec banDurationSec or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setBanDurationSec(java.lang.Integer banDurationSec) { - this.banDurationSec = banDurationSec; - return this; - } - - /** - * Can only be specified if the action for the rule is "rate_based_ban". If specified, the key - * will be banned for the configured 'ban_duration_sec' when the number of requests that exceed - * the 'rate_limit_threshold' also exceed this 'ban_threshold'. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptionsThreshold getBanThreshold() { - return banThreshold; - } - - /** - * Can only be specified if the action for the rule is "rate_based_ban". If specified, the key - * will be banned for the configured 'ban_duration_sec' when the number of requests that exceed - * the 'rate_limit_threshold' also exceed this 'ban_threshold'. - * @param banThreshold banThreshold or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold banThreshold) { - this.banThreshold = banThreshold; - return this; - } - - /** - * Action to take for requests that are under the configured rate limit threshold. Valid option is - * "allow" only. - * @return value or {@code null} for none - */ - public java.lang.String getConformAction() { - return conformAction; - } - - /** - * Action to take for requests that are under the configured rate limit threshold. Valid option is - * "allow" only. - * @param conformAction conformAction or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setConformAction(java.lang.String conformAction) { - this.conformAction = conformAction; - return this; - } - - /** - * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A - * single rate limit threshold is applied to all the requests matching this rule. This is the - * default value if "enforceOnKey" is not configured. - IP: The source IP address of the - * request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value - * of the HTTP header whose name is configured under "enforceOnKeyName". The key value is - * truncated to the first 128 bytes of the header value. If no such header is present in the - * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the - * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP - * header. If no such header is present or the value is not a valid IP, the key defaults to the - * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP - * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the - * first 128 bytes of the cookie value. If no such cookie is present in the request, the key - * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is - * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the - * HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to - * ALL on a HTTP session. - REGION_CODE: The country/region from which the request - * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using - * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The - * IP address of the originating client, which is resolved based on "userIpRequestHeaders" - * configured with the security policy. If there is no "userIpRequestHeaders" configuration or - * an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The autonomous - * system number of the originating client. If not available, the key type defaults toALL. - - * TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or - * HTTP/3. If not available, the key type defaults to ALL. - * - * For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is - * enforced for all the requests matching the rule. - * @return value or {@code null} for none - */ - public java.lang.String getEnforceOnKey() { - return enforceOnKey; - } - - /** - * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A - * single rate limit threshold is applied to all the requests matching this rule. This is the - * default value if "enforceOnKey" is not configured. - IP: The source IP address of the - * request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value - * of the HTTP header whose name is configured under "enforceOnKeyName". The key value is - * truncated to the first 128 bytes of the header value. If no such header is present in the - * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the - * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP - * header. If no such header is present or the value is not a valid IP, the key defaults to the - * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP - * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the - * first 128 bytes of the cookie value. If no such cookie is present in the request, the key - * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is - * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the - * HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to - * ALL on a HTTP session. - REGION_CODE: The country/region from which the request - * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using - * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The - * IP address of the originating client, which is resolved based on "userIpRequestHeaders" - * configured with the security policy. If there is no "userIpRequestHeaders" configuration or - * an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The autonomous - * system number of the originating client. If not available, the key type defaults toALL. - - * TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or - * HTTP/3. If not available, the key type defaults to ALL. - * - * For "fairshare" action, this value is limited to ALL i.e. a single rate limit threshold is - * enforced for all the requests matching the rule. - * @param enforceOnKey enforceOnKey or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setEnforceOnKey(java.lang.String enforceOnKey) { - this.enforceOnKey = enforceOnKey; - return this; - } - - /** - * If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated - * as the key on which ratelimit threshold/action is enforced. You can specify up to 3 - * enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be - * specified. - * @return value or {@code null} for none - */ - public java.util.List getEnforceOnKeyConfigs() { - return enforceOnKeyConfigs; - } - - /** - * If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated - * as the key on which ratelimit threshold/action is enforced. You can specify up to 3 - * enforce_on_key_configs. If enforce_on_key_configs is specified, enforce_on_key must not be - * specified. - * @param enforceOnKeyConfigs enforceOnKeyConfigs or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setEnforceOnKeyConfigs(java.util.List enforceOnKeyConfigs) { - this.enforceOnKeyConfigs = enforceOnKeyConfigs; - return this; - } - - /** - * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the - * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose - * value is taken as the key value. - * @return value or {@code null} for none - */ - public java.lang.String getEnforceOnKeyName() { - return enforceOnKeyName; - } - - /** - * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the - * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose - * value is taken as the key value. - * @param enforceOnKeyName enforceOnKeyName or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setEnforceOnKeyName(java.lang.String enforceOnKeyName) { - this.enforceOnKeyName = enforceOnKeyName; - return this; - } - - /** - * Action to take for requests that are above the configured rate limit threshold, to either deny - * with a specified HTTP response code, or redirect to a different endpoint. Valid options are - * `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, - * where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is - * only supported in Global Security Policies of type CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public java.lang.String getExceedAction() { - return exceedAction; - } - - /** - * Action to take for requests that are above the configured rate limit threshold, to either deny - * with a specified HTTP response code, or redirect to a different endpoint. Valid options are - * `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, - * where the redirect parameters come from `exceedRedirectOptions` below. The `redirect` action is - * only supported in Global Security Policies of type CLOUD_ARMOR. - * @param exceedAction exceedAction or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setExceedAction(java.lang.String exceedAction) { - this.exceedAction = exceedAction; - return this; - } - - /** - * Parameters defining the redirect action that is used as the exceed action. Cannot be specified - * if the exceed action is not redirect. This field is only supported in Global Security Policies - * of type CLOUD_ARMOR. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleRedirectOptions getExceedRedirectOptions() { - return exceedRedirectOptions; - } - - /** - * Parameters defining the redirect action that is used as the exceed action. Cannot be specified - * if the exceed action is not redirect. This field is only supported in Global Security Policies - * of type CLOUD_ARMOR. - * @param exceedRedirectOptions exceedRedirectOptions or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setExceedRedirectOptions(SecurityPolicyRuleRedirectOptions exceedRedirectOptions) { - this.exceedRedirectOptions = exceedRedirectOptions; - return this; - } - - /** - * Threshold at which to begin ratelimiting. - * @return value or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptionsThreshold getRateLimitThreshold() { - return rateLimitThreshold; - } - - /** - * Threshold at which to begin ratelimiting. - * @param rateLimitThreshold rateLimitThreshold or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptions setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold) { - this.rateLimitThreshold = rateLimitThreshold; - return this; - } - - @Override - public SecurityPolicyRuleRateLimitOptions set(String fieldName, Object value) { - return (SecurityPolicyRuleRateLimitOptions) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleRateLimitOptions clone() { - return (SecurityPolicyRuleRateLimitOptions) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java deleted file mode 100644 index 3ad15a449cc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig. - * - *

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 SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig extends com.google.api.client.json.GenericJson { - - /** - * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the - * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose - * value is taken as the key value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enforceOnKeyName; - - /** - * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A - * single rate limit threshold is applied to all the requests matching this rule. This is the - * default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of - * the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The - * value of the HTTP header whose name is configured under "enforceOnKeyName". The key value - * is truncated to the first 128 bytes of the header value. If no such header is present in the - * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the - * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP - * header. If no such header is present or the value is not a valid IP, the key defaults to the - * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP - * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the - * first 128 bytes of the cookie value. If no such cookie is present in the request, the key - * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is - * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of - * the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults - * to ALL on a HTTP session. - REGION_CODE: The country/region from which the request - * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using - * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The - * IP address of the originating client, which is resolved based on "userIpRequestHeaders" - * configured with the security policy. If there is no "userIpRequestHeaders" configuration - * or an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The - * autonomous system number of the originating client. If not available, the key type defaults - * toALL. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, - * HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enforceOnKeyType; - - /** - * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the - * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose - * value is taken as the key value. - * @return value or {@code null} for none - */ - public java.lang.String getEnforceOnKeyName() { - return enforceOnKeyName; - } - - /** - * Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the - * HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose - * value is taken as the key value. - * @param enforceOnKeyName enforceOnKeyName or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig setEnforceOnKeyName(java.lang.String enforceOnKeyName) { - this.enforceOnKeyName = enforceOnKeyName; - return this; - } - - /** - * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A - * single rate limit threshold is applied to all the requests matching this rule. This is the - * default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of - * the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The - * value of the HTTP header whose name is configured under "enforceOnKeyName". The key value - * is truncated to the first 128 bytes of the header value. If no such header is present in the - * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the - * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP - * header. If no such header is present or the value is not a valid IP, the key defaults to the - * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP - * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the - * first 128 bytes of the cookie value. If no such cookie is present in the request, the key - * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is - * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of - * the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults - * to ALL on a HTTP session. - REGION_CODE: The country/region from which the request - * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using - * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The - * IP address of the originating client, which is resolved based on "userIpRequestHeaders" - * configured with the security policy. If there is no "userIpRequestHeaders" configuration - * or an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The - * autonomous system number of the originating client. If not available, the key type defaults - * toALL. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, - * HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - * @return value or {@code null} for none - */ - public java.lang.String getEnforceOnKeyType() { - return enforceOnKeyType; - } - - /** - * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A - * single rate limit threshold is applied to all the requests matching this rule. This is the - * default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of - * the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The - * value of the HTTP header whose name is configured under "enforceOnKeyName". The key value - * is truncated to the first 128 bytes of the header value. If no such header is present in the - * request, the key type defaults toALL. - XFF_IP: The first IP address (i.e. the - * originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP - * header. If no such header is present or the value is not a valid IP, the key defaults to the - * source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP - * cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the - * first 128 bytes of the cookie value. If no such cookie is present in the request, the key - * type defaults toALL. - HTTP_PATH: The URL path of the HTTP request. The key value is - * truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of - * the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults - * to ALL on a HTTP session. - REGION_CODE: The country/region from which the request - * originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using - * HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The - * IP address of the originating client, which is resolved based on "userIpRequestHeaders" - * configured with the security policy. If there is no "userIpRequestHeaders" configuration - * or an IP address cannot be resolved from it, the key type defaults toIP. - ASN: The - * autonomous system number of the originating client. If not available, the key type defaults - * toALL. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client connects using HTTPS, - * HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - * @param enforceOnKeyType enforceOnKeyType or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig setEnforceOnKeyType(java.lang.String enforceOnKeyType) { - this.enforceOnKeyType = enforceOnKeyType; - return this; - } - - @Override - public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig set(String fieldName, Object value) { - return (SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig clone() { - return (SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsThreshold.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsThreshold.java deleted file mode 100644 index b36f254da8d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRateLimitOptionsThreshold.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleRateLimitOptionsThreshold. - * - *

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 SecurityPolicyRuleRateLimitOptionsThreshold extends com.google.api.client.json.GenericJson { - - /** - * Number of HTTP(S) requests for calculating the threshold. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer count; - - /** - * Interval over which the threshold is computed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer intervalSec; - - /** - * Number of HTTP(S) requests for calculating the threshold. - * @return value or {@code null} for none - */ - public java.lang.Integer getCount() { - return count; - } - - /** - * Number of HTTP(S) requests for calculating the threshold. - * @param count count or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptionsThreshold setCount(java.lang.Integer count) { - this.count = count; - return this; - } - - /** - * Interval over which the threshold is computed. - * @return value or {@code null} for none - */ - public java.lang.Integer getIntervalSec() { - return intervalSec; - } - - /** - * Interval over which the threshold is computed. - * @param intervalSec intervalSec or {@code null} for none - */ - public SecurityPolicyRuleRateLimitOptionsThreshold setIntervalSec(java.lang.Integer intervalSec) { - this.intervalSec = intervalSec; - return this; - } - - @Override - public SecurityPolicyRuleRateLimitOptionsThreshold set(String fieldName, Object value) { - return (SecurityPolicyRuleRateLimitOptionsThreshold) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleRateLimitOptionsThreshold clone() { - return (SecurityPolicyRuleRateLimitOptionsThreshold) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRedirectOptions.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRedirectOptions.java deleted file mode 100644 index 14c8ab41f34..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyRuleRedirectOptions.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyRuleRedirectOptions. - * - *

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 SecurityPolicyRuleRedirectOptions extends com.google.api.client.json.GenericJson { - - /** - * Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be - * specified for GOOGLE_RECAPTCHA. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String target; - - /** - * Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to - * reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL - * via a 302 response. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be - * specified for GOOGLE_RECAPTCHA. - * @return value or {@code null} for none - */ - public java.lang.String getTarget() { - return target; - } - - /** - * Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be - * specified for GOOGLE_RECAPTCHA. - * @param target target or {@code null} for none - */ - public SecurityPolicyRuleRedirectOptions setTarget(java.lang.String target) { - this.target = target; - return this; - } - - /** - * Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to - * reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL - * via a 302 response. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Type of the redirect action. Possible values are: - GOOGLE_RECAPTCHA: redirect to - * reCAPTCHA for manual challenge assessment. - EXTERNAL_302: redirect to a different URL - * via a 302 response. - * @param type type or {@code null} for none - */ - public SecurityPolicyRuleRedirectOptions setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public SecurityPolicyRuleRedirectOptions set(String fieldName, Object value) { - return (SecurityPolicyRuleRedirectOptions) super.set(fieldName, value); - } - - @Override - public SecurityPolicyRuleRedirectOptions clone() { - return (SecurityPolicyRuleRedirectOptions) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyUserDefinedField.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyUserDefinedField.java deleted file mode 100644 index 587a8dcca44..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecurityPolicyUserDefinedField.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SecurityPolicyUserDefinedField. - * - *

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 SecurityPolicyUserDefinedField extends com.google.api.client.json.GenericJson { - - /** - * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to - * the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - - * TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 - * extension headers. Not present for non-first fragments. - UDP: Points to the beginning of - * the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for - * non-first fragments. - * - * required - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String base; - - /** - * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. - * Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network - * byte order) corresponds to the least significant byte of the mask. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mask; - - /** - * The name of this field. Must be unique within the policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Offset of the first byte of the field (in network byte order) relative to 'base'. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer offset; - - /** - * Size of the field in bytes. Valid values: 1-4. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** - * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to - * the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - - * TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 - * extension headers. Not present for non-first fragments. - UDP: Points to the beginning of - * the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for - * non-first fragments. - * - * required - * @return value or {@code null} for none - */ - public java.lang.String getBase() { - return base; - } - - /** - * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to - * the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - - * TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 - * extension headers. Not present for non-first fragments. - UDP: Points to the beginning of - * the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for - * non-first fragments. - * - * required - * @param base base or {@code null} for none - */ - public SecurityPolicyUserDefinedField setBase(java.lang.String base) { - this.base = base; - return this; - } - - /** - * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. - * Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network - * byte order) corresponds to the least significant byte of the mask. - * @return value or {@code null} for none - */ - public java.lang.String getMask() { - return mask; - } - - /** - * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. - * Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network - * byte order) corresponds to the least significant byte of the mask. - * @param mask mask or {@code null} for none - */ - public SecurityPolicyUserDefinedField setMask(java.lang.String mask) { - this.mask = mask; - return this; - } - - /** - * The name of this field. Must be unique within the policy. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of this field. Must be unique within the policy. - * @param name name or {@code null} for none - */ - public SecurityPolicyUserDefinedField setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Offset of the first byte of the field (in network byte order) relative to 'base'. - * @return value or {@code null} for none - */ - public java.lang.Integer getOffset() { - return offset; - } - - /** - * Offset of the first byte of the field (in network byte order) relative to 'base'. - * @param offset offset or {@code null} for none - */ - public SecurityPolicyUserDefinedField setOffset(java.lang.Integer offset) { - this.offset = offset; - return this; - } - - /** - * Size of the field in bytes. Valid values: 1-4. - * @return value or {@code null} for none - */ - public java.lang.Integer getSize() { - return size; - } - - /** - * Size of the field in bytes. Valid values: 1-4. - * @param size size or {@code null} for none - */ - public SecurityPolicyUserDefinedField setSize(java.lang.Integer size) { - this.size = size; - return this; - } - - @Override - public SecurityPolicyUserDefinedField set(String fieldName, Object value) { - return (SecurityPolicyUserDefinedField) super.set(fieldName, value); - } - - @Override - public SecurityPolicyUserDefinedField clone() { - return (SecurityPolicyUserDefinedField) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecuritySettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecuritySettings.java deleted file mode 100644 index 5615ff9e1d3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SecuritySettings.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * 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.preview.model; - -/** - * The authentication and authorization settings for a BackendService. - * - *

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 SecuritySettings extends com.google.api.client.json.GenericJson { - - /** - * The configuration needed to generate a signature for access to private storage buckets that - * support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and - * INTERNET_FQDN_PORT NEG backends. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private AWSV4Signature awsV4Authentication; - - /** - * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how - * clients should authenticate with this service's backends. - * - * clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set to - * INTERNAL_SELF_MANAGED. - * - * If left blank, communications are not encrypted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String clientTlsPolicy; - - /** - * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual - * TLS handshake with an server/endpoint for thisBackendService. When the server presents its - * X.509 certificate to the client, the client inspects the certificate'ssubjectAltName field. If - * the field contains one of the specified values, the communication continues. Otherwise, it - * fails. This additional check enables the client to verify that the server is authorized to run - * the requested service. - * - * Note that the contents of the server certificate's subjectAltName field are configured by the - * Public Key Infrastructure which provisions server identities. - * - * Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. - * Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS - * mode). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subjectAltNames; - - /** - * The configuration needed to generate a signature for access to private storage buckets that - * support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and - * INTERNET_FQDN_PORT NEG backends. - * @return value or {@code null} for none - */ - public AWSV4Signature getAwsV4Authentication() { - return awsV4Authentication; - } - - /** - * The configuration needed to generate a signature for access to private storage buckets that - * support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and - * INTERNET_FQDN_PORT NEG backends. - * @param awsV4Authentication awsV4Authentication or {@code null} for none - */ - public SecuritySettings setAwsV4Authentication(AWSV4Signature awsV4Authentication) { - this.awsV4Authentication = awsV4Authentication; - return this; - } - - /** - * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how - * clients should authenticate with this service's backends. - * - * clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set to - * INTERNAL_SELF_MANAGED. - * - * If left blank, communications are not encrypted. - * @return value or {@code null} for none - */ - public java.lang.String getClientTlsPolicy() { - return clientTlsPolicy; - } - - /** - * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how - * clients should authenticate with this service's backends. - * - * clientTlsPolicy only applies to a globalBackendService with the loadBalancingScheme set to - * INTERNAL_SELF_MANAGED. - * - * If left blank, communications are not encrypted. - * @param clientTlsPolicy clientTlsPolicy or {@code null} for none - */ - public SecuritySettings setClientTlsPolicy(java.lang.String clientTlsPolicy) { - this.clientTlsPolicy = clientTlsPolicy; - return this; - } - - /** - * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual - * TLS handshake with an server/endpoint for thisBackendService. When the server presents its - * X.509 certificate to the client, the client inspects the certificate'ssubjectAltName field. If - * the field contains one of the specified values, the communication continues. Otherwise, it - * fails. This additional check enables the client to verify that the server is authorized to run - * the requested service. - * - * Note that the contents of the server certificate's subjectAltName field are configured by the - * Public Key Infrastructure which provisions server identities. - * - * Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. - * Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS - * mode). - * @return value or {@code null} for none - */ - public java.util.List getSubjectAltNames() { - return subjectAltNames; - } - - /** - * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual - * TLS handshake with an server/endpoint for thisBackendService. When the server presents its - * X.509 certificate to the client, the client inspects the certificate'ssubjectAltName field. If - * the field contains one of the specified values, the communication continues. Otherwise, it - * fails. This additional check enables the client to verify that the server is authorized to run - * the requested service. - * - * Note that the contents of the server certificate's subjectAltName field are configured by the - * Public Key Infrastructure which provisions server identities. - * - * Only applies to a global BackendService withloadBalancingScheme set to INTERNAL_SELF_MANAGED. - * Only applies when BackendService has an attachedclientTlsPolicy with clientCertificate (mTLS - * mode). - * @param subjectAltNames subjectAltNames or {@code null} for none - */ - public SecuritySettings setSubjectAltNames(java.util.List subjectAltNames) { - this.subjectAltNames = subjectAltNames; - return this; - } - - @Override - public SecuritySettings set(String fieldName, Object value) { - return (SecuritySettings) super.set(fieldName, value); - } - - @Override - public SecuritySettings clone() { - return (SecuritySettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SerialPortOutput.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SerialPortOutput.java deleted file mode 100644 index bad496b392d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SerialPortOutput.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * 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.preview.model; - -/** - * An instance serial console output. - * - *

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 SerialPortOutput extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The contents of the console output. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String contents; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] The position of the next byte of content, regardless of whether the content - * exists, following the output returned in the `contents` property. Use this value in the next - * request as the start parameter. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long next; - - /** - * 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; - - /** - * The starting byte position of the output that was returned. This should match the start - * parameter sent with the request. If the serial console output exceeds the size of the buffer (1 - * MB), older output is overwritten by newer content. The output start value will indicate the - * byte position of the output that was returned, which might be different than the `start` value - * that was specified in the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long start; - - /** - * [Output Only] The contents of the console output. - * @return value or {@code null} for none - */ - public java.lang.String getContents() { - return contents; - } - - /** - * [Output Only] The contents of the console output. - * @param contents contents or {@code null} for none - */ - public SerialPortOutput setContents(java.lang.String contents) { - this.contents = contents; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. - * @param kind kind or {@code null} for none - */ - public SerialPortOutput setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] The position of the next byte of content, regardless of whether the content - * exists, following the output returned in the `contents` property. Use this value in the next - * request as the start parameter. - * @return value or {@code null} for none - */ - public java.lang.Long getNext() { - return next; - } - - /** - * [Output Only] The position of the next byte of content, regardless of whether the content - * exists, following the output returned in the `contents` property. Use this value in the next - * request as the start parameter. - * @param next next or {@code null} for none - */ - public SerialPortOutput setNext(java.lang.Long next) { - this.next = next; - 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 SerialPortOutput setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The starting byte position of the output that was returned. This should match the start - * parameter sent with the request. If the serial console output exceeds the size of the buffer (1 - * MB), older output is overwritten by newer content. The output start value will indicate the - * byte position of the output that was returned, which might be different than the `start` value - * that was specified in the request. - * @return value or {@code null} for none - */ - public java.lang.Long getStart() { - return start; - } - - /** - * The starting byte position of the output that was returned. This should match the start - * parameter sent with the request. If the serial console output exceeds the size of the buffer (1 - * MB), older output is overwritten by newer content. The output start value will indicate the - * byte position of the output that was returned, which might be different than the `start` value - * that was specified in the request. - * @param start start or {@code null} for none - */ - public SerialPortOutput setStart(java.lang.Long start) { - this.start = start; - return this; - } - - @Override - public SerialPortOutput set(String fieldName, Object value) { - return (SerialPortOutput) super.set(fieldName, value); - } - - @Override - public SerialPortOutput clone() { - return (SerialPortOutput) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServerBinding.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServerBinding.java deleted file mode 100644 index 202ffaaf862..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServerBinding.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ServerBinding. - * - *

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 ServerBinding extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * @param type type or {@code null} for none - */ - public ServerBinding setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public ServerBinding set(String fieldName, Object value) { - return (ServerBinding) super.set(fieldName, value); - } - - @Override - public ServerBinding clone() { - return (ServerBinding) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAccount.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAccount.java deleted file mode 100644 index ee3edeaf92c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAccount.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * A service account. - * - *

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 ServiceAccount extends com.google.api.client.json.GenericJson { - - /** - * Email address of the service account. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String email; - - /** - * The list of scopes to be made available for this service account. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List scopes; - - /** - * Email address of the service account. - * @return value or {@code null} for none - */ - public java.lang.String getEmail() { - return email; - } - - /** - * Email address of the service account. - * @param email email or {@code null} for none - */ - public ServiceAccount setEmail(java.lang.String email) { - this.email = email; - return this; - } - - /** - * The list of scopes to be made available for this service account. - * @return value or {@code null} for none - */ - public java.util.List getScopes() { - return scopes; - } - - /** - * The list of scopes to be made available for this service account. - * @param scopes scopes or {@code null} for none - */ - public ServiceAccount setScopes(java.util.List scopes) { - this.scopes = scopes; - return this; - } - - @Override - public ServiceAccount set(String fieldName, Object value) { - return (ServiceAccount) super.set(fieldName, value); - } - - @Override - public ServiceAccount clone() { - return (ServiceAccount) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachment.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachment.java deleted file mode 100644 index 7486a4b318e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachment.java +++ /dev/null @@ -1,748 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a ServiceAttachment resource. - * - * A service attachment represents a service that a producer has exposed. It encapsulates the load - * balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to - * represent the consumers connecting to the service. - * - *

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 ServiceAttachment extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List connectedEndpoints; - - /** - * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An - * ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer - * forwarding rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String connectionPreference; - - /** - * Specifies which consumer projects or networks are allowed to connect to the service attachment. - * Each project or network has a connection limit. A given service attachment can manage - * connections at either the project or network level. Therefore, both the accept and reject lists - * for a given service attachment must contain either only projects or only networks or only - * endpoints. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List consumerAcceptLists; - - /** - * Specifies a list of projects or networks that are not allowed to connect to this service - * attachment. The project can be specified using its project ID or project number and the network - * can be specified using its URL. A given service attachment can manage connections at either the - * project or network level. Therefore, both the reject and accept lists for a given service - * attachment must contain either only projects or only networks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List consumerRejectLists; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * If specified, the domain name will be used during the integration between the PSC connected - * endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". - * Current max number of domain names supported is 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List domainNames; - - /** - * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP - * connections that traverse proxies on their way to destination servers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableProxyProtocol; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- - * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, - * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a - * get() request to retrieve the ServiceAttachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Metadata of the service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map metadata; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The number of NAT IP addresses to be allocated per connected endpoint. If not specified, the - * default value is 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long natIpsPerEndpoint; - - /** - * An array of URLs where each entry is the URL of a subnet provided by the service producer to - * use for NAT in this service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natSubnets; - - /** - * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint - * identified by this service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String producerForwardingRule; - - /** - * The number of consumer spokes that connected Private Service Connect endpoints can be - * propagated to through Network Connectivity Center. This limit lets the service producer limit - * how many propagated Private Service Connect connections can be established to this service - * attachment from a single consumer. - * - * If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to - * each project or network that is listed in the consumer accept list. If the connection - * preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project - * that contains a connected endpoint. - * - * If unspecified, the default propagated connection limit is 250. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long propagatedConnectionLimit; - - /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Uint128 pscServiceAttachmentId; - - /** - * This flag determines whether a consumer accept/reject list change can reconcile the statuses of - * existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update - * will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will - * remain untouched regardless how the connection policy is modified . - If true, - * update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an - * ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. - * - * For newly created service attachment, this boolean defaults to false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean reconcileConnections; - - /** - * Output only. [Output Only] URL of the region where the service attachment resides. This field - * applies only to the region resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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; - - /** - * The URL of a service serving the endpoint identified by this service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetService; - - /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. - * @return value or {@code null} for none - */ - public java.util.List getConnectedEndpoints() { - return connectedEndpoints; - } - - /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. - * @param connectedEndpoints connectedEndpoints or {@code null} for none - */ - public ServiceAttachment setConnectedEndpoints(java.util.List connectedEndpoints) { - this.connectedEndpoints = connectedEndpoints; - return this; - } - - /** - * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An - * ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer - * forwarding rules. - * @return value or {@code null} for none - */ - public java.lang.String getConnectionPreference() { - return connectionPreference; - } - - /** - * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An - * ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer - * forwarding rules. - * @param connectionPreference connectionPreference or {@code null} for none - */ - public ServiceAttachment setConnectionPreference(java.lang.String connectionPreference) { - this.connectionPreference = connectionPreference; - return this; - } - - /** - * Specifies which consumer projects or networks are allowed to connect to the service attachment. - * Each project or network has a connection limit. A given service attachment can manage - * connections at either the project or network level. Therefore, both the accept and reject lists - * for a given service attachment must contain either only projects or only networks or only - * endpoints. - * @return value or {@code null} for none - */ - public java.util.List getConsumerAcceptLists() { - return consumerAcceptLists; - } - - /** - * Specifies which consumer projects or networks are allowed to connect to the service attachment. - * Each project or network has a connection limit. A given service attachment can manage - * connections at either the project or network level. Therefore, both the accept and reject lists - * for a given service attachment must contain either only projects or only networks or only - * endpoints. - * @param consumerAcceptLists consumerAcceptLists or {@code null} for none - */ - public ServiceAttachment setConsumerAcceptLists(java.util.List consumerAcceptLists) { - this.consumerAcceptLists = consumerAcceptLists; - return this; - } - - /** - * Specifies a list of projects or networks that are not allowed to connect to this service - * attachment. The project can be specified using its project ID or project number and the network - * can be specified using its URL. A given service attachment can manage connections at either the - * project or network level. Therefore, both the reject and accept lists for a given service - * attachment must contain either only projects or only networks. - * @return value or {@code null} for none - */ - public java.util.List getConsumerRejectLists() { - return consumerRejectLists; - } - - /** - * Specifies a list of projects or networks that are not allowed to connect to this service - * attachment. The project can be specified using its project ID or project number and the network - * can be specified using its URL. A given service attachment can manage connections at either the - * project or network level. Therefore, both the reject and accept lists for a given service - * attachment must contain either only projects or only networks. - * @param consumerRejectLists consumerRejectLists or {@code null} for none - */ - public ServiceAttachment setConsumerRejectLists(java.util.List consumerRejectLists) { - this.consumerRejectLists = consumerRejectLists; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public ServiceAttachment setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * If specified, the domain name will be used during the integration between the PSC connected - * endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". - * Current max number of domain names supported is 1. - * @return value or {@code null} for none - */ - public java.util.List getDomainNames() { - return domainNames; - } - - /** - * If specified, the domain name will be used during the integration between the PSC connected - * endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". - * Current max number of domain names supported is 1. - * @param domainNames domainNames or {@code null} for none - */ - public ServiceAttachment setDomainNames(java.util.List domainNames) { - this.domainNames = domainNames; - return this; - } - - /** - * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP - * connections that traverse proxies on their way to destination servers. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableProxyProtocol() { - return enableProxyProtocol; - } - - /** - * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP - * connections that traverse proxies on their way to destination servers. - * @param enableProxyProtocol enableProxyProtocol or {@code null} for none - */ - public ServiceAttachment setEnableProxyProtocol(java.lang.Boolean enableProxyProtocol) { - this.enableProxyProtocol = enableProxyProtocol; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- - * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, - * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a - * get() request to retrieve the ServiceAttachment. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- - * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, - * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a - * get() request to retrieve the ServiceAttachment. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- - * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, - * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a - * get() request to retrieve the ServiceAttachment. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public ServiceAttachment setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to- - * date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, - * the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a - * get() request to retrieve the ServiceAttachment. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ServiceAttachment encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public ServiceAttachment setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. - * @param kind kind or {@code null} for none - */ - public ServiceAttachment setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Metadata of the service attachment. - * @return value or {@code null} for none - */ - public java.util.Map getMetadata() { - return metadata; - } - - /** - * Metadata of the service attachment. - * @param metadata metadata or {@code null} for none - */ - public ServiceAttachment setMetadata(java.util.Map metadata) { - this.metadata = metadata; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 ServiceAttachment setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The number of NAT IP addresses to be allocated per connected endpoint. If not specified, the - * default value is 1. - * @return value or {@code null} for none - */ - public java.lang.Long getNatIpsPerEndpoint() { - return natIpsPerEndpoint; - } - - /** - * The number of NAT IP addresses to be allocated per connected endpoint. If not specified, the - * default value is 1. - * @param natIpsPerEndpoint natIpsPerEndpoint or {@code null} for none - */ - public ServiceAttachment setNatIpsPerEndpoint(java.lang.Long natIpsPerEndpoint) { - this.natIpsPerEndpoint = natIpsPerEndpoint; - return this; - } - - /** - * An array of URLs where each entry is the URL of a subnet provided by the service producer to - * use for NAT in this service attachment. - * @return value or {@code null} for none - */ - public java.util.List getNatSubnets() { - return natSubnets; - } - - /** - * An array of URLs where each entry is the URL of a subnet provided by the service producer to - * use for NAT in this service attachment. - * @param natSubnets natSubnets or {@code null} for none - */ - public ServiceAttachment setNatSubnets(java.util.List natSubnets) { - this.natSubnets = natSubnets; - return this; - } - - /** - * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint - * identified by this service attachment. - * @return value or {@code null} for none - */ - public java.lang.String getProducerForwardingRule() { - return producerForwardingRule; - } - - /** - * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint - * identified by this service attachment. - * @param producerForwardingRule producerForwardingRule or {@code null} for none - */ - public ServiceAttachment setProducerForwardingRule(java.lang.String producerForwardingRule) { - this.producerForwardingRule = producerForwardingRule; - return this; - } - - /** - * The number of consumer spokes that connected Private Service Connect endpoints can be - * propagated to through Network Connectivity Center. This limit lets the service producer limit - * how many propagated Private Service Connect connections can be established to this service - * attachment from a single consumer. - * - * If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to - * each project or network that is listed in the consumer accept list. If the connection - * preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project - * that contains a connected endpoint. - * - * If unspecified, the default propagated connection limit is 250. - * @return value or {@code null} for none - */ - public java.lang.Long getPropagatedConnectionLimit() { - return propagatedConnectionLimit; - } - - /** - * The number of consumer spokes that connected Private Service Connect endpoints can be - * propagated to through Network Connectivity Center. This limit lets the service producer limit - * how many propagated Private Service Connect connections can be established to this service - * attachment from a single consumer. - * - * If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to - * each project or network that is listed in the consumer accept list. If the connection - * preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project - * that contains a connected endpoint. - * - * If unspecified, the default propagated connection limit is 250. - * @param propagatedConnectionLimit propagatedConnectionLimit or {@code null} for none - */ - public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedConnectionLimit) { - this.propagatedConnectionLimit = propagatedConnectionLimit; - return this; - } - - /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. - * @return value or {@code null} for none - */ - public Uint128 getPscServiceAttachmentId() { - return pscServiceAttachmentId; - } - - /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. - * @param pscServiceAttachmentId pscServiceAttachmentId or {@code null} for none - */ - public ServiceAttachment setPscServiceAttachmentId(Uint128 pscServiceAttachmentId) { - this.pscServiceAttachmentId = pscServiceAttachmentId; - return this; - } - - /** - * This flag determines whether a consumer accept/reject list change can reconcile the statuses of - * existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update - * will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will - * remain untouched regardless how the connection policy is modified . - If true, - * update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an - * ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. - * - * For newly created service attachment, this boolean defaults to false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getReconcileConnections() { - return reconcileConnections; - } - - /** - * This flag determines whether a consumer accept/reject list change can reconcile the statuses of - * existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update - * will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will - * remain untouched regardless how the connection policy is modified . - If true, - * update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an - * ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. - * - * For newly created service attachment, this boolean defaults to false. - * @param reconcileConnections reconcileConnections or {@code null} for none - */ - public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConnections) { - this.reconcileConnections = reconcileConnections; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the service attachment resides. This field - * applies only to the region resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the service attachment resides. This field - * applies only to the region resource. You must specify this field as part of the HTTP request - * URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public ServiceAttachment setRegion(java.lang.String region) { - this.region = region; - 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 ServiceAttachment setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The URL of a service serving the endpoint identified by this service attachment. - * @return value or {@code null} for none - */ - public java.lang.String getTargetService() { - return targetService; - } - - /** - * The URL of a service serving the endpoint identified by this service attachment. - * @param targetService targetService or {@code null} for none - */ - public ServiceAttachment setTargetService(java.lang.String targetService) { - this.targetService = targetService; - return this; - } - - @Override - public ServiceAttachment set(String fieldName, Object value) { - return (ServiceAttachment) super.set(fieldName, value); - } - - @Override - public ServiceAttachment clone() { - return (ServiceAttachment) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentAggregatedList.java deleted file mode 100644 index 52df73b28ee..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of ServiceAttachmentsScopedList. - * - *

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 ServiceAttachmentAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 ServiceAttachmentsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 ServiceAttachmentAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ServiceAttachmentsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of ServiceAttachmentsScopedList resources. - * @param items items or {@code null} for none - */ - public ServiceAttachmentAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ServiceAttachmentAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ServiceAttachmentAggregatedList 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 ServiceAttachmentAggregatedList 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 ServiceAttachmentAggregatedList 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 ServiceAttachmentAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ServiceAttachmentAggregatedList set(String fieldName, Object value) { - return (ServiceAttachmentAggregatedList) super.set(fieldName, value); - } - - @Override - public ServiceAttachmentAggregatedList clone() { - return (ServiceAttachmentAggregatedList) 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 ServiceAttachmentAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConnectedEndpoint.java deleted file mode 100644 index 0ba1aa5df64..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConnectedEndpoint.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] A connection connected to this service attachment. - * - *

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 ServiceAttachmentConnectedEndpoint extends com.google.api.client.json.GenericJson { - - /** - * The url of the consumer network. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String consumerNetwork; - - /** - * The url of a connected endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; - - /** - * The url of a connected endpoint with resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endpointWithId; - - /** - * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natIps; - - /** - * The number of consumer Network Connectivity Center spokes that the connected Private Service - * Connect endpoint has propagated to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long propagatedConnectionCount; - - /** - * The PSC connection id of the connected endpoint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger pscConnectionId; - - /** - * The status of a connected endpoint to this service attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * The url of the consumer network. - * @return value or {@code null} for none - */ - public java.lang.String getConsumerNetwork() { - return consumerNetwork; - } - - /** - * The url of the consumer network. - * @param consumerNetwork consumerNetwork or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setConsumerNetwork(java.lang.String consumerNetwork) { - this.consumerNetwork = consumerNetwork; - return this; - } - - /** - * The url of a connected endpoint. - * @return value or {@code null} for none - */ - public java.lang.String getEndpoint() { - return endpoint; - } - - /** - * The url of a connected endpoint. - * @param endpoint endpoint or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setEndpoint(java.lang.String endpoint) { - this.endpoint = endpoint; - return this; - } - - /** - * The url of a connected endpoint with resource id. - * @return value or {@code null} for none - */ - public java.lang.String getEndpointWithId() { - return endpointWithId; - } - - /** - * The url of a connected endpoint with resource id. - * @param endpointWithId endpointWithId or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setEndpointWithId(java.lang.String endpointWithId) { - this.endpointWithId = endpointWithId; - return this; - } - - /** - * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. - * @return value or {@code null} for none - */ - public java.util.List getNatIps() { - return natIps; - } - - /** - * NAT IPs of the connected PSC endpoint and those of other endpoints propagated from it. - * @param natIps natIps or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setNatIps(java.util.List natIps) { - this.natIps = natIps; - return this; - } - - /** - * The number of consumer Network Connectivity Center spokes that the connected Private Service - * Connect endpoint has propagated to. - * @return value or {@code null} for none - */ - public java.lang.Long getPropagatedConnectionCount() { - return propagatedConnectionCount; - } - - /** - * The number of consumer Network Connectivity Center spokes that the connected Private Service - * Connect endpoint has propagated to. - * @param propagatedConnectionCount propagatedConnectionCount or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setPropagatedConnectionCount(java.lang.Long propagatedConnectionCount) { - this.propagatedConnectionCount = propagatedConnectionCount; - return this; - } - - /** - * The PSC connection id of the connected endpoint. - * @return value or {@code null} for none - */ - public java.math.BigInteger getPscConnectionId() { - return pscConnectionId; - } - - /** - * The PSC connection id of the connected endpoint. - * @param pscConnectionId pscConnectionId or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setPscConnectionId(java.math.BigInteger pscConnectionId) { - this.pscConnectionId = pscConnectionId; - return this; - } - - /** - * The status of a connected endpoint to this service attachment. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * The status of a connected endpoint to this service attachment. - * @param status status or {@code null} for none - */ - public ServiceAttachmentConnectedEndpoint setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public ServiceAttachmentConnectedEndpoint set(String fieldName, Object value) { - return (ServiceAttachmentConnectedEndpoint) super.set(fieldName, value); - } - - @Override - public ServiceAttachmentConnectedEndpoint clone() { - return (ServiceAttachmentConnectedEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConsumerProjectLimit.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConsumerProjectLimit.java deleted file mode 100644 index dfbff8825c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentConsumerProjectLimit.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ServiceAttachmentConsumerProjectLimit. - * - *

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 ServiceAttachmentConsumerProjectLimit extends com.google.api.client.json.GenericJson { - - /** - * The value of the limit to set. For endpoint_url, the limit should be no more than 1. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long connectionLimit; - - /** - * The URL for the PSC endpoint to accept - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String endpointUrl; - - /** - * The network URL for the network to set the limit for. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkUrl; - - /** - * The project id or number for the project to set the limit for. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String projectIdOrNum; - - /** - * The value of the limit to set. For endpoint_url, the limit should be no more than 1. - * @return value or {@code null} for none - */ - public java.lang.Long getConnectionLimit() { - return connectionLimit; - } - - /** - * The value of the limit to set. For endpoint_url, the limit should be no more than 1. - * @param connectionLimit connectionLimit or {@code null} for none - */ - public ServiceAttachmentConsumerProjectLimit setConnectionLimit(java.lang.Long connectionLimit) { - this.connectionLimit = connectionLimit; - return this; - } - - /** - * The URL for the PSC endpoint to accept - * @return value or {@code null} for none - */ - public java.lang.String getEndpointUrl() { - return endpointUrl; - } - - /** - * The URL for the PSC endpoint to accept - * @param endpointUrl endpointUrl or {@code null} for none - */ - public ServiceAttachmentConsumerProjectLimit setEndpointUrl(java.lang.String endpointUrl) { - this.endpointUrl = endpointUrl; - return this; - } - - /** - * The network URL for the network to set the limit for. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkUrl() { - return networkUrl; - } - - /** - * The network URL for the network to set the limit for. - * @param networkUrl networkUrl or {@code null} for none - */ - public ServiceAttachmentConsumerProjectLimit setNetworkUrl(java.lang.String networkUrl) { - this.networkUrl = networkUrl; - return this; - } - - /** - * The project id or number for the project to set the limit for. - * @return value or {@code null} for none - */ - public java.lang.String getProjectIdOrNum() { - return projectIdOrNum; - } - - /** - * The project id or number for the project to set the limit for. - * @param projectIdOrNum projectIdOrNum or {@code null} for none - */ - public ServiceAttachmentConsumerProjectLimit setProjectIdOrNum(java.lang.String projectIdOrNum) { - this.projectIdOrNum = projectIdOrNum; - return this; - } - - @Override - public ServiceAttachmentConsumerProjectLimit set(String fieldName, Object value) { - return (ServiceAttachmentConsumerProjectLimit) super.set(fieldName, value); - } - - @Override - public ServiceAttachmentConsumerProjectLimit clone() { - return (ServiceAttachmentConsumerProjectLimit) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentList.java deleted file mode 100644 index d85953f73db..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ServiceAttachmentList. - * - *

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 ServiceAttachmentList extends com.google.api.client.json.GenericJson { - - /** - * [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 ServiceAttachment 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 ServiceAttachment 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(ServiceAttachment.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 ServiceAttachmentList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of ServiceAttachment resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of ServiceAttachment resources. - * @param items items or {@code null} for none - */ - public ServiceAttachmentList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. - * @param kind kind or {@code null} for none - */ - public ServiceAttachmentList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ServiceAttachmentList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public ServiceAttachmentList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ServiceAttachmentList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ServiceAttachmentList set(String fieldName, Object value) { - return (ServiceAttachmentList) super.set(fieldName, value); - } - - @Override - public ServiceAttachmentList clone() { - return (ServiceAttachmentList) 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 ServiceAttachmentListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentsScopedList.java deleted file mode 100644 index 1cf445162aa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ServiceAttachmentsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ServiceAttachmentsScopedList. - * - *

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 ServiceAttachmentsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of ServiceAttachments contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List serviceAttachments; - - static { - // hack to force ProGuard to consider ServiceAttachment 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(ServiceAttachment.class); - } - - /** - * Informational warning which replaces the list of service attachments when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of ServiceAttachments contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getServiceAttachments() { - return serviceAttachments; - } - - /** - * A list of ServiceAttachments contained in this scope. - * @param serviceAttachments serviceAttachments or {@code null} for none - */ - public ServiceAttachmentsScopedList setServiceAttachments(java.util.List serviceAttachments) { - this.serviceAttachments = serviceAttachments; - return this; - } - - /** - * Informational warning which replaces the list of service attachments when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of service attachments when the list is empty. - * @param warning warning or {@code null} for none - */ - public ServiceAttachmentsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ServiceAttachmentsScopedList set(String fieldName, Object value) { - return (ServiceAttachmentsScopedList) super.set(fieldName, value); - } - - @Override - public ServiceAttachmentsScopedList clone() { - return (ServiceAttachmentsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of service attachments when the list is empty. - */ - 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 ServiceAttachmentsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadata.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadata.java deleted file mode 100644 index a99ac6bf7b3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadata.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SetCommonInstanceMetadataOperationMetadata. - * - *

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 SetCommonInstanceMetadataOperationMetadata extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] The client operation id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String clientOperationId; - - /** - * [Output Only] Status information per location (location name is key). Example key: zones/us- - * central1-a - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map perLocationOperations; - - /** - * [Output Only] The client operation id. - * @return value or {@code null} for none - */ - public java.lang.String getClientOperationId() { - return clientOperationId; - } - - /** - * [Output Only] The client operation id. - * @param clientOperationId clientOperationId or {@code null} for none - */ - public SetCommonInstanceMetadataOperationMetadata setClientOperationId(java.lang.String clientOperationId) { - this.clientOperationId = clientOperationId; - return this; - } - - /** - * [Output Only] Status information per location (location name is key). Example key: zones/us- - * central1-a - * @return value or {@code null} for none - */ - public java.util.Map getPerLocationOperations() { - return perLocationOperations; - } - - /** - * [Output Only] Status information per location (location name is key). Example key: zones/us- - * central1-a - * @param perLocationOperations perLocationOperations or {@code null} for none - */ - public SetCommonInstanceMetadataOperationMetadata setPerLocationOperations(java.util.Map perLocationOperations) { - this.perLocationOperations = perLocationOperations; - return this; - } - - @Override - public SetCommonInstanceMetadataOperationMetadata set(String fieldName, Object value) { - return (SetCommonInstanceMetadataOperationMetadata) super.set(fieldName, value); - } - - @Override - public SetCommonInstanceMetadataOperationMetadata clone() { - return (SetCommonInstanceMetadataOperationMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java deleted file mode 100644 index 9a5b40f3717..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo. - * - *

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 SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Status error; - - /** - * [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, - * `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. - * @return value or {@code null} for none - */ - public Status getError() { - return error; - } - - /** - * [Output Only] If state is `ABANDONED` or `FAILED`, this field is populated. - * @param error error or {@code null} for none - */ - public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo setError(Status error) { - this.error = error; - return this; - } - - /** - * [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, - * `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * [Output Only] Status of the action, which can be one of the following: `PROPAGATING`, - * `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`. - * @param state state or {@code null} for none - */ - public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo set(String fieldName, Object value) { - return (SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) super.set(fieldName, value); - } - - @Override - public SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo clone() { - return (SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettings.java deleted file mode 100644 index 30f0ad79f1e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettings.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * The share setting for reservations and sole tenancy node groups. - * - *

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 ShareSettings extends com.google.api.client.json.GenericJson { - - /** - * A map of project id and project config. This is only valid when share_type's value is - * SPECIFIC_PROJECTS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map projectMap; - - /** - * Type of sharing for this shared-reservation - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String shareType; - - /** - * A map of project id and project config. This is only valid when share_type's value is - * SPECIFIC_PROJECTS. - * @return value or {@code null} for none - */ - public java.util.Map getProjectMap() { - return projectMap; - } - - /** - * A map of project id and project config. This is only valid when share_type's value is - * SPECIFIC_PROJECTS. - * @param projectMap projectMap or {@code null} for none - */ - public ShareSettings setProjectMap(java.util.Map projectMap) { - this.projectMap = projectMap; - return this; - } - - /** - * Type of sharing for this shared-reservation - * @return value or {@code null} for none - */ - public java.lang.String getShareType() { - return shareType; - } - - /** - * Type of sharing for this shared-reservation - * @param shareType shareType or {@code null} for none - */ - public ShareSettings setShareType(java.lang.String shareType) { - this.shareType = shareType; - return this; - } - - @Override - public ShareSettings set(String fieldName, Object value) { - return (ShareSettings) super.set(fieldName, value); - } - - @Override - public ShareSettings clone() { - return (ShareSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettingsProjectConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettingsProjectConfig.java deleted file mode 100644 index 4a5e833ffcf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShareSettingsProjectConfig.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Config for each project in the share settings. - * - *

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 ShareSettingsProjectConfig extends com.google.api.client.json.GenericJson { - - /** - * The project ID, should be same as the key of this project config in the parent map. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String projectId; - - /** - * The project ID, should be same as the key of this project config in the parent map. - * @return value or {@code null} for none - */ - public java.lang.String getProjectId() { - return projectId; - } - - /** - * The project ID, should be same as the key of this project config in the parent map. - * @param projectId projectId or {@code null} for none - */ - public ShareSettingsProjectConfig setProjectId(java.lang.String projectId) { - this.projectId = projectId; - return this; - } - - @Override - public ShareSettingsProjectConfig set(String fieldName, Object value) { - return (ShareSettingsProjectConfig) super.set(fieldName, value); - } - - @Override - public ShareSettingsProjectConfig clone() { - return (ShareSettingsProjectConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceConfig.java deleted file mode 100644 index ae64f945b2f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceConfig.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * A set of Shielded Instance options. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class ShieldedInstanceConfig extends com.google.api.client.json.GenericJson { - - /** - * Defines whether the instance has integrity monitoring enabled.Enabled by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableIntegrityMonitoring; - - /** - * Defines whether the instance has Secure Boot enabled.Disabled by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableSecureBoot; - - /** - * Defines whether the instance has the vTPM enabled.Enabled by default. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableVtpm; - - /** - * Defines whether the instance has integrity monitoring enabled.Enabled by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring; - } - - /** - * Defines whether the instance has integrity monitoring enabled.Enabled by default. - * @param enableIntegrityMonitoring enableIntegrityMonitoring or {@code null} for none - */ - public ShieldedInstanceConfig setEnableIntegrityMonitoring(java.lang.Boolean enableIntegrityMonitoring) { - this.enableIntegrityMonitoring = enableIntegrityMonitoring; - return this; - } - - /** - * Defines whether the instance has Secure Boot enabled.Disabled by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableSecureBoot() { - return enableSecureBoot; - } - - /** - * Defines whether the instance has Secure Boot enabled.Disabled by default. - * @param enableSecureBoot enableSecureBoot or {@code null} for none - */ - public ShieldedInstanceConfig setEnableSecureBoot(java.lang.Boolean enableSecureBoot) { - this.enableSecureBoot = enableSecureBoot; - return this; - } - - /** - * Defines whether the instance has the vTPM enabled.Enabled by default. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableVtpm() { - return enableVtpm; - } - - /** - * Defines whether the instance has the vTPM enabled.Enabled by default. - * @param enableVtpm enableVtpm or {@code null} for none - */ - public ShieldedInstanceConfig setEnableVtpm(java.lang.Boolean enableVtpm) { - this.enableVtpm = enableVtpm; - return this; - } - - @Override - public ShieldedInstanceConfig set(String fieldName, Object value) { - return (ShieldedInstanceConfig) super.set(fieldName, value); - } - - @Override - public ShieldedInstanceConfig clone() { - return (ShieldedInstanceConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentity.java deleted file mode 100644 index e66afd7c1c3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentity.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.preview.model; - -/** - * A Shielded Instance Identity. - * - *

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 ShieldedInstanceIdentity extends com.google.api.client.json.GenericJson { - - /** - * An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceIdentityEntry eccP256EncryptionKey; - - /** - * An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceIdentityEntry eccP256SigningKey; - - /** - * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceIdentityEntry encryptionKey; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ShieldedInstanceIdentityEntry signingKey; - - /** - * An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. - * @return value or {@code null} for none - */ - public ShieldedInstanceIdentityEntry getEccP256EncryptionKey() { - return eccP256EncryptionKey; - } - - /** - * An Endorsement Key (EK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. - * @param eccP256EncryptionKey eccP256EncryptionKey or {@code null} for none - */ - public ShieldedInstanceIdentity setEccP256EncryptionKey(ShieldedInstanceIdentityEntry eccP256EncryptionKey) { - this.eccP256EncryptionKey = eccP256EncryptionKey; - return this; - } - - /** - * An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. - * @return value or {@code null} for none - */ - public ShieldedInstanceIdentityEntry getEccP256SigningKey() { - return eccP256SigningKey; - } - - /** - * An Attestation Key (AK) made by the ECC P256 algorithm issued to the Shielded Instance's vTPM. - * @param eccP256SigningKey eccP256SigningKey or {@code null} for none - */ - public ShieldedInstanceIdentity setEccP256SigningKey(ShieldedInstanceIdentityEntry eccP256SigningKey) { - this.eccP256SigningKey = eccP256SigningKey; - return this; - } - - /** - * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. - * @return value or {@code null} for none - */ - public ShieldedInstanceIdentityEntry getEncryptionKey() { - return encryptionKey; - } - - /** - * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. - * @param encryptionKey encryptionKey or {@code null} for none - */ - public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry encryptionKey) { - this.encryptionKey = encryptionKey; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. - * @param kind kind or {@code null} for none - */ - public ShieldedInstanceIdentity setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. - * @return value or {@code null} for none - */ - public ShieldedInstanceIdentityEntry getSigningKey() { - return signingKey; - } - - /** - * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. - * @param signingKey signingKey or {@code null} for none - */ - public ShieldedInstanceIdentity setSigningKey(ShieldedInstanceIdentityEntry signingKey) { - this.signingKey = signingKey; - return this; - } - - @Override - public ShieldedInstanceIdentity set(String fieldName, Object value) { - return (ShieldedInstanceIdentity) super.set(fieldName, value); - } - - @Override - public ShieldedInstanceIdentity clone() { - return (ShieldedInstanceIdentity) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentityEntry.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentityEntry.java deleted file mode 100644 index acecba6f943..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIdentityEntry.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * A Shielded Instance Identity Entry. - * - *

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 ShieldedInstanceIdentityEntry extends com.google.api.client.json.GenericJson { - - /** - * A PEM-encoded X.509 certificate. This field can be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ekCert; - - /** - * A PEM-encoded public key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ekPub; - - /** - * A PEM-encoded X.509 certificate. This field can be empty. - * @return value or {@code null} for none - */ - public java.lang.String getEkCert() { - return ekCert; - } - - /** - * A PEM-encoded X.509 certificate. This field can be empty. - * @param ekCert ekCert or {@code null} for none - */ - public ShieldedInstanceIdentityEntry setEkCert(java.lang.String ekCert) { - this.ekCert = ekCert; - return this; - } - - /** - * A PEM-encoded public key. - * @return value or {@code null} for none - */ - public java.lang.String getEkPub() { - return ekPub; - } - - /** - * A PEM-encoded public key. - * @param ekPub ekPub or {@code null} for none - */ - public ShieldedInstanceIdentityEntry setEkPub(java.lang.String ekPub) { - this.ekPub = ekPub; - return this; - } - - @Override - public ShieldedInstanceIdentityEntry set(String fieldName, Object value) { - return (ShieldedInstanceIdentityEntry) super.set(fieldName, value); - } - - @Override - public ShieldedInstanceIdentityEntry clone() { - return (ShieldedInstanceIdentityEntry) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIntegrityPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIntegrityPolicy.java deleted file mode 100644 index 759955abafa..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ShieldedInstanceIntegrityPolicy.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * The policy describes the baseline against which Instance boot integrity is measured. - * - *

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 ShieldedInstanceIntegrityPolicy extends com.google.api.client.json.GenericJson { - - /** - * Updates the integrity policy baseline using the measurements from the VM instance's most recent - * boot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean updateAutoLearnPolicy; - - /** - * Updates the integrity policy baseline using the measurements from the VM instance's most recent - * boot. - * @return value or {@code null} for none - */ - public java.lang.Boolean getUpdateAutoLearnPolicy() { - return updateAutoLearnPolicy; - } - - /** - * Updates the integrity policy baseline using the measurements from the VM instance's most recent - * boot. - * @param updateAutoLearnPolicy updateAutoLearnPolicy or {@code null} for none - */ - public ShieldedInstanceIntegrityPolicy setUpdateAutoLearnPolicy(java.lang.Boolean updateAutoLearnPolicy) { - this.updateAutoLearnPolicy = updateAutoLearnPolicy; - return this; - } - - @Override - public ShieldedInstanceIntegrityPolicy set(String fieldName, Object value) { - return (ShieldedInstanceIntegrityPolicy) super.set(fieldName, value); - } - - @Override - public ShieldedInstanceIntegrityPolicy clone() { - return (ShieldedInstanceIntegrityPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SignedUrlKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SignedUrlKey.java deleted file mode 100644 index 8673bb31c17..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SignedUrlKey.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs - * - *

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 SignedUrlKey extends com.google.api.client.json.GenericJson { - - /** - * Name of the key. 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 keyName; - - /** - * 128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 - * base64url encoded string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String keyValue; - - /** - * Name of the key. 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 getKeyName() { - return keyName; - } - - /** - * Name of the key. 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 keyName keyName or {@code null} for none - */ - public SignedUrlKey setKeyName(java.lang.String keyName) { - this.keyName = keyName; - return this; - } - - /** - * 128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 - * base64url encoded string. - * @return value or {@code null} for none - */ - public java.lang.String getKeyValue() { - return keyValue; - } - - /** - * 128-bit key value used for signing the URL. The key value must be a validRFC 4648 Section 5 - * base64url encoded string. - * @param keyValue keyValue or {@code null} for none - */ - public SignedUrlKey setKeyValue(java.lang.String keyValue) { - this.keyValue = keyValue; - return this; - } - - @Override - public SignedUrlKey set(String fieldName, Object value) { - return (SignedUrlKey) super.set(fieldName, value); - } - - @Override - public SignedUrlKey clone() { - return (SignedUrlKey) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Snapshot.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Snapshot.java deleted file mode 100644 index ff3690a2ef1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Snapshot.java +++ /dev/null @@ -1,1243 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Persistent Disk Snapshot resource. - * - * You can use snapshots to back up data on a regular interval. For more information, read Creating - * persistent disk snapshots. - * - *

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 Snapshot extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String architecture; - - /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean autoCreated; - - /** - * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name - * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for - * advanced service owners who needs to create separate snapshot chains, for example, for - * chargeback tracking. When you describe your snapshot resource, this field is visible only if it - * has a non-empty value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String chainName; - - /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long creationSizeBytes; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Size of the source disk, specified in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskSizeGb; - - /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long downloadBytes; - - /** - * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output - * Only]: This field is not set by user, but from source disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableConfidentialCompute; - - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean guestFlush; - - /** - * Output only. [Output Only] A list of features to enable on the guest operating system. - * Applicable only for bootable images. Read Enabling guest operating system features to see a - * list of available options. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List guestOsFeatures; - - static { - // hack to force ProGuard to consider GuestOsFeature 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(GuestOsFeature.class); - } - - /** - * 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] Type of the resource. Always compute#snapshot for Snapshot - * resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label - * values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.util.List licenseCodes; - - /** - * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This - * can be because the original image had licenses attached (such as a Windows image). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List licenses; - - /** - * An opaque location hint used to place the snapshot close to other resources. This field is for - * use by internal tools that use the public API. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String locationHint; - - /** - * Name of the resource; provided by the client 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; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotParams params; - - /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Output only. Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzi; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean satisfiesPzs; - - /** - * 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; - - /** - * Encrypts the snapshot using acustomer-supplied encryption key. - * - * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if - * you use the snapshot later. For example, you must provide the encryption key when you create a - * disk from the encrypted snapshot in a future request. - * - * Customer-supplied encryption keys do not protect access to metadata of the snapshot. - * - * If you do not provide an encryption key when creating the snapshot, then the snapshot will be - * encrypted using an automatically generated key and you do not need to provide a key to use the - * snapshot later. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey snapshotEncryptionKey; - - /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. - * The usage of snapshot group feature is restricted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String snapshotGroupId; - - /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of - * snapshot group feature is restricted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String snapshotGroupName; - - /** - * Indicates the type of the snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String snapshotType; - - /** - * The source disk used to create this snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDisk; - - /** - * The customer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceDiskEncryptionKey; - - /** - * The source disk whose recovery checkpoint will be used to create this snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDiskForRecoveryCheckpoint; - - /** - * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value - * may be used to determine whether the snapshot was taken from the current or a previous instance - * of a given disk name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDiskId; - - /** - * The source instant snapshot used to create this snapshot. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - https://w - * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - * - projects/project/zones/zone/instantSnapshots/instantSnapshot - - * zones/zone/instantSnapshots/instantSnapshot - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshot; - - /** - * Customer provided encryption key when creating Snapshot from Instant Snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; - - /** - * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. - * This value identifies the exact instant snapshot that was used to create this snapshot. For - * example, if you created the snapshot from an instant snapshot that was later deleted and - * recreated under the same name, the source instant snapshot ID would identify the exact instant - * snapshot that was used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshotId; - - /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshotSchedulePolicy; - - /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshotSchedulePolicyId; - - /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share - * storage, this number is expected to change with snapshot creation/deletion. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long storageBytes; - - /** - * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the - * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes - * is in a stable state or it is being adjusted as a result of shared storage reallocation. This - * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the - * size of the snapshot is up-to-date. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storageBytesStatus; - - /** - * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List storageLocations; - - /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. - * @return value or {@code null} for none - */ - public java.lang.String getArchitecture() { - return architecture; - } - - /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. - * @param architecture architecture or {@code null} for none - */ - public Snapshot setArchitecture(java.lang.String architecture) { - this.architecture = architecture; - return this; - } - - /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAutoCreated() { - return autoCreated; - } - - /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. - * @param autoCreated autoCreated or {@code null} for none - */ - public Snapshot setAutoCreated(java.lang.Boolean autoCreated) { - this.autoCreated = autoCreated; - return this; - } - - /** - * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name - * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for - * advanced service owners who needs to create separate snapshot chains, for example, for - * chargeback tracking. When you describe your snapshot resource, this field is visible only if it - * has a non-empty value. - * @return value or {@code null} for none - */ - public java.lang.String getChainName() { - return chainName; - } - - /** - * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name - * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for - * advanced service owners who needs to create separate snapshot chains, for example, for - * chargeback tracking. When you describe your snapshot resource, this field is visible only if it - * has a non-empty value. - * @param chainName chainName or {@code null} for none - */ - public Snapshot setChainName(java.lang.String chainName) { - this.chainName = chainName; - return this; - } - - /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. - * @return value or {@code null} for none - */ - public java.lang.Long getCreationSizeBytes() { - return creationSizeBytes; - } - - /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. - * @param creationSizeBytes creationSizeBytes or {@code null} for none - */ - public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { - this.creationSizeBytes = creationSizeBytes; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public Snapshot setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Size of the source disk, specified in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskSizeGb() { - return diskSizeGb; - } - - /** - * Output only. [Output Only] Size of the source disk, specified in GB. - * @param diskSizeGb diskSizeGb or {@code null} for none - */ - public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { - this.diskSizeGb = diskSizeGb; - return this; - } - - /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. - * @return value or {@code null} for none - */ - public java.lang.Long getDownloadBytes() { - return downloadBytes; - } - - /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. - * @param downloadBytes downloadBytes or {@code null} for none - */ - public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { - this.downloadBytes = downloadBytes; - return this; - } - - /** - * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output - * Only]: This field is not set by user, but from source disk. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableConfidentialCompute() { - return enableConfidentialCompute; - } - - /** - * Output only. Whether this snapshot is created from a confidential compute mode disk. [Output - * Only]: This field is not set by user, but from source disk. - * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none - */ - public Snapshot setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { - this.enableConfidentialCompute = enableConfidentialCompute; - return this; - } - - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - * @return value or {@code null} for none - */ - public java.lang.Boolean getGuestFlush() { - return guestFlush; - } - - /** - * [Input Only] Whether to attempt an application consistent snapshot by informing the OS to - * prepare for the snapshot process. - * @param guestFlush guestFlush or {@code null} for none - */ - public Snapshot setGuestFlush(java.lang.Boolean guestFlush) { - this.guestFlush = guestFlush; - return this; - } - - /** - * Output only. [Output Only] A list of features to enable on the guest operating system. - * Applicable only for bootable images. Read Enabling guest operating system features to see a - * list of available options. - * @return value or {@code null} for none - */ - public java.util.List getGuestOsFeatures() { - return guestOsFeatures; - } - - /** - * Output only. [Output Only] A list of features to enable on the guest operating system. - * Applicable only for bootable images. Read Enabling guest operating system features to see a - * list of available options. - * @param guestOsFeatures guestOsFeatures or {@code null} for none - */ - public Snapshot setGuestOsFeatures(java.util.List guestOsFeatures) { - this.guestOsFeatures = guestOsFeatures; - 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 Snapshot setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot - * resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot - * resources. - * @param kind kind or {@code null} for none - */ - public Snapshot setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a snapshot. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a snapshot. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a snapshot. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public Snapshot setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the - * labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a snapshot. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Snapshot encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label - * values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label - * values may be empty. - * @param labels labels or {@code null} for none - */ - public Snapshot setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. - * @return value or {@code null} for none - */ - public java.util.List getLicenseCodes() { - return licenseCodes; - } - - /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. - * @param licenseCodes licenseCodes or {@code null} for none - */ - public Snapshot setLicenseCodes(java.util.List licenseCodes) { - this.licenseCodes = licenseCodes; - return this; - } - - /** - * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This - * can be because the original image had licenses attached (such as a Windows image). - * @return value or {@code null} for none - */ - public java.util.List getLicenses() { - return licenses; - } - - /** - * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. This - * can be because the original image had licenses attached (such as a Windows image). - * @param licenses licenses or {@code null} for none - */ - public Snapshot setLicenses(java.util.List licenses) { - this.licenses = licenses; - return this; - } - - /** - * An opaque location hint used to place the snapshot close to other resources. This field is for - * use by internal tools that use the public API. - * @return value or {@code null} for none - */ - public java.lang.String getLocationHint() { - return locationHint; - } - - /** - * An opaque location hint used to place the snapshot close to other resources. This field is for - * use by internal tools that use the public API. - * @param locationHint locationHint or {@code null} for none - */ - public Snapshot setLocationHint(java.lang.String locationHint) { - this.locationHint = locationHint; - return this; - } - - /** - * Name of the resource; provided by the client 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; provided by the client 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 Snapshot setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public SnapshotParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Snapshot setParams(SnapshotParams params) { - this.params = params; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. - * @param region region or {@code null} for none - */ - public Snapshot setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Output only. Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzi() { - return satisfiesPzi; - } - - /** - * Output only. Reserved for future use. - * @param satisfiesPzi satisfiesPzi or {@code null} for none - */ - public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { - this.satisfiesPzi = satisfiesPzi; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSatisfiesPzs() { - return satisfiesPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param satisfiesPzs satisfiesPzs or {@code null} for none - */ - public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { - this.satisfiesPzs = satisfiesPzs; - 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 Snapshot setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Encrypts the snapshot using acustomer-supplied encryption key. - * - * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if - * you use the snapshot later. For example, you must provide the encryption key when you create a - * disk from the encrypted snapshot in a future request. - * - * Customer-supplied encryption keys do not protect access to metadata of the snapshot. - * - * If you do not provide an encryption key when creating the snapshot, then the snapshot will be - * encrypted using an automatically generated key and you do not need to provide a key to use the - * snapshot later. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSnapshotEncryptionKey() { - return snapshotEncryptionKey; - } - - /** - * Encrypts the snapshot using acustomer-supplied encryption key. - * - * After you encrypt a snapshot using a customer-supplied key, you must provide the same key if - * you use the snapshot later. For example, you must provide the encryption key when you create a - * disk from the encrypted snapshot in a future request. - * - * Customer-supplied encryption keys do not protect access to metadata of the snapshot. - * - * If you do not provide an encryption key when creating the snapshot, then the snapshot will be - * encrypted using an automatically generated key and you do not need to provide a key to use the - * snapshot later. - * @param snapshotEncryptionKey snapshotEncryptionKey or {@code null} for none - */ - public Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey) { - this.snapshotEncryptionKey = snapshotEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. - * The usage of snapshot group feature is restricted. - * @return value or {@code null} for none - */ - public java.lang.String getSnapshotGroupId() { - return snapshotGroupId; - } - - /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. - * The usage of snapshot group feature is restricted. - * @param snapshotGroupId snapshotGroupId or {@code null} for none - */ - public Snapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { - this.snapshotGroupId = snapshotGroupId; - return this; - } - - /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of - * snapshot group feature is restricted. - * @return value or {@code null} for none - */ - public java.lang.String getSnapshotGroupName() { - return snapshotGroupName; - } - - /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. The usage of - * snapshot group feature is restricted. - * @param snapshotGroupName snapshotGroupName or {@code null} for none - */ - public Snapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { - this.snapshotGroupName = snapshotGroupName; - return this; - } - - /** - * Indicates the type of the snapshot. - * @return value or {@code null} for none - */ - public java.lang.String getSnapshotType() { - return snapshotType; - } - - /** - * Indicates the type of the snapshot. - * @param snapshotType snapshotType or {@code null} for none - */ - public Snapshot setSnapshotType(java.lang.String snapshotType) { - this.snapshotType = snapshotType; - return this; - } - - /** - * The source disk used to create this snapshot. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDisk() { - return sourceDisk; - } - - /** - * The source disk used to create this snapshot. - * @param sourceDisk sourceDisk or {@code null} for none - */ - public Snapshot setSourceDisk(java.lang.String sourceDisk) { - this.sourceDisk = sourceDisk; - return this; - } - - /** - * The customer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceDiskEncryptionKey() { - return sourceDiskEncryptionKey; - } - - /** - * The customer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * @param sourceDiskEncryptionKey sourceDiskEncryptionKey or {@code null} for none - */ - public Snapshot setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey) { - this.sourceDiskEncryptionKey = sourceDiskEncryptionKey; - return this; - } - - /** - * The source disk whose recovery checkpoint will be used to create this snapshot. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDiskForRecoveryCheckpoint() { - return sourceDiskForRecoveryCheckpoint; - } - - /** - * The source disk whose recovery checkpoint will be used to create this snapshot. - * @param sourceDiskForRecoveryCheckpoint sourceDiskForRecoveryCheckpoint or {@code null} for none - */ - public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskForRecoveryCheckpoint) { - this.sourceDiskForRecoveryCheckpoint = sourceDiskForRecoveryCheckpoint; - return this; - } - - /** - * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value - * may be used to determine whether the snapshot was taken from the current or a previous instance - * of a given disk name. - * @return value or {@code null} for none - */ - public java.lang.String getSourceDiskId() { - return sourceDiskId; - } - - /** - * Output only. [Output Only] The ID value of the disk used to create this snapshot. This value - * may be used to determine whether the snapshot was taken from the current or a previous instance - * of a given disk name. - * @param sourceDiskId sourceDiskId or {@code null} for none - */ - public Snapshot setSourceDiskId(java.lang.String sourceDiskId) { - this.sourceDiskId = sourceDiskId; - return this; - } - - /** - * The source instant snapshot used to create this snapshot. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - https://w - * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - * - projects/project/zones/zone/instantSnapshots/instantSnapshot - - * zones/zone/instantSnapshots/instantSnapshot - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshot() { - return sourceInstantSnapshot; - } - - /** - * The source instant snapshot used to create this snapshot. You can provide this as a partial or - * full URL to the resource. For example, the following are valid values: - https://w - * ww.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot - * - projects/project/zones/zone/instantSnapshots/instantSnapshot - - * zones/zone/instantSnapshots/instantSnapshot - * @param sourceInstantSnapshot sourceInstantSnapshot or {@code null} for none - */ - public Snapshot setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { - this.sourceInstantSnapshot = sourceInstantSnapshot; - return this; - } - - /** - * Customer provided encryption key when creating Snapshot from Instant Snapshot. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getSourceInstantSnapshotEncryptionKey() { - return sourceInstantSnapshotEncryptionKey; - } - - /** - * Customer provided encryption key when creating Snapshot from Instant Snapshot. - * @param sourceInstantSnapshotEncryptionKey sourceInstantSnapshotEncryptionKey or {@code null} for none - */ - public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sourceInstantSnapshotEncryptionKey) { - this.sourceInstantSnapshotEncryptionKey = sourceInstantSnapshotEncryptionKey; - return this; - } - - /** - * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. - * This value identifies the exact instant snapshot that was used to create this snapshot. For - * example, if you created the snapshot from an instant snapshot that was later deleted and - * recreated under the same name, the source instant snapshot ID would identify the exact instant - * snapshot that was used. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshotId() { - return sourceInstantSnapshotId; - } - - /** - * Output only. [Output Only] The unique ID of the instant snapshot used to create this snapshot. - * This value identifies the exact instant snapshot that was used to create this snapshot. For - * example, if you created the snapshot from an instant snapshot that was later deleted and - * recreated under the same name, the source instant snapshot ID would identify the exact instant - * snapshot that was used. - * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none - */ - public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { - this.sourceInstantSnapshotId = sourceInstantSnapshotId; - return this; - } - - /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshotSchedulePolicy() { - return sourceSnapshotSchedulePolicy; - } - - /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. - * @param sourceSnapshotSchedulePolicy sourceSnapshotSchedulePolicy or {@code null} for none - */ - public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotSchedulePolicy) { - this.sourceSnapshotSchedulePolicy = sourceSnapshotSchedulePolicy; - return this; - } - - /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshotSchedulePolicyId() { - return sourceSnapshotSchedulePolicyId; - } - - /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. - * @param sourceSnapshotSchedulePolicyId sourceSnapshotSchedulePolicyId or {@code null} for none - */ - public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapshotSchedulePolicyId) { - this.sourceSnapshotSchedulePolicyId = sourceSnapshotSchedulePolicyId; - return this; - } - - /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. - * @param status status or {@code null} for none - */ - public Snapshot setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share - * storage, this number is expected to change with snapshot creation/deletion. - * @return value or {@code null} for none - */ - public java.lang.Long getStorageBytes() { - return storageBytes; - } - - /** - * Output only. [Output Only] A size of the storage used by the snapshot. As snapshots share - * storage, this number is expected to change with snapshot creation/deletion. - * @param storageBytes storageBytes or {@code null} for none - */ - public Snapshot setStorageBytes(java.lang.Long storageBytes) { - this.storageBytes = storageBytes; - return this; - } - - /** - * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the - * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes - * is in a stable state or it is being adjusted as a result of shared storage reallocation. This - * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the - * size of the snapshot is up-to-date. - * @return value or {@code null} for none - */ - public java.lang.String getStorageBytesStatus() { - return storageBytesStatus; - } - - /** - * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the - * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes - * is in a stable state or it is being adjusted as a result of shared storage reallocation. This - * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the - * size of the snapshot is up-to-date. - * @param storageBytesStatus storageBytesStatus or {@code null} for none - */ - public Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { - this.storageBytesStatus = storageBytesStatus; - return this; - } - - /** - * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). - * @return value or {@code null} for none - */ - public java.util.List getStorageLocations() { - return storageLocations; - } - - /** - * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). - * @param storageLocations storageLocations or {@code null} for none - */ - public Snapshot setStorageLocations(java.util.List storageLocations) { - this.storageLocations = storageLocations; - return this; - } - - @Override - public Snapshot set(String fieldName, Object value) { - return (Snapshot) super.set(fieldName, value); - } - - @Override - public Snapshot clone() { - return (Snapshot) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotGroupParameters.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotGroupParameters.java deleted file mode 100644 index 715e27a2561..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotGroupParameters.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SnapshotGroupParameters. - * - *

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 SnapshotGroupParameters extends com.google.api.client.json.GenericJson { - - /** - * URLs of the zones where disks should be replicated to. Only applicable for regional resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List replicaZones; - - /** - * The source snapshot group used to create disks. You can provide this as a partial or full URL - * to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - * - projects/project/global/snapshotGroups/snapshotGroup - - * global/snapshotGroups/snapshotGroup - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceSnapshotGroup; - - /** - * URL of the disk type resource describing which disk type to use to create disks. Provide this - * when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See - * Persistent disk types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * URLs of the zones where disks should be replicated to. Only applicable for regional resources. - * @return value or {@code null} for none - */ - public java.util.List getReplicaZones() { - return replicaZones; - } - - /** - * URLs of the zones where disks should be replicated to. Only applicable for regional resources. - * @param replicaZones replicaZones or {@code null} for none - */ - public SnapshotGroupParameters setReplicaZones(java.util.List replicaZones) { - this.replicaZones = replicaZones; - return this; - } - - /** - * The source snapshot group used to create disks. You can provide this as a partial or full URL - * to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - * - projects/project/global/snapshotGroups/snapshotGroup - - * global/snapshotGroups/snapshotGroup - * @return value or {@code null} for none - */ - public java.lang.String getSourceSnapshotGroup() { - return sourceSnapshotGroup; - } - - /** - * The source snapshot group used to create disks. You can provide this as a partial or full URL - * to the resource. For example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - * - projects/project/global/snapshotGroups/snapshotGroup - - * global/snapshotGroups/snapshotGroup - * @param sourceSnapshotGroup sourceSnapshotGroup or {@code null} for none - */ - public SnapshotGroupParameters setSourceSnapshotGroup(java.lang.String sourceSnapshotGroup) { - this.sourceSnapshotGroup = sourceSnapshotGroup; - return this; - } - - /** - * URL of the disk type resource describing which disk type to use to create disks. Provide this - * when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See - * Persistent disk types. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * URL of the disk type resource describing which disk type to use to create disks. Provide this - * when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See - * Persistent disk types. - * @param type type or {@code null} for none - */ - public SnapshotGroupParameters setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public SnapshotGroupParameters set(String fieldName, Object value) { - return (SnapshotGroupParameters) super.set(fieldName, value); - } - - @Override - public SnapshotGroupParameters clone() { - return (SnapshotGroupParameters) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotList.java deleted file mode 100644 index d2c373ae567..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Snapshot resources. - * - *

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 SnapshotList extends com.google.api.client.json.GenericJson { - - /** - * [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 Snapshot 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 Snapshot 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(Snapshot.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 SnapshotList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Snapshot resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Snapshot resources. - * @param items items or {@code null} for none - */ - public SnapshotList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public SnapshotList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SnapshotList 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 SnapshotList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 SnapshotList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SnapshotList set(String fieldName, Object value) { - return (SnapshotList) super.set(fieldName, value); - } - - @Override - public SnapshotList clone() { - return (SnapshotList) 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 SnapshotListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotParams.java deleted file mode 100644 index a87f75175cf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional snapshot params. - * - *

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 SnapshotParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public SnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public SnapshotParams set(String fieldName, Object value) { - return (SnapshotParams) super.set(fieldName, value); - } - - @Override - public SnapshotParams clone() { - return (SnapshotParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettings.java deleted file mode 100644 index f907376ab1b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettings.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SnapshotSettings. - * - *

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 SnapshotSettings extends com.google.api.client.json.GenericJson { - - /** - * (Regional snapshots use only)Policy of which location is allowed to access snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotSettingsAccessLocation accessLocation; - - /** - * Policy of which storage location is going to be resolved, and additional data that - * particularizes how the policy is going to be carried out. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotSettingsStorageLocationSettings storageLocation; - - /** - * (Regional snapshots use only)Policy of which location is allowed to access snapshot. - * @return value or {@code null} for none - */ - public SnapshotSettingsAccessLocation getAccessLocation() { - return accessLocation; - } - - /** - * (Regional snapshots use only)Policy of which location is allowed to access snapshot. - * @param accessLocation accessLocation or {@code null} for none - */ - public SnapshotSettings setAccessLocation(SnapshotSettingsAccessLocation accessLocation) { - this.accessLocation = accessLocation; - return this; - } - - /** - * Policy of which storage location is going to be resolved, and additional data that - * particularizes how the policy is going to be carried out. - * @return value or {@code null} for none - */ - public SnapshotSettingsStorageLocationSettings getStorageLocation() { - return storageLocation; - } - - /** - * Policy of which storage location is going to be resolved, and additional data that - * particularizes how the policy is going to be carried out. - * @param storageLocation storageLocation or {@code null} for none - */ - public SnapshotSettings setStorageLocation(SnapshotSettingsStorageLocationSettings storageLocation) { - this.storageLocation = storageLocation; - return this; - } - - @Override - public SnapshotSettings set(String fieldName, Object value) { - return (SnapshotSettings) super.set(fieldName, value); - } - - @Override - public SnapshotSettings clone() { - return (SnapshotSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocation.java deleted file mode 100644 index ea0ce649eeb..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SnapshotSettingsAccessLocation. - * - *

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 SnapshotSettingsAccessLocation extends com.google.api.client.json.GenericJson { - - /** - * List of regions that can restore a regional snapshot from the current region - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map locations; - - /** - * Policy of which location is allowed to access snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policy; - - /** - * List of regions that can restore a regional snapshot from the current region - * @return value or {@code null} for none - */ - public java.util.Map getLocations() { - return locations; - } - - /** - * List of regions that can restore a regional snapshot from the current region - * @param locations locations or {@code null} for none - */ - public SnapshotSettingsAccessLocation setLocations(java.util.Map locations) { - this.locations = locations; - return this; - } - - /** - * Policy of which location is allowed to access snapshot. - * @return value or {@code null} for none - */ - public java.lang.String getPolicy() { - return policy; - } - - /** - * Policy of which location is allowed to access snapshot. - * @param policy policy or {@code null} for none - */ - public SnapshotSettingsAccessLocation setPolicy(java.lang.String policy) { - this.policy = policy; - return this; - } - - @Override - public SnapshotSettingsAccessLocation set(String fieldName, Object value) { - return (SnapshotSettingsAccessLocation) super.set(fieldName, value); - } - - @Override - public SnapshotSettingsAccessLocation clone() { - return (SnapshotSettingsAccessLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocationAccessLocationPreference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocationAccessLocationPreference.java deleted file mode 100644 index 84e2e014ee2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsAccessLocationAccessLocationPreference.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * A structure for specifying an allowed target region. - * - *

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 SnapshotSettingsAccessLocationAccessLocationPreference extends com.google.api.client.json.GenericJson { - - /** - * Accessible region name - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Accessible region name - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Accessible region name - * @param region region or {@code null} for none - */ - public SnapshotSettingsAccessLocationAccessLocationPreference setRegion(java.lang.String region) { - this.region = region; - return this; - } - - @Override - public SnapshotSettingsAccessLocationAccessLocationPreference set(String fieldName, Object value) { - return (SnapshotSettingsAccessLocationAccessLocationPreference) super.set(fieldName, value); - } - - @Override - public SnapshotSettingsAccessLocationAccessLocationPreference clone() { - return (SnapshotSettingsAccessLocationAccessLocationPreference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettings.java deleted file mode 100644 index 6e1d352771b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettings.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SnapshotSettingsStorageLocationSettings. - * - *

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 SnapshotSettingsStorageLocationSettings extends com.google.api.client.json.GenericJson { - - /** - * When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this - * field. Keys are Cloud Storage bucket locations. Only one location can be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map locations; - - /** - * The chosen location policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policy; - - /** - * When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this - * field. Keys are Cloud Storage bucket locations. Only one location can be specified. - * @return value or {@code null} for none - */ - public java.util.Map getLocations() { - return locations; - } - - /** - * When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this - * field. Keys are Cloud Storage bucket locations. Only one location can be specified. - * @param locations locations or {@code null} for none - */ - public SnapshotSettingsStorageLocationSettings setLocations(java.util.Map locations) { - this.locations = locations; - return this; - } - - /** - * The chosen location policy. - * @return value or {@code null} for none - */ - public java.lang.String getPolicy() { - return policy; - } - - /** - * The chosen location policy. - * @param policy policy or {@code null} for none - */ - public SnapshotSettingsStorageLocationSettings setPolicy(java.lang.String policy) { - this.policy = policy; - return this; - } - - @Override - public SnapshotSettingsStorageLocationSettings set(String fieldName, Object value) { - return (SnapshotSettingsStorageLocationSettings) super.set(fieldName, value); - } - - @Override - public SnapshotSettingsStorageLocationSettings clone() { - return (SnapshotSettingsStorageLocationSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java deleted file mode 100644 index 3cf0e0164e2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotSettingsStorageLocationSettingsStorageLocationPreference.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * A structure for specifying storage locations. - * - *

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 SnapshotSettingsStorageLocationSettingsStorageLocationPreference extends com.google.api.client.json.GenericJson { - - /** - * Name of the location. It should be one of the Cloud Storage buckets. Only one location can be - * specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Name of the location. It should be one of the Cloud Storage buckets. Only one location can be - * specified. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Name of the location. It should be one of the Cloud Storage buckets. Only one location can be - * specified. - * @param name name or {@code null} for none - */ - public SnapshotSettingsStorageLocationSettingsStorageLocationPreference setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public SnapshotSettingsStorageLocationSettingsStorageLocationPreference set(String fieldName, Object value) { - return (SnapshotSettingsStorageLocationSettingsStorageLocationPreference) super.set(fieldName, value); - } - - @Override - public SnapshotSettingsStorageLocationSettingsStorageLocationPreference clone() { - return (SnapshotSettingsStorageLocationSettingsStorageLocationPreference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotUpdateKmsKeyRequest.java deleted file mode 100644 index adb4af94ce5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SnapshotUpdateKmsKeyRequest.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SnapshotUpdateKmsKeyRequest. - * - *

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 SnapshotUpdateKmsKeyRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot - * will be re-encrypted using the primary version of the snapshot's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kmsKeyName; - - /** - * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot - * will be re-encrypted using the primary version of the snapshot's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key - * @return value or {@code null} for none - */ - public java.lang.String getKmsKeyName() { - return kmsKeyName; - } - - /** - * Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot - * will be re-encrypted using the primary version of the snapshot's current KMS key. - * - * The KMS key can be provided in the following formats: - - * projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key - * @param kmsKeyName kmsKeyName or {@code null} for none - */ - public SnapshotUpdateKmsKeyRequest setKmsKeyName(java.lang.String kmsKeyName) { - this.kmsKeyName = kmsKeyName; - return this; - } - - @Override - public SnapshotUpdateKmsKeyRequest set(String fieldName, Object value) { - return (SnapshotUpdateKmsKeyRequest) super.set(fieldName, value); - } - - @Override - public SnapshotUpdateKmsKeyRequest clone() { - return (SnapshotUpdateKmsKeyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceDiskEncryptionKey.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceDiskEncryptionKey.java deleted file mode 100644 index 6c1191377a8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceDiskEncryptionKey.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SourceDiskEncryptionKey. - * - *

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 SourceDiskEncryptionKey extends com.google.api.client.json.GenericJson { - - /** - * Thecustomer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomerEncryptionKey diskEncryptionKey; - - /** - * URL of the disk attached to the source instance. This can be a full or valid partial URL. For - * example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceDisk; - - /** - * Thecustomer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * @return value or {@code null} for none - */ - public CustomerEncryptionKey getDiskEncryptionKey() { - return diskEncryptionKey; - } - - /** - * Thecustomer-supplied encryption key of the source disk. Required if the source disk is - * protected by a customer-supplied encryption key. - * @param diskEncryptionKey diskEncryptionKey or {@code null} for none - */ - public SourceDiskEncryptionKey setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey) { - this.diskEncryptionKey = diskEncryptionKey; - return this; - } - - /** - * URL of the disk attached to the source instance. This can be a full or valid partial URL. For - * example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * @return value or {@code null} for none - */ - public java.lang.String getSourceDisk() { - return sourceDisk; - } - - /** - * URL of the disk attached to the source instance. This can be a full or valid partial URL. For - * example, the following are valid values: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk - - * projects/project/zones/zone/disks/disk - zones/zone/disks/disk - * @param sourceDisk sourceDisk or {@code null} for none - */ - public SourceDiskEncryptionKey setSourceDisk(java.lang.String sourceDisk) { - this.sourceDisk = sourceDisk; - return this; - } - - @Override - public SourceDiskEncryptionKey set(String fieldName, Object value) { - return (SourceDiskEncryptionKey) super.set(fieldName, value); - } - - @Override - public SourceDiskEncryptionKey clone() { - return (SourceDiskEncryptionKey) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceParams.java deleted file mode 100644 index 35f1e0ef8fe..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceParams.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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.preview.model; - -/** - * A specification of the parameters to use when creating the instance template from a source - * instance. - * - *

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 SourceInstanceParams extends com.google.api.client.json.GenericJson { - - /** - * Attached disks configuration. If not provided, defaults are applied: For boot disk and any - * other R/W disks, the source images for each disk will be used. For read-only disks, they will - * be attached in read-only mode. Local SSD disks will be created as blank volumes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List diskConfigs; - - static { - // hack to force ProGuard to consider DiskInstantiationConfig 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(DiskInstantiationConfig.class); - } - - /** - * Attached disks configuration. If not provided, defaults are applied: For boot disk and any - * other R/W disks, the source images for each disk will be used. For read-only disks, they will - * be attached in read-only mode. Local SSD disks will be created as blank volumes. - * @return value or {@code null} for none - */ - public java.util.List getDiskConfigs() { - return diskConfigs; - } - - /** - * Attached disks configuration. If not provided, defaults are applied: For boot disk and any - * other R/W disks, the source images for each disk will be used. For read-only disks, they will - * be attached in read-only mode. Local SSD disks will be created as blank volumes. - * @param diskConfigs diskConfigs or {@code null} for none - */ - public SourceInstanceParams setDiskConfigs(java.util.List diskConfigs) { - this.diskConfigs = diskConfigs; - return this; - } - - @Override - public SourceInstanceParams set(String fieldName, Object value) { - return (SourceInstanceParams) super.set(fieldName, value); - } - - @Override - public SourceInstanceParams clone() { - return (SourceInstanceParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceProperties.java deleted file mode 100644 index c936117a84c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SourceInstanceProperties.java +++ /dev/null @@ -1,475 +0,0 @@ -/* - * 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.preview.model; - -/** - * DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to - * this field. - * - *

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 SourceInstanceProperties extends com.google.api.client.json.GenericJson { - - /** - * Enables instances created based on this machine image to send packets with source IP addresses - * other than their own and receive packets with destination IP addresses other than their own. If - * these instances will be used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding - * documentation for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canIpForward; - - /** - * Whether the instance created from this machine image should be protected against deletion. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean deletionProtection; - - /** - * An optional text description for the instances that are created from this machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * An array of disks that are associated with the instances that are created from this machine - * image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List disks; - - static { - // hack to force ProGuard to consider SavedAttachedDisk 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(SavedAttachedDisk.class); - } - - /** - * A list of guest accelerator cards' type and count to use for instances created from this - * machine image. - * 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); - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String keyRevocationActionType; - - /** - * Labels to apply to instances that are created from this machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * The machine type to use for instances that are created from this machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String machineType; - - /** - * The metadata key/value pairs to assign to instances that are created from this machine image. - * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata - * for more information. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Metadata metadata; - - /** - * Minimum cpu/platform to be used by instances created from this machine image. The instance may - * be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names - * of CPU platforms, such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy - * Bridge". For more information, read Specifying a Minimum CPU Platform. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minCpuPlatform; - - /** - * An array of network access configurations for this interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List networkInterfaces; - - static { - // hack to force ProGuard to consider NetworkInterface 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(NetworkInterface.class); - } - - /** - * PostKeyRevocationActionType of the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String postKeyRevocationActionType; - - /** - * Specifies the scheduling options for the instances that are created from this machine image. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Scheduling scheduling; - - /** - * A list of service accounts with specified scopes. Access tokens for these service accounts are - * available to the instances that are created from this machine image. Use metadata queries to - * obtain the access tokens for these instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List serviceAccounts; - - static { - // hack to force ProGuard to consider ServiceAccount 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(ServiceAccount.class); - } - - /** - * A list of tags to apply to the instances that are created from this machine image. The tags - * identify valid sources or targets for network firewalls. The setTags method can modify this - * list of tags. Each tag within the list must comply withRFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Tags tags; - - /** - * Enables instances created based on this machine image to send packets with source IP addresses - * other than their own and receive packets with destination IP addresses other than their own. If - * these instances will be used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding - * documentation for more information. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanIpForward() { - return canIpForward; - } - - /** - * Enables instances created based on this machine image to send packets with source IP addresses - * other than their own and receive packets with destination IP addresses other than their own. If - * these instances will be used as an IP gateway or it will be set as the next-hop in a Route - * resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding - * documentation for more information. - * @param canIpForward canIpForward or {@code null} for none - */ - public SourceInstanceProperties setCanIpForward(java.lang.Boolean canIpForward) { - this.canIpForward = canIpForward; - return this; - } - - /** - * Whether the instance created from this machine image should be protected against deletion. - * @return value or {@code null} for none - */ - public java.lang.Boolean getDeletionProtection() { - return deletionProtection; - } - - /** - * Whether the instance created from this machine image should be protected against deletion. - * @param deletionProtection deletionProtection or {@code null} for none - */ - public SourceInstanceProperties setDeletionProtection(java.lang.Boolean deletionProtection) { - this.deletionProtection = deletionProtection; - return this; - } - - /** - * An optional text description for the instances that are created from this machine image. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional text description for the instances that are created from this machine image. - * @param description description or {@code null} for none - */ - public SourceInstanceProperties setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * An array of disks that are associated with the instances that are created from this machine - * image. - * @return value or {@code null} for none - */ - public java.util.List getDisks() { - return disks; - } - - /** - * An array of disks that are associated with the instances that are created from this machine - * image. - * @param disks disks or {@code null} for none - */ - public SourceInstanceProperties setDisks(java.util.List disks) { - this.disks = disks; - return this; - } - - /** - * A list of guest accelerator cards' type and count to use for instances created from this - * machine image. - * @return value or {@code null} for none - */ - public java.util.List getGuestAccelerators() { - return guestAccelerators; - } - - /** - * A list of guest accelerator cards' type and count to use for instances created from this - * machine image. - * @param guestAccelerators guestAccelerators or {@code null} for none - */ - public SourceInstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { - this.guestAccelerators = guestAccelerators; - return this; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * @return value or {@code null} for none - */ - public java.lang.String getKeyRevocationActionType() { - return keyRevocationActionType; - } - - /** - * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default - * value is "NONE" if it is not specified. - * @param keyRevocationActionType keyRevocationActionType or {@code null} for none - */ - public SourceInstanceProperties setKeyRevocationActionType(java.lang.String keyRevocationActionType) { - this.keyRevocationActionType = keyRevocationActionType; - return this; - } - - /** - * Labels to apply to instances that are created from this machine image. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to instances that are created from this machine image. - * @param labels labels or {@code null} for none - */ - public SourceInstanceProperties setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * The machine type to use for instances that are created from this machine image. - * @return value or {@code null} for none - */ - public java.lang.String getMachineType() { - return machineType; - } - - /** - * The machine type to use for instances that are created from this machine image. - * @param machineType machineType or {@code null} for none - */ - public SourceInstanceProperties setMachineType(java.lang.String machineType) { - this.machineType = machineType; - return this; - } - - /** - * The metadata key/value pairs to assign to instances that are created from this machine image. - * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata - * for more information. - * @return value or {@code null} for none - */ - public Metadata getMetadata() { - return metadata; - } - - /** - * The metadata key/value pairs to assign to instances that are created from this machine image. - * These pairs can consist of custom metadata or predefined keys. SeeProject and instance metadata - * for more information. - * @param metadata metadata or {@code null} for none - */ - public SourceInstanceProperties setMetadata(Metadata metadata) { - this.metadata = metadata; - return this; - } - - /** - * Minimum cpu/platform to be used by instances created from this machine image. The instance may - * be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names - * of CPU platforms, such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy - * Bridge". For more information, read Specifying a Minimum CPU Platform. - * @return value or {@code null} for none - */ - public java.lang.String getMinCpuPlatform() { - return minCpuPlatform; - } - - /** - * Minimum cpu/platform to be used by instances created from this machine image. The instance may - * be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names - * of CPU platforms, such as minCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy - * Bridge". For more information, read Specifying a Minimum CPU Platform. - * @param minCpuPlatform minCpuPlatform or {@code null} for none - */ - public SourceInstanceProperties setMinCpuPlatform(java.lang.String minCpuPlatform) { - this.minCpuPlatform = minCpuPlatform; - return this; - } - - /** - * An array of network access configurations for this interface. - * @return value or {@code null} for none - */ - public java.util.List getNetworkInterfaces() { - return networkInterfaces; - } - - /** - * An array of network access configurations for this interface. - * @param networkInterfaces networkInterfaces or {@code null} for none - */ - public SourceInstanceProperties setNetworkInterfaces(java.util.List networkInterfaces) { - this.networkInterfaces = networkInterfaces; - return this; - } - - /** - * PostKeyRevocationActionType of the instance. - * @return value or {@code null} for none - */ - public java.lang.String getPostKeyRevocationActionType() { - return postKeyRevocationActionType; - } - - /** - * PostKeyRevocationActionType of the instance. - * @param postKeyRevocationActionType postKeyRevocationActionType or {@code null} for none - */ - public SourceInstanceProperties setPostKeyRevocationActionType(java.lang.String postKeyRevocationActionType) { - this.postKeyRevocationActionType = postKeyRevocationActionType; - return this; - } - - /** - * Specifies the scheduling options for the instances that are created from this machine image. - * @return value or {@code null} for none - */ - public Scheduling getScheduling() { - return scheduling; - } - - /** - * Specifies the scheduling options for the instances that are created from this machine image. - * @param scheduling scheduling or {@code null} for none - */ - public SourceInstanceProperties setScheduling(Scheduling scheduling) { - this.scheduling = scheduling; - return this; - } - - /** - * A list of service accounts with specified scopes. Access tokens for these service accounts are - * available to the instances that are created from this machine image. Use metadata queries to - * obtain the access tokens for these instances. - * @return value or {@code null} for none - */ - public java.util.List getServiceAccounts() { - return serviceAccounts; - } - - /** - * A list of service accounts with specified scopes. Access tokens for these service accounts are - * available to the instances that are created from this machine image. Use metadata queries to - * obtain the access tokens for these instances. - * @param serviceAccounts serviceAccounts or {@code null} for none - */ - public SourceInstanceProperties setServiceAccounts(java.util.List serviceAccounts) { - this.serviceAccounts = serviceAccounts; - return this; - } - - /** - * A list of tags to apply to the instances that are created from this machine image. The tags - * identify valid sources or targets for network firewalls. The setTags method can modify this - * list of tags. Each tag within the list must comply withRFC1035. - * @return value or {@code null} for none - */ - public Tags getTags() { - return tags; - } - - /** - * A list of tags to apply to the instances that are created from this machine image. The tags - * identify valid sources or targets for network firewalls. The setTags method can modify this - * list of tags. Each tag within the list must comply withRFC1035. - * @param tags tags or {@code null} for none - */ - public SourceInstanceProperties setTags(Tags tags) { - this.tags = tags; - return this; - } - - @Override - public SourceInstanceProperties set(String fieldName, Object value) { - return (SourceInstanceProperties) super.set(fieldName, value); - } - - @Override - public SourceInstanceProperties clone() { - return (SourceInstanceProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificate.java deleted file mode 100644 index 308cd9f3ae9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificate.java +++ /dev/null @@ -1,429 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an SSL certificate resource. - * - * Google Compute Engine has two SSL certificate resources: - * - * * [Global](/compute/docs/reference/rest/v1/sslCertificates) * - * [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) - * - * The global SSL certificates (sslCertificates) are used by: - Global external Application - * Load Balancers - Classic Application Load Balancers - Proxy Network Load Balancers (with - * target SSL proxies) - * - * The regional SSL certificates (regionSslCertificates) are used by: - Regional external - * Application Load Balancers - Regional internal Application Load Balancers - * - * Optionally, certificate file contents that you upload can contain a set of up to five PEM-encoded - * certificates. The API call creates an object (sslCertificate) that holds this data. You can use - * SSL keys and certificates to secure connections to a load balancer. For more information, read - * Creating and using SSL certificates,SSL certificates quotas and limits, and Troubleshooting SSL - * certificates. - * - *

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 SslCertificate extends com.google.api.client.json.GenericJson { - - /** - * A value read into memory from a certificate file. The certificate file must be in PEM format. - * The certificate chain must be no greater than 5 certs long. The chain must include at least one - * intermediate cert. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String certificate; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expireTime; - - /** - * [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] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Configuration and status of a managed SSL certificate. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SslCertificateManagedSslCertificate managed; - - /** - * Name of the resource. Provided by the client 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; - - /** - * A value read into memory from a write-only private key file. The private key file must be in - * PEM format. For security, only insert requests include this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String privateKey; - - /** - * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This - * field is not applicable to global SSL Certificate. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * Configuration and status of a self-managed SSL certificate. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SslCertificateSelfManagedSslCertificate selfManaged; - - /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subjectAlternativeNames; - - /** - * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not - * specified, the certificate is self-managed and the fieldscertificate and private_key are used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * A value read into memory from a certificate file. The certificate file must be in PEM format. - * The certificate chain must be no greater than 5 certs long. The chain must include at least one - * intermediate cert. - * @return value or {@code null} for none - */ - public java.lang.String getCertificate() { - return certificate; - } - - /** - * A value read into memory from a certificate file. The certificate file must be in PEM format. - * The certificate chain must be no greater than 5 certs long. The chain must include at least one - * intermediate cert. - * @param certificate certificate or {@code null} for none - */ - public SslCertificate setCertificate(java.lang.String certificate) { - this.certificate = certificate; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public SslCertificate setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public SslCertificate setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 - * @return value or {@code null} for none - */ - public java.lang.String getExpireTime() { - return expireTime; - } - - /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 - * @param expireTime expireTime or {@code null} for none - */ - public SslCertificate setExpireTime(java.lang.String expireTime) { - this.expireTime = expireTime; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public SslCertificate setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. - * @param kind kind or {@code null} for none - */ - public SslCertificate setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Configuration and status of a managed SSL certificate. - * @return value or {@code null} for none - */ - public SslCertificateManagedSslCertificate getManaged() { - return managed; - } - - /** - * Configuration and status of a managed SSL certificate. - * @param managed managed or {@code null} for none - */ - public SslCertificate setManaged(SslCertificateManagedSslCertificate managed) { - this.managed = managed; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 SslCertificate setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * A value read into memory from a write-only private key file. The private key file must be in - * PEM format. For security, only insert requests include this field. - * @return value or {@code null} for none - */ - public java.lang.String getPrivateKey() { - return privateKey; - } - - /** - * A value read into memory from a write-only private key file. The private key file must be in - * PEM format. For security, only insert requests include this field. - * @param privateKey privateKey or {@code null} for none - */ - public SslCertificate setPrivateKey(java.lang.String privateKey) { - this.privateKey = privateKey; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This - * field is not applicable to global SSL Certificate. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This - * field is not applicable to global SSL Certificate. - * @param region region or {@code null} for none - */ - public SslCertificate setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public SslCertificate setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Configuration and status of a self-managed SSL certificate. - * @return value or {@code null} for none - */ - public SslCertificateSelfManagedSslCertificate getSelfManaged() { - return selfManaged; - } - - /** - * Configuration and status of a self-managed SSL certificate. - * @param selfManaged selfManaged or {@code null} for none - */ - public SslCertificate setSelfManaged(SslCertificateSelfManagedSslCertificate selfManaged) { - this.selfManaged = selfManaged; - return this; - } - - /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. - * @return value or {@code null} for none - */ - public java.util.List getSubjectAlternativeNames() { - return subjectAlternativeNames; - } - - /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. - * @param subjectAlternativeNames subjectAlternativeNames or {@code null} for none - */ - public SslCertificate setSubjectAlternativeNames(java.util.List subjectAlternativeNames) { - this.subjectAlternativeNames = subjectAlternativeNames; - return this; - } - - /** - * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not - * specified, the certificate is self-managed and the fieldscertificate and private_key are used. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not - * specified, the certificate is self-managed and the fieldscertificate and private_key are used. - * @param type type or {@code null} for none - */ - public SslCertificate setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public SslCertificate set(String fieldName, Object value) { - return (SslCertificate) super.set(fieldName, value); - } - - @Override - public SslCertificate clone() { - return (SslCertificate) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateAggregatedList.java deleted file mode 100644 index 70479713072..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslCertificateAggregatedList. - * - *

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 SslCertificateAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 SslCertificatesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for - * lists of SSL Certificates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 SslCertificateAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SslCertificatesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of SslCertificatesScopedList resources. - * @param items items or {@code null} for none - */ - public SslCertificateAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for - * lists of SSL Certificates. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for - * lists of SSL Certificates. - * @param kind kind or {@code null} for none - */ - public SslCertificateAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SslCertificateAggregatedList 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 SslCertificateAggregatedList 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 SslCertificateAggregatedList 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 SslCertificateAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SslCertificateAggregatedList set(String fieldName, Object value) { - return (SslCertificateAggregatedList) super.set(fieldName, value); - } - - @Override - public SslCertificateAggregatedList clone() { - return (SslCertificateAggregatedList) 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 SslCertificateAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateList.java deleted file mode 100644 index 174f1dd458d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of SslCertificate resources. - * - *

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 SslCertificateList extends com.google.api.client.json.GenericJson { - - /** - * [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 SslCertificate 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 SslCertificate 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(SslCertificate.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 SslCertificateList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SslCertificate resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of SslCertificate resources. - * @param items items or {@code null} for none - */ - public SslCertificateList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public SslCertificateList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SslCertificateList 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 SslCertificateList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 SslCertificateList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SslCertificateList set(String fieldName, Object value) { - return (SslCertificateList) super.set(fieldName, value); - } - - @Override - public SslCertificateList clone() { - return (SslCertificateList) 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 SslCertificateListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateManagedSslCertificate.java deleted file mode 100644 index ac598220a61..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateManagedSslCertificate.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration and status of a managed SSL certificate. - * - *

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 SslCertificateManagedSslCertificate extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] Detailed statuses of the domains specified for managed certificate - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map domainStatus; - - /** - * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL - * certificate supports up to the [maximum number of domains per Google-managed SSL - * certificate](/load-balancing/docs/quotas#ssl_certificates). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List domains; - - /** - * Output only. [Output only] Status of the managed certificate resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output only] Detailed statuses of the domains specified for managed certificate - * resource. - * @return value or {@code null} for none - */ - public java.util.Map getDomainStatus() { - return domainStatus; - } - - /** - * Output only. [Output only] Detailed statuses of the domains specified for managed certificate - * resource. - * @param domainStatus domainStatus or {@code null} for none - */ - public SslCertificateManagedSslCertificate setDomainStatus(java.util.Map domainStatus) { - this.domainStatus = domainStatus; - return this; - } - - /** - * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL - * certificate supports up to the [maximum number of domains per Google-managed SSL - * certificate](/load-balancing/docs/quotas#ssl_certificates). - * @return value or {@code null} for none - */ - public java.util.List getDomains() { - return domains; - } - - /** - * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL - * certificate supports up to the [maximum number of domains per Google-managed SSL - * certificate](/load-balancing/docs/quotas#ssl_certificates). - * @param domains domains or {@code null} for none - */ - public SslCertificateManagedSslCertificate setDomains(java.util.List domains) { - this.domains = domains; - return this; - } - - /** - * Output only. [Output only] Status of the managed certificate resource. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output only] Status of the managed certificate resource. - * @param status status or {@code null} for none - */ - public SslCertificateManagedSslCertificate setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public SslCertificateManagedSslCertificate set(String fieldName, Object value) { - return (SslCertificateManagedSslCertificate) super.set(fieldName, value); - } - - @Override - public SslCertificateManagedSslCertificate clone() { - return (SslCertificateManagedSslCertificate) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateSelfManagedSslCertificate.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateSelfManagedSslCertificate.java deleted file mode 100644 index 644cf553535..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificateSelfManagedSslCertificate.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration and status of a self-managed SSL certificate. - * - *

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 SslCertificateSelfManagedSslCertificate extends com.google.api.client.json.GenericJson { - - /** - * A local certificate file. The certificate must be in PEM format. The certificate chain must be - * no greater than 5 certs long. The chain must include at least one intermediate cert. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String certificate; - - /** - * A write-only private key in PEM format. Only insert requests will include this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String privateKey; - - /** - * A local certificate file. The certificate must be in PEM format. The certificate chain must be - * no greater than 5 certs long. The chain must include at least one intermediate cert. - * @return value or {@code null} for none - */ - public java.lang.String getCertificate() { - return certificate; - } - - /** - * A local certificate file. The certificate must be in PEM format. The certificate chain must be - * no greater than 5 certs long. The chain must include at least one intermediate cert. - * @param certificate certificate or {@code null} for none - */ - public SslCertificateSelfManagedSslCertificate setCertificate(java.lang.String certificate) { - this.certificate = certificate; - return this; - } - - /** - * A write-only private key in PEM format. Only insert requests will include this field. - * @return value or {@code null} for none - */ - public java.lang.String getPrivateKey() { - return privateKey; - } - - /** - * A write-only private key in PEM format. Only insert requests will include this field. - * @param privateKey privateKey or {@code null} for none - */ - public SslCertificateSelfManagedSslCertificate setPrivateKey(java.lang.String privateKey) { - this.privateKey = privateKey; - return this; - } - - @Override - public SslCertificateSelfManagedSslCertificate set(String fieldName, Object value) { - return (SslCertificateSelfManagedSslCertificate) super.set(fieldName, value); - } - - @Override - public SslCertificateSelfManagedSslCertificate clone() { - return (SslCertificateSelfManagedSslCertificate) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificatesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificatesScopedList.java deleted file mode 100644 index c68dabb49dc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslCertificatesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslCertificatesScopedList. - * - *

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 SslCertificatesScopedList extends com.google.api.client.json.GenericJson { - - /** - * List of SslCertificates contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslCertificates; - - static { - // hack to force ProGuard to consider SslCertificate 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(SslCertificate.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * List of SslCertificates contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getSslCertificates() { - return sslCertificates; - } - - /** - * List of SslCertificates contained in this scope. - * @param sslCertificates sslCertificates or {@code null} for none - */ - public SslCertificatesScopedList setSslCertificates(java.util.List sslCertificates) { - this.sslCertificates = sslCertificates; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public SslCertificatesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SslCertificatesScopedList set(String fieldName, Object value) { - return (SslCertificatesScopedList) super.set(fieldName, value); - } - - @Override - public SslCertificatesScopedList clone() { - return (SslCertificatesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 SslCertificatesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesAggregatedList.java deleted file mode 100644 index 11463b0857f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesAggregatedList.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslPoliciesAggregatedList. - * - *

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 SslPoliciesAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 SslPoliciesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of - * SSL Policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public SslPoliciesAggregatedList 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 SslPoliciesAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SslPoliciesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of SslPoliciesScopedList resources. - * @param items items or {@code null} for none - */ - public SslPoliciesAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of - * SSL Policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of - * SSL Policies. - * @param kind kind or {@code null} for none - */ - public SslPoliciesAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SslPoliciesAggregatedList 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 SslPoliciesAggregatedList 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 SslPoliciesAggregatedList 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 SslPoliciesAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SslPoliciesAggregatedList set(String fieldName, Object value) { - return (SslPoliciesAggregatedList) super.set(fieldName, value); - } - - @Override - public SslPoliciesAggregatedList clone() { - return (SslPoliciesAggregatedList) 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 SslPoliciesAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesList.java deleted file mode 100644 index 2630d7302ca..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesList.java +++ /dev/null @@ -1,380 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslPoliciesList. - * - *

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 SslPoliciesList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [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; - - /** - * Output only. A list of SslPolicy resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public SslPoliciesList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. A list of SslPolicy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. A list of SslPolicy resources. - * @param items items or {@code null} for none - */ - public SslPoliciesList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. - * @param kind kind or {@code null} for none - */ - public SslPoliciesList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SslPoliciesList 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 SslPoliciesList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 SslPoliciesList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SslPoliciesList set(String fieldName, Object value) { - return (SslPoliciesList) super.set(fieldName, value); - } - - @Override - public SslPoliciesList clone() { - return (SslPoliciesList) 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 SslPoliciesListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesListAvailableFeaturesResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesListAvailableFeaturesResponse.java deleted file mode 100644 index 71c32d8f441..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesListAvailableFeaturesResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslPoliciesListAvailableFeaturesResponse. - * - *

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 SslPoliciesListAvailableFeaturesResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List features; - - /** - * @return value or {@code null} for none - */ - public java.util.List getFeatures() { - return features; - } - - /** - * @param features features or {@code null} for none - */ - public SslPoliciesListAvailableFeaturesResponse setFeatures(java.util.List features) { - this.features = features; - return this; - } - - @Override - public SslPoliciesListAvailableFeaturesResponse set(String fieldName, Object value) { - return (SslPoliciesListAvailableFeaturesResponse) super.set(fieldName, value); - } - - @Override - public SslPoliciesListAvailableFeaturesResponse clone() { - return (SslPoliciesListAvailableFeaturesResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesScopedList.java deleted file mode 100644 index c791c27de92..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPoliciesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslPoliciesScopedList. - * - *

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 SslPoliciesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of SslPolicies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslPolicies; - - /** - * Informational warning which replaces the list of SSL policies when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of SslPolicies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getSslPolicies() { - return sslPolicies; - } - - /** - * A list of SslPolicies contained in this scope. - * @param sslPolicies sslPolicies or {@code null} for none - */ - public SslPoliciesScopedList setSslPolicies(java.util.List sslPolicies) { - this.sslPolicies = sslPolicies; - return this; - } - - /** - * Informational warning which replaces the list of SSL policies when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of SSL policies when the list is empty. - * @param warning warning or {@code null} for none - */ - public SslPoliciesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SslPoliciesScopedList set(String fieldName, Object value) { - return (SslPoliciesScopedList) super.set(fieldName, value); - } - - @Override - public SslPoliciesScopedList clone() { - return (SslPoliciesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of SSL policies when the list is empty. - */ - 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 SslPoliciesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicy.java deleted file mode 100644 index 0d82e1795e2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicy.java +++ /dev/null @@ -1,681 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents an SSL Policy resource. - * - * Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by - * Application Load Balancers and proxy Network Load Balancers. For more information, read SSL - * policies overview. - * - *

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 SslPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * A list of features enabled when the selected profile is CUSTOM. The method returns the set of - * features that can be specified in this list. This field must be empty if the profile is - * notCUSTOM. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List customFeatures; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Output only. [Output Only] The list of features enabled in the SSL policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List enabledFeatures; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date - * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * 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] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * The minimum version of SSL protocol that can be used by the clients to establish a connection - * with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to - * TLS_1_3, the profile field must be set to RESTRICTED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String minTlsVersion; - - /** - * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. - * 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; - - /** - * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer negotiates - * X25519MLKEM768 key exchange when clients advertise support for it. When set to DEFAULT, or if - * no SSL Policy is attached to the target proxy, the load balancer disallows X25519MLKEM768 key - * exchange before October 2026, and allows it afterward. When set to ENABLED, the load balancer - * allows X25519MLKEM768 key exchange. When set toDEFERRED, the load balancer disallows - * X25519MLKEM768 key exchange until October 2027, and allows it afterward. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String postQuantumKeyExchange; - - /** - * Profile specifies the set of SSL features that can be used by the load balancer when - * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or - * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the - * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String profile; - - /** - * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field - * is not applicable to global SSL policies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List warnings; - - static { - // hack to force ProGuard to consider Warnings 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(Warnings.class); - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * A list of features enabled when the selected profile is CUSTOM. The method returns the set of - * features that can be specified in this list. This field must be empty if the profile is - * notCUSTOM. - * @return value or {@code null} for none - */ - public java.util.List getCustomFeatures() { - return customFeatures; - } - - /** - * A list of features enabled when the selected profile is CUSTOM. The method returns the set of - * features that can be specified in this list. This field must be empty if the profile is - * notCUSTOM. - * @param customFeatures customFeatures or {@code null} for none - */ - public SslPolicy setCustomFeatures(java.util.List customFeatures) { - this.customFeatures = customFeatures; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public SslPolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Output only. [Output Only] The list of features enabled in the SSL policy. - * @return value or {@code null} for none - */ - public java.util.List getEnabledFeatures() { - return enabledFeatures; - } - - /** - * Output only. [Output Only] The list of features enabled in the SSL policy. - * @param enabledFeatures enabledFeatures or {@code null} for none - */ - public SslPolicy setEnabledFeatures(java.util.List enabledFeatures) { - this.enabledFeatures = enabledFeatures; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date - * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date - * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date - * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public SslPolicy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date - * fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve an SslPolicy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public SslPolicy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - 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 SslPolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. - * @param kind kind or {@code null} for none - */ - public SslPolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * The minimum version of SSL protocol that can be used by the clients to establish a connection - * with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to - * TLS_1_3, the profile field must be set to RESTRICTED. - * @return value or {@code null} for none - */ - public java.lang.String getMinTlsVersion() { - return minTlsVersion; - } - - /** - * The minimum version of SSL protocol that can be used by the clients to establish a connection - * with the load balancer. This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to - * TLS_1_3, the profile field must be set to RESTRICTED. - * @param minTlsVersion minTlsVersion or {@code null} for none - */ - public SslPolicy setMinTlsVersion(java.lang.String minTlsVersion) { - this.minTlsVersion = minTlsVersion; - return this; - } - - /** - * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. - * 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. The name must be 1-63 characters long, and comply with RFC1035. - * 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 SslPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer negotiates - * X25519MLKEM768 key exchange when clients advertise support for it. When set to DEFAULT, or if - * no SSL Policy is attached to the target proxy, the load balancer disallows X25519MLKEM768 key - * exchange before October 2026, and allows it afterward. When set to ENABLED, the load balancer - * allows X25519MLKEM768 key exchange. When set toDEFERRED, the load balancer disallows - * X25519MLKEM768 key exchange until October 2027, and allows it afterward. - * @return value or {@code null} for none - */ - public java.lang.String getPostQuantumKeyExchange() { - return postQuantumKeyExchange; - } - - /** - * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer negotiates - * X25519MLKEM768 key exchange when clients advertise support for it. When set to DEFAULT, or if - * no SSL Policy is attached to the target proxy, the load balancer disallows X25519MLKEM768 key - * exchange before October 2026, and allows it afterward. When set to ENABLED, the load balancer - * allows X25519MLKEM768 key exchange. When set toDEFERRED, the load balancer disallows - * X25519MLKEM768 key exchange until October 2027, and allows it afterward. - * @param postQuantumKeyExchange postQuantumKeyExchange or {@code null} for none - */ - public SslPolicy setPostQuantumKeyExchange(java.lang.String postQuantumKeyExchange) { - this.postQuantumKeyExchange = postQuantumKeyExchange; - return this; - } - - /** - * Profile specifies the set of SSL features that can be used by the load balancer when - * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or - * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the - * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. - * @return value or {@code null} for none - */ - public java.lang.String getProfile() { - return profile; - } - - /** - * Profile specifies the set of SSL features that can be used by the load balancer when - * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or - * CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in the - * customFeatures field. If using FIPS_202205, the min_tls_version field must be set to TLS_1_2. - * @param profile profile or {@code null} for none - */ - public SslPolicy setProfile(java.lang.String profile) { - this.profile = profile; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field - * is not applicable to global SSL policies. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field - * is not applicable to global SSL policies. - * @param region region or {@code null} for none - */ - public SslPolicy setRegion(java.lang.String region) { - this.region = region; - 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 SslPolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. - * @return value or {@code null} for none - */ - public java.util.List getWarnings() { - return warnings; - } - - /** - * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. - * @param warnings warnings or {@code null} for none - */ - public SslPolicy setWarnings(java.util.List warnings) { - this.warnings = warnings; - return this; - } - - @Override - public SslPolicy set(String fieldName, Object value) { - return (SslPolicy) super.set(fieldName, value); - } - - @Override - public SslPolicy clone() { - return (SslPolicy) super.clone(); - } - - /** - * Model definition for SslPolicyWarnings. - */ - public static final class Warnings 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 Warnings 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 Warnings 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 Warnings setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warnings set(String fieldName, Object value) { - return (Warnings) super.set(fieldName, value); - } - - @Override - public Warnings clone() { - return (Warnings) super.clone(); - } - - /** - * Model definition for SslPolicyWarningsData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicyReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicyReference.java deleted file mode 100644 index ee7ca214030..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SslPolicyReference.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SslPolicyReference. - * - *

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 SslPolicyReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * @param sslPolicy sslPolicy or {@code null} for none - */ - public SslPolicyReference setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - return this; - } - - @Override - public SslPolicyReference set(String fieldName, Object value) { - return (SslPolicyReference) super.set(fieldName, value); - } - - @Override - public SslPolicyReference clone() { - return (SslPolicyReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicy.java deleted file mode 100644 index 07fceef98d6..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicy.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StatefulPolicy. - * - *

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 StatefulPolicy extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StatefulPolicyPreservedState preservedState; - - /** - * @return value or {@code null} for none - */ - public StatefulPolicyPreservedState getPreservedState() { - return preservedState; - } - - /** - * @param preservedState preservedState or {@code null} for none - */ - public StatefulPolicy setPreservedState(StatefulPolicyPreservedState preservedState) { - this.preservedState = preservedState; - return this; - } - - @Override - public StatefulPolicy set(String fieldName, Object value) { - return (StatefulPolicy) super.set(fieldName, value); - } - - @Override - public StatefulPolicy clone() { - return (StatefulPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedState.java deleted file mode 100644 index 12fba4216d3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedState.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration of preserved resources. - * - *

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 StatefulPolicyPreservedState extends com.google.api.client.json.GenericJson { - - /** - * Disks created on the instances that will be preserved on instance delete, update, etc. This map - * is keyed with the device names of the disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map disks; - - /** - * External network IPs assigned to the instances that will be preserved on instance delete, - * update, etc. This map is keyed with the network interface name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map externalIPs; - - /** - * Internal network IPs assigned to the instances that will be preserved on instance delete, - * update, etc. This map is keyed with the network interface name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map internalIPs; - - /** - * Disks created on the instances that will be preserved on instance delete, update, etc. This map - * is keyed with the device names of the disks. - * @return value or {@code null} for none - */ - public java.util.Map getDisks() { - return disks; - } - - /** - * Disks created on the instances that will be preserved on instance delete, update, etc. This map - * is keyed with the device names of the disks. - * @param disks disks or {@code null} for none - */ - public StatefulPolicyPreservedState setDisks(java.util.Map disks) { - this.disks = disks; - return this; - } - - /** - * External network IPs assigned to the instances that will be preserved on instance delete, - * update, etc. This map is keyed with the network interface name. - * @return value or {@code null} for none - */ - public java.util.Map getExternalIPs() { - return externalIPs; - } - - /** - * External network IPs assigned to the instances that will be preserved on instance delete, - * update, etc. This map is keyed with the network interface name. - * @param externalIPs externalIPs or {@code null} for none - */ - public StatefulPolicyPreservedState setExternalIPs(java.util.Map externalIPs) { - this.externalIPs = externalIPs; - return this; - } - - /** - * Internal network IPs assigned to the instances that will be preserved on instance delete, - * update, etc. This map is keyed with the network interface name. - * @return value or {@code null} for none - */ - public java.util.Map getInternalIPs() { - return internalIPs; - } - - /** - * Internal network IPs assigned to the instances that will be preserved on instance delete, - * update, etc. This map is keyed with the network interface name. - * @param internalIPs internalIPs or {@code null} for none - */ - public StatefulPolicyPreservedState setInternalIPs(java.util.Map internalIPs) { - this.internalIPs = internalIPs; - return this; - } - - @Override - public StatefulPolicyPreservedState set(String fieldName, Object value) { - return (StatefulPolicyPreservedState) super.set(fieldName, value); - } - - @Override - public StatefulPolicyPreservedState clone() { - return (StatefulPolicyPreservedState) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateDiskDevice.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateDiskDevice.java deleted file mode 100644 index 91b13e7867f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateDiskDevice.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StatefulPolicyPreservedStateDiskDevice. - * - *

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 StatefulPolicyPreservedStateDiskDevice extends com.google.api.client.json.GenericJson { - - /** - * These stateful disks will never be deleted during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the disk should be deleted after it is no longer - * used by the group, e.g. when the given instance or the whole group is deleted. Note: disks - * attached inREAD_ONLY mode cannot be auto-deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoDelete; - - /** - * These stateful disks will never be deleted during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the disk should be deleted after it is no longer - * used by the group, e.g. when the given instance or the whole group is deleted. Note: disks - * attached inREAD_ONLY mode cannot be auto-deleted. - * @return value or {@code null} for none - */ - public java.lang.String getAutoDelete() { - return autoDelete; - } - - /** - * These stateful disks will never be deleted during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the disk should be deleted after it is no longer - * used by the group, e.g. when the given instance or the whole group is deleted. Note: disks - * attached inREAD_ONLY mode cannot be auto-deleted. - * @param autoDelete autoDelete or {@code null} for none - */ - public StatefulPolicyPreservedStateDiskDevice setAutoDelete(java.lang.String autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - @Override - public StatefulPolicyPreservedStateDiskDevice set(String fieldName, Object value) { - return (StatefulPolicyPreservedStateDiskDevice) super.set(fieldName, value); - } - - @Override - public StatefulPolicyPreservedStateDiskDevice clone() { - return (StatefulPolicyPreservedStateDiskDevice) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateNetworkIp.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateNetworkIp.java deleted file mode 100644 index d8e8dbd2d72..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StatefulPolicyPreservedStateNetworkIp.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StatefulPolicyPreservedStateNetworkIp. - * - *

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 StatefulPolicyPreservedStateNetworkIp extends com.google.api.client.json.GenericJson { - - /** - * These stateful IPs will never be released during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the IP reservation should be deleted after it is - * no longer used by the group, e.g. when the given instance or the whole group is deleted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoDelete; - - /** - * These stateful IPs will never be released during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the IP reservation should be deleted after it is - * no longer used by the group, e.g. when the given instance or the whole group is deleted. - * @return value or {@code null} for none - */ - public java.lang.String getAutoDelete() { - return autoDelete; - } - - /** - * These stateful IPs will never be released during autohealing, update or VM instance recreate - * operations. This flag is used to configure if the IP reservation should be deleted after it is - * no longer used by the group, e.g. when the given instance or the whole group is deleted. - * @param autoDelete autoDelete or {@code null} for none - */ - public StatefulPolicyPreservedStateNetworkIp setAutoDelete(java.lang.String autoDelete) { - this.autoDelete = autoDelete; - return this; - } - - @Override - public StatefulPolicyPreservedStateNetworkIp set(String fieldName, Object value) { - return (StatefulPolicyPreservedStateNetworkIp) super.set(fieldName, value); - } - - @Override - public StatefulPolicyPreservedStateNetworkIp clone() { - return (StatefulPolicyPreservedStateNetworkIp) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Status.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Status.java deleted file mode 100644 index b0c4fc7d0b5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Status.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * 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.preview.model; - -/** - * The `Status` type defines a logical error model that is suitable for different programming - * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). - * Each `Status` message contains three pieces of data: error code, error message, and error - * details. - * - * You can find out more about this error model and how to work with it in the [API Design - * Guide](https://cloud.google.com/apis/design/errors). - * - *

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 Status extends com.google.api.client.json.GenericJson { - - /** - * The status code, which should be an enum value of google.rpc.Code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer code; - - /** - * A list of messages that carry the error details. There is a common set of message types for - * APIs to use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List> details; - - /** - * A developer-facing error message, which should be in English. Any user-facing error message - * should be localized and sent in the google.rpc.Status.details field, or localized by the - * client. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * The status code, which should be an enum value of google.rpc.Code. - * @return value or {@code null} for none - */ - public java.lang.Integer getCode() { - return code; - } - - /** - * The status code, which should be an enum value of google.rpc.Code. - * @param code code or {@code null} for none - */ - public Status setCode(java.lang.Integer code) { - this.code = code; - return this; - } - - /** - * A list of messages that carry the error details. There is a common set of message types for - * APIs to use. - * @return value or {@code null} for none - */ - public java.util.List> getDetails() { - return details; - } - - /** - * A list of messages that carry the error details. There is a common set of message types for - * APIs to use. - * @param details details or {@code null} for none - */ - public Status setDetails(java.util.List> details) { - this.details = details; - return this; - } - - /** - * A developer-facing error message, which should be in English. Any user-facing error message - * should be localized and sent in the google.rpc.Status.details field, or localized by the - * client. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * A developer-facing error message, which should be in English. Any user-facing error message - * should be localized and sent in the google.rpc.Status.details field, or localized by the - * client. - * @param message message or {@code null} for none - */ - public Status setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Status set(String fieldName, Object value) { - return (Status) super.set(fieldName, value); - } - - @Override - public Status clone() { - return (Status) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePool.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePool.java deleted file mode 100644 index 8a48ee27688..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePool.java +++ /dev/null @@ -1,667 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a zonal storage pool 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 StoragePool extends com.google.api.client.json.GenericJson { - - /** - * Provisioning type of the byte capacity of the pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String capacityProvisioningType; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Provisioned capacities for each SKU for this Exapool in GiB - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb; - - /** - * 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] Type of the resource. Always compute#storagePool for storage pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a storage pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels to apply to this storage pool. These can be later modified by the setLabels method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolParams params; - - /** - * Provisioning type of the performance-related parameters of the pool, such as throughput and - * IOPS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String performanceProvisioningType; - - /** - * Size of the storage pool in GiB. For more information about the size limits, see - * https://cloud.google.com/compute/docs/disks/storage-pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolProvisionedCapacityGb; - - /** - * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- - * balanced. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolProvisionedIops; - - /** - * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is - * hyperdisk-balanced or hyperdisk-throughput. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolProvisionedThroughput; - - /** - * Output only. [Output Only] Status information for the storage pool resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolResourceStatus resourceStatus; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Share settings for the storage pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolShareSettings shareSettings; - - /** - * Output only. [Output Only] The status of storage pool creation. - CREATING: - * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] Status information for the storage pool resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private StoragePoolResourceStatus status; - - /** - * Type of the storage pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String storagePoolType; - - /** - * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Provisioning type of the byte capacity of the pool. - * @return value or {@code null} for none - */ - public java.lang.String getCapacityProvisioningType() { - return capacityProvisioningType; - } - - /** - * Provisioning type of the byte capacity of the pool. - * @param capacityProvisioningType capacityProvisioningType or {@code null} for none - */ - public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisioningType) { - this.capacityProvisioningType = capacityProvisioningType; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public StoragePool setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Provisioned capacities for each SKU for this Exapool in GiB - * @return value or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { - return exapoolProvisionedCapacityGb; - } - - /** - * Provisioned capacities for each SKU for this Exapool in GiB - * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none - */ - public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { - this.exapoolProvisionedCapacityGb = exapoolProvisionedCapacityGb; - 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 StoragePool setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. - * @param kind kind or {@code null} for none - */ - public StoragePool setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a storage pool. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a storage pool. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a storage pool. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public StoragePool setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this storage pool, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a storage pool. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public StoragePool encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels to apply to this storage pool. These can be later modified by the setLabels method. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels to apply to this storage pool. These can be later modified by the setLabels method. - * @param labels labels or {@code null} for none - */ - public StoragePool setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 StoragePool setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @return value or {@code null} for none - */ - public StoragePoolParams getParams() { - return params; - } - - /** - * Input only. Additional params passed with the request, but not persisted as part of resource - * payload. - * @param params params or {@code null} for none - */ - public StoragePool setParams(StoragePoolParams params) { - this.params = params; - return this; - } - - /** - * Provisioning type of the performance-related parameters of the pool, such as throughput and - * IOPS. - * @return value or {@code null} for none - */ - public java.lang.String getPerformanceProvisioningType() { - return performanceProvisioningType; - } - - /** - * Provisioning type of the performance-related parameters of the pool, such as throughput and - * IOPS. - * @param performanceProvisioningType performanceProvisioningType or {@code null} for none - */ - public StoragePool setPerformanceProvisioningType(java.lang.String performanceProvisioningType) { - this.performanceProvisioningType = performanceProvisioningType; - return this; - } - - /** - * Size of the storage pool in GiB. For more information about the size limits, see - * https://cloud.google.com/compute/docs/disks/storage-pools. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolProvisionedCapacityGb() { - return poolProvisionedCapacityGb; - } - - /** - * Size of the storage pool in GiB. For more information about the size limits, see - * https://cloud.google.com/compute/docs/disks/storage-pools. - * @param poolProvisionedCapacityGb poolProvisionedCapacityGb or {@code null} for none - */ - public StoragePool setPoolProvisionedCapacityGb(java.lang.Long poolProvisionedCapacityGb) { - this.poolProvisionedCapacityGb = poolProvisionedCapacityGb; - return this; - } - - /** - * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- - * balanced. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolProvisionedIops() { - return poolProvisionedIops; - } - - /** - * Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk- - * balanced. - * @param poolProvisionedIops poolProvisionedIops or {@code null} for none - */ - public StoragePool setPoolProvisionedIops(java.lang.Long poolProvisionedIops) { - this.poolProvisionedIops = poolProvisionedIops; - return this; - } - - /** - * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is - * hyperdisk-balanced or hyperdisk-throughput. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolProvisionedThroughput() { - return poolProvisionedThroughput; - } - - /** - * Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is - * hyperdisk-balanced or hyperdisk-throughput. - * @param poolProvisionedThroughput poolProvisionedThroughput or {@code null} for none - */ - public StoragePool setPoolProvisionedThroughput(java.lang.Long poolProvisionedThroughput) { - this.poolProvisionedThroughput = poolProvisionedThroughput; - return this; - } - - /** - * Output only. [Output Only] Status information for the storage pool resource. - * @return value or {@code null} for none - */ - public StoragePoolResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * Output only. [Output Only] Status information for the storage pool resource. - * @param resourceStatus resourceStatus or {@code null} for none - */ - public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public StoragePool setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Share settings for the storage pool. - * @return value or {@code null} for none - */ - public StoragePoolShareSettings getShareSettings() { - return shareSettings; - } - - /** - * Share settings for the storage pool. - * @param shareSettings shareSettings or {@code null} for none - */ - public StoragePool setShareSettings(StoragePoolShareSettings shareSettings) { - this.shareSettings = shareSettings; - return this; - } - - /** - * Output only. [Output Only] The status of storage pool creation. - CREATING: - * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The status of storage pool creation. - CREATING: - * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - * - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. - * @param state state or {@code null} for none - */ - public StoragePool setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] Status information for the storage pool resource. - * @return value or {@code null} for none - */ - public StoragePoolResourceStatus getStatus() { - return status; - } - - /** - * Output only. [Output Only] Status information for the storage pool resource. - * @param status status or {@code null} for none - */ - public StoragePool setStatus(StoragePoolResourceStatus status) { - this.status = status; - return this; - } - - /** - * Type of the storage pool. - * @return value or {@code null} for none - */ - public java.lang.String getStoragePoolType() { - return storagePoolType; - } - - /** - * Type of the storage pool. - * @param storagePoolType storagePoolType or {@code null} for none - */ - public StoragePool setStoragePoolType(java.lang.String storagePoolType) { - this.storagePoolType = storagePoolType; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the storage pool resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public StoragePool setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public StoragePool set(String fieldName, Object value) { - return (StoragePool) super.set(fieldName, value); - } - - @Override - public StoragePool clone() { - return (StoragePool) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolAggregatedList.java deleted file mode 100644 index a48e322127c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolAggregatedList.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolAggregatedList. - * - *

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 StoragePoolAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * 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 StoragePoolsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for - * aggregated lists of storage pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public StoragePoolAggregatedList 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 StoragePoolAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of StoragePoolsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of StoragePoolsScopedList resources. - * @param items items or {@code null} for none - */ - public StoragePoolAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for - * aggregated lists of storage pools. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for - * aggregated lists of storage pools. - * @param kind kind or {@code null} for none - */ - public StoragePoolAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public StoragePoolAggregatedList 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 StoragePoolAggregatedList 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 StoragePoolAggregatedList 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 StoragePoolAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolAggregatedList set(String fieldName, Object value) { - return (StoragePoolAggregatedList) super.set(fieldName, value); - } - - @Override - public StoragePoolAggregatedList clone() { - return (StoragePoolAggregatedList) 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 StoragePoolAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolDisk.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolDisk.java deleted file mode 100644 index 5586628bbd3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolDisk.java +++ /dev/null @@ -1,306 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolDisk. - * - *

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 StoragePoolDisk extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Instances this disk is attached to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List attachedInstances; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * Output only. [Output Only] The URL of the disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disk; - - /** - * Output only. [Output Only] The name of the disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedIops; - - /** - * Output only. [Output Only] The throughput provisioned for the disk. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedThroughput; - - /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List resourcePolicies; - - /** - * Output only. [Output Only] The disk size, in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long sizeGb; - - /** - * Output only. [Output Only] The disk status. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] The disk type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. [Output Only] Amount of disk space used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long usedBytes; - - /** - * Output only. [Output Only] Instances this disk is attached to. - * @return value or {@code null} for none - */ - public java.util.List getAttachedInstances() { - return attachedInstances; - } - - /** - * Output only. [Output Only] Instances this disk is attached to. - * @param attachedInstances attachedInstances or {@code null} for none - */ - public StoragePoolDisk setAttachedInstances(java.util.List attachedInstances) { - this.attachedInstances = attachedInstances; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output Only] The URL of the disk. - * @return value or {@code null} for none - */ - public java.lang.String getDisk() { - return disk; - } - - /** - * Output only. [Output Only] The URL of the disk. - * @param disk disk or {@code null} for none - */ - public StoragePoolDisk setDisk(java.lang.String disk) { - this.disk = disk; - return this; - } - - /** - * Output only. [Output Only] The name of the disk. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] The name of the disk. - * @param name name or {@code null} for none - */ - public StoragePoolDisk setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedIops() { - return provisionedIops; - } - - /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. - * @param provisionedIops provisionedIops or {@code null} for none - */ - public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { - this.provisionedIops = provisionedIops; - return this; - } - - /** - * Output only. [Output Only] The throughput provisioned for the disk. - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedThroughput() { - return provisionedThroughput; - } - - /** - * Output only. [Output Only] The throughput provisioned for the disk. - * @param provisionedThroughput provisionedThroughput or {@code null} for none - */ - public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroughput) { - this.provisionedThroughput = provisionedThroughput; - return this; - } - - /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. - * @return value or {@code null} for none - */ - public java.util.List getResourcePolicies() { - return resourcePolicies; - } - - /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. - * @param resourcePolicies resourcePolicies or {@code null} for none - */ - public StoragePoolDisk setResourcePolicies(java.util.List resourcePolicies) { - this.resourcePolicies = resourcePolicies; - return this; - } - - /** - * Output only. [Output Only] The disk size, in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getSizeGb() { - return sizeGb; - } - - /** - * Output only. [Output Only] The disk size, in GB. - * @param sizeGb sizeGb or {@code null} for none - */ - public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { - this.sizeGb = sizeGb; - return this; - } - - /** - * Output only. [Output Only] The disk status. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * Output only. [Output Only] The disk status. - * @param status status or {@code null} for none - */ - public StoragePoolDisk setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] The disk type. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Output only. [Output Only] The disk type. - * @param type type or {@code null} for none - */ - public StoragePoolDisk setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * Output only. [Output Only] Amount of disk space used. - * @return value or {@code null} for none - */ - public java.lang.Long getUsedBytes() { - return usedBytes; - } - - /** - * Output only. [Output Only] Amount of disk space used. - * @param usedBytes usedBytes or {@code null} for none - */ - public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { - this.usedBytes = usedBytes; - return this; - } - - @Override - public StoragePoolDisk set(String fieldName, Object value) { - return (StoragePoolDisk) super.set(fieldName, value); - } - - @Override - public StoragePoolDisk clone() { - return (StoragePoolDisk) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolExapoolProvisionedCapacityGb.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolExapoolProvisionedCapacityGb.java deleted file mode 100644 index b223bf36e57..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolExapoolProvisionedCapacityGb.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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.preview.model; - -/** - * Exapool provisioned capacities for each SKU type - * - *

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 StoragePoolExapoolProvisionedCapacityGb extends com.google.api.client.json.GenericJson { - - /** - * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long capacityOptimized; - - /** - * Size, in GiB, of provisioned read-optimized capacity for this Exapool - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long readOptimized; - - /** - * Size, in GiB, of provisioned write-optimized capacity for this Exapool - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long writeOptimized; - - /** - * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool - * @return value or {@code null} for none - */ - public java.lang.Long getCapacityOptimized() { - return capacityOptimized; - } - - /** - * Size, in GiB, of provisioned capacity-optimized capacity for this Exapool - * @param capacityOptimized capacityOptimized or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb setCapacityOptimized(java.lang.Long capacityOptimized) { - this.capacityOptimized = capacityOptimized; - return this; - } - - /** - * Size, in GiB, of provisioned read-optimized capacity for this Exapool - * @return value or {@code null} for none - */ - public java.lang.Long getReadOptimized() { - return readOptimized; - } - - /** - * Size, in GiB, of provisioned read-optimized capacity for this Exapool - * @param readOptimized readOptimized or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb setReadOptimized(java.lang.Long readOptimized) { - this.readOptimized = readOptimized; - return this; - } - - /** - * Size, in GiB, of provisioned write-optimized capacity for this Exapool - * @return value or {@code null} for none - */ - public java.lang.Long getWriteOptimized() { - return writeOptimized; - } - - /** - * Size, in GiB, of provisioned write-optimized capacity for this Exapool - * @param writeOptimized writeOptimized or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb setWriteOptimized(java.lang.Long writeOptimized) { - this.writeOptimized = writeOptimized; - return this; - } - - @Override - public StoragePoolExapoolProvisionedCapacityGb set(String fieldName, Object value) { - return (StoragePoolExapoolProvisionedCapacityGb) super.set(fieldName, value); - } - - @Override - public StoragePoolExapoolProvisionedCapacityGb clone() { - return (StoragePoolExapoolProvisionedCapacityGb) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolList.java deleted file mode 100644 index 653f75dc507..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolList.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of StoragePool resources. - * - *

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 StoragePoolList extends com.google.api.client.json.GenericJson { - - /** - * 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 StoragePool 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 StoragePool 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(StoragePool.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public StoragePoolList 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 StoragePoolList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of StoragePool resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of StoragePool resources. - * @param items items or {@code null} for none - */ - public StoragePoolList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. - * @param kind kind or {@code null} for none - */ - public StoragePoolList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public StoragePoolList 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 StoragePoolList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public StoragePoolList 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 StoragePoolList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolList set(String fieldName, Object value) { - return (StoragePoolList) super.set(fieldName, value); - } - - @Override - public StoragePoolList clone() { - return (StoragePoolList) 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 StoragePoolListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolListDisks.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolListDisks.java deleted file mode 100644 index 5fd6b57c518..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolListDisks.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolListDisks. - * - *

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 StoragePoolListDisks extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * Output only. [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 StoragePoolDisk 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 StoragePoolDisk 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(StoragePoolDisk.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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. end_interface: - * MixerListResponseWithEtagBuilder - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List unreachables; - - /** - * Output only. [Output Only] Informational warning message. - * 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 getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public StoragePoolListDisks setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public StoragePoolListDisks setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of StoragePoolDisk resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of StoragePoolDisk resources. - * @param items items or {@code null} for none - */ - public StoragePoolListDisks setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. - * @param kind kind or {@code null} for none - */ - public StoragePoolListDisks setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public StoragePoolListDisks 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 StoragePoolListDisks setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public StoragePoolListDisks setUnreachables(java.util.List unreachables) { - this.unreachables = unreachables; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public StoragePoolListDisks setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolListDisks set(String fieldName, Object value) { - return (StoragePoolListDisks) super.set(fieldName, value); - } - - @Override - public StoragePoolListDisks clone() { - return (StoragePoolListDisks) super.clone(); - } - - /** - * Output only. [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 StoragePoolListDisksWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolParams.java deleted file mode 100644 index bfde26d4d4d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolParams.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional storage pool params. - * - *

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 StoragePoolParams extends com.google.api.client.json.GenericJson { - - /** - * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Input only. Resource manager tags to be bound to the storage pool. Tag keys and values have the - * same definition as resource manager tags. Keys and values can be either in numeric format, such - * as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in namespaced format such as - * `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`. The field is ignored - * (both PUT & PATCH) when empty. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public StoragePoolParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public StoragePoolParams set(String fieldName, Object value) { - return (StoragePoolParams) super.set(fieldName, value); - } - - @Override - public StoragePoolParams clone() { - return (StoragePoolParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolResourceStatus.java deleted file mode 100644 index 0f03cd16a86..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolResourceStatus.java +++ /dev/null @@ -1,396 +0,0 @@ -/* - * 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.preview.model; - -/** - * [Output Only] Contains output only fields. - * - *

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 StoragePoolResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Number of disks used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long diskCount; - - /** - * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long exapoolMaxReadIops; - - /** - * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long exapoolMaxReadThroughput; - - /** - * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long exapoolMaxWriteIops; - - /** - * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long exapoolMaxWriteThroughput; - - /** - * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String lastResizeTimestamp; - - /** - * [Output Only] Maximum allowed aggregate disk size in GiB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxTotalProvisionedDiskCapacityGb; - - /** - * [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will - * reflect the total number of bytes written to the disks in the pool, in contrast to the capacity - * of those disks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolUsedCapacityBytes; - - /** - * [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per - * disk that is not counted towards pool's IOPS capacity. For more information, see - * https://cloud.google.com/compute/docs/disks/storage-pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolUsedIops; - - /** - * [Output Only] Sum of all the disks' provisioned throughput in MiB/s. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolUsedThroughput; - - /** - * [Output Only] Amount of data written into the pool, before it is compacted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long poolUserWrittenBytes; - - /** - * [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A - * disk's provisioned capacity is the same as its total capacity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalProvisionedDiskCapacityGb; - - /** - * [Output Only] Sum of all the disks' provisioned IOPS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalProvisionedDiskIops; - - /** - * [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is - * allowed per disk that is not counted towards pool's throughput capacity. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalProvisionedDiskThroughput; - - /** - * [Output Only] Number of disks used. - * @return value or {@code null} for none - */ - public java.lang.Long getDiskCount() { - return diskCount; - } - - /** - * [Output Only] Number of disks used. - * @param diskCount diskCount or {@code null} for none - */ - public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { - this.diskCount = diskCount; - return this; - } - - /** - * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. - * @return value or {@code null} for none - */ - public java.lang.Long getExapoolMaxReadIops() { - return exapoolMaxReadIops; - } - - /** - * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. - * @param exapoolMaxReadIops exapoolMaxReadIops or {@code null} for none - */ - public StoragePoolResourceStatus setExapoolMaxReadIops(java.lang.Long exapoolMaxReadIops) { - this.exapoolMaxReadIops = exapoolMaxReadIops; - return this; - } - - /** - * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. - * @return value or {@code null} for none - */ - public java.lang.Long getExapoolMaxReadThroughput() { - return exapoolMaxReadThroughput; - } - - /** - * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. - * @param exapoolMaxReadThroughput exapoolMaxReadThroughput or {@code null} for none - */ - public StoragePoolResourceStatus setExapoolMaxReadThroughput(java.lang.Long exapoolMaxReadThroughput) { - this.exapoolMaxReadThroughput = exapoolMaxReadThroughput; - return this; - } - - /** - * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. - * @return value or {@code null} for none - */ - public java.lang.Long getExapoolMaxWriteIops() { - return exapoolMaxWriteIops; - } - - /** - * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. - * @param exapoolMaxWriteIops exapoolMaxWriteIops or {@code null} for none - */ - public StoragePoolResourceStatus setExapoolMaxWriteIops(java.lang.Long exapoolMaxWriteIops) { - this.exapoolMaxWriteIops = exapoolMaxWriteIops; - return this; - } - - /** - * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. - * @return value or {@code null} for none - */ - public java.lang.Long getExapoolMaxWriteThroughput() { - return exapoolMaxWriteThroughput; - } - - /** - * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. - * @param exapoolMaxWriteThroughput exapoolMaxWriteThroughput or {@code null} for none - */ - public StoragePoolResourceStatus setExapoolMaxWriteThroughput(java.lang.Long exapoolMaxWriteThroughput) { - this.exapoolMaxWriteThroughput = exapoolMaxWriteThroughput; - return this; - } - - /** - * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getLastResizeTimestamp() { - return lastResizeTimestamp; - } - - /** - * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. - * @param lastResizeTimestamp lastResizeTimestamp or {@code null} for none - */ - public StoragePoolResourceStatus setLastResizeTimestamp(java.lang.String lastResizeTimestamp) { - this.lastResizeTimestamp = lastResizeTimestamp; - return this; - } - - /** - * [Output Only] Maximum allowed aggregate disk size in GiB. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxTotalProvisionedDiskCapacityGb() { - return maxTotalProvisionedDiskCapacityGb; - } - - /** - * [Output Only] Maximum allowed aggregate disk size in GiB. - * @param maxTotalProvisionedDiskCapacityGb maxTotalProvisionedDiskCapacityGb or {@code null} for none - */ - public StoragePoolResourceStatus setMaxTotalProvisionedDiskCapacityGb(java.lang.Long maxTotalProvisionedDiskCapacityGb) { - this.maxTotalProvisionedDiskCapacityGb = maxTotalProvisionedDiskCapacityGb; - return this; - } - - /** - * [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will - * reflect the total number of bytes written to the disks in the pool, in contrast to the capacity - * of those disks. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolUsedCapacityBytes() { - return poolUsedCapacityBytes; - } - - /** - * [Output Only] Space used by data stored in disks within the storage pool (in bytes). This will - * reflect the total number of bytes written to the disks in the pool, in contrast to the capacity - * of those disks. - * @param poolUsedCapacityBytes poolUsedCapacityBytes or {@code null} for none - */ - public StoragePoolResourceStatus setPoolUsedCapacityBytes(java.lang.Long poolUsedCapacityBytes) { - this.poolUsedCapacityBytes = poolUsedCapacityBytes; - return this; - } - - /** - * [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per - * disk that is not counted towards pool's IOPS capacity. For more information, see - * https://cloud.google.com/compute/docs/disks/storage-pools. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolUsedIops() { - return poolUsedIops; - } - - /** - * [Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per - * disk that is not counted towards pool's IOPS capacity. For more information, see - * https://cloud.google.com/compute/docs/disks/storage-pools. - * @param poolUsedIops poolUsedIops or {@code null} for none - */ - public StoragePoolResourceStatus setPoolUsedIops(java.lang.Long poolUsedIops) { - this.poolUsedIops = poolUsedIops; - return this; - } - - /** - * [Output Only] Sum of all the disks' provisioned throughput in MiB/s. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolUsedThroughput() { - return poolUsedThroughput; - } - - /** - * [Output Only] Sum of all the disks' provisioned throughput in MiB/s. - * @param poolUsedThroughput poolUsedThroughput or {@code null} for none - */ - public StoragePoolResourceStatus setPoolUsedThroughput(java.lang.Long poolUsedThroughput) { - this.poolUsedThroughput = poolUsedThroughput; - return this; - } - - /** - * [Output Only] Amount of data written into the pool, before it is compacted. - * @return value or {@code null} for none - */ - public java.lang.Long getPoolUserWrittenBytes() { - return poolUserWrittenBytes; - } - - /** - * [Output Only] Amount of data written into the pool, before it is compacted. - * @param poolUserWrittenBytes poolUserWrittenBytes or {@code null} for none - */ - public StoragePoolResourceStatus setPoolUserWrittenBytes(java.lang.Long poolUserWrittenBytes) { - this.poolUserWrittenBytes = poolUserWrittenBytes; - return this; - } - - /** - * [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A - * disk's provisioned capacity is the same as its total capacity. - * @return value or {@code null} for none - */ - public java.lang.Long getTotalProvisionedDiskCapacityGb() { - return totalProvisionedDiskCapacityGb; - } - - /** - * [Output Only] Sum of all the disks' provisioned capacity (in GiB) in this storage pool. A - * disk's provisioned capacity is the same as its total capacity. - * @param totalProvisionedDiskCapacityGb totalProvisionedDiskCapacityGb or {@code null} for none - */ - public StoragePoolResourceStatus setTotalProvisionedDiskCapacityGb(java.lang.Long totalProvisionedDiskCapacityGb) { - this.totalProvisionedDiskCapacityGb = totalProvisionedDiskCapacityGb; - return this; - } - - /** - * [Output Only] Sum of all the disks' provisioned IOPS. - * @return value or {@code null} for none - */ - public java.lang.Long getTotalProvisionedDiskIops() { - return totalProvisionedDiskIops; - } - - /** - * [Output Only] Sum of all the disks' provisioned IOPS. - * @param totalProvisionedDiskIops totalProvisionedDiskIops or {@code null} for none - */ - public StoragePoolResourceStatus setTotalProvisionedDiskIops(java.lang.Long totalProvisionedDiskIops) { - this.totalProvisionedDiskIops = totalProvisionedDiskIops; - return this; - } - - /** - * [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is - * allowed per disk that is not counted towards pool's throughput capacity. - * @return value or {@code null} for none - */ - public java.lang.Long getTotalProvisionedDiskThroughput() { - return totalProvisionedDiskThroughput; - } - - /** - * [Output Only] Sum of all the disks' provisioned throughput in MiB/s, minus some amount that is - * allowed per disk that is not counted towards pool's throughput capacity. - * @param totalProvisionedDiskThroughput totalProvisionedDiskThroughput or {@code null} for none - */ - public StoragePoolResourceStatus setTotalProvisionedDiskThroughput(java.lang.Long totalProvisionedDiskThroughput) { - this.totalProvisionedDiskThroughput = totalProvisionedDiskThroughput; - return this; - } - - @Override - public StoragePoolResourceStatus set(String fieldName, Object value) { - return (StoragePoolResourceStatus) super.set(fieldName, value); - } - - @Override - public StoragePoolResourceStatus clone() { - return (StoragePoolResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettings.java deleted file mode 100644 index bde715aa4f9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettings.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Share settings for the storage pool. - * - *

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 StoragePoolShareSettings extends com.google.api.client.json.GenericJson { - - /** - * A map of project id and project config. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map projectMap; - - /** - * A map of project id and project config. - * @return value or {@code null} for none - */ - public java.util.Map getProjectMap() { - return projectMap; - } - - /** - * A map of project id and project config. - * @param projectMap projectMap or {@code null} for none - */ - public StoragePoolShareSettings setProjectMap(java.util.Map projectMap) { - this.projectMap = projectMap; - return this; - } - - @Override - public StoragePoolShareSettings set(String fieldName, Object value) { - return (StoragePoolShareSettings) super.set(fieldName, value); - } - - @Override - public StoragePoolShareSettings clone() { - return (StoragePoolShareSettings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettingsProjectConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettingsProjectConfig.java deleted file mode 100644 index 026ea1fa59c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolShareSettingsProjectConfig.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Config for each project in the share settings. - * - *

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 StoragePoolShareSettingsProjectConfig extends com.google.api.client.json.GenericJson { - - /** - * The project ID, should be same as the key of this project config in the parent map. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String projectId; - - /** - * The project ID, should be same as the key of this project config in the parent map. - * @return value or {@code null} for none - */ - public java.lang.String getProjectId() { - return projectId; - } - - /** - * The project ID, should be same as the key of this project config in the parent map. - * @param projectId projectId or {@code null} for none - */ - public StoragePoolShareSettingsProjectConfig setProjectId(java.lang.String projectId) { - this.projectId = projectId; - return this; - } - - @Override - public StoragePoolShareSettingsProjectConfig set(String fieldName, Object value) { - return (StoragePoolShareSettingsProjectConfig) super.set(fieldName, value); - } - - @Override - public StoragePoolShareSettingsProjectConfig clone() { - return (StoragePoolShareSettingsProjectConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolType.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolType.java deleted file mode 100644 index 9dde6d8671e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolType.java +++ /dev/null @@ -1,456 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolType. - * - *

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 StoragePoolType extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] The deprecation status associated with this storage pool type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * [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] 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] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Maximum storage pool size in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxPoolProvisionedCapacityGb; - - /** - * [Output Only] Maximum provisioned IOPS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxPoolProvisionedIops; - - /** - * [Output Only] Maximum provisioned throughput. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long maxPoolProvisionedThroughput; - - /** - * [Output Only] Minimum storage pool size in GB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minPoolProvisionedCapacityGb; - - /** - * [Output Only] Minimum provisioned IOPS. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minPoolProvisionedIops; - - /** - * [Output Only] Minimum provisioned throughput. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minPoolProvisionedThroughput; - - /** - * [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minSizeGb; - - /** - * [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [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] Server-defined URL for this resource with the resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * [Output Only] The list of disk types supported in this storage pool type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List supportedDiskTypes; - - /** - * [Output Only] URL of the zone where the storage pool type resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public StoragePoolType setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] The deprecation status associated with this storage pool type. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * [Output Only] The deprecation status associated with this storage pool type. - * @param deprecated deprecated or {@code null} for none - */ - public StoragePoolType setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - 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 StoragePoolType setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public StoragePoolType setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. - * @param kind kind or {@code null} for none - */ - public StoragePoolType setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Maximum storage pool size in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxPoolProvisionedCapacityGb() { - return maxPoolProvisionedCapacityGb; - } - - /** - * [Output Only] Maximum storage pool size in GB. - * @param maxPoolProvisionedCapacityGb maxPoolProvisionedCapacityGb or {@code null} for none - */ - public StoragePoolType setMaxPoolProvisionedCapacityGb(java.lang.Long maxPoolProvisionedCapacityGb) { - this.maxPoolProvisionedCapacityGb = maxPoolProvisionedCapacityGb; - return this; - } - - /** - * [Output Only] Maximum provisioned IOPS. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxPoolProvisionedIops() { - return maxPoolProvisionedIops; - } - - /** - * [Output Only] Maximum provisioned IOPS. - * @param maxPoolProvisionedIops maxPoolProvisionedIops or {@code null} for none - */ - public StoragePoolType setMaxPoolProvisionedIops(java.lang.Long maxPoolProvisionedIops) { - this.maxPoolProvisionedIops = maxPoolProvisionedIops; - return this; - } - - /** - * [Output Only] Maximum provisioned throughput. - * @return value or {@code null} for none - */ - public java.lang.Long getMaxPoolProvisionedThroughput() { - return maxPoolProvisionedThroughput; - } - - /** - * [Output Only] Maximum provisioned throughput. - * @param maxPoolProvisionedThroughput maxPoolProvisionedThroughput or {@code null} for none - */ - public StoragePoolType setMaxPoolProvisionedThroughput(java.lang.Long maxPoolProvisionedThroughput) { - this.maxPoolProvisionedThroughput = maxPoolProvisionedThroughput; - return this; - } - - /** - * [Output Only] Minimum storage pool size in GB. - * @return value or {@code null} for none - */ - public java.lang.Long getMinPoolProvisionedCapacityGb() { - return minPoolProvisionedCapacityGb; - } - - /** - * [Output Only] Minimum storage pool size in GB. - * @param minPoolProvisionedCapacityGb minPoolProvisionedCapacityGb or {@code null} for none - */ - public StoragePoolType setMinPoolProvisionedCapacityGb(java.lang.Long minPoolProvisionedCapacityGb) { - this.minPoolProvisionedCapacityGb = minPoolProvisionedCapacityGb; - return this; - } - - /** - * [Output Only] Minimum provisioned IOPS. - * @return value or {@code null} for none - */ - public java.lang.Long getMinPoolProvisionedIops() { - return minPoolProvisionedIops; - } - - /** - * [Output Only] Minimum provisioned IOPS. - * @param minPoolProvisionedIops minPoolProvisionedIops or {@code null} for none - */ - public StoragePoolType setMinPoolProvisionedIops(java.lang.Long minPoolProvisionedIops) { - this.minPoolProvisionedIops = minPoolProvisionedIops; - return this; - } - - /** - * [Output Only] Minimum provisioned throughput. - * @return value or {@code null} for none - */ - public java.lang.Long getMinPoolProvisionedThroughput() { - return minPoolProvisionedThroughput; - } - - /** - * [Output Only] Minimum provisioned throughput. - * @param minPoolProvisionedThroughput minPoolProvisionedThroughput or {@code null} for none - */ - public StoragePoolType setMinPoolProvisionedThroughput(java.lang.Long minPoolProvisionedThroughput) { - this.minPoolProvisionedThroughput = minPoolProvisionedThroughput; - return this; - } - - /** - * [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. - * @return value or {@code null} for none - */ - public java.lang.Long getMinSizeGb() { - return minSizeGb; - } - - /** - * [Deprecated] This field is deprecated. Use minPoolProvisionedCapacityGb instead. - * @param minSizeGb minSizeGb or {@code null} for none - */ - public StoragePoolType setMinSizeGb(java.lang.Long minSizeGb) { - this.minSizeGb = minSizeGb; - return this; - } - - /** - * [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public StoragePoolType setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public StoragePoolType setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public StoragePoolType setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * [Output Only] The list of disk types supported in this storage pool type. - * @return value or {@code null} for none - */ - public java.util.List getSupportedDiskTypes() { - return supportedDiskTypes; - } - - /** - * [Output Only] The list of disk types supported in this storage pool type. - * @param supportedDiskTypes supportedDiskTypes or {@code null} for none - */ - public StoragePoolType setSupportedDiskTypes(java.util.List supportedDiskTypes) { - this.supportedDiskTypes = supportedDiskTypes; - return this; - } - - /** - * [Output Only] URL of the zone where the storage pool type resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * [Output Only] URL of the zone where the storage pool type resides. You must specify this field - * as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public StoragePoolType setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public StoragePoolType set(String fieldName, Object value) { - return (StoragePoolType) super.set(fieldName, value); - } - - @Override - public StoragePoolType clone() { - return (StoragePoolType) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeAggregatedList.java deleted file mode 100644 index 35f6f16f36b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeAggregatedList.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolTypeAggregatedList. - * - *

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 StoragePoolTypeAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 StoragePoolTypesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 StoragePoolTypeAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of StoragePoolTypesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of StoragePoolTypesScopedList resources. - * @param items items or {@code null} for none - */ - public StoragePoolTypeAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. - * @param kind kind or {@code null} for none - */ - public StoragePoolTypeAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public StoragePoolTypeAggregatedList 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 StoragePoolTypeAggregatedList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 StoragePoolTypeAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolTypeAggregatedList set(String fieldName, Object value) { - return (StoragePoolTypeAggregatedList) super.set(fieldName, value); - } - - @Override - public StoragePoolTypeAggregatedList clone() { - return (StoragePoolTypeAggregatedList) 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 StoragePoolTypeAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeList.java deleted file mode 100644 index c49506730f3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypeList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of storage pool types. - * - *

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 StoragePoolTypeList extends com.google.api.client.json.GenericJson { - - /** - * [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 StoragePoolType 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 StoragePoolType 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(StoragePoolType.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 StoragePoolTypeList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of StoragePoolType resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of StoragePoolType resources. - * @param items items or {@code null} for none - */ - public StoragePoolTypeList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. - * @param kind kind or {@code null} for none - */ - public StoragePoolTypeList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public StoragePoolTypeList 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 StoragePoolTypeList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 StoragePoolTypeList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolTypeList set(String fieldName, Object value) { - return (StoragePoolTypeList) super.set(fieldName, value); - } - - @Override - public StoragePoolTypeList clone() { - return (StoragePoolTypeList) 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 StoragePoolTypeListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypesScopedList.java deleted file mode 100644 index e1d37e74f52..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolTypesScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolTypesScopedList. - * - *

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 StoragePoolTypesScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of storage pool types contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List storagePoolTypes; - - static { - // hack to force ProGuard to consider StoragePoolType 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(StoragePoolType.class); - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool types when the list - * is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of storage pool types contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getStoragePoolTypes() { - return storagePoolTypes; - } - - /** - * [Output Only] A list of storage pool types contained in this scope. - * @param storagePoolTypes storagePoolTypes or {@code null} for none - */ - public StoragePoolTypesScopedList setStoragePoolTypes(java.util.List storagePoolTypes) { - this.storagePoolTypes = storagePoolTypes; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool types when the list - * is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool types when the list - * is empty. - * @param warning warning or {@code null} for none - */ - public StoragePoolTypesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolTypesScopedList set(String fieldName, Object value) { - return (StoragePoolTypesScopedList) super.set(fieldName, value); - } - - @Override - public StoragePoolTypesScopedList clone() { - return (StoragePoolTypesScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool types when the list - * is empty. - */ - 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 StoragePoolTypesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolsScopedList.java deleted file mode 100644 index fde8fbf472d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/StoragePoolsScopedList.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for StoragePoolsScopedList. - * - *

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 StoragePoolsScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of storage pool contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List storagePools; - - static { - // hack to force ProGuard to consider StoragePool 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(StoragePool.class); - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of storage pool contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getStoragePools() { - return storagePools; - } - - /** - * [Output Only] A list of storage pool contained in this scope. - * @param storagePools storagePools or {@code null} for none - */ - public StoragePoolsScopedList setStoragePools(java.util.List storagePools) { - this.storagePools = storagePools; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public StoragePoolsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public StoragePoolsScopedList set(String fieldName, Object value) { - return (StoragePoolsScopedList) super.set(fieldName, value); - } - - @Override - public StoragePoolsScopedList clone() { - return (StoragePoolsScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of storage pool when the list is - * empty. - */ - 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 StoragePoolsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/Subnetwork.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subnetwork.java deleted file mode 100644 index 4db1adfb015..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subnetwork.java +++ /dev/null @@ -1,1104 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Subnetwork resource. - * - * A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network - * with one primary IP range and zero or more secondary IP ranges. For more information, read - * Virtual Private Cloud (VPC) Network. - * - *

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 Subnetwork extends com.google.api.client.json.GenericJson { - - /** - * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom - * routes that have already been configured on the corresponding network. - * - * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be - * created if allow_conflicting_routes=true. - * - * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this - * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. - * - * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive - * data) are prevented from leaving the virtual network. Setting this field to true will disable - * this feature. - * - * The default value is false and applies to all existing subnetworks and automatically created - * subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowSubnetCidrRoutesOverlap; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * This field can be set only at resource creation time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it - * will not appear in get listings. If not set the default behavior is determined by the org - * policy, if there is no org policy specified, then it will default to disabled. This field isn't - * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to - * uselogConfig.enable field instead. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enableFlowLogs; - - /** - * The external IPv6 address range that is owned by this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalIpv6Prefix; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date - * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gatewayAddress; - - /** - * 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; - - /** - * The internal IPv6 address range that is owned by this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String internalIpv6Prefix; - - /** - * The range of internal addresses that are owned by this subnetwork. Provide this property when - * you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and - * non-overlapping within a network. Only IPv4 is supported. This field is set at resource - * creation time. The range can be any range listed in theValid ranges list. The range can be - * expanded after creation usingexpandIpCidrRange. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a - * sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode. - * - * Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only - * subnetwork with external access using BYOIP: - Full resource URL, as inhttps://www.g - * oogleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - * - Partial URL, as in - - * projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - - * regions/region/publicDelegatedPrefixes/sub-pdp-name - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCollection; - - /** - * The access type of IPv6 address this subnet holds. It's immutable and can only be specified - * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6AccessType; - - /** - * Output only. [Output Only] This field is for internal use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6CidrRange; - - /** - * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the - * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 - * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public - * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used - * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 - * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from - * Google IP Pool directly. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6GceEndpoint; - - /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, - * logs are exported to Cloud Logging. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubnetworkLogConfig logConfig; - - /** - * The name of the resource, provided by the client when initially creating the resource. 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; - - /** - * The URL of the network to which this subnetwork belongs, provided by the client when initially - * creating the subnetwork. This field can be set only at resource creation time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubnetworkParams params; - - /** - * Whether the VMs in this subnet can access Google services without assigned external IP - * addresses. This field can be both set at resource creation time and updated using - * setPrivateIpGoogleAccess. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean privateIpGoogleAccess; - - /** - * This field is for internal use. - * - * This field can be both set at resource creation time and updated usingpatch. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String privateIpv6GoogleAccess; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String purpose; - - /** - * URL of the region where the Subnetwork resides. This field can be set only at resource creation - * time. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * The URL of the reserved internal range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reservedInternalRange; - - /** - * Configures subnet mask resolution for this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String resolveSubnetMask; - - /** - * The role of subnetwork. Currently, this field is only used when purpose is set to - * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An - * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a - * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently - * draining. This field can be updated with a patch request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String role; - - /** - * An array of configurations for secondary IP ranges for VM instances contained in this - * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. - * The alias IPs may belong to either primary or secondary ranges. This field can be updated with - * apatch request. Supports both IPv4 and IPv6 ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List secondaryIpRanges; - - /** - * [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; - - /** - * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 - * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - * addresses. If not specified, IPV4_ONLY is used. - * - * This field can be both set at resource creation time and updated usingpatch. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * Output only. [Output Only] The state of the subnetwork, which can be one of the following - * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks - * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the - * load balancer are being drained. A subnetwork that is draining cannot be used or modified until - * it reaches a status ofREADY - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] The array of external IPv6 network ranges reserved from the - * subnetwork's external IPv6 range for system use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List systemReservedExternalIpv6Ranges; - - /** - * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the - * subnetwork's internal IPv6 range for system use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List systemReservedInternalIpv6Ranges; - - /** - * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the - * total number of allocated and free IPs in each range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubnetworkUtilizationDetails utilizationDetails; - - /** - * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom - * routes that have already been configured on the corresponding network. - * - * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be - * created if allow_conflicting_routes=true. - * - * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this - * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. - * - * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive - * data) are prevented from leaving the virtual network. Setting this field to true will disable - * this feature. - * - * The default value is false and applies to all existing subnetworks and automatically created - * subnetworks. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { - return allowSubnetCidrRoutesOverlap; - } - - /** - * Whether this subnetwork's ranges can conflict with existing custom routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) custom - * routes that have already been configured on the corresponding network. - * - * For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be - * created if allow_conflicting_routes=true. - * - * Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this - * subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true. - * - * Typically packets destined to IPs within the subnetwork (which may contain private/sensitive - * data) are prevented from leaving the virtual network. Setting this field to true will disable - * this feature. - * - * The default value is false and applies to all existing subnetworks and automatically created - * subnetworks. - * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none - */ - public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { - this.allowSubnetCidrRoutesOverlap = allowSubnetCidrRoutesOverlap; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * This field can be set only at resource creation time. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * This field can be set only at resource creation time. - * @param description description or {@code null} for none - */ - public Subnetwork setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it - * will not appear in get listings. If not set the default behavior is determined by the org - * policy, if there is no org policy specified, then it will default to disabled. This field isn't - * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to - * uselogConfig.enable field instead. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnableFlowLogs() { - return enableFlowLogs; - } - - /** - * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it - * will not appear in get listings. If not set the default behavior is determined by the org - * policy, if there is no org policy specified, then it will default to disabled. This field isn't - * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is recommended to - * uselogConfig.enable field instead. - * @param enableFlowLogs enableFlowLogs or {@code null} for none - */ - public Subnetwork setEnableFlowLogs(java.lang.Boolean enableFlowLogs) { - this.enableFlowLogs = enableFlowLogs; - return this; - } - - /** - * The external IPv6 address range that is owned by this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getExternalIpv6Prefix() { - return externalIpv6Prefix; - } - - /** - * The external IPv6 address range that is owned by this subnetwork. - * @param externalIpv6Prefix externalIpv6Prefix or {@code null} for none - */ - public Subnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefix) { - this.externalIpv6Prefix = externalIpv6Prefix; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date - * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date - * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date - * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public Subnetwork setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date - * fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail - * with error 412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a Subnetwork. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Subnetwork encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getGatewayAddress() { - return gatewayAddress; - } - - /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. - * @param gatewayAddress gatewayAddress or {@code null} for none - */ - public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { - this.gatewayAddress = gatewayAddress; - 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 Subnetwork setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * The internal IPv6 address range that is owned by this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getInternalIpv6Prefix() { - return internalIpv6Prefix; - } - - /** - * The internal IPv6 address range that is owned by this subnetwork. - * @param internalIpv6Prefix internalIpv6Prefix or {@code null} for none - */ - public Subnetwork setInternalIpv6Prefix(java.lang.String internalIpv6Prefix) { - this.internalIpv6Prefix = internalIpv6Prefix; - return this; - } - - /** - * The range of internal addresses that are owned by this subnetwork. Provide this property when - * you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and - * non-overlapping within a network. Only IPv4 is supported. This field is set at resource - * creation time. The range can be any range listed in theValid ranges list. The range can be - * expanded after creation usingexpandIpCidrRange. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The range of internal addresses that are owned by this subnetwork. Provide this property when - * you create the subnetwork. For example,10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and - * non-overlapping within a network. Only IPv4 is supported. This field is set at resource - * creation time. The range can be any range listed in theValid ranges list. The range can be - * expanded after creation usingexpandIpCidrRange. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public Subnetwork setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a - * sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode. - * - * Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only - * subnetwork with external access using BYOIP: - Full resource URL, as inhttps://www.g - * oogleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - * - Partial URL, as in - - * projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - - * regions/region/publicDelegatedPrefixes/sub-pdp-name - * @return value or {@code null} for none - */ - public java.lang.String getIpCollection() { - return ipCollection; - } - - /** - * Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a - * sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode. - * - * Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only - * subnetwork with external access using BYOIP: - Full resource URL, as inhttps://www.g - * oogleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - * - Partial URL, as in - - * projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - - * regions/region/publicDelegatedPrefixes/sub-pdp-name - * @param ipCollection ipCollection or {@code null} for none - */ - public Subnetwork setIpCollection(java.lang.String ipCollection) { - this.ipCollection = ipCollection; - return this; - } - - /** - * The access type of IPv6 address this subnet holds. It's immutable and can only be specified - * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6AccessType() { - return ipv6AccessType; - } - - /** - * The access type of IPv6 address this subnet holds. It's immutable and can only be specified - * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. - * @param ipv6AccessType ipv6AccessType or {@code null} for none - */ - public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { - this.ipv6AccessType = ipv6AccessType; - return this; - } - - /** - * Output only. [Output Only] This field is for internal use. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6CidrRange() { - return ipv6CidrRange; - } - - /** - * Output only. [Output Only] This field is for internal use. - * @param ipv6CidrRange ipv6CidrRange or {@code null} for none - */ - public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { - this.ipv6CidrRange = ipv6CidrRange; - return this; - } - - /** - * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the - * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 - * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public - * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used - * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 - * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from - * Google IP Pool directly. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6GceEndpoint() { - return ipv6GceEndpoint; - } - - /** - * Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the - * following: - VM_ONLY: The subnetwork can be used for creating instances and IPv6 - * addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public - * delegated prefix and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can be used - * for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 - * addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from - * Google IP Pool directly. - * @param ipv6GceEndpoint ipv6GceEndpoint or {@code null} for none - */ - public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { - this.ipv6GceEndpoint = ipv6GceEndpoint; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. - * @param kind kind or {@code null} for none - */ - public Subnetwork setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, - * logs are exported to Cloud Logging. - * @return value or {@code null} for none - */ - public SubnetworkLogConfig getLogConfig() { - return logConfig; - } - - /** - * This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, - * logs are exported to Cloud Logging. - * @param logConfig logConfig or {@code null} for none - */ - public Subnetwork setLogConfig(SubnetworkLogConfig logConfig) { - this.logConfig = logConfig; - return this; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. 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; - } - - /** - * The name of the resource, provided by the client when initially creating the resource. 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 Subnetwork setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The URL of the network to which this subnetwork belongs, provided by the client when initially - * creating the subnetwork. This field can be set only at resource creation time. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * The URL of the network to which this subnetwork belongs, provided by the client when initially - * creating the subnetwork. This field can be set only at resource creation time. - * @param network network or {@code null} for none - */ - public Subnetwork setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public SubnetworkParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public Subnetwork setParams(SubnetworkParams params) { - this.params = params; - return this; - } - - /** - * Whether the VMs in this subnet can access Google services without assigned external IP - * addresses. This field can be both set at resource creation time and updated using - * setPrivateIpGoogleAccess. - * @return value or {@code null} for none - */ - public java.lang.Boolean getPrivateIpGoogleAccess() { - return privateIpGoogleAccess; - } - - /** - * Whether the VMs in this subnet can access Google services without assigned external IP - * addresses. This field can be both set at resource creation time and updated using - * setPrivateIpGoogleAccess. - * @param privateIpGoogleAccess privateIpGoogleAccess or {@code null} for none - */ - public Subnetwork setPrivateIpGoogleAccess(java.lang.Boolean privateIpGoogleAccess) { - this.privateIpGoogleAccess = privateIpGoogleAccess; - return this; - } - - /** - * This field is for internal use. - * - * This field can be both set at resource creation time and updated usingpatch. - * @return value or {@code null} for none - */ - public java.lang.String getPrivateIpv6GoogleAccess() { - return privateIpv6GoogleAccess; - } - - /** - * This field is for internal use. - * - * This field can be both set at resource creation time and updated usingpatch. - * @param privateIpv6GoogleAccess privateIpv6GoogleAccess or {@code null} for none - */ - public Subnetwork setPrivateIpv6GoogleAccess(java.lang.String privateIpv6GoogleAccess) { - this.privateIpv6GoogleAccess = privateIpv6GoogleAccess; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getPurpose() { - return purpose; - } - - /** - * @param purpose purpose or {@code null} for none - */ - public Subnetwork setPurpose(java.lang.String purpose) { - this.purpose = purpose; - return this; - } - - /** - * URL of the region where the Subnetwork resides. This field can be set only at resource creation - * time. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * URL of the region where the Subnetwork resides. This field can be set only at resource creation - * time. - * @param region region or {@code null} for none - */ - public Subnetwork setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * The URL of the reserved internal range. - * @return value or {@code null} for none - */ - public java.lang.String getReservedInternalRange() { - return reservedInternalRange; - } - - /** - * The URL of the reserved internal range. - * @param reservedInternalRange reservedInternalRange or {@code null} for none - */ - public Subnetwork setReservedInternalRange(java.lang.String reservedInternalRange) { - this.reservedInternalRange = reservedInternalRange; - return this; - } - - /** - * Configures subnet mask resolution for this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getResolveSubnetMask() { - return resolveSubnetMask; - } - - /** - * Configures subnet mask resolution for this subnetwork. - * @param resolveSubnetMask resolveSubnetMask or {@code null} for none - */ - public Subnetwork setResolveSubnetMask(java.lang.String resolveSubnetMask) { - this.resolveSubnetMask = resolveSubnetMask; - return this; - } - - /** - * The role of subnetwork. Currently, this field is only used when purpose is set to - * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An - * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a - * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently - * draining. This field can be updated with a patch request. - * @return value or {@code null} for none - */ - public java.lang.String getRole() { - return role; - } - - /** - * The role of subnetwork. Currently, this field is only used when purpose is set to - * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An - * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a - * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently - * draining. This field can be updated with a patch request. - * @param role role or {@code null} for none - */ - public Subnetwork setRole(java.lang.String role) { - this.role = role; - return this; - } - - /** - * An array of configurations for secondary IP ranges for VM instances contained in this - * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. - * The alias IPs may belong to either primary or secondary ranges. This field can be updated with - * apatch request. Supports both IPv4 and IPv6 ranges. - * @return value or {@code null} for none - */ - public java.util.List getSecondaryIpRanges() { - return secondaryIpRanges; - } - - /** - * An array of configurations for secondary IP ranges for VM instances contained in this - * subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. - * The alias IPs may belong to either primary or secondary ranges. This field can be updated with - * apatch request. Supports both IPv4 and IPv6 ranges. - * @param secondaryIpRanges secondaryIpRanges or {@code null} for none - */ - public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { - this.secondaryIpRanges = secondaryIpRanges; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Subnetwork setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 - * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - * addresses. If not specified, IPV4_ONLY is used. - * - * This field can be both set at resource creation time and updated usingpatch. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 - * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - * addresses. If not specified, IPV4_ONLY is used. - * - * This field can be both set at resource creation time and updated usingpatch. - * @param stackType stackType or {@code null} for none - */ - public Subnetwork setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - /** - * Output only. [Output Only] The state of the subnetwork, which can be one of the following - * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks - * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the - * load balancer are being drained. A subnetwork that is draining cannot be used or modified until - * it reaches a status ofREADY - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output Only] The state of the subnetwork, which can be one of the following - * values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks - * that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the - * load balancer are being drained. A subnetwork that is draining cannot be used or modified until - * it reaches a status ofREADY - * @param state state or {@code null} for none - */ - public Subnetwork setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] The array of external IPv6 network ranges reserved from the - * subnetwork's external IPv6 range for system use. - * @return value or {@code null} for none - */ - public java.util.List getSystemReservedExternalIpv6Ranges() { - return systemReservedExternalIpv6Ranges; - } - - /** - * Output only. [Output Only] The array of external IPv6 network ranges reserved from the - * subnetwork's external IPv6 range for system use. - * @param systemReservedExternalIpv6Ranges systemReservedExternalIpv6Ranges or {@code null} for none - */ - public Subnetwork setSystemReservedExternalIpv6Ranges(java.util.List systemReservedExternalIpv6Ranges) { - this.systemReservedExternalIpv6Ranges = systemReservedExternalIpv6Ranges; - return this; - } - - /** - * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the - * subnetwork's internal IPv6 range for system use. - * @return value or {@code null} for none - */ - public java.util.List getSystemReservedInternalIpv6Ranges() { - return systemReservedInternalIpv6Ranges; - } - - /** - * Output only. [Output Only] The array of internal IPv6 network ranges reserved from the - * subnetwork's internal IPv6 range for system use. - * @param systemReservedInternalIpv6Ranges systemReservedInternalIpv6Ranges or {@code null} for none - */ - public Subnetwork setSystemReservedInternalIpv6Ranges(java.util.List systemReservedInternalIpv6Ranges) { - this.systemReservedInternalIpv6Ranges = systemReservedInternalIpv6Ranges; - return this; - } - - /** - * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the - * total number of allocated and free IPs in each range. - * @return value or {@code null} for none - */ - public SubnetworkUtilizationDetails getUtilizationDetails() { - return utilizationDetails; - } - - /** - * Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the - * total number of allocated and free IPs in each range. - * @param utilizationDetails utilizationDetails or {@code null} for none - */ - public Subnetwork setUtilizationDetails(SubnetworkUtilizationDetails utilizationDetails) { - this.utilizationDetails = utilizationDetails; - return this; - } - - @Override - public Subnetwork set(String fieldName, Object value) { - return (Subnetwork) super.set(fieldName, value); - } - - @Override - public Subnetwork clone() { - return (Subnetwork) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkAggregatedList.java deleted file mode 100644 index 117b7c46313..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SubnetworkAggregatedList. - * - *

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 SubnetworkAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 SubnetworksScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for - * aggregated lists of subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 SubnetworkAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SubnetworksScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of SubnetworksScopedList resources. - * @param items items or {@code null} for none - */ - public SubnetworkAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for - * aggregated lists of subnetworks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for - * aggregated lists of subnetworks. - * @param kind kind or {@code null} for none - */ - public SubnetworkAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SubnetworkAggregatedList 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 SubnetworkAggregatedList 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 SubnetworkAggregatedList 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 SubnetworkAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SubnetworkAggregatedList set(String fieldName, Object value) { - return (SubnetworkAggregatedList) super.set(fieldName, value); - } - - @Override - public SubnetworkAggregatedList clone() { - return (SubnetworkAggregatedList) 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 SubnetworkAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkList.java deleted file mode 100644 index 98c45f5b5d4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of Subnetwork resources. - * - *

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 SubnetworkList extends com.google.api.client.json.GenericJson { - - /** - * [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 Subnetwork 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 Subnetwork 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(Subnetwork.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 SubnetworkList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Subnetwork resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Subnetwork resources. - * @param items items or {@code null} for none - */ - public SubnetworkList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. - * @param kind kind or {@code null} for none - */ - public SubnetworkList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public SubnetworkList 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 SubnetworkList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 SubnetworkList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SubnetworkList set(String fieldName, Object value) { - return (SubnetworkList) super.set(fieldName, value); - } - - @Override - public SubnetworkList clone() { - return (SubnetworkList) 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 SubnetworkListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkLogConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkLogConfig.java deleted file mode 100644 index 63350d35830..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkLogConfig.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * 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.preview.model; - -/** - * The available logging options for this subnetwork. - * - *

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 SubnetworkLogConfig extends com.google.api.client.json.GenericJson { - - /** - * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the - * aggregation interval for collecting flow logs. Increasing the interval time will reduce the - * amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds - * per connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String aggregationInterval; - - /** - * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it - * will not appear in get listings. If not set the default behavior is determined by the org - * policy, if there is no org policy specified, then it will default to disabled. Flow logging - * isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enable; - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is - * used to define which VPC flow logs should be exported to Cloud Logging. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String filterExpr; - - /** - * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the - * field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 - * means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless - * otherwise specified by the org policy, which means half of all collected logs are reported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float flowSampling; - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, - * none or a subset of metadata fields should be added to the reported VPC flow logs. Default - * isEXCLUDE_ALL_METADATA. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String metadata; - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to - * CUSTOM_METADATA. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List metadataFields; - - /** - * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the - * aggregation interval for collecting flow logs. Increasing the interval time will reduce the - * amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds - * per connection. - * @return value or {@code null} for none - */ - public java.lang.String getAggregationInterval() { - return aggregationInterval; - } - - /** - * Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the - * aggregation interval for collecting flow logs. Increasing the interval time will reduce the - * amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds - * per connection. - * @param aggregationInterval aggregationInterval or {@code null} for none - */ - public SubnetworkLogConfig setAggregationInterval(java.lang.String aggregationInterval) { - this.aggregationInterval = aggregationInterval; - return this; - } - - /** - * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it - * will not appear in get listings. If not set the default behavior is determined by the org - * policy, if there is no org policy specified, then it will default to disabled. Flow logging - * isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnable() { - return enable; - } - - /** - * Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it - * will not appear in get listings. If not set the default behavior is determined by the org - * policy, if there is no org policy specified, then it will default to disabled. Flow logging - * isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. - * @param enable enable or {@code null} for none - */ - public SubnetworkLogConfig setEnable(java.lang.Boolean enable) { - this.enable = enable; - return this; - } - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is - * used to define which VPC flow logs should be exported to Cloud Logging. - * @return value or {@code null} for none - */ - public java.lang.String getFilterExpr() { - return filterExpr; - } - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is - * used to define which VPC flow logs should be exported to Cloud Logging. - * @param filterExpr filterExpr or {@code null} for none - */ - public SubnetworkLogConfig setFilterExpr(java.lang.String filterExpr) { - this.filterExpr = filterExpr; - return this; - } - - /** - * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the - * field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 - * means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless - * otherwise specified by the org policy, which means half of all collected logs are reported. - * @return value or {@code null} for none - */ - public java.lang.Float getFlowSampling() { - return flowSampling; - } - - /** - * Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the - * field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 - * means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless - * otherwise specified by the org policy, which means half of all collected logs are reported. - * @param flowSampling flowSampling or {@code null} for none - */ - public SubnetworkLogConfig setFlowSampling(java.lang.Float flowSampling) { - this.flowSampling = flowSampling; - return this; - } - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, - * none or a subset of metadata fields should be added to the reported VPC flow logs. Default - * isEXCLUDE_ALL_METADATA. - * @return value or {@code null} for none - */ - public java.lang.String getMetadata() { - return metadata; - } - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, - * none or a subset of metadata fields should be added to the reported VPC flow logs. Default - * isEXCLUDE_ALL_METADATA. - * @param metadata metadata or {@code null} for none - */ - public SubnetworkLogConfig setMetadata(java.lang.String metadata) { - this.metadata = metadata; - return this; - } - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to - * CUSTOM_METADATA. - * @return value or {@code null} for none - */ - public java.util.List getMetadataFields() { - return metadataFields; - } - - /** - * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to - * CUSTOM_METADATA. - * @param metadataFields metadataFields or {@code null} for none - */ - public SubnetworkLogConfig setMetadataFields(java.util.List metadataFields) { - this.metadataFields = metadataFields; - return this; - } - - @Override - public SubnetworkLogConfig set(String fieldName, Object value) { - return (SubnetworkLogConfig) super.set(fieldName, value); - } - - @Override - public SubnetworkLogConfig clone() { - return (SubnetworkLogConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkParams.java deleted file mode 100644 index 9436c94c1f0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkParams.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Additional subnetwork parameters. - * - *

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 SubnetworkParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public SubnetworkParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public SubnetworkParams set(String fieldName, Object value) { - return (SubnetworkParams) super.set(fieldName, value); - } - - @Override - public SubnetworkParams clone() { - return (SubnetworkParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkSecondaryRange.java deleted file mode 100644 index f0abea7c72c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkSecondaryRange.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a secondary IP range of a subnetwork. - * - *

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 SubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { - - /** - * The range of IP addresses belonging to this subnetwork secondary range. Provide this property - * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and - * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the - * range can be any range listed in theValid ranges list. - * - * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- - * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the - * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, - * the requested ip_cidr_range must lie within the range of the PDP referenced by the - * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is - * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * Reference to a Public Delegated Prefix (PDP) for BYOIP. This field should be specified for - * configuring BYOGUA internal IPv6 secondary range. When specified along with the ip_cidr_range, - * the ip_cidr_range must lie within the PDP referenced by the `ipCollection` field. When - * specified without the ip_cidr_range, the range is auto-allocated from the PDP referenced by the - * `ipCollection` field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCollection; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipVersion; - - /** - * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 - * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name - * must be unique within the subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rangeName; - - /** - * The URL of the reserved internal range. Only IPv4 is supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reservedInternalRange; - - /** - * The range of IP addresses belonging to this subnetwork secondary range. Provide this property - * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and - * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the - * range can be any range listed in theValid ranges list. - * - * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- - * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the - * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, - * the requested ip_cidr_range must lie within the range of the PDP referenced by the - * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is - * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. Provide this property - * when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and - * secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the - * range can be any range listed in theValid ranges list. - * - * For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto- - * allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the - * range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, - * the requested ip_cidr_range must lie within the range of the PDP referenced by the - * `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is - * not, the range is auto-allocated from the PDP referenced by the `ipCollection` field. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * Reference to a Public Delegated Prefix (PDP) for BYOIP. This field should be specified for - * configuring BYOGUA internal IPv6 secondary range. When specified along with the ip_cidr_range, - * the ip_cidr_range must lie within the PDP referenced by the `ipCollection` field. When - * specified without the ip_cidr_range, the range is auto-allocated from the PDP referenced by the - * `ipCollection` field. - * @return value or {@code null} for none - */ - public java.lang.String getIpCollection() { - return ipCollection; - } - - /** - * Reference to a Public Delegated Prefix (PDP) for BYOIP. This field should be specified for - * configuring BYOGUA internal IPv6 secondary range. When specified along with the ip_cidr_range, - * the ip_cidr_range must lie within the PDP referenced by the `ipCollection` field. When - * specified without the ip_cidr_range, the range is auto-allocated from the PDP referenced by the - * `ipCollection` field. - * @param ipCollection ipCollection or {@code null} for none - */ - public SubnetworkSecondaryRange setIpCollection(java.lang.String ipCollection) { - this.ipCollection = ipCollection; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getIpVersion() { - return ipVersion; - } - - /** - * @param ipVersion ipVersion or {@code null} for none - */ - public SubnetworkSecondaryRange setIpVersion(java.lang.String ipVersion) { - this.ipVersion = ipVersion; - return this; - } - - /** - * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 - * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name - * must be unique within the subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getRangeName() { - return rangeName; - } - - /** - * The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 - * range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name - * must be unique within the subnetwork. - * @param rangeName rangeName or {@code null} for none - */ - public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { - this.rangeName = rangeName; - return this; - } - - /** - * The URL of the reserved internal range. Only IPv4 is supported. - * @return value or {@code null} for none - */ - public java.lang.String getReservedInternalRange() { - return reservedInternalRange; - } - - /** - * The URL of the reserved internal range. Only IPv4 is supported. - * @param reservedInternalRange reservedInternalRange or {@code null} for none - */ - public SubnetworkSecondaryRange setReservedInternalRange(java.lang.String reservedInternalRange) { - this.reservedInternalRange = reservedInternalRange; - return this; - } - - @Override - public SubnetworkSecondaryRange set(String fieldName, Object value) { - return (SubnetworkSecondaryRange) super.set(fieldName, value); - } - - @Override - public SubnetworkSecondaryRange clone() { - return (SubnetworkSecondaryRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetails.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetails.java deleted file mode 100644 index 98a6aa8b8c9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetails.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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.preview.model; - -/** - * The current IP utilization of all subnetwork ranges. Contains the total number of allocated and - * free IPs in each range. - * - *

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 SubnetworkUtilizationDetails extends com.google.api.client.json.GenericJson { - - /** - * Utilizations of external IPV6 IP range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubnetworkUtilizationDetailsIPV6Utilization externalIpv6InstanceUtilization; - - /** - * Utilizations of external IPV6 IP range for NetLB. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubnetworkUtilizationDetailsIPV6Utilization externalIpv6LbUtilization; - - /** - * Utilizations of internal IPV6 IP range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SubnetworkUtilizationDetailsIPV6Utilization internalIpv6Utilization; - - /** - * Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ipv4Utilizations; - - /** - * Utilizations of external IPV6 IP range. - * @return value or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV6Utilization getExternalIpv6InstanceUtilization() { - return externalIpv6InstanceUtilization; - } - - /** - * Utilizations of external IPV6 IP range. - * @param externalIpv6InstanceUtilization externalIpv6InstanceUtilization or {@code null} for none - */ - public SubnetworkUtilizationDetails setExternalIpv6InstanceUtilization(SubnetworkUtilizationDetailsIPV6Utilization externalIpv6InstanceUtilization) { - this.externalIpv6InstanceUtilization = externalIpv6InstanceUtilization; - return this; - } - - /** - * Utilizations of external IPV6 IP range for NetLB. - * @return value or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV6Utilization getExternalIpv6LbUtilization() { - return externalIpv6LbUtilization; - } - - /** - * Utilizations of external IPV6 IP range for NetLB. - * @param externalIpv6LbUtilization externalIpv6LbUtilization or {@code null} for none - */ - public SubnetworkUtilizationDetails setExternalIpv6LbUtilization(SubnetworkUtilizationDetailsIPV6Utilization externalIpv6LbUtilization) { - this.externalIpv6LbUtilization = externalIpv6LbUtilization; - return this; - } - - /** - * Utilizations of internal IPV6 IP range. - * @return value or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV6Utilization getInternalIpv6Utilization() { - return internalIpv6Utilization; - } - - /** - * Utilizations of internal IPV6 IP range. - * @param internalIpv6Utilization internalIpv6Utilization or {@code null} for none - */ - public SubnetworkUtilizationDetails setInternalIpv6Utilization(SubnetworkUtilizationDetailsIPV6Utilization internalIpv6Utilization) { - this.internalIpv6Utilization = internalIpv6Utilization; - return this; - } - - /** - * Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. - * @return value or {@code null} for none - */ - public java.util.List getIpv4Utilizations() { - return ipv4Utilizations; - } - - /** - * Utilizations of all IPV4 IP ranges. For primary ranges, the range name will be empty. - * @param ipv4Utilizations ipv4Utilizations or {@code null} for none - */ - public SubnetworkUtilizationDetails setIpv4Utilizations(java.util.List ipv4Utilizations) { - this.ipv4Utilizations = ipv4Utilizations; - return this; - } - - @Override - public SubnetworkUtilizationDetails set(String fieldName, Object value) { - return (SubnetworkUtilizationDetails) super.set(fieldName, value); - } - - @Override - public SubnetworkUtilizationDetails clone() { - return (SubnetworkUtilizationDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV4Utilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV4Utilization.java deleted file mode 100644 index 61d063c3bb7..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV4Utilization.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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.preview.model; - -/** - * The IPV4 utilization of a single IP range. - * - *

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 SubnetworkUtilizationDetailsIPV4Utilization extends com.google.api.client.json.GenericJson { - - /** - * Will be set for secondary range. Empty for primary IPv4 range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rangeName; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalAllocatedIp; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long totalFreeIp; - - /** - * Will be set for secondary range. Empty for primary IPv4 range. - * @return value or {@code null} for none - */ - public java.lang.String getRangeName() { - return rangeName; - } - - /** - * Will be set for secondary range. Empty for primary IPv4 range. - * @param rangeName rangeName or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV4Utilization setRangeName(java.lang.String rangeName) { - this.rangeName = rangeName; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Long getTotalAllocatedIp() { - return totalAllocatedIp; - } - - /** - * @param totalAllocatedIp totalAllocatedIp or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV4Utilization setTotalAllocatedIp(java.lang.Long totalAllocatedIp) { - this.totalAllocatedIp = totalAllocatedIp; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Long getTotalFreeIp() { - return totalFreeIp; - } - - /** - * @param totalFreeIp totalFreeIp or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV4Utilization setTotalFreeIp(java.lang.Long totalFreeIp) { - this.totalFreeIp = totalFreeIp; - return this; - } - - @Override - public SubnetworkUtilizationDetailsIPV4Utilization set(String fieldName, Object value) { - return (SubnetworkUtilizationDetailsIPV4Utilization) super.set(fieldName, value); - } - - @Override - public SubnetworkUtilizationDetailsIPV4Utilization clone() { - return (SubnetworkUtilizationDetailsIPV4Utilization) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV6Utilization.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV6Utilization.java deleted file mode 100644 index 7fd1524293f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworkUtilizationDetailsIPV6Utilization.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * The IPV6 utilization of a single IP range. - * - *

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 SubnetworkUtilizationDetailsIPV6Utilization extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Uint128 totalAllocatedIp; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Uint128 totalFreeIp; - - /** - * @return value or {@code null} for none - */ - public Uint128 getTotalAllocatedIp() { - return totalAllocatedIp; - } - - /** - * @param totalAllocatedIp totalAllocatedIp or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV6Utilization setTotalAllocatedIp(Uint128 totalAllocatedIp) { - this.totalAllocatedIp = totalAllocatedIp; - return this; - } - - /** - * @return value or {@code null} for none - */ - public Uint128 getTotalFreeIp() { - return totalFreeIp; - } - - /** - * @param totalFreeIp totalFreeIp or {@code null} for none - */ - public SubnetworkUtilizationDetailsIPV6Utilization setTotalFreeIp(Uint128 totalFreeIp) { - this.totalFreeIp = totalFreeIp; - return this; - } - - @Override - public SubnetworkUtilizationDetailsIPV6Utilization set(String fieldName, Object value) { - return (SubnetworkUtilizationDetailsIPV6Utilization) super.set(fieldName, value); - } - - @Override - public SubnetworkUtilizationDetailsIPV6Utilization clone() { - return (SubnetworkUtilizationDetailsIPV6Utilization) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksExpandIpCidrRangeRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksExpandIpCidrRangeRequest.java deleted file mode 100644 index 8321d48da3a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksExpandIpCidrRangeRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SubnetworksExpandIpCidrRangeRequest. - * - *

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 SubnetworksExpandIpCidrRangeRequest extends com.google.api.client.json.GenericJson { - - /** - * The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. - * This range should be disjoint from other subnetworks within this network. This range can only - * be larger than (i.e. a superset of) the range previously defined before the update. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. - * This range should be disjoint from other subnetworks within this network. This range can only - * be larger than (i.e. a superset of) the range previously defined before the update. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The IP (in CIDR format or netmask) of internal addresses that are legal on this Subnetwork. - * This range should be disjoint from other subnetworks within this network. This range can only - * be larger than (i.e. a superset of) the range previously defined before the update. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public SubnetworksExpandIpCidrRangeRequest setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - @Override - public SubnetworksExpandIpCidrRangeRequest set(String fieldName, Object value) { - return (SubnetworksExpandIpCidrRangeRequest) super.set(fieldName, value); - } - - @Override - public SubnetworksExpandIpCidrRangeRequest clone() { - return (SubnetworksExpandIpCidrRangeRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedList.java deleted file mode 100644 index 2cdc334004e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SubnetworksScopedList. - * - *

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 SubnetworksScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of subnetworks contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List subnetworks; - - static { - // hack to force ProGuard to consider Subnetwork 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(Subnetwork.class); - } - - /** - * An informational warning that appears when the list of addresses is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of subnetworks contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getSubnetworks() { - return subnetworks; - } - - /** - * A list of subnetworks contained in this scope. - * @param subnetworks subnetworks or {@code null} for none - */ - public SubnetworksScopedList setSubnetworks(java.util.List subnetworks) { - this.subnetworks = subnetworks; - return this; - } - - /** - * An informational warning that appears when the list of addresses is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * An informational warning that appears when the list of addresses is empty. - * @param warning warning or {@code null} for none - */ - public SubnetworksScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SubnetworksScopedList set(String fieldName, Object value) { - return (SubnetworksScopedList) super.set(fieldName, value); - } - - @Override - public SubnetworksScopedList clone() { - return (SubnetworksScopedList) super.clone(); - } - - /** - * An informational warning that appears when the list of addresses is empty. - */ - 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 SubnetworksScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedWarning.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedWarning.java deleted file mode 100644 index f3ef3c7798b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksScopedWarning.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SubnetworksScopedWarning. - * - *

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 SubnetworksScopedWarning extends com.google.api.client.json.GenericJson { - - /** - * Name of the scope containing this set of Subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String scopeName; - - /** - * An informational warning about unreachable scope - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Name of the scope containing this set of Subnetworks. - * @return value or {@code null} for none - */ - public java.lang.String getScopeName() { - return scopeName; - } - - /** - * Name of the scope containing this set of Subnetworks. - * @param scopeName scopeName or {@code null} for none - */ - public SubnetworksScopedWarning setScopeName(java.lang.String scopeName) { - this.scopeName = scopeName; - return this; - } - - /** - * An informational warning about unreachable scope - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * An informational warning about unreachable scope - * @param warning warning or {@code null} for none - */ - public SubnetworksScopedWarning setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public SubnetworksScopedWarning set(String fieldName, Object value) { - return (SubnetworksScopedWarning) super.set(fieldName, value); - } - - @Override - public SubnetworksScopedWarning clone() { - return (SubnetworksScopedWarning) super.clone(); - } - - /** - * An informational warning about unreachable scope - */ - 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 SubnetworksScopedWarningWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksSetPrivateIpGoogleAccessRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksSetPrivateIpGoogleAccessRequest.java deleted file mode 100644 index 133ae64c1ed..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/SubnetworksSetPrivateIpGoogleAccessRequest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for SubnetworksSetPrivateIpGoogleAccessRequest. - * - *

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 SubnetworksSetPrivateIpGoogleAccessRequest extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean privateIpGoogleAccess; - - /** - * @return value or {@code null} for none - */ - public java.lang.Boolean getPrivateIpGoogleAccess() { - return privateIpGoogleAccess; - } - - /** - * @param privateIpGoogleAccess privateIpGoogleAccess or {@code null} for none - */ - public SubnetworksSetPrivateIpGoogleAccessRequest setPrivateIpGoogleAccess(java.lang.Boolean privateIpGoogleAccess) { - this.privateIpGoogleAccess = privateIpGoogleAccess; - return this; - } - - @Override - public SubnetworksSetPrivateIpGoogleAccessRequest set(String fieldName, Object value) { - return (SubnetworksSetPrivateIpGoogleAccessRequest) super.set(fieldName, value); - } - - @Override - public SubnetworksSetPrivateIpGoogleAccessRequest clone() { - return (SubnetworksSetPrivateIpGoogleAccessRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subsetting.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subsetting.java deleted file mode 100644 index 1e56a80db5e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Subsetting.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.preview.model; - -/** - * Subsetting configuration for this BackendService. Currently this is applicable only for Internal - * TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director. - * - *

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 Subsetting extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policy; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getPolicy() { - return policy; - } - - /** - * @param policy policy or {@code null} for none - */ - public Subsetting setPolicy(java.lang.String policy) { - this.policy = policy; - return this; - } - - @Override - public Subsetting set(String fieldName, Object value) { - return (Subsetting) super.set(fieldName, value); - } - - @Override - public Subsetting clone() { - return (Subsetting) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TCPHealthCheck.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TCPHealthCheck.java deleted file mode 100644 index 5ace7e28615..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TCPHealthCheck.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TCPHealthCheck. - * - *

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 TCPHealthCheck extends com.google.api.client.json.GenericJson { - - /** - * The TCP port number to which the health check prober sends packets. The default value is 80. - * Valid values are 1 through65535. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** - * Not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portName; - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String portSpecification; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, - * after establishing the TCP connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String request; - - /** - * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can - * configure the health check to pass only when the backend sends this exact response ASCII - * string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load- - * balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String response; - - /** - * The TCP port number to which the health check prober sends packets. The default value is 80. - * Valid values are 1 through65535. - * @return value or {@code null} for none - */ - public java.lang.Integer getPort() { - return port; - } - - /** - * The TCP port number to which the health check prober sends packets. The default value is 80. - * Valid values are 1 through65535. - * @param port port or {@code null} for none - */ - public TCPHealthCheck setPort(java.lang.Integer port) { - this.port = port; - return this; - } - - /** - * Not supported. - * @return value or {@code null} for none - */ - public java.lang.String getPortName() { - return portName; - } - - /** - * Not supported. - * @param portName portName or {@code null} for none - */ - public TCPHealthCheck setPortName(java.lang.String portName) { - this.portName = portName; - return this; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @return value or {@code null} for none - */ - public java.lang.String getPortSpecification() { - return portSpecification; - } - - /** - * Specifies how a port is selected for health checking. Can be one of the following values: - * USE_FIXED_PORT: Specifies a port number explicitly using theport field in the health check. - * Supported by backend services for passthrough load balancers and backend services for proxy - * load balancers. Not supported by target pools. The health check supports all backends supported - * by the backend service provided the backend can be health checked. For example, GCE_VM_IP - * network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. - * USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the - * health check port by referring to the backend service. Only supported by backend services for - * proxy load balancers. Not supported by target pools. Not supported by backend services for - * passthrough load balancers. Supports all backends that can be health checked; for - * example,GCE_VM_IP_PORT network endpoint groups and instance group backends. - * - * For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number - * specified for each endpoint in the network endpoint group. For instance group backends, the - * health check uses the port number determined by looking up the backend service's named port in - * the instance group's list of named ports. - * @param portSpecification portSpecification or {@code null} for none - */ - public TCPHealthCheck setPortSpecification(java.lang.String portSpecification) { - this.portSpecification = portSpecification; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public TCPHealthCheck setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, - * after establishing the TCP connection. - * @return value or {@code null} for none - */ - public java.lang.String getRequest() { - return request; - } - - /** - * Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, - * after establishing the TCP connection. - * @param request request or {@code null} for none - */ - public TCPHealthCheck setRequest(java.lang.String request) { - this.request = request; - return this; - } - - /** - * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can - * configure the health check to pass only when the backend sends this exact response ASCII - * string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load- - * balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp - * @return value or {@code null} for none - */ - public java.lang.String getResponse() { - return response; - } - - /** - * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can - * configure the health check to pass only when the backend sends this exact response ASCII - * string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load- - * balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp - * @param response response or {@code null} for none - */ - public TCPHealthCheck setResponse(java.lang.String response) { - this.response = response; - return this; - } - - @Override - public TCPHealthCheck set(String fieldName, Object value) { - return (TCPHealthCheck) super.set(fieldName, value); - } - - @Override - public TCPHealthCheck clone() { - return (TCPHealthCheck) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Tags.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Tags.java deleted file mode 100644 index 2b69e15b5b1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Tags.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * 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.preview.model; - -/** - * A set of instance tags. - * - *

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 Tags extends com.google.api.client.json.GenericJson { - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and - * used for optimistic locking. The fingerprint is initially generated by Compute Engine and - * changes after every request to modify or update tags. You must always provide an up-to-date - * fingerprint hash in order to update or change tags. - * - * To see the latest fingerprint, make get() request to the instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and - * used for optimistic locking. The fingerprint is initially generated by Compute Engine and - * changes after every request to modify or update tags. You must always provide an up-to-date - * fingerprint hash in order to update or change tags. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and - * used for optimistic locking. The fingerprint is initially generated by Compute Engine and - * changes after every request to modify or update tags. You must always provide an up-to-date - * fingerprint hash in order to update or change tags. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and - * used for optimistic locking. The fingerprint is initially generated by Compute Engine and - * changes after every request to modify or update tags. You must always provide an up-to-date - * fingerprint hash in order to update or change tags. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public Tags setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and - * used for optimistic locking. The fingerprint is initially generated by Compute Engine and - * changes after every request to modify or update tags. You must always provide an up-to-date - * fingerprint hash in order to update or change tags. - * - * To see the latest fingerprint, make get() request to the instance. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public Tags encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. - * @param items items or {@code null} for none - */ - public Tags setItems(java.util.List items) { - this.items = items; - return this; - } - - @Override - public Tags set(String fieldName, Object value) { - return (Tags) super.set(fieldName, value); - } - - @Override - public Tags clone() { - return (Tags) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxy.java deleted file mode 100644 index d2ec4f1c04a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxy.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target gRPC Proxy resource. - * - * A target gRPC proxy is a component of load balancers intended for load balancing gRPC traffic. - * Only global forwarding rules with load balancing scheme INTERNAL_SELF_MANAGED can reference a - * target gRPC proxy. The target gRPC Proxy references a URL map that specifies how traffic is - * routed to gRPC backend services. - * - *

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 TargetGrpcProxy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetGrpcProxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] 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] Server-defined URL with id for the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The - * protocol field in the BackendService must be set to GRPC. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** - * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC - * applications without using a sidecar proxy. This will enable configuration checks on urlMap and - * its referenced BackendServices to not allow unsupported features. A gRPC application must use - * "xds:" scheme in the target URI of the service it is connecting to. If false, indicates that - * the BackendServices referenced by the urlMap will be accessed by gRPC applications via a - * sidecar proxy. In this case, a gRPC application must not use "xds:" scheme in the target URI of - * the service it is connecting to - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean validateForProxyless; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetGrpcProxy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetGrpcProxy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetGrpcProxy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetGrpcProxy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public TargetGrpcProxy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetGrpcProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetGrpcProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetGrpcProxy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public TargetGrpcProxy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetGrpcProxy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetGrpcProxy 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 TargetGrpcProxy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL with id for the resource. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public TargetGrpcProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The - * protocol field in the BackendService must be set to GRPC. - * @return value or {@code null} for none - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** - * URL to the UrlMap resource that defines the mapping from URL to the BackendService. The - * protocol field in the BackendService must be set to GRPC. - * @param urlMap urlMap or {@code null} for none - */ - public TargetGrpcProxy setUrlMap(java.lang.String urlMap) { - this.urlMap = urlMap; - return this; - } - - /** - * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC - * applications without using a sidecar proxy. This will enable configuration checks on urlMap and - * its referenced BackendServices to not allow unsupported features. A gRPC application must use - * "xds:" scheme in the target URI of the service it is connecting to. If false, indicates that - * the BackendServices referenced by the urlMap will be accessed by gRPC applications via a - * sidecar proxy. In this case, a gRPC application must not use "xds:" scheme in the target URI of - * the service it is connecting to - * @return value or {@code null} for none - */ - public java.lang.Boolean getValidateForProxyless() { - return validateForProxyless; - } - - /** - * If true, indicates that the BackendServices referenced by the urlMap may be accessed by gRPC - * applications without using a sidecar proxy. This will enable configuration checks on urlMap and - * its referenced BackendServices to not allow unsupported features. A gRPC application must use - * "xds:" scheme in the target URI of the service it is connecting to. If false, indicates that - * the BackendServices referenced by the urlMap will be accessed by gRPC applications via a - * sidecar proxy. In this case, a gRPC application must not use "xds:" scheme in the target URI of - * the service it is connecting to - * @param validateForProxyless validateForProxyless or {@code null} for none - */ - public TargetGrpcProxy setValidateForProxyless(java.lang.Boolean validateForProxyless) { - this.validateForProxyless = validateForProxyless; - return this; - } - - @Override - public TargetGrpcProxy set(String fieldName, Object value) { - return (TargetGrpcProxy) super.set(fieldName, value); - } - - @Override - public TargetGrpcProxy clone() { - return (TargetGrpcProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxyList.java deleted file mode 100644 index e666ed9e40e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetGrpcProxyList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetGrpcProxyList. - * - *

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 TargetGrpcProxyList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetGrpcProxy 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 TargetGrpcProxy 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(TargetGrpcProxy.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetGrpcProxyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetGrpcProxy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetGrpcProxy resources. - * @param items items or {@code null} for none - */ - public TargetGrpcProxyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetGrpcProxyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetGrpcProxyList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetGrpcProxyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetGrpcProxyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetGrpcProxyList set(String fieldName, Object value) { - return (TargetGrpcProxyList) super.set(fieldName, value); - } - - @Override - public TargetGrpcProxyList clone() { - return (TargetGrpcProxyList) 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 TargetGrpcProxyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxiesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxiesScopedList.java deleted file mode 100644 index 23b4aeb1777..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxiesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpProxiesScopedList. - * - *

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 TargetHttpProxiesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of TargetHttpProxies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetHttpProxies; - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of TargetHttpProxies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getTargetHttpProxies() { - return targetHttpProxies; - } - - /** - * A list of TargetHttpProxies contained in this scope. - * @param targetHttpProxies targetHttpProxies or {@code null} for none - */ - public TargetHttpProxiesScopedList setTargetHttpProxies(java.util.List targetHttpProxies) { - this.targetHttpProxies = targetHttpProxies; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public TargetHttpProxiesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetHttpProxiesScopedList set(String fieldName, Object value) { - return (TargetHttpProxiesScopedList) super.set(fieldName, value); - } - - @Override - public TargetHttpProxiesScopedList clone() { - return (TargetHttpProxiesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 TargetHttpProxiesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxy.java deleted file mode 100644 index 977f84f4ef8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxy.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target HTTP Proxy resource. - * - * Google Compute Engine has two Target HTTP Proxy resources: - * - * * [Global](/compute/docs/reference/rest/v1/targetHttpProxies) * - * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) - * - * A target HTTP proxy is a component of Google Cloud HTTP load balancers. - * - * * targetHttpProxies are used by global external Application Load Balancers, classic Application - * Load Balancers, cross-region internal Application Load Balancers, and Traffic Director. * - * regionTargetHttpProxies are used by regional internal Application Load Balancers and regional - * external Application Load Balancers. - * - * Forwarding rules reference a target HTTP proxy, and the target proxy then references a URL map. - * For more information, readUsing Target Proxies and Forwarding rule concepts. - * - *

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 TargetHttpProxy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpProxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Specifies how long to keep a connection open, after completing a response, while there is no - * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 - * seconds) will be used. - * - * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the - * maximum allowed value is 1200 seconds. - * - * For classic Application Load Balancers, this option is not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer httpKeepAliveTimeoutSec; - - /** - * [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] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean proxyBind; - - /** - * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This - * field is not applicable to global Target HTTP Proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * URL to the UrlMap resource that defines the mapping from URL to the BackendService. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetHttpProxy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpProxy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpProxy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpProxy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public TargetHttpProxy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpProxy. An up-to- - * date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpProxy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public TargetHttpProxy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Specifies how long to keep a connection open, after completing a response, while there is no - * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 - * seconds) will be used. - * - * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the - * maximum allowed value is 1200 seconds. - * - * For classic Application Load Balancers, this option is not supported. - * @return value or {@code null} for none - */ - public java.lang.Integer getHttpKeepAliveTimeoutSec() { - return httpKeepAliveTimeoutSec; - } - - /** - * Specifies how long to keep a connection open, after completing a response, while there is no - * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 - * seconds) will be used. - * - * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the - * maximum allowed value is 1200 seconds. - * - * For classic Application Load Balancers, this option is not supported. - * @param httpKeepAliveTimeoutSec httpKeepAliveTimeoutSec or {@code null} for none - */ - public TargetHttpProxy setHttpKeepAliveTimeoutSec(java.lang.Integer httpKeepAliveTimeoutSec) { - this.httpKeepAliveTimeoutSec = httpKeepAliveTimeoutSec; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetHttpProxy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetHttpProxy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetHttpProxy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getProxyBind() { - return proxyBind; - } - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * @param proxyBind proxyBind or {@code null} for none - */ - public TargetHttpProxy setProxyBind(java.lang.Boolean proxyBind) { - this.proxyBind = proxyBind; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This - * field is not applicable to global Target HTTP Proxies. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional Target HTTP Proxy resides. This - * field is not applicable to global Target HTTP Proxies. - * @param region region or {@code null} for none - */ - public TargetHttpProxy setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetHttpProxy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * URL to the UrlMap resource that defines the mapping from URL to the BackendService. - * @return value or {@code null} for none - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** - * URL to the UrlMap resource that defines the mapping from URL to the BackendService. - * @param urlMap urlMap or {@code null} for none - */ - public TargetHttpProxy setUrlMap(java.lang.String urlMap) { - this.urlMap = urlMap; - return this; - } - - @Override - public TargetHttpProxy set(String fieldName, Object value) { - return (TargetHttpProxy) super.set(fieldName, value); - } - - @Override - public TargetHttpProxy clone() { - return (TargetHttpProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyAggregatedList.java deleted file mode 100644 index aefc78a5f04..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyAggregatedList.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpProxyAggregatedList. - * - *

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 TargetHttpProxyAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetHttpProxiesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider TargetHttpProxiesScopedList 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(TargetHttpProxiesScopedList.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for - * lists of Target HTTP Proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] 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 TargetHttpProxyAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetHttpProxiesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of TargetHttpProxiesScopedList resources. - * @param items items or {@code null} for none - */ - public TargetHttpProxyAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for - * lists of Target HTTP Proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for - * lists of Target HTTP Proxies. - * @param kind kind or {@code null} for none - */ - public TargetHttpProxyAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetHttpProxyAggregatedList 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 TargetHttpProxyAggregatedList 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 TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { - this.unreachables = unreachables; - return this; - } - - @Override - public TargetHttpProxyAggregatedList set(String fieldName, Object value) { - return (TargetHttpProxyAggregatedList) super.set(fieldName, value); - } - - @Override - public TargetHttpProxyAggregatedList clone() { - return (TargetHttpProxyAggregatedList) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyList.java deleted file mode 100644 index be8704e815b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpProxyList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * A list of TargetHttpProxy resources. - * - *

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 TargetHttpProxyList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetHttpProxy 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 TargetHttpProxy 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(TargetHttpProxy.class); - } - - /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetHttpProxyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetHttpProxy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetHttpProxy resources. - * @param items items or {@code null} for none - */ - public TargetHttpProxyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetHttpProxyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetHttpProxyList 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 TargetHttpProxyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetHttpProxyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetHttpProxyList set(String fieldName, Object value) { - return (TargetHttpProxyList) super.set(fieldName, value); - } - - @Override - public TargetHttpProxyList clone() { - return (TargetHttpProxyList) 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 TargetHttpProxyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesScopedList.java deleted file mode 100644 index 30d5986b3f9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpsProxiesScopedList. - * - *

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 TargetHttpsProxiesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of TargetHttpsProxies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetHttpsProxies; - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of TargetHttpsProxies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getTargetHttpsProxies() { - return targetHttpsProxies; - } - - /** - * A list of TargetHttpsProxies contained in this scope. - * @param targetHttpsProxies targetHttpsProxies or {@code null} for none - */ - public TargetHttpsProxiesScopedList setTargetHttpsProxies(java.util.List targetHttpsProxies) { - this.targetHttpsProxies = targetHttpsProxies; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public TargetHttpsProxiesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetHttpsProxiesScopedList set(String fieldName, Object value) { - return (TargetHttpsProxiesScopedList) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxiesScopedList clone() { - return (TargetHttpsProxiesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 TargetHttpsProxiesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetCertificateMapRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetCertificateMapRequest.java deleted file mode 100644 index 9e4be16a509..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetCertificateMapRequest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpsProxiesSetCertificateMapRequest. - * - *

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 TargetHttpsProxiesSetCertificateMapRequest extends com.google.api.client.json.GenericJson { - - /** - * URL of the Certificate Map to associate with this TargetHttpsProxy. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String certificateMap; - - /** - * URL of the Certificate Map to associate with this TargetHttpsProxy. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @return value or {@code null} for none - */ - public java.lang.String getCertificateMap() { - return certificateMap; - } - - /** - * URL of the Certificate Map to associate with this TargetHttpsProxy. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @param certificateMap certificateMap or {@code null} for none - */ - public TargetHttpsProxiesSetCertificateMapRequest setCertificateMap(java.lang.String certificateMap) { - this.certificateMap = certificateMap; - return this; - } - - @Override - public TargetHttpsProxiesSetCertificateMapRequest set(String fieldName, Object value) { - return (TargetHttpsProxiesSetCertificateMapRequest) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxiesSetCertificateMapRequest clone() { - return (TargetHttpsProxiesSetCertificateMapRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetQuicOverrideRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetQuicOverrideRequest.java deleted file mode 100644 index dcacd827667..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetQuicOverrideRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpsProxiesSetQuicOverrideRequest. - * - *

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 TargetHttpsProxiesSetQuicOverrideRequest extends com.google.api.client.json.GenericJson { - - /** - * QUIC policy for the TargetHttpsProxy resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String quicOverride; - - /** - * QUIC policy for the TargetHttpsProxy resource. - * @return value or {@code null} for none - */ - public java.lang.String getQuicOverride() { - return quicOverride; - } - - /** - * QUIC policy for the TargetHttpsProxy resource. - * @param quicOverride quicOverride or {@code null} for none - */ - public TargetHttpsProxiesSetQuicOverrideRequest setQuicOverride(java.lang.String quicOverride) { - this.quicOverride = quicOverride; - return this; - } - - @Override - public TargetHttpsProxiesSetQuicOverrideRequest set(String fieldName, Object value) { - return (TargetHttpsProxiesSetQuicOverrideRequest) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxiesSetQuicOverrideRequest clone() { - return (TargetHttpsProxiesSetQuicOverrideRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetSslCertificatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetSslCertificatesRequest.java deleted file mode 100644 index 457e6ce7b24..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxiesSetSslCertificatesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpsProxiesSetSslCertificatesRequest. - * - *

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 TargetHttpsProxiesSetSslCertificatesRequest extends com.google.api.client.json.GenericJson { - - /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least - * one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslCertificates; - - /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least - * one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. - * @return value or {@code null} for none - */ - public java.util.List getSslCertificates() { - return sslCertificates; - } - - /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least - * one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. - * @param sslCertificates sslCertificates or {@code null} for none - */ - public TargetHttpsProxiesSetSslCertificatesRequest setSslCertificates(java.util.List sslCertificates) { - this.sslCertificates = sslCertificates; - return this; - } - - @Override - public TargetHttpsProxiesSetSslCertificatesRequest set(String fieldName, Object value) { - return (TargetHttpsProxiesSetSslCertificatesRequest) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxiesSetSslCertificatesRequest clone() { - return (TargetHttpsProxiesSetSslCertificatesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxy.java deleted file mode 100644 index 36dc3502ccc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxy.java +++ /dev/null @@ -1,810 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target HTTPS Proxy resource. - * - * Google Compute Engine has two Target HTTPS Proxy resources: - * - * * [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) * - * [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) - * - * A target HTTPS proxy is a component of Google Cloud HTTPS load balancers. - * - * * targetHttpsProxies are used by global external Application Load Balancers, classic - * Application Load Balancers, cross-region internal Application Load Balancers, and Traffic - * Director. * regionTargetHttpsProxies are used by regional internal Application Load Balancers - * and regional external Application Load Balancers. - * - * Forwarding rules reference a target HTTPS proxy, and the target proxy then references a URL map. - * For more information, readUsing Target Proxies and Forwarding rule concepts. - * - *

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 TargetHttpsProxy extends com.google.api.client.json.GenericJson { - - /** - * Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how - * the proxy should authorize inbound traffic. If left blank, access will not be restricted by an - * authorization policy. - * - * Refer to the AuthorizationPolicy resource for additional details. - * - * authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules - * with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. - * - * Note: This field currently has no impact. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String authorizationPolicy; - - /** - * URL of a certificate map that identifies a certificate map associated with the given target - * proxy. This field can only be set for Global external Application Load Balancer or Classic - * Application Load Balancer. For other products use Certificate Manager Certificates instead. - * - * If set, sslCertificates will be ignored. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String certificateMap; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- - * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpsProxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Specifies how long to keep a connection open, after completing a response, while there is no - * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 - * seconds) will be used. - * - * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the - * maximum allowed value is 1200 seconds. - * - * For classic Application Load Balancers, this option is not supported. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer httpKeepAliveTimeoutSec; - - /** - * [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] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean proxyBind; - - /** - * Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines - * whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, - * ENABLE, orDISABLE. - When quic-override is set to NONE, Google manages whether QUIC - * is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when - * possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - * - If the quic-override flag is not specified,NONE is implied. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String quicOverride; - - /** - * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This - * field is not applicable to global TargetHttpsProxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the - * proxy should authenticate inbound traffic. - * - * serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with - * theloadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED or - * INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional - * forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For - * details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with - * EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy - * documentation. - * - * If left blank, communications are not encrypted. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String serverTlsPolicy; - - /** - * URLs to SslCertificate resources that are used to authenticate connections between users and - * the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply - * when the load balancing scheme is set to INTERNAL_SELF_MANAGED. - * - * The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate - * resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. - * Certificate Manager Certificates must include the certificatemanager API namespace. Using - * Certificate Manager Certificates in this field is not supported by Global external Application - * Load Balancer or Classic Application Load Balancer, use certificate_map instead. - * - * Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager - * Certificates. - * - * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis - * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific - * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour - * ceName}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslCertificates; - - /** - * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not - * set, the TargetHttpsProxy resource has no SSL policy configured. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** - * Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early - * Data allows a TLS resumption handshake to include the initial application payload (a HTTP - * request) alongside the handshake, reducing the effective round trips to "zero". This applies to - * TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). - * - * This can improve application performance, especially on networks where interruptions may be - * common, such as on mobile. - * - * Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a - * value of "1", to allow the backend to determine whether Early Data was included. - * - * Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend - * before the handshake has fully completed. Applications that allow idempotent HTTP methods to - * make non-idempotent changes, such as a GET request updating a database, should not accept Early - * Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a - * HTTP 425 (Too Early) status code, in order to remain RFC compliant. - * - * The default value is DISABLED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tlsEarlyData; - - /** - * A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL - * to the BackendService. For example, the following are all valid URLs for specifying a URL map: - * - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map - - * projects/project/global/urlMaps/url-map - global/urlMaps/url-map - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** - * Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how - * the proxy should authorize inbound traffic. If left blank, access will not be restricted by an - * authorization policy. - * - * Refer to the AuthorizationPolicy resource for additional details. - * - * authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules - * with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. - * - * Note: This field currently has no impact. - * @return value or {@code null} for none - */ - public java.lang.String getAuthorizationPolicy() { - return authorizationPolicy; - } - - /** - * Optional. A URL referring to a networksecurity.AuthorizationPolicy resource that describes how - * the proxy should authorize inbound traffic. If left blank, access will not be restricted by an - * authorization policy. - * - * Refer to the AuthorizationPolicy resource for additional details. - * - * authorizationPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules - * with theloadBalancingScheme set to INTERNAL_SELF_MANAGED. - * - * Note: This field currently has no impact. - * @param authorizationPolicy authorizationPolicy or {@code null} for none - */ - public TargetHttpsProxy setAuthorizationPolicy(java.lang.String authorizationPolicy) { - this.authorizationPolicy = authorizationPolicy; - return this; - } - - /** - * URL of a certificate map that identifies a certificate map associated with the given target - * proxy. This field can only be set for Global external Application Load Balancer or Classic - * Application Load Balancer. For other products use Certificate Manager Certificates instead. - * - * If set, sslCertificates will be ignored. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @return value or {@code null} for none - */ - public java.lang.String getCertificateMap() { - return certificateMap; - } - - /** - * URL of a certificate map that identifies a certificate map associated with the given target - * proxy. This field can only be set for Global external Application Load Balancer or Classic - * Application Load Balancer. For other products use Certificate Manager Certificates instead. - * - * If set, sslCertificates will be ignored. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @param certificateMap certificateMap or {@code null} for none - */ - public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { - this.certificateMap = certificateMap; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetHttpsProxy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- - * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpsProxy. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- - * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpsProxy. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- - * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpsProxy. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public TargetHttpsProxy setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field will be ignored when inserting a TargetHttpsProxy. An up-to- - * date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the - * request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() - * request to retrieve the TargetHttpsProxy. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public TargetHttpsProxy encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Specifies how long to keep a connection open, after completing a response, while there is no - * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 - * seconds) will be used. - * - * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the - * maximum allowed value is 1200 seconds. - * - * For classic Application Load Balancers, this option is not supported. - * @return value or {@code null} for none - */ - public java.lang.Integer getHttpKeepAliveTimeoutSec() { - return httpKeepAliveTimeoutSec; - } - - /** - * Specifies how long to keep a connection open, after completing a response, while there is no - * matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 - * seconds) will be used. - * - * For global external Application Load Balancers, the minimum allowed value is 5 seconds and the - * maximum allowed value is 1200 seconds. - * - * For classic Application Load Balancers, this option is not supported. - * @param httpKeepAliveTimeoutSec httpKeepAliveTimeoutSec or {@code null} for none - */ - public TargetHttpsProxy setHttpKeepAliveTimeoutSec(java.lang.Integer httpKeepAliveTimeoutSec) { - this.httpKeepAliveTimeoutSec = httpKeepAliveTimeoutSec; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetHttpsProxy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetHttpsProxy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetHttpsProxy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getProxyBind() { - return proxyBind; - } - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * @param proxyBind proxyBind or {@code null} for none - */ - public TargetHttpsProxy setProxyBind(java.lang.Boolean proxyBind) { - this.proxyBind = proxyBind; - return this; - } - - /** - * Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines - * whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, - * ENABLE, orDISABLE. - When quic-override is set to NONE, Google manages whether QUIC - * is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when - * possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - * - If the quic-override flag is not specified,NONE is implied. - * @return value or {@code null} for none - */ - public java.lang.String getQuicOverride() { - return quicOverride; - } - - /** - * Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines - * whether the load balancer attempts to negotiate QUIC with clients. You can specify NONE, - * ENABLE, orDISABLE. - When quic-override is set to NONE, Google manages whether QUIC - * is used. - When quic-override is set to ENABLE, the load balancer uses QUIC when - * possible. - When quic-override is set to DISABLE, the load balancer doesn't use QUIC. - * - If the quic-override flag is not specified,NONE is implied. - * @param quicOverride quicOverride or {@code null} for none - */ - public TargetHttpsProxy setQuicOverride(java.lang.String quicOverride) { - this.quicOverride = quicOverride; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This - * field is not applicable to global TargetHttpsProxies. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This - * field is not applicable to global TargetHttpsProxies. - * @param region region or {@code null} for none - */ - public TargetHttpsProxy setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetHttpsProxy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the - * proxy should authenticate inbound traffic. - * - * serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with - * theloadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED or - * INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional - * forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For - * details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with - * EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy - * documentation. - * - * If left blank, communications are not encrypted. - * @return value or {@code null} for none - */ - public java.lang.String getServerTlsPolicy() { - return serverTlsPolicy; - } - - /** - * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the - * proxy should authenticate inbound traffic. - * - * serverTlsPolicy only applies to a globalTargetHttpsProxy attached toglobalForwardingRules with - * theloadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED or - * INTERNAL_MANAGED. It also applies to a regional TargetHttpsProxy attached to regional - * forwardingRules with theloadBalancingScheme set to EXTERNAL_MANAGED orINTERNAL_MANAGED. For - * details whichServerTlsPolicy resources are accepted withINTERNAL_SELF_MANAGED and which with - * EXTERNAL,INTERNAL_MANAGED, EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy - * documentation. - * - * If left blank, communications are not encrypted. - * @param serverTlsPolicy serverTlsPolicy or {@code null} for none - */ - public TargetHttpsProxy setServerTlsPolicy(java.lang.String serverTlsPolicy) { - this.serverTlsPolicy = serverTlsPolicy; - return this; - } - - /** - * URLs to SslCertificate resources that are used to authenticate connections between users and - * the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply - * when the load balancing scheme is set to INTERNAL_SELF_MANAGED. - * - * The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate - * resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. - * Certificate Manager Certificates must include the certificatemanager API namespace. Using - * Certificate Manager Certificates in this field is not supported by Global external Application - * Load Balancer or Classic Application Load Balancer, use certificate_map instead. - * - * Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager - * Certificates. - * - * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis - * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific - * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour - * ceName}. - * @return value or {@code null} for none - */ - public java.util.List getSslCertificates() { - return sslCertificates; - } - - /** - * URLs to SslCertificate resources that are used to authenticate connections between users and - * the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply - * when the load balancing scheme is set to INTERNAL_SELF_MANAGED. - * - * The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate - * resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. - * Certificate Manager Certificates must include the certificatemanager API namespace. Using - * Certificate Manager Certificates in this field is not supported by Global external Application - * Load Balancer or Classic Application Load Balancer, use certificate_map instead. - * - * Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager - * Certificates. - * - * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis - * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific - * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour - * ceName}. - * @param sslCertificates sslCertificates or {@code null} for none - */ - public TargetHttpsProxy setSslCertificates(java.util.List sslCertificates) { - this.sslCertificates = sslCertificates; - return this; - } - - /** - * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not - * set, the TargetHttpsProxy resource has no SSL policy configured. - * @return value or {@code null} for none - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not - * set, the TargetHttpsProxy resource has no SSL policy configured. - * @param sslPolicy sslPolicy or {@code null} for none - */ - public TargetHttpsProxy setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - return this; - } - - /** - * Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early - * Data allows a TLS resumption handshake to include the initial application payload (a HTTP - * request) alongside the handshake, reducing the effective round trips to "zero". This applies to - * TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). - * - * This can improve application performance, especially on networks where interruptions may be - * common, such as on mobile. - * - * Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a - * value of "1", to allow the backend to determine whether Early Data was included. - * - * Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend - * before the handshake has fully completed. Applications that allow idempotent HTTP methods to - * make non-idempotent changes, such as a GET request updating a database, should not accept Early - * Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a - * HTTP 425 (Too Early) status code, in order to remain RFC compliant. - * - * The default value is DISABLED. - * @return value or {@code null} for none - */ - public java.lang.String getTlsEarlyData() { - return tlsEarlyData; - } - - /** - * Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted for this service. Early - * Data allows a TLS resumption handshake to include the initial application payload (a HTTP - * request) alongside the handshake, reducing the effective round trips to "zero". This applies to - * TLS 1.3 connections over TCP (HTTP/2) as well as over UDP (QUIC/h3). - * - * This can improve application performance, especially on networks where interruptions may be - * common, such as on mobile. - * - * Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a - * value of "1", to allow the backend to determine whether Early Data was included. - * - * Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend - * before the handshake has fully completed. Applications that allow idempotent HTTP methods to - * make non-idempotent changes, such as a GET request updating a database, should not accept Early - * Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a - * HTTP 425 (Too Early) status code, in order to remain RFC compliant. - * - * The default value is DISABLED. - * @param tlsEarlyData tlsEarlyData or {@code null} for none - */ - public TargetHttpsProxy setTlsEarlyData(java.lang.String tlsEarlyData) { - this.tlsEarlyData = tlsEarlyData; - return this; - } - - /** - * A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL - * to the BackendService. For example, the following are all valid URLs for specifying a URL map: - * - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map - - * projects/project/global/urlMaps/url-map - global/urlMaps/url-map - * @return value or {@code null} for none - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** - * A fully-qualified or valid partial URL to the UrlMap resource that defines the mapping from URL - * to the BackendService. For example, the following are all valid URLs for specifying a URL map: - * - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map - - * projects/project/global/urlMaps/url-map - global/urlMaps/url-map - * @param urlMap urlMap or {@code null} for none - */ - public TargetHttpsProxy setUrlMap(java.lang.String urlMap) { - this.urlMap = urlMap; - return this; - } - - @Override - public TargetHttpsProxy set(String fieldName, Object value) { - return (TargetHttpsProxy) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxy clone() { - return (TargetHttpsProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyAggregatedList.java deleted file mode 100644 index b00bc2bc9ab..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyAggregatedList.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetHttpsProxyAggregatedList. - * - *

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 TargetHttpsProxyAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetHttpsProxiesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider TargetHttpsProxiesScopedList 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(TargetHttpsProxiesScopedList.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for - * lists of Target HTTP Proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 TargetHttpsProxyAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetHttpsProxiesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of TargetHttpsProxiesScopedList resources. - * @param items items or {@code null} for none - */ - public TargetHttpsProxyAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for - * lists of Target HTTP Proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for - * lists of Target HTTP Proxies. - * @param kind kind or {@code null} for none - */ - public TargetHttpsProxyAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetHttpsProxyAggregatedList 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 TargetHttpsProxyAggregatedList 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 TargetHttpsProxyAggregatedList 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 TargetHttpsProxyAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetHttpsProxyAggregatedList set(String fieldName, Object value) { - return (TargetHttpsProxyAggregatedList) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxyAggregatedList clone() { - return (TargetHttpsProxyAggregatedList) 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 TargetHttpsProxyAggregatedListWarningData. - */ - 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(); - } - - } - } -} From a1bc3d672fb8fb312a66f68fd99488c1f02ddc8a Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:44 -0700 Subject: [PATCH 22/23] chore: regenerate compute client --- .../preview/model/TargetHttpsProxyList.java | 386 -------- .../compute/preview/model/TargetInstance.java | 346 ------- .../model/TargetInstanceAggregatedList.java | 401 -------- .../preview/model/TargetInstanceList.java | 383 -------- .../model/TargetInstancesScopedList.java | 278 ------ .../compute/preview/model/TargetPool.java | 454 ---------- .../model/TargetPoolAggregatedList.java | 404 --------- .../model/TargetPoolInstanceHealth.java | 96 -- .../compute/preview/model/TargetPoolList.java | 386 -------- .../TargetPoolsAddHealthCheckRequest.java | 72 -- .../model/TargetPoolsAddInstanceRequest.java | 84 -- .../TargetPoolsRemoveHealthCheckRequest.java | 84 -- .../TargetPoolsRemoveInstanceRequest.java | 72 -- .../preview/model/TargetPoolsScopedList.java | 278 ------ .../preview/model/TargetReference.java | 63 -- ...getSslProxiesSetBackendServiceRequest.java | 66 -- ...getSslProxiesSetCertificateMapRequest.java | 75 -- ...TargetSslProxiesSetProxyHeaderRequest.java | 69 -- ...etSslProxiesSetSslCertificatesRequest.java | 69 -- .../compute/preview/model/TargetSslProxy.java | 355 -------- .../preview/model/TargetSslProxyList.java | 383 -------- .../model/TargetTcpProxiesScopedList.java | 272 ------ ...getTcpProxiesSetBackendServiceRequest.java | 66 -- ...TargetTcpProxiesSetProxyHeaderRequest.java | 69 -- .../compute/preview/model/TargetTcpProxy.java | 358 -------- .../model/TargetTcpProxyAggregatedList.java | 410 --------- .../preview/model/TargetTcpProxyList.java | 383 -------- .../preview/model/TargetVpnGateway.java | 475 ---------- .../model/TargetVpnGatewayAggregatedList.java | 404 --------- .../preview/model/TargetVpnGatewayList.java | 386 -------- .../preview/model/TargetVpnGatewayParams.java | 87 -- .../model/TargetVpnGatewaysScopedList.java | 281 ------ .../compute/preview/model/TestFailure.java | 264 ------ .../preview/model/TestPermissionsRequest.java | 69 -- .../model/TestPermissionsResponse.java | 66 -- .../compute/preview/model/TimeZone.java | 90 -- .../compute/preview/model/Uint128.java | 84 -- .../preview/model/UpcomingMaintenance.java | 240 ----- .../compute/preview/model/UrlMap.java | 724 --------------- .../compute/preview/model/UrlMapList.java | 383 -------- .../preview/model/UrlMapReference.java | 63 -- .../compute/preview/model/UrlMapTest.java | 270 ------ .../preview/model/UrlMapTestHeader.java | 90 -- .../preview/model/UrlMapValidationResult.java | 144 --- .../preview/model/UrlMapsAggregatedList.java | 401 -------- .../preview/model/UrlMapsScopedList.java | 278 ------ .../preview/model/UrlMapsValidateRequest.java | 129 --- .../model/UrlMapsValidateResponse.java | 63 -- .../compute/preview/model/UrlRewrite.java | 207 ----- .../preview/model/UsableSubnetwork.java | 306 ------- .../model/UsableSubnetworkSecondaryRange.java | 99 -- .../UsableSubnetworksAggregatedList.java | 443 --------- .../preview/model/UsageExportLocation.java | 112 --- .../preview/model/VmEndpointNatMappings.java | 87 -- ...dpointNatMappingsInterfaceNatMappings.java | 231 ----- ...gsInterfaceNatMappingsNatRuleMappings.java | 180 ---- .../model/VmEndpointNatMappingsList.java | 386 -------- .../model/VmExtensionPoliciesScopedList.java | 272 ------ .../preview/model/VmExtensionPolicy.java | 414 --------- ...ExtensionPolicyAggregatedListResponse.java | 431 --------- .../VmExtensionPolicyExtensionPolicy.java | 93 -- .../VmExtensionPolicyInstanceSelector.java | 66 -- .../model/VmExtensionPolicyLabelSelector.java | 87 -- .../preview/model/VmExtensionPolicyList.java | 449 --------- .../compute/preview/model/VpnGateway.java | 474 ---------- .../model/VpnGatewayAggregatedList.java | 401 -------- .../compute/preview/model/VpnGatewayList.java | 383 -------- .../preview/model/VpnGatewayParams.java | 87 -- .../preview/model/VpnGatewayStatus.java | 66 -- ...tatusHighAvailabilityRequirementState.java | 97 -- .../preview/model/VpnGatewayStatusTunnel.java | 117 --- .../model/VpnGatewayStatusVpnConnection.java | 151 ---- .../model/VpnGatewayVpnGatewayInterface.java | 177 ---- .../model/VpnGatewaysGetStatusResponse.java | 63 -- .../preview/model/VpnGatewaysScopedList.java | 281 ------ .../compute/preview/model/VpnTunnel.java | 855 ------------------ .../model/VpnTunnelAggregatedList.java | 401 -------- .../preview/model/VpnTunnelCipherSuite.java | 84 -- .../compute/preview/model/VpnTunnelList.java | 383 -------- .../preview/model/VpnTunnelParams.java | 87 -- .../model/VpnTunnelPhase1Algorithms.java | 126 --- .../model/VpnTunnelPhase2Algorithms.java | 105 --- .../preview/model/VpnTunnelsScopedList.java | 278 ------ .../preview/model/WafExpressionSet.java | 120 --- .../model/WafExpressionSetExpression.java | 102 --- .../preview/model/WeightedBackendService.java | 180 ---- .../services/compute/preview/model/Wire.java | 159 ---- .../compute/preview/model/WireEndpoint.java | 84 -- .../compute/preview/model/WireGroup.java | 360 -------- .../preview/model/WireGroupEndpoint.java | 70 -- .../model/WireGroupEndpointInterconnect.java | 123 --- .../compute/preview/model/WireGroupList.java | 431 --------- .../preview/model/WireGroupTopology.java | 66 -- .../model/WireGroupTopologyEndpoint.java | 93 -- .../compute/preview/model/WireProperties.java | 141 --- .../preview/model/WorkloadIdentityConfig.java | 84 -- .../compute/preview/model/XpnHostList.java | 386 -------- .../compute/preview/model/XpnResourceId.java | 93 -- .../services/compute/preview/model/Zone.java | 330 ------- .../compute/preview/model/ZoneList.java | 383 -------- 100 files changed, 23037 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstance.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstancesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPool.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolInstanceHealth.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddHealthCheckRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddInstanceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveHealthCheckRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveInstanceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetBackendServiceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetCertificateMapRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetProxyHeaderRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetSslCertificatesRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetBackendServiceRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetProxyHeaderRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGateway.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewaysScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestFailure.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TimeZone.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Uint128.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UpcomingMaintenance.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMap.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapReference.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTestHeader.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapValidationResult.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlRewrite.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetwork.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworkSecondaryRange.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworksAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsageExportLocation.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPoliciesScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyAggregatedListResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyExtensionPolicy.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyInstanceSelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyLabelSelector.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGateway.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusHighAvailabilityRequirementState.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusTunnel.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusVpnConnection.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayVpnGatewayInterface.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysGetStatusResponse.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnel.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelAggregatedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelCipherSuite.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelParams.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase1Algorithms.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase2Algorithms.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelsScopedList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSet.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSetExpression.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WeightedBackendService.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Wire.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroup.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpointInterconnect.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopology.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopologyEndpoint.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireProperties.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WorkloadIdentityConfig.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnHostList.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnResourceId.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Zone.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneList.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyList.java deleted file mode 100644 index 9595ba34498..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetHttpsProxyList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of TargetHttpsProxy resources. - * - *

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 TargetHttpsProxyList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetHttpsProxy 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 TargetHttpsProxy 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(TargetHttpsProxy.class); - } - - /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetHttpsProxyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetHttpsProxy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetHttpsProxy resources. - * @param items items or {@code null} for none - */ - public TargetHttpsProxyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetHttpsProxyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetHttpsProxyList 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 TargetHttpsProxyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetHttpsProxyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetHttpsProxyList set(String fieldName, Object value) { - return (TargetHttpsProxyList) super.set(fieldName, value); - } - - @Override - public TargetHttpsProxyList clone() { - return (TargetHttpsProxyList) 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 TargetHttpsProxyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstance.java deleted file mode 100644 index e2f3b0db7b8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstance.java +++ /dev/null @@ -1,346 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target Instance resource. - * - * You can use a target instance to handle traffic for one or more forwarding rules, which is ideal - * for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or - * UDP. For more information, readTarget instances. - * - *

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 TargetInstance extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [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; - - /** - * A URL to the virtual machine instance that handles traffic for this target instance. When - * creating a target instance, you can provide the fully-qualified URL or a valid partial URL to - * the desired virtual machine. For example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - zones/zone/instances/instance - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the - * destination IP address of the forwarding rule referencing the target instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String natPolicy; - - /** - * The URL of the network this target instance uses to forward traffic. If not specified, the - * traffic will be forwarded to the network that the default network interface belongs to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * [Output Only] The resource URL for the security policy associated with this target instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * [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] URL of the zone where the target instance resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetInstance setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetInstance setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * A URL to the virtual machine instance that handles traffic for this target instance. When - * creating a target instance, you can provide the fully-qualified URL or a valid partial URL to - * the desired virtual machine. For example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - zones/zone/instances/instance - * @return value or {@code null} for none - */ - public java.lang.String getInstance() { - return instance; - } - - /** - * A URL to the virtual machine instance that handles traffic for this target instance. When - * creating a target instance, you can provide the fully-qualified URL or a valid partial URL to - * the desired virtual machine. For example, the following are all valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - - * projects/project/zones/zone/instances/instance - zones/zone/instances/instance - * @param instance instance or {@code null} for none - */ - public TargetInstance setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. - * @param kind kind or {@code null} for none - */ - public TargetInstance setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetInstance setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the - * destination IP address of the forwarding rule referencing the target instance. - * @return value or {@code null} for none - */ - public java.lang.String getNatPolicy() { - return natPolicy; - } - - /** - * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the - * destination IP address of the forwarding rule referencing the target instance. - * @param natPolicy natPolicy or {@code null} for none - */ - public TargetInstance setNatPolicy(java.lang.String natPolicy) { - this.natPolicy = natPolicy; - return this; - } - - /** - * The URL of the network this target instance uses to forward traffic. If not specified, the - * traffic will be forwarded to the network that the default network interface belongs to. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * The URL of the network this target instance uses to forward traffic. If not specified, the - * traffic will be forwarded to the network that the default network interface belongs to. - * @param network network or {@code null} for none - */ - public TargetInstance setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * [Output Only] The resource URL for the security policy associated with this target instance. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * [Output Only] The resource URL for the security policy associated with this target instance. - * @param securityPolicy securityPolicy or {@code null} for none - */ - public TargetInstance setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetInstance setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] URL of the zone where the target instance resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Output only. [Output Only] URL of the zone where the target instance resides. You must specify - * this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param zone zone or {@code null} for none - */ - public TargetInstance setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - @Override - public TargetInstance set(String fieldName, Object value) { - return (TargetInstance) super.set(fieldName, value); - } - - @Override - public TargetInstance clone() { - return (TargetInstance) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceAggregatedList.java deleted file mode 100644 index ab071dd1dd5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetInstanceAggregatedList. - * - *

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 TargetInstanceAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetInstance resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 TargetInstanceAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetInstance resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of TargetInstance resources. - * @param items items or {@code null} for none - */ - public TargetInstanceAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public TargetInstanceAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetInstanceAggregatedList 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 TargetInstanceAggregatedList 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 TargetInstanceAggregatedList 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 TargetInstanceAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetInstanceAggregatedList set(String fieldName, Object value) { - return (TargetInstanceAggregatedList) super.set(fieldName, value); - } - - @Override - public TargetInstanceAggregatedList clone() { - return (TargetInstanceAggregatedList) 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 TargetInstanceAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceList.java deleted file mode 100644 index cd192ba2b42..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstanceList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of TargetInstance resources. - * - *

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 TargetInstanceList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetInstance 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 TargetInstance 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(TargetInstance.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetInstanceList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetInstance resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetInstance resources. - * @param items items or {@code null} for none - */ - public TargetInstanceList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public TargetInstanceList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetInstanceList 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 TargetInstanceList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetInstanceList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetInstanceList set(String fieldName, Object value) { - return (TargetInstanceList) super.set(fieldName, value); - } - - @Override - public TargetInstanceList clone() { - return (TargetInstanceList) 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 TargetInstanceListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstancesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstancesScopedList.java deleted file mode 100644 index 6a75a9318b5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetInstancesScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetInstancesScopedList. - * - *

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 TargetInstancesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of target instances contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetInstances; - - static { - // hack to force ProGuard to consider TargetInstance 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(TargetInstance.class); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of target instances contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getTargetInstances() { - return targetInstances; - } - - /** - * A list of target instances contained in this scope. - * @param targetInstances targetInstances or {@code null} for none - */ - public TargetInstancesScopedList setTargetInstances(java.util.List targetInstances) { - this.targetInstances = targetInstances; - return this; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @param warning warning or {@code null} for none - */ - public TargetInstancesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetInstancesScopedList set(String fieldName, Object value) { - return (TargetInstancesScopedList) super.set(fieldName, value); - } - - @Override - public TargetInstancesScopedList clone() { - return (TargetInstancesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - */ - 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 TargetInstancesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPool.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPool.java deleted file mode 100644 index d3dec0e9d9b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPool.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target Pool resource. - * - * Target pools are used with external passthrough Network Load Balancers. A target pool references - * member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target - * pool. For more information, readUsing target pools. - * - *

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 TargetPool extends com.google.api.client.json.GenericJson { - - /** - * The server-defined URL for the resource. This field is applicable only when the containing - * target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is - * properly set to a value between [0, 1]. backupPool and failoverRatio together define the - * fallback behavior of the primary target pool: if the ratio of the healthy instances in the - * primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be - * directed to the backup pool. - * - * In case where failoverRatio and backupPool are not set, or all the instances in the backup pool - * are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where - * traffic will be spread to the healthy instances with the best effort, or to all instances when - * no instance is healthy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backupPool; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * This field is applicable only when the containing target pool is serving a forwarding rule as - * the primary pool (i.e., not as a backup pool to some other target pool). The value of the field - * must be in [0, 1]. - * - * If set, backupPool must also be set. They together define the fallback behavior of the primary - * target pool: if the ratio of the healthy instances in the primary pool is at or below this - * number, traffic arriving at the load-balanced IP will be directed to the backup pool. - * - * In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, - * the traffic will be directed back to the primary pool in the "force" mode, where traffic will - * be spread to the healthy instances with the best effort, or to all instances when no instance - * is healthy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float failoverRatio; - - /** - * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy - * if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one - * health check may be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthChecks; - - /** - * [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; - - /** - * A list of resource URLs to the virtual machine instances serving this pool. They must live in - * zones contained in the same region as this pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] URL of the region where the target pool resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [Output Only] The resource URL for the security policy associated with this target pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** - * [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; - - /** - * Session affinity option, must be one of the following values: NONE: Connections from the same - * client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client - * IP will go to the same instance in the pool while that instance remains healthy. - * CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to - * the same instance in the pool while that instance remains healthy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sessionAffinity; - - /** - * The server-defined URL for the resource. This field is applicable only when the containing - * target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is - * properly set to a value between [0, 1]. backupPool and failoverRatio together define the - * fallback behavior of the primary target pool: if the ratio of the healthy instances in the - * primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be - * directed to the backup pool. - * - * In case where failoverRatio and backupPool are not set, or all the instances in the backup pool - * are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where - * traffic will be spread to the healthy instances with the best effort, or to all instances when - * no instance is healthy. - * @return value or {@code null} for none - */ - public java.lang.String getBackupPool() { - return backupPool; - } - - /** - * The server-defined URL for the resource. This field is applicable only when the containing - * target pool is serving a forwarding rule as the primary pool, and its failoverRatio field is - * properly set to a value between [0, 1]. backupPool and failoverRatio together define the - * fallback behavior of the primary target pool: if the ratio of the healthy instances in the - * primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be - * directed to the backup pool. - * - * In case where failoverRatio and backupPool are not set, or all the instances in the backup pool - * are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where - * traffic will be spread to the healthy instances with the best effort, or to all instances when - * no instance is healthy. - * @param backupPool backupPool or {@code null} for none - */ - public TargetPool setBackupPool(java.lang.String backupPool) { - this.backupPool = backupPool; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetPool setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * This field is applicable only when the containing target pool is serving a forwarding rule as - * the primary pool (i.e., not as a backup pool to some other target pool). The value of the field - * must be in [0, 1]. - * - * If set, backupPool must also be set. They together define the fallback behavior of the primary - * target pool: if the ratio of the healthy instances in the primary pool is at or below this - * number, traffic arriving at the load-balanced IP will be directed to the backup pool. - * - * In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, - * the traffic will be directed back to the primary pool in the "force" mode, where traffic will - * be spread to the healthy instances with the best effort, or to all instances when no instance - * is healthy. - * @return value or {@code null} for none - */ - public java.lang.Float getFailoverRatio() { - return failoverRatio; - } - - /** - * This field is applicable only when the containing target pool is serving a forwarding rule as - * the primary pool (i.e., not as a backup pool to some other target pool). The value of the field - * must be in [0, 1]. - * - * If set, backupPool must also be set. They together define the fallback behavior of the primary - * target pool: if the ratio of the healthy instances in the primary pool is at or below this - * number, traffic arriving at the load-balanced IP will be directed to the backup pool. - * - * In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, - * the traffic will be directed back to the primary pool in the "force" mode, where traffic will - * be spread to the healthy instances with the best effort, or to all instances when no instance - * is healthy. - * @param failoverRatio failoverRatio or {@code null} for none - */ - public TargetPool setFailoverRatio(java.lang.Float failoverRatio) { - this.failoverRatio = failoverRatio; - return this; - } - - /** - * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy - * if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one - * health check may be specified. - * @return value or {@code null} for none - */ - public java.util.List getHealthChecks() { - return healthChecks; - } - - /** - * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy - * if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one - * health check may be specified. - * @param healthChecks healthChecks or {@code null} for none - */ - public TargetPool setHealthChecks(java.util.List healthChecks) { - this.healthChecks = healthChecks; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetPool setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * A list of resource URLs to the virtual machine instances serving this pool. They must live in - * zones contained in the same region as this pool. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * A list of resource URLs to the virtual machine instances serving this pool. They must live in - * zones contained in the same region as this pool. - * @param instances instances or {@code null} for none - */ - public TargetPool setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. - * @param kind kind or {@code null} for none - */ - public TargetPool setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetPool setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the target pool resides. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the target pool resides. - * @param region region or {@code null} for none - */ - public TargetPool setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] The resource URL for the security policy associated with this target pool. - * @return value or {@code null} for none - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; - } - - /** - * [Output Only] The resource URL for the security policy associated with this target pool. - * @param securityPolicy securityPolicy or {@code null} for none - */ - public TargetPool setSecurityPolicy(java.lang.String securityPolicy) { - this.securityPolicy = securityPolicy; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetPool setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Session affinity option, must be one of the following values: NONE: Connections from the same - * client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client - * IP will go to the same instance in the pool while that instance remains healthy. - * CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to - * the same instance in the pool while that instance remains healthy. - * @return value or {@code null} for none - */ - public java.lang.String getSessionAffinity() { - return sessionAffinity; - } - - /** - * Session affinity option, must be one of the following values: NONE: Connections from the same - * client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client - * IP will go to the same instance in the pool while that instance remains healthy. - * CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to - * the same instance in the pool while that instance remains healthy. - * @param sessionAffinity sessionAffinity or {@code null} for none - */ - public TargetPool setSessionAffinity(java.lang.String sessionAffinity) { - this.sessionAffinity = sessionAffinity; - return this; - } - - @Override - public TargetPool set(String fieldName, Object value) { - return (TargetPool) super.set(fieldName, value); - } - - @Override - public TargetPool clone() { - return (TargetPool) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolAggregatedList.java deleted file mode 100644 index 7b35838515b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolAggregatedList. - * - *

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 TargetPoolAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetPool resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for - * aggregated lists of target pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 TargetPoolAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetPool resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of TargetPool resources. - * @param items items or {@code null} for none - */ - public TargetPoolAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for - * aggregated lists of target pools. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for - * aggregated lists of target pools. - * @param kind kind or {@code null} for none - */ - public TargetPoolAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetPoolAggregatedList 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 TargetPoolAggregatedList 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 TargetPoolAggregatedList 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 TargetPoolAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetPoolAggregatedList set(String fieldName, Object value) { - return (TargetPoolAggregatedList) super.set(fieldName, value); - } - - @Override - public TargetPoolAggregatedList clone() { - return (TargetPoolAggregatedList) 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 TargetPoolAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolInstanceHealth.java deleted file mode 100644 index 0277ec4ca2d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolInstanceHealth.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolInstanceHealth. - * - *

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 TargetPoolInstanceHealth extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthStatus; - - static { - // hack to force ProGuard to consider HealthStatus 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(HealthStatus.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * @return value or {@code null} for none - */ - public java.util.List getHealthStatus() { - return healthStatus; - } - - /** - * @param healthStatus healthStatus or {@code null} for none - */ - public TargetPoolInstanceHealth setHealthStatus(java.util.List healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. - * @param kind kind or {@code null} for none - */ - public TargetPoolInstanceHealth setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - @Override - public TargetPoolInstanceHealth set(String fieldName, Object value) { - return (TargetPoolInstanceHealth) super.set(fieldName, value); - } - - @Override - public TargetPoolInstanceHealth clone() { - return (TargetPoolInstanceHealth) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolList.java deleted file mode 100644 index 75cb2982b47..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of TargetPool resources. - * - *

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 TargetPoolList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetPool 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 TargetPool 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(TargetPool.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetPoolList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetPool resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetPool resources. - * @param items items or {@code null} for none - */ - public TargetPoolList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. - * @param kind kind or {@code null} for none - */ - public TargetPoolList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetPoolList 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 TargetPoolList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetPoolList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetPoolList set(String fieldName, Object value) { - return (TargetPoolList) super.set(fieldName, value); - } - - @Override - public TargetPoolList clone() { - return (TargetPoolList) 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 TargetPoolListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddHealthCheckRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddHealthCheckRequest.java deleted file mode 100644 index 1727a4427dd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddHealthCheckRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolsAddHealthCheckRequest. - * - *

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 TargetPoolsAddHealthCheckRequest extends com.google.api.client.json.GenericJson { - - /** - * The HttpHealthCheck to add to the target pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthChecks; - - static { - // hack to force ProGuard to consider HealthCheckReference 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(HealthCheckReference.class); - } - - /** - * The HttpHealthCheck to add to the target pool. - * @return value or {@code null} for none - */ - public java.util.List getHealthChecks() { - return healthChecks; - } - - /** - * The HttpHealthCheck to add to the target pool. - * @param healthChecks healthChecks or {@code null} for none - */ - public TargetPoolsAddHealthCheckRequest setHealthChecks(java.util.List healthChecks) { - this.healthChecks = healthChecks; - return this; - } - - @Override - public TargetPoolsAddHealthCheckRequest set(String fieldName, Object value) { - return (TargetPoolsAddHealthCheckRequest) super.set(fieldName, value); - } - - @Override - public TargetPoolsAddHealthCheckRequest clone() { - return (TargetPoolsAddHealthCheckRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddInstanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddInstanceRequest.java deleted file mode 100644 index 60a6287ab4c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsAddInstanceRequest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolsAddInstanceRequest. - * - *

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 TargetPoolsAddInstanceRequest extends com.google.api.client.json.GenericJson { - - /** - * A full or partial URL to an instance to add to this target pool. This can be a full or partial - * URL. For example, the following are valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name - * - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance- - * name - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - static { - // hack to force ProGuard to consider InstanceReference 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(InstanceReference.class); - } - - /** - * A full or partial URL to an instance to add to this target pool. This can be a full or partial - * URL. For example, the following are valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name - * - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance- - * name - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * A full or partial URL to an instance to add to this target pool. This can be a full or partial - * URL. For example, the following are valid URLs: - - * https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name - * - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance- - * name - * @param instances instances or {@code null} for none - */ - public TargetPoolsAddInstanceRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public TargetPoolsAddInstanceRequest set(String fieldName, Object value) { - return (TargetPoolsAddInstanceRequest) super.set(fieldName, value); - } - - @Override - public TargetPoolsAddInstanceRequest clone() { - return (TargetPoolsAddInstanceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveHealthCheckRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveHealthCheckRequest.java deleted file mode 100644 index a85db607916..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveHealthCheckRequest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolsRemoveHealthCheckRequest. - * - *

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 TargetPoolsRemoveHealthCheckRequest extends com.google.api.client.json.GenericJson { - - /** - * Health check URL to be removed. This can be a full or valid partial URL. For example, the - * following are valid URLs: - - * https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check - * - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health- - * check - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List healthChecks; - - static { - // hack to force ProGuard to consider HealthCheckReference 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(HealthCheckReference.class); - } - - /** - * Health check URL to be removed. This can be a full or valid partial URL. For example, the - * following are valid URLs: - - * https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check - * - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health- - * check - * @return value or {@code null} for none - */ - public java.util.List getHealthChecks() { - return healthChecks; - } - - /** - * Health check URL to be removed. This can be a full or valid partial URL. For example, the - * following are valid URLs: - - * https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check - * - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health- - * check - * @param healthChecks healthChecks or {@code null} for none - */ - public TargetPoolsRemoveHealthCheckRequest setHealthChecks(java.util.List healthChecks) { - this.healthChecks = healthChecks; - return this; - } - - @Override - public TargetPoolsRemoveHealthCheckRequest set(String fieldName, Object value) { - return (TargetPoolsRemoveHealthCheckRequest) super.set(fieldName, value); - } - - @Override - public TargetPoolsRemoveHealthCheckRequest clone() { - return (TargetPoolsRemoveHealthCheckRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveInstanceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveInstanceRequest.java deleted file mode 100644 index 10a53316d7e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsRemoveInstanceRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolsRemoveInstanceRequest. - * - *

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 TargetPoolsRemoveInstanceRequest extends com.google.api.client.json.GenericJson { - - /** - * URLs of the instances to be removed from target pool. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instances; - - static { - // hack to force ProGuard to consider InstanceReference 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(InstanceReference.class); - } - - /** - * URLs of the instances to be removed from target pool. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * URLs of the instances to be removed from target pool. - * @param instances instances or {@code null} for none - */ - public TargetPoolsRemoveInstanceRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public TargetPoolsRemoveInstanceRequest set(String fieldName, Object value) { - return (TargetPoolsRemoveInstanceRequest) super.set(fieldName, value); - } - - @Override - public TargetPoolsRemoveInstanceRequest clone() { - return (TargetPoolsRemoveInstanceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsScopedList.java deleted file mode 100644 index c6fc718ad99..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetPoolsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetPoolsScopedList. - * - *

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 TargetPoolsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of target pools contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetPools; - - static { - // hack to force ProGuard to consider TargetPool 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(TargetPool.class); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of target pools contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getTargetPools() { - return targetPools; - } - - /** - * A list of target pools contained in this scope. - * @param targetPools targetPools or {@code null} for none - */ - public TargetPoolsScopedList setTargetPools(java.util.List targetPools) { - this.targetPools = targetPools; - return this; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @param warning warning or {@code null} for none - */ - public TargetPoolsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetPoolsScopedList set(String fieldName, Object value) { - return (TargetPoolsScopedList) super.set(fieldName, value); - } - - @Override - public TargetPoolsScopedList clone() { - return (TargetPoolsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - */ - 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 TargetPoolsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetReference.java deleted file mode 100644 index 07177ad495d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetReference.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetReference. - * - *

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 TargetReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String target; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getTarget() { - return target; - } - - /** - * @param target target or {@code null} for none - */ - public TargetReference setTarget(java.lang.String target) { - this.target = target; - return this; - } - - @Override - public TargetReference set(String fieldName, Object value) { - return (TargetReference) super.set(fieldName, value); - } - - @Override - public TargetReference clone() { - return (TargetReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetBackendServiceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetBackendServiceRequest.java deleted file mode 100644 index d019d3ad3bf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetBackendServiceRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetSslProxiesSetBackendServiceRequest. - * - *

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 TargetSslProxiesSetBackendServiceRequest extends com.google.api.client.json.GenericJson { - - /** - * The URL of the new BackendService resource for the targetSslProxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * The URL of the new BackendService resource for the targetSslProxy. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * The URL of the new BackendService resource for the targetSslProxy. - * @param service service or {@code null} for none - */ - public TargetSslProxiesSetBackendServiceRequest setService(java.lang.String service) { - this.service = service; - return this; - } - - @Override - public TargetSslProxiesSetBackendServiceRequest set(String fieldName, Object value) { - return (TargetSslProxiesSetBackendServiceRequest) super.set(fieldName, value); - } - - @Override - public TargetSslProxiesSetBackendServiceRequest clone() { - return (TargetSslProxiesSetBackendServiceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetCertificateMapRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetCertificateMapRequest.java deleted file mode 100644 index 786aed85002..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetCertificateMapRequest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetSslProxiesSetCertificateMapRequest. - * - *

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 TargetSslProxiesSetCertificateMapRequest extends com.google.api.client.json.GenericJson { - - /** - * URL of the Certificate Map to associate with this TargetSslProxy. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String certificateMap; - - /** - * URL of the Certificate Map to associate with this TargetSslProxy. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @return value or {@code null} for none - */ - public java.lang.String getCertificateMap() { - return certificateMap; - } - - /** - * URL of the Certificate Map to associate with this TargetSslProxy. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @param certificateMap certificateMap or {@code null} for none - */ - public TargetSslProxiesSetCertificateMapRequest setCertificateMap(java.lang.String certificateMap) { - this.certificateMap = certificateMap; - return this; - } - - @Override - public TargetSslProxiesSetCertificateMapRequest set(String fieldName, Object value) { - return (TargetSslProxiesSetCertificateMapRequest) super.set(fieldName, value); - } - - @Override - public TargetSslProxiesSetCertificateMapRequest clone() { - return (TargetSslProxiesSetCertificateMapRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetProxyHeaderRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetProxyHeaderRequest.java deleted file mode 100644 index 95626b85ac1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetProxyHeaderRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetSslProxiesSetProxyHeaderRequest. - * - *

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 TargetSslProxiesSetProxyHeaderRequest extends com.google.api.client.json.GenericJson { - - /** - * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 - * are allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 - * are allowed. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 - * are allowed. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public TargetSslProxiesSetProxyHeaderRequest setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - @Override - public TargetSslProxiesSetProxyHeaderRequest set(String fieldName, Object value) { - return (TargetSslProxiesSetProxyHeaderRequest) super.set(fieldName, value); - } - - @Override - public TargetSslProxiesSetProxyHeaderRequest clone() { - return (TargetSslProxiesSetProxyHeaderRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetSslCertificatesRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetSslCertificatesRequest.java deleted file mode 100644 index 68553f25999..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxiesSetSslCertificatesRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetSslProxiesSetSslCertificatesRequest. - * - *

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 TargetSslProxiesSetSslCertificatesRequest extends com.google.api.client.json.GenericJson { - - /** - * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one - * SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslCertificates; - - /** - * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one - * SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. - * @return value or {@code null} for none - */ - public java.util.List getSslCertificates() { - return sslCertificates; - } - - /** - * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one - * SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. - * @param sslCertificates sslCertificates or {@code null} for none - */ - public TargetSslProxiesSetSslCertificatesRequest setSslCertificates(java.util.List sslCertificates) { - this.sslCertificates = sslCertificates; - return this; - } - - @Override - public TargetSslProxiesSetSslCertificatesRequest set(String fieldName, Object value) { - return (TargetSslProxiesSetSslCertificatesRequest) super.set(fieldName, value); - } - - @Override - public TargetSslProxiesSetSslCertificatesRequest clone() { - return (TargetSslProxiesSetSslCertificatesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxy.java deleted file mode 100644 index c92b8dc3a29..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxy.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target SSL Proxy resource. - * - * A target SSL proxy is a component of a Proxy Network Load Balancer. The forwarding rule - * references the target SSL proxy, and the target proxy then references a backend service. For more - * information, readProxy Network Load Balancer overview. - * - *

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 TargetSslProxy extends com.google.api.client.json.GenericJson { - - /** - * URL of a certificate map that identifies a certificate map associated with the given target - * proxy. This field can only be set for global target proxies. If set, sslCertificates will be - * ignored. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String certificateMap; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [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] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * [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; - - /** - * URL to the BackendService resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * URLs to SslCertificate resources that are used to authenticate connections to Backends. At - * least one SSL certificate must be specified. Currently, you may specify up to 15 SSL - * certificates. sslCertificates do not apply when the load balancing scheme is set to - * INTERNAL_SELF_MANAGED. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List sslCertificates; - - /** - * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, - * the TargetSslProxy resource will not have any SSL policy configured. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sslPolicy; - - /** - * URL of a certificate map that identifies a certificate map associated with the given target - * proxy. This field can only be set for global target proxies. If set, sslCertificates will be - * ignored. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @return value or {@code null} for none - */ - public java.lang.String getCertificateMap() { - return certificateMap; - } - - /** - * URL of a certificate map that identifies a certificate map associated with the given target - * proxy. This field can only be set for global target proxies. If set, sslCertificates will be - * ignored. - * - * Accepted format is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/ - * certificateMaps/{resourceName}. - * @param certificateMap certificateMap or {@code null} for none - */ - public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { - this.certificateMap = certificateMap; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetSslProxy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetSslProxy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetSslProxy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetSslProxy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public TargetSslProxy setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetSslProxy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * URL to the BackendService resource. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * URL to the BackendService resource. - * @param service service or {@code null} for none - */ - public TargetSslProxy setService(java.lang.String service) { - this.service = service; - return this; - } - - /** - * URLs to SslCertificate resources that are used to authenticate connections to Backends. At - * least one SSL certificate must be specified. Currently, you may specify up to 15 SSL - * certificates. sslCertificates do not apply when the load balancing scheme is set to - * INTERNAL_SELF_MANAGED. - * @return value or {@code null} for none - */ - public java.util.List getSslCertificates() { - return sslCertificates; - } - - /** - * URLs to SslCertificate resources that are used to authenticate connections to Backends. At - * least one SSL certificate must be specified. Currently, you may specify up to 15 SSL - * certificates. sslCertificates do not apply when the load balancing scheme is set to - * INTERNAL_SELF_MANAGED. - * @param sslCertificates sslCertificates or {@code null} for none - */ - public TargetSslProxy setSslCertificates(java.util.List sslCertificates) { - this.sslCertificates = sslCertificates; - return this; - } - - /** - * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, - * the TargetSslProxy resource will not have any SSL policy configured. - * @return value or {@code null} for none - */ - public java.lang.String getSslPolicy() { - return sslPolicy; - } - - /** - * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, - * the TargetSslProxy resource will not have any SSL policy configured. - * @param sslPolicy sslPolicy or {@code null} for none - */ - public TargetSslProxy setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; - return this; - } - - @Override - public TargetSslProxy set(String fieldName, Object value) { - return (TargetSslProxy) super.set(fieldName, value); - } - - @Override - public TargetSslProxy clone() { - return (TargetSslProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxyList.java deleted file mode 100644 index acdf742cfa4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetSslProxyList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of TargetSslProxy resources. - * - *

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 TargetSslProxyList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetSslProxy 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 TargetSslProxy 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(TargetSslProxy.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetSslProxyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetSslProxy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetSslProxy resources. - * @param items items or {@code null} for none - */ - public TargetSslProxyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public TargetSslProxyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetSslProxyList 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 TargetSslProxyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetSslProxyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetSslProxyList set(String fieldName, Object value) { - return (TargetSslProxyList) super.set(fieldName, value); - } - - @Override - public TargetSslProxyList clone() { - return (TargetSslProxyList) 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 TargetSslProxyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesScopedList.java deleted file mode 100644 index ae5007ef1fd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetTcpProxiesScopedList. - * - *

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 TargetTcpProxiesScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of TargetTcpProxies contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetTcpProxies; - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of TargetTcpProxies contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getTargetTcpProxies() { - return targetTcpProxies; - } - - /** - * A list of TargetTcpProxies contained in this scope. - * @param targetTcpProxies targetTcpProxies or {@code null} for none - */ - public TargetTcpProxiesScopedList setTargetTcpProxies(java.util.List targetTcpProxies) { - this.targetTcpProxies = targetTcpProxies; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public TargetTcpProxiesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetTcpProxiesScopedList set(String fieldName, Object value) { - return (TargetTcpProxiesScopedList) super.set(fieldName, value); - } - - @Override - public TargetTcpProxiesScopedList clone() { - return (TargetTcpProxiesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 TargetTcpProxiesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetBackendServiceRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetBackendServiceRequest.java deleted file mode 100644 index f29c3853382..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetBackendServiceRequest.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetTcpProxiesSetBackendServiceRequest. - * - *

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 TargetTcpProxiesSetBackendServiceRequest extends com.google.api.client.json.GenericJson { - - /** - * The URL of the new BackendService resource for the targetTcpProxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * The URL of the new BackendService resource for the targetTcpProxy. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * The URL of the new BackendService resource for the targetTcpProxy. - * @param service service or {@code null} for none - */ - public TargetTcpProxiesSetBackendServiceRequest setService(java.lang.String service) { - this.service = service; - return this; - } - - @Override - public TargetTcpProxiesSetBackendServiceRequest set(String fieldName, Object value) { - return (TargetTcpProxiesSetBackendServiceRequest) super.set(fieldName, value); - } - - @Override - public TargetTcpProxiesSetBackendServiceRequest clone() { - return (TargetTcpProxiesSetBackendServiceRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetProxyHeaderRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetProxyHeaderRequest.java deleted file mode 100644 index 0a979641b28..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxiesSetProxyHeaderRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetTcpProxiesSetProxyHeaderRequest. - * - *

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 TargetTcpProxiesSetProxyHeaderRequest extends com.google.api.client.json.GenericJson { - - /** - * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 - * are allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 - * are allowed. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 - * are allowed. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public TargetTcpProxiesSetProxyHeaderRequest setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - @Override - public TargetTcpProxiesSetProxyHeaderRequest set(String fieldName, Object value) { - return (TargetTcpProxiesSetProxyHeaderRequest) super.set(fieldName, value); - } - - @Override - public TargetTcpProxiesSetProxyHeaderRequest clone() { - return (TargetTcpProxiesSetProxyHeaderRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxy.java deleted file mode 100644 index bfde3da9431..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxy.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target TCP Proxy resource. - * - * A target TCP proxy is a component of a Proxy Network Load Balancer. The forwarding rule - * references the target TCP proxy, and the target proxy then references a backend service. For more - * information, readProxy Network Load Balancer overview. - * - *

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 TargetTcpProxy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [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] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Specifies the type of load balancing scheme used by this target proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String loadBalancingScheme; - - /** - * Name of the resource. Provided by the client 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; - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean proxyBind; - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyHeader; - - /** - * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field - * is not applicable to global TCP proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * URL to the BackendService resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetTcpProxy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetTcpProxy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. - * @param kind kind or {@code null} for none - */ - public TargetTcpProxy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Specifies the type of load balancing scheme used by this target proxy. - * @return value or {@code null} for none - */ - public java.lang.String getLoadBalancingScheme() { - return loadBalancingScheme; - } - - /** - * Specifies the type of load balancing scheme used by this target proxy. - * @param loadBalancingScheme loadBalancingScheme or {@code null} for none - */ - public TargetTcpProxy setLoadBalancingScheme(java.lang.String loadBalancingScheme) { - this.loadBalancingScheme = loadBalancingScheme; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetTcpProxy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getProxyBind() { - return proxyBind; - } - - /** - * This field only applies when the forwarding rule that references this target proxy has a - * loadBalancingScheme set toINTERNAL_SELF_MANAGED. - * - * When this field is set to true, Envoy proxies set up inbound traffic interception and bind to - * the IP address and port specified in the forwarding rule. This is generally useful when using - * Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar - * proxy). The Envoy proxy listens for inbound requests and handles requests when it receives - * them. - * - * The default is false. - * @param proxyBind proxyBind or {@code null} for none - */ - public TargetTcpProxy setProxyBind(java.lang.Boolean proxyBind) { - this.proxyBind = proxyBind; - return this; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @return value or {@code null} for none - */ - public java.lang.String getProxyHeader() { - return proxyHeader; - } - - /** - * Specifies the type of proxy header to append before sending data to the backend, either NONE or - * PROXY_V1. The default is NONE. - * @param proxyHeader proxyHeader or {@code null} for none - */ - public TargetTcpProxy setProxyHeader(java.lang.String proxyHeader) { - this.proxyHeader = proxyHeader; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field - * is not applicable to global TCP proxy. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field - * is not applicable to global TCP proxy. - * @param region region or {@code null} for none - */ - public TargetTcpProxy setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetTcpProxy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * URL to the BackendService resource. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * URL to the BackendService resource. - * @param service service or {@code null} for none - */ - public TargetTcpProxy setService(java.lang.String service) { - this.service = service; - return this; - } - - @Override - public TargetTcpProxy set(String fieldName, Object value) { - return (TargetTcpProxy) super.set(fieldName, value); - } - - @Override - public TargetTcpProxy clone() { - return (TargetTcpProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyAggregatedList.java deleted file mode 100644 index 759a79e0ee3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyAggregatedList.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetTcpProxyAggregatedList. - * - *

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 TargetTcpProxyAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetTcpProxiesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider TargetTcpProxiesScopedList 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(TargetTcpProxiesScopedList.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for - * lists of Target TCP Proxies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 TargetTcpProxyAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetTcpProxiesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of TargetTcpProxiesScopedList resources. - * @param items items or {@code null} for none - */ - public TargetTcpProxyAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for - * lists of Target TCP Proxies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for - * lists of Target TCP Proxies. - * @param kind kind or {@code null} for none - */ - public TargetTcpProxyAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetTcpProxyAggregatedList set(String fieldName, Object value) { - return (TargetTcpProxyAggregatedList) super.set(fieldName, value); - } - - @Override - public TargetTcpProxyAggregatedList clone() { - return (TargetTcpProxyAggregatedList) 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 TargetTcpProxyAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyList.java deleted file mode 100644 index a7b3281e4e5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetTcpProxyList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of TargetTcpProxy resources. - * - *

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 TargetTcpProxyList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetTcpProxy 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 TargetTcpProxy 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(TargetTcpProxy.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetTcpProxyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetTcpProxy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetTcpProxy resources. - * @param items items or {@code null} for none - */ - public TargetTcpProxyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public TargetTcpProxyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetTcpProxyList 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 TargetTcpProxyList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetTcpProxyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetTcpProxyList set(String fieldName, Object value) { - return (TargetTcpProxyList) super.set(fieldName, value); - } - - @Override - public TargetTcpProxyList clone() { - return (TargetTcpProxyList) 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 TargetTcpProxyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGateway.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGateway.java deleted file mode 100644 index ebd7f01d90d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGateway.java +++ /dev/null @@ -1,475 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Target VPN Gateway resource. - * - * The target VPN gateway resource represents a Classic Cloud VPN gateway. For more information, - * read thethe Cloud VPN Overview. - * - *

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 TargetVpnGateway extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created - * usingcompute.forwardingRules.insert and associated with a VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List forwardingRules; - - /** - * [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] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource. Provided by the client 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; - - /** - * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN - * gateway is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private TargetVpnGatewayParams params; - - /** - * [Output Only] URL of the region where the target VPN gateway resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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] The status of the VPN gateway, which can be one of the following: CREATING, - * READY, FAILED, or DELETING. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the - * compute.vpntunnels.insert method and associated with a VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tunnels; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public TargetVpnGateway setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created - * usingcompute.forwardingRules.insert and associated with a VPN gateway. - * @return value or {@code null} for none - */ - public java.util.List getForwardingRules() { - return forwardingRules; - } - - /** - * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created - * usingcompute.forwardingRules.insert and associated with a VPN gateway. - * @param forwardingRules forwardingRules or {@code null} for none - */ - public TargetVpnGateway setForwardingRules(java.util.List forwardingRules) { - this.forwardingRules = forwardingRules; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public TargetVpnGateway setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * @param kind kind or {@code null} for none - */ - public TargetVpnGateway setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public TargetVpnGateway setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this TargetVpnGateway, which is essentially a - * hash of the labels set used for optimistic locking. The fingerprint is initially generated by - * Compute Engine and changes after every request to modify or update labels. You must always - * provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - * request will fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a TargetVpnGateway. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public TargetVpnGateway encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public TargetVpnGateway setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 TargetVpnGateway setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN - * gateway is created. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN - * gateway is created. - * @param network network or {@code null} for none - */ - public TargetVpnGateway setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public TargetVpnGatewayParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public TargetVpnGateway setParams(TargetVpnGatewayParams params) { - this.params = params; - return this; - } - - /** - * [Output Only] URL of the region where the target VPN gateway resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] URL of the region where the target VPN gateway resides. You must specify this - * field as part of the HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public TargetVpnGateway setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public TargetVpnGateway setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, - * READY, FAILED, or DELETING. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, - * READY, FAILED, or DELETING. - * @param status status or {@code null} for none - */ - public TargetVpnGateway setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the - * compute.vpntunnels.insert method and associated with a VPN gateway. - * @return value or {@code null} for none - */ - public java.util.List getTunnels() { - return tunnels; - } - - /** - * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the - * compute.vpntunnels.insert method and associated with a VPN gateway. - * @param tunnels tunnels or {@code null} for none - */ - public TargetVpnGateway setTunnels(java.util.List tunnels) { - this.tunnels = tunnels; - return this; - } - - @Override - public TargetVpnGateway set(String fieldName, Object value) { - return (TargetVpnGateway) super.set(fieldName, value); - } - - @Override - public TargetVpnGateway clone() { - return (TargetVpnGateway) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayAggregatedList.java deleted file mode 100644 index 38665f98115..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayAggregatedList.java +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetVpnGatewayAggregatedList. - * - *

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 TargetVpnGatewayAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetVpnGateway resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 TargetVpnGatewayAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetVpnGateway resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of TargetVpnGateway resources. - * @param items items or {@code null} for none - */ - public TargetVpnGatewayAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * @param kind kind or {@code null} for none - */ - public TargetVpnGatewayAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetVpnGatewayAggregatedList 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 TargetVpnGatewayAggregatedList 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 TargetVpnGatewayAggregatedList 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 TargetVpnGatewayAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetVpnGatewayAggregatedList set(String fieldName, Object value) { - return (TargetVpnGatewayAggregatedList) super.set(fieldName, value); - } - - @Override - public TargetVpnGatewayAggregatedList clone() { - return (TargetVpnGatewayAggregatedList) 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 TargetVpnGatewayAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayList.java deleted file mode 100644 index b41844b8713..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of TargetVpnGateway resources. - * - *

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 TargetVpnGatewayList extends com.google.api.client.json.GenericJson { - - /** - * [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 TargetVpnGateway 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 TargetVpnGateway 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(TargetVpnGateway.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 TargetVpnGatewayList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of TargetVpnGateway resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of TargetVpnGateway resources. - * @param items items or {@code null} for none - */ - public TargetVpnGatewayList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. - * @param kind kind or {@code null} for none - */ - public TargetVpnGatewayList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public TargetVpnGatewayList 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 TargetVpnGatewayList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 TargetVpnGatewayList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetVpnGatewayList set(String fieldName, Object value) { - return (TargetVpnGatewayList) super.set(fieldName, value); - } - - @Override - public TargetVpnGatewayList clone() { - return (TargetVpnGatewayList) 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 TargetVpnGatewayListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayParams.java deleted file mode 100644 index 307058f5d9b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewayParams.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetVpnGatewayParams. - * - *

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 TargetVpnGatewayParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public TargetVpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public TargetVpnGatewayParams set(String fieldName, Object value) { - return (TargetVpnGatewayParams) super.set(fieldName, value); - } - - @Override - public TargetVpnGatewayParams clone() { - return (TargetVpnGatewayParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewaysScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewaysScopedList.java deleted file mode 100644 index c0f82ff6c14..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TargetVpnGatewaysScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TargetVpnGatewaysScopedList. - * - *

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 TargetVpnGatewaysScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of target VPN gateways contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List targetVpnGateways; - - static { - // hack to force ProGuard to consider TargetVpnGateway 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(TargetVpnGateway.class); - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of target VPN gateways contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getTargetVpnGateways() { - return targetVpnGateways; - } - - /** - * [Output Only] A list of target VPN gateways contained in this scope. - * @param targetVpnGateways targetVpnGateways or {@code null} for none - */ - public TargetVpnGatewaysScopedList setTargetVpnGateways(java.util.List targetVpnGateways) { - this.targetVpnGateways = targetVpnGateways; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public TargetVpnGatewaysScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public TargetVpnGatewaysScopedList set(String fieldName, Object value) { - return (TargetVpnGatewaysScopedList) super.set(fieldName, value); - } - - @Override - public TargetVpnGatewaysScopedList clone() { - return (TargetVpnGatewaysScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is empty. - */ - 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 TargetVpnGatewaysScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/TestFailure.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestFailure.java deleted file mode 100644 index f95b2f4accc..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestFailure.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TestFailure. - * - *

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 TestFailure extends com.google.api.client.json.GenericJson { - - /** - * The actual output URL evaluated by a load balancer containing the scheme, host, path and query - * parameters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String actualOutputUrl; - - /** - * Actual HTTP status code for rule with `urlRedirect` calculated by load balancer - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer actualRedirectResponseCode; - - /** - * BackendService or BackendBucket returned by load balancer. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String actualService; - - /** - * The expected output URL evaluated by a load balancer containing the scheme, host, path and - * query parameters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expectedOutputUrl; - - /** - * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer expectedRedirectResponseCode; - - /** - * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expectedService; - - /** - * HTTP headers of the request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List headers; - - /** - * Host portion of the URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * Path portion including query parameters in the URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** - * The actual output URL evaluated by a load balancer containing the scheme, host, path and query - * parameters. - * @return value or {@code null} for none - */ - public java.lang.String getActualOutputUrl() { - return actualOutputUrl; - } - - /** - * The actual output URL evaluated by a load balancer containing the scheme, host, path and query - * parameters. - * @param actualOutputUrl actualOutputUrl or {@code null} for none - */ - public TestFailure setActualOutputUrl(java.lang.String actualOutputUrl) { - this.actualOutputUrl = actualOutputUrl; - return this; - } - - /** - * Actual HTTP status code for rule with `urlRedirect` calculated by load balancer - * @return value or {@code null} for none - */ - public java.lang.Integer getActualRedirectResponseCode() { - return actualRedirectResponseCode; - } - - /** - * Actual HTTP status code for rule with `urlRedirect` calculated by load balancer - * @param actualRedirectResponseCode actualRedirectResponseCode or {@code null} for none - */ - public TestFailure setActualRedirectResponseCode(java.lang.Integer actualRedirectResponseCode) { - this.actualRedirectResponseCode = actualRedirectResponseCode; - return this; - } - - /** - * BackendService or BackendBucket returned by load balancer. - * @return value or {@code null} for none - */ - public java.lang.String getActualService() { - return actualService; - } - - /** - * BackendService or BackendBucket returned by load balancer. - * @param actualService actualService or {@code null} for none - */ - public TestFailure setActualService(java.lang.String actualService) { - this.actualService = actualService; - return this; - } - - /** - * The expected output URL evaluated by a load balancer containing the scheme, host, path and - * query parameters. - * @return value or {@code null} for none - */ - public java.lang.String getExpectedOutputUrl() { - return expectedOutputUrl; - } - - /** - * The expected output URL evaluated by a load balancer containing the scheme, host, path and - * query parameters. - * @param expectedOutputUrl expectedOutputUrl or {@code null} for none - */ - public TestFailure setExpectedOutputUrl(java.lang.String expectedOutputUrl) { - this.expectedOutputUrl = expectedOutputUrl; - return this; - } - - /** - * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer - * @return value or {@code null} for none - */ - public java.lang.Integer getExpectedRedirectResponseCode() { - return expectedRedirectResponseCode; - } - - /** - * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer - * @param expectedRedirectResponseCode expectedRedirectResponseCode or {@code null} for none - */ - public TestFailure setExpectedRedirectResponseCode(java.lang.Integer expectedRedirectResponseCode) { - this.expectedRedirectResponseCode = expectedRedirectResponseCode; - return this; - } - - /** - * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * @return value or {@code null} for none - */ - public java.lang.String getExpectedService() { - return expectedService; - } - - /** - * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * @param expectedService expectedService or {@code null} for none - */ - public TestFailure setExpectedService(java.lang.String expectedService) { - this.expectedService = expectedService; - return this; - } - - /** - * HTTP headers of the request. - * @return value or {@code null} for none - */ - public java.util.List getHeaders() { - return headers; - } - - /** - * HTTP headers of the request. - * @param headers headers or {@code null} for none - */ - public TestFailure setHeaders(java.util.List headers) { - this.headers = headers; - return this; - } - - /** - * Host portion of the URL. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * Host portion of the URL. - * @param host host or {@code null} for none - */ - public TestFailure setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * Path portion including query parameters in the URL. - * @return value or {@code null} for none - */ - public java.lang.String getPath() { - return path; - } - - /** - * Path portion including query parameters in the URL. - * @param path path or {@code null} for none - */ - public TestFailure setPath(java.lang.String path) { - this.path = path; - return this; - } - - @Override - public TestFailure set(String fieldName, Object value) { - return (TestFailure) super.set(fieldName, value); - } - - @Override - public TestFailure clone() { - return (TestFailure) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsRequest.java deleted file mode 100644 index dcc97247d8d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TestPermissionsRequest. - * - *

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 TestPermissionsRequest extends com.google.api.client.json.GenericJson { - - /** - * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or - * 'storage.*') are not allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List permissions; - - /** - * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or - * 'storage.*') are not allowed. - * @return value or {@code null} for none - */ - public java.util.List getPermissions() { - return permissions; - } - - /** - * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or - * 'storage.*') are not allowed. - * @param permissions permissions or {@code null} for none - */ - public TestPermissionsRequest setPermissions(java.util.List permissions) { - this.permissions = permissions; - return this; - } - - @Override - public TestPermissionsRequest set(String fieldName, Object value) { - return (TestPermissionsRequest) super.set(fieldName, value); - } - - @Override - public TestPermissionsRequest clone() { - return (TestPermissionsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsResponse.java deleted file mode 100644 index ff7fafd77fd..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TestPermissionsResponse.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for TestPermissionsResponse. - * - *

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 TestPermissionsResponse extends com.google.api.client.json.GenericJson { - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List permissions; - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - * @return value or {@code null} for none - */ - public java.util.List getPermissions() { - return permissions; - } - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - * @param permissions permissions or {@code null} for none - */ - public TestPermissionsResponse setPermissions(java.util.List permissions) { - this.permissions = permissions; - return this; - } - - @Override - public TestPermissionsResponse set(String fieldName, Object value) { - return (TestPermissionsResponse) super.set(fieldName, value); - } - - @Override - public TestPermissionsResponse clone() { - return (TestPermissionsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TimeZone.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TimeZone.java deleted file mode 100644 index 494ce13a589..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/TimeZone.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). - * - *

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 TimeZone extends com.google.api.client.json.GenericJson { - - /** - * IANA Time Zone Database time zone. For example "America/New_York". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * Optional. IANA Time Zone Database version number. For example "2019a". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String version; - - /** - * IANA Time Zone Database time zone. For example "America/New_York". - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * IANA Time Zone Database time zone. For example "America/New_York". - * @param id id or {@code null} for none - */ - public TimeZone setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Optional. IANA Time Zone Database version number. For example "2019a". - * @return value or {@code null} for none - */ - public java.lang.String getVersion() { - return version; - } - - /** - * Optional. IANA Time Zone Database version number. For example "2019a". - * @param version version or {@code null} for none - */ - public TimeZone setVersion(java.lang.String version) { - this.version = version; - return this; - } - - @Override - public TimeZone set(String fieldName, Object value) { - return (TimeZone) super.set(fieldName, value); - } - - @Override - public TimeZone clone() { - return (TimeZone) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Uint128.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Uint128.java deleted file mode 100644 index 3ab69551496..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Uint128.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for Uint128. - * - *

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 Uint128 extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger high; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.math.BigInteger low; - - /** - * @return value or {@code null} for none - */ - public java.math.BigInteger getHigh() { - return high; - } - - /** - * @param high high or {@code null} for none - */ - public Uint128 setHigh(java.math.BigInteger high) { - this.high = high; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.math.BigInteger getLow() { - return low; - } - - /** - * @param low low or {@code null} for none - */ - public Uint128 setLow(java.math.BigInteger low) { - this.low = low; - return this; - } - - @Override - public Uint128 set(String fieldName, Object value) { - return (Uint128) super.set(fieldName, value); - } - - @Override - public Uint128 clone() { - return (Uint128) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UpcomingMaintenance.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UpcomingMaintenance.java deleted file mode 100644 index 01bb711be7b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UpcomingMaintenance.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * 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.preview.model; - -/** - * Upcoming Maintenance notification information. - * - *

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 UpcomingMaintenance extends com.google.api.client.json.GenericJson { - - /** - * Indicates if the maintenance can be customer triggered. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean canReschedule; - - /** - * The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 - * text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String latestWindowStartTime; - - /** - * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean maintenanceOnShutdown; - - /** - * The reasons for the maintenance. Only valid for vms. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List maintenanceReasons; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maintenanceStatus; - - /** - * Defines the type of maintenance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The time by which the maintenance disruption will be completed. This timestamp value is in - * RFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String windowEndTime; - - /** - * The current start time of the maintenance window. This timestamp value is in RFC3339 text - * format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String windowStartTime; - - /** - * Indicates if the maintenance can be customer triggered. - * @return value or {@code null} for none - */ - public java.lang.Boolean getCanReschedule() { - return canReschedule; - } - - /** - * Indicates if the maintenance can be customer triggered. - * @param canReschedule canReschedule or {@code null} for none - */ - public UpcomingMaintenance setCanReschedule(java.lang.Boolean canReschedule) { - this.canReschedule = canReschedule; - return this; - } - - /** - * The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 - * text format. - * @return value or {@code null} for none - */ - public java.lang.String getLatestWindowStartTime() { - return latestWindowStartTime; - } - - /** - * The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 - * text format. - * @param latestWindowStartTime latestWindowStartTime or {@code null} for none - */ - public UpcomingMaintenance setLatestWindowStartTime(java.lang.String latestWindowStartTime) { - this.latestWindowStartTime = latestWindowStartTime; - return this; - } - - /** - * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. - * @return value or {@code null} for none - */ - public java.lang.Boolean getMaintenanceOnShutdown() { - return maintenanceOnShutdown; - } - - /** - * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. - * @param maintenanceOnShutdown maintenanceOnShutdown or {@code null} for none - */ - public UpcomingMaintenance setMaintenanceOnShutdown(java.lang.Boolean maintenanceOnShutdown) { - this.maintenanceOnShutdown = maintenanceOnShutdown; - return this; - } - - /** - * The reasons for the maintenance. Only valid for vms. - * @return value or {@code null} for none - */ - public java.util.List getMaintenanceReasons() { - return maintenanceReasons; - } - - /** - * The reasons for the maintenance. Only valid for vms. - * @param maintenanceReasons maintenanceReasons or {@code null} for none - */ - public UpcomingMaintenance setMaintenanceReasons(java.util.List maintenanceReasons) { - this.maintenanceReasons = maintenanceReasons; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getMaintenanceStatus() { - return maintenanceStatus; - } - - /** - * @param maintenanceStatus maintenanceStatus or {@code null} for none - */ - public UpcomingMaintenance setMaintenanceStatus(java.lang.String maintenanceStatus) { - this.maintenanceStatus = maintenanceStatus; - return this; - } - - /** - * Defines the type of maintenance. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * Defines the type of maintenance. - * @param type type or {@code null} for none - */ - public UpcomingMaintenance setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * The time by which the maintenance disruption will be completed. This timestamp value is in - * RFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getWindowEndTime() { - return windowEndTime; - } - - /** - * The time by which the maintenance disruption will be completed. This timestamp value is in - * RFC3339 text format. - * @param windowEndTime windowEndTime or {@code null} for none - */ - public UpcomingMaintenance setWindowEndTime(java.lang.String windowEndTime) { - this.windowEndTime = windowEndTime; - return this; - } - - /** - * The current start time of the maintenance window. This timestamp value is in RFC3339 text - * format. - * @return value or {@code null} for none - */ - public java.lang.String getWindowStartTime() { - return windowStartTime; - } - - /** - * The current start time of the maintenance window. This timestamp value is in RFC3339 text - * format. - * @param windowStartTime windowStartTime or {@code null} for none - */ - public UpcomingMaintenance setWindowStartTime(java.lang.String windowStartTime) { - this.windowStartTime = windowStartTime; - return this; - } - - @Override - public UpcomingMaintenance set(String fieldName, Object value) { - return (UpcomingMaintenance) super.set(fieldName, value); - } - - @Override - public UpcomingMaintenance clone() { - return (UpcomingMaintenance) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMap.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMap.java deleted file mode 100644 index 25420104737..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMap.java +++ /dev/null @@ -1,724 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a URL Map resource. - * - * Compute Engine has two URL Map resources: - * - * * [Global](/compute/docs/reference/rest/v1/urlMaps) * - * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) - * - * A URL map resource is a component of certain types of cloud load balancers and Traffic Director: - * - * * urlMaps are used by global external Application Load Balancers, classic Application Load - * Balancers, and cross-region internal Application Load Balancers. * regionUrlMaps are used by - * internal Application Load Balancers, regional external Application Load Balancers and regional - * internal Application Load Balancers. - * - * For a list of supported URL map features by the load balancer type, see the Load balancing - * features: Routing and traffic management table. - * - * For a list of supported URL map features for Traffic Director, see the Traffic Director features: - * Routing and traffic management table. - * - * This resource defines mappings from hostnames and URL paths to either a backend service or a - * backend bucket. - * - * To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either - * EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the - * backend service must have aloadBalancingScheme of INTERNAL_MANAGED. For more information, read - * URL Map Concepts. - * - *

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 UrlMap extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * This policy takes effect at the load balancer level and applies only when no policy has been - * defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this - * UrlMap. - * - * For example, consider a UrlMap with the following configuration: - - * defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - * - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. - * - * If a request for http://www.example.com/ encounters a404, the policy - * inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for - * http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy - * will be enforced. When a request that does not match any host in *.example.com such as - * http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy takes - * effect. - * - * When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only once - * all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting a - * retry, if load balancer is successful in reaching the service, the - * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - * the client. - * - * defaultCustomErrorResponsePolicy is supported only for global external Application Load - * Balancers. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private CustomErrorResponsePolicy defaultCustomErrorResponsePolicy; - - /** - * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs - * advanced routing actions, such as URL rewrites and header transformations, before forwarding - * the request to the selected backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within - * defaultRouteAction. - * - * defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRouteAction defaultRouteAction; - - /** - * The full or partial URL of the defaultService resource to which traffic is directed if none of - * the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as - * URL rewrites, take effect before sending the request to the backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * defaultService has no effect when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String defaultService; - - /** - * When none of the specified hostRules match, the request is redirected to a URL specified by - * defaultUrlRedirect. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpRedirectAction defaultUrlRedirect; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint - * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 - * conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a UrlMap. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String fingerprint; - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * The headerAction specified here take effect afterheaderAction specified under pathMatcher. - * - * headerAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpHeaderAction headerAction; - - /** - * The list of host rules to use against the URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List hostRules; - - static { - // hack to force ProGuard to consider HostRule 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(HostRule.class); - } - - /** - * [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] Type of the resource. Always compute#urlMaps for url maps. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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; - - /** - * The list of named PathMatchers to use against the URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List pathMatchers; - - static { - // hack to force ProGuard to consider PathMatcher 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(PathMatcher.class); - } - - /** - * Output only. [Output Only] URL of the region where the regional URL map resides. This field is - * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. - * It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * [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; - - /** - * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test - * cases pass. You can specify a maximum of 100 tests per UrlMap. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tests; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * This policy takes effect at the load balancer level and applies only when no policy has been - * defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this - * UrlMap. - * - * For example, consider a UrlMap with the following configuration: - - * defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - * - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. - * - * If a request for http://www.example.com/ encounters a404, the policy - * inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for - * http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy - * will be enforced. When a request that does not match any host in *.example.com such as - * http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy takes - * effect. - * - * When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only once - * all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting a - * retry, if load balancer is successful in reaching the service, the - * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - * the client. - * - * defaultCustomErrorResponsePolicy is supported only for global external Application Load - * Balancers. - * @return value or {@code null} for none - */ - public CustomErrorResponsePolicy getDefaultCustomErrorResponsePolicy() { - return defaultCustomErrorResponsePolicy; - } - - /** - * defaultCustomErrorResponsePolicy specifies how the Load Balancer returns error responses when - * BackendServiceorBackendBucket responds with an error. - * - * This policy takes effect at the load balancer level and applies only when no policy has been - * defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this - * UrlMap. - * - * For example, consider a UrlMap with the following configuration: - - * defaultCustomErrorResponsePolicy containing policies for responding to 5xx and 4xx errors - * - A PathMatcher configured for *.example.com has defaultCustomErrorResponsePolicy for 4xx. - * - * If a request for http://www.example.com/ encounters a404, the policy - * inpathMatcher.defaultCustomErrorResponsePolicy will be enforced. When the request for - * http://www.example.com/ encounters a502, the policy inUrlMap.defaultCustomErrorResponsePolicy - * will be enforced. When a request that does not match any host in *.example.com such as - * http://www.myotherexample.com/, encounters a404, UrlMap.defaultCustomErrorResponsePolicy takes - * effect. - * - * When used in conjunction withdefaultRouteAction.retryPolicy, retries take precedence. Only once - * all retries are exhausted, thedefaultCustomErrorResponsePolicy is applied. While attempting a - * retry, if load balancer is successful in reaching the service, the - * defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - * the client. - * - * defaultCustomErrorResponsePolicy is supported only for global external Application Load - * Balancers. - * @param defaultCustomErrorResponsePolicy defaultCustomErrorResponsePolicy or {@code null} for none - */ - public UrlMap setDefaultCustomErrorResponsePolicy(CustomErrorResponsePolicy defaultCustomErrorResponsePolicy) { - this.defaultCustomErrorResponsePolicy = defaultCustomErrorResponsePolicy; - return this; - } - - /** - * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs - * advanced routing actions, such as URL rewrites and header transformations, before forwarding - * the request to the selected backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within - * defaultRouteAction. - * - * defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public HttpRouteAction getDefaultRouteAction() { - return defaultRouteAction; - } - - /** - * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs - * advanced routing actions, such as URL rewrites and header transformations, before forwarding - * the request to the selected backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * URL maps for classic Application Load Balancers only support the urlRewrite action within - * defaultRouteAction. - * - * defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @param defaultRouteAction defaultRouteAction or {@code null} for none - */ - public UrlMap setDefaultRouteAction(HttpRouteAction defaultRouteAction) { - this.defaultRouteAction = defaultRouteAction; - return this; - } - - /** - * The full or partial URL of the defaultService resource to which traffic is directed if none of - * the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as - * URL rewrites, take effect before sending the request to the backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * defaultService has no effect when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @return value or {@code null} for none - */ - public java.lang.String getDefaultService() { - return defaultService; - } - - /** - * The full or partial URL of the defaultService resource to which traffic is directed if none of - * the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as - * URL rewrites, take effect before sending the request to the backend. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * defaultService has no effect when the URL map is bound to a target gRPC proxy that has the - * validateForProxyless field set to true. - * @param defaultService defaultService or {@code null} for none - */ - public UrlMap setDefaultService(java.lang.String defaultService) { - this.defaultService = defaultService; - return this; - } - - /** - * When none of the specified hostRules match, the request is redirected to a URL specified by - * defaultUrlRedirect. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @return value or {@code null} for none - */ - public HttpRedirectAction getDefaultUrlRedirect() { - return defaultUrlRedirect; - } - - /** - * When none of the specified hostRules match, the request is redirected to a URL specified by - * defaultUrlRedirect. - * - * Only one of defaultUrlRedirect, defaultService or defaultRouteAction.weightedBackendService can - * be set. - * - * Not supported when the URL map is bound to a target gRPC proxy. - * @param defaultUrlRedirect defaultUrlRedirect or {@code null} for none - */ - public UrlMap setDefaultUrlRedirect(HttpRedirectAction defaultUrlRedirect) { - this.defaultUrlRedirect = defaultUrlRedirect; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public UrlMap setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint - * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 - * conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a UrlMap. - * @see #decodeFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getFingerprint() { - return fingerprint; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint - * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 - * conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a UrlMap. - * @see #getFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(fingerprint); - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint - * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 - * conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a UrlMap. - * @see #encodeFingerprint() - * @param fingerprint fingerprint or {@code null} for none - */ - public UrlMap setFingerprint(java.lang.String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Fingerprint of this resource. A hash of the contents stored in this object. This field is used - * in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint - * must be provided in order to update the UrlMap, otherwise the request will fail with error 412 - * conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a UrlMap. - * @see #setFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public UrlMap encodeFingerprint(byte[] fingerprint) { - this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); - return this; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * The headerAction specified here take effect afterheaderAction specified under pathMatcher. - * - * headerAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public HttpHeaderAction getHeaderAction() { - return headerAction; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * The headerAction specified here take effect afterheaderAction specified under pathMatcher. - * - * headerAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param headerAction headerAction or {@code null} for none - */ - public UrlMap setHeaderAction(HttpHeaderAction headerAction) { - this.headerAction = headerAction; - return this; - } - - /** - * The list of host rules to use against the URL. - * @return value or {@code null} for none - */ - public java.util.List getHostRules() { - return hostRules; - } - - /** - * The list of host rules to use against the URL. - * @param hostRules hostRules or {@code null} for none - */ - public UrlMap setHostRules(java.util.List hostRules) { - this.hostRules = hostRules; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public UrlMap setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. - * @param kind kind or {@code null} for none - */ - public UrlMap setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 UrlMap setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The list of named PathMatchers to use against the URL. - * @return value or {@code null} for none - */ - public java.util.List getPathMatchers() { - return pathMatchers; - } - - /** - * The list of named PathMatchers to use against the URL. - * @param pathMatchers pathMatchers or {@code null} for none - */ - public UrlMap setPathMatchers(java.util.List pathMatchers) { - this.pathMatchers = pathMatchers; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the regional URL map resides. This field is - * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. - * It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the regional URL map resides. This field is - * not applicable to global URL maps. You must specify this field as part of the HTTP request URL. - * It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public UrlMap setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public UrlMap setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test - * cases pass. You can specify a maximum of 100 tests per UrlMap. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public java.util.List getTests() { - return tests; - } - - /** - * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test - * cases pass. You can specify a maximum of 100 tests per UrlMap. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param tests tests or {@code null} for none - */ - public UrlMap setTests(java.util.List tests) { - this.tests = tests; - return this; - } - - @Override - public UrlMap set(String fieldName, Object value) { - return (UrlMap) super.set(fieldName, value); - } - - @Override - public UrlMap clone() { - return (UrlMap) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapList.java deleted file mode 100644 index 57b9606bf57..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of UrlMap resources. - * - *

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 UrlMapList extends com.google.api.client.json.GenericJson { - - /** - * [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 UrlMap 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 UrlMap 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(UrlMap.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 UrlMapList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of UrlMap resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of UrlMap resources. - * @param items items or {@code null} for none - */ - public UrlMapList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public UrlMapList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public UrlMapList 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 UrlMapList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 UrlMapList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public UrlMapList set(String fieldName, Object value) { - return (UrlMapList) super.set(fieldName, value); - } - - @Override - public UrlMapList clone() { - return (UrlMapList) 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 UrlMapListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapReference.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapReference.java deleted file mode 100644 index 63992ccea0e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapReference.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for UrlMapReference. - * - *

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 UrlMapReference extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String urlMap; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getUrlMap() { - return urlMap; - } - - /** - * @param urlMap urlMap or {@code null} for none - */ - public UrlMapReference setUrlMap(java.lang.String urlMap) { - this.urlMap = urlMap; - return this; - } - - @Override - public UrlMapReference set(String fieldName, Object value) { - return (UrlMapReference) super.set(fieldName, value); - } - - @Override - public UrlMapReference clone() { - return (UrlMapReference) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTest.java deleted file mode 100644 index 568d24f98ce..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTest.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message for the expected URL mappings. - * - *

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 UrlMapTest extends com.google.api.client.json.GenericJson { - - /** - * Description of this test case. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The expected output URL evaluated by the load balancer containing the scheme, host, path and - * query parameters. - * - * For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches - * the request forwarded by the load balancer to backends. For rules with urlRewrite, the test - * verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite - * action. When service is specified,expectedOutputUrl`s scheme is ignored. - * - * For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the - * load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only - * if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, - * the test passes only if expectedOutputUrl does not contain any query parameters. - * - * expectedOutputUrl is optional whenservice is specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expectedOutputUrl; - - /** - * For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the - * HTTP status code in load balancer's redirect response. - * - * expectedRedirectResponseCode cannot be set whenservice is set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer expectedRedirectResponseCode; - - /** - * HTTP headers for this request. If headers contains a host header, then host must also match the - * header value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List headers; - - /** - * Host portion of the URL. If headers contains a host header, then host must also match the - * header value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** - * Path portion of the URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String path; - - /** - * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * - * The service field cannot be set if expectedRedirectResponseCode is set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - - /** - * Description of this test case. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Description of this test case. - * @param description description or {@code null} for none - */ - public UrlMapTest setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The expected output URL evaluated by the load balancer containing the scheme, host, path and - * query parameters. - * - * For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches - * the request forwarded by the load balancer to backends. For rules with urlRewrite, the test - * verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite - * action. When service is specified,expectedOutputUrl`s scheme is ignored. - * - * For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the - * load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only - * if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, - * the test passes only if expectedOutputUrl does not contain any query parameters. - * - * expectedOutputUrl is optional whenservice is specified. - * @return value or {@code null} for none - */ - public java.lang.String getExpectedOutputUrl() { - return expectedOutputUrl; - } - - /** - * The expected output URL evaluated by the load balancer containing the scheme, host, path and - * query parameters. - * - * For rules that forward requests to backends, the test passes only whenexpectedOutputUrl matches - * the request forwarded by the load balancer to backends. For rules with urlRewrite, the test - * verifies that the forwarded request matcheshostRewrite and pathPrefixRewrite in theurlRewrite - * action. When service is specified,expectedOutputUrl`s scheme is ignored. - * - * For rules with urlRedirect, the test passes only ifexpectedOutputUrl matches the URL in the - * load balancer's redirect response. If urlRedirect specifieshttps_redirect, the test passes only - * if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, - * the test passes only if expectedOutputUrl does not contain any query parameters. - * - * expectedOutputUrl is optional whenservice is specified. - * @param expectedOutputUrl expectedOutputUrl or {@code null} for none - */ - public UrlMapTest setExpectedOutputUrl(java.lang.String expectedOutputUrl) { - this.expectedOutputUrl = expectedOutputUrl; - return this; - } - - /** - * For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the - * HTTP status code in load balancer's redirect response. - * - * expectedRedirectResponseCode cannot be set whenservice is set. - * @return value or {@code null} for none - */ - public java.lang.Integer getExpectedRedirectResponseCode() { - return expectedRedirectResponseCode; - } - - /** - * For rules with urlRedirect, the test passes only ifexpectedRedirectResponseCode matches the - * HTTP status code in load balancer's redirect response. - * - * expectedRedirectResponseCode cannot be set whenservice is set. - * @param expectedRedirectResponseCode expectedRedirectResponseCode or {@code null} for none - */ - public UrlMapTest setExpectedRedirectResponseCode(java.lang.Integer expectedRedirectResponseCode) { - this.expectedRedirectResponseCode = expectedRedirectResponseCode; - return this; - } - - /** - * HTTP headers for this request. If headers contains a host header, then host must also match the - * header value. - * @return value or {@code null} for none - */ - public java.util.List getHeaders() { - return headers; - } - - /** - * HTTP headers for this request. If headers contains a host header, then host must also match the - * header value. - * @param headers headers or {@code null} for none - */ - public UrlMapTest setHeaders(java.util.List headers) { - this.headers = headers; - return this; - } - - /** - * Host portion of the URL. If headers contains a host header, then host must also match the - * header value. - * @return value or {@code null} for none - */ - public java.lang.String getHost() { - return host; - } - - /** - * Host portion of the URL. If headers contains a host header, then host must also match the - * header value. - * @param host host or {@code null} for none - */ - public UrlMapTest setHost(java.lang.String host) { - this.host = host; - return this; - } - - /** - * Path portion of the URL. - * @return value or {@code null} for none - */ - public java.lang.String getPath() { - return path; - } - - /** - * Path portion of the URL. - * @param path path or {@code null} for none - */ - public UrlMapTest setPath(java.lang.String path) { - this.path = path; - return this; - } - - /** - * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * - * The service field cannot be set if expectedRedirectResponseCode is set. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * - * The service field cannot be set if expectedRedirectResponseCode is set. - * @param service service or {@code null} for none - */ - public UrlMapTest setService(java.lang.String service) { - this.service = service; - return this; - } - - @Override - public UrlMapTest set(String fieldName, Object value) { - return (UrlMapTest) super.set(fieldName, value); - } - - @Override - public UrlMapTest clone() { - return (UrlMapTest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTestHeader.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTestHeader.java deleted file mode 100644 index f844b0b52ab..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapTestHeader.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.preview.model; - -/** - * HTTP headers used in UrlMapTests. - * - *

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 UrlMapTestHeader extends com.google.api.client.json.GenericJson { - - /** - * Header name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Header value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * Header name. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Header name. - * @param name name or {@code null} for none - */ - public UrlMapTestHeader setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Header value. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * Header value. - * @param value value or {@code null} for none - */ - public UrlMapTestHeader setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public UrlMapTestHeader set(String fieldName, Object value) { - return (UrlMapTestHeader) super.set(fieldName, value); - } - - @Override - public UrlMapTestHeader clone() { - return (UrlMapTestHeader) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapValidationResult.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapValidationResult.java deleted file mode 100644 index a0539f91d52..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapValidationResult.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.preview.model; - -/** - * Message representing the validation result for a UrlMap. - * - *

This is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: - * https://developers.google.com/api-client-library/java/google-http-java-client/json - *

- * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class UrlMapValidationResult extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List loadErrors; - - /** - * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the - * reasons. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean loadSucceeded; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List testFailures; - - static { - // hack to force ProGuard to consider TestFailure 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(TestFailure.class); - } - - /** - * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's - * indicate the reason of failure. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean testPassed; - - /** - * @return value or {@code null} for none - */ - public java.util.List getLoadErrors() { - return loadErrors; - } - - /** - * @param loadErrors loadErrors or {@code null} for none - */ - public UrlMapValidationResult setLoadErrors(java.util.List loadErrors) { - this.loadErrors = loadErrors; - return this; - } - - /** - * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the - * reasons. - * @return value or {@code null} for none - */ - public java.lang.Boolean getLoadSucceeded() { - return loadSucceeded; - } - - /** - * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the - * reasons. - * @param loadSucceeded loadSucceeded or {@code null} for none - */ - public UrlMapValidationResult setLoadSucceeded(java.lang.Boolean loadSucceeded) { - this.loadSucceeded = loadSucceeded; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getTestFailures() { - return testFailures; - } - - /** - * @param testFailures testFailures or {@code null} for none - */ - public UrlMapValidationResult setTestFailures(java.util.List testFailures) { - this.testFailures = testFailures; - return this; - } - - /** - * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's - * indicate the reason of failure. - * @return value or {@code null} for none - */ - public java.lang.Boolean getTestPassed() { - return testPassed; - } - - /** - * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's - * indicate the reason of failure. - * @param testPassed testPassed or {@code null} for none - */ - public UrlMapValidationResult setTestPassed(java.lang.Boolean testPassed) { - this.testPassed = testPassed; - return this; - } - - @Override - public UrlMapValidationResult set(String fieldName, Object value) { - return (UrlMapValidationResult) super.set(fieldName, value); - } - - @Override - public UrlMapValidationResult clone() { - return (UrlMapValidationResult) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsAggregatedList.java deleted file mode 100644 index 6b12ef827a1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for UrlMapsAggregatedList. - * - *

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 UrlMapsAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 UrlMapsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 UrlMapsAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of UrlMapsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of UrlMapsScopedList resources. - * @param items items or {@code null} for none - */ - public UrlMapsAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public UrlMapsAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public UrlMapsAggregatedList 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 UrlMapsAggregatedList 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 UrlMapsAggregatedList 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 UrlMapsAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public UrlMapsAggregatedList set(String fieldName, Object value) { - return (UrlMapsAggregatedList) super.set(fieldName, value); - } - - @Override - public UrlMapsAggregatedList clone() { - return (UrlMapsAggregatedList) 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 UrlMapsAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsScopedList.java deleted file mode 100644 index 576e314b7a0..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for UrlMapsScopedList. - * - *

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 UrlMapsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of UrlMaps contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List urlMaps; - - static { - // hack to force ProGuard to consider UrlMap 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(UrlMap.class); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of UrlMaps contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getUrlMaps() { - return urlMaps; - } - - /** - * A list of UrlMaps contained in this scope. - * @param urlMaps urlMaps or {@code null} for none - */ - public UrlMapsScopedList setUrlMaps(java.util.List urlMaps) { - this.urlMaps = urlMaps; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public UrlMapsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public UrlMapsScopedList set(String fieldName, Object value) { - return (UrlMapsScopedList) super.set(fieldName, value); - } - - @Override - public UrlMapsScopedList clone() { - return (UrlMapsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 UrlMapsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateRequest.java deleted file mode 100644 index 2701154a2e4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateRequest.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for UrlMapsValidateRequest. - * - *

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 UrlMapsValidateRequest extends com.google.api.client.json.GenericJson { - - /** - * Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for - * global external Application Load Balancers and regional external Application Load Balancers. - * Use EXTERNAL for classic Application Load Balancers. - * - * Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to - * Choosing a load balancer. - * - * If unspecified, the load balancing scheme will be inferred from the backend service resources - * this URL map references. If that can not be inferred (for example, this URL map only references - * backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any - * backends),EXTERNAL will be used as the default type. - * - * If specified, the scheme(s) must not conflict with the load balancing scheme of the backend - * service resources this Url map references. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List loadBalancingSchemes; - - /** - * Content of the UrlMap to be validated. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UrlMap resource; - - /** - * Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for - * global external Application Load Balancers and regional external Application Load Balancers. - * Use EXTERNAL for classic Application Load Balancers. - * - * Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to - * Choosing a load balancer. - * - * If unspecified, the load balancing scheme will be inferred from the backend service resources - * this URL map references. If that can not be inferred (for example, this URL map only references - * backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any - * backends),EXTERNAL will be used as the default type. - * - * If specified, the scheme(s) must not conflict with the load balancing scheme of the backend - * service resources this Url map references. - * @return value or {@code null} for none - */ - public java.util.List getLoadBalancingSchemes() { - return loadBalancingSchemes; - } - - /** - * Specifies the load balancer type(s) this validation request is for. UseEXTERNAL_MANAGED for - * global external Application Load Balancers and regional external Application Load Balancers. - * Use EXTERNAL for classic Application Load Balancers. - * - * Use INTERNAL_MANAGED for internal Application Load Balancers. For more information, refer to - * Choosing a load balancer. - * - * If unspecified, the load balancing scheme will be inferred from the backend service resources - * this URL map references. If that can not be inferred (for example, this URL map only references - * backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any - * backends),EXTERNAL will be used as the default type. - * - * If specified, the scheme(s) must not conflict with the load balancing scheme of the backend - * service resources this Url map references. - * @param loadBalancingSchemes loadBalancingSchemes or {@code null} for none - */ - public UrlMapsValidateRequest setLoadBalancingSchemes(java.util.List loadBalancingSchemes) { - this.loadBalancingSchemes = loadBalancingSchemes; - return this; - } - - /** - * Content of the UrlMap to be validated. - * @return value or {@code null} for none - */ - public UrlMap getResource() { - return resource; - } - - /** - * Content of the UrlMap to be validated. - * @param resource resource or {@code null} for none - */ - public UrlMapsValidateRequest setResource(UrlMap resource) { - this.resource = resource; - return this; - } - - @Override - public UrlMapsValidateRequest set(String fieldName, Object value) { - return (UrlMapsValidateRequest) super.set(fieldName, value); - } - - @Override - public UrlMapsValidateRequest clone() { - return (UrlMapsValidateRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateResponse.java deleted file mode 100644 index b10c47e69fe..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlMapsValidateResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for UrlMapsValidateResponse. - * - *

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 UrlMapsValidateResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private UrlMapValidationResult result; - - /** - * @return value or {@code null} for none - */ - public UrlMapValidationResult getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public UrlMapsValidateResponse setResult(UrlMapValidationResult result) { - this.result = result; - return this; - } - - @Override - public UrlMapsValidateResponse set(String fieldName, Object value) { - return (UrlMapsValidateResponse) super.set(fieldName, value); - } - - @Override - public UrlMapsValidateResponse clone() { - return (UrlMapsValidateResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlRewrite.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlRewrite.java deleted file mode 100644 index 28b8b33300e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UrlRewrite.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * 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.preview.model; - -/** - * The spec for modifying the path before sending the request to the matched backend service. - * - *

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 UrlRewrite extends com.google.api.client.json.GenericJson { - - /** - * Before forwarding the request to the selected service, the request's host header is replaced - * with contents of hostRewrite. - * - * The value must be from 1 to 255 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String hostRewrite; - - /** - * Before forwarding the request to the selected backend service, the matching portion of the - * request's path is replaced bypathPrefixRewrite. - * - * The value must be from 1 to 1024 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathPrefixRewrite; - - /** - * If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP - * template syntax. - * - * A corresponding path_template_match must be specified. Any template variables must exist in the - * path_template_match field. - -At least one variable must be specified in the - * path_template_match field - You can omit variables from the rewritten URL - The - * * and ** operators cannot be matched unless they have a corresponding variable name - - * e.g. {format=*} or {var=**}. - * - * For example, a path_template_match of /static/{format=**} could be rewritten as - * /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a - * rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as - * /content/{format}/{country}/{suffix}. - * - * At least one non-empty routeRules[].matchRules[].path_template_match is required. - * - * Only one of path_prefix_rewrite orpath_template_rewrite may be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pathTemplateRewrite; - - /** - * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, - * orregexRewrite may be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private RegexRewrite regexRewrite; - - /** - * Before forwarding the request to the selected service, the request's host header is replaced - * with contents of hostRewrite. - * - * The value must be from 1 to 255 characters. - * @return value or {@code null} for none - */ - public java.lang.String getHostRewrite() { - return hostRewrite; - } - - /** - * Before forwarding the request to the selected service, the request's host header is replaced - * with contents of hostRewrite. - * - * The value must be from 1 to 255 characters. - * @param hostRewrite hostRewrite or {@code null} for none - */ - public UrlRewrite setHostRewrite(java.lang.String hostRewrite) { - this.hostRewrite = hostRewrite; - return this; - } - - /** - * Before forwarding the request to the selected backend service, the matching portion of the - * request's path is replaced bypathPrefixRewrite. - * - * The value must be from 1 to 1024 characters. - * @return value or {@code null} for none - */ - public java.lang.String getPathPrefixRewrite() { - return pathPrefixRewrite; - } - - /** - * Before forwarding the request to the selected backend service, the matching portion of the - * request's path is replaced bypathPrefixRewrite. - * - * The value must be from 1 to 1024 characters. - * @param pathPrefixRewrite pathPrefixRewrite or {@code null} for none - */ - public UrlRewrite setPathPrefixRewrite(java.lang.String pathPrefixRewrite) { - this.pathPrefixRewrite = pathPrefixRewrite; - return this; - } - - /** - * If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP - * template syntax. - * - * A corresponding path_template_match must be specified. Any template variables must exist in the - * path_template_match field. - -At least one variable must be specified in the - * path_template_match field - You can omit variables from the rewritten URL - The - * * and ** operators cannot be matched unless they have a corresponding variable name - - * e.g. {format=*} or {var=**}. - * - * For example, a path_template_match of /static/{format=**} could be rewritten as - * /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a - * rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as - * /content/{format}/{country}/{suffix}. - * - * At least one non-empty routeRules[].matchRules[].path_template_match is required. - * - * Only one of path_prefix_rewrite orpath_template_rewrite may be specified. - * @return value or {@code null} for none - */ - public java.lang.String getPathTemplateRewrite() { - return pathTemplateRewrite; - } - - /** - * If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP - * template syntax. - * - * A corresponding path_template_match must be specified. Any template variables must exist in the - * path_template_match field. - -At least one variable must be specified in the - * path_template_match field - You can omit variables from the rewritten URL - The - * * and ** operators cannot be matched unless they have a corresponding variable name - - * e.g. {format=*} or {var=**}. - * - * For example, a path_template_match of /static/{format=**} could be rewritten as - * /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a - * rewrite, so that /{country}/{format}/{suffix=**} can be rewritten as - * /content/{format}/{country}/{suffix}. - * - * At least one non-empty routeRules[].matchRules[].path_template_match is required. - * - * Only one of path_prefix_rewrite orpath_template_rewrite may be specified. - * @param pathTemplateRewrite pathTemplateRewrite or {@code null} for none - */ - public UrlRewrite setPathTemplateRewrite(java.lang.String pathTemplateRewrite) { - this.pathTemplateRewrite = pathTemplateRewrite; - return this; - } - - /** - * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, - * orregexRewrite may be specified. - * @return value or {@code null} for none - */ - public RegexRewrite getRegexRewrite() { - return regexRewrite; - } - - /** - * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, - * orregexRewrite may be specified. - * @param regexRewrite regexRewrite or {@code null} for none - */ - public UrlRewrite setRegexRewrite(RegexRewrite regexRewrite) { - this.regexRewrite = regexRewrite; - return this; - } - - @Override - public UrlRewrite set(String fieldName, Object value) { - return (UrlRewrite) super.set(fieldName, value); - } - - @Override - public UrlRewrite clone() { - return (UrlRewrite) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetwork.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetwork.java deleted file mode 100644 index fe39c4b5112..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetwork.java +++ /dev/null @@ -1,306 +0,0 @@ -/* - * 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.preview.model; - -/** - * Subnetwork which the current user has compute.subnetworks.use permission on. - * - *

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 UsableSubnetwork extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalIpv6Prefix; - - /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String internalIpv6Prefix; - - /** - * The range of internal addresses that are owned by this subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * The access type of IPv6 address this subnet holds. It's immutable and can only be specified - * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6AccessType; - - /** - * Network URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String purpose; - - /** - * The role of subnetwork. Currently, this field is only used when purpose is set to - * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An - * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a - * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently - * draining. This field can be updated with a patch request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String role; - - /** - * Secondary IP ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List secondaryIpRanges; - - /** - * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 - * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - * addresses. If not specified, IPV4_ONLY is used. - * - * This field can be both set at resource creation time and updated usingpatch. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * Subnetwork URL. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String subnetwork; - - /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getExternalIpv6Prefix() { - return externalIpv6Prefix; - } - - /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. - * @param externalIpv6Prefix externalIpv6Prefix or {@code null} for none - */ - public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefix) { - this.externalIpv6Prefix = externalIpv6Prefix; - return this; - } - - /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getInternalIpv6Prefix() { - return internalIpv6Prefix; - } - - /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. - * @param internalIpv6Prefix internalIpv6Prefix or {@code null} for none - */ - public UsableSubnetwork setInternalIpv6Prefix(java.lang.String internalIpv6Prefix) { - this.internalIpv6Prefix = internalIpv6Prefix; - return this; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public UsableSubnetwork setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * The access type of IPv6 address this subnet holds. It's immutable and can only be specified - * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6AccessType() { - return ipv6AccessType; - } - - /** - * The access type of IPv6 address this subnet holds. It's immutable and can only be specified - * during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. - * @param ipv6AccessType ipv6AccessType or {@code null} for none - */ - public UsableSubnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { - this.ipv6AccessType = ipv6AccessType; - return this; - } - - /** - * Network URL. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * Network URL. - * @param network network or {@code null} for none - */ - public UsableSubnetwork setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getPurpose() { - return purpose; - } - - /** - * @param purpose purpose or {@code null} for none - */ - public UsableSubnetwork setPurpose(java.lang.String purpose) { - this.purpose = purpose; - return this; - } - - /** - * The role of subnetwork. Currently, this field is only used when purpose is set to - * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An - * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a - * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently - * draining. This field can be updated with a patch request. - * @return value or {@code null} for none - */ - public java.lang.String getRole() { - return role; - } - - /** - * The role of subnetwork. Currently, this field is only used when purpose is set to - * GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An - * ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a - * region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently - * draining. This field can be updated with a patch request. - * @param role role or {@code null} for none - */ - public UsableSubnetwork setRole(java.lang.String role) { - this.role = role; - return this; - } - - /** - * Secondary IP ranges. - * @return value or {@code null} for none - */ - public java.util.List getSecondaryIpRanges() { - return secondaryIpRanges; - } - - /** - * Secondary IP ranges. - * @param secondaryIpRanges secondaryIpRanges or {@code null} for none - */ - public UsableSubnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { - this.secondaryIpRanges = secondaryIpRanges; - return this; - } - - /** - * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 - * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - * addresses. If not specified, IPV4_ONLY is used. - * - * This field can be both set at resource creation time and updated usingpatch. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 - * addresses only. If set toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - * addresses. If not specified, IPV4_ONLY is used. - * - * This field can be both set at resource creation time and updated usingpatch. - * @param stackType stackType or {@code null} for none - */ - public UsableSubnetwork setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - /** - * Subnetwork URL. - * @return value or {@code null} for none - */ - public java.lang.String getSubnetwork() { - return subnetwork; - } - - /** - * Subnetwork URL. - * @param subnetwork subnetwork or {@code null} for none - */ - public UsableSubnetwork setSubnetwork(java.lang.String subnetwork) { - this.subnetwork = subnetwork; - return this; - } - - @Override - public UsableSubnetwork set(String fieldName, Object value) { - return (UsableSubnetwork) super.set(fieldName, value); - } - - @Override - public UsableSubnetwork clone() { - return (UsableSubnetwork) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworkSecondaryRange.java deleted file mode 100644 index b258216cee8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworkSecondaryRange.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.preview.model; - -/** - * Secondary IP range of a usable subnetwork. - * - *

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 UsableSubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { - - /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /** - * The name associated with this subnetwork secondary range, used when adding an alias IP range to - * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be - * unique within the subnetwork. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rangeName; - - /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. - * @return value or {@code null} for none - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. - * @param ipCidrRange ipCidrRange or {@code null} for none - */ - public UsableSubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - return this; - } - - /** - * The name associated with this subnetwork secondary range, used when adding an alias IP range to - * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be - * unique within the subnetwork. - * @return value or {@code null} for none - */ - public java.lang.String getRangeName() { - return rangeName; - } - - /** - * The name associated with this subnetwork secondary range, used when adding an alias IP range to - * a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be - * unique within the subnetwork. - * @param rangeName rangeName or {@code null} for none - */ - public UsableSubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { - this.rangeName = rangeName; - return this; - } - - @Override - public UsableSubnetworkSecondaryRange set(String fieldName, Object value) { - return (UsableSubnetworkSecondaryRange) super.set(fieldName, value); - } - - @Override - public UsableSubnetworkSecondaryRange clone() { - return (UsableSubnetworkSecondaryRange) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworksAggregatedList.java deleted file mode 100644 index 281f0d3df68..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsableSubnetworksAggregatedList.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for UsableSubnetworksAggregatedList. - * - *

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 UsableSubnetworksAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 - private java.lang.String id; - - /** - * [Output] A list of usable subnetwork URLs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider UsableSubnetwork 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(UsableSubnetwork.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. In special cases listUsable may return 0 - * subnetworks andnextPageToken which still should be used to get the next page of results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List scopedWarnings; - - static { - // hack to force ProGuard to consider SubnetworksScopedWarning 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(SubnetworksScopedWarning.class); - } - - /** - * 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; - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public UsableSubnetworksAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output] A list of usable subnetwork URLs. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output] A list of usable subnetwork URLs. - * @param items items or {@code null} for none - */ - public UsableSubnetworksAggregatedList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. - * @param kind kind or {@code null} for none - */ - public UsableSubnetworksAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. In special cases listUsable may return 0 - * subnetworks andnextPageToken which still should be used to get the next page of results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. In special cases listUsable may return 0 - * subnetworks andnextPageToken which still should be used to get the next page of results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. - * @return value or {@code null} for none - */ - public java.util.List getScopedWarnings() { - return scopedWarnings; - } - - /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. - * @param scopedWarnings scopedWarnings or {@code null} for none - */ - public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List scopedWarnings) { - this.scopedWarnings = scopedWarnings; - 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 UsableSubnetworksAggregatedList 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 UsableSubnetworksAggregatedList 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 UsableSubnetworksAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public UsableSubnetworksAggregatedList set(String fieldName, Object value) { - return (UsableSubnetworksAggregatedList) super.set(fieldName, value); - } - - @Override - public UsableSubnetworksAggregatedList clone() { - return (UsableSubnetworksAggregatedList) 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 UsableSubnetworksAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/UsageExportLocation.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsageExportLocation.java deleted file mode 100644 index dd09124245e..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/UsageExportLocation.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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.preview.model; - -/** - * The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name - * and report_name prefix. - * - *

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 UsageExportLocation extends com.google.api.client.json.GenericJson { - - /** - * The name of an existing bucket in Cloud Storage where the usage report object is stored. The - * Google Service Account is granted write access to this bucket. This can either be the bucket - * name by itself, such asexample-bucket, or the bucket name with gs:// or - * https://storage.googleapis.com/ in front of it, such as gs://example-bucket. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bucketName; - - /** - * An optional prefix for the name of the usage report object stored inbucketName. If not - * supplied, defaults tousage_gce. The report is stored as a CSV file - * namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to - * Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming - * conventions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String reportNamePrefix; - - /** - * The name of an existing bucket in Cloud Storage where the usage report object is stored. The - * Google Service Account is granted write access to this bucket. This can either be the bucket - * name by itself, such asexample-bucket, or the bucket name with gs:// or - * https://storage.googleapis.com/ in front of it, such as gs://example-bucket. - * @return value or {@code null} for none - */ - public java.lang.String getBucketName() { - return bucketName; - } - - /** - * The name of an existing bucket in Cloud Storage where the usage report object is stored. The - * Google Service Account is granted write access to this bucket. This can either be the bucket - * name by itself, such asexample-bucket, or the bucket name with gs:// or - * https://storage.googleapis.com/ in front of it, such as gs://example-bucket. - * @param bucketName bucketName or {@code null} for none - */ - public UsageExportLocation setBucketName(java.lang.String bucketName) { - this.bucketName = bucketName; - return this; - } - - /** - * An optional prefix for the name of the usage report object stored inbucketName. If not - * supplied, defaults tousage_gce. The report is stored as a CSV file - * namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to - * Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming - * conventions. - * @return value or {@code null} for none - */ - public java.lang.String getReportNamePrefix() { - return reportNamePrefix; - } - - /** - * An optional prefix for the name of the usage report object stored inbucketName. If not - * supplied, defaults tousage_gce. The report is stored as a CSV file - * namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to - * Pacific Time. If you supply a prefix, it should conform to Cloud Storageobject naming - * conventions. - * @param reportNamePrefix reportNamePrefix or {@code null} for none - */ - public UsageExportLocation setReportNamePrefix(java.lang.String reportNamePrefix) { - this.reportNamePrefix = reportNamePrefix; - return this; - } - - @Override - public UsageExportLocation set(String fieldName, Object value) { - return (UsageExportLocation) super.set(fieldName, value); - } - - @Override - public UsageExportLocation clone() { - return (UsageExportLocation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappings.java deleted file mode 100644 index f3b6db49d4a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappings.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contain information of Nat mapping for a VM endpoint (i.e., NIC). - * - *

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 VmEndpointNatMappings extends com.google.api.client.json.GenericJson { - - /** - * Output only. Name of the VM instance which the endpoint belongs to - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceName; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List interfaceNatMappings; - - /** - * Output only. Name of the VM instance which the endpoint belongs to - * @return value or {@code null} for none - */ - public java.lang.String getInstanceName() { - return instanceName; - } - - /** - * Output only. Name of the VM instance which the endpoint belongs to - * @param instanceName instanceName or {@code null} for none - */ - public VmEndpointNatMappings setInstanceName(java.lang.String instanceName) { - this.instanceName = instanceName; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getInterfaceNatMappings() { - return interfaceNatMappings; - } - - /** - * @param interfaceNatMappings interfaceNatMappings or {@code null} for none - */ - public VmEndpointNatMappings setInterfaceNatMappings(java.util.List interfaceNatMappings) { - this.interfaceNatMappings = interfaceNatMappings; - return this; - } - - @Override - public VmEndpointNatMappings set(String fieldName, Object value) { - return (VmEndpointNatMappings) super.set(fieldName, value); - } - - @Override - public VmEndpointNatMappings clone() { - return (VmEndpointNatMappings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappings.java deleted file mode 100644 index 461d9023dec..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contain information of Nat mapping for an interface of this endpoint. - * - *

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 VmEndpointNatMappingsInterfaceNatMappings extends com.google.api.client.json.GenericJson { - - /** - * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges - * are inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List drainNatIpPortRanges; - - /** - * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natIpPortRanges; - - /** - * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It - * equals to the aggregated port number in the field drain_nat_ip_port_ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer numTotalDrainNatPorts; - - /** - * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to - * the aggregated port number in the field nat_ip_port_ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer numTotalNatPorts; - - /** - * Output only. Information about mappings provided by rules in this NAT. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ruleMappings; - - /** - * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP - * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceAliasIpRange; - - /** - * Output only. Primary IP of the VM for this NIC. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceVirtualIp; - - /** - * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges - * are inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @return value or {@code null} for none - */ - public java.util.List getDrainNatIpPortRanges() { - return drainNatIpPortRanges; - } - - /** - * Output only. List of all drain IP:port-range mappings assigned to this interface. These ranges - * are inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @param drainNatIpPortRanges drainNatIpPortRanges or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.util.List drainNatIpPortRanges) { - this.drainNatIpPortRanges = drainNatIpPortRanges; - return this; - } - - /** - * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @return value or {@code null} for none - */ - public java.util.List getNatIpPortRanges() { - return natIpPortRanges; - } - - /** - * Output only. A list of all IP:port-range mappings assigned to this interface. These ranges are - * inclusive, that is, both the first and the last ports can be used for NAT. Example: - * ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @param natIpPortRanges natIpPortRanges or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.List natIpPortRanges) { - this.natIpPortRanges = natIpPortRanges; - return this; - } - - /** - * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It - * equals to the aggregated port number in the field drain_nat_ip_port_ranges. - * @return value or {@code null} for none - */ - public java.lang.Integer getNumTotalDrainNatPorts() { - return numTotalDrainNatPorts; - } - - /** - * Output only. Total number of drain ports across all NAT IPs allocated to this interface. It - * equals to the aggregated port number in the field drain_nat_ip_port_ranges. - * @param numTotalDrainNatPorts numTotalDrainNatPorts or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.lang.Integer numTotalDrainNatPorts) { - this.numTotalDrainNatPorts = numTotalDrainNatPorts; - return this; - } - - /** - * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to - * the aggregated port number in the field nat_ip_port_ranges. - * @return value or {@code null} for none - */ - public java.lang.Integer getNumTotalNatPorts() { - return numTotalNatPorts; - } - - /** - * Output only. Total number of ports across all NAT IPs allocated to this interface. It equals to - * the aggregated port number in the field nat_ip_port_ranges. - * @param numTotalNatPorts numTotalNatPorts or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.Integer numTotalNatPorts) { - this.numTotalNatPorts = numTotalNatPorts; - return this; - } - - /** - * Output only. Information about mappings provided by rules in this NAT. - * @return value or {@code null} for none - */ - public java.util.List getRuleMappings() { - return ruleMappings; - } - - /** - * Output only. Information about mappings provided by rules in this NAT. - * @param ruleMappings ruleMappings or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List ruleMappings) { - this.ruleMappings = ruleMappings; - return this; - } - - /** - * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP - * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". - * @return value or {@code null} for none - */ - public java.lang.String getSourceAliasIpRange() { - return sourceAliasIpRange; - } - - /** - * Output only. Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP - * range. Examples: "10.33.4.55/32", or "192.168.5.0/24". - * @param sourceAliasIpRange sourceAliasIpRange or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang.String sourceAliasIpRange) { - this.sourceAliasIpRange = sourceAliasIpRange; - return this; - } - - /** - * Output only. Primary IP of the VM for this NIC. - * @return value or {@code null} for none - */ - public java.lang.String getSourceVirtualIp() { - return sourceVirtualIp; - } - - /** - * Output only. Primary IP of the VM for this NIC. - * @param sourceVirtualIp sourceVirtualIp or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappings setSourceVirtualIp(java.lang.String sourceVirtualIp) { - this.sourceVirtualIp = sourceVirtualIp; - return this; - } - - @Override - public VmEndpointNatMappingsInterfaceNatMappings set(String fieldName, Object value) { - return (VmEndpointNatMappingsInterfaceNatMappings) super.set(fieldName, value); - } - - @Override - public VmEndpointNatMappingsInterfaceNatMappings clone() { - return (VmEndpointNatMappingsInterfaceNatMappings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java deleted file mode 100644 index 60ccd50314c..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains information of NAT Mappings provided by a NAT Rule. - * - *

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 VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends com.google.api.client.json.GenericJson { - - /** - * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. - * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. - * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List drainNatIpPortRanges; - - /** - * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. - * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. - * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List natIpPortRanges; - - /** - * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this - * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer numTotalDrainNatPorts; - - /** - * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. - * It equals the aggregated port number in the field nat_ip_port_ranges. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer numTotalNatPorts; - - /** - * Output only. Rule number of the NAT Rule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ruleNumber; - - /** - * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. - * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. - * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @return value or {@code null} for none - */ - public java.util.List getDrainNatIpPortRanges() { - return drainNatIpPortRanges; - } - - /** - * Output only. List of all drain IP:port-range mappings assigned to this interface by this rule. - * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. - * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @param drainNatIpPortRanges drainNatIpPortRanges or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPortRanges(java.util.List drainNatIpPortRanges) { - this.drainNatIpPortRanges = drainNatIpPortRanges; - return this; - } - - /** - * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. - * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. - * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @return value or {@code null} for none - */ - public java.util.List getNatIpPortRanges() { - return natIpPortRanges; - } - - /** - * Output only. A list of all IP:port-range mappings assigned to this interface by this rule. - * These ranges are inclusive, that is, both the first and the last ports can be used for NAT. - * Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @param natIpPortRanges natIpPortRanges or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRanges(java.util.List natIpPortRanges) { - this.natIpPortRanges = natIpPortRanges; - return this; - } - - /** - * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this - * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. - * @return value or {@code null} for none - */ - public java.lang.Integer getNumTotalDrainNatPorts() { - return numTotalDrainNatPorts; - } - - /** - * Output only. Total number of drain ports across all NAT IPs allocated to this interface by this - * rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. - * @param numTotalDrainNatPorts numTotalDrainNatPorts or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrainNatPorts(java.lang.Integer numTotalDrainNatPorts) { - this.numTotalDrainNatPorts = numTotalDrainNatPorts; - return this; - } - - /** - * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. - * It equals the aggregated port number in the field nat_ip_port_ranges. - * @return value or {@code null} for none - */ - public java.lang.Integer getNumTotalNatPorts() { - return numTotalNatPorts; - } - - /** - * Output only. Total number of ports across all NAT IPs allocated to this interface by this rule. - * It equals the aggregated port number in the field nat_ip_port_ranges. - * @param numTotalNatPorts numTotalNatPorts or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPorts(java.lang.Integer numTotalNatPorts) { - this.numTotalNatPorts = numTotalNatPorts; - return this; - } - - /** - * Output only. Rule number of the NAT Rule. - * @return value or {@code null} for none - */ - public java.lang.Integer getRuleNumber() { - return ruleNumber; - } - - /** - * Output only. Rule number of the NAT Rule. - * @param ruleNumber ruleNumber or {@code null} for none - */ - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { - this.ruleNumber = ruleNumber; - return this; - } - - @Override - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings set(String fieldName, Object value) { - return (VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) super.set(fieldName, value); - } - - @Override - public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings clone() { - return (VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsList.java deleted file mode 100644 index 0e97f915550..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmEndpointNatMappingsList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of VmEndpointNatMappings. - * - *

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 VmEndpointNatMappingsList extends com.google.api.client.json.GenericJson { - - /** - * [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 - private java.lang.String id; - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [Output Only] A list of Nat mapping information of VM endpoints. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List result; - - static { - // hack to force ProGuard to consider VmEndpointNatMappings 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(VmEndpointNatMappings.class); - } - - /** - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public VmEndpointNatMappingsList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. - * @param kind kind or {@code null} for none - */ - public VmEndpointNatMappingsList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VmEndpointNatMappingsList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] A list of Nat mapping information of VM endpoints. - * @return value or {@code null} for none - */ - public java.util.List getResult() { - return result; - } - - /** - * [Output Only] A list of Nat mapping information of VM endpoints. - * @param result result or {@code null} for none - */ - public VmEndpointNatMappingsList setResult(java.util.List result) { - this.result = result; - 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 VmEndpointNatMappingsList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 VmEndpointNatMappingsList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VmEndpointNatMappingsList set(String fieldName, Object value) { - return (VmEndpointNatMappingsList) super.set(fieldName, value); - } - - @Override - public VmEndpointNatMappingsList clone() { - return (VmEndpointNatMappingsList) 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 VmEndpointNatMappingsListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPoliciesScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPoliciesScopedList.java deleted file mode 100644 index a97a23f1cc3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPoliciesScopedList.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VmExtensionPoliciesScopedList. - * - *

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 VmExtensionPoliciesScopedList extends com.google.api.client.json.GenericJson { - - /** - * List of VmExtensionPolicy resources contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List vmExtensionPolicies; - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * List of VmExtensionPolicy resources contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getVmExtensionPolicies() { - return vmExtensionPolicies; - } - - /** - * List of VmExtensionPolicy resources contained in this scope. - * @param vmExtensionPolicies vmExtensionPolicies or {@code null} for none - */ - public VmExtensionPoliciesScopedList setVmExtensionPolicies(java.util.List vmExtensionPolicies) { - this.vmExtensionPolicies = vmExtensionPolicies; - return this; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - * @param warning warning or {@code null} for none - */ - public VmExtensionPoliciesScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VmExtensionPoliciesScopedList set(String fieldName, Object value) { - return (VmExtensionPoliciesScopedList) super.set(fieldName, value); - } - - @Override - public VmExtensionPoliciesScopedList clone() { - return (VmExtensionPoliciesScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of backend services when the list is empty. - */ - 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 VmExtensionPoliciesScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicy.java deleted file mode 100644 index 3cd22818850..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicy.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a VM extension policy. - * - *

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 VmExtensionPolicy extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy - * configurations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map extensionPolicies; - - /** - * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, - * if applicable. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String globalResourceLink; - - /** - * 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; - - /** - * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the - * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List instanceSelectors; - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean managedByGlobal; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to - * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower - * integers indicate higher priorities. If you do not specify a priority when creating a rule, it - * is assigned a priority of 1000. If priorities are equal, the policy with the most recent - * creation timestamp takes precedence. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** - * Output only. [Output Only] Server-defined fully-qualified 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] Server-defined URL for this resource's resource id. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String selfLinkWithId; - - /** - * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Output only. [Output Only] Update timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String updateTimestamp; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. - * @param description description or {@code null} for none - */ - public VmExtensionPolicy setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy - * configurations. - * @return value or {@code null} for none - */ - public java.util.Map getExtensionPolicies() { - return extensionPolicies; - } - - /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy - * configurations. - * @param extensionPolicies extensionPolicies or {@code null} for none - */ - public VmExtensionPolicy setExtensionPolicies(java.util.Map extensionPolicies) { - this.extensionPolicies = extensionPolicies; - return this; - } - - /** - * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, - * if applicable. - * @return value or {@code null} for none - */ - public java.lang.String getGlobalResourceLink() { - return globalResourceLink; - } - - /** - * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, - * if applicable. - * @param globalResourceLink globalResourceLink or {@code null} for none - */ - public VmExtensionPolicy setGlobalResourceLink(java.lang.String globalResourceLink) { - this.globalResourceLink = globalResourceLink; - 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 VmExtensionPolicy setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the - * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. - * @return value or {@code null} for none - */ - public java.util.List getInstanceSelectors() { - return instanceSelectors; - } - - /** - * Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the - * provided selectors (logical OR). If this list is empty, the policy applies to all VMs. - * @param instanceSelectors instanceSelectors or {@code null} for none - */ - public VmExtensionPolicy setInstanceSelectors(java.util.List instanceSelectors) { - this.instanceSelectors = instanceSelectors; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. - * @param kind kind or {@code null} for none - */ - public VmExtensionPolicy setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. - * @return value or {@code null} for none - */ - public java.lang.Boolean getManagedByGlobal() { - return managedByGlobal; - } - - /** - * Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy. - * @param managedByGlobal managedByGlobal or {@code null} for none - */ - public VmExtensionPolicy setManagedByGlobal(java.lang.Boolean managedByGlobal) { - this.managedByGlobal = managedByGlobal; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 VmExtensionPolicy setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to - * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower - * integers indicate higher priorities. If you do not specify a priority when creating a rule, it - * is assigned a priority of 1000. If priorities are equal, the policy with the most recent - * creation timestamp takes precedence. - * @return value or {@code null} for none - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to - * the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower - * integers indicate higher priorities. If you do not specify a priority when creating a rule, it - * is assigned a priority of 1000. If priorities are equal, the policy with the most recent - * creation timestamp takes precedence. - * @param priority priority or {@code null} for none - */ - public VmExtensionPolicy setPriority(java.lang.Integer priority) { - this.priority = priority; - return this; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public VmExtensionPolicy setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLinkWithId() { - return selfLinkWithId; - } - - /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. - * @param selfLinkWithId selfLinkWithId or {@code null} for none - */ - public VmExtensionPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. - * @param state state or {@code null} for none - */ - public VmExtensionPolicy setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Output only. [Output Only] Update timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getUpdateTimestamp() { - return updateTimestamp; - } - - /** - * Output only. [Output Only] Update timestamp inRFC3339 text format. - * @param updateTimestamp updateTimestamp or {@code null} for none - */ - public VmExtensionPolicy setUpdateTimestamp(java.lang.String updateTimestamp) { - this.updateTimestamp = updateTimestamp; - return this; - } - - @Override - public VmExtensionPolicy set(String fieldName, Object value) { - return (VmExtensionPolicy) super.set(fieldName, value); - } - - @Override - public VmExtensionPolicy clone() { - return (VmExtensionPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyAggregatedListResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyAggregatedListResponse.java deleted file mode 100644 index 82bcf91785f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyAggregatedListResponse.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response for the aggregated list of VM extension policies. - * - *

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 VmExtensionPolicyAggregatedListResponse extends com.google.api.client.json.GenericJson { - - /** - * 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 VmExtensionPoliciesScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - static { - // hack to force ProGuard to consider VmExtensionPoliciesScopedList 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(VmExtensionPoliciesScopedList.class); - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for - * lists of VmExtensionPolicies. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of VmExtensionPoliciesScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of VmExtensionPoliciesScopedList resources. - * @param items items or {@code null} for none - */ - public VmExtensionPolicyAggregatedListResponse setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for - * lists of VmExtensionPolicies. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Alwayscompute#VmExtensionPolicyAggregatedList for - * lists of VmExtensionPolicies. - * @param kind kind or {@code null} for none - */ - public VmExtensionPolicyAggregatedListResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse 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 VmExtensionPolicyAggregatedListResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VmExtensionPolicyAggregatedListResponse set(String fieldName, Object value) { - return (VmExtensionPolicyAggregatedListResponse) super.set(fieldName, value); - } - - @Override - public VmExtensionPolicyAggregatedListResponse clone() { - return (VmExtensionPolicyAggregatedListResponse) 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 VmExtensionPolicyAggregatedListResponseWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyExtensionPolicy.java deleted file mode 100644 index 2badc438453..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyExtensionPolicy.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Configuration for a specific VM extension. - * - *

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 VmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { - - /** - * Optional. The specific version of the extension to install. If not set, the latest version is - * used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String pinnedVersion; - - /** - * Optional. String-based configuration data for the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stringConfig; - - /** - * Optional. The specific version of the extension to install. If not set, the latest version is - * used. - * @return value or {@code null} for none - */ - public java.lang.String getPinnedVersion() { - return pinnedVersion; - } - - /** - * Optional. The specific version of the extension to install. If not set, the latest version is - * used. - * @param pinnedVersion pinnedVersion or {@code null} for none - */ - public VmExtensionPolicyExtensionPolicy setPinnedVersion(java.lang.String pinnedVersion) { - this.pinnedVersion = pinnedVersion; - return this; - } - - /** - * Optional. String-based configuration data for the extension. - * @return value or {@code null} for none - */ - public java.lang.String getStringConfig() { - return stringConfig; - } - - /** - * Optional. String-based configuration data for the extension. - * @param stringConfig stringConfig or {@code null} for none - */ - public VmExtensionPolicyExtensionPolicy setStringConfig(java.lang.String stringConfig) { - this.stringConfig = stringConfig; - return this; - } - - @Override - public VmExtensionPolicyExtensionPolicy set(String fieldName, Object value) { - return (VmExtensionPolicyExtensionPolicy) super.set(fieldName, value); - } - - @Override - public VmExtensionPolicyExtensionPolicy clone() { - return (VmExtensionPolicyExtensionPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyInstanceSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyInstanceSelector.java deleted file mode 100644 index 917917053d1..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyInstanceSelector.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Defines how to select VMs to apply a zone VM extension policy. - * - *

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 VmExtensionPolicyInstanceSelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. LabelSelector selects VMs based on their labels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VmExtensionPolicyLabelSelector labelSelector; - - /** - * Optional. LabelSelector selects VMs based on their labels. - * @return value or {@code null} for none - */ - public VmExtensionPolicyLabelSelector getLabelSelector() { - return labelSelector; - } - - /** - * Optional. LabelSelector selects VMs based on their labels. - * @param labelSelector labelSelector or {@code null} for none - */ - public VmExtensionPolicyInstanceSelector setLabelSelector(VmExtensionPolicyLabelSelector labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - @Override - public VmExtensionPolicyInstanceSelector set(String fieldName, Object value) { - return (VmExtensionPolicyInstanceSelector) super.set(fieldName, value); - } - - @Override - public VmExtensionPolicyInstanceSelector clone() { - return (VmExtensionPolicyInstanceSelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyLabelSelector.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyLabelSelector.java deleted file mode 100644 index aa9cf44d9ea..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyLabelSelector.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * A LabelSelector is applied to a VM only if it matches all the specified labels. - * - *

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 VmExtensionPolicyLabelSelector extends com.google.api.client.json.GenericJson { - - /** - * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels - * specified in this map to be selected (logical AND). - * - * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must - * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are - * ("key1", "value1") and ("something", "else"), it will not be selected. - * - * If the map is empty, it's considered a match. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map inclusionLabels; - - /** - * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels - * specified in this map to be selected (logical AND). - * - * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must - * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are - * ("key1", "value1") and ("something", "else"), it will not be selected. - * - * If the map is empty, it's considered a match. - * @return value or {@code null} for none - */ - public java.util.Map getInclusionLabels() { - return inclusionLabels; - } - - /** - * Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels - * specified in this map to be selected (logical AND). - * - * e.g. If the `inclusion_labels` are {("key1", "value1"), ("key2", "value2")}, the VM labels must - * contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are - * ("key1", "value1") and ("something", "else"), it will not be selected. - * - * If the map is empty, it's considered a match. - * @param inclusionLabels inclusionLabels or {@code null} for none - */ - public VmExtensionPolicyLabelSelector setInclusionLabels(java.util.Map inclusionLabels) { - this.inclusionLabels = inclusionLabels; - return this; - } - - @Override - public VmExtensionPolicyLabelSelector set(String fieldName, Object value) { - return (VmExtensionPolicyLabelSelector) super.set(fieldName, value); - } - - @Override - public VmExtensionPolicyLabelSelector clone() { - return (VmExtensionPolicyLabelSelector) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyList.java deleted file mode 100644 index 4f90292545b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VmExtensionPolicyList.java +++ /dev/null @@ -1,449 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VmExtensionPolicyList. - * - *

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 VmExtensionPolicyList extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this - * object. This field is used in optimistic locking. This field will be ignored when inserting a - * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the - * VmExtensionPolicy. - * - * To see the latest value of the fingerprint, make a get() request to retrieve a - * VmExtensionPolicy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * Output only. [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; - - /** - * Output only. [Output Only] A list of VM extension policy 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 VmExtensionPolicy 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(VmExtensionPolicy.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * 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. [Output Only] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this - * object. This field is used in optimistic locking. This field will be ignored when inserting a - * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the - * VmExtensionPolicy. - * - * To see the latest value of the fingerprint, make a get() request to retrieve a - * VmExtensionPolicy. - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Output only. [Output Only] Fingerprint of this resource. A hash of the contents stored in this - * object. This field is used in optimistic locking. This field will be ignored when inserting a - * VmExtensionPolicy. An up-to-date fingerprint must be provided in order to update the - * VmExtensionPolicy. - * - * To see the latest value of the fingerprint, make a get() request to retrieve a - * VmExtensionPolicy. - * @param etag etag or {@code null} for none - */ - public VmExtensionPolicyList setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Output only. [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. [Output Only] Unique identifier for the resource; defined by the server. - * @param id id or {@code null} for none - */ - public VmExtensionPolicyList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] A list of VM extension policy resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. [Output Only] A list of VM extension policy resources. - * @param items items or {@code null} for none - */ - public VmExtensionPolicyList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public VmExtensionPolicyList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VmExtensionPolicyList 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 VmExtensionPolicyList 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 VmExtensionPolicyList setUnreachables(java.util.List unreachables) { - this.unreachables = unreachables; - return this; - } - - /** - * Output only. [Output Only] Informational warning message. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Output only. [Output Only] Informational warning message. - * @param warning warning or {@code null} for none - */ - public VmExtensionPolicyList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VmExtensionPolicyList set(String fieldName, Object value) { - return (VmExtensionPolicyList) super.set(fieldName, value); - } - - @Override - public VmExtensionPolicyList clone() { - return (VmExtensionPolicyList) super.clone(); - } - - /** - * Output only. [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 VmExtensionPolicyListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGateway.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGateway.java deleted file mode 100644 index 7cc65e9b5a8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGateway.java +++ /dev/null @@ -1,474 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a HA VPN gateway. - * - * HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on- - * premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN - * connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN - * topologies . - * - *

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 VpnGateway extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will - * be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gatewayIpVersion; - - /** - * 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] Type of resource. Always compute#vpnGateway for VPN gateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Name of the resource. Provided by the client 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; - - /** - * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN - * gateway is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnGatewayParams params; - - /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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; - - /** - * The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible - * values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway - * IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stackType; - - /** - * The list of VPN interfaces associated with this VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List vpnInterfaces; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public VpnGateway setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will - * be used. - * @return value or {@code null} for none - */ - public java.lang.String getGatewayIpVersion() { - return gatewayIpVersion; - } - - /** - * The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will - * be used. - * @param gatewayIpVersion gatewayIpVersion or {@code null} for none - */ - public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { - this.gatewayIpVersion = gatewayIpVersion; - 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 VpnGateway setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * @param kind kind or {@code null} for none - */ - public VpnGateway setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public VpnGateway setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnGateway. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public VpnGateway encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public VpnGateway setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 VpnGateway setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN - * gateway is created. - * @return value or {@code null} for none - */ - public java.lang.String getNetwork() { - return network; - } - - /** - * URL of the network to which this VPN gateway is attached. Provided by the client when the VPN - * gateway is created. - * @param network network or {@code null} for none - */ - public VpnGateway setNetwork(java.lang.String network) { - this.network = network; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public VpnGatewayParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public VpnGateway setParams(VpnGatewayParams params) { - this.params = params; - return this; - } - - /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. - * @param region region or {@code null} for none - */ - public VpnGateway setRegion(java.lang.String region) { - this.region = region; - 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 VpnGateway setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible - * values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway - * IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. - * @return value or {@code null} for none - */ - public java.lang.String getStackType() { - return stackType; - } - - /** - * The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible - * values are: IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway - * IP version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. - * @param stackType stackType or {@code null} for none - */ - public VpnGateway setStackType(java.lang.String stackType) { - this.stackType = stackType; - return this; - } - - /** - * The list of VPN interfaces associated with this VPN gateway. - * @return value or {@code null} for none - */ - public java.util.List getVpnInterfaces() { - return vpnInterfaces; - } - - /** - * The list of VPN interfaces associated with this VPN gateway. - * @param vpnInterfaces vpnInterfaces or {@code null} for none - */ - public VpnGateway setVpnInterfaces(java.util.List vpnInterfaces) { - this.vpnInterfaces = vpnInterfaces; - return this; - } - - @Override - public VpnGateway set(String fieldName, Object value) { - return (VpnGateway) super.set(fieldName, value); - } - - @Override - public VpnGateway clone() { - return (VpnGateway) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayAggregatedList.java deleted file mode 100644 index 8b60b24cc05..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnGatewayAggregatedList. - * - *

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 VpnGatewayAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 VpnGateway resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 VpnGatewayAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of VpnGateway resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of VpnGateway resources. - * @param items items or {@code null} for none - */ - public VpnGatewayAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * @param kind kind or {@code null} for none - */ - public VpnGatewayAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VpnGatewayAggregatedList 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 VpnGatewayAggregatedList 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 VpnGatewayAggregatedList 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 VpnGatewayAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VpnGatewayAggregatedList set(String fieldName, Object value) { - return (VpnGatewayAggregatedList) super.set(fieldName, value); - } - - @Override - public VpnGatewayAggregatedList clone() { - return (VpnGatewayAggregatedList) 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 VpnGatewayAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayList.java deleted file mode 100644 index 54c2406d746..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of VpnGateway resources. - * - *

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 VpnGatewayList extends com.google.api.client.json.GenericJson { - - /** - * [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 VpnGateway 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 VpnGateway 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(VpnGateway.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 VpnGatewayList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of VpnGateway resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of VpnGateway resources. - * @param items items or {@code null} for none - */ - public VpnGatewayList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. - * @param kind kind or {@code null} for none - */ - public VpnGatewayList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VpnGatewayList 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 VpnGatewayList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 VpnGatewayList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VpnGatewayList set(String fieldName, Object value) { - return (VpnGatewayList) super.set(fieldName, value); - } - - @Override - public VpnGatewayList clone() { - return (VpnGatewayList) 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 VpnGatewayListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayParams.java deleted file mode 100644 index 439a99e0a00..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayParams.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnGatewayParams. - * - *

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 VpnGatewayParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public VpnGatewayParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public VpnGatewayParams set(String fieldName, Object value) { - return (VpnGatewayParams) super.set(fieldName, value); - } - - @Override - public VpnGatewayParams clone() { - return (VpnGatewayParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatus.java deleted file mode 100644 index 668b423119f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatus.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnGatewayStatus. - * - *

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 VpnGatewayStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. List of VPN connection for this VpnGateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List vpnConnections; - - /** - * Output only. List of VPN connection for this VpnGateway. - * @return value or {@code null} for none - */ - public java.util.List getVpnConnections() { - return vpnConnections; - } - - /** - * Output only. List of VPN connection for this VpnGateway. - * @param vpnConnections vpnConnections or {@code null} for none - */ - public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { - this.vpnConnections = vpnConnections; - return this; - } - - @Override - public VpnGatewayStatus set(String fieldName, Object value) { - return (VpnGatewayStatus) super.set(fieldName, value); - } - - @Override - public VpnGatewayStatus clone() { - return (VpnGatewayStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusHighAvailabilityRequirementState.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusHighAvailabilityRequirementState.java deleted file mode 100644 index 716a943c5ee..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusHighAvailabilityRequirementState.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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.preview.model; - -/** - * Describes the high availability requirement state for the VPN connection between this Cloud VPN - * gateway and a peer gateway. - * - *

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 VpnGatewayStatusHighAvailabilityRequirementState extends com.google.api.client.json.GenericJson { - - /** - * Indicates the high availability requirement state for the VPN connection. Valid values are - * CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String state; - - /** - * Indicates the reason why the VPN connection does not meet the high availability redundancy - * criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String unsatisfiedReason; - - /** - * Indicates the high availability requirement state for the VPN connection. Valid values are - * CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Indicates the high availability requirement state for the VPN connection. Valid values are - * CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. - * @param state state or {@code null} for none - */ - public VpnGatewayStatusHighAvailabilityRequirementState setState(java.lang.String state) { - this.state = state; - return this; - } - - /** - * Indicates the reason why the VPN connection does not meet the high availability redundancy - * criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. - * @return value or {@code null} for none - */ - public java.lang.String getUnsatisfiedReason() { - return unsatisfiedReason; - } - - /** - * Indicates the reason why the VPN connection does not meet the high availability redundancy - * criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. - * @param unsatisfiedReason unsatisfiedReason or {@code null} for none - */ - public VpnGatewayStatusHighAvailabilityRequirementState setUnsatisfiedReason(java.lang.String unsatisfiedReason) { - this.unsatisfiedReason = unsatisfiedReason; - return this; - } - - @Override - public VpnGatewayStatusHighAvailabilityRequirementState set(String fieldName, Object value) { - return (VpnGatewayStatusHighAvailabilityRequirementState) super.set(fieldName, value); - } - - @Override - public VpnGatewayStatusHighAvailabilityRequirementState clone() { - return (VpnGatewayStatusHighAvailabilityRequirementState) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusTunnel.java deleted file mode 100644 index e047bf356da..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusTunnel.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains some information about a VPN tunnel. - * - *

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 VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { - - /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long localGatewayInterface; - - /** - * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could - * either be an external VPN gateway or a Google Cloud VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long peerGatewayInterface; - - /** - * Output only. URL reference to the VPN tunnel. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tunnelUrl; - - /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. - * @return value or {@code null} for none - */ - public java.lang.Long getLocalGatewayInterface() { - return localGatewayInterface; - } - - /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. - * @param localGatewayInterface localGatewayInterface or {@code null} for none - */ - public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatewayInterface) { - this.localGatewayInterface = localGatewayInterface; - return this; - } - - /** - * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could - * either be an external VPN gateway or a Google Cloud VPN gateway. - * @return value or {@code null} for none - */ - public java.lang.Long getPeerGatewayInterface() { - return peerGatewayInterface; - } - - /** - * Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could - * either be an external VPN gateway or a Google Cloud VPN gateway. - * @param peerGatewayInterface peerGatewayInterface or {@code null} for none - */ - public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGatewayInterface) { - this.peerGatewayInterface = peerGatewayInterface; - return this; - } - - /** - * Output only. URL reference to the VPN tunnel. - * @return value or {@code null} for none - */ - public java.lang.String getTunnelUrl() { - return tunnelUrl; - } - - /** - * Output only. URL reference to the VPN tunnel. - * @param tunnelUrl tunnelUrl or {@code null} for none - */ - public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { - this.tunnelUrl = tunnelUrl; - return this; - } - - @Override - public VpnGatewayStatusTunnel set(String fieldName, Object value) { - return (VpnGatewayStatusTunnel) super.set(fieldName, value); - } - - @Override - public VpnGatewayStatusTunnel clone() { - return (VpnGatewayStatusTunnel) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusVpnConnection.java deleted file mode 100644 index 8a4950efc8d..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayStatusVpnConnection.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * 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.preview.model; - -/** - * A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer - * gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway. - * - *

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 VpnGatewayStatusVpnConnection extends com.google.api.client.json.GenericJson { - - /** - * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this - * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerExternalGateway; - - /** - * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN - * connection are connected. This field is mutually exclusive with peer_gcp_gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerGcpGateway; - - /** - * HighAvailabilityRequirementState for the VPN connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnGatewayStatusHighAvailabilityRequirementState state; - - /** - * List of VPN tunnels that are in this VPN connection. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List tunnels; - - static { - // hack to force ProGuard to consider VpnGatewayStatusTunnel 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(VpnGatewayStatusTunnel.class); - } - - /** - * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this - * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. - * @return value or {@code null} for none - */ - public java.lang.String getPeerExternalGateway() { - return peerExternalGateway; - } - - /** - * Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this - * VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. - * @param peerExternalGateway peerExternalGateway or {@code null} for none - */ - public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String peerExternalGateway) { - this.peerExternalGateway = peerExternalGateway; - return this; - } - - /** - * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN - * connection are connected. This field is mutually exclusive with peer_gcp_gateway. - * @return value or {@code null} for none - */ - public java.lang.String getPeerGcpGateway() { - return peerGcpGateway; - } - - /** - * Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN - * connection are connected. This field is mutually exclusive with peer_gcp_gateway. - * @param peerGcpGateway peerGcpGateway or {@code null} for none - */ - public VpnGatewayStatusVpnConnection setPeerGcpGateway(java.lang.String peerGcpGateway) { - this.peerGcpGateway = peerGcpGateway; - return this; - } - - /** - * HighAvailabilityRequirementState for the VPN connection. - * @return value or {@code null} for none - */ - public VpnGatewayStatusHighAvailabilityRequirementState getState() { - return state; - } - - /** - * HighAvailabilityRequirementState for the VPN connection. - * @param state state or {@code null} for none - */ - public VpnGatewayStatusVpnConnection setState(VpnGatewayStatusHighAvailabilityRequirementState state) { - this.state = state; - return this; - } - - /** - * List of VPN tunnels that are in this VPN connection. - * @return value or {@code null} for none - */ - public java.util.List getTunnels() { - return tunnels; - } - - /** - * List of VPN tunnels that are in this VPN connection. - * @param tunnels tunnels or {@code null} for none - */ - public VpnGatewayStatusVpnConnection setTunnels(java.util.List tunnels) { - this.tunnels = tunnels; - return this; - } - - @Override - public VpnGatewayStatusVpnConnection set(String fieldName, Object value) { - return (VpnGatewayStatusVpnConnection) super.set(fieldName, value); - } - - @Override - public VpnGatewayStatusVpnConnection clone() { - return (VpnGatewayStatusVpnConnection) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayVpnGatewayInterface.java deleted file mode 100644 index b652da078da..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewayVpnGatewayInterface.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * 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.preview.model; - -/** - * A VPN gateway interface. - * - *

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 VpnGatewayVpnGatewayInterface extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long id; - - /** - * URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. - * When the value of this field is present, the VPN gateway is used for HA VPN over Cloud - * Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the - * specified VLAN attachment resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; - - /** - * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. - * The IP address could be either a regional external IP address or a regional internal IP - * address. The two IP addresses for a VPN gateway must be all regional external or regional - * internal IP addresses. There cannot be a mix of regional external IP addresses and regional - * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces - * could either be regional internal IP addresses or regional external IP addresses. For regular - * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external - * IP address. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipAddress; - - /** - * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. - * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. - * 2001:db8::2d9:51:0:0). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6Address; - - /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. - * @return value or {@code null} for none - */ - public java.lang.Long getId() { - return id; - } - - /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. - * @param id id or {@code null} for none - */ - public VpnGatewayVpnGatewayInterface setId(java.lang.Long id) { - this.id = id; - return this; - } - - /** - * URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. - * When the value of this field is present, the VPN gateway is used for HA VPN over Cloud - * Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the - * specified VLAN attachment resource. - * @return value or {@code null} for none - */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; - } - - /** - * URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. - * When the value of this field is present, the VPN gateway is used for HA VPN over Cloud - * Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the - * specified VLAN attachment resource. - * @param interconnectAttachment interconnectAttachment or {@code null} for none - */ - public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String interconnectAttachment) { - this.interconnectAttachment = interconnectAttachment; - return this; - } - - /** - * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. - * The IP address could be either a regional external IP address or a regional internal IP - * address. The two IP addresses for a VPN gateway must be all regional external or regional - * internal IP addresses. There cannot be a mix of regional external IP addresses and regional - * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces - * could either be regional internal IP addresses or regional external IP addresses. For regular - * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external - * IP address. - * @return value or {@code null} for none - */ - public java.lang.String getIpAddress() { - return ipAddress; - } - - /** - * Output only. [Output Only] IP address for this VPN interface associated with the VPN gateway. - * The IP address could be either a regional external IP address or a regional internal IP - * address. The two IP addresses for a VPN gateway must be all regional external or regional - * internal IP addresses. There cannot be a mix of regional external IP addresses and regional - * internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces - * could either be regional internal IP addresses or regional external IP addresses. For regular - * (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external - * IP address. - * @param ipAddress ipAddress or {@code null} for none - */ - public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. - * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. - * 2001:db8::2d9:51:0:0). - * @return value or {@code null} for none - */ - public java.lang.String getIpv6Address() { - return ipv6Address; - } - - /** - * Output only. [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. - * The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. - * 2001:db8::2d9:51:0:0). - * @param ipv6Address ipv6Address or {@code null} for none - */ - public VpnGatewayVpnGatewayInterface setIpv6Address(java.lang.String ipv6Address) { - this.ipv6Address = ipv6Address; - return this; - } - - @Override - public VpnGatewayVpnGatewayInterface set(String fieldName, Object value) { - return (VpnGatewayVpnGatewayInterface) super.set(fieldName, value); - } - - @Override - public VpnGatewayVpnGatewayInterface clone() { - return (VpnGatewayVpnGatewayInterface) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysGetStatusResponse.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysGetStatusResponse.java deleted file mode 100644 index 580f64b7b26..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysGetStatusResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnGatewaysGetStatusResponse. - * - *

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 VpnGatewaysGetStatusResponse extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnGatewayStatus result; - - /** - * @return value or {@code null} for none - */ - public VpnGatewayStatus getResult() { - return result; - } - - /** - * @param result result or {@code null} for none - */ - public VpnGatewaysGetStatusResponse setResult(VpnGatewayStatus result) { - this.result = result; - return this; - } - - @Override - public VpnGatewaysGetStatusResponse set(String fieldName, Object value) { - return (VpnGatewaysGetStatusResponse) super.set(fieldName, value); - } - - @Override - public VpnGatewaysGetStatusResponse clone() { - return (VpnGatewaysGetStatusResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysScopedList.java deleted file mode 100644 index d6d6fbc43ab..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnGatewaysScopedList.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnGatewaysScopedList. - * - *

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 VpnGatewaysScopedList extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A list of VPN gateways contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List vpnGateways; - - static { - // hack to force ProGuard to consider VpnGateway 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(VpnGateway.class); - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [Output Only] A list of VPN gateways contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getVpnGateways() { - return vpnGateways; - } - - /** - * [Output Only] A list of VPN gateways contained in this scope. - * @param vpnGateways vpnGateways or {@code null} for none - */ - public VpnGatewaysScopedList setVpnGateways(java.util.List vpnGateways) { - this.vpnGateways = vpnGateways; - return this; - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is - * empty. - * @param warning warning or {@code null} for none - */ - public VpnGatewaysScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VpnGatewaysScopedList set(String fieldName, Object value) { - return (VpnGatewaysScopedList) super.set(fieldName, value); - } - - @Override - public VpnGatewaysScopedList clone() { - return (VpnGatewaysScopedList) super.clone(); - } - - /** - * [Output Only] Informational warning which replaces the list of addresses when the list is empty. - */ - 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 VpnGatewaysScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnel.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnel.java deleted file mode 100644 index 90f4205198b..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnel.java +++ /dev/null @@ -1,855 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Cloud VPN Tunnel resource. - * - * For more information about VPN, read the the Cloud VPN Overview. - * - *

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 VpnTunnel extends com.google.api.client.json.GenericJson { - - /** - * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnTunnelCipherSuite cipherSuite; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of this resource. Provide this property when you create the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [Output Only] Detailed status message for the VPN tunnel. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String detailedStatus; - - /** - * [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; - - /** - * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. - * Acceptable IKE versions are 1 or 2. The default version is 2. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer ikeVersion; - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be - * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN - * tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List localTrafficSelector; - - /** - * Name of the resource. Provided by the client 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; - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnTunnelParams params; - - /** - * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by - * the client when the VPN tunnel is created. This field is exclusive with the field - * peerGcpGateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerExternalGateway; - - /** - * The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by - * the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number - * of IDs in use depends on the external VPN gateway redundancy type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer peerExternalGatewayInterface; - - /** - * URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the - * client when the VPN tunnel is created. This field can be used when creating highly available - * VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. - * If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer - * Google Cloud VPN gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerGcpGateway; - - /** - * IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for - * Classic VPN tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String peerIp; - - /** - * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be - * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN - * tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List remoteTrafficSelector; - - /** - * URL of the router resource to be used for dynamic routing. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String router; - - /** - * [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; - - /** - * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN - * gateway. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sharedSecret; - - /** - * Hash of the shared secret. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sharedSecretHash; - - /** - * [Output Only] The status of the VPN tunnel, which can be one of the following: - - * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: - * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, - * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - - * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session - * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by - * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - * - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated - * for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready - * to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel - * configuration was rejected, can be result of being denied access. - - * ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - - * STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels - * or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match - * peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing - * not allowed for an HA-VPN tunnel. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client - * when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; - - /** - * URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when - * the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High - * Availability VPN gateway resource is created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vpnGateway; - - /** - * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values - * are: `0`, `1`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer vpnGatewayInterface; - - /** - * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. - * @return value or {@code null} for none - */ - public VpnTunnelCipherSuite getCipherSuite() { - return cipherSuite; - } - - /** - * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. - * @param cipherSuite cipherSuite or {@code null} for none - */ - public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { - this.cipherSuite = cipherSuite; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of this resource. Provide this property when you create the resource. - * @param description description or {@code null} for none - */ - public VpnTunnel setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [Output Only] Detailed status message for the VPN tunnel. - * @return value or {@code null} for none - */ - public java.lang.String getDetailedStatus() { - return detailedStatus; - } - - /** - * [Output Only] Detailed status message for the VPN tunnel. - * @param detailedStatus detailedStatus or {@code null} for none - */ - public VpnTunnel setDetailedStatus(java.lang.String detailedStatus) { - this.detailedStatus = detailedStatus; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public VpnTunnel setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. - * Acceptable IKE versions are 1 or 2. The default version is 2. - * @return value or {@code null} for none - */ - public java.lang.Integer getIkeVersion() { - return ikeVersion; - } - - /** - * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. - * Acceptable IKE versions are 1 or 2. The default version is 2. - * @param ikeVersion ikeVersion or {@code null} for none - */ - public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { - this.ikeVersion = ikeVersion; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @param kind kind or {@code null} for none - */ - public VpnTunnel setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public VpnTunnel setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of - * the labels set used for optimistic locking. The fingerprint is initially generated by Compute - * Engine and changes after every request to modify or update labels. You must always provide an - * up-to-date fingerprint hash in order to update or change labels, otherwise the request will - * fail with error412 conditionNotMet. - * - * To see the latest fingerprint, make a get() request to retrieve a VpnTunnel. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public VpnTunnel encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * Labels for this resource. These can only be added or modified by thesetLabels method. Each - * label key/value pair must comply withRFC1035. Label values may be empty. - * @param labels labels or {@code null} for none - */ - public VpnTunnel setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - /** - * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be - * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN - * tunnels. - * @return value or {@code null} for none - */ - public java.util.List getLocalTrafficSelector() { - return localTrafficSelector; - } - - /** - * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be - * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN - * tunnels. - * @param localTrafficSelector localTrafficSelector or {@code null} for none - */ - public VpnTunnel setLocalTrafficSelector(java.util.List localTrafficSelector) { - this.localTrafficSelector = localTrafficSelector; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 VpnTunnel setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @return value or {@code null} for none - */ - public VpnTunnelParams getParams() { - return params; - } - - /** - * Input only. [Input Only] Additional params passed with the request, but not persisted as part - * of resource payload. - * @param params params or {@code null} for none - */ - public VpnTunnel setParams(VpnTunnelParams params) { - this.params = params; - return this; - } - - /** - * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by - * the client when the VPN tunnel is created. This field is exclusive with the field - * peerGcpGateway. - * @return value or {@code null} for none - */ - public java.lang.String getPeerExternalGateway() { - return peerExternalGateway; - } - - /** - * URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by - * the client when the VPN tunnel is created. This field is exclusive with the field - * peerGcpGateway. - * @param peerExternalGateway peerExternalGateway or {@code null} for none - */ - public VpnTunnel setPeerExternalGateway(java.lang.String peerExternalGateway) { - this.peerExternalGateway = peerExternalGateway; - return this; - } - - /** - * The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by - * the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number - * of IDs in use depends on the external VPN gateway redundancy type. - * @return value or {@code null} for none - */ - public java.lang.Integer getPeerExternalGatewayInterface() { - return peerExternalGatewayInterface; - } - - /** - * The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by - * the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number - * of IDs in use depends on the external VPN gateway redundancy type. - * @param peerExternalGatewayInterface peerExternalGatewayInterface or {@code null} for none - */ - public VpnTunnel setPeerExternalGatewayInterface(java.lang.Integer peerExternalGatewayInterface) { - this.peerExternalGatewayInterface = peerExternalGatewayInterface; - return this; - } - - /** - * URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the - * client when the VPN tunnel is created. This field can be used when creating highly available - * VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. - * If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer - * Google Cloud VPN gateway. - * @return value or {@code null} for none - */ - public java.lang.String getPeerGcpGateway() { - return peerGcpGateway; - } - - /** - * URL of the peer side HA VPN gateway to which this VPN tunnel is connected. Provided by the - * client when the VPN tunnel is created. This field can be used when creating highly available - * VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. - * If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer - * Google Cloud VPN gateway. - * @param peerGcpGateway peerGcpGateway or {@code null} for none - */ - public VpnTunnel setPeerGcpGateway(java.lang.String peerGcpGateway) { - this.peerGcpGateway = peerGcpGateway; - return this; - } - - /** - * IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for - * Classic VPN tunnels. - * @return value or {@code null} for none - */ - public java.lang.String getPeerIp() { - return peerIp; - } - - /** - * IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for - * Classic VPN tunnels. - * @param peerIp peerIp or {@code null} for none - */ - public VpnTunnel setPeerIp(java.lang.String peerIp) { - this.peerIp = peerIp; - return this; - } - - /** - * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as - * part of the HTTP request URL. It is not settable as a field in the request body. - * @param region region or {@code null} for none - */ - public VpnTunnel setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be - * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN - * tunnels. - * @return value or {@code null} for none - */ - public java.util.List getRemoteTrafficSelector() { - return remoteTrafficSelector; - } - - /** - * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The - * value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be - * disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN - * tunnels. - * @param remoteTrafficSelector remoteTrafficSelector or {@code null} for none - */ - public VpnTunnel setRemoteTrafficSelector(java.util.List remoteTrafficSelector) { - this.remoteTrafficSelector = remoteTrafficSelector; - return this; - } - - /** - * URL of the router resource to be used for dynamic routing. - * @return value or {@code null} for none - */ - public java.lang.String getRouter() { - return router; - } - - /** - * URL of the router resource to be used for dynamic routing. - * @param router router or {@code null} for none - */ - public VpnTunnel setRouter(java.lang.String router) { - this.router = router; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public VpnTunnel setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN - * gateway. - * @return value or {@code null} for none - */ - public java.lang.String getSharedSecret() { - return sharedSecret; - } - - /** - * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN - * gateway. - * @param sharedSecret sharedSecret or {@code null} for none - */ - public VpnTunnel setSharedSecret(java.lang.String sharedSecret) { - this.sharedSecret = sharedSecret; - return this; - } - - /** - * Hash of the shared secret. - * @return value or {@code null} for none - */ - public java.lang.String getSharedSecretHash() { - return sharedSecretHash; - } - - /** - * Hash of the shared secret. - * @param sharedSecretHash sharedSecretHash or {@code null} for none - */ - public VpnTunnel setSharedSecretHash(java.lang.String sharedSecretHash) { - this.sharedSecretHash = sharedSecretHash; - return this; - } - - /** - * [Output Only] The status of the VPN tunnel, which can be one of the following: - - * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: - * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, - * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - - * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session - * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by - * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - * - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated - * for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready - * to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel - * configuration was rejected, can be result of being denied access. - - * ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - - * STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels - * or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match - * peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing - * not allowed for an HA-VPN tunnel. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] The status of the VPN tunnel, which can be one of the following: - - * PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: - * Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, - * VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - - * FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session - * is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by - * NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - * - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated - * for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready - * to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel - * configuration was rejected, can be result of being denied access. - - * ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - - * STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels - * or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match - * peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing - * not allowed for an HA-VPN tunnel. - * @param status status or {@code null} for none - */ - public VpnTunnel setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client - * when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. - * @return value or {@code null} for none - */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; - } - - /** - * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client - * when the VPN tunnel is created. This field can be set only for Classic VPN tunnels. - * @param targetVpnGateway targetVpnGateway or {@code null} for none - */ - public VpnTunnel setTargetVpnGateway(java.lang.String targetVpnGateway) { - this.targetVpnGateway = targetVpnGateway; - return this; - } - - /** - * URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when - * the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High - * Availability VPN gateway resource is created. - * @return value or {@code null} for none - */ - public java.lang.String getVpnGateway() { - return vpnGateway; - } - - /** - * URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when - * the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High - * Availability VPN gateway resource is created. - * @param vpnGateway vpnGateway or {@code null} for none - */ - public VpnTunnel setVpnGateway(java.lang.String vpnGateway) { - this.vpnGateway = vpnGateway; - return this; - } - - /** - * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values - * are: `0`, `1`. - * @return value or {@code null} for none - */ - public java.lang.Integer getVpnGatewayInterface() { - return vpnGatewayInterface; - } - - /** - * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values - * are: `0`, `1`. - * @param vpnGatewayInterface vpnGatewayInterface or {@code null} for none - */ - public VpnTunnel setVpnGatewayInterface(java.lang.Integer vpnGatewayInterface) { - this.vpnGatewayInterface = vpnGatewayInterface; - return this; - } - - @Override - public VpnTunnel set(String fieldName, Object value) { - return (VpnTunnel) super.set(fieldName, value); - } - - @Override - public VpnTunnel clone() { - return (VpnTunnel) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelAggregatedList.java deleted file mode 100644 index 6e8a7312993..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelAggregatedList.java +++ /dev/null @@ -1,401 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnTunnelAggregatedList. - * - *

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 VpnTunnelAggregatedList extends com.google.api.client.json.GenericJson { - - /** - * [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 VpnTunnelsScopedList resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map items; - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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; - - /** - * [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 VpnTunnelAggregatedList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of VpnTunnelsScopedList resources. - * @return value or {@code null} for none - */ - public java.util.Map getItems() { - return items; - } - - /** - * A list of VpnTunnelsScopedList resources. - * @param items items or {@code null} for none - */ - public VpnTunnelAggregatedList setItems(java.util.Map items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @param kind kind or {@code null} for none - */ - public VpnTunnelAggregatedList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VpnTunnelAggregatedList 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 VpnTunnelAggregatedList 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 VpnTunnelAggregatedList 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 VpnTunnelAggregatedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VpnTunnelAggregatedList set(String fieldName, Object value) { - return (VpnTunnelAggregatedList) super.set(fieldName, value); - } - - @Override - public VpnTunnelAggregatedList clone() { - return (VpnTunnelAggregatedList) 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 VpnTunnelAggregatedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelCipherSuite.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelCipherSuite.java deleted file mode 100644 index 980bc55c3b4..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelCipherSuite.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnTunnelCipherSuite. - * - *

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 VpnTunnelCipherSuite extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnTunnelPhase1Algorithms phase1; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private VpnTunnelPhase2Algorithms phase2; - - /** - * @return value or {@code null} for none - */ - public VpnTunnelPhase1Algorithms getPhase1() { - return phase1; - } - - /** - * @param phase1 phase1 or {@code null} for none - */ - public VpnTunnelCipherSuite setPhase1(VpnTunnelPhase1Algorithms phase1) { - this.phase1 = phase1; - return this; - } - - /** - * @return value or {@code null} for none - */ - public VpnTunnelPhase2Algorithms getPhase2() { - return phase2; - } - - /** - * @param phase2 phase2 or {@code null} for none - */ - public VpnTunnelCipherSuite setPhase2(VpnTunnelPhase2Algorithms phase2) { - this.phase2 = phase2; - return this; - } - - @Override - public VpnTunnelCipherSuite set(String fieldName, Object value) { - return (VpnTunnelCipherSuite) super.set(fieldName, value); - } - - @Override - public VpnTunnelCipherSuite clone() { - return (VpnTunnelCipherSuite) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelList.java deleted file mode 100644 index 175d38786d2..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of VpnTunnel resources. - * - *

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 VpnTunnelList extends com.google.api.client.json.GenericJson { - - /** - * [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 VpnTunnel 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 VpnTunnel 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(VpnTunnel.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 VpnTunnelList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of VpnTunnel resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of VpnTunnel resources. - * @param items items or {@code null} for none - */ - public VpnTunnelList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @param kind kind or {@code null} for none - */ - public VpnTunnelList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public VpnTunnelList 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 VpnTunnelList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 VpnTunnelList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VpnTunnelList set(String fieldName, Object value) { - return (VpnTunnelList) super.set(fieldName, value); - } - - @Override - public VpnTunnelList clone() { - return (VpnTunnelList) 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 VpnTunnelListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelParams.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelParams.java deleted file mode 100644 index 2b73401a642..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelParams.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnTunnelParams. - * - *

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 VpnTunnelParams extends com.google.api.client.json.GenericJson { - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map resourceManagerTags; - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @return value or {@code null} for none - */ - public java.util.Map getResourceManagerTags() { - return resourceManagerTags; - } - - /** - * Tag keys/values directly bound to this resource. Tag keys and values have the same definition - * as resource manager tags. The field is allowed for INSERT only. The keys/values to set on the - * resource should be specified in either ID { : } or Namespaced format { : }. For example the - * following are valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - * "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"} Note: * Invalid - * combinations of ID & namespaced format is not supported. For instance: {"123/environment" : - * "tagValues/444"} is invalid. * Inconsistent format is not supported. For instance: - * {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. - * @param resourceManagerTags resourceManagerTags or {@code null} for none - */ - public VpnTunnelParams setResourceManagerTags(java.util.Map resourceManagerTags) { - this.resourceManagerTags = resourceManagerTags; - return this; - } - - @Override - public VpnTunnelParams set(String fieldName, Object value) { - return (VpnTunnelParams) super.set(fieldName, value); - } - - @Override - public VpnTunnelParams clone() { - return (VpnTunnelParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase1Algorithms.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase1Algorithms.java deleted file mode 100644 index f4a55fd98bf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase1Algorithms.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnTunnelPhase1Algorithms. - * - *

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 VpnTunnelPhase1Algorithms extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List dh; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List encryption; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List integrity; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List prf; - - /** - * @return value or {@code null} for none - */ - public java.util.List getDh() { - return dh; - } - - /** - * @param dh dh or {@code null} for none - */ - public VpnTunnelPhase1Algorithms setDh(java.util.List dh) { - this.dh = dh; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getEncryption() { - return encryption; - } - - /** - * @param encryption encryption or {@code null} for none - */ - public VpnTunnelPhase1Algorithms setEncryption(java.util.List encryption) { - this.encryption = encryption; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getIntegrity() { - return integrity; - } - - /** - * @param integrity integrity or {@code null} for none - */ - public VpnTunnelPhase1Algorithms setIntegrity(java.util.List integrity) { - this.integrity = integrity; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getPrf() { - return prf; - } - - /** - * @param prf prf or {@code null} for none - */ - public VpnTunnelPhase1Algorithms setPrf(java.util.List prf) { - this.prf = prf; - return this; - } - - @Override - public VpnTunnelPhase1Algorithms set(String fieldName, Object value) { - return (VpnTunnelPhase1Algorithms) super.set(fieldName, value); - } - - @Override - public VpnTunnelPhase1Algorithms clone() { - return (VpnTunnelPhase1Algorithms) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase2Algorithms.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase2Algorithms.java deleted file mode 100644 index 876aad289f5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelPhase2Algorithms.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnTunnelPhase2Algorithms. - * - *

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 VpnTunnelPhase2Algorithms extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List encryption; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List integrity; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List pfs; - - /** - * @return value or {@code null} for none - */ - public java.util.List getEncryption() { - return encryption; - } - - /** - * @param encryption encryption or {@code null} for none - */ - public VpnTunnelPhase2Algorithms setEncryption(java.util.List encryption) { - this.encryption = encryption; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getIntegrity() { - return integrity; - } - - /** - * @param integrity integrity or {@code null} for none - */ - public VpnTunnelPhase2Algorithms setIntegrity(java.util.List integrity) { - this.integrity = integrity; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getPfs() { - return pfs; - } - - /** - * @param pfs pfs or {@code null} for none - */ - public VpnTunnelPhase2Algorithms setPfs(java.util.List pfs) { - this.pfs = pfs; - return this; - } - - @Override - public VpnTunnelPhase2Algorithms set(String fieldName, Object value) { - return (VpnTunnelPhase2Algorithms) super.set(fieldName, value); - } - - @Override - public VpnTunnelPhase2Algorithms clone() { - return (VpnTunnelPhase2Algorithms) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelsScopedList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelsScopedList.java deleted file mode 100644 index ddaf37f14be..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/VpnTunnelsScopedList.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for VpnTunnelsScopedList. - * - *

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 VpnTunnelsScopedList extends com.google.api.client.json.GenericJson { - - /** - * A list of VPN tunnels contained in this scope. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List vpnTunnels; - - static { - // hack to force ProGuard to consider VpnTunnel 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(VpnTunnel.class); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * A list of VPN tunnels contained in this scope. - * @return value or {@code null} for none - */ - public java.util.List getVpnTunnels() { - return vpnTunnels; - } - - /** - * A list of VPN tunnels contained in this scope. - * @param vpnTunnels vpnTunnels or {@code null} for none - */ - public VpnTunnelsScopedList setVpnTunnels(java.util.List vpnTunnels) { - this.vpnTunnels = vpnTunnels; - return this; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @return value or {@code null} for none - */ - public Warning getWarning() { - return warning; - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - * @param warning warning or {@code null} for none - */ - public VpnTunnelsScopedList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public VpnTunnelsScopedList set(String fieldName, Object value) { - return (VpnTunnelsScopedList) super.set(fieldName, value); - } - - @Override - public VpnTunnelsScopedList clone() { - return (VpnTunnelsScopedList) super.clone(); - } - - /** - * Informational warning which replaces the list of addresses when the list is empty. - */ - 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 VpnTunnelsScopedListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSet.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSet.java deleted file mode 100644 index 662f0d78339..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSet.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for WafExpressionSet. - * - *

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 WafExpressionSet extends com.google.api.client.json.GenericJson { - - /** - * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" - * is particularly useful if a policy likes to avail newer set of expressions without having to - * change the policy. A given alias name can't be used for more than one entity set. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List aliases; - - /** - * List of available expressions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List expressions; - - /** - * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" - * is particularly useful if a policy likes to avail newer set of expressions without having to - * change the policy. A given alias name can't be used for more than one entity set. - * @return value or {@code null} for none - */ - public java.util.List getAliases() { - return aliases; - } - - /** - * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" - * is particularly useful if a policy likes to avail newer set of expressions without having to - * change the policy. A given alias name can't be used for more than one entity set. - * @param aliases aliases or {@code null} for none - */ - public WafExpressionSet setAliases(java.util.List aliases) { - this.aliases = aliases; - return this; - } - - /** - * List of available expressions. - * @return value or {@code null} for none - */ - public java.util.List getExpressions() { - return expressions; - } - - /** - * List of available expressions. - * @param expressions expressions or {@code null} for none - */ - public WafExpressionSet setExpressions(java.util.List expressions) { - this.expressions = expressions; - return this; - } - - /** - * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required - * @param id id or {@code null} for none - */ - public WafExpressionSet setId(java.lang.String id) { - this.id = id; - return this; - } - - @Override - public WafExpressionSet set(String fieldName, Object value) { - return (WafExpressionSet) super.set(fieldName, value); - } - - @Override - public WafExpressionSet clone() { - return (WafExpressionSet) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSetExpression.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSetExpression.java deleted file mode 100644 index 2bda14fdc0a..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WafExpressionSetExpression.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for WafExpressionSetExpression. - * - *

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 WafExpressionSetExpression extends com.google.api.client.json.GenericJson { - - /** - * Expression ID should uniquely identify the origin of the expression. E.g. owasp- - * crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could - * be used to determine the individual attack definition that has been detected. It could also be - * used to exclude it from the policy in case of false positive. required - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity - * paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer sensitivity; - - /** - * Expression ID should uniquely identify the origin of the expression. E.g. owasp- - * crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could - * be used to determine the individual attack definition that has been detected. It could also be - * used to exclude it from the policy in case of false positive. required - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * Expression ID should uniquely identify the origin of the expression. E.g. owasp- - * crs-v020901-id973337 identifies Owasp core rule set version 2.9.1 rule id 973337. The ID could - * be used to determine the individual attack definition that has been detected. It could also be - * used to exclude it from the policy in case of false positive. required - * @param id id or {@code null} for none - */ - public WafExpressionSetExpression setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity - * paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. - * @return value or {@code null} for none - */ - public java.lang.Integer getSensitivity() { - return sensitivity; - } - - /** - * The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity - * paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. - * @param sensitivity sensitivity or {@code null} for none - */ - public WafExpressionSetExpression setSensitivity(java.lang.Integer sensitivity) { - this.sensitivity = sensitivity; - return this; - } - - @Override - public WafExpressionSetExpression set(String fieldName, Object value) { - return (WafExpressionSetExpression) super.set(fieldName, value); - } - - @Override - public WafExpressionSetExpression clone() { - return (WafExpressionSetExpression) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WeightedBackendService.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WeightedBackendService.java deleted file mode 100644 index 8f5ab15e34f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WeightedBackendService.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.preview.model; - -/** - * In contrast to a single BackendService in HttpRouteAction to which all matching traffic is - * directed to,WeightedBackendService allows traffic to be split across multiple backend services. - * The volume of traffic for each backend service is proportional to the weight specified in each - * WeightedBackendService - * - *

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 WeightedBackendService extends com.google.api.client.json.GenericJson { - - /** - * The full or partial URL to the default BackendService resource. Before forwarding the request - * to backendService, the load balancer applies any relevant headerActions specified as part of - * thisbackendServiceWeight. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * headerAction specified here take effect beforeheaderAction in the enclosing - * HttpRouteRule,PathMatcher and UrlMap. - * - * headerAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private HttpHeaderAction headerAction; - - /** - * Specifies the fraction of traffic sent to a backend service, computed asweight / (sum of all - * weightedBackendService weights in routeAction). - * - * The selection of a backend service is determined only for new traffic. Once a user's request - * has been directed to a backend service, subsequent requests are sent to the same backend - * service as determined by the backend service's session affinity policy. Don't configure session - * affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting - * configuration takes precedence. - * - * The value must be from 0 to 1000. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Long weight; - - /** - * The full or partial URL to the default BackendService resource. Before forwarding the request - * to backendService, the load balancer applies any relevant headerActions specified as part of - * thisbackendServiceWeight. - * @return value or {@code null} for none - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * The full or partial URL to the default BackendService resource. Before forwarding the request - * to backendService, the load balancer applies any relevant headerActions specified as part of - * thisbackendServiceWeight. - * @param backendService backendService or {@code null} for none - */ - public WeightedBackendService setBackendService(java.lang.String backendService) { - this.backendService = backendService; - return this; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * headerAction specified here take effect beforeheaderAction in the enclosing - * HttpRouteRule,PathMatcher and UrlMap. - * - * headerAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @return value or {@code null} for none - */ - public HttpHeaderAction getHeaderAction() { - return headerAction; - } - - /** - * Specifies changes to request and response headers that need to take effect for the selected - * backendService. - * - * headerAction specified here take effect beforeheaderAction in the enclosing - * HttpRouteRule,PathMatcher and UrlMap. - * - * headerAction is not supported for load balancers that have their loadBalancingScheme set to - * EXTERNAL. - * - * Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless - * field set to true. - * @param headerAction headerAction or {@code null} for none - */ - public WeightedBackendService setHeaderAction(HttpHeaderAction headerAction) { - this.headerAction = headerAction; - return this; - } - - /** - * Specifies the fraction of traffic sent to a backend service, computed asweight / (sum of all - * weightedBackendService weights in routeAction). - * - * The selection of a backend service is determined only for new traffic. Once a user's request - * has been directed to a backend service, subsequent requests are sent to the same backend - * service as determined by the backend service's session affinity policy. Don't configure session - * affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting - * configuration takes precedence. - * - * The value must be from 0 to 1000. - * @return value or {@code null} for none - */ - public java.lang.Long getWeight() { - return weight; - } - - /** - * Specifies the fraction of traffic sent to a backend service, computed asweight / (sum of all - * weightedBackendService weights in routeAction). - * - * The selection of a backend service is determined only for new traffic. Once a user's request - * has been directed to a backend service, subsequent requests are sent to the same backend - * service as determined by the backend service's session affinity policy. Don't configure session - * affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting - * configuration takes precedence. - * - * The value must be from 0 to 1000. - * @param weight weight or {@code null} for none - */ - public WeightedBackendService setWeight(java.lang.Long weight) { - this.weight = weight; - return this; - } - - @Override - public WeightedBackendService set(String fieldName, Object value) { - return (WeightedBackendService) super.set(fieldName, value); - } - - @Override - public WeightedBackendService clone() { - return (WeightedBackendService) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Wire.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Wire.java deleted file mode 100644 index 564e1aee8df..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Wire.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * 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.preview.model; - -/** - * A pseudowire that connects two Interconnect connections. - * - *

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 Wire extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is - * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. - * Defaults to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Output only. Wire endpoints are specific Interconnect connections. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List endpoints; - - /** - * Output only. [Output Only] A label that identifies the wire. The format of this label combines - * the existing labels of the wire group endpoints and Interconnect connections used by this wire - * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: - * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified - * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels - * that you entered as map keys when you specified the wire group Interconnect objects. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String label; - - /** - * Output only. [Output Only] Properties of the wire. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private WireProperties wireProperties; - - /** - * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is - * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. - * Defaults to true. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is - * disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. - * Defaults to true. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Output only. Wire endpoints are specific Interconnect connections. - * @return value or {@code null} for none - */ - public java.util.List getEndpoints() { - return endpoints; - } - - /** - * Output only. Wire endpoints are specific Interconnect connections. - * @param endpoints endpoints or {@code null} for none - */ - public Wire setEndpoints(java.util.List endpoints) { - this.endpoints = endpoints; - return this; - } - - /** - * Output only. [Output Only] A label that identifies the wire. The format of this label combines - * the existing labels of the wire group endpoints and Interconnect connections used by this wire - * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: - * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified - * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels - * that you entered as map keys when you specified the wire group Interconnect objects. - * @return value or {@code null} for none - */ - public java.lang.String getLabel() { - return label; - } - - /** - * Output only. [Output Only] A label that identifies the wire. The format of this label combines - * the existing labels of the wire group endpoints and Interconnect connections used by this wire - * in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: - * - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified - * the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels - * that you entered as map keys when you specified the wire group Interconnect objects. - * @param label label or {@code null} for none - */ - public Wire setLabel(java.lang.String label) { - this.label = label; - return this; - } - - /** - * Output only. [Output Only] Properties of the wire. - * @return value or {@code null} for none - */ - public WireProperties getWireProperties() { - return wireProperties; - } - - /** - * Output only. [Output Only] Properties of the wire. - * @param wireProperties wireProperties or {@code null} for none - */ - public Wire setWireProperties(WireProperties wireProperties) { - this.wireProperties = wireProperties; - return this; - } - - @Override - public Wire set(String fieldName, Object value) { - return (Wire) super.set(fieldName, value); - } - - @Override - public Wire clone() { - return (Wire) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireEndpoint.java deleted file mode 100644 index 1f0bf3b688f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireEndpoint.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Wire endpoints are specific Interconnect connections. - * - *

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 WireEndpoint extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer vlanTag; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** - * @param interconnect interconnect or {@code null} for none - */ - public WireEndpoint setInterconnect(java.lang.String interconnect) { - this.interconnect = interconnect; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Integer getVlanTag() { - return vlanTag; - } - - /** - * @param vlanTag vlanTag or {@code null} for none - */ - public WireEndpoint setVlanTag(java.lang.Integer vlanTag) { - this.vlanTag = vlanTag; - return this; - } - - @Override - public WireEndpoint set(String fieldName, Object value) { - return (WireEndpoint) super.set(fieldName, value); - } - - @Override - public WireEndpoint clone() { - return (WireEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroup.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroup.java deleted file mode 100644 index dfb9e1eec9f..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroup.java +++ /dev/null @@ -1,360 +0,0 @@ -/* - * 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.preview.model; - -/** - * A resource that represents a group of redundant wires. - * - *

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 WireGroup extends com.google.api.client.json.GenericJson { - - /** - * Indicates whether the wires in the wire group are enabled. When false, the wires in the wire - * group are disabled. When true and when there is simultaneously no wire-specific override of - * `adminEnabled` to false, a given wire is enabled. Defaults to true. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean adminEnabled; - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * An optional description of the wire group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A map that contains the logical endpoints of the wire group. Specify key-value pairs for the - * map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map endpoints; - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * 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] Type of the resource. Alwayscompute#wireGroups for wire groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Name of the resource. Provided by the client 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] Indicates whether there are wire changes yet to be processed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean reconciling; - - /** - * 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. Topology details for the wire group configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private WireGroupTopology topology; - - /** - * Properties for all wires in the wire group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private WireProperties wireProperties; - - /** - * Output only. The single/redundant wire(s) managed by the wire group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List wires; - - static { - // hack to force ProGuard to consider Wire 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(Wire.class); - } - - /** - * Indicates whether the wires in the wire group are enabled. When false, the wires in the wire - * group are disabled. When true and when there is simultaneously no wire-specific override of - * `adminEnabled` to false, a given wire is enabled. Defaults to true. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAdminEnabled() { - return adminEnabled; - } - - /** - * Indicates whether the wires in the wire group are enabled. When false, the wires in the wire - * group are disabled. When true and when there is simultaneously no wire-specific override of - * `adminEnabled` to false, a given wire is enabled. Defaults to true. - * @param adminEnabled adminEnabled or {@code null} for none - */ - public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { - this.adminEnabled = adminEnabled; - return this; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * An optional description of the wire group. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * An optional description of the wire group. - * @param description description or {@code null} for none - */ - public WireGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A map that contains the logical endpoints of the wire group. Specify key-value pairs for the - * map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. - * @return value or {@code null} for none - */ - public java.util.Map getEndpoints() { - return endpoints; - } - - /** - * A map that contains the logical endpoints of the wire group. Specify key-value pairs for the - * map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. - * @param endpoints endpoints or {@code null} for none - */ - public WireGroup setEndpoints(java.util.Map endpoints) { - this.endpoints = endpoints; - return this; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @return value or {@code null} for none - */ - public java.math.BigInteger getId() { - return id; - } - - /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public WireGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. - * @param kind kind or {@code null} for none - */ - public WireGroup setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Name of the resource. Provided by the client 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. Provided by the client 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 WireGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. - * @return value or {@code null} for none - */ - public java.lang.Boolean getReconciling() { - return reconciling; - } - - /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. - * @param reconciling reconciling or {@code null} for none - */ - public WireGroup setReconciling(java.lang.Boolean reconciling) { - this.reconciling = reconciling; - 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 WireGroup setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. Topology details for the wire group configuration. - * @return value or {@code null} for none - */ - public WireGroupTopology getTopology() { - return topology; - } - - /** - * Output only. Topology details for the wire group configuration. - * @param topology topology or {@code null} for none - */ - public WireGroup setTopology(WireGroupTopology topology) { - this.topology = topology; - return this; - } - - /** - * Properties for all wires in the wire group. - * @return value or {@code null} for none - */ - public WireProperties getWireProperties() { - return wireProperties; - } - - /** - * Properties for all wires in the wire group. - * @param wireProperties wireProperties or {@code null} for none - */ - public WireGroup setWireProperties(WireProperties wireProperties) { - this.wireProperties = wireProperties; - return this; - } - - /** - * Output only. The single/redundant wire(s) managed by the wire group. - * @return value or {@code null} for none - */ - public java.util.List getWires() { - return wires; - } - - /** - * Output only. The single/redundant wire(s) managed by the wire group. - * @param wires wires or {@code null} for none - */ - public WireGroup setWires(java.util.List wires) { - this.wires = wires; - return this; - } - - @Override - public WireGroup set(String fieldName, Object value) { - return (WireGroup) super.set(fieldName, value); - } - - @Override - public WireGroup clone() { - return (WireGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpoint.java deleted file mode 100644 index a411f920bec..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpoint.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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.preview.model; - -/** - * A logical endpoint for the wire group. An endpoint represents a metro that contains redundant - * Interconnect connections. A wire group is created between two endpoints. - * - *

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 WireGroupEndpoint extends com.google.api.client.json.GenericJson { - - /** - * A map that contains the redundant Interconnect connections. Specify key-value pairs for the map - * as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map interconnects; - - /** - * A map that contains the redundant Interconnect connections. Specify key-value pairs for the map - * as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. - * @return value or {@code null} for none - */ - public java.util.Map getInterconnects() { - return interconnects; - } - - /** - * A map that contains the redundant Interconnect connections. Specify key-value pairs for the map - * as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. - * @param interconnects interconnects or {@code null} for none - */ - public WireGroupEndpoint setInterconnects(java.util.Map interconnects) { - this.interconnects = interconnects; - return this; - } - - @Override - public WireGroupEndpoint set(String fieldName, Object value) { - return (WireGroupEndpoint) super.set(fieldName, value); - } - - @Override - public WireGroupEndpoint clone() { - return (WireGroupEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpointInterconnect.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpointInterconnect.java deleted file mode 100644 index 8c305e6b1a9..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupEndpointInterconnect.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * 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.preview.model; - -/** - * The redundant Interconnect connections for this endpoint. - * - *

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 WireGroupEndpointInterconnect extends com.google.api.client.json.GenericJson { - - /** - * Required. An Interconnect connection. You can specify the connection as a partial or full URL. - * If the connection is in a different project from the cross-site network, use a format that - * specifies the project. See the following examples of partial and full URLs: - * global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME - * - https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** - * Required. To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from - * `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port - * mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an - * Interconnect connection across all attachments and wire groups. - Both endpoints of a - * wire must use the same VLAN tag value. - Single wire and redundant type wire groups must - * have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value - * of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The - * first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List vlanTags; - - /** - * Required. An Interconnect connection. You can specify the connection as a partial or full URL. - * If the connection is in a different project from the cross-site network, use a format that - * specifies the project. See the following examples of partial and full URLs: - * global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME - * - https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME - * @return value or {@code null} for none - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** - * Required. An Interconnect connection. You can specify the connection as a partial or full URL. - * If the connection is in a different project from the cross-site network, use a format that - * specifies the project. See the following examples of partial and full URLs: - * global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME - * - https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME - * @param interconnect interconnect or {@code null} for none - */ - public WireGroupEndpointInterconnect setInterconnect(java.lang.String interconnect) { - this.interconnect = interconnect; - return this; - } - - /** - * Required. To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from - * `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port - * mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an - * Interconnect connection across all attachments and wire groups. - Both endpoints of a - * wire must use the same VLAN tag value. - Single wire and redundant type wire groups must - * have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value - * of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The - * first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. - * @return value or {@code null} for none - */ - public java.util.List getVlanTags() { - return vlanTags; - } - - /** - * Required. To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from - * `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port - * mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an - * Interconnect connection across all attachments and wire groups. - Both endpoints of a - * wire must use the same VLAN tag value. - Single wire and redundant type wire groups must - * have only one VLAN tag. - Port mode pseudowires must have a single VLAN tag with a value - * of `-1` for both endpoints. - Box and cross type wire groups must have two VLAN tags. The - * first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. - * @param vlanTags vlanTags or {@code null} for none - */ - public WireGroupEndpointInterconnect setVlanTags(java.util.List vlanTags) { - this.vlanTags = vlanTags; - return this; - } - - @Override - public WireGroupEndpointInterconnect set(String fieldName, Object value) { - return (WireGroupEndpointInterconnect) super.set(fieldName, value); - } - - @Override - public WireGroupEndpointInterconnect clone() { - return (WireGroupEndpointInterconnect) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupList.java deleted file mode 100644 index 1561dd4de92..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupList.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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.preview.model; - -/** - * Response for the list request. - * - *

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 WireGroupList extends com.google.api.client.json.GenericJson { - - /** - * 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 wire group 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 WireGroup 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(WireGroup.class); - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * [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. end_interface: - * MixerListResponseWithEtagBuilder - * 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; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * @param etag etag or {@code null} for none - */ - public WireGroupList 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 WireGroupList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of wire group resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of wire group resources. - * @param items items or {@code null} for none - */ - public WireGroupList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. - * @param kind kind or {@code null} for none - */ - public WireGroupList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public WireGroupList setNextPageToken(java.lang.String nextPageToken) { - this.nextPageToken = nextPageToken; - return this; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for this resource. - * @param selfLink selfLink or {@code null} for none - */ - public WireGroupList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @return value or {@code null} for none - */ - public java.util.List getUnreachables() { - return unreachables; - } - - /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder - * @param unreachables unreachables or {@code null} for none - */ - public WireGroupList 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 WireGroupList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public WireGroupList set(String fieldName, Object value) { - return (WireGroupList) super.set(fieldName, value); - } - - @Override - public WireGroupList clone() { - return (WireGroupList) 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 WireGroupListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopology.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopology.java deleted file mode 100644 index 0047b1a0d50..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopology.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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.preview.model; - -/** - * Topology details for the wire group. - * - *

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 WireGroupTopology extends com.google.api.client.json.GenericJson { - - /** - * Output only. Topology details for all endpoints in the wire group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List endpoints; - - /** - * Output only. Topology details for all endpoints in the wire group. - * @return value or {@code null} for none - */ - public java.util.List getEndpoints() { - return endpoints; - } - - /** - * Output only. Topology details for all endpoints in the wire group. - * @param endpoints endpoints or {@code null} for none - */ - public WireGroupTopology setEndpoints(java.util.List endpoints) { - this.endpoints = endpoints; - return this; - } - - @Override - public WireGroupTopology set(String fieldName, Object value) { - return (WireGroupTopology) super.set(fieldName, value); - } - - @Override - public WireGroupTopology clone() { - return (WireGroupTopology) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopologyEndpoint.java deleted file mode 100644 index e7ef0afb892..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireGroupTopologyEndpoint.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Topology details for a single wire group endpoint. - * - *

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 WireGroupTopologyEndpoint extends com.google.api.client.json.GenericJson { - - /** - * Output only. The InterconnectLocation.city (metropolitan area designator) that all - * interconnects are located in. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String city; - - /** - * Output only. Endpoint label from the wire group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String label; - - /** - * Output only. The InterconnectLocation.city (metropolitan area designator) that all - * interconnects are located in. - * @return value or {@code null} for none - */ - public java.lang.String getCity() { - return city; - } - - /** - * Output only. The InterconnectLocation.city (metropolitan area designator) that all - * interconnects are located in. - * @param city city or {@code null} for none - */ - public WireGroupTopologyEndpoint setCity(java.lang.String city) { - this.city = city; - return this; - } - - /** - * Output only. Endpoint label from the wire group. - * @return value or {@code null} for none - */ - public java.lang.String getLabel() { - return label; - } - - /** - * Output only. Endpoint label from the wire group. - * @param label label or {@code null} for none - */ - public WireGroupTopologyEndpoint setLabel(java.lang.String label) { - this.label = label; - return this; - } - - @Override - public WireGroupTopologyEndpoint set(String fieldName, Object value) { - return (WireGroupTopologyEndpoint) super.set(fieldName, value); - } - - @Override - public WireGroupTopologyEndpoint clone() { - return (WireGroupTopologyEndpoint) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireProperties.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireProperties.java deleted file mode 100644 index 7edc6a3d7cf..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WireProperties.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.preview.model; - -/** - * The properties of a wire. - * - *

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 WireProperties extends com.google.api.client.json.GenericJson { - - /** - * The configuration of the bandwidth allocation, one of the following: - - * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated - * charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, - * which configures one unmetered bandwidth allocation for the wire group. The unmetered - * bandwidth is divided equally across each wire in the group, but dynamic throttling - * reallocates unused unmetered bandwidth from unused or underused wires to other wires in the - * group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String bandwidthAllocation; - - /** - * The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is - * 100 Gbps. The bandwidth must be greater than 0. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long bandwidthUnmetered; - - /** - * Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: - * set the port line protocol down when inline probes detect a fault. This setting is only - * permitted on port mode pseudowires. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String faultResponse; - - /** - * The configuration of the bandwidth allocation, one of the following: - - * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated - * charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, - * which configures one unmetered bandwidth allocation for the wire group. The unmetered - * bandwidth is divided equally across each wire in the group, but dynamic throttling - * reallocates unused unmetered bandwidth from unused or underused wires to other wires in the - * group. - * @return value or {@code null} for none - */ - public java.lang.String getBandwidthAllocation() { - return bandwidthAllocation; - } - - /** - * The configuration of the bandwidth allocation, one of the following: - - * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated - * charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: this is the default behavior, - * which configures one unmetered bandwidth allocation for the wire group. The unmetered - * bandwidth is divided equally across each wire in the group, but dynamic throttling - * reallocates unused unmetered bandwidth from unused or underused wires to other wires in the - * group. - * @param bandwidthAllocation bandwidthAllocation or {@code null} for none - */ - public WireProperties setBandwidthAllocation(java.lang.String bandwidthAllocation) { - this.bandwidthAllocation = bandwidthAllocation; - return this; - } - - /** - * The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is - * 100 Gbps. The bandwidth must be greater than 0. - * @return value or {@code null} for none - */ - public java.lang.Long getBandwidthUnmetered() { - return bandwidthUnmetered; - } - - /** - * The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is - * 100 Gbps. The bandwidth must be greater than 0. - * @param bandwidthUnmetered bandwidthUnmetered or {@code null} for none - */ - public WireProperties setBandwidthUnmetered(java.lang.Long bandwidthUnmetered) { - this.bandwidthUnmetered = bandwidthUnmetered; - return this; - } - - /** - * Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: - * set the port line protocol down when inline probes detect a fault. This setting is only - * permitted on port mode pseudowires. - * @return value or {@code null} for none - */ - public java.lang.String getFaultResponse() { - return faultResponse; - } - - /** - * Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: - * set the port line protocol down when inline probes detect a fault. This setting is only - * permitted on port mode pseudowires. - * @param faultResponse faultResponse or {@code null} for none - */ - public WireProperties setFaultResponse(java.lang.String faultResponse) { - this.faultResponse = faultResponse; - return this; - } - - @Override - public WireProperties set(String fieldName, Object value) { - return (WireProperties) super.set(fieldName, value); - } - - @Override - public WireProperties clone() { - return (WireProperties) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WorkloadIdentityConfig.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WorkloadIdentityConfig.java deleted file mode 100644 index ef77fde6b27..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/WorkloadIdentityConfig.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for WorkloadIdentityConfig. - * - *

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 WorkloadIdentityConfig extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String identity; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean identityCertificateEnabled; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getIdentity() { - return identity; - } - - /** - * @param identity identity or {@code null} for none - */ - public WorkloadIdentityConfig setIdentity(java.lang.String identity) { - this.identity = identity; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Boolean getIdentityCertificateEnabled() { - return identityCertificateEnabled; - } - - /** - * @param identityCertificateEnabled identityCertificateEnabled or {@code null} for none - */ - public WorkloadIdentityConfig setIdentityCertificateEnabled(java.lang.Boolean identityCertificateEnabled) { - this.identityCertificateEnabled = identityCertificateEnabled; - return this; - } - - @Override - public WorkloadIdentityConfig set(String fieldName, Object value) { - return (WorkloadIdentityConfig) super.set(fieldName, value); - } - - @Override - public WorkloadIdentityConfig clone() { - return (WorkloadIdentityConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnHostList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnHostList.java deleted file mode 100644 index 16e5a874bc8..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnHostList.java +++ /dev/null @@ -1,386 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for XpnHostList. - * - *

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 XpnHostList extends com.google.api.client.json.GenericJson { - - /** - * [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; - - /** - * [Output Only] A list of shared VPC host project URLs. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List items; - - static { - // hack to force ProGuard to consider Project 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(Project.class); - } - - /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 XpnHostList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * [Output Only] A list of shared VPC host project URLs. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * [Output Only] A list of shared VPC host project URLs. - * @param items items or {@code null} for none - */ - public XpnHostList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. - * @param kind kind or {@code null} for none - */ - public XpnHostList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public XpnHostList 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 XpnHostList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 XpnHostList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public XpnHostList set(String fieldName, Object value) { - return (XpnHostList) super.set(fieldName, value); - } - - @Override - public XpnHostList clone() { - return (XpnHostList) 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 XpnHostListWarningData. - */ - 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/preview/2.0.0/com/google/api/services/compute/preview/model/XpnResourceId.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnResourceId.java deleted file mode 100644 index 7c7b66f7dd5..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/XpnResourceId.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.preview.model; - -/** - * Service resource (a.k.a service project) ID. - * - *

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 XpnResourceId extends com.google.api.client.json.GenericJson { - - /** - * The ID of the service resource. In the case of projects, this field supports project id (e.g., - * my-project-123) and project number (e.g. 12345678). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String id; - - /** - * The type of the service resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * The ID of the service resource. In the case of projects, this field supports project id (e.g., - * my-project-123) and project number (e.g. 12345678). - * @return value or {@code null} for none - */ - public java.lang.String getId() { - return id; - } - - /** - * The ID of the service resource. In the case of projects, this field supports project id (e.g., - * my-project-123) and project number (e.g. 12345678). - * @param id id or {@code null} for none - */ - public XpnResourceId setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * The type of the service resource. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of the service resource. - * @param type type or {@code null} for none - */ - public XpnResourceId setType(java.lang.String type) { - this.type = type; - return this; - } - - @Override - public XpnResourceId set(String fieldName, Object value) { - return (XpnResourceId) super.set(fieldName, value); - } - - @Override - public XpnResourceId clone() { - return (XpnResourceId) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Zone.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Zone.java deleted file mode 100644 index bf29fe96b13..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/Zone.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * 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.preview.model; - -/** - * Represents a Zone resource. - * - * A zone is a deployment area. These deployment areas are subsets of a region. For example the zone - * us-east1-b is located in theus-east1 region. For more information, readRegions and Zones. - * - *

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 Zone extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] Available cpu/platform selections for the zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List availableCpuPlatforms; - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String creationTimestamp; - - /** - * [Output Only] The deprecation status associated with this zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DeprecationStatus deprecated; - - /** - * [Output Only] Textual description of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * [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] Type of the resource. Always compute#zone for zones. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] Name of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * [Output Only] Full URL reference to the region which hosts the zone. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ZoneResourceStatus resourceStatus; - - /** - * [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] Status of the zone, either UP orDOWN. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String status; - - /** - * Output only. [Output Only] Reserved for future use. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean supportsPzs; - - /** - * [Output Only] Available cpu/platform selections for the zone. - * @return value or {@code null} for none - */ - public java.util.List getAvailableCpuPlatforms() { - return availableCpuPlatforms; - } - - /** - * [Output Only] Available cpu/platform selections for the zone. - * @param availableCpuPlatforms availableCpuPlatforms or {@code null} for none - */ - public Zone setAvailableCpuPlatforms(java.util.List availableCpuPlatforms) { - this.availableCpuPlatforms = availableCpuPlatforms; - return this; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * [Output Only] Creation timestamp inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public Zone setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * [Output Only] The deprecation status associated with this zone. - * @return value or {@code null} for none - */ - public DeprecationStatus getDeprecated() { - return deprecated; - } - - /** - * [Output Only] The deprecation status associated with this zone. - * @param deprecated deprecated or {@code null} for none - */ - public Zone setDeprecated(DeprecationStatus deprecated) { - this.deprecated = deprecated; - return this; - } - - /** - * [Output Only] Textual description of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * [Output Only] Textual description of the resource. - * @param description description or {@code null} for none - */ - public Zone setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * [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] The unique identifier for the resource. This identifier is defined by the server. - * @param id id or {@code null} for none - */ - public Zone setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. - * @param kind kind or {@code null} for none - */ - public Zone setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] Name of the resource. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * [Output Only] Name of the resource. - * @param name name or {@code null} for none - */ - public Zone setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * [Output Only] Full URL reference to the region which hosts the zone. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * [Output Only] Full URL reference to the region which hosts the zone. - * @param region region or {@code null} for none - */ - public Zone setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * @return value or {@code null} for none - */ - public ZoneResourceStatus getResourceStatus() { - return resourceStatus; - } - - /** - * @param resourceStatus resourceStatus or {@code null} for none - */ - public Zone setResourceStatus(ZoneResourceStatus resourceStatus) { - this.resourceStatus = resourceStatus; - return this; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @return value or {@code null} for none - */ - public java.lang.String getSelfLink() { - return selfLink; - } - - /** - * [Output Only] Server-defined URL for the resource. - * @param selfLink selfLink or {@code null} for none - */ - public Zone setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * [Output Only] Status of the zone, either UP orDOWN. - * @return value or {@code null} for none - */ - public java.lang.String getStatus() { - return status; - } - - /** - * [Output Only] Status of the zone, either UP orDOWN. - * @param status status or {@code null} for none - */ - public Zone setStatus(java.lang.String status) { - this.status = status; - return this; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @return value or {@code null} for none - */ - public java.lang.Boolean getSupportsPzs() { - return supportsPzs; - } - - /** - * Output only. [Output Only] Reserved for future use. - * @param supportsPzs supportsPzs or {@code null} for none - */ - public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { - this.supportsPzs = supportsPzs; - return this; - } - - @Override - public Zone set(String fieldName, Object value) { - return (Zone) super.set(fieldName, value); - } - - @Override - public Zone clone() { - return (Zone) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneList.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneList.java deleted file mode 100644 index c5a97b36320..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneList.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * 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.preview.model; - -/** - * Contains a list of zone resources. - * - *

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 ZoneList extends com.google.api.client.json.GenericJson { - - /** - * [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 Zone 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 Zone 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(Zone.class); - } - - /** - * Output only. Type of resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * 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] Informational warning message. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Warning warning; - - /** - * [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 ZoneList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of Zone resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of Zone resources. - * @param items items or {@code null} for none - */ - public ZoneList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of resource. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of resource. - * @param kind kind or {@code null} for none - */ - public ZoneList setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ZoneList 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 ZoneList setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - 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 ZoneList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ZoneList set(String fieldName, Object value) { - return (ZoneList) super.set(fieldName, value); - } - - @Override - public ZoneList clone() { - return (ZoneList) 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 ZoneListWarningData. - */ - 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(); - } - - } - } -} From f66e59b5b3bea71b1cc6c30c424d38e8fe99aba3 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:28:47 -0700 Subject: [PATCH 23/23] chore: regenerate compute client --- .../preview/model/ZoneResourceStatus.java | 72 - .../preview/model/ZoneSetLabelsRequest.java | 133 - .../model/ZoneSetNestedPolicyRequest.java | 162 - .../preview/model/ZoneSetPolicyRequest.java | 162 - .../preview/2.0.0/pom.xml | 4 +- .../preview/README.md | 4 +- .../v1/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 13846 ++++++++-------- ...nceFlexibilityPolicyInstanceSelection.java | 27 + ...acityHistoryRequestInstanceProperties.java | 54 + ...RequestInstancePropertiesAttachedDisk.java | 66 + .../services/compute/model/Commitment.java | 24 +- .../model/InterconnectsSetNameRequest.java | 96 + .../services/compute/model/RouterNatRule.java | 24 +- .../v1/2.0.0/pom.xml | 4 +- .../google-api-services-compute/v1/README.md | 4 +- 16 files changed, 7633 insertions(+), 7053 deletions(-) delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneResourceStatus.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetLabelsRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetNestedPolicyRequest.java delete mode 100644 clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetPolicyRequest.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneResourceStatus.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneResourceStatus.java deleted file mode 100644 index e02fe3f87e3..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneResourceStatus.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ZoneResourceStatus. - * - *

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 ZoneResourceStatus extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] The upcoming maintenance schedule. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List upcomingMaintenances; - - static { - // hack to force ProGuard to consider PeriodicPartialMaintenanceSchedule 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(PeriodicPartialMaintenanceSchedule.class); - } - - /** - * Output only. [Output Only] The upcoming maintenance schedule. - * @return value or {@code null} for none - */ - public java.util.List getUpcomingMaintenances() { - return upcomingMaintenances; - } - - /** - * Output only. [Output Only] The upcoming maintenance schedule. - * @param upcomingMaintenances upcomingMaintenances or {@code null} for none - */ - public ZoneResourceStatus setUpcomingMaintenances(java.util.List upcomingMaintenances) { - this.upcomingMaintenances = upcomingMaintenances; - return this; - } - - @Override - public ZoneResourceStatus set(String fieldName, Object value) { - return (ZoneResourceStatus) super.set(fieldName, value); - } - - @Override - public ZoneResourceStatus clone() { - return (ZoneResourceStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetLabelsRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetLabelsRequest.java deleted file mode 100644 index 6aba6315655..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetLabelsRequest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ZoneSetLabelsRequest. - * - *

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 ZoneSetLabelsRequest extends com.google.api.client.json.GenericJson { - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String labelFingerprint; - - /** - * The labels to set for this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map labels; - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #decodeLabelFingerprint() - * @return value or {@code null} for none - */ - public java.lang.String getLabelFingerprint() { - return labelFingerprint; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #getLabelFingerprint() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeLabelFingerprint() { - return com.google.api.client.util.Base64.decodeBase64(labelFingerprint); - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #encodeLabelFingerprint() - * @param labelFingerprint labelFingerprint or {@code null} for none - */ - public ZoneSetLabelsRequest setLabelFingerprint(java.lang.String labelFingerprint) { - this.labelFingerprint = labelFingerprint; - return this; - } - - /** - * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The - * fingerprint is initially generated by Compute Engine and changes after every request to modify - * or update labels. You must always provide an up-to-date fingerprint hash in order to update or - * change labels. Make a get() request to the resource to get the latest fingerprint. - * @see #setLabelFingerprint() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ZoneSetLabelsRequest encodeLabelFingerprint(byte[] labelFingerprint) { - this.labelFingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(labelFingerprint); - return this; - } - - /** - * The labels to set for this resource. - * @return value or {@code null} for none - */ - public java.util.Map getLabels() { - return labels; - } - - /** - * The labels to set for this resource. - * @param labels labels or {@code null} for none - */ - public ZoneSetLabelsRequest setLabels(java.util.Map labels) { - this.labels = labels; - return this; - } - - @Override - public ZoneSetLabelsRequest set(String fieldName, Object value) { - return (ZoneSetLabelsRequest) super.set(fieldName, value); - } - - @Override - public ZoneSetLabelsRequest clone() { - return (ZoneSetLabelsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetNestedPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetNestedPolicyRequest.java deleted file mode 100644 index f1607a3fc98..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetNestedPolicyRequest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ZoneSetNestedPolicyRequest. - * - *

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 ZoneSetNestedPolicyRequest extends com.google.api.client.json.GenericJson { - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bindings; - - static { - // hack to force ProGuard to consider Binding 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(Binding.class); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Policy policy; - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @return value or {@code null} for none - */ - public java.util.List getBindings() { - return bindings; - } - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @param bindings bindings or {@code null} for none - */ - public ZoneSetNestedPolicyRequest setBindings(java.util.List bindings) { - this.bindings = bindings; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #decodeEtag() - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #getEtag() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeEtag() { - return com.google.api.client.util.Base64.decodeBase64(etag); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #encodeEtag() - * @param etag etag or {@code null} for none - */ - public ZoneSetNestedPolicyRequest setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #setEtag() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ZoneSetNestedPolicyRequest encodeEtag(byte[] etag) { - this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); - return this; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @return value or {@code null} for none - */ - public Policy getPolicy() { - return policy; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @param policy policy or {@code null} for none - */ - public ZoneSetNestedPolicyRequest setPolicy(Policy policy) { - this.policy = policy; - return this; - } - - @Override - public ZoneSetNestedPolicyRequest set(String fieldName, Object value) { - return (ZoneSetNestedPolicyRequest) super.set(fieldName, value); - } - - @Override - public ZoneSetNestedPolicyRequest clone() { - return (ZoneSetNestedPolicyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetPolicyRequest.java b/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetPolicyRequest.java deleted file mode 100644 index d166c8c3c46..00000000000 --- a/clients/google-api-services-compute/preview/2.0.0/com/google/api/services/compute/preview/model/ZoneSetPolicyRequest.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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.preview.model; - -/** - * Model definition for ZoneSetPolicyRequest. - * - *

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 ZoneSetPolicyRequest extends com.google.api.client.json.GenericJson { - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List bindings; - - static { - // hack to force ProGuard to consider Binding 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(Binding.class); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Policy policy; - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @return value or {@code null} for none - */ - public java.util.List getBindings() { - return bindings; - } - - /** - * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify - * bindings. - * @param bindings bindings or {@code null} for none - */ - public ZoneSetPolicyRequest setBindings(java.util.List bindings) { - this.bindings = bindings; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #decodeEtag() - * @return value or {@code null} for none - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #getEtag() - * @return Base64 decoded value or {@code null} for none - * - * @since 1.14 - */ - public byte[] decodeEtag() { - return com.google.api.client.util.Base64.decodeBase64(etag); - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #encodeEtag() - * @param etag etag or {@code null} for none - */ - public ZoneSetPolicyRequest setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - /** - * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify - * the etag. - * @see #setEtag() - * - *

- * The value is encoded Base64 or {@code null} for none. - *

- * - * @since 1.14 - */ - public ZoneSetPolicyRequest encodeEtag(byte[] etag) { - this.etag = com.google.api.client.util.Base64.encodeBase64URLSafeString(etag); - return this; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @return value or {@code null} for none - */ - public Policy getPolicy() { - return policy; - } - - /** - * REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is - * limited to a few 10s of KB. An empty policy is in general a valid policy but certain services - * (like Projects) might reject them. - * @param policy policy or {@code null} for none - */ - public ZoneSetPolicyRequest setPolicy(Policy policy) { - this.policy = policy; - return this; - } - - @Override - public ZoneSetPolicyRequest set(String fieldName, Object value) { - return (ZoneSetPolicyRequest) super.set(fieldName, value); - } - - @Override - public ZoneSetPolicyRequest clone() { - return (ZoneSetPolicyRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/preview/2.0.0/pom.xml b/clients/google-api-services-compute/preview/2.0.0/pom.xml index 2ccbdad45d8..77b181718b7 100644 --- a/clients/google-api-services-compute/preview/2.0.0/pom.xml +++ b/clients/google-api-services-compute/preview/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - preview-rev20260910-2.0.0 - Compute Engine API preview-rev20260910-2.0.0 + preview-rev20260922-2.0.0 + Compute Engine API preview-rev20260922-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/preview/README.md b/clients/google-api-services-compute/preview/README.md index 7facc336d7d..da1424483a0 100644 --- a/clients/google-api-services-compute/preview/README.md +++ b/clients/google-api-services-compute/preview/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - preview-rev20260910-2.0.0 + preview-rev20260922-2.0.0
@@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:preview-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:preview-rev20260922-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 fb34ab1d925..c7d8d7fbcae 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-rev20260910-2.0.0 + v1-rev20260922-2.0.0
@@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260922-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 26ce4d27ec3..3eb13308791 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java @@ -177,6 +177,8 @@ public class AggregatedList extends ComputeRequest { private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies"; + private static final String API_VERSION = "2026-09-01"; + private 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])?))"); @@ -11289,6 +11258,11 @@ protected GetEffectiveSecurityPolicies(java.lang.String project, java.lang.Strin "Parameter backendService must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } } @Override @@ -11435,6 +11409,8 @@ public class GetHealth extends ComputeRequest { private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; + private static final String API_VERSION = "2026-09-01"; + private 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])?))"); @@ -38271,6 +38402,11 @@ protected Delete(java.lang.String project, java.lang.String operation) { "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } } @Override @@ -38407,6 +38543,8 @@ public class Get extends ComputeRequest { private static final String REST_PATH = "locations/global/operations/{operation}"; + private static final String API_VERSION = "2026-09-01"; + private final java.util.regex.Pattern OPERATION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); @@ -39231,6 +39358,11 @@ protected Delete(java.lang.String operation) { "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } } @Override @@ -39362,6 +39494,8 @@ public class Get extends ComputeRequest { private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt"; + private static final String API_VERSION = "2026-09-01"; + private 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])?))"); @@ -73185,6 +73401,11 @@ protected SendDiagnosticInterrupt(java.lang.String project, java.lang.String zon "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } } @Override @@ -73339,6 +73560,8 @@ public class SetDeletionProtection extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/setName"; + + private static final String API_VERSION = "2026-09-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets name of an interconnect. + * + * Create a request for the method "interconnects.setName". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetName#execute()} method to invoke the remote operation.

+ * {@link + * SetName#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 interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.InterconnectsSetNameRequest} + * @since 1.13 + */ + protected SetName(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.InterconnectsSetNameRequest 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetName set$Xgafv(java.lang.String $Xgafv) { + return (SetName) super.set$Xgafv($Xgafv); + } + + @Override + public SetName setAccessToken(java.lang.String accessToken) { + return (SetName) super.setAccessToken(accessToken); + } + + @Override + public SetName setAlt(java.lang.String alt) { + return (SetName) super.setAlt(alt); + } + + @Override + public SetName setCallback(java.lang.String callback) { + return (SetName) super.setCallback(callback); + } + + @Override + public SetName setFields(java.lang.String fields) { + return (SetName) super.setFields(fields); + } + + @Override + public SetName setKey(java.lang.String key) { + return (SetName) super.setKey(key); + } + + @Override + public SetName setOauthToken(java.lang.String oauthToken) { + return (SetName) super.setOauthToken(oauthToken); + } + + @Override + public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetName) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetName setQuotaUser(java.lang.String quotaUser) { + return (SetName) super.setQuotaUser(quotaUser); + } + + @Override + public SetName setUploadType(java.lang.String uploadType) { + return (SetName) super.setUploadType(uploadType); + } + + @Override + public SetName setUploadProtocol(java.lang.String uploadProtocol) { + return (SetName) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetName setUserIp(java.lang.String userIp) { + return (SetName) 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 SetName 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 interconnect to update. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to update. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to update. */ + public SetName setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + 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 SetName setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetName set(String parameterName, Object value) { + return (SetName) super.set(parameterName, value); + } + } } @@ -93262,6 +93940,8 @@ public class Get extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + private static final String API_VERSION = "2026-09-01"; + private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183441,6 +184389,11 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } } @Override @@ -183599,6 +184552,8 @@ public class Get extends ComputeRequest { private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + private static final String API_VERSION = "2026-09-01"; + private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -266717,6 +267592,11 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } } @Override @@ -266875,6 +267755,8 @@ public class Get 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/v1/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java index 816d1026b25..e0d988bc989 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/Commitment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java index 1caedc46589..575e495ee88 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -240,10 +240,10 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -718,10 +718,10 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -740,10 +740,10 @@ public java.lang.String getType() { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @param type type or {@code null} for none */ public Commitment setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java new file mode 100644 index 00000000000..8d5a4ff0620 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java @@ -0,0 +1,96 @@ +/* + * 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; + +/** + * Request to rename an interconnect. + * + *

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 InterconnectsSetNameRequest extends com.google.api.client.json.GenericJson { + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentName; + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentName() { + return currentName; + } + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param currentName currentName or {@code null} for none + */ + public InterconnectsSetNameRequest setCurrentName(java.lang.String currentName) { + this.currentName = currentName; + return this; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param name name or {@code null} for none + */ + public InterconnectsSetNameRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public InterconnectsSetNameRequest set(String fieldName, Object value) { + return (InterconnectsSetNameRequest) super.set(fieldName, value); + } + + @Override + public InterconnectsSetNameRequest clone() { + return (InterconnectsSetNameRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterNatRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterNatRule.java index 6823a790fa6..a5a9620c8ff 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterNatRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterNatRule.java @@ -53,10 +53,14 @@ public final class RouterNatRule extends com.google.api.client.json.GenericJson * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -114,10 +118,14 @@ public RouterNatRule setDescription(java.lang.String description) { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @return value or {@code null} for none */ public java.lang.String getMatch() { @@ -134,10 +142,14 @@ public java.lang.String getMatch() { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @param match match or {@code null} for none */ public RouterNatRule setMatch(java.lang.String match) { 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 e8d029041e8..9424896497d 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-rev20260910-2.0.0 - Compute Engine API v1-rev20260910-2.0.0 + v1-rev20260922-2.0.0 + Compute Engine API v1-rev20260922-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 fb34ab1d925..c7d8d7fbcae 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-rev20260910-2.0.0 + v1-rev20260922-2.0.0
@@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260910-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260922-2.0.0' } ```